Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f4913f

Browse files
sync with cpython ac5ed8a7
1 parent4ad5123 commit2f4913f

File tree

7 files changed

+419
-381
lines changed

7 files changed

+419
-381
lines changed

‎c-api/structures.po

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2024-01-18 00:03+0000\n"
10+
"POT-Creation-Date:2024-01-25 06:20+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:07+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -581,13 +581,13 @@ msgstr ""
581581
#:../../c-api/structures.rst:553
582582
msgid""
583583
"Can only be used as part of :c:member:`Py_tp_members <PyTypeObject."
584-
"tp_members>` :c:type:`slot <PyTypeSlot>` when creating a class using "
584+
"tp_members>` :c:type:`slot <PyType_Slot>` when creating a class using "
585585
"negative :c:member:`~PyType_Spec.basicsize`. It is mandatory in that case."
586586
msgstr""
587587

588588
#:../../c-api/structures.rst:558
589589
msgid""
590-
"This flag is only used in :c:type:`PyTypeSlot`. When setting :c:member:"
590+
"This flag is only used in :c:type:`PyType_Slot`. When setting :c:member:"
591591
"`~PyTypeObject.tp_members` during class creation, Python clears it and sets :"
592592
"c:member:`PyMemberDef.offset` to the offset from the ``PyObject`` struct."
593593
msgstr""
@@ -802,38 +802,38 @@ msgstr ""
802802

803803
#:../../c-api/structures.rst:696
804804
msgid""
805-
"Optional C function to set or delete the attribute, if omitted the attribute "
806-
"isreadonly."
805+
"Optional C function to set or delete the attribute. If ``NULL``, the "
806+
"attributeisread-only."
807807
msgstr""
808808

809-
#:../../c-api/structures.rst:700
809+
#:../../c-api/structures.rst:701
810810
msgid"optional docstring"
811811
msgstr"可選的文件字串"
812812

813-
#:../../c-api/structures.rst:704
813+
#:../../c-api/structures.rst:705
814814
msgid""
815815
"Optional function pointer, providing additional data for getter and setter."
816816
msgstr""
817817

818-
#:../../c-api/structures.rst:706
818+
#:../../c-api/structures.rst:709
819819
msgid""
820820
"The ``get`` function takes one :c:expr:`PyObject*` parameter (the instance) "
821-
"and a function pointer (the associated ``closure``)::"
821+
"and a function pointer (the associated ``closure``):"
822822
msgstr""
823823

824-
#:../../c-api/structures.rst:711
824+
#:../../c-api/structures.rst:712
825825
msgid""
826826
"It should return a new reference on success or ``NULL`` with a set exception "
827827
"on failure."
828828
msgstr""
829829

830-
#:../../c-api/structures.rst:714
830+
#:../../c-api/structures.rst:717
831831
msgid""
832832
"``set`` functions take two :c:expr:`PyObject*` parameters (the instance and "
833-
"the value to be set) and a function pointer (the associated ``closure``)::"
833+
"the value to be set) and a function pointer (the associated ``closure``):"
834834
msgstr""
835835

836-
#:../../c-api/structures.rst:719
836+
#:../../c-api/structures.rst:720
837837
msgid""
838838
"In case the attribute should be deleted the second parameter is ``NULL``. "
839839
"Should return ``0`` on success or ``-1`` with a set exception on failure."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp