[Python-Dev] PEP 329: Treating Builtins as Constants in the Standard Library (original) (raw)

Skip Montanaro skip at pobox.com
Mon Apr 19 11:23:34 EDT 2004


Phillip wrote:

> I'm not sure I understand the reasoning for implementing this via a
> bytecode hack, rather than in the compiler or loading mechanisms.  

This sort of stuff is a lot easier to experiment with in Python. If it stabilizes and you figure out a way to decide whether to transform functions automatically then sure, it belongs in the compiler or an optimizer of some sort.

Skip



More information about the Python-Dev mailing list