55#
66# Translators:
77# python-doc bot, 2025
8+ # Takanori Suzuki <takanori@takanory.net>, 2025
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version :Python 3.14\n "
1314"Report-Msgid-Bugs-To :\n "
14- "POT-Creation-Date :2025-11-11 14:15 +0000\n "
15+ "POT-Creation-Date :2025-11-23 14:12 +0000\n "
1516"PO-Revision-Date :2025-09-16 00:01+0000\n "
16- "Last-Translator :python-doc bot , 2025\n "
17+ "Last-Translator :Takanori Suzuki <takanori@takanory.net> , 2025\n "
1718"Language-Team :Japanese (https://app.transifex.com/python-doc/teams/5390/ "
1819"ja/)\n "
1920"MIME-Version :1.0\n "
@@ -512,6 +513,11 @@ msgid ""
512513"`int` object, it has to define an :meth:`~object.__index__` method that "
513514"returns an integer. Some examples:"
514515msgstr ""
516+ "整数を先頭に\" 0b\" が付いた 2 進文字列に変換します。\n"
517+ "結果は Python の式としても使える形式になります。\n"
518+ "*integer* が Python の :class:`int` オブジェクトでない場合、整数を返す :meth:"
519+ "`~object.__index__` メソッドが定義されていなければなりません。\n"
520+ "いくつかの例を示します:"
515521
516522#: ../../library/functions.rst:134
517523msgid ""
@@ -718,6 +724,8 @@ msgid ""
718724"The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in "
719725"base 16). :exc:`ValueError` will be raised if it is outside that range."
720726msgstr ""
727+ "引数の有効な範囲は 0 から 1,114,111 (16 進数で 0x10FFFF) です。引数が範囲外の"
728+ "場合 :exc:`ValueError` が送出されます。"
721729
722730#: ../../library/functions.rst:257
723731msgid "Transform a method into a class method."
@@ -1819,6 +1827,10 @@ msgid ""
18191827"\" 0x\" . If *integer* is not a Python :class:`int` object, it has to define "
18201828"an :meth:`~object.__index__` method that returns an integer. Some examples:"
18211829msgstr ""
1830+ "整数を先頭に\" 0x\" が付いた小文字の 16 進文字列に変換します。\n"
1831+ "*integer* が Python の :class:`int` オブジェクトでない場合、整数を返す :meth:"
1832+ "`~object.__index__` メソッドが定義されていなければなりません。\n"
1833+ "いくつかの例を示します:"
18221834
18231835#: ../../library/functions.rst:938
18241836msgid ""
@@ -1886,6 +1898,10 @@ msgid ""
18861898">>> s\n"
18871899"\" Monty Python's Flying Circus\" "
18881900msgstr ""
1901+ ">>> s = input('--> ')\n"
1902+ "--> Monty Python's Flying Circus\n"
1903+ ">>> s\n"
1904+ "\" Monty Python's Flying Circus\" "
18891905
18901906#: ../../library/functions.rst:984
18911907msgid ""
@@ -1953,6 +1969,10 @@ msgid ""
19531969"__int__()``. If the argument defines :meth:`~object.__index__`, it returns "
19541970"``x.__index__()``. For floating-point numbers, this truncates towards zero."
19551971msgstr ""
1972+ "引数に :meth:`~object.__int__` が定義されている場合は、 ``int(x)`` は ``x."
1973+ "__int__()`` を返します。引数に :meth:`~object.__index__` が定義されている場合"
1974+ "は、 ``x.__index__()`` を返します。浮動小数点数については、これは 0 に近い側"
1975+ "へ切り捨てます。"
19561976
19571977#: ../../library/functions.rst:1026
19581978msgid ""
@@ -2102,6 +2122,17 @@ msgid ""
21022122"the value returned is equal to *sentinel*, :exc:`StopIteration` will be "
21032123"raised, otherwise the value will be returned."
21042124msgstr ""
2125+ ":term:`iterator` オブジェクトを返します。第二引数があるかどうかによって第一引"
2126+ "数の解釈は大きく異なります。第二引数がない場合、単一の引数は :term:"
2127+ "`iterable` プロトコル (:meth:`~object.__iter__` メソッド) をサポートするコレ"
2128+ "クションオブジェクトか、またはシーケンスプロトコル (``0`` から始まる整数を引"
2129+ "数にとる :meth:`~object.__getitem__` メソッド) をサポートするオブジェクトでな"
2130+ "ければなりません。第一引数がどちらのプロトコルもサポートしない場合は :exc:"
2131+ "`TypeError` 例外が送出されます。第二引数 *sentinel* が与えられた場合、第一引"
2132+ "数は呼び出し可能オブジェクトでなければなりません。この場合に生成されるイテ"
2133+ "レータは :meth:`~iterator.__next__` メソッドを呼び出すごとに引数なしで "
2134+ "*callable* を呼び出します; 戻り値が *sentinel* と等しければ、 :exc:"
2135+ "`StopIteration` が送出されます。それ以外の場合は戻り値がそのまま返されます。"
21052136
21062137#: ../../library/functions.rst:1120
21072138msgid "See also :ref:`typeiter`."
@@ -2277,7 +2308,7 @@ msgstr ""
22772308
22782309#: ../../library/functions.rst:1216
22792310msgid "Added the *strict* parameter."
2280- msgstr ""
2311+ msgstr "*strict* パラメータが追加されました。 "
22812312
22822313#: ../../library/functions.rst:1224
22832314msgid ""
@@ -2400,6 +2431,11 @@ msgid ""
24002431"`int` object, it has to define an :meth:`~object.__index__` method that "
24012432"returns an integer. For example:"
24022433msgstr ""
2434+ "整数を先頭に\" 0o\" が付いた 8 進文字列に変換します。\n"
2435+ "結果は Python の式としても使える形式になります。\n"
2436+ "*integer* が Python の :class:`int` オブジェクトでない場合、整数を返す :meth:"
2437+ "`~object.__index__` メソッドが定義されていなければなりません。\n"
2438+ "例えば、次のようになります:"
24032439
24042440#: ../../library/functions.rst:1322
24052441msgid ""
@@ -3284,6 +3320,11 @@ msgid ""
32843320"(the :meth:`~object.__len__` method and the :meth:`~object.__getitem__` "
32853321"method with integer arguments starting at ``0``)."
32863322msgstr ""
3323+ "要素を逆順に取り出すイテレータ (reverse :term:`iterator`) を返します。引数"
3324+ "は :meth:`~object.__reversed__` メソッドを持つか、シーケンス型プロトコル ( :"
3325+ "meth:`~object.__len__` メソッド、および、 ``0`` 以上の整数を引数とする :meth:"
3326+ "`~object.__getitem__` メソッド) をサポートするオブジェクトでなければなりませ"
3327+ "ん。"
32873328
32883329#: ../../library/functions.rst:1777
32893330msgid ""
@@ -3492,6 +3533,14 @@ msgid ""
34923533"mixed type comparisons which can call the reflected :meth:`~object.__gt__` "
34933534"method."
34943535msgstr ""
3536+ "ソートアルゴリズムは、要素間の比較に ``<`` 演算子だけを使います。したがって"
3537+ "ソートのためには :meth:`~object.__lt__` メソッドを定義すれば十分なはずです"
3538+ "が、 :PEP:`8` は6つの :ref:`比較演算子 <comparisons>` を全て実装することを推"
3539+ "奨しています。これにより、異なるメソッドを必要とする :func:`max` のような他の"
3540+ "ソートツールを、同じデータに対して適用することによって起こりうるバグを避ける"
3541+ "助けになります。6つの比較演算子を全て実装することは、リフレクションによって :"
3542+ "meth:`~object.__gt__` メソッドを呼び出す可能性のある型混合の比較での混乱を避"
3543+ "けることにも役立ちます。 "
34953544
34963545#: ../../library/functions.rst:1892
34973546msgid ""
@@ -3673,6 +3722,9 @@ msgid ""
36733722"> A -> object`` and the value of *type* is ``B``, then :func:`super` "
36743723"searches ``C -> A -> object``."
36753724msgstr ""
3725+ "例えば *object_or_type* の :attr:`~type.__mro__` 属性が ``D -> B -> C -> A -"
3726+ "> object`` であり、 *type* の値が ``B`` だとすると、 :func:`super` は ``C -> "
3727+ "A -> object`` の順番でメソッドを検索します。"
36763728
36773729#: ../../library/functions.rst:1993
36783730msgid ""
@@ -3830,6 +3882,8 @@ msgid ""
38303882"type object and generally the same object as returned by :attr:`object."
38313883"__class__`."
38323884msgstr ""
3885+ "引数が1つだけの場合、*object* の型を返します。返り値は型オブジェクトで、一般"
3886+ "に :attr:`object.__class__` によって返されるのと同じオブジェクトです。"
38333887
38343888#: ../../library/functions.rst:2077
38353889msgid ""
@@ -3851,6 +3905,14 @@ msgid ""
38513905"__dict__` attribute. The following two statements create identical :class:`!"
38523906"type` objects:"
38533907msgstr ""
3908+ "引数が3つの場合、新しい型オブジェクトを返します。これは本質的には :keyword:"
3909+ "`class` 文の動的な書式です。 *name* 文字列はクラス名で、 :attr:`~type."
3910+ "__name__` 属性になります。 *bases* 基底クラスのタプルで、 :attr:`~type."
3911+ "__bases__` 属性になります; 空の場合は全てのクラスの基底クラスである :class:"
3912+ "`object` が追加されます。 *dict* は、クラス本体の属性とメソッドの定義を含む辞"
3913+ "書です; 辞書は :attr:`~type.__dict__` 属性になる前にコピーされたり、ラップさ"
3914+ "れることがあります。以下の2つの文は同じ :class:`!type` オブジェクトを生成しま"
3915+ "す:"
38543916
38553917#: ../../library/functions.rst:2095
38563918msgid "See also:"
@@ -3888,12 +3950,16 @@ msgid ""
38883950"Subclasses of :class:`!type` which don't override ``type.__new__`` may no "
38893951"longer use the one-argument form to get the type of an object."
38903952msgstr ""
3953+ "``type.__new__`` をオーバーライドしていない :class:`!type` のサブクラスは、オ"
3954+ "ブジェクトの型を得るのに1引数形式を利用することができません。"
38913955
38923956#: ../../library/functions.rst:2114
38933957msgid ""
38943958"Return the :attr:`~object.__dict__` attribute for a module, class, instance, "
38953959"or any other object with a :attr:`!__dict__` attribute."
38963960msgstr ""
3961+ "モジュール、クラス、インスタンス、あるいはそれ以外の :attr:`!__dict__` 属性を"
3962+ "持つオブジェクトの、 :attr:`~object.__dict__` 属性を返します。"
38973963
38983964#: ../../library/functions.rst:2117
38993965msgid ""
@@ -3902,6 +3968,11 @@ msgid ""
39023968"their :attr:`!__dict__` attributes (for example, classes use a :class:`types."
39033969"MappingProxyType` to prevent direct dictionary updates)."
39043970msgstr ""
3971+ "モジュールやインスタンスのようなオブジェクトは、更新可能な :attr:`~object."
3972+ "__dict__` 属性を持っています。ただし、それ以外のオブジェクトでは :attr:`!"
3973+ "__dict__` 属性への書き込みが制限されている場合があります。書き込みに制限があ"
3974+ "る例としては、辞書を直接更新されることを防ぐために :class:`types."
3975+ "MappingProxyType` を使っているクラスがあります。"
39053976
39063977#: ../../library/functions.rst:2122
39073978msgid "Without an argument, :func:`vars` acts like :func:`locals`."