@@ -16,7 +16,7 @@ msgid ""
16
16
msgstr ""
17
17
"Project-Id-Version : Python 3.12\n "
18
18
"Report-Msgid-Bugs-To : \n "
19
- "POT-Creation-Date : 2023-08-04 14:13+0000\n "
19
+ "POT-Creation-Date : 2023-10-20 14:13+0000\n "
20
20
"PO-Revision-Date : 2021-06-28 00:49+0000\n "
21
21
"Last-Translator : Rodrigo Cândido, 2022\n "
22
22
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -566,19 +566,19 @@ msgid ""
566
566
"following fields:"
567
567
msgstr ""
568
568
569
- #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:657
569
+ #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:658
570
570
msgid "Field"
571
571
msgstr "Campo"
572
572
573
- #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:657
573
+ #: ../../c-api/memory.rst:411 ../../c-api/memory.rst:658
574
574
msgid "Meaning"
575
575
msgstr "Significado"
576
576
577
- #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:659
577
+ #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:660
578
578
msgid "``void *ctx``"
579
579
msgstr "``void *ctx``"
580
580
581
- #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:659
581
+ #: ../../c-api/memory.rst:413 ../../c-api/memory.rst:660
582
582
msgid "user context passed as first argument"
583
583
msgstr ""
584
584
@@ -947,119 +947,119 @@ msgstr ""
947
947
msgid ""
948
948
"Python has a *pymalloc* allocator optimized for small objects (smaller or "
949
949
"equal to 512 bytes) with a short lifetime. It uses memory mappings called "
950
- "\" arenas\" with a fixed size of 256 KiB. It falls back to :c:func: "
951
- "`PyMem_RawMalloc` and :c:func:`PyMem_RawRealloc` for allocations larger than "
952
- "512 bytes."
950
+ "\" arenas\" with a fixed size of either 256 KiB on 32-bit platforms or 1 MiB "
951
+ "on 64-bit platforms. It falls back to :c:func:`PyMem_RawMalloc` and :c:func: "
952
+ "`PyMem_RawRealloc` for allocations larger than 512 bytes."
953
953
msgstr ""
954
954
955
- #: ../../c-api/memory.rst:632
955
+ #: ../../c-api/memory.rst:633
956
956
msgid ""
957
957
"*pymalloc* is the :ref:`default allocator <default-memory-allocators>` of "
958
958
"the :c:macro:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) and :c:macro:"
959
959
"`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains."
960
960
msgstr ""
961
961
962
- #: ../../c-api/memory.rst:636
962
+ #: ../../c-api/memory.rst:637
963
963
msgid "The arena allocator uses the following functions:"
964
964
msgstr ""
965
965
966
- #: ../../c-api/memory.rst:638
966
+ #: ../../c-api/memory.rst:639
967
967
msgid ":c:func:`!VirtualAlloc` and :c:func:`!VirtualFree` on Windows,"
968
968
msgstr ""
969
969
970
- #: ../../c-api/memory.rst:639
970
+ #: ../../c-api/memory.rst:640
971
971
msgid ":c:func:`!mmap` and :c:func:`!munmap` if available,"
972
972
msgstr ""
973
973
974
- #: ../../c-api/memory.rst:640
974
+ #: ../../c-api/memory.rst:641
975
975
msgid ":c:func:`malloc` and :c:func:`free` otherwise."
976
976
msgstr ":c:func:`malloc` e :c:func:`free` do contrário."
977
977
978
- #: ../../c-api/memory.rst:642
978
+ #: ../../c-api/memory.rst:643
979
979
msgid ""
980
980
"This allocator is disabled if Python is configured with the :option:`--"
981
981
"without-pymalloc` option. It can also be disabled at runtime using the :"
982
982
"envvar:`PYTHONMALLOC` environment variable (ex: ``PYTHONMALLOC=malloc``)."
983
983
msgstr ""
984
984
985
- #: ../../c-api/memory.rst:647
985
+ #: ../../c-api/memory.rst:648
986
986
msgid "Customize pymalloc Arena Allocator"
987
987
msgstr ""
988
988
989
- #: ../../c-api/memory.rst:653
989
+ #: ../../c-api/memory.rst:654
990
990
msgid ""
991
991
"Structure used to describe an arena allocator. The structure has three "
992
992
"fields:"
993
993
msgstr ""
994
994
995
- #: ../../c-api/memory.rst:661
995
+ #: ../../c-api/memory.rst:662
996
996
msgid "``void* alloc(void *ctx, size_t size)``"
997
997
msgstr "``void* alloc(void *ctx, size_t size)``"
998
998
999
- #: ../../c-api/memory.rst:661
999
+ #: ../../c-api/memory.rst:662
1000
1000
msgid "allocate an arena of size bytes"
1001
1001
msgstr ""
1002
1002
1003
- #: ../../c-api/memory.rst:663
1003
+ #: ../../c-api/memory.rst:664
1004
1004
msgid "``void free(void *ctx, void *ptr, size_t size)``"
1005
1005
msgstr ""
1006
1006
1007
- #: ../../c-api/memory.rst:663
1007
+ #: ../../c-api/memory.rst:664
1008
1008
msgid "free an arena"
1009
1009
msgstr ""
1010
1010
1011
- #: ../../c-api/memory.rst:668
1011
+ #: ../../c-api/memory.rst:669
1012
1012
msgid "Get the arena allocator."
1013
1013
msgstr ""
1014
1014
1015
- #: ../../c-api/memory.rst:672
1015
+ #: ../../c-api/memory.rst:673
1016
1016
msgid "Set the arena allocator."
1017
1017
msgstr ""
1018
1018
1019
- #: ../../c-api/memory.rst:676
1019
+ #: ../../c-api/memory.rst:677
1020
1020
msgid "tracemalloc C API"
1021
1021
msgstr ""
1022
1022
1023
- #: ../../c-api/memory.rst:682
1023
+ #: ../../c-api/memory.rst:683
1024
1024
msgid "Track an allocated memory block in the :mod:`tracemalloc` module."
1025
1025
msgstr ""
1026
1026
1027
- #: ../../c-api/memory.rst:684
1027
+ #: ../../c-api/memory.rst:685
1028
1028
msgid ""
1029
1029
"Return ``0`` on success, return ``-1`` on error (failed to allocate memory "
1030
1030
"to store the trace). Return ``-2`` if tracemalloc is disabled."
1031
1031
msgstr ""
1032
1032
1033
- #: ../../c-api/memory.rst:687
1033
+ #: ../../c-api/memory.rst:688
1034
1034
msgid "If memory block is already tracked, update the existing trace."
1035
1035
msgstr ""
1036
1036
1037
- #: ../../c-api/memory.rst:691
1037
+ #: ../../c-api/memory.rst:692
1038
1038
msgid ""
1039
1039
"Untrack an allocated memory block in the :mod:`tracemalloc` module. Do "
1040
1040
"nothing if the block was not tracked."
1041
1041
msgstr ""
1042
1042
1043
- #: ../../c-api/memory.rst:694
1043
+ #: ../../c-api/memory.rst:695
1044
1044
msgid "Return ``-2`` if tracemalloc is disabled, otherwise return ``0``."
1045
1045
msgstr ""
1046
1046
1047
- #: ../../c-api/memory.rst:700
1047
+ #: ../../c-api/memory.rst:701
1048
1048
msgid "Examples"
1049
1049
msgstr "Exemplos"
1050
1050
1051
- #: ../../c-api/memory.rst:702
1051
+ #: ../../c-api/memory.rst:703
1052
1052
msgid ""
1053
1053
"Here is the example from section :ref:`memoryoverview`, rewritten so that "
1054
1054
"the I/O buffer is allocated from the Python heap by using the first function "
1055
1055
"set::"
1056
1056
msgstr ""
1057
1057
1058
- #: ../../c-api/memory.rst:715
1058
+ #: ../../c-api/memory.rst:716
1059
1059
msgid "The same code using the type-oriented function set::"
1060
1060
msgstr ""
1061
1061
1062
- #: ../../c-api/memory.rst:727
1062
+ #: ../../c-api/memory.rst:728
1063
1063
msgid ""
1064
1064
"Note that in the two examples above, the buffer is always manipulated via "
1065
1065
"functions belonging to the same set. Indeed, it is required to use the same "
@@ -1069,14 +1069,14 @@ msgid ""
1069
1069
"different allocators operating on different heaps. ::"
1070
1070
msgstr ""
1071
1071
1072
- #: ../../c-api/memory.rst:742
1072
+ #: ../../c-api/memory.rst:743
1073
1073
msgid ""
1074
1074
"In addition to the functions aimed at handling raw memory blocks from the "
1075
1075
"Python heap, objects in Python are allocated and released with :c:macro:"
1076
1076
"`PyObject_New`, :c:macro:`PyObject_NewVar` and :c:func:`PyObject_Del`."
1077
1077
msgstr ""
1078
1078
1079
- #: ../../c-api/memory.rst:746
1079
+ #: ../../c-api/memory.rst:747
1080
1080
msgid ""
1081
1081
"These will be explained in the next chapter on defining and implementing new "
1082
1082
"object types in C."
0 commit comments