Author zach.ware
Recipients brett.cannon, zach.ware
Date 2012-12-16.07:24:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355642681.84.0.519392654153.issue16694@psf.upfronthosting.co.za>
In-reply-to
Content
(Brett, I've made you nosy due to the relation to Issue16651.)

Here is a pure Python implementation of the operator module, or at least a first draft thereof :).  I'm attaching the module itself, as well as a patch to integrate it.

Any and all review is quite welcome. I'm confident in the fact that the module as it stands passes all current tests, but how it gets there is entirely up for debate (namely, the attrgetter, itemgetter, and methodcaller classes, as well as length_hint(), countOf(), and indexOf()).

Note that there's also a change to hmac.py; _compare_digest() in operator.c doesn't seem to have any relation to the rest of the module (see issue15061 discussion) and is private anyway, so operator.py doesn't go near it.  hmac.py has to import directly from _operator.

Thanks,

Zach Ware
History
Date User Action Args
2012-12-16 07:24:42zach.waresetrecipients: + zach.ware, brett.cannon
2012-12-16 07:24:41zach.waresetmessageid: <1355642681.84.0.519392654153.issue16694@psf.upfronthosting.co.za>
2012-12-16 07:24:41zach.warelinkissue16694 messages
2012-12-16 07:24:40zach.warecreate