Equivalent code to the bool() built-in function

candide candide at free.invalid
Sat Apr 16 19:51:35 EDT 2011


Le 16/04/2011 23:13, Ben Finney a écrit :
> The ‘bool’ built-in is not a function.
>> >>> type(bool)
> <type 'type'>
>
Oops, unfortunate confusion!! but built-in types and built-in functions 
are sometimes so similar from the user's point of view ;)
All the same, you can notice that the official documentation describes 
bool() as a built-in function, cf. 
http://docs.python.org/library/functions.html


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /