Skip to content

Commit a31a4e4

Browse files
committed
Deploying to gh-pages from @ 3978d19 🚀
1 parent 12758e8 commit a31a4e4

File tree

584 files changed

+5610
-5665
lines changed

Some content is hidden

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

584 files changed

+5610
-5665
lines changed

_sources/library/glob.rst.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ The :mod:`!glob` module defines the following functions:
8383
This function may return duplicate path names if *pathname*
8484
contains multiple "``**``" patterns and *recursive* is true.
8585

86+
.. note::
87+
Any :exc:`OSError` exceptions raised from scanning the filesystem are
88+
suppressed. This includes :exc:`PermissionError` when accessing
89+
directories without read permission.
90+
8691
.. versionchanged:: 3.5
8792
Support for recursive globs using "``**``".
8893

@@ -106,6 +111,11 @@ The :mod:`!glob` module defines the following functions:
106111
This function may return duplicate path names if *pathname*
107112
contains multiple "``**``" patterns and *recursive* is true.
108113

114+
.. note::
115+
Any :exc:`OSError` exceptions raised from scanning the filesystem are
116+
suppressed. This includes :exc:`PermissionError` when accessing
117+
directories without read permission.
118+
109119
.. versionchanged:: 3.5
110120
Support for recursive globs using "``**``".
111121

_sources/library/itertools.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
853853

854854
def running_mean(iterable):
855855
"Yield the average of all values seen so far."
856-
# running_mean([8.5, 9.5, 7.5, 6.5]) -> 8.5 9.0 8.5 8.0
856+
# running_mean([8.5, 9.5, 7.5, 6.5]) 8.5 9.0 8.5 8.0
857857
return map(truediv, accumulate(iterable), count(1))
858858

859859
def repeatfunc(function, times=None, *args):
@@ -935,10 +935,10 @@ and :term:`generators <generator>` which incur interpreter overhead.
935935
yield element
936936

937937
def unique(iterable, key=None, reverse=False):
938-
"Yield unique elements in sorted order. Supports unhashable inputs."
939-
# unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
940-
sequenced = sorted(iterable, key=key, reverse=reverse)
941-
return unique_justseen(sequenced, key=key)
938+
"Yield unique elements in sorted order. Supports unhashable inputs."
939+
# unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
940+
sequenced = sorted(iterable, key=key, reverse=reverse)
941+
return unique_justseen(sequenced, key=key)
942942

943943
def sliding_window(iterable, n):
944944
"Collect data into overlapping fixed-length chunks or blocks."

_sources/library/pathlib.rst.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,11 @@ Reading directories
13651365
``False``, this method follows symlinks except when expanding "``**``"
13661366
wildcards. Set *recurse_symlinks* to ``True`` to always follow symlinks.
13671367

1368+
.. note::
1369+
Any :exc:`OSError` exceptions raised from scanning the filesystem are
1370+
suppressed. This includes :exc:`PermissionError` when accessing
1371+
directories without read permission.
1372+
13681373
.. audit-event:: pathlib.Path.glob self,pattern pathlib.Path.glob
13691374

13701375
.. versionchanged:: 3.12
@@ -1391,6 +1396,11 @@ Reading directories
13911396
The paths are returned in no particular order.
13921397
If you need a specific order, sort the results.
13931398

1399+
.. note::
1400+
Any :exc:`OSError` exceptions raised from scanning the filesystem are
1401+
suppressed. This includes :exc:`PermissionError` when accessing
1402+
directories without read permission.
1403+
13941404
.. seealso::
13951405
:ref:`pathlib-pattern-language` and :meth:`Path.glob` documentation.
13961406

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h3>導航</h3>
356356
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
357357
<br>
358358
<br>
359-
最後更新於 4月 08, 2026 (10:00 UTC)。
359+
最後更新於 4月 09, 2026 (11:52 UTC)。
360360

361361
<a href="/bugs.html">發現 bug</a>
362362

bugs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ <h3>導航</h3>
393393
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
394394
<br>
395395
<br>
396-
最後更新於 4月 08, 2026 (10:00 UTC)。
396+
最後更新於 4月 09, 2026 (11:52 UTC)。
397397

398398
<a href="/bugs.html">發現 bug</a>
399399

c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h3>導航</h3>
365365
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
366366
<br>
367367
<br>
368-
最後更新於 4月 08, 2026 (10:00 UTC)。
368+
最後更新於 4月 09, 2026 (11:52 UTC)。
369369

370370
<a href="/bugs.html">發現 bug</a>
371371

c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ <h3>導航</h3>
574574
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
575575
<br>
576576
<br>
577-
最後更新於 4月 08, 2026 (10:00 UTC)。
577+
最後更新於 4月 09, 2026 (11:52 UTC)。
578578

579579
<a href="/bugs.html">發現 bug</a>
580580

c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ <h3>導航</h3>
514514
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
515515
<br>
516516
<br>
517-
最後更新於 4月 08, 2026 (10:00 UTC)。
517+
最後更新於 4月 09, 2026 (11:52 UTC)。
518518

519519
<a href="/bugs.html">發現 bug</a>
520520

c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ <h3>導航</h3>
996996
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
997997
<br>
998998
<br>
999-
最後更新於 4月 08, 2026 (10:00 UTC)。
999+
最後更新於 4月 09, 2026 (11:52 UTC)。
10001000

10011001
<a href="/bugs.html">發現 bug</a>
10021002

c-api/bool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ <h3>導航</h3>
376376
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
377377
<br>
378378
<br>
379-
最後更新於 4月 08, 2026 (10:00 UTC)。
379+
最後更新於 4月 09, 2026 (11:52 UTC)。
380380

381381
<a href="/bugs.html">發現 bug</a>
382382

0 commit comments

Comments
 (0)