]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107955 Remove old comment about increasing the reference count in usage of Py_None...
authorbrandonardenwalli <142186236+brandonardenwalli@users.noreply.github.com>
Wed, 16 Aug 2023 09:14:14 +0000 (11:14 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 09:14:14 +0000 (09:14 +0000)
Include/object.h

index e26cedf8ca3c97bcb587bea30d8970a0078e43ea..be9a0cedb7205d718cba9750e7f3daf44c7c2c2f 100644 (file)
@@ -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)