Andrew Clover and-google at
Sat Apr 26 09:47:55 CEST 2003

A. Lloyd Flanagan <alloydflanagan at> wrote:

> This has the advantage of making True and False look more like builtins.

Interesting. I'm not sure about this; it seems to have the potential to
confuse other, unrelated modules. For example some package might check for
the existence of 'True' to see whether it needs to provide its own boolean
type that's distinguishable from integers. If the builtin is fiddled it
would look like there was a real boolean type but attempts to use it could
fall over. Modules that affect unrelated modules merely by being imported
can be tricky to debug.

Andrew Clover
mailto:and at

More information about the Python-list mailing list