Message231873
| Author |
serhiy.storchaka |
| Recipients |
Antony.Lee, josh.r, pitrou, rhettinger, serhiy.storchaka, zach.ware |
| Date |
2014年11月29日.22:10:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1417299038.16.0.363693005855.issue22955@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|