This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: function and method objects confounded in Tutorial
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, mjackson
Priority: normal Keywords:

Created on 2004-06-09 16:59 by mjackson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg21103 - (view) Author: Mark Jackson (mjackson) Date: 2004-06-09 16:59
In Section 9.3.2 (Class Objects) we find, right after
the MyClass example code:

"then MyClass.i and MyClass.f are valid attribute
references, returning an integer and a method object,
respectively."

However, at the end of Section 9.3.3 (Instance Objects)
we find, referring to the same example:

"But x.f is not the same thing as MyClass.f - it is a
method object, not a function object."

There are references to MyClass.f as a function or
function object in Section 9.3.4 as well.  Although
Python terminology doesn't seem to be completely
consistent around this point (in the Python 2.1.3
interpreter MyClass.f describes itself as an "unbound
method") iit seems clear that calling MyClass.f a
method object in Section 9.3.2 is, in this context, an
error.  Should be changed to "function object."
msg21104 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-08 21:37
Logged In: YES 
user_id=1188172

Thanks for the report, fixed as Doc/tut/tut.tex r1.275,
r1.261.2.10.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40368
2004-06-09 16:59:28mjacksoncreate