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