├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .pylintrc ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── pycnite ├── __init__.py ├── __version__.py ├── bytecode.py ├── linetable.py ├── magic.py ├── mapping.py ├── marshal.py ├── pyc.py └── types.py ├── pyproject.toml ├── release.sh ├── scripts ├── diff.py └── test.py ├── setup.cfg └── tests ├── __init__.py ├── base.py ├── test_bytecode.py ├── test_linetable.py ├── test_magic.py ├── test_mapping.py ├── test_marshal.py ├── test_pyc.py └── testdata ├── 3.10 ├── basic.cpython-310.pyc ├── complex_exception.cpython-310.pyc ├── exception.cpython-310.pyc ├── flow.cpython-310.pyc ├── generator.cpython-310.pyc ├── genexpr.cpython-310.pyc ├── loop.cpython-310.pyc ├── method_calls.cpython-310.pyc └── trivial.cpython-310.pyc ├── 3.11 ├── basic.cpython-311.pyc ├── complex_exception.cpython-311.pyc ├── exception.cpython-311.pyc ├── flow.cpython-311.pyc ├── generator.cpython-311.pyc ├── genexpr.cpython-311.pyc ├── loop.cpython-311.pyc ├── method_calls.cpython-311.pyc └── trivial.cpython-311.pyc ├── 3.12 ├── basic.cpython-312.pyc ├── complex_exception.cpython-312.pyc ├── exception.cpython-312.pyc ├── flow.cpython-312.pyc ├── generator.cpython-312.pyc ├── genexpr.cpython-312.pyc ├── loop.cpython-312.pyc ├── method_calls.cpython-312.pyc └── trivial.cpython-312.pyc ├── 3.8 ├── basic.cpython-38.pyc ├── complex_exception.cpython-38.pyc ├── exception.cpython-38.pyc ├── flow.cpython-38.pyc ├── generator.cpython-38.pyc ├── genexpr.cpython-38.pyc ├── loop.cpython-38.pyc ├── method_calls.cpython-38.pyc └── trivial.cpython-38.pyc ├── 3.9 ├── basic.cpython-39.pyc ├── complex_exception.cpython-39.pyc ├── exception.cpython-39.pyc ├── flow.cpython-39.pyc ├── generator.cpython-39.pyc ├── genexpr.cpython-39.pyc ├── loop.cpython-39.pyc ├── method_calls.cpython-39.pyc └── trivial.cpython-39.pyc ├── generate.sh └── src ├── basic.py ├── complex_exception.py ├── exception.py ├── flow.py ├── generator.py ├── genexpr.py ├── loop.py ├── method_calls.py └── trivial.py /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/.gitignore -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/.pylintrc -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/README.md -------------------------------------------------------------------------------- /pycnite/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pycnite/__version__.py: -------------------------------------------------------------------------------- 1 | # pylint: skip-file 2 | __version__ = "2024.07.31" 3 | -------------------------------------------------------------------------------- /pycnite/bytecode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pycnite/bytecode.py -------------------------------------------------------------------------------- /pycnite/linetable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pycnite/linetable.py -------------------------------------------------------------------------------- /pycnite/magic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pycnite/magic.py -------------------------------------------------------------------------------- /pycnite/mapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pycnite/mapping.py -------------------------------------------------------------------------------- /pycnite/marshal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pycnite/marshal.py -------------------------------------------------------------------------------- /pycnite/pyc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pycnite/pyc.py -------------------------------------------------------------------------------- /pycnite/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pycnite/types.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/pyproject.toml -------------------------------------------------------------------------------- /release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/release.sh -------------------------------------------------------------------------------- /scripts/diff.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/scripts/diff.py -------------------------------------------------------------------------------- /scripts/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/scripts/test.py -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/setup.cfg -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/base.py -------------------------------------------------------------------------------- /tests/test_bytecode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/test_bytecode.py -------------------------------------------------------------------------------- /tests/test_linetable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/test_linetable.py -------------------------------------------------------------------------------- /tests/test_magic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/test_magic.py -------------------------------------------------------------------------------- /tests/test_mapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/test_mapping.py -------------------------------------------------------------------------------- /tests/test_marshal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/test_marshal.py -------------------------------------------------------------------------------- /tests/test_pyc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/test_pyc.py -------------------------------------------------------------------------------- /tests/testdata/3.10/basic.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/basic.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/complex_exception.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/complex_exception.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/exception.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/exception.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/flow.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/flow.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/generator.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/generator.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/genexpr.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/genexpr.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/loop.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/loop.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/method_calls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/method_calls.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.10/trivial.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.10/trivial.cpython-310.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/basic.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/basic.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/complex_exception.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/complex_exception.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/exception.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/exception.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/flow.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/flow.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/generator.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/generator.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/genexpr.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/genexpr.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/loop.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/loop.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/method_calls.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/method_calls.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.11/trivial.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.11/trivial.cpython-311.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/basic.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/basic.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/complex_exception.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/complex_exception.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/exception.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/exception.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/flow.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/flow.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/generator.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/generator.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/genexpr.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/genexpr.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/loop.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/loop.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/method_calls.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/method_calls.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.12/trivial.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.12/trivial.cpython-312.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/basic.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/basic.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/complex_exception.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/complex_exception.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/exception.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/exception.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/flow.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/flow.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/generator.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/generator.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/genexpr.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/genexpr.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/loop.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/loop.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/method_calls.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/method_calls.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.8/trivial.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.8/trivial.cpython-38.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/basic.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/basic.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/complex_exception.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/complex_exception.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/exception.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/exception.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/flow.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/flow.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/generator.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/generator.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/genexpr.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/genexpr.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/loop.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/loop.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/method_calls.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/method_calls.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/3.9/trivial.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/3.9/trivial.cpython-39.pyc -------------------------------------------------------------------------------- /tests/testdata/generate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/generate.sh -------------------------------------------------------------------------------- /tests/testdata/src/basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/basic.py -------------------------------------------------------------------------------- /tests/testdata/src/complex_exception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/complex_exception.py -------------------------------------------------------------------------------- /tests/testdata/src/exception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/exception.py -------------------------------------------------------------------------------- /tests/testdata/src/flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/flow.py -------------------------------------------------------------------------------- /tests/testdata/src/generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/generator.py -------------------------------------------------------------------------------- /tests/testdata/src/genexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/genexpr.py -------------------------------------------------------------------------------- /tests/testdata/src/loop.py: -------------------------------------------------------------------------------- 1 | for i in range(10): 2 | pass 3 | -------------------------------------------------------------------------------- /tests/testdata/src/method_calls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/method_calls.py -------------------------------------------------------------------------------- /tests/testdata/src/trivial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/pycnite/HEAD/tests/testdata/src/trivial.py --------------------------------------------------------------------------------