[Python-Dev] bool conversion wart? (original) (raw)
Jonathan Lange jml at mumak.net
Fri Feb 23 02:08:29 CET 2007
- Previous message: [Python-Dev] bool conversion wart?
- Next message: [Python-Dev] bool conversion wart?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/23/07, Neal Becker <ndbecker2 at gmail.com> 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.
cheers, jml
- Previous message: [Python-Dev] bool conversion wart?
- Next message: [Python-Dev] bool conversion wart?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]