Skip to content

Commit ba6ebef

Browse files
committed
Complete _PyObject_GetDictPtr() migration guide
1 parent 8fca0cd commit ba6ebef

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,9 @@ Deprecated C APIs
919919
since 3.15 and will be removed in 3.17.
920920
(Contributed by Nikita Sobolev in :gh:`136355`.)
921921

922-
* Deprecate private :c:func:`_PyObject_GetDictPtr` function:
923-
use public :c:func:`PyObject_GetDict` or :c:func:`PyObject_GetAttr` instead.
922+
* Deprecate the private :c:func:`_PyObject_GetDictPtr` function:
923+
use public :c:func:`PyObject_GetDict`, :c:func:`PyObject_GetAttr`,
924+
:c:func:`PyObject_SetAttr` or :c:func:`PyObject_ClearManagedDict` instead.
924925
(Contributed by Victor Stinner in :gh:`139852`.)
925926

926927

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
Deprecate private :c:func:`_PyObject_GetDictPtr` function: use public
2-
:c:func:`PyObject_GetDict` or :c:func:`PyObject_GetAttr` instead.
1+
Deprecate the private :c:func:`_PyObject_GetDictPtr` function: use public
2+
:c:func:`PyObject_GetDict`, :c:func:`PyObject_GetAttr`,
3+
:c:func:`PyObject_SetAttr` or :c:func:`PyObject_ClearManagedDict` instead.

0 commit comments

Comments
 (0)