Equivalent code to the bool() built-in function

candide candide at free.invalid
Sun Apr 17 01:51:35 CEST 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. 

More information about the Python-list mailing list