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
#
6
6
# Translators:
7
- # Rafael Fontenelle <[email protected] >, 2024
7
+ # Rafael Fontenelle <[email protected] >, 2025
8
8
#
9
9
#, fuzzy
10
10
msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2024-12-20 14:50 +0000\n "
14
+ "POT-Creation-Date : 2025-01-10 14:49 +0000\n "
15
15
"PO-Revision-Date : 2024-05-11 00:32+0000\n "
16
- "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024 \n "
16
+ "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2025 \n "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
18
18
"MIME-Version : 1.0\n "
19
19
"Content-Type : text/plain; charset=UTF-8\n "
@@ -538,6 +538,15 @@ msgstr "从对象 *o* 中移除对象 *key* 的映射。失败时返回 ``-1``
538
538
539
539
#: ../../c-api/object.rst:398
540
540
msgid ""
541
+ "This is the same as :c:func:`PyObject_DelItem`, but *key* is specified as a "
542
+ ":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
543
+ ":c:expr:`PyObject*`."
544
+ msgstr ""
545
+ "这与 :c:func:`PyObject_DelItem` 相同,但 *key* 被指定为 :c:expr:`const char*` UTF-8 "
546
+ "编码的字节串,而不是 :c:expr:`PyObject*`。"
547
+
548
+ #: ../../c-api/object.rst:405
549
+ msgid ""
541
550
"This is equivalent to the Python expression ``dir(o)``, returning a "
542
551
"(possibly empty) list of strings appropriate for the object argument, or "
543
552
"``NULL`` if there was an error. If the argument is ``NULL``, this is like "
@@ -549,7 +558,7 @@ msgstr ""
549
558
"``NULL``,类似 Python 的 ``dir()``,则返回当前 locals 的名字;这时如果没有活动的执行框架,则返回 ``NULL``,但"
550
559
" :c:func:`PyErr_Occurred` 将返回 false。"
551
560
552
- #: ../../c-api/object.rst:407
561
+ #: ../../c-api/object.rst:414
553
562
msgid ""
554
563
"This is equivalent to the Python expression ``iter(o)``. It returns a new "
555
564
"iterator for the object argument, or the object itself if the object is "
@@ -560,7 +569,7 @@ msgstr ""
560
569
"``iter(o)``。为对象参数返回一个新的迭代器,如果该对象已经是一个迭代器,则返回对象本身。如果对象不能被迭代,会引发 "
561
570
":exc:`TypeError` ,并返回 ``NULL``。"
562
571
563
- #: ../../c-api/object.rst:415
572
+ #: ../../c-api/object.rst:422
564
573
msgid ""
565
574
"This is equivalent to the Python ``__iter__(self): return self`` method. It "
566
575
"is intended for :term:`iterator` types, to be used in the "
@@ -569,7 +578,7 @@ msgstr ""
569
578
"这等价于 Python ``__iter__(self): return self`` 方法。 它是针对 :term:`iterator` "
570
579
"类型设计的,将在 :c:member:`PyTypeObject.tp_iter` 槽位中使用。"
571
580
572
- #: ../../c-api/object.rst:421
581
+ #: ../../c-api/object.rst:428
573
582
msgid ""
574
583
"This is the equivalent to the Python expression ``aiter(o)``. Takes an "
575
584
":class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "
@@ -581,11 +590,11 @@ msgstr ""
581
590
":class:`AsyncIterator`。通常返回的是一个新迭代器,但如果参数是一个 "
582
591
":class:`AsyncIterator`,将返回其自身。如果该对象不能被迭代,会引发 :exc:`TypeError`,并返回 ``NULL``。"
583
592
584
- #: ../../c-api/object.rst:431
593
+ #: ../../c-api/object.rst:438
585
594
msgid "Get a pointer to subclass-specific data reserved for *cls*."
586
595
msgstr "获取一个指向为 *cls* 保留的子类专属数据的指针。"
587
596
588
- #: ../../c-api/object.rst:433
597
+ #: ../../c-api/object.rst:440
589
598
msgid ""
590
599
"The object *o* must be an instance of *cls*, and *cls* must have been "
591
600
"created using negative :c:member:`PyType_Spec.basicsize`. Python does not "
@@ -594,17 +603,17 @@ msgstr ""
594
603
"对象 *o* 必须为 *cls* 的实例,而 *cls* 必须使用负的 :c:member:`PyType_Spec.basicsize` 来创建。 "
595
604
"Python 不会检查这一点。"
596
605
597
- #: ../../c-api/object.rst:437
606
+ #: ../../c-api/object.rst:444
598
607
msgid "On error, set an exception and return ``NULL``."
599
608
msgstr "发生错误时,将设置异常并返回 ``NULL``。"
600
609
601
- #: ../../c-api/object.rst:443
610
+ #: ../../c-api/object.rst:450
602
611
msgid ""
603
612
"Return the size of the instance memory space reserved for *cls*, i.e. the "
604
613
"size of the memory :c:func:`PyObject_GetTypeData` returns."
605
614
msgstr "返回为 *cls* 保留的实例内存空间大小,即 :c:func:`PyObject_GetTypeData` 所返回的内存大小。"
606
615
607
- #: ../../c-api/object.rst:446
616
+ #: ../../c-api/object.rst:453
608
617
msgid ""
609
618
"This may be larger than requested using :c:member:`-PyType_Spec.basicsize "
610
619
"<PyType_Spec.basicsize>`; it is safe to use this larger size (e.g. with "
@@ -613,24 +622,24 @@ msgstr ""
613
622
"这可能会大于使用 :c:member:`-PyType_Spec.basicsize <PyType_Spec.basicsize>` "
614
623
"请求到的大小;可以安全地使用这个更大的值 (例如通过 :c:func:`!memset`)。"
615
624
616
- #: ../../c-api/object.rst:449
625
+ #: ../../c-api/object.rst:456
617
626
msgid ""
618
627
"The type *cls* **must** have been created using negative "
619
628
":c:member:`PyType_Spec.basicsize`. Python does not check this."
620
629
msgstr ""
621
630
"类型 *cls* **必须** 使用负的 :c:member:`PyType_Spec.basicsize` 来创建。 Python 不会检查这一点。"
622
631
623
- #: ../../c-api/object.rst:453
632
+ #: ../../c-api/object.rst:460
624
633
msgid "On error, set an exception and return a negative value."
625
634
msgstr "当失败时,将设置异常并返回一个负值。"
626
635
627
- #: ../../c-api/object.rst:459
636
+ #: ../../c-api/object.rst:466
628
637
msgid ""
629
638
"Get a pointer to per-item data for a class with "
630
639
":c:macro:`Py_TPFLAGS_ITEMS_AT_END`."
631
640
msgstr "使用 :c:macro:`Py_TPFLAGS_ITEMS_AT_END` 获取一个指向类的单独条目数据的指针。"
632
641
633
- #: ../../c-api/object.rst:462
642
+ #: ../../c-api/object.rst:469
634
643
msgid ""
635
644
"On error, set an exception and return ``NULL``. :py:exc:`TypeError` is "
636
645
"raised if *o* does not have :c:macro:`Py_TPFLAGS_ITEMS_AT_END` set."
0 commit comments