Message177579
(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 |
|
Date |
User |
Action |
Args |
2012-12-16 07:24:42 | zach.ware | set | recipients:
+ zach.ware, brett.cannon |
2012-12-16 07:24:41 | zach.ware | set | messageid: <1355642681.84.0.519392654153.issue16694@psf.upfronthosting.co.za> |
2012-12-16 07:24:41 | zach.ware | link | issue16694 messages |
2012-12-16 07:24:40 | zach.ware | create | |
|