Summary
This is a tracking issue for the remaining large bytecode parity gaps in tracked stdlib/test files after the
LOAD_SMALL_INT direct parity work. Most of these are expected to collapse as the root-cause issues for CFG
normalization, slice folding, borrow opcode selection, and PEP 695/annotation code generation are fixed.
Current high-diff tracked files
Lib/test/test_buffer.py
Lib/test/test_dis.py
Lib/test/test_math.py
Lib/test/test_tarfile.py
Lib/test/test_typing.py
Lib/test/test_annotationlib.py
Lib/test/test_type_aliases.py
Lib/dataclasses.py
Lib/test/test_codecs.py
Lib/test/test_inspect/test_inspect.py
Representative hot spots
test_buffer.py::TestBufferProtocol.*
test_math.py::MathTests.testFsum
test_math.py::MathTests.testSumProd
test_math.py::MathTests.test_sumprod_stress
dataclasses.py::_process_class
test_tarfile.py extraction / write / context-manager helpers
Policy
Do not paper over these diffs with file-specific hacks in Lib/. Fix them through shared compiler structure
so that multiple files collapse at once.
Done when
The file list above drops out of the top compare_bytecode.py report as the root-cause issues are fixed, and
tracked stdlib/test files converge toward CPython without special-case patches.
Summary
This is a tracking issue for the remaining large bytecode parity gaps in tracked stdlib/test files after the
LOAD_SMALL_INTdirect parity work. Most of these are expected to collapse as the root-cause issues for CFGnormalization, slice folding, borrow opcode selection, and PEP 695/annotation code generation are fixed.
Current high-diff tracked files
Lib/test/test_buffer.pyLib/test/test_dis.pyLib/test/test_math.pyLib/test/test_tarfile.pyLib/test/test_typing.pyLib/test/test_annotationlib.pyLib/test/test_type_aliases.pyLib/dataclasses.pyLib/test/test_codecs.pyLib/test/test_inspect/test_inspect.pyRepresentative hot spots
test_buffer.py::TestBufferProtocol.*test_math.py::MathTests.testFsumtest_math.py::MathTests.testSumProdtest_math.py::MathTests.test_sumprod_stressdataclasses.py::_process_classtest_tarfile.pyextraction / write / context-manager helpersPolicy
Do not paper over these diffs with file-specific hacks in
Lib/. Fix them through shared compiler structureso that multiple files collapse at once.
Done when
The file list above drops out of the top
compare_bytecode.pyreport as the root-cause issues are fixed, andtracked stdlib/test files converge toward CPython without special-case patches.