Skip to content

Commit ef43d5e

Browse files
Deploy preview for PR 1226 🛫
1 parent 91913c9 commit ef43d5e

591 files changed

Lines changed: 742 additions & 743 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pr-preview/pr-1226/_sources/c-api/allocation.rst.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.. _allocating-objects:
44

5-
Allocating Objects on the Heap
5+
Allocating objects on the heap
66
==============================
77

88

@@ -153,18 +153,20 @@ Allocating Objects on the Heap
153153
To allocate and create extension modules.
154154

155155

156-
Deprecated aliases
157-
^^^^^^^^^^^^^^^^^^
156+
Soft-deprecated aliases
157+
^^^^^^^^^^^^^^^^^^^^^^^
158158

159-
These are :term:`soft deprecated` aliases to existing functions and macros.
159+
.. soft-deprecated:: 3.10
160+
161+
These are aliases to existing functions and macros.
160162
They exist solely for backwards compatibility.
161163

162164

163165
.. list-table::
164166
:widths: auto
165167
:header-rows: 1
166168

167-
* * Deprecated alias
169+
* * Soft-deprecated alias
168170
* Function
169171
* * .. c:macro:: PyObject_NEW(type, typeobj)
170172
* :c:macro:`PyObject_New`

pr-preview/pr-1226/_sources/c-api/file.rst.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.. _fileobjects:
44

5-
File Objects
5+
File objects
66
------------
77

88
.. index:: pair: object; file
@@ -136,11 +136,12 @@ the :mod:`io` APIs instead.
136136
failure; the appropriate exception will be set.
137137
138138
139-
Deprecated API
140-
^^^^^^^^^^^^^^
139+
Soft-deprecated API
140+
^^^^^^^^^^^^^^^^^^^
141141
142+
.. soft-deprecated:: 3.15
142143
143-
These are :term:`soft deprecated` APIs that were included in Python's C API
144+
These are APIs that were included in Python's C API
144145
by mistake. They are documented solely for completeness; use other
145146
``PyFile*`` APIs instead.
146147

pr-preview/pr-1226/_sources/c-api/frame.rst.txt

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. highlight:: c
22

3-
Frame Objects
3+
Frame objects
44
-------------
55

66
.. c:type:: PyFrameObject
@@ -147,7 +147,7 @@ See also :ref:`Reflection <reflection>`.
147147
Return the line number that *frame* is currently executing.
148148
149149
150-
Frame Locals Proxies
150+
Frame locals proxies
151151
^^^^^^^^^^^^^^^^^^^^
152152
153153
.. versionadded:: 3.13
@@ -169,7 +169,7 @@ See :pep:`667` for more information.
169169
Return non-zero if *obj* is a frame :func:`locals` proxy.
170170
171171
172-
Legacy Local Variable APIs
172+
Legacy local variable APIs
173173
^^^^^^^^^^^^^^^^^^^^^^^^^^
174174
175175
These APIs are :term:`soft deprecated`. As of Python 3.13, they do nothing.
@@ -178,48 +178,42 @@ They exist solely for backwards compatibility.
178178
179179
.. c:function:: void PyFrame_LocalsToFast(PyFrameObject *f, int clear)
180180
181-
This function is :term:`soft deprecated` and does nothing.
182-
183181
Prior to Python 3.13, this function would copy the :attr:`~frame.f_locals`
184182
attribute of *f* to the internal "fast" array of local variables, allowing
185183
changes in frame objects to be visible to the interpreter. If *clear* was
186184
true, this function would process variables that were unset in the locals
187185
dictionary.
188186
189-
.. versionchanged:: 3.13
187+
.. soft-deprecated:: 3.13
190188
This function now does nothing.
191189
192190
193191
.. c:function:: void PyFrame_FastToLocals(PyFrameObject *f)
194192
195-
This function is :term:`soft deprecated` and does nothing.
196-
197193
Prior to Python 3.13, this function would copy the internal "fast" array
198194
of local variables (which is used by the interpreter) to the
199195
:attr:`~frame.f_locals` attribute of *f*, allowing changes in local
200196
variables to be visible to frame objects.
201197
202-
.. versionchanged:: 3.13
198+
.. soft-deprecated:: 3.13
203199
This function now does nothing.
204200
205201
206202
.. c:function:: int PyFrame_FastToLocalsWithError(PyFrameObject *f)
207203
208-
This function is :term:`soft deprecated` and does nothing.
209-
210204
Prior to Python 3.13, this function was similar to
211205
:c:func:`PyFrame_FastToLocals`, but would return ``0`` on success, and
212206
``-1`` with an exception set on failure.
213207
214-
.. versionchanged:: 3.13
208+
.. soft-deprecated:: 3.13
215209
This function now does nothing.
216210
217211
218212
.. seealso::
219213
:pep:`667`
220214
221215
222-
Internal Frames
216+
Internal frames
223217
^^^^^^^^^^^^^^^
224218
225219
Unless using :pep:`523`, you will not need this.
@@ -249,5 +243,3 @@ Unless using :pep:`523`, you will not need this.
249243
Return the currently executing line number, or -1 if there is no line number.
250244
251245
.. versionadded:: 3.12
252-
253-

pr-preview/pr-1226/_sources/c-api/long.rst.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,10 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
197197
198198
.. c:function:: long PyLong_AS_LONG(PyObject *obj)
199199
200-
A :term:`soft deprecated` alias.
201200
Exactly equivalent to the preferred ``PyLong_AsLong``. In particular,
202201
it can fail with :exc:`OverflowError` or another exception.
203202
204-
.. deprecated:: 3.14
205-
The function is soft deprecated.
203+
.. soft-deprecated:: 3.14
206204
207205
.. c:function:: int PyLong_AsInt(PyObject *obj)
208206

pr-preview/pr-1226/_sources/c-api/module.rst.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,9 +604,7 @@ or code that creates modules dynamically.
604604
// PyModule_AddObject() stole a reference to obj:
605605
// Py_XDECREF(obj) is not needed here.
606606
607-
.. deprecated:: 3.13
608-
609-
:c:func:`PyModule_AddObject` is :term:`soft deprecated`.
607+
.. soft-deprecated:: 3.13
610608
611609
612610
.. c:function:: int PyModule_AddIntConstant(PyObject *module, const char *name, long value)

pr-preview/pr-1226/_sources/c-api/monitoring.rst.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,4 @@ would typically correspond to a Python function.
205205
206206
.. versionadded:: 3.13
207207
208-
.. deprecated:: 3.14
209-
210-
This function is :term:`soft deprecated`.
208+
.. soft-deprecated:: 3.14

pr-preview/pr-1226/_sources/c-api/sequence.rst.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ Sequence Protocol
109109
110110
Alias for :c:func:`PySequence_Contains`.
111111
112-
.. deprecated:: 3.14
113-
The function is :term:`soft deprecated` and should no longer be used to
114-
write new code.
112+
.. soft-deprecated:: 3.14
113+
The function should no longer be used to write new code.
115114
116115
117116
.. c:function:: Py_ssize_t PySequence_Index(PyObject *o, PyObject *value)

pr-preview/pr-1226/_sources/library/mimetypes.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ the information :func:`init` sets up.
5656
.. versionchanged:: 3.8
5757
Added support for *url* being a :term:`path-like object`.
5858

59-
.. deprecated:: 3.13
59+
.. soft-deprecated:: 3.13
6060
Passing a file path instead of URL is :term:`soft deprecated`.
6161
Use :func:`guess_file_type` for this.
6262

pr-preview/pr-1226/_sources/library/os.rst.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4711,9 +4711,8 @@ written in Python, such as a mail server's external command delivery program.
47114711
Use :class:`subprocess.Popen` or :func:`subprocess.run` to
47124712
control options like encodings.
47134713

4714-
.. deprecated:: 3.14
4715-
The function is :term:`soft deprecated` and should no longer be used to
4716-
write new code. The :mod:`subprocess` module is recommended instead.
4714+
.. soft-deprecated:: 3.14
4715+
The :mod:`subprocess` module is recommended instead.
47174716

47184717

47194718
.. function:: posix_spawn(path, argv, env, *, file_actions=None, \
@@ -4941,9 +4940,8 @@ written in Python, such as a mail server's external command delivery program.
49414940
.. versionchanged:: 3.6
49424941
Accepts a :term:`path-like object`.
49434942

4944-
.. deprecated:: 3.14
4945-
These functions are :term:`soft deprecated` and should no longer be used
4946-
to write new code. The :mod:`subprocess` module is recommended instead.
4943+
.. soft-deprecated:: 3.14
4944+
The :mod:`subprocess` module is recommended instead.
49474945

49484946

49494947
.. data:: P_NOWAIT

pr-preview/pr-1226/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h3>導航</h3>
356356
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
357357
<br>
358358
<br>
359-
最後更新於 4月 21, 2026 (00:34 UTC)。
359+
最後更新於 4月 23, 2026 (00:36 UTC)。
360360

361361
<a href="/bugs.html">發現 bug</a>
362362

0 commit comments

Comments
 (0)