PEP 285: Adding a bool type

Mark McEahern marklists at mceahern.com
Wed Apr 3 08:49:17 EST 2002


[John Roth]
> He saw it. His response was that Laura's article was FUD.
> My take on it is that the root of her problem is a poorly
> chosen name - there would be exactly **no** pedagogical
> issue if the function was named "numberOfLeapDays()"
> instead of "isLeapYear()"

I thought she was trying to make the stronger point that even without PEP
285, any function that is designed to return true/false (1/0) is badly
designed.  Moreover, PEP 285 would only encourage people to write such
functions.

Does that apply to, say, isinstance()?

// mark





More information about the Python-list mailing list