[Python-Dev] Boolean transition

Samuele Pedroni pedroni@inf.ethz.ch
2002年3月11日 03:38:58 +0100


From: Samuele Pedroni <pedroni@inf.ethz.ch>
>> if <number>: ... 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.

AltStyle によって変換されたページ (->オリジナル) /