Serhiy Storchaka added the comment:

> 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22955>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to