77msgstr ""
88"Project-Id-Version : Python 2.7\n "
99"Report-Msgid-Bugs-To : \n "
10- "POT-Creation-Date : 2018-01-21 01:52 +0900\n "
11- "PO-Revision-Date : 2017-09-22 17:56 +0000\n "
10+ "POT-Creation-Date : 2018-05-19 13:19 +0900\n "
11+ "PO-Revision-Date : 2018-05-19 04:25 +0000\n "
1212"Last-Translator : cocoatomo\n "
1313"Language-Team : Japanese (http://www.transifex.com/python-doc/python-27/language/ja/)\n "
1414"MIME-Version : 1.0\n "
@@ -26,7 +26,7 @@ msgid ""
2626"Refer to :ref:`using-capsules` for more information on using these objects."
2727msgstr "`using-capsules` 以下のオブジェクトを使う方法については :ref:`using-capsules` を参照してください。"
2828
29- #: ../../c-api/capsule.rst:15
29+ #: ../../c-api/capsule.rst:17
3030msgid ""
3131"This subtype of :c:type:`PyObject` represents an opaque value, useful for C "
3232"extension modules who need to pass an opaque value (as a :c:type:`void\\ *` "
@@ -36,104 +36,104 @@ msgid ""
3636" loaded modules."
3737msgstr "この :c:type:`PyObject` のサブタイプは、任意の値を表し、C拡張モジュールから Pythonコードを経由して他のC言語のコードに任意の値を(:c:type:`void\\ *` ポインタの形で)渡す必要があるときに有用です。あるモジュール内で定義されているC言語関数のポインタを、他のモジュールに渡してそこから呼び出せるようにするためによく使われます。これにより、動的にロードされるモジュールの中の C API に通常の import 機構を通してアクセスすることができます。"
3838
39- #: ../../c-api/capsule.rst:24
39+ #: ../../c-api/capsule.rst:27
4040msgid "The type of a destructor callback for a capsule. Defined as::"
4141msgstr "カプセルに対するデストラクタコールバック型. 次のように定義されます::"
4242
43- #: ../../c-api/capsule.rst:28
43+ #: ../../c-api/capsule.rst:31
4444msgid ""
4545"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "
4646"callbacks."
4747msgstr "PyCapsule_Destructor コールバックの動作については :c:func:`PyCapsule_New` を参照してください。"
4848
49- #: ../../c-api/capsule.rst:34
49+ #: ../../c-api/capsule.rst:37
5050msgid "Return true if its argument is a :c:type:`PyCapsule`."
5151msgstr "引数が :c:type:`PyCapsule` だったときに true を返します。"
5252
53- #: ../../c-api/capsule.rst:39
53+ #: ../../c-api/capsule.rst:42
5454msgid ""
5555"Create a :c:type:`PyCapsule` encapsulating the *pointer*. The *pointer* "
5656"argument may not be *NULL*."
5757msgstr "*pointer* を格納する :c:type:`PyCapsule` を作成します。 *pointer* 引数は *NULL* であってはなりません。"
5858
59- #: ../../c-api/capsule.rst:42
59+ #: ../../c-api/capsule.rst:45
6060msgid "On failure, set an exception and return *NULL*."
6161msgstr "失敗した場合、例外を設定して *NULL* を返します。"
6262
63- #: ../../c-api/capsule.rst:44
63+ #: ../../c-api/capsule.rst:47
6464msgid ""
6565"The *name* string may either be *NULL* or a pointer to a valid C string. If"
6666" non-*NULL*, this string must outlive the capsule. (Though it is permitted "
6767"to free it inside the *destructor*.)"
6868msgstr "*name* 文字列は *NULL* か、有効なC文字列へのポインタです。*NULL* で無い場合、この文字列は少なくともカプセルより長く生存する必要があります。(*destructor* の中で解放することは許可されています)"
6969
70- #: ../../c-api/capsule.rst:48
70+ #: ../../c-api/capsule.rst:51
7171msgid ""
7272"If the *destructor* argument is not *NULL*, it will be called with the "
7373"capsule as its argument when it is destroyed."
7474msgstr "*destructor* が *NULL* で無い場合、カプセルが削除されるときにそのカプセルを引数として呼び出されます。"
7575
76- #: ../../c-api/capsule.rst:51
76+ #: ../../c-api/capsule.rst:54
7777msgid ""
7878"If this capsule will be stored as an attribute of a module, the *name* "
7979"should be specified as ``modulename.attributename``. This will enable other"
8080" modules to import the capsule using :c:func:`PyCapsule_Import`."
8181msgstr "このカプセルがモジュールの属性として保存される場合、 *name* は ``modulename.attributename`` と指定されるべきです。こうすると、他のモジュールがそのカプセルを :c:func:`PyCapsule_Import` でインポートすることができます。"
8282
83- #: ../../c-api/capsule.rst:58
83+ #: ../../c-api/capsule.rst:61
8484msgid ""
8585"Retrieve the *pointer* stored in the capsule. On failure, set an exception "
8686"and return *NULL*."
8787msgstr "カプセルに保存されている *pointer* を取り出します。失敗した場合は例外を設定して *NULL* を返します。"
8888
89- #: ../../c-api/capsule.rst:61
89+ #: ../../c-api/capsule.rst:64
9090msgid ""
9191"The *name* parameter must compare exactly to the name stored in the capsule."
9292" If the name stored in the capsule is *NULL*, the *name* passed in must also"
9393" be *NULL*. Python uses the C function :c:func:`strcmp` to compare capsule "
9494"names."
9595msgstr "*name* 引数はカプセルに保存されている名前と正確に一致しなければなりません。もしカプセルに格納されている name が *NULL* なら、この関数の *name* 引数も同じく *NULL* でなければなりません。 Python は C言語の :c:func:`strcmp` を使ってこの name を比較します。"
9696
97- #: ../../c-api/capsule.rst:69
97+ #: ../../c-api/capsule.rst:72
9898msgid ""
9999"Return the current destructor stored in the capsule. On failure, set an "
100100"exception and return *NULL*."
101101msgstr "カプセルに保存されている現在のデストラクタを返します。失敗した場合、例外を設定して *NULL* を返します。"
102102
103- #: ../../c-api/capsule.rst:72
103+ #: ../../c-api/capsule.rst:75
104104msgid ""
105105"It is legal for a capsule to have a *NULL* destructor. This makes a *NULL* "
106106"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
107107":c:func:`PyErr_Occurred` to disambiguate."
108108msgstr "カプセルは *NULL* をデストラクタとして持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 :c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
109109
110- #: ../../c-api/capsule.rst:79
110+ #: ../../c-api/capsule.rst:82
111111msgid ""
112112"Return the current context stored in the capsule. On failure, set an "
113113"exception and return *NULL*."
114114msgstr "カプセルに保存されている現在のコンテキスト(context)を返します。失敗した場合、例外を設定して *NULL* を返します。"
115115
116- #: ../../c-api/capsule.rst:82
116+ #: ../../c-api/capsule.rst:85
117117msgid ""
118118"It is legal for a capsule to have a *NULL* context. This makes a *NULL* "
119119"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
120120":c:func:`PyErr_Occurred` to disambiguate."
121121msgstr "カプセルは *NULL* をコンテキストとして持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 :c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
122122
123- #: ../../c-api/capsule.rst:89
123+ #: ../../c-api/capsule.rst:92
124124msgid ""
125125"Return the current name stored in the capsule. On failure, set an exception"
126126" and return *NULL*."
127127msgstr "カプセルに保存されている現在の name を返します。失敗した場合、例外を設定して *NULL* を返します。"
128128
129- #: ../../c-api/capsule.rst:92
129+ #: ../../c-api/capsule.rst:95
130130msgid ""
131131"It is legal for a capsule to have a *NULL* name. This makes a *NULL* return"
132132" code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
133133":c:func:`PyErr_Occurred` to disambiguate."
134134msgstr "カプセルは *NULL* を name として持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 :c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
135135
136- #: ../../c-api/capsule.rst:99
136+ #: ../../c-api/capsule.rst:102
137137msgid ""
138138"Import a pointer to a C object from a capsule attribute in a module. The "
139139"*name* parameter should specify the full name to the attribute, as in "
@@ -143,14 +143,13 @@ msgid ""
143143"import the module conventionally (using :c:func:`PyImport_ImportModule`)."
144144msgstr "モジュールのカプセル属性から Cオブジェクトへのポインタをインポートします。 *name* 引数はその属性の完全名を ``module.attribute`` のように指定しなければなりません。カプセルに格納されている *name* はこの文字列に正確に一致しなければなりません。 *no_block* が真の時、モジュールを(:c:func:`PyImport_ImportModuleNoBlock` を使って) ブロックせずにインポートします。 *no_block* が偽の時、モジュールは (:c:func:`PyImport_ImportModule` を使って) 通常の方法でインポートされます。"
145145
146- #: ../../c-api/capsule.rst:106
146+ #: ../../c-api/capsule.rst:109
147147msgid ""
148148"Return the capsule's internal *pointer* on success. On failure, set an "
149- "exception and return *NULL*. However, if :c:func:`PyCapsule_Import` failed "
150- "to import the module, and *no_block* was true, no exception is set."
151- msgstr "成功した場合、カプセル内部の *pointer* を返します。失敗した場合、例外を設定して *NULL* を返します。ただし、 *no_block* が真だった場合は、 :c:func:`PyCapsule_Import` はモジュールのインポートに失敗しても例外を設定しません。"
149+ "exception and return *NULL*."
150+ msgstr ""
152151
153- #: ../../c-api/capsule.rst:112
152+ #: ../../c-api/capsule.rst:115
154153msgid ""
155154"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
156155"non-*NULL*, passes :c:func:`PyCapsule_CheckExact`, has a non-*NULL* pointer "
@@ -159,41 +158,41 @@ msgid ""
159158"compared.)"
160159msgstr "*capsule* が有効なカプセルであるかどうかをチェックします。有効な *capsule* は、非 *NULL* で、 :c:func:`PyCapsule_CheckExact` をパスし、非 *NULL* なポインタを格納していて、内部の name が引数 *name* とマッチします。 (name の比較方法については :c:func:`PyCapsule_GetPointer` を参照)"
161160
162- #: ../../c-api/capsule.rst:118
161+ #: ../../c-api/capsule.rst:121
163162msgid ""
164163"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
165164"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`)"
166165" are guaranteed to succeed."
167166msgstr "言い換えると、 :c:func:`PyCapsule_IsValid` が真を返す場合、全てのアクセッサ (:c:func:`PyCapsule_Get` で始まる全ての関数) が成功することが保証されます。"
168167
169- #: ../../c-api/capsule.rst:122
168+ #: ../../c-api/capsule.rst:125
170169msgid ""
171170"Return a nonzero value if the object is valid and matches the name passed "
172171"in. Return ``0`` otherwise. This function will not fail."
173172msgstr "オブジェクトが有効で name がマッチした場合に非 ``0`` を、それ以外の場合に ``0`` を返します。この関数は絶対に失敗しません。"
174173
175- #: ../../c-api/capsule.rst:127
174+ #: ../../c-api/capsule.rst:131
176175msgid "Set the context pointer inside *capsule* to *context*."
177176msgstr "*capsule* 内部のコンテキストポインタを *context* に設定します。"
178177
179- #: ../../c-api/capsule.rst:129 ../../c-api/capsule.rst:135
180- #: ../../c-api/capsule.rst:143 ../../c-api/capsule.rst:150
178+ #: ../../c-api/capsule.rst:133 ../../c-api/capsule.rst:140
179+ #: ../../c-api/capsule.rst:149 ../../c-api/capsule.rst:157
181180msgid ""
182181"Return ``0`` on success. Return nonzero and set an exception on failure."
183182msgstr "成功したら ``0`` を、失敗したら例外を設定して非 ``0`` を返します。"
184183
185- #: ../../c-api/capsule.rst:133
184+ #: ../../c-api/capsule.rst:138
186185msgid "Set the destructor inside *capsule* to *destructor*."
187186msgstr "*capsule* 内部のデストラクタを *destructor* に設定します。"
188187
189- #: ../../c-api/capsule.rst:139
188+ #: ../../c-api/capsule.rst:145
190189msgid ""
191190"Set the name inside *capsule* to *name*. If non-*NULL*, the name must "
192191"outlive the capsule. If the previous *name* stored in the capsule was not "
193192"*NULL*, no attempt is made to free it."
194193msgstr "*capsule* 内部の name を *name* に設定します。*name* が非 *NULL* のとき、それは *capsule* よりも長い寿命を持つ必要があります。もしすでに *capsule* に非 *NULL* の *name* が保存されていた場合、それに対する解放は行われません。"
195194
196- #: ../../c-api/capsule.rst:147
195+ #: ../../c-api/capsule.rst:154
197196msgid ""
198197"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
199198"*NULL*."
0 commit comments