davidteather / python-obfuscator

I got tired of writing good code so I made good code to make bad code
MIT License
151 stars 33 forks source link

Put functions into dictionaries #8

Open ghost opened 3 years ago

ghost commented 3 years ago

You could put the functions into dictionaries, small example:

def foo(bar):
    print(bar)

func_dict = {
    'foo': foo
}

func_dict['foo']('Hello world')