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

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


From: Ka-Ping Yee <ping@lfw.org>
> Will people waste time on silly arguments about "thou shalt change
> thy code to the One True/False Style, because it is the Proper Way"
> vs. "but 0/1 works and it's less typing and i don't want to bother"?
> Will programmers expend a bunch of effort editing their code to
> work the new way -- effort that could have been better spent fixing
> and improving their programs? (Instantiate the preceding question
> with programmers := Python-developers and programs := Python
> standard library.)

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.
regards.

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