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 siming85
Recipients r.david.murray, siming85
Date 2018-05-01.03:17:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525144645.22.0.682650639539.issue33395@psf.upfronthosting.co.za>
In-reply-to
Content
having a tough time trying to reproduce this issue in pure python.

any clue as to how to create a __repr__ that's unhashable?

class UnhashableRepr(dict):
    __repr__ = _testcapi.instancemethod(dict.__repr__)

doesn't work because that turns into a <slot wrapper '__repr__' of 'dict' objects> which becomes hashable.

i'd love to provide a patch, seems trivial to fix, but wouldn't want to do so without some tests.
History
Date User Action Args
2018-05-01 03:17:25siming85setrecipients: + siming85, r.david.murray
2018-05-01 03:17:25siming85setmessageid: <1525144645.22.0.682650639539.issue33395@psf.upfronthosting.co.za>
2018-05-01 03:17:25siming85linkissue33395 messages
2018-05-01 03:17:24siming85create