[issue10399] AST Optimization: inlining of function calls

Antoine Pitrou report at bugs.python.org
Fri Nov 12 22:01:46 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

<i>As I understand it, functions are "name-resolved" before the arguments are evaluated,</i>

There is no difference between resolution of function names and of other names. For example, global names (LOAD_GLOBAL) are resolved entirely at runtime (just before the function gets called).

The specialization issue means this would cooperate well with a globals cache (I've got a lingering patch for this, will post in a separate issue).

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10399>
_______________________________________


More information about the Python-bugs-list mailing list