1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2023 , Python Software Foundation
2
+ # Copyright (C) 2001-2024 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Rafael Fontenelle <[email protected] >, 2023
7
+ # Rafael Fontenelle <[email protected] >, 2024
8
8
#
9
9
#, fuzzy
10
10
msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.10\n "
13
13
"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 "
15
15
"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 "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
18
18
"MIME-Version : 1.0\n "
19
19
"Content-Type : text/plain; charset=UTF-8\n "
@@ -242,7 +242,7 @@ msgstr ""
242
242
243
243
#: ../../c-api/structures.rst:252 ../../c-api/structures.rst:411
244
244
msgid "points to the contents of the docstring"
245
- msgstr ""
245
+ msgstr "指向文档字符串的内容 "
246
246
247
247
#: ../../c-api/structures.rst:254
248
248
msgid ""
@@ -405,7 +405,7 @@ msgstr "访问扩展类型的属性"
405
405
msgid ""
406
406
"Structure which describes an attribute of a type which corresponds to a C "
407
407
"struct member. Its fields are:"
408
- msgstr ""
408
+ msgstr "描述与某个 C 结构体成员相对应的类型的属性的结构体。 它的字段有: "
409
409
410
410
#: ../../c-api/structures.rst:396 ../../c-api/structures.rst:492
411
411
msgid "Field"
@@ -427,15 +427,15 @@ msgstr ":attr:`name`"
427
427
#: ../../c-api/structures.rst:427 ../../c-api/structures.rst:494
428
428
#: ../../c-api/structures.rst:502
429
429
msgid "const char \\ *"
430
- msgstr ""
430
+ msgstr "const char \\ * "
431
431
432
432
#: ../../c-api/structures.rst:398
433
433
msgid "name of the member"
434
- msgstr ""
434
+ msgstr "成员名称 "
435
435
436
436
#: ../../c-api/structures.rst:400
437
437
msgid ":attr:`!type`"
438
- msgstr ""
438
+ msgstr ":attr:`!type` "
439
439
440
440
#: ../../c-api/structures.rst:400 ../../c-api/structures.rst:407
441
441
#: ../../c-api/structures.rst:423
@@ -444,7 +444,7 @@ msgstr "int"
444
444
445
445
#: ../../c-api/structures.rst:400
446
446
msgid "the type of the member in the C struct"
447
- msgstr ""
447
+ msgstr "C 结构体中成员的类型 "
448
448
449
449
#: ../../c-api/structures.rst:403
450
450
msgid ":attr:`offset`"
@@ -457,15 +457,15 @@ msgstr "Py_ssize_t"
457
457
#: ../../c-api/structures.rst:403
458
458
msgid ""
459
459
"the offset in bytes that the member is located on the type's object struct"
460
- msgstr ""
460
+ msgstr "成员在类型的对象结构体中所在位置的以字节表示的偏移量 "
461
461
462
462
#: ../../c-api/structures.rst:407
463
463
msgid ":attr:`flags`"
464
464
msgstr ":attr:`flags`"
465
465
466
466
#: ../../c-api/structures.rst:407
467
467
msgid "flag bits indicating if the field should be read-only or writable"
468
- msgstr ""
468
+ msgstr "指明字段是否应为只读或可写的旗标位 "
469
469
470
470
#: ../../c-api/structures.rst:411
471
471
msgid ":attr:`doc`"
@@ -477,6 +477,8 @@ msgid ""
477
477
"types. When the member is accessed in Python, it will be converted to the "
478
478
"equivalent Python type."
479
479
msgstr ""
480
+ ":attr:`!type` 可以是与各种 C 类型相对应的许多 ``T_`` 宏中的一个。 当在 Python 中访问该成员时,它将被转换为等价的 "
481
+ "Python 类型。"
480
482
481
483
#: ../../c-api/structures.rst:420
482
484
msgid "Macro name"
@@ -532,7 +534,7 @@ msgstr "T_OBJECT"
532
534
533
535
#: ../../c-api/structures.rst:428 ../../c-api/structures.rst:429
534
536
msgid "PyObject \\ *"
535
- msgstr ""
537
+ msgstr "PyObject \\ * "
536
538
537
539
#: ../../c-api/structures.rst:429
538
540
msgid "T_OBJECT_EX"
@@ -616,6 +618,11 @@ msgid ""
616
618
":c:macro:`T_OBJECT_EX` handles use of the :keyword:`del` statement on that "
617
619
"attribute more correctly than :c:macro:`T_OBJECT`."
618
620
msgstr ""
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
+ "更正确。"
619
626
620
627
#: ../../c-api/structures.rst:449
621
628
msgid ""
@@ -625,6 +632,10 @@ msgid ""
625
632
" :c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` members can be deleted. "
626
633
"(They are set to ``NULL``)."
627
634
msgstr ""
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``)。"
628
639
629
640
#: ../../c-api/structures.rst:457
630
641
msgid ""
@@ -636,6 +647,12 @@ msgid ""
636
647
":c:member:`~PyTypeObject.tp_vectorcall_offset` in type objects. These must "
637
648
"be defined with ``T_PYSSIZET`` and ``READONLY``, for example::"
638
649
msgstr ""
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`` 来定义,例如::"
639
656
640
657
#: ../../c-api/structures.rst:474
641
658
msgid ""
@@ -671,45 +688,45 @@ msgstr "属性名称"
671
688
672
689
#: ../../c-api/structures.rst:496
673
690
msgid "get"
674
- msgstr ""
691
+ msgstr "get "
675
692
676
693
#: ../../c-api/structures.rst:496
677
694
msgid "getter"
678
- msgstr ""
695
+ msgstr "getter "
679
696
680
697
#: ../../c-api/structures.rst:496
681
698
msgid "C function to get the attribute"
682
- msgstr ""
699
+ msgstr "用于获取属性的 C 函数 "
683
700
684
701
#: ../../c-api/structures.rst:498
685
702
msgid "set"
686
703
msgstr "set"
687
704
688
705
#: ../../c-api/structures.rst:498
689
706
msgid "setter"
690
- msgstr ""
707
+ msgstr "setter "
691
708
692
709
#: ../../c-api/structures.rst:498
693
710
msgid ""
694
711
"optional C function to set or delete the attribute, if omitted the attribute"
695
712
" is readonly"
696
- msgstr ""
713
+ msgstr "用于设置或删除属性的可选 C 函数,如果省略则属性将为只读 "
697
714
698
715
#: ../../c-api/structures.rst:502
699
716
msgid "doc"
700
- msgstr ""
717
+ msgstr "doc "
701
718
702
719
#: ../../c-api/structures.rst:502
703
720
msgid "optional docstring"
704
721
msgstr "可选的文档字符串"
705
722
706
723
#: ../../c-api/structures.rst:504
707
724
msgid "closure"
708
- msgstr ""
725
+ msgstr "closure "
709
726
710
727
#: ../../c-api/structures.rst:504
711
728
msgid "void \\ *"
712
- msgstr ""
729
+ msgstr "void \\ * "
713
730
714
731
#: ../../c-api/structures.rst:504
715
732
msgid ""
0 commit comments