Skip to content

Commit bc72aab

Browse files
committed
Deploy preview for PR 1199 🛫
1 parent e4c455a commit bc72aab

File tree

579 files changed

+3523
-3478
lines changed

Some content is hidden

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

579 files changed

+3523
-3478
lines changed

pr-preview/pr-1199/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: f87e8867697d38f9afc2009f0655d1bc
3+
config: d6751eade72bed0b8f7a3e9e8373c012
44
tags: b5e2c454ba7771976391ed0cecdde553

pr-preview/pr-1199/_sources/howto/logging-cookbook.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ messages should not. Here's how you can achieve this::
229229
# tell the handler to use this format
230230
console.setFormatter(formatter)
231231
# add the handler to the root logger
232-
logging.getLogger('').addHandler(console)
232+
logging.getLogger().addHandler(console)
233233

234234
# Now, we can log to the root logger, or any other logger. First the root...
235235
logging.info('Jackdaws love my big sphinx of quartz.')
@@ -650,7 +650,7 @@ the receiving end. A simple way of doing this is attaching a
650650

651651
import logging, logging.handlers
652652

653-
rootLogger = logging.getLogger('')
653+
rootLogger = logging.getLogger()
654654
rootLogger.setLevel(logging.DEBUG)
655655
socketHandler = logging.handlers.SocketHandler('localhost',
656656
logging.handlers.DEFAULT_TCP_LOGGING_PORT)

pr-preview/pr-1199/_sources/library/os.path.rst.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,17 @@ the :mod:`glob` module.)
9797

9898
.. function:: commonprefix(list, /)
9999

100-
Return the longest path prefix (taken character-by-character) that is a
101-
prefix of all paths in *list*. If *list* is empty, return the empty string
100+
Return the longest string prefix (taken character-by-character) that is a
101+
prefix of all strings in *list*. If *list* is empty, return the empty string
102102
(``''``).
103103

104-
.. note::
104+
.. warning::
105105

106106
This function may return invalid paths because it works a
107-
character at a time. To obtain a valid path, see
108-
:func:`commonpath`.
107+
character at a time.
108+
If you need a **common path prefix**, then the algorithm
109+
implemented in this function is not secure. Use
110+
:func:`commonpath` for finding a common path prefix.
109111

110112
::
111113

pr-preview/pr-1199/_sources/library/stdtypes.rst.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,6 +2163,8 @@ expression support in the :mod:`re` module).
21632163

21642164
.. doctest::
21652165

2166+
>>> 'spam, spam, spam'.index('spam')
2167+
0
21662168
>>> 'spam, spam, spam'.index('eggs')
21672169
Traceback (most recent call last):
21682170
File "<python-input-0>", line 1, in <module>
@@ -2546,6 +2548,20 @@ expression support in the :mod:`re` module).
25462548

25472549
Like :meth:`rfind` but raises :exc:`ValueError` when the substring *sub* is not
25482550
found.
2551+
For example:
2552+
2553+
.. doctest::
2554+
2555+
>>> 'spam, spam, spam'.rindex('spam')
2556+
12
2557+
>>> 'spam, spam, spam'.rindex('eggs')
2558+
Traceback (most recent call last):
2559+
File "<stdin-0>", line 1, in <module>
2560+
'spam, spam, spam'.rindex('eggs')
2561+
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
2562+
ValueError: substring not found
2563+
2564+
See also :meth:`index` and :meth:`find`.
25492565

25502566

25512567
.. method:: str.rjust(width, fillchar=' ', /)

pr-preview/pr-1199/_sources/library/urllib.robotparser.rst.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@ class::
9191

9292
>>> import urllib.robotparser
9393
>>> rp = urllib.robotparser.RobotFileParser()
94-
>>> rp.set_url("http://www.musi-cal.com/robots.txt")
94+
>>> rp.set_url("http://www.pythontest.net/robots.txt")
9595
>>> rp.read()
9696
>>> rrate = rp.request_rate("*")
9797
>>> rrate.requests
98-
3
98+
1
9999
>>> rrate.seconds
100-
20
100+
1
101101
>>> rp.crawl_delay("*")
102102
6
103-
>>> rp.can_fetch("*", "http://www.musi-cal.com/cgi-bin/search?city=San+Francisco")
104-
False
105-
>>> rp.can_fetch("*", "http://www.musi-cal.com/")
103+
>>> rp.can_fetch("*", "http://www.pythontest.net/")
106104
True
105+
>>> rp.can_fetch("*", "http://www.pythontest.net/no-robots-here/")
106+
False

pr-preview/pr-1199/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DOCUMENTATION_OPTIONS = {
2-
VERSION: '3.14.2',
2+
VERSION: '3.14.3',
33
LANGUAGE: 'zh-TW',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
33
<ShortName>Python</ShortName>
4-
<Description>搜尋 Python 3.14.2 說明文件</Description>
4+
<Description>搜尋 Python 3.14.3 說明文件</Description>
55
<InputEncoding>utf-8</InputEncoding>
66
<Url type="text/html" method="get"
77
template="https://docs.python.org/3.14/search.html?q={searchTerms}"/>
8-
<LongName>Python 3.14.2 說明文件</LongName>
8+
<LongName>Python 3.14.3 說明文件</LongName>
99
<Image height="16" width="16" type="image/x-icon">https://www.python.org/images/favicon16x16.ico</Image>
1010
</OpenSearchDescription>

pr-preview/pr-1199/about.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

8-
<title>關於這份說明文件 &#8212; Python 3.14.2 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>關於這份說明文件 &#8212; Python 3.14.3 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
99

1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b86133f3" />
1111
<link rel="stylesheet" type="text/css" href="_static/classic.css?v=234b1a7c" />
1212
<link rel="stylesheet" type="text/css" href="_static/pydoctheme.css?v=4eb63a40" />
1313
<link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="_static/pygments_dark.css?v=5349f25f" />
1414

15-
<script src="_static/documentation_options.js?v=f006b4cd"></script>
15+
<script src="_static/documentation_options.js?v=e2c088d7"></script>
1616
<script src="_static/doctools.js?v=9bcbadda"></script>
1717
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1818
<script src="_static/translations.js?v=cbf116e0"></script>
1919

2020
<script src="_static/sidebar.js"></script>
2121

2222
<link rel="search" type="application/opensearchdescription+xml"
23-
title="在 Python 3.14.2 說明文件 中搜尋"
23+
title="在 Python 3.14.3 說明文件 中搜尋"
2424
href="_static/opensearch.xml"/>
2525
<link rel="author" title="關於這些文件" href="#" />
2626
<link rel="index" title="索引" href="genindex.html" />
@@ -154,7 +154,7 @@ <h3>導航</h3>
154154

155155
</li>
156156
<li id="cpython-language-and-version">
157-
<a href="index.html">3.14.2 Documentation</a> &#187;
157+
<a href="index.html">3.14.3 Documentation</a> &#187;
158158
</li>
159159

160160
<li class="nav-item nav-item-this"><a href="">關於這份說明文件</a></li>
@@ -282,7 +282,7 @@ <h3>導航</h3>
282282

283283
</li>
284284
<li id="cpython-language-and-version">
285-
<a href="index.html">3.14.2 Documentation</a> &#187;
285+
<a href="index.html">3.14.3 Documentation</a> &#187;
286286
</li>
287287

288288
<li class="nav-item nav-item-this"><a href="">關於這份說明文件</a></li>
@@ -326,7 +326,7 @@ <h3>導航</h3>
326326
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
327327
<br>
328328
<br>
329-
最後更新於 2月 02, 2026 (14:22 UTC)。
329+
最後更新於 2月 04, 2026 (15:57 UTC)。
330330

331331
<a href="/bugs.html">發現 bug</a>
332332

pr-preview/pr-1199/bugs.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

8-
<title>處理錯誤 (Bug) &#8212; Python 3.14.2 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>處理錯誤 (Bug) &#8212; Python 3.14.3 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
99

1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b86133f3" />
1111
<link rel="stylesheet" type="text/css" href="_static/classic.css?v=234b1a7c" />
1212
<link rel="stylesheet" type="text/css" href="_static/pydoctheme.css?v=4eb63a40" />
1313
<link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="_static/pygments_dark.css?v=5349f25f" />
1414

15-
<script src="_static/documentation_options.js?v=f006b4cd"></script>
15+
<script src="_static/documentation_options.js?v=e2c088d7"></script>
1616
<script src="_static/doctools.js?v=9bcbadda"></script>
1717
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1818
<script src="_static/translations.js?v=cbf116e0"></script>
1919

2020
<script src="_static/sidebar.js"></script>
2121

2222
<link rel="search" type="application/opensearchdescription+xml"
23-
title="在 Python 3.14.2 說明文件 中搜尋"
23+
title="在 Python 3.14.3 說明文件 中搜尋"
2424
href="_static/opensearch.xml"/>
2525
<link rel="author" title="關於這些文件" href="about.html" />
2626
<link rel="index" title="索引" href="genindex.html" />
@@ -156,7 +156,7 @@ <h3>導航</h3>
156156

157157
</li>
158158
<li id="cpython-language-and-version">
159-
<a href="index.html">3.14.2 Documentation</a> &#187;
159+
<a href="index.html">3.14.3 Documentation</a> &#187;
160160
</li>
161161

162162
<li class="nav-item nav-item-this"><a href="">處理錯誤 (Bug)</a></li>
@@ -235,7 +235,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
235235
</section>
236236
<section id="getting-started-contributing-to-python-yourself">
237237
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
238-
<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>
238+
<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>
239239
</section>
240240
</section>
241241

@@ -319,7 +319,7 @@ <h3>導航</h3>
319319

320320
</li>
321321
<li id="cpython-language-and-version">
322-
<a href="index.html">3.14.2 Documentation</a> &#187;
322+
<a href="index.html">3.14.3 Documentation</a> &#187;
323323
</li>
324324

325325
<li class="nav-item nav-item-this"><a href="">處理錯誤 (Bug)</a></li>
@@ -363,7 +363,7 @@ <h3>導航</h3>
363363
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
364364
<br>
365365
<br>
366-
最後更新於 2月 02, 2026 (14:22 UTC)。
366+
最後更新於 2月 04, 2026 (15:57 UTC)。
367367

368368
<a href="/bugs.html">發現 bug</a>
369369

pr-preview/pr-1199/c-api/abstract.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

8-
<title>抽象物件層 (Abstract Objects Layer) &#8212; Python 3.14.2 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>抽象物件層 (Abstract Objects Layer) &#8212; Python 3.14.3 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
99

1010
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b86133f3" />
1111
<link rel="stylesheet" type="text/css" href="../_static/classic.css?v=234b1a7c" />
1212
<link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=4eb63a40" />
1313
<link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=5349f25f" />
1414

15-
<script src="../_static/documentation_options.js?v=f006b4cd"></script>
15+
<script src="../_static/documentation_options.js?v=e2c088d7"></script>
1616
<script src="../_static/doctools.js?v=9bcbadda"></script>
1717
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
1818
<script src="../_static/translations.js?v=cbf116e0"></script>
1919

2020
<script src="../_static/sidebar.js"></script>
2121

2222
<link rel="search" type="application/opensearchdescription+xml"
23-
title="在 Python 3.14.2 說明文件 中搜尋"
23+
title="在 Python 3.14.3 說明文件 中搜尋"
2424
href="../_static/opensearch.xml"/>
2525
<link rel="author" title="關於這些文件" href="../about.html" />
2626
<link rel="index" title="索引" href="../genindex.html" />
@@ -144,7 +144,7 @@ <h3>導航</h3>
144144

145145
</li>
146146
<li id="cpython-language-and-version">
147-
<a href="../index.html">3.14.2 Documentation</a> &#187;
147+
<a href="../index.html">3.14.3 Documentation</a> &#187;
148148
</li>
149149

150150
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python/C API 參考手冊</a> &#187;</li>
@@ -290,7 +290,7 @@ <h3>導航</h3>
290290

291291
</li>
292292
<li id="cpython-language-and-version">
293-
<a href="../index.html">3.14.2 Documentation</a> &#187;
293+
<a href="../index.html">3.14.3 Documentation</a> &#187;
294294
</li>
295295

296296
<li class="nav-item nav-item-1"><a href="index.html" >Python/C API 參考手冊</a> &#187;</li>
@@ -335,7 +335,7 @@ <h3>導航</h3>
335335
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
336336
<br>
337337
<br>
338-
最後更新於 2月 02, 2026 (14:22 UTC)。
338+
最後更新於 2月 04, 2026 (15:57 UTC)。
339339

340340
<a href="/bugs.html">發現 bug</a>
341341

0 commit comments

Comments
 (0)