Path to this page:
./
devel/py-xdis,
Python cross-version byte-code disassembler and marshal routines
Branch: pkgsrc-2019Q2,
Version: 4.0.2,
Package name: py37-xdis-4.0.2,
Maintainer: pkgsrc-usersThe Python dis module allows you to disassemble bytecode from the same version
of Python that you are running on. But what about bytecode from different
versions?
That's what this package is for. It can "marshal load" Python bytecodes from
different versions of Python. The command-line routine pydisasm will show
disassembly output using Python 3.6 disassembly conventions.
Also, if you need to modfiy and write bytecode, the routines here can be of
help. There are routines to pack and unpack the read-only tuples in Python's
Code type. For interoperability between Python 2 and 3 we provide our own
versions of the Code type, and we provide routines to reduce the tedium in
writing a bytecode file.
This package also has an extensive knowledge of Python bytecode magic numbers,
including Pypy and others, and how to translate from sys.sys_info major, minor,
and release numbers to the corresponding magic value.
So If you want to write a cross-version assembler, or a bytecode-level
optimizer this package may also be useful. In addition to the kinds of
instruction categorization that dis offers, we have additional categories for
things that would be useful in such a bytecode optimizer.
Required to run:[
lang/py-six] [
lang/python37] [
devel/py-setuptools] [
devel/py-click]
Required to build:[
pkgtools/cwrappers]
Master sites:
SHA1: 1111600d0c45962d561e439e3644f035741ce5cd
RMD160: 6e5f3572f61cdc869b1135a5074f02b217b0705c
Filesize: 179.467 KB
Version history: (Expand)
- (2019-07-04) Package added to pkgsrc.se, version py37-xdis-4.0.2 (created)