multiple values for keyword argument

Ben Finney ben+python at benfinney.id.au
Sat Jan 29 16:24:45 EST 2011


Tobias Blass <tobiasblass at gmx.net> writes:

> Ok it works now. So the problem was that python requires 'self' to be
> the first parameter?

More accurately, the instance is passed as the first parameter, and
Python doesn't care what you name it. (Your fellow programmers do care,
though, so please stick to the ‘self’ convention despite this freedom.)

-- 
 \           “The lift is being fixed for the day. During that time we |
  `\            regret that you will be unbearable.” —hotel, Bucharest |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list