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