Skip to content

Commit 3b78e5b

Browse files
committed
Complete the doc
1 parent 145291d commit 3b78e5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/c-api/object.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ Object Protocol
198198
plans to remove it.
199199
200200
The function must not be called with ``NULL`` *v* and an an exception set.
201+
This case can arise from forgetting ``NULL`` checks and would delete the
202+
attribute.
201203
202204
203205
.. c:function:: int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v)
@@ -210,6 +212,8 @@ Object Protocol
210212
deprecated in favour of using :c:func:`PyObject_DelAttrString`.
211213
212214
The function must not be called with ``NULL`` *v* and an an exception set.
215+
This case can arise from forgetting ``NULL`` checks and would delete the
216+
attribute.
213217
214218
The number of different attribute names passed to this function
215219
should be kept small, usually by using a statically allocated string

0 commit comments

Comments
 (0)