Message265718
This is still an issue with operator.attrgetter in 3.4.3, even after clearing sys.modules['_operator']:
$ python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.modules['_operator'] = None
>>> import operator
>>> import pickle
>>> pickle.loads(pickle.dumps(operator.attrgetter("foo")))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <function attrgetter.__init__.<locals>.func at 0x7f25728d5bf8>: attribute lookup func on operator failed |
|
Date |
User |
Action |
Args |
2016-05-16 18:59:43 | jason.curtis | set | recipients:
+ jason.curtis, rhettinger, pitrou, python-dev, zach.ware, serhiy.storchaka, Antony.Lee, josh.r |
2016-05-16 18:59:43 | jason.curtis | set | messageid: <1463425183.71.0.844337982421.issue22955@psf.upfronthosting.co.za> |
2016-05-16 18:59:43 | jason.curtis | link | issue22955 messages |
2016-05-16 18:59:43 | jason.curtis | create | |
|