Creating True Global Functions by Modifying Builtins

Kamilche klachemin at home.com
Thu Jun 10 16:04:26 EDT 2004


Peter Hansen <peter at engcorp.com> wrote in message news:<45adnQYny6eOzFrdRVn-sw at powergate.ca>...

> The only time I've found a valid reason to stick stuff in __builtin__
> is when trying to make current code *forward compatible* with newer
> versions of Python, such as when bool() and True/False where added
> in 2.2 (?) and we had to stick with 2.0.
> 


Um , that's a good idea, even in version 2.3. I don't know how many
times I've written 'true' instead of True. I think that deserves a
place in the globals file.



More information about the Python-list mailing list