@@ -6,77 +6,96 @@ msgstr ""
6
6
"Project-Id-Version : Python 3.7\n "
7
7
"Report-Msgid-Bugs-To : \n "
8
8
"POT-Creation-Date : 2019-01-03 16:57+0100\n "
9
- "PO-Revision-Date : 2018-11-29 18:26+0100\n "
10
- "Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
9
+ "PO-Revision-Date : 2019-04-11 22:41+0200\n "
11
10
"Language-Team : FRENCH <traductions@lists.afpy.org>\n "
12
11
"Language : fr\n "
13
12
"MIME-Version : 1.0\n "
14
13
"Content-Type : text/plain; charset=UTF-8\n "
15
14
"Content-Transfer-Encoding : 8bit\n "
15
+ "Last-Translator : \n "
16
+ "X-Generator : Poedit 2.2.1\n "
16
17
17
18
#: ../Doc/library/asyncio-policy.rst:8
18
19
msgid "Policies"
19
- msgstr ""
20
+ msgstr "Stratégies "
20
21
21
22
#: ../Doc/library/asyncio-policy.rst:10
22
23
msgid ""
23
24
"An event loop policy is a global per-process object that controls the "
24
25
"management of the event loop. Each event loop has a default policy, which "
25
26
"can be changed and customized using the policy API."
26
27
msgstr ""
28
+ "Une stratégie de boucle d'événements est un objet global, pour chaque "
29
+ "processus, qui contrôle la gestion de la boucle d'événement. Chaque boucle "
30
+ "d'événement a une stratégie par défaut, qui peut être modifiée et "
31
+ "personnalisée à l'aide de l'API de la stratégie."
27
32
28
33
#: ../Doc/library/asyncio-policy.rst:14
29
34
msgid ""
30
35
"A policy defines the notion of *context* and manages a separate event loop "
31
36
"per context. The default policy defines *context* to be the current thread."
32
37
msgstr ""
38
+ "Une stratégie définit la notion de *contexte* et gère une boucle d'événement "
39
+ "distincte par contexte. La stratégie par défaut définit le *contexte* comme "
40
+ "étant le fil d'exécution actuel."
33
41
34
42
#: ../Doc/library/asyncio-policy.rst:18
35
43
msgid ""
36
44
"By using a custom event loop policy, the behavior of :func:"
37
45
"`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop` "
38
46
"functions can be customized."
39
47
msgstr ""
48
+ "En utilisant une stratégie de boucle d'événement personnalisée, le "
49
+ "comportement des fonctions :func:`get_event_loop`, :func:`set_event_loop` "
50
+ "et :func:`new_event_loop` peut être personnalisé."
40
51
41
52
#: ../Doc/library/asyncio-policy.rst:22
42
53
msgid ""
43
54
"Policy objects should implement the APIs defined in the :class:"
44
55
"`AbstractEventLoopPolicy` abstract base class."
45
56
msgstr ""
57
+ "Les objets de stratégie doivent implémenter les API définies dans la classe "
58
+ "de base abstraite :class:`AbstractEventLoopPolicy`."
46
59
47
60
#: ../Doc/library/asyncio-policy.rst:27
48
61
msgid "Getting and Setting the Policy"
49
- msgstr ""
62
+ msgstr "Obtenir et définir la stratégie "
50
63
51
64
#: ../Doc/library/asyncio-policy.rst:29
52
65
msgid ""
53
66
"The following functions can be used to get and set the policy for the "
54
67
"current process:"
55
68
msgstr ""
69
+ "Les fonctions suivantes peuvent être utilisées pour obtenir et définir la "
70
+ "stratégie du processus en cours :"
56
71
57
72
#: ../Doc/library/asyncio-policy.rst:34
58
73
msgid "Return the current process-wide policy."
59
- msgstr ""
74
+ msgstr "Renvoie la stratégie actuelle à l'échelle du processus. "
60
75
61
76
#: ../Doc/library/asyncio-policy.rst:38
62
77
msgid "Set the current process-wide policy to *policy*."
63
78
msgstr ""
79
+ "Définit la stratégie actuelle sur l'ensemble du processus sur *policy*."
64
80
65
81
#: ../Doc/library/asyncio-policy.rst:40
66
82
msgid "If *policy* is set to ``None``, the default policy is restored."
67
83
msgstr ""
84
+ "Si *policy* est définie sur ``None``, la stratégie par défaut est restaurée."
68
85
69
86
#: ../Doc/library/asyncio-policy.rst:44
70
87
msgid "Policy Objects"
71
- msgstr ""
88
+ msgstr "Sujets de stratégie "
72
89
73
90
#: ../Doc/library/asyncio-policy.rst:46
74
91
msgid "The abstract event loop policy base class is defined as follows:"
75
92
msgstr ""
93
+ "La classe de base abstraite de la stratégie de boucle d'événements est "
94
+ "définie comme suit:"
76
95
77
96
#: ../Doc/library/asyncio-policy.rst:50
78
97
msgid "An abstract base class for asyncio policies."
79
- msgstr ""
98
+ msgstr "Une classe de base abstraite pour les stratégies *asyncio*. "
80
99
81
100
#: ../Doc/library/asyncio-policy.rst:54
82
101
msgid "Get the event loop for the current context."
@@ -87,79 +106,95 @@ msgid ""
87
106
"Return an event loop object implementing the :class:`AbstractEventLoop` "
88
107
"interface."
89
108
msgstr ""
109
+ "Renvoie un objet de boucle d'événements en implémentant l'interface :class:"
110
+ "`AbstractEventLoop`."
90
111
91
112
#: ../Doc/library/asyncio-policy.rst:59 ../Doc/library/asyncio-policy.rst:71
92
113
msgid "This method should never return ``None``."
93
- msgstr ""
114
+ msgstr "Cette méthode ne devrait jamais renvoyer `` None``. "
94
115
95
116
#: ../Doc/library/asyncio-policy.rst:65
96
117
msgid "Set the event loop for the current context to *loop*."
97
- msgstr ""
118
+ msgstr "Définit la boucle d'événements du contexte actuel sur *loop*. "
98
119
99
120
#: ../Doc/library/asyncio-policy.rst:69
100
121
msgid "Create and return a new event loop object."
101
- msgstr ""
122
+ msgstr "Crée et renvoie un nouvel objet de boucle d'événements. "
102
123
103
124
#: ../Doc/library/asyncio-policy.rst:75
104
125
msgid "Get a child process watcher object."
105
- msgstr ""
126
+ msgstr "Récupère un objet observateur du processus enfant. "
106
127
107
128
#: ../Doc/library/asyncio-policy.rst:77
108
129
msgid ""
109
130
"Return a watcher object implementing the :class:`AbstractChildWatcher` "
110
131
"interface."
111
132
msgstr ""
133
+ "Renvoie un objet observateur implémentant l'interface :class:"
134
+ "`AbstractChildWatcher`."
112
135
113
136
#: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86
114
137
msgid "This function is Unix specific."
115
- msgstr ""
138
+ msgstr "Cette fonction est spécifique à Unix. "
116
139
117
140
#: ../Doc/library/asyncio-policy.rst:84
118
141
msgid "Set the current child process watcher to *watcher*."
119
- msgstr ""
142
+ msgstr "Définit l'observateur du processus enfant actuel à *watcher*. "
120
143
121
144
#: ../Doc/library/asyncio-policy.rst:89
122
145
msgid "asyncio ships with the following built-in policies:"
123
- msgstr ""
146
+ msgstr "*asyncio* est livré avec les stratégies intégrées suivantes : "
124
147
125
148
#: ../Doc/library/asyncio-policy.rst:94
126
149
msgid ""
127
150
"The default asyncio policy. Uses :class:`SelectorEventLoop` on both Unix "
128
151
"and Windows platforms."
129
152
msgstr ""
153
+ "La stratégie *asyncio* par défaut. Utilise :class:`SelectorEventLoop` sur les "
154
+ "plates-formes Unix et Windows."
130
155
131
156
#: ../Doc/library/asyncio-policy.rst:97
132
157
msgid ""
133
158
"There is no need to install the default policy manually. asyncio is "
134
159
"configured to use the default policy automatically."
135
160
msgstr ""
161
+ "Il n'est pas nécessaire d'installer la stratégie par défaut manuellement. "
162
+ "*asyncio* est configuré pour utiliser automatiquement la stratégie par défaut."
136
163
137
164
#: ../Doc/library/asyncio-policy.rst:103
138
165
msgid ""
139
166
"An alternative event loop policy that uses the :class:`ProactorEventLoop` "
140
167
"event loop implementation."
141
168
msgstr ""
169
+ "Stratégie de boucle d'événements alternative utilisant l'implémentation de "
170
+ "la boucle d'événements :class:`ProactorEventLoop`."
142
171
143
172
#: ../Doc/library/asyncio-policy.rst:106
144
173
msgid ":ref:`Availability <availability>`: Windows."
145
174
msgstr ":ref:`Disponibilité <availability>` : Windows."
146
175
147
176
#: ../Doc/library/asyncio-policy.rst:110
148
177
msgid "Process Watchers"
149
- msgstr ""
178
+ msgstr "Observateurs de processus "
150
179
151
180
#: ../Doc/library/asyncio-policy.rst:112
152
181
msgid ""
153
182
"A process watcher allows customization of how an event loop monitors child "
154
183
"processes on Unix. Specifically, the event loop needs to know when a child "
155
184
"process has exited."
156
185
msgstr ""
186
+ "Un observateur de processus permet de personnaliser la manière dont une "
187
+ "boucle d'événements surveille les processus enfants sous Unix. Plus "
188
+ "précisément, la boucle d'événements a besoin de savoir quand un processus enfant "
189
+ "s'est terminé."
157
190
158
191
#: ../Doc/library/asyncio-policy.rst:116
159
192
msgid ""
160
193
"In asyncio, child processes are created with :func:`create_subprocess_exec` "
161
194
"and :meth:`loop.subprocess_exec` functions."
162
195
msgstr ""
196
+ "Dans *asyncio*, les processus enfants sont créés avec les fonctions :func:"
197
+ "`create_subprocess_exec` et :meth:`loop.subprocess_exec`."
163
198
164
199
#: ../Doc/library/asyncio-policy.rst:120
165
200
msgid ""
@@ -168,122 +203,162 @@ msgid ""
168
203
"class:`SafeChildWatcher` (configured to be used by default) and :class:"
169
204
"`FastChildWatcher`."
170
205
msgstr ""
206
+ "*asyncio* définit la classe de base abstraite :class:`AbstractChildWatcher`, "
207
+ "que les observateurs enfants doivent implémenter et possède deux "
208
+ "implémentations différentes : :class:`SafeChildWatcher` (configurée pour être "
209
+ "utilisé par défaut) et :class:`FastChildWatcher`."
171
210
172
211
#: ../Doc/library/asyncio-policy.rst:125
173
212
msgid ""
174
213
"See also the :ref:`Subprocess and Threads <asyncio-subprocess-threads>` "
175
214
"section."
176
215
msgstr ""
216
+ "Voir aussi la section :ref:`sous-processus et fils d'exécution <threads asyncio-sous-"
217
+ "processus>`."
177
218
178
219
#: ../Doc/library/asyncio-policy.rst:128
179
220
msgid ""
180
221
"The following two functions can be used to customize the child process "
181
222
"watcher implementation used by the asyncio event loop:"
182
223
msgstr ""
224
+ "Les deux fonctions suivantes peuvent être utilisées pour personnaliser "
225
+ "l'implémentation de l'observateur de processus enfant utilisé par la boucle "
226
+ "d'événements *asyncio* :"
183
227
184
228
#: ../Doc/library/asyncio-policy.rst:133
185
229
msgid "Return the current child watcher for the current policy."
186
- msgstr ""
230
+ msgstr "Renvoie l'observateur enfant actuel pour la stratégie actuelle. "
187
231
188
232
#: ../Doc/library/asyncio-policy.rst:137
189
233
msgid ""
190
234
"Set the current child watcher to *watcher* for the current policy. "
191
235
"*watcher* must implement methods defined in the :class:"
192
236
"`AbstractChildWatcher` base class."
193
237
msgstr ""
238
+ "Définit l'observateur enfant actuel à *watcher* pour la stratégie "
239
+ "actuelle. *watcher* doit implémenter les méthodes définies dans la classe de "
240
+ "base :class:`AbstractChildWatcher`."
194
241
195
242
#: ../Doc/library/asyncio-policy.rst:142
196
243
msgid ""
197
244
"Third-party event loops implementations might not support custom child "
198
245
"watchers. For such event loops, using :func:`set_child_watcher` might be "
199
246
"prohibited or have no effect."
200
247
msgstr ""
248
+ "Les implémentations de boucles d'événement tierces peuvent ne pas prendre en "
249
+ "charge les observateurs enfants personnalisés. Pour ces boucles "
250
+ "d'événements, utiliser: func:`set_child_watcher` pourrait être "
251
+ "interdit ou n'avoir aucun effet."
201
252
202
253
#: ../Doc/library/asyncio-policy.rst:150
203
254
msgid "Register a new child handler."
204
- msgstr ""
255
+ msgstr "Enregistre un nouveau gestionnaire. "
205
256
206
257
#: ../Doc/library/asyncio-policy.rst:152
207
258
msgid ""
208
259
"Arrange for ``callback(pid, returncode, *args)`` to be called when a process "
209
260
"with PID equal to *pid* terminates. Specifying another callback for the "
210
261
"same process replaces the previous handler."
211
262
msgstr ""
263
+ "Organise l'appel de ``callback(pid, returncode, * args)`` lorsqu'un "
264
+ "processus dont le PID est égal à *pid* se termine. La spécification d'un "
265
+ "autre rappel pour le même processus remplace le gestionnaire précédent."
212
266
213
267
#: ../Doc/library/asyncio-policy.rst:157
214
268
msgid "The *callback* callable must be thread-safe."
215
- msgstr ""
269
+ msgstr "L'appelable *callback* doit être compatible avec les programmes à fils d'exécution multiples. "
216
270
217
271
#: ../Doc/library/asyncio-policy.rst:161
218
272
msgid "Removes the handler for process with PID equal to *pid*."
219
- msgstr ""
273
+ msgstr "Supprime le gestionnaire de processus avec un PID égal à *pid*. "
220
274
221
275
#: ../Doc/library/asyncio-policy.rst:163
222
276
msgid ""
223
277
"The function returns ``True`` if the handler was successfully removed, "
224
278
"``False`` if there was nothing to remove."
225
279
msgstr ""
280
+ "La fonction renvoie ``True`` si le gestionnaire a été supprimé avec succès, "
281
+ "``False`` s'il n'y a rien à supprimer."
226
282
227
283
#: ../Doc/library/asyncio-policy.rst:168
228
284
msgid "Attach the watcher to an event loop."
229
- msgstr ""
285
+ msgstr "Attache l'observateur à une boucle d'événement. "
230
286
231
287
#: ../Doc/library/asyncio-policy.rst:170
232
288
msgid ""
233
289
"If the watcher was previously attached to an event loop, then it is first "
234
290
"detached before attaching to the new loop."
235
291
msgstr ""
292
+ "Si l'observateur était précédemment attaché à une boucle d'événements, il "
293
+ "est d'abord détaché avant d'être rattaché à la nouvelle boucle."
236
294
237
295
#: ../Doc/library/asyncio-policy.rst:173
238
296
msgid "Note: loop may be ``None``."
239
- msgstr ""
297
+ msgstr "Remarque : la boucle peut être ``None``. "
240
298
241
299
#: ../Doc/library/asyncio-policy.rst:177
242
300
msgid "Close the watcher."
243
- msgstr ""
301
+ msgstr "Ferme l'observateur. "
244
302
245
303
#: ../Doc/library/asyncio-policy.rst:179
246
304
msgid ""
247
305
"This method has to be called to ensure that underlying resources are cleaned-"
248
306
"up."
249
307
msgstr ""
308
+ "Cette méthode doit être appelée pour s'assurer que les ressources sous-"
309
+ "jacentes sont nettoyées."
250
310
251
311
#: ../Doc/library/asyncio-policy.rst:184
252
312
msgid ""
253
313
"This implementation avoids disrupting other code spawning processes by "
254
314
"polling every process explicitly on a :py:data:`SIGCHLD` signal."
255
315
msgstr ""
316
+ "Cette implémentation évite de perturber un autre code qui aurait besoin de générer des processus "
317
+ "en interrogeant chaque processus explicitement par un signal :py:data:"
318
+ "`SIGCHLD`."
256
319
257
320
#: ../Doc/library/asyncio-policy.rst:187
258
321
msgid ""
259
322
"This is a safe solution but it has a significant overhead when handling a "
260
323
"big number of processes (*O(n)* each time a :py:data:`SIGCHLD` is received)."
261
324
msgstr ""
325
+ "C'est une solution sûre, mais elle nécessite un temps système important lors "
326
+ "de la manipulation d'un grand nombre de processus (*O(n)* à chaque fois que "
327
+ "un :py:data:`SIGCHLD` est reçu)."
262
328
263
329
#: ../Doc/library/asyncio-policy.rst:191
264
330
msgid "asyncio uses this safe implementation by default."
265
- msgstr ""
331
+ msgstr "*asyncio* utilise cette implémentation sécurisée par défaut. "
266
332
267
333
#: ../Doc/library/asyncio-policy.rst:195
268
334
msgid ""
269
335
"This implementation reaps every terminated processes by calling ``os."
270
336
"waitpid(-1)`` directly, possibly breaking other code spawning processes and "
271
337
"waiting for their termination."
272
338
msgstr ""
339
+ "Cette implémentation récupère tous les processus terminés en appelant "
340
+ "directement ``os.waitpid(-1)``, cassant éventuellement un autre "
341
+ "code qui génère des processus et attend leur fin."
273
342
274
343
#: ../Doc/library/asyncio-policy.rst:199
275
344
msgid ""
276
345
"There is no noticeable overhead when handling a big number of children "
277
346
"(*O(1)* each time a child terminates)."
278
347
msgstr ""
348
+ "Il n'y a pas de surcharge visible lors de la manipulation d'un grand nombre "
349
+ "d'enfants (*O(1)* à chaque fois qu'un enfant se termine)."
279
350
280
351
#: ../Doc/library/asyncio-policy.rst:204
281
352
msgid "Custom Policies"
282
- msgstr ""
353
+ msgstr "Stratégies personnalisées "
283
354
284
355
#: ../Doc/library/asyncio-policy.rst:206
285
356
msgid ""
286
357
"To implement a new event loop policy, it is recommended to subclass :class:"
287
358
"`DefaultEventLoopPolicy` and override the methods for which custom behavior "
288
359
"is wanted, e.g.::"
289
360
msgstr ""
361
+ "Pour implémenter une nouvelle politique de boucle d’événements, il est "
362
+ "recommandé de sous-classer :class:`DefaultEventLoopPolicy` et de "
363
+ "réimplémenter les méthodes pour lesquelles un comportement personnalisé est "
364
+ "souhaité, par exemple : ::"
0 commit comments