Steve Stagg <stest...@gmail.com> added the comment: This was also fixed by bpo-42500, in commit 4e7a69bdb6 === user@obsidian ~/t/f/cpython ((93a0ef76…))> git checkout 4e7a69bd^ HEAD is now at 93a0ef7647 Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609) + make distclean + CFLAGS=-O0 + ./configure --prefix=/home/user/prefix --exec-prefix=/home/user/prefix --cache-file=../config.cache --with-pydebug --without-ensurepip + CFLAGS=-O0 + make -j8 install /home/user/cpython/Lib/runpy.py:111: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ __import__(pkg_name) /home/user/cpython/Lib/runpy.py:111: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ __import__(pkg_name) ++ realpath /home/user/prefix/include/python3.10d/ + INCLUDE_DIR=/home/user/prefix/include/python3.10d + set +e + PYTHONHOME=/home/user/prefix + /home/user/prefix/bin/python3 ../test.py Traceback (most recent call last): File "/home/user/cpython/../test.py", line 5, in foo 1/0 ZeroDivisionError: division by zero Traceback (most recent call last): File "/home/user/cpython/../test.py", line 5, in foo 1/0 ZeroDivisionError: division by zero ... File "/home/user/cpython/../test.py", line 10 in foo File "/home/user/cpython/../test.py", line 10 in foo ... ../test.sh: line 33: 384713 Aborted (core dumped) PYTHONHOME=$PREFIX $EPREFIX/bin/python3 ../test.py + RESULT=134 + [[ 134 -eq 139 ]] + [[ 134 -eq 134 ]] + exit 1 ==== user@obsidian ~/t/f/cpython ((93a0ef76…)) [1]> git checkout 4e7a69bd Previous HEAD position was 93a0ef7647 Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609) HEAD is now at 4e7a69bdb6 bpo-42500: Fix recursion in or after except (GH-23568) ==== user@obsidian ~/t/f/cpython ((4e7a69bd…))> ../test.sh + make distclean + CFLAGS=-O0 + ./configure --prefix=/home/user/prefix --exec-prefix=/home/user/prefix --cache-file=../config.cache --with-pydebug --without-ensurepip + CFLAGS=-O0 + make -j8 install /home/user/cpython/Lib/runpy.py:111: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ __import__(pkg_name) /home/user/cpython/Lib/runpy.py:111: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ __import__(pkg_name) + /home/user/prefix/bin/python3 ../test.py Traceback (most recent call last): File "/home/user/cpython/../test.py", line 5, in foo 1/0 ... File "/home/user/cpython/../test.py", line 10, in foo foo() File "/home/user/cpython/../test.py", line 10, in foo foo() [Previous line repeated 996 more times] RecursionError: maximum recursion depth exceeded + RESULT=1 + [[ 1 -eq 139 ]] + [[ 1 -eq 134 ]] + exit 0
---------- nosy: +stestagg _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42652> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com