Coding style

dwelch91 donald.welch at hp.com
Mon Jul 17 13:27:06 EDT 2006


tac-tics wrote:
> 
> I'd say the second one. Empty lists are not false. They are empty. Long
> live dedicated boolean data types.
> 
Uh, no, empty lists are False in a boolean context:

http://docs.python.org/lib/truth.html

-Don



More information about the Python-list mailing list