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

Commit9c0ad00

Browse files
Deploy preview for PR 1148 🛫
1 parentfedfe74 commit9c0ad00

File tree

574 files changed

+711
-611
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

+711
-611
lines changed

‎pr-preview/pr-1148/_sources/faq/general.rst.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ How do I get documentation on Python?
186186
-------------------------------------
187187

188188
The standard documentation for the current stable version of Python is available
189-
at https://docs.python.org/3/.PDF, plain text, and downloadable HTML versions are
189+
at https://docs.python.org/3/.EPUB, plain text, and downloadable HTML versions are
190190
also available at https://docs.python.org/3/download.html.
191191

192192
The documentation is written in reStructuredText and processed by `the Sphinx

‎pr-preview/pr-1148/_sources/library/annotationlib.rst.txt‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,29 @@ Functions
340340

341341
* VALUE::attr:`!object.__annotations__` is tried first; if that does not exist,
342342
the:attr:`!object.__annotate__` function is called if it exists.
343+
343344
* FORWARDREF: If:attr:`!object.__annotations__` exists and can be evaluated successfully,
344345
it is used; otherwise, the:attr:`!object.__annotate__` function is called. If it
345346
does not exist either,:attr:`!object.__annotations__` is tried again and any error
346347
from accessing it is re-raised.
348+
349+
* When calling:attr:`!object.__annotate__` it is first called with:attr:`~Format.FORWARDREF`.
350+
If this is not implemented, it will then check if:attr:`~Format.VALUE_WITH_FAKE_GLOBALS`
351+
is supported and use that in the fake globals environment.
352+
If neither of these formats are supported, it will fall back to using:attr:`~Format.VALUE`.
353+
If:attr:`~Format.VALUE` fails, the error from this call will be raised.
354+
347355
* STRING: If:attr:`!object.__annotate__` exists, it is called first;
348356
otherwise,:attr:`!object.__annotations__` is used and stringified
349357
using:func:`annotations_to_string`.
350358

359+
* When calling:attr:`!object.__annotate__` it is first called with:attr:`~Format.STRING`.
360+
If this is not implemented, it will then check if:attr:`~Format.VALUE_WITH_FAKE_GLOBALS`
361+
is supported and use that in the fake globals environment.
362+
If neither of these formats are supported, it will fall back to using:attr:`~Format.VALUE`
363+
with the result converted using:func:`annotations_to_string`.
364+
If:attr:`~Format.VALUE` fails, the error from this call will be raised.
365+
351366
Returns a dict.:func:`!get_annotations` returns a new dict every time
352367
it's called; calling it twice on the same object will return two
353368
different but equivalent dicts.

‎pr-preview/pr-1148/_sources/library/zlib.rst.txt‎

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,20 @@ The available exception and functions in this module are:
4444
..versionchanged::3.0
4545
The result is always unsigned.
4646

47-
..function::compress(data, /, level=-1, wbits=MAX_WBITS)
47+
..function::compress(data, /, level=Z_DEFAULT_COMPRESSION, wbits=MAX_WBITS)
4848

4949
Compresses the bytes in *data*, returning a bytes object containing compressed data.
5050
*level* is an integer from ``0`` to ``9`` or ``-1`` controlling the level of compression;
51-
``1`` (Z_BEST_SPEED) is fastest and produces the least compression, ``9`` (Z_BEST_COMPRESSION)
52-
is slowest and produces the most. ``0`` (Z_NO_COMPRESSION) is no compression.
53-
The default value is ``-1`` (Z_DEFAULT_COMPRESSION). Z_DEFAULT_COMPRESSION represents a default
54-
compromise between speed and compression (currently equivalent to level 6).
51+
See:const:`Z_BEST_SPEED` (``1``),:const:`Z_BEST_COMPRESSION` (``9``),
52+
:const:`Z_NO_COMPRESSION` (``0``), and the default,
53+
:const:`Z_DEFAULT_COMPRESSION` (``-1``) for more information about these values.
5554

5655
.. _compress-wbits:
5756

5857
The *wbits* argument controls the size of the history buffer (or the
5958
"window size") used when compressing data, and whether a header and
6059
trailer is included in the output. It can take several ranges of values,
61-
defaulting to ``15`` (MAX_WBITS):
60+
defaulting to ``15`` (:const:`MAX_WBITS`):
6261

6362
* +9 to +15: The base-two logarithm of the window size, which
6463
therefore ranges between 512 and 32768. Larger values produce
@@ -82,17 +81,15 @@ The available exception and functions in this module are:
8281
The *wbits* parameter is now available to set window bits and
8382
compression type.
8483

85-
..function::compressobj(level=-1, method=DEFLATED, wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL, strategy=Z_DEFAULT_STRATEGY[, zdict])
84+
..function::compressobj(level=Z_DEFAULT_COMPRESSION, method=DEFLATED, wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL, strategy=Z_DEFAULT_STRATEGY[, zdict])
8685

8786
Returns a compression object, to be used for compressing data streams that won't
8887
fit into memory at once.
8988

9089
*level* is the compression level -- an integer from ``0`` to ``9`` or ``-1``.
91-
A value of ``1`` (Z_BEST_SPEED) is fastest and produces the least compression,
92-
while a value of ``9`` (Z_BEST_COMPRESSION) is slowest and produces the most.
93-
``0`` (Z_NO_COMPRESSION) is no compression. The default value is ``-1`` (Z_DEFAULT_COMPRESSION).
94-
Z_DEFAULT_COMPRESSION represents a default compromise between speed and compression
95-
(currently equivalent to level 6).
90+
See:const:`Z_BEST_SPEED` (``1``),:const:`Z_BEST_COMPRESSION` (``9``),
91+
:const:`Z_NO_COMPRESSION` (``0``), and the default,
92+
:const:`Z_DEFAULT_COMPRESSION` (``-1``) for more information about these values.
9693

9794
*method* is the compression algorithm. Currently, the only supported value is
9895
:const:`DEFLATED`.
@@ -107,7 +104,7 @@ The available exception and functions in this module are:
107104

108105
*strategy* is used to tune the compression algorithm. Possible values are
109106
:const:`Z_DEFAULT_STRATEGY`,:const:`Z_FILTERED`,:const:`Z_HUFFMAN_ONLY`,
110-
:const:`Z_RLE`(zlib 1.2.0.1)and:const:`Z_FIXED` (zlib 1.2.2.2).
107+
:const:`Z_RLE` and:const:`Z_FIXED`.
111108

112109
*zdict* is a predefined compression dictionary. This is a sequence of bytes
113110
(such as a:class:`bytes` object) containing subsequences that are expected
@@ -221,7 +218,7 @@ Compression objects support the following methods:
221218
All pending input is processed, and a bytes object containing the remaining compressed
222219
output is returned. *mode* can be selected from the constants
223220
:const:`Z_NO_FLUSH`,:const:`Z_PARTIAL_FLUSH`,:const:`Z_SYNC_FLUSH`,
224-
:const:`Z_FULL_FLUSH`,:const:`Z_BLOCK` (zlib 1.2.3.4), or:const:`Z_FINISH`,
221+
:const:`Z_FULL_FLUSH`,:const:`Z_BLOCK`, or:const:`Z_FINISH`,
225222
defaulting to:const:`Z_FINISH`. Except:const:`Z_FINISH`, all constants
226223
allow compressing further bytestrings of data, while:const:`Z_FINISH` finishes the
227224
compressed stream and prevents compressing any more data. After calling:meth:`flush`
@@ -339,24 +336,25 @@ behavior:
339336

340337
..data::Z_NO_COMPRESSION
341338

342-
Compression level ``0``.
339+
Compression level ``0``; no compression.
343340

344341
..versionadded::3.6
345342

346343

347344
..data::Z_BEST_SPEED
348345

349-
Compression level ``1``.
346+
Compression level ``1``; fastest and produces the least compression.
350347

351348

352349
..data::Z_BEST_COMPRESSION
353350

354-
Compression level ``9``.
351+
Compression level ``9``; slowest and produces the most compression.
355352

356353

357354
..data::Z_DEFAULT_COMPRESSION
358355

359-
Default compression level (``-1``).
356+
Default compression level (``-1``); a compromise between speed and
357+
compression. Currently equivalent to compression level ``6``.
360358

361359

362360
..data::Z_DEFAULT_STRATEGY

‎pr-preview/pr-1148/_sources/reference/datamodel.rst.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ Special attributes
11851185
single: __module__ (class attribute)
11861186
single: __dict__ (class attribute)
11871187
single: __bases__ (class attribute)
1188+
single: __base__ (class attribute)
11881189
single: __doc__ (class attribute)
11891190
single: __annotations__ (class attribute)
11901191
single: __annotate__ (class attribute)
@@ -1219,6 +1220,13 @@ Special attributes
12191220
In most cases, for a class defined as ``class X(A, B, C)``,
12201221
``X.__bases__`` will be exactly equal to ``(A, B, C)``.
12211222

1223+
* - .. attribute:: type.__base__
1224+
- .. impl-detail::
1225+
1226+
The single base class in the inheritance chain that is responsible
1227+
for the memory layout of instances. This attribute corresponds to
1228+
:c:member:`~PyTypeObject.tp_base` at the C level.
1229+
12221230
* - .. attribute:: type.__doc__
12231231
- The class's documentation string, or ``None`` if undefined.
12241232
Not inherited by subclasses.

‎pr-preview/pr-1148/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-
最後更新於 10月21, 2025 (00:19 UTC)。
317+
最後更新於 10月22, 2025 (00:20 UTC)。
318318

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
233233
</section>
234234
<sectionid="getting-started-contributing-to-python-yourself">
235235
<spanid="contributing-to-python"></span><h2>開始讓自己貢獻 Python<aclass="headerlink"href="#getting-started-contributing-to-python-yourself"title="連結到這個標頭"></a></h2>
236-
<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>
236+
<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>
237237
</section>
238238
</section>
239239

@@ -355,7 +355,7 @@ <h3>導航</h3>
355355
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
356356
<br>
357357
<br>
358-
最後更新於 10月21, 2025 (00:19 UTC)。
358+
最後更新於 10月22, 2025 (00:20 UTC)。
359359

360360
<ahref="/bugs.html">發現 bug</a>
361361

‎pr-preview/pr-1148/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-
最後更新於 10月21, 2025 (00:19 UTC)。
326+
最後更新於 10月22, 2025 (00:20 UTC)。
327327

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ <h3>導航</h3>
432432
<ahref="https://www.python.org/psf/donations/">敬請捐贈。</a>
433433
<br>
434434
<br>
435-
最後更新於 10月21, 2025 (00:19 UTC)。
435+
最後更新於 10月22, 2025 (00:20 UTC)。
436436

437437
<ahref="/bugs.html">發現 bug</a>
438438

‎pr-preview/pr-1148/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-
最後更新於 10月21, 2025 (00:19 UTC)。
474+
最後更新於 10月22, 2025 (00:20 UTC)。
475475

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

‎pr-preview/pr-1148/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-
最後更新於 10月21, 2025 (00:19 UTC)。
957+
最後更新於 10月22, 2025 (00:20 UTC)。
958958

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp