You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/birkenfeld'closed_at=<Date2005-07-08.21:37:02.000>created_at=<Date2004-06-09.16:59:28.000>labels= ['docs']
title='function and method objects confounded in Tutorial'updated_at=<Date2005-07-08.21:37:02.000>user='https://bugs.python.org/mjackson'
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."
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: