f(n=4) works; bug or feature?

Laurent Pointal laurent.pointal at laposte.net
Tue Dec 25 22:24:20 CET 2001


"Sean 'Shaleh' Perry" <shalehperry at attbi.com> wrote in
news:mailman.1009170148.18924.python-list at python.org: 
...

And with variable number of named arguments...
>>> def f(**kargs) :
...     print kargs
...
>>> f(a=3,b=4,s="Coucou")
{'b': 4, 's': 'Coucou', 'a': 3}

A+

Laurent.



More information about the Python-list mailing list