summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/objimpl.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h
index 4197bde..4aa38d5 100644
--- a/Include/objimpl.h
+++ b/Include/objimpl.h
@@ -167,11 +167,7 @@ extern DL_IMPORT(void) _PyObject_Del(PyObject *);
/* Macros trading binary compatibility for speed. See also pymem.h.
Note that these macros expect non-NULL object pointers.*/
#define PyObject_INIT(op, typeobj) \
- ((op)->ob_type = (typeobj), _Py_NewReference((PyObject *)(op)), \
- (PyType_SUPPORTS_WEAKREFS((typeobj)) \
- ? *(PyObject_GET_WEAKREFS_LISTPTR(op)) = NULL \
- : NULL), \
- (op))
+ ( (op)->ob_type = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
#define PyObject_INIT_VAR(op, typeobj, size) \
( (op)->ob_size = (size), PyObject_INIT((op), (typeobj)) )