From: Benjamin Peterson Date: Sun, 19 Feb 2012 06:16:13 +0000 (-0500) Subject: use defaults X-Git-Tag: v3.3.0a1~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cf936fe7a5599dac368b4f04e5c5fc38db26c06;p=python use defaults --- diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 6cbf297c58..089356b40f 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -707,8 +707,8 @@ PyTypeObject PyFunction_Type = { 0, /* tp_hash */ function_call, /* tp_call */ 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - PyObject_GenericSetAttr, /* tp_setattro */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,/* tp_flags */ func_doc, /* tp_doc */ @@ -885,7 +885,7 @@ PyTypeObject PyClassMethod_Type = { 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,