-
-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathhash.po
More file actions
210 lines (170 loc) · 7.37 KB
/
hash.po
File metadata and controls
210 lines (170 loc) · 7.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# Matt Wang <[email protected]>, 2024
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-09 00:17+0000\n"
"PO-Revision-Date: 2024-04-30 00:20+0800\n"
"Last-Translator: Matt Wang <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../../c-api/hash.rst:4
msgid "PyHash API"
msgstr "PyHash API"
#: ../../c-api/hash.rst:6
msgid ""
"See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`."
msgstr "另請參閱 :c:member:`PyTypeObject.tp_hash` 成員和 :ref:`numeric-hash`。"
#: ../../c-api/hash.rst:10
msgid "Hash value type: signed integer."
msgstr "雜湊值型別:有符號整數。"
#: ../../c-api/hash.rst:17
msgid "Hash value type: unsigned integer."
msgstr "雜湊值型別:無符號整數。"
#: ../../c-api/hash.rst:24
msgid ""
"A numerical value indicating the algorithm for hashing of :class:`str`, :"
"class:`bytes`, and :class:`memoryview`."
msgstr ""
#: ../../c-api/hash.rst:27
msgid "The algorithm name is exposed by :data:`sys.hash_info.algorithm`."
msgstr "演算式名稱由 :data:`sys.hash_info.algorithm` 公開。"
#: ../../c-api/hash.rst:36
msgid ""
"Numerical values to compare to :c:macro:`Py_HASH_ALGORITHM` to determine "
"which algorithm is used for hashing. The hash algorithm can be configured "
"via the configure :option:`--with-hash-algorithm` option."
msgstr ""
#: ../../c-api/hash.rst:40
msgid "Add :c:macro:`!Py_HASH_FNV` and :c:macro:`!Py_HASH_SIPHASH24`."
msgstr "新增 :c:macro:`!Py_HASH_FNV` 和 :c:macro:`!Py_HASH_SIPHASH24`。"
#: ../../c-api/hash.rst:43
msgid "Add :c:macro:`!Py_HASH_SIPHASH13`."
msgstr "新增 :c:macro:`!Py_HASH_SIPHASH13`。"
#: ../../c-api/hash.rst:49
msgid ""
"Buffers of length in range ``[1, Py_HASH_CUTOFF)`` are hashed using DJBX33A "
"instead of the algorithm described by :c:macro:`Py_HASH_ALGORITHM`."
msgstr ""
#: ../../c-api/hash.rst:52
msgid "A :c:macro:`!Py_HASH_CUTOFF` of 0 disables the optimization."
msgstr "將 :c:macro:`!Py_HASH_CUTOFF` 設為 0 可停用此最佳化。"
#: ../../c-api/hash.rst:53
msgid ""
":c:macro:`!Py_HASH_CUTOFF` must be non-negative and less or equal than 7."
msgstr ":c:macro:`!Py_HASH_CUTOFF` 必須為非負且小於或等於 7。"
#: ../../c-api/hash.rst:55
msgid ""
"32-bit platforms should use a cutoff smaller than 64-bit platforms because "
"it is easier to create colliding strings. A cutoff of 7 on 64-bit platforms "
"and 5 on 32-bit platforms should provide a decent safety margin."
msgstr ""
#: ../../c-api/hash.rst:59
msgid "This corresponds to the :data:`sys.hash_info.cutoff` constant."
msgstr "這對應到 :data:`sys.hash_info.cutoff` 常數。"
#: ../../c-api/hash.rst:66
msgid ""
"The `Mersenne prime <https://en.wikipedia.org/wiki/Mersenne_prime>`_ ``P = "
"2**n -1``, used for numeric hash scheme."
msgstr ""
"用於數值雜湊方案的\\ `梅森質數 (Mersenne prime) <https://en.wikipedia.org/"
"wiki/Mersenne_prime>`_ ``P = 2**n -1``。"
#: ../../c-api/hash.rst:69
msgid "This corresponds to the :data:`sys.hash_info.modulus` constant."
msgstr "這對應到 :data:`sys.hash_info.modulus` 常數。"
#: ../../c-api/hash.rst:76
msgid "The exponent ``n`` of ``P`` in :c:macro:`PyHASH_MODULUS`."
msgstr ":c:macro:`PyHASH_MODULUS` 中 ``P`` 的指數 ``n``。"
#: ../../c-api/hash.rst:83
msgid "Prime multiplier used in string and various other hashes."
msgstr "用於字串和其他各種雜湊的質數乘數 (prime multiplier)。"
#: ../../c-api/hash.rst:90
msgid "The hash value returned for a positive infinity."
msgstr "正無窮大回傳的雜湊值。"
#: ../../c-api/hash.rst:92
msgid "This corresponds to the :data:`sys.hash_info.inf` constant."
msgstr "這對應到 :data:`sys.hash_info.inf` 常數。"
#: ../../c-api/hash.rst:99
msgid "The multiplier used for the imaginary part of a complex number."
msgstr "用於複數虛數部分的乘數。"
#: ../../c-api/hash.rst:101
msgid "This corresponds to the :data:`sys.hash_info.imag` constant."
msgstr "這對應到 :data:`sys.hash_info.imag` 常數。"
#: ../../c-api/hash.rst:108
msgid "Hash function definition used by :c:func:`PyHash_GetFuncDef`."
msgstr ":c:func:`PyHash_GetFuncDef` 所使用的雜湊函式定義。"
#: ../../c-api/hash.rst:112
msgid "Hash function."
msgstr "雜湊函式。"
#: ../../c-api/hash.rst:116
msgid "Hash function name (UTF-8 encoded string)."
msgstr "雜湊函式名稱(UTF-8 編碼字串)。"
#: ../../c-api/hash.rst:118
msgid "This corresponds to the :data:`sys.hash_info.algorithm` constant."
msgstr "這對應到 :data:`sys.hash_info.algorithm` 常數。"
#: ../../c-api/hash.rst:122
msgid "Internal size of the hash value in bits."
msgstr "雜湊值的內部大小(以位元為單位)。"
#: ../../c-api/hash.rst:124
msgid "This corresponds to the :data:`sys.hash_info.hash_bits` constant."
msgstr "這對應到 :data:`sys.hash_info.hash_bits` 常數。"
#: ../../c-api/hash.rst:128
msgid "Size of seed input in bits."
msgstr "Seed 輸入的大小(以位元為單位)。"
#: ../../c-api/hash.rst:130
msgid "This corresponds to the :data:`sys.hash_info.seed_bits` constant."
msgstr "這對應到 :data:`sys.hash_info.seed_bits` 常數。"
#: ../../c-api/hash.rst:137
msgid "Get the hash function definition."
msgstr "取得雜湊函式定義。"
#: ../../c-api/hash.rst:140
msgid ":pep:`456` \"Secure and interchangeable hash algorithm\"."
msgstr ""
":pep:`456`\\ 「安全且可交替使用的雜湊演算法 (Secure and interchangeable hash "
"algorithm)」。"
#: ../../c-api/hash.rst:147
msgid ""
"Hash a pointer value: process the pointer value as an integer (cast it to "
"``uintptr_t`` internally). The pointer is not dereferenced."
msgstr ""
"雜湊指標值:將指標值作為整數處理(在內部轉型為 ``uintptr_t``)。指標不會被取"
"值 (dereference)。"
#: ../../c-api/hash.rst:150
msgid "The function cannot fail: it cannot return ``-1``."
msgstr "此函式不會失敗:它不會回傳 ``-1``。"
#: ../../c-api/hash.rst:157
msgid ""
"Compute and return the hash value of a buffer of *len* bytes starting at "
"address *ptr*. The hash is guaranteed to match that of :class:`bytes`, :"
"class:`memoryview`, and other built-in objects that implement the :ref:"
"`buffer protocol <bufferobjects>`."
msgstr ""
#: ../../c-api/hash.rst:162
msgid ""
"Use this function to implement hashing for immutable objects whose :c:member:"
"`~PyTypeObject.tp_richcompare` function compares to another object's buffer."
msgstr ""
#: ../../c-api/hash.rst:166
msgid "*len* must be greater than or equal to ``0``."
msgstr "*len* 必須大於或等於 ``0``。"
#: ../../c-api/hash.rst:168
msgid "This function always succeeds."
msgstr "此函式總是會成功執行。"
#: ../../c-api/hash.rst:175
msgid ""
"Generic hashing function that is meant to be put into a type object's "
"``tp_hash`` slot. Its result only depends on the object's identity."
msgstr ""
"泛用雜湊函式,旨在放入型別物件的 ``tp_hash`` 插槽中。其結果僅取決於物件的識別"
"性。"
#: ../../c-api/hash.rst:180
msgid "In CPython, it is equivalent to :c:func:`Py_HashPointer`."
msgstr "在 CPython 中,它等價於 :c:func:`Py_HashPointer`。"