Skip to content

Commit 495bdb6

Browse files
Deploy preview for PR 1231 🛫
1 parent e34ea64 commit 495bdb6

585 files changed

Lines changed: 742 additions & 674 deletions

File tree

Some content is hidden

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

‎pr-preview/pr-1231/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-
最後更新於 9月 24, 2026 (00:23 UTC)。
359+
最後更新於 9月 25, 2026 (00:26 UTC)。
360360

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
250250
</section>
251251
<section id="getting-started-contributing-to-python-yourself">
252252
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
253-
<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>
253+
<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>
254254
</section>
255255
</section>
256256

@@ -393,7 +393,7 @@ <h3>導航</h3>
393393
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
394394
<br>
395395
<br>
396-
最後更新於 9月 24, 2026 (00:23 UTC)。
396+
最後更新於 9月 25, 2026 (00:26 UTC)。
397397

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

‎pr-preview/pr-1231/builtins/constants.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ <h3>導航</h3>
472472
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
473473
<br>
474474
<br>
475-
最後更新於 9月 24, 2026 (00:23 UTC)。
475+
最後更新於 9月 25, 2026 (00:26 UTC)。
476476

477477
<a href="/bugs.html">發現 bug</a>?
478478

‎pr-preview/pr-1231/builtins/exceptions.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ <h3>導航</h3>
16141614
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
16151615
<br>
16161616
<br>
1617-
最後更新於 9月 24, 2026 (00:23 UTC)。
1617+
最後更新於 9月 25, 2026 (00:26 UTC)。
16181618

16191619
<a href="/bugs.html">發現 bug</a>?
16201620

‎pr-preview/pr-1231/builtins/functions.html‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,14 @@ <h3>導航</h3>
608608
given by <a class="reference internal" href="../using/cmdline.html#cmdoption-O"><code class="xref std std-option docutils literal notranslate"><span class="pre">-O</span></code></a> options. Explicit levels are <code class="docutils literal notranslate"><span class="pre">0</span></code> (no optimization;
609609
<code class="docutils literal notranslate"><span class="pre">__debug__</span></code> is true), <code class="docutils literal notranslate"><span class="pre">1</span></code> (asserts are removed, <code class="docutils literal notranslate"><span class="pre">__debug__</span></code> is false)
610610
or <code class="docutils literal notranslate"><span class="pre">2</span></code> (docstrings are removed too).</p>
611-
<p>This function raises <a class="reference internal" href="exceptions.html#SyntaxError" title="SyntaxError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">SyntaxError</span></code></a> or <a class="reference internal" href="exceptions.html#ValueError" title="ValueError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a> if the compiled
612-
source is invalid.</p>
611+
<p>This function raises <a class="reference internal" href="exceptions.html#SyntaxError" title="SyntaxError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">SyntaxError</span></code></a> if the compiled source is invalid,
612+
including a <em>source</em> containing a null character or that cannot be decoded;
613+
<a class="reference internal" href="exceptions.html#ValueError" title="ValueError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a> if <em>mode</em> or <em>flags</em> is invalid,
614+
or if a string <em>source</em> contains surrogate characters;
615+
<a class="reference internal" href="exceptions.html#MemoryError" title="MemoryError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">MemoryError</span></code></a> or <a class="reference internal" href="exceptions.html#RecursionError" title="RecursionError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">RecursionError</span></code></a> if <em>source</em> is too complex
616+
to parse or compile,
617+
for example an expression with many thousands of nested operators;
618+
and <a class="reference internal" href="exceptions.html#OverflowError" title="OverflowError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">OverflowError</span></code></a> if <em>source</em> is too large.</p>
613619
<p>If you want to parse Python code into its AST representation, see
614620
<a class="reference internal" href="../library/ast.html#ast.parse" title="ast.parse"><code class="xref py py-func docutils literal notranslate"><span class="pre">ast.parse()</span></code></a>.</p>
615621
<p class="audit-hook"><p>Raises an <a class="reference internal" href="../library/sys.html#auditing"><span class="std std-ref">auditing event</span></a> <code class="docutils literal notranslate"><span class="pre">compile</span></code> with arguments
@@ -637,10 +643,14 @@ <h3>導航</h3>
637643
<p><span class="versionmodified changed">在 3.5 版的變更: </span>Previously, <a class="reference internal" href="exceptions.html#TypeError" title="TypeError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">TypeError</span></code></a> was raised when null bytes were encountered
638644
in <em>source</em>.</p>
639645
</div>
640-
<div class="versionadded">
641-
<p><span class="versionmodified added">在 3.8 版被加入: </span><code class="docutils literal notranslate"><span class="pre">ast.PyCF_ALLOW_TOP_LEVEL_AWAIT</span></code> can now be passed in flags to enable
646+
<div class="versionchanged">
647+
<p><span class="versionmodified changed">在 3.8 版的變更: </span><code class="docutils literal notranslate"><span class="pre">ast.PyCF_ALLOW_TOP_LEVEL_AWAIT</span></code> can now be passed in flags to enable
642648
support for top-level <code class="docutils literal notranslate"><span class="pre">await</span></code>, <code class="docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code>, and <code class="docutils literal notranslate"><span class="pre">async</span> <span class="pre">with</span></code>.</p>
643649
</div>
650+
<div class="versionchanged">
651+
<p><span class="versionmodified changed">在 3.12 版的變更: </span><a class="reference internal" href="exceptions.html#SyntaxError" title="SyntaxError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">SyntaxError</span></code></a> is raised instead of <a class="reference internal" href="exceptions.html#ValueError" title="ValueError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a> when null bytes
652+
are encountered in <em>source</em>.</p>
653+
</div>
644654
</dd></dl>
645655

646656
<dl class="py class">
@@ -2635,7 +2645,7 @@ <h3>導航</h3>
26352645
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
26362646
<br>
26372647
<br>
2638-
最後更新於 9月 24, 2026 (00:23 UTC)。
2648+
最後更新於 9月 25, 2026 (00:26 UTC)。
26392649

26402650
<a href="/bugs.html">發現 bug</a>?
26412651

‎pr-preview/pr-1231/builtins/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ <h3>導航</h3>
396396
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
397397
<br>
398398
<br>
399-
最後更新於 9月 24, 2026 (00:23 UTC)。
399+
最後更新於 9月 25, 2026 (00:26 UTC)。
400400

401401
<a href="/bugs.html">發現 bug</a>?
402402

‎pr-preview/pr-1231/builtins/stdtypes.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7004,7 +7004,7 @@ <h3>導航</h3>
70047004
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
70057005
<br>
70067006
<br>
7007-
最後更新於 9月 24, 2026 (00:23 UTC)。
7007+
最後更新於 9月 25, 2026 (00:26 UTC)。
70087008

70097009
<a href="/bugs.html">發現 bug</a>?
70107010

‎pr-preview/pr-1231/builtins/threadsafety.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ <h3>導航</h3>
826826
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
827827
<br>
828828
<br>
829-
最後更新於 9月 24, 2026 (00:23 UTC)。
829+
最後更新於 9月 25, 2026 (00:26 UTC)。
830830

831831
<a href="/bugs.html">發現 bug</a>?
832832

‎pr-preview/pr-1231/builtins/time-complexity.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ <h3>導航</h3>
799799
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
800800
<br>
801801
<br>
802-
最後更新於 9月 24, 2026 (00:23 UTC)。
802+
最後更新於 9月 25, 2026 (00:26 UTC)。
803803

804804
<a href="/bugs.html">發現 bug</a>?
805805

‎pr-preview/pr-1231/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-
最後更新於 9月 24, 2026 (00:23 UTC)。
368+
最後更新於 9月 25, 2026 (00:26 UTC)。
369369

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

0 commit comments

Comments
 (0)