8000 [po] auto sync · python/python-docs-zh-cn@c2f540b · GitHub
[go: up one dir, main page]

Skip to content

Commit c2f540b

Browse files
[po] auto sync
1 parent ac13bc9 commit c2f540b

File tree

11 files changed

+13963
-13777
lines changed

11 files changed

+13963
-13777
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "80.80%", "updated_at": "2025-01-09T10:55:35Z"}
1+
{"translation": "80.74%", "updated_at": "2025-01-10T14:55:52Z"}

c-api/arg.po

Lines changed: 178 additions & 165 deletions
Large diffs are not rendered by default.

c-api/object.po

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2024, Python Software Foundation
2+
# Copyright (C) 2001-2025, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -12,16 +12,16 @@
1212
# Alpha Du <alphanow@gmail.com>, 2024
1313
# 稀饭~~ <wangwhai@qq.com>, 2024
1414
# Dai Xu <daixu61@hotmail.com>, 2024
15-
# Freesand Leo <yuqinju@163.com>, 2024
15+
# Freesand Leo <yuqinju@163.com>, 2025
1616
#
1717
#, fuzzy
1818
msgid ""
1919
msgstr ""
2020
"Project-Id-Version: Python 3.13\n"
2121
"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"
2323
"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"
2525
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2626
"MIME-Version: 1.0\n"
2727
"Content-Type: text/plain; charset=UTF-8\n"
@@ -731,6 +731,15 @@ msgstr "从对象 *o* 中移除对象 *key* 的映射。失败时返回 ``-1``
731731

732732
#: ../../c-api/object.rst:498
733733
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 ""
734743
"This is equivalent to the Python expression ``dir(o)``, returning a "
735744
"(possibly empty) list of strings appropriate for the object argument, or "
736745
"``NULL`` if there was an error. If the argument is ``NULL``, this is like "
@@ -742,7 +751,7 @@ msgstr ""
742751
"``NULL``,类似 Python 的 ``dir()``,则返回当前 locals 的名字;这时如果没有活动的执行框架,则返回 ``NULL``,但"
743752
" :c:func:`PyErr_Occurred` 将返回 false。"
744753

745-
#: ../../c-api/object.rst:507
754+
#: ../../c-api/object.rst:514
746755
msgid ""
747756
"This is equivalent to the Python expression ``iter(o)``. It returns a new "
748757
"iterator for the object argument, or the object itself if the object is "
@@ -753,7 +762,7 @@ msgstr ""
753762
"``iter(o)``。为对象参数返回一个新的迭代器,如果该对象已经是一个迭代器,则返回对象本身。如果对象不能被迭代,会引发 "
754763
":exc:`TypeError` ,并返回 ``NULL``。"
755764

756-
#: ../../c-api/object.rst:515
765+
#: ../../c-api/object.rst:522
757766
msgid ""
758767
"This is equivalent to the Python ``__iter__(self): return self`` method. It "
759768
"is intended for :term:`iterator` types, to be used in the "
@@ -762,7 +771,7 @@ msgstr ""
762771
"这等价于 Python ``__iter__(self): return self`` 方法。 它是针对 :term:`iterator` "
763772
"类型设计的,将在 :c:member:`PyTypeObject.tp_iter` 槽位中使用。"
764773

765-
#: ../../c-api/object.rst:521
774+
#: ../../c-api/object.rst:528
766775
msgid ""
767776
"This is the equivalent to the Python expression ``aiter(o)``. Takes an "
768777
":class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "
@@ -774,11 +783,11 @@ msgstr ""
774783
":class:`AsyncIterator`。通常返回的是一个新迭代器,但如果参数是一个 "
775784
":class:`AsyncIterator`,将返回其自身。如果该对象不能被迭代,会引发 :exc:`TypeError`,并返回 ``NULL``。"
776785

777-
#: ../../c-api/object.rst:531
786+
#: ../../c-api/object.rst:538
778787
msgid "Get a pointer to subclass-specific data reserved for *cls*."
779788
msgstr "获取一个指向为 *cls* 保留的子类专属数据的指针。"
780789

781-
#: ../../c-api/object.rst:533
790+
#: ../../c-api/object.rst:540
782791
msgid ""
783792
"The object *o* must be an instance of *cls*, and *cls* must have been "
784793
"created using negative :c:member:`PyType_Spec.basicsize`. Python does not "
@@ -787,17 +796,17 @@ msgstr ""
787796
"对象 *o* 必须为 *cls* 的实例,而 *cls* 必须使用负的 :c:member:`PyType_Spec.basicsize` 来创建。 "
788797
"Python 不会检查这一点。"
789798

790-
#: ../../c-api/object.rst:537
799+
#: ../../c-api/object.rst:544
791800
msgid "On error, set an exception and return ``NULL``."
792801
msgstr "发生错误时,将设置异常并返回 ``NULL``。"
793802

794-
#: ../../c-api/object.rst:543
803+
#: ../../c-api/object.rst:550
795804
msgid ""
796805
"Return the size of the instance memory space reserved for *cls*, i.e. the "
797806
"size of the memory :c:func:`PyObject_GetTypeData` returns."
798807
msgstr "返回为 *cls* 保留的实例内存空间大小,即 :c:func:`PyObject_GetTypeData` 所返回的内存大小。"
799808

800-
#: ../../c-api/object.rst:546
809+
#: ../../c-api/object.rst:553
801810
msgid ""
802811
"This may be larger than requested using :c:member:`-PyType_Spec.basicsize "
803812
"<PyType_Spec.basicsize>`; it is safe to use this larger size (e.g. with "
@@ -806,42 +815,42 @@ msgstr ""
806815
"这可能会大于使用 :c:member:`-PyType_Spec.basicsize <PyType_Spec.basicsize>` "
807816
"请求到的大小;可以安全地使用这个更大的值 (例如通过 :c:func:`!memset`)。"
808817

809-
#: ../../c-api/object.rst:549
818+
#: ../../c-api/object.rst:556
810819
msgid ""
811820
"The type *cls* **must** have been created using negative "
812821
":c:member:`PyType_Spec.basicsize`. Python does not check this."
813822
msgstr ""
814823
"类型 *cls* **必须** 使用负的 :c:member:`PyType_Spec.basicsize` 来创建。 Python 不会检查这一点。"
815824

816-
#: ../../c-api/object.rst:553
825+
#: ../../c-api/object.rst:560
817826
msgid "On error, set an exception and return a negative value."
818827
msgstr "当失败时,将设置异常并返回一个负值。"
819828

820-
#: ../../c-api/object.rst:559
829+
#: ../../c-api/object.rst:566
821830
msgid ""
822831
"Get a pointer to per-item data for a class with "
823832
":c:macro:`Py_TPFLAGS_ITEMS_AT_END`."
824833
msgstr "使用 :c:macro:`Py_TPFLAGS_ITEMS_AT_END` 获取一个指向类的单独条目数据的指针。"
825834

826-
#: ../../c-api/object.rst:562
835+
#: ../../c-api/object.rst:569
827836
msgid ""
828837
"On error, set an exception and return ``NULL``. :py:exc:`TypeError` is "
829838
"raised if *o* does not have :c:macro:`Py_TPFLAGS_ITEMS_AT_END` set."
830839
msgstr ""
831840
"出错时,将设置异常并返回 ``NULL``。 如果 *o* 没有设置 :c:macro:`Py_TPFLAGS_ITEMS_AT_END` 则会引发 "
832841
":py:exc:`TypeError`。"
833842

834-
#: ../../c-api/object.rst:570
843+
#: ../../c-api/object.rst:577
835844
msgid "Visit the managed dictionary of *obj*."
836845
msgstr "访问被管理的 *obj* 的字典。"
837846

838-
#: ../../c-api/object.rst:572 ../../c-api/object.rst:581
847+
#: ../../c-api/object.rst:579 ../../c-api/object.rst:588
839848
msgid ""
840849
"This function must only be called in a traverse function of the type which "
841850
"has the :c:macro:`Py_TPFLAGS_MANAGED_DICT` flag set."
842851
msgstr "此函数必须只在设置了 :c:macro:`Py_TPFLAGS_MANAGED_DICT` 旗标的类型的遍历函数中被调用。"
843852

844-
#: ../../c-api/object.rst:579
853+
#: ../../c-api/object.rst:586
845854
msgid "Clear the managed dictionary of *obj*."
846855
msgstr "清空被管理的 *obj* 的字典。."
847856

0 commit comments

Comments
 (0)
0