Python IS slow ! [was] Re: Python too slow for real world
Randall Hopper
aa8vb at vislab.epa.gov
Fri Apr 30 08:08:05 EDT 1999
Christian Tismer:
|Terry Reedy wrote:
|> A batch-mode optimizer analyzing an entire file (module) should be able to
|> detect whether or not function names are rebound.
|>
|> Perhaps module bindings should be considered immutable from outside the
|> module unless explicitly declared otherwise.
|
|I'm thinking of no new keyword, but a mechanism which allows me to lock a
|namespace somehow.
I like this idea in concept. Though I would prefer a way to have
namespaces "lock by default". Examples: After a class definition, the
class function dictionary is locked. After a module is fully read, all
references are bound and the module namespace is locked. etc.
Randall
More information about the Python-list
mailing list