[pypy-dev] lib_pypy/_marshal.py looks out of date for Python 3

Rocky Bernstein rb at dustyfeet.com
Sun Jul 9 20:53:31 EDT 2017


A while back, in working on a cross-version python decompiler, I used
PyPy's lib_pypy/_marshal.py.


Recently in doing work in writing a cross-platform a Python bytecode
assember, I noticed what is in the py3.5 branch is a bit out of date for
Python 3.

Specifically these types:

TYPE_REF             = 'r'  # Since 3.4
TYPE_ASCII           = 'a'  # since 3.4
TYPE_ASCII_INTERNED  = 'A'  # since 3.4
TYPE_SMALL_TUPLE     =  ')' # since 3.4
TYPE_SHORT_ASCII     = 'z'  # since 3.4
TYPE_SHORT_ASCII_INTERNED = 'Z' # since 3.4

In xdis, the cross-version marshal/unmarshal and opcode routines, I've
started adding some of these.

Is lib_pypy/_marshal.py used? If so, shouldn't this be corrected?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20170709/1dba7b17/attachment.html>


More information about the pypy-dev mailing list