Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68a3294

Browse files
committed
[Bug #779469] Fix error in example code
1 parent bf71fa1 commit 68a3294

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/whatsnew/whatsnew23.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ \section{Extended Slices\label{section-slices}}
10551055
def __getitem__(self, item):
10561056
if isinstance(item, slice):
10571057
indices = item.indices(len(self))
1058-
return FakeSeq([self.calc_item(i) in range(*indices)])
1058+
return FakeSeq([self.calc_item(i) for i in range(*indices)])
10591059
else:
10601060
return self.calc_item(i)
10611061
\end{verbatim}
@@ -2386,7 +2386,8 @@ \section{Acknowledgements \label{acks}}
23862386
The author would like to thank the following people for offering
23872387
suggestions, corrections and assistance with various drafts of this
23882388
article: Jeff Bauer, Simon Brunning, Brett Cannon, Michael Chermside,
2389-
Andrew Dalke, Scott David Daniels, Fred~L. Drake, Jr., Kelly Gerber,
2389+
Andrew Dalke, Scott David Daniels, Fred~L. Drake, Jr., David Fraser,
2390+
Kelly Gerber,
23902391
Raymond Hettinger, Michael Hudson, Chris Lambert, Detlef Lannert,
23912392
Martin von~L\"owis, Andrew MacIntyre, Lalo Martins, Chad Netzer,
23922393
Gustavo Niemeyer, Neal Norwitz, Hans Nowak, Chris Reedy, Francesco

0 commit comments

Comments
 (0)