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: Error in code example in main tutorial, section 9.3.4
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: loewis, niekbouman
Priority: normal Keywords:

Created on 2005-03-28 13:05 by niekbouman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg24808 - (view) Author: Niek (niekbouman) Date: 2005-03-28 13:05
Tutorial version:

Online, Current
Release 2.4
30 November 2004

Bug:
In section 9.3.4 Method Objects, the second code
example reads:
=========
xf = x.f
while True:
    print xf()
=========

There should be parentheses after x.f

Suggested new version:
=========
xf = x.f()
while True:
    print xf()
=========
msg24809 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-03-28 15:20
Logged In: YES 
user_id=21627

Why do you think so? The documentation is correct as-is; the
whole point of the paragraph is that the parentheses are
omitted in the assignment to xf.
msg24810 - (view) Author: Niek (niekbouman) Date: 2005-03-28 18:48
Logged In: YES 
user_id=1247970

Oops, how stupid of me.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41768
2005-03-28 13:05:51niekboumancreate