Issue 988613: compiler.transformer and tuple unpacking (original) (raw)
compiler.transformer.parse chokes on tuple unpacking when parentheses are present.
To reproduce, try:
import compiler.transformer compiler.transformer.parse('(a, b) = 1, 2')
... in Python 2.3 and Python 2.4. It works in Python 2.3. In Python 2.4, it causes a SyntaxError "bad assignment".
It works in both Python versions when omitting the parentheses, i.e. using 'a, b = 1, 2' instead.