From f6099871fac0581ed4d9bcd9b15ce136fb0de8d6 Mon Sep 17 00:00:00 2001 From: brandonardenwalli <142186236+brandonardenwalli@users.noreply.github.com> Date: Wed, 16 Aug 2023 11:14:14 +0200 Subject: gh-107955 Remove old comment about increasing the reference count in usage of Py_None (#107993) --- Include/object.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Include/object.h b/Include/object.h index e26cedf..be9a0ce 100644 --- a/Include/object.h +++ b/Include/object.h @@ -845,8 +845,6 @@ static inline PyObject* _Py_XNewRef(PyObject *obj) /* _Py_NoneStruct is an object of undefined type which can be used in contexts where NULL (nil) is not suitable (since NULL often means 'error'). - -Don't forget to apply Py_INCREF() when returning this value!!! */ PyAPI_DATA(PyObject) _Py_NoneStruct; /* Don't use this directly */ #define Py_None (&_Py_NoneStruct) -- cgit v0.12