Is there a boolean(somestring) equivalent of int(somestring).bool('false') -> True

Robert Brewer fumanchu at amor.org
Mon Apr 12 00:27:41 EDT 2004


Vineet Jain wrote:
> How can anyone argue that
> 
> bool('false') = True
> 
> is more natural (and what you would expect) than
> 
> bool('false') = False

In exactly the same way that I expect:

bool("Ce n'est pas une bool") = True


FuManChu




More information about the Python-list mailing list