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

Skip to content

Commit 127cdd3

Browse files
committed
[po] auto sync bot
1 parent bfc306e commit 127cdd3

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

library/stdtypes.po

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,16 +1004,26 @@ msgid ""
10041004
"``P`` is made available to Python as the :attr:`modulus` attribute of "
10051005
":data:`sys.hash_info`."
10061006
msgstr ""
1007+
"对于可能为不同类型的数字 ``x`` 和 ``y``,要求 ``x == y`` 时必定 ``hash(x) == hash(y)`` (详情参见 "
1008+
":meth:`__hash__` 方法的文档)。 为了便于在各种数字类型 (包括 :class:`int`, :class:`float`, "
1009+
":class:`decimal.Decimal` 和 :class:`fractions.Fraction`) 上实现并保证效率,Python "
1010+
"对数字类型的哈希运算是基于为任意有理数定义统一的数学函数,因此该运算对 :class:`int` 和 "
1011+
":class:`fractions.Fraction` 的全部实例,以及 :class:`float` 和 "
1012+
":class:`decimal.Decimal` 的全部有限实例均可用。 从本质上说,此函数是通过以一个固定质数 ``P`` 进行 ``P`` "
1013+
"降模给出的。 ``P`` 的值在 Python 中可以 :data:`sys.hash_info` 的 :attr:`modulus` "
1014+
"属性的形式被访问。"
10071015

10081016
#: ../../library/stdtypes.rst:651
10091017
msgid ""
10101018
"Currently, the prime used is ``P = 2**31 - 1`` on machines with 32-bit C "
10111019
"longs and ``P = 2**61 - 1`` on machines with 64-bit C longs."
10121020
msgstr ""
1021+
"目前所用的质数设定,在 C long 为 32 位的机器上 ``P = 2**31 - 1`` 而在 C long 为 64 位的机器上 ``P = "
1022+
"2**61 - 1``。"
10131023

10141024
#: ../../library/stdtypes.rst:654
10151025
msgid "Here are the rules in detail:"
1016-
msgstr ""
1026+
msgstr "详细规则如下所述:"
10171027

10181028
#: ../../library/stdtypes.rst:656
10191029
msgid ""

whatsnew/3.7.po

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2995,33 +2995,46 @@ msgid ""
29952995
"and the :ref:`pre-init-safe` section in the C API documentation for more "
29962996
"details."
29972997
msgstr ""
2998+
"对启动顺序以及动态内存分配器管理的更改意味着早已记录在案的,对在调用大多数 C API 函数之前调用 :c:func:`Py_Initialize` "
2999+
"的要求的依赖现在变得更加强烈,未遵循此要求可能导致嵌入式应用程序中的段错误。 请参阅此文档的 :ref:`porting-to-python-37` "
3000+
"一节以及 C API 文档的 :ref:`pre-init-safe` 一节了解更多细节。"
29983001

29993002
#: ../../whatsnew/3.7.rst:1719
30003003
msgid ""
30013004
"The new :c:func:`PyInterpreterState_GetID` returns the unique ID for a given"
30023005
" interpreter. (Contributed by Eric Snow in :issue:`29102`.)"
30033006
msgstr ""
3007+
"新的 :c:func:`PyInterpreterState_GetID` 会返回给定解释器的唯一 ID。 (由 Eric Snow 在 "
3008+
":issue:`29102` 中贡献。)"
30043009

30053010
#: ../../whatsnew/3.7.rst:1723
30063011
msgid ""
30073012
":c:func:`Py_DecodeLocale`, :c:func:`Py_EncodeLocale` now use the UTF-8 "
30083013
"encoding when the :ref:`UTF-8 mode <whatsnew37-pep540>` is enabled. "
30093014
"(Contributed by Victor Stinner in :issue:`29240`.)"
30103015
msgstr ""
3016+
"现在当启用 :ref:`UTF-8 模式 <whatsnew37-pep540>` 时 :c:func:`Py_DecodeLocale`, "
3017+
":c:func:`Py_EncodeLocale` 会使用 UTF-8 编码。 (由 Victor Stinner 在 :issue:`29240` "
3018+
"中贡献。)"
30113019

30123020
#: ../../whatsnew/3.7.rst:1727
30133021
msgid ""
30143022
":c:func:`PyUnicode_DecodeLocaleAndSize` and :c:func:`PyUnicode_EncodeLocale`"
30153023
" now use the current locale encoding for ``surrogateescape`` error handler. "
30163024
"(Contributed by Victor Stinner in :issue:`29240`.)"
30173025
msgstr ""
3026+
":c:func:`PyUnicode_DecodeLocaleAndSize` 和 :c:func:`PyUnicode_EncodeLocale` "
3027+
"现在会为 ``surrogateescape`` 错误句柄使用当前区域编码。 (由 Victor Stinner 在 :issue:`29240` "
3028+
"中贡献。)"
30183029

30193030
#: ../../whatsnew/3.7.rst:1731
30203031
msgid ""
30213032
"The *start* and *end* parameters of :c:func:`PyUnicode_FindChar` are now "
30223033
"adjusted to behave like string slices. (Contributed by Xiang Zhang in "
30233034
":issue:`28822`.)"
30243035
msgstr ""
3036+
":c:func:`PyUnicode_FindChar` 的 *start* 和 *end* 形参的行为现在调整为与字符串切片类似。 (由 Xiang "
3037+
"Zhang 在 :issue:`28822` 中贡献。)"
30253038

30263039
#: ../../whatsnew/3.7.rst:1737
30273040
msgid "Build Changes"
@@ -3033,6 +3046,8 @@ msgid ""
30333046
":mod:`threading` module is now always available. (Contributed by Antoine "
30343047
"Pitrou in :issue:`31370`.)."
30353048
msgstr ""
3049+
"对于 ``--without-threads`` 构建的支持已被移除。 :mod:`threading` 模块现在将总是可用。 (由 Antoine "
3050+
"Pitrou 在 :issue:`31370` 中贡献。)"
30363051

30373052
#: ../../whatsnew/3.7.rst:1743
30383053
msgid ""

0 commit comments

Comments
 (0)