3
3
# This file is distributed under the same license as the Python package.
4
4
#
5
5
# Translators:
6
+ # Liang-Bo Wang <me@liang2.tw>, 2015
7
+ # Matt Wang <mattwang44@gmail.com>, 2023
6
8
msgid ""
7
9
msgstr ""
8
10
"Project-Id-Version :Python 3.11\n "
9
11
"Report-Msgid-Bugs-To :\n "
10
12
"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 "
13
15
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
16
"tw)\n "
15
17
"Language :zh_TW\n "
16
18
"MIME-Version :1.0\n "
17
19
"Content-Type :text/plain; charset=UTF-8\n "
18
20
"Content-Transfer-Encoding :8bit\n "
19
21
"Plural-Forms :nplurals=1; plural=0;\n "
22
+ "X-Generator :Poedit 3.3.2\n "
20
23
21
24
#: ../../c-api/objbuffer.rst:4
22
25
msgid "Old Buffer Protocol"
@@ -31,6 +34,10 @@ msgid ""
31
34
"you control over the lifetime of the resources acquired when a buffer is "
32
35
"exported."
33
36
msgstr ""
37
+ "這些函式是 Python 2 中「舊式緩衝區協定」API 的一部分。在 Python 3 中,該協議"
38
+ "已經不存在,但這些函式仍有公開以供移植 2.x 程式碼。它們充當\\ :ref:`新式緩衝"
39
+ "區協定 <bufferobjects>`\\ 的相容性包裝器,但它們無法讓你控制匯出 (export) 緩"
40
+ "衝區時所獲取資源的生命週期。"
34
41
35
42
#: ../../c-api/objbuffer.rst:15
36
43
msgid ""
@@ -39,6 +46,10 @@ msgid ""
39
46
"`PyArg_ParseTuple` family of functions) to get a buffer view over an object, "
40
47
"and :c:func:`PyBuffer_Release` when the buffer view can be released."
41
48
msgstr ""
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` 。"
42
53
43
54
#: ../../c-api/objbuffer.rst:23
44
55
msgid ""
@@ -48,6 +59,10 @@ msgid ""
48
59
"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:"
49
60
"`TypeError` on error."
50
61
msgstr ""
62
+ "回傳一個指向可用作基於字元輸入之唯讀記憶體位置的指標。 *obj* 引數必須支援單一"
63
+ "片段 (single-segment) 字元緩衝區介面。成功時回傳 ``0``,並將 *buffer* 設定為"
64
+ "記憶體位置、將 *buffer_len* 設定為緩衝區長度。回傳 ``-1`` 並在錯誤時設定 :"
65
+ "exc:`TypeError`。"
51
66
52
67
#: ../../c-api/objbuffer.rst:32
53
68
msgid ""
@@ -57,19 +72,26 @@ msgid ""
57
72
"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:"
58
73
"`TypeError` on error."
59
74
msgstr ""
75
+ "回傳一個指向包含任意資料之唯讀記憶體位置的指標。*obj* 引數必須支援單一片段可"
76
+ "讀緩衝區介面。成功時回傳 ``0``,並將 *buffer* 設定為記憶體位置、將 "
77
+ "*buffer_len* 設定為緩衝區長度。回傳 ``-1`` 並在錯誤時設定 :exc:`TypeError`。"
60
78
61
79
#: ../../c-api/objbuffer.rst:41
62
80
msgid ""
63
81
"Returns ``1`` if *o* supports the single-segment readable buffer interface. "
64
82
"Otherwise returns ``0``. This function always succeeds."
65
83
msgstr ""
84
+ "如果 *o* 支援單一片段可讀緩衝區介面,則回傳 ``1``,否則回傳 ``0``。這個函式一"
85
+ "定會執行成功的。"
66
86
67
87
#: ../../c-api/objbuffer.rst:44
68
88
msgid ""
69
89
"Note that this function tries to get and release a buffer, and exceptions "
70
90
"which occur while calling corresponding functions will get suppressed. To "
71
91
"get error reporting use :c:func:`PyObject_GetBuffer()` instead."
72
92
msgstr ""
93
+ "請注意,該函式嘗試獲取和釋放緩衝區,並且呼叫相應函式時發生的例外將被抑制。要"
94
+ "獲取錯誤報告,請改用 :c:func:`PyObject_GetBuffer()`。"
73
95
74
96
#: ../../c-api/objbuffer.rst:51
75
97
msgid ""
@@ -78,3 +100,6 @@ msgid ""
78
100
"``0``, sets *buffer* to the memory location and *buffer_len* to the buffer "
79
101
"length. Returns ``-1`` and sets a :exc:`TypeError` on error."
80
102
msgstr ""
103
+ "回傳指向可寫記憶體位置的指標。 *obj* 引數必須支援單一片段字元緩衝區介面。成功"
104
+ "時回傳 ``0``,並將 *buffer* 設定為記憶體位置,且將 *buffer_len* 設定為緩衝區"
105
+ "長度。回傳 ``-1`` 並在錯誤時設定 :exc:`TypeError`。"