77msgstr ""
88"Project-Id-Version :Python 3.12\n "
99"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 "
1111"PO-Revision-Date :2015-12-09 17:51+0000\n "
1212"Last-Translator :Matt Wang <mattwang44@gmail.com>\n "
1313"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`."
171171msgstr "一個類別的命名空間。該類別繼承自 :class:`SymbolTable`。"
172172
173173#: ../../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."
175178msgstr "回傳一個包含類別中聲明的方法名稱的元組。"
176179
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
178204msgid ""
179205"An entry in a :class:`SymbolTable` corresponding to an identifier in the "
180206"source. The constructor is not public."
181207msgstr ""
182208":class:`SymbolTable` 中的條目對應於來源中的識別器。建構函式不是公開的。"
183209
184- #: ../../library/symtable.rst:140
210+ #: ../../library/symtable.rst:171
185211msgid "Return the symbol's name."
186212msgstr "回傳符號的名稱。"
187213
188- #: ../../library/symtable.rst:144
214+ #: ../../library/symtable.rst:175
189215msgid "Return ``True`` if the symbol is used in its block."
190216msgstr "如果該符號在其區塊中使用,則回傳 ``True``。"
191217
192- #: ../../library/symtable.rst:148
218+ #: ../../library/symtable.rst:179
193219msgid "Return ``True`` if the symbol is created from an import statement."
194220msgstr "如果符號是從 import 陳述式建立的,則回傳 ``True``。"
195221
196- #: ../../library/symtable.rst:152
222+ #: ../../library/symtable.rst:183
197223msgid "Return ``True`` if the symbol is a parameter."
198224msgstr "如果符號是一個參數,則回傳 ``True``。"
199225
200- #: ../../library/symtable.rst:156
226+ #: ../../library/symtable.rst:187
201227msgid "Return ``True`` if the symbol is global."
202228msgstr "如果符號是全域的,則回傳 ``True``。"
203229
204- #: ../../library/symtable.rst:160
230+ #: ../../library/symtable.rst:191
205231msgid "Return ``True`` if the symbol is nonlocal."
206232msgstr "如果符號是非區域的,則回傳 ``True``。"
207233
208- #: ../../library/symtable.rst:164
234+ #: ../../library/symtable.rst:195
209235msgid ""
210236"Return ``True`` if the symbol is declared global with a global statement."
211237msgstr "如果使用全域陳述式將符號聲明為全域的,則回傳 ``True``。"
212238
213- #: ../../library/symtable.rst:168
239+ #: ../../library/symtable.rst:199
214240msgid "Return ``True`` if the symbol is local to its block."
215241msgstr "如果符號是其區塊的區域符號,則回傳 ``True``。"
216242
217- #: ../../library/symtable.rst:172
243+ #: ../../library/symtable.rst:203
218244msgid "Return ``True`` if the symbol is annotated."
219245msgstr "如果符號有被註釋,則回傳 ``True``。"
220246
221- #: ../../library/symtable.rst:178
247+ #: ../../library/symtable.rst:209
222248msgid ""
223249"Return ``True`` if the symbol is referenced in its block, but not assigned "
224250"to."
225251msgstr ""
226252"如果該符號在其區塊中被參照 (referenced) 但未被賦值 (assigned),則回傳 "
227253"``True``。"
228254
229- #: ../../library/symtable.rst:183
255+ #: ../../library/symtable.rst:214
230256msgid "Return ``True`` if the symbol is assigned to in its block."
231257msgstr "如果該符號被賦值到其區塊中,則回傳 ``True``。"
232258
233- #: ../../library/symtable.rst:187
259+ #: ../../library/symtable.rst:218
234260msgid "Return ``True`` if name binding introduces new namespace."
235261msgstr "如果名稱綁定引入 (introduce) 新的命名空間,則回傳 ``True``。"
236262
237- #: ../../library/symtable.rst:189
263+ #: ../../library/symtable.rst:220
238264msgid ""
239265"If the name is used as the target of a function or class statement, this "
240266"will be true."
241267msgstr "如果名稱用作函式或類別陳述式的目標,則這將會是 true。"
242268
243- #: ../../library/symtable.rst:192
269+ #: ../../library/symtable.rst:223
244270msgid "For example::"
245271msgstr "舉例來說: ::"
246272
247- #: ../../library/symtable.rst:198
273+ #: ../../library/symtable.rst:229
248274msgid ""
249275"Note that a single name can be bound to multiple objects. If the result is "
250276"``True``, the name may also be bound to other objects, like an int or list, "
@@ -253,11 +279,11 @@ msgstr ""
253279"請注意,單個名稱可以綁定到多個物件。如果結果為 ``True``,則該名稱也可能被綁定"
254280"到其他物件,例如 int 或 list,而不會引入新的命名空間。"
255281
256- #: ../../library/symtable.rst:204
282+ #: ../../library/symtable.rst:235
257283msgid "Return a list of namespaces bound to this name."
258284msgstr "回傳綁定到該名稱的命名空間的串列。"
259285
260- #: ../../library/symtable.rst:208
286+ #: ../../library/symtable.rst:239
261287msgid ""
262288"Return the namespace bound to this name. If more than one or no namespace is "
263289"bound to this name, a :exc:`ValueError` is raised."