88msgstr ""
99"Project-Id-Version : Python 3.6\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-01-05 15:01+0000 \n "
11+ "POT-Creation-Date : 2018-05-19 13:27+0900 \n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : cocoatomo, 2017\n "
1414"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -27,7 +27,7 @@ msgid ""
2727"Refer to :ref:`using-capsules` for more information on using these objects."
2828msgstr "`using-capsules` 以下のオブジェクトを使う方法については :ref:`using-capsules` を参照してください。"
2929
30- #: ../../c-api/capsule.rst:15
30+ #: ../../c-api/capsule.rst:17
3131msgid ""
3232"This subtype of :c:type:`PyObject` represents an opaque value, useful for C "
3333"extension modules who need to pass an opaque value (as a :c:type:`void\\ *` "
@@ -41,33 +41,33 @@ msgstr ""
4141"ポインタの形で)渡す必要があるときに有用です。あるモジュール内で定義されているC言語関数のポインタを、他のモジュールに渡してそこから呼び出せるようにするためによく使われます。これにより、動的にロードされるモジュールの中の"
4242" C API に通常の import 機構を通してアクセスすることができます。"
4343
44- #: ../../c-api/capsule.rst:24
44+ #: ../../c-api/capsule.rst:27
4545msgid "The type of a destructor callback for a capsule. Defined as::"
4646msgstr "カプセルに対するデストラクタコールバック型. 次のように定義されます::"
4747
48- #: ../../c-api/capsule.rst:28
48+ #: ../../c-api/capsule.rst:31
4949msgid ""
5050"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "
5151"callbacks."
5252msgstr ""
5353"PyCapsule_Destructor コールバックの動作については :c:func:`PyCapsule_New` を参照してください。"
5454
55- #: ../../c-api/capsule.rst:34
55+ #: ../../c-api/capsule.rst:37
5656msgid "Return true if its argument is a :c:type:`PyCapsule`."
5757msgstr "引数が :c:type:`PyCapsule` だったときに true を返します。"
5858
59- #: ../../c-api/capsule.rst:39
59+ #: ../../c-api/capsule.rst:42
6060msgid ""
6161"Create a :c:type:`PyCapsule` encapsulating the *pointer*. The *pointer* "
6262"argument may not be *NULL*."
6363msgstr ""
6464"*pointer* を格納する :c:type:`PyCapsule` を作成します。 *pointer* 引数は *NULL* であってはなりません。"
6565
66- #: ../../c-api/capsule.rst:42
66+ #: ../../c-api/capsule.rst:45
6767msgid "On failure, set an exception and return *NULL*."
6868msgstr "失敗した場合、例外を設定して *NULL* を返します。"
6969
70- #: ../../c-api/capsule.rst:44
70+ #: ../../c-api/capsule.rst:47
7171msgid ""
7272"The *name* string may either be *NULL* or a pointer to a valid C string. If"
7373" non-*NULL*, this string must outlive the capsule. (Though it is permitted "
@@ -76,13 +76,13 @@ msgstr ""
7676"*name* 文字列は *NULL* か、有効なC文字列へのポインタです。*NULL* "
7777"で無い場合、この文字列は少なくともカプセルより長く生存する必要があります。(*destructor* の中で解放することは許可されています)"
7878
79- #: ../../c-api/capsule.rst:48
79+ #: ../../c-api/capsule.rst:51
8080msgid ""
8181"If the *destructor* argument is not *NULL*, it will be called with the "
8282"capsule as its argument when it is destroyed."
8383msgstr "*destructor* が *NULL* で無い場合、カプセルが削除されるときにそのカプセルを引数として呼び出されます。"
8484
85- #: ../../c-api/capsule.rst:51
85+ #: ../../c-api/capsule.rst:54
8686msgid ""
8787"If this capsule will be stored as an attribute of a module, the *name* "
8888"should be specified as ``modulename.attributename``. This will enable other"
@@ -91,13 +91,13 @@ msgstr ""
9191"このカプセルがモジュールの属性として保存される場合、 *name* は ``modulename.attributename`` "
9292"と指定されるべきです。こうすると、他のモジュールがそのカプセルを :c:func:`PyCapsule_Import` でインポートすることができます。"
9393
94- #: ../../c-api/capsule.rst:58
94+ #: ../../c-api/capsule.rst:61
9595msgid ""
9696"Retrieve the *pointer* stored in the capsule. On failure, set an exception "
9797"and return *NULL*."
9898msgstr "カプセルに保存されている *pointer* を取り出します。失敗した場合は例外を設定して *NULL* を返します。"
9999
100- #: ../../c-api/capsule.rst:61
100+ #: ../../c-api/capsule.rst:64
101101msgid ""
102102"The *name* parameter must compare exactly to the name stored in the capsule."
103103" If the name stored in the capsule is *NULL*, the *name* passed in must also"
@@ -108,13 +108,13 @@ msgstr ""
108108"なら、この関数の *name* 引数も同じく *NULL* でなければなりません。 Python は C言語の :c:func:`strcmp` "
109109"を使ってこの name を比較します。"
110110
111- #: ../../c-api/capsule.rst:69
111+ #: ../../c-api/capsule.rst:72
112112msgid ""
113113"Return the current destructor stored in the capsule. On failure, set an "
114114"exception and return *NULL*."
115115msgstr "カプセルに保存されている現在のデストラクタを返します。失敗した場合、例外を設定して *NULL* を返します。"
116116
117- #: ../../c-api/capsule.rst:72
117+ #: ../../c-api/capsule.rst:75
118118msgid ""
119119"It is legal for a capsule to have a *NULL* destructor. This makes a *NULL* "
120120"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -123,13 +123,13 @@ msgstr ""
123123"カプセルは *NULL* をデストラクタとして持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 "
124124":c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
125125
126- #: ../../c-api/capsule.rst:79
126+ #: ../../c-api/capsule.rst:82
127127msgid ""
128128"Return the current context stored in the capsule. On failure, set an "
129129"exception and return *NULL*."
130130msgstr "カプセルに保存されている現在のコンテキスト(context)を返します。失敗した場合、例外を設定して *NULL* を返します。"
131131
132- #: ../../c-api/capsule.rst:82
132+ #: ../../c-api/capsule.rst:85
133133msgid ""
134134"It is legal for a capsule to have a *NULL* context. This makes a *NULL* "
135135"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -138,13 +138,13 @@ msgstr ""
138138"カプセルは *NULL* をコンテキストとして持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 "
139139":c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
140140
141- #: ../../c-api/capsule.rst:89
141+ #: ../../c-api/capsule.rst:92
142142msgid ""
143143"Return the current name stored in the capsule. On failure, set an exception"
144144" and return *NULL*."
145145msgstr "カプセルに保存されている現在の name を返します。失敗した場合、例外を設定して *NULL* を返します。"
146146
147- #: ../../c-api/capsule.rst:92
147+ #: ../../c-api/capsule.rst:95
148148msgid ""
149149"It is legal for a capsule to have a *NULL* name. This makes a *NULL* return"
150150" code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -153,7 +153,7 @@ msgstr ""
153153"カプセルは *NULL* を name として持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 "
154154":c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
155155
156- #: ../../c-api/capsule.rst:99
156+ #: ../../c-api/capsule.rst:102
157157msgid ""
158158"Import a pointer to a C object from a capsule attribute in a module. The "
159159"*name* parameter should specify the full name to the attribute, as in "
@@ -169,16 +169,13 @@ msgstr ""
169169"*no_block* が偽の時、モジュールは (:c:func:`PyImport_ImportModule` を使って) "
170170"通常の方法でインポートされます。"
171171
172- #: ../../c-api/capsule.rst:106
172+ #: ../../c-api/capsule.rst:109
173173msgid ""
174174"Return the capsule's internal *pointer* on success. On failure, set an "
175- "exception and return *NULL*. However, if :c:func:`PyCapsule_Import` failed "
176- "to import the module, and *no_block* was true, no exception is set."
175+ "exception and return *NULL*."
177176msgstr ""
178- "成功した場合、カプセル内部の *pointer* を返します。失敗した場合、例外を設定して *NULL* を返します。ただし、 *no_block* "
179- "が真だった場合は、 :c:func:`PyCapsule_Import` はモジュールのインポートに失敗しても例外を設定しません。"
180177
181- #: ../../c-api/capsule.rst:112
178+ #: ../../c-api/capsule.rst:115
182179msgid ""
183180"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
184181"non-*NULL*, passes :c:func:`PyCapsule_CheckExact`, has a non-*NULL* pointer "
@@ -190,7 +187,7 @@ msgstr ""
190187":c:func:`PyCapsule_CheckExact` をパスし、非 *NULL* なポインタを格納していて、内部の name が引数 "
191188"*name* とマッチします。 (name の比較方法については :c:func:`PyCapsule_GetPointer` を参照)"
192189
193- #: ../../c-api/capsule.rst:118
190+ #: ../../c-api/capsule.rst:121
194191msgid ""
195192"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
196193"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`)"
@@ -199,28 +196,28 @@ msgstr ""
199196"言い換えると、 :c:func:`PyCapsule_IsValid` が真を返す場合、全てのアクセッサ "
200197"(:c:func:`PyCapsule_Get` で始まる全ての関数) が成功することが保証されます。"
201198
202- #: ../../c-api/capsule.rst:122
199+ #: ../../c-api/capsule.rst:125
203200msgid ""
204201"Return a nonzero value if the object is valid and matches the name passed "
205202"in. Return ``0`` otherwise. This function will not fail."
206203msgstr ""
207204"オブジェクトが有効で name がマッチした場合に非 ``0`` を、それ以外の場合に ``0`` を返します。この関数は絶対に失敗しません。"
208205
209- #: ../../c-api/capsule.rst:127
206+ #: ../../c-api/capsule.rst:131
210207msgid "Set the context pointer inside *capsule* to *context*."
211208msgstr "*capsule* 内部のコンテキストポインタを *context* に設定します。"
212209
213- #: ../../c-api/capsule.rst:129 ../../c-api/capsule.rst:135
214- #: ../../c-api/capsule.rst:143 ../../c-api/capsule.rst:150
210+ #: ../../c-api/capsule.rst:133 ../../c-api/capsule.rst:140
211+ #: ../../c-api/capsule.rst:149 ../../c-api/capsule.rst:157
215212msgid ""
216213"Return ``0`` on success. Return nonzero and set an exception on failure."
217214msgstr "成功したら ``0`` を、失敗したら例外を設定して非 ``0`` を返します。"
218215
219- #: ../../c-api/capsule.rst:133
216+ #: ../../c-api/capsule.rst:138
220217msgid "Set the destructor inside *capsule* to *destructor*."
221218msgstr "*capsule* 内部のデストラクタを *destructor* に設定します。"
222219
223- #: ../../c-api/capsule.rst:139
220+ #: ../../c-api/capsule.rst:145
224221msgid ""
225222"Set the name inside *capsule* to *name*. If non-*NULL*, the name must "
226223"outlive the capsule. If the previous *name* stored in the capsule was not "
@@ -230,7 +227,7 @@ msgstr ""
230227"よりも長い寿命を持つ必要があります。もしすでに *capsule* に非 *NULL* の *name* "
231228"が保存されていた場合、それに対する解放は行われません。"
232229
233- #: ../../c-api/capsule.rst:147
230+ #: ../../c-api/capsule.rst:154
234231msgid ""
235232"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
236233"*NULL*."
0 commit comments