dis3 is a backport of Python 3.5+'s `dis` module to Python 2.7. It provides the inspection and bytecode disassembly functionality of CPython 3.5+ on legacy Python 2.7. Current version: 0.1.3. Release cadence is slow, primarily for compatibility use cases.
pip install dis3Verified import paths — ran on the pinned version, not inferred.
Basic usage: import dis from dis3 and use it on a function to see bytecode instructions.
Only use dis3 on Python 2.7. On Python 3, use `import dis` directly.
Test thoroughly if relying on specific bytecode attributes.
Refer to Python 2.7 dis documentation for expected behavior differences.
Run `pip install dis3` on Python 2.7. On Python 3, use the built-in `dis` module.
No dependency data recorded yet.