Skip to content

Releases: rocky/python-xasm

BSides NYC 2025 - take 2

17 Oct 18:14

Choose a tag to compare

  • Pass PyPy status to write_pyc.
  • Correct packaging pyc-xasm command-line entry.

BSides NYC 2025

14 Oct 01:14

Choose a tag to compare

  • 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_code API Fixes #24
  • More explicit comments. Add some ## comments. Document module and method information better.
  • decode_linotab() is now decode_lineno_tab_old to 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_linetable for bytecode after 3.10.
  • Warn if duplicate line numbers are seen and the assembler is before bytecode for 3.10
  • Improve EXTENDED_ARG handling 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, or RERAISE, or RAISE_VARARGS
  • Offsets in bytecode for 3.10 need to be divided by two
  • Lint code a little

Nathanman

07 Nov 22:45

Choose a tag to compare

  • Adjust to use xdis 6.0.3 or later
  • start adding .READ directive

65

27 Oct 09:09

Choose a tag to compare

65
  • Fix bugs in cross-assembly bytecode writing
  • Detect PyPy.
  • Add SIP hash field. Fixes #4

1.1.0

27 Apr 02:39

Choose a tag to compare

  • Fix bugs in writing 3.7 and 3.8 pyc
  • Require newer xdis to get fixes to 3.8 pyc marshaling

Still leaves a bit to be desired. (More xdis fixes are needed too). But this is better than 1.0.0.

1.0.0

19 Oct 16:28

Choose a tag to compare

1.0.0 2019-10-19

  • Go over docs.
  • Require newer xdis to get early bytecodes bytecodes: 1.0, 1.1, 1.2, and 1.6.