2 Oct
2002
2 Oct
'02
5:21 p.m.
If so, why?
I see that Toby and you answered that.
Is this a python limitation?
No.
I played around with co_varnames and python doesn't seem to offer a possibility to recognize **kw as something special.
def foo(bar, **kw): ... pass ... foo.func_code.co_flags 11
def foo(bar, *args): ... pass ... foo.func_code.co_flags 7
def foo(bar): ... pass ... foo.func_code.co_flags 3
-- Steve Alexander