New issue 3001: codecs.decode() unexpected interpreter error https://bitbucket.org/pypy/pypy/issues/3001/codecsdecode-unexpected-interpreter-error
abara_kedavra: import codecs 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) _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue