Object type problem
Nathan Froyd
froydnj at rose-hulman.edu
Thu May 11 17:45:18 EDT 2000
In article <391B17EA.97E72E9F at ldis.com>, Jonathan Donald wrote:
>I've tried testing for strng==None, but this doesn't stop the error from
>being reported.
Funny, what version of python are you using? On my version (1.5.2), executing:
str = None
if str == None:
print "duh!"
works just fine. If excuting:
str == None
doesn't give back 1, you might try
str is None
and using that to test instead. I'm sure python gurus will correct me if I'm
wrong.
--
</nathan> froydnj at rose-hulman.edu | http://www.rose-hulman.edu/~froydnj/
More information about the Python-list
mailing list