[ python-Bugs-1171819 ] Error in code example in main tutorial,
section 9.3.4
SourceForge.net
noreply at sourceforge.net
Mon Mar 28 17:20:06 CEST 2005
Bugs item #1171819, was opened at 2005-03-28 15:05
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1171819&group_id=5470
Category: Documentation
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Niek (niekbouman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error in code example in main tutorial, section 9.3.4
Initial Comment:
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()
=========
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2005-03-28 17:20
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1171819&group_id=5470
More information about the Python-bugs-list
mailing list