[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
https://bitbucket.org/pypy/pypy/issues/2972/simplified-codecs-not-accepting-error

Carl Friedrich Bolz-Tereick:

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

https://github.com/modoboa/modoboa/blob/master/modoboa/lib/imap_utf7.py#L74

(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