[Python-Dev] For review: PEP 285: Adding a bool type

Samuele Pedroni pedroni@inf.ethz.ch
2002年3月11日 00:23:02 +0100


Oops, silly me!
From: Samuele Pedroni <pedroni@inf.ethz.ch>
> Although it was not said so explicitly, my design exercise
> related to Jython shows that probably a lot of Jython user code
> will still preserve many:
>> jbean.beanProp = 1
>> where 1 would be better written as True.
>
Obvisiouly the same problem exists for the flags in
the all pre-exiting Python code, and all the
 = 0
 = 1
there. And it seems Guido does not care about that.
regards.

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