Skip to content

Commit a3398e9

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent 0c7227f commit a3398e9

File tree

13 files changed

+1924
-1799
lines changed

13 files changed

+1924
-1799
lines changed

c-api/long.po

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
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 <[email protected]>, 2024\n"
2121
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -478,70 +478,70 @@ msgstr ""
478478
msgid ""
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``."
482482
msgstr ""
483483

484-
#: ../../c-api/long.rst:412
484+
#: ../../c-api/long.rst:413
485485
msgid ""
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."
488488
msgstr ""
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
495491
msgid ""
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::"
498494
msgstr ""
499495

500-
#: ../../c-api/long.rst:448
496+
#: ../../c-api/long.rst:447
501497
msgid ""
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."
505501
msgstr ""
506502

507-
#: ../../c-api/long.rst:453
503+
#: ../../c-api/long.rst:452
508504
msgid ""
509505
"Currently, ``-1`` corresponds to ``Py_ASNATIVEBYTES_NATIVE_ENDIAN | "
510506
"Py_ASNATIVEBYTES_UNSIGNED_BUFFER``."
511507
msgstr ""
512508

513-
#: ../../c-api/long.rst:457
509+
#: ../../c-api/long.rst:456
514510
msgid "Flag"
515511
msgstr "Sinalizador"
516512

517-
#: ../../c-api/long.rst:457
513+
#: ../../c-api/long.rst:456
518514
msgid "Value"
519515
msgstr "Valor"
520516

521-
#: ../../c-api/long.rst:459
517+
#: ../../c-api/long.rst:458
522518
msgid "``-1``"
523519
msgstr ""
524520

525-
#: ../../c-api/long.rst:460
521+
#: ../../c-api/long.rst:459
526522
msgid "``0``"
527523
msgstr "``0``"
528524

529-
#: ../../c-api/long.rst:461
525+
#: ../../c-api/long.rst:460
530526
msgid "``1``"
531527
msgstr "``1``"
532528

533-
#: ../../c-api/long.rst:462
529+
#: ../../c-api/long.rst:461
534530
msgid "``3``"
535531
msgstr "``3``"
536532

537-
#: ../../c-api/long.rst:463
533+
#: ../../c-api/long.rst:462
538534
msgid "``4``"
539535
msgstr "``4``"
540536

541-
#: ../../c-api/long.rst:464
537+
#: ../../c-api/long.rst:463
542538
msgid "``8``"
543539
msgstr "``8``"
544540

541+
#: ../../c-api/long.rst:464
542+
msgid "``16``"
543+
msgstr ""
544+
545545
#: ../../c-api/long.rst:467
546546
msgid ""
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."
574574
msgstr ""
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
577587
msgid ""
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."
582592
msgstr ""
583593

584-
#: ../../c-api/long.rst:499
594+
#: ../../c-api/long.rst:506
585595
msgid "Return 1 if *op* is compact, 0 otherwise."
586596
msgstr ""
587597

588-
#: ../../c-api/long.rst:501
598+
#: ../../c-api/long.rst:508
589599
msgid ""
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`."
594604
msgstr ""
595605

596-
#: ../../c-api/long.rst:507
606+
#: ../../c-api/long.rst:514
597607
msgid "The speedup is expected to be negligible for most users."
598608
msgstr ""
599609

600-
#: ../../c-api/long.rst:509
610+
#: ../../c-api/long.rst:516
601611
msgid ""
602612
"Exactly what values are considered compact is an implementation detail and "
603613
"is subject to change."
604614
msgstr ""
605615

606-
#: ../../c-api/long.rst:514
616+
#: ../../c-api/long.rst:521
607617
msgid ""
608618
"If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`, "
609619
"return its value."
610620
msgstr ""
611621

612-
#: ../../c-api/long.rst:517
622+
#: ../../c-api/long.rst:524
613623
msgid "Otherwise, the return value is undefined."
614624
msgstr ""
615625

c-api/typeobj.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ msgid ""
1717
msgstr ""
1818
"Project-Id-Version: Python 3.13\n"
1919
"Report-Msgid-Bugs-To: \n"
20-
"POT-Creation-Date: 2024-06-21 14:14+0000\n"
20+
"POT-Creation-Date: 2024-07-05 14:16+0000\n"
2121
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
2222
"Last-Translator: Pedro Fonini, 2024\n"
2323
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -2462,7 +2462,7 @@ msgstr ""
24622462
#: ../../c-api/typeobj.rst:1594
24632463
msgid ""
24642464
"It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit "
2465-
"and :c:member:`~PyTypeObject.tp_weaklist`."
2465+
"and :c:member:`~PyTypeObject.tp_weaklistoffset`."
24662466
msgstr ""
24672467

24682468
#: ../../c-api/typeobj.rst:1599
@@ -2477,7 +2477,7 @@ msgstr ""
24772477
#: ../../c-api/typeobj.rst:1606
24782478
msgid ""
24792479
"If the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit is set in the :c:member:"
2480-
"`~PyTypeObject.tp_dict` field, then :c:member:`~PyTypeObject."
2480+
"`~PyTypeObject.tp_flags` field, then :c:member:`~PyTypeObject."
24812481
"tp_weaklistoffset` will be set to a negative value, to indicate that it is "
24822482
"unsafe to use this field."
24832483
msgstr ""

0 commit comments

Comments
 (0)