Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20a7ecb

Browse files
author
github-actions
committed
Merge 3.10 into 3.6
1 parent 6eae58e commit 20a7ecb

File tree

1 file changed

+74
-10
lines changed

1 file changed

+74
-10
lines changed

library/collections.po

Lines changed: 74 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,9 @@ msgid ""
584584
"with data from *iterable*. If *iterable* is not specified, the new deque is "
585585
"empty."
586586
msgstr ""
587+
"Retorna um novo objeto deque inicializado da esquerda para a direita "
588+
"(usando: meth: `append`) com dados de * iterável *. Se * iterável * não for "
589+
"especificado, o novo deque estará vazio."
587590

588591
#: ../../library/collections.rst:405
589592
msgid ""
@@ -592,6 +595,11 @@ msgid ""
592595
"safe, memory efficient appends and pops from either side of the deque with "
593596
"approximately the same O(1) performance in either direction."
594597
msgstr ""
598+
"Deques são uma generalização de pilhas e filas (o nome é pronunciado \"deck"
599+
"\" e é abreviação de \"fila dupla\"). O Deques oferece suporte para "
600+
"acréscimos e saliências com segurança de thread e com eficiência de memória "
601+
"de ambos os lados do deque com aproximadamente o mesmo desempenho O (1) em "
602+
"qualquer direção."
595603

596604
#: ../../library/collections.rst:410
597605
msgid ""
@@ -600,6 +608,11 @@ msgid ""
600608
"``pop(0)`` and ``insert(0, v)`` operations which change both the size and "
601609
"position of the underlying data representation."
602610
msgstr ""
611+
"Embora os objetos: class: `list` suportem operações semelhantes, eles são "
612+
"otimizados para operações rápidas de comprimento fixo e sujeitam em custos "
613+
"de movimentação de memória O (n) para` `pop (0)` `e` `insert (0, v)` ` "
614+
"operações que alteram o tamanho e a posição da representação de dados "
615+
"subjacente."
603616

604617
#: ../../library/collections.rst:416
605618
msgid ""
@@ -611,103 +624,132 @@ msgid ""
611624
"They are also useful for tracking transactions and other pools of data where "
612625
"only the most recent activity is of interest."
613626
msgstr ""
627+
"Se * maxlen * não for especificado ou for `` Nenhum``, deques podem crescer "
628+
"para um comprimento arbitrário. Caso contrário, o deque é limitado ao "
629+
"comprimento máximo especificado. Quando um deque de comprimento limitado "
630+
"está cheio, quando novos itens são adicionados, um número correspondente de "
631+
"itens é descartado da extremidade oposta. Deques de comprimento limitado "
632+
"fornecem funcionalidade semelhante ao filtro `` tail`` no Unix. Eles também "
633+
"são úteis para rastrear transações e outros pools de dados onde apenas a "
634+
"atividade mais recente é de interesse."
614635

615636
#: ../../library/collections.rst:425
616637
msgid "Deque objects support the following methods:"
617-
msgstr ""
638+
msgstr "Os objetos Deque suportam os seguintes métodos:"
618639

619640
#: ../../library/collections.rst:429
620641
msgid "Add *x* to the right side of the deque."
621-
msgstr ""
642+
msgstr "Adicione * x * ao lado direito do deque."
622643

623644
#: ../../library/collections.rst:434
624645
msgid "Add *x* to the left side of the deque."
625-
msgstr ""
646+
msgstr "Adicione * x * ao lado esquerdo do deque"
626647

627648
#: ../../library/collections.rst:439
628649
msgid "Remove all elements from the deque leaving it with length 0."
629-
msgstr ""
650+
msgstr "Remova todos os elementos do deque deixando-o com comprimento 0."
630651

631652
#: ../../library/collections.rst:444
632653
msgid "Create a shallow copy of the deque."
633-
msgstr ""
654+
msgstr "Cria uma cópia rasa do deque."
634655

635656
#: ../../library/collections.rst:451
636657
msgid "Count the number of deque elements equal to *x*."
637-
msgstr ""
658+
msgstr "Conta o número de elementos deque igual a * x *."
638659

639660
#: ../../library/collections.rst:458
640661
msgid ""
641662
"Extend the right side of the deque by appending elements from the iterable "
642663
"argument."
643664
msgstr ""
665+
"Estenda o lado direito do deque anexando elementos do argumento iterável."
644666

645667
#: ../../library/collections.rst:464
646668
msgid ""
647669
"Extend the left side of the deque by appending elements from *iterable*. "
648670
"Note, the series of left appends results in reversing the order of elements "
649671
"in the iterable argument."
650672
msgstr ""
673+
"Estenda o lado esquerdo do deque anexando elementos de *iterable*. Observe "
674+
"que a série de acréscimos à esquerda resulta na reversão da ordem dos "
675+
"elementos no argumento iterável."
651676

652677
#: ../../library/collections.rst:471
653678
msgid ""
654679
"Return the position of *x* in the deque (at or after index *start* and "
655680
"before index *stop*). Returns the first match or raises :exc:`ValueError` "
656681
"if not found."
657682
msgstr ""
683+
"Retorne a posição de * x * no deque (no ou após o índice * início * e antes "
684+
"do índice * parada *). Retorna a primeira correspondência ou aumenta: exc: "
685+
"`ValueError` se não for encontrado."
658686

659687
#: ../../library/collections.rst:480
660688
msgid "Insert *x* into the deque at position *i*."
661-
msgstr ""
689+
msgstr "Insira * x * no deque na posição * i *."
662690

663691
#: ../../library/collections.rst:482
664692
msgid ""
665693
"If the insertion would cause a bounded deque to grow beyond *maxlen*, an :"
666694
"exc:`IndexError` is raised."
667695
msgstr ""
696+
"Se a inserção fizer com que um deque limitado cresça além de * maxlen *, um: "
697+
"exc: `IndexError` é gerado."
668698

669699
#: ../../library/collections.rst:490
670700
msgid ""
671701
"Remove and return an element from the right side of the deque. If no "
672702
"elements are present, raises an :exc:`IndexError`."
673703
msgstr ""
704+
"Remova e devolva um elemento do lado direito do deque. Se nenhum elemento "
705+
"estiver presente, levanta um: exc: `IndexError`."
674706

675707
#: ../../library/collections.rst:496
676708
msgid ""
677709
"Remove and return an element from the left side of the deque. If no elements "
678710
"are present, raises an :exc:`IndexError`."
679711
msgstr ""
712+
"Remova e devolva um elemento do lado esquerdo do deque. Se nenhum elemento "
713+
"estiver presente, levanta um: exc: `IndexError`."
680714

681715
#: ../../library/collections.rst:502
682716
msgid ""
683717
"Remove the first occurrence of *value*. If not found, raises a :exc:"
684718
"`ValueError`."
685719
msgstr ""
720+
"Remova a primeira ocorrência de * valor *. Se não for encontrado, levanta "
721+
"um: exc: `ValueError`."
686722

687723
#: ../../library/collections.rst:508
688724
msgid "Reverse the elements of the deque in-place and then return ``None``."
689725
msgstr ""
726+
"Inverta os elementos do deque no local e, em seguida, retorne ``None``."
690727

691728
#: ../../library/collections.rst:515
692729
msgid ""
693730
"Rotate the deque *n* steps to the right. If *n* is negative, rotate to the "
694731
"left."
695732
msgstr ""
733+
"Gire os passos deque * n * para a direita. Se * n * for negativo, gire para "
734+
"a esquerda."
696735

697736
#: ../../library/collections.rst:518
698737
msgid ""
699738
"When the deque is not empty, rotating one step to the right is equivalent to "
700739
"``d.appendleft(d.pop())``, and rotating one step to the left is equivalent "
701740
"to ``d.append(d.popleft())``."
702741
msgstr ""
742+
"Quando o deque não está vazio, girar um passo para a direita é equivalente a "
743+
"``d.appendleft(d.pop())``, e girar um passo para a esquerda é equivalente a "
744+
"``d.append(d.popleft())``."
703745

704746
#: ../../library/collections.rst:523
705747
msgid "Deque objects also provide one read-only attribute:"
706-
msgstr ""
748+
msgstr "Os objetos Deque também fornecem um atributo somente leitura:"
707749

708750
#: ../../library/collections.rst:527
709751
msgid "Maximum size of a deque or ``None`` if unbounded."
710-
msgstr ""
752+
msgstr "Tamanho máximo de um deque ou ``None`` se ilimitado."
711753

712754
#: ../../library/collections.rst:532
713755
msgid ""
@@ -723,6 +765,8 @@ msgid ""
723765
"Starting in version 3.5, deques support ``__add__()``, ``__mul__()``, and "
724766
"``__imul__()``."
725767
msgstr ""
768+
"A partir da versão 3.5, deques suporta `` __add __ () ``, `` __mul __ () `` "
769+
"e `` __imul __ () ``."
726770

727771
#: ../../library/collections.rst:541
728772
msgid "Example:"
@@ -734,19 +778,23 @@ msgstr "Receitas de :class:`deque`"
734778

735779
#: ../../library/collections.rst:600
736780
msgid "This section shows various approaches to working with deques."
737-
msgstr ""
781+
msgstr "Esta seção mostra várias abordagens para trabalhar com deques."
738782

739783
#: ../../library/collections.rst:602
740784
msgid ""
741785
"Bounded length deques provide functionality similar to the ``tail`` filter "
742786
"in Unix::"
743787
msgstr ""
788+
"Deques de comprimento limitado fornecem funcionalidade semelhante ao filtro "
789+
"``tail`` em Unix ::"
744790

745791
#: ../../library/collections.rst:610
746792
msgid ""
747793
"Another approach to using deques is to maintain a sequence of recently added "
748794
"elements by appending to the right and popping to the left::"
749795
msgstr ""
796+
"Outra abordagem para usar deques é manter uma sequência de elementos "
797+
"adicionados recentemente, acrescentando à direita e clicando à esquerda::"
750798

751799
#: ../../library/collections.rst:625
752800
msgid ""
@@ -784,38 +832,54 @@ msgid ""
784832
"arguments are treated the same as if they were passed to the :class:`dict` "
785833
"constructor, including keyword arguments."
786834
msgstr ""
835+
"O primeiro argumento fornece o valor inicial para o atributo: attr: "
836+
"`default_factory`; o padrão é `` Nenhum``. Todos os argumentos restantes são "
837+
"tratados da mesma forma como se fossem passados ​​para o construtor: class: "
838+
"`dict`, incluindo argumentos de palavra-chave."
787839

788840
#: ../../library/collections.rst:659
789841
msgid ""
790842
":class:`defaultdict` objects support the following method in addition to the "
791843
"standard :class:`dict` operations:"
792844
msgstr ""
845+
"Os objetos: class: `defaultdict` suportam o seguinte método além das "
846+
"operações padrão: class:` dict`:"
793847

794848
#: ../../library/collections.rst:664
795849
msgid ""
796850
"If the :attr:`default_factory` attribute is ``None``, this raises a :exc:"
797851
"`KeyError` exception with the *key* as argument."
798852
msgstr ""
853+
"Se o atributo: attr: `default_factory` é ``None``, isso levanta uma exceção: "
854+
"exc:` KeyError` com a * chave * como argumento."
799855

800856
#: ../../library/collections.rst:667
801857
msgid ""
802858
"If :attr:`default_factory` is not ``None``, it is called without arguments "
803859
"to provide a default value for the given *key*, this value is inserted in "
804860
"the dictionary for the *key*, and returned."
805861
msgstr ""
862+
"Se: attr: `default_factory` não for ``None``, ele é chamado sem argumentos "
863+
"para fornecer um valor padrão para a * chave * fornecida, este valor é "
864+
"inserido no dicionário para a * chave * e retornado."
806865

807866
#: ../../library/collections.rst:671
808867
msgid ""
809868
"If calling :attr:`default_factory` raises an exception this exception is "
810869
"propagated unchanged."
811870
msgstr ""
871+
"Se chamar: attr: `default_factory` levanta uma exceção, esta exceção é "
872+
"propagada inalterada."
812873

813874
#: ../../library/collections.rst:674
814875
msgid ""
815876
"This method is called by the :meth:`__getitem__` method of the :class:`dict` "
816877
"class when the requested key is not found; whatever it returns or raises is "
817878
"then returned or raised by :meth:`__getitem__`."
818879
msgstr ""
880+
"Este método é chamado pelo método: meth: `__getitem__` da classe: class:` "
881+
"dict` quando a chave solicitada não é encontrada; tudo o que ele retorna ou "
882+
"aumenta é então retornado ou gerado por: meth: `__getitem__`."
819883

820884
#: ../../library/collections.rst:678
821885
msgid ""

0 commit comments

Comments
 (0)