Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function and method objects confounded in Tutorial #40368

Closed
mjackson mannequin opened this issue Jun 9, 2004 · 2 comments
Closed

function and method objects confounded in Tutorial #40368

mjackson mannequin opened this issue Jun 9, 2004 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@mjackson
Copy link
Mannequin

mjackson mannequin commented Jun 9, 2004

BPO 969757
Nosy @birkenfeld, @birkenfeld

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 = <Date 2005-07-08.21:37:02.000>
created_at = <Date 2004-06-09.16:59:28.000>
labels = ['docs']
title = 'function and method objects confounded in Tutorial'
updated_at = <Date 2005-07-08.21:37:02.000>
user = 'https://bugs.python.org/mjackson'

bugs.python.org fields:

activity = <Date 2005-07-08.21:37:02.000>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2004-06-09.16:59:28.000>
creator = 'mjackson'
dependencies = []
files = []
hgrepos = []
issue_num = 969757
keywords = []
message_count = 2.0
messages = ['21103', '21104']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'georg.brandl', 'mjackson']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue969757'
versions = []

@mjackson
Copy link
Mannequin Author

mjackson mannequin commented Jun 9, 2004

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

@mjackson mjackson mannequin closed this as completed Jun 9, 2004
@mjackson mjackson mannequin assigned birkenfeld Jun 9, 2004
@mjackson mjackson mannequin added the docs Documentation in the Doc dir label Jun 9, 2004
@mjackson mjackson mannequin closed this as completed Jun 9, 2004
@mjackson mjackson mannequin assigned birkenfeld Jun 9, 2004
@mjackson mjackson mannequin added the docs Documentation in the Doc dir label Jun 9, 2004
@birkenfeld
Copy link
Member

Logged In: YES
user_id=1188172

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant