|
1 |
| -# SOME DESCRIPTIVE TITLE. |
2 | 1 | # Copyright (C) 2001-2022, Python Software Foundation
|
3 | 2 | # This file is distributed under the same license as the Python package.
|
4 | 3 | #
|
5 | 4 | # Translators:
|
6 | 5 | # Leon H., 2017
|
| 6 | +# Matt Wang <mattwang44@gmail.com>, 2022 |
7 | 7 | msgid ""
|
8 | 8 | msgstr ""
|
9 | 9 | "Project-Id-Version: Python 3.10\n"
|
10 | 10 | "Report-Msgid-Bugs-To: \n"
|
11 | 11 | "POT-Creation-Date: 2021-09-13 00:11+0000\n"
|
12 |
| -"PO-Revision-Date: 2017-09-22 18:26+0000\n" |
13 |
| -"Last-Translator: Leon H.\n" |
| 12 | +"PO-Revision-Date: 2022-01-24 22:22+0800\n" |
| 13 | +"Last-Translator: Matt Wang <mattwang44@gmail.com>\n" |
14 | 14 | "Language-Team: Chinese - TAIWAN (https://github.com/pyth
8000
on/python-docs-zh-"
|
15 | 15 | "tw)\n"
|
16 | 16 | "Language: zh_TW\n"
|
17 | 17 | "MIME-Version: 1.0\n"
|
18 | 18 | "Content-Type: text/plain; charset=UTF-8\n"
|
19 | 19 | "Content-Transfer-Encoding: 8bit\n"
|
20 | 20 | "Plural-Forms: nplurals=1; plural=0;\n"
|
| 21 | +"X-Generator: Poedit 3.0.1\n" |
21 | 22 |
|
22 | 23 | #: ../../c-api/method.rst:6
|
23 | 24 | msgid "Instance Method Objects"
|
24 |
| -msgstr "實體方法物件" |
| 25 | +msgstr "實例方法物件 (Instance Method Objects)" |
25 | 26 |
|
26 | 27 | #: ../../c-api/method.rst:10
|
27 | 28 | msgid ""
|
28 | 29 | "An instance method is a wrapper for a :c:data:`PyCFunction` and the new way "
|
29 | 30 | "to bind a :c:data:`PyCFunction` to a class object. It replaces the former "
|
30 | 31 | "call ``PyMethod_New(func, NULL, class)``."
|
31 | 32 | msgstr ""
|
| 33 | +"實例方法是 :c:data:`PyCFunction` 的包裝器 (wrapper),也是將 :c:data:" |
| 34 | +"`PyCFunction` 繫結 (bind) 到類別物件的一種新方式。它替代了原先對 " |
| 35 | +"``PyMethod_New(func, NULL, class)`` 的呼叫。" |
32 | 36 |
|
33 | 37 | #: ../../c-api/method.rst:17
|
34 | 38 | msgid ""
|
35 | 39 | "This instance of :c:type:`PyTypeObject` represents the Python instance "
|
36 | 40 | "method type. It is not exposed to Python programs."
|
37 | 41 | msgstr ""
|
| 42 | +":c:type:`PyTypeObject` 的實例代表 Python 實例方法型別。它不會公開 (expose) " |
| 43 | +"給 Python 程式。" |
38 | 44 |
|
39 | 45 | #: ../../c-api/method.rst:23
|
40 | 46 | msgid ""
|
41 | 47 | "Return true if *o* is an instance method object (has type :c:data:"
|
42 | 48 | "`PyInstanceMethod_Type`). The parameter must not be ``NULL``. This function "
|
43 | 49 | "always succeeds."
|
44 | 50 | msgstr ""
|
| 51 | +"如果 *o* 是一個實例方法物件(型別為 :c:data:`PyInstanceMethod_Type`\\ )則回" |
| 52 | +"傳 true。參數必須不為 ``NULL``\\ 。此函式總是會成功執行。" |
45 | 53 |
|
46 | 54 | #: ../../c-api/method.rst:30
|
47 | 55 | msgid ""
|
48 | 56 | "Return a new instance method object, with *func* being any callable object "
|
49 | 57 | "*func* is the function that will be called when the instance method is "
|
50 | 58 | "called."
|
51 | 59 | msgstr ""
|
| 60 | +"回傳一個新的實例方法物件,\\ *func* 為任意可呼叫物件,在實例方法被呼叫時 " |
| 61 | +"*func* 函式也會被呼叫。" |
52 | 62 |
|
53 | 63 | #: ../../c-api/method.rst:37
|
54 | 64 | msgid "Return the function object associated with the instance method *im*."
|
55 |
| -msgstr "" |
| 65 | +msgstr "回傳關聯到實例方法 *im* 的函式物件。" |
56 | 66 |
|
57 | 67 | #: ../../c-api/method.rst:42
|
58 | 68 | msgid ""
|
59 | 69 | "Macro version of :c:func:`PyInstanceMethod_Function` which avoids error "
|
60 | 70 | "checking."
|
61 | 71 | msgstr ""
|
| 72 | +"巨集 (macro) 版本的 :c:func:`PyInstanceMethod_Function`\\ ,忽略了錯誤檢查。" |
62 | 73 |
|
63 | 74 | #: ../../c-api/method.rst:48
|
64 | 75 | msgid "Method Objects"
|
65 |
| -msgstr "" |
| 76 | +msgstr "方法物件 (Method Objects)" |
66 | 77 |
|
67 | 78 | #: ../../c-api/method.rst:52
|
68 | 79 | msgid ""
|
69 | 80 | "Methods are bound function objects. Methods are always bound to an instance "
|
70 | 81 | "of a user-defined class. Unbound methods (methods bound to a class object) "
|
71 | 82 | "are no longer available."
|
72 | 83 | msgstr ""
|
| 84 | +"方法為繫結函式 (bound function) 物件。方法總是會被繫結到一個使用者定義類別的" |
| 85 | +"實例。未繫結方法(繫結到一個類別的方法)已不可用。" |
73 | 86 |
|
74 | 87 | #: ../../c-api/method.rst:61
|
75 | 88 | msgid ""
|
76 | 89 | "This instance of :c:type:`PyTypeObject` represents the Python method type. "
|
77 | 90 | "This is exposed to Python programs as ``types.MethodType``."
|
78 | 91 | msgstr ""
|
| 92 | +"這個 :c:type:`PyTypeObject` 實例代表 Python 方法型別。它作為 ``types." |
| 93 | +"MethodType`` 公開給 Python 程式。" |
79 | 94 |
|
80 | 95 | #: ../../c-api/method.rst:67
|
81 | 96 | msgid ""
|
82 | 97 | "Return true if *o* is a method object (has type :c:data:`PyMethod_Type`). "
|
83 | 98 | "The parameter must not be ``NULL``. This function always succeeds."
|
84 | 99 | msgstr ""
|
| 100 | +"如果 *o* 是一個方法物件(型別為 :c:data:`PyMethod_Type`\\ )則回傳 true。參數" |
| 101 | +"必須不為 ``NULL``\\ 。此函式總是會成功執行。" |
85 | 102 |
|
86 | 103 | #: ../../c-api/method.rst:73
|
87 | 104 | msgid ""
|
88 | 105 | "Return a new method object, with *func* being any callable object and *self* "
|
89 | 106 | "the instance the method should be bound. *func* is the function that will be "
|
90 | 107 | "called when the method is called. *self* must not be ``NULL``."
|
91 | 108 | msgstr ""
|
| 109 | +"回傳一個新的方法物件,\\ *func* 應為任意可呼叫物件,\\ *self* 為該方法應繫結" |
| 110 | +"的實例。在方法被呼叫時,\\ *func* 函式也會被呼叫。\\ *self* 必須不為 ``NULL``" |
| 111 | +"\\ 。" |
92 | 112 |
|
93 | 113 | #: ../../c-api/method.rst:80
|
94 | 114 | msgid "Return the function object associated with the method *meth*."
|
95 |
| -msgstr "" |
| 115 | +msgstr "回傳關聯到方法 *meth* 的函式物件。" |
96 | 116 |
|
97 | 117 | #: ../../c-api/method.rst:85
|
98 | 118 | msgid ""
|
99 | 119 | "Macro version of :c:func:`PyMethod_Function` which avoids error checking."
|
100 |
| -msgstr "" |
| 120 | +msgstr "巨集版本的 :c:func:`PyMethod_Function`\\ ,忽略了錯誤檢查。" |
101 | 121 |
|
102 | 122 | #: ../../c-api/method.rst:90
|
103 | 123 | msgid "Return the instance associated with the method *meth*."
|
104 |
| -msgstr "" |
| 124 | +msgstr "回傳關聯到方法 *meth* 的實例。" |
105 | 125 |
|
106 | 126 | #: ../../c-api/method.rst:95
|
107 | 127 | msgid "Macro version of :c:func:`PyMethod_Self` which avoids error checking."
|
108 |
| -msgstr "" |
| 128 | +msgstr "巨集版本的 :c:func:`PyMethod_Self`\\ ,忽略了錯誤檢查。" |
0 commit comments