TypeError: no arguments expected
Roy Smith
roy at panix.com
Sun Dec 11 22:13:46 EST 2005
In article <1134357067.699971.145850 at g43g2000cwa.googlegroups.com>,
bonono at gmail.com wrote:
> put "self" as the first argument in all instance methods of that class.
> "self" is just a convention, referring to the object instance, not a
> language feature as in other language like javascript. You can call it
> "me" too if you prefer.
But please don't call it "me". The convention to call the first argument
"self" is so universal, calling it anything else is just going to make your
code more difficult for anybody else to read.
More information about the Python-list
mailing list