So for the point of benchmarks, This is a link to some of the hacks developed by Pythonistas to boost some python speed. Among the hacks, there's a topics called "reducing dots" and "local variables". https://wiki.python.org/moin/PythonSpeed/PerformanceTips
Also I would explain to a pythonista that an inline function is that function which is copied into the same spot that it's called. I know it's a somewhat vague definition, but that's what I could think about so far. By scope, yes, I do mean the function's local scope and not surrounding scope. And per example you've provided, yes, spam shall appear inside the functions a stated, and I think It might not appear in the global scope as hypothesized, since it's what we're trying to evade in the first place. The rest of the concerns you've mentioned above are thinking points that I must take into consideration, that's exactly why I was poking around for such insights that I might have skipped while thinking about this. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/X4VPPKYMWP57AF6W7NMZFGQDBTHSXIVD/ Code of Conduct: http://python.org/psf/codeofconduct/