@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.13\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2024-07-05 14:16+0000\n "
16+ "POT-Creation-Date : 2024-07-19 14:16+0000\n "
1717"PO-Revision-Date : 2021-06-28 00:48+0000\n "
1818"Last-Translator : Taichi Haradaguchi, 2024\n "
1919"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -59,164 +59,166 @@ msgid ""
5959"The C structure which corresponds to the value portion of a Python complex "
6060"number object. Most of the functions for dealing with complex number "
6161"objects use structures of this type as input or output values, as "
62- "appropriate. It is defined as:: "
62+ "appropriate."
6363msgstr ""
64- "Python 複素数オブジェクトの値の部分に対応する C の構造体です。複素数オブジェ"
65- "クトを扱うほとんどの関数は、この型の構造体を場合に応じて入力や出力として使い"
66- "ます。構造体は以下のように定義されています::"
6764
68- #: ../../c-api/complex.rst:39
65+ #: ../../c-api/complex.rst:33
66+ msgid "The structure is defined as::"
67+ msgstr ""
68+
69+ #: ../../c-api/complex.rst:43
6970msgid ""
7071"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "
7172"representation."
7273msgstr "二つの複素数の和を C の :c:type:`Py_complex` 型で返します。"
7374
74- #: ../../c-api/complex.rst:45
75+ #: ../../c-api/complex.rst:49
7576msgid ""
7677"Return the difference between two complex numbers, using the C :c:type:"
7778"`Py_complex` representation."
7879msgstr "二つの複素数の差を C の :c:type:`Py_complex` 型で返します。"
7980
80- #: ../../c-api/complex.rst:51
81+ #: ../../c-api/complex.rst:55
8182msgid ""
8283"Return the negation of the complex number *num*, using the C :c:type:"
8384"`Py_complex` representation."
8485msgstr "複素数 *num* の符号反転 C の :c:type:`Py_complex` 型で返します。"
8586
86- #: ../../c-api/complex.rst:57
87+ #: ../../c-api/complex.rst:61
8788msgid ""
8889"Return the product of two complex numbers, using the C :c:type:`Py_complex` "
8990"representation."
9091msgstr "二つの複素数の積を C の :c:type:`Py_complex` 型で返します。"
9192
92- #: ../../c-api/complex.rst:63
93+ #: ../../c-api/complex.rst:67
9394msgid ""
9495"Return the quotient of two complex numbers, using the C :c:type:`Py_complex` "
9596"representation."
9697msgstr "二つの複素数の商を C の :c:type:`Py_complex` 型で返します。"
9798
98- #: ../../c-api/complex.rst:66
99+ #: ../../c-api/complex.rst:70
99100msgid ""
100101"If *divisor* is null, this method returns zero and sets :c:data:`errno` to :"
101102"c:macro:`!EDOM`."
102103msgstr ""
103104"*divisor* が null の場合は、このメソッドはゼロを返し、 :c:data:`errno` に :c:"
104105"macro:`!EDOM` をセットします。"
105106
106- #: ../../c-api/complex.rst:72
107+ #: ../../c-api/complex.rst:76
107108msgid ""
108109"Return the exponentiation of *num* by *exp*, using the C :c:type:"
109110"`Py_complex` representation."
110111msgstr "指数 *exp* の *num* 乗を C の :c:type:`Py_complex` 型で返します。"
111112
112- #: ../../c-api/complex.rst:75
113+ #: ../../c-api/complex.rst:79
113114msgid ""
114115"If *num* is null and *exp* is not a positive real number, this method "
115116"returns zero and sets :c:data:`errno` to :c:macro:`!EDOM`."
116117msgstr ""
117118"*num* が null で *exp* が正の実数でない場合は、このメソッドはゼロを返し、 :c:"
118119"data:`errno` に :c:macro:`!EDOM` をセットします。"
119120
120- #: ../../c-api/complex.rst:80
121+ #: ../../c-api/complex.rst:84
121122msgid "Complex Numbers as Python Objects"
122123msgstr "Python オブジェクトとしての複素数型"
123124
124- #: ../../c-api/complex.rst:85
125+ #: ../../c-api/complex.rst:89
125126msgid ""
126127"This subtype of :c:type:`PyObject` represents a Python complex number object."
127128msgstr "この :c:type:`PyObject` のサブタイプは Python の複素数型を表現します。"
128129
129- #: ../../c-api/complex.rst:90
130+ #: ../../c-api/complex.rst:94
130131msgid ""
131132"This instance of :c:type:`PyTypeObject` represents the Python complex number "
132133"type. It is the same object as :class:`complex` in the Python layer."
133134msgstr ""
134135"この :c:type:`PyTypeObject` のインスタンスは Python の複素数型を表現します。 "
135136"Pythonレイヤの :class:`complex` と同じオブジェクトです。"
136137
137- #: ../../c-api/complex.rst:96
138+ #: ../../c-api/complex.rst:100
138139msgid ""
139140"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :"
140141"c:type:`PyComplexObject`. This function always succeeds."
141142msgstr ""
142143"引数が :c:type:`PyComplexObject` か :c:type:`PyComplexObject` のサブタイプで"
143144"あるときに真を返します。この関数は常に成功します。"
144145
145- #: ../../c-api/complex.rst:102
146+ #: ../../c-api/complex.rst:106
146147msgid ""
147148"Return true if its argument is a :c:type:`PyComplexObject`, but not a "
148149"subtype of :c:type:`PyComplexObject`. This function always succeeds."
149150msgstr ""
150151"引数が :c:type:`PyComplexObject` であるが :c:type:`PyComplexObject` のサブタ"
151152"イプでないときに真を返します。この関数は常に成功します。"
152153
153- #: ../../c-api/complex.rst:108
154+ #: ../../c-api/complex.rst:112
154155msgid ""
155156"Create a new Python complex number object from a C :c:type:`Py_complex` "
156- "value."
157- msgstr "C の :c:type:`Py_complex` 型から Python の複素数値を生成します。"
158-
159- #: ../../c-api/complex.rst:113
160- msgid "Return a new :c:type:`PyComplexObject` object from *real* and *imag*."
157+ "value. Return ``NULL`` with an exception set on error."
161158msgstr ""
162- "新たな :c:type:`PyComplexObject` オブジェクトを *real* と *imag* から生成しま"
163- "す。"
164159
165160#: ../../c-api/complex.rst:118
161+ msgid ""
162+ "Return a new :c:type:`PyComplexObject` object from *real* and *imag*. Return "
163+ "``NULL`` with an exception set on error."
164+ msgstr ""
165+
166+ #: ../../c-api/complex.rst:124
166167msgid "Return the real part of *op* as a C :c:expr:`double`."
167168msgstr "*op* の実数部分を C の :c:expr:`double` 型で返します。"
168169
169- #: ../../c-api/complex.rst:120
170+ #: ../../c-api/complex.rst:126
170171msgid ""
171172"If *op* is not a Python complex number object but has a :meth:`~object."
172173"__complex__` method, this method will first be called to convert *op* to a "
173174"Python complex number object. If :meth:`!__complex__` is not defined then "
174- "it falls back to call :c:func:`PyFloat_AsDouble` and returns its result. "
175- "Upon failure, this method returns ``-1.0``, so one should call :c:func:"
176- "`PyErr_Occurred` to check for errors."
175+ "it falls back to call :c:func:`PyFloat_AsDouble` and returns its result."
176+ msgstr ""
177+
178+ #: ../../c-api/complex.rst:132 ../../c-api/complex.rst:148
179+ msgid ""
180+ "Upon failure, this method returns ``-1.0`` with an exception set, so one "
181+ "should call :c:func:`PyErr_Occurred` to check for errors."
177182msgstr ""
178183
179- #: ../../c-api/complex.rst:127 ../../c-api/complex.rst:141
184+ #: ../../c-api/complex.rst:135 ../../c-api/complex.rst:151
180185msgid "Use :meth:`~object.__complex__` if available."
181186msgstr ""
182187
183- #: ../../c-api/complex.rst:132
188+ #: ../../c-api/complex.rst:140
184189msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
185190msgstr "*op* の虚数部分を C の :c:expr:`double` 型で返します。"
186191
187- #: ../../c-api/complex.rst:134
192+ #: ../../c-api/complex.rst:142
188193msgid ""
189194"If *op* is not a Python complex number object but has a :meth:`~object."
190195"__complex__` method, this method will first be called to convert *op* to a "
191196"Python complex number object. If :meth:`!__complex__` is not defined then "
192197"it falls back to call :c:func:`PyFloat_AsDouble` and returns ``0.0`` on "
193- "success. Upon failure, this method returns ``-1.0``, so one should call :c:"
194- "func:`PyErr_Occurred` to check for errors."
198+ "success."
195199msgstr ""
196200
197- #: ../../c-api/complex.rst:146
201+ #: ../../c-api/complex.rst:156
198202msgid "Return the :c:type:`Py_complex` value of the complex number *op*."
199203msgstr "複素数値 *op* から :c:type:`Py_complex` 型を生成します。"
200204
201- #: ../../c-api/complex.rst:148
205+ #: ../../c-api/complex.rst:158
202206msgid ""
203207"If *op* is not a Python complex number object but has a :meth:`~object."
204208"__complex__` method, this method will first be called to convert *op* to a "
205209"Python complex number object. If :meth:`!__complex__` is not defined then "
206210"it falls back to :meth:`~object.__float__`. If :meth:`!__float__` is not "
207- "defined then it falls back to :meth:`~object.__index__`. Upon failure, this "
208- "method returns ``-1.0`` as a real value."
209- msgstr ""
210- "*op* が Python の複素数オブジェクトではないが、 :meth:`~object.__complex__` "
211- "メソッドを持っていた場合、このメソッドが最初に呼ばれ、 *op* が Python の複素"
212- "数オブジェクトに変換されます。\n"
213- ":meth:`!__complex__` が定義されていない場合は、 :meth:`~object.__float__` に"
214- "フォールバックされます。\n"
215- ":meth:`!__float__` が定義されていない場合は、 :meth:`~object.__index__` に"
216- "フォールバックされます。\n"
217- "処理が失敗した場合は、このメソッドは実数の ``-1.0`` を返します。"
218-
219- #: ../../c-api/complex.rst:155
211+ "defined then it falls back to :meth:`~object.__index__`."
212+ msgstr ""
213+
214+ #: ../../c-api/complex.rst:164
215+ msgid ""
216+ "Upon failure, this method returns :c:type:`Py_complex` with :c:member:"
217+ "`~Py_complex.real` set to ``-1.0`` and with an exception set, so one should "
218+ "call :c:func:`PyErr_Occurred` to check for errors."
219+ msgstr ""
220+
221+ #: ../../c-api/complex.rst:168
220222msgid "Use :meth:`~object.__index__` if available."
221223msgstr "可能であれば :meth:`~object.__index__` を使うようになりました。"
222224
0 commit comments