fixed 2 typos in example code kindly pointed out by Tom Jenkins.

This commit is contained in:
Alex Martelli 2004-01-02 09:15:55 +00:00
parent 33602533d2
commit 4279130666
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ Specification
addition to the body of class Iter would suffice:
def __copy__(self):
result = self.__class__(sequence)
result = self.__class__(self.sequence)
result.index = self.index
return result
@ -330,7 +330,7 @@ Rationale
return self.i, self.it.next()
def __copy__(self):
result = self.__class__.new()
result = self.__class__.__new__()
result.it = self.it.__copy__()
result.i = self.i
return result