[ python-Bugs-1087975 ] example code not working
SourceForge.net
noreply at sourceforge.net
Sun Dec 19 19:27:05 CET 2004
Bugs item #1087975, was opened at 2004-12-19 11:35
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1087975&group_id=5470
Category: Documentation
Group: Python 2.3
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: perica (zivkovicperica)
Assigned to: Nobody/Anonymous (nobody)
Summary: example code not working
Initial Comment:
in chapter "9.11 Generator Expressions" in "Python
Tutorial" this example is not working:
>>> sum(i*i for i in range(10)) # sum
of squares
285
I'm using Python 2.3.4 (GCC 3.4.2) on FreeBSD 5.3
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-12-19 13:27
Message:
Logged In: YES
user_id=80475
It looks like you have a Python 2.4 tutorial in-hand but are
working with an old version of python, 2.3.4 which did not
have generator expressions.
Here is a link to the tutorial that matches the version on
your system (note it does not have a section 9.11):
http://www.python.org/doc/2.3.4/tut/tut.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1087975&group_id=5470
More information about the Python-bugs-list
mailing list