[Python-checkins] python/dist/src/Doc/whatsnew
whatsnew23.tex,1.159,1.160
Michael Hudson
mwh@python.net
Wed, 30 Jul 2003 13:39:53 +0100
akuchling@users.sourceforge.net writes:
> Update of /cvsroot/python/python/dist/src/Doc/whatsnew
> In directory sc8-pr-cvs1:/tmp/cvs-serv26699
>
> Modified Files:
> whatsnew23.tex
> Log Message:
> [Bug #779469] Fix error in example code
>
> Index: whatsnew23.tex
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
> retrieving revision 1.159
> retrieving revision 1.160
> diff -C2 -d -r1.159 -r1.160
> *** whatsnew23.tex 29 Jul 2003 12:06:32 -0000 1.159
> --- whatsnew23.tex 30 Jul 2003 11:55:06 -0000 1.160
> ***************
> *** 1056,1060 ****
> if isinstance(item, slice):
> indices = item.indices(len(self))
> ! return FakeSeq([self.calc_item(i) in range(*indices)])
> else:
> return self.calc_item(i)
> --- 1056,1060 ----
> if isinstance(item, slice):
> indices = item.indices(len(self))
> ! return FakeSeq([self.calc_item(i) for i in range(*indices)])
> else:
> return self.calc_item(i)
It's probably not that surprising to note that I do this all the time
:-)
Cheers,
mwh
--
The Oxford Bottled Beer Database heartily disapproves of the
excessive consumption of alcohol. No, really.
-- http://www.bottledbeer.co.uk/beergames.html