@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.13\n "
1616"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 "
1818"PO-Revision-Date : 2021-06-28 01:03+0000\n "
1919"Last-Translator : Arihiro TAKASE, 2024\n "
2020"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -729,14 +729,15 @@ msgstr ""
729729msgid ""
730730"There is a tiny performance penalty when using ``frozen=True``: :meth:"
731731"`~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"
733734msgstr ""
734735
735- #: ../../library/dataclasses.rst:623
736+ #: ../../library/dataclasses.rst:624
736737msgid "Inheritance"
737738msgstr "継承"
738739
739- #: ../../library/dataclasses.rst:625
740+ #: ../../library/dataclasses.rst:626
740741msgid ""
741742"When the dataclass is being created by the :func:`@dataclass <dataclass>` "
742743"decorator, it looks through all of the class's base classes in reverse MRO "
@@ -748,24 +749,24 @@ msgid ""
748749"order, derived classes override base classes. An example::"
749750msgstr ""
750751
751- #: ../../library/dataclasses.rst:645
752+ #: ../../library/dataclasses.rst:646
752753msgid ""
753754"The final list of fields is, in order, :attr:`!x`, :attr:`!y`, :attr:`!z`. "
754755"The final type of :attr:`!x` is :class:`int`, as specified in class :class:`!"
755756"C`."
756757msgstr ""
757758
758- #: ../../library/dataclasses.rst:648
759+ #: ../../library/dataclasses.rst:649
759760msgid ""
760761"The generated :meth:`~object.__init__` method for :class:`!C` will look "
761762"like::"
762763msgstr ""
763764
764- #: ../../library/dataclasses.rst:653
765+ #: ../../library/dataclasses.rst:654
765766msgid "Re-ordering of keyword-only parameters in :meth:`!__init__`"
766767msgstr ""
767768
768- #: ../../library/dataclasses.rst:655
769+ #: ../../library/dataclasses.rst:656
769770msgid ""
770771"After the parameters needed for :meth:`~object.__init__` are computed, any "
771772"keyword-only parameters are moved to come after all regular (non-keyword-"
@@ -777,18 +778,18 @@ msgstr ""
777778"のキーワード専用引数は、非キーワード専用パラメータの末尾にこなければならない"
778779"という、キーワード専用パラメータのPythonの実装の都合で必要なことです。"
779780
780- #: ../../library/dataclasses.rst:661
781+ #: ../../library/dataclasses.rst:662
781782msgid ""
782783"In this example, :attr:`!Base.y`, :attr:`!Base.w`, and :attr:`!D.t` are "
783784"keyword-only fields, and :attr:`!Base.x` and :attr:`!D.z` are regular "
784785"fields::"
785786msgstr ""
786787
787- #: ../../library/dataclasses.rst:676
788+ #: ../../library/dataclasses.rst:677
788789msgid "The generated :meth:`!__init__` method for :class:`!D` will look like::"
789790msgstr ""
790791
791- #: ../../library/dataclasses.rst:680
792+ #: ../../library/dataclasses.rst:681
792793msgid ""
793794"Note that the parameters have been re-ordered from how they appear in the "
794795"list of fields: parameters derived from regular fields are followed by "
@@ -798,24 +799,24 @@ msgstr ""
798799"フィールドから派生したパラメータの後に、キーワードのみのフィールドから派生し"
799800"たパラメータが続きます。"
800801
801- #: ../../library/dataclasses.rst:684
802+ #: ../../library/dataclasses.rst:685
802803msgid ""
803804"The relative ordering of keyword-only parameters is maintained in the re-"
804805"ordered :meth:`!__init__` parameter list."
805806msgstr ""
806807
807- #: ../../library/dataclasses.rst:689
808+ #: ../../library/dataclasses.rst:690
808809msgid "Default factory functions"
809810msgstr "デフォルトファクトリ関数"
810811
811- #: ../../library/dataclasses.rst:691
812+ #: ../../library/dataclasses.rst:692
812813msgid ""
813814"If a :func:`field` specifies a *default_factory*, it is called with zero "
814815"arguments when a default value for the field is needed. For example, to "
815816"create a new instance of a list, use::"
816817msgstr ""
817818
818- #: ../../library/dataclasses.rst:697
819+ #: ../../library/dataclasses.rst:698
819820msgid ""
820821"If a field is excluded from :meth:`~object.__init__` (using ``init=False``) "
821822"and the field also specifies *default_factory*, then the default factory "
@@ -824,33 +825,33 @@ msgid ""
824825"initial value."
825826msgstr ""
826827
827- #: ../../library/dataclasses.rst:704
828+ #: ../../library/dataclasses.rst:705
828829msgid "Mutable default values"
829830msgstr "可変なデフォルト値"
830831
831- #: ../../library/dataclasses.rst:706
832+ #: ../../library/dataclasses.rst:707
832833msgid ""
833834"Python stores default member variable values in class attributes. Consider "
834835"this example, not using dataclasses::"
835836msgstr ""
836837"Python はメンバ変数のデフォルト値をクラス属性に保持します。\n"
837838"データクラスを使っていない、この例を考えてみましょう::"
838839
839- #: ../../library/dataclasses.rst:721
840+ #: ../../library/dataclasses.rst:722
840841msgid ""
841842"Note that the two instances of class :class:`!C` share the same class "
842843"variable :attr:`!x`, as expected."
843844msgstr ""
844845
845- #: ../../library/dataclasses.rst:724
846+ #: ../../library/dataclasses.rst:725
846847msgid "Using dataclasses, *if* this code was valid::"
847848msgstr "データクラスを使っているこのコードが *もし仮に* 有効なものだとしたら::"
848849
849- #: ../../library/dataclasses.rst:732
850+ #: ../../library/dataclasses.rst:733
850851msgid "it would generate code similar to::"
851852msgstr "データクラスは次のようなコードを生成するでしょう::"
852853
853- #: ../../library/dataclasses.rst:743
854+ #: ../../library/dataclasses.rst:744
854855msgid ""
855856"This has the same issue as the original example using class :class:`!C`. "
856857"That is, two instances of class :class:`!D` that do not specify a value for :"
@@ -863,46 +864,46 @@ msgid ""
863864"partial solution, but it does protect against many common errors."
864865msgstr ""
865866
866- #: ../../library/dataclasses.rst:754
867+ #: ../../library/dataclasses.rst:755
867868msgid ""
868869"Using default factory functions is a way to create new instances of mutable "
869870"types as default values for fields::"
870871msgstr ""
871872"デフォルトファクトリ関数を使うのが、フィールドのデフォルト値として可変な型の"
872873"新しいインスタンスを作成する手段です::"
873874
874- #: ../../library/dataclasses.rst:763
875+ #: ../../library/dataclasses.rst:764
875876msgid ""
876877"Instead of looking for and disallowing objects of type :class:`list`, :class:"
877878"`dict`, or :class:`set`, unhashable objects are now not allowed as default "
878879"values. Unhashability is used to approximate mutability."
879880msgstr ""
880881
881- #: ../../library/dataclasses.rst:770
882+ #: ../../library/dataclasses.rst:771
882883msgid "Descriptor-typed fields"
883884msgstr ""
884885
885- #: ../../library/dataclasses.rst:772
886+ #: ../../library/dataclasses.rst:773
886887msgid ""
887888"Fields that are assigned :ref:`descriptor objects <descriptors>` as their "
888889"default value have the following special behaviors:"
889890msgstr ""
890891
891- #: ../../library/dataclasses.rst:775
892+ #: ../../library/dataclasses.rst:776
892893msgid ""
893894"The value for the field passed to the dataclass's :meth:`~object.__init__` "
894895"method is passed to the descriptor's :meth:`~object.__set__` method rather "
895896"than overwriting the descriptor object."
896897msgstr ""
897898
898- #: ../../library/dataclasses.rst:779
899+ #: ../../library/dataclasses.rst:780
899900msgid ""
900901"Similarly, when getting or setting the field, the descriptor's :meth:"
901902"`~object.__get__` or :meth:`!__set__` method is called rather than returning "
902903"or overwriting the descriptor object."
903904msgstr ""
904905
905- #: ../../library/dataclasses.rst:783
906+ #: ../../library/dataclasses.rst:784
906907msgid ""
907908"To determine whether a field contains a default value, :func:`@dataclass "
908909"<dataclass>` will call the descriptor's :meth:`!__get__` method using its "
@@ -912,7 +913,7 @@ msgid ""
912913"in this situation, no default value will be provided for the field."
913914msgstr ""
914915
915- #: ../../library/dataclasses.rst:818
916+ #: ../../library/dataclasses.rst:819
916917msgid ""
917918"Note that if a field is annotated with a descriptor type, but is not "
918919"assigned a descriptor object as its default value, the field will act like a "
0 commit comments