This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients gvanrossum, rhettinger
Date 2008-07-02.23:06:52
SpamBayes Score 0.29604167
Marked as misclassified No
Message-id <1215040014.35.0.00933223845259.issue3263@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-07-02 23:06:54rhettingersetspambayes_score: 0.296042 -> 0.29604167
recipients: + rhettinger, gvanrossum
2008-07-02 23:06:54rhettingersetspambayes_score: 0.296042 -> 0.296042
messageid: <1215040014.35.0.00933223845259.issue3263@psf.upfronthosting.co.za>
2008-07-02 23:06:53rhettingerlinkissue3263 messages
2008-07-02 23:06:52rhettingercreate