Siming Yuan <[email protected]> added the comment:
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.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33395>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com