Skip to content

Commit 51649f2

Browse files
[po] auto sync
1 parent 9828914 commit 51649f2

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

.stat.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.40%", "updated_at": "2025-04-22T14:55:33Z"}
1+
{"translation": "81.41%", "updated_at": "2025-04-22T15:55:52Z"}

whatsnew/3.0.po

+24-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.13\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2025-01-17 14:16+0000\n"
18+
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
1919
"PO-Revision-Date: 2021-06-29 13:04+0000\n"
2020
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -115,6 +115,20 @@ msgid ""
115115
"Old: print (x, y) # prints repr((x, y))\n"
116116
"New: print((x, y)) # Not the same as print(x, y)!"
117117
msgstr ""
118+
"旧: print \"The answer is\", 2*2\n"
119+
"新: print(\"The answer is\", 2*2)\n"
120+
"\n"
121+
"旧: print x, # 末尾逗号将抑制换行符\n"
122+
"新: print(x, end=\" \") # 添加一个空格代替换行符\n"
123+
"\n"
124+
"旧: print # 打印一个换行符\n"
125+
"新: print() # 你必须调用函数!\n"
126+
"\n"
127+
"旧: print >>sys.stderr, \"fatal error\"\n"
128+
"新: print(\"fatal error\", file=sys.stderr)\n"
129+
"\n"
130+
"旧: print (x, y) # 打印 repr((x, y))\n"
131+
"新: print((x, y)) # 不同于 print(x, y)!"
118132

119133
#: ../../whatsnew/3.0.rst:116
120134
msgid "You can also customize the separator between items, e.g.::"
@@ -187,6 +201,8 @@ msgid ""
187201
"Also, the :meth:`!dict.iterkeys`, :meth:`!dict.iteritems` and "
188202
":meth:`!dict.itervalues` methods are no longer supported."
189203
msgstr ""
204+
"此外,:meth:`!dict.iterkeys`, :meth:`!dict.iteritems` 和 "
205+
":meth:`!dict.itervalues` 等方法将不再被支持。"
190206

191207
#: ../../whatsnew/3.0.rst:156
192208
msgid ""
@@ -222,6 +238,7 @@ msgid ""
222238
":func:`range` now behaves like :func:`!xrange` used to behave, except it "
223239
"works with values of arbitrary size. The latter no longer exists."
224240
msgstr ""
241+
"现在 :func:`range` 的行为与过去 :func:`!xrange` 的行为类似,区别在于它能处理任意大小的值。 后者已不复存在。"
225242

226243
#: ../../whatsnew/3.0.rst:177
227244
msgid ":func:`zip` now returns an iterator."
@@ -258,6 +275,8 @@ msgid ""
258275
"providing a comparison function. Use the *key* argument instead. N.B. the "
259276
"*key* and *reverse* arguments are now \"keyword-only\"."
260277
msgstr ""
278+
":meth:`sorted` 和 :meth:`list.sort` 不再接受提供比较函数的 *cmp* 参数。 请改用 *key* 参数。 注意 "
279+
"*key* 和 *reverse* 参数现在都是“仅限关键字”参数。"
261280

262281
#: ../../whatsnew/3.0.rst:200
263282
msgid ""
@@ -268,6 +287,10 @@ msgid ""
268287
"really need the :func:`!cmp` functionality, you could use the expression "
269288
"``(a > b) - (a < b)`` as the equivalent for ``cmp(a, b)``.)"
270289
msgstr ""
290+
":func:`!cmp` 函数应视为已不复存在,而 :meth:`!__cmp__` 特殊方法再不再受支持。 请使用 "
291+
":meth:`~object.__lt__` 进行排序,并根据需要使用 :meth:`~object.__eq__` 与 "
292+
":meth:`~object.__hash__`,以及其他富比较操作。 (如果你确实需要 :func:`!cmp` 的功能,你可以使用表达式 ``(a "
293+
"> b) - (a < b)`` 作为 ``cmp(a, b)`` 的等价形式。)"
271294

272295
#: ../../whatsnew/3.0.rst:207
273296
msgid "Integers"

whatsnew/3.4.po

+12-1
Original file line numberDiff line numberDiff line change
@@ -4437,6 +4437,8 @@ msgid ""
44374437
" the disallowed command forms didn't make any sense and are unlikely to be "
44384438
"in use."
44394439
msgstr ""
4440+
"现在 :mod:`unittest` 会使用 :mod:`argparse` 执行命令行解析。 "
4441+
"有些过去可用的不合法命令形式将不再被允许;理论上说这不会导致向下兼容性问题因为这些不允许的命令形式没有任何意义也不大可能会被使用。"
44404442

44414443
#: ../../whatsnew/3.4.rst:2430
44424444
msgid ""
@@ -4447,12 +4449,16 @@ msgid ""
44474449
"the input type, so if your code was depending on the return value being, "
44484450
"say, a ``bytearray``, you will need to change your code."
44494451
msgstr ""
4452+
"现在当要匹配的对象类型为 :term:`bytes-like object` 时 :func:`re.split`, "
4453+
":func:`re.findall` 和 :func:`re.sub` 等函数,以及 ``match`` 对象的 "
4454+
":meth:`~re.match.group` 和 :meth:`~re.match.groups` 方法将总是返回 *bytes* 对象。 "
4455+
"在之前版本中返回类型将与输入类型相匹配,因此如果你的代码依赖于返回值必须为 ``bytearray`` 之类的行为,你将需要修改你的代码。"
44504456

44514457
#: ../../whatsnew/3.4.rst:2437
44524458
msgid ""
44534459
":mod:`!audioop` functions now raise an error immediately if passed string "
44544460
"input, instead of failing randomly later on (:issue:`16685`)."
4455-
msgstr ""
4461+
msgstr "现在当输入字符串时 :mod:`!audioop` 的函数会立即引发错误,而不是稍后随机出错 (:issue:`16685`)。"
44564462

44574463
#: ../../whatsnew/3.4.rst:2440
44584464
msgid ""
@@ -4462,13 +4468,18 @@ msgid ""
44624468
"add this keyword, with the appropriate value, to any "
44634469
":class:`~html.parser.HTMLParser` calls in your code (:issue:`13633`)."
44644470
msgstr ""
4471+
"新增的传给 :class:`~html.parser.HTMLParser` 的 *convert_charrefs* 参数目前默认为 "
4472+
"``False`` 以保持向下兼容,但最终将修改成默认为 ``True``。 建议你在你的代码中为所有 "
4473+
":class:`~html.parser.HTMLParser` 调用添加此关键字,并设置适当的值 (:issue:`13633`)。"
44654474

44664475
#: ../../whatsnew/3.4.rst:2446
44674476
msgid ""
44684477
"Since the *digestmod* argument to the :func:`hmac.new` function will in the "
44694478
"future have no default, all calls to :func:`hmac.new` should be changed to "
44704479
"explicitly specify a *digestmod* (:issue:`17276`)."
44714480
msgstr ""
4481+
"由于传给 :func:`hmac.new` 函数的 *digestmod* 参数在未来将不设默认值,所有对 :func:`hmac.new` "
4482+
"的调用都应当修改为显式地指定 *digestmod* (:issue:`17276`)。"
44724483

44734484
#: ../../whatsnew/3.4.rst:2450
44744485
msgid ""

0 commit comments

Comments
 (0)