diff --git a/c-api/method.po b/c-api/method.po index ef6e82733f..1b85e46868 100644 --- a/c-api/method.po +++ b/c-api/method.po @@ -1,16 +1,16 @@ -# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2022, Python Software Foundation # This file is distributed under the same license as the Python package. # # Translators: # Leon H., 2017 +# Matt Wang , 2022 msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-09-13 00:11+0000\n" -"PO-Revision-Date: 2017-09-22 18:26+0000\n" -"Last-Translator: Leon H.\n" +"PO-Revision-Date: 2022-01-24 22:22+0800\n" +"Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -18,10 +18,11 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 3.0.1\n" #: ../../c-api/method.rst:6 msgid "Instance Method Objects" -msgstr "實體方法物件" +msgstr "實例方法物件 (Instance Method Objects)" #: ../../c-api/method.rst:10 msgid "" @@ -29,12 +30,17 @@ msgid "" "to bind a :c:data:`PyCFunction` to a class object. It replaces the former " "call ``PyMethod_New(func, NULL, class)``." msgstr "" +"實例方法是 :c:data:`PyCFunction` 的包裝器 (wrapper),也是將 :c:data:" +"`PyCFunction` 繫結 (bind) 到類別物件的一種新方式。它替代了原先對 " +"``PyMethod_New(func, NULL, class)`` 的呼叫。" #: ../../c-api/method.rst:17 msgid "" "This instance of :c:type:`PyTypeObject` represents the Python instance " "method type. It is not exposed to Python programs." msgstr "" +":c:type:`PyTypeObject` 的實例代表 Python 實例方法型別。它不會公開 (expose) " +"給 Python 程式。" #: ../../c-api/method.rst:23 msgid "" @@ -42,6 +48,8 @@ msgid "" "`PyInstanceMethod_Type`). The parameter must not be ``NULL``. This function " "always succeeds." msgstr "" +"如果 *o* 是一個實例方法物件(型別為 :c:data:`PyInstanceMethod_Type`\\ )則回" +"傳 true。參數必須不為 ``NULL``\\ 。此函式總是會成功執行。" #: ../../c-api/method.rst:30 msgid "" @@ -49,20 +57,23 @@ msgid "" "*func* is the function that will be called when the instance method is " "called." msgstr "" +"回傳一個新的實例方法物件,\\ *func* 為任意可呼叫物件,在實例方法被呼叫時 " +"*func* 函式也會被呼叫。" #: ../../c-api/method.rst:37 msgid "Return the function object associated with the instance method *im*." -msgstr "" +msgstr "回傳關聯到實例方法 *im* 的函式物件。" #: ../../c-api/method.rst:42 msgid "" "Macro version of :c:func:`PyInstanceMethod_Function` which avoids error " "checking." msgstr "" +"巨集 (macro) 版本的 :c:func:`PyInstanceMethod_Function`\\ ,忽略了錯誤檢查。" #: ../../c-api/method.rst:48 msgid "Method Objects" -msgstr "" +msgstr "方法物件 (Method Objects)" #: ../../c-api/method.rst:52 msgid "" @@ -70,18 +81,24 @@ msgid "" "of a user-defined class. Unbound methods (methods bound to a class object) " "are no longer available." msgstr "" +"方法為繫結函式 (bound function) 物件。方法總是會被繫結到一個使用者定義類別的" +"實例。未繫結方法(繫結到一個類別的方法)已不可用。" #: ../../c-api/method.rst:61 msgid "" "This instance of :c:type:`PyTypeObject` represents the Python method type. " "This is exposed to Python programs as ``types.MethodType``." msgstr "" +"這個 :c:type:`PyTypeObject` 實例代表 Python 方法型別。它作為 ``types." +"MethodType`` 公開給 Python 程式。" #: ../../c-api/method.rst:67 msgid "" "Return true if *o* is a method object (has type :c:data:`PyMethod_Type`). " "The parameter must not be ``NULL``. This function always succeeds." msgstr "" +"如果 *o* 是一個方法物件(型別為 :c:data:`PyMethod_Type`\\ )則回傳 true。參數" +"必須不為 ``NULL``\\ 。此函式總是會成功執行。" #: ../../c-api/method.rst:73 msgid "" @@ -89,20 +106,23 @@ msgid "" "the instance the method should be bound. *func* is the function that will be " "called when the method is called. *self* must not be ``NULL``." msgstr "" +"回傳一個新的方法物件,\\ *func* 應為任意可呼叫物件,\\ *self* 為該方法應繫結" +"的實例。在方法被呼叫時,\\ *func* 函式也會被呼叫。\\ *self* 必須不為 ``NULL``" +"\\ 。" #: ../../c-api/method.rst:80 msgid "Return the function object associated with the method *meth*." -msgstr "" +msgstr "回傳關聯到方法 *meth* 的函式物件。" #: ../../c-api/method.rst:85 msgid "" "Macro version of :c:func:`PyMethod_Function` which avoids error checking." -msgstr "" +msgstr "巨集版本的 :c:func:`PyMethod_Function`\\ ,忽略了錯誤檢查。" #: ../../c-api/method.rst:90 msgid "Return the instance associated with the method *meth*." -msgstr "" +msgstr "回傳關聯到方法 *meth* 的實例。" #: ../../c-api/method.rst:95 msgid "Macro version of :c:func:`PyMethod_Self` which avoids error checking." -msgstr "" +msgstr "巨集版本的 :c:func:`PyMethod_Self`\\ ,忽略了錯誤檢查。"