gstarnberger/uncompyle

Extraneous parens in array subscript

Opened this issue · 0 comments

rocky commented

In Python 2.7 (from test_compile.py)

def bug(d):
    d[1:2, 1:2] += 1

decompiles as:

def bug(d):
    d[(1:2, 1:2)] += 1

which is a Python syntax error.