For Python 3.3 verification

README.rst: reflow paragraph
This commit is contained in:
rocky
2016-06-03 04:33:58 -04:00
parent 3da4c9ce77
commit 6bdddb6a58
2 changed files with 13 additions and 10 deletions

View File

@@ -84,15 +84,18 @@ for usage help.
Known Bugs/Restrictions Known Bugs/Restrictions
----------------------- -----------------------
Python 2 deparsing decompiles each and all the Python 2.7.10 and 2.7.11 installed packages Python 2 deparsing decompiles each and all the Python 2.7.10 and
I have on my system. All but less that 10% 2.7.11 installed packages I have on my system. more than 90% verify
verify. Some of thse failures may be bugs in the verification process. ok. Some of thse failures may be bugs in the verification process. So
So as such, it is probably a little better than uncompyle2. as such, it is probably a little better than uncompyle2. Other Python
Other Python 2 versions do worse. 2 versions do worse.
Python 3 deparsing before 3.5 is okay, but even there, more work is needed to More than 90% the Python 3.3, and 3.4 Python packages that I have
decompile all of its library. Python 3.5 is missing some of new installed on my system deparse. Python 3.2 fares at a little less than
opcodes and idioms added, but it still often works. 90%. (Each Python version has about 200 byteocde files). All of the
bytecode deparses also verify. Python is more problematic and is
missing some of new opcodes and idioms added. But it still often
works.
There is lots to do, so please dig in and help. There is lots to do, so please dig in and help.

View File

@@ -8,10 +8,10 @@ scanner routine for Python 3.
from __future__ import print_function from __future__ import print_function
import xdis from xdis.opcodes import opcode_33 as opc
# bytecode verification, verify(), uses JUMP_OPs from here # bytecode verification, verify(), uses JUMP_OPs from here
JUMP_OPs = xdis.opcodes.opcode_33.JUMP_OPs JUMP_OPs = map(lambda op: opc.opname[op], opc.hasjrel + opc.hasjabs)
from uncompyle6.scanners.scanner3 import Scanner3 from uncompyle6.scanners.scanner3 import Scanner3
class Scanner33(Scanner3): class Scanner33(Scanner3):