PEP 285: Adding a bool type

Peter Hansen peter at engcorp.com
Sun Mar 31 09:07:57 EST 2002


"Martin v. Loewis" wrote:
> 
> Peter Hansen <peter at engcorp.com> writes:
> > If the documentation must be changed, why not just make it clear in
> > the documentation what it means when a method returns 1 or 0 or
> > None?
> 
> The documentation already says that. However "If the section in fact
> existed, return 1.  Otherwise return 0." leads to the question "why
> aren't you returning a boolean value?", to which the answer is
> "because they are not supported in the language".

Heh... I thought the answer was "we _are_ returning a boolean 
value, but they're spelled 1 and 0 in Python".

-Peter



More information about the Python-list mailing list