[issue38864] dbm: Can't open database with bytes-encoded filename

John Goerzen report at bugs.python.org
Wed Nov 20 16:07:01 EST 2019


John Goerzen <jgoerzen at users.sourceforge.net> added the comment:

As has been pointed out to me, the surrogateescape method could be used here; however, it is a bit of an odd duckling itself, and the system's open() call accepts bytes; couldn't this as well?

----------

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


More information about the Python-bugs-list mailing list