File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,15 @@ Sequence Protocol
105
105
equivalent to the Python expression ``value in o ``.
106
106
107
107
108
+ .. c :function :: int PySequence_In (PyObject *o, PyObject *value)
109
+
110
+ Alias for :c:func: `PySequence_Contains `.
111
+
112
+ .. deprecated :: 3.14
113
+ The function is :term: `soft deprecated ` and should no longer be used to
114
+ write new code.
115
+
116
+
108
117
.. c :function :: Py_ssize_t PySequence_Index (PyObject *o, PyObject *value)
109
118
110
119
Return the first index *i * for which ``o[i] == value ``. On error, return
Original file line number Diff line number Diff line change @@ -1073,6 +1073,10 @@ Deprecated
1073
1073
:c:macro: `!isfinite ` available from :file: `math.h `
1074
1074
since C99. (Contributed by Sergey B Kirpichev in :gh: `119613 `.)
1075
1075
1076
+ * The previously undocumented function :c:func: `PySequence_In ` is :term: `soft deprecated `.
1077
+ Use :c:func: `PySequence_Contains ` instead.
1078
+ (Contributed by Yuki Kobayashi in :gh: `127896 `.)
1079
+
1076
1080
.. Add C API deprecations above alphabetically, not here at the end.
1077
1081
1078
1082
.. include :: ../deprecations/c-api-pending-removal-in-3.15.rst
Original file line number Diff line number Diff line change
1
+ The previously undocumented function :c:func: `PySequence_In ` is :term: `soft deprecated `.
2
+ Use :c:func: `PySequence_Contains ` instead.
You can’t perform that action at this time.
0 commit comments