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

Commitda2a52b

Browse files
committed
Deploy preview for PR 1172 🛫
1 parent52270bf commitda2a52b

File tree

576 files changed

+1012
-726
lines changed

Some content is hidden

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

576 files changed

+1012
-726
lines changed

‎pr-preview/pr-1172/_sources/c-api/datetime.rst.txt‎

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,42 @@ DateTime Objects
88
Various date and time objects are supplied by the:mod:`datetime` module.
99
Before using any of these functions, the header file:file:`datetime.h` must be
1010
included in your source (note that this is not included by:file:`Python.h`),
11-
and the macro:c:macro:`!PyDateTime_IMPORT` must be invoked, usually as part of
11+
and the macro:c:macro:`PyDateTime_IMPORT` must be invoked, usually as part of
1212
the module initialisation function. The macro puts a pointer to a C structure
13-
into a static variable,:c:data:`!PyDateTimeAPI`, that is used by the following
13+
into a static variable,:c:data:`PyDateTimeAPI`, that is used by the following
1414
macros.
1515

16+
..c:macro:: PyDateTime_IMPORT()
17+
18+
Import the datetime C API.
19+
20+
On success, populate the:c:var:`PyDateTimeAPI` pointer.
21+
On failure, set:c:var:`PyDateTimeAPI` to ``NULL`` and set an exception.
22+
The caller must check if an error occurred via:c:func:`PyErr_Occurred`:
23+
24+
..code-block::
25+
26+
PyDateTime_IMPORT;
27+
if (PyErr_Occurred()) { /* cleanup */ }
28+
29+
..warning::
30+
31+
This is not compatible with subinterpreters.
32+
33+
..c:type:: PyDateTime_CAPI
34+
35+
Structure containing the fields for the datetime C API.
36+
37+
The fields of this structure are private and subject to change.
38+
39+
Do not use this directly; prefer ``PyDateTime_*`` APIs instead.
40+
41+
..c:var:: PyDateTime_CAPI *PyDateTimeAPI
42+
43+
Dynamically allocated object containing the datetime C API.
44+
45+
This variable is only available once:c:macro:`PyDateTime_IMPORT` succeeds.
46+
1647
..c:type:: PyDateTime_Date
1748
1849
This subtype of:c:type:`PyObject` represents a Python date object.
@@ -325,3 +356,16 @@ Macros for the convenience of modules implementing the DB API:
325356
326357
Create and return a new:class:`datetime.date` object given an argument
327358
tuple suitable for passing to:meth:`datetime.date.fromtimestamp`.
359+
360+
361+
Internal data
362+
-------------
363+
364+
The following symbols are exposed by the C API but should be considered
365+
internal-only.
366+
367+
..c:macro:: PyDateTime_CAPSULE_NAME
368+
369+
Name of the datetime capsule to pass to:c:func:`PyCapsule_Import`.
370+
371+
Internal usage only. Use:c:macro:`PyDateTime_IMPORT` instead.

‎pr-preview/pr-1172/_sources/c-api/gen.rst.txt‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,41 @@ than explicitly calling :c:func:`PyGen_New` or :c:func:`PyGen_NewWithQualName`.
4444
with ``__name__`` and ``__qualname__`` set to *name* and *qualname*.
4545
A reference to *frame* is stolen by this function. The *frame* argument
4646
must not be ``NULL``.
47+
48+
..c:function:: PyCodeObject*PyGen_GetCode(PyGenObject *gen)
49+
50+
Return a new:term:`strong reference` to the code object wrapped by *gen*.
51+
This function always succeeds.
52+
53+
54+
Asynchronous Generator Objects
55+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56+
57+
..seealso::
58+
:pep:`525`
59+
60+
..c:var:: PyTypeObject PyAsyncGen_Type
61+
62+
The type object corresponding to asynchronous generator objects. This is
63+
available as:class:`types.AsyncGeneratorType` in the Python layer.
64+
65+
..versionadded::3.6
66+
67+
..c:function:: PyObject *PyAsyncGen_New(PyFrameObject *frame, PyObject *name, PyObject *qualname)
68+
69+
Create a new asynchronous generator wrapping *frame*, with ``__name__`` and
70+
``__qualname__`` set to *name* and *qualname*. *frame* is stolen by this
71+
function and must not be ``NULL``.
72+
73+
On success, this function returns a:term:`strong reference` to the
74+
new asynchronous generator. On failure, this function returns ``NULL``
75+
with an exception set.
76+
77+
..versionadded::3.6
78+
79+
..c:function::intPyAsyncGen_CheckExact(PyObject *op)
80+
81+
Return true if *op* is an asynchronous generator object, false otherwise.
82+
This function always succeeds.
83+
84+
..versionadded::3.6

‎pr-preview/pr-1172/_sources/c-api/init.rst.txt‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,25 @@ pointer and a void pointer argument.
20192019
This function now always schedules *func* to be run in the main
20202020
interpreter.
20212021
2022+
2023+
.. c:function:: int Py_MakePendingCalls(void)
2024+
2025+
Execute all pending calls. This is usually executed automatically by the
2026+
interpreter.
2027+
2028+
This function returns ``0`` on success, and returns ``-1`` with an exception
2029+
set on failure.
2030+
2031+
If this is not called in the main thread of the main
2032+
interpreter, this function does nothing and returns ``0``.
2033+
The caller must hold an :term:`attached thread state`.
2034+
2035+
.. versionadded:: 3.1
2036+
2037+
.. versionchanged:: 3.12
2038+
This function only runs pending calls in the main interpreter.
2039+
2040+
20222041
.. _profiling:
20232042
20242043
Profiling and Tracing

‎pr-preview/pr-1172/_sources/library/socketserver.rst.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ The difference is that the ``readline()`` call in the second handler will call
544544
first handler had to use a ``recv()`` loop to accumulate data until a
545545
newline itself. If it had just used a single ``recv()`` without the loop it
546546
would just have returned what has been received so far from the client.
547-
TCP is stream based: data arrives in the order it was sent, but there no
547+
TCP is stream based: data arrives in the order it was sent, but thereisno
548548
correlation between client ``send()`` or ``sendall()`` calls and the number
549549
of ``recv()`` calls on the server required to receive it.
550550

‎pr-preview/pr-1172/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月 20, 2025 (00:20 UTC)。
317+
最後更新於 11月 20, 2025 (17:56 UTC)。
318318

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
229229
</section>
230230
<sectionid="getting-started-contributing-to-python-yourself">
231231
<spanid="contributing-to-python"></span><h2>開始讓自己貢獻 Python<aclass="headerlink"href="#getting-started-contributing-to-python-yourself"title="連結到這個標頭"></a></h2>
232-
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在<aclass="reference external"href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<aclass="reference external"href="https://devguide.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
232+
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在<aclass="reference external"href="https://devguide.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<aclass="reference external"href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
233233
</section>
234234
</section>
235235

@@ -351,7 +351,7 @@ <h3>導航</h3>
351351
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
352352
<br>
353353
<br>
354-
最後更新於 11月 20, 2025 (00:20 UTC)。
354+
最後更新於 11月 20, 2025 (17:56 UTC)。
355355

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

‎pr-preview/pr-1172/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月 20, 2025 (00:20 UTC)。
326+
最後更新於 11月 20, 2025 (17:56 UTC)。
327327

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

‎pr-preview/pr-1172/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月 20, 2025 (00:20 UTC)。
535+
最後更新於 11月 20, 2025 (17:56 UTC)。
536536

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

‎pr-preview/pr-1172/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月 20, 2025 (00:20 UTC)。
474+
最後更新於 11月 20, 2025 (17:56 UTC)。
475475

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

‎pr-preview/pr-1172/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月 20, 2025 (00:20 UTC)。
957+
最後更新於 11月 20, 2025 (17:56 UTC)。
958958

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp