[Tutor] Dictionaries supplying arguments to functions
Kalle Svensson
kalle@gnupung.net
Tue, 7 Aug 2001 05:14:22 +0200
Sez Danny Yoo:
> On Tue, 7 Aug 2001, Tom Nott wrote:
[stuff about double stars and function definitions/calls]
> You might find out more about this here:
>
> http://python.org/doc/current/tut/node6.html#SECTION006720000000000000000
>
> although, admittedly, I'm a little forgetful about where I actually
> learned about this feature... *grin* Does anyone know where this is
> actually documented?
Well, that depends on what you mean by documented...
func(**d):
http://python.org/doc/current/ref/calls.html
def func(**kw):
http://python.org/doc/current/ref/function.html
This isn't very readable, though, being a part of the language reference.
I think I read about func(**d) for the first time in Andrew M. Kuchling's
"What's new in Python 2.0" (http://www.amk.ca/python/2.0/).
Peace,
Kalle
--
Free Dmitry Sklyarov! - http://www.freesklyarov.org/