Skip to content

Commit a11c2ee

Browse files
committed
Rephrase versionchanged
1 parent 4267f32 commit a11c2ee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/c-api/object.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Object Protocol
202202
attribute.
203203
204204
.. versionchanged:: next
205-
Raise an exception if called with ``NULL`` *v* and an an exception set.
205+
Must not be called with NULL value if an exception is set.
206206
207207
208208
.. c:function:: int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v)
@@ -227,7 +227,8 @@ Object Protocol
227227
used internally to create a key object.
228228
229229
.. versionchanged:: next
230-
Raise an exception if called with ``NULL`` *v* and an an exception set.
230+
Must not be called with NULL value if an exception is set.
231+
231232
232233
.. c:function:: int PyObject_GenericSetAttr(PyObject *o, PyObject *name, PyObject *value)
233234

0 commit comments

Comments
 (0)