@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.13\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2024-05-11 02:33 +0000\n "
18
+ "POT-Creation-Date : 2024-07-05 14:16 +0000\n "
19
19
"PO-Revision-Date : 2021-06-28 00:49+0000\n "
20
20
"
Last-Translator :
Welington Carlos <[email protected] >, 2024\n "
21
21
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -478,70 +478,70 @@ msgstr ""
478
478
msgid ""
479
479
"Passing zero to *n_bytes* will return the size of a buffer that would be "
480
480
"large enough to hold the value. This may be larger than technically "
481
- "necessary, but not unreasonably so."
481
+ "necessary, but not unreasonably so. If *n_bytes=0*, *buffer* may be ``NULL``. "
482
482
msgstr ""
483
483
484
- #: ../../c-api/long.rst:412
484
+ #: ../../c-api/long.rst:413
485
485
msgid ""
486
486
"Passing *n_bytes=0* to this function is not an accurate way to determine the "
487
- "bit length of a value."
487
+ "bit length of the value."
488
488
msgstr ""
489
489
490
- #: ../../c-api/long.rst:415
491
- msgid "If *n_bytes=0*, *buffer* may be ``NULL``."
492
- msgstr ""
493
-
494
- #: ../../c-api/long.rst:417
490
+ #: ../../c-api/long.rst:416
495
491
msgid ""
496
492
"To get at the entire Python value of an unknown size, the function can be "
497
493
"called twice: first to determine the buffer size, then to fill it::"
498
494
msgstr ""
499
495
500
- #: ../../c-api/long.rst:448
496
+ #: ../../c-api/long.rst:447
501
497
msgid ""
502
498
"*flags* is either ``-1`` (``Py_ASNATIVEBYTES_DEFAULTS``) to select defaults "
503
499
"that behave most like a C cast, or a combintation of the other flags in the "
504
500
"table below. Note that ``-1`` cannot be combined with other flags."
505
501
msgstr ""
506
502
507
- #: ../../c-api/long.rst:453
503
+ #: ../../c-api/long.rst:452
508
504
msgid ""
509
505
"Currently, ``-1`` corresponds to ``Py_ASNATIVEBYTES_NATIVE_ENDIAN | "
510
506
"Py_ASNATIVEBYTES_UNSIGNED_BUFFER``."
511
507
msgstr ""
512
508
513
- #: ../../c-api/long.rst:457
509
+ #: ../../c-api/long.rst:456
514
510
msgid "Flag"
515
511
msgstr "Sinalizador"
516
512
517
- #: ../../c-api/long.rst:457
513
+ #: ../../c-api/long.rst:456
518
514
msgid "Value"
519
515
msgstr "Valor"
520
516
521
- #: ../../c-api/long.rst:459
517
+ #: ../../c-api/long.rst:458
522
518
msgid "``-1``"
523
519
msgstr ""
524
520
525
- #: ../../c-api/long.rst:460
521
+ #: ../../c-api/long.rst:459
526
522
msgid "``0``"
527
523
msgstr "``0``"
528
524
529
- #: ../../c-api/long.rst:461
525
+ #: ../../c-api/long.rst:460
530
526
msgid "``1``"
531
527
msgstr "``1``"
532
528
533
- #: ../../c-api/long.rst:462
529
+ #: ../../c-api/long.rst:461
534
530
msgid "``3``"
535
531
msgstr "``3``"
536
532
537
- #: ../../c-api/long.rst:463
533
+ #: ../../c-api/long.rst:462
538
534
msgid "``4``"
539
535
msgstr "``4``"
540
536
541
- #: ../../c-api/long.rst:464
537
+ #: ../../c-api/long.rst:463
542
538
msgid "``8``"
543
539
msgstr "``8``"
544
540
541
+ #: ../../c-api/long.rst:464
542
+ msgid "``16``"
543
+ msgstr ""
544
+
545
545
#: ../../c-api/long.rst:467
546
546
msgid ""
547
547
"Specifying ``Py_ASNATIVEBYTES_NATIVE_ENDIAN`` will override any other endian "
@@ -573,43 +573,53 @@ msgid ""
573
573
"of whether ``Py_ASNATIVEBYTES_UNSIGNED_BUFFER`` was specified."
574
574
msgstr ""
575
575
576
- #: ../../c-api/long.rst:488
576
+ #: ../../c-api/long.rst:486
577
+ msgid ""
578
+ "If ``Py_ASNATIVEBYTES_ALLOW_INDEX`` is specified and a non-integer value is "
579
+ "passed, its :meth:`~object.__index__` method will be called first. This may "
580
+ "result in Python code executing and other threads being allowed to run, "
581
+ "which could cause changes to other objects or values in use. When *flags* is "
582
+ "``-1``, this option is not set, and non-integer values will raise :exc:"
583
+ "`TypeError`."
584
+ msgstr ""
585
+
586
+ #: ../../c-api/long.rst:495
577
587
msgid ""
578
588
"With the default *flags* (``-1``, or *UNSIGNED_BUFFER* without "
579
589
"*REJECT_NEGATIVE*), multiple Python integers can map to a single value "
580
590
"without overflow. For example, both ``255`` and ``-1`` fit a single-byte "
581
591
"buffer and set all its bits. This matches typical C cast behavior."
582
592
msgstr ""
583
593
584
- #: ../../c-api/long.rst:499
594
+ #: ../../c-api/long.rst:506
585
595
msgid "Return 1 if *op* is compact, 0 otherwise."
586
596
msgstr ""
587
597
588
- #: ../../c-api/long.rst:501
598
+ #: ../../c-api/long.rst:508
589
599
msgid ""
590
600
"This function makes it possible for performance-critical code to implement a "
591
601
"“fast path” for small integers. For compact values use :c:func:"
592
602
"`PyUnstable_Long_CompactValue`; for others fall back to a :c:func:"
593
603
"`PyLong_As* <PyLong_AsSize_t>` function or :c:func:`PyLong_AsNativeBytes`."
594
604
msgstr ""
595
605
596
- #: ../../c-api/long.rst:507
606
+ #: ../../c-api/long.rst:514
597
607
msgid "The speedup is expected to be negligible for most users."
598
608
msgstr ""
599
609
600
- #: ../../c-api/long.rst:509
610
+ #: ../../c-api/long.rst:516
601
611
msgid ""
602
612
"Exactly what values are considered compact is an implementation detail and "
603
613
"is subject to change."
604
614
msgstr ""
605
615
606
- #: ../../c-api/long.rst:514
616
+ #: ../../c-api/long.rst:521
607
617
msgid ""
608
618
"If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`, "
609
619
"return its value."
610
620
msgstr ""
611
621
612
- #: ../../c-api/long.rst:517
622
+ #: ../../c-api/long.rst:524
613
623
msgid "Otherwise, the return value is undefined."
614
624
msgstr ""
615
625
0 commit comments