[pypy-issue] Issue #2972: simplified codecs not accepting error arguments (pypy/pypy)

Carl Friedrich Bolz-Tereick issues-reply at bitbucket.org
Mon Mar 11 09:50:58 EDT 2019

New issue 2972: simplified codecs not accepting error arguments

Carl Friedrich Bolz-Tereick:

It seems there is code in the wild that registers codecs that don't accept an error argument at all:


(reported here: https://twitter.com/patthemav/status/1102059893438246912 )

The attached file reproduces the problem. CPython seems to have complicated logic to actually not pass a second argument in some cases (see ``Python/codecs.c``).

More information about the pypy-issue mailing list