8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.6\n "
10
10
"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 "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : cocoatomo, 2017\n "
14
14
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -27,7 +27,7 @@ msgid ""
27
27
"Refer to :ref:`using-capsules` for more information on using these objects."
28
28
msgstr "`using-capsules` 以下のオブジェクトを使う方法については :ref:`using-capsules` を参照してください。"
29
29
30
- #: ../../c-api/capsule.rst:15
30
+ #: ../../c-api/capsule.rst:17
31
31
msgid ""
32
32
"This subtype of :c:type:`PyObject` represents an opaque value, useful for C "
33
33
"extension modules who need to pass an opaque value (as a :c:type:`void\\ *` "
@@ -41,33 +41,33 @@ msgstr ""
41
41
"ポインタの形で)渡す必要があるときに有用です。あるモジュール内で定義されているC言語関数のポインタを、他のモジュールに渡してそこから呼び出せるようにするためによく使われます。これにより、動的にロードされるモジュールの中の"
42
42
" C API に通常の import 機構を通してアクセスすることができます。"
43
43
44
- #: ../../c-api/capsule.rst:24
44
+ #: ../../c-api/capsule.rst:27
45
45
msgid "The type of a destructor callback for a capsule. Defined as::"
46
46
msgstr "カプセルに対するデストラクタコールバック型. 次のように定義されます::"
47
47
48
- #: ../../c-api/capsule.rst:28
48
+ #: ../../c-api/capsule.rst:31
49
49
msgid ""
50
50
"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "
51
51
"callbacks."
52
52
msgstr ""
53
53
"PyCapsule_Destructor コールバックの動作については :c:func:`PyCapsule_New` を参照してください。"
54
54
55
- #: ../../c-api/capsule.rst:34
55
+ #: ../../c-api/capsule.rst:37
56
56
msgid "Return true if its argument is a :c:type:`PyCapsule`."
57
57
msgstr "引数が :c:type:`PyCapsule` だったときに true を返します。"
58
58
59
- #: ../../c-api/capsule.rst:39
59
+ #: ../../c-api/capsule.rst:42
60
60
msgid ""
61
61
"Create a :c:type:`PyCapsule` encapsulating the *pointer*. The *pointer* "
62
62
"argument may not be *NULL*."
63
63
msgstr ""
64
64
"*pointer* を格納する :c:type:`PyCapsule` を作成します。 *pointer* 引数は *NULL* であってはなりません。"
65
65
66
- #: ../../c-api/capsule.rst:42
66
+ #: ../../c-api/capsule.rst:45
67
67
msgid "On failure, set an exception and return *NULL*."
68
68
msgstr "失敗した場合、例外を設定して *NULL* を返します。"
69
69
70
- #: ../../c-api/capsule.rst:44
70
+ #: ../../c-api/capsule.rst:47
71
71
msgid ""
72
72
"The *name* string may either be *NULL* or a pointer to a valid C string. If"
73
73
" non-*NULL*, this string must outlive the capsule. (Though it is permitted "
@@ -76,13 +76,13 @@ msgstr ""
76
76
"*name* 文字列は *NULL* か、有効なC文字列へのポインタです。*NULL* "
77
77
"で無い場合、この文字列は少なくともカプセルより長く生存する必要があります。(*destructor* の中で解放することは許可されています)"
78
78
79
- #: ../../c-api/capsule.rst:48
79
+ #: ../../c-api/capsule.rst:51
80
80
msgid ""
81
81
"If the *destructor* argument is not *NULL*, it will be called with the "
82
82
"capsule as its argument when it is destroyed."
83
83
msgstr "*destructor* が *NULL* で無い場合、カプセルが削除されるときにそのカプセルを引数として呼び出されます。"
84
84
85
- #: ../../c-api/capsule.rst:51
85
+ #: ../../c-api/capsule.rst:54
86
86
msgid ""
87
87
"If this capsule will be stored as an attribute of a module, the *name* "
88
88
"should be specified as ``modulename.attributename``. This will enable other"
@@ -91,13 +91,13 @@ msgstr ""
91
91
"このカプセルがモジュールの属性として保存される場合、 *name* は ``modulename.attributename`` "
92
92
"と指定されるべきです。こうすると、他のモジュールがそのカプセルを :c:func:`PyCapsule_Import` でインポートすることができます。"
93
93
94
- #: ../../c-api/capsule.rst:58
94
+ #: ../../c-api/capsule.rst:61
95
95
msgid ""
96
96
"Retrieve the *pointer* stored in the capsule. On failure, set an exception "
97
97
"and return *NULL*."
98
98
msgstr "カプセルに保存されている *pointer* を取り出します。失敗した場合は例外を設定して *NULL* を返します。"
99
99
100
- #: ../../c-api/capsule.rst:61
100
+ #: ../../c-api/capsule.rst:64
101
101
msgid ""
102
102
"The *name* parameter must compare exactly to the name stored in the capsule."
103
103
" If the name stored in the capsule is *NULL*, the *name* passed in must also"
@@ -108,13 +108,13 @@ msgstr ""
108
108
"なら、この関数の *name* 引数も同じく *NULL* でなければなりません。 Python は C言語の :c:func:`strcmp` "
109
109
"を使ってこの name を比較します。"
110
110
111
- #: ../../c-api/capsule.rst:69
111
+ #: ../../c-api/capsule.rst:72
112
112
msgid ""
113
113
"Return the current destructor stored in the capsule. On failure, set an "
114
114
"exception and return *NULL*."
115
115
msgstr "カプセルに保存されている現在のデストラクタを返します。失敗した場合、例外を設定して *NULL* を返します。"
116
116
117
- #: ../../c-api/capsule.rst:72
117
+ #: ../../c-api/capsule.rst:75
118
118
msgid ""
119
119
"It is legal for a capsule to have a *NULL* destructor. This makes a *NULL* "
120
120
"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -123,13 +123,13 @@ msgstr ""
123
123
"カプセルは *NULL* をデストラクタとして持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 "
124
124
":c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
125
125
126
- #: ../../c-api/capsule.rst:79
126
+ #: ../../c-api/capsule.rst:82
127
127
msgid ""
128
128
"Return the current context stored in the capsule. On failure, set an "
129
129
"exception and return *NULL*."
130
130
msgstr "カプセルに保存されている現在のコンテキスト(context)を返します。失敗した場合、例外を設定して *NULL* を返します。"
131
131
132
- #: ../../c-api/capsule.rst:82
132
+ #: ../../c-api/capsule.rst:85
133
133
msgid ""
134
134
"It is legal for a capsule to have a *NULL* context. This makes a *NULL* "
135
135
"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -138,13 +138,13 @@ msgstr ""
138
138
"カプセルは *NULL* をコンテキストとして持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 "
139
139
":c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
140
140
141
- #: ../../c-api/capsule.rst:89
141
+ #: ../../c-api/capsule.rst:92
142
142
msgid ""
143
143
"Return the current name stored in the capsule. On failure, set an exception"
144
144
" and return *NULL*."
145
145
msgstr "カプセルに保存されている現在の name を返します。失敗した場合、例外を設定して *NULL* を返します。"
146
146
147
- #: ../../c-api/capsule.rst:92
147
+ #: ../../c-api/capsule.rst:95
148
148
msgid ""
149
149
"It is legal for a capsule to have a *NULL* name. This makes a *NULL* return"
150
150
" code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -153,7 +153,7 @@ msgstr ""
153
153
"カプセルは *NULL* を name として持つことができます。従って、戻り値の *NULL* がエラーを指してない可能性があります。 "
154
154
":c:func:`PyCapsule_IsValid` か :c:func:`PyErr_Occurred` を利用して確認してください。"
155
155
156
- #: ../../c-api/capsule.rst:99
156
+ #: ../../c-api/capsule.rst:102
157
157
msgid ""
158
158
"Import a pointer to a C object from a capsule attribute in a module. The "
159
159
"*name* parameter should specify the full name to the attribute, as in "
@@ -169,16 +169,13 @@ msgstr ""
169
169
"*no_block* が偽の時、モジュールは (:c:func:`PyImport_ImportModule` を使って) "
170
170
"通常の方法でインポートされます。"
171
171
172
- #: ../../c-api/capsule.rst:106
172
+ #: ../../c-api/capsule.rst:109
173
173
msgid ""
174
174
"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*."
177
176
msgstr ""
178
- "成功した場合、カプセル内部の *pointer* を返します。失敗した場合、例外を設定して *NULL* を返します。ただし、 *no_block* "
179
- "が真だった場合は、 :c:func:`PyCapsule_Import` はモジュールのインポートに失敗しても例外を設定しません。"
180
177
181
- #: ../../c-api/capsule.rst:112
178
+ #: ../../c-api/capsule.rst:115
182
179
msgid ""
183
180
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
184
181
"non-*NULL*, passes :c:func:`PyCapsule_CheckExact`, has a non-*NULL* pointer "
@@ -190,7 +187,7 @@ msgstr ""
190
187
":c:func:`PyCapsule_CheckExact` をパスし、非 *NULL* なポインタを格納していて、内部の name が引数 "
191
188
"*name* とマッチします。 (name の比較方法については :c:func:`PyCapsule_GetPointer` を参照)"
192
189
193
- #: ../../c-api/capsule.rst:118
190
+ #: ../../c-api/capsule.rst:121
194
191
msgid ""
195
192
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
196
193
"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`)"
@@ -199,28 +196,28 @@ msgstr ""
199
196
"言い換えると、 :c:func:`PyCapsule_IsValid` が真を返す場合、全てのアクセッサ "
200
197
"(:c:func:`PyCapsule_Get` で始まる全ての関数) が成功することが保証されます。"
201
198
202
- #: ../../c-api/capsule.rst:122
199
+ #: ../../c-api/capsule.rst:125
203
200
msgid ""
204
201
"Return a nonzero value if the object is valid and matches the name passed "
205
202
"in. Return ``0`` otherwise. This function will not fail."
206
203
msgstr ""
207
204
"オブジェクトが有効で name がマッチした場合に非 ``0`` を、それ以外の場合に ``0`` を返します。この関数は絶対に失敗しません。"
208
205
209
- #: ../../c-api/capsule.rst:127
206
+ #: ../../c-api/capsule.rst:131
210
207
msgid "Set the context pointer inside *capsule* to *context*."
211
208
msgstr "*capsule* 内部のコンテキストポインタを *context* に設定します。"
212
209
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
215
212
msgid ""
216
213
"Return ``0`` on success. Return nonzero and set an exception on failure."
217
214
msgstr "成功したら ``0`` を、失敗したら例外を設定して非 ``0`` を返します。"
218
215
219
- #: ../../c-api/capsule.rst:133
216
+ #: ../../c-api/capsule.rst:138
220
217
msgid "Set the destructor inside *capsule* to *destructor*."
221
218
msgstr "*capsule* 内部のデストラクタを *destructor* に設定します。"
222
219
223
- #: ../../c-api/capsule.rst:139
220
+ #: ../../c-api/capsule.rst:145
224
221
msgid ""
225
222
"Set the name inside *capsule* to *name*. If non-*NULL*, the name must "
226
223
"outlive the capsule. If the previous *name* stored in the capsule was not "
@@ -230,7 +227,7 @@ msgstr ""
230
227
"よりも長い寿命を持つ必要があります。もしすでに *capsule* に非 *NULL* の *name* "
231
228
"が保存されていた場合、それに対する解放は行われません。"
232
229
233
- #: ../../c-api/capsule.rst:147
230
+ #: ../../c-api/capsule.rst:154
234
231
msgid ""
235
232
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
236
233
"*NULL*."
0 commit comments