PEP 285: Adding a bool type

Martin v. Loewis martin at v.loewis.de
Mon Apr 1 10:30:23 EST 2002


Gustavo Niemeyer <niemeyer at conectiva.com> writes:

> I hope nobody is planning to change "return None" to "return False".
> This would break a lot of code doing "ret == None".

It depends on the function, I guess. If the function conceptually
returns a bool, the return value should not be None.

However, I haven't found a case where a function returns None, yet
conceptually returns a bool - atleast not in the standard library.

Regards,
Martin





More information about the Python-list mailing list