Skip to content

Commit 8f24f7a

Browse files
committed
Doc: link to PyObject_GetOptionalAttr()
1 parent 1c3e523 commit 8f24f7a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Doc/c-api/object.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ Object Protocol
167167
168168
.. versionadded:: 3.13
169169
170+
.. seealso::
171+
The :c:func:`PyType_Lookup` function.
172+
170173
171174
.. c:function:: int PyObject_GetOptionalAttrString(PyObject *obj, const char *attr_name, PyObject **result);
172175

Doc/c-api/type.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ Type Objects
320320
321321
.. versionadded:: next
322322
323+
.. seealso::
324+
The :c:func:`PyObject_GetOptionalAttr` function.
325+
323326
324327
.. c:function:: int PyUnstable_Type_AssignVersionTag(PyTypeObject *type)
325328

0 commit comments

Comments
 (0)