@@ -2158,12 +2158,17 @@ msgid ""
2158
2158
"negative). The return value is an integer if *ndigits* is omitted or "
2159
2159
"``None``. Otherwise the return value has the same type as *number*."
2160
2160
msgstr ""
2161
+ ":func:`round` をサポートする組み込み型では、値は 10 のマイナス *ndigits* 乗の倍数の中で最も近いものに丸められます; 二つの倍数が同じだけ近いなら、偶数を選ぶ方に (そのため、例えば ``round(0.5)`` と ``round(-0.5)`` は両方とも ``0`` に、 ``round(1.5)`` は ``2`` に) 丸められます。\n"
2162
+ "*ndigits* には任意の整数値が有効となります (正の整数、ゼロ、負の整数)。\n"
2163
+ "返り値は *ndigits* が指定されていないか ``None`` の場合は整数、そうでなければ返り値は *number* と同じ型です。"
2161
2164
2162
2165
#: ../../library/functions.rst:1329
2163
2166
msgid ""
2164
2167
"For a general Python object ``number``, ``round`` delegates to "
2165
2168
"``number.__round__``."
2166
2169
msgstr ""
2170
+ "一般的な Python オブジェクト ``number`` に対して、``round`` は処理を ``number.__round__` "
2171
+ "に移譲します。"
2167
2172
2168
2173
#: ../../library/functions.rst:1334
2169
2174
msgid ""
@@ -2245,6 +2250,8 @@ msgid ""
2245
2250
"``key=str.lower``). The default value is ``None`` (compare the elements "
2246
2251
"directly)."
2247
2252
msgstr ""
2253
+ "*key* には 1 引数関数を指定します。これは *iterable* の各要素から比較キーを展開するのに使われます (例えば、 ``key=str.lower`` のように指定します)。\n"
2254
+ "デフォルト値は ``None`` です (要素を直接比較します)。"
2248
2255
2249
2256
#: ../../library/functions.rst:1389
2250
2257
msgid ""
@@ -2316,6 +2323,9 @@ msgid ""
2316
2323
"want to avoid the automatic transformation to instance method. For these "
2317
2324
"cases, use this idiom::"
2318
2325
msgstr ""
2326
+ "あらゆるデコレータと同じく、 ``staticmethod`` は普通の関数のように呼べ、その返り値で処理が行えます。\n"
2327
+ "この機能は、クラス本体から関数を参照する必要があり、かつ、インスタンスメソッドに自動変換されるのを避けたいケースで必要になります。\n"
2328
+ "そのようなケースでは、このイディオムが使えます::"
2319
2329
2320
2330
#: ../../library/functions.rst:1432
2321
2331
msgid ""
0 commit comments