[Python-Dev] peps 329, 266, 267

Skip Montanaro skip at pobox.com
Wed Apr 21 17:36:25 EDT 2004

    Phillip> Please note that:

    Phillip> 1. None of this is needed in order to optimize builtins.  Names
    Phillip>    that are unambiguously builtins can and should be optimized
    Phillip>    at compile time.  Names that are ambiguous can use the
    Phillip>    existing semantics, and nothing further need be done.

Because module A can modify module B's namespace at runtime the compiler
can't tell whether an access to len() will get the builtin or a shadow
version.  For the above to be true the semantics of modules will have to be


More information about the Python-Dev mailing list