1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2024, Python Software Foundation
2
+ # Copyright (C) 2001 Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
7
# Nyuan Zhang, 2024
8
8
# Freesand Leo <yuqinju@163.com>, 2024
9
+ # 汇民 王 <whuim@qq.com>, 2025
9
10
#
10
11
#, fuzzy
11
12
msgid ""
12
13
msgstr ""
13
- "Project-Id-Version : Python 3.13 \n "
14
+ "Project-Id-Version : Python 3.14 \n "
14
15
"Report-Msgid-Bugs-To : \n "
15
- "POT-Creation-Date : 2024-10-11 14:17+0000 \n "
16
+ "POT-Creation-Date : 2025-05-08 02:53-0300 \n "
16
17
"PO-Revision-Date : 2024-02-23 14:15+0000\n "
17
- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2024 \n "
18
+ "Last-Translator : 汇民 王 <whuim@qq .com>, 2025 \n "
18
19
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
19
20
"MIME-Version : 1.0\n "
20
21
"Content-Type : text/plain; charset=UTF-8\n "
@@ -98,12 +99,40 @@ msgstr "对指针值执行哈希运算:将指针值作为整数来处理(在
98
99
msgid "The function cannot fail: it cannot return ``-1``."
99
100
msgstr "此函数不会失败:它不可能返回 ``-1``。"
100
101
101
- #: ../../c-api/hash.rst:94
102
+ #: ../../c-api/hash.rst:95
103
+ msgid ""
104
+ "Compute and return the hash value of a buffer of *len* bytes starting at "
105
+ "address *ptr*. The hash is guaranteed to match that of :class:`bytes`, "
106
+ ":class:`memoryview`, and other built-in objects that implement the "
107
+ ":ref:`buffer protocol <bufferobjects>`."
108
+ msgstr ""
109
+ "计算并返回从地址 *ptr* 开始的 *len* "
110
+ "字节缓冲区的哈希值。哈希保证与:class:`bytes`、:class:`memoryview`和其他实现 :ref:`buffer "
111
+ "protocol<bufferobjects>`的内置对象的哈希匹配。"
112
+
113
+ #: ../../c-api/hash.rst:100
114
+ msgid ""
115
+ "Use this function to implement hashing for immutable objects whose "
116
+ ":c:member:`~PyTypeObject.tp_richcompare` function compares to another "
117
+ "object's buffer."
118
+ msgstr ""
119
+ "使用此函数为不可变对象实现哈希,这些对象的 "
120
+ ":c:member:`~PyTypeObject.tp_richcompare`函数会与另一个对象的缓冲区进行比较。"
121
+
122
+ #: ../../c-api/hash.rst:104
123
+ msgid "*len* must be greater than or equal to ``0``."
124
+ msgstr "*len* 必须大于或等于``0`` 。"
125
+
126
+ #: ../../c-api/hash.rst:106
127
+ msgid "This function always succeeds."
128
+ msgstr "这个函数总是能够成功执行。"
129
+
130
+ #: ../../c-api/hash.rst:113
102
131
msgid ""
103
132
"Generic hashing function that is meant to be put into a type object's "
104
133
"``tp_hash`` slot. Its result only depends on the object's identity."
105
134
msgstr "将会被放入类型对象的 ``tp_hash`` 槽位的泛型哈希函数。 其结果值仅取决于对象的标识号。"
106
135
107
- #: ../../c-api/hash.rst:99
136
+ #: ../../c-api/hash.rst:118
108
137
msgid "In CPython, it is equivalent to :c:func:`Py_HashPointer`."
109
138
msgstr "在 CPython 中,它等价于 :c:func:`Py_HashPointer`。"
0 commit comments