A PYTHON PREPROCESSOR

Guido van Rossum guido at python.org
Thu May 18 16:51:54 CEST 2000


Glyph Lefkowitz wrote:

> Inlining of methods!
> 
> Since python variable name / method lookup is so expensive, I believe
> this would be a significant speedup.  Comments?

But this would require compile time type analysis.
Typically, when you see code of the form ``obj.method(arg)'',
*you* (the programmer) have a good idea of what the class of
obj would be at run-time -- but the poor Python parser does
not share this knowledge.
-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list