Skip to content

Sync with CPython 3.13 #1080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: 3.13
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 25 additions & 11 deletions c-api/capsule.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-01 22:24+0800\n"
"POT-Creation-Date: 2025-06-29 00:17+0000\n"
"PO-Revision-Date: 2018-05-23 14:30+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -150,15 +150,29 @@ msgstr ""

#: ../../c-api/capsule.rst:108
msgid ""
"This function splits *name* on the ``.`` character, and imports the first "
"element. It then processes further elements using attribute lookups."
msgstr ""

#: ../../c-api/capsule.rst:111
msgid ""
"Return the capsule's internal *pointer* on success. On failure, set an "
"exception and return ``NULL``."
msgstr ""

#: ../../c-api/capsule.rst:111
#: ../../c-api/capsule.rst:116
msgid ""
"If *name* points to an attribute of some submodule or subpackage, this "
"submodule or subpackage must be previously imported using other means (for "
"example, by using :c:func:`PyImport_ImportModule`) for the attribute lookups "
"to succeed."
msgstr ""

#: ../../c-api/capsule.rst:121
msgid "*no_block* has no effect anymore."
msgstr ""

#: ../../c-api/capsule.rst:117
#: ../../c-api/capsule.rst:127
msgid ""
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
Expand All @@ -167,41 +181,41 @@ msgid ""
"compared.)"
msgstr ""

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

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

#: ../../c-api/capsule.rst:133
#: ../../c-api/capsule.rst:143
msgid "Set the context pointer inside *capsule* to *context*."
msgstr ""

#: ../../c-api/capsule.rst:135 ../../c-api/capsule.rst:142
#: ../../c-api/capsule.rst:151 ../../c-api/capsule.rst:159
#: ../../c-api/capsule.rst:145 ../../c-api/capsule.rst:152
#: ../../c-api/capsule.rst:161 ../../c-api/capsule.rst:169
msgid ""
"Return ``0`` on success. Return nonzero and set an exception on failure."
msgstr ""

#: ../../c-api/capsule.rst:140
#: ../../c-api/capsule.rst:150
msgid "Set the destructor inside *capsule* to *destructor*."
msgstr ""

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

#: ../../c-api/capsule.rst:156
#: ../../c-api/capsule.rst:166
msgid ""
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
"``NULL``."
Expand Down
Loading