Skip to content

Commit fedfe74

Browse files
Deploy preview for PR 1148 🛫
1 parent 5d4c84d commit fedfe74

File tree

574 files changed

+1667
-1617
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

+1667
-1617
lines changed

pr-preview/pr-1148/_sources/library/glob.rst.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,27 @@
1818
single: - (minus); in glob-style wildcards
1919
single: . (dot); in glob-style wildcards
2020

21-
The :mod:`glob` module finds all the pathnames matching a specified pattern
22-
according to the rules used by the Unix shell, although results are returned in
23-
arbitrary order. No tilde expansion is done, but ``*``, ``?``, and character
21+
The :mod:`!glob` module finds pathnames
22+
using pattern matching rules similar to the Unix shell.
23+
No tilde expansion is done, but ``*``, ``?``, and character
2424
ranges expressed with ``[]`` will be correctly matched. This is done by using
2525
the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions in concert, and
2626
not by actually invoking a subshell.
2727

28-
Note that files beginning with a dot (``.``) can only be matched by
28+
.. note::
29+
The pathnames are returned in no particular order. If you need a specific
30+
order, sort the results.
31+
32+
Files beginning with a dot (``.``) can only be matched by
2933
patterns that also start with a dot,
3034
unlike :func:`fnmatch.fnmatch` or :func:`pathlib.Path.glob`.
31-
(For tilde and shell variable expansion, use :func:`os.path.expanduser` and
32-
:func:`os.path.expandvars`.)
35+
For tilde and shell variable expansion, use :func:`os.path.expanduser` and
36+
:func:`os.path.expandvars`.
3337

3438
For a literal match, wrap the meta-characters in brackets.
3539
For example, ``'[?]'`` matches the character ``'?'``.
3640

37-
The :mod:`glob` module defines the following functions:
41+
The :mod:`!glob` module defines the following functions:
3842

3943

4044
.. function:: glob(pathname, *, root_dir=None, dir_fd=None, recursive=False, \
@@ -51,7 +55,7 @@ The :mod:`glob` module defines the following functions:
5155

5256
If *root_dir* is not ``None``, it should be a :term:`path-like object`
5357
specifying the root directory for searching. It has the same effect on
54-
:func:`glob` as changing the current directory before calling it. If
58+
:func:`!glob` as changing the current directory before calling it. If
5559
*pathname* is relative, the result will contain paths relative to
5660
*root_dir*.
5761

pr-preview/pr-1148/_sources/library/resource.rst.txt

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ platform.
127127
.. data:: RLIMIT_CPU
128128

129129
The maximum amount of processor time (in seconds) that a process can use. If
130-
this limit is exceeded, a :const:`SIGXCPU` signal is sent to the process. (See
130+
this limit is exceeded, a :const:`~signal.SIGXCPU` signal is sent to the process. (See
131131
the :mod:`signal` module documentation for information about how to catch this
132132
signal and do something useful, e.g. flush open files to disk.)
133133

@@ -310,47 +310,47 @@ These functions are used to retrieve resource usage information:
310310
For backward compatibility, the return value is also accessible as a tuple of 16
311311
elements.
312312

313-
The fields :attr:`ru_utime` and :attr:`ru_stime` of the return value are
313+
The fields :attr:`!ru_utime` and :attr:`!ru_stime` of the return value are
314314
floating-point values representing the amount of time spent executing in user
315315
mode and the amount of time spent executing in system mode, respectively. The
316316
remaining values are integers. Consult the :manpage:`getrusage(2)` man page for
317317
detailed information about these values. A brief summary is presented here:
318318

319-
+--------+---------------------+---------------------------------------+
320-
| Index | Field | Resource |
321-
+========+=====================+=======================================+
322-
| ``0`` | :attr:`ru_utime` | time in user mode (float seconds) |
323-
+--------+---------------------+---------------------------------------+
324-
| ``1`` | :attr:`ru_stime` | time in system mode (float seconds) |
325-
+--------+---------------------+---------------------------------------+
326-
| ``2`` | :attr:`ru_maxrss` | maximum resident set size |
327-
+--------+---------------------+---------------------------------------+
328-
| ``3`` | :attr:`ru_ixrss` | shared memory size |
329-
+--------+---------------------+---------------------------------------+
330-
| ``4`` | :attr:`ru_idrss` | unshared memory size |
331-
+--------+---------------------+---------------------------------------+
332-
| ``5`` | :attr:`ru_isrss` | unshared stack size |
333-
+--------+---------------------+---------------------------------------+
334-
| ``6`` | :attr:`ru_minflt` | page faults not requiring I/O |
335-
+--------+---------------------+---------------------------------------+
336-
| ``7`` | :attr:`ru_majflt` | page faults requiring I/O |
337-
+--------+---------------------+---------------------------------------+
338-
| ``8`` | :attr:`ru_nswap` | number of swap outs |
339-
+--------+---------------------+---------------------------------------+
340-
| ``9`` | :attr:`ru_inblock` | block input operations |
341-
+--------+---------------------+---------------------------------------+
342-
| ``10`` | :attr:`ru_oublock` | block output operations |
343-
+--------+---------------------+---------------------------------------+
344-
| ``11`` | :attr:`ru_msgsnd` | messages sent |
345-
+--------+---------------------+---------------------------------------+
346-
| ``12`` | :attr:`ru_msgrcv` | messages received |
347-
+--------+---------------------+---------------------------------------+
348-
| ``13`` | :attr:`ru_nsignals` | signals received |
349-
+--------+---------------------+---------------------------------------+
350-
| ``14`` | :attr:`ru_nvcsw` | voluntary context switches |
351-
+--------+---------------------+---------------------------------------+
352-
| ``15`` | :attr:`ru_nivcsw` | involuntary context switches |
353-
+--------+---------------------+---------------------------------------+
319+
+--------+----------------------+---------------------------------------+
320+
| Index | Field | Resource |
321+
+========+======================+=======================================+
322+
| ``0`` | :attr:`!ru_utime` | time in user mode (float seconds) |
323+
+--------+----------------------+---------------------------------------+
324+
| ``1`` | :attr:`!ru_stime` | time in system mode (float seconds) |
325+
+--------+----------------------+---------------------------------------+
326+
| ``2`` | :attr:`!ru_maxrss` | maximum resident set size |
327+
+--------+----------------------+---------------------------------------+
328+
| ``3`` | :attr:`!ru_ixrss` | shared memory size |
329+
+--------+----------------------+---------------------------------------+
330+
| ``4`` | :attr:`!ru_idrss` | unshared memory size |
331+
+--------+----------------------+---------------------------------------+
332+
| ``5`` | :attr:`!ru_isrss` | unshared stack size |
333+
+--------+----------------------+---------------------------------------+
334+
| ``6`` | :attr:`!ru_minflt` | page faults not requiring I/O |
335+
+--------+----------------------+---------------------------------------+
336+
| ``7`` | :attr:`!ru_majflt` | page faults requiring I/O |
337+
+--------+----------------------+---------------------------------------+
338+
| ``8`` | :attr:`!ru_nswap` | number of swap outs |
339+
+--------+----------------------+---------------------------------------+
340+
| ``9`` | :attr:`!ru_inblock` | block input operations |
341+
+--------+----------------------+---------------------------------------+
342+
| ``10`` | :attr:`!ru_oublock` | block output operations |
343+
+--------+----------------------+---------------------------------------+
344+
| ``11`` | :attr:`!ru_msgsnd` | messages sent |
345+
+--------+----------------------+---------------------------------------+
346+
| ``12`` | :attr:`!ru_msgrcv` | messages received |
347+
+--------+----------------------+---------------------------------------+
348+
| ``13`` | :attr:`!ru_nsignals` | signals received |
349+
+--------+----------------------+---------------------------------------+
350+
| ``14`` | :attr:`!ru_nvcsw` | voluntary context switches |
351+
+--------+----------------------+---------------------------------------+
352+
| ``15`` | :attr:`!ru_nivcsw` | involuntary context switches |
353+
+--------+----------------------+---------------------------------------+
354354

355355
This function will raise a :exc:`ValueError` if an invalid *who* parameter is
356356
specified. It may also raise :exc:`error` exception in unusual circumstances.

pr-preview/pr-1148/_sources/library/signal.rst.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ The variables defined in the :mod:`signal` module are:
265265

266266
.. availability:: Unix.
267267

268+
.. data:: SIGXCPU
269+
270+
CPU time limit exceeded.
271+
272+
.. availability:: Unix.
273+
268274
.. data:: SIG*
269275

270276
All the signal numbers are defined symbolically. For example, the hangup signal

pr-preview/pr-1148/_sources/library/typing.rst.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3360,7 +3360,8 @@ Introspection helpers
33603360
``__annotations__`` dictionaries. Annotations on classes appearing
33613361
earlier in the :term:`method resolution order` always take precedence over
33623362
annotations on classes appearing later in the method resolution order.
3363-
* The function recursively replaces all occurrences of ``Annotated[T, ...]``
3363+
* The function recursively replaces all occurrences of
3364+
``Annotated[T, ...]``, ``Required[T]``, ``NotRequired[T]``, and ``ReadOnly[T]``
33643365
with ``T``, unless *include_extras* is set to ``True`` (see
33653366
:class:`Annotated` for more information).
33663367

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
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
315315
<br>
316316
<br>
317-
最後更新於 10月 20, 2025 (00:20 UTC)。
317+
最後更新於 10月 21, 2025 (00:19 UTC)。
318318

319319
<a href="/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
<section id="getting-started-contributing-to-python-yourself">
235235
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
236-
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在 <a class="reference external" href="https://devguide.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
236+
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在 <a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<a class="reference external" href="https://devguide.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
237237
</section>
238238
</section>
239239

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

360360
<a href="/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
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
324324
<br>
325325
<br>
326-
最後更新於 10月 20, 2025 (00:20 UTC)。
326+
最後更新於 10月 21, 2025 (00:19 UTC)。
327327

328328
<a href="/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
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
433433
<br>
434434
<br>
435-
最後更新於 10月 20, 2025 (00:20 UTC)。
435+
最後更新於 10月 21, 2025 (00:19 UTC)。
436436

437437
<a href="/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
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
472472
<br>
473473
<br>
474-
最後更新於 10月 20, 2025 (00:20 UTC)。
474+
最後更新於 10月 21, 2025 (00:19 UTC)。
475475

476476
<a href="/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
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
955955
<br>
956956
<br>
957-
最後更新於 10月 20, 2025 (00:20 UTC)。
957+
最後更新於 10月 21, 2025 (00:19 UTC)。
958958

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

0 commit comments

Comments
 (0)