STINNER Victor <vstinner at python.org> added the comment: I created GH-31218 which basically restores Python 3.10 code but enhances the test. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue46668> _______________________________________