Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0658a99

Browse files
fsettonderonnax
authored andcommitted
Traduction des premières lignes de asyncio-policy.po (#619)
1 parent 3de5dcd commit 0658a99

File tree

1 file changed

+102
-24
lines changed

1 file changed

+102
-24
lines changed

library/asyncio-policy.po

Lines changed: 102 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,78 +5,97 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.7\n"
77
"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"
1211
"Language: fr\n"
1312
"MIME-Version: 1.0\n"
1413
"Content-Type: text/plain; charset=UTF-8\n"
1514
"Content-Transfer-Encoding: 8bit\n"
15+
"Last-Translator: \n"
16+
"X-Generator: Poedit 2.2.1\n"
1617

1718
#: ../Doc/library/asyncio-policy.rst:8
1819
msgid "Policies"
19-
msgstr ""
20+
msgstr "Stratégies"
2021

2122
#: ../Doc/library/asyncio-policy.rst:10
2223
msgid ""
2324
"An event loop policy is a global per-process object that controls the "
2425
"management of the event loop. Each event loop has a default policy, which "
2526
"can be changed and customized using the policy API."
2627
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."
2732

2833
#: ../Doc/library/asyncio-policy.rst:14
2934
msgid ""
3035
"A policy defines the notion of *context* and manages a separate event loop "
3136
"per context. The default policy defines *context* to be the current thread."
3237
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."
3341

3442
#: ../Doc/library/asyncio-policy.rst:18
3543
msgid ""
3644
"By using a custom event loop policy, the behavior of :func:"
3745
"`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop` "
3846
"functions can be customized."
3947
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é."
4051

4152
#: ../Doc/library/asyncio-policy.rst:22
4253
msgid ""
4354
"Policy objects should implement the APIs defined in the :class:"
4455
"`AbstractEventLoopPolicy` abstract base class."
4556
msgstr ""
57+
"Les objets de stratégie doivent implémenter les API définies dans la classe "
58+
"de base abstraite :class:`AbstractEventLoopPolicy`."
4659

4760
#: ../Doc/library/asyncio-policy.rst:27
4861
msgid "Getting and Setting the Policy"
49-
msgstr ""
62+
msgstr "Obtenir et définir la stratégie"
5063

5164
#: ../Doc/library/asyncio-policy.rst:29
5265
msgid ""
5366
"The following functions can be used to get and set the policy for the "
5467
"current process:"
5568
msgstr ""
69+
"Les fonctions suivantes peuvent être utilisées pour obtenir et définir la "
70+
"stratégie du processus en cours :"
5671

5772
#: ../Doc/library/asyncio-policy.rst:34
5873
msgid "Return the current process-wide policy."
59-
msgstr ""
74+
msgstr "Renvoie la stratégie actuelle à l'échelle du processus."
6075

6176
#: ../Doc/library/asyncio-policy.rst:38
6277
msgid "Set the current process-wide policy to *policy*."
6378
msgstr ""
79+
"Définit la stratégie actuelle sur l'ensemble du processus sur *policy*."
6480

6581
#: ../Doc/library/asyncio-policy.rst:40
6682
msgid "If *policy* is set to ``None``, the default policy is restored."
6783
msgstr ""
84+
"Si *policy* est définie sur ``None``, la stratégie par défaut est restaurée."
6885

6986
#: ../Doc/library/asyncio-policy.rst:44
7087
msgid "Policy Objects"
71-
msgstr ""
88+
msgstr "Sujets de stratégie"
7289

7390
#: ../Doc/library/asyncio-policy.rst:46
7491
msgid "The abstract event loop policy base class is defined as follows:"
7592
msgstr ""
93+
"La classe de base abstraite de la stratégie de boucle d'événements est "
94+
"définie comme suit:"
7695

7796
#: ../Doc/library/asyncio-policy.rst:50
7897
msgid "An abstract base class for asyncio policies."
79-
msgstr ""
98+
msgstr "Une classe de base abstraite pour les stratégies *asyncio*."
8099

81100
#: ../Doc/library/asyncio-policy.rst:54
82101
msgid "Get the event loop for the current context."
@@ -87,52 +106,61 @@ msgid ""
87106
"Return an event loop object implementing the :class:`AbstractEventLoop` "
88107
"interface."
89108
msgstr ""
109+
"Renvoie un objet de boucle d'événements en implémentant l'interface :class:"
110+
"`AbstractEventLoop`."
90111

91112
#: ../Doc/library/asyncio-policy.rst:59 ../Doc/library/asyncio-policy.rst:71
92113
msgid "This method should never return ``None``."
93-
msgstr ""
114+
msgstr "Cette méthode ne devrait jamais renvoyer ``None``."
94115

95116
#: ../Doc/library/asyncio-policy.rst:65
96117
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*."
98119

99120
#: ../Doc/library/asyncio-policy.rst:69
100121
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."
102123

103124
#: ../Doc/library/asyncio-policy.rst:75
104125
msgid "Get a child process watcher object."
105-
msgstr ""
126+
msgstr "Récupère un objet observateur du processus enfant."
106127

107128
#: ../Doc/library/asyncio-policy.rst:77
108129
msgid ""
109130
"Return a watcher object implementing the :class:`AbstractChildWatcher` "
110131
"interface."
111132
msgstr ""
133+
"Renvoie un objet observateur implémentant l'interface :class:"
134+
"`AbstractChildWatcher`."
112135

113136
#: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86
114137
msgid "This function is Unix specific."
115-
msgstr ""
138+
msgstr "Cette fonction est spécifique à Unix."
116139

117140
#: ../Doc/library/asyncio-policy.rst:84
118141
msgid "Set the current child process watcher to *watcher*."
119-
msgstr ""
142+
msgstr "Définit l'observateur du processus enfant actuel à *watcher*."
120143

121144
#: ../Doc/library/asyncio-policy.rst:89
122145
msgid "asyncio ships with the following built-in policies:"
123-
msgstr ""
146+
msgstr "*asyncio* est livré avec les stratégies intégrées suivantes :"
124147

125148
#: ../Doc/library/asyncio-policy.rst:94
126149
msgid ""
127150
"The default asyncio policy. Uses :class:`SelectorEventLoop` on Unix and :"
128151
"class:`ProactorEventLoop` on Windows."
129152
msgstr ""
153+
"La stratégie *asyncio* par défaut. Utilise :class:`SelectorEventLoop` sur "
154+
"les plates-formes Unix et Windows."
130155

131156
#: ../Doc/library/asyncio-policy.rst:97
132157
msgid ""
133158
"There is no need to install the default policy manually. asyncio is "
134159
"configured to use the default policy automatically."
135160
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."
136164

137165
#: ../Doc/library/asyncio-policy.rst:102
138166
msgid "On Windows, :class:`ProactorEventLoop` is now used by default."
@@ -143,6 +171,8 @@ msgid ""
143171
"An alternative event loop policy that uses the :class:`SelectorEventLoop` "
144172
"event loop implementation."
145173
msgstr ""
174+
"Stratégie de boucle d'événements alternative utilisant l'implémentation de "
175+
"la boucle d'événements :class:`ProactorEventLoop`."
146176

147177
#: ../Doc/library/asyncio-policy.rst:110 ../Doc/library/asyncio-policy.rst:118
148178
msgid ":ref:`Availability <availability>`: Windows."
@@ -156,20 +186,26 @@ msgstr ""
156186

157187
#: ../Doc/library/asyncio-policy.rst:123
158188
msgid "Process Watchers"
159-
msgstr ""
189+
msgstr "Observateurs de processus"
160190

161191
#: ../Doc/library/asyncio-policy.rst:125
162192
msgid ""
163193
"A process watcher allows customization of how an event loop monitors child "
164194
"processes on Unix. Specifically, the event loop needs to know when a child "
165195
"process has exited."
166196
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é."
167201

168202
#: ../Doc/library/asyncio-policy.rst:129
169203
msgid ""
170204
"In asyncio, child processes are created with :func:`create_subprocess_exec` "
171205
"and :meth:`loop.subprocess_exec` functions."
172206
msgstr ""
207+
"Dans *asyncio*, les processus enfants sont créés avec les fonctions :func:"
208+
"`create_subprocess_exec` et :meth:`loop.subprocess_exec`."
173209

174210
#: ../Doc/library/asyncio-policy.rst:133
175211
msgid ""
@@ -179,75 +215,100 @@ msgid ""
179215
"`MultiLoopChildWatcher`, :class:`SafeChildWatcher`, and :class:"
180216
"`FastChildWatcher`."
181217
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`."
182222

183223
#: ../Doc/library/asyncio-policy.rst:139
184224
msgid ""
185225
"See also the :ref:`Subprocess and Threads <asyncio-subprocess-threads>` "
186226
"section."
187227
msgstr ""
228+
"Voir aussi la section :ref:`sous-processus et fils d'exécution <threads "
229+
"asyncio-sous-processus>`."
188230

189231
#: ../Doc/library/asyncio-policy.rst:142
190232
msgid ""
191233
"The following two functions can be used to customize the child process "
192234
"watcher implementation used by the asyncio event loop:"
193235
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* :"
194239

195240
#: ../Doc/library/asyncio-policy.rst:147
196241
msgid "Return the current child watcher for the current policy."
197-
msgstr ""
242+
msgstr "Renvoie l'observateur enfant actuel pour la stratégie actuelle."
198243

199244
#: ../Doc/library/asyncio-policy.rst:151
200245
msgid ""
201246
"Set the current child watcher to *watcher* for the current policy. "
202247
"*watcher* must implement methods defined in the :class:"
203248
"`AbstractChildWatcher` base class."
204249
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`."
205253

206254
#: ../Doc/library/asyncio-policy.rst:156
207255
msgid ""
208256
"Third-party event loops implementations might not support custom child "
209257
"watchers. For such event loops, using :func:`set_child_watcher` might be "
210258
"prohibited or have no effect."
211259
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."
212264

213265
#: ../Doc/library/asyncio-policy.rst:164
214266
msgid "Register a new child handler."
215-
msgstr ""
267+
msgstr "Enregistre un nouveau gestionnaire."
216268

217269
#: ../Doc/library/asyncio-policy.rst:166
218270
msgid ""
219271
"Arrange for ``callback(pid, returncode, *args)`` to be called when a process "
220272
"with PID equal to *pid* terminates. Specifying another callback for the "
221273
"same process replaces the previous handler."
222274
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."
223278

224279
#: ../Doc/library/asyncio-policy.rst:171
225280
msgid "The *callback* callable must be thread-safe."
226281
msgstr ""
282+
"L'appelable *callback* doit être compatible avec les programmes à fils "
283+
"d'exécution multiples."
227284

228285
#: ../Doc/library/asyncio-policy.rst:175
229286
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*."
231288

232289
#: ../Doc/library/asyncio-policy.rst:177
233290
msgid ""
234291
"The function returns ``True`` if the handler was successfully removed, "
235292
"``False`` if there was nothing to remove."
236293
msgstr ""
294+
"La fonction renvoie ``True`` si le gestionnaire a été supprimé avec succès, "
295+
"``False`` s'il n'y a rien à supprimer."
237296

238297
#: ../Doc/library/asyncio-policy.rst:182
239298
msgid "Attach the watcher to an event loop."
240-
msgstr ""
299+
msgstr "Attache l'observateur à une boucle d'événement."
241300

242301
#: ../Doc/library/asyncio-policy.rst:184
243302
msgid ""
244303
"If the watcher was previously attached to an event loop, then it is first "
245304
"detached before attaching to the new loop."
246305
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."
247308

248309
#: ../Doc/library/asyncio-policy.rst:187
249310
msgid "Note: loop may be ``None``."
250-
msgstr ""
311+
msgstr "Remarque : la boucle peut être ``None``."
251312

252313
#: ../Doc/library/asyncio-policy.rst:191
253314
msgid "Return ``True`` if the watcher is ready to use."
@@ -261,24 +322,32 @@ msgstr ""
261322

262323
#: ../Doc/library/asyncio-policy.rst:200
263324
msgid "Close the watcher."
264-
msgstr ""
325+
msgstr "Ferme l'observateur."
265326

266327
#: ../Doc/library/asyncio-policy.rst:202
267328
msgid ""
268329
"This method has to be called to ensure that underlying resources are cleaned-"
269330
"up."
270331
msgstr ""
332+
"Cette méthode doit être appelée pour s'assurer que les ressources sous-"
333+
"jacentes sont nettoyées."
271334

272335
#: ../Doc/library/asyncio-policy.rst:207
273336
msgid ""
274337
"This implementation starts a new waiting thread for every subprocess spawn."
275338
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`."
276342

277343
#: ../Doc/library/asyncio-policy.rst:209
278344
msgid ""
279345
"It works reliably even when the asyncio event loop is run in a non-main OS "
280346
"thread."
281347
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)."
282351

283352
#: ../Doc/library/asyncio-policy.rst:211
284353
msgid ""
@@ -336,12 +405,17 @@ msgid ""
336405
"waitpid(-1)`` directly, possibly breaking other code spawning processes and "
337406
"waiting for their termination."
338407
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."
339411

340412
#: ../Doc/library/asyncio-policy.rst:254
341413
msgid ""
342414
"There is no noticeable overhead when handling a big number of children "
343415
"(*O(1)* each time a child terminates)."
344416
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)."
345419

346420
#: ../Doc/library/asyncio-policy.rst:257
347421
msgid ""
@@ -351,11 +425,15 @@ msgstr ""
351425

352426
#: ../Doc/library/asyncio-policy.rst:262
353427
msgid "Custom Policies"
354-
msgstr ""
428+
msgstr "Stratégies personnalisées"
355429

356430
#: ../Doc/library/asyncio-policy.rst:264
357431
msgid ""
358432
"To implement a new event loop policy, it is recommended to subclass :class:"
359433
"`DefaultEventLoopPolicy` and override the methods for which custom behavior "
360434
"is wanted, e.g.::"
361435
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

Comments
 (0)