10000 sync with cpython a2f1d22a · python/python-docs-zh-tw@e66f0f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e66f0f5

Browse files
sync with cpython a2f1d22a
1 parent 46864fb commit e66f0f5

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

c-api/capsule.po

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"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"
1111
"PO-Revision-Date: 2018-05-23 14:30+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -150,15 +150,29 @@ msgstr ""
150150

151151
#: ../../c-api/capsule.rst:108
152152
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 ""
153159
"Return the capsule's internal *pointer* on success. On failure, set an "
154160
"exception and return ``NULL``."
155161
msgstr ""
156162

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
158172
msgid "*no_block* has no effect anymore."
159173
msgstr ""
160174

161-
#: ../../c-api/capsule.rst:117
175+
#: ../../c-api/capsule.rst:127
162176
msgid ""
163177
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
164178
"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
@@ -167,41 +181,41 @@ msgid ""
167181
"compared.)"
168182
msgstr ""
169183

170-
#: ../../c-api/capsule.rst:123
184+
#: ../../c-api/capsule.rst:133
171185
msgid ""
172186
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
173187
"to any of the accessors (any function starting with ``PyCapsule_Get``) are "
174188
"guaranteed to succeed."
175189
msgstr ""
176190

177-
#: ../../c-api/capsule.rst:127
191+
#: ../../c-api/capsule.rst:137
178192
msgid ""
179193
"Return a nonzero value if the object is valid and matches the name passed "
180194
"in. Return ``0`` otherwise. This function will not fail."
181195
msgstr ""
182196

183-
#: ../../c-api/capsule.rst:133
197+
#: ../../c-api/capsule.rst:143
184198
msgid "Set the context pointer inside *capsule* to *context*."
185199
msgstr ""
186200

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
189203
msgid ""
190204
"Return ``0`` on success. Return nonzero and set an exception on failure."
191205
msgstr ""
192206

193-
#: ../../c-api/capsule.rst:140
207+
#: ../../c-api/capsule.rst:150
194208
msgid "Set the destructor inside *capsule* to *destructor*."
195209
msgstr ""
196210

197-
#: ../../c-api/capsule.rst:147
211+
#: ../../c-api/capsule.rst:157
198212
msgid ""
199213
"Set the name inside *capsule* to *name*. If non-``NULL``, the name must "
200214
"outlive the capsule. If the previous *name* stored in the capsule was not "
201215
"``NULL``, no attempt is made to free it."
202216
msgstr ""
203217

204-
#: ../../c-api/capsule.rst:156
218+
#: ../../c-api/capsule.rst:166
205219
msgid ""
206220
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
207221
"``NULL``."

0 commit comments

Comments
 (0)
0