File tree Expand file tree Collapse file tree 5 files changed +3298
-3257
lines changed
Expand file tree Collapse file tree 5 files changed +3298
-3257
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ msgid ""
3838"determine what the type of keys it supports. This function always succeeds."
3939msgstr ""
4040"オブジェクトがマップ型プロトコルを提供しているか、スライスをサポートしている場合は ``1`` を、そうでない場合は ``0`` を返します。\n"
41- ":meth:`__getitem__` メソッドを持つ Python クラスについては ``1`` を返すのに注意してください。そうなる理由は、一般的なケースではオブジェクトがどの種類のキーをサポートしているかを判別するのが不可能だからです。"
41+ ":meth:`__getitem__` メソッドを持つ Python クラスについては ``1`` を返すのに注意してください。そうなる理由は、一般的なケースではオブジェクトがどの種類のキーをサポートしているかを判別するのが不可能だからです。\n"
42+ "この関数は常に成功します。"
4243
4344#: ../../c-api/mapping.rst:26
4445msgid ""
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ msgid ""
3030"impossible to determine what the type of keys it supports. This function "
3131"always succeeds."
3232msgstr ""
33+ "オブジェクトがシーケンス型プロトコルを提供している場合は ``1`` を、そうでない場合は ``0`` を返します。\n"
34+ ":meth:`__getitem__` メソッドを持つ Python クラスについては、それらが :class:`dict` のサブクラスでない限り、 ``1`` を返すのに注意してください。そうなる理由は、一般的なケースではオブジェクトがどの種類のキーをサポートしているかを判別するのが不可能だからです。 \n"
35+ "この関数は常に成功します。"
3336
3437#: ../../c-api/sequence.rst:23
3538msgid ""
@@ -176,6 +179,10 @@ msgid ""
176179"returned, otherwise a tuple will be constructed with the appropriate "
177180"contents. This is equivalent to the Python expression ``tuple(o)``."
178181msgstr ""
182+ "シーケンスあるいはイテラブルである *o* と同じ内容を持つタプルオブジェクトを返します。\n"
183+ "失敗したら *NULL* を返します。*o* がタプルの場合、新たな参照を返します。\n"
184+ "それ以外の場合、適切な内容が入ったタプルを構築して返します。\n"
185+ "Pythonの式 ``tuple(o)`` と同等です。"
179186
180187#: ../../c-api/sequence.rst:133
181188msgid ""
@@ -185,6 +192,10 @@ msgid ""
185192"Returns *NULL* on failure. If the object is not a sequence or iterable, "
186193"raises :exc:`TypeError` with *m* as the message text."
187194msgstr ""
195+ "シーケンスかイテラブルの *o* をリストとして返します。 *o* が既にタプルかリストだった場合は *o* をそのまま返します。\n"
196+ "返されたタプルのメンバにアクセスするには :c:func:`PySequence_Fast_GET_ITEM` を使います。\n"
197+ "失敗すると *NULL* を返します。\n"
198+ "オブジェクトがシーケンスやイテラブルでなければ、 *m* をメッセージテキストにとする :exc:`TypeError` を送出します。 "
188199
189200#: ../../c-api/sequence.rst:141
190201msgid ""
Original file line number Diff line number Diff line change @@ -227,6 +227,10 @@ msgid ""
227227"(:func:`sys.getfilesystemencoding`). Returns ``0`` at EOF or a negative "
228228"number upon failure."
229229msgstr ""
230+ "対話的デバイスに関連付けられたファイルから EOF に達するまで文を読み込み実行します。\n"
231+ "``sys.ps1`` と ``sys.ps2`` を使って、ユーザにプロンプトを表示します。\n"
232+ "*filename* はファイルシステムのエンコーディング (:func:`sys.getfilesystemencoding`) でデコードされます。\n"
233+ "EOFに達すると ``0`` を返すか、失敗したら負の数を返します。"
230234
231235#: ../../c-api/veryhigh.rst:150
232236msgid ""
You can’t perform that action at this time.
0 commit comments