![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: "0 in [True,False]" returns True
From: Duncan Booth <duncan.booth@invalid.invalid>
Date: Tue Dec 13 2005 - 11:28:34 CET
wrote:
>> if the purpose of the return value is to indicate a Boolean rather than
Within Python that would probably be sufficient, but some external
Before Python had a separate boolean type there was an implementation
XMLRPC has its own Boolean class which is used in Python versions where
Another reason to have a boolean type is of course to provide a cast:
def isNameSet(self):
instead of:
def isNameSet(self):
|