Index: Objects/object.c =================================================================== --- Objects/object.c (revision 61629) +++ Objects/object.c (working copy) @@ -1687,6 +1687,13 @@ break; } } + if (Py_Py3kWarningFlag && + (strcmp(attrname, "__members__") == 0 || + strcmp(attrname, "__methods__") == 0)) { + if (PyErr_Warn(PyExc_DeprecationWarning, + "__members__ and __methods__ not supported in 3.x") < 0) + return -1; + } } Py_XDECREF(list);