@@ -4377,6 +4377,8 @@ msgid ""
4377
4377
"regular keyword arguments, instead of before. Hopefully no one wrote any "
4378
4378
"code that depends on the previous buggy behavior (:issue:`16967`)."
4379
4379
msgstr ""
4380
+ "现在仅限关键字参数的默认值将在常规关键字参数的默认值 *之后* 被求值,而非之前。 希望没有人写过任何依赖于之前的有缺陷行为的代码 "
4381
+ "(:issue:`16967`)。"
4380
4382
4381
4383
#: ../../whatsnew/3.4.rst:2402
4382
4384
msgid ""
@@ -4385,13 +4387,18 @@ msgid ""
4385
4387
"perpetually alive (for example, database connections kept in thread-local "
4386
4388
"storage). (:issue:`17094`.)"
4387
4389
msgstr ""
4390
+ "现在陈旧的线程状态将在 :func:`~os.fork` 之后被清除。 "
4391
+ "这可能导致某些之前被不正确地保持永久存活的系统资源(例如,保存在本线程存储中的数据库连接)被释放。 (:issue:`17094`。)"
4388
4392
4389
4393
#: ../../whatsnew/3.4.rst:2407
4390
4394
msgid ""
4391
4395
"Parameter names in ``__annotations__`` dicts are now mangled properly, "
4392
4396
"similarly to :attr:`~function.__kwdefaults__`. (Contributed by Yury "
4393
4397
"Selivanov in :issue:`20625`.)"
4394
4398
msgstr ""
4399
+ "现在 ``__annotations__`` 字典中的形参名称将被正确地处理,具体方式与 "
4400
+ ":attr:`~function.__kwdefaults__` 类似。 (由 Yury Selivanov 在 :issue:`20625` "
4401
+ "中贡献。)"
4395
4402
4396
4403
#: ../../whatsnew/3.4.rst:2411
4397
4404
msgid ""
@@ -4400,6 +4407,8 @@ msgid ""
4400
4407
"formal public interface the naming has been made consistent "
4401
4408
"(:issue:`18532`)."
4402
4409
msgstr ""
4410
+ "现在 :attr:`hashlib.hash.name` 将总是返回小写形式的标识符。 "
4411
+ "在之前版本中某些内置哈希具有大写的名称,但现在它已成为命名方式保持一致的正式公有接口 (:issue:`18532`)。"
4403
4412
4404
4413
#: ../../whatsnew/3.4.rst:2415
4405
4414
msgid ""
@@ -4413,6 +4422,12 @@ msgid ""
4413
4422
"``_removeTestAtIndex`` method that does nothing (see "
4414
4423
":meth:`.TestSuite.__iter__`) (:issue:`11798`)."
4415
4424
msgstr ""
4425
+ "因为现在 :mod:`unittest.TestSuite` 会在测试被运行后丢弃对它们的引用,所以那些重用 "
4426
+ ":class:`~unittest.TestSuite` 来重新运行测试集的测试套件可能会失败。 "
4427
+ "测试套件不应以这样的方式被重用,因为这意味着状态会在多次测试运行之间保持不变,破坏 :mod:`unittest` 设计时要提供的测试状态隔离。 "
4428
+ "不过,如果缺乏隔离被视为是可接受的,则可通过创建定义了不执行任何操作的 ``_removeTestAtIndex`` 方法的 "
4429
+ ":mod:`~unittest.TestSuite` 子类来恢复旧版行为 (参见 :meth:`.TestSuite.__iter__`) "
4430
+ "(:issue:`11798`)。"
4416
4431
4417
4432
#: ../../whatsnew/3.4.rst:2425
4418
4433
msgid ""
0 commit comments