diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-03 16:04:13 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-03 16:04:13 (GMT) |
commit | 4dcb85b81756fb4b93c296831646c0d015ad38aa (patch) | |
tree | 6a113893a6e7cd83bacc253bb1293f3b045f613f /Objects/funcobject.c | |
parent | efdae3939adcb76858c58ccb92503dd404a90703 (diff) | |
download | cpython-4dcb85b81756fb4b93c296831646c0d015ad38aa.zip cpython-4dcb85b81756fb4b93c296831646c0d015ad38aa.tar.gz cpython-4dcb85b81756fb4b93c296831646c0d015ad38aa.tar.bz2 |
Since Py_TPFLAGS_HAVE_WEAKREFS is set in Py_TPFLAGS_DEFAULT, it does not
need to be specified in the type structures independently. The flag
exists only for binary compatibility.
This is a "source cleanliness" issue and introduces no behavioral changes.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 78c968c..09c6cb8 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -320,25 +320,25 @@ PyTypeObject PyFunction_Type = { "function", sizeof(PyFunctionObject) + PyGC_HEAD_SIZE, 0, - (destructor)func_dealloc, /*tp_dealloc*/ - 0, /*tp_print*/ - 0, /*tp_getattr*/ - 0, /*tp_setattr*/ - 0, /*tp_compare*/ - (reprfunc)func_repr, /*tp_repr*/ - 0, /*tp_as_number*/ - 0, /*tp_as_sequence*/ - 0, /*tp_as_mapping*/ - 0, /*tp_hash*/ - 0, /*tp_call*/ - 0, /*tp_str*/ - (getattrofunc)func_getattro, /*tp_getattro*/ - (setattrofunc)func_setattro, /*tp_setattro*/ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC | Py_TPFLAGS_HAVE_WEAKREFS, - 0, /* tp_doc */ - (traverseproc)func_traverse, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ + (destructor)func_dealloc, /* tp_dealloc */ + 0, /* tp_print */ + 0, /* tp_getattr */ + 0, /* tp_setattr */ + 0, /* tp_compare */ + (reprfunc)func_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + 0, /* tp_str */ + (getattrofunc)func_getattro, /* tp_getattro */ + (setattrofunc)func_setattro, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC, /* tp_flags */ + 0, /* tp_doc */ + (traverseproc)func_traverse, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ offsetof(PyFunctionObject, func_weakreflist), /* tp_weaklistoffset */ }; |