33# This file is distributed under the same license as the Python package.
44#
55# Translators:
6+ # Liang-Bo Wang <me@liang2.tw>, 2015
7+ # Matt Wang <mattwang44@gmail.com>, 2023
68msgid ""
79msgstr ""
810"Project-Id-Version :Python 3.11\n "
911"Report-Msgid-Bugs-To :\n "
1012"POT-Creation-Date :2020-06-20 18:08+0800\n "
11- "PO-Revision-Date :2015-12-09 17:51+0000 \n "
12- "Last-Translator :Liang-Bo Wang <me@liang2.tw >\n "
13+ "PO-Revision-Date :2023-07-01 04:33+0800 \n "
14+ "Last-Translator :Matt Wang <mattwang44@gmail.com >\n "
1315"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
1416"tw)\n "
1517"Language :zh_TW\n "
1618"MIME-Version :1.0\n "
1719"Content-Type :text/plain; charset=UTF-8\n "
1820"Content-Transfer-Encoding :8bit\n "
1921"Plural-Forms :nplurals=1; plural=0;\n "
22+ "X-Generator :Poedit 3.3.2\n "
2023
2124#: ../../c-api/objbuffer.rst:4
2225msgid "Old Buffer Protocol"
@@ -31,6 +34,10 @@ msgid ""
3134"you control over the lifetime of the resources acquired when a buffer is "
3235"exported."
3336msgstr ""
37+ "這些函式是 Python 2 中「舊式緩衝區協定」API 的一部分。在 Python 3 中,該協議"
38+ "已經不存在,但這些函式仍有公開以供移植 2.x 程式碼。它們充當\\ :ref:`新式緩衝"
39+ "區協定 <bufferobjects>`\\ 的相容性包裝器,但它們無法讓你控制匯出 (export) 緩"
40+ "衝區時所獲取資源的生命週期。"
3441
3542#: ../../c-api/objbuffer.rst:15
3643msgid ""
@@ -39,6 +46,10 @@ msgid ""
3946"`PyArg_ParseTuple` family of functions) to get a buffer view over an object, "
4047"and :c:func:`PyBuffer_Release` when the buffer view can be released."
4148msgstr ""
49+ "因此,建議你呼叫 :c:func:`PyObject_GetBuffer` (或是以 ``y*`` 或 ``w*`` :ref:"
50+ "`格式碼 (format code) <arg-parsing>` 呼叫 :c:func:`PyArg_ParseTuple` 系列函"
51+ "式)獲取物件的緩衝區視圖 (buffer view),以及緩衝區視圖可被釋放時呼叫 :c:func:"
52+ "`PyBuffer_Release` 。"
4253
4354#: ../../c-api/objbuffer.rst:23
4455msgid ""
@@ -48,6 +59,10 @@ msgid ""
4859"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:"
4960"`TypeError` on error."
5061msgstr ""
62+ "回傳一個指向可用作基於字元輸入之唯讀記憶體位置的指標。 *obj* 引數必須支援單一"
63+ "片段 (single-segment) 字元緩衝區介面。成功時回傳 ``0``,並將 *buffer* 設定為"
64+ "記憶體位置、將 *buffer_len* 設定為緩衝區長度。回傳 ``-1`` 並在錯誤時設定 :"
65+ "exc:`TypeError`。"
5166
5267#: ../../c-api/objbuffer.rst:32
5368msgid ""
@@ -57,19 +72,26 @@ msgid ""
5772"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:"
5873"`TypeError` on error."
5974msgstr ""
75+ "回傳一個指向包含任意資料之唯讀記憶體位置的指標。*obj* 引數必須支援單一片段可"
76+ "讀緩衝區介面。成功時回傳 ``0``,並將 *buffer* 設定為記憶體位置、將 "
77+ "*buffer_len* 設定為緩衝區長度。回傳 ``-1`` 並在錯誤時設定 :exc:`TypeError`。"
6078
6179#: ../../c-api/objbuffer.rst:41
6280msgid ""
6381"Returns ``1`` if *o* supports the single-segment readable buffer interface. "
6482"Otherwise returns ``0``. This function always succeeds."
6583msgstr ""
84+ "如果 *o* 支援單一片段可讀緩衝區介面,則回傳 ``1``,否則回傳 ``0``。這個函式一"
85+ "定會執行成功的。"
6686
6787#: ../../c-api/objbuffer.rst:44
6888msgid ""
6989"Note that this function tries to get and release a buffer, and exceptions "
7090"which occur while calling corresponding functions will get suppressed. To "
7191"get error reporting use :c:func:`PyObject_GetBuffer()` instead."
7292msgstr ""
93+ "請注意,該函式嘗試獲取和釋放緩衝區,並且呼叫相應函式時發生的例外將被抑制。要"
94+ "獲取錯誤報告,請改用 :c:func:`PyObject_GetBuffer()`。"
7395
7496#: ../../c-api/objbuffer.rst:51
7597msgid ""
@@ -78,3 +100,6 @@ msgid ""
78100"``0``, sets *buffer* to the memory location and *buffer_len* to the buffer "
79101"length. Returns ``-1`` and sets a :exc:`TypeError` on error."
80102msgstr ""
103+ "回傳指向可寫記憶體位置的指標。 *obj* 引數必須支援單一片段字元緩衝區介面。成功"
104+ "時回傳 ``0``,並將 *buffer* 設定為記憶體位置,且將 *buffer_len* 設定為緩衝區"
105+ "長度。回傳 ``-1`` 並在錯誤時設定 :exc:`TypeError`。"