@@ -5,78 +5,97 @@ msgid ""
5
5
msgstr ""
6
6
"Project-Id-Version : Python 3.7\n "
7
7
"Report-Msgid-Bugs-To : \n "
8
- "POT-Creation-Date : 2019-09-04 11:33+0200\n "
9
- "PO-Revision-Date : 2018-11-29 18:26+0100\n "
10
- "Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
11
- "
Language-Team :
FRENCH <[email protected] >\n "
8
+ "POT-Creation-Date : 2019-01-03 16:57+0100\n "
9
+ "PO-Revision-Date : 2019-04-11 22:41+0200\n "
10
+ "
Language-Team :
François Setton <[email protected] >\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,52 +106,61 @@ 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 Unix and :"
128
151
"class:`ProactorEventLoop` on Windows."
129
152
msgstr ""
153
+ "La stratégie *asyncio* par défaut. Utilise :class:`SelectorEventLoop` sur "
154
+ "les 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 "
163
+ "défaut."
136
164
137
165
#: ../Doc/library/asyncio-policy.rst:102
138
166
msgid "On Windows, :class:`ProactorEventLoop` is now used by default."
@@ -143,6 +171,8 @@ msgid ""
143
171
"An alternative event loop policy that uses the :class:`SelectorEventLoop` "
144
172
"event loop implementation."
145
173
msgstr ""
174
+ "Stratégie de boucle d'événements alternative utilisant l'implémentation de "
175
+ "la boucle d'événements :class:`ProactorEventLoop`."
146
176
147
177
#: ../Doc/library/asyncio-policy.rst:110 ../Doc/library/asyncio-policy.rst:118
148
178
msgid ":ref:`Availability <availability>`: Windows."
@@ -156,20 +186,26 @@ msgstr ""
156
186
157
187
#: ../Doc/library/asyncio-policy.rst:123
158
188
msgid "Process Watchers"
159
- msgstr ""
189
+ msgstr "Observateurs de processus "
160
190
161
191
#: ../Doc/library/asyncio-policy.rst:125
162
192
msgid ""
163
193
"A process watcher allows customization of how an event loop monitors child "
164
194
"processes on Unix. Specifically, the event loop needs to know when a child "
165
195
"process has exited."
166
196
msgstr ""
197
+ "Un observateur de processus permet de personnaliser la manière dont une "
198
+ "boucle d'événements surveille les processus enfants sous Unix. Plus "
199
+ "précisément, la boucle d'événements a besoin de savoir quand un processus "
200
+ "enfant s'est terminé."
167
201
168
202
#: ../Doc/library/asyncio-policy.rst:129
169
203
msgid ""
170
204
"In asyncio, child processes are created with :func:`create_subprocess_exec` "
171
205
"and :meth:`loop.subprocess_exec` functions."
172
206
msgstr ""
207
+ "Dans *asyncio*, les processus enfants sont créés avec les fonctions :func:"
208
+ "`create_subprocess_exec` et :meth:`loop.subprocess_exec`."
173
209
174
210
#: ../Doc/library/asyncio-policy.rst:133
175
211
msgid ""
@@ -179,75 +215,100 @@ msgid ""
179
215
"`MultiLoopChildWatcher`, :class:`SafeChildWatcher`, and :class:"
180
216
"`FastChildWatcher`."
181
217
msgstr ""
218
+ "*asyncio* définit la classe de base abstraite :class:`AbstractChildWatcher`, "
219
+ "que les observateurs enfants doivent implémenter et possède deux "
220
+ "implémentations différentes : :class:`SafeChildWatcher` (configurée pour "
221
+ "être utilisé par défaut) et :class:`FastChildWatcher`."
182
222
183
223
#: ../Doc/library/asyncio-policy.rst:139
184
224
msgid ""
185
225
"See also the :ref:`Subprocess and Threads <asyncio-subprocess-threads>` "
186
226
"section."
187
227
msgstr ""
228
+ "Voir aussi la section :ref:`sous-processus et fils d'exécution <threads "
229
+ "asyncio-sous-processus>`."
188
230
189
231
#: ../Doc/library/asyncio-policy.rst:142
190
232
msgid ""
191
233
"The following two functions can be used to customize the child process "
192
234
"watcher implementation used by the asyncio event loop:"
193
235
msgstr ""
236
+ "Les deux fonctions suivantes peuvent être utilisées pour personnaliser "
237
+ "l'implémentation de l'observateur de processus enfant utilisé par la boucle "
238
+ "d'événements *asyncio* :"
194
239
195
240
#: ../Doc/library/asyncio-policy.rst:147
196
241
msgid "Return the current child watcher for the current policy."
197
- msgstr ""
242
+ msgstr "Renvoie l'observateur enfant actuel pour la stratégie actuelle. "
198
243
199
244
#: ../Doc/library/asyncio-policy.rst:151
200
245
msgid ""
201
246
"Set the current child watcher to *watcher* for the current policy. "
202
247
"*watcher* must implement methods defined in the :class:"
203
248
"`AbstractChildWatcher` base class."
204
249
msgstr ""
250
+ "Définit l'observateur enfant actuel à *watcher* pour la stratégie actuelle. "
251
+ "*watcher* doit implémenter les méthodes définies dans la classe de base :"
252
+ "class:`AbstractChildWatcher`."
205
253
206
254
#: ../Doc/library/asyncio-policy.rst:156
207
255
msgid ""
208
256
"Third-party event loops implementations might not support custom child "
209
257
"watchers. For such event loops, using :func:`set_child_watcher` might be "
210
258
"prohibited or have no effect."
211
259
msgstr ""
260
+ "Les implémentations de boucles d'événement tierces peuvent ne pas prendre en "
261
+ "charge les observateurs enfants personnalisés. Pour ces boucles "
262
+ "d'événements, utiliser: func:`set_child_watcher` pourrait être interdit ou "
263
+ "n'avoir aucun effet."
212
264
213
265
#: ../Doc/library/asyncio-policy.rst:164
214
266
msgid "Register a new child handler."
215
- msgstr ""
267
+ msgstr "Enregistre un nouveau gestionnaire. "
216
268
217
269
#: ../Doc/library/asyncio-policy.rst:166
218
270
msgid ""
219
271
"Arrange for ``callback(pid, returncode, *args)`` to be called when a process "
220
272
"with PID equal to *pid* terminates. Specifying another callback for the "
221
273
"same process replaces the previous handler."
222
274
msgstr ""
275
+ "Organise l'appel de ``callback(pid, returncode, * args)`` lorsqu'un "
276
+ "processus dont le PID est égal à *pid* se termine. La spécification d'un "
277
+ "autre rappel pour le même processus remplace le gestionnaire précédent."
223
278
224
279
#: ../Doc/library/asyncio-policy.rst:171
225
280
msgid "The *callback* callable must be thread-safe."
226
281
msgstr ""
282
+ "L'appelable *callback* doit être compatible avec les programmes à fils "
283
+ "d'exécution multiples."
227
284
228
285
#: ../Doc/library/asyncio-policy.rst:175
229
286
msgid "Removes the handler for process with PID equal to *pid*."
230
- msgstr ""
287
+ msgstr "Supprime le gestionnaire de processus avec un PID égal à *pid*. "
231
288
232
289
#: ../Doc/library/asyncio-policy.rst:177
233
290
msgid ""
234
291
"The function returns ``True`` if the handler was successfully removed, "
235
292
"``False`` if there was nothing to remove."
236
293
msgstr ""
294
+ "La fonction renvoie ``True`` si le gestionnaire a été supprimé avec succès, "
295
+ "``False`` s'il n'y a rien à supprimer."
237
296
238
297
#: ../Doc/library/asyncio-policy.rst:182
239
298
msgid "Attach the watcher to an event loop."
240
- msgstr ""
299
+ msgstr "Attache l'observateur à une boucle d'événement. "
241
300
242
301
#: ../Doc/library/asyncio-policy.rst:184
243
302
msgid ""
244
303
"If the watcher was previously attached to an event loop, then it is first "
245
304
"detached before attaching to the new loop."
246
305
msgstr ""
306
+ "Si l'observateur était précédemment attaché à une boucle d'événements, il "
307
+ "est d'abord détaché avant d'être rattaché à la nouvelle boucle."
247
308
248
309
#: ../Doc/library/asyncio-policy.rst:187
249
310
msgid "Note: loop may be ``None``."
250
- msgstr ""
311
+ msgstr "Remarque : la boucle peut être ``None``. "
251
312
252
313
#: ../Doc/library/asyncio-policy.rst:191
253
314
msgid "Return ``True`` if the watcher is ready to use."
@@ -261,24 +322,32 @@ msgstr ""
261
322
262
323
#: ../Doc/library/asyncio-policy.rst:200
263
324
msgid "Close the watcher."
264
- msgstr ""
325
+ msgstr "Ferme l'observateur. "
265
326
266
327
#: ../Doc/library/asyncio-policy.rst:202
267
328
msgid ""
268
329
"This method has to be called to ensure that underlying resources are cleaned-"
269
330
"up."
270
331
msgstr ""
332
+ "Cette méthode doit être appelée pour s'assurer que les ressources sous-"
333
+ "jacentes sont nettoyées."
271
334
272
335
#: ../Doc/library/asyncio-policy.rst:207
273
336
msgid ""
274
337
"This implementation starts a new waiting thread for every subprocess spawn."
275
338
msgstr ""
339
+ "Cette implémentation évite de perturber un autre code qui aurait besoin de "
340
+ "générer des processus en interrogeant chaque processus explicitement par un "
341
+ "signal :py:data:`SIGCHLD`."
276
342
277
343
#: ../Doc/library/asyncio-policy.rst:209
278
344
msgid ""
279
345
"It works reliably even when the asyncio event loop is run in a non-main OS "
280
346
"thread."
281
347
msgstr ""
348
+ "C'est une solution sûre, mais elle nécessite un temps système important lors "
349
+ "de la manipulation d'un grand nombre de processus (*O(n)* à chaque fois que "
350
+ "un :py:data:`SIGCHLD` est reçu)."
282
351
283
352
#: ../Doc/library/asyncio-policy.rst:211
284
353
msgid ""
@@ -336,12 +405,17 @@ msgid ""
336
405
"waitpid(-1)`` directly, possibly breaking other code spawning processes and "
337
406
"waiting for their termination."
338
407
msgstr ""
408
+ "Cette implémentation récupère tous les processus terminés en appelant "
409
+ "directement ``os.waitpid(-1)``, cassant éventuellement un autre code qui "
410
+ "génère des processus et attend leur fin."
339
411
340
412
#: ../Doc/library/asyncio-policy.rst:254
341
413
msgid ""
342
414
"There is no noticeable overhead when handling a big number of children "
343
415
"(*O(1)* each time a child terminates)."
344
416
msgstr ""
417
+ "Il n'y a pas de surcharge visible lors de la manipulation d'un grand nombre "
418
+ "d'enfants (*O(1)* à chaque fois qu'un enfant se termine)."
345
419
346
420
#: ../Doc/library/asyncio-policy.rst:257
347
421
msgid ""
@@ -351,11 +425,15 @@ msgstr ""
351
425
352
426
#: ../Doc/library/asyncio-policy.rst:262
353
427
msgid "Custom Policies"
354
- msgstr ""
428
+ msgstr "Stratégies personnalisées "
355
429
356
430
#: ../Doc/library/asyncio-policy.rst:264
357
431
msgid ""
358
432
"To implement a new event loop policy, it is recommended to subclass :class:"
359
433
"`DefaultEventLoopPolicy` and override the methods for which custom behavior "
360
434
"is wanted, e.g.::"
361
435
msgstr ""
436
+ "Pour implémenter une nouvelle politique de boucle d’événements, il est "
437
+ "recommandé de sous-classer :class:`DefaultEventLoopPolicy` et de "
438
+ "réimplémenter les méthodes pour lesquelles un comportement personnalisé est "
439
+ "souhaité, par exemple : ::"
0 commit comments