[ python-Bugs-969757 ] function and method objects confounded in Tutorial

SourceForge.net noreply at sourceforge.net
Fri Jul 8 23:37:02 CEST 2005


Bugs item #969757, was opened at 2004-06-09 18:59
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=969757&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mark Jackson (mjackson)
>Assigned to: Reinhold Birkenfeld (birkenfeld)
Summary: function and method objects confounded in Tutorial

Initial Comment:
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."

----------------------------------------------------------------------

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-07-08 23:37

Message:
Logged In: YES 
user_id=1188172

Thanks for the report, fixed as Doc/tut/tut.tex r1.275,
r1.261.2.10.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=969757&group_id=5470


More information about the Python-bugs-list mailing list