B
BartlebyScrivener
How do you test for a function that returns nothing, and why doesn't
this work? Shouldn't X have to be either None or not?
.... print "X is None"
.... else:
.... print "X is not None"
....
Thanks,
rick
this work? Shouldn't X have to be either None or not?
.... if x is None:x = None
for x in []:
.... print "X is None"
.... else:
.... print "X is not None"
....
Thanks,
rick