11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2023 , Python Software Foundation
2+ # Copyright (C) 2001-2024 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Rafael Fontenelle <[email protected] >, 2023 7+ # Rafael Fontenelle <[email protected] >, 2024 88#
99#, fuzzy
1010msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.10\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2023-07-29 03:05 +0000\n "
14+ "POT-Creation-Date : 2024-04-15 10:22 +0000\n "
1515"PO-Revision-Date : 2022-11-05 17:21+0000\n "
16- "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023 \n "
16+ "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024 \n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1818"MIME-Version : 1.0\n "
1919"Content-Type : text/plain; charset=UTF-8\n "
@@ -242,7 +242,7 @@ msgstr ""
242242
243243#: ../../c-api/structures.rst:252 ../../c-api/structures.rst:411
244244msgid "points to the contents of the docstring"
245- msgstr ""
245+ msgstr "指向文档字符串的内容 "
246246
247247#: ../../c-api/structures.rst:254
248248msgid ""
@@ -405,7 +405,7 @@ msgstr "访问扩展类型的属性"
405405msgid ""
406406"Structure which describes an attribute of a type which corresponds to a C "
407407"struct member. Its fields are:"
408- msgstr ""
408+ msgstr "描述与某个 C 结构体成员相对应的类型的属性的结构体。 它的字段有: "
409409
410410#: ../../c-api/structures.rst:396 ../../c-api/structures.rst:492
411411msgid "Field"
@@ -427,15 +427,15 @@ msgstr ":attr:`name`"
427427#: ../../c-api/structures.rst:427 ../../c-api/structures.rst:494
428428#: ../../c-api/structures.rst:502
429429msgid "const char \\ *"
430- msgstr ""
430+ msgstr "const char \\ * "
431431
432432#: ../../c-api/structures.rst:398
433433msgid "name of the member"
434- msgstr ""
434+ msgstr "成员名称 "
435435
436436#: ../../c-api/structures.rst:400
437437msgid ":attr:`!type`"
438- msgstr ""
438+ msgstr ":attr:`!type` "
439439
440440#: ../../c-api/structures.rst:400 ../../c-api/structures.rst:407
441441#: ../../c-api/structures.rst:423
@@ -444,7 +444,7 @@ msgstr "int"
444444
445445#: ../../c-api/structures.rst:400
446446msgid "the type of the member in the C struct"
447- msgstr ""
447+ msgstr "C 结构体中成员的类型 "
448448
449449#: ../../c-api/structures.rst:403
450450msgid ":attr:`offset`"
@@ -457,15 +457,15 @@ msgstr "Py_ssize_t"
457457#: ../../c-api/structures.rst:403
458458msgid ""
459459"the offset in bytes that the member is located on the type's object struct"
460- msgstr ""
460+ msgstr "成员在类型的对象结构体中所在位置的以字节表示的偏移量 "
461461
462462#: ../../c-api/structures.rst:407
463463msgid ":attr:`flags`"
464464msgstr ":attr:`flags`"
465465
466466#: ../../c-api/structures.rst:407
467467msgid "flag bits indicating if the field should be read-only or writable"
468- msgstr ""
468+ msgstr "指明字段是否应为只读或可写的旗标位 "
469469
470470#: ../../c-api/structures.rst:411
471471msgid ":attr:`doc`"
@@ -477,6 +477,8 @@ msgid ""
477477"types. When the member is accessed in Python, it will be converted to the "
478478"equivalent Python type."
479479msgstr ""
480+ ":attr:`!type` 可以是与各种 C 类型相对应的许多 ``T_`` 宏中的一个。 当在 Python 中访问该成员时,它将被转换为等价的 "
481+ "Python 类型。"
480482
481483#: ../../c-api/structures.rst:420
482484msgid "Macro name"
@@ -532,7 +534,7 @@ msgstr "T_OBJECT"
532534
533535#: ../../c-api/structures.rst:428 ../../c-api/structures.rst:429
534536msgid "PyObject \\ *"
535- msgstr ""
537+ msgstr "PyObject \\ * "
536538
537539#: ../../c-api/structures.rst:429
538540msgid "T_OBJECT_EX"
@@ -616,6 +618,11 @@ msgid ""
616618":c:macro:`T_OBJECT_EX` handles use of the :keyword:`del` statement on that "
617619"attribute more correctly than :c:macro:`T_OBJECT`."
618620msgstr ""
621+ ":c:macro:`T_OBJECT` 和 :c:macro:`T_OBJECT_EX` 的区别在于 :c:macro:`T_OBJECT` 返回 "
622+ "``None`` 表示其成员为 ``NULL`` 并且 :c:macro:`T_OBJECT_EX` 引发了 "
623+ ":exc:`AttributeError`。 请尝试使用 :c:macro:`T_OBJECT_EX` 取代 :c:macro:`T_OBJECT` "
624+ "因为 :c:macro:`T_OBJECT_EX` 处理在属性上使用 :keyword:`del` 语句比 :c:macro:`T_OBJECT` "
625+ "更正确。"
619626
620627#: ../../c-api/structures.rst:449
621628msgid ""
@@ -625,6 +632,10 @@ msgid ""
625632" :c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` members can be deleted. "
626633"(They are set to ``NULL``)."
627634msgstr ""
635+ ":attr:`flags` 可以为 ``0`` 表示读写访问或 :c:macro:`READONLY` 表示只读访问。 使用 "
636+ ":c:macro:`T_STRING` 作为 :attr:`type` 表示 :c:macro:`READONLY`。 "
637+ ":c:macro:`T_STRING` 数据将被解读为 UTF-8 编码格式。 只有 :c:macro:`T_OBJECT` 和 "
638+ ":c:macro:`T_OBJECT_EX` 成员可以被删除。 (它们会被设为 ``NULL``)。"
628639
629640#: ../../c-api/structures.rst:457
630641msgid ""
@@ -636,6 +647,12 @@ msgid ""
636647":c:member:`~PyTypeObject.tp_vectorcall_offset` in type objects. These must "
637648"be defined with ``T_PYSSIZET`` and ``READONLY``, for example::"
638649msgstr ""
650+ "堆分配类型 (使用 :c:func:`PyType_FromSpec` 或类似函数创建), ``PyMemberDef`` 可以包含特殊成员 "
651+ "``__dictoffset__``, ``__weaklistoffset__`` 和 ``__vectorcalloffset__`` "
652+ "的定义,对应类型对象中的 :c:member:`~PyTypeObject.tp_dictoffset`, "
653+ ":c:member:`~PyTypeObject.tp_weaklistoffset` 和 "
654+ ":c:member:`~PyTypeObject.tp_vectorcall_offset`。 它们必须使用 ``T_PYSSIZET`` 和 "
655+ "``READONLY`` 来定义,例如::"
639656
640657#: ../../c-api/structures.rst:474
641658msgid ""
@@ -671,45 +688,45 @@ msgstr "属性名称"
671688
672689#: ../../c-api/structures.rst:496
673690msgid "get"
674- msgstr ""
691+ msgstr "get "
675692
676693#: ../../c-api/structures.rst:496
677694msgid "getter"
678- msgstr ""
695+ msgstr "getter "
679696
680697#: ../../c-api/structures.rst:496
681698msgid "C function to get the attribute"
682- msgstr ""
699+ msgstr "用于获取属性的 C 函数 "
683700
684701#: ../../c-api/structures.rst:498
685702msgid "set"
686703msgstr "set"
687704
688705#: ../../c-api/structures.rst:498
689706msgid "setter"
690- msgstr ""
707+ msgstr "setter "
691708
692709#: ../../c-api/structures.rst:498
693710msgid ""
694711"optional C function to set or delete the attribute, if omitted the attribute"
695712" is readonly"
696- msgstr ""
713+ msgstr "用于设置或删除属性的可选 C 函数,如果省略则属性将为只读 "
697714
698715#: ../../c-api/structures.rst:502
699716msgid "doc"
700- msgstr ""
717+ msgstr "doc "
701718
702719#: ../../c-api/structures.rst:502
703720msgid "optional docstring"
704721msgstr "可选的文档字符串"
705722
706723#: ../../c-api/structures.rst:504
707724msgid "closure"
708- msgstr ""
725+ msgstr "closure "
709726
710727#: ../../c-api/structures.rst:504
711728msgid "void \\ *"
712- msgstr ""
729+ msgstr "void \\ * "
713730
714731#: ../../c-api/structures.rst:504
715732msgid ""
0 commit comments