8
8
msgstr ""
9
9
"Project-Id-Version :Python 3.6\n "
10
10
"Report-Msgid-Bugs-To :\n "
11
- "POT-Creation-Date :2017-11 -2618:49 +0900\n "
11
+ "POT-Creation-Date :2018-05 -2611:10 +0900\n "
12
12
"PO-Revision-Date :YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator :FULL NAME <EMAIL@ADDRESS>\n "
14
14
"Language-Team :LANGUAGE <LL@li.org>\n "
@@ -27,7 +27,7 @@ msgid ""
27
27
"objects."
28
28
msgstr ""
29
29
30
- #: ../Doc/c-api/capsule.rst:15
30
+ #: ../Doc/c-api/capsule.rst:17
31
31
msgid ""
32
32
"This subtype of :c:type:`PyObject` represents an opaque value, useful for"
33
33
" C extension modules who need to pass an opaque value (as a "
@@ -37,104 +37,104 @@ msgid ""
37
37
" APIs defined in dynamically loaded modules."
38
38
msgstr ""
39
39
40
- #: ../Doc/c-api/capsule.rst:24
40
+ #: ../Doc/c-api/capsule.rst:27
41
41
msgid "The type of a destructor callback for a capsule. Defined as::"
42
42
msgstr ""
43
43
44
- #: ../Doc/c-api/capsule.rst:28
44
+ #: ../Doc/c-api/capsule.rst:31
45
45
msgid ""
46
46
"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "
47
47
"callbacks."
48
48
msgstr ""
49
49
50
- #: ../Doc/c-api/capsule.rst:34
50
+ #: ../Doc/c-api/capsule.rst:37
51
51
msgid "Return true if its argument is a :c:type:`PyCapsule`."
52
52
msgstr ""
53
53
54
- #: ../Doc/c-api/capsule.rst:39
54
+ #: ../Doc/c-api/capsule.rst:42
55
55
msgid ""
56
56
"Create a :c:type:`PyCapsule` encapsulating the *pointer*. The *pointer* "
57
57
"argument may not be *NULL*."
58
58
msgstr ""
59
59
60
- #: ../Doc/c-api/capsule.rst:42
60
+ #: ../Doc/c-api/capsule.rst:45
61
61
msgid "On failure, set an exception and return *NULL*."
62
62
msgstr ""
63
63
64
- #: ../Doc/c-api/capsule.rst:44
64
+ #: ../Doc/c-api/capsule.rst:47
65
65
msgid ""
66
66
"The *name* string may either be *NULL* or a pointer to a valid C string."
67
67
" If non-*NULL*, this string must outlive the capsule. (Though it is "
68
68
"permitted to free it inside the *destructor*.)"
69
69
msgstr ""
70
70
71
- #: ../Doc/c-api/capsule.rst:48
71
+ #: ../Doc/c-api/capsule.rst:51
72
72
msgid ""
73
73
"If the *destructor* argument is not *NULL*, it will be called with the "
74
74
"capsule as its argument when it is destroyed."
75
75
msgstr ""
76
76
77
- #: ../Doc/c-api/capsule.rst:51
77
+ #: ../Doc/c-api/capsule.rst:54
78
78
msgid ""
79
79
"If this capsule will be stored as an attribute of a module, the *name* "
80
80
"should be specified as ``modulename.attributename``. This will enable "
81
81
"other modules to import the capsule using :c:func:`PyCapsule_Import`."
82
82
msgstr ""
83
83
84
- #: ../Doc/c-api/capsule.rst:58
84
+ #: ../Doc/c-api/capsule.rst:61
85
85
msgid ""
86
86
"Retrieve the *pointer* stored in the capsule. On failure, set an "
87
87
"exception and return *NULL*."
88
88
msgstr ""
89
89
90
- #: ../Doc/c-api/capsule.rst:61
90
+ #: ../Doc/c-api/capsule.rst:64
91
91
msgid ""
92
92
"The *name* parameter must compare exactly to the name stored in the "
93
93
"capsule. If the name stored in the capsule is *NULL*, the *name* passed "
94
94
"in must also be *NULL*. Python uses the C function :c:func:`strcmp` to "
95
95
"compare capsule names."
96
96
msgstr ""
97
97
98
- #: ../Doc/c-api/capsule.rst:69
98
+ #: ../Doc/c-api/capsule.rst:72
99
99
msgid ""
100
100
"Return the current destructor stored in the capsule. On failure, set an "
101
101
"exception and return *NULL*."
102
102
msgstr ""
103
103
104
- #: ../Doc/c-api/capsule.rst:72
104
+ #: ../Doc/c-api/capsule.rst:75
105
105
msgid ""
106
106
"It is legal for a capsule to have a *NULL* destructor. This makes a "
107
107
"*NULL* return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or"
108
108
" :c:func:`PyErr_Occurred` to disambiguate."
109
109
msgstr ""
110
110
111
- #: ../Doc/c-api/capsule.rst:79
111
+ #: ../Doc/c-api/capsule.rst:82
112
112
msgid ""
113
113
"Return the current context stored in the capsule. On failure, set an "
114
114
"exception and return *NULL*."
115
115
msgstr ""
116
116
117
- #: ../Doc/c-api/capsule.rst:82
117
+ #: ../Doc/c-api/capsule.rst:85
118
118
msgid ""
119
119
"It is legal for a capsule to have a *NULL* context. This makes a *NULL* "
120
120
"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
121
121
":c:func:`PyErr_Occurred` to disambiguate."
122
122
msgstr ""
123
123
124
- #: ../Doc/c-api/capsule.rst:89
124
+ #: ../Doc/c-api/capsule.rst:92
125
125
msgid ""
126
126
"Return the current name stored in the capsule. On failure, set an "
127
127
"exception and return *NULL*."
128
128
msgstr ""
129
129
130
- #: ../Doc/c-api/capsule.rst:92
130
+ #: ../Doc/c-api/capsule.rst:95
131
131
msgid ""
132
132
"It is legal for a capsule to have a *NULL* name. This makes a *NULL* "
133
133
"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
134
134
":c:func:`PyErr_Occurred` to disambiguate."
135
135
msgstr ""
136
136
137
- #: ../Doc/c-api/capsule.rst:99
137
+ #: ../Doc/c-api/capsule.rst:102
138
138
msgid ""
139
139
"Import a pointer to a C object from a capsule attribute in a module. The"
140
140
" *name* parameter should specify the full name to the attribute, as in "
@@ -145,15 +145,13 @@ msgid ""
145
145
":c:func:`PyImport_ImportModule`)."
146
146
msgstr ""
147
147
148
- #: ../Doc/c-api/capsule.rst:106
148
+ #: ../Doc/c-api/capsule.rst:109
149
149
msgid ""
150
150
"Return the capsule's internal *pointer* on success. On failure, set an "
151
- "exception and return *NULL*. However, if :c:func:`PyCapsule_Import` "
152
- "failed to import the module, and *no_block* was true, no exception is "
153
- "set."
151
+ "exception and return *NULL*."
154
152
msgstr ""
155
153
156
- #: ../Doc/c-api/capsule.rst:112
154
+ #: ../Doc/c-api/capsule.rst:115
157
155
msgid ""
158
156
"Determines whether or not *capsule* is a valid capsule. A valid capsule "
159
157
"is non-*NULL*, passes :c:func:`PyCapsule_CheckExact`, has a non-*NULL* "
@@ -162,42 +160,51 @@ msgid ""
162
160
"names are compared.)"
163
161
msgstr ""
164
162
165
- #: ../Doc/c-api/capsule.rst:118
163
+ #: ../Doc/c-api/capsule.rst:121
166
164
msgid ""
167
165
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, "
168
166
"calls to any of the accessors (any function starting with "
169
167
":c:func:`PyCapsule_Get`) are guaranteed to succeed."
170
168
msgstr ""
171
169
172
- #: ../Doc/c-api/capsule.rst:122
170
+ #: ../Doc/c-api/capsule.rst:125
173
171
msgid ""
174
172
"Return a nonzero value if the object is valid and matches the name passed"
175
173
" in. Return ``0`` otherwise. This function will not fail."
176
174
msgstr ""
177
175
178
- #: ../Doc/c-api/capsule.rst:127
176
+ #: ../Doc/c-api/capsule.rst:131
179
177
msgid "Set the context pointer inside *capsule* to *context*."
180
178
msgstr ""
181
179
182
- #: ../Doc/c-api/capsule.rst:129 ../Doc/c-api/capsule.rst:135
183
- #: ../Doc/c-api/capsule.rst:143 ../Doc/c-api/capsule.rst:150
180
+ #: ../Doc/c-api/capsule.rst:133 ../Doc/c-api/capsule.rst:140
181
+ #: ../Doc/c-api/capsule.rst:149 ../Doc/c-api/capsule.rst:157
184
182
msgid "Return ``0`` on success. Return nonzero and set an exception on failure."
185
183
msgstr ""
186
184
187
- #: ../Doc/c-api/capsule.rst:133
185
+ #: ../Doc/c-api/capsule.rst:138
188
186
msgid "Set the destructor inside *capsule* to *destructor*."
189
187
msgstr ""
190
188
191
- #: ../Doc/c-api/capsule.rst:139
189
+ #: ../Doc/c-api/capsule.rst:145
192
190
msgid ""
193
191
"Set the name inside *capsule* to *name*. If non-*NULL*, the name must "
194
192
"outlive the capsule. If the previous *name* stored in the capsule was "
195
193
"not *NULL*, no attempt is made to free it."
196
194
msgstr ""
197
195
198
- #: ../Doc/c-api/capsule.rst:147
196
+ #: ../Doc/c-api/capsule.rst:154
199
197
msgid ""
200
198
"Set the void pointer inside *capsule* to *pointer*. The pointer may not "
201
199
"be *NULL*."
202
200
msgstr ""
203
201
202
+ #~ msgid ""
203
+ #~ "Return the capsule's internal *pointer* "
204
+ #~ "on success. On failure, set an "
205
+ #~ "exception and return *NULL*. However, "
206
+ #~ "if :c:func:`PyCapsule_Import` failed to import"
207
+ #~ " the module, and *no_block* was true,"
208
+ #~ " no exception is set."
209
+ #~ msgstr ""
210
+