]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37388: Don't check encoding/errors during finalization (GH-19409)
authorVictor Stinner <vstinner@python.org>
Tue, 7 Apr 2020 14:07:42 +0000 (16:07 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 14:07:42 +0000 (16:07 +0200)
commitd8acf0d9aae71d1897e8f91989bd8bfb4a9ef9c6
tree5a5a4189b9908dfce74c24dcc34f512374f85458
parent74e1b6b100719e11471e7e9949465655477926e2
bpo-37388: Don't check encoding/errors during finalization (GH-19409)

str.encode() and str.decode() no longer check the encoding and errors
in development mode or in debug mode during Python finalization. The
codecs machinery can no longer work on very late calls to
str.encode() and str.decode().

This change should help to call _PyObject_Dump() to debug during late
Python finalization.
Misc/NEWS.d/next/Core and Builtins/2020-04-07-15-44-29.bpo-37388.stlxBq.rst [new file with mode: 0644]
Objects/unicodeobject.c