@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.14\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2025-08-17 14:16 +0000\n "
16+ "POT-Creation-Date : 2025-09-03 14:18 +0000\n "
1717"PO-Revision-Date : 2025-08-02 17:35+0000\n "
1818"Last-Translator : Freesand Leo <yuqinju@163.com>, 2025\n "
1919"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -2828,13 +2828,9 @@ msgid ""
28282828"buffer API, which fixed a test suite failure (fix by Antoine Pitrou; "
28292829":issue:`7133`) and automatically set OpenSSL's "
28302830":c:macro:`!SSL_MODE_AUTO_RETRY`, which will prevent an error code being "
2831- "returned from :meth:`recv` operations that trigger an SSL renegotiation (fix "
2832- " by Antoine Pitrou; :issue:`8222`)."
2831+ "returned from :meth:`! recv` operations that trigger an SSL renegotiation "
2832+ "(fix by Antoine Pitrou; :issue:`8222`)."
28332833msgstr ""
2834- ":mod:`ssl` 模块的 :class:`~ssl.SSLSocket` 对象现在支持缓冲区 API,这修复了测试套件失败的问题(由 Antoine"
2835- " Pitrou 修复;参见 :issue:`7133`),并自动设置 OpenSSL 的 "
2836- ":c:macro:`!SSL_MODE_AUTO_RETRY`,这将防止从触发 SSL 重新协商的 :meth:`recv` 操作返回错误代码(由 "
2837- "Antoine Pitrou 修复;参见 :issue:`8222`)。"
28382834
28392835#: ../../whatsnew/2.7.rst:1547
28402836msgid ""
@@ -3780,7 +3776,7 @@ msgid ""
37803776"ElementTree's code for converting trees to a string has been significantly "
37813777"reworked, making it roughly twice as fast in many cases. The "
37823778":meth:`ElementTree.write() <xml.etree.ElementTree.ElementTree.write>` and "
3783- ":meth:`Element.write` methods now have a *method* parameter that can be "
3779+ ":meth:`! Element.write` methods now have a *method* parameter that can be "
37843780"\" xml\" (the default), \" html\" , or \" text\" . HTML mode will output empty "
37853781"elements as ``<empty></empty>`` instead of ``<empty/>``, and text mode will "
37863782"skip over elements and only output the text chunks. If you set the "
@@ -3789,26 +3785,16 @@ msgid ""
37893785"the tree is written out, so you don't need to do more extensive "
37903786"rearrangement to remove a single element."
37913787msgstr ""
3792- "ElementTree将树转换为字符串的代码已大幅重构,在许多情况下速度大约提高了一倍。:meth:`ElementTree.write() "
3793- "<xml.etree.ElementTree.ElementTree.write>` 和 :meth:`Element.write` 方法现在有一个 "
3794- "*method* 参数,可以是\" xml\" (默认)、\" html\" 或\" text\" 。HTML模式会将空元素输出为 "
3795- "``<empty></empty>`` 而不是 ``<empty/>``,文本模式将跳过元素仅输出文本块。如果将一个元素的 "
3796- ":attr:`~xml.etree.ElementTree.Element.tag` 属性设置为 ``None`` "
3797- "但其子元素仍在原位,则在写出树时该元素将被省略,因此无需进行更广泛的重新排列来移除单个元素。"
37983788
37993789#: ../../whatsnew/2.7.rst:2044
38003790msgid ""
38013791"Namespace handling has also been improved. All ``xmlns:<whatever>`` "
38023792"declarations are now output on the root element, not scattered throughout "
38033793"the resulting XML. You can set the default namespace for a tree by setting "
3804- "the :attr:`default_namespace` attribute and can register new prefixes with "
3794+ "the :attr:`! default_namespace` attribute and can register new prefixes with "
38053795":meth:`~xml.etree.ElementTree.register_namespace`. In XML mode, you can use"
38063796" the true/false *xml_declaration* parameter to suppress the XML declaration."
38073797msgstr ""
3808- "命名空间处理也得到了改进。所有 ``xmlns:<whatever>`` 声明现在都输出在根元素上,而不是散布在生成的XML中。可以通过设置 "
3809- ":attr:`default_namespace` 属性来设置树的默认命名空间,并可以使用 "
3810- ":meth:`~xml.etree.ElementTree.register_namespace` "
3811- "注册新的前缀。在XML模式下,可以使用true/false的 *xml_declaration* 参数来抑制XML声明。"
38123798
38133799#: ../../whatsnew/2.7.rst:2052
38143800msgid ""
@@ -4059,19 +4045,14 @@ msgstr "安全问题报告为 :cve:`2008-5983`;在 :issue:`5753` 中讨论,
40594045#: ../../whatsnew/2.7.rst:2183
40604046msgid ""
40614047"New macros: the Python header files now define the following macros: "
4062- ":c:macro:`Py_ISALNUM`, :c:macro:`Py_ISALPHA`, :c:macro:`Py_ISDIGIT`, "
4063- ":c:macro:`Py_ISLOWER`, :c:macro:`Py_ISSPACE`, :c:macro:`Py_ISUPPER`, "
4064- ":c:macro:`Py_ISXDIGIT`, :c:macro:`Py_TOLOWER`, and :c:macro:`Py_TOUPPER`. "
4065- "All of these functions are analogous to the C standard macros for "
4048+ ":c:macro:`! Py_ISALNUM`, :c:macro:`! Py_ISALPHA`, :c:macro:`! Py_ISDIGIT`, "
4049+ ":c:macro:`! Py_ISLOWER`, :c:macro:`! Py_ISSPACE`, :c:macro:`! Py_ISUPPER`, "
4050+ ":c:macro:`! Py_ISXDIGIT`, :c:macro:`! Py_TOLOWER`, and :c:macro:`! Py_TOUPPER`."
4051+ " All of these functions are analogous to the C standard macros for "
40664052"classifying characters, but ignore the current locale setting, because in "
40674053"several places Python needs to analyze characters in a locale-independent "
40684054"way. (Added by Eric Smith; :issue:`5793`.)"
40694055msgstr ""
4070- "新增宏:Python 头文件现在定义了以下宏::c:macro:`Py_ISALNUM`、 :c:macro:`Py_ISALPHA`、 "
4071- ":c:macro:`Py_ISDIGIT`、 :c:macro:`Py_ISLOWER`、 :c:macro:`Py_ISSPACE`、 "
4072- ":c:macro:`Py_ISUPPER`、 :c:macro:`Py_ISXDIGIT`、 :c:macro:`Py_TOLOWER` 和 "
4073- ":c:macro:`Py_TOUPPER`。所有这些函数都类似于 C 标准宏,用于分类字符,但忽略当前区域设置,因为在几个地方 Python "
4074- "需要以与区域设置无关的方式分析字符。(由 Eric Smith 添加;参见 :issue:`5793`。)"
40754056
40764057#: ../../whatsnew/2.7.rst:2201
40774058msgid ""
@@ -4138,10 +4119,8 @@ msgstr ""
41384119msgid ""
41394120"When using the :c:type:`PyMemberDef` structure to define attributes of a "
41404121"type, Python will no longer let you try to delete or set a "
4141- ":c:macro:`T_STRING_INPLACE` attribute."
4122+ ":c:macro:`! T_STRING_INPLACE` attribute."
41424123msgstr ""
4143- "当使用 :c:type:`PyMemberDef` 结构体定义类型的属性时,Python 将不再允许你尝试删除或设置 "
4144- ":c:macro:`T_STRING_INPLACE` 属性。"
41454124
41464125#: ../../whatsnew/2.7.rst:2241
41474126msgid ""
@@ -4186,23 +4165,18 @@ msgstr ""
41864165#: ../../whatsnew/2.7.rst:2261
41874166msgid ""
41884167"The :program:`configure` script now checks for floating-point rounding bugs "
4189- "on certain 32-bit Intel chips and defines a :c:macro:`X87_DOUBLE_ROUNDING` "
4168+ "on certain 32-bit Intel chips and defines a :c:macro:`! X87_DOUBLE_ROUNDING` "
41904169"preprocessor definition. No code currently uses this definition, but it's "
41914170"available if anyone wishes to use it. (Added by Mark Dickinson; "
41924171":issue:`2937`.)"
41934172msgstr ""
4194- ":program:`configure` 脚本现在检查某些 32 位 Intel 芯片上的浮点舍入错误,并定义一个 "
4195- ":c:macro:`X87_DOUBLE_ROUNDING` 预处理器定义。当前没有代码使用这个定义,但它是可用的,如果有人希望使用它。(由 Mark "
4196- "Dickinson 添加;参见 :issue:`2937`。)"
41974173
41984174#: ../../whatsnew/2.7.rst:2267
41994175msgid ""
4200- ":program:`configure` also now sets a :envvar:`LDCXXSHARED` Makefile variable "
4201- " for supporting C++ linking. (Contributed by Arfrever Frehtes Taifersar "
4202- "Arahesis; :issue:`1222585`.)"
4176+ ":program:`configure` also now sets a :envvar:`! LDCXXSHARED` Makefile "
4177+ "variable for supporting C++ linking. (Contributed by Arfrever Frehtes "
4178+ "Taifersar Arahesis; :issue:`1222585`.)"
42034179msgstr ""
4204- ":program:`configure` 现在还设置了一个 :envvar:`LDCXXSHARED` Makefile 变量以支持 C++ 链接。(由"
4205- " Arfrever Frehtes Taifersar Arahesis 贡献;参见 :issue:`1222585`。)"
42064180
42074181#: ../../whatsnew/2.7.rst:2271
42084182msgid ""
0 commit comments