[pypy-issue] Issue #3001: codecs.decode() unexpected interpreter error (pypy/pypy)
issues-reply at bitbucket.org
Wed Apr 17 08:01:55 EDT 2019
New issue 3001: codecs.decode() unexpected interpreter error
bytes = codecs.decode(string, "hex")
"TypeError: 'hex' decoder returned 'bytes' instead of 'str'; use codecs.decode() to decode to arbitrary types"
But it must return bytes, and I expect bytes (?!) This is not a type error. Can someone explain why this is happening? There is no such problem with CPython. (+ Ubuntu 18.04 / PyCharm)
More information about the pypy-issue