Message265718
| Author |
jason.curtis |
| Recipients |
Antony.Lee, jason.curtis, josh.r, pitrou, python-dev, rhettinger, serhiy.storchaka, zach.ware |
| Date |
2016年05月16日.18:59:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1463425183.71.0.844337982421.issue22955@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|