Show More
@@ -3322,9 +3322,7 b' class generatorset(abstractsmartset):' | |||||
3322 | for x in self._consumegen(): |
|
3322 | for x in self._consumegen(): | |
3323 | pass |
|
3323 | pass | |
3324 | return self.first() |
|
3324 | return self.first() | |
3325 | if self: |
|
3325 | return next(it(), None) | |
3326 | return it().next() |
|
|||
3327 | return None |
|
|||
3328 |
|
3326 | |||
3329 | def last(self): |
|
3327 | def last(self): | |
3330 | if self._ascending: |
|
3328 | if self._ascending: | |
@@ -3336,9 +3334,7 b' class generatorset(abstractsmartset):' | |||||
3336 | for x in self._consumegen(): |
|
3334 | for x in self._consumegen(): | |
3337 | pass |
|
3335 | pass | |
3338 | return self.first() |
|
3336 | return self.first() | |
3339 | if self: |
|
3337 | return next(it(), None) | |
3340 | return it().next() |
|
|||
3341 | return None |
|
|||
3342 |
|
3338 | |||
3343 | def __repr__(self): |
|
3339 | def __repr__(self): | |
3344 | d = {False: '-', True: '+'}[self._ascending] |
|
3340 | d = {False: '-', True: '+'}[self._ascending] |
General Comments 0
You need to be logged in to leave comments.
Login now