@@ -1386,6 +1386,8 @@ msgid ""
13861386"multiple implementations of an operation that allows it to work with "
13871387"*different* kinds of data."
13881388msgstr ""
1389+ "新增的 :func:`~functools.singledispatch` 装饰器为 Python 标准库带来了对单分派泛型函数的支持。 "
1390+ "面向对象编程侧重于将对一组共同数据的多种操作组合到一个类中,而泛型函数则侧重于将一种操作的多个实现组合在一起使其能够处理 *不同* 种类的数据。"
13891391
13901392#: ../../whatsnew/3.4.rst:871
13911393msgid ":pep:`443` -- Single-dispatch generic functions"
@@ -1449,6 +1451,9 @@ msgid ""
14491451"based key derivation function 2 <https://en.wikipedia.org/wiki/PBKDF2>`_. "
14501452"(Contributed by Christian Heimes in :issue:`18582`.)"
14511453msgstr ""
1454+ "新增的 :func:`hashlib.pbkdf2_hmac` 函数提供了 `PKCS#5 基于口令的密钥派生函数 2 "
1455+ "<https://en.wikipedia.org/wiki/PBKDF2>`_。 (由 Christian Heimes 在 "
1456+ ":issue:`18582` 中贡献。)"
14521457
14531458#: ../../whatsnew/3.4.rst:908
14541459msgid ""
@@ -1459,6 +1464,9 @@ msgid ""
14591464"Python implementations have not previously supported it. (Contributed by "
14601465"Jason R. Coombs in :issue:`18532`.)"
14611466msgstr ""
1467+ "现在 :mod:`hashlib` 哈希对象的 :attr:`~hashlib.hash.name` 属性已成为受正式支持的接口。 它一直存在于 "
1468+ "CPython 的 :mod:`hashlib` 中(尽管它没有返回所有受支持的哈希算法的小写名称),但它不是一个公开的接口因此其他一些 Python "
1469+ "实现以前并不支持它。 (由 Jason R. Coombs 在 :issue:`18532` 中提供。)"
14621470
14631471#: ../../whatsnew/3.4.rst:917
14641472msgid "hmac"
@@ -1472,6 +1480,9 @@ msgid ""
14721480"accepts any type supported by the :mod:`hashlib` module. (Contributed by "
14731481"Jonas Borgström in :issue:`18240`.)"
14741482msgstr ""
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` 中贡献。)"
14751486
14761487#: ../../whatsnew/3.4.rst:925
14771488msgid ""
@@ -1481,6 +1492,9 @@ msgid ""
14811492"deprecated: in a future version of Python there will be no default value. "
14821493"(Contributed by Christian Heimes in :issue:`17276`.)"
14831494msgstr ""
1495+ "传给 :func:`hmac.new` 函数的 *digestmod* 参数现在可以是 :mod:`hashlib` 能识别的任何哈希摘要名称。 "
1496+ "此外,当前将 *digestmod* 默认值设为 ``MD5`` 的行为已被弃用:在未来的 Python 版本中将没有默认值。 (由 Christian"
1497+ " Heimes 在 :issue:`17276` 中贡献。)"
14841498
14851499#: ../../whatsnew/3.4.rst:931
14861500msgid ""
0 commit comments