Skip to content

Commit 3f7d1e5

Browse files
author
github-actions
committed
Merge 3.13 into 2.7
1 parent 5799a7f commit 3f7d1e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+20031
-14639
lines changed

c-api/gcsupport.po

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ msgstr "Suporte a Coleta de Lixo Cíclica"
2525
#: ../../c-api/gcsupport.rst:8
2626
msgid ""
2727
"Python's support for detecting and collecting garbage which involves "
28-
"circular references requires support from object types which are \"containers"
29-
"\" for other objects which may also be containers. Types which do not store "
30-
"references to other objects, or which only store references to atomic types "
31-
"(such as numbers or strings), do not need to provide any explicit support "
32-
"for garbage collection."
33-
msgstr ""
28+
"circular references requires support from object types which are "
29+
"\"containers\" for other objects which may also be containers. Types which "
30+
"do not store references to other objects, or which only store references to "
31+
"atomic types (such as numbers or strings), do not need to provide any "
32+
"explicit support for garbage collection."
33+
msgstr ""
34+
"O suporte do Python para detectar e coletar o lixo, que envolve referencias "
35+
"circulares, requer suporte dos tipos de objetos que são \"contêiners\" para "
36+
"outros objetos que também podem ser contêiners. Tipos que não armazenam "
37+
"referências a outros tipos de objetos, ou que apenas armazenam referências a "
38+
"tipos atômicos (como números ou strings), não precisam fornecer nenhum "
39+
"suporte explicito para coleta de lixo."
3440

3541
#: ../../c-api/gcsupport.rst:18
3642
msgid ""
@@ -124,17 +130,23 @@ msgid ""
124130
"Similarly, the deallocator for the object must conform to a similar pair of "
125131
"rules:"
126132
msgstr ""
133+
"Da mesma forma, o desalocador para o objeto deve estar em conformidade com "
134+
"regras semelhantes:"
127135

128136
#: ../../c-api/gcsupport.rst:83
129137
msgid ""
130138
"Before fields which refer to other containers are invalidated, :c:func:"
131139
"`PyObject_GC_UnTrack` must be called."
132140
msgstr ""
141+
"Antes que os campos que fazer referência a outros containers sejam "
142+
"invalidados, :c:func:`PyObject_GC_UnTrack` deve ser chamado."
133143

134144
#: ../../c-api/gcsupport.rst:86
135145
msgid ""
136146
"The object's memory must be deallocated using :c:func:`PyObject_GC_Del`."
137147
msgstr ""
148+
"A memória destinada ao objeto deve ser desalocada usando :c:func:"
149+
"`PyObject_GC_Del`."
138150

139151
#: ../../c-api/gcsupport.rst:91
140152
msgid ""

c-api/init.po

Lines changed: 231 additions & 221 deletions
Large diffs are not rendered by default.

c-api/memory.po

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ msgstr ""
1010
"POT-Creation-Date: 2020-02-09 18:46+0900\n"
1111
"PO-Revision-Date: 2018-06-20 04:47+0000\n"
1212
"Last-Translator: tomo\n"
13-
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/python-doc/python-27/language/pt_BR/)\n"
13+
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/python-doc/"
14+
"python-27/language/pt_BR/)\n"
1415
"Language: pt_BR\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
@@ -53,21 +54,21 @@ msgid ""
5354
"It is important to understand that the management of the Python heap is "
5455
"performed by the interpreter itself and that the user has no control over "
5556
"it, even if they regularly manipulate object pointers to memory blocks "
56-
"inside that heap. The allocation of heap space for Python objects and other"
57-
" internal buffers is performed on demand by the Python memory manager "
58-
"through the Python/C API functions listed in this document."
57+
"inside that heap. The allocation of heap space for Python objects and other "
58+
"internal buffers is performed on demand by the Python memory manager through "
59+
"the Python/C API functions listed in this document."
5960
msgstr ""
6061

6162
#: ../../c-api/memory.rst:49
6263
msgid ""
63-
"To avoid memory corruption, extension writers should never try to operate on"
64-
" Python objects with the functions exported by the C library: "
65-
":c:func:`malloc`, :c:func:`calloc`, :c:func:`realloc` and :c:func:`free`. "
66-
"This will result in mixed calls between the C allocator and the Python "
67-
"memory manager with fatal consequences, because they implement different "
68-
"algorithms and operate on different heaps. However, one may safely allocate"
69-
" and release memory blocks with the C library allocator for individual "
70-
"purposes, as shown in the following example::"
64+
"To avoid memory corruption, extension writers should never try to operate on "
65+
"Python objects with the functions exported by the C library: :c:func:"
66+
"`malloc`, :c:func:`calloc`, :c:func:`realloc` and :c:func:`free`. This will "
67+
"result in mixed calls between the C allocator and the Python memory manager "
68+
"with fatal consequences, because they implement different algorithms and "
69+
"operate on different heaps. However, one may safely allocate and release "
70+
"memory blocks with the C library allocator for individual purposes, as shown "
71+
"in the following example::"
7172
msgstr ""
7273

7374
#: ../../c-api/memory.rst:68
@@ -84,8 +85,8 @@ msgid ""
8485
"memory manager. For example, this is required when the interpreter is "
8586
"extended with new object types written in C. Another reason for using the "
8687
"Python heap is the desire to *inform* the Python memory manager about the "
87-
"memory needs of the extension module. Even when the requested memory is used"
88-
" exclusively for internal, highly-specific purposes, delegating all memory "
88+
"memory needs of the extension module. Even when the requested memory is used "
89+
"exclusively for internal, highly-specific purposes, delegating all memory "
8990
"requests to the Python memory manager causes the interpreter to have a more "
9091
"accurate image of its memory footprint as a whole. Consequently, under "
9192
"certain circumstances, the Python memory manager may or may not trigger "
@@ -102,25 +103,25 @@ msgstr "Interface da Memória"
102103
#: ../../c-api/memory.rst:92
103104
msgid ""
104105
"The following function sets, modeled after the ANSI C standard, but "
105-
"specifying behavior when requesting zero bytes, are available for allocating"
106-
" and releasing memory from the Python heap:"
106+
"specifying behavior when requesting zero bytes, are available for allocating "
107+
"and releasing memory from the Python heap:"
107108
msgstr ""
108109

109110
#: ../../c-api/memory.rst:99
110111
msgid ""
111112
"Allocates *n* bytes and returns a pointer of type :c:type:`void\\*` to the "
112113
"allocated memory, or *NULL* if the request fails. Requesting zero bytes "
113-
"returns a distinct non-*NULL* pointer if possible, as if ``PyMem_Malloc(1)``"
114-
" had been called instead. The memory will not have been initialized in any "
114+
"returns a distinct non-*NULL* pointer if possible, as if ``PyMem_Malloc(1)`` "
115+
"had been called instead. The memory will not have been initialized in any "
115116
"way."
116117
msgstr ""
117118

118119
#: ../../c-api/memory.rst:107
119120
msgid ""
120121
"Resizes the memory block pointed to by *p* to *n* bytes. The contents will "
121122
"be unchanged to the minimum of the old and the new sizes. If *p* is *NULL*, "
122-
"the call is equivalent to ``PyMem_Malloc(n)``; else if *n* is equal to zero,"
123-
" the memory block is resized but is not freed, and the returned pointer is "
123+
"the call is equivalent to ``PyMem_Malloc(n)``; else if *n* is equal to zero, "
124+
"the memory block is resized but is not freed, and the returned pointer is "
124125
"non-*NULL*. Unless *p* is *NULL*, it must have been returned by a previous "
125126
"call to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. If the request "
126127
"fails, :c:func:`PyMem_Realloc` returns *NULL* and *p* remains a valid "
@@ -129,16 +130,16 @@ msgstr ""
129130

130131
#: ../../c-api/memory.rst:119
131132
msgid ""
132-
"Frees the memory block pointed to by *p*, which must have been returned by a"
133-
" previous call to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. "
133+
"Frees the memory block pointed to by *p*, which must have been returned by a "
134+
"previous call to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. "
134135
"Otherwise, or if ``PyMem_Free(p)`` has been called before, undefined "
135136
"behavior occurs. If *p* is *NULL*, no operation is performed."
136137
msgstr ""
137138

138139
#: ../../c-api/memory.rst:124
139140
msgid ""
140-
"The following type-oriented macros are provided for convenience. Note that"
141-
" *TYPE* refers to any C type."
141+
"The following type-oriented macros are provided for convenience. Note that "
142+
"*TYPE* refers to any C type."
142143
msgstr ""
143144

144145
#: ../../c-api/memory.rst:130
@@ -152,8 +153,8 @@ msgstr ""
152153
msgid ""
153154
"Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n * "
154155
"sizeof(TYPE))`` bytes. Returns a pointer cast to :c:type:`TYPE\\*`. On "
155-
"return, *p* will be a pointer to the new memory area, or *NULL* in the event"
156-
" of failure. This is a C preprocessor macro; p is always reassigned. Save "
156+
"return, *p* will be a pointer to the new memory area, or *NULL* in the event "
157+
"of failure. This is a C preprocessor macro; p is always reassigned. Save "
157158
"the original value of p to avoid losing memory when handling errors."
158159
msgstr ""
159160

@@ -179,13 +180,13 @@ msgstr ""
179180

180181
#: ../../c-api/memory.rst:159
181182
msgid "Object allocators"
182-
msgstr ""
183+
msgstr "Alocadores de objeto"
183184

184185
#: ../../c-api/memory.rst:161
185186
msgid ""
186187
"The following function sets, modeled after the ANSI C standard, but "
187-
"specifying behavior when requesting zero bytes, are available for allocating"
188-
" and releasing memory from the Python heap."
188+
"specifying behavior when requesting zero bytes, are available for allocating "
189+
"and releasing memory from the Python heap."
189190
msgstr ""
190191

191192
#: ../../c-api/memory.rst:165
@@ -227,9 +228,9 @@ msgstr ""
227228

228229
#: ../../c-api/memory.rst:191
229230
msgid ""
230-
"Unless *p* is *NULL*, it must have been returned by a previous call to "
231-
":c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or "
232-
":c:func:`PyObject_Calloc`."
231+
"Unless *p* is *NULL*, it must have been returned by a previous call to :c:"
232+
"func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:func:"
233+
"`PyObject_Calloc`."
233234
msgstr ""
234235

235236
#: ../../c-api/memory.rst:194
@@ -240,9 +241,9 @@ msgstr ""
240241

241242
#: ../../c-api/memory.rst:200
242243
msgid ""
243-
"Frees the memory block pointed to by *p*, which must have been returned by a"
244-
" previous call to :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or "
245-
":c:func:`PyObject_Calloc`. Otherwise, or if ``PyObject_Free(p)`` has been "
244+
"Frees the memory block pointed to by *p*, which must have been returned by a "
245+
"previous call to :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:"
246+
"func:`PyObject_Calloc`. Otherwise, or if ``PyObject_Free(p)`` has been "
246247
"called before, undefined behavior occurs."
247248
msgstr ""
248249

@@ -306,8 +307,8 @@ msgstr ":c:func:`malloc` e :c:func:`free` do contrário."
306307

307308
#: ../../c-api/memory.rst:235
308309
msgid ""
309-
"The threshold changed from 256 to 512 bytes. The arena allocator now uses "
310-
":c:func:`mmap` if available."
310+
"The threshold changed from 256 to 512 bytes. The arena allocator now uses :c:"
311+
"func:`mmap` if available."
311312
msgstr ""
312313

313314
#: ../../c-api/memory.rst:243
@@ -317,8 +318,8 @@ msgstr "Exemplos"
317318
#: ../../c-api/memory.rst:245
318319
msgid ""
319320
"Here is the example from section :ref:`memoryoverview`, rewritten so that "
320-
"the I/O buffer is allocated from the Python heap by using the first function"
321-
" set::"
321+
"the I/O buffer is allocated from the Python heap by using the first function "
322+
"set::"
322323
msgstr ""
323324

324325
#: ../../c-api/memory.rst:258
@@ -331,20 +332,19 @@ msgid ""
331332
"functions belonging to the same set. Indeed, it is required to use the same "
332333
"memory API family for a given memory block, so that the risk of mixing "
333334
"different allocators is reduced to a minimum. The following code sequence "
334-
"contains two errors, one of which is labeled as *fatal* because it mixes two"
335-
" different allocators operating on different heaps. ::"
335+
"contains two errors, one of which is labeled as *fatal* because it mixes two "
336+
"different allocators operating on different heaps. ::"
336337
msgstr ""
337338

338339
#: ../../c-api/memory.rst:285
339340
msgid ""
340341
"In addition to the functions aimed at handling raw memory blocks from the "
341-
"Python heap, objects in Python are allocated and released with "
342-
":c:func:`PyObject_New`, :c:func:`PyObject_NewVar` and "
343-
":c:func:`PyObject_Del`."
342+
"Python heap, objects in Python are allocated and released with :c:func:"
343+
"`PyObject_New`, :c:func:`PyObject_NewVar` and :c:func:`PyObject_Del`."
344344
msgstr ""
345345

346346
#: ../../c-api/memory.rst:289
347347
msgid ""
348-
"These will be explained in the next chapter on defining and implementing new"
349-
" object types in C."
348+
"These will be explained in the next chapter on defining and implementing new "
349+
"object types in C."
350350
msgstr ""

c-api/module.po

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ msgstr ""
1010
"POT-Creation-Date: 2020-02-09 18:46+0900\n"
1111
"PO-Revision-Date: 2018-01-20 20:55+0000\n"
1212
"Last-Translator: tomo\n"
13-
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/python-doc/python-27/language/pt_BR/)\n"
13+
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/python-doc/"
14+
"python-27/language/pt_BR/)\n"
1415
"Language: pt_BR\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
@@ -30,10 +31,11 @@ msgid ""
3031
"This instance of :c:type:`PyTypeObject` represents the Python module type. "
3132
"This is exposed to Python programs as ``types.ModuleType``."
3233
msgstr ""
34+
"Esta instância de :c:type:`PyTypeObject` representa o tipo de módulo Python. "
35+
"Isso é exposto a programas Python como ``types.ModuleType``."
3336

3437
#: ../../c-api/module.rst:23
35-
msgid ""
36-
"Return true if *p* is a module object, or a subtype of a module object."
38+
msgid "Return true if *p* is a module object, or a subtype of a module object."
3739
msgstr ""
3840

3941
#: ../../c-api/module.rst:25
@@ -42,8 +44,8 @@ msgstr ""
4244

4345
#: ../../c-api/module.rst:31
4446
msgid ""
45-
"Return true if *p* is a module object, but not a subtype of "
46-
":c:data:`PyModule_Type`."
47+
"Return true if *p* is a module object, but not a subtype of :c:data:"
48+
"`PyModule_Type`."
4749
msgstr ""
4850

4951
#: ../../c-api/module.rst:44
@@ -58,8 +60,8 @@ msgstr ""
5860
msgid ""
5961
"Return the dictionary object that implements *module*'s namespace; this "
6062
"object is the same as the :attr:`~object.__dict__` attribute of the module "
61-
"object. This function never fails. It is recommended extensions use other "
62-
":c:func:`PyModule_\\*` and :c:func:`PyObject_\\*` functions rather than "
63+
"object. This function never fails. It is recommended extensions use other :"
64+
"c:func:`PyModule_\\*` and :c:func:`PyObject_\\*` functions rather than "
6365
"directly manipulate a module's :attr:`~object.__dict__`."
6466
msgstr ""
6567

@@ -72,8 +74,8 @@ msgstr ""
7274

7375
#: ../../c-api/module.rst:76
7476
msgid ""
75-
"Return the name of the file from which *module* was loaded using *module*'s "
76-
":attr:`__file__` attribute. If this is not defined, or if it is not a "
77+
"Return the name of the file from which *module* was loaded using *module*'s :"
78+
"attr:`__file__` attribute. If this is not defined, or if it is not a "
7779
"string, raise :exc:`SystemError` and return *NULL*."
7880
msgstr ""
7981

@@ -102,8 +104,8 @@ msgstr ""
102104
msgid ""
103105
"Add an int constant to *module*. The name and the value are taken from "
104106
"*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int "
105-
"constant *AF_INET* with the value of *AF_INET* to *module*. Return ``-1`` on"
106-
" error, ``0`` on success."
107+
"constant *AF_INET* with the value of *AF_INET* to *module*. Return ``-1`` on "
108+
"error, ``0`` on success."
107109
msgstr ""
108110

109111
#: ../../c-api/module.rst:118

0 commit comments

Comments
 (0)