[issue29360] _PyStack_AsDict(): Don't check if all keys are strings nor if keys are unique

Serhiy Storchaka report at bugs.python.org
Tue Jan 24 06:27:07 EST 2017


Serhiy Storchaka added the comment:

Try following keys:

class Key:
    def __eq__(self, other):
        return self is other or random.getrandbits(1)
    def __hash__(self):
        return random.getrandbits(1)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29360>
_______________________________________


More information about the Python-bugs-list mailing list