Skip to content

Commit d47f62d

Browse files
committed
Deploy preview for PR 1148 🛫
1 parent 9291e9d commit d47f62d

File tree

572 files changed

+1572
-1917
lines changed

Some content is hidden

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

572 files changed

+1572
-1917
lines changed

pr-preview/pr-1148/_sources/c-api/capsule.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Refer to :ref:`using-capsules` for more information on using these objects.
1515
.. c:type:: PyCapsule
1616
1717
This subtype of :c:type:`PyObject` represents an opaque value, useful for C
18-
extension modules who need to pass an opaque value (as a :c:expr:`void*`
18+
extension modules which need to pass an opaque value (as a :c:expr:`void*`
1919
pointer) through Python code to other C code. It is often used to make a C
2020
function pointer defined in one module available to other modules, so the
2121
regular import mechanism can be used to access C APIs defined in dynamically

pr-preview/pr-1148/_sources/c-api/code.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ may change without deprecation warnings.
289289
290290
.. c:function:: Py_ssize_t PyUnstable_Eval_RequestCodeExtraIndex(freefunc free)
291291
292-
Return a new an opaque index value used to adding data to code objects.
292+
Return a new opaque index value used to adding data to code objects.
293293
294294
You generally call this function once (per interpreter) and use the result
295295
with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate

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月 25, 2025 (00:20 UTC)。
317+
最後更新於 10月 25, 2025 (22:15 UTC)。
318318

319319
<a href="/bugs.html">發現 bug</a>
320320

pr-preview/pr-1148/bugs.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,9 @@ <h3>導航</h3>
190190
<section id="documentation-bugs">
191191
<h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title="連結到這個標頭"></a></h2>
192192
<p>如果你在這份說明文件中發現了錯誤並想要提出改進方案,請將錯誤報告提交到<a class="reference internal" href="#using-the-tracker"><span class="std std-ref">錯誤追蹤系統 (issue tracker)</span></a>。如果你有相應的修正建議,請一併提交。(譯者註:如果是繁體中文說明文件翻譯相關的錯誤,請提交到 <a class="reference external" href="https://github.com/python/python-docs-zh-tw/issues">https://github.com/python/python-docs-zh-tw/issues</a>。)</p>
193-
<p>If the bug or suggested improvement concerns the translation of this
194-
documentation, submit the report to the
195-
<a class="reference external" href="https://github.com/python/python-docs-zh-tw">translation’s repository</a> instead.</p>
193+
<p>如果錯誤或建議的改進涉及此文件的翻譯,請將報告提交到<a class="reference external" href="https://github.com/python/python-docs-zh-tw">翻譯存儲庫</a></p>
196194
<p>你也可以在我們的<a class="reference external" href="https://discuss.python.org/c/documentation/26">說明文件 Discourse 討論區</a>中新增一個討論事項。</p>
197-
<p>If you find a bug in the theme (HTML / CSS / JavaScript) of the
198-
documentation, please submit a bug report on the <a class="reference external" href="https://github.com/python/python-docs-theme">python-doc-theme issue
199-
tracker</a>.</p>
195+
<p>如果你發現文件主題 (HTML / CSS / JavaScript) 中存在錯誤,請在 <a class="reference external" href="https://github.com/python/python-docs-theme">python-doc-theme 問題追蹤系統</a>上提交錯誤報告。</p>
200196
<div class="admonition seealso">
201197
<p class="admonition-title">也參考</p>
202198
<dl class="simple">
@@ -233,7 +229,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
233229
</section>
234230
<section id="getting-started-contributing-to-python-yourself">
235231
<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>
232+
<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>
237233
</section>
238234
</section>
239235

@@ -355,7 +351,7 @@ <h3>導航</h3>
355351
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
356352
<br>
357353
<br>
358-
最後更新於 10月 25, 2025 (00:20 UTC)。
354+
最後更新於 10月 25, 2025 (22:15 UTC)。
359355

360356
<a href="/bugs.html">發現 bug</a>
361357

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月 25, 2025 (00:20 UTC)。
326+
最後更新於 10月 25, 2025 (22:15 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月 25, 2025 (00:20 UTC)。
435+
最後更新於 10月 25, 2025 (22:15 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月 25, 2025 (00:20 UTC)。
474+
最後更新於 10月 25, 2025 (22:15 UTC)。
475475

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

pr-preview/pr-1148/c-api/arg.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h3><a href="../contents.html">目錄</a></h3>
9191
<ul>
9292
<li><a class="reference internal" href="#">剖析引數與建置數值</a><ul>
9393
<li><a class="reference internal" href="#parsing-arguments">剖析引數</a><ul>
94-
<li><a class="reference internal" href="#strings-and-buffers">Strings and buffers</a></li>
94+
<li><a class="reference internal" href="#strings-and-buffers">字串與緩衝區</a></li>
9595
<li><a class="reference internal" href="#numbers">數字</a></li>
9696
<li><a class="reference internal" href="#other-objects">其他物件</a></li>
9797
<li><a class="reference internal" href="#api-functions">API 函式</a></li>
@@ -210,7 +210,7 @@ <h2>剖析引數<a class="headerlink" href="#parsing-arguments" title="連結到
210210
the format unit; and the entry in [square] brackets is the type of the C
211211
variable(s) whose address should be passed.</p>
212212
<section id="strings-and-buffers">
213-
<span id="arg-parsing-string-and-buffers"></span><h3>Strings and buffers<a class="headerlink" href="#strings-and-buffers" title="連結到這個標頭"></a></h3>
213+
<span id="arg-parsing-string-and-buffers"></span><h3>字串與緩衝區<a class="headerlink" href="#strings-and-buffers" title="連結到這個標頭"></a></h3>
214214
<div class="admonition note">
215215
<p class="admonition-title">備註</p>
216216
<p>On Python 3.12 and older, the macro <code class="xref c c-macro docutils literal notranslate"><span class="pre">PY_SSIZE_T_CLEAN</span></code> must be
@@ -405,14 +405,14 @@ <h3>數字<a class="headerlink" href="#numbers" title="連結到這個標頭">¶
405405
</dd>
406406
<dt><code class="docutils literal notranslate"><span class="pre">k</span></code> (<a class="reference internal" href="../library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a>) [unsigned long]</dt><dd><p>將一個 Python 整數轉換成 C 的 <span class="c-expr sig sig-inline c"><span class="kt">unsigned</span><span class="w"> </span><span class="kt">long</span></span>,轉換過程無溢位檢查。</p>
407407
<div class="versionchanged">
408-
<p><span class="versionmodified changed">在 3.14 版的變更: </span>Use <a class="reference internal" href="../reference/datamodel.html#object.__index__" title="object.__index__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__index__()</span></code></a> if available.</p>
408+
<p><span class="versionmodified changed">在 3.14 版的變更: </span>如有提供則使用 <a class="reference internal" href="../reference/datamodel.html#object.__index__" title="object.__index__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__index__()</span></code></a></p>
409409
</div>
410410
</dd>
411411
<dt><code class="docutils literal notranslate"><span class="pre">L</span></code> (<a class="reference internal" href="../library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a>) [long long]</dt><dd><p>將一個 Python 整數轉換成 C 的 <span class="c-expr sig sig-inline c"><span class="kt">long</span><span class="w"> </span><span class="kt">long</span></span></p>
412412
</dd>
413413
<dt><code class="docutils literal notranslate"><span class="pre">K</span></code> (<a class="reference internal" href="../library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a>) [unsigned long long]</dt><dd><p>將一個 Python 整數轉換成 C 的 <span class="c-expr sig sig-inline c"><span class="kt">unsigned</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="kt">long</span></span>,轉換過程無溢位檢查。</p>
414414
<div class="versionchanged">
415-
<p><span class="versionmodified changed">在 3.14 版的變更: </span>Use <a class="reference internal" href="../reference/datamodel.html#object.__index__" title="object.__index__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__index__()</span></code></a> if available.</p>
415+
<p><span class="versionmodified changed">在 3.14 版的變更: </span>如有提供則使用 <a class="reference internal" href="../reference/datamodel.html#object.__index__" title="object.__index__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__index__()</span></code></a></p>
416416
</div>
417417
</dd>
418418
<dt><code class="docutils literal notranslate"><span class="pre">n</span></code> (<a class="reference internal" href="../library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a>) [<a class="reference internal" href="intro.html#c.Py_ssize_t" title="Py_ssize_t"><code class="xref c c-type docutils literal notranslate"><span class="pre">Py_ssize_t</span></code></a>]</dt><dd><p>將一個 Python 整數轉換成 C 的 <a class="reference internal" href="intro.html#c.Py_ssize_t" title="Py_ssize_t"><code class="xref c c-type docutils literal notranslate"><span class="pre">Py_ssize_t</span></code></a></p>
@@ -841,7 +841,7 @@ <h3><a href="../contents.html">目錄</a></h3>
841841
<ul>
842842
<li><a class="reference internal" href="#">剖析引數與建置數值</a><ul>
843843
<li><a class="reference internal" href="#parsing-arguments">剖析引數</a><ul>
844-
<li><a class="reference internal" href="#strings-and-buffers">Strings and buffers</a></li>
844+
<li><a class="reference internal" href="#strings-and-buffers">字串與緩衝區</a></li>
845845
<li><a class="reference internal" href="#numbers">數字</a></li>
846846
<li><a class="reference internal" href="#other-objects">其他物件</a></li>
847847
<li><a class="reference internal" href="#api-functions">API 函式</a></li>
@@ -954,7 +954,7 @@ <h3>導航</h3>
954954
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
955955
<br>
956956
<br>
957-
最後更新於 10月 25, 2025 (00:20 UTC)。
957+
最後更新於 10月 25, 2025 (22:15 UTC)。
958958

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

pr-preview/pr-1148/c-api/bool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ <h3>導航</h3>
334334
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
335335
<br>
336336
<br>
337-
最後更新於 10月 25, 2025 (00:20 UTC)。
337+
最後更新於 10月 25, 2025 (22:15 UTC)。
338338

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

pr-preview/pr-1148/c-api/buffer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ <h3>導航</h3>
213213
<ul class="simple" id="index-1">
214214
<li><p>on the producer side, a type can export a &quot;buffer interface&quot; which allows
215215
objects of that type to expose information about their underlying buffer.
216-
This interface is described in the section <a class="reference internal" href="typeobj.html#buffer-structs"><span class="std std-ref">Buffer Object Structures</span></a>; for
216+
This interface is described in the section <a class="reference internal" href="typeobj.html#buffer-structs"><span class="std std-ref">緩衝區物件結構</span></a>; for
217217
Python see <a class="reference internal" href="../reference/datamodel.html#python-buffer-protocol"><span class="std std-ref">Emulating buffer types</span></a>.</p></li>
218218
<li><p>on the consumer side, several means are available to obtain a pointer to
219219
the raw underlying data of an object (for example a method parameter). For
@@ -853,7 +853,7 @@ <h2>Buffer-related functions<a class="headerlink" href="#buffer-related-function
853853
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">PyObject_CopyData</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="structures.html#c.PyObject" title="PyObject"><span class="n"><span class="pre">PyObject</span></span></a><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">dest</span></span>, <a class="reference internal" href="structures.html#c.PyObject" title="PyObject"><span class="n"><span class="pre">PyObject</span></span></a><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">src</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.PyObject_CopyData" title="連結到這個定義"></a><br /></dt>
854854
<dd><em class="stableabi"><a class="reference internal" href="stable.html#stable"><span class="std std-ref">穩定 ABI 的一部分</span></a> 自 3.11 版本開始.</em><p>Copy data from <em>src</em> to <em>dest</em> buffer. Can convert between C-style and
855855
or Fortran-style buffers.</p>
856-
<p><code class="docutils literal notranslate"><span class="pre">0</span></code> is returned on success, <code class="docutils literal notranslate"><span class="pre">-1</span></code> on error.</p>
856+
<p>成功時回傳 <code class="docutils literal notranslate"><span class="pre">0</span></code>,錯誤時回傳 <code class="docutils literal notranslate"><span class="pre">-1</span></code></p>
857857
</dd></dl>
858858

859859
<dl class="c function">
@@ -1016,7 +1016,7 @@ <h3>導航</h3>
10161016
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
10171017
<br>
10181018
<br>
1019-
最後更新於 10月 25, 2025 (00:20 UTC)。
1019+
最後更新於 10月 25, 2025 (22:15 UTC)。
10201020

10211021
<a href="/bugs.html">發現 bug</a>
10221022

0 commit comments

Comments
 (0)