@@ -17,7 +17,7 @@ msgid ""
1717msgstr ""
1818"Project-Id-Version : Python 3.11\n "
1919"Report-Msgid-Bugs-To : \n "
20- "POT-Creation-Date : 2023-01-27 14:14+0000\n "
20+ "POT-Creation-Date : 2023-02-03 14:14+0000\n "
2121"PO-Revision-Date : 2021-06-28 00:54+0000\n "
2222"Last-Translator : Bonifacio de Oliveira <bonifacio.segundo@gmail.com>, 2021\n "
2323"Language-Team : Portuguese (Brazil) (https://www.transifex.com/python-doc/ "
@@ -228,17 +228,22 @@ msgstr ""
228228msgid ""
229229"The actual representation of values is determined by the machine "
230230"architecture (strictly speaking, by the C implementation). The actual size "
231- "can be accessed through the :attr:`itemsize` attribute."
231+ "can be accessed through the :attr:`array. itemsize` attribute."
232232msgstr ""
233- "A representação dos valores é definida pela arquitetura da máquina, mais "
234- "especificamente da implementação do C. O tamanho real pode ser acessado pelo "
235- "atributo :attr:`itemsize`."
236233
237234#: ../../library/array.rst:65
235+ msgid "The module defines the following item:"
236+ msgstr ""
237+
238+ #: ../../library/array.rst:70
239+ msgid "A string with all available type codes."
240+ msgstr "String com todos os códigos de tipo disponíveis."
241+
242+ #: ../../library/array.rst:73
238243msgid "The module defines the following type:"
239244msgstr "O módulo define o seguinte tipo:"
240245
241- #: ../../library/array.rst:70
246+ #: ../../library/array.rst:78
242247msgid ""
243248"A new array whose items are restricted by *typecode*, and initialized from "
244249"the optional *initializer* value, which must be a list, a :term:`bytes-like "
@@ -249,7 +254,7 @@ msgstr ""
249254"term:`objeto byte ou similar <bytes-like object>`, ou outros elementos "
250255"iteráveis do tipo apropriado."
251256
252- #: ../../library/array.rst:75
257+ #: ../../library/array.rst:83
253258msgid ""
254259"If given a list or string, the initializer is passed to the new array's :"
255260"meth:`fromlist`, :meth:`frombytes`, or :meth:`fromunicode` method (see "
@@ -261,19 +266,7 @@ msgstr ""
261266"novo vetor para adicionar itens iniciais ao vetor. Caso contrário, o "
262267"inicializador iterável é passado para o método :meth:`extend`."
263268
264- #: ../../library/array.rst:80
265- msgid ""
266- "Raises an :ref:`auditing event <auditing>` ``array.__new__`` with arguments "
267- "``typecode``, ``initializer``."
268- msgstr ""
269- "Levanta um :ref:`evento de auditoria <auditing>` ``array.__new__`` com "
270- "argumentos ``typecode``, ``initializer``."
271-
272- #: ../../library/array.rst:84
273- msgid "A string with all available type codes."
274- msgstr "String com todos os códigos de tipo disponíveis."
275-
276- #: ../../library/array.rst:86
269+ #: ../../library/array.rst:88
277270msgid ""
278271"Array objects support the ordinary sequence operations of indexing, slicing, "
279272"concatenation, and multiplication. When using slice assignment, the "
@@ -289,43 +282,39 @@ msgstr ""
289282"implementam a interface buffer, e também podem ser usados em qualquer lugar "
290283"onde :term:`objetos byte ou similar <bytes-like object>` é permitido."
291284
292- #: ../../library/array.rst:92
293- msgid "The following data items and methods are also supported:"
294- msgstr "Os seguintes itens e métodos também são suportados:"
285+ #: ../../library/array.rst:94
286+ msgid ""
287+ "Raises an :ref:`auditing event <auditing>` ``array.__new__`` with arguments "
288+ "``typecode``, ``initializer``."
289+ msgstr ""
290+ "Levanta um :ref:`evento de auditoria <auditing>` ``array.__new__`` com "
291+ "argumentos ``typecode``, ``initializer``."
295292
296- #: ../../library/array.rst:96
293+ #: ../../library/array.rst:99
297294msgid "The typecode character used to create the array."
298295msgstr "O caractere typecode usado para criar o vetor."
299296
300- #: ../../library/array.rst:101
297+ #: ../../library/array.rst:104
301298msgid "The length in bytes of one array item in the internal representation."
302299msgstr "O tamanho em bytes de um item do vetor em representação interna."
303300
304- #: ../../library/array.rst:106
301+ #: ../../library/array.rst:109
305302msgid "Append a new item with value *x* to the end of the array."
306303msgstr "Adiciona um novo item com valor *x* ao final do vetor."
307304
308- #: ../../library/array.rst:111
305+ #: ../../library/array.rst:114
309306msgid ""
310307"Return a tuple ``(address, length)`` giving the current memory address and "
311308"the length in elements of the buffer used to hold array's contents. The "
312309"size of the memory buffer in bytes can be computed as ``array.buffer_info()"
313310"[1] * array.itemsize``. This is occasionally useful when working with low-"
314311"level (and inherently unsafe) I/O interfaces that require memory addresses, "
315- "such as certain :c:func:`ioctl` operations. The returned numbers are valid "
312+ "such as certain :c:func:`! ioctl` operations. The returned numbers are valid "
316313"as long as the array exists and no length-changing operations are applied to "
317314"it."
318315msgstr ""
319- "Retorna uma tupla ``(address, length)`` com o endereço corrente da memória e "
320- "o tamanho em elementos do buffer usado para armazenar conteúdos do vetor. O "
321- "tamanho do buffer da memória em bytes pode ser computado como ``array."
322- "buffer_info()[1] * array.itemsize``. Isso é ocasionalmente útil quando se "
323- "está trabalhando com interfaces I/O de baixo nível (inerentemente inseguras) "
324- "que precisam de endereços de memória, como algumas operações :c:func:"
325- "`ioctl`. Os números retornados são válidos enquanto o vetor existir e "
326- "nenhuma operação de alteração de tamanho for aplicada a ele."
327-
328- #: ../../library/array.rst:121
316+
317+ #: ../../library/array.rst:124
329318msgid ""
330319"When using array objects from code written in C or C++ (the only way to "
331320"effectively make use of this information), it makes more sense to use the "
@@ -339,7 +328,7 @@ msgstr ""
339328"retrocompatibilidade e deve ser evitado em código novo. A interface de "
340329"buffers está documentada em :ref:`bufferobjects`."
341330
342- #: ../../library/array.rst:130
331+ #: ../../library/array.rst:133
343332msgid ""
344333"\" Byteswap\" all items of the array. This is only supported for values "
345334"which are 1, 2, 4, or 8 bytes in size; for other types of values, :exc:"
@@ -352,11 +341,11 @@ msgstr ""
352341"para serem escritos em um arquivo de outra máquina de ordem de bytes "
353342"diferente."
354343
355- #: ../../library/array.rst:138
344+ #: ../../library/array.rst:141
356345msgid "Return the number of occurrences of *x* in the array."
357346msgstr "Retorna a quantidade de ocorrências de *x* no vetor."
358347
359- #: ../../library/array.rst:143
348+ #: ../../library/array.rst:146
360349msgid ""
361350"Append items from *iterable* to the end of the array. If *iterable* is "
362351"another array, it must have *exactly* the same type code; if not, :exc:"
@@ -368,7 +357,7 @@ msgstr ""
368357"uma :exc:`TypeError`. Se *iterable* não for um vetor, ele deve ser iterável "
369358"e seus elementos devem ser do tipo correto para ser acrescentado ao vetor."
370359
371- #: ../../library/array.rst:151
360+ #: ../../library/array.rst:154
372361msgid ""
373362"Appends items from the string, interpreting the string as an array of "
374363"machine values (as if it had been read from a file using the :meth:"
@@ -377,12 +366,11 @@ msgstr ""
377366"Adiciona itens da string, interpretando a string como um vetor (como se "
378367"tivesse sido lido de um arquivo usando o método :meth:`fromfile`)."
379368
380- #: ../../library/array.rst:154
381- msgid ":meth:`fromstring` is renamed to :meth:`frombytes` for clarity."
369+ #: ../../library/array.rst:157
370+ msgid ":meth:`! fromstring` is renamed to :meth:`frombytes` for clarity."
382371msgstr ""
383- ":meth:`fromstring` foi renomeado para :meth:`frombytes` para maior clareza."
384372
385- #: ../../library/array.rst:160
373+ #: ../../library/array.rst:163
386374msgid ""
387375"Read *n* items (as machine values) from the :term:`file object` *f* and "
388376"append them to the end of the array. If less than *n* items are available, :"
@@ -394,15 +382,15 @@ msgstr ""
394382"*n* itens, :exc:`EOFError` é levantada, mas os itens disponíveis ainda são "
395383"inseridos ao final do vetor."
396384
397- #: ../../library/array.rst:168
385+ #: ../../library/array.rst:171
398386msgid ""
399387"Append items from the list. This is equivalent to ``for x in list: a."
400388"append(x)`` except that if there is a type error, the array is unchanged."
401389msgstr ""
402390"Adiciona itens de *list*. Isso é equivalente a ``for x in list: a."
403391"append(x)`` exceto que se ocorrer um errro de tipo, o vetor não é alterado."
404392
405- #: ../../library/array.rst:174
393+ #: ../../library/array.rst:177
406394msgid ""
407395"Extends this array with data from the given unicode string. The array must "
408396"be a type ``'u'`` array; otherwise a :exc:`ValueError` is raised. Use "
@@ -414,27 +402,27 @@ msgstr ""
414402"Use ``array.frombytes(unicodestring.encode(enc))`` para adicionar dados "
415403"Unicode para um vetor de outros tipos de dados."
416404
417- #: ../../library/array.rst:182
405+ #: ../../library/array.rst:185
418406msgid ""
419407"Return the smallest *i* such that *i* is the index of the first occurrence "
420408"of *x* in the array. The optional arguments *start* and *stop* can be "
421409"specified to search for *x* within a subsection of the array. Raise :exc:"
422410"`ValueError` if *x* is not found."
423411msgstr ""
424412
425- #: ../../library/array.rst:187
413+ #: ../../library/array.rst:190
426414msgid "Added optional *start* and *stop* parameters."
427415msgstr ""
428416
429- #: ../../library/array.rst:192
417+ #: ../../library/array.rst:196
430418msgid ""
431419"Insert a new item with value *x* in the array before position *i*. Negative "
432420"values are treated as being relative to the end of the array."
433421msgstr ""
434422"Insere um novo item com o *x* no vetor antes da posição *i*. Valores "
435423"negativos são tratados como sendo em relação ao fim do vetor."
436424
437- #: ../../library/array.rst:198
425+ #: ../../library/array.rst:202
438426msgid ""
439427"Removes the item with the index *i* from the array and returns it. The "
440428"optional argument defaults to ``-1``, so that by default the last item is "
@@ -443,15 +431,15 @@ msgstr ""
443431"Remove o item com o índice *i* do vetor e retorna este item. O valor padrão "
444432"do argumento é ``-1``, assim por padrão o último item é removido e retornado."
445433
446- #: ../../library/array.rst:205
434+ #: ../../library/array.rst:209
447435msgid "Remove the first occurrence of *x* from the array."
448436msgstr "Remove a primeira ocorrência de *x* do vetor."
449437
450- #: ../../library/array.rst:210
438+ #: ../../library/array.rst:214
451439msgid "Reverse the order of the items in the array."
452440msgstr "Inverte a ordem dos itens no vetor."
453441
454- #: ../../library/array.rst:215
442+ #: ../../library/array.rst:219
455443msgid ""
456444"Convert the array to an array of machine values and return the bytes "
457445"representation (the same sequence of bytes that would be written to a file "
@@ -461,21 +449,21 @@ msgstr ""
461449"representação em bytes (a mesma sequência de bytes que seria escrita pelo "
462450"método :meth:`tofile`.)"
463451
464- #: ../../library/array.rst:219
465- msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity."
466- msgstr ":meth:`tostring` foi nomeada para :meth:`tobytes` para maior clareza. "
452+ #: ../../library/array.rst:223
453+ msgid ":meth:`! tostring` is renamed to :meth:`tobytes` for clarity."
454+ msgstr ""
467455
468- #: ../../library/array.rst:225
456+ #: ../../library/array.rst:229
469457msgid "Write all items (as machine values) to the :term:`file object` *f*."
470458msgstr ""
471459"Escreve todos os itens (como valores de máquinas) para o :term:`objeto "
472460"arquivo <file object>` *f*."
473461
474- #: ../../library/array.rst:230
462+ #: ../../library/array.rst:234
475463msgid "Convert the array to an ordinary list with the same items."
476464msgstr "Devolve os itens do vetor como uma lista comum."
477465
478- #: ../../library/array.rst:235
466+ #: ../../library/array.rst:239
479467msgid ""
480468"Convert the array to a unicode string. The array must be a type ``'u'`` "
481469"array; otherwise a :exc:`ValueError` is raised. Use ``array.tobytes()."
@@ -485,7 +473,7 @@ msgstr ""
485473"``'u'``; caso contrário :exc:`ValueError` é levantada. Use ``array.tobytes()."
486474"decode(enc)`` para obter uma string unicode de um vetor de outros tipos."
487475
488- #: ../../library/array.rst:240
476+ #: ../../library/array.rst:244
489477msgid ""
490478"When an array object is printed or converted to a string, it is represented "
491479"as ``array(typecode, initializer)``. The *initializer* is omitted if the "
@@ -503,30 +491,30 @@ msgstr ""
503491"`eval`, contanto que a classe :class:`~array.array` tenha sido importada "
504492"usando ``from array import array``. Exemplos::"
505493
506- #: ../../library/array.rst:257
494+ #: ../../library/array.rst:261
507495msgid "Module :mod:`struct`"
508496msgstr "Módulo :mod:`struct`"
509497
510- #: ../../library/array.rst:257
498+ #: ../../library/array.rst:261
511499msgid "Packing and unpacking of heterogeneous binary data."
512500msgstr "Empacotamento e desempacotamento de dados binários heterogêneos."
513501
514- #: ../../library/array.rst:261
502+ #: ../../library/array.rst:265
515503msgid "Module :mod:`xdrlib`"
516504msgstr "Módulo :mod:`xdrlib`"
517505
518- #: ../../library/array.rst:260
506+ #: ../../library/array.rst:264
519507msgid ""
520508"Packing and unpacking of External Data Representation (XDR) data as used in "
521509"some remote procedure call systems."
522510msgstr ""
523511"Empacotamento e desempacotamento de dados External Data Representation (XDR) "
524512"usados em alguns sistemas para chamada remota de procedimentos."
525513
526- #: ../../library/array.rst:263
514+ #: ../../library/array.rst:267
527515msgid "`NumPy <https://numpy.org/>`_"
528516msgstr ""
529517
530- #: ../../library/array.rst:264
518+ #: ../../library/array.rst:268
531519msgid "The NumPy package defines another array type."
532520msgstr ""
0 commit comments