Python from Wise Guy's Viewpoint
Frode Vatvedt Fjeld
frodef at cs.uit.no
Tue Oct 21 14:31:15 EDT 2003
"Terry Reedy" <tjreedy at udel.edu> writes:
> [..] For even faster runtime 'name lookup' an implementation may
> represent names as slot numbers (indexes) for a hiddem, non-Python
> array. CPython does this (with C pointer arrays) for function
> locals whenever the list of locals is fixed at compile time, which
> is usually. (To prevent this optimization, add to a function body
> something like 'from mymod import *', if still allowed, that makes
> the number of locals unknowable until runtime.) [..]
This certainly does not ease my worries over Pythons abilities with
respect to interactivity and dynamism.
--
Frode Vatvedt Fjeld
More information about the Python-list
mailing list