Argument of the bool function

candide candide at free.invalid
Sun Apr 10 08:54:50 EDT 2011

Le 08/04/2011 18:41, Benjamin Kaplan a écrit :

> bool(x=5) is just passing the value 5 as the argument "x" to the function.

Anyway, passing x as a keyword argument to the bool function appears to 
be very rare : i did a regexp search for about 30000 source-code Python 
files (among them official Python source-code, Django, Sphinx, Eric 
source-code and many more sources of valuable Python code) and I didn't 
find even one.

More information about the Python-list mailing list