bool constructor is inconsistent?

Emile van Sebille emile at fenx.com
Fri Sep 10 20:36:14 CEST 2010


On 9/10/2010 11:23 AM Neal Becker said...
> IN [3]: bool('False')
> Out[3]: True
>
> In [4]: int('32')
> Out[4]: 32
>



 >>> eval('False')
False
 >>> eval('32')
32
 >>>


Otherwise, 'False' is just a string?

Emile




More information about the Python-list mailing list