Skip to content

Commit b0bed1d

Browse files
[po] auto sync
1 parent e40ac97 commit b0bed1d

6 files changed

Lines changed: 14224 additions & 14163 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "98.68%", "updated_at": "2026-03-27T15:29:55Z"}
1+
{"translation": "98.70%", "updated_at": "2026-03-27T16:31:29Z"}

library/asyncio-dev.po

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2026-03-25 14:54+0000\n"
16+
"POT-Creation-Date: 2026-03-27 14:44+0000\n"
1717
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1818
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2026\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -480,11 +480,11 @@ msgid ""
480480
"Writing correct and efficient asyncio code requires awareness of certain "
481481
"pitfalls. This section outlines essential best practices that can save you "
482482
"hours of debugging."
483-
msgstr ""
483+
msgstr "要编写正确且高效的 asyncio 代码就必须注意某些陷阱。 本节概述了可为您节省大量调试时间的关键最佳实践。"
484484

485485
#: ../../library/asyncio-dev.rst:261
486486
msgid "Close asynchronous generators explicitly"
487-
msgstr ""
487+
msgstr "显式地关闭异步生成器"
488488

489489
#: ../../library/asyncio-dev.rst:263
490490
msgid ""
@@ -662,6 +662,19 @@ msgid ""
662662
" print(runner.run(anext(agen)))\n"
663663
" del agen"
664664
msgstr ""
665+
"import asyncio\n"
666+
"\n"
667+
"async def agenfn():\n"
668+
" try:\n"
669+
" yield 10\n"
670+
" finally:\n"
671+
" await asyncio.sleep(0)\n"
672+
"\n"
673+
"\n"
674+
"with asyncio.Runner() as runner:\n"
675+
" agen = agenfn()\n"
676+
" print(runner.run(anext(agen)))\n"
677+
" del agen"
665678

666679
#: ../../library/asyncio-dev.rst:395
667680
msgid ""
@@ -673,10 +686,17 @@ msgid ""
673686
" ^^^^\n"
674687
"RuntimeError: async generator ignored GeneratorExit"
675688
msgstr ""
689+
"10\n"
690+
"Exception ignored while closing generator <async_generator object agenfn at 0x000002F71CD10D70>:\n"
691+
"Traceback (most recent call last):\n"
692+
" File \"example.py\", line 13, in <module>\n"
693+
" del agen\n"
694+
" ^^^^\n"
695+
"RuntimeError: async generator ignored GeneratorExit"
676696

677697
#: ../../library/asyncio-dev.rst:403
678698
msgid "This example can be fixed as follows::"
679-
msgstr ""
699+
msgstr "该示例可用以下方式修复::"
680700

681701
#: ../../library/asyncio-dev.rst:405
682702
msgid ""
@@ -695,17 +715,33 @@ msgid ""
695715
"\n"
696716
"asyncio.run(main())"
697717
msgstr ""
718+
"import asyncio\n"
719+
"\n"
720+
"async def agenfn():\n"
721+
" try:\n"
722+
" yield 10\n"
723+
" finally:\n"
724+
" await asyncio.sleep(0)\n"
725+
"\n"
726+
"async def main():\n"
727+
" agen = agenfn()\n"
728+
" print(await anext(agen))\n"
729+
" del agen\n"
730+
"\n"
731+
"asyncio.run(main())"
698732

699733
#: ../../library/asyncio-dev.rst:422
700734
msgid "Avoid concurrent iteration and closure of the same generator"
701-
msgstr ""
735+
msgstr "避免同一迭代器的并发迭代和闭包"
702736

703737
#: ../../library/asyncio-dev.rst:424
704738
msgid ""
705739
"Async generators may be reentered while another :meth:`~agen.__anext__` / "
706740
":meth:`~agen.athrow` / :meth:`~agen.aclose` call is in progress. This may "
707741
"lead to an inconsistent state of the async generator and can cause errors."
708742
msgstr ""
743+
"异步生成器可以在其他 :meth:`~agen.__anext__` / :meth:`~agen.athrow` / "
744+
":meth:`~agen.aclose` 调用正在进行时重新进入。 这可能导致异步生成器状态不一致并造成错误。"
709745

710746
#: ../../library/asyncio-dev.rst:429
711747
msgid "Let's consider the following example::"

library/asyncio-task.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2026-03-23 14:50+0000\n"
16+
"POT-Creation-Date: 2026-03-27 14:44+0000\n"
1717
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1818
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2026\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -25,7 +25,7 @@ msgstr ""
2525

2626
#: ../../library/asyncio-task.rst:6
2727
msgid "Coroutines and tasks"
28-
msgstr ""
28+
msgstr "协程与任务"
2929

3030
#: ../../library/asyncio-task.rst:8
3131
msgid ""
@@ -454,7 +454,7 @@ msgstr "一个很好的返回 Future 对象的低层级函数的示例是 :meth:
454454

455455
#: ../../library/asyncio-task.rst:235
456456
msgid "Creating tasks"
457-
msgstr ""
457+
msgstr "创建任务"
458458

459459
#: ../../library/asyncio-task.rst:237
460460
msgid "**Source code:** :source:`Lib/asyncio/tasks.py`"
@@ -561,7 +561,7 @@ msgstr "通过传递所有的 *kwargs* 添加了 *eager_start* 形参。"
561561

562562
#: ../../library/asyncio-task.rst:304
563563
msgid "Task cancellation"
564-
msgstr ""
564+
msgstr "任务取消"
565565

566566
#: ../../library/asyncio-task.rst:306
567567
msgid ""

library/unittest.mock-examples.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8-
# Freesand Leo <yuqinju@163.com>, 2025
98
# 99 <wh2099@pm.me>, 2026
9+
# Freesand Leo <yuqinju@163.com>, 2026
1010
#
1111
#, fuzzy
1212
msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2026-03-23 14:50+0000\n"
16+
"POT-Creation-Date: 2026-03-27 14:44+0000\n"
1717
"PO-Revision-Date: 2025-09-16 00:02+0000\n"
18-
"Last-Translator: 99 <wh2099@pm.me>, 2026\n"
18+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2026\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -33,7 +33,7 @@ msgstr "使用 mock"
3333

3434
#: ../../library/unittest.mock-examples.rst:30
3535
msgid "Mock patching methods"
36-
msgstr ""
36+
msgstr "模拟补丁方法"
3737

3838
#: ../../library/unittest.mock-examples.rst:32
3939
msgid "Common uses for :class:`Mock` objects include:"
@@ -88,7 +88,7 @@ msgstr "在如下的测试示例中,验证对于 ``ProductionClass().method``
8888

8989
#: ../../library/unittest.mock-examples.rst:76
9090
msgid "Mock for method calls on an object"
91-
msgstr ""
91+
msgstr "模拟在对象上的方法调用"
9292

9393
#: ../../library/unittest.mock-examples.rst:78
9494
msgid ""

reference/datamodel.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2026-03-25 14:54+0000\n"
16+
"POT-Creation-Date: 2026-03-27 14:44+0000\n"
1717
"PO-Revision-Date: 2025-09-16 00:02+0000\n"
1818
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2026\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -483,6 +483,8 @@ msgid ""
483483
":dfn:`characters`, or more formally, *Unicode code points*. All the code "
484484
"points in the range ``0`` to ``0x10FFFF`` can be represented in a string."
485485
msgstr ""
486+
"字符串 (:class:`str`) 是一种序列,其元素值代表 :dfn:`字符`,或者更正式的说法是 *Unicode 码位*。 在 ``0`` 到 "
487+
"``0x10FFFF`` 范围内的所有码位均可被用于字符串。"
486488

487489
#: ../../reference/datamodel.rst:370
488490
msgid ""

0 commit comments

Comments
 (0)