You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
14 lines
347 B
Python
14 lines
347 B
Python
# Statements to beef up grammar coverage rules
|
|
# Force "inplace" ops
|
|
y = +10 # UNARY_POSITIVE
|
|
y /= 1 # INPLACE_DIVIDE
|
|
y %= 4 # INPLACE_MODULO
|
|
y **= 1 # INPLACE POWER
|
|
y >>= 2 # INPLACE_RSHIFT
|
|
y <<= 2 # INPLACE_LSHIFT
|
|
y //= 1 # INPLACE_TRUE_DIVIDE
|
|
y &= 1 # INPLACE_AND
|
|
y ^= 1 # INPLACE_XOR
|
|
|
|
`y` # UNARY_CONVERT - No in Python 3.x
|