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

Commit08aaf2a

Browse files
Deploy preview for PR 1160 🛫
1 parent3867a90 commit08aaf2a

File tree

574 files changed

+748
-585
lines changed

Some content is hidden

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

574 files changed

+748
-585
lines changed

‎pr-preview/pr-1160/_sources/c-api/frame.rst.txt‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ See also :ref:`Reflection <reflection>`.
2929
Previously, this type was only available after including
3030
``<frameobject.h>``.
3131

32+
..c:function:: PyFrameObject *PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, PyObject *locals)
33+
34+
Create a new frame object. This function returns a:term:`strong reference`
35+
to the new frame object on success, and returns ``NULL`` with an exception
36+
set on failure.
37+
3238
..c:function::intPyFrame_Check(PyObject *obj)
3339
3440
Return non-zero if *obj* is a frame object.
@@ -161,6 +167,57 @@ See :pep:`667` for more information.
161167
162168
Return non-zero if *obj* is a frame:func:`locals` proxy.
163169
170+
171+
Legacy Local Variable APIs
172+
^^^^^^^^^^^^^^^^^^^^^^^^^^
173+
174+
These APIs are:term:`soft deprecated`. As of Python 3.13, they do nothing.
175+
They exist solely for backwards compatibility.
176+
177+
178+
..c:function::voidPyFrame_LocalsToFast(PyFrameObject *f, int clear)
179+
180+
This function is:term:`soft deprecated` and does nothing.
181+
182+
Prior to Python 3.13, this function would copy the:attr:`~frame.f_locals`
183+
attribute of *f* to the internal "fast" array of local variables, allowing
184+
changes in frame objects to be visible to the interpreter. If *clear* was
185+
true, this function would process variables that were unset in the locals
186+
dictionary.
187+
188+
..versionchanged::3.13
189+
This function now does nothing.
190+
191+
192+
..c:function::voidPyFrame_FastToLocals(PyFrameObject *f)
193+
194+
This function is:term:`soft deprecated` and does nothing.
195+
196+
Prior to Python 3.13, this function would copy the internal "fast" array
197+
of local variables (which is used by the interpreter) to the
198+
:attr:`~frame.f_locals` attribute of *f*, allowing changes in local
199+
variables to be visible to frame objects.
200+
201+
.. versionchanged:: 3.13
202+
This function now does nothing.
203+
204+
205+
.. c:function:: int PyFrame_FastToLocalsWithError(PyFrameObject *f)
206+
207+
This function is:term:`soft deprecated` and does nothing.
208+
209+
Prior to Python 3.13, this function was similar to
210+
:c:func:`PyFrame_FastToLocals`, but would return ``0`` on success, and
211+
``-1`` with an exception set on failure.
212+
213+
..versionchanged::3.13
214+
This function now does nothing.
215+
216+
217+
..seealso::
218+
:pep:`667`
219+
220+
164221
Internal Frames
165222
^^^^^^^^^^^^^^^
166223

‎pr-preview/pr-1160/_sources/c-api/type.rst.txt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,18 @@ Type Objects
133133
Type features are denoted by single bit flags.
134134
135135
136+
..c:function::intPyType_FastSubclass(PyTypeObject *type, int flag)
137+
138+
Return non-zero if the type object *type* sets the subclass flag *flag*.
139+
Subclass flags are denoted by
140+
:c:macro:`Py_TPFLAGS_*_SUBCLASS <Py_TPFLAGS_LONG_SUBCLASS>`.
141+
This function is used by many ``_Check`` functions for common types.
142+
143+
..seealso::
144+
:c:func:`PyObject_TypeCheck`, which is used as a slower alternative in
145+
``_Check`` functions for types that don't come with subclass flags.
146+
147+
136148
..c:function::intPyType_IS_GC(PyTypeObject *o)
137149
138150
Return true if the type object includes support for the cycle detector; this

‎pr-preview/pr-1160/_sources/c-api/typeobj.rst.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,8 +1336,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
13361336
..c:macro:: Py_TPFLAGS_BASE_EXC_SUBCLASS
13371337
..c:macro:: Py_TPFLAGS_TYPE_SUBCLASS
13381338
1339-
These flags are used by functions such as
1340-
:c:func:`PyLong_Check` to quickly determine if a type is a subclass
1339+
Functions such as:c:func:`PyLong_Check` will call:c:func:`PyType_FastSubclass`
1340+
with one of these flags to quickly determine if a type is a subclass
13411341
of a built-in type; such specific checks are faster than a generic
13421342
check, like:c:func:`PyObject_IsInstance`. Custom types that inherit
13431343
from built-ins should have their:c:member:`~PyTypeObject.tp_flags`

‎pr-preview/pr-1160/about.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ <h3>導航</h3>
314314
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
315315
<br>
316316
<br>
317-
最後更新於 11月10, 2025 (16:50 UTC)。
317+
最後更新於 11月11, 2025 (00:21 UTC)。
318318

319319
<ahref="/bugs.html">發現 bug</a>
320320

‎pr-preview/pr-1160/bugs.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ <h3>導航</h3>
351351
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
352352
<br>
353353
<br>
354-
最後更新於 11月10, 2025 (16:50 UTC)。
354+
最後更新於 11月11, 2025 (00:21 UTC)。
355355

356356
<ahref="/bugs.html">發現 bug</a>
357357

‎pr-preview/pr-1160/c-api/abstract.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ <h3>導航</h3>
323323
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
324324
<br>
325325
<br>
326-
最後更新於 11月10, 2025 (16:50 UTC)。
326+
最後更新於 11月11, 2025 (00:21 UTC)。
327327

328328
<ahref="/bugs.html">發現 bug</a>
329329

‎pr-preview/pr-1160/c-api/allocation.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ <h3>導航</h3>
532532
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
533533
<br>
534534
<br>
535-
最後更新於 11月10, 2025 (16:50 UTC)。
535+
最後更新於 11月11, 2025 (00:21 UTC)。
536536

537537
<ahref="/bugs.html">發現 bug</a>
538538

‎pr-preview/pr-1160/c-api/apiabiversion.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h3>導航</h3>
471471
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
472472
<br>
473473
<br>
474-
最後更新於 11月10, 2025 (16:50 UTC)。
474+
最後更新於 11月11, 2025 (00:21 UTC)。
475475

476476
<ahref="/bugs.html">發現 bug</a>
477477

‎pr-preview/pr-1160/c-api/arg.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ <h3>導航</h3>
954954
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
955955
<br>
956956
<br>
957-
最後更新於 11月10, 2025 (16:50 UTC)。
957+
最後更新於 11月11, 2025 (00:21 UTC)。
958958

959959
<ahref="/bugs.html">發現 bug</a>
960960

‎pr-preview/pr-1160/c-api/bool.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ <h3>導航</h3>
334334
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
335335
<br>
336336
<br>
337-
最後更新於 11月10, 2025 (16:50 UTC)。
337+
最後更新於 11月11, 2025 (00:21 UTC)。
338338

339339
<ahref="/bugs.html">發現 bug</a>
340340

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp