Why self?

Kalle Svensson kalle at lysator.liu.se
Fri Jul 5 05:51:31 EDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[Jesper Olsen]
> Why is it necessary to use a "self" argument to class methods in
> python?

This is a FAQ.  http://www.python.org/cgi-bin/faqw.py?req=all#6.7

You can also go to
http://groups.google.com/groups?q=group%3Acomp.lang.python+explicit+self
for more reading about this subject.

Peace,
  Kalle
- -- 
Kalle Svensson, http://www.juckapan.org/~kalle/
Student, root and saint in the Church of Emacs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE9JWwcdNeA1787sd0RAgzCAJ9MCGgdkVj1UJDPFHAm+toIYjpq5QCfSe7a
0E4am6okIHlIvyY5aevE5lU=
=GLbX
-----END PGP SIGNATURE-----





More information about the Python-list mailing list