[issue16251] object.__reduce__()

2012-10-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: pickle and _pickle also look on the instance for __reduce__ and __reduce_ex__. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue16251] object.__reduce__()

2012-10-16 Thread Eric Snow
New submission from Eric Snow: In Objects/typeobject.c, reduce_2() makes _PyObject_GetAttrId() calls to pull some methods for the object in question. This is a problem when the object's type defines __getattr__() or __getattribute__() and returns something like None when the attribute is not