py_internals – Python internals

This module provides a dictionary that describes the internals of carious python versions. It is used in various parts of pwnypack ( pwnypack.bytecode and pwnypack.pickle).

Please note that this module is automatically generated by the build_py_internals.py script.

pwnypack.py_internals.get_py_internals(version=None, default=None)[source]

Given a version specification. It can be any dict which is returned verbatim, an index into PY_INTERNALS or None.

Parameters:
  • version – The python version to return the internals of.
  • default – The python version that will be looked up if version is None.
Returns:

The python internals for the requested version.

Return type:

dict

pwnypack.py_internals.PY_26 = {...}

This dictionary describes the internals of CPython 2.6.

pwnypack.py_internals.PY_27 = {...}

This dictionary describes the internals of CPython 2.7.

pwnypack.py_internals.PY_30 = {...}

This dictionary describes the internals of CPython 3.0.

pwnypack.py_internals.PY_31 = {...}

This dictionary describes the internals of CPython 3.1.

pwnypack.py_internals.PY_32 = {...}

This dictionary describes the internals of CPython 3.2.

pwnypack.py_internals.PY_33 = {...}

This dictionary describes the internals of CPython 3.3.

pwnypack.py_internals.PY_34 = {...}

This dictionary describes the internals of CPython 3.4.

pwnypack.py_internals.PY_35 = {...}

This dictionary describes the internals of CPython 3.5.

pwnypack.py_internals.PY_INTERNALS = {26: PY_26, 27: PY_27, 30: PY_30, 31: PY_31, 32: PY_32, 33: PY_33, 34: PY_34, 35: PY_35}

This dictionary describes the internals of various python versions.