Automatic, portable optimization of global access

Raymond Hettinger python at rcn.com
Fri Apr 16 07:19:37 EDT 2004


[Paul Rubin] 
> Well, it's possible that builtins get changed too.  I've used "len" as
> a variable a few times without realizing that I was clobbering a builtin.

Paul, I don't know how to say this more clearly.  Don't use constant
binding in places where the underlying values can change.


Raymond



More information about the Python-list mailing list