Understanding def foo(*args)

sl33k_ ahsanbagwan at gmail.com
Sun Jan 30 14:26:00 EST 2011


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



More information about the Python-list mailing list