@@ -17,7 +17,7 @@ msgid ""
1717msgstr ""
1818"Project-Id-Version : Python 3.9\n "
1919"Report-Msgid-Bugs-To : \n "
20- "POT-Creation-Date : 2024-04-26 21:29 +0000\n "
20+ "POT-Creation-Date : 2024-05-03 21:11 +0000\n "
2121"PO-Revision-Date : 2017-02-16 23:44+0000\n "
2222"
Last-Translator :
Freesand Leo <[email protected] >, 2024\n "
2323"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -2707,6 +2707,10 @@ msgid ""
27072707"and have virtual attributes on the class with the same name (see :mod:`Enum`"
27082708" for an example). (Contributed by Ethan Furman in :issue:`19030`.)"
27092709msgstr ""
2710+ "新增的 :func:`~types.DynamicClassAttribute` "
2711+ "描述器提供了一种定义属性的方式,这种属性可正常地在实例对象中查找,但在类中查找时会被导向 *类的* ``__getattr__``。 "
2712+ "这将允许设置在类上激活的特征属性,并在相同名称的类上具有虚拟属性(参见 :mod:`Enum` 的例子)。 (由 Ethan Furman 在 "
2713+ ":issue:`19030` 中贡献。)"
27102714
27112715#: ../../whatsnew/3.4.rst:1624
27122716msgid "urllib"
@@ -2729,6 +2733,9 @@ msgid ""
27292733":class:`~urllib.request.Request.method` class attribute on the subclass. "
27302734"(Contributed by Jason R Coombs in :issue:`18978`.)"
27312735msgstr ""
2736+ "由 :class:`~urllib.request.Request` 类使用的 http 方法现在可通过在子类上设置 "
2737+ ":class:`~urllib.request.Request.method` 类属性来指定。 (由 Jason R Coombs 在 "
2738+ ":issue:`18978` 中贡献。)"
27322739
27332740#: ../../whatsnew/3.4.rst:1635
27342741msgid ""
@@ -2745,6 +2752,15 @@ msgid ""
27452752"Alexey Kachayev in :issue:`16464`, Daniel Wozniak in :issue:`17485`, and "
27462753"Damien Brecht and Senthil Kumaran in :issue:`17272`.)"
27472754msgstr ""
2755+ "现在 :class:`~urllib.request.Request` 对象是可重用的:如果 "
2756+ ":attr:`~urllib.request.Request.full_url` 或 "
2757+ ":attr:`~urllib.request.Request.data` 属性被修改,所有相关的内部特征属性都将被更新。 "
2758+ "例如,这意味着现在可以在多个使用不同 *data* 参数的 :meth:`.OpenerDirector.open` 调用中使用相同的 "
2759+ ":class:`~urllib.request.Request` 对象,或者修改 :class:`~urllib.request.Request` 的 "
2760+ "``url`` 而不必从头重新计算它们。 此外还有新增的 :meth:`~urllib.request.Request.remove_header` "
2761+ "方法可被用来从 :class:`~urllib.request.Request` 中移除标头。 (由 Alexey Kachayev 在 "
2762+ ":issue:`16464` 中,Daniel Wozniak 在 :issue:`17485` 中,以及 Damien Brecht 和 "
2763+ "Senthil Kumaran 在 :issue:`17272` 中贡献。)"
27482764
27492765#: ../../whatsnew/3.4.rst:1648
27502766msgid ""
@@ -2753,6 +2769,9 @@ msgid ""
27532769"the HTTP response headers associated with the error. (Contributed by Berker"
27542770" Peksag in :issue:`15701`.)"
27552771msgstr ""
2772+ "现在 :class:`~urllib.error.HTTPError` 对象具有一个 "
2773+ ":attr:`~urllib.error.HTTPError.headers` 属性可提供对与错误相关的 HTTP 响应的访问。 (由 Berker "
2774+ "Peksag 在 :issue:`15701` 中贡献。)"
27562775
27572776#: ../../whatsnew/3.4.rst:1655
27582777msgid "unittest"
0 commit comments