@@ -17,7 +17,7 @@ msgid ""
17
17
msgstr ""
18
18
"Project-Id-Version : Python 3.9\n "
19
19
"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 "
21
21
"PO-Revision-Date : 2017-02-16 23:44+0000\n "
22
22
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2024\n "
23
23
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -2707,6 +2707,10 @@ msgid ""
2707
2707
"and have virtual attributes on the class with the same name (see :mod:`Enum`"
2708
2708
" for an example). (Contributed by Ethan Furman in :issue:`19030`.)"
2709
2709
msgstr ""
2710
+ "新增的 :func:`~types.DynamicClassAttribute` "
2711
+ "描述器提供了一种定义属性的方式,这种属性可正常地在实例对象中查找,但在类中查找时会被导向 *类的* ``__getattr__``。 "
2712
+ "这将允许设置在类上激活的特征属性,并在相同名称的类上具有虚拟属性(参见 :mod:`Enum` 的例子)。 (由 Ethan Furman 在 "
2713
+ ":issue:`19030` 中贡献。)"
2710
2714
2711
2715
#: ../../whatsnew/3.4.rst:1624
2712
2716
msgid "urllib"
@@ -2729,6 +2733,9 @@ msgid ""
2729
2733
":class:`~urllib.request.Request.method` class attribute on the subclass. "
2730
2734
"(Contributed by Jason R Coombs in :issue:`18978`.)"
2731
2735
msgstr ""
2736
+ "由 :class:`~urllib.request.Request` 类使用的 http 方法现在可通过在子类上设置 "
2737
+ ":class:`~urllib.request.Request.method` 类属性来指定。 (由 Jason R Coombs 在 "
2738
+ ":issue:`18978` 中贡献。)"
2732
2739
2733
2740
#: ../../whatsnew/3.4.rst:1635
2734
2741
msgid ""
@@ -2745,6 +2752,15 @@ msgid ""
2745
2752
"Alexey Kachayev in :issue:`16464`, Daniel Wozniak in :issue:`17485`, and "
2746
2753
"Damien Brecht and Senthil Kumaran in :issue:`17272`.)"
2747
2754
msgstr ""
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` 中贡献。)"
2748
2764
2749
2765
#: ../../whatsnew/3.4.rst:1648
2750
2766
msgid ""
@@ -2753,6 +2769,9 @@ msgid ""
2753
2769
"the HTTP response headers associated with the error. (Contributed by Berker"
2754
2770
" Peksag in :issue:`15701`.)"
2755
2771
msgstr ""
2772
+ "现在 :class:`~urllib.error.HTTPError` 对象具有一个 "
2773
+ ":attr:`~urllib.error.HTTPError.headers` 属性可提供对与错误相关的 HTTP 响应的访问。 (由 Berker "
2774
+ "Peksag 在 :issue:`15701` 中贡献。)"
2756
2775
2757
2776
#: ../../whatsnew/3.4.rst:1655
2758
2777
msgid "unittest"
0 commit comments