Commit Graph

25 Commits

Author SHA1 Message Date
Michael Hansen
9b384ad1fa Add basic bytecode and disassembly support for Python 3.12 2023-11-09 12:17:03 -08:00
Michael Hansen
72c5f87793 Fix range of supported versions for marshalled files 2023-06-04 09:16:31 -07:00
Michael Hansen
9f1d0f2a21 Add basic opcode (disassembly) support for Python 3.11 2023-01-19 11:32:07 -08:00
Michael Hansen
ffeabc3d3f Make cast() checked by default and add try_cast() for cases where a cast
is not required to be successful.
2022-12-01 16:13:31 -08:00
Michael Hansen
93495c3bfb Reduce unnecessary uses of std::list 2022-12-01 11:35:14 -08:00
Michael Hansen
8590d67d29 Simplify and improve version setting for marshalled code objects:
* Use a simpler check for validity -- the reverse magic number mapping was
  unnecessary and missed some cases (2.2, 3.2).
* Set the version directly after it is checked for validity.
* Fix unicode flag setting on Python 3.x.
2022-10-04 14:51:23 -07:00
clubby789
942193e88b Style changes 2022-06-16 12:49:04 +01:00
clubby789
dc50479d06 Add support for pycdas/pycdc using marshalled code objects
These requires the Python version to be specified as the Pyc header
magic is not present.
2022-06-15 11:33:11 +01:00
Michael Hansen
aacf182f95 Add bytecode documentation for 3.10 2021-10-10 11:57:14 -07:00
GawdOfROFL
e4e3a9f4ed added python 3.10 support 2021-10-10 00:52:41 +05:30
Michael Hansen
8460d119fd Add bytecode support for Python 3.9 rc2 2020-09-29 09:28:15 -07:00
Michael Hansen
428d11c4b5 Add bytecode and disassembly support for Python 3.8.
Also fixes running pymultic from outside of its source directory.
2019-10-14 14:48:26 -07:00
Michael Hansen
5c896fa743 Clean up some loops with range-based for. 2019-10-04 15:56:24 -07:00
Michael Hansen
0c3955883f Fix bytecode compatibility with Python 3.7 beta3 2018-04-26 14:38:02 -07:00
Michael Hansen
bf60a5831b Fix several undefined behavior issues identified by @nrathaus.
Fixes #147.
2018-01-28 15:37:44 -08:00
Michael Hansen
a9a362254e Use fputs instead of fprintf when no formatting is required 2018-01-28 15:37:44 -08:00
Michael Hansen
98ad031109 Add initial 3.7 alpha support, and fix 3.6 opcode map 2017-12-20 13:49:28 -08:00
Dhiru Kholia
da6571587b Add MAGIC_NUMBER for Python 3.5.3
See https://bugs.python.org/issue27286 for details.
2017-04-11 09:55:40 +05:30
Michael Hansen
605d064fe7 Initial support for Python 3.6 disassembly 2016-06-22 22:06:09 -07:00
Michael Hansen
5fae3e2d1f Add Python 3.5 disassembly support 2015-10-01 16:06:09 -07:00
Michael Hansen
36cf09ca82 Minor style cleanup 2014-06-10 18:28:28 -07:00
Michael Hansen
176a049a68 Support new marshal types from Python 3.4 2014-01-21 00:42:37 -08:00
Michael Hansen
6ecbcfb564 Add documentation and initial framework for Python 3.4 support 2013-11-27 14:10:05 -08:00
Michael Hansen
50657fb984 Preview of Python 3.3 support 2012-05-26 14:09:52 -07:00
Michael Hansen
c474d368a1 Use less conflicting filenames 2011-10-23 17:48:10 -07:00