From: Karl C. <qu...@hk...> - 2004-06-28 15:14:47
|
def foo(x): return x def bar(): L=[1,2] m=3 return foo( map((lambda x: m), L)) Pychecker reports: /tmp/a.py:7: Invalid arguments to (map), got 1, expected at least 2 Strangely, if you modify the 'foo line' in any way [change (lambda x: m) to (lambda x: x) or remove 'foo'] pychecker no longer warns. -- Karl 2004-06-28 08:10 |