isaiahdaplaya / unpyc

Automatically exported from code.google.com/p/unpyc
0 stars 0 forks source link

Syntax error at or near `ROT_TWO' #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ff.py code:

a, b = 0, 1
a, b = b, a+b

after compile by python26

can not be decompiled, unpyc wrote:

  File "c:\python\26\lib\site-packages\unpyc\Walker.py", line 843, in build_ast
    raise ParserError(e, tokens)
unpyc.Walker.ParserError: --- This code section failed: ---
0       LOAD_CONST        (0, 1)
3       UNPACK_SEQUENCE_2 ''
6       STORE_NAME        'a'
9       STORE_NAME        'b'
12      LOAD_NAME         'b'
15      LOAD_NAME         'a'
18      LOAD_NAME         'b'
21      BINARY_ADD        ''
22      ROT_TWO           ''
23      STORE_NAME        'a'
26      STORE_NAME        'b'
29      LOAD_CONST        ''
32      RETURN_VALUE      ''

Syntax error at or near `ROT_TWO' token at offset 22

ff.py & ff.pyc attached.

Original issue reported on code.google.com by onyx68...@gmail.com on 26 Jun 2010 at 1:53

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
used Revision25

Original comment by onyx68...@gmail.com on 26 Jun 2010 at 1:57