@@ -16,7 +16,7 @@ msgid ""
16
16
msgstr ""
17
17
"Project-Id-Version : Python 3.13\n "
18
18
"Report-Msgid-Bugs-To : \n "
19
- "POT-Creation-Date : 2024-05-11 02:33 +0000\n "
19
+ "POT-Creation-Date : 2024-05-17 14:15 +0000\n "
20
20
"PO-Revision-Date : 2021-06-28 01:03+0000\n "
21
21
"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
22
22
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -784,14 +784,15 @@ msgstr ""
784
784
msgid ""
785
785
"There is a tiny performance penalty when using ``frozen=True``: :meth:"
786
786
"`~object.__init__` cannot use simple assignment to initialize fields, and "
787
- "must use :meth:`!__setattr__`."
787
+ "must use :meth:`!object.__setattr__`. .. Make sure to not remove \" object\" "
788
+ "from \" object.__setattr__\" in the above markup"
788
789
msgstr ""
789
790
790
- #: ../../library/dataclasses.rst:623
791
+ #: ../../library/dataclasses.rst:624
791
792
msgid "Inheritance"
792
793
msgstr "Herança"
793
794
794
- #: ../../library/dataclasses.rst:625
795
+ #: ../../library/dataclasses.rst:626
795
796
msgid ""
796
797
"When the dataclass is being created by the :func:`@dataclass <dataclass>` "
797
798
"decorator, it looks through all of the class's base classes in reverse MRO "
@@ -803,67 +804,67 @@ msgid ""
803
804
"order, derived classes override base classes. An example::"
804
805
msgstr ""
805
806
806
- #: ../../library/dataclasses.rst:645
807
+ #: ../../library/dataclasses.rst:646
807
808
msgid ""
808
809
"The final list of fields is, in order, :attr:`!x`, :attr:`!y`, :attr:`!z`. "
809
810
"The final type of :attr:`!x` is :class:`int`, as specified in class :class:`!"
810
811
"C`."
811
812
msgstr ""
812
813
813
- #: ../../library/dataclasses.rst:648
814
+ #: ../../library/dataclasses.rst:649
814
815
msgid ""
815
816
"The generated :meth:`~object.__init__` method for :class:`!C` will look "
816
817
"like::"
817
818
msgstr ""
818
819
819
- #: ../../library/dataclasses.rst:653
820
+ #: ../../library/dataclasses.rst:654
820
821
msgid "Re-ordering of keyword-only parameters in :meth:`!__init__`"
821
822
msgstr ""
822
823
823
- #: ../../library/dataclasses.rst:655
824
+ #: ../../library/dataclasses.rst:656
824
825
msgid ""
825
826
"After the parameters needed for :meth:`~object.__init__` are computed, any "
826
827
"keyword-only parameters are moved to come after all regular (non-keyword-"
827
828
"only) parameters. This is a requirement of how keyword-only parameters are "
828
829
"implemented in Python: they must come after non-keyword-only parameters."
829
830
msgstr ""
830
831
831
- #: ../../library/dataclasses.rst:661
832
+ #: ../../library/dataclasses.rst:662
832
833
msgid ""
833
834
"In this example, :attr:`!Base.y`, :attr:`!Base.w`, and :attr:`!D.t` are "
834
835
"keyword-only fields, and :attr:`!Base.x` and :attr:`!D.z` are regular "
835
836
"fields::"
836
837
msgstr ""
837
838
838
- #: ../../library/dataclasses.rst:676
839
+ #: ../../library/dataclasses.rst:677
839
840
msgid "The generated :meth:`!__init__` method for :class:`!D` will look like::"
840
841
msgstr ""
841
842
842
- #: ../../library/dataclasses.rst:680
843
+ #: ../../library/dataclasses.rst:681
843
844
msgid ""
844
845
"Note that the parameters have been re-ordered from how they appear in the "
845
846
"list of fields: parameters derived from regular fields are followed by "
846
847
"parameters derived from keyword-only fields."
847
848
msgstr ""
848
849
849
- #: ../../library/dataclasses.rst:684
850
+ #: ../../library/dataclasses.rst:685
850
851
msgid ""
851
852
"The relative ordering of keyword-only parameters is maintained in the re-"
852
853
"ordered :meth:`!__init__` parameter list."
853
854
msgstr ""
854
855
855
- #: ../../library/dataclasses.rst:689
856
+ #: ../../library/dataclasses.rst:690
856
857
msgid "Default factory functions"
857
858
msgstr "Funções padrão de fábrica"
858
859
859
- #: ../../library/dataclasses.rst:691
860
+ #: ../../library/dataclasses.rst:692
860
861
msgid ""
861
862
"If a :func:`field` specifies a *default_factory*, it is called with zero "
862
863
"arguments when a default value for the field is needed. For example, to "
863
864
"create a new instance of a list, use::"
864
865
msgstr ""
865
866
866
- #: ../../library/dataclasses.rst:697
867
+ #: ../../library/dataclasses.rst:698
867
868
msgid ""
868
869
"If a field is excluded from :meth:`~object.__init__` (using ``init=False``) "
869
870
"and the field also specifies *default_factory*, then the default factory "
@@ -872,31 +873,31 @@ msgid ""
872
873
"initial value."
873
874
msgstr ""
874
875
875
- #: ../../library/dataclasses.rst:704
876
+ #: ../../library/dataclasses.rst:705
876
877
msgid "Mutable default values"
877
878
msgstr "Valores padrão mutáveis"
878
879
879
- #: ../../library/dataclasses.rst:706
880
+ #: ../../library/dataclasses.rst:707
880
881
msgid ""
881
882
"Python stores default member variable values in class attributes. Consider "
882
883
"this example, not using dataclasses::"
883
884
msgstr ""
884
885
885
- #: ../../library/dataclasses.rst:721
886
+ #: ../../library/dataclasses.rst:722
886
887
msgid ""
887
888
"Note that the two instances of class :class:`!C` share the same class "
888
889
"variable :attr:`!x`, as expected."
889
890
msgstr ""
890
891
891
- #: ../../library/dataclasses.rst:724
892
+ #: ../../library/dataclasses.rst:725
892
893
msgid "Using dataclasses, *if* this code was valid::"
893
894
msgstr "Usando dataclasses, *se* este código fosse válido::"
894
895
895
- #: ../../library/dataclasses.rst:732
896
+ #: ../../library/dataclasses.rst:733
896
897
msgid "it would generate code similar to::"
897
898
msgstr "Geraria código similar a::"
898
899
899
- #: ../../library/dataclasses.rst:743
900
+ #: ../../library/dataclasses.rst:744
900
901
msgid ""
901
902
"This has the same issue as the original example using class :class:`!C`. "
902
903
"That is, two instances of class :class:`!D` that do not specify a value for :"
@@ -909,44 +910,44 @@ msgid ""
909
910
"partial solution, but it does protect against many common errors."
910
911
msgstr ""
911
912
912
- #: ../../library/dataclasses.rst:754
913
+ #: ../../library/dataclasses.rst:755
913
914
msgid ""
914
915
"Using default factory functions is a way to create new instances of mutable "
915
916
"types as default values for fields::"
916
917
msgstr ""
917
918
918
- #: ../../library/dataclasses.rst:763
919
+ #: ../../library/dataclasses.rst:764
919
920
msgid ""
920
921
"Instead of looking for and disallowing objects of type :class:`list`, :class:"
921
922
"`dict`, or :class:`set`, unhashable objects are now not allowed as default "
922
923
"values. Unhashability is used to approximate mutability."
923
924
msgstr ""
924
925
925
- #: ../../library/dataclasses.rst:770
926
+ #: ../../library/dataclasses.rst:771
926
927
msgid "Descriptor-typed fields"
927
928
msgstr ""
928
929
929
- #: ../../library/dataclasses.rst:772
930
+ #: ../../library/dataclasses.rst:773
930
931
msgid ""
931
932
"Fields that are assigned :ref:`descriptor objects <descriptors>` as their "
932
933
"default value have the following special behaviors:"
933
934
msgstr ""
934
935
935
- #: ../../library/dataclasses.rst:775
936
+ #: ../../library/dataclasses.rst:776
936
937
msgid ""
937
938
"The value for the field passed to the dataclass's :meth:`~object.__init__` "
938
939
"method is passed to the descriptor's :meth:`~object.__set__` method rather "
939
940
"than overwriting the descriptor object."
940
941
msgstr ""
941
942
942
- #: ../../library/dataclasses.rst:779
943
+ #: ../../library/dataclasses.rst:780
943
944
msgid ""
944
945
"Similarly, when getting or setting the field, the descriptor's :meth:"
945
946
"`~object.__get__` or :meth:`!__set__` method is called rather than returning "
946
947
"or overwriting the descriptor object."
947
948
msgstr ""
948
949
949
- #: ../../library/dataclasses.rst:783
950
+ #: ../../library/dataclasses.rst:784
950
951
msgid ""
951
952
"To determine whether a field contains a default value, :func:`@dataclass "
952
953
"<dataclass>` will call the descriptor's :meth:`!__get__` method using its "
@@ -956,7 +957,7 @@ msgid ""
956
957
"in this situation, no default value will be provided for the field."
957
958
msgstr ""
958
959
959
- #: ../../library/dataclasses.rst:818
960
+ #: ../../library/dataclasses.rst:819
960
961
msgid ""
961
962
"Note that if a field is annotated with a descriptor type, but is not "
962
963
"assigned a descriptor object as its default value, the field will act like a "
0 commit comments