Skip to content

Commit 0178bc9

Browse files
committed
Deploying to gh-pages from @ 2c0785d 🚀
1 parent db0c325 commit 0178bc9

File tree

559 files changed

+4345
-4348
lines changed

Some content is hidden

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

559 files changed

+4345
-4348
lines changed

_images/hashlib-blake2-tree.png

10.8 KB
Loading

_images/logging_flow.png

21.4 KB
Loading

_images/pathlib-inheritance.png

6.28 KB
Loading

_images/tk_msg.png

14.6 KB
Loading

_images/turtle-star.png

33 KB
Loading

_images/win_installer.png

82.4 KB
Loading

_sources/copyright.rst.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright
44

55
Python and this documentation is:
66

7-
Copyright © 2001-2022 Python Software Foundation. All rights reserved.
7+
Copyright © 2001-2023 Python Software Foundation. All rights reserved.
88

99
Copyright © 2000 BeOpen.com. All rights reserved.
1010

_sources/howto/logging-cookbook.rst.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ each request is handled by a thread:
11311131
'context can be used to '
11321132
'populate logs')
11331133
aa = ap.add_argument
1134-
aa('--count', '-c', default=100, help='How many requests to simulate')
1134+
aa('--count', '-c', type=int, default=100, help='How many requests to simulate')
11351135
options = ap.parse_args()
11361136
11371137
# Create the dummy webapps and put them in a list which we can use to select

_sources/library/asyncio-eventloop.rst.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ an event loop:
4848
running event loop.
4949

5050
If there is no running event loop set, the function will return
51-
the result of ``get_event_loop_policy().get_event_loop()`` call.
51+
the result of the ``get_event_loop_policy().get_event_loop()`` call.
5252

5353
Because this function has rather complex behavior (especially
5454
when custom event loop policies are in use), using the
@@ -59,15 +59,15 @@ an event loop:
5959
instead of using these lower level functions to manually create and close an
6060
event loop.
6161

62-
.. deprecated:: 3.10
63-
Deprecation warning is emitted if there is no current event loop.
64-
In Python 3.12 it will be an error.
65-
6662
.. note::
6763
In Python versions 3.10.0--3.10.8 and 3.11.0 this function
68-
(and other functions which used it implicitly) emitted a
64+
(and other functions which use it implicitly) emitted a
6965
:exc:`DeprecationWarning` if there was no running event loop, even if
70-
the current loop was set.
66+
the current loop was set on the policy.
67+
In Python versions 3.10.9, 3.11.1 and 3.12 they emit a
68+
:exc:`DeprecationWarning` if there is no running event loop and no
69+
current loop is set.
70+
In some future Python release this will become an error.
7171

7272
.. function:: set_event_loop(loop)
7373

_sources/library/asyncio-policy.rst.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ asyncio ships with the following built-in policies:
112112

113113
On Windows, :class:`ProactorEventLoop` is now used by default.
114114

115-
.. deprecated:: 3.11.1
116-
:meth:`get_event_loop` now emits a :exc:`DeprecationWarning` if there
117-
is no current event loop set and a new event loop has been implicitly
118-
created. In Python 3.12 it will be an error.
115+
.. note::
116+
In Python versions 3.10.9, 3.11.1 and 3.12 this function emits a
117+
:exc:`DeprecationWarning` if there is no running event loop and no
118+
current loop is set.
119+
In some future Python release this will become an error.
119120

120121

121122
.. class:: WindowsSelectorEventLoopPolicy

_sources/library/ctypes.rst.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ regular, non-variadic, function arguments:
389389
390390
libc.printf.argtypes = [ctypes.c_char_p]
391391
392-
Because specifying the attribute does inhibit portability it is adviced to always
392+
Because specifying the attribute does inhibit portability it is advised to always
393393
specify ``argtypes`` for all variadic functions.
394394

395395

_sources/library/dataclasses.rst.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ parameters to :meth:`__post_init__`. Also see the warning about how
552552
Class variables
553553
---------------
554554

555-
One of two places where :func:`dataclass` actually inspects the type
555+
One of the few places where :func:`dataclass` actually inspects the type
556556
of a field is to determine if a field is a class variable as defined
557557
in :pep:`526`. It does this by checking if the type of the field is
558558
``typing.ClassVar``. If a field is a ``ClassVar``, it is excluded
@@ -563,7 +563,7 @@ module-level :func:`fields` function.
563563
Init-only variables
564564
-------------------
565565

566-
The other place where :func:`dataclass` inspects a type annotation is to
566+
Another place where :func:`dataclass` inspects a type annotation is to
567567
determine if a field is an init-only variable. It does this by seeing
568568
if the type of a field is of type ``dataclasses.InitVar``. If a field
569569
is an ``InitVar``, it is considered a pseudo-field called an init-only

_sources/library/itertools.rst.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ by combining :func:`map` and :func:`count` to form ``map(f, count())``.
3333
These tools and their built-in counterparts also work well with the high-speed
3434
functions in the :mod:`operator` module. For example, the multiplication
3535
operator can be mapped across two vectors to form an efficient dot-product:
36-
``sum(map(operator.mul, vector1, vector2))``.
36+
``sum(starmap(operator.mul, zip(vec1, vec2, strict=True)))``.
3737

3838

3939
**Infinite iterators:**
@@ -799,7 +799,7 @@ which incur interpreter overhead.
799799
"Returns the sequence elements n times"
800800
return chain.from_iterable(repeat(tuple(iterable), n))
801801

802-
def dotproduct(vec1, vec2):
802+
def sumprod(vec1, vec2):
803803
"Compute a sum of products."
804804
return sum(starmap(operator.mul, zip(vec1, vec2, strict=True)))
805805

@@ -813,7 +813,7 @@ which incur interpreter overhead.
813813
window = collections.deque([0], maxlen=n) * n
814814
for x in chain(signal, repeat(0, n-1)):
815815
window.append(x)
816-
yield dotproduct(kernel, window)
816+
yield sumprod(kernel, window)
817817

818818
def polynomial_from_roots(roots):
819819
"""Compute a polynomial's coefficients from its roots.
@@ -1181,7 +1181,7 @@ which incur interpreter overhead.
11811181
>>> list(ncycles('abc', 3))
11821182
['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']
11831183

1184-
>>> dotproduct([1,2,3], [4,5,6])
1184+
>>> sumprod([1,2,3], [4,5,6])
11851185
32
11861186

11871187
>>> data = [20, 40, 24, 32, 20, 28, 16]

_sources/library/os.path.rst.txt

+12-11
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,18 @@ the :mod:`glob` module.)
297297

298298
.. function:: join(path, *paths)
299299

300-
Join one or more path components intelligently. The return value is the
301-
concatenation of *path* and any members of *\*paths* with exactly one
302-
directory separator following each non-empty part except the last, meaning
303-
that the result will only end in a separator if the last part is empty. If
304-
a component is an absolute path, all previous components are thrown away
305-
and joining continues from the absolute path component.
306-
307-
On Windows, the drive letter is not reset when an absolute path component
308-
(e.g., ``r'\foo'``) is encountered. If a component contains a drive
309-
letter, all previous components are thrown away and the drive letter is
310-
reset. Note that since there is a current directory for each drive,
300+
Join one or more path segments intelligently. The return value is the
301+
concatenation of *path* and all members of *\*paths*, with exactly one
302+
directory separator following each non-empty part except the last. That is,
303+
if the last part is empty, the result will end in a separator. If
304+
a segment is an absolute path (which on Windows requires both a drive and a
305+
root), then all previous segments are ignored and joining continues from the
306+
absolute path segment.
307+
308+
On Windows, the drive is not reset when a rooted path segment (e.g.,
309+
``r'\foo'``) is encountered. If a segment is on a different drive or is an
310+
absolute path, all previous segments are ignored and the drive is reset. Note
311+
that since there is a current directory for each drive,
311312
``os.path.join("c:", "foo")`` represents a path relative to the current
312313
directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`.
313314

_sources/library/os.rst.txt

+2
Original file line numberDiff line numberDiff line change
@@ -2372,6 +2372,8 @@ features:
23722372
will fail with an :exc:`OSError` subclass in a number of cases:
23732373

23742374
On Windows, if *dst* exists a :exc:`FileExistsError` is always raised.
2375+
The operation may fail if *src* and *dst* are on different filesystems. Use
2376+
:func:`shutil.move` to support moves to a different filesystem.
23752377

23762378
On Unix, if *src* is a file and *dst* is a directory or vice-versa, an
23772379
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised

_sources/library/typing.rst.txt

-4
Original file line numberDiff line numberDiff line change
@@ -2767,10 +2767,6 @@ Introspection helpers
27672767
.. versionchanged:: 3.9
27682768
Added ``include_extras`` parameter as part of :pep:`593`.
27692769

2770-
.. versionchanged:: 3.10
2771-
Calling ``get_type_hints()`` on a class no longer returns the annotations
2772-
of its base classes.
2773-
27742770
.. versionchanged:: 3.11
27752771
Previously, ``Optional[t]`` was added for function and method annotations
27762772
if a default value equal to ``None`` was set.

_sources/library/unittest.rst.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1983,12 +1983,12 @@ Loading and running tests
19831983
.. attribute:: testNamePatterns
19841984

19851985
List of Unix shell-style wildcard test name patterns that test methods
1986-
have to match to be included in test suites (see ``-v`` option).
1986+
have to match to be included in test suites (see ``-k`` option).
19871987

19881988
If this attribute is not ``None`` (the default), all test methods to be
19891989
included in test suites must match one of the patterns in this list.
19901990
Note that matches are always performed using :meth:`fnmatch.fnmatchcase`,
1991-
so unlike patterns passed to the ``-v`` option, simple substring patterns
1991+
so unlike patterns passed to the ``-k`` option, simple substring patterns
19921992
will have to be converted using ``*`` wildcards.
19931993

19941994
This affects all the :meth:`loadTestsFrom\*` methods.

_sources/license.rst.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ PSF LICENSE AGREEMENT FOR PYTHON |release|
100100
analyze, test, perform and/or display publicly, prepare derivative works,
101101
distribute, and otherwise use Python |release| alone or in any derivative
102102
version, provided, however, that PSF's License Agreement and PSF's notice of
103-
copyright, i.e., "Copyright © 2001-2022 Python Software Foundation; All Rights
103+
copyright, i.e., "Copyright © 2001-2023 Python Software Foundation; All Rights
104104
Reserved" are retained in Python |release| alone or in any derivative version
105105
prepared by Licensee.
106106

_sources/whatsnew/3.10.rst.txt

-13
Original file line numberDiff line numberDiff line change
@@ -1708,19 +1708,6 @@ Deprecated
17081708
scheduled for removal in Python 3.12.
17091709
(Contributed by Erlend E. Aasland in :issue:`42264`.)
17101710
1711-
* :func:`asyncio.get_event_loop` now emits a deprecation warning if there is
1712-
no running event loop. In the future it will be an alias of
1713-
:func:`~asyncio.get_running_loop`.
1714-
:mod:`asyncio` functions which implicitly create :class:`~asyncio.Future`
1715-
or :class:`~asyncio.Task` objects now emit
1716-
a deprecation warning if there is no running event loop and no explicit
1717-
*loop* argument is passed: :func:`~asyncio.ensure_future`,
1718-
:func:`~asyncio.wrap_future`, :func:`~asyncio.gather`,
1719-
:func:`~asyncio.shield`, :func:`~asyncio.as_completed` and constructors of
1720-
:class:`~asyncio.Future`, :class:`~asyncio.Task`,
1721-
:class:`~asyncio.StreamReader`, :class:`~asyncio.StreamReaderProtocol`.
1722-
(Contributed by Serhiy Storchaka in :issue:`39529`.)
1723-
17241711
* The undocumented built-in function ``sqlite3.enable_shared_cache`` is now
17251712
deprecated, scheduled for removal in Python 3.12. Its use is strongly
17261713
discouraged by the SQLite3 documentation. See `the SQLite3 docs

about.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ <h3>瀏覽</h3>
281281
<br />
282282
<br />
283283

284-
最後更新於 1月 06, 2023。
284+
最後更新於 1月 11, 2023。
285285
<a href="/bugs.html">Found a bug</a>?
286286
<br />
287287

288-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
288+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
289289
</div>
290290

291291
</body>

bugs.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
203203
</section>
204204
<section id="getting-started-contributing-to-python-yourself">
205205
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="本標頭的永久連結"></a></h2>
206-
<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>
206+
<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>
207207
</section>
208208
</section>
209209

@@ -316,11 +316,11 @@ <h3>瀏覽</h3>
316316
<br />
317317
<br />
318318

319-
最後更新於 1月 06, 2023。
319+
最後更新於 1月 11, 2023。
320320
<a href="/bugs.html">Found a bug</a>?
321321
<br />
322322

323-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
323+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
324324
</div>
325325

326326
</body>

c-api/abstract.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ <h3>瀏覽</h3>
291291
<br />
292292
<br />
293293

294-
最後更新於 1月 06, 2023。
294+
最後更新於 1月 11, 2023。
295295
<a href="/bugs.html">Found a bug</a>?
296296
<br />
297297

298-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
298+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
299299
</div>
300300

301301
</body>

c-api/allocation.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@ <h3>瀏覽</h3>
305305
<br />
306306
<br />
307307

308-
最後更新於 1月 06, 2023。
308+
最後更新於 1月 11, 2023。
309309
<a href="/bugs.html">Found a bug</a>?
310310
<br />
311311

312-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
312+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
313313
</div>
314314

315315
</body>

c-api/apiabiversion.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,11 @@ <h3>瀏覽</h3>
339339
<br />
340340
<br />
341341

342-
最後更新於 1月 06, 2023。
342+
最後更新於 1月 11, 2023。
343343
<a href="/bugs.html">Found a bug</a>?
344344
<br />
345345

346-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
346+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
347347
</div>
348348

349349
</body>

c-api/arg.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,11 @@ <h3>瀏覽</h3>
877877
<br />
878878
<br />
879879

880-
最後更新於 1月 06, 2023。
880+
最後更新於 1月 11, 2023。
881881
<a href="/bugs.html">Found a bug</a>?
882882
<br />
883883

884-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
884+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
885885
</div>
886886

887887
</body>

c-api/bool.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,11 @@ <h3>瀏覽</h3>
289289
<br />
290290
<br />
291291

292-
最後更新於 1月 06, 2023。
292+
最後更新於 1月 11, 2023。
293293
<a href="/bugs.html">Found a bug</a>?
294294
<br />
295295

296-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
296+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
297297
</div>
298298

299299
</body>

c-api/buffer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -964,11 +964,11 @@ <h3>瀏覽</h3>
964964
<br />
965965
<br />
966966

967-
最後更新於 1月 06, 2023。
967+
最後更新於 1月 11, 2023。
968968
<a href="/bugs.html">Found a bug</a>?
969969
<br />
970970

971-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
971+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
972972
</div>
973973

974974
</body>

c-api/bytearray.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ <h3>瀏覽</h3>
365365
<br />
366366
<br />
367367

368-
最後更新於 1月 06, 2023。
368+
最後更新於 1月 11, 2023。
369369
<a href="/bugs.html">Found a bug</a>?
370370
<br />
371371

372-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
372+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
373373
</div>
374374

375375
</body>

c-api/bytes.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ <h3>瀏覽</h3>
481481
<br />
482482
<br />
483483

484-
最後更新於 1月 06, 2023。
484+
最後更新於 1月 11, 2023。
485485
<a href="/bugs.html">Found a bug</a>?
486486
<br />
487487

488-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
488+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
489489
</div>
490490

491491
</body>

c-api/call.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,11 @@ <h3>瀏覽</h3>
606606
<br />
607607
<br />
608608

609-
最後更新於 1月 06, 2023。
609+
最後更新於 1月 11, 2023。
610610
<a href="/bugs.html">Found a bug</a>?
611611
<br />
612612

613-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
613+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
614614
</div>
615615

616616
</body>

c-api/capsule.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@ <h3>瀏覽</h3>
402402
<br />
403403
<br />
404404

405-
最後更新於 1月 06, 2023。
405+
最後更新於 1月 11, 2023。
406406
<a href="/bugs.html">Found a bug</a>?
407407
<br />
408408

409-
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.1 建立。
409+
使用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.1.3 建立。
410410
</div>
411411

412412
</body>

0 commit comments

Comments
 (0)