55# Translators:
66# Ching-Lung Chuang, 2015
77# Liang-Bo Wang <me@liang2.tw>, 2015
8+ # Matt Wang <mattwang44@gmail.com>, 2022
89msgid ""
910msgstr ""
1011"Project-Id-Version : Python 3.11\n "
1112"Report-Msgid-Bugs-To : \n "
1213"POT-Creation-Date : 2022-10-15 20:43+0000\n "
13- "PO-Revision-Date : 2017-09-22 18:26+0000 \n "
14- "Last-Translator : Liang-Bo Wang <me@liang2.tw >\n "
14+ "PO-Revision-Date : 2022-11-12 15:45+0800 \n "
15+ "Last-Translator : Matt Wang <mattwang44@gmail.com >\n "
1516"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
1617"tw)\n "
1718"Language : zh_TW\n "
1819"MIME-Version : 1.0\n "
1920"Content-Type : text/plain; charset=UTF-8\n "
2021"Content-Transfer-Encoding : 8bit\n "
2122"Plural-Forms : nplurals=1; plural=0;\n "
23+ "X-Generator : Poedit 3.2\n "
2224
2325#: ../../c-api/function.rst:6
2426msgid "Function Objects"
25- msgstr "函式( Function)物件 "
27+ msgstr "函式物件 ( Function Objects) "
2628
2729#: ../../c-api/function.rst:10
2830msgid "There are a few functions specific to Python functions."
29- msgstr "這有一些少數Python函數的於具體說明 。"
31+ msgstr "這有一些特用於 Python 函數的函數 。"
3032
3133#: ../../c-api/function.rst:15
3234msgid "The C structure used for functions."
33- msgstr ""
35+ msgstr "用於函式的 C 結構。 "
3436
3537#: ../../c-api/function.rst:22
3638msgid ""
3739"This is an instance of :c:type:`PyTypeObject` and represents the Python "
3840"function type. It is exposed to Python programmers as ``types."
3941"FunctionType``."
4042msgstr ""
43+ "這是個 :c:type:`PyTypeObject` 的實例,且代表了 Python 函式型別,Python 程式設"
44+ "計者可透過 ``types.FunctionType`` 使用它。"
4145
4246#: ../../c-api/function.rst:28
4347msgid ""
4448"Return true if *o* is a function object (has type :c:data:"
4549"`PyFunction_Type`). The parameter must not be ``NULL``. This function "
4650"always succeeds."
4751msgstr ""
52+ "如果 *o* 是個函數物件(擁有 :c:data:`PyFunction_Type` 的型別)則回傳 true。參"
53+ "數必須不為 ``NULL``。此函數必能成功執行。"
4854
4955#: ../../c-api/function.rst:34
5056msgid ""
5157"Return a new function object associated with the code object *code*. "
5258"*globals* must be a dictionary with the global variables accessible to the "
5359"function."
5460msgstr ""
61+ "回傳一個與程式碼物件 *code* 相關聯的函數物件。*globals* 必須是一個帶有函數能"
62+ "夠存取的全域變數的字典。"
5563
5664#: ../../c-api/function.rst:37
5765msgid ""
@@ -60,6 +68,9 @@ msgid ""
6068"and closure are set to ``NULL``. *__qualname__* is set to the same value as "
6169"the code object's ``co_qualname`` field."
6270msgstr ""
71+ "函數的文件字串 (docstring) 和名稱是從程式碼物件所取得,*__module__* 是自 "
72+ "*globals* 所取得。引數預設值、標註 (annotation) 和閉包 (closure) 被設為 "
73+ "``NULL``,*__qualname__* 被設為和程式碼物件 ``co_qualname`` 欄位相同的值。"
6374
6475#: ../../c-api/function.rst:45
6576msgid ""
@@ -68,71 +79,77 @@ msgid ""
6879"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same "
6980"value as the code object's ``co_qualname`` field."
7081msgstr ""
82+ "和 :c:func:`PyFunction_New` 相似,但也允許函式物件 ``__qualname__`` 屬性的設"
83+ "定,*qualname* 應為一個 unicode 物件或是 ``NULL``;如為 ``NULL``,"
84+ "``__qualname__`` 屬性會被設為與程式碼物件 ``co_qualname`` 欄位相同的值。"
7185
7286#: ../../c-api/function.rst:55
7387msgid "Return the code object associated with the function object *op*."
74- msgstr "回傳與程式碼物件相關的函數物件 *op*\\ 。"
88+ msgstr "回傳與程式碼物件相關的函數物件 *op*。"
7589
7690#: ../../c-api/function.rst:60
7791msgid "Return the globals dictionary associated with the function object *op*."
78- msgstr "回傳與全域函數字典相關的函數物件 *op*\\ 。"
92+ msgstr "回傳與全域函數字典相關的函數物件 *op*。"
7993
8094#: ../../c-api/function.rst:65
8195msgid ""
8296"Return a :term:`borrowed reference` to the *__module__* attribute of the "
8397"function object *op*. It can be *NULL*."
8498msgstr ""
99+ "回傳一個函數物件 *op* 之 *__module__* 屬性的 :term:`borrowed reference`,它可"
100+ "以是 *NULL*。"
85101
86102#: ../../c-api/function.rst:68
87103msgid ""
88104"This is normally a string containing the module name, but can be set to any "
89105"other object by Python code."
90- msgstr ""
106+ msgstr "這通常是個包含模組名稱的字串,但可以被 Python 程式設為任何其他物件。 "
91107
92108#: ../../c-api/function.rst:74
93- #, fuzzy
94109msgid ""
95110"Return the argument default values of the function object *op*. This can be "
96111"a tuple of arguments or ``NULL``."
97- msgstr "回傳函式物件 *op* 標註。此可以是一個可變動的字典或 *NULL*\\ 。"
112+ msgstr ""
113+ "回傳函式物件 *op* 的引數預設值,這可以是一個含有多個引數的 tuple(元組)或 "
114+ "``NULL``。"
98115
99116#: ../../c-api/function.rst:80
100- #, fuzzy
101117msgid ""
102118"Set the argument default values for the function object *op*. *defaults* "
103119"must be ``Py_None`` or a tuple."
104120msgstr ""
105- "設定函數物件 *op* 的標註。 \\ *annotations* 必須是一個字典或 * Py_None* \\ 。"
121+ "設定函數物件 *op* 的引數預設值。*defaults* 必須是 `` Py_None`` 或一個 tuple 。"
106122
107123#: ../../c-api/function.rst:83 ../../c-api/function.rst:97
108124#: ../../c-api/function.rst:111
109125msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
110- msgstr ""
126+ msgstr "引發 :exc:`SystemError` 且在失敗時回傳 ``-1``。 "
111127
112128#: ../../c-api/function.rst:88
113- #, fuzzy
114129msgid ""
115130"Return the closure associated with the function object *op*. This can be "
116131"``NULL`` or a tuple of cell objects."
117- msgstr "回傳與程式碼物件相關的函數物件 *op*\\ 。"
132+ msgstr ""
133+ "回傳與函數物件 *op* 相關聯的閉包,這可以是個 ``NULL`` 或是一個包含 cell 物件"
134+ "的 tuple。"
118135
119136#: ../../c-api/function.rst:94
120137msgid ""
121138"Set the closure associated with the function object *op*. *closure* must be "
122139"``Py_None`` or a tuple of cell objects."
123140msgstr ""
141+ "設定與函數物件 *op* 相關聯的閉包,*closure* 必須是 ``Py_None`` 或是一個包含 "
142+ "cell 物件的 tuple。"
124143
125144#: ../../c-api/function.rst:102
126- #, fuzzy
127145msgid ""
128146"Return the annotations of the function object *op*. This can be a mutable "
129147"dictionary or ``NULL``."
130- msgstr "回傳函式物件 *op* 標註。此可以是一個可變動的字典或 *NULL*\\ 。"
148+ msgstr ""
149+ "回傳函式物件 *op* 的標註,這可以是一個可變動的 (mutable) 字典或 ``NULL``。"
131150
132151#: ../../c-api/function.rst:108
133- #, fuzzy
134152msgid ""
135153"Set the annotations for the function object *op*. *annotations* must be a "
136154"dictionary or ``Py_None``."
137- msgstr ""
138- "設定函數物件 *op* 的標註。\\ *annotations* 必須是一個字典或 *Py_None*\\ 。"
155+ msgstr "設定函數物件 *op* 的標註,*annotations* 必須是一個字典或 ``Py_None``。"
0 commit comments