returning True, False or None

nghoffma nghoffma at gmail.com
Fri Feb 4 22:38:25 EST 2005


sorry, that should have been:

py>>import sets
py>>def doit(thelist):
...     s = sets.Set(thelist)
...     if  s == sets.Set([None]):
...             return None
...     else:
...             return max(s - sets.Set([None]))




More information about the Python-list mailing list