New submission from Raymond Hettinger <[EMAIL PROTECTED]>: In the Hashable ABC, there is a peculiar code fragment:
if "__hash__" in B.__dict__: if B.__dict__["__hash__"]: return True break When would the innermost if-statement ever be False? Is there a reason to define __hash__ to be something that evaluates to False? ---------- assignee: gvanrossum messages: 69140 nosy: gvanrossum, rhettinger severity: normal status: open title: Odd code fragment in ABC definitions versions: Python 2.5, Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3263> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com