@@ -1386,6 +1386,8 @@ msgid ""
1386
1386
"multiple implementations of an operation that allows it to work with "
1387
1387
"*different* kinds of data."
1388
1388
msgstr ""
1389
+ "新增的 :func:`~functools.singledispatch` 装饰器为 Python 标准库带来了对单分派泛型函数的支持。 "
1390
+ "面向对象编程侧重于将对一组共同数据的多种操作组合到一个类中,而泛型函数则侧重于将一种操作的多个实现组合在一起使其能够处理 *不同* 种类的数据。"
1389
1391
1390
1392
#: ../../whatsnew/3.4.rst:871
1391
1393
msgid ":pep:`443` -- Single-dispatch generic functions"
@@ -1449,6 +1451,9 @@ msgid ""
1449
1451
"based key derivation function 2 <https://en.wikipedia.org/wiki/PBKDF2>`_. "
1450
1452
"(Contributed by Christian Heimes in :issue:`18582`.)"
1451
1453
msgstr ""
1454
+ "新增的 :func:`hashlib.pbkdf2_hmac` 函数提供了 `PKCS#5 基于口令的密钥派生函数 2 "
1455
+ "<https://en.wikipedia.org/wiki/PBKDF2>`_。 (由 Christian Heimes 在 "
1456
+ ":issue:`18582` 中贡献。)"
1452
1457
1453
1458
#: ../../whatsnew/3.4.rst:908
1454
1459
msgid ""
@@ -1459,6 +1464,9 @@ msgid ""
1459
1464
"Python implementations have not previously supported it. (Contributed by "
1460
1465
"Jason R. Coombs in :issue:`18532`.)"
1461
1466
msgstr ""
1467
+ "现在 :mod:`hashlib` 哈希对象的 :attr:`~hashlib.hash.name` 属性已成为受正式支持的接口。 它一直存在于 "
1468
+ "CPython 的 :mod:`hashlib` 中(尽管它没有返回所有受支持的哈希算法的小写名称),但它不是一个公开的接口因此其他一些 Python "
1469
+ "实现以前并不支持它。 (由 Jason R. Coombs 在 :issue:`18532` 中提供。)"
1462
1470
1463
1471
#: ../../whatsnew/3.4.rst:917
1464
1472
msgid "hmac"
@@ -1472,6 +1480,9 @@ msgid ""
1472
1480
"accepts any type supported by the :mod:`hashlib` module. (Contributed by "
1473
1481
"Jonas Borgström in :issue:`18240`.)"
1474
1482
msgstr ""
1483
+ "现在 :mod:`hmac` 可接受 ``bytearray`` 和 ``bytes`` 作为传给 :func:`~hmac.new` 函数的 "
1484
+ "*key* 参数,而传给 :func:`~hmac.new` 函数和 :meth:`~hmac.HMAC.update` 方法的 *msg* "
1485
+ "形参现在可接受 :mod:`hashlib` 模块所支持的任何类型。 (由 Jonas Borgström 的 :issue:`18240` 中贡献。)"
1475
1486
1476
1487
#: ../../whatsnew/3.4.rst:925
1477
1488
msgid ""
@@ -1481,6 +1492,9 @@ msgid ""
1481
1492
"deprecated: in a future version of Python there will be no default value. "
1482
1493
"(Contributed by Christian Heimes in :issue:`17276`.)"
1483
1494
msgstr ""
1495
+ "传给 :func:`hmac.new` 函数的 *digestmod* 参数现在可以是 :mod:`hashlib` 能识别的任何哈希摘要名称。 "
1496
+ "此外,当前将 *digestmod* 默认值设为 ``MD5`` 的行为已被弃用:在未来的 Python 版本中将没有默认值。 (由 Christian"
1497
+ " Heimes 在 :issue:`17276` 中贡献。)"
1484
1498
1485
1499
#: ../../whatsnew/3.4.rst:931
1486
1500
msgid ""
0 commit comments