2 ms·
> My background is Aerospace Engineering and maybe that's why I can't understand why nobody does a real, AOT, Python compiler. Python's a very dynamic language
by khedoros1 9y ago
> My background is Aerospace Engineering and maybe that's why I can't understand why nobody does a real, AOT, Python compiler.
Python's a very dynamic language; a lot of things are inherently determined at run-time. You could build a less-dynamic language (and enforce type annotations and all that), but then that's hard to call "Python", right? At least we'd be free of things like this:
#Scans the module for methods starting with "do_", and puts their names in a list
available_actions = [ method[3:].lower() for method in dir(this_module) if callable(getattr(this_module, method)) and method[:3] == 'do_' ]