4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # E. Kawashima, 2017
8
7
# Nozomu Kaneko <nozom.kaneko@gmail.com>, 2017
8
+ # E. Kawashima, 2017
9
9
# Shun Sakurai, 2017
10
10
# Arihiro TAKASE, 2017
11
11
#
@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.9\n "
16
16
"Report-Msgid-Bugs-To : \n "
17
- "POT-Creation-Date : 2021-01-01 05:02 +0000\n "
17
+ "POT-Creation-Date : 2021-05-15 06:22 +0000\n "
18
18
"PO-Revision-Date : 2017-02-16 23:20+0000\n "
19
19
"Last-Translator : Arihiro TAKASE, 2017\n "
20
20
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -59,13 +59,9 @@ msgid ""
59
59
"Subclasses of this type describe complex numbers and include the operations "
60
60
"that work on the built-in :class:`complex` type. These are: conversions to "
61
61
":class:`complex` and :class:`bool`, :attr:`.real`, :attr:`.imag`, ``+``, "
62
- "``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All "
63
- " except ``-`` and ``!=`` are abstract."
62
+ "``-``, ``*``, ``/``, ``**``, :func:`abs`, :meth:`conjugate`, ``==``, and "
63
+ "``!=``. All except ``-`` and ``!=`` are abstract."
64
64
msgstr ""
65
- "この型のサブクラスは複素数を表し、組み込みの :class:`complex` 型を受け付ける演算を含みます。それらは: "
66
- ":class:`complex` および :class:`bool` への変換、 :attr:`.real`, :attr:`.imag`, "
67
- "``+``, ``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, ``!=`` "
68
- "です。 ``-`` と ``!=`` 以外の全てのものは抽象メソッドや抽象プロパティです。"
69
65
70
66
#: ../../library/numbers.rst:35
71
67
msgid "Abstract. Retrieves the real component of this number."
@@ -123,18 +119,16 @@ msgstr "抽象プロパティ。"
123
119
msgid ""
124
120
"Subtypes :class:`Rational` and adds a conversion to :class:`int`. Provides "
125
121
"defaults for :func:`float`, :attr:`~Rational.numerator`, and "
126
- ":attr:`~Rational.denominator`. Adds abstract methods for ``**`` and bit-"
127
- "string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``."
122
+ ":attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with "
123
+ "modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, "
124
+ "``~``."
128
125
msgstr ""
129
- ":class:`Rational` をサブタイプ化し :class:`int` への変換が加わります。 :func:`float`, "
130
- ":attr:`~Rational.numerator`, :attr:`~Rational.denominator` のデフォルトを提供します。 "
131
- "``**`` に対する抽象メソッドと、ビット列演算 ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~`` を追加します。"
132
126
133
- #: ../../library/numbers.rst:84
127
+ #: ../../library/numbers.rst:85
134
128
msgid "Notes for type implementors"
135
129
msgstr "型実装者のための注意事項"
136
130
137
- #: ../../library/numbers.rst:86
131
+ #: ../../library/numbers.rst:87
138
132
msgid ""
139
133
"Implementors should be careful to make equal numbers equal and hash them to "
140
134
"the same values. This may be subtle if there are two different extensions of"
@@ -144,11 +138,11 @@ msgstr ""
144
138
"実装する人は等しい数が等しく扱われるように同じハッシュを与えるように気を付けねばなりません。これは二つの異なった実数の拡張があるような場合にはややこしいことになるかもしれません。たとえば、"
145
139
" :class:`fractions.Fraction` は :func:`hash` を以下のように実装しています::"
146
140
147
- #: ../../library/numbers.rst:105
141
+ #: ../../library/numbers.rst:106
148
142
msgid "Adding More Numeric ABCs"
149
143
msgstr "さらに数のABCを追加する"
150
144
151
- #: ../../library/numbers.rst:107
145
+ #: ../../library/numbers.rst:108
152
146
msgid ""
153
147
"There are, of course, more possible ABCs for numbers, and this would be a "
154
148
"poor hierarchy if it precluded the possibility of adding those. You can add "
@@ -158,11 +152,11 @@ msgstr ""
158
152
"を階層に追加する可能性が閉ざされるとしたら、その階層は貧相な階層でしかありません。たとえば、 ``MyFoo`` を :class:`Complex` "
159
153
"と :class:`Real` の間に付け加えるには、次のようにします::"
160
154
161
- #: ../../library/numbers.rst:119
155
+ #: ../../library/numbers.rst:120
162
156
msgid "Implementing the arithmetic operations"
163
157
msgstr "算術演算の実装"
164
158
165
- #: ../../library/numbers.rst:121
159
+ #: ../../library/numbers.rst:122
166
160
msgid ""
167
161
"We want to implement the arithmetic operations so that mixed-mode operations"
168
162
" either call an implementation whose author knew about the types of both "
@@ -175,7 +169,7 @@ msgstr ""
175
169
" :class:`Integral` のサブタイプに対しては :meth:`__add__` と :meth:`__radd__` "
176
170
"を次のように定義するべきです::"
177
171
178
- #: ../../library/numbers.rst:152
172
+ #: ../../library/numbers.rst:153
179
173
msgid ""
180
174
"There are 5 different cases for a mixed-type operation on subclasses of "
181
175
":class:`Complex`. I'll refer to all of the above code that doesn't refer to "
@@ -188,11 +182,11 @@ msgstr ""
188
182
":class:`Complex` のサブタイプである ``A`` のインスタンス (``a : A <: Complex``)、同様に ``b : B "
189
183
"<: Complex`` として、 ``a + b`` を考えます:"
190
184
191
- #: ../../library/numbers.rst:159
185
+ #: ../../library/numbers.rst:160
192
186
msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
193
187
msgstr "``A`` が ``b`` を受け付ける :meth:`__add__` を定義している場合、何も問題はありません。"
194
188
195
- #: ../../library/numbers.rst:161
189
+ #: ../../library/numbers.rst:162
196
190
msgid ""
197
191
"If ``A`` falls back to the boilerplate code, and it were to return a value "
198
192
"from :meth:`__add__`, we'd miss the possibility that ``B`` defines a more "
@@ -205,20 +199,20 @@ msgstr ""
205
199
":const:`NotImplemented` を返すのが良いでしょう。(若しくは、 ``A`` はまったく :meth:`__add__` "
206
200
"を実装すべきではなかったかもしれません。)"
207
201
208
- #: ../../library/numbers.rst:167
202
+ #: ../../library/numbers.rst:168
209
203
msgid ""
210
204
"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
211
205
"well."
212
206
msgstr ""
213
207
"そうすると、 ``B`` の :meth:`__radd__` にチャンスが巡ってきます。ここで ``a`` が受け付けられるならば、結果は上々です。"
214
208
215
- #: ../../library/numbers.rst:169
209
+ #: ../../library/numbers.rst:170
216
210
msgid ""
217
211
"If it falls back to the boilerplate, there are no more possible methods to "
218
212
"try, so this is where the default implementation should live."
219
213
msgstr "ここでボイラープレートに落ち込むならば、もう他に試すべきメソッドはありませんので、デフォルト実装の出番です。"
220
214
221
- #: ../../library/numbers.rst:172
215
+ #: ../../library/numbers.rst:173
222
216
msgid ""
223
217
"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok,"
224
218
" because it was implemented with knowledge of ``A``, so it can handle those "
@@ -227,7 +221,7 @@ msgstr ""
227
221
"もし ``B <: A`` ならば、Python は ``A.__add__`` の前に ``B.__radd__`` を試します。これで良い理由は、 "
228
222
"``A`` についての知識を持って実装しており、 :class:`Complex` に委ねる前にこれらのインスタンスを扱えるはずだからです。"
229
223
230
- #: ../../library/numbers.rst:177
224
+ #: ../../library/numbers.rst:178
231
225
msgid ""
232
226
"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
233
227
"then the appropriate shared operation is the one involving the built in "
@@ -237,7 +231,7 @@ msgstr ""
237
231
":class:`complex` を使ったものになり、どちらの :meth:`__radd__` ともそこに着地するでしょうから、 ``a+b == "
238
232
"b+a`` です。"
239
233
240
- #: ../../library/numbers.rst:182
234
+ #: ../../library/numbers.rst:183
241
235
msgid ""
242
236
"Because most of the operations on any given type will be very similar, it "
243
237
"can be useful to define a helper function which generates the forward and "
0 commit comments