Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21a5722

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython e58bece8
1 parent6bd0c97 commit21a5722

File tree

2 files changed

+52
-26
lines changed

2 files changed

+52
-26
lines changed

‎library/re.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.12\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2024-05-09 00:03+0000\n"
11+
"POT-Creation-Date:2024-06-21 00:03+0000\n"
1212
"PO-Revision-Date:2023-09-16 14:49+0800\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -177,7 +177,7 @@ msgstr "``.``"
177177
msgid""
178178
"(Dot.) In the default mode, this matches any character except a newline. "
179179
"If the :const:`DOTALL` flag has been specified, this matches any character "
180-
"including a newline."
180+
"including a newline. ``(?s:.)`` matches any character regardless of flags."
181181
msgstr""
182182

183183
#:../../library/re.rst:108
@@ -1080,10 +1080,10 @@ msgid ""
10801080
"Note that when the Unicode patterns ``[a-z]`` or ``[A-Z]`` are used in "
10811081
"combination with the :const:`IGNORECASE` flag, they will match the 52 ASCII "
10821082
"letters and 4 additional non-ASCII letters: 'İ' (U+0130, Latin capital "
1083-
"letter I with dot above), 'ı' (U+0131, Latin small letter dotless i),'ſ'"
1084-
"(U+017F, Latin small letter long s) and 'K' (U+212A, Kelvin sign). Ifthe :"
1085-
"py:const:`~re.ASCII` flag is used, only letters 'a' to 'z' and 'A' to 'Z' "
1086-
"are matched."
1083+
"letter I with dot above), 'ı' (U+0131, Latin small letter dotless i), "
1084+
"'ſ'(U+017F, Latin small letter long s) and 'K' (U+212A, Kelvin sign). If "
1085+
"the :py:const:`~re.ASCII` flag is used, only letters 'a' to 'z' and 'A' to "
1086+
"'Z'are matched."
10871087
msgstr""
10881088

10891089
#:../../library/re.rst:778

‎library/symtable.po

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
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`."
171171
msgstr"一個類別的命名空間。該類別繼承自 :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."
175178
msgstr"回傳一個包含類別中聲明的方法名稱的元組。"
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
178204
msgid""
179205
"An entry in a :class:`SymbolTable` corresponding to an identifier in the "
180206
"source. The constructor is not public."
181207
msgstr""
182208
":class:`SymbolTable` 中的條目對應於來源中的識別器。建構函式不是公開的。"
183209

184-
#:../../library/symtable.rst:140
210+
#:../../library/symtable.rst:171
185211
msgid"Return the symbol's name."
186212
msgstr"回傳符號的名稱。"
187213

188-
#:../../library/symtable.rst:144
214+
#:../../library/symtable.rst:175
189215
msgid"Return ``True`` if the symbol is used in its block."
190216
msgstr"如果該符號在其區塊中使用,則回傳 ``True``。"
191217

192-
#:../../library/symtable.rst:148
218+
#:../../library/symtable.rst:179
193219
msgid"Return ``True`` if the symbol is created from an import statement."
194220
msgstr"如果符號是從 import 陳述式建立的,則回傳 ``True``。"
195221

196-
#:../../library/symtable.rst:152
222+
#:../../library/symtable.rst:183
197223
msgid"Return ``True`` if the symbol is a parameter."
198224
msgstr"如果符號是一個參數,則回傳 ``True``。"
199225

200-
#:../../library/symtable.rst:156
226+
#:../../library/symtable.rst:187
201227
msgid"Return ``True`` if the symbol is global."
202228
msgstr"如果符號是全域的,則回傳 ``True``。"
203229

204-
#:../../library/symtable.rst:160
230+
#:../../library/symtable.rst:191
205231
msgid"Return ``True`` if the symbol is nonlocal."
206232
msgstr"如果符號是非區域的,則回傳 ``True``。"
207233

208-
#:../../library/symtable.rst:164
234+
#:../../library/symtable.rst:195
209235
msgid""
210236
"Return ``True`` if the symbol is declared global with a global statement."
211237
msgstr"如果使用全域陳述式將符號聲明為全域的,則回傳 ``True``。"
212238

213-
#:../../library/symtable.rst:168
239+
#:../../library/symtable.rst:199
214240
msgid"Return ``True`` if the symbol is local to its block."
215241
msgstr"如果符號是其區塊的區域符號,則回傳 ``True``。"
216242

217-
#:../../library/symtable.rst:172
243+
#:../../library/symtable.rst:203
218244
msgid"Return ``True`` if the symbol is annotated."
219245
msgstr"如果符號有被註釋,則回傳 ``True``。"
220246

221-
#:../../library/symtable.rst:178
247+
#:../../library/symtable.rst:209
222248
msgid""
223249
"Return ``True`` if the symbol is referenced in its block, but not assigned "
224250
"to."
225251
msgstr""
226252
"如果該符號在其區塊中被參照 (referenced) 但未被賦值 (assigned),則回傳 "
227253
"``True``。"
228254

229-
#:../../library/symtable.rst:183
255+
#:../../library/symtable.rst:214
230256
msgid"Return ``True`` if the symbol is assigned to in its block."
231257
msgstr"如果該符號被賦值到其區塊中,則回傳 ``True``。"
232258

233-
#:../../library/symtable.rst:187
259+
#:../../library/symtable.rst:218
234260
msgid"Return ``True`` if name binding introduces new namespace."
235261
msgstr"如果名稱綁定引入 (introduce) 新的命名空間,則回傳 ``True``。"
236262

237-
#:../../library/symtable.rst:189
263+
#:../../library/symtable.rst:220
238264
msgid""
239265
"If the name is used as the target of a function or class statement, this "
240266
"will be true."
241267
msgstr"如果名稱用作函式或類別陳述式的目標,則這將會是 true。"
242268

243-
#:../../library/symtable.rst:192
269+
#:../../library/symtable.rst:223
244270
msgid"For example::"
245271
msgstr"舉例來說: ::"
246272

247-
#:../../library/symtable.rst:198
273+
#:../../library/symtable.rst:229
248274
msgid""
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
257283
msgid"Return a list of namespaces bound to this name."
258284
msgstr"回傳綁定到該名稱的命名空間的串列。"
259285

260-
#:../../library/symtable.rst:208
286+
#:../../library/symtable.rst:239
261287
msgid""
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."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp