Jeong, YunWon
c57f4decd5
Fix test_code: compiler and code object improvements
...
- Add CO_NESTED flag (0x10) for nested function scopes
- Emit LOAD_SMALL_INT for integers 0..=255 instead of LOAD_CONST
- Eliminate dead constant expression statements (no side effects)
- Ensure None in co_consts for functions with no other constants
- Add code.__replace__() for copy.replace() support
- Mark test_co_lnotab and test_invalid_bytecode as expectedFailure
2026-03-17 10:54:12 +09:00
Jeong, YunWon
47c2acd40e
Fix code_offset_to_line handling
2026-03-16 15:25:29 +09:00
CPython Developers
2b06a0b172
Upgrade test_code from CPython 3.14.3
2026-03-16 15:25:29 +09:00
Jeong, YunWon
e79a1a1a66
Fix traceback ( #6569 )
...
* Fix traceback
* Update traceback from CPython 3.13.11
* unmark test_traceback
* fix code
* fix debug range
* fix tests
2025-12-30 16:58:53 +09:00
Jeong, YunWon
f22aed2614
Fix PyCode constructor/replace ( #6193 )
...
* Fix PyCode constructor
* Reuse MarshalError
2025-10-22 21:09:42 +09:00
Jeong, YunWon
b666c52df9
code object linetable ( #6150 )
...
* Code.replace
* implement linetable
2025-09-16 21:49:54 +09:00
Jeong, YunWon
18d7c1baf1
codeobj.qualname ( #5929 )
2025-07-10 10:27:03 +09:00
Blues-star
572053df82
est_co_lnotab_is_deprecated, 'test_invalid_bytecode' and est_code_hash_uses_bytecode test exceptions, add TODO
2024-02-19 20:30:06 +08:00
Blues-star
def5661728
Update test_code.py from CPython v3.12.0
2024-02-19 20:13:59 +08:00
zhangbl
0fbe57f96b
Update test_code.py code.py from CPython v3.11.
2023-08-27 02:13:11 +09:00
Gyubong
a6c07bc58f
Update test_code.py from CPython v3.12.0a0
2022-10-04 10:55:13 +09:00