PEP 285: Adding a bool type

Kirill Simonov kirill_simonov at mail.ru
Sun Mar 31 18:43:09 EST 2002


* Martin v. Loewis <martin at v.loewis.de>:
> Can you show examples of (real!) code that will break? Preferably code
> you've written yourself.

The changes will break the code like this:

if type(arg) == type(''):
    ...
elif type(arg) == type(0):
    ...

You can find such code even in the standard library.


-- 
xi




More information about the Python-list mailing list