@@ -819,6 +819,10 @@ msgid ""
819819"attr:`~function.__doc__` and :attr:`~function.__annotations__`) and have a "
820820"new ``__wrapped__`` attribute."
821821msgstr ""
822+ "Métodos de classe agora herdam os atributos do método (:attr:`~function."
823+ "__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :"
824+ "attr:`~function.__doc__` e :attr:`~function.__annotations__`) e têm um novo "
825+ "atributo ``__wrapped__``."
822826
823827#: ../../library/functions.rst:292
824828msgid ""
@@ -2472,6 +2476,9 @@ msgid ""
24722476":class:`object` instances do *not* have :attr:`~object.__dict__` attributes, "
24732477"so you can't assign arbitrary attributes to an instance of :class:`object`."
24742478msgstr ""
2479+ "Instâncias de :class:`object` *não* têm atributos :attr:`~object.__dict__`, "
2480+ "então você não pode atribuir atributos arbitrários a uma instância de :class:"
2481+ "`object`."
24752482
24762483#: ../../library/functions.rst:1291
24772484msgid ""
@@ -3710,6 +3717,10 @@ msgid ""
37103717"attr:`~function.__doc__` and :attr:`~function.__annotations__`), have a new "
37113718"``__wrapped__`` attribute, and are now callable as regular functions."
37123719msgstr ""
3720+ "Métodos estáticos agora herdam os atributos do método (:attr:`~function."
3721+ "__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :"
3722+ "attr:`~function.__doc__` e :attr:`~function.__annotations__`), têm um novo "
3723+ "atributo ``__wrapped__`` e são agora chamáveis como funções regulares."
37133724
37143725#: ../../library/functions.rst:1921
37153726msgid ""
@@ -3786,6 +3797,9 @@ msgid ""
37863797"> A -> object`` and the value of *type* is ``B``, then :func:`super` "
37873798"searches ``C -> A -> object``."
37883799msgstr ""
3800+ "Por exemplo, se :attr:`~type.__mro__` de *object_or_type* é ``D -> B -> C -> "
3801+ "A -> object`` e o valor de *type* é ``B``, então :func:`super` procura por "
3802+ "``C -> A -> object``."
37893803
37903804#: ../../library/functions.rst:1961
37913805msgid ""
@@ -3794,6 +3808,10 @@ msgid ""
37943808"`getattr` and :func:`super`. The attribute is dynamic and can change "
37953809"whenever the inheritance hierarchy is updated."
37963810msgstr ""
3811+ "O atributo :attr:`~type.__mro__` da classe correspondente ao "
3812+ "*object_or_type* lista a ordem de pesquisa de resolução de método usada por :"
3813+ "func:`getattr` e :func:`super`. O atributo é dinâmico e pode mudar sempre "
3814+ "que a hierarquia da herança é atualizada."
37973815
37983816#: ../../library/functions.rst:1966
37993817msgid ""
@@ -3944,6 +3962,9 @@ msgid ""
39443962"type object and generally the same object as returned by :attr:`object."
39453963"__class__`."
39463964msgstr ""
3965+ "Com um argumento, retorna o tipo de um *object*. O valor de retorno é um "
3966+ "tipo de objeto e geralmente o mesmo objeto retornado por :attr:`object."
3967+ "__class__`."
39473968
39483969#: ../../library/functions.rst:2042
39493970msgid ""
@@ -3965,20 +3986,31 @@ msgid ""
39653986"__dict__` attribute. The following two statements create identical :class:`!"
39663987"type` objects:"
39673988msgstr ""
3989+ "Com três argumentos, retorna um novo objeto type. Esta é essencialmente a "
3990+ "forma dinâmica da instrução :keyword:`class`. A string *name* é o nome da "
3991+ "classe e se torna o atributo :attr:`~type.__name__`. A tupla *bases* contém "
3992+ "as classes bases e se torna o atributo :attr:`~type.__bases__`; se vazio, :"
3993+ "class:`object`, a base final de todas as classes é adicionada. O dicionário "
3994+ "*dict* contém definições de atributo e método para o corpo da classe; ele "
3995+ "pode ser copiado ou envolto antes de se tornar o atributo :attr:`~type."
3996+ "__dict__`. As duas instruções a seguir criam objetos :class:`!type` "
3997+ "idênticos:"
39683998
39693999#: ../../library/functions.rst:2060
39704000msgid "See also:"
3971- msgstr ""
4001+ msgstr "Veja também: "
39724002
39734003#: ../../library/functions.rst:2062
39744004msgid ""
39754005":ref:`Documentation on attributes and methods on classes <class-attrs-and-"
39764006"methods>`."
39774007msgstr ""
4008+ ":ref:`Documentação sobre atributos e métodos em classes <class-attrs-and-"
4009+ "methods>`."
39784010
39794011#: ../../library/functions.rst:2063
39804012msgid ":ref:`bltin-type-objects`"
3981- msgstr ""
4013+ msgstr ":ref:`bltin-type-objects` "
39824014
39834015#: ../../library/functions.rst:2065
39844016msgid ""
@@ -4001,12 +4033,16 @@ msgid ""
40014033"Subclasses of :class:`!type` which don't override ``type.__new__`` may no "
40024034"longer use the one-argument form to get the type of an object."
40034035msgstr ""
4036+ "Subclasses de :class:`!type` que não substituem ``type.__new__`` não podem "
4037+ "mais usar a forma com apenas um argumento para obter o tipo de um objeto."
40044038
40054039#: ../../library/functions.rst:2079
40064040msgid ""
40074041"Return the :attr:`~object.__dict__` attribute for a module, class, instance, "
40084042"or any other object with a :attr:`!__dict__` attribute."
40094043msgstr ""
4044+ "Retorna o atributo :attr:`~object.__dict__` para um módulo, classe, "
4045+ "instância, or qualquer outro objeto com um atributo :attr:`!__dict__`."
40104046
40114047#: ../../library/functions.rst:2082
40124048msgid ""
@@ -4015,6 +4051,10 @@ msgid ""
40154051"their :attr:`!__dict__` attributes (for example, classes use a :class:`types."
40164052"MappingProxyType` to prevent direct dictionary updates)."
40174053msgstr ""
4054+ "Objetos como modelos e instâncias têm um atributo atualizável :attr:`~object."
4055+ "__dict__`; porém, outros projetos podem ter restrições de escrita em seus "
4056+ "atributos :attr:`!__dict__` (por exemplo, classes usam um :class:`types."
4057+ "MappingProxyType` para prevenir atualizações diretas a dicionário)."
40184058
40194059#: ../../library/functions.rst:2087
40204060msgid "Without an argument, :func:`vars` acts like :func:`locals`."
0 commit comments