[Python-Dev] PEP 329: Treating Builtins as Constants inthe
Standard Library
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Apr 19 20:13:54 EDT 2004
"Phillip J. Eby" <pje at telecommunity.com>:
> It's already backwards-incompatible. Currently, you can change the
> behavior of a module by modifying its attributes. A module that uses this
> binding approach is immune to changes in its globals. This is a
> *seriously* backward incompatible change, as it essentially disallows
> monkeypatching.
This suggests that there should be some way of disabling
the optimisation from *outside* the module. Not sure what
that would be, though.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list