1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2024 , Python Software Foundation
2
+ # Copyright (C) 2001-2025 , 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
- # Rafael Fontenelle <[email protected] >, 2024
7
+ # Rafael Fontenelle <[email protected] >, 2025
8
8
#
9
9
#, fuzzy
10
10
msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2024-08-16 14:48 +0000\n "
14
+ "POT-Creation-Date : 2025-03-21 14:55 +0000\n "
15
15
"PO-Revision-Date : 2024-05-11 00:32+0000\n "
16
- "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024 \n "
16
+ "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2025 \n "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
18
18
"MIME-Version : 1.0\n "
19
19
"Content-Type : text/plain; charset=UTF-8\n "
@@ -166,7 +166,7 @@ msgid ""
166
166
"retrieved from the resulting value using :c:func:`PyLong_AsVoidPtr`."
167
167
msgstr "从指针 *p* 创建一个 Python 整数。可以使用 :c:func:`PyLong_AsVoidPtr` 返回的指针值。"
168
168
169
- #: ../../c-api/long.rst:123 ../../c-api/long.rst:141
169
+ #: ../../c-api/long.rst:123 ../../c-api/long.rst:151
170
170
msgid ""
171
171
"Return a C :c:expr:`long` representation of *obj*. If *obj* is not an "
172
172
"instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__`"
@@ -181,23 +181,36 @@ msgid ""
181
181
":c:expr:`long`."
182
182
msgstr "如果 *obj* 的值超出了 :c:expr:`long` 的取值范围则会引发 :exc:`OverflowError`。"
183
183
184
- #: ../../c-api/long.rst:130 ../../c-api/long.rst:150 ../../c-api/long.rst:171
185
- #: ../../c-api/long.rst:191 ../../c-api/long.rst:214
184
+ #: ../../c-api/long.rst:130 ../../c-api/long.rst:160 ../../c-api/long.rst:181
185
+ #: ../../c-api/long.rst:201 ../../c-api/long.rst:224
186
186
msgid ""
187
187
"Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
188
188
msgstr "出错则返回 ``-1`` 。请用 :c:func:`PyErr_Occurred` 找出具体问题。"
189
189
190
- #: ../../c-api/long.rst:132 ../../c-api/long.rst:152 ../../c-api/long.rst:173
191
- #: ../../c-api/long.rst:195 ../../c-api/long.rst:279 ../../c-api/long.rst:299
190
+ #: ../../c-api/long.rst:132 ../../c-api/long.rst:162 ../../c-api/long.rst:183
191
+ #: ../../c-api/long.rst:205 ../../c-api/long.rst:289 ../../c-api/long.rst:309
192
192
msgid "Use :meth:`~object.__index__` if available."
193
193
msgstr "如果可能将使用 :meth:`~object.__index__`。"
194
194
195
- #: ../../c-api/long.rst:135 ../../c-api/long.rst:155 ../../c-api/long.rst:176
196
- #: ../../c-api/long.rst:198 ../../c-api/long.rst:282 ../../c-api/long.rst:302
195
+ #: ../../c-api/long.rst:135 ../../c-api/long.rst:165 ../../c-api/long.rst:186
196
+ #: ../../c-api/long.rst:208 ../../c-api/long.rst:292 ../../c-api/long.rst:312
197
197
msgid "This function will no longer use :meth:`~object.__int__`."
198
198
msgstr "此函数将不再使用 :meth:`~object.__int__`。"
199
199
200
- #: ../../c-api/long.rst:145
200
+ #: ../../c-api/long.rst:142
201
+ msgid ""
202
+ "A :term:`soft deprecated` alias. Exactly equivalent to the preferred "
203
+ "``PyLong_AsLong``. In particular, it can fail with :exc:`OverflowError` or "
204
+ "another exception."
205
+ msgstr ""
206
+ "一个已经 :term:`soft deprecated` 的别名。 完全等价于推荐使用的 ``PyLong_AsLong``。 特别地,它可能因 "
207
+ ":exc:`OverflowError` 或其他异常而失败。"
208
+
209
+ #: ../../c-api/long.rst:146
210
+ msgid "The function is soft deprecated."
211
+ msgstr "此函数已被软弃用。"
212
+
213
+ #: ../../c-api/long.rst:155
201
214
msgid ""
202
215
"If the value of *obj* is greater than :c:macro:`LONG_MAX` or less than "
203
216
":c:macro:`LONG_MIN`, set *\\ *overflow* to ``1`` or ``-1``, respectively, and"
@@ -208,7 +221,7 @@ msgstr ""
208
221
"分别置为 ``1`` 或 ``-1``,并返回 ``-1``;否则,将 *\\ *overflow* 置为 ``0``。 如果发生其他异常则按常规把 "
209
222
"*\\ *overflow* 置为 ``0`` 并返回 ``-1``。"
210
223
211
- #: ../../c-api/long.rst:164 ../../c-api/long.rst:182
224
+ #: ../../c-api/long.rst:174 ../../c-api/long.rst:192
212
225
msgid ""
213
226
"Return a C :c:expr:`long long` representation of *obj*. If *obj* is not an "
214
227
"instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__`"
@@ -217,13 +230,13 @@ msgstr ""
217
230
"返回 *obj* 的 C :c:expr:`long long` 表示形式。 如果 *obj* 不是 :c:type:`PyLongObject` "
218
231
"的实例,则会先调用其 :meth:`~object.__index__` 方法(如果存在)将其转换为 :c:type:`PyLongObject`。"
219
232
220
- #: ../../c-api/long.rst:168
233
+ #: ../../c-api/long.rst:178
221
234
msgid ""
222
235
"Raise :exc:`OverflowError` if the value of *obj* is out of range for a "
223
236
":c:expr:`long long`."
224
237
msgstr "如果 *obj* 值超出 :c:expr:`long long` 的取值范围则会引发 :exc:`OverflowError`。"
225
238
226
- #: ../../c-api/long.rst:186
239
+ #: ../../c-api/long.rst:196
227
240
msgid ""
228
241
"If the value of *obj* is greater than :c:macro:`LLONG_MAX` or less than "
229
242
":c:macro:`LLONG_MIN`, set *\\ *overflow* to ``1`` or ``-1``, respectively, "
@@ -234,90 +247,90 @@ msgstr ""
234
247
"*\\ *overflow* 分别置为 ``1`` 或 ``-1``,并返回 ``-1``;否则,将 *\\ *overflow* 置为 ``0``。 "
235
248
"如果发生其他异常则按常规把 *\\ *overflow* 置为 ``0`` 并返回 ``-1``。"
236
249
237
- #: ../../c-api/long.rst:208
250
+ #: ../../c-api/long.rst:218
238
251
msgid ""
239
252
"Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must "
240
253
"be an instance of :c:type:`PyLongObject`."
241
254
msgstr ""
242
255
"返回 *pylong* 的 C 语言 :c:type:`Py_ssize_t` 形式。*pylong* 必须是 "
243
256
":c:type:`PyLongObject` 的实例。"
244
257
245
- #: ../../c-api/long.rst:211
258
+ #: ../../c-api/long.rst:221
246
259
msgid ""
247
260
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
248
261
":c:type:`Py_ssize_t`."
249
262
msgstr ""
250
263
"如果 *pylong* 的值超出了 :c:type:`Py_ssize_t` 的取值范围则会引发 :exc:`OverflowError`。"
251
264
252
- #: ../../c-api/long.rst:223
265
+ #: ../../c-api/long.rst:233
253
266
msgid ""
254
267
"Return a C :c:expr:`unsigned long` representation of *pylong*. *pylong* "
255
268
"must be an instance of :c:type:`PyLongObject`."
256
269
msgstr ""
257
270
"返回 *pylong* 的 C :c:expr:`unsigned long` 表示形式。 *pylong* 必须是 "
258
271
":c:type:`PyLongObject` 的实例。"
259
272
260
- #: ../../c-api/long.rst:226
273
+ #: ../../c-api/long.rst:236
261
274
msgid ""
262
275
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
263
276
":c:expr:`unsigned long`."
264
277
msgstr ""
265
278
"如果 *pylong* 的值超出了 :c:expr:`unsigned long` 的取值范围则会引发 :exc:`OverflowError`。"
266
279
267
- #: ../../c-api/long.rst:229
280
+ #: ../../c-api/long.rst:239
268
281
msgid ""
269
282
"Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
270
283
"disambiguate."
271
284
msgstr "出错时返回 ``(unsigned long)-1`` ,请利用 :c:func:`PyErr_Occurred` 辨别具体问题。"
272
285
273
- #: ../../c-api/long.rst:239
286
+ #: ../../c-api/long.rst:249
274
287
msgid ""
275
288
"Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an"
276
289
" instance of :c:type:`PyLongObject`."
277
290
msgstr ""
278
291
"返回 *pylong* 的 C 语言 :c:type:`size_t` 形式。*pylong* 必须是 :c:type:`PyLongObject` "
279
292
"的实例。"
280
293
281
- #: ../../c-api/long.rst:242
294
+ #: ../../c-api/long.rst:252
282
295
msgid ""
283
296
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
284
297
":c:type:`size_t`."
285
298
msgstr "如果 *pylong* 的值超出了 :c:type:`size_t` 的取值范围则会引发 :exc:`OverflowError`。"
286
299
287
- #: ../../c-api/long.rst:245
300
+ #: ../../c-api/long.rst:255
288
301
msgid ""
289
302
"Returns ``(size_t)-1`` on error. Use :c:func:`PyErr_Occurred` to "
290
303
"disambiguate."
291
304
msgstr "出错时返回 ``(size_t)-1`` ,请利用 :c:func:`PyErr_Occurred` 辨别具体问题。"
292
305
293
- #: ../../c-api/long.rst:254
306
+ #: ../../c-api/long.rst:264
294
307
msgid ""
295
308
"Return a C :c:expr:`unsigned long long` representation of *pylong*. "
296
309
"*pylong* must be an instance of :c:type:`PyLongObject`."
297
310
msgstr ""
298
311
"返回 *pylong* 的 C :c:expr:`unsigned long long` 表示形式。 *pylong* 必须是 "
299
312
":c:type:`PyLongObject` 的实例。"
300
313
301
- #: ../../c-api/long.rst:257
314
+ #: ../../c-api/long.rst:267
302
315
msgid ""
303
316
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for an "
304
317
":c:expr:`unsigned long long`."
305
318
msgstr ""
306
319
"如果 *pylong* 的值超出 :c:expr:`unsigned long long` 的取值范围则会引发 "
307
320
":exc:`OverflowError`。"
308
321
309
- #: ../../c-api/long.rst:260
322
+ #: ../../c-api/long.rst:270
310
323
msgid ""
311
324
"Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to"
312
325
" disambiguate."
313
326
msgstr "出错时返回 ``(unsigned long long)-1``,请利用 :c:func:`PyErr_Occurred` 辨别具体问题。"
314
327
315
- #: ../../c-api/long.rst:263
328
+ #: ../../c-api/long.rst:273
316
329
msgid ""
317
330
"A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`."
318
331
msgstr "现在 *pylong* 为负值会触发 :exc:`OverflowError`,而不是 :exc:`TypeError`。"
319
332
320
- #: ../../c-api/long.rst:269
333
+ #: ../../c-api/long.rst:279
321
334
msgid ""
322
335
"Return a C :c:expr:`unsigned long` representation of *obj*. If *obj* is not"
323
336
" an instance of :c:type:`PyLongObject`, first call its "
@@ -328,20 +341,20 @@ msgstr ""
328
341
":c:type:`PyLongObject` 的实例,则会先调用其 :meth:`~object.__index__` 方法(如果存在)将其转换为 "
329
342
":c:type:`PyLongObject`。"
330
343
331
- #: ../../c-api/long.rst:273
344
+ #: ../../c-api/long.rst:283
332
345
msgid ""
333
346
"If the value of *obj* is out of range for an :c:expr:`unsigned long`, return"
334
347
" the reduction of that value modulo ``ULONG_MAX + 1``."
335
348
msgstr ""
336
349
"如果 *obj* 的值超出了 :c:expr:`unsigned long` 的取值范围,则返回该值对 ``ULONG_MAX + 1`` 求模的余数。"
337
350
338
- #: ../../c-api/long.rst:276
351
+ #: ../../c-api/long.rst:286
339
352
msgid ""
340
353
"Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
341
354
"disambiguate."
342
355
msgstr "出错时返回 ``(unsigned long)-1``,请利用 :c:func:`PyErr_Occurred` 辨别具体问题。"
343
356
344
- #: ../../c-api/long.rst:288
357
+ #: ../../c-api/long.rst:298
345
358
msgid ""
346
359
"Return a C :c:expr:`unsigned long long` representation of *obj*. If *obj* "
347
360
"is not an instance of :c:type:`PyLongObject`, first call its "
@@ -352,40 +365,40 @@ msgstr ""
352
365
":c:type:`PyLongObject` 的实例,则会先调用其 :meth:`~object.__index__` 方法(如果存在)将其转换为 "
353
366
":c:type:`PyLongObject`。"
354
367
355
- #: ../../c-api/long.rst:293
368
+ #: ../../c-api/long.rst:303
356
369
msgid ""
357
370
"If the value of *obj* is out of range for an :c:expr:`unsigned long long`, "
358
371
"return the reduction of that value modulo ``ULLONG_MAX + 1``."
359
372
msgstr ""
360
373
"如果 *obj* 的值超出了 :c:expr:`unsigned long long` 的取值范围,则返回该值对 ``ULLONG_MAX + 1`` "
361
374
"求模的余数。"
362
375
363
- #: ../../c-api/long.rst:296
376
+ #: ../../c-api/long.rst:306
364
377
msgid ""
365
378
"Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` "
366
379
"to disambiguate."
367
380
msgstr "出错时返回 ``(unsigned long long)-1``,请利用 :c:func:`PyErr_Occurred` 辨别具体问题。"
368
381
369
- #: ../../c-api/long.rst:308
382
+ #: ../../c-api/long.rst:318
370
383
msgid ""
371
384
"Return a C :c:expr:`double` representation of *pylong*. *pylong* must be an"
372
385
" instance of :c:type:`PyLongObject`."
373
386
msgstr ""
374
387
"返回 *pylong* 的 C :c:expr:`double` 表示形式。 *pylong* 必须是 :c:type:`PyLongObject` "
375
388
"的实例。"
376
389
377
- #: ../../c-api/long.rst:311
390
+ #: ../../c-api/long.rst:321
378
391
msgid ""
379
392
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
380
393
":c:expr:`double`."
381
394
msgstr "如果 *pylong* 的值超出了 :c:expr:`double` 的取值范围则会引发 :exc:`OverflowError`。"
382
395
383
- #: ../../c-api/long.rst:314
396
+ #: ../../c-api/long.rst:324
384
397
msgid ""
385
398
"Returns ``-1.0`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
386
399
msgstr "出错时返回 ``-1.0`` ,请利用 :c:func:`PyErr_Occurred` 辨别具体问题。"
387
400
388
- #: ../../c-api/long.rst:319
401
+ #: ../../c-api/long.rst:329
389
402
msgid ""
390
403
"Convert a Python integer *pylong* to a C :c:expr:`void` pointer. If *pylong*"
391
404
" cannot be converted, an :exc:`OverflowError` will be raised. This is only "
@@ -396,12 +409,12 @@ msgstr ""
396
409
":exc:`OverflowError`。 这只是为了保证将通过 :c:func:`PyLong_FromVoidPtr` 创建的值产生一个可用的 "
397
410
":c:expr:`void` 指针。"
398
411
399
- #: ../../c-api/long.rst:324
412
+ #: ../../c-api/long.rst:334
400
413
msgid ""
401
414
"Returns ``NULL`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
402
415
msgstr "出错时返回 ``NULL``,请利用 :c:func:`PyErr_Occurred` 辨别具体问题。"
403
416
404
- #: ../../c-api/long.rst:329
417
+ #: ../../c-api/long.rst:339
405
418
msgid ""
406
419
"On success, return a read only :term:`named tuple`, that holds information "
407
420
"about Python's internal representation of integers. See :data:`sys.int_info`"
@@ -410,15 +423,15 @@ msgstr ""
410
423
"成功时,返回一个只读的 :term:`named tuple`,它保存着有关 Python 内部整数表示形式的信息。 请参阅 "
411
424
":data:`sys.int_info` 了解关于单独字段的描述。"
412
425
413
- #: ../../c-api/long.rst:333
426
+ #: ../../c-api/long.rst:343
414
427
msgid "On failure, return ``NULL`` with an exception set."
415
428
msgstr "当失败时,将返回 ``NULL`` 并设置一个异常。"
416
429
417
- #: ../../c-api/long.rst:340
430
+ #: ../../c-api/long.rst:350
418
431
msgid "Return 1 if *op* is compact, 0 otherwise."
419
432
msgstr "如果 *op* 为紧凑形式则返回 1,否则返回 0。"
420
433
421
- #: ../../c-api/long.rst:342
434
+ #: ../../c-api/long.rst:352
422
435
msgid ""
423
436
"This function makes it possible for performance-critical code to implement a"
424
437
" “fast path” for small integers. For compact values use "
@@ -431,23 +444,23 @@ msgstr ""
431
444
"<PyLong_AsSize_t>` 函数或者 :c:func:`调用 <PyObject_CallMethod>` "
432
445
":meth:`int.to_bytes`。"
433
446
434
- #: ../../c-api/long.rst:348
447
+ #: ../../c-api/long.rst:358
435
448
msgid "The speedup is expected to be negligible for most users."
436
449
msgstr "此项加速对于大多数用户来说是可以忽略的。"
437
450
438
- #: ../../c-api/long.rst:350
451
+ #: ../../c-api/long.rst:360
439
452
msgid ""
440
453
"Exactly what values are considered compact is an implementation detail and "
441
454
"is subject to change."
442
455
msgstr "具体有哪些值会被视为紧凑形式属于实现细节并可能发生改变。"
443
456
444
- #: ../../c-api/long.rst:355
457
+ #: ../../c-api/long.rst:368
445
458
msgid ""
446
459
"If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`, "
447
460
"return its value."
448
461
msgstr "如果 *op* 为紧凑形式,如 :c:func:`PyUnstable_Long_IsCompact` 所确定的,则返回它的值。"
449
462
450
- #: ../../c-api/long.rst:358
463
+ #: ../../c-api/long.rst:371
451
464
msgid "Otherwise, the return value is undefined."
452
465
msgstr "在其他情况下,返回值是未定义的。"
453
466
@@ -467,19 +480,19 @@ msgstr "integer"
467
480
msgid "LONG_MAX (C macro)"
468
481
msgstr "LONG_MAX (C 宏)"
469
482
470
- #: ../../c-api/long.rst:119 ../../c-api/long.rst:161 ../../c-api/long.rst:204
471
- #: ../../c-api/long.rst:219 ../../c-api/long.rst:235 ../../c-api/long.rst:251
483
+ #: ../../c-api/long.rst:119 ../../c-api/long.rst:171 ../../c-api/long.rst:214
484
+ #: ../../c-api/long.rst:229 ../../c-api/long.rst:245 ../../c-api/long.rst:261
472
485
msgid "OverflowError (built-in exception)"
473
486
msgstr "OverflowError (内置异常)"
474
487
475
- #: ../../c-api/long.rst:204
488
+ #: ../../c-api/long.rst:214
476
489
msgid "PY_SSIZE_T_MAX (C macro)"
477
490
msgstr "PY_SSIZE_T_MAX (C 宏)"
478
491
479
- #: ../../c-api/long.rst:219
492
+ #: ../../c-api/long.rst:229
480
493
msgid "ULONG_MAX (C macro)"
481
494
msgstr "ULONG_MAX (C 宏)"
482
495
483
- #: ../../c-api/long.rst:235
496
+ #: ../../c-api/long.rst:245
484
497
msgid "SIZE_MAX (C macro)"
485
498
msgstr "SIZE_MAX (C 宏)"
0 commit comments