mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-107955 Remove old comment about increasing the reference count in usage of Py_None (#107993)
This commit is contained in:
parent
abd9cc52d9
commit
f6099871fa
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue