You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add show_positions keyword argument to dis.dis and related functions #123165
dis.dis is a useful debugging tool when trying to debug minor bytecode compiler errors.
However it lacks one important feature, the ability to see the exact positions attached to instructions. It can only show line numbers.
We should add a show_positions keyword argument to show positions.
For example, the function:
Activity
markshannon commentedon Aug 20, 2024
@iritkatriel
picnixz commentedon Aug 20, 2024
Since it's marked as an
easyfeature, could I perhaps work on this? (I took upon the task of doing it, so it will be ready in a few hours I think)gh-123165: make `dis` functions render positions on demand (#123168)
pythongh-123165: make `dis` functions render positions on demand (pyt…
gh-123165: correct tests for `dis.dis(func, show_positions=True)` (#1…
gh-123165: update docs signature for `dis.disassemble` (#123808)