8000 sync with cpython b2bacbbe · python/python-docs-zh-tw@a04fbb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a04fbb1

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython b2bacbbe
1 parent 70a2fc0 commit a04fbb1

File tree

3 files changed

+411
-342
lines changed

3 files changed

+411
-342
lines changed

c-api/object.po

Lines changed: 23 additions & 16 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-12-29 11:18+0000\n"
10+
"POT-Creation-Date: 2025-01-05 00:15+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-"
@@ -606,6 +606,13 @@ msgstr ""
606606

607607
#: ../../c-api/object.rst:498
608608
msgid ""
609+
"This is the same as :c:func:`PyObject_DelItem`, but *key* is specified as a :"
610+
"c:expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
611+
"`PyObject*`."
612+
msgstr ""
613+
614+
#: ../../c-api/object.rst:505
615+
msgid ""
609616
"This is equivalent to the Python expression ``dir(o)``, returning a "
610617
"(possibly empty) list of strings appropriate for the object argument, or "
611618
"``NULL`` if there was an error. If the argument is ``NULL``, this is like "
@@ -614,22 +621,22 @@ msgid ""
614621
"`PyErr_Occurred` will return false."
615622
msgstr ""
616623

617-
#: ../../c-api/object.rst:507
624+
#: ../../c-api/object.rst:514
618625
msgid ""
619626
"This is equivalent to the Python expression ``iter(o)``. It returns a new "
620627
"iterator for the object argument, or the object itself if the object is "
621628
"already an iterator. Raises :exc:`TypeError` and returns ``NULL`` if the "
622629
"object cannot be iterated."
623630
msgstr ""
624631

625-
#: ../../c-api/object.rst:515
632+
#: ../../c-api/object.rst:522
626633
msgid ""
627634
"This is equivalent to the Python ``__iter__(self): return self`` method. It "
628635
"is intended for :term:`iterator` types, to be used in the :c:member:"
629636
"`PyTypeObject.tp_iter` slot."
630637
msgstr ""
631638

632-
#: ../../c-api/object.rst:521
639+
#: ../../c-api/object.rst:528
633640
msgid ""
634641
"This is the equivalent to the Python expression ``aiter(o)``. Takes an :"
635642
"class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "
@@ -638,67 +645,67 @@ msgid ""
638645
"``NULL`` if the object cannot be iterated."
639646
msgstr ""
640647

641-
#: ../../c-api/object.rst:531
648+
#: ../../c-api/object.rst:538
642649
msgid "Get a pointer to subclass-specific data reserved for *cls*."
643650
msgstr ""
644651

645-
#: ../../c-api/object.rst:533
652+
#: ../../c-api/object.rst:540
646653
msgid ""
647654
"The object *o* must be an instance of *cls*, and *cls* must have been "
648655
"created using negative :c:member:`PyType_Spec.basicsize`. Python does not "
649656
"check this."
650657
msgstr ""
651658

652-
#: ../../c-api/object.rst:537
659+
#: ../../c-api/object.rst:544
653660
msgid "On error, set an exception and return ``NULL``."
654661
msgstr ""
655662

656-
#: ../../c-api/object.rst:543
663+
#: ../../c-api/object.rst:550
657664
msgid ""
658665
"Return the size of the instance memory space reserved for *cls*, i.e. the "
659666
"size of the memory :c:func:`PyObject_GetTypeData` returns."
660667
msgstr ""
661668

662-
#: ../../c-api/object.rst:546
669+
#: ../../c-api/object.rst:553
663670
msgid ""
664671
"This may be larger than requested using :c:member:`-PyType_Spec.basicsize "
665672
"<PyType_Spec.basicsize>`; it is safe to use this larger size (e.g. with :c:"
666673
"func:`!memset`)."
667674
msgstr ""
668675

669-
#: ../../c-api/object.rst:549
676+
#: ../../c-api/object.rst:556
670677
msgid ""
671678
"The type *cls* **must** have been created using negative :c:member:"
672679
"`PyType_Spec.basicsize`. Python does not check this."
673680
msgstr ""
674681

675-
#: ../../c-api/object.rst:553
682+
#: ../../c-api/object.rst:560
676683
msgid "On error, set an exception and return a negative value."
677684
msgstr ""
678685

679-
#: ../../c-api/object.rst:559
686+
#: ../../c-api/object.rst:566
680687
msgid ""
681688
"Get a pointer to per-item data for a class with :c:macro:"
682689
"`Py_TPFLAGS_ITEMS_AT_END`."
683690
msgstr ""
684691

685-
#: ../../c-api/object.rst:562
692+
#: ../../c-api/object.rst:569
686693
msgid ""
687694
"On error, set an exception and return ``NULL``. :py:exc:`TypeError` is "
688695
"raised if *o* does not have :c:macro:`Py_TPFLAGS_ITEMS_AT_END` set."
689696
msgstr ""
690697

691-
#: ../../c-api/object.rst:570
698+
#: ../../c-api/object.rst:577
692699
msgid "Visit the managed dictionary of *obj*."
693700
msgstr ""
694701

695-
#: ../../c-api/object.rst:572 ../../c-api/object.rst:581
702+
#: ../../c-api/object.rst:579 ../../c-api/object.rst:588
696703
msgid ""
697704
"This function must only be called in a traverse function of the type which "
698705
"has the :c:macro:`Py_TPFLAGS_MANAGED_DICT` flag set."
699706
msgstr ""
700707

701-
#: ../../c-api/object.rst:579
708+
#: ../../c-api/object.rst:586
702709
msgid "Clear the managed dictionary of *obj*."
703710
msgstr ""
704711

0 commit comments

Comments
 (0)
0