Releases: rocky/python-xasm
Releases · rocky/python-xasm
BSides NYC 2025 - take 2
BSides NYC 2025
- Repackage for Python 3.11 and poetry. I can't describe what thrill it gives me to have to do this every few years.
- Correct bug respecting
create_codeAPI Fixes #24 - More explicit comments. Add some
##comments. Document module and method information better. decode_linotab()is nowdecode_lineno_tab_oldto make it clear that this routine works for versions before 3.10.- Avoid using
asm.code.to_native()for now, since there are bugs. - Handle numeric labels better.
- Adjust field name
co_linetablefor bytecode after 3.10. - Warn if duplicate line numbers are seen and the assembler is before bytecode for 3.10
- Improve
EXTENDED_ARGhandling and creation. - If Python bytecode is not set, complain and exit.
- Detect and handle line numbers on instructions
- Add a check for the last instruction being either a
RETURN_VALUE, orRERAISE, orRAISE_VARARGS - Offsets in bytecode for 3.10 need to be divided by two
- Lint code a little