From: Skip Montanaro <skip@pobox.com>
Replying To: Hans Nowak <wurmy@earthlink.net>
Date: Fri, 8 Mar 2002 12:28:05 -0600
Subject: Re: [Python-Dev] For review: PEP 285: Adding a bool type

    Hans> This may be a minor issue,  but this proposal will break code like

    Hans>   days_feb = 28 + isleapyear(year)
 
    Hans> assuming that booleans cannot be added to ints.  :-)

I don't think this will be a problem.  Guido's proposal is for bool to be a
subclass of int.   Consequently, 28 + True should yield 29 (perhaps with a
warning from PyChecker).

Skip
 

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev