Jonathan Lange wrote:

> On 2/23/07, Neal Becker <[EMAIL PROTECTED]> wrote:
>> >>> bool ('False')
>> True
>>
> 
> Non-empty strings are considered True, empty strings are considered
> False. This is not a wart, as the behaviour matches that of other
> sequences.
> 

Well consider this:
>>>str (4)
'4'
>>>int(str (4))
4
>>>str (False)
'False'

>>>bool(str(False))
True

Doesn't this seem a bit inconsisent?

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to