File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments