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."
|