| |
comp.lang.python |
On May 23, 11:53 pm, Rajarshi <rajarshi.g...@gmail.com> wrote: > >>> 0 == False > True > But, I know I can use [] to represent False as in > >>> if not []: print 'empty' > ... > But then doing the following gives a surprising (to me!) result > >>> [] == False > False > Could anybody point out why this is the case? > Thanks, -- Paul
> represent False. So
> empty
> Rajarshi
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!