7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.13\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2024-09-01 22:24+0800 \n "
10
+ "POT-Creation-Date : 2025-06-29 00:17+0000 \n "
11
11
"PO-Revision-Date : 2018-05-23 14:30+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -150,15 +150,29 @@ msgstr ""
150
150
151
151
#: ../../c-api/capsule.rst:108
152
152
msgid ""
153
+ "This function splits *name* on the ``.`` character, and imports the first "
154
+ "element. It then processes further elements using attribute lookups."
155
+ msgstr ""
156
+
157
+ #: ../../c-api/capsule.rst:111
158
+ msgid ""
153
159
"Return the capsule's internal *pointer* on success. On failure, set an "
154
160
"exception and return ``NULL``."
155
161
msgstr ""
156
162
157
- #: ../../c-api/capsule.rst:111
163
+ #: ../../c-api/capsule.rst:116
164
+ msgid ""
165
+ "If *name* points to an attribute of some submodule or subpackage, this "
166
+ "submodule or subpackage must be previously imported using other means (for "
167
+ "example, by using :c:func:`PyImport_ImportModule`) for the attribute lookups "
168
+ "to succeed."
169
+ msgstr ""
170
+
171
+ #: ../../c-api/capsule.rst:121
158
172
msgid "*no_block* has no effect anymore."
159
173
msgstr ""
160
174
161
- #: ../../c-api/capsule.rst:117
175
+ #: ../../c-api/capsule.rst:127
162
176
msgid ""
163
177
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
164
178
"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
@@ -167,41 +181,41 @@ msgid ""
167
181
"compared.)"
168
182
msgstr ""
169
183
170
- #: ../../c-api/capsule.rst:123
184
+ #: ../../c-api/capsule.rst:133
171
185
msgid ""
172
186
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
173
187
"to any of the accessors (any function starting with ``PyCapsule_Get``) are "
174
188
"guaranteed to succeed."
175
189
msgstr ""
176
190
177
- #: ../../c-api/capsule.rst:127
191
+ #: ../../c-api/capsule.rst:137
178
192
msgid ""
179
193
"Return a nonzero value if the object is valid and matches the name passed "
180
194
"in. Return ``0`` otherwise. This function will not fail."
181
195
msgstr ""
182
196
183
- #: ../../c-api/capsule.rst:133
197
+ #: ../../c-api/capsule.rst:143
184
198
msgid "Set the context pointer inside *capsule* to *context*."
185
199
msgstr ""
186
200
187
- #: ../../c-api/capsule.rst:135 ../../c-api/capsule.rst:142
188
- #: ../../c-api/capsule.rst:151 ../../c-api/capsule.rst:159
201
+ #: ../../c-api/capsule.rst:145 ../../c-api/capsule.rst:152
202
+ #: ../../c-api/capsule.rst:161 ../../c-api/capsule.rst:169
189
203
msgid ""
190
204
"Return ``0`` on success. Return nonzero and set an exception on failure."
191
205
msgstr ""
192
206
193
- #: ../../c-api/capsule.rst:140
207
+ #: ../../c-api/capsule.rst:150
194
208
msgid "Set the destructor inside *capsule* to *destructor*."
195
209
msgstr ""
196
210
197
- #: ../../c-api/capsule.rst:147
211
+ #: ../../c-api/capsule.rst:157
198
212
msgid ""
199
213
"Set the name inside *capsule* to *name*. If non-``NULL``, the name must "
200
214
"outlive the capsule. If the previous *name* stored in the capsule was not "
201
215
"``NULL``, no attempt is made to free it."
202
216
msgstr ""
203
217
204
- #: ../../c-api/capsule.rst:156
218
+ #: ../../c-api/capsule.rst:166
205
219
msgid ""
206
220
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
207
221
"``NULL``."
0 commit comments