bpo-45759: Re: Better error messages for non-matching 'elif'/'else' statements by thatbirdguythatuknownot · Pull Request #29775 · python/cpython
Ah, right of course, VS code showed me a confusing view of differences, but Git showed the correct one.
I have tried to compile and got:
Traceback (most recent call last):
File "/home/me/Documents/GitHub/cpython/./Tools/scripts/deepfreeze.py", line 1, in
import argparse
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/argparse.py", line 89, in
import re as _re
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/init.py", line 125, in
from . import _compiler, _parser
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/_compiler.py", line 18, in
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: SRE module mismatch
...
make: *** [Makefile:1106: Python/deepfreeze/site.c] Error 1
make: *** [Makefile:1079: Python/deepfreeze/abc.c] Error 1
make: *** [Makefile:1100: Python/deepfreeze/posixpath.c] Error 1
make: *** [Makefile:1085: Python/deepfreeze/io.c] Error 1
make: *** [Makefile:1097: Python/deepfreeze/ntpath.c] Error 1
make: *** [Makefile:1112: Python/deepfreeze/hello.c] Error 1
make: *** [Makefile:1115: Python/deepfreeze/phello.c] Error 1
...
AssertionError: SRE module mismatch
make: *** [Makefile:1121: Python/deepfreeze/phello.ham.eggs.c] Error 1
make: *** [Makefile:1118: Python/deepfreeze/phello.ham.c] Error 1
make: *** [Makefile:1124: Python/deepfreeze/phello.spam.c] Error 1
Traceback (most recent call last):
File "/home/me/Documents/GitHub/cpython/./Tools/scripts/deepfreeze.py", line 1, in
import argparse
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/argparse.py", line 89, in
import re as _re
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/init.py", line 125, in
from . import _compiler, _parser
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/_compiler.py", line 18, in
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: SRE module mismatch
make: *** [Makefile:1127: Python/deepfreeze/frozen_only.c] Error 1
Then tried:
! ~/D/G/cpython patch-10 $ make regen-pegen
PYTHONPATH=./Tools/peg_generator python3.11 -m pegen -q c
./Grammar/python.gram
./Grammar/Tokens
-o ./Parser/parser.new.c
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/me/Documents/GitHub/cpython/Tools/peg_generator/pegen/main.py", line 8, in
import argparse
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/argparse.py", line 89, in
import re as _re
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/init.py", line 125, in
from . import _compiler, _parser
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/_compiler.py", line 18, in
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: SRE module mismatch
make: *** [Makefile:1353: regen-pegen] Error 1
I note that none of the build bots have run.
I am using Fedora 5.18.5-200.fc36.x86_64 and
./configure --with-pydebug
make -s -j