[Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)
steve+comp.lang.python at pearwood.info
Tue Dec 25 14:44:21 CET 2012
On Mon, 24 Dec 2012 00:19:18 -0500, Dave Angel wrote:
> Nobody's going to be able to understand your code if you persist in
> using self in unpythonic ways. It's used as the first argument of a
> class method. Period.
To be pedantic, "self" is the conventional argument for *instance*
methods, not class methods. For class methods, the conventional first
argument is "cls", not "self".
More information about the Python-list