Skip to content

Commit 8f3ef45

Browse files
bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI (GH-25920)
(cherry picked from commit cf86996) Co-authored-by: Petr Viktorin <[email protected]>
1 parent 10d6f6b commit 8f3ef45

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:c:func:`PyCodec_Unregister` is now properly exported as a function in the
2+
Windows Stable ABI DLL.

Misc/stable_abi.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ function PyModule_AddObjectRef
20972097
added 3.10
20982098
data Py_FileSystemDefaultEncodeErrors
20992099
added 3.10
2100-
data PyCodec_Unregister
2100+
function PyCodec_Unregister
21012101
added 3.10
21022102
function PyErr_SetInterruptEx
21032103
added 3.10

PC/python3dll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ EXPORT_FUNC(PyCodec_ReplaceErrors)
156156
EXPORT_FUNC(PyCodec_StreamReader)
157157
EXPORT_FUNC(PyCodec_StreamWriter)
158158
EXPORT_FUNC(PyCodec_StrictErrors)
159+
EXPORT_FUNC(PyCodec_Unregister)
159160
EXPORT_FUNC(PyCodec_XMLCharRefReplaceErrors)
160161
EXPORT_FUNC(PyComplex_FromDoubles)
161162
EXPORT_FUNC(PyComplex_ImagAsDouble)
@@ -734,7 +735,6 @@ EXPORT_DATA(PyCallIter_Type)
734735
EXPORT_DATA(PyCapsule_Type)
735736
EXPORT_DATA(PyCFunction_Type)
736737
EXPORT_DATA(PyClassMethodDescr_Type)
737-
EXPORT_DATA(PyCodec_Unregister)
738738
EXPORT_DATA(PyComplex_Type)
739739
EXPORT_DATA(PyDict_Type)
740740
EXPORT_DATA(PyDictItems_Type)

0 commit comments

Comments
 (0)