python-docs-fr/library/asyncio-sync.po
2019-06-03 22:16:26 +02:00

375 lines
11 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Copyright (C) 2001-2018, Python Software Foundation
# For licence information, see README file.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-03 22:10+0200\n"
"PO-Revision-Date: 2018-10-15 00:46+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/asyncio-sync.rst:7
msgid "Synchronization Primitives"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:9
msgid ""
"asyncio synchronization primitives are designed to be similar to those of "
"the :mod:`threading` module with two important caveats:"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:12
msgid ""
"asyncio primitives are not thread-safe, therefore they should not be used "
"for OS thread synchronization (use :mod:`threading` for that);"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:16
msgid ""
"methods of these synchronization primitives do not accept the *timeout* "
"argument; use the :func:`asyncio.wait_for` function to perform operations "
"with timeouts."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:20
msgid "asyncio has the following basic synchronization primitives:"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:22
msgid ":class:`Lock`"
msgstr ":class:`Lock`"
#: ../Doc/library/asyncio-sync.rst:23
msgid ":class:`Event`"
msgstr ":class:`Event`"
#: ../Doc/library/asyncio-sync.rst:24
msgid ":class:`Condition`"
msgstr ":class:`Condition`"
#: ../Doc/library/asyncio-sync.rst:25
msgid ":class:`Semaphore`"
msgstr ":class:`Semaphore`"
#: ../Doc/library/asyncio-sync.rst:26
msgid ":class:`BoundedSemaphore`"
msgstr ":class:`BoundedSemaphore`"
#: ../Doc/library/asyncio-sync.rst:33
msgid "Lock"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:37
msgid "Implements a mutex lock for asyncio tasks. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:39
msgid ""
"An asyncio lock can be used to guarantee exclusive access to a shared "
"resource."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:42
msgid "The preferred way to use a Lock is an :keyword:`async with` statement::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:51 ../Doc/library/asyncio-sync.rst:185
#: ../Doc/library/asyncio-sync.rst:281
msgid "which is equivalent to::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:64
msgid "Acquire the lock."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:66
msgid ""
"This method waits until the lock is *unlocked*, sets it to *locked* and "
"returns ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:69
msgid ""
"When more than one coroutine is blocked in :meth:`acquire` waiting for the "
"lock to be unlocked, only one coroutine eventually proceeds."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:73
msgid ""
"Acquiring a lock is *fair*: the coroutine that proceeds will be the first "
"coroutine that started waiting on the lock."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:78
msgid "Release the lock."
msgstr "Libère un verrou."
#: ../Doc/library/asyncio-sync.rst:80
msgid "When the lock is *locked*, reset it to *unlocked* and return."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:82
msgid "If the lock is *unlocked*, a :exc:`RuntimeError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:86
msgid "Return ``True`` if the lock is *locked*."
msgstr "Donne ``True`` si le verrou est verrouillé."
#: ../Doc/library/asyncio-sync.rst:90
msgid "Event"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:94
msgid "An event object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:96
msgid ""
"An asyncio event can be used to notify multiple asyncio tasks that some "
"event has happened."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:99
msgid ""
"An Event object manages an internal flag that can be set to *true* with the :"
"meth:`set` method and reset to *false* with the :meth:`clear` method. The :"
"meth:`wait` method blocks until the flag is set to *true*. The flag is set "
"to *false* initially."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:106
msgid "Example::"
msgstr "Exemple ::"
#: ../Doc/library/asyncio-sync.rst:131
msgid "Wait until the event is set."
msgstr "Attend que l'évènement ait une valeur."
#: ../Doc/library/asyncio-sync.rst:133
msgid ""
"If the event is set, return ``True`` immediately. Otherwise block until "
"another task calls :meth:`set`."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:138
msgid "Set the event."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:140
msgid "All tasks waiting for event to be set will be immediately awakened."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:145
msgid "Clear (unset) the event."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:147
msgid ""
"Tasks awaiting on :meth:`wait` will now block until the :meth:`set` method "
"is called again."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:152
msgid "Return ``True`` if the event is set."
msgstr "Renvoie ``True`` si l'évènement a une valeur."
#: ../Doc/library/asyncio-sync.rst:156
msgid "Condition"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:160
msgid "A Condition object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:162
msgid ""
"An asyncio condition primitive can be used by a task to wait for some event "
"to happen and then get exclusive access to a shared resource."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:166
msgid ""
"In essence, a Condition object combines the functionality of an :class:"
"`Event` and a :class:`Lock`. It is possible to have multiple Condition "
"objects share one Lock, which allows coordinating exclusive access to a "
"shared resource between different tasks interested in particular states of "
"that shared resource."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:172
msgid ""
"The optional *lock* argument must be a :class:`Lock` object or ``None``. In "
"the latter case a new Lock object is created automatically."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:176
msgid ""
"The preferred way to use a Condition is an :keyword:`async with` statement::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:198
msgid "Acquire the underlying lock."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:200
msgid ""
"This method waits until the underlying lock is *unlocked*, sets it to "
"*locked* and returns ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:205
msgid ""
"Wake up at most *n* tasks (1 by default) waiting on this condition. The "
"method is no-op if no tasks are waiting."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:208 ../Doc/library/asyncio-sync.rst:223
msgid ""
"The lock must be acquired before this method is called and released shortly "
"after. If called with an *unlocked* lock a :exc:`RuntimeError` error is "
"raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:214
msgid "Return ``True`` if the underlying lock is acquired."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:218
msgid "Wake up all tasks waiting on this condition."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:220
msgid "This method acts like :meth:`notify`, but wakes up all waiting tasks."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:229
msgid "Release the underlying lock."
msgstr "Libère le verrou sous-jacent."
#: ../Doc/library/asyncio-sync.rst:231
msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:236
msgid "Wait until notified."
msgstr "Attends d'être notifié."
#: ../Doc/library/asyncio-sync.rst:238
msgid ""
"If the calling task has not acquired the lock when this method is called, a :"
"exc:`RuntimeError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:241
msgid ""
"This method releases the underlying lock, and then blocks until it is "
"awakened by a :meth:`notify` or :meth:`notify_all` call. Once awakened, the "
"Condition re-acquires its lock and this method returns ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:248
msgid "Wait until a predicate becomes *true*."
msgstr "Attends jusqu'à ce qu'un prédicat devienne vrai."
#: ../Doc/library/asyncio-sync.rst:250
msgid ""
"The predicate must be a callable which result will be interpreted as a "
"boolean value. The final value is the return value."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:256
msgid "Semaphore"
msgstr "Sémaphore"
#: ../Doc/library/asyncio-sync.rst:260
msgid "A Semaphore object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:262
msgid ""
"A semaphore manages an internal counter which is decremented by each :meth:"
"`acquire` call and incremented by each :meth:`release` call. The counter can "
"never go below zero; when :meth:`acquire` finds that it is zero, it blocks, "
"waiting until some task calls :meth:`release`."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:268
msgid ""
"The optional *value* argument gives the initial value for the internal "
"counter (``1`` by default). If the given value is less than ``0`` a :exc:"
"`ValueError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:272
msgid ""
"The preferred way to use a Semaphore is an :keyword:`async with` statement::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:294
msgid "Acquire a semaphore."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:296
msgid ""
"If the internal counter is greater than zero, decrement it by one and return "
"``True`` immediately. If it is zero, wait until a :meth:`release` is called "
"and return ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:302
msgid "Returns ``True`` if semaphore can not be acquired immediately."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:306
msgid ""
"Release a semaphore, incrementing the internal counter by one. Can wake up a "
"task waiting to acquire the semaphore."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:309
msgid ""
"Unlike :class:`BoundedSemaphore`, :class:`Semaphore` allows making more "
"``release()`` calls than ``acquire()`` calls."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:314
msgid "BoundedSemaphore"
msgstr "BoundedSemaphore"
#: ../Doc/library/asyncio-sync.rst:318
msgid "A bounded semaphore object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:320
msgid ""
"Bounded Semaphore is a version of :class:`Semaphore` that raises a :exc:"
"`ValueError` in :meth:`~Semaphore.release` if it increases the internal "
"counter above the initial *value*."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:330
msgid ""
"Acquiring a lock using ``await lock`` or ``yield from lock`` and/or :keyword:"
"`with` statement (``with await lock``, ``with (yield from lock)``) is "
"deprecated. Use ``async with lock`` instead."
msgstr ""
#~ msgid "Semaphores:"
#~ msgstr "Sémaphores :"
#~ msgid "This method is a :ref:`coroutine <coroutine>`."
#~ msgstr "Cette méthode est une :ref:`coroutine <coroutine>`."
#~ msgid "There is no return value."
#~ msgstr "Il n'y a pas de valeur de retour."
#~ msgid "Semaphores"
#~ msgstr "Sémaphores"