From: brandonardenwalli <142186236+brandonardenwalli@users.noreply.github.com> Date: Wed, 16 Aug 2023 09:14:14 +0000 (+0200) Subject: gh-107955 Remove old comment about increasing the reference count in usage of Py_None... X-Git-Tag: v3.13.0a1~958 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6099871fac0581ed4d9bcd9b15ce136fb0de8d6;p=thirdparty%2FPython%2Fcpython.git gh-107955 Remove old comment about increasing the reference count in usage of Py_None (#107993) --- diff --git a/Include/object.h b/Include/object.h index e26cedf8ca3c..be9a0cedb720 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)