Skip to content

Commit 10b8e01

Browse files
[po] auto sync
1 parent 5d3e9c5 commit 10b8e01

File tree

13 files changed

+436
-164
lines changed

13 files changed

+436
-164
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "97.37%", "updated_at": "2025-07-13T00:47:17Z"}
1+
{"translation": "97.65%", "updated_at": "2025-07-13T16:14:25Z"}

c-api/code.po

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# CommonZ <zyyzcode@outlook.com>, 2024
1010
# Freesand Leo <yuqinju@163.com>, 2025
1111
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
12+
# 汇民 王 <whuim@qq.com>, 2025
1213
#
1314
#, fuzzy
1415
msgid ""
@@ -17,7 +18,7 @@ msgstr ""
1718
"Report-Msgid-Bugs-To: \n"
1819
"POT-Creation-Date: 2025-07-11 14:21+0000\n"
1920
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
20-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
21+
"Last-Translator: 汇民 王 <whuim@qq.com>, 2025\n"
2122
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2223
"MIME-Version: 1.0\n"
2324
"Content-Type: text/plain; charset=UTF-8\n"
@@ -300,7 +301,7 @@ msgstr ""
300301

301302
#: ../../c-api/code.rst:217
302303
msgid "Code Object Flags"
303-
msgstr ""
304+
msgstr "代码对象标志"
304305

305306
#: ../../c-api/code.rst:219
306307
msgid ""
@@ -309,6 +310,9 @@ msgid ""
309310
":c:func:`PyObject_GetAttrString`), and set using a *flags* argument to "
310311
":c:func:`PyUnstable_Code_New` and similar functions."
311312
msgstr ""
313+
"代码对象包含一个标志位字段,可以通过 :attr:`~codeobject.co_flags` Python 属性检索(例如使用 "
314+
":c:func:`PyObject_GetAttrString`),并通过 *flags* 参数设置 "
315+
":c:func:`PyUnstable_Code_New` 及类似函数。"
312316

313317
#: ../../c-api/code.rst:224
314318
msgid ""
@@ -317,12 +321,15 @@ msgid ""
317321
":c:member:`PyCompilerFlags.cf_flags`. Note that many ``CO_FUTURE_`` flags "
318322
"are mandatory in current versions of Python, and setting them has no effect."
319323
msgstr ""
324+
"以 ``CO_FUTURE_`` 开头的标志名称对应于通常可通过 :ref:`未来语句 <future>` 选择的功能。这些标志可以在 "
325+
":c:member:`PyCompilerFlags.cf_flags` 中使用。请注意,许多 ``CO_FUTURE_`` 标志在当前版本的 "
326+
"Python 中是强制性的,设置它们没有效果。"
320327

321328
#: ../../c-api/code.rst:230
322329
msgid ""
323330
"The following flags are available. For their meaning, see the linked "
324331
"documentation of their Python equivalents."
325-
msgstr ""
332+
msgstr "以下是可用的标志位。有关其具体含义,请参阅对应Python原生标志位的官方文档说明。"
326333

327334
#: ../../c-api/code.rst:238
328335
msgid "Flag"
@@ -334,75 +341,75 @@ msgstr "含意"
334341

335342
#: ../../c-api/code.rst:241
336343
msgid ":py:data:`inspect.CO_OPTIMIZED`"
337-
msgstr ""
344+
msgstr ":py:data:`inspect.CO_OPTIMIZED`"
338345

339346
#: ../../c-api/code.rst:243
340347
msgid ":py:data:`inspect.CO_NEWLOCALS`"
341-
msgstr ""
348+
msgstr ":py:data:`inspect.CO_NEWLOCALS`"
342349

343350
#: ../../c-api/code.rst:245
344351
msgid ":py:data:`inspect.CO_VARARGS`"
345-
msgstr ""
352+
msgstr ":py:data:`inspect.CO_VARARGS`"
346353

347354
#: ../../c-api/code.rst:247
348355
msgid ":py:data:`inspect.CO_VARKEYWORDS`"
349-
msgstr ""
356+
msgstr ":py:data:`inspect.CO_VARKEYWORDS`"
350357

351358
#: ../../c-api/code.rst:249
352359
msgid ":py:data:`inspect.CO_NESTED`"
353-
msgstr ""
360+
msgstr ":py:data:`inspect.CO_NESTED`"
354361

355362
#: ../../c-api/code.rst:251
356363
msgid ":py:data:`inspect.CO_GENERATOR`"
357-
msgstr ""
364+
msgstr ":py:data:`inspect.CO_GENERATOR`"
358365

359366
#: ../../c-api/code.rst:253
360367
msgid ":py:data:`inspect.CO_COROUTINE`"
361-
msgstr ""
368+
msgstr ":py:data:`inspect.CO_COROUTINE`"
362369

363370
#: ../../c-api/code.rst:255
364371
msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
365-
msgstr ""
372+
msgstr ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
366373

367374
#: ../../c-api/code.rst:257
368375
msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
369-
msgstr ""
376+
msgstr ":py:data:`inspect.CO_ASYNC_GENERATOR`"
370377

371378
#: ../../c-api/code.rst:259
372379
msgid ":py:data:`inspect.CO_HAS_DOCSTRING`"
373-
msgstr ""
380+
msgstr ":py:data:`inspect.CO_HAS_DOCSTRING`"
374381

375382
#: ../../c-api/code.rst:261
376383
msgid ":py:data:`inspect.CO_METHOD`"
377-
msgstr ""
384+
msgstr ":py:data:`inspect.CO_METHOD`"
378385

379386
#: ../../c-api/code.rst:264
380387
msgid "no effect (:py:data:`__future__.division`)"
381-
msgstr ""
388+
msgstr "无效果 (:py:data:`__future__.division`)"
382389

383390
#: ../../c-api/code.rst:266
384391
msgid "no effect (:py:data:`__future__.absolute_import`)"
385-
msgstr ""
392+
msgstr "无效果 (:py:data:`__future__.absolute_import`)"
386393

387394
#: ../../c-api/code.rst:268
388395
msgid "no effect (:py:data:`__future__.with_statement`)"
389-
msgstr ""
396+
msgstr "无效果 (:py:data:`__future__.with_statement`)"
390397

391398
#: ../../c-api/code.rst:270
392399
msgid "no effect (:py:data:`__future__.print_function`)"
393-
msgstr ""
400+
msgstr "无效果 (:py:data:`__future__.print_function`)"
394401

395402
#: ../../c-api/code.rst:272
396403
msgid "no effect (:py:data:`__future__.unicode_literals`)"
397-
msgstr ""
404+
msgstr "无效果 (:py:data:`__future__.unicode_literals`)"
398405

399406
#: ../../c-api/code.rst:274
400407
msgid "no effect (:py:data:`__future__.generator_stop`)"
401-
msgstr ""
408+
msgstr "无效果 (:py:data:`__future__.generator_stop`)"
402409

403410
#: ../../c-api/code.rst:276
404411
msgid ":py:data:`__future__.annotations`"
405-
msgstr ""
412+
msgstr ":py:data:`__future__.annotations`"
406413

407414
#: ../../c-api/code.rst:280
408415
msgid "Extra information"

c-api/structures.po

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Fw[a]rd <howard.main@outlook.com>, 2021
88
# ppcfish <ppcfish@gmail.com>, 2023
99
# Freesand Leo <yuqinju@163.com>, 2025
10+
# 汇民 王 <whuim@qq.com>, 2025
1011
#
1112
#, fuzzy
1213
msgid ""
@@ -15,7 +16,7 @@ msgstr ""
1516
"Report-Msgid-Bugs-To: \n"
1617
"POT-Creation-Date: 2025-07-11 14:21+0000\n"
1718
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
18-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
19+
"Last-Translator: 汇民 王 <whuim@qq.com>, 2025\n"
1920
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2021
"MIME-Version: 1.0\n"
2122
"Content-Type: text/plain; charset=UTF-8\n"
@@ -61,55 +62,63 @@ msgid ""
6162
"declared to be a :c:type:`PyObject`, but every pointer to a Python object "
6263
"can be cast to a :c:expr:`PyObject*`."
6364
msgstr ""
65+
"所有对象类型都是此类型的扩展。这是一个包含Python需要将对象指针视为对象所需信息的类型。在正常的“发布”构建版本中,它仅包含对象的引用计数和指向相应类型对象的指针。虽然没有任何内容被显式声明为"
66+
" :c:type:`PyObject` 类型,但所有指向Python对象的指针都可以被强制转换为 :c:expr:`PyObject*` 类型。"
6467

6568
#: ../../c-api/structures.rst:33
6669
msgid ""
6770
"The members must not be accessed directly; instead use macros such as "
6871
":c:macro:`Py_REFCNT` and :c:macro:`Py_TYPE`."
69-
msgstr ""
72+
msgstr "成员不得直接访问;而应使用诸如 :c:macro:`Py_REFCNT` 和 :c:macro:`Py_TYPE` 之类的宏。"
7073

7174
#: ../../c-api/structures.rst:38
7275
msgid ""
7376
"The object's reference count, as returned by :c:macro:`Py_REFCNT`. Do not "
7477
"use this field directly; instead use functions and macros such as "
7578
":c:macro:`!Py_REFCNT`, :c:func:`Py_INCREF` and :c:func:`Py_DecRef`."
7679
msgstr ""
80+
"对象的引用计数,由 :c:macro:`Py_REFCNT` 返回。不要直接使用此字段;而应使用函数和宏,如 "
81+
":c:macro:`!Py_REFCNT`,:c:func:`Py_INCREF` 和 :c:func:`Py_DecRef`。"
7782

7883
#: ../../c-api/structures.rst:42
7984
msgid ""
8085
"The field type may be different from ``Py_ssize_t``, depending on build "
8186
"configuration and platform."
82-
msgstr ""
87+
msgstr "字段类型可能不同于 ``Py_ssize_t``,具体取决于构建配置和平台。"
8388

8489
#: ../../c-api/structures.rst:47
8590
msgid ""
8691
"The object's type. Do not use this field directly; use :c:macro:`Py_TYPE` "
8792
"and :c:func:`Py_SET_TYPE` instead."
88-
msgstr ""
93+
msgstr "对象的类型。不要直接使用此字段;而应使用 :c:macro:`Py_TYPE` 和 :c:func:`Py_SET_TYPE`。"
8994

9095
#: ../../c-api/structures.rst:54
9196
msgid ""
9297
"An extension of :c:type:`PyObject` that adds the "
9398
":c:member:`~PyVarObject.ob_size` field. This is intended for objects that "
9499
"have some notion of *length*."
95100
msgstr ""
101+
":c:type:`PyObject` 的扩展,添加了 :c:member:`~PyVarObject.ob_size` 字段。这适用于具有某种 *长度*"
102+
" 概念的对象。"
96103

97104
#: ../../c-api/structures.rst:58
98105
msgid ""
99106
"As with :c:type:`!PyObject`, the members must not be accessed directly; "
100107
"instead use macros such as :c:macro:`Py_SIZE`, :c:macro:`Py_REFCNT` and "
101108
":c:macro:`Py_TYPE`."
102109
msgstr ""
110+
"与 :c:type:`!PyObject` 一样,成员不得直接访问;而应使用诸如 "
111+
":c:macro:`Py_SIZE`,:c:macro:`Py_REFCNT` 和 :c:macro:`Py_TYPE` 之类的宏。"
103112

104113
#: ../../c-api/structures.rst:64
105114
msgid ""
106115
"A size field, whose contents should be considered an object's internal "
107116
"implementation detail."
108-
msgstr ""
117+
msgstr "一个大小字段,其内容应被视为对象的内部实现细节。"
109118

110119
#: ../../c-api/structures.rst:67
111120
msgid "Do not use this field directly; use :c:macro:`Py_SIZE` instead."
112-
msgstr ""
121+
msgstr "不要直接使用此字段;而应使用 :c:macro:`Py_SIZE`。"
113122

114123
#: ../../c-api/structures.rst:69
115124
msgid ""
@@ -118,18 +127,22 @@ msgid ""
118127
"arbitrary values can be stored in :c:member:`!ob_size` using "
119128
":c:macro:`Py_SET_SIZE`."
120129
msgstr ""
130+
"对象创建函数,如 :c:func:`PyObject_NewVar`,通常会将此字段设置为请求的大小(条目数)。创建后,可以使用 "
131+
":c:macro:`Py_SET_SIZE` 在 :c:member:`!ob_size` 中存储任意值。"
121132

122133
#: ../../c-api/structures.rst:74
123134
msgid ""
124135
"To get an object's publicly exposed length, as returned by the Python "
125136
"function :py:func:`len`, use :c:func:`PyObject_Length` instead."
126137
msgstr ""
138+
"若需获取对象公开暴露的长度(即Python内置函数 :py:func:`len` 所返回的值),应使用 "
139+
":c:func:`PyObject_Length` 接口。"
127140

128141
#: ../../c-api/structures.rst:81
129142
msgid ""
130143
"This is a macro used when declaring new types which represent objects "
131144
"without a varying length. The PyObject_HEAD macro expands to::"
132-
msgstr "这是一个在声明代表无可变长度对象的新类型时所使用的宏。 PyObject_HEAD 宏被扩展为::"
145+
msgstr "这是一个在声明新类型时使用的宏,用于表示不包含可变长度成员的对象。PyObject_HEAD宏展开后为:"
133146

134147
#: ../../c-api/structures.rst:84
135148
msgid "PyObject ob_base;"
@@ -191,6 +204,8 @@ msgid ""
191204
"The returned reference is :term:`borrowed <borrowed reference>` from *o*. Do"
192205
" not release it with :c:func:`Py_DECREF` or similar."
193206
msgstr ""
207+
"返回的引用是从 *o* :term:`借用的 <borrowed reference>`。不要使用 :c:func:`Py_DECREF` "
208+
"或类似方法释放它。"
194209

195210
#: ../../c-api/structures.rst:143
196211
msgid ""
@@ -208,30 +223,34 @@ msgstr "如果对象 *o* 的类型为 *type* 则返回非零值。 否则返回
208223
msgid ""
209224
"Set the type of object *o* to *type*, without any checking or reference "
210225
"counting."
211-
msgstr ""
226+
msgstr "将对象 *o* 的类型设置为 *type*,不进行任何检查或引用计数。"
212227

213228
#: ../../c-api/structures.rst:161
214229
msgid ""
215230
"This is a very low-level operation. Consider instead setting the Python "
216231
"attribute :attr:`~object.__class__` using :c:func:`PyObject_SetAttrString` "
217232
"or similar."
218233
msgstr ""
234+
"这是一个非常低级的操作。建议改为使用 :c:func:`PyObject_SetAttrString` 或类似方法设置 Python 属性 "
235+
":attr:`~object.__class__`。"
219236

220237
#: ../../c-api/structures.rst:165
221238
msgid ""
222239
"Note that assigning an incompatible type can lead to undefined behavior."
223-
msgstr ""
240+
msgstr "请注意,分配不兼容的类型可能会导致未定义行为。"
224241

225242
#: ../../c-api/structures.rst:167
226243
msgid ""
227244
"If *type* is a :ref:`heap type <heap-types>`, the caller must create a new "
228245
"reference to it. Similarly, if the old type of *o* is a heap type, the "
229246
"caller must release a reference to that type."
230247
msgstr ""
248+
"如果 *type* 是一个 :ref:`堆类型 <heap-types>`,调用者必须为其创建一个新的引用。同样地,如果 *o* "
249+
"的旧类型是堆类型,调用者必须释放对该类型的引用。"
231250

232251
#: ../../c-api/structures.rst:177
233252
msgid "Get the :c:member:`~PyVarObject.ob_size` field of *o*."
234-
msgstr ""
253+
msgstr "获取 *o* 的 :c:member:`~PyVarObject.ob_size` 字段。"
235254

236255
#: ../../c-api/structures.rst:179
237256
msgid ""
@@ -242,7 +261,7 @@ msgstr ""
242261

243262
#: ../../c-api/structures.rst:186
244263
msgid "Set the :c:member:`~PyVarObject.ob_size` field of *o* to *size*."
245-
msgstr ""
264+
msgstr "将 *o* 的 :c:member:`~PyVarObject.ob_size` 字段设置为 *size*。"
246265

247266
#: ../../c-api/structures.rst:193
248267
msgid ""

0 commit comments

Comments
 (0)