1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2024 , Python Software Foundation
2
+ # Copyright (C) 2001-2025 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
12
12
# Alpha Du <alphanow@gmail.com>, 2024
13
13
# 稀饭~~ <wangwhai@qq.com>, 2024
14
14
# Dai Xu <daixu61@hotmail.com>, 2024
15
- # Freesand Leo <yuqinju@163.com>, 2024
15
+ # Freesand Leo <yuqinju@163.com>, 2025
16
16
#
17
17
#, fuzzy
18
18
msgid ""
19
19
msgstr ""
20
20
"Project-Id-Version : Python 3.13\n "
21
21
"Report-Msgid-Bugs-To : \n "
22
- "POT-Creation-Date : 2024-12-27 14:16 +0000\n "
22
+ "POT-Creation-Date : 2025-01-10 14:17 +0000\n "
23
23
"PO-Revision-Date : 2021-06-28 00:49+0000\n "
24
- "Last-Translator : Freesand Leo <yuqinju@163.com>, 2024 \n "
24
+ "Last-Translator : Freesand Leo <yuqinju@163.com>, 2025 \n "
25
25
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
26
26
"MIME-Version : 1.0\n "
27
27
"Content-Type : text/plain; charset=UTF-8\n "
@@ -731,6 +731,15 @@ msgstr "从对象 *o* 中移除对象 *key* 的映射。失败时返回 ``-1``
731
731
732
732
#: ../../c-api/object.rst:498
733
733
msgid ""
734
+ "This is the same as :c:func:`PyObject_DelItem`, but *key* is specified as a "
735
+ ":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
736
+ ":c:expr:`PyObject*`."
737
+ msgstr ""
738
+ "这与 :c:func:`PyObject_DelItem` 相同,但 *key* 被指定为 :c:expr:`const char*` UTF-8 "
739
+ "编码的字节串,而不是 :c:expr:`PyObject*`。"
740
+
741
+ #: ../../c-api/object.rst:505
742
+ msgid ""
734
743
"This is equivalent to the Python expression ``dir(o)``, returning a "
735
744
"(possibly empty) list of strings appropriate for the object argument, or "
736
745
"``NULL`` if there was an error. If the argument is ``NULL``, this is like "
@@ -742,7 +751,7 @@ msgstr ""
742
751
"``NULL``,类似 Python 的 ``dir()``,则返回当前 locals 的名字;这时如果没有活动的执行框架,则返回 ``NULL``,但"
743
752
" :c:func:`PyErr_Occurred` 将返回 false。"
744
753
745
- #: ../../c-api/object.rst:507
754
+ #: ../../c-api/object.rst:514
746
755
msgid ""
747
756
"This is equivalent to the Python expression ``iter(o)``. It returns a new "
748
757
"iterator for the object argument, or the object itself if the object is "
@@ -753,7 +762,7 @@ msgstr ""
753
762
"``iter(o)``。为对象参数返回一个新的迭代器,如果该对象已经是一个迭代器,则返回对象本身。如果对象不能被迭代,会引发 "
754
763
":exc:`TypeError` ,并返回 ``NULL``。"
755
764
756
- #: ../../c-api/object.rst:515
765
+ #: ../../c-api/object.rst:522
757
766
msgid ""
758
767
"This is equivalent to the Python ``__iter__(self): return self`` method. It "
759
768
"is intended for :term:`iterator` types, to be used in the "
@@ -762,7 +771,7 @@ msgstr ""
762
771
"这等价于 Python ``__iter__(self): return self`` 方法。 它是针对 :term:`iterator` "
763
772
"类型设计的,将在 :c:member:`PyTypeObject.tp_iter` 槽位中使用。"
764
773
765
- #: ../../c-api/object.rst:521
774
+ #: ../../c-api/object.rst:528
766
775
msgid ""
767
776
"This is the equivalent to the Python expression ``aiter(o)``. Takes an "
768
777
":class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "
@@ -774,11 +783,11 @@ msgstr ""
774
783
":class:`AsyncIterator`。通常返回的是一个新迭代器,但如果参数是一个 "
775
784
":class:`AsyncIterator`,将返回其自身。如果该对象不能被迭代,会引发 :exc:`TypeError`,并返回 ``NULL``。"
776
785
777
- #: ../../c-api/object.rst:531
786
+ #: ../../c-api/object.rst:538
778
787
msgid "Get a pointer to subclass-specific data reserved for *cls*."
779
788
msgstr "获取一个指向为 *cls* 保留的子类专属数据的指针。"
780
789
781
- #: ../../c-api/object.rst:533
790
+ #: ../../c-api/object.rst:540
782
791
msgid ""
783
792
"The object *o* must be an instance of *cls*, and *cls* must have been "
784
793
"created using negative :c:member:`PyType_Spec.basicsize`. Python does not "
@@ -787,17 +796,17 @@ msgstr ""
787
796
"对象 *o* 必须为 *cls* 的实例,而 *cls* 必须使用负的 :c:member:`PyType_Spec.basicsize` 来创建。 "
788
797
"Python 不会检查这一点。"
789
798
790
- #: ../../c-api/object.rst:537
799
+ #: ../../c-api/object.rst:544
791
800
msgid "On error, set an exception and return ``NULL``."
792
801
msgstr "发生错误时,将设置异常并返回 ``NULL``。"
793
802
794
- #: ../../c-api/object.rst:543
803
+ #: ../../c-api/object.rst:550
795
804
msgid ""
796
805
"Return the size of the instance memory space reserved for *cls*, i.e. the "
797
806
"size of the memory :c:func:`PyObject_GetTypeData` returns."
798
807
msgstr "返回为 *cls* 保留的实例内存空间大小,即 :c:func:`PyObject_GetTypeData` 所返回的内存大小。"
799
808
800
- #: ../../c-api/object.rst:546
809
+ #: ../../c-api/object.rst:553
801
810
msgid ""
802
811
"This may be larger than requested using :c:member:`-PyType_Spec.basicsize "
803
812
"<PyType_Spec.basicsize>`; it is safe to use this larger size (e.g. with "
@@ -806,42 +815,42 @@ msgstr ""
806
815
"这可能会大于使用 :c:member:`-PyType_Spec.basicsize <PyType_Spec.basicsize>` "
807
816
"请求到的大小;可以安全地使用这个更大的值 (例如通过 :c:func:`!memset`)。"
808
817
809
- #: ../../c-api/object.rst:549
818
+ #: ../../c-api/object.rst:556
810
819
msgid ""
811
820
"The type *cls* **must** have been created using negative "
812
821
":c:member:`PyType_Spec.basicsize`. Python does not check this."
813
822
msgstr ""
814
823
"类型 *cls* **必须** 使用负的 :c:member:`PyType_Spec.basicsize` 来创建。 Python 不会检查这一点。"
815
824
816
- #: ../../c-api/object.rst:553
825
+ #: ../../c-api/object.rst:560
817
826
msgid "On error, set an exception and return a negative value."
818
827
msgstr "当失败时,将设置异常并返回一个负值。"
819
828
820
- #: ../../c-api/object.rst:559
829
+ #: ../../c-api/object.rst:566
821
830
msgid ""
822
831
"Get a pointer to per-item data for a class with "
823
832
":c:macro:`Py_TPFLAGS_ITEMS_AT_END`."
824
833
msgstr "使用 :c:macro:`Py_TPFLAGS_ITEMS_AT_END` 获取一个指向类的单独条目数据的指针。"
825
834
826
- #: ../../c-api/object.rst:562
835
+ #: ../../c-api/object.rst:569
827
836
msgid ""
828
837
"On error, set an exception and return ``NULL``. :py:exc:`TypeError` is "
829
838
"raised if *o* does not have :c:macro:`Py_TPFLAGS_ITEMS_AT_END` set."
830
839
msgstr ""
831
840
"出错时,将设置异常并返回 ``NULL``。 如果 *o* 没有设置 :c:macro:`Py_TPFLAGS_ITEMS_AT_END` 则会引发 "
832
841
":py:exc:`TypeError`。"
833
842
834
- #: ../../c-api/object.rst:570
843
+ #: ../../c-api/object.rst:577
835
844
msgid "Visit the managed dictionary of *obj*."
836
845
msgstr "访问被管理的 *obj* 的字典。"
837
846
838
- #: ../../c-api/object.rst:572 ../../c-api/object.rst:581
847
+ #: ../../c-api/object.rst:579 ../../c-api/object.rst:588
839
848
msgid ""
840
849
"This function must only be called in a traverse function of the type which "
841
850
"has the :c:macro:`Py_TPFLAGS_MANAGED_DICT` flag set."
842
851
msgstr "此函数必须只在设置了 :c:macro:`Py_TPFLAGS_MANAGED_DICT` 旗标的类型的遍历函数中被调用。"
843
852
844
- #: ../../c-api/object.rst:579
853
+ #: ../../c-api/object.rst:586
845
854
msgid "Clear the managed dictionary of *obj*."
846
855
msgstr "清空被管理的 *obj* 的字典。."
847
856
0 commit comments