@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.14\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-11-13 18:32 +0000\n "
15+ "POT-Creation-Date : 2025-11-19 19:26 +0000\n "
1616"PO-Revision-Date : 2025-09-16 00:00+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 "如果给定的浮点数 *X* 为有限值,即为规格数、非规格数或零,而不是无穷大或 NaN 则返回 ``1`` 。 否则返回 ``0``。"
204+
205+ #: ../../c-api/float.rst:157
206+ msgid ""
207+ "The macro is :term:`soft deprecated`. Use :c:macro:`!isfinite` instead."
208+ msgstr "该宏已处于 :term:`soft deprecated` 状态。 请改用 :c:macro:`!isfinite`。"
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 "如果给定的浮点数 *X* 为正或负无穷大则返回 ``1``。 否则返回 ``0``。"
215+
216+ #: ../../c-api/float.rst:166
217+ msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isinf` instead."
218+ msgstr "该宏已处于 :term:`soft deprecated` 状态。 请改用 :c:macro:`!isinf`。"
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 "如果给定的浮点数 *X* 为非数字 (NaN) 值则返回 ``1``。 否则返回 ``0``。"
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,13 +258,13 @@ msgstr ""
218258"双精度格式相同,不过 INF 和 NaN (如果平台存在这两种值) 未得到正确处理,而试图对包含 IEEE INF 或 NaN "
219259"的字节串执行解包将会引发一个异常。"
220260
221- #: ../../c-api/float.rst:161
261+ #: ../../c-api/float.rst:197
222262msgid ""
223263"Note that NaNs type may not be preserved on IEEE platforms (signaling NaN "
224264"become quiet NaN), for example on x86 systems in 32-bit mode."
225265msgstr "请注意 NaN 类型在 IEEE 平台上可能不会被保留(带信号的 NaN 变为静默的 NaN),例如在 32 位模式的 x86 系统上。"
226266
227- #: ../../c-api/float.rst:164
267+ #: ../../c-api/float.rst:200
228268msgid ""
229269"On non-IEEE platforms with more precision, or larger dynamic range, than "
230270"IEEE 754 supports, not all values can be packed; on non-IEEE platforms with "
@@ -234,11 +274,11 @@ msgstr ""
234274"在具有比 IEEE 754 所支持的更高精度,或更大动态范围的非 IEEE 平台上,不是所有的值都能被打包;在具有更低精度,或更小动态范围的非 IEEE"
235275" 平台上,则不是所有的值都能被解包。 在这种情况下发生的事情有一部分将是偶然的(无奈)。"
236276
237- #: ../../c-api/float.rst:172
277+ #: ../../c-api/float.rst:208
238278msgid "Pack functions"
239279msgstr "打包函数"
240280
241- #: ../../c-api/float.rst:174
281+ #: ../../c-api/float.rst:210
242282msgid ""
243283"The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an "
244284":c:expr:`int` argument, non-zero if you want the bytes string in little-"
@@ -253,42 +293,42 @@ msgstr ""
253293"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
254294"``1``,在小端序处理器上则等于 ``0``。"
255295
256- #: ../../c-api/float.rst:181
296+ #: ../../c-api/float.rst:217
257297msgid ""
258298"Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set, "
259299"most likely :exc:`OverflowError`)."
260300msgstr ""
261301"返回值: 如果一切正常则为 ``0``,如果出错则为 ``-1`` (并会设置一个异常,最大可能为 :exc:`OverflowError`)。"
262302
263- #: ../../c-api/float.rst:184
303+ #: ../../c-api/float.rst:220
264304msgid "There are two problems on non-IEEE platforms:"
265305msgstr "在非 IEEE 平台上存在两个问题:"
266306
267- #: ../../c-api/float.rst:186
307+ #: ../../c-api/float.rst:222
268308msgid "What this does is undefined if *x* is a NaN or infinity."
269309msgstr "如果 *x* 为 NaN 或无穷大则此函数的行为是未定义的。"
270310
271- #: ../../c-api/float.rst:187
311+ #: ../../c-api/float.rst:223
272312msgid "``-0.0`` and ``+0.0`` produce the same bytes string."
273313msgstr "``-0.0`` 和 ``+0.0`` 将产生相同的字节串。"
274314
275- #: ../../c-api/float.rst:191
315+ #: ../../c-api/float.rst:227
276316msgid "Pack a C double as the IEEE 754 binary16 half-precision format."
277317msgstr "将 C double 打包为 IEEE 754 binary16 半精度格式。"
278318
279- #: ../../c-api/float.rst:195
319+ #: ../../c-api/float.rst:231
280320msgid "Pack a C double as the IEEE 754 binary32 single precision format."
281321msgstr "将 C double 打包为 IEEE 754 binary32 单精度格式。"
282322
283- #: ../../c-api/float.rst:199
323+ #: ../../c-api/float.rst:235
284324msgid "Pack a C double as the IEEE 754 binary64 double precision format."
285325msgstr "将 C double 打包为 IEEE 754 binary64 双精度格式。"
286326
287- #: ../../c-api/float.rst:203
327+ #: ../../c-api/float.rst:239
288328msgid "Unpack functions"
289329msgstr "解包函数"
290330
291- #: ../../c-api/float.rst:205
331+ #: ../../c-api/float.rst:241
292332msgid ""
293333"The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an "
294334":c:expr:`int` argument, non-zero if the bytes string is in little-endian "
@@ -302,7 +342,7 @@ msgstr ""
302342"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
303343"``1``,在小端序处理器上则等于 ``0``。"
304344
305- #: ../../c-api/float.rst:212
345+ #: ../../c-api/float.rst:248
306346msgid ""
307347"Return value: The unpacked double. On error, this is ``-1.0`` and "
308348":c:func:`PyErr_Occurred` is true (and an exception is set, most likely "
@@ -311,21 +351,21 @@ msgstr ""
311351"返回值: 解包后的 double。 出错时,返回值为 ``-1.0`` 且 :c:func:`PyErr_Occurred` 为真值 "
312352"(并且会设置一个异常,最大可能为 :exc:`OverflowError`)。"
313353
314- #: ../../c-api/float.rst:216
354+ #: ../../c-api/float.rst:252
315355msgid ""
316356"Note that on a non-IEEE platform this will refuse to unpack a bytes string "
317357"that represents a NaN or infinity."
318358msgstr "请注意在非 IEEE 平台上此函数将拒绝解包表示 NaN 或无穷大的字节串。"
319359
320- #: ../../c-api/float.rst:221
360+ #: ../../c-api/float.rst:257
321361msgid "Unpack the IEEE 754 binary16 half-precision format as a C double."
322362msgstr "将 IEEE 754 binary16 半精度格式解包为 C double。"
323363
324- #: ../../c-api/float.rst:225
364+ #: ../../c-api/float.rst:261
325365msgid "Unpack the IEEE 754 binary32 single precision format as a C double."
326366msgstr "将 IEEE 754 binary32 单精度格式解包为 C double。"
327367
328- #: ../../c-api/float.rst:229
368+ #: ../../c-api/float.rst:265
329369msgid "Unpack the IEEE 754 binary64 double precision format as a C double."
330370msgstr "将 IEEE 754 binary64 双精度格式解包为 C double。"
331371
0 commit comments