Skip to content

Commit f609987

Browse files
gh-107955 Remove old comment about increasing the reference count in usage of Py_None (#107993)
1 parent abd9cc5 commit f609987

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Include/object.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,6 @@ static inline PyObject* _Py_XNewRef(PyObject *obj)
845845
/*
846846
_Py_NoneStruct is an object of undefined type which can be used in contexts
847847
where NULL (nil) is not suitable (since NULL often means 'error').
848-
849-
Don't forget to apply Py_INCREF() when returning this value!!!
850848
*/
851849
PyAPI_DATA(PyObject) _Py_NoneStruct; /* Don't use this directly */
852850
#define Py_None (&_Py_NoneStruct)

0 commit comments

Comments
 (0)