]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-102676: Add more convenience properties to `dis.Instruction` (#103969)
authorTomas R <tomas.roun8@gmail.com>
Sun, 11 Jun 2023 15:50:34 +0000 (17:50 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 15:50:34 +0000 (08:50 -0700)
commit18d16e93b6d4b7b10c5145890daa92b760fe962a
treedec14b77f5706ef22385894eec6fc737ea2f4944
parent845e593c4ec97dd9f73b50536c1e1e7ed10ceecd
gh-102676: Add more convenience properties to `dis.Instruction` (#103969)

Adds start_offset, cache_offset, end_offset, baseopcode,
baseopname, jump_target and oparg to dis.Instruction.

Also slightly improves the disassembly output by allowing
opnames to overflow into the space reserved for opargs.
Doc/library/dis.rst
Lib/dis.py
Lib/test/test_dis.py
Misc/NEWS.d/next/Library/2023-04-28-09-31-21.gh-issue-102676.J8qDRa.rst [new file with mode: 0644]