@@ -47,15 +47,17 @@ msgstr ""
4747":class:`bool` 型の真値です。``True`` への代入は不正で、:exc:`SyntaxError` を"
4848"送出します。"
4949
50- #: ../../builtins/constants.rst:22
5150msgid ""
5251"An object frequently used to represent the absence of a value, as when "
5352"default arguments are not passed to a function. Assignments to ``None`` are "
5453"illegal and raise a :exc:`SyntaxError`. ``None`` is the sole instance of "
5554"the :class:`~types.NoneType` type."
5655msgstr ""
56+ "関数にデフォルト引数が渡されなかった場合など、値が存在しないことを表すために"
57+ "よく使われるオブジェクトです。\n"
58+ "``None`` への代入は不正で、:exc:`SyntaxError` を送出します。\n"
59+ "``None`` は :class:`~types.NoneType` 型の唯一のインスタンスです。"
5760
58- #: ../../builtins/constants.rst:30
5961msgid ""
6062"A special value which should be returned by the binary special methods (e."
6163"g. :meth:`~object.__eq__`, :meth:`~object.__lt__`, :meth:`~object.__add__`, :"
@@ -66,6 +68,15 @@ msgid ""
6668"boolean context. :data:`!NotImplemented` is the sole instance of the :class:"
6769"`types.NotImplementedType` type."
6870msgstr ""
71+ "二項演算の特殊メソッド (例えば :meth:`~object.__eq__`、:meth:`~object."
72+ "__lt__`、:meth:`~object.__add__`、:meth:`~object.__rsub__` など) が、\n"
73+ "もう一方の型に対する演算を実装していないことを示すために返すべき特殊な値で"
74+ "す。\n"
75+ "インプレースの二項演算の特殊メソッド (例えば :meth:`~object.__imul__`、:meth:"
76+ "`~object.__iand__` など) も、同じ目的でこの値を返せます。\n"
77+ "真偽値として評価してはいけません。\n"
78+ ":data:`!NotImplemented` は :class:`types.NotImplementedType` 型の唯一のインス"
79+ "タンスです。"
6980
7081msgid ""
7182"When a binary (or in-place) method returns :data:`!NotImplemented` the "
@@ -91,31 +102,41 @@ msgid "See :ref:`implementing-the-arithmetic-operations` for examples."
91102msgstr ""
92103"例として :ref:`implementing-the-arithmetic-operations` を参照してください。"
93104
94- #: ../../builtins/constants.rst:51
95105msgid ""
96106":data:`!NotImplemented` and :exc:`!NotImplementedError` are not "
97107"interchangeable. This constant should only be used as described above; see :"
98108"exc:`NotImplementedError` for details on correct usage of the exception."
99109msgstr ""
110+ ":data:`!NotImplemented` と :exc:`!NotImplementedError` は互いに置き換えられま"
111+ "せん。\n"
112+ "この定数は、上で説明した用途にのみ使ってください。\n"
113+ "例外の正しい使い方については :exc:`NotImplementedError` を参照してください。"
100114
101- #: ../../builtins/constants.rst:56
102115msgid "Evaluating :data:`!NotImplemented` in a boolean context was deprecated."
103116msgstr ""
117+ ":data:`!NotImplemented` を真偽値として評価することは非推奨となりました。"
104118
105- #: ../../builtins/constants.rst:59
106119msgid ""
107120"Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:"
108121"`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:"
109122"`DeprecationWarning` since Python 3.9."
110123msgstr ""
124+ ":data:`!NotImplemented` を真偽値として評価すると、:exc:`TypeError` が送出され"
125+ "るようになりました。\n"
126+ "以前は :const:`True` と評価され、Python 3.9 以降では :exc:"
127+ "`DeprecationWarning` も発生していました。"
111128
112- #: ../../builtins/constants.rst:68
113129msgid ""
114130"The same as the ellipsis literal \" ``...``\" , an object frequently used to "
115131"indicate that something is omitted. Assignment to ``Ellipsis`` is possible, "
116132"but assignment to ``...`` raises a :exc:`SyntaxError`. ``Ellipsis`` is the "
117133"sole instance of the :class:`types.EllipsisType` type."
118134msgstr ""
135+ "省略を示すリテラル \" ``...``\" と同じオブジェクトで、何かが省略されていること"
136+ "を示すためによく使われます。\n"
137+ "``Ellipsis`` には代入できますが、``...`` に代入すると :exc:`SyntaxError` が送"
138+ "出されます。\n"
139+ "``Ellipsis`` は :class:`types.EllipsisType` 型の唯一のインスタンスです。"
119140
120141#: ../../builtins/constants.rst:76
121142msgid ""
@@ -152,20 +173,26 @@ msgstr ""
152173"かの定数を追加します。それらは対話的インタープリタシェルで有用ですが、プログ"
153174"ラム中では使うべきではありません。"
154175
155- #: ../../builtins/constants.rst:100
156176msgid ""
157177"Objects that when printed, print a message like \" Use quit() or Ctrl-D (i.e. "
158178"EOF) to exit\" , and when accessed directly in the interactive interpreter or "
159179"called as functions, raise :exc:`SystemExit` with the specified exit code."
160180msgstr ""
181+ "表示すると \" Use quit() or Ctrl-D (i.e. EOF) to exit\" のようなメッセージを表"
182+ "示するオブジェクトです。\n"
183+ "対話型インタープリタで直接入力するか、関数として呼び出すと、指定した終了コー"
184+ "ドで :exc:`SystemExit` を送出します。"
161185
162- #: ../../builtins/constants.rst:108
163186msgid ""
164187"Object that when printed, prints the message \" Type help() for interactive "
165188"help, or help(object) for help about object.\" , and when accessed directly "
166189"in the interactive interpreter, invokes the built-in help system (see :func:"
167190"`help`)."
168191msgstr ""
192+ "表示すると \" Type help() for interactive help, or help(object) for help "
193+ "about object.\" というメッセージを表示するオブジェクトです。\n"
194+ "対話型インタープリタで直接入力すると、組み込みヘルプシステムを起動します (:"
195+ "func:`help` を参照してください)。"
169196
170197#: ../../builtins/constants.rst:116
171198msgid ""
0 commit comments