Re: Python **kwargs ?
- From: "Szabolcs Nagy" <nszabolcs@xxxxxxxxx>
- Date: 31 Jan 2007 11:25:28 -0800
johnny wrote:
What is **kwargs mean in python? When you put double **, does it mean
passing by reference?
here's a little example:
.... print 'a:',adef f(a, *args, **kw):
.... print 'args:',args
.... print 'kw:',kw
....
a: 1f(1,2,3,x=4)
args: (2, 3)
kw: {'x': 4}
a: 1f(a=1,b=2,c=3)
args: ()
kw: {'c': 3, 'b': 2}
.
- References:
- Python **kwargs ?
- From: johnny
- Python **kwargs ?
- Prev by Date: Re: Any python scripts to do parallel downloading?
- Next by Date: Re: subway
- Previous by thread: Re: Python **kwargs ?
- Next by thread: where has Stani's Py Editor gone?
- Index(es):
Relevant Pages
|