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 josh.r
Recipients Antony.Lee, josh.r, pitrou, rhettinger, serhiy.storchaka, zach.ware
Date 2014-11-29.02:57:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417229856.03.0.888394795645.issue22955@psf.upfronthosting.co.za>
In-reply-to
Content
I've made a patch that I believe should cover all three cases, including tests.

In addition to the pickling behavior, I've made two other changes:

1. methodcaller verifies during construction that the name is a string (PyUnicode), and interns it; attrgetter did this already, and I tweaked methodcaller to match for correctness and performance reasons
2. I added proper repr functionality to all three objects. Partially this is just to make it look nicer, but it was also a decent way to spot verify that the pickle/unpickle sequence behaved correctly

Anyone care to review?
History
Date User Action Args
2014-11-29 02:57:36josh.rsetrecipients: + josh.r, rhettinger, pitrou, zach.ware, serhiy.storchaka, Antony.Lee
2014-11-29 02:57:36josh.rsetmessageid: <1417229856.03.0.888394795645.issue22955@psf.upfronthosting.co.za>
2014-11-29 02:57:35josh.rlinkissue22955 messages
2014-11-29 02:57:35josh.rcreate