Parse error on two-arg lambda as default argument
Brought to you by:
edloper
If I run Epydoc 3.0.1 on the following program:
def f(g = lambda x, y: None):
pass
I get this error:
| Source code parsing failed (but introspection was successful).
| Error: Error during parsing: invalid syntax (/home/huurnem/tmp/epydoc/testcase.py, line 1) -- Bad argument list
This problem only occurs if the lambda expression has more than one argument, so probably the comma after the "x" is seen as the start of a new argument of "f", while it is the start of a new argument of the lambda expression.