Skip to content

Commit 4e373cf

Browse files
author
github-actions
committed
Merge 3.10 into 3.7
1 parent 86bad26 commit 4e373cf

File tree

1 file changed

+94
-10
lines changed

1 file changed

+94
-10
lines changed

library/collections.po

Lines changed: 94 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ msgid ""
596596
"To enumerate all distinct multisets of a given size over a given set of "
597597
"elements, see :func:`itertools.combinations_with_replacement`::"
598598
msgstr ""
599+
"Para enumerar todos os multisets distintos de um determinado tamanho em um "
600+
"determinado conjunto de elementos, consulte: func:` itertools."
601+
"combinations_with_replacement` ::"
599602

600603
#: ../../library/collections.rst:413
601604
msgid ":class:`deque` objects"
@@ -607,6 +610,9 @@ msgid ""
607610
"with data from *iterable*. If *iterable* is not specified, the new deque is "
608611
"empty."
609612
msgstr ""
613+
"Retorna um novo objeto deque inicializado da esquerda para a direita "
614+
"(usando: meth: `append`) com dados de * iterável *. Se * iterável * não for "
615+
"especificado, o novo deque estará vazio."
610616

611617
#: ../../library/collections.rst:420
612618
msgid ""
@@ -615,6 +621,11 @@ msgid ""
615621
"safe, memory efficient appends and pops from either side of the deque with "
616622
"approximately the same O(1) performance in either direction."
617623
msgstr ""
624+
"Deques são uma generalização de pilhas e filas (o nome é pronunciado \"deck"
625+
"\" e é abreviação de \"fila dupla\"). O Deques oferece suporte para "
626+
"acréscimos e saliências com segurança de thread e com eficiência de memória "
627+
"de ambos os lados do deque com aproximadamente o mesmo desempenho O (1) em "
628+
"qualquer direção."
618629

619630
#: ../../library/collections.rst:425
620631
msgid ""
@@ -623,6 +634,11 @@ msgid ""
623634
"``pop(0)`` and ``insert(0, v)`` operations which change both the size and "
624635
"position of the underlying data representation."
625636
msgstr ""
637+
"Embora os objetos: class: `list` suportem operações semelhantes, eles são "
638+
"otimizados para operações rápidas de comprimento fixo e sujeitam em custos "
639+
"de movimentação de memória O (n) para` `pop (0)` `e` `insert (0, v)` ` "
640+
"operações que alteram o tamanho e a posição da representação de dados "
641+
"subjacente."
626642

627643
#: ../../library/collections.rst:431
628644
msgid ""
@@ -634,103 +650,132 @@ msgid ""
634650
"They are also useful for tracking transactions and other pools of data where "
635651
"only the most recent activity is of interest."
636652
msgstr ""
653+
"Se * maxlen * não for especificado ou for `` Nenhum``, deques podem crescer "
654+
"para um comprimento arbitrário. Caso contrário, o deque é limitado ao "
655+
"comprimento máximo especificado. Quando um deque de comprimento limitado "
656+
"está cheio, quando novos itens são adicionados, um número correspondente de "
657+
"itens é descartado da extremidade oposta. Deques de comprimento limitado "
658+
"fornecem funcionalidade semelhante ao filtro `` tail`` no Unix. Eles também "
659+
"são úteis para rastrear transações e outros pools de dados onde apenas a "
660+
"atividade mais recente é de interesse."
637661

638662
#: ../../library/collections.rst:440
639663
msgid "Deque objects support the following methods:"
640-
msgstr ""
664+
msgstr "Os objetos Deque suportam os seguintes métodos:"
641665

642666
#: ../../library/collections.rst:444
643667
msgid "Add *x* to the right side of the deque."
644-
msgstr ""
668+
msgstr "Adicione * x * ao lado direito do deque."
645669

646670
#: ../../library/collections.rst:449
647671
msgid "Add *x* to the left side of the deque."
648-
msgstr ""
672+
msgstr "Adicione * x * ao lado esquerdo do deque"
649673

650674
#: ../../library/collections.rst:454
651675
msgid "Remove all elements from the deque leaving it with length 0."
652-
msgstr ""
676+
msgstr "Remova todos os elementos do deque deixando-o com comprimento 0."
653677

654678
#: ../../library/collections.rst:459
655679
msgid "Create a shallow copy of the deque."
656-
msgstr ""
680+
msgstr "Cria uma cópia rasa do deque."
657681

658682
#: ../../library/collections.rst:466
659683
msgid "Count the number of deque elements equal to *x*."
660-
msgstr ""
684+
msgstr "Conta o número de elementos deque igual a * x *."
661685

662686
#: ../../library/collections.rst:473
663687
msgid ""
664688
"Extend the right side of the deque by appending elements from the iterable "
665689
"argument."
666690
msgstr ""
691+
"Estenda o lado direito do deque anexando elementos do argumento iterável."
667692

668693
#: ../../library/collections.rst:479
669694
msgid ""
670695
"Extend the left side of the deque by appending elements from *iterable*. "
671696
"Note, the series of left appends results in reversing the order of elements "
672697
"in the iterable argument."
673698
msgstr ""
699+
"Estenda o lado esquerdo do deque anexando elementos de *iterable*. Observe "
700+
"que a série de acréscimos à esquerda resulta na reversão da ordem dos "
701+
"elementos no argumento iterável."
674702

675703
#: ../../library/collections.rst:486
676704
msgid ""
677705
"Return the position of *x* in the deque (at or after index *start* and "
678706
"before index *stop*). Returns the first match or raises :exc:`ValueError` "
679707
"if not found."
680708
msgstr ""
709+
"Retorne a posição de * x * no deque (no ou após o índice * início * e antes "
710+
"do índice * parada *). Retorna a primeira correspondência ou aumenta: exc: "
711+
"`ValueError` se não for encontrado."
681712

682713
#: ../../library/collections.rst:495
683714
msgid "Insert *x* into the deque at position *i*."
684-
msgstr ""
715+
msgstr "Insira * x * no deque na posição * i *."
685716

686717
#: ../../library/collections.rst:497
687718
msgid ""
688719
"If the insertion would cause a bounded deque to grow beyond *maxlen*, an :"
689720
"exc:`IndexError` is raised."
690721
msgstr ""
722+
"Se a inserção fizer com que um deque limitado cresça além de * maxlen *, um: "
723+
"exc: `IndexError` é gerado."
691724

692725
#: ../../library/collections.rst:505
693726
msgid ""
694727
"Remove and return an element from the right side of the deque. If no "
695728
"elements are present, raises an :exc:`IndexError`."
696729
msgstr ""
730+
"Remova e devolva um elemento do lado direito do deque. Se nenhum elemento "
731+
"estiver presente, levanta um: exc: `IndexError`."
697732

698733
#: ../../library/collections.rst:511
699734
msgid ""
700735
"Remove and return an element from the left side of the deque. If no elements "
701736
"are present, raises an :exc:`IndexError`."
702737
msgstr ""
738+
"Remova e devolva um elemento do lado esquerdo do deque. Se nenhum elemento "
739+
"estiver presente, levanta um: exc: `IndexError`."
703740

704741
#: ../../library/collections.rst:517
705742
msgid ""
706743
"Remove the first occurrence of *value*. If not found, raises a :exc:"
707744
"`ValueError`."
708745
msgstr ""
746+
"Remova a primeira ocorrência de * valor *. Se não for encontrado, levanta "
747+
"um: exc: `ValueError`."
709748

710749
#: ../../library/collections.rst:523
711750
msgid "Reverse the elements of the deque in-place and then return ``None``."
712751
msgstr ""
752+
"Inverta os elementos do deque no local e, em seguida, retorne ``None``."
713753

714754
#: ../../library/collections.rst:530
715755
msgid ""
716756
"Rotate the deque *n* steps to the right. If *n* is negative, rotate to the "
717757
"left."
718758
msgstr ""
759+
"Gire os passos deque * n * para a direita. Se * n * for negativo, gire para "
760+
"a esquerda."
719761

720762
#: ../../library/collections.rst:533
721763
msgid ""
722764
"When the deque is not empty, rotating one step to the right is equivalent to "
723765
"``d.appendleft(d.pop())``, and rotating one step to the left is equivalent "
724766
"to ``d.append(d.popleft())``."
725767
msgstr ""
768+
"Quando o deque não está vazio, girar um passo para a direita é equivalente a "
769+
"``d.appendleft(d.pop())``, e girar um passo para a esquerda é equivalente a "
770+
"``d.append(d.popleft())``."
726771

727772
#: ../../library/collections.rst:538
728773
msgid "Deque objects also provide one read-only attribute:"
729-
msgstr ""
774+
msgstr "Os objetos Deque também fornecem um atributo somente leitura:"
730775

731776
#: ../../library/collections.rst:542
732777
msgid "Maximum size of a deque or ``None`` if unbounded."
733-
msgstr ""
778+
msgstr "Tamanho máximo de um deque ou ``None`` se ilimitado."
734779

735780
#: ../../library/collections.rst:547
736781
msgid ""
@@ -746,6 +791,8 @@ msgid ""
746791
"Starting in version 3.5, deques support ``__add__()``, ``__mul__()``, and "
747792
"``__imul__()``."
748793
msgstr ""
794+
"A partir da versão 3.5, deques suporta `` __add __ () ``, `` __mul __ () `` "
795+
"e `` __imul __ () ``."
749796

750797
#: ../../library/collections.rst:556
751798
msgid "Example:"
@@ -757,19 +804,23 @@ msgstr "Receitas de :class:`deque`"
757804

758805
#: ../../library/collections.rst:615
759806
msgid "This section shows various approaches to working with deques."
760-
msgstr ""
807+
msgstr "Esta seção mostra várias abordagens para trabalhar com deques."
761808

762809
#: ../../library/collections.rst:617
763810
msgid ""
764811
"Bounded length deques provide functionality similar to the ``tail`` filter "
765812
"in Unix::"
766813
msgstr ""
814+
"Deques de comprimento limitado fornecem funcionalidade semelhante ao filtro "
815+
"``tail`` em Unix ::"
767816

768817
#: ../../library/collections.rst:625
769818
msgid ""
770819
"Another approach to using deques is to maintain a sequence of recently added "
771820
"elements by appending to the right and popping to the left::"
772821
msgstr ""
822+
"Outra abordagem para usar deques é manter uma sequência de elementos "
823+
"adicionados recentemente, acrescentando à direita e clicando à esquerda::"
773824

774825
#: ../../library/collections.rst:640
775826
msgid ""
@@ -780,13 +831,23 @@ msgid ""
780831
"popleft`; otherwise, it can be cycled back to the end with the :meth:`~deque."
781832
"rotate` method::"
782833
msgstr ""
834+
"Um `escalonador round-robin <https://en.wikipedia.org/wiki/Round-"
835+
"robin_scheduling>` _ pode ser implementado com iteradores de entrada "
836+
"armazenados em um: class: `deque`. Os valores são gerados a partir do "
837+
"iterador ativo na posição zero. Se esse iterador estiver esgotado, ele pode "
838+
"ser removido com: meth: `~ deque.popleft`; caso contrário, ele pode voltar "
839+
"ao fim com o método: meth: `~ deque.rotate` ::"
783840

784841
#: ../../library/collections.rst:659
785842
msgid ""
786843
"The :meth:`~deque.rotate` method provides a way to implement :class:`deque` "
787844
"slicing and deletion. For example, a pure Python implementation of ``del "
788845
"d[n]`` relies on the ``rotate()`` method to position elements to be popped::"
789846
msgstr ""
847+
"O método: meth: `~ deque.rotate` fornece uma maneira de implementar o corte "
848+
"e exclusão: class:` deque`. Por exemplo, uma implementação Python pura de "
849+
"``del d[n]`` depende do método ``rotate()`` para posicionar os elementos a "
850+
"serem popped ::"
790851

791852
#: ../../library/collections.rst:668
792853
msgid ""
@@ -797,6 +858,13 @@ msgid ""
797858
"that approach, it is easy to implement Forth style stack manipulations such "
798859
"as ``dup``, ``drop``, ``swap``, ``over``, ``pick``, ``rot``, and ``roll``."
799860
msgstr ""
861+
"Para implementar o corte: class: `deque`, use uma abordagem semelhante "
862+
"aplicando: meth:` ~ deque.rotate` para trazer um elemento alvo para o lado "
863+
"esquerdo do deque. Remova as entradas antigas com: meth: `~ deque.popleft`, "
864+
"adicione novas entradas com: meth:` ~ deque.extend`, e então inverta a "
865+
"rotação. Com pequenas variações dessa abordagem, é fácil implementar "
866+
"manipulações de pilha de estilo Forth, como ``dup``,``drop``,``swap``,"
867+
"``over``,``pick``,``rot``, and ``roll``."
800868

801869
#: ../../library/collections.rst:678
802870
msgid ":class:`defaultdict` objects"
@@ -817,38 +885,54 @@ msgid ""
817885
"arguments are treated the same as if they were passed to the :class:`dict` "
818886
"constructor, including keyword arguments."
819887
msgstr ""
888+
"O primeiro argumento fornece o valor inicial para o atributo: attr: "
889+
"`default_factory`; o padrão é `` Nenhum``. Todos os argumentos restantes são "
890+
"tratados da mesma forma como se fossem passados ​​para o construtor: class: "
891+
"`dict`, incluindo argumentos de palavra-chave."
820892

821893
#: ../../library/collections.rst:693
822894
msgid ""
823895
":class:`defaultdict` objects support the following method in addition to the "
824896
"standard :class:`dict` operations:"
825897
msgstr ""
898+
"Os objetos: class: `defaultdict` suportam o seguinte método além das "
899+
"operações padrão: class:` dict`:"
826900

827901
#: ../../library/collections.rst:698
828902
msgid ""
829903
"If the :attr:`default_factory` attribute is ``None``, this raises a :exc:"
830904
"`KeyError` exception with the *key* as argument."
831905
msgstr ""
906+
"Se o atributo: attr: `default_factory` é ``None``, isso levanta uma exceção: "
907+
"exc:` KeyError` com a * chave * como argumento."
832908

833909
#: ../../library/collections.rst:701
834910
msgid ""
835911
"If :attr:`default_factory` is not ``None``, it is called without arguments "
836912
"to provide a default value for the given *key*, this value is inserted in "
837913
"the dictionary for the *key*, and returned."
838914
msgstr ""
915+
"Se: attr: `default_factory` não for ``None``, ele é chamado sem argumentos "
916+
"para fornecer um valor padrão para a * chave * fornecida, este valor é "
917+
"inserido no dicionário para a * chave * e retornado."
839918

840919
#: ../../library/collections.rst:705
841920
msgid ""
842921
"If calling :attr:`default_factory` raises an exception this exception is "
843922
"propagated unchanged."
844923
msgstr ""
924+
"Se chamar: attr: `default_factory` levanta uma exceção, esta exceção é "
925+
"propagada inalterada."
845926

846927
#: ../../library/collections.rst:708
847928
msgid ""
848929
"This method is called by the :meth:`__getitem__` method of the :class:`dict` "
849930
"class when the requested key is not found; whatever it returns or raises is "
850931
"then returned or raised by :meth:`__getitem__`."
851932
msgstr ""
933+
"Este método é chamado pelo método: meth: `__getitem__` da classe: class:` "
934+
"dict` quando a chave solicitada não é encontrada; tudo o que ele retorna ou "
935+
"aumenta é então retornado ou gerado por: meth: `__getitem__`."
852936

853937
#: ../../library/collections.rst:712
854938
msgid ""

0 commit comments

Comments
 (0)