KeyWeeUsr/python-dis3

Fork of a nuked dis3 Python module

★ 1Forks 1PythonGitHub ↗Compare

Project website ↗

dis3disassemblerpyinstallerpythonpython-dis3

README

dis3

dis3 is a Python 2.7 backport of the dis module from Python 3.5.

Documentation

See the Python 3 dis module documentation.

Caveats

Strings

Python 2 and Python 3 handle strings differently. The dis3 module follows the Python 3 convention and interprets str as bytes. Use unicode where the docs specify a "string"; you will not get the expected result if you pass a str of source code.

Keyword-only Parameters

Python 2 has no concept of keyword-only parameters, so those parameters have been changed to standard keyword parameters. For instance:

  • dis.dis(x=None, file=None)

Bytecode Instructions

See the Python 2 dis module documentation for the list of bytecode instructions actually used in Python 2.

History

See CHANGELOG.md.

Contributing

By contributing to this project, you agree to release your contributions under the same license terms as this project.

See CONTRIBUTING.md.

License

MIT / PSF. See LICENSE.

Contributors

KeyWeeUsrtoddrme2178

Issues