Show More
@@ -2776,6 +2776,11 b' class generatorset(abstractsmartset):' | |||||
2776 | self.fastasc = asc.__iter__ |
|
2776 | self.fastasc = asc.__iter__ | |
2777 | self.fastdesc = asc.__reversed__ |
|
2777 | self.fastdesc = asc.__reversed__ | |
2778 |
|
2778 | |||
|
2779 | def __len__(self): | |||
|
2780 | for x in self._consumegen(): | |||
|
2781 | pass | |||
|
2782 | return len(self._genlist) | |||
|
2783 | ||||
2779 | def sort(self, reverse=False): |
|
2784 | def sort(self, reverse=False): | |
2780 | self._ascending = not reverse |
|
2785 | self._ascending = not reverse | |
2781 |
|
2786 |
General Comments 0
You need to be logged in to leave comments.
Login now