diff --git a/c-api/abstract.po b/c-api/abstract.po index f7754dbe6..afc90f98e 100644 --- a/c-api/abstract.po +++ b/c-api/abstract.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/abstract.rst:7 diff --git a/c-api/allocation.po b/c-api/allocation.po index 270c704f4..670afafb7 100644 --- a/c-api/allocation.po +++ b/c-api/allocation.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/allocation.rst:6 diff --git a/c-api/apiabiversion.po b/c-api/apiabiversion.po index 85debddcc..a909598eb 100644 --- a/c-api/apiabiversion.po +++ b/c-api/apiabiversion.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/apiabiversion.rst:7 diff --git a/c-api/arg.po b/c-api/arg.po index f7ba191bf..2046d8317 100644 --- a/c-api/arg.po +++ b/c-api/arg.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/arg.rst:6 @@ -104,7 +104,7 @@ msgstr "特に言及されていない場合、バッファーは NUL 終端さ #: ../../c-api/arg.rst:48 msgid "There are three ways strings and buffers can be converted to C:" -msgstr "" +msgstr "文字列とバッファをCに変換する方法は3つあります:" #: ../../c-api/arg.rst:50 msgid "" @@ -115,6 +115,12 @@ msgid "" "call** :c:func:`PyBuffer_Release` after you have finished processing the " "data (or in any early abort case)." msgstr "" +"形式としては ``y*`` そして ``s*`` 埋める :c:type:`Py_buffer` 構造体。これは" +"ロックします 根底 バッファ これにより、呼び出し元はその後、バッファを内部でも" +"使用できるようになります:c:type:`Py_BEGIN_ALLOW_THREADS` ブロック リスクなし" +"に 可変 データが再サイズ化または破壊される。その結果、**電話をかけなければな" +"らない** :c:func:`PyBuffer_Release` データ処理が完了した後(または早期終了の" +"場合)。" #: ../../c-api/arg.rst:57 msgid "" @@ -122,6 +128,9 @@ msgid "" "**You have to call** :c:func:`PyMem_Free` after you have finished processing " "the data (or in any early abort case)." msgstr "" +"その ``es``, ``es#``, ``et`` そして ``et#`` フォーマットは結果を割り当てます " +"バッファ. **必ず電話をかけてください** :c:func:`PyMem_Free` データ処理が完了" +"した後(または早期終了の場合)。" #: ../../c-api/arg.rst:63 msgid "" @@ -131,6 +140,11 @@ msgid "" "corresponding Python object, and shares the lifetime of this object. You " "won't have to release any memory yourself." msgstr "" +"他の形式では :class:`str` または 読み出し専用 :term:`bytes-like オブジェクト" +"`、例えば :class:`bytes`, および提供する ``const char *`` ポインタ その " +"バッファ. この場合 バッファ「借用」されています:これは対応するPythonオブジェ" +"クトによって管理され、このオブジェクトのライフサイクルを共有します。メモリを" +"自分で解放する必要はありません。 " #: ../../c-api/arg.rst:70 msgid "" @@ -139,6 +153,10 @@ msgid "" "disallows common mutable objects such as :class:`bytearray`, but also some " "read-only objects such as :class:`memoryview` of :class:`bytes`." msgstr "" +"以下のことを確実にするため 根底 バッファ 安全に借りることができます, 対象の :" +"c:member:`PyBufferProcs.bf_releasebuffer` フィールドは必須です。 ``NULL``. こ" +"れは一般的な 可変 次のようなオブジェクト :class:`bytearray`, また、いくつか" +"の 読み出し専用 次のようなオブジェクト :class:`memoryview` の :class:`bytes`." #: ../../c-api/arg.rst:76 msgid "" @@ -146,6 +164,9 @@ msgid "" "whether the input object is immutable (e.g. whether it would honor a request " "for a writable buffer, or whether another thread can mutate the data)." msgstr "" +"これに加えて ``bf_releasebuffer`` 要件として、入力が有効かどうかを確認する" +"チェックはありません 対象は 不変 (例:請求に応じるかどうか 書き込み可能 バッ" +"ファ, または、別のスレッドがデータを変更できるかどうか)。" #: ../../c-api/arg.rst:80 msgid "``s`` (:class:`str`) [const char \\*]" @@ -222,6 +243,11 @@ msgid "" "null bytes. Unicode objects are converted to C strings using ``'utf-8'`` " "encoding." msgstr "" +"のように ``s*``, ただし、それは :ref:`借用された バッファ `. 結果は2つのC変数に格納されます。最初の変数はC文字列へのポインター、" +"2つ目の変数はその長さです。文字列には埋め込まれたヌルバイトが含まれる可能性が" +"あります。Unicodeオブジェクトは、C文字列に変換されます ``'utf-8'`` エンコー" +"ド。" #: ../../c-api/arg.rst:113 ../../c-api/arg.rst:629 msgid "``z`` (:class:`str` or ``None``) [const char \\*]" @@ -274,6 +300,10 @@ msgid "" "objects. The bytes buffer must not contain embedded null bytes; if it does, " "a :exc:`ValueError` exception is raised." msgstr "" +"この形式は bytes-like Cポインタへのオブジェクトへの参照を拒否する :ref:" +"`borrowed ` 文字列; Unicode オブジェクトは受け付けませ" +"ん。 バイトバッファには埋め込みのヌルバイトを含んではいけません。もし含まれて" +"いる場合 :exc:`ValueError` 例外が発生します。" #: ../../c-api/arg.rst:136 msgid "" @@ -736,6 +766,10 @@ msgid "" "`strong reference` to the object is not created (i.e. its reference count is " "not increased). The pointer stored is not ``NULL``." msgstr "" +"Python オブジェクトを(変換なしで)C オブジェクトのポインターに格納します。 " +"これにより、C プログラムは渡された実際のオブジェクトを受け取ります。新しい :" +"term: 強参照 オブジェクトが作成されていません (すなわち、その参照カウント 増" +"加しません)。その ポインタ 保存されていない ``NULL``." #: ../../c-api/arg.rst:323 msgid "``O!`` (object) [*typeobject*, PyObject \\*]" @@ -948,6 +982,9 @@ msgid "" "*borrowed* references; do not release them (i.e. do not decrement their " "reference count)!" msgstr "" +"注意:呼び出し元に渡されるPythonオブジェクトの参照はすべて*借用*された参照で" +"す。これらを解放しないでください(つまり、参照カウントを減らさないでくださ" +"い)!" #: ../../c-api/arg.rst:434 msgid "" @@ -1091,12 +1128,26 @@ msgid "" "a tuple or contains the wrong number of elements; an exception will be set " "if there was a failure." msgstr "" +"パラメーターの取得方法のよりシンプルな形式で、使用しないもの a 書式文字列 引" +"数の型を指定する 。関数 これを使用する メソッド 彼らの パラメータ 次のように" +"宣言する必要があります :c:macro:`METH_VARARGS` に 関数 にメソッド テーブル。" +"実際のパラメーターを含むタプルは *args* として渡す必要があります。必ずタプル" +"でなければなりません。タプルの長さは、*min*以上で*max*以下でなければなりませ" +"ん。*min*と*max*は等しい場合もあります。関数には追加の引数を渡す必要があり、" +"各引数はポインターでなければならない ~へ:c:expr:`PyObject*` 変数;これらは" +"*args*の値で埋められる;これらは:term:を含む :term:`借用参照 `。*args* で指定されていないオプションパラメーターに対応する変数は" +"初期化されません。これらの変数は呼び出し元で初期化する必要があります。これ é–¢" +"æ•° 成功した場合にtrueを返し、*args*がタプルでない場合または要素の数が間違って" +"いる場合にfalseを返します。失敗した場合、例外が設定されます。" #: ../../c-api/arg.rst:544 msgid "" "This is an example of the use of this function, taken from the sources for " "the :mod:`!_weakref` helper module for weak references::" msgstr "" +"これは、この関数の使用例で、ソースコードから抜粋したものです:mod:`!_weakref` " +"弱参照用のヘルパーモジュール::" #: ../../c-api/arg.rst:547 msgid "" @@ -1220,6 +1271,7 @@ msgstr "" msgid "" "``s#`` (:class:`str` or ``None``) [const char \\*, :c:type:`Py_ssize_t`]" msgstr "" +"``s#`` (:class:`str` or ``None``) [const char \\*, :c:type:`Py_ssize_t`]" #: ../../c-api/arg.rst:617 msgid "" @@ -1245,7 +1297,7 @@ msgstr "" #: ../../c-api/arg.rst:625 msgid "``y#`` (:class:`bytes`) [const char \\*, :c:type:`Py_ssize_t`]" -msgstr "" +msgstr "``y#`` (:class:`bytes`) [const char \\*, :c:type:`Py_ssize_t`]" #: ../../c-api/arg.rst:626 msgid "" @@ -1410,6 +1462,12 @@ msgid "" "func:`Py_BuildValue` will return ``NULL`` but won't raise an exception. If " "no exception has been raised yet, :exc:`SystemError` is set." msgstr "" +"Python オブジェクトをそのまま渡すものの、それに対する新しい :term:`強参照` ã‚’" +"作成する(つまり、その参照カウントが1増加します)。渡されたオブジェクトが " +"``NULL`` ポインタ, この問題は、引数を生成する呼び出しがエラーを検出し、例外を" +"設定したため発生したものと推測されます。したがって、:c:func:`Py_BuildValue` " +"戻ってきます ``NULL`` しかし、そうはならない 送出 例外。 例外がまだ発生してい" +"ない場合、:exc:`SystemError` 設定されています。" #: ../../c-api/arg.rst:717 msgid "``S`` (object) [PyObject \\*]" @@ -1429,6 +1487,9 @@ msgid "" "Useful when the object is created by a call to an object constructor in the " "argument list." msgstr "" +"同じです ``O``, ただし、新しい :term:`強参照` を作成しません。オブジェクトが" +"引数リスト内のオブジェクトコンストラクターの呼び出しによって作成される場合に" +"便利です。" #: ../../c-api/arg.rst:725 msgid "``O&`` (object) [*converter*, *anything*]" diff --git a/c-api/bool.po b/c-api/bool.po index c9a7290fa..c02b2ef13 100644 --- a/c-api/bool.po +++ b/c-api/bool.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/bool.rst:6 diff --git a/c-api/buffer.po b/c-api/buffer.po index c8874d0c3..f55d06773 100644 --- a/c-api/buffer.po +++ b/c-api/buffer.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/buffer.rst:11 @@ -219,6 +219,10 @@ msgid "" "set to ``NULL`` by :c:func:`PyBuffer_Release`. The field is the equivalent " "of the return value of any standard C-API function." msgstr "" +"エクスポート対象オブジェクトへの新しい参照。この参照は消費者によって所有さ" +"れ、自動的に解放されます(つまり、参照カウントが減少します)し、設定されます " +"``NULL`` by :c:func:`PyBuffer_Release`. このフィールドは、標準のC-API関数の戻" +"り値に相当します。" #: ../../c-api/buffer.rst:117 msgid "" diff --git a/c-api/bytearray.po b/c-api/bytearray.po index 42de00ecc..9f64a5c73 100644 --- a/c-api/bytearray.po +++ b/c-api/bytearray.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/bytearray.rst:6 diff --git a/c-api/bytes.po b/c-api/bytes.po index b0c0a4656..be8e5210b 100644 --- a/c-api/bytes.po +++ b/c-api/bytes.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/bytes.rst:6 diff --git a/c-api/call.po b/c-api/call.po index 327957d7e..5b04cfc5b 100644 --- a/c-api/call.po +++ b/c-api/call.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/call.rst:6 diff --git a/c-api/capsule.po b/c-api/capsule.po index 7ec040524..7d70f1d85 100644 --- a/c-api/capsule.po +++ b/c-api/capsule.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/capsule.rst:6 @@ -266,7 +266,7 @@ msgstr "" #: ../../c-api/capsule.rst:8 msgid "object" -msgstr "オブジェクト" +msgstr "object" #: ../../c-api/capsule.rst:8 msgid "Capsule" diff --git a/c-api/cell.po b/c-api/cell.po index 9f6944b99..297b343a7 100644 --- a/c-api/cell.po +++ b/c-api/cell.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/cell.rst:6 diff --git a/c-api/code.po b/c-api/code.po index fc6a1c6bd..a4b32bae1 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/code.rst:8 @@ -349,7 +349,7 @@ msgstr "" #: ../../c-api/code.rst:3 msgid "object" -msgstr "オブジェクト" +msgstr "object" #: ../../c-api/code.rst:3 msgid "code" diff --git a/c-api/codec.po b/c-api/codec.po index fd74c9a01..4a1c94cf1 100644 --- a/c-api/codec.po +++ b/c-api/codec.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/codec.rst:4 @@ -45,6 +45,9 @@ msgid "" "search function is not registered, do nothing. Return 0 on success. Raise an " "exception and return -1 on error." msgstr "" +"コーデック検索関数の登録を解除し、レジストリのキャッシュをクリアします。 検索" +"関数が登録されていない場合は何もしません。 成功したら0を返します。 エラーの場" +"合は例外を送出させ、-1を返します。" #: ../../c-api/codec.rst:23 msgid "" diff --git a/c-api/complex.po b/c-api/complex.po index 9d7ceae70..de4c5cb1b 100644 --- a/c-api/complex.po +++ b/c-api/complex.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/complex.rst:6 diff --git a/c-api/concrete.po b/c-api/concrete.po index d5afb86ae..de12c71a4 100644 --- a/c-api/concrete.po +++ b/c-api/concrete.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/concrete.rst:8 diff --git a/c-api/contextvars.po b/c-api/contextvars.po index e4b4ab7ee..67e48caa3 100644 --- a/c-api/contextvars.po +++ b/c-api/contextvars.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/contextvars.rst:6 diff --git a/c-api/conversion.po b/c-api/conversion.po index f525e64b3..f0d7d808b 100644 --- a/c-api/conversion.po +++ b/c-api/conversion.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/conversion.rst:6 diff --git a/c-api/coro.po b/c-api/coro.po index c89de45e7..2ed3e75a8 100644 --- a/c-api/coro.po +++ b/c-api/coro.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/coro.rst:6 diff --git a/c-api/datetime.po b/c-api/datetime.po index 74460520c..c05280358 100644 --- a/c-api/datetime.po +++ b/c-api/datetime.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/datetime.rst:6 diff --git a/c-api/descriptor.po b/c-api/descriptor.po index ccfca1517..d995b9c04 100644 --- a/c-api/descriptor.po +++ b/c-api/descriptor.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/descriptor.rst:6 diff --git a/c-api/dict.po b/c-api/dict.po index 99b13adaf..726b64874 100644 --- a/c-api/dict.po +++ b/c-api/dict.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/dict.rst:6 diff --git a/c-api/exceptions.po b/c-api/exceptions.po index 26792fea2..a509b7798 100644 --- a/c-api/exceptions.po +++ b/c-api/exceptions.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/exceptions.rst:8 diff --git a/c-api/file.po b/c-api/file.po index a92cf856f..791d8113c 100644 --- a/c-api/file.po +++ b/c-api/file.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/file.rst:6 diff --git a/c-api/float.po b/c-api/float.po index 176ab81de..21a48b085 100644 --- a/c-api/float.po +++ b/c-api/float.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/float.rst:6 diff --git a/c-api/frame.po b/c-api/frame.po index 9aa28c98b..84d0b94df 100644 --- a/c-api/frame.po +++ b/c-api/frame.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/frame.rst:4 diff --git a/c-api/function.po b/c-api/function.po index b64df67ec..1bbc9f9d7 100644 --- a/c-api/function.po +++ b/c-api/function.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/function.rst:6 diff --git a/c-api/gcsupport.po b/c-api/gcsupport.po index 869f067a2..e1475ae90 100644 --- a/c-api/gcsupport.po +++ b/c-api/gcsupport.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/gcsupport.rst:6 diff --git a/c-api/gen.po b/c-api/gen.po index 55a798bec..be25c4188 100644 --- a/c-api/gen.po +++ b/c-api/gen.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/gen.rst:6 diff --git a/c-api/hash.po b/c-api/hash.po index 21bda2972..18f93ad06 100644 --- a/c-api/hash.po +++ b/c-api/hash.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/hash.rst:4 @@ -30,14 +30,16 @@ msgstr "PyHash API" msgid "" "See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`." msgstr "" +":c:member:`PyTypeObject.tp_hash` メンバや :ref:`numeric-hash` も参照してくだ" +"さい。" #: ../../c-api/hash.rst:10 msgid "Hash value type: signed integer." -msgstr "" +msgstr "ハッシュ値型: 符号付き整数。" #: ../../c-api/hash.rst:16 msgid "Hash value type: unsigned integer." -msgstr "" +msgstr "ハッシュ値型: 符号なし整数。" #: ../../c-api/hash.rst:22 msgid "" diff --git a/c-api/import.po b/c-api/import.po index 5c0fd874e..bc6fb3bc3 100644 --- a/c-api/import.po +++ b/c-api/import.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Masato HASHIMOTO , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/import.rst:6 diff --git a/c-api/index.po b/c-api/index.po index 35ea1575d..28fef3d33 100644 --- a/c-api/index.po +++ b/c-api/index.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/index.rst:5 diff --git a/c-api/init.po b/c-api/init.po index 0b2539498..167dd54c1 100644 --- a/c-api/init.po +++ b/c-api/init.po @@ -24,10 +24,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/init.rst:8 diff --git a/c-api/init_config.po b/c-api/init_config.po index 9cab91be1..2ce73f634 100644 --- a/c-api/init_config.po +++ b/c-api/init_config.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/init_config.rst:7 @@ -32,17 +32,19 @@ msgstr "Python 初期化設定 " #: ../../c-api/init_config.rst:13 msgid "PyInitConfig C API" -msgstr "" +msgstr "PyInitConfig C API" #: ../../c-api/init_config.rst:17 msgid "Python can be initialized with :c:func:`Py_InitializeFromInitConfig`." -msgstr "" +msgstr "Python は :c:func:`Py_InitializeFromInitConfig` で初期化できます。" #: ../../c-api/init_config.rst:19 ../../c-api/init_config.rst:650 msgid "" "The :c:func:`Py_RunMain` function can be used to write a customized Python " "program." msgstr "" +":c:func:`Py_RunMain` 関数は、カスタマイズされた Python プログラムを書くために" +"使用できます。" #: ../../c-api/init_config.rst:22 ../../c-api/init_config.rst:653 msgid "" @@ -53,7 +55,7 @@ msgstr "" #: ../../c-api/init_config.rst:25 msgid ":pep:`741` \"Python Configuration C API\"." -msgstr "" +msgstr ":pep:`741` \"Python Configuration C API\"." #: ../../c-api/init_config.rst:29 ../../c-api/init_config.rst:660 msgid "Example" @@ -64,6 +66,8 @@ msgid "" "Example of customized Python always running with the :ref:`Python " "Development Mode ` enabled; return ``-1`` on error:" msgstr "" +"常に :ref:`Python 開発モード ` が有効化された状態で実行されるカスタ" +"マイズされた Python の例。エラー時は ``-1`` を返します:" #: ../../c-api/init_config.rst:34 msgid "" @@ -101,14 +105,48 @@ msgid "" " }\n" "}" msgstr "" +"int init_python(void)\n" +"{\n" +" PyInitConfig *config = PyInitConfig_Create();\n" +" if (config == NULL) {\n" +" printf(\"PYTHON INIT ERROR: memory allocation failed\\n\");\n" +" return -1;\n" +" }\n" +"\n" +" // Python 開発モードを有効化\n" +" if (PyInitConfig_SetInt(config, \"dev_mode\", 1) < 0) {\n" +" goto error;\n" +" }\n" +"\n" +" // Python を設定付きで初期化\n" +" if (Py_InitializeFromInitConfig(config) < 0) {\n" +" goto error;\n" +" }\n" +" PyInitConfig_Free(config);\n" +" return 0;\n" +"\n" +"error:\n" +" {\n" +" // エラーメッセージを表示する。\n" +" //\n" +" // この稀な括弧スタイルは、変数宣言を指す goto ターゲットを\n" +" // 作ることができないために使用されています。\n" +"\n" +" const char *err_msg;\n" +" (void)PyInitConfig_GetError(config, &err_msg);\n" +" printf(\"PYTHON INIT ERROR: %s\\n\", err_msg);\n" +" PyInitConfig_Free(config);\n" +" return -1;\n" +" }\n" +"}" #: ../../c-api/init_config.rst:71 msgid "Create Config" -msgstr "" +msgstr "設定の作成" #: ../../c-api/init_config.rst:75 msgid "Opaque structure to configure the Python initialization." -msgstr "" +msgstr "Python の初期化を構成するための不透明な構造体です。" #: ../../c-api/init_config.rst:80 msgid "" @@ -1798,19 +1836,19 @@ msgstr "" #: ../../c-api/init_config.rst:1162 msgid ":c:member:`PyConfig.dev_mode`" -msgstr "" +msgstr ":c:member:`PyConfig.dev_mode`" #: ../../c-api/init_config.rst:1163 msgid ":c:member:`PyConfig.isolated`" -msgstr "" +msgstr ":c:member:`PyConfig.isolated`" #: ../../c-api/init_config.rst:1164 msgid ":c:member:`PyConfig.parse_argv`" -msgstr "" +msgstr ":c:member:`PyConfig.parse_argv`" #: ../../c-api/init_config.rst:1165 msgid ":c:member:`PyConfig.use_environment`" -msgstr "" +msgstr ":c:member:`PyConfig.use_environment`" #: ../../c-api/init_config.rst:1167 msgid "" @@ -2194,11 +2232,11 @@ msgstr "" #: ../../c-api/init_config.rst:1439 msgid "``\"strict\"``" -msgstr "" +msgstr "``\"strict\"``" #: ../../c-api/init_config.rst:1440 msgid "``\"surrogateescape\"``" -msgstr "" +msgstr "``\"surrogateescape\"``" #: ../../c-api/init_config.rst:1441 msgid "``\"surrogatepass\"`` (only supported with the UTF-8 encoding)" @@ -3146,23 +3184,23 @@ msgstr "" #: ../../c-api/init_config.rst:2189 msgid ":c:member:`PyConfig.home`" -msgstr "" +msgstr ":c:member:`PyConfig.home`" #: ../../c-api/init_config.rst:2190 msgid ":c:member:`PyConfig.platlibdir`" -msgstr "" +msgstr ":c:member:`PyConfig.platlibdir`" #: ../../c-api/init_config.rst:2191 msgid ":c:member:`PyConfig.pathconfig_warnings`" -msgstr "" +msgstr ":c:member:`PyConfig.pathconfig_warnings`" #: ../../c-api/init_config.rst:2192 msgid ":c:member:`PyConfig.program_name`" -msgstr "" +msgstr ":c:member:`PyConfig.program_name`" #: ../../c-api/init_config.rst:2193 msgid ":c:member:`PyConfig.pythonpath_env`" -msgstr "" +msgstr ":c:member:`PyConfig.pythonpath_env`" #: ../../c-api/init_config.rst:2194 msgid "current working directory: to get absolute paths" diff --git a/c-api/intro.po b/c-api/intro.po index 720c815e0..12a7fc02c 100644 --- a/c-api/intro.po +++ b/c-api/intro.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/intro.rst:8 @@ -84,11 +84,12 @@ msgstr "" #: ../../c-api/intro.rst:34 msgid "Language version compatibility" -msgstr "" +msgstr "言語バージョン互換性" #: ../../c-api/intro.rst:36 msgid "Python's C API is compatible with C11 and C++11 versions of C and C++." msgstr "" +"Pythonの C API は C11 ã‚„ C++11 バージョンの C と C++ に互換性があります。" #: ../../c-api/intro.rst:38 msgid "" @@ -132,6 +133,8 @@ msgid "" "#define PY_SSIZE_T_CLEAN\n" "#include " msgstr "" +"#define PY_SSIZE_T_CLEAN\n" +"#include " #: ../../c-api/intro.rst:64 msgid "" @@ -317,7 +320,7 @@ msgstr "" #: ../../c-api/intro.rst:166 msgid "static inline Py_ALWAYS_INLINE int random(void) { return 4; }" -msgstr "" +msgstr "static inline Py_ALWAYS_INLINE int random(void) { return 4; }" #: ../../c-api/intro.rst:172 msgid "" @@ -333,6 +336,8 @@ msgid "" "Use this for deprecated declarations. The macro must be placed before the " "symbol name." msgstr "" +"非推奨な宣言に使用してください。このマクロはシンボル名の前に置かれなければな" +"りません。" #: ../../c-api/intro.rst:180 ../../c-api/intro.rst:266 #: ../../c-api/intro.rst:284 @@ -341,7 +346,7 @@ msgstr "以下はプログラム例です::" #: ../../c-api/intro.rst:182 msgid "Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);" -msgstr "" +msgstr "Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);" #: ../../c-api/intro.rst:184 msgid "MSVC support was added." @@ -352,6 +357,8 @@ msgid "" "Like ``getenv(s)``, but returns ``NULL`` if :option:`-E` was passed on the " "command line (see :c:member:`PyConfig.use_environment`)." msgstr "" +"``getenv(s)`` に似ていますが、コマンドラインで :option:`-E` が渡された場合は " +"(:c:member:`PyConfig.use_environment` を参照) ``NULL`` を返します。" #: ../../c-api/intro.rst:194 msgid "Return the maximum value between ``x`` and ``y``." @@ -378,7 +385,7 @@ msgstr "使い方::" #: ../../c-api/intro.rst:218 msgid "Py_NO_INLINE static int random(void) { return 4; }" -msgstr "" +msgstr "Py_NO_INLINE static int random(void) { return 4; }" #: ../../c-api/intro.rst:224 msgid "" @@ -422,6 +429,8 @@ msgid "" "Use this for unused arguments in a function definition to silence compiler " "warnings. Example: ``int func(int a, int Py_UNUSED(b)) { return a; }``." msgstr "" +"コンパイラ警告を抑えるために関数定義の使用されない引数に使用してください。例" +"えば: ``int func(int a, int Py_UNUSED(b)) { return a; }`` 。" #: ../../c-api/intro.rst:260 msgid "" @@ -445,6 +454,13 @@ msgid "" " // ...\n" "}" msgstr "" +"PyDoc_STRVAR(pop_doc, \"Remove and return the rightmost element.\");\n" +"\n" +"static PyMethodDef deque_methods[] = {\n" +" // ...\n" +" {\"pop\", (PyCFunction)deque_pop, METH_NOARGS, pop_doc},\n" +" // ...\n" +"}" #: ../../c-api/intro.rst:278 msgid "" @@ -466,6 +482,11 @@ msgid "" " {NULL, NULL}\n" "};" msgstr "" +"static PyMethodDef pysqlite_row_methods[] = {\n" +" {\"keys\", (PyCFunction)pysqlite_row_keys, METH_NOARGS,\n" +" PyDoc_STR(\"Returns the keys of the row.\")},\n" +" {NULL, NULL}\n" +"};" #: ../../c-api/intro.rst:296 msgid "Objects, Types and Reference Counts" @@ -710,6 +731,10 @@ msgid "" "tuple = Py_BuildValue(\"(iis)\", 1, 2, \"three\");\n" "list = Py_BuildValue(\"[iis]\", 1, 2, \"three\");" msgstr "" +"PyObject *tuple, *list;\n" +"\n" +"tuple = Py_BuildValue(\"(iis)\", 1, 2, \"three\");\n" +"list = Py_BuildValue(\"[iis]\", 1, 2, \"three\");" #: ../../c-api/intro.rst:456 msgid "" diff --git a/c-api/iter.po b/c-api/iter.po index 2fa839ed8..ac878ae66 100644 --- a/c-api/iter.po +++ b/c-api/iter.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/iter.rst:6 diff --git a/c-api/iterator.po b/c-api/iterator.po index c50196264..d4f453c3c 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/iterator.rst:6 diff --git a/c-api/list.po b/c-api/list.po index 281b1575c..36224a561 100644 --- a/c-api/list.po +++ b/c-api/list.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/list.rst:6 diff --git a/c-api/long.po b/c-api/long.po index 92f5b8bb9..c54309f04 100644 --- a/c-api/long.po +++ b/c-api/long.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/long.rst:6 diff --git a/c-api/mapping.po b/c-api/mapping.po index 1c5180235..b2d775e22 100644 --- a/c-api/mapping.po +++ b/c-api/mapping.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/mapping.rst:6 diff --git a/c-api/marshal.po b/c-api/marshal.po index 04689e3b6..2edc072fd 100644 --- a/c-api/marshal.po +++ b/c-api/marshal.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/marshal.rst:6 diff --git a/c-api/memory.po b/c-api/memory.po index 15dc441c0..ca260ea12 100644 --- a/c-api/memory.po +++ b/c-api/memory.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/memory.rst:8 @@ -1019,7 +1019,7 @@ msgstr "" #: ../../c-api/memory.rst:590 msgid "``p[-2*S:-S]``" -msgstr "" +msgstr "``p[-2*S:-S]``" #: ../../c-api/memory.rst:591 msgid "" @@ -1029,7 +1029,7 @@ msgstr "" #: ../../c-api/memory.rst:593 msgid "``p[-S]``" -msgstr "" +msgstr "``p[-S]``" #: ../../c-api/memory.rst:594 msgid "API identifier (ASCII character):" @@ -1049,7 +1049,7 @@ msgstr "" #: ../../c-api/memory.rst:600 msgid "``p[-S+1:0]``" -msgstr "" +msgstr "``p[-S+1:0]``" #: ../../c-api/memory.rst:601 msgid "Copies of PYMEM_FORBIDDENBYTE. Used to catch under- writes and reads." @@ -1057,7 +1057,7 @@ msgstr "" #: ../../c-api/memory.rst:603 msgid "``p[0:N]``" -msgstr "" +msgstr "``p[0:N]``" #: ../../c-api/memory.rst:604 msgid "" @@ -1072,7 +1072,7 @@ msgstr "" #: ../../c-api/memory.rst:612 msgid "``p[N:N+S]``" -msgstr "" +msgstr "``p[N:N+S]``" #: ../../c-api/memory.rst:613 msgid "Copies of PYMEM_FORBIDDENBYTE. Used to catch over- writes and reads." @@ -1080,7 +1080,7 @@ msgstr "" #: ../../c-api/memory.rst:615 msgid "``p[N+S:N+2*S]``" -msgstr "" +msgstr "``p[N+S:N+2*S]``" #: ../../c-api/memory.rst:616 msgid "" diff --git a/c-api/memoryview.po b/c-api/memoryview.po index 1d7144794..15807b2e2 100644 --- a/c-api/memoryview.po +++ b/c-api/memoryview.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/memoryview.rst:9 diff --git a/c-api/method.po b/c-api/method.po index 749aa75b6..a0104eef0 100644 --- a/c-api/method.po +++ b/c-api/method.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/method.rst:6 diff --git a/c-api/module.po b/c-api/module.po index bc8b76c3b..2985b2856 100644 --- a/c-api/module.po +++ b/c-api/module.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/module.rst:6 @@ -767,6 +767,17 @@ msgid "" " return res;\n" " }" msgstr "" +"static int\n" +"add_spam(PyObject *module, int value)\n" +"{\n" +" PyObject *obj = PyLong_FromLong(value);\n" +" if (obj == NULL) {\n" +" return -1;\n" +" }\n" +" int res = PyModule_AddObjectRef(module, \"spam\", obj);\n" +" Py_DECREF(obj);\n" +" return res;\n" +" }" #: ../../c-api/module.rst:540 msgid "" @@ -794,6 +805,14 @@ msgid "" " return res;\n" " }" msgstr "" +"static int\n" +"add_spam(PyObject *module, int value)\n" +"{\n" +" PyObject *obj = PyLong_FromLong(value);\n" +" int res = PyModule_AddObjectRef(module, \"spam\", obj);\n" +" Py_XDECREF(obj);\n" +" return res;\n" +" }" #: ../../c-api/module.rst:556 msgid "" diff --git a/c-api/none.po b/c-api/none.po index a9cfc9728..82060e89a 100644 --- a/c-api/none.po +++ b/c-api/none.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/none.rst:6 @@ -57,7 +57,7 @@ msgstr "関数から :c:data:`Py_None` を返します。" #: ../../c-api/none.rst:8 msgid "object" -msgstr "オブジェクト" +msgstr "object" #: ../../c-api/none.rst:8 msgid "None" diff --git a/c-api/number.po b/c-api/number.po index 5a9834aff..dd003ebb8 100644 --- a/c-api/number.po +++ b/c-api/number.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/number.rst:6 diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index fd539e63f..f24e8a3c8 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/objbuffer.rst:4 diff --git a/c-api/object.po b/c-api/object.po index 81747047f..1369b4af9 100644 --- a/c-api/object.po +++ b/c-api/object.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/object.rst:6 diff --git a/c-api/objimpl.po b/c-api/objimpl.po index aef6c69cd..876877bfe 100644 --- a/c-api/objimpl.po +++ b/c-api/objimpl.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/objimpl.rst:7 diff --git a/c-api/refcounting.po b/c-api/refcounting.po index 1e84199db..1d3f3f71b 100644 --- a/c-api/refcounting.po +++ b/c-api/refcounting.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/refcounting.rst:8 diff --git a/c-api/reflection.po b/c-api/reflection.po index 525672c97..d0cc92c27 100644 --- a/c-api/reflection.po +++ b/c-api/reflection.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/reflection.rst:6 diff --git a/c-api/sequence.po b/c-api/sequence.po index 81255b0fa..c9d11af04 100644 --- a/c-api/sequence.po +++ b/c-api/sequence.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/sequence.rst:6 diff --git a/c-api/set.po b/c-api/set.po index fbf223cd0..742aceb0b 100644 --- a/c-api/set.po +++ b/c-api/set.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/set.rst:6 diff --git a/c-api/slice.po b/c-api/slice.po index 2c4dbdcd2..198ec3d10 100644 --- a/c-api/slice.po +++ b/c-api/slice.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/slice.rst:6 diff --git a/c-api/stable.po b/c-api/stable.po index 1e71009d2..1bde8e7e0 100644 --- a/c-api/stable.po +++ b/c-api/stable.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/stable.rst:7 diff --git a/c-api/structures.po b/c-api/structures.po index 30d57a971..78c04f781 100644 --- a/c-api/structures.po +++ b/c-api/structures.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/structures.rst:6 diff --git a/c-api/sys.po b/c-api/sys.po index aaa54b511..211f695ef 100644 --- a/c-api/sys.po +++ b/c-api/sys.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/sys.rst:6 diff --git a/c-api/tuple.po b/c-api/tuple.po index 416da8958..224290e1c 100644 --- a/c-api/tuple.po +++ b/c-api/tuple.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/tuple.rst:6 diff --git a/c-api/type.po b/c-api/type.po index c081a0516..040bdb9b8 100644 --- a/c-api/type.po +++ b/c-api/type.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/type.rst:6 diff --git a/c-api/typehints.po b/c-api/typehints.po index 6e15352ed..0fbb510bd 100644 --- a/c-api/typehints.po +++ b/c-api/typehints.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/typehints.rst:6 diff --git a/c-api/typeobj.po b/c-api/typeobj.po index f02894596..32ec6f421 100644 --- a/c-api/typeobj.po +++ b/c-api/typeobj.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/typeobj.rst:6 @@ -153,7 +153,7 @@ msgstr ":c:member:`~PyTypeObject.tp_basicsize`" #: ../../c-api/typeobj.rst:99 ../../c-api/typeobj.rst:120 #: ../../c-api/typeobj.rst:417 msgid ":c:type:`Py_ssize_t`" -msgstr "" +msgstr ":c:type:`Py_ssize_t`" #: ../../c-api/typeobj.rst:48 msgid ":c:member:`~PyTypeObject.tp_itemsize`" @@ -717,11 +717,11 @@ msgstr "__anext__" #: ../../c-api/typeobj.rst:210 msgid ":c:member:`~PyAsyncMethods.am_send`" -msgstr "" +msgstr ":c:member:`~PyAsyncMethods.am_send`" #: ../../c-api/typeobj.rst:210 msgid ":c:type:`sendfunc`" -msgstr "" +msgstr ":c:type:`sendfunc`" #: ../../c-api/typeobj.rst:214 msgid ":c:member:`~PyNumberMethods.nb_add`" diff --git a/c-api/unicode.po b/c-api/unicode.po index f9d683504..f73dc525d 100644 --- a/c-api/unicode.po +++ b/c-api/unicode.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/unicode.rst:6 diff --git a/c-api/utilities.po b/c-api/utilities.po index f23c283fd..91cac9ac3 100644 --- a/c-api/utilities.po +++ b/c-api/utilities.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/utilities.rst:7 diff --git a/c-api/veryhigh.po b/c-api/veryhigh.po index e097510d9..ba70d9042 100644 --- a/c-api/veryhigh.po +++ b/c-api/veryhigh.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/veryhigh.rst:8 diff --git a/c-api/weakref.po b/c-api/weakref.po index d13366fc2..6b9d55b65 100644 --- a/c-api/weakref.po +++ b/c-api/weakref.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/weakref.rst:6 diff --git a/distributing/index.po b/distributing/index.po index f91f4e218..c9db0f117 100644 --- a/distributing/index.po +++ b/distributing/index.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distributing/index.rst:10 diff --git a/distutils/_setuptools_disclaimer.po b/distutils/_setuptools_disclaimer.po index 55cc4fd40..702badb29 100644 --- a/distutils/_setuptools_disclaimer.po +++ b/distutils/_setuptools_disclaimer.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/_setuptools_disclaimer.rst:3 diff --git a/distutils/apiref.po b/distutils/apiref.po index 599c17489..2e2652469 100644 --- a/distutils/apiref.po +++ b/distutils/apiref.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/apiref.rst:5 diff --git a/distutils/builtdist.po b/distutils/builtdist.po index 4782154a8..ca6e6b188 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/builtdist.rst:5 diff --git a/distutils/commandref.po b/distutils/commandref.po index 2331199f2..fac738db7 100644 --- a/distutils/commandref.po +++ b/distutils/commandref.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/commandref.rst:5 diff --git a/distutils/configfile.po b/distutils/configfile.po index 2c39db65e..83f124244 100644 --- a/distutils/configfile.po +++ b/distutils/configfile.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/configfile.rst:5 diff --git a/distutils/examples.po b/distutils/examples.po index 37087985f..c8ce9c4fb 100644 --- a/distutils/examples.po +++ b/distutils/examples.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/examples.rst:5 diff --git a/distutils/extending.po b/distutils/extending.po index dd10467dc..270cd2f83 100644 --- a/distutils/extending.po +++ b/distutils/extending.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/extending.rst:5 diff --git a/distutils/index.po b/distutils/index.po index 21a6ada1d..f075387ce 100644 --- a/distutils/index.po +++ b/distutils/index.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Shin Saito, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/index.rst:5 diff --git a/distutils/introduction.po b/distutils/introduction.po index 0cc9519d7..88f368769 100644 --- a/distutils/introduction.po +++ b/distutils/introduction.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/introduction.rst:5 diff --git a/distutils/packageindex.po b/distutils/packageindex.po index 96e65ef15..2741a2c12 100644 --- a/distutils/packageindex.po +++ b/distutils/packageindex.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/packageindex.rst:7 diff --git a/distutils/setupscript.po b/distutils/setupscript.po index b5f3d1978..5161cb70d 100644 --- a/distutils/setupscript.po +++ b/distutils/setupscript.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/setupscript.rst:5 diff --git a/distutils/sourcedist.po b/distutils/sourcedist.po index ac0f74000..af42f4514 100644 --- a/distutils/sourcedist.po +++ b/distutils/sourcedist.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/sourcedist.rst:5 diff --git a/distutils/uploading.po b/distutils/uploading.po index 601b5e350..379a6fdb2 100644 --- a/distutils/uploading.po +++ b/distutils/uploading.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../distutils/uploading.rst:5 diff --git a/extending/building.po b/extending/building.po index 225442ac9..28c8f3e24 100644 --- a/extending/building.po +++ b/extending/building.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../extending/building.rst:7 @@ -89,6 +89,12 @@ msgid "" " suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n" " return b'PyInit' + suffix" msgstr "" +"def initfunc_name(name):\n" +" try:\n" +" suffix = b'_' + name.encode('ascii')\n" +" except UnicodeEncodeError:\n" +" suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n" +" return b'PyInit' + suffix" #: ../../extending/building.rst:39 msgid "" diff --git a/extending/embedding.po b/extending/embedding.po index 3b3fefcaf..53359cd2b 100644 --- a/extending/embedding.po +++ b/extending/embedding.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../extending/embedding.rst:8 diff --git a/extending/extending.po b/extending/extending.po index cbccc5806..3464f8306 100644 --- a/extending/extending.po +++ b/extending/extending.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../extending/extending.rst:8 @@ -131,6 +131,8 @@ msgid "" "#define PY_SSIZE_T_CLEAN\n" "#include " msgstr "" +"#define PY_SSIZE_T_CLEAN\n" +"#include " #: ../../extending/extending.rst:63 msgid "" diff --git a/extending/index.po b/extending/index.po index c0ecf37e0..b6ad0180a 100644 --- a/extending/index.po +++ b/extending/index.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 菊池 健志, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../extending/index.rst:5 diff --git a/extending/newtypes.po b/extending/newtypes.po index be08e8875..0cc5cbb71 100644 --- a/extending/newtypes.po +++ b/extending/newtypes.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../extending/newtypes.rst:7 @@ -1054,7 +1054,7 @@ msgstr "" #: ../../extending/newtypes.rst:605 msgid "https://www.python.org/downloads/source/" -msgstr "" +msgstr "https://www.python.org/downloads/source/" #: ../../extending/newtypes.rst:607 msgid "" @@ -1063,7 +1063,7 @@ msgstr "" #: ../../extending/newtypes.rst:608 msgid "https://github.com/python/cpython" -msgstr "" +msgstr "https://github.com/python/cpython" #: ../../extending/newtypes.rst:56 msgid "object" diff --git a/extending/newtypes_tutorial.po b/extending/newtypes_tutorial.po index c67be0b70..d1e0f8ba7 100644 --- a/extending/newtypes_tutorial.po +++ b/extending/newtypes_tutorial.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../extending/newtypes_tutorial.rst:7 diff --git a/extending/windows.po b/extending/windows.po index a4e8c9e1e..b84406fd9 100644 --- a/extending/windows.po +++ b/extending/windows.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../extending/windows.rst:8 diff --git a/faq/design.po b/faq/design.po index 5ce0d2d74..30d6c93c6 100644 --- a/faq/design.po +++ b/faq/design.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/design.rst:3 @@ -65,6 +65,10 @@ msgid "" " y--;\n" "z++;" msgstr "" +"if (x <= y)\n" +" x++;\n" +" y--;\n" +"z++;" #: ../../faq/design.rst:26 msgid "" @@ -130,6 +134,8 @@ msgid "" ">>> 1.2 - 1.0\n" "0.19999999999999996" msgstr "" +">>> 1.2 - 1.0\n" +"0.19999999999999996" #: ../../faq/design.rst:61 msgid "" @@ -137,9 +143,9 @@ msgid "" "Python, and much more to do with how the underlying platform handles " "floating-point numbers." msgstr "" -"そしてこれが Python のバグだと考えます。が、これはバグではありません。この結" -"果に Python はほとんど関与しておらず、むしろ基底のプラットフォームによる浮動" -"小数点数の扱い方が関与しています。" +"Python のバグと考えるかもしれませんが、そうではありません。 この結果に " +"Python はほとんど影響しておらず、むしろ大きく関係しているのは下敷きとしている" +"プラットフォームによる浮動小数点数の扱い方です。" #: ../../faq/design.rst:65 msgid "" @@ -150,21 +156,24 @@ msgid "" "point operations. This means that as far as floating-point operations are " "concerned, Python behaves like many popular languages including C and Java." msgstr "" -"CPython における :class:`float` 型は記憶に C 言語の ``double`` 型を使いま" -"す。 :class:`float` オブジェクトの値は固定精度 (典型的には 53 bit) の 2 進浮" -"動小数点数として格納され、 Python はプロセッサのハードウェアが実装している C " -"言語上の演算を使います。つまり、浮動小数点数に関して Python は C 言語や Java " -"のような多くの一般的な言語と同じように振る舞います。" +"CPython における :class:`float` 型は C 言語の ``double`` 型をデータ格納先に使" +"います。 :class:`float` オブジェクトの値は固定精度 (典型的には 53 bit) の 2 " +"進浮動小数点数で格納されます。 そして Python は浮動小数点演算を行うために C " +"の演算を使いますが、これはプロセッサのハードウェア実装に依存します。つまり、" +"浮動小数点数に関して Python は C 言語や Java を含む多くの一般的な言語と同じよ" +"うに振る舞います。" #: ../../faq/design.rst:72 msgid "" "Many numbers that can be written easily in decimal notation cannot be " "expressed exactly in binary floating point. For example, after::" msgstr "" +"10 進数表記 (decimal) で簡単に表せる数値でも、その多くは 2 進浮動小数点数 " +"(binary) で正確に表現できません。 たとえば次では ::" #: ../../faq/design.rst:75 msgid ">>> x = 1.2" -msgstr "" +msgstr ">>> x = 1.2" #: ../../faq/design.rst:77 msgid "" @@ -178,7 +187,7 @@ msgstr "" #: ../../faq/design.rst:81 msgid "1.0011001100110011001100110011001100110011001100110011 (binary)" -msgstr "" +msgstr "1.0011001100110011001100110011001100110011001100110011 (binary)" #: ../../faq/design.rst:83 msgid "which is exactly::" @@ -186,21 +195,23 @@ msgstr "で、正確には次の値です::" #: ../../faq/design.rst:85 msgid "1.1999999999999999555910790149937383830547332763671875 (decimal)" -msgstr "" +msgstr "1.1999999999999999555910790149937383830547332763671875 (decimal)" #: ../../faq/design.rst:87 msgid "" "The typical precision of 53 bits provides Python floats with 15--16 decimal " "digits of accuracy." msgstr "" -"53bit の典型的な精度は、Python の float に 10 進数で 15〜16桁の精度を与えま" -"す。" +"典型的な 53bit 精度は、Python の float に 10 進数での 15〜16 桁の正確さを与え" +"ます。" #: ../../faq/design.rst:90 msgid "" "For a fuller explanation, please see the :ref:`floating-point arithmetic " "` chapter in the Python tutorial." msgstr "" +"詳しくは、Python チュートリアルの :ref:`floating-point arithmetic ` の章を参照してください。" #: ../../faq/design.rst:95 msgid "Why are Python strings immutable?" @@ -335,6 +346,8 @@ msgid "" "while chunk := fp.read(200):\n" " print(chunk)" msgstr "" +"while chunk := fp.read(200):\n" +" print(chunk)" #: ../../faq/design.rst:164 msgid "See :pep:`572` for more information." @@ -360,7 +373,7 @@ msgid "" "problem. Compare the easy with which we rewrite a formula like x*(a+b) into " "x*a + x*b to the clumsiness of doing the same thing using a raw OO notation." msgstr "" -"(a) 幾つかの演算では、接頭辞は接尾辞よりも単純に読みやすいからです。接頭辞" +"(a) 幾つかの演算では、接頭辞は接尾辞よりも単純に読みやすいからです。接頭辞" "(そして接中辞!)による演算は数学において長い歴史があり、そこでは課題に対す" "る数学者の思考を視覚的に助けるような記法が好まれます。x*(a+b)ã‚’x*a + x*bに書" "き換える容易さと、それと同じことを純粋なオブジェクト指向の記法で行う煩わしさ" @@ -377,13 +390,14 @@ msgid "" "mapping has a get() or keys() method, or something that isn't a file has a " "write() method." msgstr "" -"(b) len(x)というコードを読んだ時、私はそれが何かの長さを問うているのだなと知" -"ることができます。これは私に2つの事を知らせています。一つは結果が整数であるこ" -"と、そして引数は何らかのコンテナであることです。対して、x.len()を目にした場" -"合、私はその時点でxが何らかのコンテナであり、それが標準のlen()を持っているク" -"ラスを継承しているか、インターフェースを実装していることを知っている必要があ" -"ります。mappingを実装していないクラスがget()ã‚„keys()メソッドを持っていたり、" -"fileでない何かがwrite()メソッドを持っているような混乱は時折見かけます。" +"(b) len(x) というコードを読んだ時、私はそれが何かの長さを問うているのだなと" +"知ることができます。これは私に2つの事を知らせています。一つは結果が整数である" +"こと、そして引数は何らかのコンテナであることです。対して、 x.len() を目にした" +"場合、私はその時点でxが何らかのコンテナであり、それが標準のlen()を持っている" +"クラスを継承しているか、インターフェースを実装していることを知っている必要が" +"あります。 mapping を実装していないクラスが get() ã‚„ keys() メソッドを持って" +"いたり、 file でない何かが write() メソッドを持っているような混乱は時折見かけ" +"ます。" #: ../../faq/design.rst:189 msgid "https://mail.python.org/pipermail/python-3000/2006-November/004643.html" @@ -410,7 +424,7 @@ msgstr "" #: ../../faq/design.rst:201 msgid "\", \".join(['1', '2', '4', '8', '16'])" -msgstr "" +msgstr "\", \".join(['1', '2', '4', '8', '16'])" #: ../../faq/design.rst:203 msgid "which gives the result::" @@ -418,7 +432,7 @@ msgstr "結果はこうなります::" #: ../../faq/design.rst:205 msgid "\"1, 2, 4, 8, 16\"" -msgstr "" +msgstr "\"1, 2, 4, 8, 16\"" #: ../../faq/design.rst:207 msgid "There are two common arguments against this usage." @@ -451,7 +465,7 @@ msgstr "" #: ../../faq/design.rst:220 msgid "\"1, 2, 4, 8, 16\".split(\", \")" -msgstr "" +msgstr "\"1, 2, 4, 8, 16\".split(\", \")" #: ../../faq/design.rst:222 msgid "" @@ -497,6 +511,11 @@ msgid "" " mydict[key] = getvalue(key)\n" " value = mydict[key]" msgstr "" +"try:\n" +" value = mydict[key]\n" +"except KeyError:\n" +" mydict[key] = getvalue(key)\n" +" value = mydict[key]" #: ../../faq/design.rst:246 msgid "" @@ -513,6 +532,10 @@ msgid "" "else:\n" " value = mydict[key] = getvalue(key)" msgstr "" +"if key in mydict:\n" +" value = mydict[key]\n" +"else:\n" +" value = mydict[key] = getvalue(key)" #: ../../faq/design.rst:254 msgid "" @@ -559,6 +582,12 @@ msgid "" "func = functions[value]\n" "func()" msgstr "" +"functions = {'a': function_1,\n" +" 'b': function_2,\n" +" 'c': self.method_1}\n" +"\n" +"func = functions[value]\n" +"func()" #: ../../faq/design.rst:279 msgid "" @@ -579,6 +608,14 @@ msgid "" " method = getattr(self, method_name)\n" " method()" msgstr "" +"class MyVisitor:\n" +" def visit_a(self):\n" +" ...\n" +"\n" +" def dispatch(self, value):\n" +" method_name = 'visit_' + str(value)\n" +" method = getattr(self, method_name)\n" +" method()" #: ../../faq/design.rst:291 msgid "" @@ -672,6 +709,10 @@ msgid "" "an up-and-coming compiler of Python into C++ code, aiming to support the " "full Python language." msgstr "" +"`Cython `_ は、 オプションアノテーションを付けた 修正" +"バージョンの Python から C æ‹¡å¼µ にコンパイルします。 `Nuitka `_ は Python から C++ コードへの有望なコンパイラで、 フルセット" +"の Python 言語サポートを目指しています。" #: ../../faq/design.rst:337 msgid "How does Python manage memory?" @@ -687,12 +728,12 @@ msgid "" "provides functions to perform a garbage collection, obtain debugging " "statistics, and tune the collector's parameters." msgstr "" -"Python のメモリ管理の詳細は実装に依ります。Python の標準の C 実装 :term:" -"`CPython` は参照カウントを使って、アクセスできないオブジェクトを探します。ま" -"た別のメカニズムを使って参照サイクルを集めます。これはサイクル検出アルゴリズ" -"ムを定期的に実行し、アクセスできないサイクルを探し、巻き込まれたオブジェクト" -"を削除します。 :mod:`gc` モジュールの関数で、ガベージコレクションを実行し、デ" -"バッグ統計を取得し、コレクタのパラメタを変更できます。" +"Python のメモリ管理の詳細は実装に依ります。 Python の標準実装である :term:" +"`CPython` は、参照カウントを使ってアクセスできない(訳注:参照されえない)オ" +"ブジェクトを検出し、そして別の仕組みで参照サイクル(循環参照)を集めます。サ" +"イクル検出アルゴリズムを定期的に実行し、アクセスできないサイクルを見つけて一" +"連のオブジェクトを削除します。 :mod:`gc` モジュールは、ガベージコレクションの" +"実行、デバッグ統計の取得、コレクタのパラメータ調整を行う関数を提供します。" #: ../../faq/design.rst:347 msgid "" @@ -702,6 +743,10 @@ msgid "" "problems if your Python code depends on the behavior of the reference " "counting implementation." msgstr "" +"ただし、他の実装( `Jython `_ ã‚„ `PyPy `_ など)では、本格的なガベージコレクタのような別の仕組みを用いているかも" +"しれません。 この違いは微妙な移植の問題を起こす可能性があります。もし あなた" +"の Python コードが参照カウント実装の振る舞いに依存している場合には。" #: ../../faq/design.rst:353 msgid "" @@ -717,6 +762,9 @@ msgid "" " f = open(file)\n" " c = f.read(1)" msgstr "" +"for file in very_long_list_of_files:\n" +" f = open(file)\n" +" c = f.read(1)" #: ../../faq/design.rst:360 msgid "" @@ -746,6 +794,9 @@ msgid "" " with open(file) as f:\n" " c = f.read(1)" msgstr "" +"for file in very_long_list_of_files:\n" +" with open(file) as f:\n" +" c = f.read(1)" #: ../../faq/design.rst:375 msgid "Why doesn't CPython use a more traditional garbage collection scheme?" @@ -982,6 +1033,8 @@ msgid "" "mydict = {[1, 2]: '12'}\n" "print(mydict[[1, 2]])" msgstr "" +"mydict = {[1, 2]: '12'}\n" +"print(mydict[[1, 2]])" #: ../../faq/design.rst:486 msgid "" @@ -1066,6 +1119,22 @@ msgid "" " result = (result % 7777777) + i * 333\n" " return result" msgstr "" +"class ListWrapper:\n" +" def __init__(self, the_list):\n" +" self.the_list = the_list\n" +"\n" +" def __eq__(self, other):\n" +" return self.the_list == other.the_list\n" +"\n" +" def __hash__(self):\n" +" l = self.the_list\n" +" result = 98767 - len(l)*555\n" +" for i, el in enumerate(l):\n" +" try:\n" +" result = result + (hash(el) % 9999999) * 1001 + i\n" +" except Exception:\n" +" result = (result % 7777777) + i * 333\n" +" return result" #: ../../faq/design.rst:530 msgid "" @@ -1137,6 +1206,8 @@ msgid "" "for key in sorted(mydict):\n" " ... # do whatever with mydict[key]..." msgstr "" +"for key in sorted(mydict):\n" +" ... # mydict[key] を使って何でもできる ..." #: ../../faq/design.rst:564 msgid "How do you specify and enforce an interface spec in Python?" @@ -1275,6 +1346,15 @@ msgid "" " pass\n" "..." msgstr "" +"class label(Exception): pass # declare a label\n" +"\n" +"try:\n" +" ...\n" +" if condition: raise label() # goto label\n" +" ...\n" +"except label: # goto 移動先\n" +" pass\n" +"..." #: ../../faq/design.rst:630 msgid "" @@ -1325,7 +1405,7 @@ msgstr "" #: ../../faq/design.rst:651 msgid "f = open(\"/mydir/file.txt\") # works fine!" -msgstr "" +msgstr "f = open(\"/mydir/file.txt\") # 正常に動く!" #: ../../faq/design.rst:653 msgid "" @@ -1340,6 +1420,9 @@ msgid "" "dir = r\"\\this\\is\\my\\dos\\dir\\ \"[:-1]\n" "dir = \"\\\\this\\\\is\\\\my\\\\dos\\\\dir\\\\\"" msgstr "" +"dir = r\"\\this\\is\\my\\dos\\dir\" \"\\\\\"\n" +"dir = r\"\\this\\is\\my\\dos\\dir\\ \"[:-1]\n" +"dir = \"\\\\this\\\\is\\\\my\\\\dos\\\\dir\\\\\"" #: ../../faq/design.rst:661 msgid "Why doesn't Python have a \"with\" statement for attribute assignments?" @@ -1361,6 +1444,9 @@ msgid "" " a = 1 # equivalent to obj.a = 1\n" " total = total + 1 # obj.total = obj.total + 1" msgstr "" +"with obj:\n" +" a = 1 # これに相当: obj.a = 1\n" +" total = total + 1 # obj.total = obj.total + 1" #: ../../faq/design.rst:671 msgid "In Python, such a construct would be ambiguous." @@ -1400,6 +1486,9 @@ msgid "" " with a:\n" " print(x)" msgstr "" +"def foo(a):\n" +" with a:\n" +" print(x)" #: ../../faq/design.rst:690 msgid "" @@ -1431,6 +1520,9 @@ msgid "" "function(args).mydict[index][index].b = 42\n" "function(args).mydict[index][index].c = 63" msgstr "" +"function(args).mydict[index][index].a = 21\n" +"function(args).mydict[index][index].b = 42\n" +"function(args).mydict[index][index].c = 63" #: ../../faq/design.rst:703 msgid "write this::" @@ -1443,6 +1535,10 @@ msgid "" "ref.b = 42\n" "ref.c = 63" msgstr "" +"ref = function(args).mydict[index][index]\n" +"ref.a = 21\n" +"ref.b = 42\n" +"ref.c = 63" #: ../../faq/design.rst:710 msgid "" @@ -1460,7 +1556,7 @@ msgid "" "(see https://mail.python.org/pipermail/python-ideas/2016-May/040070.html)." msgstr "" "似た提案として、「先頭のドット」を使うなどして さらにコード量を減らす構文は、" -"明白さを優先をして却下されました (https://mail.python.org/pipermail/python-" +"明白さを優先して却下されました (https://mail.python.org/pipermail/python-" "ideas/2016-May/040070.html 参照)。" #: ../../faq/design.rst:720 @@ -1497,6 +1593,8 @@ msgid "" "if a == b\n" " print(a)" msgstr "" +"if a == b\n" +" print(a)" #: ../../faq/design.rst:738 msgid "versus ::" @@ -1507,6 +1605,8 @@ msgid "" "if a == b:\n" " print(a)" msgstr "" +"if a == b:\n" +" print(a)" #: ../../faq/design.rst:743 msgid "" @@ -1549,6 +1649,12 @@ msgid "" " \"B\": [6, 7], # last trailing comma is optional but good style\n" "}" msgstr "" +"[1, 2, 3,]\n" +"('a', 'b', 'c',)\n" +"d = {\n" +" \"A\": [1, 5],\n" +" \"B\": [6, 7], # 最後のカンマはオプションだが良いスタイル\n" +"}" #: ../../faq/design.rst:765 msgid "There are several reasons to allow this." @@ -1581,6 +1687,12 @@ msgid "" " \"fum\"\n" "]" msgstr "" +"x = [\n" +" \"fee\",\n" +" \"fie\"\n" +" \"foo\",\n" +" \"fum\"\n" +"]" #: ../../faq/design.rst:782 msgid "" diff --git a/faq/extending.po b/faq/extending.po index 83e180129..b32d708d9 100644 --- a/faq/extending.po +++ b/faq/extending.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/extending.rst:3 diff --git a/faq/general.po b/faq/general.po index b0b75f39c..11c4f0ee4 100644 --- a/faq/general.po +++ b/faq/general.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/general.rst:5 @@ -666,6 +666,10 @@ msgid "" "and supported by most widely used libraries. Python 2.x :pep:`is not " "maintained anymore <373>`." msgstr "" +"最新の安定版は `Python download page `_ で" +"見つけられます。 Python 3.x が推奨されるバージョンで、最も広く利用されている" +"ライブラリでサポートされています。 Python 2.x :pep:`は もはや保守されていませ" +"ã‚“<373>` 。" #: ../../faq/general.rst:317 msgid "How many people are using Python?" @@ -891,6 +895,30 @@ msgid "" ">>> L\n" "[1]" msgstr "" +">>> L = []\n" +">>> dir(L)\n" +"['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',\n" +"'__dir__', '__doc__', '__eq__', '__format__', '__ge__',\n" +"'__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__',\n" +"'__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__',\n" +"'__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',\n" +"'__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__',\n" +"'__sizeof__', '__str__', '__subclasshook__', 'append', 'clear',\n" +"'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove',\n" +"'reverse', 'sort']\n" +">>> [d for d in dir(L) if '__' not in d]\n" +"['append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', " +"'remove', 'reverse', 'sort']\n" +"\n" +">>> help(L.append)\n" +"Help on built-in function append:\n" +"\n" +"append(...)\n" +" L.append(object) -> None -- append object to end\n" +"\n" +">>> L.append(1)\n" +">>> L\n" +"[1]" #: ../../faq/general.rst:435 msgid "" diff --git a/faq/gui.po b/faq/gui.po index 059677937..02ec47b95 100644 --- a/faq/gui.po +++ b/faq/gui.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/gui.rst:5 @@ -105,6 +105,8 @@ msgid "" "Various third-party freeze libraries such as py2exe and cx_Freeze have " "handling for Tkinter applications built-in." msgstr "" +"py2exe ã‚„ cx_Freeze など いくつかのサードパーティ製凍結ライブラリは、 " +"Tkinter アプリケーション組み込みの機能を持ちます。" #: ../../faq/gui.rst:54 msgid "Can I have Tk events handled while waiting for I/O?" diff --git a/faq/index.po b/faq/index.po index 80f850128..c1f9e672e 100644 --- a/faq/index.po +++ b/faq/index.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/index.rst:5 diff --git a/faq/installed.po b/faq/installed.po index 09996c480..af32d28f9 100644 --- a/faq/installed.po +++ b/faq/installed.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 菊池 健志, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/installed.rst:3 diff --git a/faq/library.po b/faq/library.po index e5129624d..0e26f26ff 100644 --- a/faq/library.po +++ b/faq/library.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/library.rst:5 @@ -111,6 +111,8 @@ msgid "" "import sys\n" "print(sys.builtin_module_names)" msgstr "" +"import sys\n" +"print(sys.builtin_module_names)" #: ../../faq/library.rst:47 msgid "How do I make a Python script executable on Unix?" @@ -141,7 +143,7 @@ msgstr "後者は、いくつかの方法でできます。最も直接的な方 #: ../../faq/library.rst:59 msgid "#!/usr/local/bin/python" -msgstr "" +msgstr "#!/usr/local/bin/python" #: ../../faq/library.rst:61 msgid "" @@ -165,7 +167,7 @@ msgstr "" #: ../../faq/library.rst:69 msgid "#!/usr/bin/env python" -msgstr "" +msgstr "#!/usr/bin/env python" #: ../../faq/library.rst:71 msgid "" @@ -194,6 +196,10 @@ msgid "" "exec python $0 ${1+\"$@\"}\n" "\"\"\"" msgstr "" +"#! /bin/sh\n" +"\"\"\":\"\n" +"exec python $0 ${1+\"$@\"}\n" +"\"\"\"" #: ../../faq/library.rst:86 msgid "" @@ -205,7 +211,7 @@ msgstr "" #: ../../faq/library.rst:89 msgid "__doc__ = \"\"\"...Whatever...\"\"\"" -msgstr "" +msgstr "__doc__ = \"\"\"...Whatever...\"\"\"" #: ../../faq/library.rst:94 msgid "Is there a curses/termcap package for Python?" @@ -265,7 +271,7 @@ msgstr "" #: ../../faq/library.rst:123 msgid "handler(signum, frame)" -msgstr "" +msgstr "handler(signum, frame)" #: ../../faq/library.rst:125 msgid "so it should be declared with two parameters::" @@ -276,6 +282,8 @@ msgid "" "def handler(signum, frame):\n" " ..." msgstr "" +"def handler(signum, frame):\n" +" ..." #: ../../faq/library.rst:132 msgid "Common tasks" @@ -329,6 +337,8 @@ msgid "" "if __name__ == \"__main__\":\n" " main_logic()" msgstr "" +"if __name__ == \"__main__\":\n" +" main_logic()" #: ../../faq/library.rst:157 msgid "at the bottom of the main module of your program." @@ -368,6 +378,8 @@ msgid "" "if __name__ == \"__main__\":\n" " self_test()" msgstr "" +"if __name__ == \"__main__\":\n" +" self_test()" #: ../../faq/library.rst:173 msgid "" @@ -460,6 +472,17 @@ msgid "" "\n" "time.sleep(10) # <---------------------------!" msgstr "" +"import threading, time\n" +"\n" +"def thread_task(name, n):\n" +" for i in range(n):\n" +" print(name, i)\n" +"\n" +"for i in range(10):\n" +" T = threading.Thread(target=thread_task, args=(str(i), i))\n" +" T.start()\n" +"\n" +"time.sleep(10) # <---------------------------!" #: ../../faq/library.rst:265 msgid "" @@ -488,6 +511,16 @@ msgid "" "\n" "time.sleep(10)" msgstr "" +"def thread_task(name, n):\n" +" time.sleep(0.001) # <--------------------!\n" +" for i in range(n):\n" +" print(name, i)\n" +"\n" +"for i in range(10):\n" +" T = threading.Thread(target=thread_task, args=(str(i), i))\n" +" T.start()\n" +"\n" +"time.sleep(10)" #: ../../faq/library.rst:282 msgid "" @@ -573,6 +606,41 @@ msgid "" "print('Main thread sleeping')\n" "time.sleep(5)" msgstr "" +"import threading, queue, time\n" +"\n" +"# ワーカースレッドはキューからジョブを取り出す。キューが空になれば、\n" +"# それ以上の作業はないとして終了 (exit) する。\n" +"# (現実的には ワーカーは終了する (terminated) まで走り続ける)\n" +"def worker():\n" +" print('Running worker')\n" +" time.sleep(0.1)\n" +" while True:\n" +" try:\n" +" arg = q.get(block=False)\n" +" except queue.Empty:\n" +" print('Worker', threading.current_thread(), end=' ')\n" +" print('queue empty')\n" +" break\n" +" else:\n" +" print('Worker', threading.current_thread(), end=' ')\n" +" print('running with argument', arg)\n" +" time.sleep(0.5)\n" +"\n" +"# キュー作成\n" +"q = queue.Queue()\n" +"\n" +"# 5つのワーカープールをスタート\n" +"for i in range(5):\n" +" t = threading.Thread(target=worker, name='worker %i' % (i+1))\n" +" t.start()\n" +"\n" +"# キューへの作業追加を開始\n" +"for i in range(50):\n" +" q.put(i)\n" +"\n" +"# スレッドの作業時間を確保\n" +"print('Main thread sleeping')\n" +"time.sleep(5)" #: ../../faq/library.rst:340 msgid "When run, this will produce the following output:" @@ -594,6 +662,19 @@ msgid "" "Worker running with argument 5\n" "..." msgstr "" +"Running worker\n" +"Running worker\n" +"Running worker\n" +"Running worker\n" +"Running worker\n" +"Main thread sleeping\n" +"Worker running with argument 0\n" +"Worker running with argument 1\n" +"Worker running with argument 2\n" +"Worker running with argument 3\n" +"Worker running with argument 4\n" +"Worker running with argument 5\n" +"..." #: ../../faq/library.rst:358 msgid "" @@ -656,6 +737,17 @@ msgid "" "D1.update(D2)\n" "D.keys()" msgstr "" +"L.append(x)\n" +"L1.extend(L2)\n" +"x = L[i]\n" +"x = L.pop()\n" +"L1[i:j] = L2\n" +"L.sort()\n" +"x = y\n" +"x.field = y\n" +"D[x] = y\n" +"D1.update(D2)\n" +"D.keys()" #: ../../faq/library.rst:392 msgid "These aren't::" @@ -668,6 +760,10 @@ msgid "" "L[i] = L[j]\n" "D[x] = D[x] + 1" msgstr "" +"i = i+1\n" +"L.append(L[-1])\n" +"L[i] = L[j]\n" +"D[x] = D[x] + 1" #: ../../faq/library.rst:399 msgid "" @@ -711,6 +807,13 @@ msgid "" "containing this work, although it may not be completely functional in this " "release." msgstr "" +":pep:`703` の承認により、Python の CPython 実装から GIL を削除する作業が現在" +"進められています。はじめに、インタープリタをビルドする際にオプションのコンパ" +"イラフラグとして実装され、そのため GIL あり・なしの別々のビルドが利用可能にな" +"ります。長期的には、GIL を削除することのパフォーマンスへの影響が十分に理解さ" +"れた時点で、1つのビルドに落ち着くことが望まれています。Python 3.13 がこの作業" +"を含む最初のリリースになる可能性がありますが、このリリースで完全に機能すると" +"は限りません。" #: ../../faq/library.rst:422 msgid "" @@ -726,6 +829,16 @@ msgid "" "compensate for the removal of the GIL. The Python 3.9 fork is the first " "attempt at removing the GIL with an acceptable performance impact." msgstr "" +"GIL 削除に向けた現在の取り組みは `fork of Python 3.9 with the GIL removed " +"`_ by Sam Gross をベースとしています。そ" +"れ以前 Python 1.5 の時代には、 Greg Stein が実際に、 GIL を取り除き よりきめ" +"細かいロッキングに置き換える包括的なパッチセット (\"free threading\" パッチ) " +"を実装しました。 Adam Olsen は `python-safethread `_ プロジェクトで同様の実験を行いました。 残念な" +"がら、これら初期の実験はどちらも シングルスレッドのパフォーマンスの極端な低" +"下 (少なくとも 30% の遅れ) を示しましたが、それは GIL の削除を補うために必要" +"なきめ細かいロッキングの量のためでした。 Python 3.9 fork は、許容可能なパ" +"フォーマンス影響にて GIL を取り除こうとする最初の試みです。" #: ../../faq/library.rst:437 msgid "" @@ -737,6 +850,13 @@ msgid "" "doing so; the :mod:`multiprocessing` module provides a lower-level API in " "case you want more control over dispatching of tasks." msgstr "" +"現行の Python リリースに GIL が搭載されていることは、マルチ CPU マシン上で " +"Python を使いこなせないことを意味しません! 作業を複数の *スレッド* ではなく" +"複数の *プロセス* に分けることを考えればいいのです。 その簡単な方法は新し" +"い :mod:`concurrent.futures` モジュールの :class:`~concurrent.futures." +"ProcessPoolExecutor` クラスが提供しますが、タスクのディスパッチをより深く制御" +"したい場合には :mod:`multiprocessing` モジュールがより低水準な API を提供して" +"います。" #: ../../faq/library.rst:446 msgid "" @@ -761,6 +881,13 @@ msgid "" "since these must be written with multiple interpreters in mind in order to " "be usable, so many older extension modules will not be usable." msgstr "" +"GIL の影響を減らす別のアプローチとして、 GIL を真にグローバルなロックではな" +"く、インタープリタごとのロックにするというものがあります。これは :ref:" +"`Python 3.12 で初めて実装され ` C API で利用できます。 " +"Python のインターフェースは Python 3.13 で利用可能となる予定です。現時点での" +"主な制約はサードパーティー製の拡張モジュールで、使えるようにするには複数のイ" +"ンタープリタを想定して書く必要があるため、多くの古い拡張モジュールは使えなく" +"なります。" #: ../../faq/library.rst:462 msgid "Input and Output" @@ -875,6 +1002,11 @@ msgid "" " s = f.read(8)\n" " x, y, z = struct.unpack(\">hhl\", s)" msgstr "" +"import struct\n" +"\n" +"with open(filename, \"rb\") as f:\n" +" s = f.read(8)\n" +" x, y, z = struct.unpack(\">hhl\", s)" #: ../../faq/library.rst:518 msgid "" @@ -1004,6 +1136,9 @@ msgid "" "os.close(stdout.fileno())\n" "os.close(stderr.fileno())" msgstr "" +"os.close(stdin.fileno())\n" +"os.close(stdout.fileno())\n" +"os.close(stderr.fileno())" #: ../../faq/library.rst:581 msgid "Or you can use the numeric constants 0, 1 and 2, respectively." @@ -1082,6 +1217,22 @@ msgid "" "server.sendmail(fromaddr, toaddrs, msg)\n" "server.quit()" msgstr "" +"import sys, smtplib\n" +"\n" +"fromaddr = input(\"From: \")\n" +"toaddrs = input(\"To: \").split(',')\n" +"print(\"Enter message, end with ^D:\")\n" +"msg = ''\n" +"while True:\n" +" line = sys.stdin.readline()\n" +" if not line:\n" +" break\n" +" msg += line\n" +"\n" +"# The actual mail send\n" +"server = smtplib.SMTP('localhost')\n" +"server.sendmail(fromaddr, toaddrs, msg)\n" +"server.quit()" #: ../../faq/library.rst:634 msgid "" @@ -1110,6 +1261,18 @@ msgid "" "if sts != 0:\n" " print(\"Sendmail exit status\", sts)" msgstr "" +"import os\n" +"\n" +"SENDMAIL = \"/usr/sbin/sendmail\" # sendmail の場所\n" +"p = os.popen(\"%s -t -i\" % SENDMAIL, \"w\")\n" +"p.write(\"To: receiver@example.com\\n\")\n" +"p.write(\"Subject: test\\n\")\n" +"p.write(\"\\n\") # headers - body を分ける空行\n" +"p.write(\"Some text\\n\")\n" +"p.write(\"some more text\\n\")\n" +"sts = p.close()\n" +"if sts != 0:\n" +" print(\"Sendmail exit status\", sts)" #: ../../faq/library.rst:654 msgid "How do I avoid blocking in the connect() method of a socket?" @@ -1235,10 +1398,12 @@ msgid "" "import random\n" "random.random()" msgstr "" +"import random\n" +"random.random()" #: ../../faq/library.rst:721 msgid "This returns a random floating-point number in the range [0, 1)." -msgstr "" +msgstr "これは、 [0, 1) の範囲のランダムな浮動小数点数を返します。" #: ../../faq/library.rst:723 msgid "" @@ -1251,7 +1416,7 @@ msgstr "``randrange(a, b)`` は区間 [a, b) から整数を選びます。" #: ../../faq/library.rst:726 msgid "``uniform(a, b)`` chooses a floating-point number in the range [a, b)." -msgstr "" +msgstr "``uniform(a, b)`` は [a, b) の範囲の浮動小数点数を選びます。" #: ../../faq/library.rst:727 msgid "" diff --git a/faq/programming.po b/faq/programming.po index 7d2e9bb7b..5b7e6f3c0 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/programming.rst:5 @@ -388,6 +388,9 @@ msgid "" ">>> for x in range(5):\n" "... squares.append(lambda: x**2)" msgstr "" +">>> squares = []\n" +">>> for x in range(5):\n" +"... squares.append(lambda: x**2)" #: ../../faq/programming.rst:217 msgid "" @@ -408,6 +411,10 @@ msgid "" ">>> squares[4]()\n" "16" msgstr "" +">>> squares[2]()\n" +"16\n" +">>> squares[4]()\n" +"16" #: ../../faq/programming.rst:227 msgid "" @@ -429,6 +436,9 @@ msgid "" ">>> squares[2]()\n" "64" msgstr "" +">>> x = 8\n" +">>> squares[2]()\n" +"64" #: ../../faq/programming.rst:237 msgid "" @@ -444,6 +454,9 @@ msgid "" ">>> for x in range(5):\n" "... squares.append(lambda n=x: n**2)" msgstr "" +">>> squares = []\n" +">>> for x in range(5):\n" +"... squares.append(lambda n=x: n**2)" #: ../../faq/programming.rst:244 msgid "" @@ -466,6 +479,10 @@ msgid "" ">>> squares[4]()\n" "16" msgstr "" +">>> squares[2]()\n" +"4\n" +">>> squares[4]()\n" +"16" #: ../../faq/programming.rst:255 msgid "" @@ -501,7 +518,7 @@ msgstr "config.py::" #: ../../faq/programming.rst:270 msgid "x = 0 # Default value of the 'x' configuration setting" -msgstr "" +msgstr "x = 0 # 'x' 設定のデフォルト値" #: ../../faq/programming.rst:272 msgid "mod.py::" @@ -512,6 +529,8 @@ msgid "" "import config\n" "config.x = 1" msgstr "" +"import config\n" +"config.x = 1" #: ../../faq/programming.rst:277 msgid "main.py::" @@ -523,6 +542,9 @@ msgid "" "import mod\n" "print(config.x)" msgstr "" +"import config\n" +"import mod\n" +"print(config.x)" #: ../../faq/programming.rst:283 msgid "" @@ -672,6 +694,10 @@ msgid "" " mydict[key] = value\n" " return mydict" msgstr "" +"def foo(mydict={}): # 危険:すべての呼び出しで単一辞書への参照が共有される\n" +" ... compute something ...\n" +" mydict[key] = value\n" +" return mydict" #: ../../faq/programming.rst:347 msgid "" @@ -723,6 +749,8 @@ msgid "" "def foo(mydict={}):\n" " ..." msgstr "" +"def foo(mydict={}):\n" +" ..." #: ../../faq/programming.rst:368 msgid "but::" @@ -734,6 +762,9 @@ msgid "" " if mydict is None:\n" " mydict = {} # create a new dict for local namespace" msgstr "" +"def foo(mydict=None):\n" +" if mydict is None:\n" +" mydict = {} # ローカル名前空間での新辞書作成" #: ../../faq/programming.rst:374 msgid "" @@ -744,9 +775,9 @@ msgid "" "implemented like this::" msgstr "" "この性質が便利なこともあります。時間のかかる計算を行う関数があるときに使われ" -"る一般的な技法は、関数が呼び出されるごとにパラメタと結果の値をキャッシュし、" -"再び同じ値が要求されたらキャッシュされた値を返すというものです。これは " -"\"memoizing\" と呼ばれ、このように実装されます::" +"る一般的な技法は、関数が呼び出されるごとにパラメータと結果の値をキャッシュ" +"し、再び同じ値が要求されたらキャッシュされた値を返すというものです。これはメ" +"モ化( \"memoizing\" )と呼ばれ、このように実装されます::" #: ../../faq/programming.rst:379 msgid "" @@ -761,6 +792,16 @@ msgid "" " _cache[(arg1, arg2)] = result # Store result in the cache\n" " return result" msgstr "" +"# 呼び出し元は2つのパラメータを指定でき、キーワードにより _cache をオプショ" +"ンとして渡せる\n" +"def expensive(arg1, arg2, *, _cache={}):\n" +" if (arg1, arg2) in _cache:\n" +" return _cache[(arg1, arg2)]\n" +"\n" +" # 値の算出\n" +" result = ... 高コストな計算 ...\n" +" _cache[(arg1, arg2)] = result # 結果をキャッシュに保持\n" +" return result" #: ../../faq/programming.rst:389 msgid "" @@ -797,6 +838,11 @@ msgid "" " ...\n" " g(x, *args, **kwargs)" msgstr "" +"def f(x, *args, **kwargs):\n" +" ...\n" +" kwargs['width'] = '14.3c'\n" +" ...\n" +" g(x, *args, **kwargs)" #: ../../faq/programming.rst:415 msgid "What is the difference between arguments and parameters?" @@ -820,6 +866,8 @@ msgid "" "def func(foo, bar=None, **kwargs):\n" " pass" msgstr "" +"def func(foo, bar=None, **kwargs):\n" +" pass" #: ../../faq/programming.rst:426 msgid "" @@ -831,7 +879,7 @@ msgstr "" #: ../../faq/programming.rst:429 msgid "func(42, bar=314, extra=somevar)" -msgstr "" +msgstr "func(42, bar=314, extra=somevar)" #: ../../faq/programming.rst:431 msgid "the values ``42``, ``314``, and ``somevar`` are arguments." @@ -855,6 +903,13 @@ msgid "" ">>> x\n" "[10]" msgstr "" +">>> x = []\n" +">>> y = x\n" +">>> y.append(10)\n" +">>> y\n" +"[10]\n" +">>> x\n" +"[10]" #: ../../faq/programming.rst:447 msgid "" @@ -909,6 +964,13 @@ msgid "" ">>> y\n" "5" msgstr "" +">>> x = 5 # int はイミュータブル(不変)\n" +">>> y = x\n" +">>> x = x + 1 # 5 は変更不可。 ここでは新しいオブジェクトを作っている\n" +">>> x\n" +"6\n" +">>> y\n" +"5" #: ../../faq/programming.rst:471 msgid "" @@ -1028,6 +1090,14 @@ msgid "" ">>> func1(x, y)\n" "('new-value', 100)" msgstr "" +">>> def func1(a, b):\n" +"... a = 'new-value' # a と b はローカル名で\n" +"... b = b + 1 # 新しいオブジェクトが代入され\n" +"... return a, b # 新しい値一式を返す\n" +"...\n" +">>> x, y = 'old-value', 99\n" +">>> func1(x, y)\n" +"('new-value', 100)" #: ../../faq/programming.rst:528 msgid "This is almost always the clearest solution." @@ -1055,10 +1125,18 @@ msgid "" ">>> args\n" "['new-value', 100]" msgstr "" +">>> def func2(a):\n" +"... a[0] = 'new-value' # 'a' は mutable list への参照\n" +"... a[1] = a[1] + 1 # 共有されたオブジェクトを変える\n" +"...\n" +">>> args = ['old-value', 99]\n" +">>> func2(args)\n" +">>> args\n" +"['new-value', 100]" #: ../../faq/programming.rst:543 msgid "By passing in a dictionary that gets mutated::" -msgstr "変更される辞書に渡すことによって::" +msgstr "変更を受ける辞書を渡すことによって::" #: ../../faq/programming.rst:545 msgid "" @@ -1071,6 +1149,14 @@ msgid "" ">>> args\n" "{'a': 'new-value', 'b': 100}" msgstr "" +">>> def func3(args):\n" +"... args['a'] = 'new-value' # args は mutable dictionary\n" +"... args['b'] = args['b'] + 1 # インプレースで変更\n" +"...\n" +">>> args = {'a': 'old-value', 'b': 99}\n" +">>> func3(args)\n" +">>> args\n" +"{'a': 'new-value', 'b': 100}" #: ../../faq/programming.rst:554 msgid "Or bundle up values in a class instance::" @@ -1092,6 +1178,19 @@ msgid "" ">>> vars(args)\n" "{'a': 'new-value', 'b': 100}" msgstr "" +">>> class Namespace:\n" +"... def __init__(self, /, **args):\n" +"... for key, value in args.items():\n" +"... setattr(self, key, value)\n" +"...\n" +">>> def func4(args):\n" +"... args.a = 'new-value' # args は mutable Namespace\n" +"... args.b = args.b + 1 # オブジェクトをインプレースで変更\n" +"...\n" +">>> args = Namespace(a='old-value', b=99)\n" +">>> func4(args)\n" +">>> vars(args)\n" +"{'a': 'new-value', 'b': 100}" #: ../../faq/programming.rst:571 msgid "There's almost never a good reason to get this complicated." @@ -1123,6 +1222,10 @@ msgid "" " return a * x + b\n" " return result" msgstr "" +"def linear(a, b):\n" +" def result(x):\n" +" return a * x + b\n" +" return result" #: ../../faq/programming.rst:588 msgid "Or using a callable object::" @@ -1138,6 +1241,13 @@ msgid "" " def __call__(self, x):\n" " return self.a * x + self.b" msgstr "" +"class linear:\n" +"\n" +" def __init__(self, a, b):\n" +" self.a, self.b = a, b\n" +"\n" +" def __call__(self, x):\n" +" return self.a * x + self.b" #: ../../faq/programming.rst:598 msgid "In both cases, ::" @@ -1145,7 +1255,7 @@ msgstr "どちらの場合でも、 ::" #: ../../faq/programming.rst:600 msgid "taxes = linear(0.3, 2)" -msgstr "" +msgstr "taxes = linear(0.3, 2)" #: ../../faq/programming.rst:602 msgid "gives a callable object where ``taxes(10e6) == 0.3 * 10e6 + 2``." @@ -1160,8 +1270,8 @@ msgid "" "callables can share their signature via inheritance::" msgstr "" "呼び出し可能オブジェクトを使う方法は、少し遅くなり、わずかにコードが長くなる" -"という短所があります。ですが、継承を使って呼び出し可能オブジェクト同士で記号" -"を共有することもできます::" +"という短所があります。ですが、継承を使って呼び出し可能オブジェクト同士でシグ" +"ネチャを共有することもできます::" #: ../../faq/programming.rst:608 msgid "" @@ -1170,10 +1280,14 @@ msgid "" " def __call__(self, x):\n" " return self.a * (x ** self.b)" msgstr "" +"class exponential(linear):\n" +" # __init__ 継承\n" +" def __call__(self, x):\n" +" return self.a * (x ** self.b)" #: ../../faq/programming.rst:613 msgid "Object can encapsulate state for several methods::" -msgstr "オブジェクトはいくつかのメソッドに状態をカプセル化できます::" +msgstr "オブジェクトは複数メソッド向けの状態をカプセル化できます::" #: ../../faq/programming.rst:615 msgid "" @@ -1193,6 +1307,21 @@ msgid "" "count = counter()\n" "inc, dec, reset = count.up, count.down, count.set" msgstr "" +"class counter:\n" +"\n" +" value = 0\n" +"\n" +" def set(self, x):\n" +" self.value = x\n" +"\n" +" def up(self):\n" +" self.value = self.value + 1\n" +"\n" +" def down(self):\n" +" self.value = self.value - 1\n" +"\n" +"count = counter()\n" +"inc, dec, reset = count.up, count.down, count.set" #: ../../faq/programming.rst:631 msgid "" @@ -1224,7 +1353,7 @@ msgstr "" #: ../../faq/programming.rst:644 msgid "newdict = olddict.copy()" -msgstr "" +msgstr "newdict = olddict.copy()" #: ../../faq/programming.rst:646 msgid "Sequences can be copied by slicing::" @@ -1232,7 +1361,7 @@ msgstr "シーケンスはスライシングでコピーできます::" #: ../../faq/programming.rst:648 msgid "new_l = l[:]" -msgstr "" +msgstr "new_l = l[:]" #: ../../faq/programming.rst:652 msgid "How can I find the methods or attributes of an object?" @@ -1250,7 +1379,7 @@ msgstr "" #: ../../faq/programming.rst:660 msgid "How can my code discover the name of an object?" -msgstr "コードはどのようにオブジェクトの名前を見つけるのですか?" +msgstr "どうすればコードにてオブジェクトの名前を得ることができますか?" #: ../../faq/programming.rst:662 msgid "" @@ -1259,9 +1388,9 @@ msgid "" "``def`` and ``class`` statements, but in that case the value is a callable. " "Consider the following code::" msgstr "" -"概して、オブジェクトは本当は名前を持たないので、見つけることはできません。本" -"質的には、代入とはいつも値に名前を束縛することです。``def`` と ``class`` 文も" -"同じですが、この場合は値はコーラブルです。以下のコードを考えてみましょう::" +"一般的に言えば、できません。なぜならオブジェクトは実は名前を持ちません。本質" +"的には、いつでも代入とは値に名前を束縛することです。``def`` と ``class`` 文も" +"同じですが、この場合の値はコーラブルです。以下のコードを考えてみましょう::" #: ../../faq/programming.rst:667 msgid "" @@ -1276,6 +1405,16 @@ msgid "" ">>> print(a)\n" "<__main__.A object at 0x16D07CC>" msgstr "" +">>> class A:\n" +"... pass\n" +"...\n" +">>> B = A\n" +">>> a = B()\n" +">>> b = a\n" +">>> print(b)\n" +"<__main__.A object at 0x16D07CC>\n" +">>> print(a)\n" +"<__main__.A object at 0x16D07CC>" #: ../../faq/programming.rst:678 msgid "" @@ -1298,8 +1437,9 @@ msgid "" "approach might be beneficial." msgstr "" "概して、コードにとってある値の「名前を知っている」事は重要ではありません。あ" -"なたがわざと内省的なコードを書いているのでない限り、方針を変えた方がいいかも" -"しれないということになるでしょう。" +"なたがあえて introspective (訳注:実行時のオブジェクト情報を調査するような)" +"プログラムを書いているのでない限り、方針を変えた方がいいかもしれないというこ" +"とになるでしょう。" #: ../../faq/programming.rst:688 msgid "" @@ -1343,6 +1483,8 @@ msgid "" ">>> \"a\" in \"b\", \"a\"\n" "(False, 'a')" msgstr "" +">>> \"a\" in \"b\", \"a\"\n" +"(False, 'a')" #: ../../faq/programming.rst:708 msgid "" @@ -1354,7 +1496,7 @@ msgstr "" #: ../../faq/programming.rst:711 msgid "(\"a\" in \"b\"), \"a\"" -msgstr "" +msgstr "(\"a\" in \"b\"), \"a\"" #: ../../faq/programming.rst:713 msgid "not::" @@ -1362,7 +1504,7 @@ msgstr "こうではありません::" #: ../../faq/programming.rst:715 msgid "\"a\" in (\"b\", \"a\")" -msgstr "" +msgstr "\"a\" in (\"b\", \"a\")" #: ../../faq/programming.rst:717 msgid "" @@ -1388,6 +1530,10 @@ msgid "" "x, y = 50, 25\n" "small = x if x < y else y" msgstr "" +"[on_true] if [expression] else [on_false]\n" +"\n" +"x, y = 50, 25\n" +"small = x if x < y else y" #: ../../faq/programming.rst:731 msgid "" @@ -1399,7 +1545,7 @@ msgstr "" #: ../../faq/programming.rst:734 msgid "[expression] and [on_true] or [on_false]" -msgstr "" +msgstr "[expression] and [on_true] or [on_false]" #: ../../faq/programming.rst:736 msgid "" @@ -1452,6 +1598,30 @@ msgid "" "# | |_________________ range on y axis\n" "# |____________________________ range on x axis" msgstr "" +"from functools import reduce\n" +"\n" +"# ç´ æ•° < 1000\n" +"print(list(filter(None,map(lambda y:y*reduce(lambda x,y:x*y!=0,\n" +"map(lambda x,y=y:y%x,range(2,int(pow(y,0.5)+1))),1),range(2,1000)))))\n" +"\n" +"# 先頭 10 フィボナッチ数列\n" +"print(list(map(lambda x,f=lambda x,f:(f(x-1,f)+f(x-2,f)) if x>1 else 1:\n" +"f(x,f), range(10))))\n" +"\n" +"# マンデルブロ集合\n" +"print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+'\\n'+y,map(lambda " +"y,\n" +"Iu=Iu,Io=Io,Ru=Ru,Ro=Ro,Sy=Sy,L=lambda yc,Iu=Iu,Io=Io,Ru=Ru,Ro=Ro,i=IM,\n" +"Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,\n" +"i=i,Sx=Sx,F=lambda xc,yc,x,y,k,f=lambda xc,yc,x,y,k,f:(k<=0)or (x*x+y*y\n" +">=4.0) or 1+f(xc,yc,x*x-y*y+xc,2.0*x*y+yc,k-1,f):f(xc,yc,x,y,k,f):chr(\n" +"64+F(Ru+x*(Ro-Ru)/Sx,yc,0,0,i)),range(Sx))):L(Iu+y*(Io-Iu)/Sy),range(Sy\n" +"))))(-2.1, 0.7, -1.2, 1.2, 30, 80, 24))\n" +"# \\___ ___/ \\___ ___/ | | |__ 画面行数\n" +"# V V | |______ 画面列数\n" +"# | | |__________ 最大 \"iterations\"\n" +"# | |_________________ y 軸範囲\n" +"# |____________________________ x 軸範囲" #: ../../faq/programming.rst:771 msgid "Don't try this at home, kids!" @@ -1459,7 +1629,7 @@ msgstr "よい子はまねしないでね!" #: ../../faq/programming.rst:777 msgid "What does the slash(/) in the parameter list of a function mean?" -msgstr "関数の引数リストにあるスラッシュ (/) は何を意味しますか?" +msgstr "関数の仮引数リストにあるスラッシュ (/) は何を意味しますか?" #: ../../faq/programming.rst:779 msgid "" @@ -1470,9 +1640,9 @@ msgid "" "position. For example, :func:`divmod` is a function that accepts positional-" "only parameters. Its documentation looks like this::" msgstr "" -"パラメータ関数の仮引数にあるスラッシュは、それより前にある仮引数は位置専用引" -"数であることを示します。\n" -"位置専用引数は、外で使える名前を持たない仮引数です。\n" +"関数の仮引数にあるスラッシュは、それより前にある仮引数は位置専用引数であるこ" +"とを示します。\n" +"位置専用引数は、外から使える名前を持たない仮引数です。\n" "位置専用引数を受け付ける関数の呼び出しにおいて、実引数はその位置だけに基づい" "て仮引数に対応付けられます。\n" "例えば、 :func:`divmod` は位置専用引数を受け付けます。\n" @@ -1486,6 +1656,11 @@ msgid "" "divmod(x, y, /)\n" " Return the tuple (x//y, x%y). Invariant: div*y + mod == x." msgstr "" +">>> help(divmod)\n" +"Help on built-in function divmod in module builtins:\n" +"\n" +"divmod(x, y, /)\n" +" Return the tuple (x//y, x%y). Invariant: div*y + mod == x." #: ../../faq/programming.rst:792 msgid "" @@ -1505,6 +1680,10 @@ msgid "" " File \"\", line 1, in \n" "TypeError: divmod() takes no keyword arguments" msgstr "" +">>> divmod(x=3, y=4)\n" +"Traceback (most recent call last):\n" +" File \"\", line 1, in \n" +"TypeError: divmod() takes no keyword arguments" #: ../../faq/programming.rst:803 msgid "Numbers and strings" @@ -1530,6 +1709,9 @@ msgid "" ">>> a\n" "8" msgstr "" +">>> a = 0o10\n" +">>> a\n" +"8" #: ../../faq/programming.rst:816 msgid "" @@ -1550,6 +1732,12 @@ msgid "" ">>> b\n" "178" msgstr "" +">>> a = 0xa5\n" +">>> a\n" +"165\n" +">>> b = 0XB2\n" +">>> b\n" +"178" #: ../../faq/programming.rst:829 msgid "Why does -22 // 10 return -3?" @@ -1565,7 +1753,7 @@ msgstr "" #: ../../faq/programming.rst:834 msgid "i == (i // j) * j + (i % j)" -msgstr "" +msgstr "i == (i // j) * j + (i % j)" #: ../../faq/programming.rst:836 msgid "" @@ -1610,6 +1798,11 @@ msgid "" " ^\n" "SyntaxError: invalid decimal literal" msgstr "" +">>> 1.__class__\n" +" File \"\", line 1\n" +" 1.__class__\n" +" ^\n" +"SyntaxError: invalid decimal literal" #: ../../faq/programming.rst:859 msgid "" @@ -1732,6 +1925,27 @@ msgid "" ">>> a.tounicode()\n" "'yello, world'" msgstr "" +">>> import io\n" +">>> s = \"Hello, world\"\n" +">>> sio = io.StringIO(s)\n" +">>> sio.getvalue()\n" +"'Hello, world'\n" +">>> sio.seek(7)\n" +"7\n" +">>> sio.write(\"there!\")\n" +"6\n" +">>> sio.getvalue()\n" +"'Hello, there!'\n" +"\n" +">>> import array\n" +">>> a = array.array('w', s)\n" +">>> print(a)\n" +"array('w', 'Hello, world')\n" +">>> a[0] = 'y'\n" +">>> print(a)\n" +"array('w', 'yello, world')\n" +">>> a.tounicode()\n" +"'yello, world'" #: ../../faq/programming.rst:938 msgid "How do I use strings to call functions/methods?" @@ -1764,6 +1978,15 @@ msgid "" "\n" "dispatch[get_input()]() # Note trailing parens to call function" msgstr "" +"def a():\n" +" pass\n" +"\n" +"def b():\n" +" pass\n" +"\n" +"dispatch = {'go': a, 'stop': b} # 注意:関数にはカッコなし\n" +"\n" +"dispatch[get_input()]() # 注意:関数を呼び出すには末尾カッコ" #: ../../faq/programming.rst:957 msgid "Use the built-in function :func:`getattr`::" @@ -1774,6 +1997,8 @@ msgid "" "import foo\n" "getattr(foo, 'bar')()" msgstr "" +"import foo\n" +"getattr(foo, 'bar')()" #: ../../faq/programming.rst:962 msgid "" @@ -1799,6 +2024,15 @@ msgid "" "f = getattr(foo_instance, 'do_' + opname)\n" "f()" msgstr "" +"class Foo:\n" +" def do_foo(self):\n" +" ...\n" +"\n" +" def do_bar(self):\n" +" ...\n" +"\n" +"f = getattr(foo_instance, 'do_' + opname)\n" +"f()" #: ../../faq/programming.rst:978 msgid "Use :func:`locals` to resolve the function name::" @@ -1814,12 +2048,21 @@ msgid "" "f = locals()[fname]\n" "f()" msgstr "" +"def myFunc():\n" +" print(\"hello\")\n" +"\n" +"fname = \"myFunc\"\n" +"\n" +"f = locals()[fname]\n" +"f()" #: ../../faq/programming.rst:990 msgid "" "Is there an equivalent to Perl's ``chomp()`` for removing trailing newlines " "from strings?" msgstr "" +"文字列から後端の改行を取り除く Perl の ``chomp()`` に相当するものはあります" +"か?" #: ../../faq/programming.rst:992 msgid "" @@ -1841,6 +2084,11 @@ msgid "" ">>> lines.rstrip(\"\\n\\r\")\n" "'line 1 '" msgstr "" +">>> lines = (\"line 1 \\r\\n\"\n" +"... \"\\r\\n\"\n" +"... \"\\r\\n\")\n" +">>> lines.rstrip(\"\\n\\r\")\n" +"'line 1 '" #: ../../faq/programming.rst:1004 msgid "" @@ -3501,6 +3749,8 @@ msgid "" "for ``None``. This reads like plain English in code and avoids confusion " "with other objects that may have boolean values that evaluate to false." msgstr "" +":pep:`8` で推奨されているとおり、同一性テストは ``None`` をチェックする際に望" +"ましい方法です。これはコードの中で自然な英語に読むことができ、また" #: ../../faq/programming.rst:1912 msgid "" @@ -3509,6 +3759,10 @@ msgid "" "guaranteed to be distinct from other objects. For example, here is how to " "implement a method that behaves like :meth:`dict.pop`:" msgstr "" +"オプション引数の検出は、 ``None`` が有効な入力値である場合に厄介なことになる" +"場合があります。この状況では、他のオブジェクトと必ず区別できる唯一のマーカー" +"オブジェクト( singleton sentinel object )を作ることで対策できます。例え" +"ば、 :meth:`dict.pop` のように振る舞うメソッドを実装する方法を示します:" #: ../../faq/programming.rst:1917 msgid "" @@ -3523,6 +3777,16 @@ msgid "" " raise KeyError(key)\n" " return default" msgstr "" +"_sentinel = object()\n" +"\n" +"def pop(self, key, default=_sentinel):\n" +" if key in self:\n" +" value = self[key]\n" +" del self[key]\n" +" return value\n" +" if default is _sentinel:\n" +" raise KeyError(key)\n" +" return default" #: ../../faq/programming.rst:1930 msgid "" @@ -3530,6 +3794,9 @@ msgid "" "identity tests. This prevents the code from being confused by objects such " "as ``float('NaN')`` that are not equal to themselves." msgstr "" +"コンテナの実装では、等価性テストを同一性テストで補強する必要がある場合があり" +"ます。これは、 ``float('NaN')`` のような自分自身と等しくないオブジェクトに" +"よってコードが混乱するのを防ぎます。" #: ../../faq/programming.rst:1934 msgid "" diff --git a/faq/windows.po b/faq/windows.po index a59e97f07..c123456ff 100644 --- a/faq/windows.po +++ b/faq/windows.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../faq/windows.rst:9 @@ -65,7 +65,7 @@ msgstr "" #: ../../faq/windows.rst:35 msgid "C:\\>" -msgstr "" +msgstr "C:\\>" #: ../../faq/windows.rst:39 msgid "" @@ -77,7 +77,7 @@ msgstr "" #: ../../faq/windows.rst:42 msgid "D:\\YourName\\Projects\\Python>" -msgstr "" +msgstr "D:\\YourName\\Projects\\Python>" #: ../../faq/windows.rst:46 msgid "" @@ -115,7 +115,7 @@ msgstr "" #: ../../faq/windows.rst:60 msgid "C:\\Users\\YourName> py" -msgstr "" +msgstr "C:\\Users\\YourName> py" #: ../../faq/windows.rst:64 msgid "You should then see something like:" @@ -129,6 +129,11 @@ msgid "" "information.\n" ">>>" msgstr "" +"Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit " +"(Intel)] on win32\n" +"Type \"help\", \"copyright\", \"credits\" or \"license\" for more " +"information.\n" +">>>" #: ../../faq/windows.rst:72 msgid "" @@ -148,6 +153,10 @@ msgid "" ">>> \"Hello\" * 3\n" "'HelloHelloHello'" msgstr "" +">>> print(\"Hello\")\n" +"Hello\n" +">>> \"Hello\" * 3\n" +"'HelloHelloHello'" #: ../../faq/windows.rst:84 msgid "" @@ -196,7 +205,7 @@ msgstr "" #: ../../faq/windows.rst:104 msgid "C:\\Users\\YourName>" -msgstr "" +msgstr "C:\\Users\\YourName>" #: ../../faq/windows.rst:106 msgid "" @@ -211,6 +220,8 @@ msgid "" "C:\\Users\\YourName> py Desktop\\hello.py\n" "hello" msgstr "" +"C:\\Users\\YourName> py Desktop\\hello.py\n" +"hello" #: ../../faq/windows.rst:114 msgid "How do I make Python scripts executable?" @@ -423,6 +434,11 @@ msgid "" "initmyAppc(); // Initialize (import) the helper class.\n" "PyRun_SimpleString(\"import myApp\"); // Import the shadow class." msgstr "" +"#include \n" +"...\n" +"Py_Initialize(); // Pythonの初期化\n" +"initmyAppc(); // ヘルパーclassの初期化(import)\n" +"PyRun_SimpleString(\"import myApp\"); // shadowクラスのimport" #: ../../faq/windows.rst:218 msgid "" @@ -456,6 +472,9 @@ msgid "" "_resultobj = Py_None;\n" "return _resultobj;" msgstr "" +"Py_INCREF(Py_None);\n" +"_resultobj = Py_None;\n" +"return _resultobj;" #: ../../faq/windows.rst:235 msgid "" @@ -469,7 +488,7 @@ msgstr "" #: ../../faq/windows.rst:239 msgid "return Py_BuildValue(\"\");" -msgstr "" +msgstr "return Py_BuildValue(\"\");" #: ../../faq/windows.rst:243 msgid "" diff --git a/howto/annotations.po b/howto/annotations.po index 917fa6024..8032f4f2b 100644 --- a/howto/annotations.po +++ b/howto/annotations.po @@ -16,15 +16,15 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/annotations.rst:5 msgid "Annotations Best Practices" -msgstr "" +msgstr "アノテーションのベストプラクティス" #: ../../howto/annotations.rst:0 msgid "author" @@ -45,6 +45,9 @@ msgid "" "``__annotations__`` on Python objects, we encourage you to follow the " "guidelines described below." msgstr "" +"このドキュメントは、アノテーションの辞書を扱う上でのベストプラクティスをまと" +"めるものです。Python オブジェクトに付与された ``__annotations__`` ã‚’ Python " +"コードからアクセスする際には、以下のガイドラインに従うことを推奨します。" #: ../../howto/annotations.rst:16 msgid "" @@ -54,6 +57,11 @@ msgid "" "and older, other best practices for ``__annotations__`` that apply to any " "Python version, and quirks of ``__annotations__``." msgstr "" +"本ドキュメントは次の4セクションで構成されています。Python 3.10 以降でオブ" +"ジェクトのアノテーションにアクセスするときのベストプラクティス、Python 3.9 以" +"下でオブジェクトのアノテーションにアクセスするときのベストプラクティス、" +"Python バージョンに関わらない ``__annotations__`` に関するベストプラクティ" +"ス、 ``__annotations__`` の注意点、です。" #: ../../howto/annotations.rst:26 msgid "" @@ -62,10 +70,13 @@ msgid "" "information on how to use \"type hints\" in your code, please see the :mod:" "`typing` module." msgstr "" +"注意:本ドキュメントは、アノテーションの使い方ではなく、 ``__annotations__`` " +"の使い方を扱っています。型ヒントをコードの中でどうやって使うかについては、 :" +"mod:`typing` モジュールを参照してください。" #: ../../howto/annotations.rst:33 msgid "Accessing The Annotations Dict Of An Object In Python 3.10 And Newer" -msgstr "" +msgstr "オブジェクトのアノテーション辞書へのアクセス (Python 3.10 以降)" #: ../../howto/annotations.rst:35 msgid "" @@ -75,6 +86,11 @@ msgid "" "object that supports annotations. This function can also \"un-stringize\" " "stringized annotations for you." msgstr "" +"Python 3.10 で標準ライブラリに :func:`inspect.get_annotations` 関数が新たに追" +"加されました。Python 3.10 から 3.13 までは、アノテーションに対応しているオブ" +"ジェクトのアノテーション辞書にアクセスするには、この関数を使うのが一番良いで" +"す。文字列で指定されたアノテーションも自動的に文字列でない値に解決してくれま" +"す。" #: ../../howto/annotations.rst:42 msgid "" @@ -83,6 +99,9 @@ msgid "" "`annotationlib.get_annotations` function, which supersedes :func:`inspect." "get_annotations`." msgstr "" +"Python 3.14 では、アノテーションを扱うためのモジュール :mod:`annotationlib` " +"が追加されました。このモジュールに :func:`annotationlib.get_annotations` があ" +"り、 :func:`inspect.get_annotations` を置き換えるものです。" #: ../../howto/annotations.rst:47 msgid "" @@ -94,6 +113,12 @@ msgid "" "of these three *specific* objects, you may simply use ``o.__annotations__`` " "to get at the object's annotations dict." msgstr "" +"もし何らかの理由で自分の用途に :func:`inspect.get_annotations` が合わないとい" +"う場合は、手動で ``__annotations__`` にアクセスすることもできます。これについ" +"ても、推奨のアクセス方法が Python 3.10 で変わりました。3.10 で、 ``o." +"__annotations__`` は関数、クラス、モジュールに対しては必ず使えることが保証さ" +"れるようになりました。オブジェクトが確実にこの3つのいずれかである場合は、単" +"に ``o.__annotations__`` を使えばアノテーション辞書を取得できます。" #: ../../howto/annotations.rst:57 msgid "" @@ -103,6 +128,11 @@ msgid "" "practice in Python versions 3.10 and newer is to call :func:`getattr` with " "three arguments, for example ``getattr(o, '__annotations__', None)``." msgstr "" +"しかし、それ以外の callable (例えば、 :func:`functools.partial` で作られたも" +"の) は ``__annotations__`` 属性が定義されていない可能性があります。この属性が" +"あるかどうか不明なオブジェクトの場合は、Python 3.10 以降では、 :func:" +"`getattr` に3つの引数を渡して呼び出す (例えば ``getattr(o, " +"'__annotations__', None)`` ) のを推奨します。" #: ../../howto/annotations.rst:65 msgid "" @@ -111,10 +141,14 @@ msgid "" "parent's ``__annotations__``. In Python 3.10 and newer, the child class's " "annotations will be an empty dict instead." msgstr "" +"Python 3.10 より前のバージョンでは、親クラスにアノテーションがあるが自身はア" +"ノテーションを定義していないようなクラスの場合、 ``__annotations__`` を取得す" +"ると親クラスの ``__annotations__`` が返されます。3.10 以降では、代わりに空の" +"辞書が返されます。" #: ../../howto/annotations.rst:73 msgid "Accessing The Annotations Dict Of An Object In Python 3.9 And Older" -msgstr "" +msgstr "オブジェクトのアノテーション辞書へのアクセス (Python 3.9 以前)" #: ../../howto/annotations.rst:75 msgid "" @@ -122,6 +156,9 @@ msgid "" "more complicated than in newer versions. The problem is a design flaw in " "these older versions of Python, specifically to do with class annotations." msgstr "" +"Python 3.9 以前では、オブジェクトのアノテーション辞書を取得するのはより複雑で" +"す。原因は、3.9 以前のバージョンの設計上の欠陥 (具体的にはクラスのアノテー" +"ション) です。" #: ../../howto/annotations.rst:80 msgid "" @@ -131,6 +168,10 @@ msgid "" "should use three-argument :func:`getattr` to access the object's " "``__annotations__`` attribute." msgstr "" +"クラス以外のオブジェクト (関数や他の callable、モジュール) のアノテーションを" +"取得する推奨の方法は、3.10と同じです。 :func:`inspect.get_annotations` ではな" +"く、 :func:`getattr` に3つの引数を渡すことで ``__annotations__`` 属性を取得" +"するのがいいです。" #: ../../howto/annotations.rst:87 msgid "" @@ -140,6 +181,10 @@ msgid "" "``__annotations__`` attribute of a class may inadvertently return the " "annotations dict of a *base class.* As an example::" msgstr "" +"ただし、クラスについては推奨方法が異なります。なぜなら、クラスには " +"``__annotations__`` は必須ではなく、属性はベースクラスから継承されるので、 " +"``__annotations__`` 属性にアクセスするとベースクラスのアノテーション辞書を取" +"得してしまうという問題があるからです。例えば::" #: ../../howto/annotations.rst:94 msgid "" @@ -152,10 +197,19 @@ msgid "" "\n" "print(Derived.__annotations__)" msgstr "" +"class Base:\n" +" a: int = 3\n" +" b: str = 'abc'\n" +"\n" +"class Derived(Base):\n" +" pass\n" +"\n" +"print(Derived.__annotations__)" #: ../../howto/annotations.rst:103 msgid "This will print the annotations dict from ``Base``, not ``Derived``." msgstr "" +"このコードでは ``Derived`` ではなく ``Base`` のアノテーションが表示されます。" #: ../../howto/annotations.rst:106 msgid "" @@ -166,6 +220,12 @@ msgid "" "dictionary. Since the class may or may not have annotations defined, best " "practice is to call the :meth:`~dict.get` method on the class dict." msgstr "" +"クラス (``isinstance(o, type)``) のアノテーションを取得するためには、新たに分" +"岐を追加する必要があります。推奨する方法では、 Python 3.9 以前の実装に依存し" +"た方法をとります。クラスにアノテーションがあれば、 :attr:`~type.__dict__` の" +"辞書に格納されるという実装になっています。クラスにはアノテーションがない場合" +"もあるため、この辞書の :meth:`~dict.get` メソッドを使ってアノテーションを取得" +"する、というのが推奨の方法です。" #: ../../howto/annotations.rst:114 msgid "" @@ -173,6 +233,8 @@ msgid "" "``__annotations__`` attribute on an arbitrary object in Python 3.9 and " "before::" msgstr "" +"以上を踏まえると、Python 3.9 以前では、以下のサンプルコードで任意のオブジェク" +"トの ``__annotations__`` 属性を安全に取得することができます::" #: ../../howto/annotations.rst:118 msgid "" @@ -181,6 +243,10 @@ msgid "" "else:\n" " ann = getattr(o, '__annotations__', None)" msgstr "" +"if isinstance(o, type):\n" +" ann = o.__dict__.get('__annotations__', None)\n" +"else:\n" +" ann = getattr(o, '__annotations__', None)" #: ../../howto/annotations.rst:123 msgid "" @@ -188,6 +254,9 @@ msgid "" "You're encouraged to double-check the type of ``ann`` using :func:" "`isinstance` before further examination." msgstr "" +"このコードを実行すると、 ``ann`` の値は辞書か ``None`` となります。さらに " +"``ann`` の値を調べるには、 :func:`isinstance` で型を再度確認することを推奨し" +"ます。" #: ../../howto/annotations.rst:128 msgid "" @@ -195,10 +264,13 @@ msgid "" "__dict__` attribute, so for extra safety you may also wish to use :func:" "`getattr` to access :attr:`!__dict__`." msgstr "" +"ただし、一部の特殊な型オブジェクトや不正な形式の型オブジェクトは :attr:" +"`~type.__dict__` 属性がないこともあるため、さらに安全をとるには :func:" +"`getattr` を使って :attr:`!__dict__` を取得したほうがいいです。" #: ../../howto/annotations.rst:134 msgid "Manually Un-Stringizing Stringized Annotations" -msgstr "" +msgstr "文字列指定のアノテーションを手動で解決する方法" #: ../../howto/annotations.rst:136 msgid "" @@ -207,6 +279,8 @@ msgid "" "really is best to call :func:`inspect.get_annotations` to do this work for " "you." msgstr "" +"アノテーションは文字列として指定されている場合があり、それを評価して Python " +"の値に変換するには、 :func:`inspect.get_annotations` を使うのが一番です。" #: ../../howto/annotations.rst:142 msgid "" @@ -215,18 +289,25 @@ msgid "" "encouraged to examine the implementation of :func:`inspect.get_annotations` " "in the current Python version and follow a similar approach." msgstr "" +"Python 3.9 以前を使っているか、もしくは何らかの理由で :func:`inspect." +"get_annotations` を使えない場合は、自分で実装する必要があります。現状の " +"Python バージョンの :func:`inspect.get_annotations` の実装を確認して、同様の" +"処理を実装することを推奨します。" #: ../../howto/annotations.rst:148 msgid "" "In a nutshell, if you wish to evaluate a stringized annotation on an " "arbitrary object ``o``:" msgstr "" +"すなわち、任意のオブジェクト ``o`` の文字列アノテーションを評価するには:" #: ../../howto/annotations.rst:151 msgid "" "If ``o`` is a module, use ``o.__dict__`` as the ``globals`` when calling :" "func:`eval`." msgstr "" +"``o`` がモジュールならば、 ``o.__dict__`` ã‚’ ``globals`` として :func:`eval` " +"を呼ぶ。" #: ../../howto/annotations.rst:153 msgid "" @@ -234,6 +315,8 @@ msgid "" "``globals``, and ``dict(vars(o))`` as the ``locals``, when calling :func:" "`eval`." msgstr "" +"``o`` がクラスならば、 ``sys.modules[o.__module__].__dict__`` ã‚’ ``globals`` " +"とし、 ``dict(vars(o))`` ã‚’ ``locals`` として :func:`eval` を呼ぶ。" #: ../../howto/annotations.rst:156 msgid "" @@ -242,12 +325,17 @@ msgid "" "accessing either ``o.__wrapped__`` or ``o.func`` as appropriate, until you " "have found the root unwrapped function." msgstr "" +"``o`` が :func:`functools.update_wrapper` か :func:`functools.wraps` か :" +"func:`functools.partial` でラップされた callable ならば、一番内部の関数に到達" +"するまで、 ``o.__wrapped__`` か ``o.func`` のどちらかを繰り返し取得する。" #: ../../howto/annotations.rst:160 msgid "" "If ``o`` is a callable (but not a class), use :attr:`o.__globals__ ` as the globals when calling :func:`eval`." msgstr "" +"``o`` がクラス以外の callable であれば、 :attr:`o.__globals__ ` ã‚’ globals として :func:`eval` を呼ぶ。" #: ../../howto/annotations.rst:164 msgid "" @@ -257,18 +345,25 @@ msgid "" "hints that require annotating with string values that specifically *can't* " "be evaluated. For example:" msgstr "" +"しかし、必ずしもアノテーションの文字列が :func:`eval` で Python の値に変換で" +"きるとは限りません。理論上どんな文字列も指定可能であり、変換できない文字列を" +"型ヒントとして指定する必要がある場合が実際にあります。例えば:" #: ../../howto/annotations.rst:171 msgid "" ":pep:`604` union types using ``|``, before support for this was added to " "Python 3.10." msgstr "" +"``|`` を使った :pep:`604` のユニオン型 (これが追加された Python 3.10 より前の" +"バージョン)" #: ../../howto/annotations.rst:173 msgid "" "Definitions that aren't needed at runtime, only imported when :const:`typing." "TYPE_CHECKING` is true." msgstr "" +":const:`typing.TYPE_CHECKING` が True の時だけインポートされ、実行時には必要" +"ない型定義。" #: ../../howto/annotations.rst:176 msgid "" @@ -277,22 +372,29 @@ msgid "" "it's recommended to only attempt to evaluate string values when explicitly " "requested to by the caller." msgstr "" +":func:`eval` で上記のような値を評価しようとすると、失敗し例外が発生します。そ" +"のため、アノテーションを扱うライブラリ API を作る際は、呼び出し側が明示的に要" +"求したときのみ、文字列を評価することが推奨されます。" #: ../../howto/annotations.rst:184 msgid "Best Practices For ``__annotations__`` In Any Python Version" -msgstr "" +msgstr "``__annotations__`` のベストプラクティス (å…¨ Python バージョン共通)" #: ../../howto/annotations.rst:186 msgid "" "You should avoid assigning to the ``__annotations__`` member of objects " "directly. Let Python manage setting ``__annotations__``." msgstr "" +"オブジェクトの ``__annotations__`` 属性に直接代入することは避けるべきです。" +"Python に任せましょう。 " #: ../../howto/annotations.rst:189 msgid "" "If you do assign directly to the ``__annotations__`` member of an object, " "you should always set it to a ``dict`` object." msgstr "" +"直接 ``__annotations__`` 属性に代入するなら、必ず ``dict`` オブジェクトを代入" +"するべきです。" #: ../../howto/annotations.rst:192 msgid "" @@ -300,6 +402,9 @@ msgid "" "Instead, use :func:`annotationlib.get_annotations` (Python 3.14+) or :func:" "`inspect.get_annotations` (Python 3.10+)." msgstr "" +"どういうオブジェクトかに関わらず、直接 ``__annotations__`` にアクセスするのは" +"避けるべきです。Python 3.14 以降は :func:`annotationlib.get_annotations` 、 " +"Python 3.10 以降は :func:`inspect.get_annotations` を使いましょう。" #: ../../howto/annotations.rst:196 msgid "" @@ -307,19 +412,21 @@ msgid "" "should ensure that it's a dictionary before attempting to examine its " "contents." msgstr "" +"直接 ``__annotations__`` メンバーにアクセスするなら、まず値が辞書であることを" +"チェックしてから中身を調べるべきです。" #: ../../howto/annotations.rst:200 msgid "You should avoid modifying ``__annotations__`` dicts." -msgstr "" +msgstr "``__annotations__`` 辞書を書き換えるのは避けるべきです。" #: ../../howto/annotations.rst:202 msgid "" "You should avoid deleting the ``__annotations__`` attribute of an object." -msgstr "" +msgstr "``__annotations__`` 属性を削除するのは避けるべきです。" #: ../../howto/annotations.rst:207 msgid "``__annotations__`` Quirks" -msgstr "" +msgstr "``__annotations__`` の注意点" #: ../../howto/annotations.rst:209 msgid "" diff --git a/howto/argparse.po b/howto/argparse.po index c749f29d9..381f90aa1 100644 --- a/howto/argparse.po +++ b/howto/argparse.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/argparse.rst:5 diff --git a/howto/clinic.po b/howto/clinic.po index c11b77535..2578026fd 100644 --- a/howto/clinic.po +++ b/howto/clinic.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/clinic.rst:8 diff --git a/howto/cporting.po b/howto/cporting.po index cad700c9b..5290ad2c4 100644 --- a/howto/cporting.po +++ b/howto/cporting.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/cporting.rst:7 diff --git a/howto/curses.po b/howto/curses.po index d3dfc2ca5..7d595d3b2 100644 --- a/howto/curses.po +++ b/howto/curses.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Mikami Akiko, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/curses.rst:5 diff --git a/howto/descriptor.po b/howto/descriptor.po index 314c17a91..5679c65a9 100644 --- a/howto/descriptor.po +++ b/howto/descriptor.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/descriptor.rst:5 @@ -1812,7 +1812,7 @@ msgid "" "fixed-length array of slot values. From a user point of view that has " "several effects:" msgstr "" -"クラスが ``__slots__`` を定義すると、インスタンスの辞書が固定超のスロットの値" +"クラスが ``__slots__`` を定義すると、インスタンスの辞書が固定長のスロットの値" "の配列と置き換えられます。ユーザーの目線からみると、いくつかの変化がありま" "す。" @@ -1829,6 +1829,8 @@ msgid "" "class Vehicle:\n" " __slots__ = ('id_number', 'make', 'model')" msgstr "" +"class Vehicle:\n" +" __slots__ = ('id_number', 'make', 'model')" #: ../../howto/descriptor.rst:1556 msgid "" diff --git a/howto/enum.po b/howto/enum.po index 86cb44eda..7c300d485 100644 --- a/howto/enum.po +++ b/howto/enum.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/enum.rst:5 diff --git a/howto/functional.po b/howto/functional.po index 28c8c53e7..d369788cb 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/functional.rst:5 diff --git a/howto/gdb_helpers.po b/howto/gdb_helpers.po index fcab68ebc..fbf5b6b1f 100644 --- a/howto/gdb_helpers.po +++ b/howto/gdb_helpers.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/gdb_helpers.rst:5 diff --git a/howto/index.po b/howto/index.po index eebcd4092..e9bb06bc8 100644 --- a/howto/index.po +++ b/howto/index.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/index.rst:3 diff --git a/howto/instrumentation.po b/howto/instrumentation.po index 954bcaa6d..55dbc5f75 100644 --- a/howto/instrumentation.po +++ b/howto/instrumentation.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/instrumentation.rst:7 diff --git a/howto/ipaddress.po b/howto/ipaddress.po index 7d18d2e81..471057b5a 100644 --- a/howto/ipaddress.po +++ b/howto/ipaddress.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/ipaddress.rst:9 diff --git a/howto/isolating-extensions.po b/howto/isolating-extensions.po index 3be8e474b..f6ad35b96 100644 --- a/howto/isolating-extensions.po +++ b/howto/isolating-extensions.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/isolating-extensions.rst:7 @@ -146,7 +146,7 @@ msgstr "" #: ../../howto/isolating-extensions.rst:87 msgid "Isolated Module Objects" -msgstr "" +msgstr "分離されたモジュールオブジェクト" #: ../../howto/isolating-extensions.rst:89 msgid "" @@ -165,6 +165,13 @@ msgid "" ">>> old_binascii == binascii\n" "False" msgstr "" +">>> import sys\n" +">>> import binascii\n" +">>> old_binascii = binascii\n" +">>> del sys.modules['binascii']\n" +">>> import binascii # 新しいモジュールオブジェクトを作成\n" +">>> old_binascii == binascii\n" +"False" #: ../../howto/isolating-extensions.rst:103 msgid "" @@ -916,7 +923,7 @@ msgstr "" #: ../../howto/isolating-extensions.rst:632 msgid "Per-Class Scope" -msgstr "" +msgstr "クラスごとのスコープ" #: ../../howto/isolating-extensions.rst:634 msgid "" diff --git a/howto/logging-cookbook.po b/howto/logging-cookbook.po index 743e3f0a7..6a0ee364f 100644 --- a/howto/logging-cookbook.po +++ b/howto/logging-cookbook.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/logging-cookbook.rst:5 diff --git a/howto/logging.po b/howto/logging.po index a0cabdb00..6dba75795 100644 --- a/howto/logging.po +++ b/howto/logging.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: Inada Naoki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/logging.rst:5 diff --git a/howto/pyporting.po b/howto/pyporting.po index d06accd6e..6356e136f 100644 --- a/howto/pyporting.po +++ b/howto/pyporting.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/pyporting.rst:7 diff --git a/howto/regex.po b/howto/regex.po index a978948b4..fa32f2a4d 100644 --- a/howto/regex.po +++ b/howto/regex.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/regex.rst:5 diff --git a/howto/sockets.po b/howto/sockets.po index a0fddb964..46914e57c 100644 --- a/howto/sockets.po +++ b/howto/sockets.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/sockets.rst:5 diff --git a/howto/sorting.po b/howto/sorting.po index 422410f45..3e82feda9 100644 --- a/howto/sorting.po +++ b/howto/sorting.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/sorting.rst:4 diff --git a/howto/unicode.po b/howto/unicode.po index a691aa863..e19846c7e 100644 --- a/howto/unicode.po +++ b/howto/unicode.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/unicode.rst:5 diff --git a/howto/urllib2.po b/howto/urllib2.po index b381a1c87..503ea0d8b 100644 --- a/howto/urllib2.po +++ b/howto/urllib2.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../howto/urllib2.rst:5 diff --git a/includes/wasm-notavail.po b/includes/wasm-notavail.po index df2d29641..afcae3c83 100644 --- a/includes/wasm-notavail.po +++ b/includes/wasm-notavail.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../includes/wasm-notavail.rst:3 diff --git a/install/index.po b/install/index.po index 737535d0d..dd8808bd0 100644 --- a/install/index.po +++ b/install/index.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Transifex Bot <>, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../install/index.rst:7 diff --git a/installing/index.po b/installing/index.po index 0f65b6b96..e0fb82b08 100644 --- a/installing/index.po +++ b/installing/index.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../installing/index.rst:7 @@ -167,7 +167,7 @@ msgstr "" #: ../../installing/index.rst:66 msgid "" "The use of ``venv`` is now recommended for creating virtual environments." -msgstr "仮想環境の作成には、 ``venv`` の使用をお勧めします。" +msgstr "仮想環境の作成には、 ``venv`` の使用が今は推奨されています。" #: ../../installing/index.rst:71 msgid "" diff --git a/library/2to3.po b/library/2to3.po index f8f05088e..745a5eaa0 100644 --- a/library/2to3.po +++ b/library/2to3.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/2to3.rst:4 diff --git a/library/__future__.po b/library/__future__.po index 8c365b4e4..271caca87 100644 --- a/library/__future__.po +++ b/library/__future__.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/__future__.rst:2 diff --git a/library/__main__.po b/library/__main__.po index 952e86798..5956d7004 100644 --- a/library/__main__.po +++ b/library/__main__.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/__main__.rst:2 @@ -74,7 +74,7 @@ msgid "" msgstr "" "Python モジュールやパッケージがインポートされるとき、 ``__name__`` の値はその" "モジュールの名前となります。\n" -"通常、インポートされる Python ファイル自体のファイル名から拡張子``.py`` を除" +"通常、インポートされる Python ファイル自体のファイル名から拡張子 ``.py`` を除" "いたものとなります::" #: ../../library/__main__.rst:31 diff --git a/library/_thread.po b/library/_thread.po index 0cc1b8efe..65e5e7f6f 100644 --- a/library/_thread.po +++ b/library/_thread.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/_thread.rst:2 diff --git a/library/abc.po b/library/abc.po index f1da8dddf..133bc0d90 100644 --- a/library/abc.po +++ b/library/abc.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/abc.rst:2 @@ -52,6 +52,11 @@ msgid "" "class or instance provides a particular interface, for example, if it is :" "term:`hashable` or if it is a :term:`mapping`." msgstr "" +":mod:`collections` モジュール には、抽象基底クラス から派生するいくつかの具象" +"クラスがある。もちろん、これらはさらに派生させることができる。さらに、:mod:" +"`collections.抽象基底クラス` サブモジュールには、クラスやインスタンス が特定" +"のインターフェース 、たとえば 、:term:`hashable`であるか、:term:`mapping`であ" +"るかをテストするために使用できる抽象基底クラス があります。" #: ../../library/abc.rst:27 msgid "" @@ -68,6 +73,9 @@ msgid "" "an abstract base class can be created by simply deriving from :class:`!ABC` " "avoiding sometimes confusing metaclass usage, for example::" msgstr "" +"メタクラスとして :class:`ABCMeta` を持つヘルパークラスです。このクラスを使う" +"ことで、:class:`!ABC` を継承するだけで抽象基底クラスを作成でき、しばしば混乱" +"しがちなメタクラスの使用を避けることができます。例えば::" #: ../../library/abc.rst:36 msgid "" diff --git a/library/aifc.po b/library/aifc.po index 104e03e2b..095350f0c 100644 --- a/library/aifc.po +++ b/library/aifc.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/aifc.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/aifc.rst:14 msgid "" diff --git a/library/allos.po b/library/allos.po index c8df90c38..e0f8a4a9f 100644 --- a/library/allos.po +++ b/library/allos.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/allos.rst:5 diff --git a/library/archiving.po b/library/archiving.po index ea4b9a46d..5d61e6623 100644 --- a/library/archiving.po +++ b/library/archiving.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/archiving.rst:5 diff --git a/library/argparse.po b/library/argparse.po index 58360f589..a7df30314 100644 --- a/library/argparse.po +++ b/library/argparse.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/argparse.rst:2 @@ -33,6 +33,8 @@ msgid "" ":mod:`!argparse` --- Parser for command-line options, arguments and " "subcommands" msgstr "" +":mod:`!argparse` --- コマンドラインオプションや引数、サブコマンド向けのパー" +"サー" #: ../../library/argparse.rst:12 msgid "**Source code:** :source:`Lib/argparse.py`" @@ -90,6 +92,10 @@ msgid "" " description='What the program does',\n" " epilog='Text at the bottom of help')" msgstr "" +"parser = argparse.ArgumentParser(\n" +" prog='ProgramName',\n" +" description='What the program does',\n" +" epilog='Text at the bottom of help')" #: ../../library/argparse.rst:49 msgid "" @@ -108,6 +114,10 @@ msgid "" "parser.add_argument('-v', '--verbose',\n" " action='store_true') # on/off flag" msgstr "" +"parser.add_argument('filename') # 位置引数\n" +"parser.add_argument('-c', '--count') # 値を取るオプション\n" +"parser.add_argument('-v', '--verbose',\n" +" action='store_true') # オン/オフフラグ" #: ../../library/argparse.rst:58 msgid "" diff --git a/library/array.po b/library/array.po index e2991dc90..e9306774b 100644 --- a/library/array.po +++ b/library/array.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/array.rst:2 diff --git a/library/ast.po b/library/ast.po index 73485d388..c3804c48b 100644 --- a/library/ast.po +++ b/library/ast.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/ast.rst:2 diff --git a/library/asynchat.po b/library/asynchat.po index 23cc950dd..f2118925a 100644 --- a/library/asynchat.po +++ b/library/asynchat.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asynchat.rst:2 diff --git a/library/asyncio-api-index.po b/library/asyncio-api-index.po index 5228ce12b..a23edbfd4 100644 --- a/library/asyncio-api-index.po +++ b/library/asyncio-api-index.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-api-index.rst:6 diff --git a/library/asyncio-dev.po b/library/asyncio-dev.po index 96a8c8761..ec6ee586f 100644 --- a/library/asyncio-dev.po +++ b/library/asyncio-dev.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-dev.rst:7 diff --git a/library/asyncio-eventloop.po b/library/asyncio-eventloop.po index e110dc56e..e61bd03bf 100644 --- a/library/asyncio-eventloop.po +++ b/library/asyncio-eventloop.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-eventloop.rst:8 @@ -135,7 +135,7 @@ msgstr "" #: ../../library/asyncio-eventloop.rst:74 msgid "Set *loop* as the current event loop for the current OS thread." -msgstr "" +msgstr "*loop* ã‚’ OS スレッドの現在のイベントループに設定します。" #: ../../library/asyncio-eventloop.rst:78 msgid "Create and return a new event loop object." @@ -237,6 +237,10 @@ msgid "" "scheduled in response to I/O events (and those that were already scheduled), " "and then exit." msgstr "" +":meth:`run_forever` メソッドが呼ばれるより前に :meth:`stop` メソッドが呼ばれ" +"た場合、イベントループはタイムアウトをゼロにして一度だけ I/O セレクタの問い合" +"わせ処理を行い、 I/O イベントに対してスケジュールされた全てのコールバック (お" +"よび既にスケジュール済みのコールバック) を実行したのち、終了します。" #: ../../library/asyncio-eventloop.rst:140 msgid "" @@ -301,6 +305,12 @@ msgid "" "loop will issue a warning if a new asynchronous generator is iterated. This " "should be used to reliably finalize all scheduled asynchronous generators." msgstr "" +"現在オープンになっているすべての :term:`asynchronous generator` (非同期ジェネ" +"レータ) オブジェクトをスケジュールし、 :meth:`~agen.aclose` メソッドを呼び出" +"すことでそれらをクローズします。 このメソッドの呼び出し後に新しい非同期ジェネ" +"レータがイテレートされると、イベントループは警告を発します。このメソッドはス" +"ケジュールされたすべての非同期ジェネレータの終了処理を確実に行うために使用す" +"べきです。" #: ../../library/asyncio-eventloop.rst:180 msgid "" @@ -353,7 +363,7 @@ msgstr "" #: ../../library/asyncio-eventloop.rst:218 msgid "Added the *timeout* parameter." -msgstr "" +msgstr "*timeout* 引数が追加されました。" #: ../../library/asyncio-eventloop.rst:222 msgid "Scheduling callbacks" @@ -372,6 +382,8 @@ msgid "" "Return an instance of :class:`asyncio.Handle`, which can be used later to " "cancel the callback." msgstr "" +":class:`asyncio.Handle` のインスタンスを返します。このインスタンスを使ってス" +"ケジュールしたコールバックをキャンセルすることができます。" #: ../../library/asyncio-eventloop.rst:232 msgid "" @@ -592,6 +604,8 @@ msgid "" "Schedule the execution of :ref:`coroutine ` *coro*. Return a :" "class:`Task` object." msgstr "" +":ref:`コルーチン ` *coro* の実行をスケジュールします。 :class:" +"`Task` オブジェクトを返します。" #: ../../library/asyncio-eventloop.rst:369 msgid "" @@ -715,10 +729,13 @@ msgid "" "`~socket.AF_INET6` depending on *host* (or the *family* argument, if " "provided)." msgstr "" +"ソケットファミリーは *host* (または *family* 引数が与えられた場合は " +"*family*) に依存し、 :py:const:`~socket.AF_INET` か :py:const:`~socket." +"AF_INET6` のいずれかを指定します。" #: ../../library/asyncio-eventloop.rst:451 msgid "The socket type will be :py:const:`~socket.SOCK_STREAM`." -msgstr "" +msgstr "ソケットタイプは :py:const:`~socket.SOCK_STREAM` になります。" #: ../../library/asyncio-eventloop.rst:453 #: ../../library/asyncio-eventloop.rst:1246 @@ -936,11 +953,13 @@ msgid "" "The socket option :ref:`socket.TCP_NODELAY ` is set " "by default for all TCP connections." msgstr "" +"全ての TCP 接続に対してデフォルトでソケットオプション :ref:`socket." +"TCP_NODELAY ` が設定されるようになりました。" #: ../../library/asyncio-eventloop.rst:558 #: ../../library/asyncio-eventloop.rst:908 msgid "Added the *ssl_handshake_timeout* parameter." -msgstr "" +msgstr "*ssl_handshake_timeout* 引数が追加されました。" #: ../../library/asyncio-eventloop.rst:562 msgid "Added the *happy_eyeballs_delay* and *interleave* parameters." @@ -960,6 +979,7 @@ msgstr "" #: ../../library/asyncio-eventloop.rst:573 msgid "For more information: https://datatracker.ietf.org/doc/html/rfc6555" msgstr "" +"詳しくは右記を参照してください: https://datatracker.ietf.org/doc/html/rfc6555" #: ../../library/asyncio-eventloop.rst:577 #: ../../library/asyncio-eventloop.rst:703 @@ -994,10 +1014,13 @@ msgid "" "`~socket.AF_INET6`, or :py:const:`~socket.AF_UNIX`, depending on *host* (or " "the *family* argument, if provided)." msgstr "" +"ソケットファミリーは *host* (または *family* 引数が与えられた場合は " +"*family*) に依存し、 :py:const:`~socket.AF_INET`、 :py:const:`~socket." +"AF_INET6`、:py:const:`~socket.AF_UNIX` のいずれかを指定します。" #: ../../library/asyncio-eventloop.rst:601 msgid "The socket type will be :py:const:`~socket.SOCK_DGRAM`." -msgstr "" +msgstr "ソケットタイプは :py:const:`~socket.SOCK_DGRAM` になります。" #: ../../library/asyncio-eventloop.rst:603 #: ../../library/asyncio-eventloop.rst:730 @@ -1054,6 +1077,12 @@ msgid "" "Unixes. If the :ref:`socket.SO_REUSEPORT ` constant " "is not defined then this capability is unsupported." msgstr "" +"*reuse_port* は、同じポートにバインドされた既存の端点すべてがこのフラグを設定" +"して生成されている場合に限り、この端点を既存の端点と同じポートにバインドする" +"ことを許可するよう、カーネルに指示します(訳註: ソケットのオプション " +"SO_REUSEPORT を使用します)。このオプションは、Windows やいくつかの UNIX シス" +"テムではサポートされていません。:ref:`socket.SO_REUSEPORT ` 定数が定義されていなければ、この機能はサポートされません。" #: ../../library/asyncio-eventloop.rst:629 msgid "" @@ -1089,6 +1118,8 @@ msgid "" "The *family*, *proto*, *flags*, *reuse_address*, *reuse_port*, " "*allow_broadcast*, and *sock* parameters were added." msgstr "" +"*family*, *proto*, *flags*, *reuse_address*, *reuse_port*, " +"*allow_broadcast*, *sock* パラメータが追加されました。" #: ../../library/asyncio-eventloop.rst:650 msgid "Added support for Windows." @@ -1100,6 +1131,10 @@ msgid "" "SO_REUSEADDR ` poses a significant security concern " "for UDP. Explicitly passing ``reuse_address=True`` will raise an exception." msgstr "" +":ref:`socket.SO_REUSEADDR ` の利用が UDP に対して重大" +"なセキュリティ上の懸念をもたらすため、 *reuse_address* パラメータはサポートさ" +"れなくなりました。明示的に ``reuse_address=True`` を設定すると例外を送出しま" +"す。" #: ../../library/asyncio-eventloop.rst:659 msgid "" @@ -1118,6 +1153,10 @@ msgid "" "unix-constants>` is used instead, which specifically prevents processes with " "differing UIDs from assigning sockets to the same socket address." msgstr "" +"サポートされているプラットフォームでは、 *reuse_port* が同様の機能に対する代" +"用品として利用できます。 *reuse_port* は代替機能として :ref:`socket." +"SO_REUSEPORT ` を使っており、複数のプロセスが異なる " +"UID で同一のソケットに対して割り当てられるのを明確に禁止します。" #: ../../library/asyncio-eventloop.rst:670 msgid "" @@ -1134,6 +1173,8 @@ msgid "" "The socket family will be :py:const:`~socket.AF_UNIX`; socket type will be :" "py:const:`~socket.SOCK_STREAM`." msgstr "" +"ソケットファミリーは :py:const:`~socket.AF_UNIX` になります; また、ソケットタ" +"イプは :py:const:`~socket.SOCK_STREAM` になります。" #: ../../library/asyncio-eventloop.rst:687 msgid "" diff --git a/library/asyncio-exceptions.po b/library/asyncio-exceptions.po index 5b723cc0f..e2573540a 100644 --- a/library/asyncio-exceptions.po +++ b/library/asyncio-exceptions.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-exceptions.rst:8 diff --git a/library/asyncio-extending.po b/library/asyncio-extending.po index b0e235af3..93abbcb9e 100644 --- a/library/asyncio-extending.po +++ b/library/asyncio-extending.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2022-11-05 19:48+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-extending.rst:6 diff --git a/library/asyncio-future.po b/library/asyncio-future.po index 3a9016f91..f6453e0af 100644 --- a/library/asyncio-future.po +++ b/library/asyncio-future.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-future.rst:8 diff --git a/library/asyncio-llapi-index.po b/library/asyncio-llapi-index.po index 26de7682e..ca7f3f331 100644 --- a/library/asyncio-llapi-index.po +++ b/library/asyncio-llapi-index.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-llapi-index.rst:6 diff --git a/library/asyncio-platforms.po b/library/asyncio-platforms.po index c827997f5..0e1207531 100644 --- a/library/asyncio-platforms.po +++ b/library/asyncio-platforms.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-platforms.rst:9 diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 4d80fac8e..fb95b0c0c 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2022\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-policy.rst:8 diff --git a/library/asyncio-protocol.po b/library/asyncio-protocol.po index 0430a2b20..13aae2a2b 100644 --- a/library/asyncio-protocol.po +++ b/library/asyncio-protocol.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-protocol.rst:9 diff --git a/library/asyncio-queue.po b/library/asyncio-queue.po index a9161d8d9..9d54d9f09 100644 --- a/library/asyncio-queue.po +++ b/library/asyncio-queue.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-queue.rst:7 diff --git a/library/asyncio-runner.po b/library/asyncio-runner.po index 6515337d6..4bc1e70bd 100644 --- a/library/asyncio-runner.po +++ b/library/asyncio-runner.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 菊池 健志, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-runner.rst:6 @@ -30,7 +30,7 @@ msgstr "" #: ../../library/asyncio-runner.rst:8 msgid "**Source code:** :source:`Lib/asyncio/runners.py`" -msgstr "" +msgstr "**ソースコード:** :source:`Lib/asyncio/runners.py`" #: ../../library/asyncio-runner.rst:11 msgid "" @@ -128,7 +128,7 @@ msgstr "" #: ../../library/asyncio-runner.rst:73 msgid "Added *loop_factory* parameter." -msgstr "" +msgstr "*loop_factory* 引数が追加されました。" #: ../../library/asyncio-runner.rst:77 ../../library/asyncio-runner.rst:136 msgid "*coro* can be any awaitable object." diff --git a/library/asyncio-stream.po b/library/asyncio-stream.po index 8c4a6fe52..6da0657fe 100644 --- a/library/asyncio-stream.po +++ b/library/asyncio-stream.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Rafael Fontenelle , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-stream.rst:7 @@ -125,7 +125,7 @@ msgstr "" #: ../../library/asyncio-stream.rst:78 msgid "Added the *ssl_handshake_timeout* parameter." -msgstr "" +msgstr "*ssl_handshake_timeout* 引数が追加されました。" #: ../../library/asyncio-stream.rst:81 msgid "Added the *happy_eyeballs_delay* and *interleave* parameters." diff --git a/library/asyncio-subprocess.po b/library/asyncio-subprocess.po index 9ad55b607..ab5da9b3c 100644 --- a/library/asyncio-subprocess.po +++ b/library/asyncio-subprocess.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: souma987, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-subprocess.rst:7 diff --git a/library/asyncio-sync.po b/library/asyncio-sync.po index 2f6beab6e..c4010ddb0 100644 --- a/library/asyncio-sync.po +++ b/library/asyncio-sync.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-sync.rst:7 diff --git a/library/asyncio-task.po b/library/asyncio-task.po index 3a43ded5e..00ad2d767 100644 --- a/library/asyncio-task.po +++ b/library/asyncio-task.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio-task.rst:6 diff --git a/library/asyncio.po b/library/asyncio.po index eb03cc0db..9cb023f35 100644 --- a/library/asyncio.po +++ b/library/asyncio.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncio.rst:91 @@ -159,13 +159,13 @@ msgstr "" #: ../../library/asyncio.rst:64 msgid "asyncio REPL" -msgstr "" +msgstr "asyncio REPL" #: ../../library/asyncio.rst:65 msgid "" "You can experiment with an ``asyncio`` concurrent context in the :term:" "`REPL`:" -msgstr "" +msgstr ":term:`REPL` で、``asyncio`` 並行コンテキストを試すことができます:" #: ../../library/asyncio.rst:67 msgid "" @@ -178,6 +178,14 @@ msgid "" ">>> await asyncio.sleep(10, result='hello')\n" "'hello'" msgstr "" +"$ python -m asyncio\n" +"asyncio REPL ...\n" +"Use \"await\" directly instead of \"asyncio.run()\".\n" +"Type \"help\", \"copyright\", \"credits\" or \"license\" for more " +"information.\n" +">>> import asyncio\n" +">>> await asyncio.sleep(10, result='hello')\n" +"'hello'" #: ../../library/asyncio.rst:77 msgid "" diff --git a/library/asyncore.po b/library/asyncore.po index ff224cfa2..b6cedef88 100644 --- a/library/asyncore.po +++ b/library/asyncore.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/asyncore.rst:2 diff --git a/library/atexit.po b/library/atexit.po index 8fc93dd51..92cdc9955 100644 --- a/library/atexit.po +++ b/library/atexit.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/atexit.rst:2 diff --git a/library/audioop.po b/library/audioop.po index 5c16ff7fc..05425ac41 100644 --- a/library/audioop.po +++ b/library/audioop.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/audioop.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/audioop.rst:14 msgid "" diff --git a/library/audit_events.po b/library/audit_events.po index 197babe36..27da7a0c9 100644 --- a/library/audit_events.po +++ b/library/audit_events.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/audit_events.rst:6 diff --git a/library/base64.po b/library/base64.po index 0385010db..1c013ed1e 100644 --- a/library/base64.po +++ b/library/base64.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/base64.rst:2 @@ -42,6 +42,10 @@ msgid "" "Base32 and Base16) and the non-standard :ref:`Base85 encodings `." msgstr "" +"このモジュールは、バイナリデータを印刷可能なASCII文字列にエンコード、及びデ" +"コードするための関数を提供しています。:rfc:`4648` に :ref:`定義されているエン" +"コーディング ` (Base64、Base32、Base16)に加えて標準ではな" +"い :ref:`Base 85 ` をサポートしています。" #: ../../library/base64.rst:22 msgid "" @@ -66,6 +70,12 @@ msgid "" "`2045`. Note that if you are looking for :rfc:`2045` support you probably " "want to be looking at the :mod:`email` package instead." msgstr "" +":ref:`従来のインターフェース ` は文字列からのデコードができま" +"せんが、:term:`file object ` との間のエンコードとデコードが可能" +"な関数を提供します。これは標準の base64 アルファベットのみをサポートし、:rfc:" +"`2045` の規定にあるように、76文字ごとに改行されます。:rfc:`2045` のサポートの" +"ためには、代わりに :mod:`email` パッケージを参照する必要があるかもしれませ" +"ん。" #: ../../library/base64.rst:36 msgid "" @@ -87,7 +97,7 @@ msgstr "" #: ../../library/base64.rst:48 msgid "RFC 4648 Encodings" -msgstr "" +msgstr "RFC 4648 エンコーディング" #: ../../library/base64.rst:50 msgid "" @@ -95,6 +105,9 @@ msgid "" "can be safely sent by email, used as parts of URLs, or included as part of " "an HTTP POST request." msgstr "" +":rfc:`4648` エンコーディングは、email で安全に送信したり、 URL の一部として" +"使ったり、あるいは HTTP POST リクエストの一部に含めるために用いるのに適してい" +"ます。" #: ../../library/base64.rst:56 msgid "" @@ -177,6 +190,8 @@ msgstr "" msgid "" "May assert or raise a :exc:`ValueError` if the length of *altchars* is not 2." msgstr "" +"*altchars* の長さが2でない場合は、 assert または:exc:`ValueError`が発生しま" +"す。" #: ../../library/base64.rst:92 msgid "" @@ -274,12 +289,16 @@ msgid "" "Similar to :func:`b32encode` but uses the Extended Hex Alphabet, as defined " "in :rfc:`4648`." msgstr "" +":func:`b32encode`に似ていますが、:rfc:`4648`で定義されているようにExtended " +"Hex Alphabetを使用します。" #: ../../library/base64.rst:157 msgid "" "Similar to :func:`b32decode` but uses the Extended Hex Alphabet, as defined " "in :rfc:`4648`." msgstr "" +":func:`b32decode`に似ていますが、:rfc:`4648`で定義されているようにExtended " +"Hex Alphabetを使用します。" #: ../../library/base64.rst:160 msgid "" @@ -307,7 +326,7 @@ msgstr "" #: ../../library/base64.rst:190 msgid "Base85 Encodings" -msgstr "" +msgstr "Base85 エンコーディング" #: ../../library/base64.rst:192 msgid "" @@ -470,7 +489,7 @@ msgstr "" #: ../../library/base64.rst:291 msgid "Legacy Interface" -msgstr "" +msgstr "レガシーインターフェース" #: ../../library/base64.rst:295 msgid "" diff --git a/library/bdb.po b/library/bdb.po index 398042b53..cadd62fdf 100644 --- a/library/bdb.po +++ b/library/bdb.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/bdb.rst:2 diff --git a/library/binary.po b/library/binary.po index abfc154ff..ad9d744c6 100644 --- a/library/binary.po +++ b/library/binary.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/binary.rst:5 diff --git a/library/binascii.po b/library/binascii.po index e71230a0c..a001c4080 100644 --- a/library/binascii.po +++ b/library/binascii.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/binascii.rst:2 diff --git a/library/binhex.po b/library/binhex.po index 31a9b6d2e..938f7cb18 100644 --- a/library/binhex.po +++ b/library/binhex.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: mollinaca, 2021\n" "Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/binhex.rst:2 diff --git a/library/bisect.po b/library/bisect.po index 1697b6cf7..79c69afcf 100644 --- a/library/bisect.po +++ b/library/bisect.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/bisect.rst:2 @@ -39,6 +39,10 @@ msgid "" "expensive comparison operations, this can be an improvement over linear " "searches or frequent resorting." msgstr "" +"このモジュールは、挿入のたびにリストをソートすることなく、ソートされた順序で" +"リストを維持するためのサポートを提供します。 コストのかかる比較演算を伴う長い" +"リストの場合、これは線形検索や頻繁な並べ替えよりも改善される可能性がありま" +"す。" #: ../../library/bisect.rst:19 msgid "" @@ -50,6 +54,12 @@ msgid "" "functions only call the :meth:`~object.__lt__` method and will return an " "insertion point between values in an array." msgstr "" +"このモジュールは、基本的な二分法アルゴリズムを使用しているため :mod:`bisect` " +"と呼ばれます。 特定の値を検索する他の二分法ツールとは異なり、このモジュールの" +"関数は挿入点を特定するように設計されています。 したがって、関数は値が見つかっ" +"たかどうかを判断するために :meth:`~object.__eq__` メソッドを呼び出すことはあ" +"りません。 その代わりに、関数は :meth:`~object.__lt__` メソッドのみを呼び出" +"し、配列内の値間の挿入点を返します。" #: ../../library/bisect.rst:29 msgid "The following functions are provided:" @@ -78,6 +88,9 @@ msgid "" "slice and ``all(elem >= x for elem in a[ip : hi])`` is true for the right " "slice." msgstr "" +"返された挿入点 *ip* パーティションは、左のスライスでは ``all(elem < x for " +"elem in a[lo : ip])`` が真となり、右のスライスでは ``all(elem >= x for elem " +"in a[ip : hi])`` が真となるように、配列 *a* ã‚’2つのスライスに分割します。" #: ../../library/bisect.rst:46 msgid "" @@ -102,6 +115,8 @@ msgid "" "Similar to :py:func:`~bisect.bisect_left`, but returns an insertion point " "which comes after (to the right of) any existing entries of *x* in *a*." msgstr "" +":py:func:`~bisect.bisect_left` と似ていますが、 *a* に含まれる *x* のうち、ど" +"のエントリーよりも後ろ(右)にくるような挿入点を返します。" #: ../../library/bisect.rst:63 msgid "" @@ -110,6 +125,9 @@ msgid "" "slice and ``all(elem > x for elem in a[ip : hi])`` is true for the right " "slice." msgstr "" +"返された挿入点 *ip* パーティションは、左のスライスでは ``all(elem <= x for " +"elem in a[lo : ip])`` が真となり、右のスライスでは ``all(elem > x for elem " +"in a[ip : hi])`` が真となるように、配列 *a* ã‚’2つのスライスに分割します。" #: ../../library/bisect.rst:73 msgid "Insert *x* in *a* in sorted order." @@ -139,6 +157,8 @@ msgid "" "Similar to :py:func:`~bisect.insort_left`, but inserting *x* in *a* after " "any existing entries of *x*." msgstr "" +":py:func:`~bisect.insort_left` と似ていますが、 *a* に含まれる *x* のうち、ど" +"のエントリーよりも後ろに *x* を挿入します。" #: ../../library/bisect.rst:95 msgid "" @@ -156,12 +176,16 @@ msgid "" "When writing time sensitive code using *bisect()* and *insort()*, keep these " "thoughts in mind:" msgstr "" +"*bisect()* と *insort()* を使って時間的制約のあるコードを書くときは、以下のこ" +"とを念頭に置いてください:" #: ../../library/bisect.rst:115 msgid "" "Bisection is effective for searching ranges of values. For locating specific " "values, dictionaries are more performant." msgstr "" +"二分法は、値の範囲を検索するのに有効です。 特定の値を検索する場合は、辞書の方" +"が効率的です。" #: ../../library/bisect.rst:118 msgid "" @@ -211,6 +235,9 @@ msgid "" "five functions show how to transform them into the standard lookups for " "sorted lists::" msgstr "" +"上記の `bisect 関数`_ は挿入点を見つけるには便利ですが、一般的な検索タスクに" +"使うには厄介であったり、使いにくい場合があります。 以下の5つの関数は、それら" +"をソートされたリストの標準的な検索に変換する方法を示しています::" #: ../../library/bisect.rst:150 msgid "" @@ -249,6 +276,40 @@ msgid "" " return a[i]\n" " raise ValueError" msgstr "" +"def index(a, x):\n" +" 'xにちょうど等しい左端の値を見つける'\n" +" i = bisect_left(a, x)\n" +" if i != len(a) and a[i] == x:\n" +" return i\n" +" raise ValueError\n" +"\n" +"def find_lt(a, x):\n" +" 'xより小さい右端の値を見つける'\n" +" i = bisect_left(a, x)\n" +" if i:\n" +" return a[i-1]\n" +" raise ValueError\n" +"\n" +"def find_le(a, x):\n" +" 'x以下の右端の値を見つける'\n" +" i = bisect_right(a, x)\n" +" if i:\n" +" return a[i-1]\n" +" raise ValueError\n" +"\n" +"def find_gt(a, x):\n" +" 'xより大きい左端の値を見つける'\n" +" i = bisect_right(a, x)\n" +" if i != len(a):\n" +" return a[i]\n" +" raise ValueError\n" +"\n" +"def find_ge(a, x):\n" +" '左端の項目がx以上であることを確認する'\n" +" i = bisect_left(a, x)\n" +" if i != len(a):\n" +" return a[i]\n" +" raise ValueError" #: ../../library/bisect.rst:187 msgid "Examples" @@ -261,6 +322,10 @@ msgid "" "grade for an exam score (say) based on a set of ordered numeric breakpoints: " "90 and up is an 'A', 80 to 89 is a 'B', and so on::" msgstr "" +":py:func:`~bisect.bisect` 関数は数値テーブルの探索に役に立ちます。この例で" +"は、 :py:func:`~bisect.bisect` を使って、(たとえば)順序のついた数値の区切り点" +"の集合に基づいて、試験の成績の等級を表す文字を調べます。区切り点は 90 以上は " +"'A'、 80 から 89 は 'B'、などです::" #: ../../library/bisect.rst:196 msgid "" @@ -278,6 +343,9 @@ msgid "" "work with lists of tuples. The *key* argument can serve to extract the " "field used for ordering records in a table::" msgstr "" +":py:func:`~bisect.bisect` と :py:func:`~bisect.insort` 関数もタプルのリストで" +"動作します。 引数 *key* はテーブルのレコードの順序付けに使用されるフィールド" +"を抽出します::" #: ../../library/bisect.rst:207 msgid "" @@ -317,6 +385,9 @@ msgid "" "If the key function is expensive, it is possible to avoid repeated function " "calls by searching a list of precomputed keys to find the index of a record::" msgstr "" +"キー関数がコストがかかる場合は、レコードのインデックスを見つけるために事前に" +"計算されたキーのリストを検索することにより、関数呼び出しの繰り返しを回避する" +"ことが可能です::" #: ../../library/bisect.rst:240 msgid "" diff --git a/library/builtins.po b/library/builtins.po index f9de0938a..557fc5f39 100644 --- a/library/builtins.po +++ b/library/builtins.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/builtins.rst:2 diff --git a/library/bz2.po b/library/bz2.po index 70d0c5e70..d5e0db198 100644 --- a/library/bz2.po +++ b/library/bz2.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/bz2.rst:2 diff --git a/library/calendar.po b/library/calendar.po index 3051381e8..2e1d31074 100644 --- a/library/calendar.po +++ b/library/calendar.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/calendar.rst:2 diff --git a/library/cgi.po b/library/cgi.po index 1e13e8890..28d393549 100644 --- a/library/cgi.po +++ b/library/cgi.po @@ -12,15 +12,15 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/cgi.rst:2 msgid ":mod:`!cgi` --- Common Gateway Interface support" -msgstr "" +msgstr ":mod:`!cgi` --- Common Gateway Interface のサポート" #: ../../library/cgi.rst:10 msgid "" @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/cgi.rst:14 msgid "" @@ -35,9 +38,14 @@ msgid "" "is a copy of the cgi module, no longer maintained or supported by the core " "Python team." msgstr "" +"代替として、PyPI 上にあるこのモジュールのフォーク :pypi:`legacy-cgi` を利用で" +"きます。これは cgi モジュールのコピーであり、もはやコア Python チームによって" +"メンテナンスもサポートもされていません。" #: ../../library/cgi.rst:18 msgid "" "The last version of Python that provided the :mod:`!cgi` module was `Python " "3.12 `_." msgstr "" +":mod:`!cgi` モジュールを提供していた最後の Python バージョンは `Python 3.12 " +"`_ です。" diff --git a/library/cgitb.po b/library/cgitb.po index 04eddd5ae..878081b15 100644 --- a/library/cgitb.po +++ b/library/cgitb.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/cgitb.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/cgitb.rst:14 msgid "" diff --git a/library/chunk.po b/library/chunk.po index 86334c64a..9152b369c 100644 --- a/library/chunk.po +++ b/library/chunk.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/chunk.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/chunk.rst:14 msgid "" diff --git a/library/cmath.po b/library/cmath.po index 5466b9117..7613a8d9f 100644 --- a/library/cmath.po +++ b/library/cmath.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/cmath.rst:2 @@ -289,39 +289,39 @@ msgstr "" #: ../../library/cmath.rst:80 msgid "**Constants**" -msgstr "" +msgstr "**定数**" #: ../../library/cmath.rst:82 msgid ":data:`pi`" -msgstr "" +msgstr ":data:`pi`" #: ../../library/cmath.rst:82 msgid "*Ï€* = 3.141592..." -msgstr "" +msgstr "*Ï€* = 3.141592..." #: ../../library/cmath.rst:83 msgid ":data:`e`" -msgstr "" +msgstr ":data:`e`" #: ../../library/cmath.rst:83 msgid "*e* = 2.718281..." -msgstr "" +msgstr "*e* = 2.718281..." #: ../../library/cmath.rst:84 msgid ":data:`tau`" -msgstr "" +msgstr ":data:`tau`" #: ../../library/cmath.rst:84 msgid "*Ï„* = 2\\ *Ï€* = 6.283185..." -msgstr "" +msgstr "*Ï„* = 2\\ *Ï€* = 6.283185..." #: ../../library/cmath.rst:85 msgid ":data:`inf`" -msgstr "" +msgstr ":data:`inf`" #: ../../library/cmath.rst:85 msgid "Positive infinity" -msgstr "" +msgstr "正の無限大" #: ../../library/cmath.rst:86 msgid ":data:`infj`" @@ -333,11 +333,11 @@ msgstr "" #: ../../library/cmath.rst:87 msgid ":data:`nan`" -msgstr "" +msgstr ":data:`nan`" #: ../../library/cmath.rst:87 msgid "\"Not a number\" (NaN)" -msgstr "" +msgstr "非数 \"Not a number\" (NaN)" #: ../../library/cmath.rst:88 msgid ":data:`nanj`" @@ -585,7 +585,7 @@ msgstr "" #: ../../library/cmath.rst:300 msgid ":pep:`485` -- A function for testing approximate equality" -msgstr ":pep:`485` -- 近似的に等しいことを調べる関数" +msgstr ":pep:`485` -- A function for testing approximate equality" #: ../../library/cmath.rst:304 msgid "Constants" diff --git a/library/cmd.po b/library/cmd.po index 0fb70c975..9af723c47 100644 --- a/library/cmd.po +++ b/library/cmd.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/cmd.rst:2 diff --git a/library/cmdline.po b/library/cmdline.po index 8ead94775..d04764520 100644 --- a/library/cmdline.po +++ b/library/cmdline.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/cmdline.rst:5 diff --git a/library/code.po b/library/code.po index bfb70af7d..42b73d6ec 100644 --- a/library/code.po +++ b/library/code.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/code.rst:2 diff --git a/library/codecs.po b/library/codecs.po index 969b37acc..3430ee62a 100644 --- a/library/codecs.po +++ b/library/codecs.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/codecs.rst:2 diff --git a/library/codeop.po b/library/codeop.po index 14650d79d..12ab005e8 100644 --- a/library/codeop.po +++ b/library/codeop.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/codeop.rst:2 diff --git a/library/collections.abc.po b/library/collections.abc.po index 78d093cf2..e21c81d75 100644 --- a/library/collections.abc.po +++ b/library/collections.abc.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/collections.abc.rst:2 diff --git a/library/collections.po b/library/collections.po index 1d304e881..ae0cc0add 100644 --- a/library/collections.po +++ b/library/collections.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/collections.rst:2 @@ -258,6 +258,10 @@ msgid "" ">>> list(ChainMap(adjustments, baseline))\n" "['music', 'art', 'opera']" msgstr "" +">>> baseline = {'music': 'bach', 'art': 'rembrandt'}\n" +">>> adjustments = {'art': 'van gogh', 'opera': 'carmen'}\n" +">>> list(ChainMap(adjustments, baseline))\n" +"['music', 'art', 'opera']" #: ../../library/collections.rst:110 msgid "" @@ -274,6 +278,10 @@ msgid "" ">>> list(combined)\n" "['music', 'art', 'opera']" msgstr "" +">>> combined = baseline.copy()\n" +">>> combined.update(adjustments)\n" +">>> list(combined)\n" +"['music', 'art', 'opera']" #: ../../library/collections.rst:118 msgid "Added support for ``|`` and ``|=`` operators, specified in :pep:`584`." @@ -344,6 +352,8 @@ msgid "" "import builtins\n" "pylookup = ChainMap(locals(), globals(), vars(builtins))" msgstr "" +"import builtins\n" +"pylookup = ChainMap(locals(), globals(), vars(builtins))" #: ../../library/collections.rst:156 msgid "" @@ -1237,6 +1247,10 @@ msgid "" "normal dictionaries, return ``None`` as a default rather than using :attr:" "`default_factory`." msgstr "" +"なお、 :meth:`__missing__` は :meth:`~object.__getitem__` 以外のいかなる演算" +"に対しても呼び出され *ません* 。よって :meth:`~dict.get` は、普通の辞書と同様" +"に、 :attr:`default_factory` を使うのではなくデフォルトとして ``None`` を返し" +"ます。" #: ../../library/collections.rst:756 msgid ":class:`defaultdict` objects support the following instance variable:" @@ -1348,6 +1362,12 @@ msgid "" "`~object.__repr__` method which lists the tuple contents in a ``name=value`` " "format." msgstr "" +"*typename* という名前の tuple の新しいサブクラスを返します。新しいサブクラス" +"は、 tuple に似ているけれどもインデックスやイテレータだけでなく属性名によるア" +"クセスもできるオブジェクトを作るのに使います。このサブクラスのインスタンス" +"は、わかりやすい docstring (型名と属性名が入っています) や、 tuple の内容を " +"``name=value`` という形のリストで返す使いやすい :meth:`~object.__repr__` ã‚‚" +"持っています。" #: ../../library/collections.rst:856 msgid "" @@ -1407,6 +1427,8 @@ msgid "" "If *module* is defined, the :attr:`~type.__module__` attribute of the named " "tuple is set to that value." msgstr "" +"もし *module* が指定されていれば、名前付きタプルの :attr:`~type.__module__` " +"属性は、指定された値に設定されます" #: ../../library/collections.rst:881 msgid "" @@ -1442,13 +1464,15 @@ msgstr "*module* 引数が追加されました。" #: ../../library/collections.rst:897 msgid "Removed the *verbose* parameter and the :attr:`!_source` attribute." -msgstr "" +msgstr "*verbose* 引数と :attr:`!_source` 属性が削除されました。" #: ../../library/collections.rst:900 msgid "" "Added the *defaults* parameter and the :attr:`~somenamedtuple." "_field_defaults` attribute." msgstr "" +"*defaults* 引数と :attr:`~somenamedtuple._field_defaults` 属性が追加されまし" +"た。" #: ../../library/collections.rst:904 msgid "" @@ -1789,6 +1813,9 @@ msgid "" "different signature. It accepts an optional argument to specify which item " "is popped." msgstr "" +":class:`OrderedDict` の :meth:`~OrderedDict.popitem` メソッドはシグネチャが異" +"なります。\n" +"どの要素を取り出すかを指定するオプション引数を受け付けます。" #: ../../library/collections.rst:1116 msgid "" @@ -1814,6 +1841,8 @@ msgid "" ":class:`OrderedDict` has a :meth:`~OrderedDict.move_to_end` method to " "efficiently reposition an element to an endpoint." msgstr "" +":class:`OrderedDict` には、 効率的に要素を末尾に置き直す :meth:`~OrderedDict." +"move_to_end` メソッドがあります。" #: ../../library/collections.rst:1126 msgid "" @@ -1839,6 +1868,8 @@ msgstr "" msgid "" "Until Python 3.8, :class:`dict` lacked a :meth:`~object.__reversed__` method." msgstr "" +"Python 3.8 以前は、 :class:`dict` には :meth:`~object.__reversed__` メソッド" +"が欠けています。" #: ../../library/collections.rst:1139 msgid "" @@ -1917,6 +1948,8 @@ msgid "" "passed to the :class:`OrderedDict` constructor and its :meth:`~dict.update` " "method." msgstr "" +":pep:`468` の受理によって、:class:`OrderedDict` のコンストラクタと、:meth:" +"`~dict.update` メソッドに渡したキーワード引数の順序は保持されます。" #: ../../library/collections.rst:1197 msgid ":class:`OrderedDict` Examples and Recipes" diff --git a/library/colorsys.po b/library/colorsys.po index b23ce6dcd..96b08fa41 100644 --- a/library/colorsys.po +++ b/library/colorsys.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/colorsys.rst:2 diff --git a/library/compileall.po b/library/compileall.po index acb4319d5..057fa80f4 100644 --- a/library/compileall.po +++ b/library/compileall.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/compileall.rst:2 diff --git a/library/concurrency.po b/library/concurrency.po index 386b8cb4b..f35c0fe5e 100644 --- a/library/concurrency.po +++ b/library/concurrency.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/concurrency.rst:5 diff --git a/library/concurrent.futures.po b/library/concurrent.futures.po index 8d7e217b4..0ef903564 100644 --- a/library/concurrent.futures.po +++ b/library/concurrent.futures.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/concurrent.futures.rst:2 @@ -38,6 +38,9 @@ msgid "" "concurrent/futures/process.py`, and :source:`Lib/concurrent/futures/" "interpreter.py`" msgstr "" +"**ソースコード:** :source:`Lib/concurrent/futures/thread.py`、:source:`Lib/" +"concurrent/futures/process.py` および :source:`Lib/concurrent/futures/" +"interpreter.py`" #: ../../library/concurrent.futures.rst:15 msgid "" @@ -132,6 +135,8 @@ msgid "" "If a *fn* call raises an exception, then that exception will be raised when " "its value is retrieved from the iterator." msgstr "" +"もし *fn* の呼び出しが例外を送出した場合、その例外はイテレータから値を受け取" +"る時に送出されます。" #: ../../library/concurrent.futures.rst:65 msgid "" @@ -146,11 +151,11 @@ msgstr "" #: ../../library/concurrent.futures.rst:74 msgid "Added the *chunksize* parameter." -msgstr "" +msgstr "*chunksize* 引数が追加されました。" #: ../../library/concurrent.futures.rst:77 msgid "Added the *buffersize* parameter." -msgstr "" +msgstr "*buffersize* 引数が追加されました。" #: ../../library/concurrent.futures.rst:82 msgid "" @@ -322,6 +327,9 @@ msgid "" "class:`threading.Thread` names for worker threads created by the pool for " "easier debugging." msgstr "" +"*thread_name_prefix* 引数が追加され、デバッグしやすくなるようにプールから作ら" +"れたワーカスレッド :class:`threading.Thread` の名前を管理できるようになりまし" +"た。" #: ../../library/concurrent.futures.rst:188 #: ../../library/concurrent.futures.rst:401 @@ -385,7 +393,7 @@ msgstr "" #: ../../library/concurrent.futures.rst:240 msgid "InterpreterPoolExecutor" -msgstr "" +msgstr "InterpreterPoolExecutor" #: ../../library/concurrent.futures.rst:242 msgid "" @@ -595,6 +603,10 @@ msgid "" "behaviour was undefined but operations on the executor or its futures would " "often freeze or deadlock." msgstr "" +"ワーカプロセスの1つが突然終了した場合、:exc:`~concurrent.futures.process." +"BrokenProcessPool` エラーが送出されるようになりました。\n" +"以前は挙動は未定義でしたが、 executor ã‚„ futures がフリーズしたりデッドロッ" +"クを起こすことがしばしばでした。" #: ../../library/concurrent.futures.rst:397 msgid "" diff --git a/library/concurrent.po b/library/concurrent.po index c4d0f276c..3b8123a4b 100644 --- a/library/concurrent.po +++ b/library/concurrent.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/concurrent.rst:2 diff --git a/library/configparser.po b/library/configparser.po index 88aec4096..893cbb571 100644 --- a/library/configparser.po +++ b/library/configparser.po @@ -25,10 +25,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/configparser.rst:2 diff --git a/library/constants.po b/library/constants.po index 08e213032..23365ed42 100644 --- a/library/constants.po +++ b/library/constants.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/constants.rst:4 diff --git a/library/contextlib.po b/library/contextlib.po index ec46a3f12..871749dd0 100644 --- a/library/contextlib.po +++ b/library/contextlib.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/contextlib.rst:2 diff --git a/library/contextvars.po b/library/contextvars.po index e2b813c3c..b258d919c 100644 --- a/library/contextvars.po +++ b/library/contextvars.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/contextvars.rst:2 diff --git a/library/copy.po b/library/copy.po index cbfa8164d..db823e090 100644 --- a/library/copy.po +++ b/library/copy.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/copy.rst:2 @@ -56,11 +56,11 @@ msgstr "以下にインターフェースをまとめます:" #: ../../library/copy.rst:22 msgid "Return a shallow copy of *obj*." -msgstr "" +msgstr "*obj* の浅い (shallow) コピーを返します。" #: ../../library/copy.rst:27 msgid "Return a deep copy of *obj*." -msgstr "" +msgstr "*obj* の深い (deep) コピーを返します。" #: ../../library/copy.rst:32 msgid "" diff --git a/library/copyreg.po b/library/copyreg.po index dd76a3ab1..d5124c2d0 100644 --- a/library/copyreg.po +++ b/library/copyreg.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/copyreg.rst:2 diff --git a/library/crypt.po b/library/crypt.po index 0a7fdb541..36da4576a 100644 --- a/library/crypt.po +++ b/library/crypt.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/crypt.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/crypt.rst:14 msgid "" diff --git a/library/crypto.po b/library/crypto.po index 2c0081612..b3fc7f403 100644 --- a/library/crypto.po +++ b/library/crypto.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/crypto.rst:5 diff --git a/library/csv.po b/library/csv.po index 53abd0139..f06fd644f 100644 --- a/library/csv.po +++ b/library/csv.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/csv.rst:2 diff --git a/library/ctypes.po b/library/ctypes.po index 5d58f5114..ac5f8bf0e 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Nozomu Kaneko , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/ctypes.rst:2 @@ -390,7 +390,7 @@ msgstr ":class:`c_bool`" #: ../../library/ctypes.rst:219 msgid ":c:expr:`_Bool`" -msgstr "" +msgstr ":c:expr:`_Bool`" #: ../../library/ctypes.rst:219 msgid "bool (1)" diff --git a/library/curses.ascii.po b/library/curses.ascii.po index f72d0d9f7..cd86b0150 100644 --- a/library/curses.ascii.po +++ b/library/curses.ascii.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/curses.ascii.rst:2 diff --git a/library/curses.panel.po b/library/curses.panel.po index 2e5fae3c9..99306df28 100644 --- a/library/curses.panel.po +++ b/library/curses.panel.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/curses.panel.rst:2 diff --git a/library/curses.po b/library/curses.po index 58ccc804e..2686e86b1 100644 --- a/library/curses.po +++ b/library/curses.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/curses.rst:2 @@ -63,6 +63,8 @@ msgid "" "This module is not supported on :ref:`mobile platforms ` or :ref:`WebAssembly platforms `." msgstr "" +"このモジュールは :ref:`モバイルプラットフォーム ` と :" +"ref:`WebAssemblyプラットフォーム ` をサポートしません。" #: ../../library/curses.rst:28 msgid "" diff --git a/library/custominterp.po b/library/custominterp.po index 58d589b18..661ee6568 100644 --- a/library/custominterp.po +++ b/library/custominterp.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/custominterp.rst:5 diff --git a/library/dataclasses.po b/library/dataclasses.po index 22ab19387..77db13191 100644 --- a/library/dataclasses.po +++ b/library/dataclasses.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/dataclasses.rst:2 diff --git a/library/datatypes.po b/library/datatypes.po index d16e6da42..dcf63feb2 100644 --- a/library/datatypes.po +++ b/library/datatypes.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/datatypes.rst:5 diff --git a/library/datetime.po b/library/datetime.po index 583bc711f..0d03dfae8 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/datetime.rst:2 @@ -334,6 +334,8 @@ msgstr "" msgid "" "A :class:`.datetime` object ``d`` is aware if both of the following hold:" msgstr "" +"次の条件を両方とも満たす場合、 :class:`.datetime` オブジェクト ``d`` は " +"aware です:" #: ../../library/datetime.rst:185 msgid "``d.tzinfo`` is not ``None``" @@ -345,11 +347,13 @@ msgstr "``d.tzinfo.utcoffset(d)`` が ``None`` を返さない" #: ../../library/datetime.rst:188 msgid "Otherwise, ``d`` is naive." -msgstr "" +msgstr "どちらかを満たさない場合は、 ``d`` は naive です。" #: ../../library/datetime.rst:190 msgid "A :class:`.time` object ``t`` is aware if both of the following hold:" msgstr "" +"次の条件を両方とも満たす場合、 :class:`.time` オブジェクト ``t`` は aware で" +"す:" #: ../../library/datetime.rst:192 msgid "``t.tzinfo`` is not ``None``" @@ -361,7 +365,7 @@ msgstr "``t.tzinfo.utcoffset(None)`` が ``None`` を返さない" #: ../../library/datetime.rst:195 msgid "Otherwise, ``t`` is naive." -msgstr "" +msgstr "どちらかを満たさない場合は、 ``t`` は naive です。" #: ../../library/datetime.rst:197 msgid "" @@ -562,11 +566,11 @@ msgstr "インスタンスの属性 (読み出しのみ):" #: ../../library/datetime.rst:307 msgid "Between -999,999,999 and 999,999,999 inclusive." -msgstr "" +msgstr "両端値を含む-999,999,999 から 999,999,999 の間" #: ../../library/datetime.rst:312 msgid "Between 0 and 86,399 inclusive." -msgstr "" +msgstr "両端値を含む 0 から 86,399 の間" #: ../../library/datetime.rst:316 msgid "" @@ -587,7 +591,7 @@ msgstr "" #: ../../library/datetime.rst:331 msgid "Between 0 and 999,999 inclusive." -msgstr "" +msgstr "両端値を含む 0 から 999,999 の間" #: ../../library/datetime.rst:334 ../../library/datetime.rst:650 #: ../../library/datetime.rst:1248 @@ -708,6 +712,8 @@ msgid "" "Computes the quotient and the remainder: ``q = t1 // t2`` (3) and ``r = t1 % " "t2``. ``q`` is an integer and ``r`` is a :class:`timedelta` object." msgstr "" +"商と剰余が計算されます: ``q = t1 // t2`` (3) と ``r = t1 % t2`` 。``q`` は整" +"数で ``r`` は :class:`timedelta` オブジェクトです。" #: ../../library/datetime.rst:380 msgid "``+t1``" @@ -726,6 +732,8 @@ msgid "" "Equivalent to ``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``, and to " "``t1 * -1``. (1)(4)" msgstr "" +"``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``、および ``t1 * -1`` と" +"同じです。 (1)(4)" #: ../../library/datetime.rst:387 msgid "``abs(t)``" @@ -1020,6 +1028,10 @@ msgid "" ":exc:`ValueError` is raised unless ``1 <= ordinal <= date.max.toordinal()``. " "For any date ``d``, ``date.fromordinal(d.toordinal()) == d``." msgstr "" +"``1 <= ordinal <= date.max.toordinal()`` でない場合、 :exc:`ValueError` が送" +"出されます。\n" +"任意の日付 ``d`` に対し、 ``date.fromordinal(d.toordinal()) == d`` となりま" +"す。" #: ../../library/datetime.rst:551 msgid "" @@ -1082,7 +1094,7 @@ msgstr "" #: ../../library/datetime.rst:586 msgid "date(*(time.strptime(date_string, format)[0:3]))" -msgstr "" +msgstr "date(*(time.strptime(date_string, format)[0:3]))" #: ../../library/datetime.rst:588 msgid "" @@ -1090,6 +1102,10 @@ msgid "" "by :func:`time.strptime` or if it returns a value which isn't a time tuple. " "See also :ref:`strftime-strptime-behavior` and :meth:`date.fromisoformat`." msgstr "" +"date_string と format が :func:`time.strptime` で構文解析できない場合や、この" +"関数が時刻タプルを返してこない場合には :exc:`ValueError` を送出します。:ref:" +"`strftime-strptime-behavior` および :meth:`date.fromisoformat` も参照してくだ" +"さい。" #: ../../library/datetime.rst:595 msgid "" @@ -1324,6 +1340,9 @@ msgid "" "1 has ordinal 1. For any :class:`date` object ``d``, ``date.fromordinal(d." "toordinal()) == d``." msgstr "" +"先発グレゴリオ暦における日付序数を返します。 1 年の 1 月 1 日が序数 1 となり" +"ます。任意の :class:`date` オブジェクト ``d`` について、 ``date." +"fromordinal(d.toordinal()) == d`` となります。" #: ../../library/datetime.rst:755 msgid "" @@ -1407,6 +1426,8 @@ msgstr "" #: ../../library/datetime.rst:801 msgid "For a date ``d``, ``str(d)`` is equivalent to ``d.isoformat()``." msgstr "" +":class:`date` オブジェクト ``d`` において、``str(d)`` は ``d.isoformat()`` と" +"等価です。" #: ../../library/datetime.rst:806 msgid "Return a string representing the date::" diff --git a/library/dbm.po b/library/dbm.po index a9c0d2117..03cceb8d6 100644 --- a/library/dbm.po +++ b/library/dbm.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/dbm.rst:2 @@ -318,6 +318,8 @@ msgid "" "This module is not supported on :ref:`mobile platforms ` or :ref:`WebAssembly platforms `." msgstr "" +"このモジュールは :ref:`モバイルプラットフォーム ` と :" +"ref:`WebAssemblyプラットフォーム ` をサポートしません。" #: ../../library/dbm.rst:214 msgid "" diff --git a/library/debug.po b/library/debug.po index f4fb74bea..af1244ab4 100644 --- a/library/debug.po +++ b/library/debug.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/debug.rst:3 diff --git a/library/decimal.po b/library/decimal.po index 01922a333..64d824216 100644 --- a/library/decimal.po +++ b/library/decimal.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/decimal.rst:2 diff --git a/library/development.po b/library/development.po index 2b400eaca..6d9277784 100644 --- a/library/development.po +++ b/library/development.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/development.rst:5 diff --git a/library/devmode.po b/library/devmode.po index d3d0aecf4..a296c53b3 100644 --- a/library/devmode.po +++ b/library/devmode.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Yusuke Miyazaki , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/devmode.rst:4 @@ -47,28 +47,33 @@ msgstr "" #: ../../library/devmode.rst:19 msgid "Effects of the Python Development Mode" -msgstr "" +msgstr "Python 開発モードの影響" #: ../../library/devmode.rst:21 msgid "" "Enabling the Python Development Mode is similar to the following command, " "but with additional effects described below::" msgstr "" +"Python 開発モードを有効化することは次のコマンドに似ていますが、以下で説明され" +"る追加の影響があります::" #: ../../library/devmode.rst:24 msgid "" "PYTHONMALLOC=debug PYTHONASYNCIODEBUG=1 python -W default -X faulthandler" msgstr "" +"PYTHONMALLOC=debug PYTHONASYNCIODEBUG=1 python -W default -X faulthandler" #: ../../library/devmode.rst:26 msgid "Effects of the Python Development Mode:" -msgstr "" +msgstr "Python 開発モードの影響:" #: ../../library/devmode.rst:28 msgid "" "Add ``default`` :ref:`warning filter `. The " "following warnings are shown:" msgstr "" +"``default`` の :ref:`警告フィルタ ` を追加しま" +"す。次の警告が表示されます:" #: ../../library/devmode.rst:31 msgid ":exc:`DeprecationWarning`" @@ -91,6 +96,8 @@ msgid "" "Normally, the above warnings are filtered by the default :ref:`warning " "filters `." msgstr "" +"通常、上記の警告は デフォルトの :ref:`警告フィルタ ` によりフィルタリングされます。" #: ../../library/devmode.rst:39 msgid "" @@ -228,7 +235,7 @@ msgstr "" #: ../../library/devmode.rst:111 msgid "ResourceWarning Example" -msgstr "" +msgstr "ResourceWarning の例" #: ../../library/devmode.rst:113 msgid "" @@ -249,6 +256,16 @@ msgid "" "if __name__ == \"__main__\":\n" " main()" msgstr "" +"import sys\n" +"\n" +"def main():\n" +" fp = open(sys.argv[1])\n" +" nlines = len(fp.readlines())\n" +" print(nlines)\n" +" # ファイルは暗黙的に閉じられる\n" +"\n" +"if __name__ == \"__main__\":\n" +" main()" #: ../../library/devmode.rst:127 msgid "" @@ -261,6 +278,8 @@ msgid "" "$ python script.py README.txt\n" "269" msgstr "" +"$ python script.py README.txt\n" +"269" #: ../../library/devmode.rst:135 msgid "" @@ -277,6 +296,12 @@ msgid "" " main()\n" "ResourceWarning: Enable tracemalloc to get the object allocation traceback" msgstr "" +"$ python -X dev script.py README.txt\n" +"269\n" +"script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='README." +"rst' mode='r' encoding='UTF-8'>\n" +" main()\n" +"ResourceWarning: Enable tracemalloc to get the object allocation traceback" #: ../../library/devmode.rst:145 msgid "" @@ -297,6 +322,16 @@ msgid "" " File \"script.py\", lineno 4\n" " fp = open(sys.argv[1])" msgstr "" +"$ python -X dev -X tracemalloc=5 script.py README.rst\n" +"269\n" +"script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='README." +"rst' mode='r' encoding='UTF-8'>\n" +" main()\n" +"Object allocated at (most recent call last):\n" +" File \"script.py\", lineno 10\n" +" main()\n" +" File \"script.py\", lineno 4\n" +" fp = open(sys.argv[1])" #: ../../library/devmode.rst:160 msgid "" @@ -311,6 +346,11 @@ msgid "" " nlines = len(fp.readlines())\n" " print(nlines)" msgstr "" +"def main():\n" +" # ブロックを終了する際に明示的にファイルを閉じる\n" +" with open(sys.argv[1]) as fp:\n" +" nlines = len(fp.readlines())\n" +" print(nlines)" #: ../../library/devmode.rst:168 msgid "" @@ -341,6 +381,16 @@ msgid "" "\n" "main()" msgstr "" +"import os\n" +"\n" +"def main():\n" +" fp = open(__file__)\n" +" firstline = fp.readline()\n" +" print(firstline.rstrip())\n" +" os.close(fp.fileno())\n" +" # ファイルは暗黙的に閉じられる\n" +"\n" +"main()" #: ../../library/devmode.rst:190 msgid "By default, Python does not emit any warning:" @@ -351,6 +401,8 @@ msgid "" "$ python script.py\n" "import os" msgstr "" +"$ python script.py\n" +"import os" #: ../../library/devmode.rst:197 msgid "" @@ -373,6 +425,18 @@ msgid "" " main()\n" "OSError: [Errno 9] Bad file descriptor" msgstr "" +"$ python -X dev script.py\n" +"import os\n" +"script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='script." +"py' mode='r' encoding='UTF-8'>\n" +" main()\n" +"ResourceWarning: Enable tracemalloc to get the object allocation traceback\n" +"Exception ignored in: <_io.TextIOWrapper name='script.py' mode='r' " +"encoding='UTF-8'>\n" +"Traceback (most recent call last):\n" +" File \"script.py\", line 10, in \n" +" main()\n" +"OSError: [Errno 9] Bad file descriptor" #: ../../library/devmode.rst:213 msgid "" diff --git a/library/dialog.po b/library/dialog.po index ab565d348..f1a7b3f3f 100644 --- a/library/dialog.po +++ b/library/dialog.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/dialog.rst:2 diff --git a/library/difflib.po b/library/difflib.po index 190178db8..be11fa403 100644 --- a/library/difflib.po +++ b/library/difflib.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/difflib.rst:2 diff --git a/library/dis.po b/library/dis.po index 9a70d93be..7a2c32ed2 100644 --- a/library/dis.po +++ b/library/dis.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/dis.rst:2 diff --git a/library/distribution.po b/library/distribution.po index b3dddc3f6..5f88a8089 100644 --- a/library/distribution.po +++ b/library/distribution.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/distribution.rst:3 diff --git a/library/distutils.po b/library/distutils.po index fe2836c87..100fcaeab 100644 --- a/library/distutils.po +++ b/library/distutils.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/distutils.rst:2 diff --git a/library/doctest.po b/library/doctest.po index f73874b67..22290ac6d 100644 --- a/library/doctest.po +++ b/library/doctest.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/doctest.rst:2 @@ -150,6 +150,8 @@ msgid "" "$ python example.py\n" "$" msgstr "" +"$ python example.py\n" +"$" #: ../../library/doctest.rst:96 msgid "" @@ -222,6 +224,8 @@ msgid "" "The simplest way to start using doctest (but not necessarily the way you'll " "continue to do it) is to end each module :mod:`!M` with::" msgstr "" +"doctest を試す簡単な方法 (とはいえ、いつもそうする必要はないのですが) は、各" +"モジュール :mod:`!M` の最後を、以下のようにして締めくくることです::" #: ../../library/doctest.rst:152 msgid "" @@ -233,6 +237,7 @@ msgstr "" #: ../../library/doctest.rst:156 msgid ":mod:`!doctest` then examines docstrings in module :mod:`!M`." msgstr "" +"こうすると、 :mod:`!doctest` は :mod:`!M` 中の docstring を検査します。" #: ../../library/doctest.rst:158 msgid "" @@ -244,7 +249,7 @@ msgstr "" #: ../../library/doctest.rst:161 msgid "python M.py" -msgstr "" +msgstr "python M.py" #: ../../library/doctest.rst:163 msgid "" @@ -264,7 +269,7 @@ msgstr "一方、``-v`` スイッチをつけて走らせると::" #: ../../library/doctest.rst:170 msgid "python M.py -v" -msgstr "" +msgstr "python M.py -v" #: ../../library/doctest.rst:172 msgid "" @@ -317,6 +322,8 @@ msgid "" "import doctest\n" "doctest.testfile(\"example.txt\")" msgstr "" +"import doctest\n" +"doctest.testfile(\"example.txt\")" #: ../../library/doctest.rst:197 msgid "" @@ -416,7 +423,7 @@ msgstr "" #: ../../library/doctest.rst:253 msgid "Command-line Usage" -msgstr "" +msgstr "コマンドラインでの使用" #: ../../library/doctest.rst:255 msgid "" @@ -425,7 +432,7 @@ msgstr "" #: ../../library/doctest.rst:257 msgid "python -m doctest [-v] [-o OPTION] [-f] file [file ...]" -msgstr "" +msgstr "python -m doctest [-v] [-o OPTION] [-f] file [file ...]" #: ../../library/doctest.rst:265 msgid "" @@ -435,7 +442,7 @@ msgstr "" #: ../../library/doctest.rst:268 msgid "python -m doctest -v example.py" -msgstr "" +msgstr "python -m doctest -v example.py" #: ../../library/doctest.rst:270 msgid "" @@ -443,6 +450,10 @@ msgid "" "`testmod` on it. Note that this may not work correctly if the file is part " "of a package and imports other submodules from that package." msgstr "" +"こうすると :file:`example.py` を単体モジュールとしてインポートして、それに対" +"して :func:`testmod` を実行します。このファイルがパッケージの一部で他のサブモ" +"ジュールをそのパッケージからインポートしている場合はうまく動かないことに注意" +"してください。" #: ../../library/doctest.rst:274 msgid "" @@ -452,7 +463,7 @@ msgstr "" #: ../../library/doctest.rst:277 msgid "python -m doctest -v example.txt" -msgstr "" +msgstr "python -m doctest -v example.txt" #: ../../library/doctest.rst:281 msgid "" @@ -709,6 +720,13 @@ msgid "" "names defined earlier in the docstring being run. Examples cannot see names " "defined in other docstrings." msgstr "" +"デフォルトでは、 :mod:`doctest` はテストを行うべき docstring を見つけるたび" +"に :mod:`!M` のグローバル名前空間の *浅いコピー* を使い、テストの実行によって" +"モジュールの実際のグローバル名前空間を変更しないようにし、かつ :mod:`!M` 内で" +"行ったテストが痕跡を残して偶発的に別のテストを誤って動作させないようにしてい" +"ます。したがって、実行例中では :mod:`!M` 内のトップレベルで定義されたすべての" +"名前と、 docstring が動作する以前に定義された名前を自由に使えます。個々の実行" +"例は他の docstring 中で定義された名前を参照できません。" #: ../../library/doctest.rst:447 msgid "" @@ -1674,6 +1692,13 @@ msgid "" "*exclude_empty* argument to the newer :class:`DocTestFinder` constructor " "defaults to true." msgstr "" +"オプション引数 *exclude_empty* はデフォルトでは偽になっています。この値を真に" +"すると、doctest を持たないオブジェクトを考慮から外します。デフォルトの設定は" +"依存のバージョンとの互換性を考えたハックであり、:meth:`doctest.master." +"summarize ` と :func:`testmod` を合わせて利用してい" +"るようなコードでも、テスト実行例を持たないオブジェクトから出力を得るようにし" +"ています。新たに追加された :class:`DocTestFinder` のコンストラクタの " +"*exclude_empty* はデフォルトで真になります。" #: ../../library/doctest.rst:993 msgid "" @@ -1748,6 +1773,12 @@ msgid "" "discovery, include a :ref:`load_tests ` function in " "your test module::" msgstr "" +"doctest が付けられたモジュールが大きくなるにつれ、全ての doctest を組織的に実" +"行したくなるでしょう。 :mod:`doctest` モジュールは 2 つの関数を提供してい" +"て、 :mod:`unittest` のテストスイートを作り、 doctest を含んだテキストファイ" +"ルを作成するのに使えます。 :mod:`unittest` のテストディスカバリと組み合わせる" +"には、テストモジュールに :ref:`load_tests ` 関数を書いて" +"おいてください::" #: ../../library/doctest.rst:1029 msgid "" diff --git a/library/email.charset.po b/library/email.charset.po index 76d45453e..f9a9d7d9e 100644 --- a/library/email.charset.po +++ b/library/email.charset.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.charset.rst:2 diff --git a/library/email.compat32-message.po b/library/email.compat32-message.po index e7e4d7ba1..7c171341d 100644 --- a/library/email.compat32-message.po +++ b/library/email.compat32-message.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.compat32-message.rst:4 diff --git a/library/email.contentmanager.po b/library/email.contentmanager.po index ce024a87a..e98b96a82 100644 --- a/library/email.contentmanager.po +++ b/library/email.contentmanager.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Tetsuo Koyama , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.contentmanager.rst:2 diff --git a/library/email.encoders.po b/library/email.encoders.po index 3ed57d1b5..68be4fca9 100644 --- a/library/email.encoders.po +++ b/library/email.encoders.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.encoders.rst:2 diff --git a/library/email.errors.po b/library/email.errors.po index 7d7ea066d..c59ac6ac2 100644 --- a/library/email.errors.po +++ b/library/email.errors.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.errors.rst:2 diff --git a/library/email.examples.po b/library/email.examples.po index 3360e6254..a7c56bb45 100644 --- a/library/email.examples.po +++ b/library/email.examples.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.examples.rst:4 diff --git a/library/email.generator.po b/library/email.generator.po index 11732ceef..b6dd199b9 100644 --- a/library/email.generator.po +++ b/library/email.generator.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.generator.rst:2 diff --git a/library/email.header.po b/library/email.header.po index bad09dd56..5923b087c 100644 --- a/library/email.header.po +++ b/library/email.header.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.header.rst:2 diff --git a/library/email.headerregistry.po b/library/email.headerregistry.po index e72426007..b6df1adce 100644 --- a/library/email.headerregistry.po +++ b/library/email.headerregistry.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.headerregistry.rst:2 diff --git a/library/email.iterators.po b/library/email.iterators.po index 9db56e72c..b83a177a6 100644 --- a/library/email.iterators.po +++ b/library/email.iterators.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.iterators.rst:2 diff --git a/library/email.message.po b/library/email.message.po index 785d896c6..a43a1c6e2 100644 --- a/library/email.message.po +++ b/library/email.message.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Tetsuo Koyama , 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.message.rst:2 diff --git a/library/email.mime.po b/library/email.mime.po index 2a6bc204e..f24cb2d82 100644 --- a/library/email.mime.po +++ b/library/email.mime.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.mime.rst:2 diff --git a/library/email.parser.po b/library/email.parser.po index c974887ed..6fd8808b2 100644 --- a/library/email.parser.po +++ b/library/email.parser.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.parser.rst:2 diff --git a/library/email.po b/library/email.po index e345b1055..35fc361e2 100644 --- a/library/email.po +++ b/library/email.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.rst:2 diff --git a/library/email.policy.po b/library/email.policy.po index 0307ce661..150d14d1b 100644 --- a/library/email.policy.po +++ b/library/email.policy.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.policy.rst:2 diff --git a/library/email.utils.po b/library/email.utils.po index bbe463641..7f1b3f976 100644 --- a/library/email.utils.po +++ b/library/email.utils.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/email.utils.rst:2 diff --git a/library/ensurepip.po b/library/ensurepip.po index 75c084f9f..4a6aee558 100644 --- a/library/ensurepip.po +++ b/library/ensurepip.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/ensurepip.rst:2 @@ -93,6 +93,8 @@ msgid "" "This module is not supported on :ref:`mobile platforms ` or :ref:`WebAssembly platforms `." msgstr "" +"このモジュールは :ref:`モバイルプラットフォーム ` と :" +"ref:`WebAssemblyプラットフォーム ` をサポートしません。" #: ../../library/ensurepip.rst:44 msgid "Command line interface" diff --git a/library/enum.po b/library/enum.po index 2c1e46e82..9ab2fe743 100644 --- a/library/enum.po +++ b/library/enum.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/enum.rst:2 @@ -187,7 +187,7 @@ msgid "" "bitwise operations without losing their :class:`Flag` membership." msgstr "" "列挙型定数を作成する基底クラスで、ビット演算を使って組み合わせられ、その結果" -"ã‚‚ :class:`IntFlag` メンバーになります。" +"ã‚‚ :class:`Flag` メンバーになります。" #: ../../library/enum.rst:90 msgid ":class:`IntFlag`" @@ -409,7 +409,7 @@ msgstr "新しく作成するEnumの名前。" #: ../../library/enum.rst:0 msgid "names" -msgstr "names" +msgstr "名前" #: ../../library/enum.rst:192 msgid "The names/values of the members for the new Enum." diff --git a/library/errno.po b/library/errno.po index 789c7707d..ba9b586a5 100644 --- a/library/errno.po +++ b/library/errno.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/errno.rst:2 diff --git a/library/exceptions.po b/library/exceptions.po index e5e76a8ed..39ee7eea1 100644 --- a/library/exceptions.po +++ b/library/exceptions.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/exceptions.rst:4 diff --git a/library/faulthandler.po b/library/faulthandler.po index f98949dc4..b0fd88623 100644 --- a/library/faulthandler.po +++ b/library/faulthandler.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/faulthandler.rst:2 @@ -127,7 +127,7 @@ msgstr "" #: ../../library/faulthandler.rst:49 msgid "Module :mod:`pdb`" -msgstr "" +msgstr ":mod:`pdb` モジュール" #: ../../library/faulthandler.rst:50 msgid "Interactive source code debugger for Python programs." diff --git a/library/fcntl.po b/library/fcntl.po index e9d9976b5..a049af521 100644 --- a/library/fcntl.po +++ b/library/fcntl.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/fcntl.rst:2 diff --git a/library/filecmp.po b/library/filecmp.po index 47cd9c295..716de7e4e 100644 --- a/library/filecmp.po +++ b/library/filecmp.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/filecmp.rst:2 diff --git a/library/fileformats.po b/library/fileformats.po index b3f2a36c0..ad67e5e3a 100644 --- a/library/fileformats.po +++ b/library/fileformats.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/fileformats.rst:5 diff --git a/library/fileinput.po b/library/fileinput.po index e2e2ec265..b32e1bb4f 100644 --- a/library/fileinput.po +++ b/library/fileinput.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/fileinput.rst:2 diff --git a/library/filesys.po b/library/filesys.po index d93c1fb16..2f30414b2 100644 --- a/library/filesys.po +++ b/library/filesys.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/filesys.rst:5 diff --git a/library/fnmatch.po b/library/fnmatch.po index 2930f573e..8e08d8b0e 100644 --- a/library/fnmatch.po +++ b/library/fnmatch.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/fnmatch.rst:2 diff --git a/library/fractions.po b/library/fractions.po index 48106deb0..6159060b3 100644 --- a/library/fractions.po +++ b/library/fractions.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/fractions.rst:2 diff --git a/library/frameworks.po b/library/frameworks.po index bd744ed2c..a1d02cfea 100644 --- a/library/frameworks.po +++ b/library/frameworks.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/frameworks.rst:5 diff --git a/library/ftplib.po b/library/ftplib.po index 933ab0b83..f30112505 100644 --- a/library/ftplib.po +++ b/library/ftplib.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/ftplib.rst:2 diff --git a/library/functional.po b/library/functional.po index e7e21278d..b215afc4c 100644 --- a/library/functional.po +++ b/library/functional.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/functional.rst:3 diff --git a/library/functions.po b/library/functions.po index 40670be58..caea44c71 100644 --- a/library/functions.po +++ b/library/functions.po @@ -33,10 +33,10 @@ msgstr "" "Last-Translator: TENMYO Masakazu, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/functions.rst:5 ../../library/functions.rst:11 @@ -1101,6 +1101,7 @@ msgid "" "See also :meth:`complex.from_number` which only accepts a single numeric " "argument." msgstr "" +"数値を一つだけ引数にとる :meth:`complex.from_number` も参照してください。" #: ../../library/functions.rst:445 msgid "If all arguments are omitted, returns ``0j``." @@ -1128,6 +1129,8 @@ msgid "" "Passing a complex number as the *real* or *imag* argument is now deprecated; " "it should only be passed as a single positional argument." msgstr "" +"複素数を *real* 引数または *imag* 引数として渡せる機能は非推奨となりました。" +"単一の位置引数として渡してください。" #: ../../library/functions.rst:463 msgid "" @@ -1647,6 +1650,7 @@ msgstr "" msgid "" "See also :meth:`float.from_number` which only accepts a numeric argument." msgstr "" +"数値型の値のみ引数にとる :meth:`float.from_number` も参照してください。" #: ../../library/functions.rst:808 msgid "If no argument is given, ``0.0`` is returned." @@ -1917,6 +1921,10 @@ msgid "" ">>> s\n" "\"Monty Python's Flying Circus\"" msgstr "" +">>> s = input('--> ')\n" +"--> Monty Python's Flying Circus\n" +">>> s\n" +"\"Monty Python's Flying Circus\"" #: ../../library/functions.rst:986 msgid "" @@ -1984,6 +1992,10 @@ msgid "" "__int__()``. If the argument defines :meth:`~object.__index__`, it returns " "``x.__index__()``. For floating-point numbers, this truncates towards zero." msgstr "" +"引数に :meth:`~object.__int__` が定義されている場合は、 ``int(x)`` は ``x." +"__int__()`` を返します。引数に :meth:`~object.__index__` が定義されている場合" +"は、 ``x.__index__()`` を返します。浮動小数点数については、これは 0 に近い側" +"へ切り捨てます。" #: ../../library/functions.rst:1028 msgid "" @@ -2316,10 +2328,18 @@ msgid "" "cases where the function inputs are already arranged into argument tuples, " "see :func:`itertools.starmap`." msgstr "" +"*function* ã‚’ *iterable* の全ての要素に適用した結果を返していくイテレータを返" +"します。追加で *iterables* 引数が渡された場合、 *function* はその数だけの引数" +"を取らなければならず、全てのイテラブルから並行して取り出された要素に適用され" +"ます。複数のイテラブルがあるとき、このイテレータはその中の最短のイテラブルが" +"尽きた時点で止まります。 *strict* が ``True`` の場合は、ある iterable が他の " +"iterable より先に尽きると :exc:`ValueError` 例外が発生します。関数の入力がす" +"でに引数のタプルの形で渡される場合は、 :func:`itertools.starmap` を使用してく" +"ださい。" #: ../../library/functions.rst:1219 msgid "Added the *strict* parameter." -msgstr "" +msgstr "*strict* パラメータが追加されました。" #: ../../library/functions.rst:1227 msgid "" @@ -2428,12 +2448,19 @@ msgid "" "called, it returns a new featureless object. The constructor does not accept " "any arguments." msgstr "" +"これが、あらゆるクラスに継承される大本のベースクラスです。このクラスが持つメ" +"ソッドは、どの Python クラスのインスタンスにもあります。コンストラクタを呼び" +"出すと、まっさらなオブジェクトが返ります。コンストラクタに引数は指定できませ" +"ん。" #: ../../library/functions.rst:1308 msgid "" ":class:`object` instances do *not* have :attr:`~object.__dict__` attributes, " "so you can't assign arbitrary attributes to an instance of :class:`object`." msgstr "" +":class:`object` インスタンスは :attr:`~object.__dict__` 属性を *持たない* の" +"で、 :class:`object` クラスのインスタンスに任意の属性を代入することはできま" +"せん。" #: ../../library/functions.rst:1315 msgid "" @@ -2638,6 +2665,10 @@ msgid "" "size is available. On most systems, the buffer will typically be 128 " "kilobytes long." msgstr "" +"バイナリモードでは、固定サイズのチャンクバッファが使われます。バッファのサイ" +"ズは、デバイスのブロックサイズが取得できる場合は ``max(min(blocksize, 8 " +"MiB), DEFAULT_BUFFER_SIZE)`` です。ほとんどの環境では、このバッファは通常 " +"128 キロバイトです。" #: ../../library/functions.rst:1413 msgid "" @@ -2888,7 +2919,7 @@ msgid "" "``mode``, ``flags``." msgstr "" "引数 ``path``, ``mode``, ``flags`` を指定して :ref:`監査イベント ` " -"``open`` を送出します。 " +"``open`` を送出します。" #: ../../library/functions.rst:1534 msgid "" @@ -3736,6 +3767,9 @@ msgid "" "> A -> object`` and the value of *type* is ``B``, then :func:`super` " "searches ``C -> A -> object``." msgstr "" +"例えば *object_or_type* の :attr:`~type.__mro__` 属性が ``D -> B -> C -> A -" +"> object`` であり、 *type* の値が ``B`` だとすると、 :func:`super` は ``C -> " +"A -> object`` の順番でメソッドを検索します。" #: ../../library/functions.rst:1989 msgid "" @@ -3878,6 +3912,8 @@ msgid "" ":class:`super` objects are now :mod:`pickleable ` and :mod:" "`copyable `." msgstr "" +":class:`super` オブジェクトは :term:`pickle 可能 ` かつ :term:`コピー" +"可能 ` になりました。" #: ../../library/functions.rst:2061 msgid "" @@ -3893,6 +3929,8 @@ msgid "" "type object and generally the same object as returned by :attr:`object." "__class__`." msgstr "" +"引数が1つだけの場合、*object* の型を返します。返り値は型オブジェクトで、一般" +"に :attr:`object.__class__` によって返されるのと同じオブジェクトです。" #: ../../library/functions.rst:2074 msgid "" @@ -3914,6 +3952,14 @@ msgid "" "__dict__` attribute. The following two statements create identical :class:`!" "type` objects:" msgstr "" +"引数が3つの場合、新しい型オブジェクトを返します。これは本質的には :keyword:" +"`class` 文の動的な書式です。 *name* 文字列はクラス名で、 :attr:`~type." +"__name__` 属性になります。 *bases* 基底クラスのタプルで、 :attr:`~type." +"__bases__` 属性になります; 空の場合は全てのクラスの基底クラスである :class:" +"`object` が追加されます。 *dict* は、クラス本体の属性とメソッドの定義を含む辞" +"書です; 辞書は :attr:`~type.__dict__` 属性になる前にコピーされたり、ラップさ" +"れることがあります。以下の2つの文は同じ :class:`!type` オブジェクトを生成しま" +"す:" #: ../../library/functions.rst:2092 msgid "See also:" @@ -3951,12 +3997,16 @@ msgid "" "Subclasses of :class:`!type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." msgstr "" +"``type.__new__`` をオーバーライドしていない :class:`!type` のサブクラスは、オ" +"ブジェクトの型を得るのに1引数形式を利用することができません。" #: ../../library/functions.rst:2111 msgid "" "Return the :attr:`~object.__dict__` attribute for a module, class, instance, " "or any other object with a :attr:`!__dict__` attribute." msgstr "" +"モジュール、クラス、インスタンス、あるいはそれ以外の :attr:`!__dict__` 属性を" +"持つオブジェクトの、 :attr:`~object.__dict__` 属性を返します。" #: ../../library/functions.rst:2114 msgid "" @@ -3965,6 +4015,11 @@ msgid "" "their :attr:`!__dict__` attributes (for example, classes use a :class:`types." "MappingProxyType` to prevent direct dictionary updates)." msgstr "" +"モジュールやインスタンスのようなオブジェクトは、更新可能な :attr:`~object." +"__dict__` 属性を持っています。ただし、それ以外のオブジェクトでは :attr:`!" +"__dict__` 属性への書き込みが制限されている場合があります。書き込みに制限があ" +"る例としては、辞書を直接更新されることを防ぐために :class:`types." +"MappingProxyType` を使っているクラスがあります。" #: ../../library/functions.rst:2119 msgid "Without an argument, :func:`vars` acts like :func:`locals`." diff --git a/library/functools.po b/library/functools.po index e58e5f765..168370264 100644 --- a/library/functools.po +++ b/library/functools.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Atsuo Ishimoto , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/functools.rst:2 diff --git a/library/gc.po b/library/gc.po index 78c5d3b1e..48230ad7a 100644 --- a/library/gc.po +++ b/library/gc.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/gc.rst:2 diff --git a/library/getopt.po b/library/getopt.po index ae5857d10..ab49c851a 100644 --- a/library/getopt.po +++ b/library/getopt.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/getopt.rst:2 diff --git a/library/getpass.po b/library/getpass.po index 1a904b618..eddc1d204 100644 --- a/library/getpass.po +++ b/library/getpass.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/getpass.rst:2 diff --git a/library/gettext.po b/library/gettext.po index ae95c30fb..4cd3d505e 100644 --- a/library/gettext.po +++ b/library/gettext.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/gettext.rst:2 diff --git a/library/glob.po b/library/glob.po index 25320f12a..d71d39354 100644 --- a/library/glob.po +++ b/library/glob.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/glob.rst:2 diff --git a/library/graphlib.po b/library/graphlib.po index 61b00d2b5..2912b1fdd 100644 --- a/library/graphlib.po +++ b/library/graphlib.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/graphlib.rst:2 diff --git a/library/grp.po b/library/grp.po index 1624611dd..e8435f237 100644 --- a/library/grp.po +++ b/library/grp.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/grp.rst:2 diff --git a/library/gzip.po b/library/gzip.po index 82363bdcf..e940e90c8 100644 --- a/library/gzip.po +++ b/library/gzip.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/gzip.rst:2 @@ -156,6 +156,10 @@ msgid "" "IOBase.truncate` method. At least one of *fileobj* and *filename* must be " "given a non-trivial value." msgstr "" +":class:`GzipFile` クラスのコンストラクタです。:class:`GzipFile` オブジェクト" +"は :meth:`~io.IOBase.truncate` メソッドを除くほとんどの :term:`ファイルオブ" +"ジェクト ` のメソッドをシミュレートします。少なくとも *fileobj* " +"および *filename* は有効な値でなければなりません。" #: ../../library/gzip.rst:77 msgid "" @@ -235,6 +239,12 @@ msgid "" "writing as *fileobj*, and retrieve the resulting memory buffer using the :" "class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method." msgstr "" +"圧縮したデータの後ろにさらに何か追加したい場合もあるので、:class:`GzipFile` " +"オブジェクトの :meth:`!close` メソッド呼び出しは *fileobj* を閉じません。\n" +"このため、書き込みのためにオープンした :class:`io.BytesIO` オブジェクトを " +"*fileobj* として渡し、(:class:`GzipFile` ã‚’ :meth:`close` した後に) :class:" +"`io.BytesIO` オブジェクトの :meth:`~io.BytesIO.getvalue` メソッドを使って書き" +"込んだデータの入っているメモリバッファを取得することができます。" #: ../../library/gzip.rst:116 msgid "" @@ -242,6 +252,9 @@ msgid "" "including iteration and the :keyword:`with` statement. Only the :meth:`~io." "IOBase.truncate` method isn't implemented." msgstr "" +":class:`GzipFile` は、イテレーションと :keyword:`with` 文を含む :class:`io." +"BufferedIOBase` インターフェイスをサポートしています。:meth:`~io.IOBase." +"truncate` メソッドのみ実装されていません。" #: ../../library/gzip.rst:120 msgid ":class:`GzipFile` also provides the following method and attribute:" @@ -252,6 +265,8 @@ msgid "" "Read *n* uncompressed bytes without advancing the file position. The number " "of bytes returned may be more or less than requested." msgstr "" +"ファイル内の位置を移動せずに展開した *n* バイトを読み込みます。返されるバイト" +"数はほぼ要求した値になります。" #: ../../library/gzip.rst:127 msgid "" diff --git a/library/hashlib.po b/library/hashlib.po index 3b7d0661c..0d1587200 100644 --- a/library/hashlib.po +++ b/library/hashlib.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/hashlib.rst:2 @@ -63,6 +63,14 @@ msgid "" "using the :meth:`digest()` or :meth:`hexdigest()` methods." msgstr "" +"各 :dfn:`hash` の名前が付いたコンストラクタがあります。いずれも同一で簡単なイ" +"ンターフェイスのあるハッシュオブジェクトを返します。例えば、SHA-256 ハッシュ" +"オブジェクトを作るには :func:`sha256` を使います。このオブジェクトには :meth:" +"`update` メソッドを用いて :term:`bytes-like オブジェクト ` (通常 :class:`bytes`) を渡すことができます。:meth:" +"`digest()` ã‚„ :meth:`hexdigest()` メソッドを用い" +"て、それまでに渡したデータを連結したものの :dfn:`digest` をいつでも要求するこ" +"とができます。" #: ../../library/hashlib.rst:48 msgid "" @@ -133,6 +141,8 @@ msgid "" "To obtain the digest of the byte string ``b\"Nobody inspects the spammish " "repetition\"``::" msgstr "" +"``b\"Nobody inspects the spammish repetition\"``というバイト文字列のダイジェ" +"ストを取得するには次のようにします::" #: ../../library/hashlib.rst:103 msgid "" @@ -154,7 +164,7 @@ msgstr "もっと簡潔に書くと、このようになります:" #: ../../library/hashlib.rst:118 msgid "Constructors" -msgstr "" +msgstr "コンストラクタ" #: ../../library/hashlib.rst:122 msgid "" @@ -163,6 +173,9 @@ msgid "" "above listed hashes as well as any other algorithms that your OpenSSL " "library may offer." msgstr "" +"一般的なコンストラクタで、第一引数にアルゴリズム名を文字列 *name* で受け取り" +"ます。他にも、前述のハッシュアルゴリズムだけでなく OpenSSL ライブラリーが提供" +"するような他のアルゴリズムにアクセスすることができます。" #: ../../library/hashlib.rst:127 msgid "Using :func:`new` with an algorithm name:" @@ -309,6 +322,9 @@ msgid "" "far. This is a bytes object of size *length* which may contain bytes in the " "whole range from 0 to 255." msgstr "" +"これまで :meth:`~hash.update` メソッドに渡されたデータのダイジェスト値を返し" +"ます。これは *length* と同じ長さの、0 から 255 の範囲全てを含み得るバイトの列" +"です。" #: ../../library/hashlib.rst:250 msgid "" @@ -316,14 +332,16 @@ msgid "" "double length, containing only hexadecimal digits. This may be used to " "exchange the value in email or other non-binary environments." msgstr "" +":meth:`digest` と似ていますが、倍の長さの、16進形式文字列を返します。これは、" +"電子メールなどの非バイナリ環境で値を交換する場合に便利です。" #: ../../library/hashlib.rst:254 msgid "Example use:" -msgstr "" +msgstr "使用例:" #: ../../library/hashlib.rst:261 msgid "File hashing" -msgstr "" +msgstr "ファイルのハッシュ化" #: ../../library/hashlib.rst:263 msgid "" @@ -424,6 +442,9 @@ msgid "" "then the digest size of the hash algorithm *hash_name* is used, e.g. 64 for " "SHA-512." msgstr "" +"*dklen* は、導出されたバイト列の鍵の長さです。 *dklen* が ``None`` の場合、" +"ハッシュアルゴリズム *hash_name* のダイジェストサイズが使われます。例えば " +"SHA-512 では 64 です。" #: ../../library/hashlib.rst:345 msgid "Function only available when Python is compiled with OpenSSL." @@ -1093,7 +1114,7 @@ msgstr "" #: ../../library/hashlib.rst:846 msgid "https://www.ietf.org/rfc/rfc8018.txt" -msgstr "" +msgstr "https://www.ietf.org/rfc/rfc8018.txt" #: ../../library/hashlib.rst:847 msgid "PKCS #5: Password-Based Cryptography Specification Version 2.1" @@ -1103,6 +1124,7 @@ msgstr "" msgid "" "https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf" msgstr "" +"https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf" #: ../../library/hashlib.rst:850 msgid "NIST Recommendation for Password-Based Key Derivation." diff --git a/library/heapq.po b/library/heapq.po index 0c98237fe..f49d0d0c5 100644 --- a/library/heapq.po +++ b/library/heapq.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/heapq.rst:2 diff --git a/library/hmac.po b/library/hmac.po index eca7a98f8..3b90502d6 100644 --- a/library/hmac.po +++ b/library/hmac.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/hmac.rst:2 diff --git a/library/html.entities.po b/library/html.entities.po index dce2739f5..ee5c2eb24 100644 --- a/library/html.entities.po +++ b/library/html.entities.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/html.entities.rst:2 diff --git a/library/html.parser.po b/library/html.parser.po index 7c32bee84..19a1c2e8f 100644 --- a/library/html.parser.po +++ b/library/html.parser.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Atsuo Ishimoto , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/html.parser.rst:2 diff --git a/library/html.po b/library/html.po index b3f5c8ba5..fbeec1621 100644 --- a/library/html.po +++ b/library/html.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/html.rst:2 diff --git a/library/http.client.po b/library/http.client.po index d0827d6f9..58a1d34a4 100644 --- a/library/http.client.po +++ b/library/http.client.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/http.client.rst:2 diff --git a/library/http.cookiejar.po b/library/http.cookiejar.po index 9233d5ab7..b6bddb08d 100644 --- a/library/http.cookiejar.po +++ b/library/http.cookiejar.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/http.cookiejar.rst:2 diff --git a/library/http.cookies.po b/library/http.cookies.po index 2a4f058cd..b47547408 100644 --- a/library/http.cookies.po +++ b/library/http.cookies.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/http.cookies.rst:2 diff --git a/library/http.po b/library/http.po index a7cac5ea1..6009dd712 100644 --- a/library/http.po +++ b/library/http.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/http.rst:2 diff --git a/library/http.server.po b/library/http.server.po index e9c3cbc19..dc2bc3392 100644 --- a/library/http.server.po +++ b/library/http.server.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: HIdeo Haga, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/http.server.rst:2 diff --git a/library/i18n.po b/library/i18n.po index eac0dbe74..b2d5f1013 100644 --- a/library/i18n.po +++ b/library/i18n.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Taichi Haradaguchi, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/i18n.rst:5 diff --git a/library/idle.po b/library/idle.po index 51b93e922..2f81937c8 100644 --- a/library/idle.po +++ b/library/idle.po @@ -17,15 +17,15 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/idle.rst:4 msgid "IDLE --- Python editor and shell" -msgstr "" +msgstr "IDLE --- Python のエディタとシェル" #: ../../library/idle.rst:8 msgid "**Source code:** :source:`Lib/idlelib/`" diff --git a/library/imaplib.po b/library/imaplib.po index d367bbcfd..a7b5126fc 100644 --- a/library/imaplib.po +++ b/library/imaplib.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/imaplib.rst:2 diff --git a/library/imghdr.po b/library/imghdr.po index eca21db02..194807e5a 100644 --- a/library/imghdr.po +++ b/library/imghdr.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/imghdr.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/imghdr.rst:14 msgid "" diff --git a/library/imp.po b/library/imp.po index fbf82eecb..a8fa1bff9 100644 --- a/library/imp.po +++ b/library/imp.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:02+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/imp.rst:2 diff --git a/library/importlib.metadata.po b/library/importlib.metadata.po index f3507b704..2e8d699be 100644 --- a/library/importlib.metadata.po +++ b/library/importlib.metadata.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/importlib.metadata.rst:5 @@ -187,7 +187,7 @@ msgstr "" #: ../../library/importlib.metadata.rst:111 msgid "Functional API" -msgstr "機能 API" +msgstr "関数 API" #: ../../library/importlib.metadata.rst:113 msgid "This package provides the following functionality via its public API." diff --git a/library/importlib.po b/library/importlib.po index f069a731a..722fdc9ae 100644 --- a/library/importlib.po +++ b/library/importlib.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/importlib.rst:2 @@ -1775,10 +1775,10 @@ msgstr "" "う。 ``_whiz`` がバイナリモジュール ``sources/foo/bar/_whiz.abi3.so`` で実装" "されており、 ``sources`` のアプリケーションバンドルからの相対パスが ``sys." "path`` に登録されています。このモジュールは ``Frameworks/foo.bar._whiz." -"framework/foo.bar._whiz`` (フレームワーク名はモジュールの完全なインポートパ" -"スから命名されています)として、 ``Info.plist`` ファイルをバイナリをフレーム" -"ワークとして識別する ``.framework`` ディレクトリ内に設置して配布しなければな" -"りません。 ``foo.bar._whiz`` モジュールは、元の場所で、 ``Frameworks/foo.bar." +"framework/foo.bar._whiz`` (フレームワーク名はモジュールの完全なインポートパス" +"から命名されています) として、バイナリをフレームワークとして識別する ``Info." +"plist`` ファイルを ``.framework`` ディレクトリ内に設置して配布しなければなり" +"ません。 ``foo.bar._whiz`` モジュールは、元の場所で、 ``Frameworks/foo.bar." "_whiz/foo.bar._whiz`` のパスを含む ``sources/foo/bar/_whiz.abi3.fwork`` マー" "カーファイルに記述されます。 また、フレームワークは、 ``.fwork`` へのパスを含" "ã‚€ ``Frameworks/foo.bar._whiz.framework/foo.bar._whiz.origin`` も含まなければ" diff --git a/library/importlib.resources.abc.po b/library/importlib.resources.abc.po index 6c97d59e4..673700aec 100644 --- a/library/importlib.resources.abc.po +++ b/library/importlib.resources.abc.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/importlib.resources.abc.rst:2 diff --git a/library/importlib.resources.po b/library/importlib.resources.po index f399658f7..0ab69e9af 100644 --- a/library/importlib.resources.po +++ b/library/importlib.resources.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/importlib.resources.rst:2 diff --git a/library/index.po b/library/index.po index 005af31b1..ed68fd7be 100644 --- a/library/index.po +++ b/library/index.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/index.rst:5 diff --git a/library/inspect.po b/library/inspect.po index 68d8aa9bf..63abba737 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/inspect.rst:2 @@ -866,6 +866,9 @@ msgid "" "This may be of use for sync functions that return a :term:`coroutine`, if " "the function is passed to an API that requires :func:`iscoroutinefunction`." msgstr "" +"これは、コルーチン :term:`coroutine` を返す同期関数が、 :func:" +"`iscoroutinefunction` が真であることを要求するAPIに渡される場合に役に立つかも" +"しれません。" #: ../../library/inspect.rst:447 msgid "" @@ -873,6 +876,9 @@ msgid "" "acceptable is calling the function and testing the return with :func:" "`iscoroutine`." msgstr "" +"可能なら、 :keyword:`async def` を使った関数定義が好ましいです。また、関数を" +"呼び出した上でその戻り値を :func:`iscoroutine` でテストする方法も容認できま" +"す。" #: ../../library/inspect.rst:456 msgid "" @@ -893,6 +899,7 @@ msgid "" "Can also be used to distinguish generator-based coroutines from regular " "generators:" msgstr "" +"ジェネレータベースのコルーチンと通常のジェネレータを区別するのにも使えます:" #: ../../library/inspect.rst:469 msgid "" @@ -907,12 +914,24 @@ msgid "" "assert not isawaitable(gen())\n" "assert isawaitable(gen_coro())" msgstr "" +"import types\n" +"\n" +"def gen():\n" +" yield\n" +"@types.coroutine\n" +"def gen_coro():\n" +" yield\n" +"\n" +"assert not isawaitable(gen())\n" +"assert isawaitable(gen_coro())" #: ../../library/inspect.rst:487 msgid "" "Return ``True`` if the object is an :term:`asynchronous generator` function, " "for example:" msgstr "" +"オブジェクトが非同期ジェネレータ :term:`asynchronous generator` 関数である場" +"合に ``True`` を返します。使用例:" #: ../../library/inspect.rst:490 msgid "" @@ -922,12 +941,20 @@ msgid "" ">>> inspect.isasyncgenfunction(agen)\n" "True" msgstr "" +">>> async def agen():\n" +"... yield 1\n" +"...\n" +">>> inspect.isasyncgenfunction(agen)\n" +"True" #: ../../library/inspect.rst:500 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is an :term:`asynchronous generator` function." msgstr "" +":func:`functools.partial` でラップされた関数でも、元の関数が非同期ジェネレー" +"ã‚¿ :term:`asynchronous generator` 関数であれば ``True`` を返すようになりまし" +"た。" #: ../../library/inspect.rst:510 msgid "" @@ -961,12 +988,17 @@ msgstr "" msgid "" "Return ``True`` if the type of object is a :class:`~types.MethodWrapperType`." msgstr "" +"オブジェクトの型が :class:`~types.MethodWrapperType` である場合に ``True`` ã‚’" +"返します。" #: ../../library/inspect.rst:539 msgid "" "These are instances of :class:`~types.MethodWrapperType`, such as :meth:" "`~object.__str__`, :meth:`~object.__eq__` and :meth:`~object.__repr__`." msgstr "" +"真を返すのは :class:`~types.MethodWrapperType` のインスタンスで、 :meth:" +"`~object.__str__`, :meth:`~object.__eq__`, :meth:`~object.__repr__` などで" +"す。" #: ../../library/inspect.rst:547 msgid "" @@ -998,6 +1030,11 @@ msgid "" "attributes varies. A :attr:`~definition.__name__` attribute is usually " "sensible, and :attr:`~definition.__doc__` often is." msgstr "" +"これはたとえば、 ``int.__add__`` で真を返します。この関数によるテストをパスす" +"る(真を返す)オブジェクトは :meth:`~object.__get__` メソッドを持ちますが、 :" +"meth:`~object.__set__` メソッドや :meth:`~object.__delete__` メソッドは持ちま" +"せん。それ以外の属性の有無はさまざまです。 :attr:`~definition.__name__` 属性" +"は普通は存在しますし、 :attr:`~definition.__doc__` 属性もしばしば見られます。" #: ../../library/inspect.rst:567 msgid "" @@ -1006,6 +1043,11 @@ msgid "" "the other tests promise more -- you can, e.g., count on having the :attr:" "`~method.__func__` attribute (etc) when an object passes :func:`ismethod`." msgstr "" +"デスクリプタによって実装されたメソッドがこのメソッド以外のテストをパスする場" +"合、 :func:`ismethoddescriptor` によるテストでは ``False`` を返します。これは" +"単純に、他のテストはより多くを約束するからです -- たとえば、あるオブジェクト" +"が :func:`ismethod` のテストをパスするとき、そのオブジェクトが :attr:" +"`~method.__func__` 属性 (など) を持っていることを期待することができます。" #: ../../library/inspect.rst:573 msgid "" @@ -1014,6 +1056,10 @@ msgid "" "being method descriptors (such objects are data descriptors, not method " "descriptors)." msgstr "" +"この関数は、 :meth:`~object.__get__` 属性と :meth:`~object.__delete__` 属性を" +"持ち、 :meth:`~object.__set__` 属性を持たないオブジェクトをメソッドデスクリプ" +"タであると不正に報告することはなくなりました (そのようなオブジェクトはデータ" +"デスクリプタであって、メソッドデスクリプタではありません)。" #: ../../library/inspect.rst:581 msgid "Return ``True`` if the object is a data descriptor." @@ -1029,6 +1075,14 @@ msgid "" "`~definition.__name__` and :attr:`!__doc__` attributes (properties, getsets, " "and members have both of these attributes), but this is not guaranteed." msgstr "" +"データデスクリプタは :attr:`~object.__set__` メソッドか :attr:`~object." +"__delete__` メソッドのいずれかを持ちます。例としては、 (Python で定義された) " +"プロパティ、 getset デスクリプタ、メンバーデスクリプタがあります。後者2つは " +"C で定義されており、それぞれの型に対して特別なテストが存在します。それらのテ" +"ストは、全ての Python 実装に対して堅牢です。概して、データデスクリプタは :" +"attr:`~definition.__name__` 属性や :attr:`!__doc__` 属性も持ちますが、このこ" +"とは保証されてはいません (一方でプロパティ、 getset デスクリプタ、メンバーデ" +"スクリプタはこれら2つの属性を両方持っています)。" #: ../../library/inspect.rst:594 msgid "Return ``True`` if the object is a getset descriptor." @@ -1070,6 +1124,12 @@ msgid "" "documentation string from the inheritance hierarchy. Return ``None`` if the " "documentation string is invalid or missing." msgstr "" +"オブジェクトのドキュメンテーション文字列を、 :func:`cleandoc` で整理した上で" +"取得します。オブジェクトに対するドキュメンテーション文字列が与えられていない" +"場合で、かつオブジェクトがクラス、メソッド、プロパティ、デスクリプタのいずれ" +"かである場合、継承の階層構造からドキュメンテーション文字列を探し出して返しま" +"す。ドキュメンテーション文字列がないか、または不正な場合は ``None`` を返しま" +"す。" #: ../../library/inspect.rst:627 msgid "Documentation strings are now inherited if not overridden." @@ -1085,6 +1145,11 @@ msgid "" "code is unavailable, return ``None``. This could happen if the object has " "been defined in C or the interactive shell." msgstr "" +"オブジェクトのソースコード直前 (クラス、関数、メソッドの場合) または Python " +"ソースファイルの先頭 (モジュールの場合) の任意の行数にわたるコメントを、ひと" +"つの文字列として返します。オブジェクトのソースコードが存在しない場合は " +"``None`` を返します。オブジェクトが C で定義されている場合や、対話型シェルで" +"定義したオブジェクトの場合にこのようなことが起こり得ます。" #: ../../library/inspect.rst:642 msgid "" @@ -1101,6 +1166,8 @@ msgid "" "Try to guess which module an object was defined in. Return ``None`` if the " "module cannot be determined." msgstr "" +"オブジェクトが定義されているモジュールの推定を試みます。モジュールが決められ" +"ない場合は ``None`` を返します。" #: ../../library/inspect.rst:655 msgid "" @@ -1108,6 +1175,9 @@ msgid "" "``None`` if no way can be identified to get the source. This will fail with " "a :exc:`TypeError` if the object is a built-in module, class, or function." msgstr "" +"オブジェクトが定義されている Python ソースファイルの名前を返します。ソースを" +"取得する方法がない場合は ``None`` を返します。組み込みのモジュール、クラス、" +"関数に対しては :exc:`TypeError` で失敗します。" #: ../../library/inspect.rst:663 msgid "" @@ -1119,6 +1189,13 @@ msgid "" "code cannot be retrieved. A :exc:`TypeError` is raised if the object is a " "built-in module, class, or function." msgstr "" +"オブジェクトを定義しているソースコードの行のリストと、定義の開始行番号を返し" +"ます。引数にはモジュール、クラス、メソッド、関数、トレースバック、またはコー" +"ドオブジェクトを渡すことができます。オブジェクトに対応するソースコードが行の" +"リストとして返されます。また行番号は、元のソースファイル中でコードが見つかっ" +"た最初の行を示します。ソースコードを探し出すことができなかった場合、 :exc:" +"`OSError` 例外が送出されます。オブジェクトが組み込みのモジュール、クラス、ま" +"たは関数である場合は :exc:`TypeError` 例外が送出されます。" #: ../../library/inspect.rst:672 ../../library/inspect.rst:686 msgid "" @@ -1136,6 +1213,12 @@ msgid "" "the source code cannot be retrieved. A :exc:`TypeError` is raised if the " "object is a built-in module, class, or function." msgstr "" +"オブジェクトを定義しているソースコードのテキストを返します。引数にはモジュー" +"ル、クラス、メソッド、関数、トレースバック、フレーム、またはコードオブジェク" +"トを渡すことができます。ソースコードはひとつの文字列として返されます。ソース" +"コードを探し出すことができなかった場合、 :exc:`OSError` 例外が送出されます。" +"オブジェクトが組み込みのモジュール、クラス、または関数である場合は :exc:" +"`TypeError` 例外が送出されます。" #: ../../library/inspect.rst:693 msgid "" @@ -1165,10 +1248,15 @@ msgid "" "object and its return annotation. To retrieve a :class:`!Signature` object, " "use the :func:`!signature` function." msgstr "" +":class:`Signature` オブジェクトは、呼び出し可能オブジェクトの呼び出しシグネ" +"チャと戻り値のアノテーションを表現します。 :class:`!Signature` オブジェクトを" +"取得するには、 :func:`!signature` 関数を使ってください。" #: ../../library/inspect.rst:716 msgid "Return a :class:`Signature` object for the given *callable*:" msgstr "" +"*callable* で与えられたオブジェクトに対する :class:`Signature` オブジェクトを" +"返します:" #: ../../library/inspect.rst:718 msgid "" @@ -1187,6 +1275,20 @@ msgid "" ">>> sig.parameters['b'].annotation\n" "" msgstr "" +">>> from inspect import signature\n" +">>> def foo(a, *, b:int, **kwargs):\n" +"... pass\n" +"\n" +">>> sig = signature(foo)\n" +"\n" +">>> str(sig)\n" +"'(a, *, b: int, **kwargs)'\n" +"\n" +">>> str(sig.parameters['b'])\n" +"'b: int'\n" +"\n" +">>> sig.parameters['b'].annotation\n" +"" #: ../../library/inspect.rst:735 msgid "" @@ -1210,6 +1312,17 @@ msgid "" "annotations. For example, use ``annotation_format=annotationlib.Format." "STRING`` to return annotations in string format." msgstr "" +"アノテーションのいくつかが (たとえば ``from __future__ import annotations`` " +"が使われていることを理由に) 文字列である場合、 :func:`signature` は :func:" +"`annotationlib.get_annotations` を使って「非文字列化」すなわち文字列アノテー" +"ションを解決して本来のアノテーションに戻すことを試みます。アノテーションの解" +"決を行う際には *globals*, *locals*, および *eval_str* パラメータが :func:`!" +"annotationlib.get_annotations` に渡されます; これらのパラメータを使う方法につ" +"いての説明は :func:`!annotationlib.get_annotations` のドキュメンテーションを" +"参照してください。返されるアノテーションの形式を制御するため、 " +"*annotation_format* パラメータには :class:`annotationlib.Format` 列挙型のメン" +"バーを渡すことができます。たとえばアノテーションを文字列形式で返すためには " +"``annotation_format=annotationlib.Format.STRING`` を使ってください。" #: ../../library/inspect.rst:752 msgid "" @@ -1219,6 +1332,12 @@ msgid "" "call(s) to un-stringize the annotations in :func:`annotationlib." "get_annotations` could potentially raise any kind of exception." msgstr "" +"シグネチャを提供できない場合は :exc:`ValueError` 例外を送出します。またオブ" +"ジェクトの型がサポートされていない場合は :exc:`TypeError` 例外を送出します。" +"さらに、アノテーションが文字列化されており、 *eval_str* が偽でない場合、アノ" +"テーションを「非文字列化」するために :func:`annotationlib.get_annotations` 内" +"部で呼ばれる ``eval()`` により、いかなる種類の例外も送出される可能性がありま" +"す。" #: ../../library/inspect.rst:758 msgid "" @@ -1226,6 +1345,9 @@ msgid "" "to it are positional-only. For more info, see :ref:`the FAQ entry on " "positional-only parameters `." msgstr "" +"関数シグネチャにおけるスラッシュ (/) は、それより前のパラメータが位置専用引数" +"であることを示します。より詳しい情報は、 :ref:`位置専用引数に関する FAQ エン" +"トリ ` を参照してください。" #: ../../library/inspect.rst:762 msgid "" @@ -1233,14 +1355,18 @@ msgid "" "of *callable* specifically (``callable.__wrapped__`` will not be used to " "unwrap decorated callables.)" msgstr "" +"*follow_wrapped* パラメータが追加されました。parameter was added. 特に " +"*callable* そのものについてのシグネチャを取得するためには ``False`` を指定し" +"てください (そうすることで、デコレータで修飾された呼び出し可能オブジェクトに" +"対して``callable.__wrapped__`` が使われなくなります)。" #: ../../library/inspect.rst:768 ../../library/inspect.rst:904 msgid "The *globals*, *locals*, and *eval_str* parameters were added." -msgstr "" +msgstr "*globals*, *locals*, および *eval_str* パラメータが追加されました。" #: ../../library/inspect.rst:771 msgid "The *annotation_format* parameter was added." -msgstr "" +msgstr "*annotation_format* パラメータが追加されました。" #: ../../library/inspect.rst:776 msgid "" @@ -1248,6 +1374,10 @@ msgid "" "Python. For example, in CPython, some built-in functions defined in C " "provide no metadata about their arguments." msgstr "" +"いくつかの呼び出し可能オブジェクトは、ある Python 実装の下ではイントロスペク" +"ション (実行時オブジェクト調査) ができないかもしれません。たとえば CPython で" +"は、 C で定義されたいくつかの組み込み関数はそれらの引数に関するメタデータを提" +"供しません。" #: ../../library/inspect.rst:782 msgid "" @@ -1256,6 +1386,10 @@ msgid "" "and are subject to unannounced changes. Consult the source code for current " "semantics." msgstr "" +"渡されたオブジェクトが :attr:`!__signature__` 属性を持つ場合、それにもとづい" +"てシグネチャを作ることができるかもしれません。厳密なセマンティクスは実装レベ" +"ルの詳細であり、予告なく変更される可能性があります。現在のセマンティクスにつ" +"いてはソースコードをを参照してください。" #: ../../library/inspect.rst:790 msgid "" @@ -1263,6 +1397,10 @@ msgid "" "its return annotation. For each parameter accepted by the function it " "stores a :class:`Parameter` object in its :attr:`parameters` collection." msgstr "" +":class:`!Signature` オブジェクトは、関数の呼び出しシグネチャと戻り値のアノ" +"テーションを表現します。このオブジェクトは :attr:`parameters` 集合として、関" +"数が受け取るパラメータそれぞれについての :class:`Parameter` オブジェクトを保" +"存します。" #: ../../library/inspect.rst:795 msgid "" @@ -1272,22 +1410,36 @@ msgid "" "positional-only first, then positional-or-keyword, and that parameters with " "defaults follow parameters without defaults." msgstr "" +"オプション引数 *parameters* は :class:`Parameter` オブジェクトのシーケンス" +"で、重複した名前のパラメータはないか、パラメータの並び順は正しいか、すなわち" +"位置専用引数からはじまり次に位置引数としてもキーワード引数としても指定可能な" +"パラメータが続くかどうか、またデフォルト値のあるパラメータがデフォルト値のな" +"いパラメータの後にあるかどうか、といった項目をチェックするための検証が行われ" +"ます。" #: ../../library/inspect.rst:801 msgid "" "The optional *return_annotation* argument can be an arbitrary Python object. " "It represents the \"return\" annotation of the callable." msgstr "" +"オプション引数 *return_annotation* は任意の Python オブジェクトをとることがで" +"きます。この引数は、呼び出し可能オブジェクトの \"戻り値\" に対するアノテー" +"ションを表します。" #: ../../library/inspect.rst:804 msgid "" ":class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` " "or :func:`copy.replace` to make a modified copy." msgstr "" +":class:`!Signature` オブジェクトは *immutable* すなわち変更不可能です。変更さ" +"れたコピーを生成するためには、 :meth:`Signature.replace` または :func:`copy." +"replace` を使ってください。" #: ../../library/inspect.rst:807 msgid ":class:`!Signature` objects are now picklable and :term:`hashable`." msgstr "" +":class:`!Signature` オブジェクトは pickle 可能かつ :term:`ハッシュ可能` にな" +"りました。" #: ../../library/inspect.rst:812 msgid "A special class-level marker to specify absence of a return annotation." @@ -1299,6 +1451,9 @@ msgid "" "`Parameter` objects. Parameters appear in strict definition order, " "including keyword-only parameters." msgstr "" +"パラメータの名前と対応する :class:`Parameter` オブジェクトの、順序ありマッピ" +"ングです。パラメータは、キーワード専用パラメータも含めて、厳密な定義順に現れ" +"ます。" #: ../../library/inspect.rst:820 ../../library/inspect.rst:1184 msgid "" @@ -1306,6 +1461,9 @@ msgid "" "keyword-only parameters as of version 3.7, although in practice this order " "had always been preserved in Python 3." msgstr "" +"バージョン 3.7 までは、Python はキーワード専用パラメータだけしか順序を保つこ" +"とを明確に保証していませんでした。とはいえ Python 3 では事実上パラメータの順" +"序は維持されていました。" #: ../../library/inspect.rst:827 msgid "" @@ -1322,6 +1480,10 @@ msgid "" "Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the " "signature, or raises a :exc:`TypeError`." msgstr "" +"位置引数およびキーワード引数からパラメータへのマッピングを生成します。 " +"``*args`` と ``**kwargs`` がシグネチャに一致した場合 :class:`BoundArguments` " +"を返します。引数がシグネチャと一致しない場合は :exc:`TypeError` 例外を送出し" +"ます。" #: ../../library/inspect.rst:838 msgid "" @@ -1330,6 +1492,10 @@ msgid "" "Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed " "arguments do not match the signature." msgstr "" +":meth:`Signature.bind` と同様に動作しますが、いくつかの必要な引数を省略するこ" +"とができます (:func:`functools.partial` の振る舞いによく似たものです) 。 :" +"class:`BoundArguments` を返します。引数がシグネチャと一致しない場合は :exc:" +"`TypeError` 例外を送出します。" #: ../../library/inspect.rst:845 msgid "" @@ -1339,6 +1505,11 @@ msgid "" "signature. To remove ``return_annotation`` from the copied :class:`!" "Signature`, pass in :attr:`Signature.empty`." msgstr "" +":meth:`replace` メソッドが呼び出されたインスタンスから、新しい :class:" +"`Signature` インスタンスを生成します。元になるシグネチャのプロパティをオー" +"バーライドするために異なる *parameters* ã‚„ *return_annotation* を渡すことが可" +"能です。 ``return_annotation`` をコピーされた :class:`!Signature` インスタン" +"スから削除したい場合、 :attr:`Signature.empty` を渡してください。" #: ../../library/inspect.rst:853 msgid "" @@ -1350,16 +1521,25 @@ msgid "" ">>> str(new_sig)\n" "\"(a, b) -> 'new return anno'\"" msgstr "" +">>> def test(a, b):\n" +"... pass\n" +"...\n" +">>> sig = signature(test)\n" +">>> new_sig = sig.replace(return_annotation=\"new return anno\")\n" +">>> str(new_sig)\n" +"\"(a, b) -> 'new return anno'\"" #: ../../library/inspect.rst:863 msgid "" ":class:`Signature` objects are also supported by the generic function :func:" "`copy.replace`." msgstr "" +":class:`Signature` オブジェクトのコピーは、汎用の関数 :func:`copy.replace` で" +"もサポートされています。" #: ../../library/inspect.rst:868 msgid "Create a string representation of the :class:`Signature` object." -msgstr "" +msgstr ":class:`Signature` オブジェクトの文字列表現を生成します。" #: ../../library/inspect.rst:870 msgid "" @@ -1367,6 +1547,9 @@ msgid "" "lines of at most *max_width* characters. If the signature is longer than " "*max_width*, all parameters will be on separate lines." msgstr "" +"*max_width* が指定されると、メソッドはシグネチャをそれぞれの行が最大 " +"*max_width* 文字になるようにフォーマットを試みます。シグネチャが *max_width* " +"よりも長くなってしまう場合は、全てのパラメータごとに改行されます。" #: ../../library/inspect.rst:875 msgid "" @@ -1376,20 +1559,28 @@ msgid "" "`~annotationlib.Format.STRING` format or if ``from __future__ import " "annotations`` was used." msgstr "" +"*quote_annotation_strings* が偽の場合、文字列で表されたシグネチャの中の :" +"term:`アノテーション ` は、最初と最後のクォート記号無しで表示され" +"ます。この挙動は、シグネチャが :attr:`~annotationlib.Format.STRING` フォー" +"マットで作られた場合や ``from __future__ import annotations`` が使われた場合" +"に有用です。" #: ../../library/inspect.rst:883 msgid "The *unquote_annotations* parameter was added." -msgstr "" +msgstr "*unquote_annotations* パラメータが追加されました。" #: ../../library/inspect.rst:888 msgid "" "Return a :class:`Signature` (or its subclass) object for a given callable " "*obj*." msgstr "" +"与えられた呼び出し可能オブジェクト *obj* に対する :class:`Signature` (または" +"そのサブクラスの) オブジェクトを返します。" #: ../../library/inspect.rst:891 msgid "This method simplifies subclassing of :class:`Signature`:" msgstr "" +"このメソッドは :class:`Signature` からサブクラスを作る作業を簡素化します:" #: ../../library/inspect.rst:893 msgid "" @@ -1398,10 +1589,14 @@ msgid "" "sig = MySignature.from_callable(sum)\n" "assert isinstance(sig, MySignature)" msgstr "" +"class MySignature(Signature):\n" +" pass\n" +"sig = MySignature.from_callable(sum)\n" +"assert isinstance(sig, MySignature)" #: ../../library/inspect.rst:900 msgid "Its behavior is otherwise identical to that of :func:`signature`." -msgstr "" +msgstr "このメソッドの振る舞いは、上記を除けば :func:`signature` と同じです。" #: ../../library/inspect.rst:910 msgid "" @@ -1409,10 +1604,16 @@ msgid "" "Parameter` object, you can use :meth:`Parameter.replace` or :func:`copy." "replace` to create a modified copy." msgstr "" +":class:`!Parameter` オブジェクトはイミュータブル (*immutable*) すなわち変更不" +"可能です。 :class:`!Parameter` オブジェクトを変更する代わりに、 :meth:" +"`Parameter.replace` ã‚„ :func:`copy.replace` を使ってオブジェクトの内容を変更" +"したコピーを作成することができます。" #: ../../library/inspect.rst:914 msgid "Parameter objects are now picklable and :term:`hashable`." msgstr "" +"Parameter オブジェクトはピックル化可能 (picklable) かつ ハッシュ化可能 (:" +"term:`hashable`) になりました。" #: ../../library/inspect.rst:919 msgid "" @@ -1433,12 +1634,16 @@ msgid "" "CPython generates implicit parameter names of the form ``.0`` on the code " "objects used to implement comprehensions and generator expressions." msgstr "" +"CPython は内包表記やジェネレータ式を実装するためのコードオブジェクトにおい" +"て、 ``.0`` という形式で暗黙のパラメータ名を生成します。" #: ../../library/inspect.rst:933 msgid "" "These parameter names are now exposed by this module as names like " "``implicit0``." msgstr "" +"このモジュールにより、これら暗黙のパラメータ名は ``implicit0`` のような名前で" +"公開されるようになりました。" #: ../../library/inspect.rst:939 msgid "" @@ -1462,6 +1667,9 @@ msgid "" "values are accessible via :class:`Parameter` (like ``Parameter." "KEYWORD_ONLY``), and support comparison and ordering, in the following order:" msgstr "" +"引数の値がどのようにパラメータと紐付けられるかを記述します。指定可能な値は :" +"class:`Parameter` を介して (``Parameter.KEYWORD_ONLY`` のように) アクセス可能" +"で、以下に示す順番で比較や順序付けをサポートしています:" #: ../../library/inspect.rst:956 msgid "Name" @@ -1481,6 +1689,8 @@ msgid "" "are those which appear before a ``/`` entry (if present) in a Python " "function definition." msgstr "" +"値は位置引数として渡されなければなりません。 Python の関数定義において、位置" +"専用引数は (もし存在すれば) ``/`` エントリの前に現れるものを指します。" #: ../../library/inspect.rst:963 msgid "*POSITIONAL_OR_KEYWORD*" @@ -1533,7 +1743,7 @@ msgstr "" #: ../../library/inspect.rst:984 msgid "Example: print all keyword-only arguments without default values:" -msgstr "" +msgstr "例: デフォルト値を持たないキーワード専用引数を全て出力します:" #: ../../library/inspect.rst:986 msgid "" @@ -1547,14 +1757,23 @@ msgid "" "... print('Parameter:', param)\n" "Parameter: c" msgstr "" +">>> def foo(a, b, *, c, d=10):\n" +"... pass\n" +"\n" +">>> sig = signature(foo)\n" +">>> for param in sig.parameters.values():\n" +"... if (param.kind == param.KEYWORD_ONLY and\n" +"... param.default is param.empty):\n" +"... print('Parameter:', param)\n" +"Parameter: c" #: ../../library/inspect.rst:1000 msgid "Describes an enum value of :attr:`Parameter.kind`." -msgstr "" +msgstr ":attr:`Parameter.kind` 列挙型の各定数を説明します。" #: ../../library/inspect.rst:1004 msgid "Example: print all descriptions of arguments:" -msgstr "" +msgstr "例: 全ての引数に対する説明を出力します:" #: ../../library/inspect.rst:1006 msgid "" @@ -1569,6 +1788,16 @@ msgid "" "keyword-only\n" "keyword-only" msgstr "" +">>> def foo(a, b, *, c, d=10):\n" +"... pass\n" +"\n" +">>> sig = signature(foo)\n" +">>> for param in sig.parameters.values():\n" +"... print(param.kind.description)\n" +"positional or keyword\n" +"positional or keyword\n" +"keyword-only\n" +"keyword-only" #: ../../library/inspect.rst:1021 msgid "" @@ -1577,6 +1806,11 @@ msgid "" "corresponding argument. To remove a default value or/and an annotation from " "a :class:`!Parameter`, pass :attr:`Parameter.empty`." msgstr "" +"このメソッドの呼び出し元のインスタンスをもとにして、新たな :class:" +"`Parameter` インスタンスを生成します。 :class:`!Parameter` の属性をオーバーラ" +"イドするには、対応する引数をこのメソッドに渡してください。 :class:`!" +"Parameter` からデフォルト値やアノテーションを取り除きたい場合は、 :attr:" +"`Parameter.empty` を渡してください。" #: ../../library/inspect.rst:1026 msgid "" @@ -1591,12 +1825,24 @@ msgid "" ">>> str(param.replace(default=Parameter.empty, annotation='spam'))\n" "\"foo: 'spam'\"" msgstr "" +">>> from inspect import Parameter\n" +">>> param = Parameter('foo', Parameter.KEYWORD_ONLY, default=42)\n" +">>> str(param)\n" +"'foo=42'\n" +"\n" +">>> str(param.replace()) # Will create a shallow copy of 'param'\n" +"'foo=42'\n" +"\n" +">>> str(param.replace(default=Parameter.empty, annotation='spam'))\n" +"\"foo: 'spam'\"" #: ../../library/inspect.rst:1039 msgid "" ":class:`Parameter` objects are also supported by the generic function :func:" "`copy.replace`." msgstr "" +":class:`Parameter` オブジェクトは汎用関数 :func:`copy.replace` でもサポートさ" +"れています。" #: ../../library/inspect.rst:1042 msgid "" @@ -1604,12 +1850,17 @@ msgid "" "to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no " "longer permitted." msgstr "" +"Python 3.3 では、``kind`` が ``POSITIONAL_ONLY`` の場合に限り、 ``name`` が " +"``None`` であるような :class:`Parameter` オブジェクトが許されていました。です" +"が、そのようなオブジェクトはもはや許可されていません。" #: ../../library/inspect.rst:1049 msgid "" "Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call. " "Holds the mapping of arguments to the function's parameters." msgstr "" +":meth:`Signature.bind` または :meth:`Signature.bind_partial` を呼び出して得ら" +"れる結果です。引数と関数のパラメータとの間のマッピング情報を保持します。" #: ../../library/inspect.rst:1054 msgid "" @@ -1617,12 +1868,17 @@ msgid "" "explicitly bound arguments. Changes in :attr:`arguments` will reflect in :" "attr:`args` and :attr:`kwargs`." msgstr "" +"パラメータの名前と引数の値との間のミュータブルなマッピングです。明示的に紐付" +"けされた引数だけを含みます。 :attr:`arguments` に対する変更は :attr:`args` " +"と :attr:`kwargs` に反映されます。" #: ../../library/inspect.rst:1058 msgid "" "Should be used in conjunction with :attr:`Signature.parameters` for any " "argument processing purposes." msgstr "" +"いかなる引数処理の目的でも、 :attr:`Signature.parameters` とあわせて使うよう" +"にしてください。" #: ../../library/inspect.rst:1063 msgid "" @@ -1630,12 +1886,17 @@ msgid "" "relied on a default value are skipped. However, if needed, use :meth:" "`BoundArguments.apply_defaults` to add them." msgstr "" +":meth:`Signature.bind` または :meth:`Signature.bind_partial` でデフォルト値を" +"あてにするとされた引数は、スキップされます。それらをマッピングに加えたい場合" +"は、必要に応じて :meth:`BoundArguments.apply_defaults` を使ってください。" #: ../../library/inspect.rst:1068 msgid "" ":attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :" "class:`collections.OrderedDict`." msgstr "" +":attr:`arguments` の型が :class:`dict` になりました。以前は :class:" +"`collections.OrderedDict` 型でした。" #: ../../library/inspect.rst:1074 msgid "" @@ -1650,6 +1911,9 @@ msgid "" "`arguments` attribute. Arguments that can be passed positionally are " "included in :attr:`args` instead." msgstr "" +"キーワード引数の値の辞書です。 :attr:`arguments` 属性から動的に計算されます。" +"位置引数として渡すことができる引数は、 :attr:`args` に含まれることに注意して" +"ください。" #: ../../library/inspect.rst:1085 msgid "A reference to the parent :class:`Signature` object." @@ -1662,12 +1926,13 @@ msgstr "存在しない引数のデフォルト値を設定します。" #: ../../library/inspect.rst:1091 msgid "" "For variable-positional arguments (``*args``) the default is an empty tuple." -msgstr "" +msgstr "可変長位置引数 (``*args``) に対するデフォルト値は、空のタプルです。" #: ../../library/inspect.rst:1094 msgid "" "For variable-keyword arguments (``**kwargs``) the default is an empty dict." msgstr "" +"可変長キーワード引数 (``**kwargs``) に対するデフォルト値は、空の辞書です。" #: ../../library/inspect.rst:1097 msgid "" @@ -1677,12 +1942,19 @@ msgid "" ">>> ba.arguments\n" "{'a': 'spam', 'b': 'ham', 'args': ()}" msgstr "" +">>> def foo(a, b='ham', *args): pass\n" +">>> ba = inspect.signature(foo).bind('spam')\n" +">>> ba.apply_defaults()\n" +">>> ba.arguments\n" +"{'a': 'spam', 'b': 'ham', 'args': ()}" #: ../../library/inspect.rst:1107 msgid "" "The :attr:`args` and :attr:`kwargs` properties can be used to invoke " "functions:" msgstr "" +":attr:`args` と :attr:`kwargs` の2つのプロパティは、関数の呼び出しに使うこと" +"ができます:" #: ../../library/inspect.rst:1110 msgid "" @@ -1693,6 +1965,12 @@ msgid "" "ba = sig.bind(10, b=20)\n" "test(*ba.args, **ba.kwargs)" msgstr "" +"def test(a, *, b):\n" +" ...\n" +"\n" +"sig = signature(test)\n" +"ba = sig.bind(10, b=20)\n" +"test(*ba.args, **ba.kwargs)" #: ../../library/inspect.rst:1122 msgid ":pep:`362` - Function Signature Object." @@ -1700,7 +1978,7 @@ msgstr ":pep:`362`: - 関数シグニチャオブジェクト" #: ../../library/inspect.rst:1123 msgid "The detailed specification, implementation details and examples." -msgstr "" +msgstr "仕様の詳細、実装の詳細および使用例を示しています。" #: ../../library/inspect.rst:1129 msgid "Classes and functions" @@ -1727,6 +2005,8 @@ msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` is returned:" msgstr "" +"Python 関数のパラメータの名前とデフォルト値を取得します。 :term:`named " +"tuple` を返します:" #: ../../library/inspect.rst:1147 msgid "" @@ -1750,6 +2030,16 @@ msgid "" "parameter names to annotations. The special key ``\"return\"`` is used to " "report the function return value annotation (if any)." msgstr "" +"*args* は位置引数の名前のリストです。 *varargs* は ``*`` で始まる可変長位置引" +"数の名前で、この引数を受け付けない場合は ``None`` です。 *varkw* は ``**`` で" +"始まる可変長キーワード引数の名前で、この引数を受け付けない場合は ``None`` で" +"す。 *defaults* は末尾 *n* 個の位置引数に対応するデフォルト引数の *n*-タプル" +"で、 そのようなデフォルト値が定義されていない場合は ``None`` です。 " +"*kwonlyargs* は宣言順に並んだキーワード専用引数の名前のリストです。 " +"*kwonlydefaults* はそれらに対して値が渡されなかった場合の、 *kwonlyargs* の名" +"前からデフォルト値へのマッピングを行う辞書です。 *annotations* 引数名からアノ" +"テーションへのマッピングを行う辞書です。特殊キー ``\"return\"`` は (もしあれ" +"ば) 関数の戻り値に対するアノテーションを伝えるために使われます。" #: ../../library/inspect.rst:1165 msgid "" @@ -1760,6 +2050,12 @@ msgid "" "for use in code that needs to maintain compatibility with the Python 2 " "``inspect`` module API." msgstr "" +":func:`signature` と :ref:`Signature オブジェクト ` が呼び出し可能オブジェクトのイントロスペクション (実行時オブジェクト" +"調査) のための推奨される API を提供しており、かつ拡張モジュール API でときど" +"き遭遇する追加の振る舞い (位置専用引数など) もサポートしていることに注意して" +"ください。この関数は、主に Python 2 の ``inspect`` モジュール API との互換性" +"を維持することが必要なコードで利用されるために残されています。" #: ../../library/inspect.rst:1172 msgid "" @@ -1767,6 +2063,9 @@ msgid "" "``__wrapped__`` attributes and includes the already bound first parameter in " "the signature output for bound methods." msgstr "" +"この関数は :func:`signature` をもとに実装されています。ただし、 " +"``__wrapped__`` 属性を無視します。また、束縛されたメソッドに対するシグネチャ" +"の出力において、すでに束縛された最初のパラメータを含みます。" #: ../../library/inspect.rst:1177 msgid "" @@ -1775,6 +2074,10 @@ msgid "" "restore a clearly supported standard interface for single-source Python 2/3 " "code migrating away from the legacy :func:`getargspec` API." msgstr "" +"Python 3.5 ではこのメソッドは非推奨とされ、代わりに :func:`signature` の利用" +"が推奨されていました。ですが、レガシー API である :func:`getargspec` から移行" +"し、明確にサポートされた標準インターフェースによる単一ソースでの Python 2/3 " +"互換コードを復活させるため、非推奨の決定は取り消されました。" #: ../../library/inspect.rst:1192 msgid "" @@ -1792,7 +2095,7 @@ msgstr "" #: ../../library/inspect.rst:1199 ../../library/inspect.rst:1209 msgid "This function was inadvertently marked as deprecated in Python 3.5." -msgstr "" +msgstr "この関数は Python 3.5 において、不注意により非推奨とされていました。" #: ../../library/inspect.rst:1204 msgid "" @@ -1827,6 +2130,14 @@ msgid "" "exception of the same type and the same or similar message is raised. For " "example:" msgstr "" +"*args* と *kwds* を、あたかもそれらをパラメータとして呼ばれたかのように、 " +"Python 関数またはメソッド *func* に束縛します。また、第一引数 (通常 ``self`` " +"という名前です) を関連するインスタンスに束縛します。引数名 (もし存在すれば " +"``*`` ã‚„ ``**`` で始まる引数も含む) ã‚’ *args* および *kwds* で与えられた値に" +"マッピングする辞書を返します。 *func* を不正に呼び出した場合、すなわち " +"``func(*args, **kwds)`` の呼び出しが不完全なシグネチャにより例外を送出するよ" +"うな場合は、同じ型の例外を同一またはよく似たメッセージとともに送出します。以" +"下は使用例です:" #: ../../library/inspect.rst:1231 msgid "" @@ -1844,10 +2155,25 @@ msgid "" "...\n" "TypeError: f() missing 1 required positional argument: 'a'" msgstr "" +">>> from inspect import getcallargs\n" +">>> def f(a, b=1, *pos, **named):\n" +"... pass\n" +"...\n" +">>> getcallargs(f, 1, 2, 3) == {'a': 1, 'named': {}, 'b': 2, 'pos': (3,)}\n" +"True\n" +">>> getcallargs(f, a=2, x=4) == {'a': 2, 'named': {'x': 4}, 'b': 1, 'pos': " +"()}\n" +"True\n" +">>> getcallargs(f)\n" +"Traceback (most recent call last):\n" +"...\n" +"TypeError: f() missing 1 required positional argument: 'a'" #: ../../library/inspect.rst:1248 msgid "Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead." msgstr "" +"代わりに :meth:`Signature.bind` ã‚„ :meth:`Signature.bind_partial` を使ってく" +"ださい。" #: ../../library/inspect.rst:1254 msgid "" @@ -1860,6 +2186,14 @@ msgid "" "that could not be resolved at all given the current module globals and " "builtins." msgstr "" +"Python 関数またはメソッド *func* の外部の名前参照と、それらの現在の値のマッピ" +"ングを取得します。 :term:`named tuple` ``ClosureVars(nonlocals, globals, " +"builtins, unbound)`` を返します。参照名を、 *nonlocals* はレキシカルクロー" +"ジャ変数、すなわち外側のスコープで定義された変数の値にマップし、 *globals* は" +"関数が属するモジュールのグローバル変数にマップし、 *builtins* は関数本体から" +"見える組み込み変数にマップします。 *unbound* は、現在のモジュールにおけるグ" +"ローバル変数や組み込み変数において解決できないにもかかわらず、関数内で参照さ" +"れている名前の集合です。" #: ../../library/inspect.rst:1263 msgid "" @@ -1872,6 +2206,8 @@ msgid "" "Get the object wrapped by *func*. It follows the chain of :attr:" "`__wrapped__` attributes returning the last object in the chain." msgstr "" +"*func* によりラップされたオブジェクトを取得します。 :attr:`__wrapped__` 属性" +"の連鎖をたどり、ラップの連鎖の最後にあるオブジェクトを返します。" #: ../../library/inspect.rst:1273 msgid "" @@ -1882,26 +2218,37 @@ msgid "" "`signature` uses this to stop unwrapping if any object in the chain has a " "``__signature__`` attribute defined." msgstr "" +"*stop* はオプションで指定可能なコールバック関数で、ラッパーの連鎖におけるオブ" +"ジェクトをただひとつの引数として取ります。このコールバック関数が真値を返した" +"段階で、オブジェクトのアンラップを早期に終了させることができます。コールバッ" +"ク関数が真値を返さない場合は、通常通りラッパーの連鎖における最後のオブジェク" +"トを返します。例えば、 :func:`signature` は、オブジェクトに " +"``__signature__`` 属性が定義されていたらオブジェクトのアンラップを停止するた" +"めに、このオプションを使っています。" #: ../../library/inspect.rst:1280 msgid ":exc:`ValueError` is raised if a cycle is encountered." -msgstr "" +msgstr "循環を検知した場合は :exc:`ValueError` を送出します。 " #: ../../library/inspect.rst:1287 msgid "Compute the annotations dict for an object." -msgstr "" +msgstr "オブジェクトに対するアノテーション辞書を計算します。" #: ../../library/inspect.rst:1289 msgid "" "This is an alias for :func:`annotationlib.get_annotations`; see the " "documentation of that function for more information." msgstr "" +"これは :func:`annotationlib.get_annotations` のエイリアスです; 詳細はその関数" +"のドキュメントを参照してください。" #: ../../library/inspect.rst:1294 msgid "" "This function is now an alias for :func:`annotationlib.get_annotations`. " "Calling it as ``inspect.get_annotations`` will continue to work." msgstr "" +"この関数は :func:`annotationlib.get_annotations` のエイリアスになりました。 " +"``inspect.get_annotations`` として呼び出しても、引き続き正しく動作します。" #: ../../library/inspect.rst:1302 msgid "The interpreter stack" @@ -1914,40 +2261,51 @@ msgid "" "attributes except ``positions``. This behavior is considered deprecated and " "may be removed in the future." msgstr "" +"以下の関数のうちいくつかは :class:`FrameInfo` オブジェクトを返します。これら" +"のオブジェクトは、後方互換性のために ``positions`` を除く全ての属性に対して、" +"タプル的な演算を許可します。この振る舞いは非推奨と考えられており、将来削除さ" +"れるかもしれません。" #: ../../library/inspect.rst:1313 msgid "The :ref:`frame object ` that the record corresponds to." msgstr "" +"そのレコードに相当する :ref:`フレームオブジェクト ` です。" #: ../../library/inspect.rst:1317 msgid "" "The file name associated with the code being executed by the frame this " "record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行されるコードのファイル名です。" #: ../../library/inspect.rst:1322 msgid "" "The line number of the current line associated with the code being executed " "by the frame this record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行されるコードの、現在の行の行番号で" +"す。" #: ../../library/inspect.rst:1327 msgid "" "The function name that is being executed by the frame this record " "corresponds to." -msgstr "" +msgstr "このレコードに相当するフレームによって実行される関数名です。" #: ../../library/inspect.rst:1331 msgid "" "A list of lines of context from the source code that's being executed by the " "frame this record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行される、ソースコードから生成された" +"コンテキストの行のリストです。" #: ../../library/inspect.rst:1336 ../../library/inspect.rst:1375 msgid "" "The index of the current line being executed in the :attr:`code_context` " "list." msgstr "" +":attr:`code_context` リストにおいて実行される現在の行のインデックスです。" #: ../../library/inspect.rst:1340 msgid "" @@ -1955,40 +2313,51 @@ msgid "" "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this record corresponds to." msgstr "" +"このレコードに相当するフレームによって実行される命令に結びついた :class:`dis." +"Positions` オブジェクトで、開始行番号、終了行番号、開始カラムオフセット、終了" +"カラムオフセットを含んでいます。" #: ../../library/inspect.rst:1344 msgid "Return a :term:`named tuple` instead of a :class:`tuple`." -msgstr "" +msgstr ":class:`tuple` ではなく :term:`named tuple` を返すようになりました。" #: ../../library/inspect.rst:1347 msgid "" ":class:`!FrameInfo` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" +":class:`!FrameInfo` はクラスインスタンスになりました (ただしそれ以前の :term:" +"`named tuple` とは後方互換です) 。" #: ../../library/inspect.rst:1356 msgid "" "The file name associated with the code being executed by the frame this " "traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行されるコードのファイル名で" +"す。" #: ../../library/inspect.rst:1361 msgid "" "The line number of the current line associated with the code being executed " "by the frame this traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行されるコードの、現在の行の行" +"番号です。" #: ../../library/inspect.rst:1366 msgid "" "The function name that is being executed by the frame this traceback " "corresponds to." -msgstr "" +msgstr "このトレースバックに対応するフレームによって実行される関数名です。" #: ../../library/inspect.rst:1370 msgid "" "A list of lines of context from the source code that's being executed by the " "frame this traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行される、ソースコードから生成" +"されたコンテキストの行のリストです。" #: ../../library/inspect.rst:1379 msgid "" @@ -1996,12 +2365,17 @@ msgid "" "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this traceback corresponds to." msgstr "" +"このトレースバックに対応するフレームによって実行される命令の開始行番号、終了" +"行番号、開始カラムオフセット、終了カラムオフセットを含む :class:`dis." +"Positions` オブジェクトです。" #: ../../library/inspect.rst:1384 msgid "" ":class:`!Traceback` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" +":class:`!Traceback` はクラスインスタンスになりました (ただしそれ以前の :term:" +"`named tuple` とは後方互換です) 。" #: ../../library/inspect.rst:1391 msgid "" @@ -2041,6 +2415,12 @@ msgid "" " finally:\n" " del frame" msgstr "" +"def handle_stackframe_without_leak():\n" +" frame = inspect.currentframe()\n" +" try:\n" +" # フレーム上で何か処理をします\n" +" finally:\n" +" del frame" #: ../../library/inspect.rst:1411 msgid "" @@ -2048,6 +2428,9 @@ msgid "" "later), you can also break reference cycles by using the :meth:`frame.clear` " "method." msgstr "" +"(たとえばトレースバックをあとで表示したいなどの理由で) フレームを削除せずに" +"とっておきたい場合は、 :meth:`frame.clear` メソッドを使って循環参照を壊すこと" +"もできます。" #: ../../library/inspect.rst:1415 msgid "" @@ -2064,10 +2447,14 @@ msgid "" "Get information about a frame or traceback object. A :class:`Traceback` " "object is returned." msgstr "" +"フレームまたはトレースバックオブジェクトの情報を取得します。 :class:" +"`Traceback` オブジェクトが返されます。" #: ../../library/inspect.rst:1425 msgid "A :class:`Traceback` object is returned instead of a named tuple." msgstr "" +"名前付きタプルの代わりに :class:`Traceback` オブジェクトが返されるようになり" +"ました。" #: ../../library/inspect.rst:1430 msgid "" @@ -2094,7 +2481,7 @@ msgstr "" #: ../../library/inspect.rst:1440 ../../library/inspect.rst:1455 #: ../../library/inspect.rst:1481 ../../library/inspect.rst:1496 msgid "A list of :class:`FrameInfo` objects is returned." -msgstr "" +msgstr ":class:`FrameInfo` オブジェクトのリストが返されるようになりました。" #: ../../library/inspect.rst:1445 msgid "" @@ -2155,6 +2542,10 @@ msgid "" "properties, will be invoked and :meth:`~object.__getattr__` and :meth:" "`~object.__getattribute__` may be called." msgstr "" +":func:`getattr` ã‚„ :func:`hasattr` は属性の存在確認や属性値の取得に際してコー" +"ドの実行を伴うことがあります。プロパティなどのデスクリプタが呼び出され、ま" +"た :meth:`~object.__getattr__` ã‚„ :meth:`~object.__getattribute__` が呼び出さ" +"れたりするかもしれません。" #: ../../library/inspect.rst:1508 msgid "" @@ -2162,6 +2553,9 @@ msgid "" "this can be inconvenient. :func:`getattr_static` has the same signature as :" "func:`getattr` but avoids executing code when it fetches attributes." msgstr "" +"たとえばドキュメントツールのように受動的なイントロスペクションをしたい場合、" +"この振る舞いは不便です。 :func:`getattr_static` は :func:`getattr` と同じシグ" +"ネチャを持ちますが、属性値を取得する際にコードの実行をしないようにします。" #: ../../library/inspect.rst:1514 msgid "" diff --git a/library/internet.po b/library/internet.po index 201349651..8f6cbf318 100644 --- a/library/internet.po +++ b/library/internet.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Inada Naoki , 2023\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/internet.rst:5 diff --git a/library/intro.po b/library/intro.po index 68973ca72..b3d2b002d 100644 --- a/library/intro.po +++ b/library/intro.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/intro.rst:5 @@ -145,6 +145,8 @@ msgid "" "If not separately noted, all functions that claim \"Availability: Unix\" are " "supported on macOS, iOS and Android, all of which build on a Unix core." msgstr "" +"特に記述がない場合、「利用できる環境 : Unix 」と書かれている関数は、 Unix ã‚’" +"コアにしているmacOS、iOS、Androidでも利用することができます。" #: ../../library/intro.rst:63 msgid "" @@ -252,7 +254,7 @@ msgstr "" #: ../../library/intro.rst:127 msgid "Mobile platforms" -msgstr "" +msgstr "モバイルプラットフォーム" #: ../../library/intro.rst:129 msgid "" @@ -272,7 +274,7 @@ msgstr "" #: ../../library/intro.rst:139 msgid "Subprocesses:" -msgstr "" +msgstr "サブプロセス:" #: ../../library/intro.rst:141 msgid "" diff --git a/library/io.po b/library/io.po index da95d935a..21a3e28a1 100644 --- a/library/io.po +++ b/library/io.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/io.rst:2 @@ -108,6 +108,8 @@ msgid "" "The easiest way to create a text stream is with :meth:`open`, optionally " "specifying an encoding::" msgstr "" +"テキストストリームを作る一番簡単な方法は、オプションでエンコーディングを指定" +"して、 :meth:`open` を利用することです::" #: ../../library/io.rst:61 msgid "f = open(\"myfile.txt\", \"r\", encoding=\"utf-8\")" @@ -160,6 +162,8 @@ msgid "" "The easiest way to create a binary stream is with :meth:`open` with ``'b'`` " "in the mode string::" msgstr "" +"バイナリーストリームを生成する一番簡単な方法は、 :meth:`open` の mode 文字列" +"に ``'b'`` を指定することです::" #: ../../library/io.rst:89 msgid "f = open(\"myfile.jpg\", \"rb\")" diff --git a/library/ipaddress.po b/library/ipaddress.po index bcbaa46e3..d8c6fae60 100644 --- a/library/ipaddress.po +++ b/library/ipaddress.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/ipaddress.rst:2 diff --git a/library/ipc.po b/library/ipc.po index e628754f4..bcc0c098d 100644 --- a/library/ipc.po +++ b/library/ipc.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/ipc.rst:5 diff --git a/library/itertools.po b/library/itertools.po index e39e2210c..cfe29630a 100644 --- a/library/itertools.po +++ b/library/itertools.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/itertools.rst:2 diff --git a/library/json.po b/library/json.po index 1f5a739c0..b47a5fb9f 100644 --- a/library/json.po +++ b/library/json.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/json.rst:2 @@ -44,6 +44,12 @@ msgid "" "wikipedia.org/wiki/JavaScript>`_ object literal syntax (although it is not a " "strict subset of JavaScript [#rfc-errata]_ )." msgstr "" +"`JSON (JavaScript Object Notation) `_ は、 :rfc:`7159` (:" +"rfc:`4627` ã‚’ obsolete) と `ECMA-404 `_ によって定義された軽量の" +"データ交換用のフォーマットです。 JavaScript のオブジェクトリテラル記法に由来" +"しています (`JavaScript `_ の厳密な" +"サブセットではありませんが [#rfc-errata]_)。" #: ../../library/json.rst:22 msgid "" @@ -67,6 +73,8 @@ msgid "" "This module exposes an API familiar to users of the standard library :mod:" "`marshal` and :mod:`pickle` modules." msgstr "" +"このモジュールの API は標準ライブラリの :mod:`marshal` ã‚„ :mod:`pickle` の" +"ユーザに馴染み深いものです。" #: ../../library/json.rst:34 msgid "Encoding basic Python object hierarchies::" @@ -91,6 +99,22 @@ msgid "" ">>> io.getvalue()\n" "'[\"streaming API\"]'" msgstr "" +">>> import json\n" +">>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])\n" +"'[\"foo\", {\"bar\": [\"baz\", null, 1.0, 2]}]'\n" +">>> print(json.dumps(\"\\\"foo\\bar\"))\n" +"\"\\\"foo\\bar\"\n" +">>> print(json.dumps('\\u1234'))\n" +"\"\\u1234\"\n" +">>> print(json.dumps('\\\\'))\n" +"\"\\\\\"\n" +">>> print(json.dumps({\"c\": 0, \"b\": 0, \"a\": 0}, sort_keys=True))\n" +"{\"a\": 0, \"b\": 0, \"c\": 0}\n" +">>> from io import StringIO\n" +">>> io = StringIO()\n" +">>> json.dump(['streaming API'], io)\n" +">>> io.getvalue()\n" +"'[\"streaming API\"]'" #: ../../library/json.rst:53 msgid "Compact encoding::" @@ -102,6 +126,9 @@ msgid "" ">>> json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',', ':'))\n" "'[1,2,3,{\"4\":5,\"6\":7}]'" msgstr "" +">>> import json\n" +">>> json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',', ':'))\n" +"'[1,2,3,{\"4\":5,\"6\":7}]'" #: ../../library/json.rst:59 msgid "Pretty printing::" @@ -116,10 +143,16 @@ msgid "" " \"6\": 7\n" "}" msgstr "" +">>> import json\n" +">>> print(json.dumps({'6': 7, '4': 5}, sort_keys=True, indent=4))\n" +"{\n" +" \"4\": 5,\n" +" \"6\": 7\n" +"}" #: ../../library/json.rst:68 msgid "Customizing JSON object encoding::" -msgstr "" +msgstr "JSON オブジェクトのエンコーディング方法をカスタマイズする::" #: ../../library/json.rst:70 msgid "" @@ -133,6 +166,15 @@ msgid "" ">>> json.dumps(1 + 2j, default=custom_json)\n" "'{\"__complex__\": true, \"real\": 1.0, \"imag\": 2.0}'" msgstr "" +">>> import json\n" +">>> def custom_json(obj):\n" +"... if isinstance(obj, complex):\n" +"... return {'__complex__': True, 'real': obj.real, 'imag': obj." +"imag}\n" +"... raise TypeError(f'Cannot serialize object of {type(obj)}')\n" +"...\n" +">>> json.dumps(1 + 2j, default=custom_json)\n" +"'{\"__complex__\": true, \"real\": 1.0, \"imag\": 2.0}'" #: ../../library/json.rst:79 msgid "Decoding JSON::" @@ -150,10 +192,19 @@ msgid "" ">>> json.load(io)\n" "['streaming API']" msgstr "" +">>> import json\n" +">>> json.loads('[\"foo\", {\"bar\":[\"baz\", null, 1.0, 2]}]')\n" +"['foo', {'bar': ['baz', None, 1.0, 2]}]\n" +">>> json.loads('\"\\\\\"foo\\\\bar\"')\n" +"'\"foo\\x08ar'\n" +">>> from io import StringIO\n" +">>> io = StringIO('[\"streaming API\"]')\n" +">>> json.load(io)\n" +"['streaming API']" #: ../../library/json.rst:91 msgid "Customizing JSON object decoding::" -msgstr "" +msgstr "JSON オブジェクトのデコーディング方法をカスタマイズする::" #: ../../library/json.rst:93 msgid "" @@ -170,6 +221,18 @@ msgid "" ">>> json.loads('1.1', parse_float=decimal.Decimal)\n" "Decimal('1.1')" msgstr "" +">>> import json\n" +">>> def as_complex(dct):\n" +"... if '__complex__' in dct:\n" +"... return complex(dct['real'], dct['imag'])\n" +"... return dct\n" +"...\n" +">>> json.loads('{\"__complex__\": true, \"real\": 1, \"imag\": 2}',\n" +"... object_hook=as_complex)\n" +"(1+2j)\n" +">>> import decimal\n" +">>> json.loads('1.1', parse_float=decimal.Decimal)\n" +"Decimal('1.1')" #: ../../library/json.rst:106 msgid "Extending :class:`JSONEncoder`::" @@ -195,7 +258,7 @@ msgstr "" #: ../../library/json.rst:124 msgid "Using :mod:`json` from the shell to validate and pretty-print:" -msgstr "" +msgstr "シェルから :mod:`json` を使って妥当性チェックをして見やすく表示:" #: ../../library/json.rst:126 msgid "" @@ -206,6 +269,12 @@ msgid "" "$ echo '{1.2:3.4}' | python -m json\n" "Expecting property name enclosed in double quotes: line 1 column 2 (char 1)" msgstr "" +"$ echo '{\"json\":\"obj\"}' | python -m json\n" +"{\n" +" \"json\": \"obj\"\n" +"}\n" +"$ echo '{1.2:3.4}' | python -m json\n" +"Expecting property name enclosed in double quotes: line 1 column 2 (char 1)" #: ../../library/json.rst:135 msgid "See :ref:`json-commandline` for detailed documentation." @@ -241,6 +310,9 @@ msgid "" "supporting :term:`file-like object`) using this :ref:`Python-to-JSON " "conversion table `." msgstr "" +"この :ref:`PythonからJSONへの変換表 ` を使って、 *obj* ã‚’ " +"JSON 形式の *fp* (``.write()`` がサポートされている :term:`file-like " +"object`) へのストリームとして直列化します。" #: ../../library/json.rst:164 msgid "" @@ -518,7 +590,7 @@ msgstr "object" #: ../../library/json.rst:382 ../../library/json.rst:470 msgid "dict" -msgstr "dict" +msgstr "辞書" #: ../../library/json.rst:384 ../../library/json.rst:472 msgid "array" @@ -534,7 +606,7 @@ msgstr "string" #: ../../library/json.rst:386 ../../library/json.rst:474 msgid "str" -msgstr "str" +msgstr "文字列" #: ../../library/json.rst:388 msgid "number (int)" diff --git a/library/keyword.po b/library/keyword.po index 5eb26f268..5deccde89 100644 --- a/library/keyword.po +++ b/library/keyword.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/keyword.rst:2 diff --git a/library/language.po b/library/language.po index 321e5ca7e..3463aac55 100644 --- a/library/language.po +++ b/library/language.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/language.rst:5 diff --git a/library/linecache.po b/library/linecache.po index ba7ba69e6..f59d1be19 100644 --- a/library/linecache.po +++ b/library/linecache.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/linecache.rst:2 diff --git a/library/locale.po b/library/locale.po index f911c5e97..dc96db687 100644 --- a/library/locale.po +++ b/library/locale.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/locale.rst:2 diff --git a/library/logging.config.po b/library/logging.config.po index f45f5e719..a5c8674b7 100644 --- a/library/logging.config.po +++ b/library/logging.config.po @@ -23,10 +23,10 @@ msgstr "" "Last-Translator: Takuya Futatsugi, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/logging.config.rst:2 diff --git a/library/logging.handlers.po b/library/logging.handlers.po index ca3f7768f..a98a266c5 100644 --- a/library/logging.handlers.po +++ b/library/logging.handlers.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/logging.handlers.rst:2 @@ -1100,9 +1100,9 @@ msgid "" "daemon - it no longer listens on a domain socket. Therefore, you cannot " "expect :class:`SysLogHandler` to work on this system." msgstr "" -"macOS 12.x (Monterey) において、 Apple 社は syslog デーモンの振る舞いを変更し" -"ました - デーモンはドメインソケットをの待ち受けを行いません。したがって、この" -"システム上では :class:`SysLogHandler` が動作することは期待できません。" +"macOS 12.x (Monterey) でApple社はsyslogデーモンの振る舞いを変更し、デーモンは" +"ドメインソケットを待ち受けなくなりました。したがってこのシステム上では :" +"class:`SysLogHandler` が動作することは期待できません。" #: ../../library/logging.handlers.rst:648 msgid "See :gh:`91070` for more information." @@ -1622,7 +1622,7 @@ msgstr "" #: ../../library/logging.handlers.rst:881 msgid "Added the *timeout* parameter." -msgstr "" +msgstr "*timeout* 引数が追加されました。" #: ../../library/logging.handlers.rst:886 msgid "Formats the record and sends it to the specified addressees." diff --git a/library/logging.po b/library/logging.po index 1624658c3..2a0fa934e 100644 --- a/library/logging.po +++ b/library/logging.po @@ -24,10 +24,10 @@ msgstr "" "Last-Translator: Takeshi Nakazato, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/logging.rst:2 @@ -702,6 +702,9 @@ msgid "" "into account the relevant :attr:`Logger.propagate` attributes), the message " "will be sent to the handler set on :data:`lastResort`." msgstr "" +"このロガー (および :attr:`Logger.propagate` 属性を考慮した上で実効的にイベン" +"トが伝播する祖先のロガー) にハンドラが接続されていない場合、メッセージは :" +"data:`lastResort` に設定されたハンドラーに送られます。" #: ../../library/logging.rst:347 msgid "The *stack_info* parameter was added." @@ -2323,6 +2326,12 @@ msgid "" "and calling :meth:`Logger.debug` (or other level-specific methods) on it, as " "described at the beginning of this documentation." msgstr "" +"非常に短いスクリプトや ``logging`` の機能についての簡単なデモに対しては、 " +"``debug`` やその他のモジュールレベル関数は便利でしょう。しかしながら、ほとん" +"どのプログラムはロギングの設定を慎重かつ明示的に制御したいはずです。したがっ" +"て、このドキュメントの最初に書かれているとおり、モジュールレベルのロガーを生" +"成してそのロガーに対する :meth:`Logger.debug` メソッド (または他のログレベル" +"固有のメソッド) を呼び出す方を好むでしょう。" #: ../../library/logging.rst:1213 msgid "" diff --git a/library/lzma.po b/library/lzma.po index c14a5aad6..9dec96145 100644 --- a/library/lzma.po +++ b/library/lzma.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/lzma.rst:2 diff --git a/library/mailbox.po b/library/mailbox.po index c5fa01a6d..9da384a30 100644 --- a/library/mailbox.po +++ b/library/mailbox.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/mailbox.rst:2 diff --git a/library/mailcap.po b/library/mailcap.po index 508ef738c..20bd112d9 100644 --- a/library/mailcap.po +++ b/library/mailcap.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/mailcap.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/mailcap.rst:14 msgid "" diff --git a/library/markup.po b/library/markup.po index 04d1f4501..3dd68e8a1 100644 --- a/library/markup.po +++ b/library/markup.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: Osamu NAKAMURA, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/markup.rst:5 diff --git a/library/marshal.po b/library/marshal.po index fac1108cb..ca721f9e5 100644 --- a/library/marshal.po +++ b/library/marshal.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: tomo, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/marshal.rst:2 @@ -260,7 +260,7 @@ msgstr "" #: ../../library/marshal.rst:165 msgid "New features" -msgstr "" +msgstr "新しい機能" #: ../../library/marshal.rst:167 msgid "1" diff --git a/library/math.po b/library/math.po index 384c2ba58..bcb53820a 100644 --- a/library/math.po +++ b/library/math.po @@ -19,10 +19,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/math.rst:2 @@ -69,7 +69,7 @@ msgstr "" #: ../../library/math.rst:32 msgid ":func:`comb(n, k) `" -msgstr "" +msgstr ":func:`comb(n, k) `" #: ../../library/math.rst:32 msgid "" @@ -79,23 +79,23 @@ msgstr "" #: ../../library/math.rst:33 msgid ":func:`factorial(n) `" -msgstr "" +msgstr ":func:`factorial(n) `" #: ../../library/math.rst:33 msgid "*n* factorial" -msgstr "" +msgstr "*n* の階乗" #: ../../library/math.rst:34 msgid ":func:`gcd(*integers) `" -msgstr "" +msgstr ":func:`gcd(*integers) `" #: ../../library/math.rst:34 msgid "Greatest common divisor of the integer arguments" -msgstr "" +msgstr "整数引数の最大公約数" #: ../../library/math.rst:35 msgid ":func:`isqrt(n) `" -msgstr "" +msgstr ":func:`isqrt(n) `" #: ../../library/math.rst:35 msgid "Integer square root of a nonnegative integer *n*" @@ -103,7 +103,7 @@ msgstr "" #: ../../library/math.rst:36 msgid ":func:`lcm(*integers) `" -msgstr "" +msgstr ":func:`lcm(*integers) `" #: ../../library/math.rst:36 msgid "Least common multiple of the integer arguments" @@ -111,7 +111,7 @@ msgstr "" #: ../../library/math.rst:37 msgid ":func:`perm(n, k) `" -msgstr "" +msgstr ":func:`perm(n, k) `" #: ../../library/math.rst:37 msgid "" @@ -125,7 +125,7 @@ msgstr "" #: ../../library/math.rst:41 msgid ":func:`ceil(x) `" -msgstr "" +msgstr ":func:`ceil(x) `" #: ../../library/math.rst:41 msgid "Ceiling of *x*, the smallest integer greater than or equal to *x*" @@ -133,15 +133,15 @@ msgstr "" #: ../../library/math.rst:42 msgid ":func:`fabs(x) `" -msgstr "" +msgstr ":func:`fabs(x) `" #: ../../library/math.rst:42 msgid "Absolute value of *x*" -msgstr "" +msgstr "*x* の絶対値" #: ../../library/math.rst:43 msgid ":func:`floor(x) `" -msgstr "" +msgstr ":func:`floor(x) `" #: ../../library/math.rst:43 msgid "Floor of *x*, the largest integer less than or equal to *x*" @@ -149,7 +149,7 @@ msgstr "" #: ../../library/math.rst:44 msgid ":func:`fma(x, y, z) `" -msgstr "" +msgstr ":func:`fma(x, y, z) `" #: ../../library/math.rst:44 msgid "Fused multiply-add operation: ``(x * y) + z``" @@ -157,15 +157,15 @@ msgstr "" #: ../../library/math.rst:45 msgid ":func:`fmod(x, y) `" -msgstr "" +msgstr ":func:`fmod(x, y) `" #: ../../library/math.rst:45 msgid "Remainder of division ``x / y``" -msgstr "" +msgstr "``x / y`` の剰余" #: ../../library/math.rst:46 msgid ":func:`modf(x) `" -msgstr "" +msgstr ":func:`modf(x) `" #: ../../library/math.rst:46 msgid "Fractional and integer parts of *x*" @@ -173,7 +173,7 @@ msgstr "" #: ../../library/math.rst:47 msgid ":func:`remainder(x, y) `" -msgstr "" +msgstr ":func:`remainder(x, y) `" #: ../../library/math.rst:47 msgid "Remainder of *x* with respect to *y*" @@ -181,11 +181,11 @@ msgstr "" #: ../../library/math.rst:48 msgid ":func:`trunc(x) `" -msgstr "" +msgstr ":func:`trunc(x) `" #: ../../library/math.rst:48 msgid "Integer part of *x*" -msgstr "" +msgstr "*x* の整数部" #: ../../library/math.rst:50 msgid "**Floating point manipulation functions**" @@ -193,7 +193,7 @@ msgstr "" #: ../../library/math.rst:52 msgid ":func:`copysign(x, y) `" -msgstr "" +msgstr ":func:`copysign(x, y) `" #: ../../library/math.rst:52 msgid "Magnitude (absolute value) of *x* with the sign of *y*" @@ -201,7 +201,7 @@ msgstr "" #: ../../library/math.rst:53 msgid ":func:`frexp(x) `" -msgstr "" +msgstr ":func:`frexp(x) `" #: ../../library/math.rst:53 msgid "Mantissa and exponent of *x*" @@ -209,7 +209,7 @@ msgstr "" #: ../../library/math.rst:54 msgid ":func:`isclose(a, b, rel_tol, abs_tol) `" -msgstr "" +msgstr ":func:`isclose(a, b, rel_tol, abs_tol) `" #: ../../library/math.rst:54 msgid "Check if the values *a* and *b* are close to each other" @@ -217,7 +217,7 @@ msgstr "" #: ../../library/math.rst:55 msgid ":func:`isfinite(x) `" -msgstr "" +msgstr ":func:`isfinite(x) `" #: ../../library/math.rst:55 msgid "Check if *x* is neither an infinity nor a NaN" @@ -225,15 +225,15 @@ msgstr "" #: ../../library/math.rst:56 msgid ":func:`isinf(x) `" -msgstr "" +msgstr ":func:`isinf(x) `" #: ../../library/math.rst:56 msgid "Check if *x* is a positive or negative infinity" -msgstr "" +msgstr " *x* が正または負の無限大かを調べる" #: ../../library/math.rst:57 msgid ":func:`isnan(x) `" -msgstr "" +msgstr ":func:`isnan(x) `" #: ../../library/math.rst:57 msgid "Check if *x* is a NaN (not a number)" @@ -241,7 +241,7 @@ msgstr "" #: ../../library/math.rst:58 msgid ":func:`ldexp(x, i) `" -msgstr "" +msgstr ":func:`ldexp(x, i) `" #: ../../library/math.rst:58 msgid "``x * (2**i)``, inverse of function :func:`frexp`" @@ -249,7 +249,7 @@ msgstr "" #: ../../library/math.rst:59 msgid ":func:`nextafter(x, y, steps) `" -msgstr "" +msgstr ":func:`nextafter(x, y, steps) `" #: ../../library/math.rst:59 msgid "Floating-point value *steps* steps after *x* towards *y*" @@ -257,7 +257,7 @@ msgstr "" #: ../../library/math.rst:60 msgid ":func:`ulp(x) `" -msgstr "" +msgstr ":func:`ulp(x) `" #: ../../library/math.rst:60 msgid "Value of the least significant bit of *x*" @@ -269,15 +269,15 @@ msgstr "" #: ../../library/math.rst:64 msgid ":func:`cbrt(x) `" -msgstr "" +msgstr ":func:`cbrt(x) `" #: ../../library/math.rst:64 msgid "Cube root of *x*" -msgstr "" +msgstr "*x* の立方根" #: ../../library/math.rst:65 msgid ":func:`exp(x) `" -msgstr "" +msgstr ":func:`exp(x) `" #: ../../library/math.rst:65 msgid "*e* raised to the power *x*" @@ -285,7 +285,7 @@ msgstr "" #: ../../library/math.rst:66 msgid ":func:`exp2(x) `" -msgstr "" +msgstr ":func:`exp2(x) `" #: ../../library/math.rst:66 msgid "*2* raised to the power *x*" @@ -293,7 +293,7 @@ msgstr "" #: ../../library/math.rst:67 msgid ":func:`expm1(x) `" -msgstr "" +msgstr ":func:`expm1(x) `" #: ../../library/math.rst:67 msgid "*e* raised to the power *x*, minus 1" @@ -301,7 +301,7 @@ msgstr "" #: ../../library/math.rst:68 msgid ":func:`log(x, base) `" -msgstr "" +msgstr ":func:`log(x, base) `" #: ../../library/math.rst:68 msgid "Logarithm of *x* to the given base (*e* by default)" @@ -309,7 +309,7 @@ msgstr "" #: ../../library/math.rst:69 msgid ":func:`log1p(x) `" -msgstr "" +msgstr ":func:`log1p(x) `" #: ../../library/math.rst:69 msgid "Natural logarithm of *1+x* (base *e*)" @@ -317,35 +317,35 @@ msgstr "" #: ../../library/math.rst:70 msgid ":func:`log2(x) `" -msgstr "" +msgstr ":func:`log2(x) `" #: ../../library/math.rst:70 msgid "Base-2 logarithm of *x*" -msgstr "" +msgstr "2を底とする *x* の対数" #: ../../library/math.rst:71 msgid ":func:`log10(x) `" -msgstr "" +msgstr ":func:`log10(x) `" #: ../../library/math.rst:71 msgid "Base-10 logarithm of *x*" -msgstr "" +msgstr "10を底とする *x* の対数" #: ../../library/math.rst:72 msgid ":func:`pow(x, y) `" -msgstr "" +msgstr ":func:`pow(x, y) `" #: ../../library/math.rst:72 msgid "*x* raised to the power *y*" -msgstr "" +msgstr "*x* の *y* ä¹—" #: ../../library/math.rst:73 msgid ":func:`sqrt(x) `" -msgstr "" +msgstr ":func:`sqrt(x) `" #: ../../library/math.rst:73 msgid "Square root of *x*" -msgstr "" +msgstr "*x* の平方根" #: ../../library/math.rst:75 msgid "**Summation and product functions**" @@ -353,7 +353,7 @@ msgstr "" #: ../../library/math.rst:77 msgid ":func:`dist(p, q) `" -msgstr "" +msgstr ":func:`dist(p, q) `" #: ../../library/math.rst:77 msgid "" @@ -363,7 +363,7 @@ msgstr "" #: ../../library/math.rst:78 msgid ":func:`fsum(iterable) `" -msgstr "" +msgstr ":func:`fsum(iterable) `" #: ../../library/math.rst:78 msgid "Sum of values in the input *iterable*" @@ -371,7 +371,7 @@ msgstr "" #: ../../library/math.rst:79 msgid ":func:`hypot(*coordinates) `" -msgstr "" +msgstr ":func:`hypot(*coordinates) `" #: ../../library/math.rst:79 msgid "Euclidean norm of an iterable of coordinates" @@ -379,7 +379,7 @@ msgstr "" #: ../../library/math.rst:80 msgid ":func:`prod(iterable, start) `" -msgstr "" +msgstr ":func:`prod(iterable, start) `" #: ../../library/math.rst:80 msgid "Product of elements in the input *iterable* with a *start* value" @@ -387,7 +387,7 @@ msgstr "" #: ../../library/math.rst:81 msgid ":func:`sumprod(p, q) `" -msgstr "" +msgstr ":func:`sumprod(p, q) `" #: ../../library/math.rst:81 msgid "Sum of products from two iterables *p* and *q*" @@ -399,7 +399,7 @@ msgstr "" #: ../../library/math.rst:85 msgid ":func:`degrees(x) `" -msgstr "" +msgstr ":func:`degrees(x) `" #: ../../library/math.rst:85 msgid "Convert angle *x* from radians to degrees" @@ -407,7 +407,7 @@ msgstr "" #: ../../library/math.rst:86 msgid ":func:`radians(x) `" -msgstr "" +msgstr ":func:`radians(x) `" #: ../../library/math.rst:86 msgid "Convert angle *x* from degrees to radians" @@ -419,59 +419,59 @@ msgstr "" #: ../../library/math.rst:90 msgid ":func:`acos(x) `" -msgstr "" +msgstr ":func:`acos(x) `" #: ../../library/math.rst:90 msgid "Arc cosine of *x*" -msgstr "" +msgstr "*x* の逆余弦" #: ../../library/math.rst:91 msgid ":func:`asin(x) `" -msgstr "" +msgstr ":func:`asin(x) `" #: ../../library/math.rst:91 msgid "Arc sine of *x*" -msgstr "" +msgstr "*x* の逆正弦" #: ../../library/math.rst:92 msgid ":func:`atan(x) `" -msgstr "" +msgstr ":func:`atan(x) `" #: ../../library/math.rst:92 msgid "Arc tangent of *x*" -msgstr "" +msgstr "*x* の逆正接" #: ../../library/math.rst:93 msgid ":func:`atan2(y, x) `" -msgstr "" +msgstr ":func:`atan2(y, x) `" #: ../../library/math.rst:93 msgid "``atan(y / x)``" -msgstr "" +msgstr "``atan(y / x)``" #: ../../library/math.rst:94 msgid ":func:`cos(x) `" -msgstr "" +msgstr ":func:`cos(x) `" #: ../../library/math.rst:94 msgid "Cosine of *x*" -msgstr "" +msgstr "*x* の余弦" #: ../../library/math.rst:95 msgid ":func:`sin(x) `" -msgstr "" +msgstr ":func:`sin(x) `" #: ../../library/math.rst:95 msgid "Sine of *x*" -msgstr "" +msgstr "*x* の正弦" #: ../../library/math.rst:96 msgid ":func:`tan(x) `" -msgstr "" +msgstr ":func:`tan(x) `" #: ../../library/math.rst:96 msgid "Tangent of *x*" -msgstr "" +msgstr "*x* の正接" #: ../../library/math.rst:98 msgid "**Hyperbolic functions**" @@ -479,7 +479,7 @@ msgstr "" #: ../../library/math.rst:100 msgid ":func:`acosh(x) `" -msgstr "" +msgstr ":func:`acosh(x) `" #: ../../library/math.rst:100 msgid "Inverse hyperbolic cosine of *x*" @@ -487,7 +487,7 @@ msgstr "" #: ../../library/math.rst:101 msgid ":func:`asinh(x) `" -msgstr "" +msgstr ":func:`asinh(x) `" #: ../../library/math.rst:101 msgid "Inverse hyperbolic sine of *x*" @@ -495,7 +495,7 @@ msgstr "" #: ../../library/math.rst:102 msgid ":func:`atanh(x) `" -msgstr "" +msgstr ":func:`atanh(x) `" #: ../../library/math.rst:102 msgid "Inverse hyperbolic tangent of *x*" @@ -503,7 +503,7 @@ msgstr "" #: ../../library/math.rst:103 msgid ":func:`cosh(x) `" -msgstr "" +msgstr ":func:`cosh(x) `" #: ../../library/math.rst:103 msgid "Hyperbolic cosine of *x*" @@ -511,7 +511,7 @@ msgstr "" #: ../../library/math.rst:104 msgid ":func:`sinh(x) `" -msgstr "" +msgstr ":func:`sinh(x) `" #: ../../library/math.rst:104 msgid "Hyperbolic sine of *x*" @@ -519,7 +519,7 @@ msgstr "" #: ../../library/math.rst:105 msgid ":func:`tanh(x) `" -msgstr "" +msgstr ":func:`tanh(x) `" #: ../../library/math.rst:105 msgid "Hyperbolic tangent of *x*" @@ -531,7 +531,7 @@ msgstr "" #: ../../library/math.rst:109 msgid ":func:`erf(x) `" -msgstr "" +msgstr ":func:`erf(x) `" #: ../../library/math.rst:109 msgid "`Error function `_ at *x*" @@ -539,7 +539,7 @@ msgstr "" #: ../../library/math.rst:110 msgid ":func:`erfc(x) `" -msgstr "" +msgstr ":func:`erfc(x) `" #: ../../library/math.rst:110 msgid "" @@ -549,7 +549,7 @@ msgstr "" #: ../../library/math.rst:111 msgid ":func:`gamma(x) `" -msgstr "" +msgstr ":func:`gamma(x) `" #: ../../library/math.rst:111 msgid "`Gamma function `_ at *x*" @@ -557,7 +557,7 @@ msgstr "" #: ../../library/math.rst:112 msgid ":func:`lgamma(x) `" -msgstr "" +msgstr ":func:`lgamma(x) `" #: ../../library/math.rst:112 msgid "" @@ -567,47 +567,47 @@ msgstr "" #: ../../library/math.rst:114 msgid "**Constants**" -msgstr "" +msgstr "**定数**" #: ../../library/math.rst:116 msgid ":data:`pi`" -msgstr "" +msgstr ":data:`pi`" #: ../../library/math.rst:116 msgid "*Ï€* = 3.141592..." -msgstr "" +msgstr "*Ï€* = 3.141592..." #: ../../library/math.rst:117 msgid ":data:`e`" -msgstr "" +msgstr ":data:`e`" #: ../../library/math.rst:117 msgid "*e* = 2.718281..." -msgstr "" +msgstr "*e* = 2.718281..." #: ../../library/math.rst:118 msgid ":data:`tau`" -msgstr "" +msgstr ":data:`tau`" #: ../../library/math.rst:118 msgid "*Ï„* = 2\\ *Ï€* = 6.283185..." -msgstr "" +msgstr "*Ï„* = 2\\ *Ï€* = 6.283185..." #: ../../library/math.rst:119 msgid ":data:`inf`" -msgstr "" +msgstr ":data:`inf`" #: ../../library/math.rst:119 msgid "Positive infinity" -msgstr "" +msgstr "正の無限大" #: ../../library/math.rst:120 msgid ":data:`nan`" -msgstr "" +msgstr ":data:`nan`" #: ../../library/math.rst:120 msgid "\"Not a number\" (NaN)" -msgstr "" +msgstr "非数 \"Not a number\" (NaN)" #: ../../library/math.rst:125 msgid "Number-theoretic functions" diff --git a/library/mimetypes.po b/library/mimetypes.po index fe249f6b1..89a29e06e 100644 --- a/library/mimetypes.po +++ b/library/mimetypes.po @@ -21,10 +21,10 @@ msgstr "" "Last-Translator: Takanori Suzuki , 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/mimetypes.rst:2 diff --git a/library/mm.po b/library/mm.po index 9cd2fc6b2..7a750dafc 100644 --- a/library/mm.po +++ b/library/mm.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/mm.rst:5 diff --git a/library/mmap.po b/library/mmap.po index d102cb4a0..63fbf7401 100644 --- a/library/mmap.po +++ b/library/mmap.po @@ -20,10 +20,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/mmap.rst:2 diff --git a/library/modulefinder.po b/library/modulefinder.po index e5aed0c29..662d5bf0f 100644 --- a/library/modulefinder.po +++ b/library/modulefinder.po @@ -17,10 +17,10 @@ msgstr "" "Last-Translator: 石井明久, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/modulefinder.rst:2 diff --git a/library/modules.po b/library/modules.po index fc63ef243..b677db939 100644 --- a/library/modules.po +++ b/library/modules.po @@ -16,10 +16,10 @@ msgstr "" "Last-Translator: tomo, 2021\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/modules.rst:5 diff --git a/library/msilib.po b/library/msilib.po index a0d75f5d0..eae1b0b7a 100644 --- a/library/msilib.po +++ b/library/msilib.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2024-11-19 01:03+0000\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/msilib.rst:2 @@ -28,6 +28,9 @@ msgid "" "`removed in Python 3.13 ` after being deprecated in " "Python 3.11. The removal was decided in :pep:`594`." msgstr "" +"このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュー" +"ルは Python 3.11 で非推奨となったあと、:ref:`Python 3.13 で削除` されました。削除の決定は :pep:`594` でなされました。" #: ../../library/msilib.rst:14 msgid "" diff --git a/library/msvcrt.po b/library/msvcrt.po index 2225e3214..f75476c36 100644 --- a/library/msvcrt.po +++ b/library/msvcrt.po @@ -18,10 +18,10 @@ msgstr "" "Last-Translator: Arihiro TAKASE, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/msvcrt.rst:2 diff --git a/library/multiprocessing.po b/library/multiprocessing.po index 36ea743a6..90fd38609 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -22,10 +22,10 @@ msgstr "" "Last-Translator: tomo, 2024\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/multiprocessing.rst:2 @@ -45,6 +45,8 @@ msgid "" "This module is not supported on :ref:`mobile platforms ` or :ref:`WebAssembly platforms `." msgstr "" +"このモジュールは :ref:`モバイルプラットフォーãƒ