Robert Dailey wrote:

This is an example of a response I'm looking for:
"The self parameter is required because the parser is a bit old and needs to know the exact object you're referencing"

This is _not_ an example of what I'm looking for:
"Specifying self is a great mysterious thing that we should never question. Do not question the language! The language is mighty! Don't bring C++ to Python!"


Fredrik Lundh has written a very clear explanation of this at http://effbot.org/pyfaq/why-must-self-be-used-explicitly-in-method-definitions-and-calls.htm

(or http://bit.ly/3EUiCf if you don't feel like stitching that URL back together...)

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to