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

Commit8ff4164

Browse files
committed
Deploy preview for PR 1160 🛫
1 parent507dc54 commit8ff4164

File tree

575 files changed

+714
-589
lines changed

Some content is hidden

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

575 files changed

+714
-589
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,33 @@ Floating-Point Objects
9696
the C11 standard ``<math.h>`` header.
9797
9898
99+
.. c:macro:: Py_MATH_E
100+
101+
The definition (accurate for a:c:expr:`double` type) of the :data:`math.e` constant.
102+
103+
99104
.. c:macro:: Py_MATH_El
100105
101106
High precision (long double) definition of :data:`~math.e` constant.
102107
103108
109+
.. c:macro:: Py_MATH_PI
110+
111+
The definition (accurate for a:c:expr:`double` type) of the :data:`math.pi` constant.
112+
113+
104114
.. c:macro:: Py_MATH_PIl
105115
106116
High precision (long double) definition of :data:`~math.pi` constant.
107117
108118
119+
.. c:macro:: Py_MATH_TAU
120+
121+
The definition (accurate for a:c:expr:`double` type) of the :data:`math.tau` constant.
122+
123+
.. versionadded:: 3.6
124+
125+
109126
.. c:macro:: Py_RETURN_NAN
110127
111128
Return :data:`math.nan` from a function.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ complete listing.
121121
122122
Return the absolute value of ``x``.
123123

124+
If the result cannot be represented (for example, if ``x`` has
125+
:c:macro:`!INT_MIN` value for:c:expr:`int` type), the behavior is
126+
undefined.
127+
124128
..versionadded::3.3
125129

126130
..c:macro:: Py_ALWAYS_INLINE

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,14 @@ Type Objects
195195
before initialization) and should be paired with :c:func:`PyObject_Free` in
196196
:c:member:`~PyTypeObject.tp_free`.
197197
198+
198199
.. c:function:: PyObject* PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds)
199200
200201
Generic handler for the:c:member:`~PyTypeObject.tp_new` slot of a type
201202
object. Creates a new instance using the type's
202203
:c:member:`~PyTypeObject.tp_alloc` slot and returns the resulting object.
203204
205+
204206
..c:function::intPyType_Ready(PyTypeObject *type)
205207
206208
Finalize a type object. This should be called on all type objects to finish
@@ -217,13 +219,15 @@ Type Objects
217219
GC protocol itself by at least implementing the
218220
:c:member:`~PyTypeObject.tp_traverse` handle.
219221
222+
220223
..c:function:: PyObject*PyType_GetName(PyTypeObject *type)
221224
222225
Return the type's name. Equivalent to getting the type's
223226
:attr:`~type.__name__` attribute.
224227
225228
..versionadded::3.11
226229
230+
227231
..c:function:: PyObject*PyType_GetQualName(PyTypeObject *type)
228232
229233
Return the type's qualified name. Equivalent to getting the
@@ -239,13 +243,15 @@ Type Objects
239243
240244
..versionadded::3.13
241245
246+
242247
..c:function:: PyObject*PyType_GetModuleName(PyTypeObject *type)
243248
244249
Return the type's module name. Equivalent to getting the
245250
:attr:`type.__module__` attribute.
246251
247252
..versionadded::3.13
248253
254+
249255
..c:function::void*PyType_GetSlot(PyTypeObject *type, int slot)
250256
251257
Return the function pointer stored in the given slot. If the
@@ -262,6 +268,7 @@ Type Objects
262268
:c:func:`PyType_GetSlot` can now accept all types.
263269
Previously, it was limited to:ref:`heap types<heap-types>`.
264270
271+
265272
..c:function:: PyObject*PyType_GetModule(PyTypeObject *type)
266273
267274
Return the module object associated with the given type when the type was
@@ -281,6 +288,7 @@ Type Objects
281288
282289
..versionadded::3.9
283290
291+
284292
..c:function::void*PyType_GetModuleState(PyTypeObject *type)
285293
286294
Return the state of the module object associated with the given type.
@@ -295,6 +303,7 @@ Type Objects
295303
296304
..versionadded::3.9
297305
306+
298307
..c:function:: PyObject*PyType_GetModuleByDef(PyTypeObject *type, struct PyModuleDef *def)
299308
300309
Find the first superclass whose module was created from
@@ -314,6 +323,7 @@ Type Objects
314323
315324
.. versionadded:: 3.11
316325
326+
317327
.. c:function:: int PyType_GetBaseByToken(PyTypeObject *type, void *token, PyTypeObject **result)
318328
319329
Find the first superclass in *type*'s:term:`method resolution order` whose
@@ -332,6 +342,7 @@ Type Objects
332342
333343
..versionadded::3.14
334344
345+
335346
..c:function::intPyUnstable_Type_AssignVersionTag(PyTypeObject *type)
336347
337348
Attempt to assign a version tag to the given type.
@@ -342,6 +353,16 @@ Type Objects
342353
..versionadded::3.12
343354
344355
356+
..c:function::intPyType_SUPPORTS_WEAKREFS(PyTypeObject *type)
357+
358+
Return true if instances of *type* support creating weak references, false
359+
otherwise. This function always succeeds. *type* must not be ``NULL``.
360+
361+
..seealso::
362+
*:ref:`weakrefobjects`
363+
*:py:mod:`weakref`
364+
365+
345366
Creating Heap-Allocated Types
346367
.............................
347368
@@ -390,6 +411,7 @@ The following functions and structs are used to create
390411
391412
.. versionadded:: 3.12
392413
414+
393415
.. c:function:: PyObject* PyType_FromModuleAndSpec(PyObject *module, PyType_Spec *spec, PyObject *bases)
394416
395417
Equivalent to ``PyType_FromMetaclass(NULL, module, spec, bases)``.
@@ -416,6 +438,7 @@ The following functions and structs are used to create
416438
Creating classes whose metaclass overrides
417439
:c:member:`~PyTypeObject.tp_new` is no longer allowed.
418440
441+
419442
..c:function:: PyObject*PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases)
420443
421444
Equivalent to ``PyType_FromMetaclass(NULL, NULL, spec, bases)``.
@@ -437,6 +460,7 @@ The following functions and structs are used to create
437460
Creating classes whose metaclass overrides
438461
:c:member:`~PyTypeObject.tp_new` is no longer allowed.
439462
463+
440464
..c:function:: PyObject*PyType_FromSpec(PyType_Spec *spec)
441465
442466
Equivalent to ``PyType_FromMetaclass(NULL, NULL, spec, NULL)``.
@@ -457,6 +481,7 @@ The following functions and structs are used to create
457481
Creating classes whose metaclass overrides
458482
:c:member:`~PyTypeObject.tp_new` is no longer allowed.
459483
484+
460485
..c:function::intPyType_Freeze(PyTypeObject *type)
461486
462487
Make a type immutable: set the:c:macro:`Py_TPFLAGS_IMMUTABLETYPE` flag.
@@ -628,6 +653,7 @@ The following functions and structs are used to create
628653
* :c:data:`Py_tp_token` (for clarity, prefer:c:data:`Py_TP_USE_SPEC`
629654
rather than ``NULL``)
630655
656+
631657
.. c:macro:: Py_tp_token
632658
633659
A :c:member:`~PyType_Slot.slot` that records a static memory layout ID

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ as much as it can.
4545
weakly referenceable object, or if *callback* is not callable, ``None``, or
4646
``NULL``, this will return ``NULL`` and raise:exc:`TypeError`.
4747
48+
..seealso::
49+
:c:func:`PyType_SUPPORTS_WEAKREFS` for checking if *ob* is weakly
50+
referenceable.
51+
4852
4953
..c:function:: PyObject*PyWeakref_NewProxy(PyObject *ob, PyObject *callback)
5054
@@ -57,6 +61,10 @@ as much as it can.
5761
is not a weakly referenceable object, or if *callback* is not callable,
5862
``None``, or ``NULL``, this will return ``NULL`` and raise:exc:`TypeError`.
5963
64+
..seealso::
65+
:c:func:`PyType_SUPPORTS_WEAKREFS` for checking if *ob* is weakly
66+
referenceable.
67+
6068
6169
..c:function::intPyWeakref_GetRef(PyObject *ref, PyObject **pobj)
6270

‎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月 12, 2025 (03:35 UTC)。
317+
最後更新於 11月 12, 2025 (18:25 UTC)。
318318

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

‎pr-preview/pr-1160/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月 12, 2025 (03:35 UTC)。
354+
最後更新於 11月 12, 2025 (18:25 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月 12, 2025 (03:35 UTC)。
326+
最後更新於 11月 12, 2025 (18:25 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月 12, 2025 (03:35 UTC)。
535+
最後更新於 11月 12, 2025 (18:25 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月 12, 2025 (03:35 UTC)。
474+
最後更新於 11月 12, 2025 (18:25 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月 12, 2025 (03:35 UTC)。
957+
最後更新於 11月 12, 2025 (18:25 UTC)。
958958

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp