10
10
# Welington Carlos <[email protected] >, 2021
11
11
# Alexandre B A Villares, 2021
12
12
# Vitor Buxbaum Orlandi, 2021
13
- # Porfirio_Prodigy, 2021
14
13
# Rafael Fontenelle <[email protected] >, 2021
14
+ # Porfirio_Prodigy, 2022
15
15
#
16
16
#, fuzzy
17
17
msgid ""
@@ -20,7 +20,7 @@ msgstr ""
20
20
"Report-Msgid-Bugs-To : \n "
21
21
"POT-Creation-Date : 2021-08-03 13:12+0000\n "
22
22
"PO-Revision-Date : 2021-06-28 00:56+0000\n "
23
- "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2021 \n"
23
+ "Last-Translator : Porfirio_Prodigy, 2022 \n "
24
24
"Language-Team : Portuguese (Brazil) (https://www.transifex.com/python-doc/ "
25
25
"teams/5390/pt_BR/)\n "
26
26
"MIME-Version : 1.0\n "
@@ -678,6 +678,9 @@ msgid ""
678
678
"To enumerate all distinct multisets of a given size over a given set of "
679
679
"elements, see :func:`itertools.combinations_with_replacement`::"
680
680
msgstr ""
681
+ "Para enumerar todos os multisets distintos de um determinado tamanho em um "
682
+ "determinado conjunto de elementos, consulte: func:` itertools."
683
+ "combinations_with_replacement` ::"
681
684
682
685
#: ../../library/collections.rst:443
683
686
msgid ":class:`deque` objects"
@@ -689,6 +692,9 @@ msgid ""
689
692
"with data from *iterable*. If *iterable* is not specified, the new deque is "
690
693
"empty."
691
694
msgstr ""
695
+ "Retorna um novo objeto deque inicializado da esquerda para a direita "
696
+ "(usando: meth: `append`) com dados de * iterável *. Se * iterável * não for "
697
+ "especificado, o novo deque estará vazio."
692
698
693
699
#: ../../library/collections.rst:450
694
700
msgid ""
@@ -697,6 +703,11 @@ msgid ""
697
703
"safe, memory efficient appends and pops from either side of the deque with "
698
704
"approximately the same O(1) performance in either direction."
699
705
msgstr ""
706
+ "Deques são uma generalização de pilhas e filas (o nome é pronunciado \" deck"
707
+ "\" e é abreviação de \" fila dupla\" ). O Deques oferece suporte para "
708
+ "acréscimos e saliências com segurança de thread e com eficiência de memória "
709
+ "de ambos os lados do deque com aproximadamente o mesmo desempenho O (1) em "
710
+ "qualquer direção."
700
711
701
712
#: ../../library/collections.rst:455
702
713
msgid ""
@@ -705,6 +716,11 @@ msgid ""
705
716
"``pop(0)`` and ``insert(0, v)`` operations which change both the size and "
706
717
"position of the underlying data representation."
707
718
msgstr ""
719
+ "Embora os objetos: class: `list` suportem operações semelhantes, eles são "
720
+ "otimizados para operações rápidas de comprimento fixo e sujeitam em custos "
721
+ "de movimentação de memória O (n) para` `pop (0)` `e` `insert (0, v)` ` "
722
+ "operações que alteram o tamanho e a posição da representação de dados "
723
+ "subjacente."
708
724
709
725
#: ../../library/collections.rst:461
710
726
msgid ""
@@ -716,103 +732,132 @@ msgid ""
716
732
"They are also useful for tracking transactions and other pools of data where "
717
733
"only the most recent activity is of interest."
718
734
msgstr ""
735
+ "Se * maxlen * não for especificado ou for `` Nenhum``, deques podem crescer "
736
+ "para um comprimento arbitrário. Caso contrário, o deque é limitado ao "
737
+ "comprimento máximo especificado. Quando um deque de comprimento limitado "
738
+ "está cheio, quando novos itens são adicionados, um número correspondente de "
739
+ "itens é descartado da extremidade oposta. Deques de comprimento limitado "
740
+ "fornecem funcionalidade semelhante ao filtro `` tail`` no Unix. Eles também "
741
+ "são úteis para rastrear transações e outros pools de dados onde apenas a "
742
+ "atividade mais recente é de interesse."
719
743
720
744
#: ../../library/collections.rst:470
721
745
msgid "Deque objects support the following methods:"
722
- msgstr ""
746
+ msgstr "Os objetos Deque suportam os seguintes métodos: "
723
747
724
748
#: ../../library/collections.rst:474
725
749
msgid "Add *x* to the right side of the deque."
726
- msgstr ""
750
+ msgstr "Adicione * x * ao lado direito do deque. "
727
751
728
752
#: ../../library/collections.rst:479
729
753
msgid "Add *x* to the left side of the deque."
730
- msgstr ""
754
+ msgstr "Adicione * x * ao lado esquerdo do deque "
731
755
732
756
#: ../../library/collections.rst:484
733
757
msgid "Remove all elements from the deque leaving it with length 0."
734
- msgstr ""
758
+ msgstr "Remova todos os elementos do deque deixando-o com comprimento 0. "
735
759
736
760
#: ../../library/collections.rst:489
737
761
msgid "Create a shallow copy of the deque."
738
- msgstr ""
762
+ msgstr "Cria uma cópia rasa do deque. "
739
763
740
764
#: ../../library/collections.rst:496
741
765
msgid "Count the number of deque elements equal to *x*."
742
- msgstr ""
766
+ msgstr "Conta o número de elementos deque igual a * x *. "
743
767
744
768
#: ../../library/collections.rst:503
745
769
msgid ""
746
770
"Extend the right side of the deque by appending elements from the iterable "
747
771
"argument."
748
772
msgstr ""
773
+ "Estenda o lado direito do deque anexando elementos do argumento iterável."
749
774
750
775
#: ../../library/collections.rst:509
751
776
msgid ""
752
777
"Extend the left side of the deque by appending elements from *iterable*. "
753
778
"Note, the series of left appends results in reversing the order of elements "
754
779
"in the iterable argument."
755
780
msgstr ""
781
+ "Estenda o lado esquerdo do deque anexando elementos de *iterable*. Observe "
782
+ "que a série de acréscimos à esquerda resulta na reversão da ordem dos "
783
+ "elementos no argumento iterável."
756
784
757
785
#: ../../library/collections.rst:516
758
786
msgid ""
759
787
"Return the position of *x* in the deque (at or after index *start* and "
760
788
"before index *stop*). Returns the first match or raises :exc:`ValueError` "
761
789
"if not found."
762
790
msgstr ""
791
+ "Retorne a posição de * x * no deque (no ou após o índice * início * e antes "
792
+ "do índice * parada *). Retorna a primeira correspondência ou aumenta: exc: "
793
+ "`ValueError` se não for encontrado."
763
794
764
795
#: ../../library/collections.rst:525
765
796
msgid "Insert *x* into the deque at position *i*."
766
- msgstr ""
797
+ msgstr "Insira * x * no deque na posição * i *. "
767
798
768
799
#: ../../library/collections.rst:527
769
800
msgid ""
770
801
"If the insertion would cause a bounded deque to grow beyond *maxlen*, an :"
771
802
"exc:`IndexError` is raised."
772
803
msgstr ""
804
+ "Se a inserção fizer com que um deque limitado cresça além de * maxlen *, um: "
805
+ "exc: `IndexError` é gerado."
773
806
774
807
#: ../../library/collections.rst:535
775
808
msgid ""
776
809
"Remove and return an element from the right side of the deque. If no "
777
810
"elements are present, raises an :exc:`IndexError`."
778
811
msgstr ""
812
+ "Remova e devolva um elemento do lado direito do deque. Se nenhum elemento "
813
+ "estiver presente, levanta um: exc: `IndexError`."
779
814
780
815
#: ../../library/collections.rst:541
781
816
msgid ""
782
817
"Remove and return an element from the left side of the deque. If no elements "
783
818
"are present, raises an :exc:`IndexError`."
784
819
msgstr ""
820
+ "Remova e devolva um elemento do lado esquerdo do deque. Se nenhum elemento "
821
+ "estiver presente, levanta um: exc: `IndexError`."
785
822
786
823
#: ../../library/collections.rst:547
787
824
msgid ""
788
825
"Remove the first occurrence of *value*. If not found, raises a :exc:"
789
826
"`ValueError`."
790
827
msgstr ""
828
+ "Remova a primeira ocorrência de * valor *. Se não for encontrado, levanta "
829
+ "um: exc: `ValueError`."
791
830
792
831
#: ../../library/collections.rst:553
793
832
msgid "Reverse the elements of the deque in-place and then return ``None``."
794
833
msgstr ""
834
+ "Inverta os elementos do deque no local e, em seguida, retorne ``None``."
795
835
796
836
#: ../../library/collections.rst:560
797
837
msgid ""
798
838
"Rotate the deque *n* steps to the right. If *n* is negative, rotate to the "
799
839
"left."
800
840
msgstr ""
841
+ "Gire os passos deque * n * para a direita. Se * n * for negativo, gire para "
842
+ "a esquerda."
801
843
802
844
#: ../../library/collections.rst:563
803
845
msgid ""
804
846
"When the deque is not empty, rotating one step to the right is equivalent to "
805
847
"``d.appendleft(d.pop())``, and rotating one step to the left is equivalent "
806
848
"to ``d.append(d.popleft())``."
807
849
msgstr ""
850
+ "Quando o deque não está vazio, girar um passo para a direita é equivalente a "
851
+ "``d.appendleft(d.pop())``, e girar um passo para a esquerda é equivalente a "
852
+ "``d.append(d.popleft())``."
808
853
809
854
#: ../../library/collections.rst:568
810
855
msgid "Deque objects also provide one read-only attribute:"
811
- msgstr ""
856
+ msgstr "Os objetos Deque também fornecem um atributo somente leitura: "
812
857
813
858
#: ../../library/collections.rst:572
814
859
msgid "Maximum size of a deque or ``None`` if unbounded."
815
- msgstr ""
860
+ msgstr "Tamanho máximo de um deque ou ``None`` se ilimitado. "
816
861
817
862
#: ../../library/collections.rst:577
818
863
msgid ""
@@ -822,12 +867,19 @@ msgid ""
822
867
"to access the first element. Indexed access is O(1) at both ends but slows "
823
868
"to O(n) in the middle. For fast random access, use lists instead."
824
869
msgstr ""
870
+ "Além do acima, deques oferece suporte a iteração, decapagem, teste de "
871
+ "associação com o operador: keyword: `in` e referências subscritas, como para "
872
+ "acessar o primeiro elemento. O acesso indexado é O (1) em ambas as "
873
+ "extremidades, mas diminui para O (n) no meio. Para acesso aleatório rápido, "
874
+ "use listas."
825
875
826
876
#: ../../library/collections.rst:583
827
877
msgid ""
828
878
"Starting in version 3.5, deques support ``__add__()``, ``__mul__()``, and "
829
879
"``__imul__()``."
830
880
msgstr ""
881
+ "A partir da versão 3.5, deques suporta `` __add __ () ``, `` __mul __ () `` "
882
+ "e `` __imul __ () ``."
831
883
832
884
#: ../../library/collections.rst:586
833
885
msgid "Example:"
@@ -839,19 +891,23 @@ msgstr "Receitas de :class:`deque`"
839
891
840
892
#: ../../library/collections.rst:645
841
893
msgid "This section shows various approaches to working with deques."
842
- msgstr ""
894
+ msgstr "Esta seção mostra várias abordagens para trabalhar com deques. "
843
895
844
896
#: ../../library/collections.rst:647
845
897
msgid ""
846
898
"Bounded length deques provide functionality similar to the ``tail`` filter "
847
899
"in Unix::"
848
900
msgstr ""
901
+ "Deques de comprimento limitado fornecem funcionalidade semelhante ao filtro "
902
+ "``tail`` em Unix ::"
849
903
850
904
#: ../../library/collections.rst:655
851
905
msgid ""
852
906
"Another approach to using deques is to maintain a sequence of recently added "
853
907
"elements by appending to the right and popping to the left::"
854
908
msgstr ""
909
+ "Outra abordagem para usar deques é manter uma sequência de elementos "
910
+ "adicionados recentemente, acrescentando à direita e clicando à esquerda::"
855
911
856
912
#: ../../library/collections.rst:670
857
913
msgid ""
@@ -862,13 +918,23 @@ msgid ""
862
918
"popleft`; otherwise, it can be cycled back to the end with the :meth:`~deque."
863
919
"rotate` method::"
864
920
msgstr ""
921
+ "Um `escalonador round-robin <https://en.wikipedia.org/wiki/Round-"
922
+ "robin_scheduling>` _ pode ser implementado com iteradores de entrada "
923
+ "armazenados em um: class: `deque`. Os valores são gerados a partir do "
924
+ "iterador ativo na posição zero. Se esse iterador estiver esgotado, ele pode "
925
+ "ser removido com: meth: `~ deque.popleft`; caso contrário, ele pode voltar "
926
+ "ao fim com o método: meth: `~ deque.rotate` ::"
865
927
866
928
#: ../../library/collections.rst:689
867
929
msgid ""
868
930
"The :meth:`~deque.rotate` method provides a way to implement :class:`deque` "
869
931
"slicing and deletion. For example, a pure Python implementation of ``del "
870
932
"d[n]`` relies on the ``rotate()`` method to position elements to be popped::"
871
933
msgstr ""
934
+ "O método: meth: `~ deque.rotate` fornece uma maneira de implementar o corte "
935
+ "e exclusão: class:` deque`. Por exemplo, uma implementação Python pura de "
936
+ "``del d[n]`` depende do método ``rotate()`` para posicionar os elementos a "
937
+ "serem popped ::"
872
938
873
939
#: ../../library/collections.rst:698
874
940
msgid ""
@@ -879,6 +945,13 @@ msgid ""
879
945
"that approach, it is easy to implement Forth style stack manipulations such "
880
946
"as ``dup``, ``drop``, ``swap``, ``over``, ``pick``, ``rot``, and ``roll``."
881
947
msgstr ""
948
+ "Para implementar o corte: class: `deque`, use uma abordagem semelhante "
949
+ "aplicando: meth:` ~ deque.rotate` para trazer um elemento alvo para o lado "
950
+ "esquerdo do deque. Remova as entradas antigas com: meth: `~ deque.popleft`, "
951
+ "adicione novas entradas com: meth:` ~ deque.extend`, e então inverta a "
952
+ "rotação. Com pequenas variações dessa abordagem, é fácil implementar "
953
+ "manipulações de pilha de estilo Forth, como ``dup``,``drop``,``swap``,"
954
+ "``over``,``pick``,``rot``, and ``roll``."
882
955
883
956
#: ../../library/collections.rst:708
884
957
msgid ":class:`defaultdict` objects"
@@ -891,6 +964,10 @@ msgid ""
891
964
"writable instance variable. The remaining functionality is the same as for "
892
965
"the :class:`dict` class and is not documented here."
893
966
msgstr ""
967
+ "Retorne um novo objeto semelhante a um dicionário. : class: `defaultdict` é "
968
+ "uma subclasse da classe interna: class:` dict`. Ele substitui um método e "
969
+ "adiciona uma variável de instância gravável. A funcionalidade restante é a "
970
+ "mesma da classe: class: `dict` e não está documentada aqui."
894
971
895
972
#: ../../library/collections.rst:717
896
973
msgid ""
@@ -899,38 +976,54 @@ msgid ""
899
976
"arguments are treated the same as if they were passed to the :class:`dict` "
900
977
"constructor, including keyword arguments."
901
978
msgstr ""
979
+ "O primeiro argumento fornece o valor inicial para o atributo: attr: "
980
+ "`default_factory`; o padrão é `` Nenhum``. Todos os argumentos restantes são "
981
+ "tratados da mesma forma como se fossem passados para o construtor: class: "
982
+ "`dict`, incluindo argumentos de palavra-chave."
902
983
903
984
#: ../../library/collections.rst:723
904
985
msgid ""
905
986
":class:`defaultdict` objects support the following method in addition to the "
906
987
"standard :class:`dict` operations:"
907
988
msgstr ""
989
+ "Os objetos: class: `defaultdict` suportam o seguinte método além das "
990
+ "operações padrão: class:` dict`:"
908
991
909
992
#: ../../library/collections.rst:728
910
993
msgid ""
911
994
"If the :attr:`default_factory` attribute is ``None``, this raises a :exc:"
912
995
"`KeyError` exception with the *key* as argument."
913
996
msgstr ""
997
+ "Se o atributo: attr: `default_factory` é ``None``, isso levanta uma exceção: "
998
+ "exc:` KeyError` com a * chave * como argumento."
914
999
915
1000
#: ../../library/collections.rst:731
916
1001
msgid ""
917
1002
"If :attr:`default_factory` is not ``None``, it is called without arguments "
918
1003
"to provide a default value for the given *key*, this value is inserted in "
919
1004
"the dictionary for the *key*, and returned."
920
1005
msgstr ""
1006
+ "Se: attr: `default_factory` não for ``None``, ele é chamado sem argumentos "
1007
+ "para fornecer um valor padrão para a * chave * fornecida, este valor é "
1008
+ "inserido no dicionário para a * chave * e retornado."
921
1009
922
1010
#: ../../library/collections.rst:735
923
1011
msgid ""
924
1012
"If calling :attr:`default_factory` raises an exception this exception is "
925
1013
"propagated unchanged."
926
1014
msgstr ""
1015
+ "Se chamar: attr: `default_factory` levanta uma exceção, esta exceção é "
1016
+ "propagada inalterada."
927
1017
928
1018
#: ../../library/collections.rst:738
929
1019
msgid ""
930
1020
"This method is called by the :meth:`__getitem__` method of the :class:`dict` "
931
1021
"class when the requested key is not found; whatever it returns or raises is "
932
1022
"then returned or raised by :meth:`__getitem__`."
933
1023
msgstr ""
1024
+ "Este método é chamado pelo método: meth: `__getitem__` da classe: class:` "
1025
+ "dict` quando a chave solicitada não é encontrada; tudo o que ele retorna ou "
1026
+ "aumenta é então retornado ou gerado por: meth: `__getitem__`."
934
1027
935
1028
#: ../../library/collections.rst:742
936
1029
msgid ""
0 commit comments