Message232616
| Author |
serhiy.storchaka |
| Recipients |
Antony.Lee, josh.r, pitrou, rhettinger, serhiy.storchaka, zach.ware |
| Date |
2014年12月13日.17:54:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1418493281.54.0.605503027891.issue22955@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> functools.partial is a somewhat less than ideal comparison. The pure-Python version is not picklable, the Python and C versions return different things (the Python version is a function returning a function, the C version is a regular class and returns an instance).
Looks as Python version of functools.partial() needs a fix.
Reimplementations of the pure-Python itemgetter and attrgetter to automatically pickleable Python classes have a disadvantage. It makes the pickling incompatible between Python and C versions. This means that itemgetter pickled in CPython will be not unpickleable on Python implementation which don't use C accelerator and vice versa. |
|