File tree Expand file tree Collapse file tree 9 files changed +3651
-3611
lines changed
Expand file tree Collapse file tree 9 files changed +3651
-3611
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ msgstr ""
173173msgid ""
174174"Return the capsule's internal *pointer* on success. On failure, set an "
175175"exception and return *NULL*."
176- msgstr ""
176+ msgstr "成功した場合、カプセルの内部 *ポインタ* を返します。失敗した場合、例外を設定して *NULL* を返します。 "
177177
178178#: ../../c-api/capsule.rst:115
179179msgid ""
Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ msgid ""
9595"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on "
9696"failure."
9797msgstr ""
98+ "辞書 *p* に、 *key* をキーとして値 *value* を挿入します。 *key* は :c:type:`const char\\ *` "
99+ "型でなければなりません。キーオブジェクトは ``PyUnicode_FromString(key)`` で生成されます。成功した場合には ``0`` "
100+ "を、失敗した場合には ``-1`` を返します。"
98101
99102#: ../../c-api/dict.rst:82
100103msgid ""
@@ -134,6 +137,8 @@ msgid ""
134137"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a "
135138":c:type:`const char\\ *`, rather than a :c:type:`PyObject\\ *`."
136139msgstr ""
140+ ":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:type:`PyObject\\ *` ではなく "
141+ ":c:type:`const char\\ *` で指定します。"
137142
138143#: ../../c-api/dict.rst:115
139144msgid ""
Original file line number Diff line number Diff line change @@ -99,6 +99,9 @@ msgid ""
9999"resized object or *NULL* on failure. *op* must not be tracked by the "
100100"collector yet."
101101msgstr ""
102+ ":c:func:`PyObject_NewVar` が確保したオブジェクトのメモリをリサイズします。\n"
103+ "リサイズされたオブジェクトを返します。失敗すると *NULL* を返します。\n"
104+ "*op* はコレクタに追跡されていてはなりません。"
102105
103106#: ../../c-api/gcsupport.rst:57
104107msgid ""
Original file line number Diff line number Diff line change @@ -307,6 +307,9 @@ msgid ""
307307"not been imported yet then returns NULL but does not set an error. Returns "
308308"NULL and sets an error if the lookup failed."
309309msgstr ""
310+ "与えられた名前の既にインポート済みのモジュールを返します。\n"
311+ "モジュールがインポートされていなかった場合は、 NULL を返しますが、エラーはセットしません。\n"
312+ "モジュールの検索に失敗した場合は、 NULL を返し、エラーをセットします。"
310313
311314#: ../../c-api/import.rst:217
312315msgid ""
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 ""
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ msgstr "``name``"
195195#: ../../c-api/tuple.rst:147 ../../c-api/tuple.rst:149
196196#: ../../c-api/tuple.rst:170 ../../c-api/tuple.rst:175
197197msgid "``const char *``"
198- msgstr ""
198+ msgstr "``const char *`` "
199199
200200#: ../../c-api/tuple.rst:147
201201msgid "name of the struct sequence type"
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 ""
Original file line number Diff line number Diff line change @@ -1169,6 +1169,10 @@ msgid ""
11691169"division without a warning; the warning will be turned on by default in "
11701170"Python 2.3."
11711171msgstr ""
1172+ "Python 2.2 は、コードが変更後の除算セマンティクスで動作するかどうかをテストするコマンドライン引数をサポートします。 :option:`!-Q"
1173+ " warn` で python "
1174+ "を実行すると、除算が二つの整数に適用されている箇所全てで警告します。除算の意味変更の影響を受ける箇所の特定と修正に使えるでしょう。デフォルトでは、Python"
1175+ " 2.2 は警告なしで単純に classic division を実行します; その警告がデフォルトになるのは Python 2.3 からです。"
11721176
11731177#: ../../whatsnew/2.2.rst:770
11741178msgid ":pep:`238` - Changing the Division Operator"
@@ -1425,6 +1429,8 @@ msgid ""
14251429" XML-RPC servers. See http://xmlrpc.scripting.com/ for more information "
14261430"about XML-RPC."
14271431msgstr ""
1432+ ":mod:`SimpleXMLRPCServer` モジュールは、直裁的な XML-RPC サーバを書くのを容易にします。XML-RPC "
1433+ "の詳細については http://xmlrpc.scripting.com/ を参照して下さい。"
14281434
14291435#: ../../whatsnew/2.2.rst:962
14301436msgid ""
You can’t perform that action at this time.
0 commit comments