Show More
@@ -2626,10 +2626,10 b' class generatorset(abstractsmartset):' | |||||
2626 | self._finished = False |
|
2626 | self._finished = False | |
2627 | if iterasc is not None: |
|
2627 | if iterasc is not None: | |
2628 | if iterasc: |
|
2628 | if iterasc: | |
2629 |
self.fastasc = self._ |
|
2629 | self.fastasc = self._iterator | |
2630 | self.__contains__ = self._asccontains |
|
2630 | self.__contains__ = self._asccontains | |
2631 | else: |
|
2631 | else: | |
2632 |
self.fastdesc = self._ |
|
2632 | self.fastdesc = self._iterator | |
2633 | self.__contains__ = self._desccontains |
|
2633 | self.__contains__ = self._desccontains | |
2634 |
|
2634 | |||
2635 | def __nonzero__(self): |
|
2635 | def __nonzero__(self): | |
@@ -2680,6 +2680,9 b' class generatorset(abstractsmartset):' | |||||
2680 | return False |
|
2680 | return False | |
2681 |
|
2681 | |||
2682 | def __iter__(self): |
|
2682 | def __iter__(self): | |
|
2683 | return self._iterator() | |||
|
2684 | ||||
|
2685 | def _iterator(self): | |||
2683 | if self._finished: |
|
2686 | if self._finished: | |
2684 | return iter(self._genlist) |
|
2687 | return iter(self._genlist) | |
2685 |
|
2688 |
General Comments 0
You need to be logged in to leave comments.
Login now