Bruno Desthuilliers wrote: > Shawn Milo a écrit : >> if recs.has_key(piid) is False: > > 'is' is the identity operator - practically, in CPython, it > compares memory addresses. You *dont* want to use it here.
It's recommended to use "is None"; why not "is False"? Are there multiple False instances or is False generated somehow? Regards, Björn -- BOFH excuse #135: You put the disk in upside down. -- http://mail.python.org/mailman/listinfo/python-list