PEP 285: Adding a bool type

Emile van Sebille emile at fenx.com
Wed Apr 3 07:40:27 EST 2002


John Roth
> Maybe my post in response didn't propagate? As I said in that
> post, the root of her problem is a poorly chosen name for the
> function. If she paid attention to constructing the name properly,
> it would come out as something like "numberOfLeapDays"
> rather than "isLeapYear", and there would be **no**
> instructional issue.
>

Your post propagated here -- I just assumed you referred to Guido's
original reference to continuing to allow things like isLeapYear and not
Laura's reuse of it.  From the PEP:

Minor additional issues:

    4) Should we strive to eliminate non-Boolean operations on bools
       in the future, through suitable warnings, so that for example
       True+1 would eventually (in Python 3000) be illegal.
       Personally, I think we shouldn't; 28+isleap(y) seems totally
       reasonable to me.



--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list