pylint #9326 Variable/argument is not considered used by lambda default value [open]

When running pylint on the following program:

def f(x):
    return lambda x = x: x
def g(x):
    return lambda a = x: a

pylint reports a W0613 warning on line 2; it thinks that the argument "x" is unused in the function "f". It does not report W0613 on line 4, so it considers "x" used in function "g". Since both functions are equivalent to Python, I think pylint or astng is looking up the name "x" in the default value of the lambda in the wrong context.

When "x" is not a function argument but a local variable, W0612 is reported instead of W0613. Again, it is only reported for "f" and not for "g".

appeared in<not specified>
done in<not specified>
load left0.200
closed by<not specified>