string literal or NoneType

castironpi at gmail.com castironpi at gmail.com
Sun Mar 16 02:44:01 EDT 2008


> > | hi all
> > | i want to check a condition and if true should return a filename
> > | string  from a list.if the condition is false i am returning a
> > | ""  (string literal)..

Identity is the strictest test, and you can't define your own.  Lots
of things can evaluate to True.  Only None is None.  Does that help?



More information about the Python-list mailing list