Understanding def foo(*args)

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Jan 31 06:17:22 EST 2011


sl33k_ wrote:
> Hi,
>
> I am struggling to grasp this concept about def foo(*args). Also, what
> is def bar(*args, *kwargs)?
>
> Isnt it like self must be the first parameter to the method/function?
> If not what are the exceptions?
>
> Also, can the terms method and function be used interchangeably?
>
> TIA
>   
"python *args **kwargs" in google.

1st hit.

JM





More information about the Python-list mailing list