Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11b1e52

Browse files
[po] auto sync
1 parent 44926e0 commit 11b1e52

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "95.07%", "updated_at": "2024-05-30T02:49:32Z"}
1+
{"translation": "95.08%", "updated_at": "2024-05-30T15:47:07Z"}

whatsnew/2.1.po

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <[email protected]>, 2024
8-
# Unknownuserfrommars, 2024
98
# Freesand Leo <[email protected]>, 2024
9+
# Unknownuserfrommars, 2024
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2024-05-24 14:49+0000\n"
1717
"PO-Revision-Date: 2024-05-11 00:34+0000\n"
18-
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
18+
"Last-Translator: Unknownuserfrommars, 2024\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"
@@ -452,6 +452,8 @@ msgid ""
452452
":mod:`!regex` module and not want to spare the time to convert it to use the"
453453
" :mod:`re` module right now. The warning can be suppressed by calling ::"
454454
msgstr ""
455+
"可以添加过滤器来禁用某些警告;可以将正则表达式模式应用于消息或模块名称,以抑制警告。例如,你可能有一个使用 :mod:`!regex` "
456+
"模块的程序,并且暂时不想花时间将其转换为使用 :mod:`re` 模块。可以通过调用以下代码来抑制警告:"
455457

456458
#: ../../whatsnew/2.1.rst:275
457459
msgid ""
@@ -464,6 +466,9 @@ msgid ""
464466
"program to stop (unless the exceptions are caught in the usual way, of "
465467
"course)."
466468
msgstr ""
469+
"这添加了一个过滤器,该过滤器仅适用于在 :mod:`__main__` 模块中触发的 :class:`DeprecationWarning` "
470+
"类警告,并应用一个正则表达式来仅匹配有关 :mod:`!regex` "
471+
"模块已被弃用的消息,这将导致忽略此类警告。警告还可以仅打印一次,每次执行违规代码时打印,或者转换为异常,从而导致程序停止(当然,除非以常规方式捕获这些异常)。"
467472

468473
#: ../../whatsnew/2.1.rst:283
469474
msgid ""
@@ -566,7 +571,7 @@ msgstr "PEP 205: 弱引用"
566571
msgid ""
567572
"Weak references, available through the :mod:`weakref` module, are a minor "
568573
"but useful new data type in the Python programmer's toolbox."
569-
msgstr ""
574+
msgstr "弱引用,通过 :mod:`weakref` 模块提供,是 Python 程序员工具箱中一种较小但有用的新数据类型。"
570575

571576
#: ../../whatsnew/2.1.rst:347
572577
msgid ""
@@ -594,6 +599,8 @@ msgid ""
594599
"object, or a data structure that takes up a lot of memory, this can be a "
595600
"problem."
596601
msgstr ""
602+
"这个版本适用于诸如整数之类的简单对象,但它有一个副作用;``_cache`` 字典持有返回值的引用,因此这些值在 Python "
603+
"进程退出并清理之前永远不会被释放。对于整数,这不是很明显,但如果 :func:`!f` 返回一个对象或占用大量内存的数据结构,这可能会成为一个问题。"
597604

598605
#: ../../whatsnew/2.1.rst:374
599606
msgid ""

0 commit comments

Comments
 (0)