Most efficient way to write data out to a text file?
Fredrik Lundh
fredrik at pythonware.com
Mon Jul 1 11:27:42 EDT 2002
Bengt Richter wrote:
> >yes. Python assigns integer indices to local names, and
> >stores the corresponding objects in an array.
>
> Is this done for built-in keywords also?
assuming you meant "built-in functions", no.
> ISTM a standard list of indices could be defined for a particular
> Python version, and code generated to take advantage.
the following PEPs discuss various ways to improve access
to globals (not just builtins):
http://www.python.org/peps/pep-0266.html (skip)
http://www.python.org/peps/pep-0267.html (jeremy)
http://www.python.org/peps/pep-0280.html (guido)
from what I can tell, jeremy's proposal is pretty much a
generalized version of your idea.
</F>
More information about the Python-list
mailing list