Skip to content

Commit dd26bd7

Browse files
sync with cpython 2996a2be
1 parent 614aef5 commit dd26bd7

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

c-api/object.po

Lines changed: 20 additions & 13 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-27 00:14+0000\n"
10+
"POT-Creation-Date: 2024-12-14 00:14+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -623,74 +623,81 @@ msgstr ""
623623

624624
#: ../../c-api/object.rst:514
625625
msgid ""
626+
"This is equivalent to the Python ``__iter__(self): return self`` method. It "
627+
"is intended for :term:`iterator` types, to be used in the :c:member:"
628+
"`PyTypeObject.tp_iter` slot."
629+
msgstr ""
630+
631+
#: ../../c-api/object.rst:520
632+
msgid ""
626633
"This is the equivalent to the Python expression ``aiter(o)``. Takes an :"
627634
"class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "
628635
"This is typically a new iterator but if the argument is an :class:"
629636
"`AsyncIterator`, this returns itself. Raises :exc:`TypeError` and returns "
630637
"``NULL`` if the object cannot be iterated."
631638
msgstr ""
632639

633-
#: ../../c-api/object.rst:524
640+
#: ../../c-api/object.rst:530
634641
msgid "Get a pointer to subclass-specific data reserved for *cls*."
635642
msgstr ""
636643

637-
#: ../../c-api/object.rst:526
644+
#: ../../c-api/object.rst:532
638645
msgid ""
639646
"The object *o* must be an instance of *cls*, and *cls* must have been "
640647
"created using negative :c:member:`PyType_Spec.basicsize`. Python does not "
641648
"check this."
642649
msgstr ""
643650

644-
#: ../../c-api/object.rst:530
651+
#: ../../c-api/object.rst:536
645652
msgid "On error, set an exception and return ``NULL``."
646653
msgstr ""
647654

648-
#: ../../c-api/object.rst:536
655+
#: ../../c-api/object.rst:542
649656
msgid ""
650657
"Return the size of the instance memory space reserved for *cls*, i.e. the "
651658
"size of the memory :c:func:`PyObject_GetTypeData` returns."
652659
msgstr ""
653660

654-
#: ../../c-api/object.rst:539
661+
#: ../../c-api/object.rst:545
655662
msgid ""
656663
"This may be larger than requested using :c:member:`-PyType_Spec.basicsize "
657664
"<PyType_Spec.basicsize>`; it is safe to use this larger size (e.g. with :c:"
658665
"func:`!memset`)."
659666
msgstr ""
660667

661-
#: ../../c-api/object.rst:542
668+
#: ../../c-api/object.rst:548
662669
msgid ""
663670
"The type *cls* **must** have been created using negative :c:member:"
664671
"`PyType_Spec.basicsize`. Python does not check this."
665672
msgstr ""
666673

667-
#: ../../c-api/object.rst:546
674+
#: ../../c-api/object.rst:552
668675
msgid "On error, set an exception and return a negative value."
669676
msgstr ""
670677

671-
#: ../../c-api/object.rst:552
678+
#: ../../c-api/object.rst:558
672679
msgid ""
673680
"Get a pointer to per-item data for a class with :c:macro:"
674681
"`Py_TPFLAGS_ITEMS_AT_END`."
675682
msgstr ""
676683

677-
#: ../../c-api/object.rst:555
684+
#: ../../c-api/object.rst:561
678685
msgid ""
679686
"On error, set an exception and return ``NULL``. :py:exc:`TypeError` is "
680687
"raised if *o* does not have :c:macro:`Py_TPFLAGS_ITEMS_AT_END` set."
681688
msgstr ""
682689

683-
#: ../../c-api/object.rst:563
690+
#: ../../c-api/object.rst:569
684691
msgid "Visit the managed dictionary of *obj*."
685692
msgstr ""
686693

687-
#: ../../c-api/object.rst:565 ../../c-api/object.rst:574
694+
#: ../../c-api/object.rst:571 ../../c-api/object.rst:580
688695
msgid ""
689696
"This function must only be called in a traverse function of the type which "
690697
"has the :c:macro:`Py_TPFLAGS_MANAGED_DICT` flag set."
691698
msgstr ""
692699

693-
#: ../../c-api/object.rst:572
700+
#: ../../c-api/object.rst:578
694701
msgid "Clear the managed dictionary of *obj*."
695702
msgstr ""
696703

library/http.cookies.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.13\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-09-03 11:11+0800\n"
9+
"POT-Creation-Date: 2024-12-14 00:14+0000\n"
1010
"PO-Revision-Date: 2016-11-19 00:31+0000\n"
1111
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -133,9 +133,9 @@ msgstr ""
133133
#: ../../library/http.cookies.rst:100
134134
msgid ""
135135
"Return a string representation suitable to be sent as HTTP headers. *attrs* "
136-
"and *header* are sent to each :class:`Morsel`'s :meth:`output` method. *sep* "
137-
"is used to join the headers together, and is by default the combination "
138-
"``'\\r\\n'`` (CRLF)."
136+
"and *header* are sent to each :class:`Morsel`'s :meth:`~Morsel.output` "
137+
"method. *sep* is used to join the headers together, and is by default the "
138+
"combination ``'\\r\\n'`` (CRLF)."
139139
msgstr ""
140140

141141
#: ../../library/http.cookies.rst:108

0 commit comments

Comments
 (0)