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

Commit15608f3

Browse files
[po] auto sync
1 parent26bd2ad commit15608f3

File tree

8 files changed

+255
-60
lines changed

8 files changed

+255
-60
lines changed

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"81.83%","updated_at":"2025-09-21T20:31:50Z"}
1+
{"translation":"81.94%","updated_at":"2025-09-22T04:32:50Z"}

‎c-api/init.po‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
89
#
910
#,fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version:Python 3.10\n"
1314
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-01-03 16:02+0000\n"
15+
"POT-Creation-Date:2025-09-22 02:50+0000\n"
1516
"PO-Revision-Date:2025-09-21 19:23+0000\n"
16-
"Last-Translator:python-doc bot, 2025\n"
17+
"Last-Translator:Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1718
"Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version:1.0\n"
1920
"Content-Type:text/plain; charset=UTF-8\n"
@@ -334,6 +335,8 @@ msgid ""
334335
"If the flag is non-zero, use :class:`io.FileIO` instead of "
335336
":class:`WindowsConsoleIO` for :mod:`sys` standard streams."
336337
msgstr""
338+
"如果该旗标为非零值,则会使用 :class:`io.FileIO` 而不是 :class:`WindowsConsoleIO` 作为 "
339+
":mod:`sys` 的标准流。"
337340

338341
#:../../c-api/init.rst:170
339342
msgid""

‎c-api/module.po‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
89
#
910
#,fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version:Python 3.10\n"
1314
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-01-03 16:02+0000\n"
15+
"POT-Creation-Date:2025-09-22 02:50+0000\n"
1516
"PO-Revision-Date:2025-09-21 19:23+0000\n"
16-
"Last-Translator:python-doc bot, 2025\n"
17+
"Last-Translator:Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1718
"Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version:1.0\n"
1920
"Content-Type:text/plain; charset=UTF-8\n"
@@ -138,6 +139,8 @@ msgid ""
138139
":c:func:`PyModule_GetFilename` raises :c:type:`UnicodeEncodeError` on "
139140
"unencodable filenames, use :c:func:`PyModule_GetFilenameObject` instead."
140141
msgstr""
142+
":c:func:`PyModule_GetFilename` 对于不可编码的文件名会引发 "
143+
":c:type:`UnicodeEncodeError`,请改用 :c:func:`PyModule_GetFilenameObject`。"
141144

142145
#:../../c-api/module.rst:129
143146
msgid"Initializing C modules"
@@ -172,7 +175,7 @@ msgstr "模块定义结构,它保存创建模块对象所需的所有信息。
172175

173176
#:../../c-api/module.rst:148
174177
msgid"Always initialize this member to :const:`PyModuleDef_HEAD_INIT`."
175-
msgstr""
178+
msgstr"总是将此成员初始化为 :const:`PyModuleDef_HEAD_INIT`。"
176179

177180
#:../../c-api/module.rst:152
178181
msgid"Name for the new module."
@@ -198,7 +201,7 @@ msgid ""
198201
"This memory area is allocated based on *m_size* on module creation, and "
199202
"freed when the module object is deallocated, after the :c:member:`m_free` "
200203
"function has been called, if present."
201-
msgstr""
204+
msgstr"这个内存区域在模块创建时根据 *m_size* 分配,并在调用 :c:member:`m_free` (如果存在)释放模块对象后释放。"
202205

203206
#:../../c-api/module.rst:169
204207
msgid""
@@ -255,6 +258,9 @@ msgid ""
255258
" 0 and the module state (as returned by :c:func:`PyModule_GetState`) is "
256259
"``NULL``."
257260
msgstr""
261+
"如果模块状态已被请求但尚未被分配,则不会调用此函数。例如在模块刚刚创建完成之后、被执行之前(:c:data:`Py_mod_exec` "
262+
"函数)时的情况。更准确地说,如果 :c:member:`m_size` 大于0,并且模块状态(由 :c:func:`PyModule_GetState`"
263+
" 返回)为 ``NULL``,则不会调用此函数。"
258264

259265
#:../../c-api/module.rst:209../../c-api/module.rst:230
260266
#:../../c-api/module.rst:245
@@ -302,6 +308,8 @@ msgid ""
302308
"like :c:func:`PyModule_Create2` with *module_api_version* set to "
303309
":const:`PYTHON_API_VERSION`."
304310
msgstr""
311+
"创建一个新的模块对象,在参数 *def* 中给出定义。它等同于将参数 *module_api_version* 设置为 "
312+
":const:`PYTHON_API_VERSION` 的 :c:func:`PyModule_Create2` 函数。"
305313

306314
#:../../c-api/module.rst:264
307315
msgid""
@@ -338,6 +346,8 @@ msgid ""
338346
"The distinction is similar to the :py:meth:`__new__` and :py:meth:`__init__`"
339347
" methods of classes."
340348
msgstr""
349+
"另一种指定扩展的方式是“多阶段初始化”。以这种方式创建的扩展模块的行为更类似 Python 模块:初始化分成两个阶段,*创建阶段* "
350+
"创建模块对象,*执行阶段* 填充模块对象。它们的区别类似类的 :py:meth:`__new__` 和 :py:meth:`__init__` 方法。"
341351

342352
#:../../c-api/module.rst:288
343353
msgid""
@@ -352,6 +362,11 @@ msgid ""
352362
":attr:`__dict__` or individual classes created with "
353363
":c:func:`PyType_FromSpec`)."
354364
msgstr""
365+
"与使用单阶段初始化创建的模块不同,这些模块不是单例:如果 *sys.modules* "
366+
"被移除、模块被重新导入,将会创建一个新的模块对象,旧模块将进入常规的垃圾回收——就像 Python "
367+
"模块那样。默认情况下,根据同一个定义创建的多个模块应该是相互独立的:修改其中之一不应该影响其它模块。这意味着所有状态都应该特定于模块对象(例如使用 "
368+
":c:func:`PyModule_GetState`),或是它的内容(例如模块的 :attr:`__dict__` 属性,或是使用 "
369+
":c:func:`PyType_FromSpec` 创建的独立的类)。"
355370

356371
#:../../c-api/module.rst:298
357372
msgid""

‎c-api/structures.po‎

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
89
#
910
#,fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version:Python 3.10\n"
1314
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-01-03 16:02+0000\n"
15+
"POT-Creation-Date:2025-09-22 02:50+0000\n"
1516
"PO-Revision-Date:2025-09-21 19:23+0000\n"
16-
"Last-Translator:python-doc bot, 2025\n"
17+
"Last-Translator:Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1718
"Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version:1.0\n"
1920
"Content-Type:text/plain; charset=UTF-8\n"
@@ -70,6 +71,9 @@ msgid ""
7071
"must be done by using the macros :c:macro:`Py_REFCNT`, :c:macro:`Py_TYPE`, "
7172
"and :c:macro:`Py_SIZE`."
7273
msgstr""
74+
"这是一个 :c:type:`PyObject` 的添加了 :attr:`ob_size` 字段的扩展。 它仅用于具有某种 *长度* 标记的对象。 "
75+
"此类型并不经常在 Python/C API 中出现。 对成员的访问必须通过使用 :c:macro:`Py_REFCNT`, "
76+
":c:macro:`Py_TYPE` 和 :c:macro:`Py_SIZE` 宏来完成。"
7377

7478
#:../../c-api/structures.rst:46
7579
msgid""
@@ -175,6 +179,7 @@ msgid ""
175179
":c:type:`PyVarObject` type, including the :attr:`ob_size` field. This macro "
176180
"expands to::"
177181
msgstr""
182+
"这是一个为新的 :c:type:`PyVarObject` 类型扩展初始化值的宏,包括 :attr:`ob_size` 字段。 该宏扩展为::"
178183

179184
#:../../c-api/structures.rst:170
180185
msgid"Implementing functions and methods"
@@ -202,25 +207,31 @@ msgid ""
202207
"Type of the functions used to implement Python callables in C with signature"
203208
" :const:`METH_VARARGS | METH_KEYWORDS`. The function signature is::"
204209
msgstr""
210+
"用于在 C 中实现具有 :const:`METH_VARARGS | METH_KEYWORDS` 签名的 Python 可调用对象的函数类型。 "
211+
"函数的签名为::"
205212

206213
#:../../c-api/structures.rst:199
207214
msgid""
208215
"Type of the functions used to implement Python callables in C with signature"
209216
" :const:`METH_FASTCALL`. The function signature is::"
210-
msgstr""
217+
msgstr"用于在 C 中实现具有 :const:`METH_FASTCALL` 签名的 Python 可调用对象的函数类型。 函数的签名为::"
211218

212219
#:../../c-api/structures.rst:209
213220
msgid""
214221
"Type of the functions used to implement Python callables in C with signature"
215222
" :const:`METH_FASTCALL | METH_KEYWORDS`. The function signature is::"
216223
msgstr""
224+
"用于在 C 中实现具有 :const:`METH_FASTCALL | METH_KEYWORDS` 签名的 Python 可调用对象的函数类型。 "
225+
"函数的签名为::"
217226

218227
#:../../c-api/structures.rst:220
219228
msgid""
220229
"Type of the functions used to implement Python callables in C with signature"
221230
" :const:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS`. The function "
222231
"signature is::"
223232
msgstr""
233+
"用于在 C 中实现具有 :const:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS` 签名的 Python "
234+
"可调用对象的函数类型。 函数的签名为::"
224235

225236
#:../../c-api/structures.rst:235
226237
msgid""
@@ -230,11 +241,11 @@ msgstr "用于描述一个扩展类型的方法的结构体。 该结构体有
230241

231242
#:../../c-api/structures.rst:240
232243
msgid"name of the method"
233-
msgstr""
244+
msgstr"方法名"
234245

235246
#:../../c-api/structures.rst:244
236247
msgid"pointer to the C implementation"
237-
msgstr""
248+
msgstr"指向 C 实现的指针"
238249

239250
#:../../c-api/structures.rst:248
240251
msgid"flags bits indicating how the call should be constructed"
@@ -323,6 +334,8 @@ msgid ""
323334
" class*, that is, the class that contains the method in question. The "
324335
"defining class might be a superclass of ``Py_TYPE(self)``."
325336
msgstr""
337+
":const:`METH_FASTCALL | METH_KEYWORDS` 的扩展支持 *定义式类*,也就是包含相应方法的类。 定义式类可以是 "
338+
"``Py_TYPE(self)`` 的超类。"
326339

327340
#:../../c-api/structures.rst:322
328341
msgid""
@@ -341,6 +354,9 @@ msgid ""
341354
"and will hold a reference to the module or object instance. In all cases "
342355
"the second parameter will be ``NULL``."
343356
msgstr""
357+
"没有形参的方法如果通过 :const:`METH_NOARGS` 旗标列出了参数则不需要检查是否提供了参数。 它们必须为 "
358+
":c:type:`PyCFunction` 类型。 第一个形参通常命名为 *self* 并将存放一个指向模块或对象实例的引用。 "
359+
"在所有情况下第二个形参都将为 ``NULL``。"
344360

345361
#:../../c-api/structures.rst:340
346362
msgid""
@@ -396,6 +412,10 @@ msgid ""
396412
"helpful because calls to PyCFunctions are optimized more than wrapper object"
397413
" calls."
398414
msgstr""
415+
"该方法将被载入来替代现有的定义。 如果没有 *METH_COEXIST*,默认将跳过重复的定义。 由于槽位包装器会在方法表之前被载入,例如当存在 "
416+
"*sq_contains* 槽位时,将会生成一个名为 :meth:`__contains__` 的已包装方法并阻止载入具有相同名称的对应 "
417+
"PyCFunction。 如果定义了此旗标,则 PyCFunction 将被载入来替代此包装器对象并将与槽位共存。 因为对This is helpful"
418+
" because calls to PyCFunctions 的调用比包装器对象调用更为优化所以这是很有帮助的。"
399419

400420
#:../../c-api/structures.rst:388
401421
msgid"Accessing attributes of extension types"
@@ -731,7 +751,7 @@ msgstr "void \\*"
731751
#:../../c-api/structures.rst:504
732752
msgid""
733753
"optional function pointer, providing additional data for getter and setter"
734-
msgstr""
754+
msgstr"可选的函数指针,为 getter 和 setter 提供附加数据"
735755

736756
#:../../c-api/structures.rst:509
737757
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp