[Python-bugs-list] [ python-Bugs-779469 ] slices section in "what's new" has invalid example code

SourceForge.net noreply@sourceforge.net
Tue, 29 Jul 2003 02:28:18 -0700


Bugs item #779469, was opened at 2003-07-29 11:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=779469&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: David Fraser (davidfraser)
Assigned to: Nobody/Anonymous (nobody)
Summary: slices section in "what's new" has invalid example code

Initial Comment:
In section 15 of the What's New docs for Python 2.3c2
(on extended slices for builtin types), the last
example has this line:
  return FakeSeq([self.calc_item(i) in range(*indices)])
which should surely read:
  return FakeSeq([self.calc_item(i) for i in
range(*indices)])

http://www.python.org/doc/2.3c2/whatsnew/section-slices.html

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

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