@@ -8,14 +8,15 @@ msgstr ""
88"Project-Id-Version : Python 3.14\n "
99"Report-Msgid-Bugs-To : \n "
1010"POT-Creation-Date : 2025-11-09 00:17+0000\n "
11- "PO-Revision-Date : 2024-04-30 00:20 +0800\n "
11+ "PO-Revision-Date : 2026-11-07 12:31 +0800\n "
1212"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
1313"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
1414"tw)\n "
1515"Language : zh_TW\n "
1616"MIME-Version : 1.0\n "
1717"Content-Type : text/plain; charset=UTF-8\n "
1818"Content-Transfer-Encoding : 8bit\n "
19+ "X-Generator : Poedit 3.10\n "
1920
2021#: ../../c-api/hash.rst:4
2122msgid "PyHash API"
@@ -36,9 +37,11 @@ msgstr "雜湊值型別:無符號整數。"
3637
3738#: ../../c-api/hash.rst:24
3839msgid ""
39- "A numerical value indicating the algorithm for hashing of :class:`str`, : "
40- "class:`bytes`, and :class:`memoryview`."
40+ "A numerical value indicating the algorithm for hashing "
41+ "of :class:`str`, : class:`bytes`, and :class:`memoryview`."
4142msgstr ""
43+ "用一個數值,表示用於對 :class:`str`、:class:`bytes` 和 :class:`memoryview` 進"
44+ "行雜湊的演算法。"
4245
4346#: ../../c-api/hash.rst:27
4447msgid "The algorithm name is exposed by :data:`sys.hash_info.algorithm`."
@@ -50,6 +53,9 @@ msgid ""
5053"which algorithm is used for hashing. The hash algorithm can be configured "
5154"via the configure :option:`--with-hash-algorithm` option."
5255msgstr ""
56+ "用來與 :c:macro:`Py_HASH_ALGORITHM` 比較的數值,以判斷使用哪一種雜湊演算"
57+ "法。\n"
58+ "雜湊演算法可透過 configure 的 :option:`--with-hash-algorithm` 選項設定。"
5359
5460#: ../../c-api/hash.rst:40
5561msgid "Add :c:macro:`!Py_HASH_FNV` and :c:macro:`!Py_HASH_SIPHASH24`."
@@ -64,6 +70,8 @@ msgid ""
6470"Buffers of length in range ``[1, Py_HASH_CUTOFF)`` are hashed using DJBX33A "
6571"instead of the algorithm described by :c:macro:`Py_HASH_ALGORITHM`."
6672msgstr ""
73+ "長度在 ``[1, Py_HASH_CUTOFF)`` 範圍內的緩衝區,會使用 DJBX33A 進行雜湊,\n"
74+ "而非 :c:macro:`Py_HASH_ALGORITHM` 所指定的演算法。"
6775
6876#: ../../c-api/hash.rst:52
6977msgid "A :c:macro:`!Py_HASH_CUTOFF` of 0 disables the optimization."
@@ -80,6 +88,10 @@ msgid ""
8088"it is easier to create colliding strings. A cutoff of 7 on 64-bit platforms "
8189"and 5 on 32-bit platforms should provide a decent safety margin."
8290msgstr ""
91+ "32 位元的平台應使用比 64 位元的平台更小的門檻值,因為在 32 位元平台上更容易建"
92+ "立會發生雜湊碰撞的字串。\n"
93+ "若在 64 位元平台上將門檻值設為 7,在 32 位元平台上設為 5,應能提供適當的安全"
94+ "餘裕。"
8395
8496#: ../../c-api/hash.rst:59
8597msgid "This corresponds to the :data:`sys.hash_info.cutoff` constant."
@@ -178,16 +190,23 @@ msgstr "此函式不會失敗:它不會回傳 ``-1``。"
178190#: ../../c-api/hash.rst:157
179191msgid ""
180192"Compute and return the hash value of a buffer of *len* bytes starting at "
181- "address *ptr*. The hash is guaranteed to match that of :class:`bytes`, : "
182- "class:`memoryview`, and other built-in objects that implement the :ref: "
183- "`buffer protocol <bufferobjects>`."
193+ "address *ptr*. The hash is guaranteed to match that "
194+ "of : class:`bytes`, :class:` memoryview`, and other built-in objects that "
195+ "implement the :ref: `buffer protocol <bufferobjects>`."
184196msgstr ""
197+ "計算並回傳從位址 *ptr* 開始、長度為 *len* 位元組的緩衝區之雜湊值。\n"
198+ "此雜湊值會保證與 :class:`bytes`、:class:`memoryview` 及其他實作\n"
199+ ":ref:`緩衝協定 <bufferobjects>` 的內建物件之雜湊值一致。"
185200
186201#: ../../c-api/hash.rst:162
187202msgid ""
188- "Use this function to implement hashing for immutable objects whose :c:member:"
189- "`~PyTypeObject.tp_richcompare` function compares to another object's buffer."
203+ "Use this function to implement hashing for immutable objects "
204+ "whose :c:member:`~PyTypeObject.tp_richcompare` function compares to another "
205+ "object's buffer."
190206msgstr ""
207+ "使用此函式,對透過 :c:member:~PyTypeObject.tp_richcompare 函式與另一個物件的"
208+ "緩衝區\n"
209+ "進行比較的不可變物件其雜湊功能."
191210
192211#: ../../c-api/hash.rst:166
193212msgid "*len* must be greater than or equal to ``0``."
0 commit comments