19
19
# tomo, 2023
20
20
# Masato HASHIMOTO <cabezon.hashimoto@gmail.com>, 2023
21
21
# righteous righteous, 2023
22
+ # TENMYO Masakazu, 2024
22
23
#
23
24
#, fuzzy
24
25
msgid ""
25
26
msgstr ""
26
27
"Project-Id-Version : Python 3.12\n "
27
28
"Report-Msgid-Bugs-To : \n "
28
- "POT-Creation-Date : 2023-12-22 14:13+0000\n "
29
+ "POT-Creation-Date : 2023-12-29 14:13+0000\n "
29
30
"PO-Revision-Date : 2021-06-28 01:06+0000\n "
30
- "Last-Translator : righteous righteous, 2023 \n "
31
+ "Last-Translator : TENMYO Masakazu, 2024 \n "
31
32
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
32
33
"ja/)\n "
33
34
"MIME-Version : 1.0\n "
@@ -418,6 +419,9 @@ msgid ""
418
419
"floating point number, or an object implementing :meth:`~object.__abs__`. If "
419
420
"the argument is a complex number, its magnitude is returned."
420
421
msgstr ""
422
+ "数の絶対値を返します。引数は整数、浮動小数点数または :meth:`~object.__abs__` "
423
+ "が実装されたオブジェクトです。引数が複素数なら、その絶対値 (magnitude) が返さ"
424
+ "れます。"
421
425
422
426
#: ../../library/functions.rst:67
423
427
msgid ""
@@ -682,6 +686,12 @@ msgid ""
682
686
"that classes are callable (calling a class returns a new instance); "
683
687
"instances are callable if their class has a :meth:`~object.__call__` method."
684
688
msgstr ""
689
+ "*object* 引数が呼び出し可能オブジェクトであれば :const:`True` を、そうでなけ"
690
+ "れば :const:`False` を返します。この関数が ``True`` を返しても、呼び出しは失"
691
+ "敗する可能性がありますが、``False`` であれば、 *object* の呼び出しは決して成"
692
+ "功しません。なお、クラスは呼び出し可能 (クラスを呼び出すと新しいインスタンス"
693
+ "を返します) です。また、インスタンスはクラスが :meth:`~object.__call__` メ"
694
+ "ソッドを持つなら呼び出し可能です。"
685
695
686
696
#: ../../library/functions.rst:241
687
697
msgid ""
@@ -1055,6 +1065,11 @@ msgid ""
1055
1065
"__getattribute__` function to customize the way :func:`dir` reports their "
1056
1066
"attributes."
1057
1067
msgstr ""
1068
+ "オブジェクトが :meth:`~object.__dir__` という名のメソッドを持つなら、そのメ"
1069
+ "ソッドが呼び出され、属性のリストを返さなければなりません。これにより、カスタ"
1070
+ "ムの :func:`~object.__getattr__` や :func:`~object.__getattribute__` 関数を実"
1071
+ "装するオブジェクトは、:func:`dir` が属性を報告するやり方をカスタマイズできま"
1072
+ "す。"
1058
1073
1059
1074
#: ../../library/functions.rst:443
1060
1075
msgid ""
@@ -1064,6 +1079,10 @@ msgid ""
1064
1079
"necessarily complete and may be inaccurate when the object has a custom :"
1065
1080
"func:`~object.__getattr__`."
1066
1081
msgstr ""
1082
+ "オブジェクトが :meth:`~object.__dir__` を提供しない場合、その型オブジェクト"
1083
+ "と、定義されていればオブジェクトの :attr:`~object.__dict__` 属性から、できる"
1084
+ "だけ情報を集めようとします。結果のリストは必ずしも完全ではなく、カスタムの :"
1085
+ "func:`~object.__getattr__` を持つ場合は不正確かもしれません。"
1067
1086
1068
1087
#: ../../library/functions.rst:449
1069
1088
msgid ""
@@ -1487,6 +1506,12 @@ msgid ""
1487
1506
"and the *format_spec* is non-empty, or if either the *format_spec* or the "
1488
1507
"return value are not strings."
1489
1508
msgstr ""
1509
+ "``format(value, format_spec)`` の呼び出しは、 ``type(value)."
1510
+ "__format__(value, format_spec)`` に翻訳され、これは value の :meth:`~object."
1511
+ "__format__` メソッドの検索をするとき、インスタンス辞書を回避します。このメ"
1512
+ "ソッドの探索が :mod:`object` に到達しても *format_spec* が空にならなかった"
1513
+ "り、 *format_spec* や返り値が文字列でなかったりした場合、 :exc:`TypeError` が"
1514
+ "送出されます。"
1490
1515
1491
1516
#: ../../library/functions.rst:739
1492
1517
msgid ""
@@ -1583,6 +1608,9 @@ msgid ""
1583
1608
"For objects with custom :meth:`~object.__hash__` methods, note that :func:"
1584
1609
"`hash` truncates the return value based on the bit width of the host machine."
1585
1610
msgstr ""
1611
+ "独自の :meth:``~object.__hash__` メソッドを実装したオブジェクトを使う場合、:"
1612
+ "func:`hash` が実行するマシンのビット幅に合わせて戻り値を切り捨てることに注意"
1613
+ "してください。"
1586
1614
1587
1615
#: ../../library/functions.rst:806
1588
1616
msgid ""
@@ -1898,6 +1926,17 @@ msgid ""
1898
1926
"*sentinel*, :exc:`StopIteration` will be raised, otherwise the value will be "
1899
1927
"returned."
1900
1928
msgstr ""
1929
+ ":term:`iterator` オブジェクトを返します。第二引数があるかどうかによって第一引"
1930
+ "数の解釈は大きく異なります。第二引数がない場合、 *object* は :term:"
1931
+ "`iterable` プロトコル (:meth:`~object.__iter__` メソッド) をサポートするコレ"
1932
+ "クションオブジェクトか、またはシーケンスプロトコル (``0`` から始まる整数を引"
1933
+ "数にとる :meth:`~object.__getitem__` メソッド) をサポートするオブジェクトでな"
1934
+ "ければなりません。第一引数がどちらのプロトコルもサポートしない場合は :exc:"
1935
+ "`TypeError` 例外が送出されます。第二引数 *sentinel* が与えられた場合、 "
1936
+ "*object* は呼び出し可能オブジェクトでなければなりません。この場合に生成される"
1937
+ "イテレータは :meth:`~iterator.__next__` メソッドを呼び出すごとに引数なしで "
1938
+ "*object* を呼び出します; 戻り値が *sentinel* と等しければ、 :exc:"
1939
+ "`StopIteration` が送出されます。それ以外の場合は戻り値がそのまま返されます。"
1901
1940
1902
1941
#: ../../library/functions.rst:1000
1903
1942
msgid "See also :ref:`typeiter`."
@@ -2278,6 +2317,18 @@ msgid ""
2278
2317
"``write_through`` flag for :func:`io.TextIOWrapper.reconfigure`. When no "
2279
2318
"*buffering* argument is given, the default buffering policy works as follows:"
2280
2319
msgstr ""
2320
+ "*buffering* はオプションの整数で、バッファリングのポリシーを設定するために使"
2321
+ "われます。 バッファリングを無効化するためには0を渡してください (バイナリモー"
2322
+ "ドでのみ設定可能です)。また行単位でのバッファリングには1を設定してください "
2323
+ "(テキストモードでの書き込み時のみ有効です)。固定サイズのチャンクバッファに対"
2324
+ "するサイズをバイト単位で指定したい場合は、1より大きい整数を渡してください。こ"
2325
+ "の形式でバッファサイズを指定した場合、バイナリ形式でバッファリングをサポート"
2326
+ "する I/O (buffered I/O) にはそのまま適用されますが、 ``TextIOWrapper`` (すな"
2327
+ "わち ``mode='r+'`` のモードでオープンされたファイル) では別のバッファリングを"
2328
+ "行うかもしれません。 ``TextIOWrapper`` でバッファリングを無効化するには、 :"
2329
+ "func:`io.TextIOWrapper.reconfigure` で ``write_through`` フラグを使うことを検"
2330
+ "討してください。 *buffering* 引数が与えられなかった場合、デフォルトのバッファ"
2331
+ "リングポリシーは以下のように動作します:"
2281
2332
2282
2333
#: ../../library/functions.rst:1237
2283
2334
msgid ""
@@ -2759,6 +2810,9 @@ msgid ""
2759
2810
"\" getter\" for a read-only attribute with the same name, and it sets the "
2760
2811
"docstring for *voltage* to \" Get the current voltage.\" "
2761
2812
msgstr ""
2813
+ "``@property`` デコレータは :meth:`!voltage` を同じ名前のまま 読み出し専用属性"
2814
+ "の \" getter\" にし、*voltage* のドキュメント文字列を \" Get the current "
2815
+ "voltage.\" に設定します。"
2762
2816
2763
2817
#: ../../library/functions.rst:1516
2764
2818
msgid ""
@@ -2767,6 +2821,10 @@ msgid ""
2767
2821
"accessor function set to the decorated function. This is best explained "
2768
2822
"with an example:"
2769
2823
msgstr ""
2824
+ "property オブジェクトは ``getter``, ``setter``, ``deleter`` メソッドを持って"
2825
+ "います。これらのメソッドをデコレータとして使うと、対応するアクセサ関数がデコ"
2826
+ "レートされた関数に設定された、 property のコピーを作成できます。 これを一番"
2827
+ "分かりやすく説明する例があります:"
2770
2828
2771
2829
#: ../../library/functions.rst:1540
2772
2830
msgid ""
0 commit comments