[Python-Dev] PEP 329: Treating Builtins as Constants inthe Standard Library (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Mon Apr 19 20:13:54 EDT 2004
- Previous message: [Python-Dev] PEP 329: Treating Builtins as Constants inthe Standard Library
- Next message: [Python-Dev] PEP 329: Treating Builtins as Constants inthe Standard Library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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 +--------------------------------------+
- Previous message: [Python-Dev] PEP 329: Treating Builtins as Constants inthe Standard Library
- Next message: [Python-Dev] PEP 329: Treating Builtins as Constants inthe Standard Library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]