diff Objects/classobject.c @ 17669:d7d05103c023 legacy-trunk

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.
author Fred Drake <fdrake@acm.org>
date Thu, 03 May 2001 16:04:13 +0000
parents 56c5445ec835
children 1812476b7fe4
line wrap: on
line diff
--- a/Objects/classobject.c	Thu May 03 07:09:25 2001 +0000
+++ b/Objects/classobject.c	Thu May 03 16:04:13 2001 +0000
@@ -2103,7 +2103,7 @@
 	(getattrofunc)instancemethod_getattro,	/* tp_getattro */
 	(setattrofunc)instancemethod_setattro,	/* tp_setattro */
 	0,					/* tp_as_buffer */
-	Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC | Py_TPFLAGS_HAVE_WEAKREFS,
+	Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC,     /* tp_flags */
 	0,					/* tp_doc */
 	(traverseproc)instancemethod_traverse,	/* tp_traverse */
 	0,					/* tp_clear */