@@ -15,7 +15,7 @@ msgid ""
1515msgstr ""
1616"Project-Id-Version : Python 3.13\n "
1717"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 "
1919"PO-Revision-Date : 2021-06-28 00:49+0000\n "
2020"Last-Translator : Welington Carlos <wcarlos3@gmail.com>, 2024\n "
2121"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -478,70 +478,70 @@ msgstr ""
478478msgid ""
479479"Passing zero to *n_bytes* will return the size of a buffer that would be "
480480"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``. "
482482msgstr ""
483483
484- #: ../../c-api/long.rst:412
484+ #: ../../c-api/long.rst:413
485485msgid ""
486486"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."
488488msgstr ""
489489
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
495491msgid ""
496492"To get at the entire Python value of an unknown size, the function can be "
497493"called twice: first to determine the buffer size, then to fill it::"
498494msgstr ""
499495
500- #: ../../c-api/long.rst:448
496+ #: ../../c-api/long.rst:447
501497msgid ""
502498"*flags* is either ``-1`` (``Py_ASNATIVEBYTES_DEFAULTS``) to select defaults "
503499"that behave most like a C cast, or a combintation of the other flags in the "
504500"table below. Note that ``-1`` cannot be combined with other flags."
505501msgstr ""
506502
507- #: ../../c-api/long.rst:453
503+ #: ../../c-api/long.rst:452
508504msgid ""
509505"Currently, ``-1`` corresponds to ``Py_ASNATIVEBYTES_NATIVE_ENDIAN | "
510506"Py_ASNATIVEBYTES_UNSIGNED_BUFFER``."
511507msgstr ""
512508
513- #: ../../c-api/long.rst:457
509+ #: ../../c-api/long.rst:456
514510msgid "Flag"
515511msgstr "Sinalizador"
516512
517- #: ../../c-api/long.rst:457
513+ #: ../../c-api/long.rst:456
518514msgid "Value"
519515msgstr "Valor"
520516
521- #: ../../c-api/long.rst:459
517+ #: ../../c-api/long.rst:458
522518msgid "``-1``"
523519msgstr ""
524520
525- #: ../../c-api/long.rst:460
521+ #: ../../c-api/long.rst:459
526522msgid "``0``"
527523msgstr "``0``"
528524
529- #: ../../c-api/long.rst:461
525+ #: ../../c-api/long.rst:460
530526msgid "``1``"
531527msgstr "``1``"
532528
533- #: ../../c-api/long.rst:462
529+ #: ../../c-api/long.rst:461
534530msgid "``3``"
535531msgstr "``3``"
536532
537- #: ../../c-api/long.rst:463
533+ #: ../../c-api/long.rst:462
538534msgid "``4``"
539535msgstr "``4``"
540536
541- #: ../../c-api/long.rst:464
537+ #: ../../c-api/long.rst:463
542538msgid "``8``"
543539msgstr "``8``"
544540
541+ #: ../../c-api/long.rst:464
542+ msgid "``16``"
543+ msgstr ""
544+
545545#: ../../c-api/long.rst:467
546546msgid ""
547547"Specifying ``Py_ASNATIVEBYTES_NATIVE_ENDIAN`` will override any other endian "
@@ -573,43 +573,53 @@ msgid ""
573573"of whether ``Py_ASNATIVEBYTES_UNSIGNED_BUFFER`` was specified."
574574msgstr ""
575575
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
577587msgid ""
578588"With the default *flags* (``-1``, or *UNSIGNED_BUFFER* without "
579589"*REJECT_NEGATIVE*), multiple Python integers can map to a single value "
580590"without overflow. For example, both ``255`` and ``-1`` fit a single-byte "
581591"buffer and set all its bits. This matches typical C cast behavior."
582592msgstr ""
583593
584- #: ../../c-api/long.rst:499
594+ #: ../../c-api/long.rst:506
585595msgid "Return 1 if *op* is compact, 0 otherwise."
586596msgstr ""
587597
588- #: ../../c-api/long.rst:501
598+ #: ../../c-api/long.rst:508
589599msgid ""
590600"This function makes it possible for performance-critical code to implement a "
591601"“fast path” for small integers. For compact values use :c:func:"
592602"`PyUnstable_Long_CompactValue`; for others fall back to a :c:func:"
593603"`PyLong_As* <PyLong_AsSize_t>` function or :c:func:`PyLong_AsNativeBytes`."
594604msgstr ""
595605
596- #: ../../c-api/long.rst:507
606+ #: ../../c-api/long.rst:514
597607msgid "The speedup is expected to be negligible for most users."
598608msgstr ""
599609
600- #: ../../c-api/long.rst:509
610+ #: ../../c-api/long.rst:516
601611msgid ""
602612"Exactly what values are considered compact is an implementation detail and "
603613"is subject to change."
604614msgstr ""
605615
606- #: ../../c-api/long.rst:514
616+ #: ../../c-api/long.rst:521
607617msgid ""
608618"If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`, "
609619"return its value."
610620msgstr ""
611621
612- #: ../../c-api/long.rst:517
622+ #: ../../c-api/long.rst:524
613623msgid "Otherwise, the return value is undefined."
614624msgstr ""
615625
0 commit comments