Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaa4eeb5

Browse files
committed
doc: fix link to PyObject_ClearManagedDict()
1 parent6d22132 commitaa4eeb5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

‎Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
14731473

14741474
If the:c:macro:`Py_TPFLAGS_MANAGED_DICT` bit is set in the
14751475
:c:member:`~PyTypeObject.tp_flags` field, the traverse function must call
1476-
:func:`PyObject_ClearManagedDict` like this::
1476+
:c:func:`PyObject_ClearManagedDict` like this::
14771477

14781478
PyObject_ClearManagedDict((PyObject*)self);
14791479

‎Doc/whatsnew/3.12.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,9 +1806,10 @@ New Features
18061806
hide implementation details.
18071807
(Contributed by Victor Stinner in:gh:`105387`.)
18081808

1809-
* Add:c:func:`PyObject_VisitManagedDict` and:func:`PyObject_ClearManagedDict`
1810-
functions which must be called by the traverse and clear functions of a type
1811-
using:c:macro:`Py_TPFLAGS_MANAGED_DICT` flag.
1809+
* Add:c:func:`PyObject_VisitManagedDict` and
1810+
:c:func:`PyObject_ClearManagedDict` functions which must be called by the
1811+
traverse and clear functions of a type using
1812+
:c:macro:`Py_TPFLAGS_MANAGED_DICT` flag.
18121813
(Contributed by Victor Stinner in:gh:`107073`.)
18131814

18141815
Porting to Python 3.12
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Add:c:func:`PyObject_VisitManagedDict` and
2-
:func:`PyObject_ClearManagedDict` functions which must be called by the
3-
traverse and clear functions of a type using
4-
:c:macro:`Py_TPFLAGS_MANAGED_DICT` flag. Patch by Victor Stinner.
1+
Add:c:func:`PyObject_VisitManagedDict` and:c:func:`PyObject_ClearManagedDict`
2+
functions which must be called by the traverse and clear functions of a type
3+
using:c:macro:`Py_TPFLAGS_MANAGED_DICT` flag. Patch by Victor Stinner.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp