Creating True Global Functions by Modifying Builtins

Kamilche klachemin at
Thu Jun 10 22:04:26 CEST 2004

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

> 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