55msgstr ""
66"Project-Id-Version : Python 3\n "
77"Report-Msgid-Bugs-To : \n "
8- "POT-Creation-Date : 2020-10-01 16:00+0200 \n "
8+ "POT-Creation-Date : 2021-01-27 19:26+0100 \n "
99"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1010"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
1111"Language-Team : FRENCH <traductions@lists.afpy.org>\n "
@@ -46,93 +46,95 @@ msgid ""
4646msgstr ""
4747
4848#: c-api/capsule.rst:37
49- msgid "Return true if its argument is a :c:type:`PyCapsule`."
49+ msgid ""
50+ "Return true if its argument is a :c:type:`PyCapsule`. This function always "
51+ "succeeds."
5052msgstr ""
5153
52- #: c-api/capsule.rst:42
54+ #: c-api/capsule.rst:43
5355msgid ""
5456"Create a :c:type:`PyCapsule` encapsulating the *pointer*. The *pointer* "
5557"argument may not be ``NULL``."
5658msgstr ""
5759
58- #: c-api/capsule.rst:45
60+ #: c-api/capsule.rst:46
5961msgid "On failur
BB94
e, set an exception and return ``NULL``."
6062msgstr ""
6163
62- #: c-api/capsule.rst:47
64+ #: c-api/capsule.rst:48
6365msgid ""
6466"The *name* string may either be ``NULL`` or a pointer to a valid C string. "
6567"If non-``NULL``, this string must outlive the capsule. (Though it is "
6668"permitted to free it inside the *destructor*.)"
6769msgstr ""
6870
69- #: c-api/capsule.rst:51
71+ #: c-api/capsule.rst:52
7072msgid ""
7173"If the *destructor* argument is not ``NULL``, it will be called with the "
7274"capsule as its argument when it is destroyed."
7375msgstr ""
7476
75- #: c-api/capsule.rst:54
77+ #: c-api/capsule.rst:55
7678msgid ""
7779"If this capsule will be stored as an attribute of a module, the *name* "
7880"should be specified as ``modulename.attributename``. This will enable other "
7981"modules to import the capsule using :c:func:`PyCapsule_Import`."
8082msgstr ""
8183
82- #: c-api/capsule.rst:61
84+ #: c-api/capsule.rst:62
8385msgid ""
8486"Retrieve the *pointer* stored in the capsule. On failure, set an exception "
8587"and return ``NULL``."
8688msgstr ""
8789
88- #: c-api/capsule.rst:64
90+ #: c-api/capsule.rst:65
8991msgid ""
9092"The *name* parameter must compare exactly to the name stored in the capsule. "
9193"If the name stored in the capsule is ``NULL``, the *name* passed in must "
9294"also be ``NULL``. Python uses the C function :c:func:`strcmp` to compare "
9395"capsule names."
9496msgstr ""
9597
96- #: c-api/capsule.rst:72
98+ #: c-api/capsule.rst:73
9799msgid ""
98100"Return the current destructor stored in the capsule. On failure, set an "
99101"exception and return ``NULL``."
100102msgstr ""
101103
102- #: c-api/capsule.rst:75
104+ #: c-api/capsule.rst:76
103105msgid ""
104106"It is legal for a capsule to have a ``NULL`` destructor. This makes a "
105107"``NULL`` return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :"
106108"c:func:`PyErr_Occurred` to disambiguate."
107109msgstr ""
108110
109- #: c-api/capsule.rst:82
111+ #: c-api/capsule.rst:83
110112msgid ""
111113"Return the current context stored in the capsule. On failure, set an "
112114"exception and return ``NULL``."
113115msgstr ""
114116
115- #: c-api/capsule.rst:85
117+ #: c-api/capsule.rst:86
116118msgid ""
117119"It is legal for a capsule to have a ``NULL`` context. This makes a ``NULL`` "
118120"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :c:func:"
119121"`PyErr_Occurred` to disambiguate."
120122msgstr ""
121123
122- #: c-api/capsule.rst:92
124+ #: c-api/capsule.rst:93
123125msgid ""
124126"Return the current name stored in the capsule. On failure, set an exception "
125127"and return ``NULL``."
126128msgstr ""
127129
128- #: c-api/capsule.rst:95
130+ #: c-api/capsule.rst:96
129131msgid ""
130132"It is legal for a capsule to have a ``NULL`` name. This makes a ``NULL`` "
131133"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :c:func:"
132134"`PyErr_Occurred` to disambiguate."
133135msgstr ""
134136
135- #: c-api/capsule.rst:102
137+ #: c-api/capsule.rst:103
136138msgid ""
137139"Import a pointer to a C object from a capsule attribute in a module. The "
138140"*name* parameter should specify the full name to the attribute, as in "
@@ -142,13 +144,13 @@ msgid ""
142144"import the module conventionally (using :c:func:`PyImport_ImportModule`)."
143145msgstr ""
144146
145- #: c-api/capsule.rst:109
147+ #: c-api/capsule.rst:110
146148msgid ""
147149"Return the capsule's internal *pointer* on success. On failure, set an "
148150"exception and return ``NULL``."
149151msgstr ""
150152
151- #: c-api/capsule.rst:115
153+ #: c-api/capsule.rst:116
152154msgid ""
153155"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
154156"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
@@ -157,40 +159,40 @@ msgid ""
157159"compared.)"
158160msgstr ""
159161
160- #: c-api/capsule.rst:121
162+ #: c-api/capsule.rst:122
161163msgid ""
162164"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
163165"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`) "
164166"are guaranteed to succeed."
165167msgstr ""
166168
167- #: c-api/capsule.rst:125
169+ #: c-api/capsule.rst:126
168170msgid ""
169171"Return a nonzero value if the object is valid and matches the name passed "
170172"in. Return ``0`` otherwise. This function will not fail."
171173msgstr ""
172174
173- #: c-api/capsule.rst:131
175+ #: c-api/capsule.rst:132
174176msgid "Set the context pointer inside *capsule* to *context*."
175177msgstr ""
176178
177- #: c-api/capsule.rst:140 c-api/capsule.rst:157
179+ #: c-api/capsule.rst:141 c-api/capsule.rst:158
178180msgid ""
179181"Return ``0`` on success. Return nonzero and set an exception on failure."
180182msgstr ""
181183
182- #: c-api/capsule.rst:138
184+ #: c-api/capsule.rst:139
183185msgid "Set the destructor inside *capsule* to *destructor*."
184186msgstr ""
185187
186- #: c-api/capsule.rst:145
188+ #: c-api/capsule.rst:146
187189msgid ""
188190"Set the name inside *capsule* to *name*. If non-``NULL``, the name must "
189191"outlive the capsule. If the previous *name* stored in the capsule was not "
190192"``NULL``, no attempt is made to free it."
191193msgstr ""
192194
193- #: c-api/capsule.rst:154
195+ #: c-api/capsule.rst:155
194196msgid ""
195197"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
196198"``NULL``."
0 commit comments