Strange Syntax Parsing Error in Python?
- by user213060
Am I missing something here? Why shouldn't the code under the "Broken" section work? I'm using Python 2.6.
#!/usr/bin/env python
def func(a,b,c):
print a,b,c
#Working:
p={'c':3}
func(1,
b=2,
c=3,
)
#Working:
func(1,
b=2,
**p,)
#Broken:
func(1,
b=2,
**p,
)