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