|
9 | 9 | msgstr "" |
10 | 10 | "Project-Id-Version:Python 3.14\n" |
11 | 11 | "Report-Msgid-Bugs-To:\n" |
12 | | -"POT-Creation-Date:2025-11-10 00:16+0000\n" |
| 12 | +"POT-Creation-Date:2025-12-02 00:15+0000\n" |
13 | 13 | "PO-Revision-Date:2021-12-09 20:56+0800\n" |
14 | 14 | "Last-Translator:Matt Wang <mattwang44@gmail.com>\n" |
15 | 15 | "Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-" |
@@ -37,57 +37,97 @@ msgstr "" |
37 | 37 | msgid"The type object for the built-in descriptor types." |
38 | 38 | msgstr"內建 descriptor 型別的型別物件。" |
39 | 39 |
|
| 40 | +#:../../c-api/descriptor.rst:26 |
| 41 | +msgid"" |
| 42 | +"The type object for member descriptor objects created from :c:type:" |
| 43 | +"`PyMemberDef` structures. These descriptors expose fields of a C struct as " |
| 44 | +"attributes on a type, and correspond to :class:`types.MemberDescriptorType` " |
| 45 | +"objects in Python." |
| 46 | +msgstr"" |
| 47 | + |
40 | 48 | #:../../c-api/descriptor.rst:35 |
41 | 49 | msgid"" |
| 50 | +"The type object for get/set descriptor objects created from :c:type:" |
| 51 | +"`PyGetSetDef` structures. These descriptors implement attributes whose value " |
| 52 | +"is computed by C getter and setter functions, and are used for many built-in " |
| 53 | +"type attributes." |
| 54 | +msgstr"" |
| 55 | + |
| 56 | +#:../../c-api/descriptor.rst:46 |
| 57 | +msgid"" |
| 58 | +"The type object for method descriptor objects created from :c:type:" |
| 59 | +"`PyMethodDef` structures. These descriptors expose C functions as methods on " |
| 60 | +"a type, and correspond to :class:`types.MemberDescriptorType` objects in " |
| 61 | +"Python." |
| 62 | +msgstr"" |
| 63 | + |
| 64 | +#:../../c-api/descriptor.rst:57 |
| 65 | +msgid"" |
| 66 | +"The type object for wrapper descriptor objects created by :c:func:" |
| 67 | +"`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper descriptors are " |
| 68 | +"used internally to expose special methods implemented via wrapper " |
| 69 | +"structures, and appear in Python as :class:`types.WrapperDescriptorType` " |
| 70 | +"objects." |
| 71 | +msgstr"" |
| 72 | + |
| 73 | +#:../../c-api/descriptor.rst:69 |
| 74 | +msgid"" |
42 | 75 | "Return non-zero if the descriptor object *descr* describes a data attribute, " |
43 | 76 | "or ``0`` if it describes a method. *descr* must be a descriptor object; " |
44 | 77 | "there is no error checking." |
45 | 78 | msgstr"" |
46 | 79 | "如果 descriptor 物件 *descr* 描述的是一個資料屬性則回傳非零值,或者如果它描述" |
47 | 80 | "的是一個方法則回傳 ``0``。*descr* 必須為一個 descriptor 物件;沒有錯誤檢查。" |
48 | 81 |
|
49 | | -#:../../c-api/descriptor.rst:44 |
| 82 | +#:../../c-api/descriptor.rst:78 |
50 | 83 | msgid"Built-in descriptors" |
51 | 84 | msgstr"內建描述器" |
52 | 85 |
|
53 | | -#:../../c-api/descriptor.rst:48 |
| 86 | +#:../../c-api/descriptor.rst:82 |
54 | 87 | msgid"" |
55 | 88 | "The type object for super objects. This is the same object as :class:`super` " |
56 | 89 | "in the Python layer." |
57 | 90 | msgstr"" |
58 | 91 |
|
59 | | -#:../../c-api/descriptor.rst:54 |
| 92 | +#:../../c-api/descriptor.rst:88 |
60 | 93 | msgid"" |
61 | 94 | "The type of class method objects. This is the same object as :class:" |
62 | 95 | "`classmethod` in the Python layer." |
63 | 96 | msgstr"" |
64 | 97 |
|
65 | | -#:../../c-api/descriptor.rst:60 |
| 98 | +#:../../c-api/descriptor.rst:94 |
| 99 | +msgid"" |
| 100 | +"The type object for C-level class method descriptor objects. This is the " |
| 101 | +"type of the descriptors created for :func:`classmethod` defined in C " |
| 102 | +"extension types, and is the same object as :class:`classmethod` in Python." |
| 103 | +msgstr"" |
| 104 | + |
| 105 | +#:../../c-api/descriptor.rst:102 |
66 | 106 | msgid"" |
67 | 107 | "Create a new :class:`classmethod` object wrapping *callable*. *callable* " |
68 | 108 | "must be a callable object and must not be ``NULL``." |
69 | 109 | msgstr"" |
70 | 110 |
|
71 | | -#:../../c-api/descriptor.rst:63 |
| 111 | +#:../../c-api/descriptor.rst:105 |
72 | 112 | msgid"" |
73 | 113 | "On success, this function returns a :term:`strong reference` to a new class " |
74 | 114 | "method descriptor. On failure, this function returns ``NULL`` with an " |
75 | 115 | "exception set." |
76 | 116 | msgstr"" |
77 | 117 |
|
78 | | -#:../../c-api/descriptor.rst:70 |
| 118 | +#:../../c-api/descriptor.rst:112 |
79 | 119 | msgid"" |
80 | 120 | "The type of static method objects. This is the same object as :class:" |
81 | 121 | "`staticmethod` in the Python layer." |
82 | 122 | msgstr"" |
83 | 123 |
|
84 | | -#:../../c-api/descriptor.rst:76 |
| 124 | +#:../../c-api/descriptor.rst:118 |
85 | 125 | msgid"" |
86 | 126 | "Create a new :class:`staticmethod` object wrapping *callable*. *callable* " |
87 | 127 | "must be a callable object and must not be ``NULL``." |
88 | 128 | msgstr"" |
89 | 129 |
|
90 | | -#:../../c-api/descriptor.rst:79 |
| 130 | +#:../../c-api/descriptor.rst:121 |
91 | 131 | msgid"" |
92 | 132 | "On success, this function returns a :term:`strong reference` to a new static " |
93 | 133 | "method descriptor. On failure, this function returns ``NULL`` with an " |
|