[issue31398] TypeError: gdbm key must be string, not unicode

R. David Murray report at bugs.python.org
Sat Sep 9 13:26:11 EDT 2017


R. David Murray added the comment:

In python3, u"a" and "a" are the same thing.  The equivalent in python3 would bee b"a" vs "a", but I have no idea if we even support bytes keys in python3 gdbm.

In 2.7 does has_key(u"x") work if x is a valid key?

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31398>
_______________________________________


More information about the Python-bugs-list mailing list