Message217811
I also wrote a slightly more thorough patch that simplifies some of the method implementations (largely just replacing a bunch of for/if/return True/False else return False/True with any/all calls against a generator expression).
The one behavior difference is that I dramatically simplified Sequence's __iter__; the original just kept indexing until it got IndexError, the replacement just runs len(self) times, on the theory that a self-mutating Sequence should write its own __iter__, and we shouldn't jump through hoops to accommodate unsupported behavior like mutating a Sequence during iteration.
All tests pass under both patches. |
|
Date |
User |
Action |
Args |
2014-05-03 00:18:15 | josh.r | set | recipients:
+ josh.r |
2014-05-03 00:18:15 | josh.r | set | messageid: <1399076295.1.0.29076243827.issue21421@psf.upfronthosting.co.za> |
2014-05-03 00:18:14 | josh.r | link | issue21421 messages |
2014-05-03 00:18:13 | josh.r | create | |
|