7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2024-05-09 00:03+0000\n "
10
+ "POT-Creation-Date : 2024-06-21 00:03+0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
12
"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -171,80 +171,106 @@ msgid "A namespace of a class. This class inherits from :class:`SymbolTable`."
171
171
msgstr "一個類別的命名空間。該類別繼承自 :class:`SymbolTable`。"
172
172
173
173
#: ../../library/symtable.rst:130
174
- msgid "Return a tuple containing the names of methods declared in the class."
174
+ #, fuzzy
175
+ msgid ""
176
+ "Return a tuple containing the names of method-like functions declared in the "
177
+ "class."
175
178
msgstr "回傳一個包含類別中聲明的方法名稱的元組。"
176
179
177
- #: ../../library/symtable.rst:135
180
+ #: ../../library/symtable.rst:133
181
+ msgid ""
182
+ "Here, the term 'method' designates *any* function defined in the class body "
183
+ "via :keyword:`def` or :keyword:`async def`."
184
+ msgstr ""
185
+
186
+ #: ../../library/symtable.rst:136
187
+ msgid ""
188
+ "Functions defined in a deeper scope (e.g., in an inner class) are not picked "
189
+ "up by :meth:`get_methods`."
190
+ msgstr ""
191
+
192
+ #: ../../library/symtable.rst:139
193
+ #, fuzzy
194
+ msgid "For example:"
195
+ msgstr "舉例來說: ::"
196
+
197
+ #: ../../library/symtable.rst:161
198
+ msgid ""
199
+ "Although ``A().f()`` raises :exc:`TypeError` at runtime, ``A.f`` is still "
200
+ "considered as a method-like function."
201
+ msgstr ""
202
+
203
+ #: ../../library/symtable.rst:166
178
204
msgid ""
179
205
"An entry in a :class:`SymbolTable` corresponding to an identifier in the "
180
206
"source. The constructor is not public."
181
207
msgstr ""
182
208
":class:`SymbolTable` 中的條目對應於來源中的識別器。建構函式不是公開的。"
183
209
184
- #: ../../library/symtable.rst:140
210
+ #: ../../library/symtable.rst:171
185
211
msgid "Return the symbol's name."
186
212
msgstr "回傳符號的名稱。"
187
213
188
- #: ../../library/symtable.rst:144
214
+ #: ../../library/symtable.rst:175
189
215
msgid "Return ``True`` if the symbol is used in its block."
190
216
msgstr "如果該符號在其區塊中使用,則回傳 ``True``。"
191
217
192
- #: ../../library/symtable.rst:148
218
+ #: ../../library/symtable.rst:179
193
219
msgid "Return ``True`` if the symbol is created from an import statement."
194
220
msgstr "如果符號是從 import 陳述式建立的,則回傳 ``True``。"
195
221
196
- #: ../../library/symtable.rst:152
222
+ #: ../../library/symtable.rst:183
197
223
msgid "Return ``True`` if the symbol is a parameter."
198
224
msgstr "如果符號是一個參數,則回傳 ``True``。"
199
225
200
- #: ../../library/symtable.rst:156
226
+ #: ../../library/symtable.rst:187
201
227
msgid "Return ``True`` if the symbol is global."
202
228
msgstr "如果符號是全域的,則回傳 ``True``。"
203
229
204
- #: ../../library/symtable.rst:160
230
+ #: ../../library/symtable.rst:191
205
231
msgid "Return ``True`` if the symbol is nonlocal."
206
232
msgstr "如果符號是非區域的,則回傳 ``True``。"
207
233
208
- #: ../../library/symtable.rst:164
234
+ #: ../../library/symtable.rst:195
209
235
msgid ""
210
236
"Return ``True`` if the symbol is declared global with a global statement."
211
237
msgstr "如果使用全域陳述式將符號聲明為全域的,則回傳 ``True``。"
212
238
213
- #: ../../library/symtable.rst:168
239
+ #: ../../library/symtable.rst:199
214
240
msgid "Return ``True`` if the symbol is local to its block."
215
241
msgstr "如果符號是其區塊的區域符號,則回傳 ``True``。"
216
242
217
- #: ../../library/symtable.rst:172
243
+ #: ../../library/symtable.rst:203
218
244
msgid "Return ``True`` if the symbol is annotated."
219
245
msgstr "如果符號有被註釋,則回傳 ``True``。"
220
246
221
- #: ../../library/symtable.rst:178
247
+ #: ../../library/symtable.rst:209
222
248
msgid ""
223
249
"Return ``True`` if the symbol is referenced in its block, but not assigned "
224
250
"to."
225
251
msgstr ""
226
252
"如果該符號在其區塊中被參照 (referenced) 但未被賦值 (assigned),則回傳 "
227
253
"``True``。"
228
254
229
- #: ../../library/symtable.rst:183
255
+ #: ../../library/symtable.rst:214
230
256
msgid "Return ``True`` if the symbol is assigned to in its block."
231
257
msgstr "如果該符號被賦值到其區塊中,則回傳 ``True``。"
232
258
233
- #: ../../library/symtable.rst:187
259
+ #: ../../library/symtable.rst:218
234
260
msgid "Return ``True`` if name binding introduces new namespace."
235
261
msgstr "如果名稱綁定引入 (introduce) 新的命名空間,則回傳 ``True``。"
236
262
237
- #: ../../library/symtable.rst:189
263
+ #: ../../library/symtable.rst:220
238
264
msgid ""
239
265
"If the name is used as the target of a function or class statement, this "
240
266
"will be true."
241
267
msgstr "如果名稱用作函式或類別陳述式的目標,則這將會是 true。"
242
268
243
- #: ../../library/symtable.rst:192
269
+ #: ../../library/symtable.rst:223
244
270
msgid "For example::"
245
271
msgstr "舉例來說: ::"
246
272
247
- #: ../../library/symtable.rst:198
273
+ #: ../../library/symtable.rst:229
248
274
msgid ""
249
275
"Note that a single name can be bound to multiple objects. If the result is "
250
276
"``True``, the name may also be bound to other objects, like an int or list, "
@@ -253,11 +279,11 @@ msgstr ""
253
279
"請注意,單個名稱可以綁定到多個物件。如果結果為 ``True``,則該名稱也可能被綁定"
254
280
"
83A9
其他物件,例如 int 或 list,而不會引入新的命名空間。"
255
281
256
- #: ../../library/symtable.rst:204
282
+ #: ../../library/symtable.rst:235
257
283
msgid "Return a list of namespaces bound to this name."
258
284
msgstr "回傳綁定到該名稱的命名空間的串列。"
259
285
260
- #: ../../library/symtable.rst:208
286
+ #: ../../library/symtable.rst:239
261
287
msgid ""
262
288
"Return the namespace bound to this name. If more than one or no namespace is "
263
289
"bound to this name, a :exc:`ValueError` is raised."
0 commit comments