Author josh.r
Recipients josh.r
Date 2014-05-03.00:18:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399076295.1.0.29076243827.issue21421@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-05-03 00:18:15josh.rsetrecipients: + josh.r
2014-05-03 00:18:15josh.rsetmessageid: <1399076295.1.0.29076243827.issue21421@psf.upfronthosting.co.za>
2014-05-03 00:18:14josh.rlinkissue21421 messages
2014-05-03 00:18:13josh.rcreate