equal
deleted
inserted
replaced
2724 if not self._finished: |
2724 if not self._finished: |
2725 for i in self: |
2725 for i in self: |
2726 continue |
2726 continue |
2727 self._genlist.sort(reverse=reverse) |
2727 self._genlist.sort(reverse=reverse) |
2728 |
2728 |
2729 class _ascgeneratorset(_generatorset): |
|
2730 """Wrap a generator of ascending elements for lazy iteration |
|
2731 |
|
2732 Same structure as _generatorset but stops iterating after it goes past |
|
2733 the value when asked for membership and the element is not contained |
|
2734 |
|
2735 This class does not duck-type baseset and it's only supposed to be used |
|
2736 internally |
|
2737 """ |
|
2738 |
|
2739 def __init__(self, gen): |
|
2740 super(_ascgeneratorset, self).__init__(gen, iterasc=True) |
|
2741 |
|
2742 class _descgeneratorset(_generatorset): |
2729 class _descgeneratorset(_generatorset): |
2743 """Wrap a generator of descending elements for lazy iteration |
2730 """Wrap a generator of descending elements for lazy iteration |
2744 |
2731 |
2745 Same structure as _generatorset but stops iterating after it goes past |
2732 Same structure as _generatorset but stops iterating after it goes past |
2746 the value when asked for membership and the element is not contained |
2733 the value when asked for membership and the element is not contained |