Message231873
operator.methodcaller is similar to functools.partial which is pickleable and can be used as a sample.
In C implementation some code can be shared between __repr__ and __reduce__ methods.
As for tests, different protocols should be tested. Also should be tested compatibility between C and Python implementations, instances pickled with one implementation should be unpickleable with other implementation. Move pickle tests into new test class.
If add __repr__ methods, they need tests. The restriction of method name type should be tested too. |
|
Date |
User |
Action |
Args |
2014-11-29 22:10:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, pitrou, zach.ware, Antony.Lee, josh.r |
2014-11-29 22:10:38 | serhiy.storchaka | set | messageid: <1417299038.16.0.363693005855.issue22955@psf.upfronthosting.co.za> |
2014-11-29 22:10:38 | serhiy.storchaka | link | issue22955 messages |
2014-11-29 22:10:38 | serhiy.storchaka | create | |
|