[Python-Dev] Boolean transition (original) (raw)

Samuele Pedroni pedroni@inf.ethz.ch
Mon, 11 Mar 2002 03:38:58 +0100


From: Samuele Pedroni <pedroni@inf.ethz.ch>

if : ... etc

Which correspond to the idioms:

if counter: ...

if flag: ...

which ideally should change even with the proposal

to have type(flag) is bool

if bit: if bits&bitmasks: ...

etc.

regards.