> I don't understand what '*' and '**' mean. Could somebody let me know?
This is a python thing. '*' means that any number of arguments can be
passed as a tuple.
For instance, I have function:
def add(a,b):
return a+b
I could call this with a tuple argument:
var = (4,5)
add(*var)
'**' means any number of keyword arguments (dict) could be passed:
def add(a=1,b=1):
return a+b
I could call this with keywords by:
var = {'a': 4, 'b':5}
add(**var)
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list