This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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
History
Date User Action Args
2016-05-16 18:59:43jason.curtissetrecipients: + jason.curtis, rhettinger, pitrou, python-dev, zach.ware, serhiy.storchaka, Antony.Lee, josh.r
2016-05-16 18:59:43jason.curtissetmessageid: <1463425183.71.0.844337982421.issue22955@psf.upfronthosting.co.za>
2016-05-16 18:59:43jason.curtislinkissue22955 messages
2016-05-16 18:59:43jason.curtiscreate