@@ -81,14 +81,14 @@ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數之和
81
81
82
82
#: ../../c-api/complex.rst:49
83
83
msgid ""
84
- "Return the difference between two complex numbers, using the C :c:type: "
85
- "`Py_complex` representation."
84
+ "Return the difference between two complex numbers, using the "
85
+ "C :c:type: `Py_complex` representation."
86
86
msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數間的差。"
87
87
88
88
#: ../../c-api/complex.rst:55
89
89
msgid ""
90
- "Return the negation of the complex number *num*, using the C :c:type: "
91
- "`Py_complex` representation."
90
+ "Return the negation of the complex number *num*, using the "
91
+ "C :c:type: `Py_complex` representation."
92
92
msgstr ""
93
93
"以 C 的 :c:type:`Py_complex` 表示形式來回傳複數 *num* 的相反數 (negation)。"
94
94
@@ -106,16 +106,16 @@ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的商
106
106
107
107
#: ../../c-api/complex.rst:70
108
108
msgid ""
109
- "If *divisor* is null, this method returns zero and sets :c:data:`errno` to : "
110
- "c:macro:`!EDOM`."
109
+ "If *divisor* is null, this method returns zero and sets :c:data:`errno` "
110
+ "to : c:macro:`!EDOM`."
111
111
msgstr ""
112
- "如果 *divisor* 為 null,則此方法會回傳零並將 :c:data:`errno` 設定為 :c:macro: "
113
- "`!EDOM`。"
112
+ "如果 *divisor* 為 null,則此方法會回傳零並將 :c:data:`errno` 設定 "
113
+ "為 :c:macro: `!EDOM`。"
114
114
115
115
#: ../../c-api/complex.rst:76
116
116
msgid ""
117
- "Return the exponentiation of *num* by *exp*, using the C :c:type: "
118
- "`Py_complex` representation."
117
+ "Return the exponentiation of *num* by *exp*, using the "
118
+ "C :c:type: `Py_complex` representation."
119
119
msgstr ""
120
120
"以 C 的 :c:type:`Py_complex` 表示形式來回傳 *num* 的 *exp* 次方的結果。"
121
121
@@ -141,13 +141,13 @@ msgid ""
141
141
"This instance of :c:type:`PyTypeObject` represents the Python complex number "
142
142
"type. It is the same object as :class:`complex` in the Python layer."
143
143
msgstr ""
144
- "這個 :c:type:`PyTypeObject` 的實例代表 Python 複數型別。它與 Python 層中的 : "
145
- "class:`complex` 是同一個物件。"
144
+ "這個 :c:type:`PyTypeObject` 的實例代表 Python 複數型別。它與 Python 層中 "
145
+ "的 : class:`complex` 是同一個物件。"
146
146
147
147
#: ../../c-api/complex.rst:100
148
148
msgid ""
149
- "Return true if its argument is a :c:type:`PyComplexObject` or a subtype of : "
150
- "c:type:`PyComplexObject`. This function always succeeds."
149
+ "Return true if its argument is a :c:type:`PyComplexObject` or a subtype "
150
+ "of : c:type:`PyComplexObject`. This function always succeeds."
151
151
msgstr ""
152
152
"如果其引數是一個 :c:type:`PyComplexObject` 或者是 :c:type:`PyComplexObject` "
153
153
"的子型別,則會回傳 true。這個函式不會失敗。"
@@ -181,25 +181,24 @@ msgid "Return the real part of *op* as a C :c:expr:`double`."
181
181
msgstr "以 C 的 :c:expr:`double` 形式回傳 *op* 的實部。"
182
182
183
183
#: ../../c-api/complex.rst:126
184
- #, fuzzy
185
184
msgid ""
186
- "If *op* is not a Python complex number object but has a :meth:`~object."
187
- "__complex__` method, this method will first be called to convert *op* to a "
188
- "Python complex number object. If :meth:`!__complex__` is not defined then "
189
- "it falls back to call :c:func:`PyFloat_AsDouble` and returns its result."
185
+ "If *op* is not a Python complex number object but has "
186
+ "a :meth:`~object.__complex__` method, this method will first be called to "
187
+ "convert *op* to a Python complex number object. If :meth:`!__complex__` is "
188
+ "not defined then it falls back to call :c:func:`PyFloat_AsDouble` and "
189
+ "returns its result."
190
190
msgstr ""
191
191
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
192
192
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
193
- "未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
194
- "定義,則它將繼續回退為 :meth:`~object.__index__`。"
193
+ "未定義,那麼它會回退到呼叫 :func:`PyFloat_AsDouble` 並回傳其結果。"
195
194
196
195
#: ../../c-api/complex.rst:132 ../../c-api/complex.rst:148
197
196
msgid ""
198
197
"Upon failure, this method returns ``-1.0`` with an exception set, so one "
199
198
"should call :c:func:`PyErr_Occurred` to check for errors."
200
199
msgstr ""
201
- "失敗時,此方法回傳 ``-1.0`` 並設定例外,因此應該呼叫 :c:func: "
202
- "`PyErr_Occurred` 來檢查錯誤。"
200
+ "失敗時,此方法回傳 ``-1.0`` 並設定例外,因此應該呼 "
201
+ "叫 :c:func: `PyErr_Occurred` 來檢查錯誤。"
203
202
204
203
#: ../../c-api/complex.rst:135 ../../c-api/complex.rst:151
205
204
msgid "Use :meth:`~object.__complex__` if available."
@@ -210,30 +209,28 @@ msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
210
209
msgstr "將 *op* 的虛部作為 C 的 :c:expr:`double` 回傳。"
211
210
212
211
#: ../../c-api/complex.rst:142
213
- #, fuzzy
214
212
msgid ""
215
- "If *op* is not a Python complex number object but has a :meth:`~object. "
216
- "__complex__` method, this method will first be called to convert *op* to a "
217
- "Python complex number object. If :meth:`!__complex__` is not defined then "
218
- "it falls back to call :c:func:`PyFloat_AsDouble` and returns ``0.0`` on "
219
- "success."
213
+ "If *op* is not a Python complex number object but has "
214
+ "a :meth:`~object. __complex__` method, this method will first be called to "
215
+ "convert *op* to a Python complex number object. If :meth:`!__complex__` is "
216
+ "not defined then it falls back to call :c:func:`PyFloat_AsDouble` and "
217
+ "returns ``0.0`` on success."
220
218
msgstr ""
221
219
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
222
220
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
223
- "未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
224
- "定義,則它將繼續回退為 :meth:`~object.__index__`。"
221
+ "未定義,那麼它會回退到呼叫 :func:`PyFloat_AsDouble` 並於成功時回傳 ``0.0``。"
225
222
226
223
#: ../../c-api/complex.rst:156
227
224
msgid "Return the :c:type:`Py_complex` value of the complex number *op*."
228
225
msgstr "回傳複數 *op* 的 :c:type:`Py_complex` 值。"
229
226
230
227
#: ../../c-api/complex.rst:158
231
228
msgid ""
232
- "If *op* is not a Python complex number object but has a :meth:`~object. "
233
- "__complex__` method, this method will first be called to convert *op* to a "
234
- "Python complex number object. If :meth:`!__complex__` is not defined then "
235
- "it falls back to :meth:`~object.__float__`. If :meth:`!__float__` is not "
236
- "defined then it falls back to :meth:`~object.__index__`."
229
+ "If *op* is not a Python complex number object but has "
230
+ "a :meth:`~object. __complex__` method, this method will first be called to "
231
+ "convert *op* to a Python complex number object. If :meth:`!__complex__` is "
232
+ "not defined then it falls back to :meth:`~object.__float__`. If :meth:`!"
233
+ "__float__` is not defined then it falls back to :meth:`~object.__index__`."
237
234
msgstr ""
238
235
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
239
236
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
@@ -242,9 +239,9 @@ msgstr ""
242
239
243
240
#: ../../c-api/complex.rst:164
244
241
msgid ""
245
- "Upon failure, this method returns :c:type:`Py_complex` with :c:member: "
246
- "`~Py_complex.real` set to ``-1.0`` and with an exception set, so one should "
247
- "call :c:func:`PyErr_Occurred` to check for errors."
242
+ "Upon failure, this method returns :c:type:`Py_complex` "
243
+ "with :c:member: `~Py_complex.real` set to ``-1.0`` and with an exception set, "
244
+ "so one should call :c:func:`PyErr_Occurred` to check for errors."
248
245
msgstr ""
249
246
"失敗時,此方法回傳 :c:type:`Py_complex` 並將 :c:member:`~Py_complex.real` 設"
250
247
"為 ``-1.0``,並設定例外,因此應該呼叫 :c:func:`PyErr_Occurred` 來檢查錯誤。"
0 commit comments