and-google at doxdesk.com
Sat Apr 26 09:47:55 CEST 2003
A. Lloyd Flanagan <alloydflanagan at attbi.com> 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.
mailto:and at doxdesk.com
More information about the Python-list