@@ -589,6 +589,9 @@ msgid ""
589589"with data from *iterable*. If *iterable* is not specified, the new deque is"
590590" empty."
591591msgstr ""
592+ "Retorna um novo objeto deque inicializado da esquerda para a direita "
593+ "(usando: meth: `append`) com dados de * iterável *. Se * iterável * não for "
594+ "especificado, o novo deque estará vazio."
592595
593596#: ../../library/collections.rst:405
594597msgid ""
@@ -597,6 +600,11 @@ msgid ""
597600"safe, memory efficient appends and pops from either side of the deque with "
598601"approximately the same O(1) performance in either direction."
599602msgstr ""
603+ "Deques são uma generalização de pilhas e filas (o nome é pronunciado "
604+ "\" deck\" e é abreviação de\" fila dupla\" ). O Deques oferece suporte para "
605+ "acréscimos e saliências com segurança de thread e com eficiência de memória "
606+ "de ambos os lados do deque com aproximadamente o mesmo desempenho O (1) em "
607+ "qualquer direção."
600608
601609#: ../../library/collections.rst:410
602610msgid ""
@@ -605,6 +613,11 @@ msgid ""
605613"``pop(0)`` and ``insert(0, v)`` operations which change both the size and "
606614"position of the underlying data representation."
607615msgstr ""
616+ "Embora os objetos: class: `list` suportem operações semelhantes, eles são "
617+ "otimizados para operações rápidas de comprimento fixo e sujeitam em custos "
618+ "de movimentação de memória O (n) para` `pop (0)` `e` `insert (0, v)` ` "
619+ "operações que alteram o tamanho e a posição da representação de dados "
620+ "subjacente."
608621
609622#: ../../library/collections.rst:416
610623msgid ""
@@ -616,103 +629,132 @@ msgid ""
616629"They are also useful for tracking transactions and other pools of data where"
617630" only the most recent activity is of interest."
618631msgstr ""
632+ "Se * maxlen * não for especificado ou for `` Nenhum``, deques podem crescer "
633+ "para um comprimento arbitrário. Caso contrário, o deque é limitado ao "
634+ "comprimento máximo especificado. Quando um deque de comprimento limitado "
635+ "está cheio, quando novos itens são adicionados, um número correspondente de "
636+ "itens é descartado da extremidade oposta. Deques de comprimento limitado "
637+ "fornecem funcionalidade semelhante ao filtro `` tail`` no Unix. Eles também "
638+ "são úteis para rastrear transações e outros pools de dados onde apenas a "
639+ "atividade mais recente é de interesse."
619640
620641#: ../../library/collections.rst:425
621642msgid "Deque objects support the following methods:"
622- msgstr ""
643+ msgstr "Os objetos Deque suportam os seguintes métodos: "
623644
624645#: ../../library/collections.rst:429
625646msgid "Add *x* to the right side of the deque."
626- msgstr ""
647+ msgstr "Adicione * x * ao lado direito do deque. "
627648
628649#: ../../library/collections.rst:434
629650msgid "Add *x* to the left side of the deque."
630- msgstr ""
651+ msgstr "Adicione * x * ao lado esquerdo do deque "
631652
632653#: ../../library/collections.rst:439
633654msgid "Remove all elements from the deque leaving it with length 0."
634- msgstr ""
655+ msgstr "Remova todos os elementos do deque deixando-o com comprimento 0. "
635656
636657#: ../../library/collections.rst:444
637658msgid "Create a shallow copy of the deque."
638- msgstr ""
659+ msgstr "Cria uma cópia rasa do deque. "
639660
640661#: ../../library/collections.rst:451
641662msgid "Count the number of deque elements equal to *x*."
642- msgstr ""
663+ msgstr "Conta o número de elementos deque igual a * x *. "
643664
644665#: ../../library/collections.rst:458
645666msgid ""
646667"Extend the right side of the deque by appending elements from the iterable "
647668"argument."
648669msgstr ""
670+ "Estenda o lado direito do deque anexando elementos do argumento iterável."
649671
650672#: ../../library/collections.rst:464
651673msgid ""
652674"Extend the left side of the deque by appending elements from *iterable*. "
653675"Note, the series of left appends results in reversing the order of elements "
654676"in the iterable argument."
655677msgstr ""
678+ "Estenda o lado esquerdo do deque anexando elementos de *iterable*. Observe "
679+ "que a série de acréscimos à esquerda resulta na reversão da ordem dos "
680+ "elementos no argumento iterável."
656681
657682#: ../../library/collections.rst:471
658683msgid ""
659684"Return the position of *x* in the deque (at or after index *start* and "
660685"before index *stop*). Returns the first match or raises :exc:`ValueError` "
661686"if not found."
662687msgstr ""
688+ "Retorne a posição de * x * no deque (no ou após o índice * início * e antes "
689+ "do índice * parada *). Retorna a primeira correspondência ou aumenta: exc: "
690+ "`ValueError` se não for encontrado."
663691
664692#: ../../library/collections.rst:480
665693msgid "Insert *x* into the deque at position *i*."
666- msgstr ""
694+ msgstr "Insira * x * no deque na posição * i *. "
667695
668696#: ../../library/collections.rst:482
669697msgid ""
670698"If the insertion would cause a bounded deque to grow beyond *maxlen*, an "
671699":exc:`IndexError` is raised."
672700msgstr ""
701+ "Se a inserção fizer com que um deque limitado cresça além de * maxlen *, um:"
702+ " exc: `IndexError` é gerado."
673703
674704#: ../../library/collections.rst:490
675705msgid ""
676706"Remove and return an element from the right side of the deque. If no "
677707"elements are present, raises an :exc:`IndexError`."
678708msgstr ""
709+ "Remova e devolva um elemento do lado direito do deque. Se nenhum elemento "
710+ "estiver presente, levanta um: exc: `IndexError`."
679711
680712#: ../../library/collections.rst:496
681713msgid ""
682714"Remove and return an element from the left side of the deque. If no elements"
683715" are present, raises an :exc:`IndexError`."
684716msgstr ""
717+ "Remova e devolva um elemento do lado esquerdo do deque. Se nenhum elemento "
718+ "estiver presente, levanta um: exc: `IndexError`."
685719
686720#: ../../library/collections.rst:502
687721msgid ""
688722"Remove the first occurrence of *value*. If not found, raises a "
689723":exc:`ValueError`."
690724msgstr ""
725+ "Remova a primeira ocorrência de * valor *. Se não for encontrado, levanta "
726+ "um: exc: `ValueError`."
691727
692728#: ../../library/collections.rst:508
693729msgid "Reverse the elements of the deque in-place and then return ``None``."
694730msgstr ""
731+ "Inverta os elementos do deque no local e, em seguida, retorne ``None``."
695732
696733#: ../../library/collections.rst:515
697734msgid ""
698735"Rotate the deque *n* steps to the right. If *n* is negative, rotate to the "
699736"left."
700737msgstr ""
738+ "Gire os passos deque * n * para a direita. Se * n * for negativo, gire para "
739+ "a esquerda."
701740
702741#: ../../library/collections.rst:518
703742msgid ""
704743"When the deque is not empty, rotating one step to the right is equivalent to"
705744" ``d.appendleft(d.pop())``, and rotating one step to the left is equivalent "
706745"to ``d.append(d.popleft())``."
707746msgstr ""
747+ "Quando o deque não está vazio, girar um passo para a direita é equivalente a"
748+ " ``d.appendleft(d.pop())``, e girar um passo para a esquerda é equivalente a"
749+ " ``d.append(d.popleft())``."
708750
709751#: ../../library/collections.rst:523
710752msgid "Deque objects also provide one read-only attribute:"
711- msgstr ""
753+ msgstr "Os objetos Deque também fornecem um atributo somente leitura: "
712754
713755#: ../../library/collections.rst:527
714756msgid "Maximum size of a deque or ``None`` if unbounded."
715- msgstr ""
757+ msgstr "Tamanho máximo de um deque ou ``None`` se ilimitado. "
716758
717759#: ../../library/collections.rst:532
718760msgid ""
@@ -728,6 +770,8 @@ msgid ""
728770"Starting in version 3.5, deques support ``__add__()``, ``__mul__()``, and "
729771"``__imul__()``."
730772msgstr ""
773+ "A partir da versão 3.5, deques suporta `` __add __ () ``, `` __mul __ () `` "
774+ "e `` __imul __ () ``."
731775
732776#: ../../library/collections.rst:541
733777msgid "Example:"
@@ -739,19 +783,23 @@ msgstr "Receitas de :class:`deque`"
739783
740784#: ../../library/collections.rst:600
741785msgid "This section shows various approaches to working with deques."
742- msgstr ""
786+ msgstr "Esta seção mostra várias abordagens para trabalhar com deques. "
743787
744788#: ../../library/collections.rst:602
745789msgid ""
746790"Bounded length deques provide functionality similar to the ``tail`` filter "
747791"in Unix::"
748792msgstr ""
793+ "Deques de comprimento limitado fornecem funcionalidade semelhante ao filtro "
794+ "``tail`` em Unix ::"
749795
750796#: ../../library/collections.rst:610
751797msgid ""
752798"Another approach to using deques is to maintain a sequence of recently added"
753799" elements by appending to the right and popping to the left::"
754800msgstr ""
801+ "Outra abordagem para usar deques é manter uma sequência de elementos "
802+ "adicionados recentemente, acrescentando à direita e clicando à esquerda::"
755803
756804#: ../../library/collections.rst:625
757805msgid ""
@@ -789,38 +837,54 @@ msgid ""
789837"arguments are treated the same as if they were passed to the :class:`dict` "
790838"constructor, including keyword arguments."
791839msgstr ""
840+ "O primeiro argumento fornece o valor inicial para o atributo: attr: "
841+ "`default_factory`; o padrão é `` Nenhum``. Todos os argumentos restantes são"
842+ " tratados da mesma forma como se fossem passados para o construtor: class:"
843+ " `dict`, incluindo argumentos de palavra-chave."
792844
793845#: ../../library/collections.rst:659
794846msgid ""
795847":class:`defaultdict` objects support the following method in addition to the"
796848" standard :class:`dict` operations:"
797849msgstr ""
850+ "Os objetos: class: `defaultdict` suportam o seguinte método além das "
851+ "operações padrão: class:` dict`:"
798852
799853#: ../../library/collections.rst:664
800854msgid ""
801855"If the :attr:`default_factory` attribute is ``None``, this raises a "
802856":exc:`KeyError` exception with the *key* as argument."
803857msgstr ""
858+ "Se o atributo: attr: `default_factory` é ``None``, isso levanta uma exceção:"
859+ " exc:` KeyError` com a * chave * como argumento."
804860
805861#: ../../library/collections.rst:667
806862msgid ""
807863"If :attr:`default_factory` is not ``None``, it is called without arguments "
808864"to provide a default value for the given *key*, this value is inserted in "
809865"the dictionary for the *key*, and returned."
810866msgstr ""
867+ "Se: attr: `default_factory` não for ``None``, ele é chamado sem argumentos "
868+ "para fornecer um valor padrão para a * chave * fornecida, este valor é "
869+ "inserido no dicionário para a * chave * e retornado."
811870
812871#: ../../library/collections.rst:671
813872msgid ""
814873"If calling :attr:`default_factory` raises an exception this exception is "
815874"propagated unchanged."
816875msgstr ""
876+ "Se chamar: attr: `default_factory` levanta uma exceção, esta exceção é "
877+ "propagada inalterada."
817878
818879#: ../../library/collections.rst:674
819880msgid ""
820881"This method is called by the :meth:`__getitem__` method of the :class:`dict`"
821882" class when the requested key is not found; whatever it returns or raises is"
822883" then returned or raised by :meth:`__getitem__`."
823884msgstr ""
885+ "Este método é chamado pelo método: meth: `__getitem__` da classe: class:` "
886+ "dict` quando a chave solicitada não é encontrada; tudo o que ele retorna ou "
887+ "aumenta é então retornado ou gerado por: meth: `__getitem__`."
824888
825889#: ../../library/collections.rst:678
826890msgid ""