[Python-Dev] Boolean transition (original) (raw)
Samuele Pedroni pedroni@inf.ethz.ch
Mon, 11 Mar 2002 05:30:11 +0100
- Previous message: [Python-Dev] Boolean transition
- Next message: [Python-Dev] Boolean transition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Paul Prescod <paul@prescod.net>
Catching errors is also a benefit of separating any two types.
Yes, but my implicit point was that if you're serious about this you should find some way beyond good-will, to enforce the change from 0/1 to True/False in all new and old code.
Otherwise your benefit is negligible or you should use a lot of bool() to avoid the progation of the evil 0/1 that are flags and could mix with integers that are integers.
From my observatory I don't see the danger of the evil propagation, just the 0/1/True/False confusion, but I already left that issue to Guido's taste.
regards.
- Previous message: [Python-Dev] Boolean transition
- Next message: [Python-Dev] Boolean transition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]