Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2f4460

Browse files
[po] auto sync
1 parent b6a7a7e commit f2f4460

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "95.90%", "updated_at": "2024-08-13T13:47:10Z"}
1+
{"translation": "95.91%", "updated_at": "2024-08-13T15:47:18Z"}

whatsnew/2.2.po

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,11 @@ msgid ""
16181618
"and used for the MBCS support on Windows described in the following "
16191619
"section.)"
16201620
msgstr ""
1621+
"向 :c:func:`PyArg_ParseTuple` 添加了一个新的 ``et`` 格式序列;``et`` "
1622+
"接受一个形参和一个编码格式名称,如果该形参值是一个 Unicode 字符串则将其转换为给定的编码格式,或者如果它是一个 8 "
1623+
"比特位字符串则让其保持原样,即假定它已经使用了适当的编码格式。 这不同于 ``es`` 格式字符,它假定该 8 比特位字符串是使用 Python 默认的"
1624+
" ASCII 编码格式并将其转换为指定的新编码格式。 (由 M.-A. Lemburg 贡献,用于下一节所描述的 Windows 上的 MBCS "
1625+
"支持。)"
16211626

16221627
#: ../../whatsnew/2.2.rst:1102
16231628
msgid ""
@@ -1627,6 +1632,9 @@ msgid ""
16271632
" expected, and a set of pointers to :c:expr:`PyObject*` variables that will "
16281633
"be filled in with argument values."
16291634
msgstr ""
1635+
"增加了一个不同的解析函数 :c:func:`PyArg_UnpackTuple`,它更为简单并且应该也更为快速。 "
1636+
"调用方不必再指定格式字符串,而是简单地给出所预期参数的最小和最大数量,以及一组指向将以这些参数值来填充的 :c:expr:`PyObject*` "
1637+
"变量的指针。"
16301638

16311639
#: ../../whatsnew/2.2.rst:1108
16321640
msgid ""
@@ -1637,6 +1645,9 @@ msgid ""
16371645
":c:macro:`METH_VARARGS`. Also, the old :c:macro:`!METH_OLDARGS` style of "
16381646
"writing C methods is now officially deprecated."
16391647
msgstr ""
1648+
"在方法定义表中可使用两个新的旗标 :c:macro:`METH_NOARGS` 和 :c:macro:`METH_O` "
1649+
"来简化无参数或只有单个未定类型参数的方法的实现。 调用这样的方法比调用使用 :c:macro:`METH_VARARGS` 的相应方法更高效。 "
1650+
"此外,编写 C 方法的旧风格 :c:macro:`!METH_OLDARGS` 现已正式被弃用。"
16401651

16411652
#: ../../whatsnew/2.2.rst:1114
16421653
msgid ""
@@ -1648,6 +1659,10 @@ msgid ""
16481659
"check the bounds of the buffer used to protect against buffer overruns. "
16491660
"(Contributed by M.-A. Lemburg.)"
16501661
msgstr ""
1662+
"新增了两个包装器函数 :c:func:`PyOS_snprintf` 和 :c:func:`PyOS_vsnprintf` 以提供相对较新的 "
1663+
":c:func:`snprintf` 和 :c:func:`vsnprintf` C 库 API 的跨平台实现。 与标准的 "
1664+
":c:func:`sprintf` 和 :c:func:`!vsprintf` 函数相比,Python 版本会检查缓冲区边界用以防止缓冲区溢出。 (由 "
1665+
"M.-A. Lemburg 贡献。)"
16511666

16521667
#: ../../whatsnew/2.2.rst:1121
16531668
msgid ""
@@ -1841,6 +1856,9 @@ msgid ""
18411856
"such scripts, in case they're also usable as modules. (Implemented by David"
18421857
" Bolen.)"
18431858
msgstr ""
1859+
"在 Windows 上现在将会导入以 ``.pyw`` 结尾的文件。 ``.pyw`` 是 Windows 专属的,用来指明一个脚本需要使用 "
1860+
"PYTHONW.EXE 而不是 PYTHON.EXE 来运行以避免弹出 DOS 控制台来显示输出。 "
1861+
"该补丁使得导入这样的脚本成为可能,让它们也可以作为模块来使用。 (由 David Bolen 实现。)"
18441862

18451863
#: ../../whatsnew/2.2.rst:1245
18461864
msgid ""

0 commit comments

Comments
 (0)