@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version :Python 3.13\n "
1414"Report-Msgid-Bugs-To :\n "
15- "POT-Creation-Date :2025-11-13 15:03 +0000\n "
15+ "POT-Creation-Date :2025-11-19 20:20 +0000\n "
1616"PO-Revision-Date :2025-09-15 01:03+0000\n "
1717"Last-Translator :Freesand Leo <yuqinju@163.com>, 2025\n "
1818"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -138,60 +138,100 @@ msgid ""
138138msgstr "在大多数平台上,这等价于 C11 标准 ``<math.h>`` 头文件中的 :c:macro:`!NAN` 宏。"
139139
140140#: ../../c-api/float.rst:101
141+ msgid "Equivalent to :c:macro:`!INFINITY`."
142+ msgstr "等价于 :c:macro:`!INFINITY`。"
143+
144+ #: ../../c-api/float.rst:103
145+ msgid "The macro is :term:`soft deprecated`."
146+ msgstr "此函数已处于 :term:`soft deprecated` 状态。"
147+
148+ #: ../../c-api/float.rst:109
141149msgid ""
142150"The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` "
143151"constant."
144152msgstr ":data:`math.e` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
145153
146- #: ../../c-api/float.rst:106
154+ #: ../../c-api/float.rst:114
147155msgid "High precision (long double) definition of :data:`~math.e` constant."
148156msgstr "高精度 (long double) 的 :data:`~math.e` 常量定义。"
149157
150- #: ../../c-api/float.rst:111
158+ #: ../../c-api/float.rst:119
151159msgid ""
152160"The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi`"
153161" constant."
154162msgstr ":data:`math.pi` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
155163
156- #: ../../c-api/float.rst:116
164+ #: ../../c-api/float.rst:124
157165msgid "High precision (long double) definition of :data:`~math.pi` constant."
158166msgstr "高精度 (long double) 的 :data:`~math.pi` 常量定义。"
159167
160- #: ../../c-api/float.rst:121
168+ #: ../../c-api/float.rst:129
161169msgid ""
162170"The definition (accurate for a :c:expr:`double` type) of the "
163171":data:`math.tau` constant."
164172msgstr ":data:`math.tau` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
165173
166- #: ../../c-api/float.rst:128
174+ #: ../../c-api/float.rst:136
167175msgid "Return :data:`math.nan` from a function."
168176msgstr "从一个函数返回 :data:`math.nan`。"
169177
170- #: ../../c-api/float.rst:130
178+ #: ../../c-api/float.rst:138
171179msgid ""
172180"On most platforms, this is equivalent to ``return PyFloat_FromDouble(NAN)``."
173181msgstr "在大多数平台上,这等价于 ``return PyFloat_FromDouble(NAN)``。"
174182
175- #: ../../c-api/float.rst:135
183+ #: ../../c-api/float.rst:143
176184msgid ""
177185"Return :data:`math.inf` or :data:`-math.inf <math.inf>` from a function, "
178186"depending on the sign of *sign*."
179187msgstr ""
180188"从一个函数返回 :data:`math.inf` 或 :data:`-math.inf <math.inf>`,具体取决于 *sign* 的符号值。"
181189
182- #: ../../c-api/float.rst:138
190+ #: ../../c-api/float.rst:146
183191msgid "On most platforms, this is equivalent to the following::"
184192msgstr "在大多数平台上,这等价于以下代码::"
185193
186- #: ../../c-api/float.rst:140
194+ #: ../../c-api/float.rst:148
187195msgid "return PyFloat_FromDouble(copysign(INFINITY, sign));"
188196msgstr "return PyFloat_FromDouble(copysign(INFINITY, sign));"
189197
190- #: ../../c-api/float.rst:144
198+ #: ../../c-api/float.rst:153
199+ msgid ""
200+ "Return ``1`` if the given floating-point number *X* is finite, that is, it "
201+ "is normal, subnormal or zero, but not infinite or NaN. Return ``0`` "
202+ "otherwise."
203+ msgstr ""
204+
205+ #: ../../c-api/float.rst:157
206+ msgid ""
207+ "The macro is :term:`soft deprecated`. Use :c:macro:`!isfinite` instead."
208+ msgstr ""
209+
210+ #: ../../c-api/float.rst:163
211+ msgid ""
212+ "Return ``1`` if the given floating-point number *X* is positive or negative "
213+ "infinity. Return ``0`` otherwise."
214+ msgstr ""
215+
216+ #: ../../c-api/float.rst:166
217+ msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isinf` instead."
218+ msgstr ""
219+
220+ #: ../../c-api/float.rst:172
221+ msgid ""
222+ "Return ``1`` if the given floating-point number *X* is a not-a-number (NaN) "
223+ "value. Return ``0`` otherwise."
224+ msgstr ""
225+
226+ #: ../../c-api/float.rst:175
227+ msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isnan` instead."
228+ msgstr "该宏已处于 :term:`soft deprecated` 状态。 请改用 :c:macro:`!isnan`。"
229+
230+ #: ../../c-api/float.rst:180
191231msgid "Pack and Unpack functions"
192232msgstr "打包与解包函数"
193233
194- #: ../../c-api/float.rst:146
234+ #: ../../c-api/float.rst:182
195235msgid ""
196236"The pack and unpack functions provide an efficient platform-independent way "
197237"to store floating-point values as byte strings. The Pack routines produce a "
@@ -202,7 +242,7 @@ msgstr ""
202242"打包与解包函数提供了独立于平台的高效方式来将浮点数值存储为字节串。 Pack 例程根据 C :c:expr:`double` 产生字节串,而 "
203243"Unpack 例程根据这样的字节串产生 C :c:expr:`double`。 后缀 (2, 4 or 8) 指明字节串中的字节数。"
204244
205- #: ../../c-api/float.rst:152
245+ #: ../../c-api/float.rst:188
206246msgid ""
207247"On platforms that appear to use IEEE 754 formats these functions work by "
208248"copying bits. On other platforms, the 2-byte format is identical to the IEEE"
@@ -218,7 +258,7 @@ msgstr ""
218258"双精度格式相同,不过 INF 和 NaN (如果平台存在这两种值) 未得到正确处理,而试图对包含 IEEE INF 或 NaN "
219259"的字节串执行解包将会引发一个异常。"
220260
221- #: ../../c-api/float.rst:161
261+ #: ../../c-api/float.rst:197
222262msgid ""
223263"On non-IEEE platforms with more precision, or larger dynamic range, than "
224264"IEEE 754 supports, not all values can be packed; on non-IEEE platforms with "
@@ -228,11 +268,11 @@ msgstr ""
228268"在具有比 IEEE 754 所支持的更高精度,或更大动态范围的非 IEEE 平台上,不是所有的值都能被打包;在具有更低精度,或更小动态范围的非 IEEE"
229269" 平台上,则不是所有的值都能被解包。 在这种情况下发生的事情有一部分将是偶然的(无奈)。"
230270
231- #: ../../c-api/float.rst:169
271+ #: ../../c-api/float.rst:205
232272msgid "Pack functions"
233273msgstr "打包函数"
234274
235- #: ../../c-api/float.rst:171
275+ #: ../../c-api/float.rst:207
236276msgid ""
237277"The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an "
238278":c:expr:`int` argument, non-zero if you want the bytes string in little-"
@@ -247,42 +287,42 @@ msgstr ""
247287"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
248288"``1``,在小端序处理器上则等于 ``0``。"
249289
250- #: ../../c-api/float.rst:178
290+ #: ../../c-api/float.rst:214
251291msgid ""
252292"Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set, "
253293"most likely :exc:`OverflowError`)."
254294msgstr ""
255295"返回值: 如果一切正常则为 ``0``,如果出错则为 ``-1`` (并会设置一个异常,最大可能为 :exc:`OverflowError`)。"
256296
257- #: ../../c-api/float.rst:181
297+ #: ../../c-api/float.rst:217
258298msgid "There are two problems on non-IEEE platforms:"
259299msgstr "在非 IEEE 平台上存在两个问题:"
260300
261- #: ../../c-api/float.rst:183
301+ #: ../../c-api/float.rst:219
262302msgid "What this does is undefined if *x* is a NaN or infinity."
263303msgstr "如果 *x* 为 NaN 或无穷大则此函数的行为是未定义的。"
264304
265- #: ../../c-api/float.rst:184
305+ #: ../../c-api/float.rst:220
266306msgid "``-0.0`` and ``+0.0`` produce the same bytes string."
267307msgstr "``-0.0`` 和 ``+0.0`` 将产生相同的字节串。"
268308
269- #: ../../c-api/float.rst:188
309+ #: ../../c-api/float.rst:224
270310msgid "Pack a C double as the IEEE 754 binary16 half-precision format."
271311msgstr "将 C double 打包为 IEEE 754 binary16 半精度格式。"
272312
273- #: ../../c-api/float.rst:192
313+ #: ../../c-api/float.rst:228
274314msgid "Pack a C double as the IEEE 754 binary32 single precision format."
275315msgstr "将 C double 打包为 IEEE 754 binary32 单精度格式。"
276316
277- #: ../../c-api/float.rst:196
317+ #: ../../c-api/float.rst:232
278318msgid "Pack a C double as the IEEE 754 binary64 double precision format."
279319msgstr "将 C double 打包为 IEEE 754 binary64 双精度格式。"
280320
281- #: ../../c-api/float.rst:200
321+ #: ../../c-api/float.rst:236
282322msgid "Unpack functions"
283323msgstr "解包函数"
284324
285- #: ../../c-api/float.rst:202
325+ #: ../../c-api/float.rst:238
286326msgid ""
287327"The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an "
288328":c:expr:`int` argument, non-zero if the bytes string is in little-endian "
@@ -296,7 +336,7 @@ msgstr ""
296336"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
297337"``1``,在小端序处理器上则等于 ``0``。"
298338
299- #: ../../c-api/float.rst:209
339+ #: ../../c-api/float.rst:245
300340msgid ""
301341"Return value: The unpacked double. On error, this is ``-1.0`` and "
302342":c:func:`PyErr_Occurred` is true (and an exception is set, most likely "
@@ -305,21 +345,21 @@ msgstr ""
305345"返回值: 解包后的 double。 出错时,返回值为 ``-1.0`` 且 :c:func:`PyErr_Occurred` 为真值 "
306346"(并且会设置一个异常,最大可能为 :exc:`OverflowError`)。"
307347
308- #: ../../c-api/float.rst:213
348+ #: ../../c-api/float.rst:249
309349msgid ""
310350"Note that on a non-IEEE platform this will refuse to unpack a bytes string "
311351"that represents a NaN or infinity."
312352msgstr "请注意在非 IEEE 平台上此函数将拒绝解包表示 NaN 或无穷大的字节串。"
313353
314- #: ../../c-api/float.rst:218
354+ #: ../../c-api/float.rst:254
315355msgid "Unpack the IEEE 754 binary16 half-precision format as a C double."
316356msgstr "将 IEEE 754 binary16 半精度格式解包为 C double。"
317357
318- #: ../../c-api/float.rst:222
358+ #: ../../c-api/float.rst:258
319359msgid "Unpack the IEEE 754 binary32 single precision format as a C double."
320360msgstr "将 IEEE 754 binary32 单精度格式解包为 C double。"
321361
322- #: ../../c-api/float.rst:226
362+ #: ../../c-api/float.rst:262
323363msgid "Unpack the IEEE 754 binary64 double precision format as a C double."
324364msgstr "将 IEEE 754 binary64 双精度格式解包为 C double。"
325365