[Zope-dev] form variables and **kw
Steve Alexander
steve@cat-box.net
Wed, 02 Oct 2002 18:21:02 +0100
> 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