gh-107955 Remove old comment about increasing the reference count in usage of Py_None (#107993)

This commit is contained in:
brandonardenwalli 2023-08-16 11:14:14 +02:00 committed by GitHub
parent abd9cc52d9
commit f6099871fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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)