0 == False but [] != False?

Donn Cave donn at u.washington.edu
Thu May 24 13:10:15 EDT 2007


In article <1179983482.452458.188690 at q66g2000hsg.googlegroups.com>,
 Paul McGuire <ptmcg at austin.rr.com> wrote:

> This has *got* to rank up there among the VFAQ's of them all, along
> with the mysterious shared default empty list argument.  I think this
> particular question has been asked in one form or another at least
> twice a week for the past month!

Anyone who finds this surprising, might enjoy reading this
article from the time several years ago when the feature
was being considered.  When you have some time - it's long,
but interesting.  The present confusion is more directly
addressed towards the end.  Yes, it's the Laura Creighton
article again:

http://groups.google.com/group/comp.lang.python/msg/2de5e1c8384c0360

   Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list