@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.13\n "
16
16
"Report-Msgid-Bugs-To : \n "
17
- "POT-Creation-Date : 2024-05-11 02:33 +0000\n "
17
+ "POT-Creation-Date : 2024-05-17 14:15 +0000\n "
18
18
"PO-Revision-Date : 2021-06-28 01:03+0000\n "
19
19
"Last-Translator : Arihiro TAKASE, 2024\n "
20
20
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -729,14 +729,15 @@ msgstr ""
729
729
msgid ""
730
730
"There is a tiny performance penalty when using ``frozen=True``: :meth:"
731
731
"`~object.__init__` cannot use simple assignment to initialize fields, and "
732
- "must use :meth:`!__setattr__`."
732
+ "must use :meth:`!object.__setattr__`. .. Make sure to not remove \" object\" "
733
+ "from \" object.__setattr__\" in the above markup"
733
734
msgstr ""
734
735
735
- #: ../../library/dataclasses.rst:623
736
+ #: ../../library/dataclasses.rst:624
736
737
msgid "Inheritance"
737
738
msgstr "継承"
738
739
739
- #: ../../library/dataclasses.rst:625
740
+ #: ../../library/dataclasses.rst:626
740
741
msgid ""
741
742
"When the dataclass is being created by the :func:`@dataclass <dataclass>` "
742
743
"decorator, it looks through all of the class's base classes in reverse MRO "
@@ -748,24 +749,24 @@ msgid ""
748
749
"order, derived classes override base classes. An example::"
749
750
msgstr ""
750
751
751
- #: ../../library/dataclasses.rst:645
752
+ #: ../../library/dataclasses.rst:646
752
753
msgid ""
753
754
"The final list of fields is, in order, :attr:`!x`, :attr:`!y`, :attr:`!z`. "
754
755
"The final type of :attr:`!x` is :class:`int`, as specified in class :class:`!"
755
756
"C`."
756
757
msgstr ""
757
758
758
- #: ../../library/dataclasses.rst:648
759
+ #: ../../library/dataclasses.rst:649
759
760
msgid ""
760
761
"The generated :meth:`~object.__init__` method for :class:`!C` will look "
761
762
"like::"
762
763
msgstr ""
763
764
764
- #: ../../library/dataclasses.rst:653
765
+ #: ../../library/dataclasses.rst:654
765
766
msgid "Re-ordering of keyword-only parameters in :meth:`!__init__`"
766
767
msgstr ""
767
768
768
- #: ../../library/dataclasses.rst:655
769
+ #: ../../library/dataclasses.rst:656
769
770
msgid ""
770
771
"After the parameters needed for :meth:`~object.__init__` are computed, any "
771
772
"keyword-only parameters are moved to come after all regular (non-keyword-"
@@ -777,18 +778,18 @@ msgstr ""
777
778
"のキーワード専用引数は、非キーワード専用パラメータの末尾にこなければならない"
778
779
"という、キーワード専用パラメータのPythonの実装の都合で必要なことです。"
779
780
780
- #: ../../library/dataclasses.rst:661
781
+ #: ../../library/dataclasses.rst:662
781
782
msgid ""
782
783
"In this example, :attr:`!Base.y`, :attr:`!Base.w`, and :attr:`!D.t` are "
783
784
"keyword-only fields, and :attr:`!Base.x` and :attr:`!D.z` are regular "
784
785
"fields::"
785
786
msgstr ""
786
787
787
- #: ../../library/dataclasses.rst:676
788
+ #: ../../library/dataclasses.rst:677
788
789
msgid "The generated :meth:`!__init__` method for :class:`!D` will look like::"
789
790
msgstr ""
790
791
791
- #: ../../library/dataclasses.rst:680
792
+ #: ../../library/dataclasses.rst:681
792
793
msgid ""
793
794
"Note that the parameters have been re-ordered from how they appear in the "
794
795
"list of fields: parameters derived from regular fields are followed by "
@@ -798,24 +799,24 @@ msgstr ""
798
799
"フィールドから派生したパラメータの後に、キーワードのみのフィールドから派生し"
799
800
"たパラメータが続きます。"
800
801
801
- #: ../../library/dataclasses.rst:684
802
+ #: ../../library/dataclasses.rst:685
802
803
msgid ""
803
804
"The relative ordering of keyword-only parameters is maintained in the re-"
804
805
"ordered :meth:`!__init__` parameter list."
805
806
msgstr ""
806
807
807
- #: ../../library/dataclasses.rst:689
808
+ #: ../../library/dataclasses.rst:690
808
809
msgid "Default factory functions"
809
810
msgstr "デフォルトファクトリ関数"
810
811
811
- #: ../../library/dataclasses.rst:691
812
+ #: ../../library/dataclasses.rst:692
812
813
msgid ""
813
814
"If a :func:`field` specifies a *default_factory*, it is called with zero "
814
815
"arguments when a default value for the field is needed. For example, to "
815
816
"create a new instance of a list, use::"
816
817
msgstr ""
817
818
818
- #: ../../library/dataclasses.rst:697
819
+ #: ../../library/dataclasses.rst:698
819
820
msgid ""
820
821
"If a field is excluded from :meth:`~object.__init__` (using ``init=False``) "
821
822
"and the field also specifies *default_factory*, then the default factory "
@@ -824,33 +825,33 @@ msgid ""
824
825
"initial value."
825
826
msgstr ""
826
827
827
- #: ../../library/dataclasses.rst:704
828
+ #: ../../library/dataclasses.rst:705
828
829
msgid "Mutable default values"
829
830
msgstr "可変なデフォルト値"
830
831
831
- #: ../../library/dataclasses.rst:706
832
+ #: ../../library/dataclasses.rst:707
832
833
msgid ""
833
834
"Python stores default member variable values in class attributes. Consider "
834
835
"this example, not using dataclasses::"
835
836
msgstr ""
836
837
"Python はメンバ変数のデフォルト値をクラス属性に保持します。\n"
837
838
"データクラスを使っていない、この例を考えてみましょう::"
838
839
839
- #: ../../library/dataclasses.rst:721
840
+ #: ../../library/dataclasses.rst:722
840
841
msgid ""
841
842
"Note that the two instances of class :class:`!C` share the same class "
842
843
"variable :attr:`!x`, as expected."
843
844
msgstr ""
844
845
845
- #: ../../library/dataclasses.rst:724
846
+ #: ../../library/dataclasses.rst:725
846
847
msgid "Using dataclasses, *if* this code was valid::"
847
848
msgstr "データクラスを使っているこのコードが *もし仮に* 有効なものだとしたら::"
848
849
849
- #: ../../library/dataclasses.rst:732
850
+ #: ../../library/dataclasses.rst:733
850
851
msgid "it would generate code similar to::"
851
852
msgstr "データクラスは次のようなコードを生成するでしょう::"
852
853
853
- #: ../../library/dataclasses.rst:743
854
+ #: ../../library/dataclasses.rst:744
854
855
msgid ""
855
856
"This has the same issue as the original example using class :class:`!C`. "
856
857
"That is, two instances of class :class:`!D` that do not specify a value for :"
@@ -863,46 +864,46 @@ msgid ""
863
864
"partial solution, but it does protect against many common errors."
864
865
msgstr ""
865
866
866
- #: ../../library/dataclasses.rst:754
867
+ #: ../../library/dataclasses.rst:755
867
868
msgid ""
868
869
"Using default factory functions is a way to create new instances of mutable "
869
870
"types as default values for fields::"
870
871
msgstr ""
871
872
"デフォルトファクトリ関数を使うのが、フィールドのデフォルト値として可変な型の"
872
873
"新しいインスタンスを作成する手段です::"
873
874
874
- #: ../../library/dataclasses.rst:763
875
+ #: ../../library/dataclasses.rst:764
875
876
msgid ""
876
877
"Instead of looking for and disallowing objects of type :class:`list`, :class:"
877
878
"`dict`, or :class:`set`, unhashable objects are now not allowed as default "
878
879
"values. Unhashability is used to approximate mutability."
879
880
msgstr ""
880
881
881
- #: ../../library/dataclasses.rst:770
882
+ #: ../../library/dataclasses.rst:771
882
883
msgid "Descriptor-typed fields"
883
884
msgstr ""
884
885
885
- #: ../../library/dataclasses.rst:772
886
+ #: ../../library/dataclasses.rst:773
886
887
msgid ""
887
888
"Fields that are assigned :ref:`descriptor objects <descriptors>` as their "
888
889
"default value have the following special behaviors:"
889
890
msgstr ""
890
891
891
- #: ../../library/dataclasses.rst:775
892
+ #: ../../library/dataclasses.rst:776
892
893
msgid ""
893
894
"The value for the field passed to the dataclass's :meth:`~object.__init__` "
894
895
"method is passed to the descriptor's :meth:`~object.__set__` method rather "
895
896
"than overwriting the descriptor object."
896
897
msgstr ""
897
898
898
- #: ../../library/dataclasses.rst:779
899
+ #: ../../library/dataclasses.rst:780
899
900
msgid ""
900
901
"Similarly, when getting or setting the field, the descriptor's :meth:"
901
902
"`~object.__get__` or :meth:`!__set__` method is called rather than returning "
902
903
"or overwriting the descriptor object."
903
904
msgstr ""
904
905
905
- #: ../../library/dataclasses.rst:783
906
+ #: ../../library/dataclasses.rst:784
906
907
msgid ""
907
908
"To determine whether a field contains a default value, :func:`@dataclass "
908
909
"<dataclass>` will call the descriptor's :meth:`!__get__` method using its "
@@ -912,7 +913,7 @@ msgid ""
912
913
"in this situation, no default value will be provided for the field."
913
914
msgstr ""
914
915
915
- #: ../../library/dataclasses.rst:818
916
+ #: ../../library/dataclasses.rst:819
916
917
msgid ""
917
918
"Note that if a field is annotated with a descriptor type, but is not "
918
919
"assigned a descriptor object as its default value, the field will act like a "
0 commit comments