Proposed PEP: Treating Builtins as Constants in the Standard Library

Skip Montanaro skip at pobox.com
Sun Apr 18 10:20:16 EDT 2004


    rh> Q. Why not make this a public module so that users can optimize
    rh>    builtins or builtins and globals in their own code?

    rh> A. The ASPN recipe [2]_ is provided for this purpose.  It takes a
    rh>    modicum of skill to use correctly and not inadvertently tranform
    rh>    a non-constant.

I thought one of the basic tenets of Python was "we're all adults here".
Programmers have unfettered access to the new module with which they can
wreak havoc.  I don't see this proposal as somehow any more dangerous.

Skip





More information about the Python-list mailing list