This commit is contained in:
Julien Palard 2018-12-24 14:20:55 +01:00 committed by GitHub
commit 527c1242a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -64,7 +64,7 @@ msgid ""
"be seekable, unless you know ahead of time how many samples you are going to "
"write in total and use :meth:`writeframesraw` and :meth:`setnframes`. The :"
"func:`.open` function may be used in a :keyword:`with` statement. When the :"
"keyword:`with` block completes, the :meth:`~aifc.close` method is called."
"keyword:`!with` block completes, the :meth:`~aifc.close` method is called."
msgstr ""
#: ../Doc/library/aifc.rst:50

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-11-29 18:24+0100\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -229,8 +229,8 @@ msgid ""
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:160
#: ../Doc/library/asyncio-eventloop.rst:993
#: ../Doc/library/asyncio-eventloop.rst:1355
#: ../Doc/library/asyncio-eventloop.rst:1001
#: ../Doc/library/asyncio-eventloop.rst:1363
msgid "Example::"
msgstr "Exemple ::"
@ -692,7 +692,7 @@ msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:508
#: ../Doc/library/asyncio-eventloop.rst:628
#: ../Doc/library/asyncio-eventloop.rst:976
#: ../Doc/library/asyncio-eventloop.rst:984
msgid ":ref:`Availability <availability>`: Unix."
msgstr ":ref:`Disponibilité <availability>` : Unix."
@ -972,11 +972,10 @@ msgid ""
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:752
#: ../Doc/library/asyncio-eventloop.rst:966
#: ../Doc/library/asyncio-eventloop.rst:1036
#: ../Doc/library/asyncio-eventloop.rst:971
msgid ""
"Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-"
"keywords>` to *func*."
"keywords>` to *callback*."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:757
@ -1225,43 +1224,62 @@ msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:963
msgid ""
"The callback will be invoked by *loop*, along with other queued callbacks "
"and runnable coroutines of that event loop. Unlike signal handlers "
"registered using :func:`signal.signal`, a callback registered with this "
"function is allowed to interact with the event loop."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:968
msgid ""
"Raise :exc:`ValueError` if the signal number is invalid or uncatchable. "
"Raise :exc:`RuntimeError` if there is a problem setting up the handler."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:971
#: ../Doc/library/asyncio-eventloop.rst:974
msgid ""
"Like :func:`signal.signal`, this function must be invoked in the main thread."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:979
msgid "Remove the handler for the *sig* signal."
msgstr "Supprime le gestionnaire du signal *sig*."
#: ../Doc/library/asyncio-eventloop.rst:973
#: ../Doc/library/asyncio-eventloop.rst:981
msgid ""
"Return ``True`` if the signal handler was removed, or ``False`` if no "
"handler was set for the given signal."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:980
#: ../Doc/library/asyncio-eventloop.rst:988
msgid "The :mod:`signal` module."
msgstr "Le module :mod:`signal`."
#: ../Doc/library/asyncio-eventloop.rst:984
#: ../Doc/library/asyncio-eventloop.rst:992
msgid "Executing code in thread or process pools"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:988
#: ../Doc/library/asyncio-eventloop.rst:996
msgid "Arrange for *func* to be called in the specified executor."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:990
#: ../Doc/library/asyncio-eventloop.rst:998
msgid ""
"The *executor* argument should be an :class:`concurrent.futures.Executor` "
"instance. The default executor is used if *executor* is ``None``."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1034
#: ../Doc/library/asyncio-eventloop.rst:1042
msgid "This method returns a :class:`asyncio.Future` object."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1039
#: ../Doc/library/asyncio-eventloop.rst:1044
msgid ""
"Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-"
"keywords>` to *func*."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1047
msgid ""
":meth:`loop.run_in_executor` no longer configures the ``max_workers`` of the "
"thread pool executor it creates, instead leaving it up to the thread pool "
@ -1269,38 +1287,38 @@ msgid ""
"default."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1048
#: ../Doc/library/asyncio-eventloop.rst:1056
msgid ""
"Set *executor* as the default executor used by :meth:`run_in_executor`. "
"*executor* should be an instance of :class:`~concurrent.futures."
"ThreadPoolExecutor`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1052
#: ../Doc/library/asyncio-eventloop.rst:1060
msgid ""
"Using an executor that is not an instance of :class:`~concurrent.futures."
"ThreadPoolExecutor` is deprecated and will trigger an error in Python 3.9."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1057
#: ../Doc/library/asyncio-eventloop.rst:1065
msgid ""
"*executor* must be an instance of :class:`concurrent.futures."
"ThreadPoolExecutor`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1062
#: ../Doc/library/asyncio-eventloop.rst:1070
msgid "Error Handling API"
msgstr "API de gestion d'erreur"
#: ../Doc/library/asyncio-eventloop.rst:1064
#: ../Doc/library/asyncio-eventloop.rst:1072
msgid "Allows customizing how exceptions are handled in the event loop."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1068
#: ../Doc/library/asyncio-eventloop.rst:1076
msgid "Set *handler* as the new event loop exception handler."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1070
#: ../Doc/library/asyncio-eventloop.rst:1078
msgid ""
"If *handler* is ``None``, the default exception handler will be set. "
"Otherwise, *handler* must be a callable with the signature matching ``(loop, "
@ -1309,147 +1327,147 @@ msgid ""
"(see :meth:`call_exception_handler` documentation for details about context)."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1080
#: ../Doc/library/asyncio-eventloop.rst:1088
msgid ""
"Return the current exception handler, or ``None`` if no custom exception "
"handler was set."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1087
#: ../Doc/library/asyncio-eventloop.rst:1095
msgid "Default exception handler."
msgstr "Gestionnaire d'exception par défaut."
#: ../Doc/library/asyncio-eventloop.rst:1089
#: ../Doc/library/asyncio-eventloop.rst:1097
msgid ""
"This is called when an exception occurs and no exception handler is set. "
"This can be called by a custom exception handler that wants to defer to the "
"default handler behavior."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1093
#: ../Doc/library/asyncio-eventloop.rst:1101
msgid ""
"*context* parameter has the same meaning as in :meth:"
"`call_exception_handler`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1098
#: ../Doc/library/asyncio-eventloop.rst:1106
msgid "Call the current event loop exception handler."
msgstr ""
"Appelle le gestionnaire d'exception de la boucle d'évènements actuelle."
#: ../Doc/library/asyncio-eventloop.rst:1100
#: ../Doc/library/asyncio-eventloop.rst:1108
msgid ""
"*context* is a ``dict`` object containing the following keys (new keys may "
"be introduced in future Python versions):"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1103
#: ../Doc/library/asyncio-eventloop.rst:1111
msgid "'message': Error message;"
msgstr "``message`` : Message d'erreur ;"
#: ../Doc/library/asyncio-eventloop.rst:1104
#: ../Doc/library/asyncio-eventloop.rst:1112
msgid "'exception' (optional): Exception object;"
msgstr "``exception`` (optionnel): Un objet exception ;"
#: ../Doc/library/asyncio-eventloop.rst:1105
#: ../Doc/library/asyncio-eventloop.rst:1113
msgid "'future' (optional): :class:`asyncio.Future` instance;"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1106
#: ../Doc/library/asyncio-eventloop.rst:1114
msgid "'handle' (optional): :class:`asyncio.Handle` instance;"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1107
#: ../Doc/library/asyncio-eventloop.rst:1115
msgid "'protocol' (optional): :ref:`Protocol <asyncio-protocol>` instance;"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1108
#: ../Doc/library/asyncio-eventloop.rst:1116
msgid "'transport' (optional): :ref:`Transport <asyncio-transport>` instance;"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1109
#: ../Doc/library/asyncio-eventloop.rst:1117
msgid "'socket' (optional): :class:`socket.socket` instance."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1113
#: ../Doc/library/asyncio-eventloop.rst:1121
msgid ""
"This method should not be overloaded in subclassed event loops. For custom "
"exception handling, use the :meth:`set_exception_handler()` method."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1118
#: ../Doc/library/asyncio-eventloop.rst:1126
msgid "Enabling debug mode"
msgstr "Active le mode débogage"
#: ../Doc/library/asyncio-eventloop.rst:1122
#: ../Doc/library/asyncio-eventloop.rst:1130
msgid "Get the debug mode (:class:`bool`) of the event loop."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1124
#: ../Doc/library/asyncio-eventloop.rst:1132
msgid ""
"The default value is ``True`` if the environment variable :envvar:"
"`PYTHONASYNCIODEBUG` is set to a non-empty string, ``False`` otherwise."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1130
#: ../Doc/library/asyncio-eventloop.rst:1138
msgid "Set the debug mode of the event loop."
msgstr "Active le mode débogage pour la boucle d'évènements."
#: ../Doc/library/asyncio-eventloop.rst:1134
#: ../Doc/library/asyncio-eventloop.rst:1142
msgid ""
"The new ``-X dev`` command line option can now also be used to enable the "
"debug mode."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1139
#: ../Doc/library/asyncio-eventloop.rst:1147
msgid "The :ref:`debug mode of asyncio <asyncio-debug-mode>`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1143
#: ../Doc/library/asyncio-eventloop.rst:1151
msgid "Running Subprocesses"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1145
#: ../Doc/library/asyncio-eventloop.rst:1153
msgid ""
"Methods described in this subsections are low-level. In regular async/await "
"code consider using the high-level :func:`asyncio.create_subprocess_shell` "
"and :func:`asyncio.create_subprocess_exec` convenience functions instead."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1152
#: ../Doc/library/asyncio-eventloop.rst:1160
msgid ""
"The default asyncio event loop on **Windows** does not support subprocesses. "
"See :ref:`Subprocess Support on Windows <asyncio-windows-subprocess>` for "
"details."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1160
#: ../Doc/library/asyncio-eventloop.rst:1168
msgid ""
"Create a subprocess from one or more string arguments specified by *args*."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1163
#: ../Doc/library/asyncio-eventloop.rst:1171
msgid "*args* must be a list of strings represented by:"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1165
#: ../Doc/library/asyncio-eventloop.rst:1173
msgid ":class:`str`;"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1166
#: ../Doc/library/asyncio-eventloop.rst:1174
msgid ""
"or :class:`bytes`, encoded to the :ref:`filesystem encoding <filesystem-"
"encoding>`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1169
#: ../Doc/library/asyncio-eventloop.rst:1177
msgid ""
"The first string specifies the program executable, and the remaining strings "
"specify the arguments. Together, string arguments form the ``argv`` of the "
"program."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1173
#: ../Doc/library/asyncio-eventloop.rst:1181
msgid ""
"This is similar to the standard library :class:`subprocess.Popen` class "
"called with ``shell=False`` and the list of strings passed as the first "
@ -1457,17 +1475,17 @@ msgid ""
"which is list of strings, *subprocess_exec* takes multiple string arguments."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1179
#: ../Doc/library/asyncio-eventloop.rst:1187
msgid ""
"The *protocol_factory* must be a callable returning a subclass of the :class:"
"`asyncio.SubprocessProtocol` class."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1182
#: ../Doc/library/asyncio-eventloop.rst:1190
msgid "Other parameters:"
msgstr "Autres paramètres :"
#: ../Doc/library/asyncio-eventloop.rst:1184
#: ../Doc/library/asyncio-eventloop.rst:1192
msgid ""
"*stdin*: either a file-like object representing a pipe to be connected to "
"the subprocess's standard input stream using :meth:`~loop."
@ -1475,7 +1493,7 @@ msgid ""
"default a new pipe will be created and connected."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1190
#: ../Doc/library/asyncio-eventloop.rst:1198
msgid ""
"*stdout*: either a file-like object representing the pipe to be connected to "
"the subprocess's standard output stream using :meth:`~loop."
@ -1483,7 +1501,7 @@ msgid ""
"default a new pipe will be created and connected."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1196
#: ../Doc/library/asyncio-eventloop.rst:1204
msgid ""
"*stderr*: either a file-like object representing the pipe to be connected to "
"the subprocess's standard error stream using :meth:`~loop."
@ -1491,66 +1509,66 @@ msgid ""
"`subprocess.STDOUT` constants."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1202
#: ../Doc/library/asyncio-eventloop.rst:1210
msgid ""
"By default a new pipe will be created and connected. When :const:`subprocess."
"STDOUT` is specified, the subprocess' standard error stream will be "
"connected to the same pipe as the standard output stream."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1207
#: ../Doc/library/asyncio-eventloop.rst:1215
msgid ""
"All other keyword arguments are passed to :class:`subprocess.Popen` without "
"interpretation, except for *bufsize*, *universal_newlines* and *shell*, "
"which should not be specified at all."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1211
#: ../Doc/library/asyncio-eventloop.rst:1219
msgid ""
"See the constructor of the :class:`subprocess.Popen` class for documentation "
"on other arguments."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1214
#: ../Doc/library/asyncio-eventloop.rst:1222
msgid ""
"Returns a pair of ``(transport, protocol)``, where *transport* conforms to "
"the :class:`asyncio.SubprocessTransport` base class and *protocol* is an "
"object instantiated by the *protocol_factory*."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1222
#: ../Doc/library/asyncio-eventloop.rst:1230
msgid ""
"Create a subprocess from *cmd*, which can be a :class:`str` or a :class:"
"`bytes` string encoded to the :ref:`filesystem encoding <filesystem-"
"encoding>`, using the platform's \"shell\" syntax."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1227
#: ../Doc/library/asyncio-eventloop.rst:1235
msgid ""
"This is similar to the standard library :class:`subprocess.Popen` class "
"called with ``shell=True``."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1230
#: ../Doc/library/asyncio-eventloop.rst:1238
msgid ""
"The *protocol_factory* must be a callable returning a subclass of the :class:"
"`SubprocessProtocol` class."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1233
#: ../Doc/library/asyncio-eventloop.rst:1241
msgid ""
"See :meth:`~loop.subprocess_exec` for more details about the remaining "
"arguments."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1236
#: ../Doc/library/asyncio-eventloop.rst:1244
msgid ""
"Returns a pair of ``(transport, protocol)``, where *transport* conforms to "
"the :class:`SubprocessTransport` base class and *protocol* is an object "
"instantiated by the *protocol_factory*."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1241
#: ../Doc/library/asyncio-eventloop.rst:1249
msgid ""
"It is the application's responsibility to ensure that all whitespace and "
"special characters are quoted appropriately to avoid `shell injection "
@ -1560,105 +1578,105 @@ msgid ""
"used to construct shell commands."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1250
#: ../Doc/library/asyncio-eventloop.rst:1258
msgid "Callback Handles"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1254
#: ../Doc/library/asyncio-eventloop.rst:1262
msgid ""
"A callback wrapper object returned by :meth:`loop.call_soon`, :meth:`loop."
"call_soon_threadsafe`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1259
#: ../Doc/library/asyncio-eventloop.rst:1267
msgid ""
"Cancel the callback. If the callback has already been canceled or executed, "
"this method has no effect."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1264
#: ../Doc/library/asyncio-eventloop.rst:1272
msgid "Return ``True`` if the callback was cancelled."
msgstr "Renvoie ``True`` si la fonction de rappel à été annulé."
#: ../Doc/library/asyncio-eventloop.rst:1270
#: ../Doc/library/asyncio-eventloop.rst:1278
msgid ""
"A callback wrapper object returned by :meth:`loop.call_later`, and :meth:"
"`loop.call_at`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1273
#: ../Doc/library/asyncio-eventloop.rst:1281
msgid "This class is a subclass of :class:`Handle`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1277
#: ../Doc/library/asyncio-eventloop.rst:1285
msgid "Return a scheduled callback time as :class:`float` seconds."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1279
#: ../Doc/library/asyncio-eventloop.rst:1287
msgid ""
"The time is an absolute timestamp, using the same time reference as :meth:"
"`loop.time`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1286
#: ../Doc/library/asyncio-eventloop.rst:1294
msgid "Server Objects"
msgstr "Objets Serveur"
#: ../Doc/library/asyncio-eventloop.rst:1288
#: ../Doc/library/asyncio-eventloop.rst:1296
msgid ""
"Server objects are created by :meth:`loop.create_server`, :meth:`loop."
"create_unix_server`, :func:`start_server`, and :func:`start_unix_server` "
"functions."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1292
#: ../Doc/library/asyncio-eventloop.rst:1300
msgid "Do not instantiate the class directly."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1296
#: ../Doc/library/asyncio-eventloop.rst:1304
msgid ""
"*Server* objects are asynchronous context managers. When used in an ``async "
"with`` statement, it's guaranteed that the Server object is closed and not "
"accepting new connections when the ``async with`` statement is completed::"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1309
#: ../Doc/library/asyncio-eventloop.rst:1317
msgid "Server object is an asynchronous context manager since Python 3.7."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1314
#: ../Doc/library/asyncio-eventloop.rst:1322
msgid ""
"Stop serving: close listening sockets and set the :attr:`sockets` attribute "
"to ``None``."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1317
#: ../Doc/library/asyncio-eventloop.rst:1325
msgid ""
"The sockets that represent existing incoming client connections are left "
"open."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1320
#: ../Doc/library/asyncio-eventloop.rst:1328
msgid ""
"The server is closed asynchronously, use the :meth:`wait_closed` coroutine "
"to wait until the server is closed."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1325
#: ../Doc/library/asyncio-eventloop.rst:1333
msgid "Return the event loop associated with the server object."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1331
#: ../Doc/library/asyncio-eventloop.rst:1339
msgid "Start accepting connections."
msgstr "Commence à accepter les connexions."
#: ../Doc/library/asyncio-eventloop.rst:1333
#: ../Doc/library/asyncio-eventloop.rst:1341
msgid ""
"This method is idempotent, so it can be called when the server is already "
"being serving."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1336
#: ../Doc/library/asyncio-eventloop.rst:1344
msgid ""
"The *start_serving* keyword-only parameter to :meth:`loop.create_server` "
"and :meth:`asyncio.start_server` allows creating a Server object that is not "
@ -1667,103 +1685,103 @@ msgid ""
"accepting connections."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1347
#: ../Doc/library/asyncio-eventloop.rst:1355
msgid ""
"Start accepting connections until the coroutine is cancelled. Cancellation "
"of ``serve_forever`` task causes the server to be closed."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1351
#: ../Doc/library/asyncio-eventloop.rst:1359
msgid ""
"This method can be called if the server is already accepting connections. "
"Only one ``serve_forever`` task can exist per one *Server* object."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1373
#: ../Doc/library/asyncio-eventloop.rst:1381
msgid "Return ``True`` if the server is accepting new connections."
msgstr "Donne ``True`` si le serveur accepte de nouvelles connexions."
#: ../Doc/library/asyncio-eventloop.rst:1379
#: ../Doc/library/asyncio-eventloop.rst:1387
msgid "Wait until the :meth:`close` method completes."
msgstr "Attends que la méthode :meth:`close` se termine."
#: ../Doc/library/asyncio-eventloop.rst:1383
#: ../Doc/library/asyncio-eventloop.rst:1391
msgid ""
"List of :class:`socket.socket` objects the server is listening on, or "
"``None`` if the server is closed."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1386
#: ../Doc/library/asyncio-eventloop.rst:1394
msgid ""
"Prior to Python 3.7 ``Server.sockets`` used to return an internal list of "
"server sockets directly. In 3.7 a copy of that list is returned."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1395
#: ../Doc/library/asyncio-eventloop.rst:1403
msgid "Event Loop Implementations"
msgstr "Implémentations de boucle d'évènements"
#: ../Doc/library/asyncio-eventloop.rst:1397
#: ../Doc/library/asyncio-eventloop.rst:1405
msgid ""
"asyncio ships with two different event loop implementations: :class:"
"`SelectorEventLoop` and :class:`ProactorEventLoop`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1400
#: ../Doc/library/asyncio-eventloop.rst:1408
msgid ""
"By default asyncio is configured to use :class:`SelectorEventLoop` on all "
"platforms."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1406
#: ../Doc/library/asyncio-eventloop.rst:1414
msgid "An event loop based on the :mod:`selectors` module."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1408
#: ../Doc/library/asyncio-eventloop.rst:1416
msgid ""
"Uses the most efficient *selector* available for the given platform. It is "
"also possible to manually configure the exact selector implementation to be "
"used::"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1420
#: ../Doc/library/asyncio-eventloop.rst:1428
msgid ":ref:`Availability <availability>`: Unix, Windows."
msgstr ":ref:`Disponibilité <availability>` : Unix, Windows."
#: ../Doc/library/asyncio-eventloop.rst:1425
#: ../Doc/library/asyncio-eventloop.rst:1433
msgid "An event loop for Windows that uses \"I/O Completion Ports\" (IOCP)."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1428
#: ../Doc/library/asyncio-eventloop.rst:1436
msgid ":ref:`Availability <availability>`: Windows."
msgstr ":ref:`Disponibilité <availability>` : Windows."
#: ../Doc/library/asyncio-eventloop.rst:1429
#: ../Doc/library/asyncio-eventloop.rst:1437
msgid "An example how to use :class:`ProactorEventLoop` on Windows::"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1440
#: ../Doc/library/asyncio-eventloop.rst:1448
msgid ""
"`MSDN documentation on I/O Completion Ports <https://docs.microsoft.com/en-"
"ca/windows/desktop/FileIO/i-o-completion-ports>`_."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1446
#: ../Doc/library/asyncio-eventloop.rst:1454
msgid "Abstract base class for asyncio-compliant event loops."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1448
#: ../Doc/library/asyncio-eventloop.rst:1456
msgid ""
"The :ref:`Event Loop Methods <asyncio-event-loop>` section lists all methods "
"that an alternative implementation of ``AbstractEventLoop`` should have "
"defined."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1454
#: ../Doc/library/asyncio-eventloop.rst:1462
msgid "Examples"
msgstr "Exemples"
#: ../Doc/library/asyncio-eventloop.rst:1456
#: ../Doc/library/asyncio-eventloop.rst:1464
msgid ""
"Note that all examples in this section **purposefully** show how to use the "
"low-level event loop APIs, such as :meth:`loop.run_forever` and :meth:`loop."
@ -1771,70 +1789,70 @@ msgid ""
"consider using the high-level functions like :func:`asyncio.run`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1466
#: ../Doc/library/asyncio-eventloop.rst:1474
msgid "Hello World with call_soon()"
msgstr "\"Hello World\" avec ``call_soon()``"
#: ../Doc/library/asyncio-eventloop.rst:1468
#: ../Doc/library/asyncio-eventloop.rst:1476
msgid ""
"An example using the :meth:`loop.call_soon` method to schedule a callback. "
"The callback displays ``\"Hello World\"`` and then stops the event loop::"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1492
#: ../Doc/library/asyncio-eventloop.rst:1500
msgid ""
"A similar :ref:`Hello World <coroutine>` example created with a coroutine "
"and the :func:`run` function."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1499
#: ../Doc/library/asyncio-eventloop.rst:1507
msgid "Display the current date with call_later()"
msgstr "Afficher la date actuelle avec ``call_later()``"
#: ../Doc/library/asyncio-eventloop.rst:1501
#: ../Doc/library/asyncio-eventloop.rst:1509
msgid ""
"An example of a callback displaying the current date every second. The "
"callback uses the :meth:`loop.call_later` method to reschedule itself after "
"5 seconds, and then stops the event loop::"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1529
#: ../Doc/library/asyncio-eventloop.rst:1537
msgid ""
"A similar :ref:`current date <asyncio_example_sleep>` example created with a "
"coroutine and the :func:`run` function."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1536
#: ../Doc/library/asyncio-eventloop.rst:1544
msgid "Watch a file descriptor for read events"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1538
#: ../Doc/library/asyncio-eventloop.rst:1546
msgid ""
"Wait until a file descriptor received some data using the :meth:`loop."
"add_reader` method and then close the event loop::"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1576
#: ../Doc/library/asyncio-eventloop.rst:1584
msgid ""
"A similar :ref:`example <asyncio_example_create_connection>` using "
"transports, protocols, and the :meth:`loop.create_connection` method."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1580
#: ../Doc/library/asyncio-eventloop.rst:1588
msgid ""
"Another similar :ref:`example <asyncio_example_create_connection-streams>` "
"using the high-level :func:`asyncio.open_connection` function and streams."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1588
#: ../Doc/library/asyncio-eventloop.rst:1596
msgid "Set signal handlers for SIGINT and SIGTERM"
msgstr "Définit les gestionnaires de signaux pour *SIGINT* et *SIGTERM*"
#: ../Doc/library/asyncio-eventloop.rst:1590
#: ../Doc/library/asyncio-eventloop.rst:1598
msgid "(This ``signals`` example only works on Unix.)"
msgstr "(Cet exemple ne fonctionne que sur Unix.)"
#: ../Doc/library/asyncio-eventloop.rst:1592
#: ../Doc/library/asyncio-eventloop.rst:1600
msgid ""
"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using "
"the :meth:`loop.add_signal_handler` method::"

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -110,55 +110,57 @@ msgstr ""
#: ../Doc/library/compileall.rst:88
msgid ""
"Control how the generated pycs will be invalidated at runtime. The default "
"setting, ``timestamp``, means that ``.pyc`` files with the source timestamp "
"and size embedded will be generated. The ``checked-hash`` and ``unchecked-"
"hash`` values cause hash-based pycs to be generated. Hash-based pycs embed a "
"hash of the source file contents rather than a timestamp. See :ref:`pyc-"
"Control how the generated byte-code files are invalidated at runtime. The "
"``timestamp`` value, means that ``.pyc`` files with the source timestamp and "
"size embedded will be generated. The ``checked-hash`` and ``unchecked-hash`` "
"values cause hash-based pycs to be generated. Hash-based pycs embed a hash "
"of the source file contents rather than a timestamp. See :ref:`pyc-"
"invalidation` for more information on how Python validates bytecode cache "
"files at runtime."
msgstr ""
#: ../Doc/library/compileall.rst:96
msgid "Added the ``-i``, ``-b`` and ``-h`` options."
"files at runtime. The default is ``timestamp`` if the :envvar:"
"`SOURCE_DATE_EPOCH` environment variable is not set, and ``checked-hash`` if "
"the ``SOURCE_DATE_EPOCH`` environment variable is set."
msgstr ""
#: ../Doc/library/compileall.rst:99
msgid "Added the ``-i``, ``-b`` and ``-h`` options."
msgstr ""
#: ../Doc/library/compileall.rst:102
msgid ""
"Added the ``-j``, ``-r``, and ``-qq`` options. ``-q`` option was changed "
"to a multilevel value. ``-b`` will always produce a byte-code file ending "
"in ``.pyc``, never ``.pyo``."
msgstr ""
#: ../Doc/library/compileall.rst:104
#: ../Doc/library/compileall.rst:107
msgid "Added the ``--invalidation-mode`` parameter."
msgstr ""
#: ../Doc/library/compileall.rst:108
#: ../Doc/library/compileall.rst:111
msgid ""
"There is no command-line option to control the optimization level used by "
"the :func:`compile` function, because the Python interpreter itself already "
"provides the option: :program:`python -O -m compileall`."
msgstr ""
#: ../Doc/library/compileall.rst:113
#: ../Doc/library/compileall.rst:116
msgid "Public functions"
msgstr ""
#: ../Doc/library/compileall.rst:117
#: ../Doc/library/compileall.rst:120
msgid ""
"Recursively descend the directory tree named by *dir*, compiling all :file:`."
"py` files along the way. Return a true value if all the files compiled "
"successfully, and a false value otherwise."
msgstr ""
#: ../Doc/library/compileall.rst:121
#: ../Doc/library/compileall.rst:124
msgid ""
"The *maxlevels* parameter is used to limit the depth of the recursion; it "
"defaults to ``10``."
msgstr ""
#: ../Doc/library/compileall.rst:124
#: ../Doc/library/compileall.rst:127
msgid ""
"If *ddir* is given, it is prepended to the path to each file being compiled "
"for use in compilation time tracebacks, and is also compiled in to the byte-"
@ -167,27 +169,27 @@ msgid ""
"executed."
msgstr ""
#: ../Doc/library/compileall.rst:130
#: ../Doc/library/compileall.rst:133
msgid ""
"If *force* is true, modules are re-compiled even if the timestamps are up to "
"date."
msgstr ""
#: ../Doc/library/compileall.rst:133
#: ../Doc/library/compileall.rst:136
msgid ""
"If *rx* is given, its search method is called on the complete path to each "
"file considered for compilation, and if it returns a true value, the file is "
"skipped."
msgstr ""
#: ../Doc/library/compileall.rst:137 ../Doc/library/compileall.rst:194
#: ../Doc/library/compileall.rst:140 ../Doc/library/compileall.rst:197
msgid ""
"If *quiet* is ``False`` or ``0`` (the default), the filenames and other "
"information are printed to standard out. Set to ``1``, only errors are "
"printed. Set to ``2``, all output is suppressed."
msgstr ""
#: ../Doc/library/compileall.rst:141 ../Doc/library/compileall.rst:198
#: ../Doc/library/compileall.rst:144 ../Doc/library/compileall.rst:201
msgid ""
"If *legacy* is true, byte-code files are written to their legacy locations "
"and names, which may overwrite byte-code files created by another version of "
@ -196,13 +198,13 @@ msgid ""
"coexist."
msgstr ""
#: ../Doc/library/compileall.rst:147 ../Doc/library/compileall.rst:204
#: ../Doc/library/compileall.rst:150 ../Doc/library/compileall.rst:207
msgid ""
"*optimize* specifies the optimization level for the compiler. It is passed "
"to the built-in :func:`compile` function."
msgstr ""
#: ../Doc/library/compileall.rst:150
#: ../Doc/library/compileall.rst:153
msgid ""
"The argument *workers* specifies how many workers are used to compile files "
"in parallel. The default is to not use multiple workers. If the platform "
@ -211,49 +213,49 @@ msgid ""
"a :exc:`ValueError` will be raised."
msgstr ""
#: ../Doc/library/compileall.rst:156 ../Doc/library/compileall.rst:207
#: ../Doc/library/compileall.rst:159 ../Doc/library/compileall.rst:210
msgid ""
"*invalidation_mode* should be a member of the :class:`py_compile."
"PycInvalidationMode` enum and controls how the generated pycs are "
"invalidated at runtime."
msgstr ""
#: ../Doc/library/compileall.rst:160 ../Doc/library/compileall.rst:233
#: ../Doc/library/compileall.rst:163 ../Doc/library/compileall.rst:236
msgid "Added the *legacy* and *optimize* parameter."
msgstr ""
#: ../Doc/library/compileall.rst:163
#: ../Doc/library/compileall.rst:166
msgid "Added the *workers* parameter."
msgstr ""
#: ../Doc/library/compileall.rst:166 ../Doc/library/compileall.rst:213
#: ../Doc/library/compileall.rst:236
msgid "*quiet* parameter was changed to a multilevel value."
msgstr ""
#: ../Doc/library/compileall.rst:169 ../Doc/library/compileall.rst:216
#: ../Doc/library/compileall.rst:239
msgid "*quiet* parameter was changed to a multilevel value."
msgstr ""
#: ../Doc/library/compileall.rst:172 ../Doc/library/compileall.rst:219
#: ../Doc/library/compileall.rst:242
msgid ""
"The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no "
"matter what the value of *optimize* is."
msgstr ""
#: ../Doc/library/compileall.rst:173
#: ../Doc/library/compileall.rst:176
msgid "Accepts a :term:`path-like object`."
msgstr "Accepte un :term:`path-like object`."
#: ../Doc/library/compileall.rst:176 ../Doc/library/compileall.rst:220
#: ../Doc/library/compileall.rst:243
#: ../Doc/library/compileall.rst:179 ../Doc/library/compileall.rst:223
#: ../Doc/library/compileall.rst:246
msgid "The *invalidation_mode* parameter was added."
msgstr ""
#: ../Doc/library/compileall.rst:181
#: ../Doc/library/compileall.rst:184
msgid ""
"Compile the file with path *fullname*. Return a true value if the file "
"compiled successfully, and a false value otherwise."
msgstr ""
#: ../Doc/library/compileall.rst:184
#: ../Doc/library/compileall.rst:187
msgid ""
"If *ddir* is given, it is prepended to the path to the file being compiled "
"for use in compilation time tracebacks, and is also compiled in to the byte-"
@ -262,21 +264,21 @@ msgid ""
"executed."
msgstr ""
#: ../Doc/library/compileall.rst:190
#: ../Doc/library/compileall.rst:193
msgid ""
"If *rx* is given, its search method is passed the full path name to the file "
"being compiled, and if it returns a true value, the file is not compiled and "
"``True`` is returned."
msgstr ""
#: ../Doc/library/compileall.rst:225
#: ../Doc/library/compileall.rst:228
msgid ""
"Byte-compile all the :file:`.py` files found along ``sys.path``. Return a "
"true value if all the files compiled successfully, and a false value "
"otherwise."
msgstr ""
#: ../Doc/library/compileall.rst:228
#: ../Doc/library/compileall.rst:231
msgid ""
"If *skip_curdir* is true (the default), the current directory is not "
"included in the search. All other parameters are passed to the :func:"
@ -284,16 +286,16 @@ msgid ""
"``maxlevels`` defaults to ``0``."
msgstr ""
#: ../Doc/library/compileall.rst:246
#: ../Doc/library/compileall.rst:249
msgid ""
"To force a recompile of all the :file:`.py` files in the :file:`Lib/` "
"subdirectory and all its subdirectories::"
msgstr ""
#: ../Doc/library/compileall.rst:263
#: ../Doc/library/compileall.rst:266
msgid "Module :mod:`py_compile`"
msgstr ""
#: ../Doc/library/compileall.rst:264
#: ../Doc/library/compileall.rst:267
msgid "Byte-compile a single source file."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-12 18:59+0200\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -156,7 +156,7 @@ msgid ""
"worker thread; *initargs* is a tuple of arguments passed to the "
"initializer. Should *initializer* raise an exception, all currently pending "
"jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`, as "
"well any attempt to submit more jobs to the pool."
"well as any attempt to submit more jobs to the pool."
msgstr ""
#: ../Doc/library/concurrent.futures.rst:146
@ -170,9 +170,9 @@ msgstr ""
#: ../Doc/library/concurrent.futures.rst:154
msgid ""
"The *thread_name_prefix* argument was added to allow users to control the "
"threading.Thread names for worker threads created by the pool for easier "
"debugging."
"The *thread_name_prefix* argument was added to allow users to control the :"
"class:`threading.Thread` names for worker threads created by the pool for "
"easier debugging."
msgstr ""
#: ../Doc/library/concurrent.futures.rst:159

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-12 18:59+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-07-04 11:33+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -16,7 +16,7 @@ msgstr ""
#: ../Doc/library/contextlib.rst:2
msgid ""
":mod:`contextlib` --- Utilities for :keyword:`with`\\ -statement contexts"
":mod:`!contextlib` --- Utilities for :keyword:`!with`\\ -statement contexts"
msgstr ""
#: ../Doc/library/contextlib.rst:7
@ -81,7 +81,7 @@ msgstr ""
msgid ""
"The function being decorated must return a :term:`generator`-iterator when "
"called. This iterator must yield exactly one value, which will be bound to "
"the targets in the :keyword:`with` statement's :keyword:`as` clause, if any."
"the targets in the :keyword:`with` statement's :keyword:`!as` clause, if any."
msgstr ""
#: ../Doc/library/contextlib.rst:77
@ -95,9 +95,9 @@ msgid ""
"place. If an exception is trapped merely in order to log it or to perform "
"some action (rather than to suppress it entirely), the generator must "
"reraise that exception. Otherwise the generator context manager will "
"indicate to the :keyword:`with` statement that the exception has been "
"indicate to the :keyword:`!with` statement that the exception has been "
"handled, and execution will resume with the statement immediately following "
"the :keyword:`with` statement."
"the :keyword:`!with` statement."
msgstr ""
#: ../Doc/library/contextlib.rst:89
@ -280,7 +280,7 @@ msgid ""
"As the decorated function must be able to be called multiple times, the "
"underlying context manager must support use in multiple :keyword:`with` "
"statements. If this is not the case, then the original construct with the "
"explicit :keyword:`with` statement inside the function should be used."
"explicit :keyword:`!with` statement inside the function should be used."
msgstr ""
#: ../Doc/library/contextlib.rst:356
@ -660,7 +660,7 @@ msgstr ""
msgid ""
"More sophisticated context managers may be \"reentrant\". These context "
"managers can not only be used in multiple :keyword:`with` statements, but "
"may also be used *inside* a :keyword:`with` statement that is already using "
"may also be used *inside* a :keyword:`!with` statement that is already using "
"the same context manager."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -104,7 +104,7 @@ msgid ""
"from :func:`mksalt`, one of the ``crypt.METHOD_*`` values (though not all "
"may be available on all platforms), or a full encrypted password including "
"salt, as returned by this function. If *salt* is not provided, the "
"strongest method will be used (as returned by :func:`methods`."
"strongest method will be used (as returned by :func:`methods`)."
msgstr ""
#: ../Doc/library/crypt.rst:96

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -176,7 +176,7 @@ msgid ""
"Return ``True`` if the message's payload is a list of sub-\\ :class:"
"`Message` objects, otherwise return ``False``. When :meth:`is_multipart` "
"returns ``False``, the payload should be a string object (which might be a "
"CTE encoded binary payload. (Note that :meth:`is_multipart` returning "
"CTE encoded binary payload). (Note that :meth:`is_multipart` returning "
"``True`` does not necessarily mean that \"msg.get_content_maintype() == "
"'multipart'\" will return the ``True``. For example, ``is_multipart`` will "
"return ``True`` when the :class:`Message` is of type ``message/rfc822``.)"

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -129,7 +129,7 @@ msgstr ""
#: ../Doc/library/email.message.rst:95
msgid ""
"Equivalent to `as_string(policy=self.policy.clone(utf8=True)`. Allows "
"Equivalent to ``as_string(policy=self.policy.clone(utf8=True))``. Allows "
"``str(msg)`` to produce a string containing the serialized message in a "
"readable format."
msgstr ""
@ -445,7 +445,7 @@ msgstr ""
msgid ""
"Note that existing parameter values of headers may be accessed through the :"
"attr:`~email.headerregistry.BaseHeader.params` attribute of the header value "
"(for example, ``msg['Content-Type'].params['charset']``."
"(for example, ``msg['Content-Type'].params['charset']``)."
msgstr ""
#: ../Doc/library/email.message.rst:384
@ -735,7 +735,7 @@ msgid ""
"specified, use the ``content_manager`` specified by the current :mod:`~email."
"policy`. If the added part has no :mailheader:`Content-Disposition` header, "
"add one with the value ``attachment``. This method can be used both for "
"explicit attachments (:mailheader:`Content-Disposition: attachment` and "
"explicit attachments (:mailheader:`Content-Disposition: attachment`) and "
"``inline`` attachments (:mailheader:`Content-Disposition: inline`), by "
"passing appropriate options to the ``content_manager``."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -213,7 +213,7 @@ msgid ""
"The header block is terminated either by the end of the data or by a blank "
"line. Following the header block is the body of the message (which may "
"contain MIME-encoded subparts, including subparts with a :mailheader:"
"`Content-Transfer-Encoding` of ``8bit``."
"`Content-Transfer-Encoding` of ``8bit``)."
msgstr ""
#: ../Doc/library/email.parser.rst:169

View file

@ -1,245 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2018, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/email.util.rst:2
msgid ":mod:`email.utils`: Miscellaneous utilities"
msgstr ""
#: ../Doc/library/email.util.rst:7
msgid "**Source code:** :source:`Lib/email/utils.py`"
msgstr ""
#: ../Doc/library/email.util.rst:11
msgid ""
"There are a couple of useful utilities provided in the :mod:`email.utils` "
"module:"
msgstr ""
#: ../Doc/library/email.util.rst:16
msgid ""
"Return local time as an aware datetime object. If called without arguments, "
"return current time. Otherwise *dt* argument should be a :class:`~datetime."
"datetime` instance, and it is converted to the local time zone according to "
"the system time zone database. If *dt* is naive (that is, ``dt.tzinfo`` is "
"``None``), it is assumed to be in local time. In this case, a positive or "
"zero value for *isdst* causes ``localtime`` to presume initially that summer "
"time (for example, Daylight Saving Time) is or is not (respectively) in "
"effect for the specified time. A negative value for *isdst* causes the "
"``localtime`` to attempt to divine whether summer time is in effect for the "
"specified time."
msgstr ""
#: ../Doc/library/email.util.rst:32
msgid ""
"Returns a string suitable for an :rfc:`2822`\\ -compliant :mailheader:"
"`Message-ID` header. Optional *idstring* if given, is a string used to "
"strengthen the uniqueness of the message id. Optional *domain* if given "
"provides the portion of the msgid after the '@'. The default is the local "
"hostname. It is not normally necessary to override this default, but may be "
"useful certain cases, such as a constructing distributed system that uses a "
"consistent domain name across multiple hosts."
msgstr ""
#: ../Doc/library/email.util.rst:40
msgid "Added the *domain* keyword."
msgstr ""
#: ../Doc/library/email.util.rst:44
msgid ""
"The remaining functions are part of the legacy (``Compat32``) email API. "
"There is no need to directly use these with the new API, since the parsing "
"and formatting they provide is done automatically by the header parsing "
"machinery of the new API."
msgstr ""
#: ../Doc/library/email.util.rst:52
msgid ""
"Return a new string with backslashes in *str* replaced by two backslashes, "
"and double quotes replaced by backslash-double quote."
msgstr ""
#: ../Doc/library/email.util.rst:58
msgid ""
"Return a new string which is an *unquoted* version of *str*. If *str* ends "
"and begins with double quotes, they are stripped off. Likewise if *str* "
"ends and begins with angle brackets, they are stripped off."
msgstr ""
#: ../Doc/library/email.util.rst:65
msgid ""
"Parse address -- which should be the value of some address-containing field "
"such as :mailheader:`To` or :mailheader:`Cc` -- into its constituent "
"*realname* and *email address* parts. Returns a tuple of that information, "
"unless the parse fails, in which case a 2-tuple of ``('', '')`` is returned."
msgstr ""
#: ../Doc/library/email.util.rst:73
msgid ""
"The inverse of :meth:`parseaddr`, this takes a 2-tuple of the form "
"``(realname, email_address)`` and returns the string value suitable for a :"
"mailheader:`To` or :mailheader:`Cc` header. If the first element of *pair* "
"is false, then the second element is returned unmodified."
msgstr ""
#: ../Doc/library/email.util.rst:78
msgid ""
"Optional *charset* is the character set that will be used in the :rfc:`2047` "
"encoding of the ``realname`` if the ``realname`` contains non-ASCII "
"characters. Can be an instance of :class:`str` or a :class:`~email.charset."
"Charset`. Defaults to ``utf-8``."
msgstr ""
#: ../Doc/library/email.util.rst:83
msgid "Added the *charset* option."
msgstr ""
#: ../Doc/library/email.util.rst:89
msgid ""
"This method returns a list of 2-tuples of the form returned by "
"``parseaddr()``. *fieldvalues* is a sequence of header field values as might "
"be returned by :meth:`Message.get_all <email.message.Message.get_all>`. "
"Here's a simple example that gets all the recipients of a message::"
msgstr ""
#: ../Doc/library/email.util.rst:105
msgid ""
"Attempts to parse a date according to the rules in :rfc:`2822`. however, "
"some mailers don't follow that format as specified, so :func:`parsedate` "
"tries to guess correctly in such cases. *date* is a string containing an :"
"rfc:`2822` date, such as ``\"Mon, 20 Nov 1995 19:12:08 -0500\"``. If it "
"succeeds in parsing the date, :func:`parsedate` returns a 9-tuple that can "
"be passed directly to :func:`time.mktime`; otherwise ``None`` will be "
"returned. Note that indexes 6, 7, and 8 of the result tuple are not usable."
msgstr ""
#: ../Doc/library/email.util.rst:116
msgid ""
"Performs the same function as :func:`parsedate`, but returns either ``None`` "
"or a 10-tuple; the first 9 elements make up a tuple that can be passed "
"directly to :func:`time.mktime`, and the tenth is the offset of the date's "
"timezone from UTC (which is the official term for Greenwich Mean Time) "
"[#]_. If the input string has no timezone, the last element of the tuple "
"returned is ``None``. Note that indexes 6, 7, and 8 of the result tuple are "
"not usable."
msgstr ""
#: ../Doc/library/email.util.rst:126
msgid ""
"The inverse of :func:`format_datetime`. Performs the same function as :func:"
"`parsedate`, but on success returns a :mod:`~datetime.datetime`. If the "
"input date has a timezone of ``-0000``, the ``datetime`` will be a naive "
"``datetime``, and if the date is conforming to the RFCs it will represent a "
"time in UTC but with no indication of the actual source timezone of the "
"message the date comes from. If the input date has any other valid timezone "
"offset, the ``datetime`` will be an aware ``datetime`` with the "
"corresponding a :class:`~datetime.timezone` :class:`~datetime.tzinfo`."
msgstr ""
#: ../Doc/library/email.util.rst:140
msgid ""
"Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp "
"(seconds since the Epoch). If the timezone item in the tuple is ``None``, "
"assume local time."
msgstr ""
#: ../Doc/library/email.util.rst:147
msgid "Returns a date string as per :rfc:`2822`, e.g.::"
msgstr ""
#: ../Doc/library/email.util.rst:151
msgid ""
"Optional *timeval* if given is a floating point time value as accepted by :"
"func:`time.gmtime` and :func:`time.localtime`, otherwise the current time is "
"used."
msgstr ""
#: ../Doc/library/email.util.rst:155
msgid ""
"Optional *localtime* is a flag that when ``True``, interprets *timeval*, and "
"returns a date relative to the local timezone instead of UTC, properly "
"taking daylight savings time into account. The default is ``False`` meaning "
"UTC is used."
msgstr ""
#: ../Doc/library/email.util.rst:160
msgid ""
"Optional *usegmt* is a flag that when ``True``, outputs a date string with "
"the timezone as an ascii string ``GMT``, rather than a numeric ``-0000``. "
"This is needed for some protocols (such as HTTP). This only applies when "
"*localtime* is ``False``. The default is ``False``."
msgstr ""
#: ../Doc/library/email.util.rst:168
msgid ""
"Like ``formatdate``, but the input is a :mod:`datetime` instance. If it is "
"a naive datetime, it is assumed to be \"UTC with no information about the "
"source timezone\", and the conventional ``-0000`` is used for the timezone. "
"If it is an aware ``datetime``, then the numeric timezone offset is used. If "
"it is an aware timezone with offset zero, then *usegmt* may be set to "
"``True``, in which case the string ``GMT`` is used instead of the numeric "
"timezone offset. This provides a way to generate standards conformant HTTP "
"date headers."
msgstr ""
#: ../Doc/library/email.util.rst:182
msgid "Decode the string *s* according to :rfc:`2231`."
msgstr ""
#: ../Doc/library/email.util.rst:187
msgid ""
"Encode the string *s* according to :rfc:`2231`. Optional *charset* and "
"*language*, if given is the character set name and language name to use. If "
"neither is given, *s* is returned as-is. If *charset* is given but "
"*language* is not, the string is encoded using the empty string for "
"*language*."
msgstr ""
#: ../Doc/library/email.util.rst:195
msgid ""
"When a header parameter is encoded in :rfc:`2231` format, :meth:`Message."
"get_param <email.message.Message.get_param>` may return a 3-tuple containing "
"the character set, language, and value. :func:`collapse_rfc2231_value` "
"turns this into a unicode string. Optional *errors* is passed to the "
"*errors* argument of :class:`str`'s :func:`~str.encode` method; it defaults "
"to ``'replace'``. Optional *fallback_charset* specifies the character set "
"to use if the one in the :rfc:`2231` header is not known by Python; it "
"defaults to ``'us-ascii'``."
msgstr ""
#: ../Doc/library/email.util.rst:204
msgid ""
"For convenience, if the *value* passed to :func:`collapse_rfc2231_value` is "
"not a tuple, it should be a string and it is returned unquoted."
msgstr ""
#: ../Doc/library/email.util.rst:210
msgid ""
"Decode parameters list according to :rfc:`2231`. *params* is a sequence of "
"2-tuples containing elements of the form ``(content-type, string-value)``."
msgstr ""
#: ../Doc/library/email.util.rst:215
msgid "Footnotes"
msgstr ""
#: ../Doc/library/email.util.rst:216
msgid ""
"Note that the sign of the timezone offset is the opposite of the sign of the "
"``time.timezone`` variable for the same timezone; the latter variable "
"follows the POSIX standard while this module follows :rfc:`2822`."
msgstr ""

View file

@ -1,17 +1,15 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2018, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# For licence information, see README file.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"

View file

@ -5,8 +5,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-08-03 17:52+0200\n"
"PO-Revision-Date: 2018-09-28 13:07+0200\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: 2018-12-17 21:45+0100\n"
"Last-Translator: \n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
@ -113,7 +113,7 @@ msgid ""
"`__cause__` also implicitly sets the :attr:`__suppress_context__` attribute "
"to ``True``, so that using ``raise new_exc from None`` effectively replaces "
"the old exception with the new one for display purposes (e.g. converting :"
"exc:`KeyError` to :exc:`AttributeError`, while leaving the old exception "
"exc:`KeyError` to :exc:`AttributeError`), while leaving the old exception "
"available in :attr:`__context__` for introspection when debugging."
msgstr ""
"L'expression suivant :keyword:`from` doit être une exception ou ``None``. "
@ -122,7 +122,7 @@ msgstr ""
"`__suppress_context__` à ``True``, de sorte que l'utilisation de ``raise "
"new_exc from None`` remplace bien l'ancienne exception avec la nouvelle à "
"des fins d'affichage (e.g., convertir :exc:`KeyError` en :exc:"
"`AttributeError`, tout en laissant l'ancienne exception disponible dans :"
"`AttributeError`), tout en laissant l'ancienne exception disponible dans :"
"attr:`__context__` pour introspection lors du débogage."
#: ../Doc/library/exceptions.rst:59

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-23 09:03+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -99,7 +99,7 @@ msgstr ""
msgid ""
"The :class:`FileInput` instance can be used as a context manager in the :"
"keyword:`with` statement. In this example, *input* is closed after the :"
"keyword:`with` statement is exited, even if an exception occurs::"
"keyword:`!with` statement is exited, even if an exception occurs::"
msgstr ""
#: ../Doc/library/fileinput.rst:72 ../Doc/library/fileinput.rst:163
@ -204,7 +204,7 @@ msgstr ""
msgid ""
"A :class:`FileInput` instance can be used as a context manager in the :"
"keyword:`with` statement. In this example, *input* is closed after the :"
"keyword:`with` statement is exited, even if an exception occurs::"
"keyword:`!with` statement is exited, even if an exception occurs::"
msgstr ""
#: ../Doc/library/fileinput.rst:166

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-10-13 17:36+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -2954,13 +2954,14 @@ msgstr ""
"contrairement à :func:`importlib.import_module`."
#: ../Doc/library/functions.rst:1655
#, fuzzy
msgid ""
"This function is invoked by the :keyword:`import` statement. It can be "
"replaced (by importing the :mod:`builtins` module and assigning to "
"``builtins.__import__``) in order to change semantics of the :keyword:"
"`import` statement, but doing so is **strongly** discouraged as it is "
"usually simpler to use import hooks (see :pep:`302`) to attain the same "
"goals and does not cause issues with code which assumes the default import "
"``builtins.__import__``) in order to change semantics of the :keyword:`!"
"import` statement, but doing so is **strongly** discouraged as it is usually "
"simpler to use import hooks (see :pep:`302`) to attain the same goals and "
"does not cause issues with code which assumes the default import "
"implementation is in use. Direct use of :func:`__import__` is also "
"discouraged in favor of :func:`importlib.import_module`."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: 2018-09-29 15:53+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -71,7 +71,7 @@ msgstr ""
"un appelable qui prend un argument et retourne une autre valeur qui sera "
"utilisée comme clé de tri."
#: ../Doc/library/functools.rst:37 ../Doc/library/functools.rst:226
#: ../Doc/library/functools.rst:37 ../Doc/library/functools.rst:231
msgid "Example::"
msgstr "Exemple ::"
@ -181,10 +181,18 @@ msgstr ""
"limite sur les processus longs comme les serveurs web."
#: ../Doc/library/functools.rst:88
msgid ""
"In general, the LRU cache should only be used when you want to reuse "
"previously computed values. Accordingly, it doesn't make sense to cache "
"functions with side-effects, functions that need to create distinct mutable "
"objects on each call, or impure functions such as time() or random()."
msgstr ""
#: ../Doc/library/functools.rst:93
msgid "Example of an LRU cache for static web content::"
msgstr "Exemple d'un cache LRU pour du contenu web statique ::"
#: ../Doc/library/functools.rst:107
#: ../Doc/library/functools.rst:112
msgid ""
"Example of efficiently computing `Fibonacci numbers <https://en.wikipedia."
"org/wiki/Fibonacci_number>`_ using a cache to implement a `dynamic "
@ -195,11 +203,11 @@ msgstr ""
"technique de `programmation dynamique <https://fr.wikipedia.org/wiki/"
"Programmation_dynamique>`_ ::"
#: ../Doc/library/functools.rst:127
#: ../Doc/library/functools.rst:132
msgid "Added the *typed* option."
msgstr "L'option *typed* a été ajoutée."
#: ../Doc/library/functools.rst:132
#: ../Doc/library/functools.rst:137
msgid ""
"Given a class defining one or more rich comparison ordering methods, this "
"class decorator supplies the rest. This simplifies the effort involved in "
@ -209,7 +217,7 @@ msgstr ""
"riches, ce décorateur de classe fournit le reste. Ceci simplifie l'effort à "
"fournir dans la spécification de toutes les opérations de comparaison riche :"
#: ../Doc/library/functools.rst:136
#: ../Doc/library/functools.rst:141
msgid ""
"The class must define one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, "
"or :meth:`__ge__`. In addition, the class should supply an :meth:`__eq__` "
@ -219,11 +227,11 @@ msgstr ""
"`__le__`, :meth:`__gt__`, or :meth:`__ge__`. De plus, la classe doit fournir "
"une méthode :meth:`__eq__`."
#: ../Doc/library/functools.rst:140
#: ../Doc/library/functools.rst:145
msgid "For example::"
msgstr "Par exemple ::"
#: ../Doc/library/functools.rst:160
#: ../Doc/library/functools.rst:165
msgid ""
"While this decorator makes it easy to create well behaved totally ordered "
"types, it *does* come at the cost of slower execution and more complex stack "
@ -238,7 +246,7 @@ msgstr ""
"méthodes de comparaison riches résoudra normalement vos problèmes de "
"rapidité."
#: ../Doc/library/functools.rst:169
#: ../Doc/library/functools.rst:174
msgid ""
"Returning NotImplemented from the underlying comparison function for "
"unrecognised types is now supported."
@ -246,7 +254,7 @@ msgstr ""
"Retourner NotImplemented dans les fonction de comparaison sous-jacentes pour "
"les types non reconnus est maintenant supporté."
#: ../Doc/library/functools.rst:175
#: ../Doc/library/functools.rst:180
#, fuzzy
msgid ""
"Return a new :ref:`partial object<partial-objects>` which when called will "
@ -261,7 +269,7 @@ msgstr ""
"ils sont ajoutés à *args*. Si plus d'arguments nommés sont fournis, ils "
"étendent et surchargent *keywords*. A peu près équivalent à ::"
#: ../Doc/library/functools.rst:192
#: ../Doc/library/functools.rst:197
msgid ""
"The :func:`partial` is used for partial function application which \"freezes"
"\" some portion of a function's arguments and/or keywords resulting in a new "
@ -275,7 +283,7 @@ msgstr ""
"peut être utilisé pour créer un appelable qui se comporte comme la fonction :"
"func:`int` ou l'argument *base* est deux par défaut :"
#: ../Doc/library/functools.rst:207
#: ../Doc/library/functools.rst:212
msgid ""
"Return a new :class:`partialmethod` descriptor which behaves like :class:"
"`partial` except that it is designed to be used as a method definition "
@ -285,7 +293,7 @@ msgstr ""
"comme :class:`partial` sauf qu'il est fait pour être utilisé comme une "
"définition de méthode plutôt que d'être appelé directement."
#: ../Doc/library/functools.rst:211
#: ../Doc/library/functools.rst:216
msgid ""
"*func* must be a :term:`descriptor` or a callable (objects which are both, "
"like normal functions, are handled as descriptors)."
@ -293,7 +301,7 @@ msgstr ""
"*func* doit être un :term:`descriptor` ou un appelable (les objets qui sont "
"les deux, comme les fonction normales, sont gérés comme des descripteurs)."
#: ../Doc/library/functools.rst:214
#: ../Doc/library/functools.rst:219
#, fuzzy
msgid ""
"When *func* is a descriptor (such as a normal Python function, :func:"
@ -308,7 +316,7 @@ msgstr ""
"au descripteur sous-jacent, et un objet :class:`partial` approprié est "
"retourné comme résultat."
#: ../Doc/library/functools.rst:220
#: ../Doc/library/functools.rst:225
msgid ""
"When *func* is a non-descriptor callable, an appropriate bound method is "
"created dynamically. This behaves like a normal Python function when used as "
@ -322,7 +330,7 @@ msgstr ""
"premier argument positionnel, avant les *args* et *keywords* fournis au "
"constructeur :class:`partialmethod`."
#: ../Doc/library/functools.rst:251
#: ../Doc/library/functools.rst:256
msgid ""
"Apply *function* of two arguments cumulatively to the items of *sequence*, "
"from left to right, so as to reduce the sequence to a single value. For "
@ -344,11 +352,11 @@ msgstr ""
"la séquence est vide. Si *initializer* n'est pas renseigné et que "
"*sequence* ne contient qu'un élément, le premier élément est retourné."
#: ../Doc/library/functools.rst:260
#: ../Doc/library/functools.rst:265
msgid "Roughly equivalent to::"
msgstr "Sensiblement équivalent à : ::"
#: ../Doc/library/functools.rst:275
#: ../Doc/library/functools.rst:280
msgid ""
"Transform a function into a :term:`single-dispatch <single dispatch>` :term:"
"`generic function`."
@ -356,7 +364,7 @@ msgstr ""
"Transforme une fonction en une :term:`fonction générique <generic "
"function>` :term:`single-dispatch <single dispatch>`."
#: ../Doc/library/functools.rst:278
#: ../Doc/library/functools.rst:283
msgid ""
"To define a generic function, decorate it with the ``@singledispatch`` "
"decorator. Note that the dispatch happens on the type of the first argument, "
@ -366,7 +374,7 @@ msgstr ""
"``@singledispatch``. Noter que la distribution est effectuée sur le type du "
"premier argument, donc la fonction doit être créée en conséquence ::"
#: ../Doc/library/functools.rst:289
#: ../Doc/library/functools.rst:294
msgid ""
"To add overloaded implementations to the function, use the :func:`register` "
"attribute of the generic function. It is a decorator. For functions "
@ -378,7 +386,7 @@ msgstr ""
"Pour les fonctions annotées avec des types, le décorateur infère le type du "
"premier argument automatiquement : ::"
#: ../Doc/library/functools.rst:307
#: ../Doc/library/functools.rst:312
msgid ""
"For code which doesn't use type annotations, the appropriate type argument "
"can be passed explicitly to the decorator itself::"
@ -386,7 +394,7 @@ msgstr ""
"Pour le code qui nutilise pas les indications de type, le type souhaité "
"peut être passé explicitement en argument au décorateur : ::"
#: ../Doc/library/functools.rst:318
#: ../Doc/library/functools.rst:323
msgid ""
"To enable registering lambdas and pre-existing functions, the :func:"
"`register` attribute can be used in a functional form::"
@ -394,7 +402,7 @@ msgstr ""
"Pour permettre l'enregistrement de lambdas et de fonctions pré-existantes, "
"l'attribut :func:`register` peut être utilisé sous forme fonctionnelle ::"
#: ../Doc/library/functools.rst:326
#: ../Doc/library/functools.rst:331
msgid ""
"The :func:`register` attribute returns the undecorated function which "
"enables decorator stacking, pickling, as well as creating unit tests for "
@ -404,7 +412,7 @@ msgstr ""
"d'empiler les décorateurs, la sérialisation, et la création de tests "
"unitaires pour chaque variante indépendamment ::"
#: ../Doc/library/functools.rst:340
#: ../Doc/library/functools.rst:345
msgid ""
"When called, the generic function dispatches on the type of the first "
"argument::"
@ -412,7 +420,7 @@ msgstr ""
"Quand elle est appelée, la fonction générique distribue sur le type du "
"premier argument ::"
#: ../Doc/library/functools.rst:360
#: ../Doc/library/functools.rst:365
msgid ""
"Where there is no registered implementation for a specific type, its method "
"resolution order is used to find a more generic implementation. The original "
@ -425,7 +433,7 @@ msgstr ""
"est enregistrée pour le type d'``object``, et elle sera utilisée si aucune "
"implémentation n'est trouvée."
#: ../Doc/library/functools.rst:366
#: ../Doc/library/functools.rst:371
msgid ""
"To check which implementation will the generic function choose for a given "
"type, use the ``dispatch()`` attribute::"
@ -433,7 +441,7 @@ msgstr ""
"Pour vérifier quelle implémentation la fonction générique choisira pour un "
"type donné, utiliser l'attribut ``dispatch()`` ::"
#: ../Doc/library/functools.rst:374
#: ../Doc/library/functools.rst:379
msgid ""
"To access all registered implementations, use the read-only ``registry`` "
"attribute::"
@ -441,12 +449,12 @@ msgstr ""
"Pour accéder à toutes les implémentations enregistrées, utiliser l'attribut "
"en lecture seule ``registry`` ::"
#: ../Doc/library/functools.rst:388
#: ../Doc/library/functools.rst:393
msgid "The :func:`register` attribute supports using type annotations."
msgstr ""
"Lattribut :func:`register` gère lutilisation des indications de type."
#: ../Doc/library/functools.rst:394
#: ../Doc/library/functools.rst:399
msgid ""
"Update a *wrapper* function to look like the *wrapped* function. The "
"optional arguments are tuples to specify which attributes of the original "
@ -471,7 +479,7 @@ msgstr ""
"met à jour le ``__dict__`` de la fonction englobante, c'est-à-dire le "
"dictionnaire de l'instance)."
#: ../Doc/library/functools.rst:404
#: ../Doc/library/functools.rst:409
msgid ""
"To allow access to the original function for introspection and other "
"purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), "
@ -483,7 +491,7 @@ msgstr ""
"func:`lru_cache`), cette fonction ajoute automatiquement un attribut "
"``__wrapped__`` qui référence la fonction englobée."
#: ../Doc/library/functools.rst:409
#: ../Doc/library/functools.rst:414
msgid ""
"The main intended use for this function is in :term:`decorator` functions "
"which wrap the decorated function and return the wrapper. If the wrapper "
@ -497,7 +505,7 @@ msgstr ""
"décorateur, au lieu de la définition originale, métadonnées souvent bien "
"moins utiles."
#: ../Doc/library/functools.rst:415
#: ../Doc/library/functools.rst:420
msgid ""
":func:`update_wrapper` may be used with callables other than functions. Any "
"attributes named in *assigned* or *updated* that are missing from the object "
@ -511,20 +519,20 @@ msgstr ""
"dans la fonction englobante). :exc:`AttributeError` est toujours levée si le "
"fonction englobante elle même a des attributs non existants dans *updated*."
#: ../Doc/library/functools.rst:421
#: ../Doc/library/functools.rst:426
msgid "Automatic addition of the ``__wrapped__`` attribute."
msgstr "Ajout automatique de l'attribut ``__wrapped__``."
#: ../Doc/library/functools.rst:424
#: ../Doc/library/functools.rst:429
msgid "Copying of the ``__annotations__`` attribute by default."
msgstr "Copie de l'attribut ``__annotations__`` par défaut."
#: ../Doc/library/functools.rst:427
#: ../Doc/library/functools.rst:432
msgid "Missing attributes no longer trigger an :exc:`AttributeError`."
msgstr ""
"Les attributs manquants ne lèvent plus d'exception :exc:`AttributeError`."
#: ../Doc/library/functools.rst:430
#: ../Doc/library/functools.rst:435
msgid ""
"The ``__wrapped__`` attribute now always refers to the wrapped function, "
"even if that function defined a ``__wrapped__`` attribute. (see :issue:"
@ -533,7 +541,7 @@ msgstr ""
"L'attribut ``__wrapped__`` renvoie toujours la fonction englobée, même si "
"cette fonction définit un attribut ``__wrapped__``. (voir :issue:`17482`)"
#: ../Doc/library/functools.rst:438
#: ../Doc/library/functools.rst:443
msgid ""
"This is a convenience function for invoking :func:`update_wrapper` as a "
"function decorator when defining a wrapper function. It is equivalent to "
@ -545,7 +553,7 @@ msgstr ""
"C'est équivalent à ``partial(update_wrapper, wrapped=wrapped, "
"assigned=assigned, updated=updated)``. Par exemple ::"
#: ../Doc/library/functools.rst:464
#: ../Doc/library/functools.rst:469
msgid ""
"Without the use of this decorator factory, the name of the example function "
"would have been ``'wrapper'``, and the docstring of the original :func:"
@ -555,11 +563,11 @@ msgstr ""
"d'exemple aurait été ``'wrapper'``, et la chaîne de documentation de la "
"fonction :func:`example` originale aurait été perdue."
#: ../Doc/library/functools.rst:472
#: ../Doc/library/functools.rst:477
msgid ":class:`partial` Objects"
msgstr "Objets :class:`partial`"
#: ../Doc/library/functools.rst:474
#: ../Doc/library/functools.rst:479
msgid ""
":class:`partial` objects are callable objects created by :func:`partial`. "
"They have three read-only attributes:"
@ -567,7 +575,7 @@ msgstr ""
"Les objets :class:`partial` sont des objets appelables créés par :func:"
"`partial`. Ils ont trois attributs en lecture seule :"
#: ../Doc/library/functools.rst:480
#: ../Doc/library/functools.rst:485
msgid ""
"A callable object or function. Calls to the :class:`partial` object will be "
"forwarded to :attr:`func` with new arguments and keywords."
@ -575,7 +583,7 @@ msgstr ""
"Un objet ou une fonction appelable. Les appels à l'objet :class:`partial` "
"seront transmis à :attr:`func` avec les nouveaux arguments et mots-clés."
#: ../Doc/library/functools.rst:486
#: ../Doc/library/functools.rst:491
msgid ""
"The leftmost positional arguments that will be prepended to the positional "
"arguments provided to a :class:`partial` object call."
@ -583,7 +591,7 @@ msgstr ""
"Les arguments positionnels qui seront ajoutés avant les arguments fournis "
"lors de l'appel d'un objet :class:`partial`."
#: ../Doc/library/functools.rst:492
#: ../Doc/library/functools.rst:497
msgid ""
"The keyword arguments that will be supplied when the :class:`partial` object "
"is called."
@ -591,7 +599,7 @@ msgstr ""
"Les arguments nommés qui seront fournis quand l'objet :class:`partial` est "
"appelé."
#: ../Doc/library/functools.rst:495
#: ../Doc/library/functools.rst:500
msgid ""
":class:`partial` objects are like :class:`function` objects in that they are "
"callable, weak referencable, and can have attributes. There are some "

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-15 21:52+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -49,7 +49,7 @@ msgstr ""
msgid ""
"The :class:`IMAP4` class supports the :keyword:`with` statement. When used "
"like this, the IMAP4 ``LOGOUT`` command is issued automatically when the :"
"keyword:`with` statement exits. E.g.::"
"keyword:`!with` statement exits. E.g.::"
msgstr ""
#: ../Doc/library/imaplib.rst:50

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -242,7 +242,7 @@ msgid ""
"If a module imports objects from another module using :keyword:`from` ... :"
"keyword:`import` ..., calling :func:`reload` for the other module does not "
"redefine the objects imported from it --- one way around this is to re-"
"execute the :keyword:`from` statement, another is to use :keyword:`import` "
"execute the :keyword:`!from` statement, another is to use :keyword:`!import` "
"and qualified names (*module*.*name*) instead."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-07-04 11:26+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -16,7 +16,7 @@ msgstr ""
"X-Generator: Poedit 1.8.11\n"
#: ../Doc/library/importlib.rst:2
msgid ":mod:`importlib` --- The implementation of :keyword:`import`"
msgid ":mod:`!importlib` --- The implementation of :keyword:`!import`"
msgstr ""
#: ../Doc/library/importlib.rst:12
@ -32,7 +32,7 @@ msgid ""
"The purpose of the :mod:`importlib` package is two-fold. One is to provide "
"the implementation of the :keyword:`import` statement (and thus, by "
"extension, the :func:`__import__` function) in Python source code. This "
"provides an implementation of :keyword:`import` which is portable to any "
"provides an implementation of :keyword:`!import` which is portable to any "
"Python interpreter. This also provides an implementation which is easier to "
"comprehend than one implemented in a programming language other than Python."
msgstr ""
@ -323,7 +323,7 @@ msgid ""
"If a module imports objects from another module using :keyword:`from` ... :"
"keyword:`import` ..., calling :func:`reload` for the other module does not "
"redefine the objects imported from it --- one way around this is to re-"
"execute the :keyword:`from` statement, another is to use :keyword:`import` "
"execute the :keyword:`!from` statement, another is to use :keyword:`!import` "
"and qualified names (*module.name*) instead."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-07-03 11:13+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -381,7 +381,7 @@ msgstr ""
msgid ""
":class:`IOBase` is also a context manager and therefore supports the :"
"keyword:`with` statement. In this example, *file* is closed after the :"
"keyword:`with` statement's suite is finished---even if an exception occurs::"
"keyword:`!with` statement's suite is finished---even if an exception occurs::"
msgstr ""
#: ../Doc/library/io.rst:257

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -307,19 +307,17 @@ msgstr ""
#: ../Doc/library/locale.rst:150
msgid ""
"The function sets temporarily the ``LC_CTYPE`` locale to the ``LC_NUMERIC`` "
"locale to decode ``decimal_point`` and ``thousands_sep`` byte strings if "
"they are non-ASCII or longer than 1 byte, and the ``LC_NUMERIC`` locale is "
"different than the ``LC_CTYPE`` locale. This temporary change affects other "
"threads."
"locale or the ``LC_MONETARY`` locale if locales are different and numeric or "
"monetary strings are non-ASCII. This temporary change affects other threads."
msgstr ""
#: ../Doc/library/locale.rst:156
#: ../Doc/library/locale.rst:154
msgid ""
"The function now sets temporarily the ``LC_CTYPE`` locale to the "
"``LC_NUMERIC`` locale in some cases."
msgstr ""
#: ../Doc/library/locale.rst:163
#: ../Doc/library/locale.rst:161
msgid ""
"Return some locale-specific information as a string. This function is not "
"available on all systems, and the set of possible options might also vary "
@ -327,103 +325,103 @@ msgid ""
"symbolic constants are available in the locale module."
msgstr ""
#: ../Doc/library/locale.rst:168
#: ../Doc/library/locale.rst:166
msgid ""
"The :func:`nl_langinfo` function accepts one of the following keys. Most "
"descriptions are taken from the corresponding description in the GNU C "
"library."
msgstr ""
#: ../Doc/library/locale.rst:174
#: ../Doc/library/locale.rst:172
msgid ""
"Get a string with the name of the character encoding used in the selected "
"locale."
msgstr ""
#: ../Doc/library/locale.rst:179
#: ../Doc/library/locale.rst:177
msgid ""
"Get a string that can be used as a format string for :func:`time.strftime` "
"to represent date and time in a locale-specific way."
msgstr ""
#: ../Doc/library/locale.rst:184
#: ../Doc/library/locale.rst:182
msgid ""
"Get a string that can be used as a format string for :func:`time.strftime` "
"to represent a date in a locale-specific way."
msgstr ""
#: ../Doc/library/locale.rst:189
#: ../Doc/library/locale.rst:187
msgid ""
"Get a string that can be used as a format string for :func:`time.strftime` "
"to represent a time in a locale-specific way."
msgstr ""
#: ../Doc/library/locale.rst:194
#: ../Doc/library/locale.rst:192
msgid ""
"Get a format string for :func:`time.strftime` to represent time in the am/pm "
"format."
msgstr ""
#: ../Doc/library/locale.rst:199
#: ../Doc/library/locale.rst:197
msgid "Get the name of the n-th day of the week."
msgstr ""
#: ../Doc/library/locale.rst:203
#: ../Doc/library/locale.rst:201
msgid ""
"This follows the US convention of :const:`DAY_1` being Sunday, not the "
"international convention (ISO 8601) that Monday is the first day of the week."
msgstr ""
#: ../Doc/library/locale.rst:209
#: ../Doc/library/locale.rst:207
msgid "Get the abbreviated name of the n-th day of the week."
msgstr ""
#: ../Doc/library/locale.rst:213
#: ../Doc/library/locale.rst:211
msgid "Get the name of the n-th month."
msgstr ""
#: ../Doc/library/locale.rst:217
#: ../Doc/library/locale.rst:215
msgid "Get the abbreviated name of the n-th month."
msgstr ""
#: ../Doc/library/locale.rst:221
#: ../Doc/library/locale.rst:219
msgid "Get the radix character (decimal dot, decimal comma, etc.)."
msgstr ""
#: ../Doc/library/locale.rst:225
#: ../Doc/library/locale.rst:223
msgid "Get the separator character for thousands (groups of three digits)."
msgstr ""
#: ../Doc/library/locale.rst:229
#: ../Doc/library/locale.rst:227
msgid ""
"Get a regular expression that can be used with the regex function to "
"recognize a positive response to a yes/no question."
msgstr ""
#: ../Doc/library/locale.rst:234
#: ../Doc/library/locale.rst:232
msgid ""
"The expression is in the syntax suitable for the :c:func:`regex` function "
"from the C library, which might differ from the syntax used in :mod:`re`."
msgstr ""
#: ../Doc/library/locale.rst:239
#: ../Doc/library/locale.rst:237
msgid ""
"Get a regular expression that can be used with the regex(3) function to "
"recognize a negative response to a yes/no question."
msgstr ""
#: ../Doc/library/locale.rst:244
#: ../Doc/library/locale.rst:242
msgid ""
"Get the currency symbol, preceded by \"-\" if the symbol should appear "
"before the value, \"+\" if the symbol should appear after the value, or \"."
"\" if the symbol should replace the radix character."
msgstr ""
#: ../Doc/library/locale.rst:250
#: ../Doc/library/locale.rst:248
msgid "Get a string that represents the era used in the current locale."
msgstr ""
#: ../Doc/library/locale.rst:252
#: ../Doc/library/locale.rst:250
msgid ""
"Most locales do not define this value. An example of a locale which does "
"define this value is the Japanese one. In Japan, the traditional "
@ -431,7 +429,7 @@ msgid ""
"then-emperor's reign."
msgstr ""
#: ../Doc/library/locale.rst:257
#: ../Doc/library/locale.rst:255
msgid ""
"Normally it should not be necessary to use this value directly. Specifying "
"the ``E`` modifier in their format strings causes the :func:`time.strftime` "
@ -440,37 +438,37 @@ msgid ""
"systems."
msgstr ""
#: ../Doc/library/locale.rst:265
#: ../Doc/library/locale.rst:263
msgid ""
"Get a format string for :func:`time.strftime` to represent date and time in "
"a locale-specific era-based way."
msgstr ""
#: ../Doc/library/locale.rst:270
#: ../Doc/library/locale.rst:268
msgid ""
"Get a format string for :func:`time.strftime` to represent a date in a "
"locale-specific era-based way."
msgstr ""
#: ../Doc/library/locale.rst:275
#: ../Doc/library/locale.rst:273
msgid ""
"Get a format string for :func:`time.strftime` to represent a time in a "
"locale-specific era-based way."
msgstr ""
#: ../Doc/library/locale.rst:280
#: ../Doc/library/locale.rst:278
msgid ""
"Get a representation of up to 100 values used to represent the values 0 to "
"99."
msgstr ""
#: ../Doc/library/locale.rst:286
#: ../Doc/library/locale.rst:284
msgid ""
"Tries to determine the default locale settings and returns them as a tuple "
"of the form ``(language code, encoding)``."
msgstr ""
#: ../Doc/library/locale.rst:289
#: ../Doc/library/locale.rst:287
msgid ""
"According to POSIX, a program which has not called ``setlocale(LC_ALL, '')`` "
"runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` "
@ -479,7 +477,7 @@ msgid ""
"emulate the behavior in the way described above."
msgstr ""
#: ../Doc/library/locale.rst:295
#: ../Doc/library/locale.rst:293
msgid ""
"To maintain compatibility with other platforms, not only the :envvar:`LANG` "
"variable is tested, but a list of variables given as envvars parameter. The "
@ -489,21 +487,21 @@ msgid ""
"``'LC_CTYPE'``, ``'LANG'`` and ``'LANGUAGE'``, in that order."
msgstr ""
#: ../Doc/library/locale.rst:302 ../Doc/library/locale.rst:313
#: ../Doc/library/locale.rst:300 ../Doc/library/locale.rst:311
msgid ""
"Except for the code ``'C'``, the language code corresponds to :rfc:`1766`. "
"*language code* and *encoding* may be ``None`` if their values cannot be "
"determined."
msgstr ""
#: ../Doc/library/locale.rst:309
#: ../Doc/library/locale.rst:307
msgid ""
"Returns the current setting for the given locale category as sequence "
"containing *language code*, *encoding*. *category* may be one of the :const:"
"`LC_\\*` values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`."
msgstr ""
#: ../Doc/library/locale.rst:320
#: ../Doc/library/locale.rst:318
msgid ""
"Return the encoding used for text data, according to user preferences. User "
"preferences are expressed differently on different systems, and might not be "
@ -511,49 +509,49 @@ msgid ""
"guess."
msgstr ""
#: ../Doc/library/locale.rst:325
#: ../Doc/library/locale.rst:323
msgid ""
"On some systems, it is necessary to invoke :func:`setlocale` to obtain the "
"user preferences, so this function is not thread-safe. If invoking setlocale "
"is not necessary or desired, *do_setlocale* should be set to ``False``."
msgstr ""
#: ../Doc/library/locale.rst:329
#: ../Doc/library/locale.rst:327
msgid ""
"On Android or in the UTF-8 mode (:option:`-X` ``utf8`` option), always "
"return ``'UTF-8'``, the locale and the *do_setlocale* argument are ignored."
msgstr ""
#: ../Doc/library/locale.rst:332
#: ../Doc/library/locale.rst:330
msgid ""
"The function now always returns ``UTF-8`` on Android or if the UTF-8 mode is "
"enabled."
msgstr ""
#: ../Doc/library/locale.rst:339
#: ../Doc/library/locale.rst:337
msgid ""
"Returns a normalized locale code for the given locale name. The returned "
"locale code is formatted for use with :func:`setlocale`. If normalization "
"fails, the original name is returned unchanged."
msgstr ""
#: ../Doc/library/locale.rst:343
#: ../Doc/library/locale.rst:341
msgid ""
"If the given encoding is not known, the function defaults to the default "
"encoding for the locale code just like :func:`setlocale`."
msgstr ""
#: ../Doc/library/locale.rst:349
#: ../Doc/library/locale.rst:347
msgid "Sets the locale for *category* to the default setting."
msgstr ""
#: ../Doc/library/locale.rst:351
#: ../Doc/library/locale.rst:349
msgid ""
"The default setting is determined by calling :func:`getdefaultlocale`. "
"*category* defaults to :const:`LC_ALL`."
msgstr ""
#: ../Doc/library/locale.rst:357
#: ../Doc/library/locale.rst:355
msgid ""
"Compares two strings according to the current :const:`LC_COLLATE` setting. "
"As any other compare function, returns a negative, or a positive value, or "
@ -561,7 +559,7 @@ msgid ""
"is equal to it."
msgstr ""
#: ../Doc/library/locale.rst:365
#: ../Doc/library/locale.rst:363
msgid ""
"Transforms a string to one that can be used in locale-aware comparisons. "
"For example, ``strxfrm(s1) < strxfrm(s2)`` is equivalent to ``strcoll(s1, "
@ -569,7 +567,7 @@ msgid ""
"repeatedly, e.g. when collating a sequence of strings."
msgstr ""
#: ../Doc/library/locale.rst:374
#: ../Doc/library/locale.rst:372
msgid ""
"Formats a number *val* according to the current :const:`LC_NUMERIC` setting. "
"The format follows the conventions of the ``%`` operator. For floating "
@ -577,44 +575,44 @@ msgid ""
"is true, also takes the grouping into account."
msgstr ""
#: ../Doc/library/locale.rst:379
#: ../Doc/library/locale.rst:377
msgid ""
"If *monetary* is true, the conversion uses monetary thousands separator and "
"grouping strings."
msgstr ""
#: ../Doc/library/locale.rst:382
#: ../Doc/library/locale.rst:380
msgid ""
"Processes formatting specifiers as in ``format % val``, but takes the "
"current locale settings into account."
msgstr ""
#: ../Doc/library/locale.rst:385
#: ../Doc/library/locale.rst:383
msgid "The *monetary* keyword parameter was added."
msgstr ""
#: ../Doc/library/locale.rst:391
#: ../Doc/library/locale.rst:389
msgid ""
"Please note that this function works like :meth:`format_string` but will "
"only work for exactly one ``%char`` specifier. For example, ``'%f'`` and "
"``'%.0f'`` are both valid specifiers, but ``'%f KiB'`` is not."
msgstr ""
#: ../Doc/library/locale.rst:395
#: ../Doc/library/locale.rst:393
msgid "For whole format strings, use :func:`format_string`."
msgstr ""
#: ../Doc/library/locale.rst:397
#: ../Doc/library/locale.rst:395
msgid "Use :meth:`format_string` instead."
msgstr ""
#: ../Doc/library/locale.rst:403
#: ../Doc/library/locale.rst:401
msgid ""
"Formats a number *val* according to the current :const:`LC_MONETARY` "
"settings."
msgstr ""
#: ../Doc/library/locale.rst:405
#: ../Doc/library/locale.rst:403
msgid ""
"The returned string includes the currency symbol if *symbol* is true, which "
"is the default. If *grouping* is true (which is not the default), grouping "
@ -622,62 +620,62 @@ msgid ""
"default), the international currency symbol is used."
msgstr ""
#: ../Doc/library/locale.rst:410
#: ../Doc/library/locale.rst:408
msgid ""
"Note that this function will not work with the 'C' locale, so you have to "
"set a locale via :func:`setlocale` first."
msgstr ""
#: ../Doc/library/locale.rst:416
#: ../Doc/library/locale.rst:414
msgid ""
"Formats a floating point number using the same format as the built-in "
"function ``str(float)``, but takes the decimal point into account."
msgstr ""
#: ../Doc/library/locale.rst:422
#: ../Doc/library/locale.rst:420
msgid ""
"Converts a string into a normalized number string, following the :const:"
"`LC_NUMERIC` settings."
msgstr ""
#: ../Doc/library/locale.rst:430
#: ../Doc/library/locale.rst:428
msgid ""
"Converts a string to a floating point number, following the :const:"
"`LC_NUMERIC` settings."
msgstr ""
#: ../Doc/library/locale.rst:436
#: ../Doc/library/locale.rst:434
msgid ""
"Converts a string to an integer, following the :const:`LC_NUMERIC` "
"conventions."
msgstr ""
#: ../Doc/library/locale.rst:443
#: ../Doc/library/locale.rst:441
msgid ""
"Locale category for the character type functions. Depending on the settings "
"of this category, the functions of module :mod:`string` dealing with case "
"change their behaviour."
msgstr ""
#: ../Doc/library/locale.rst:450
#: ../Doc/library/locale.rst:448
msgid ""
"Locale category for sorting strings. The functions :func:`strcoll` and :"
"func:`strxfrm` of the :mod:`locale` module are affected."
msgstr ""
#: ../Doc/library/locale.rst:456
#: ../Doc/library/locale.rst:454
msgid ""
"Locale category for the formatting of time. The function :func:`time."
"strftime` follows these conventions."
msgstr ""
#: ../Doc/library/locale.rst:462
#: ../Doc/library/locale.rst:460
msgid ""
"Locale category for formatting of monetary values. The available options "
"are available from the :func:`localeconv` function."
msgstr ""
#: ../Doc/library/locale.rst:468
#: ../Doc/library/locale.rst:466
msgid ""
"Locale category for message display. Python currently does not support "
"application specific locale-aware messages. Messages displayed by the "
@ -685,7 +683,7 @@ msgid ""
"affected by this category."
msgstr ""
#: ../Doc/library/locale.rst:476
#: ../Doc/library/locale.rst:474
msgid ""
"Locale category for formatting numbers. The functions :func:`.format`, :"
"func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`locale` module are "
@ -693,7 +691,7 @@ msgid ""
"affected."
msgstr ""
#: ../Doc/library/locale.rst:484
#: ../Doc/library/locale.rst:482
msgid ""
"Combination of all locale settings. If this flag is used when the locale is "
"changed, setting the locale for all categories is attempted. If that fails "
@ -703,21 +701,21 @@ msgid ""
"settings."
msgstr ""
#: ../Doc/library/locale.rst:493
#: ../Doc/library/locale.rst:491
msgid ""
"This is a symbolic constant used for different values returned by :func:"
"`localeconv`."
msgstr ""
#: ../Doc/library/locale.rst:497
#: ../Doc/library/locale.rst:495
msgid "Example::"
msgstr "Exemple ::"
#: ../Doc/library/locale.rst:510
#: ../Doc/library/locale.rst:508
msgid "Background, details, hints, tips and caveats"
msgstr ""
#: ../Doc/library/locale.rst:512
#: ../Doc/library/locale.rst:510
msgid ""
"The C standard defines the locale as a program-wide property that may be "
"relatively expensive to change. On top of that, some implementation are "
@ -725,7 +723,7 @@ msgid ""
"This makes the locale somewhat painful to use correctly."
msgstr ""
#: ../Doc/library/locale.rst:517
#: ../Doc/library/locale.rst:515
msgid ""
"Initially, when a program is started, the locale is the ``C`` locale, no "
"matter what the user's preferred locale is. There is one exception: the :"
@ -735,7 +733,7 @@ msgid ""
"categories by calling ``setlocale(LC_ALL, '')``."
msgstr ""
#: ../Doc/library/locale.rst:524
#: ../Doc/library/locale.rst:522
msgid ""
"It is generally a bad idea to call :func:`setlocale` in some library "
"routine, since as a side effect it affects the entire program. Saving and "
@ -743,7 +741,7 @@ msgid ""
"that happen to run before the settings have been restored."
msgstr ""
#: ../Doc/library/locale.rst:529
#: ../Doc/library/locale.rst:527
msgid ""
"If, when coding a module for general use, you need a locale independent "
"version of an operation that is affected by the locale (such as certain "
@ -754,14 +752,14 @@ msgid ""
"settings."
msgstr ""
#: ../Doc/library/locale.rst:536
#: ../Doc/library/locale.rst:534
msgid ""
"The only way to perform numeric operations according to the locale is to use "
"the special functions defined by this module: :func:`atof`, :func:`atoi`, :"
"func:`.format`, :func:`.str`."
msgstr ""
#: ../Doc/library/locale.rst:540
#: ../Doc/library/locale.rst:538
msgid ""
"There is no way to perform case conversions and character classifications "
"according to the locale. For (Unicode) text strings these are done "
@ -772,11 +770,11 @@ msgid ""
"whitespace."
msgstr ""
#: ../Doc/library/locale.rst:551
#: ../Doc/library/locale.rst:549
msgid "For extension writers and programs that embed Python"
msgstr ""
#: ../Doc/library/locale.rst:553
#: ../Doc/library/locale.rst:551
msgid ""
"Extension modules should never call :func:`setlocale`, except to find out "
"what the current locale is. But since the return value can only be used "
@ -784,7 +782,7 @@ msgid ""
"whether or not the locale is ``C``)."
msgstr ""
#: ../Doc/library/locale.rst:558
#: ../Doc/library/locale.rst:556
msgid ""
"When Python code uses the :mod:`locale` module to change the locale, this "
"also affects the embedding application. If the embedding application "
@ -794,11 +792,11 @@ msgid ""
"accessible as a shared library."
msgstr ""
#: ../Doc/library/locale.rst:569
#: ../Doc/library/locale.rst:567
msgid "Access to message catalogs"
msgstr ""
#: ../Doc/library/locale.rst:577
#: ../Doc/library/locale.rst:575
msgid ""
"The locale module exposes the C library's gettext interface on systems that "
"provide this interface. It consists of the functions :func:`!gettext`, :"
@ -809,7 +807,7 @@ msgid ""
"for locating message catalogs."
msgstr ""
#: ../Doc/library/locale.rst:584
#: ../Doc/library/locale.rst:582
msgid ""
"Python applications should normally find no need to invoke these functions, "
"and should use :mod:`gettext` instead. A known exception to this rule are "

View file

@ -5,14 +5,14 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
"POT-Creation-Date: 2018-10-18 10:21+0200\n"
"PO-Revision-Date: 2018-12-11 22:46+0100\n"
"Last-Translator: Antoine Wecxsteen\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"
"Last-Translator: Antoine Wecxsteen\n"
"X-Generator: Poedit 2.0.6\n"
#: ../Doc/library/operator.rst:2

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -78,7 +78,7 @@ msgid ""
"important aspect of this structure which should be noted is that keywords "
"used to identify the parent node type, such as the keyword :keyword:`if` in "
"an :const:`if_stmt`, are included in the node tree without any special "
"treatment. For example, the :keyword:`if` keyword is represented by the "
"treatment. For example, the :keyword:`!if` keyword is represented by the "
"tuple ``(1, 'if')``, where ``1`` is the numeric value associated with all :"
"const:`NAME` tokens, including variable and function names defined by the "
"user. In an alternate form returned when line number information is "

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: 2018-10-20 12:15+0200\n"
"Last-Translator: \n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -64,7 +64,7 @@ msgstr ""
msgid "The :mod:`pprint` module defines one class:"
msgstr "Le module :mod:`pprint` définit une seule classe : ::"
#: ../Doc/library/pprint.rst:36
#: ../Doc/library/pprint.rst:38
msgid ""
"Construct a :class:`PrettyPrinter` instance. This constructor understands "
"several keyword parameters. An output stream may be set using the *stream* "
@ -102,17 +102,17 @@ msgstr ""
"*compact* est initialisé à *True*, tous les éléments qui peuvent tenir dans "
"la largeur définie sont formatés sur chaque ligne de sortie."
#: ../Doc/library/pprint.rst:53 ../Doc/library/pprint.rst:88
#: ../Doc/library/pprint.rst:102
#: ../Doc/library/pprint.rst:55 ../Doc/library/pprint.rst:90
#: ../Doc/library/pprint.rst:104
msgid "Added the *compact* parameter."
msgstr "Ajout du paramètre *compact*."
#: ../Doc/library/pprint.rst:80
#: ../Doc/library/pprint.rst:82
msgid "The :mod:`pprint` module also provides several shortcut functions:"
msgstr ""
"Le module :mod:`pprint` fournit aussi quelques fonctions de raccourcis : ::"
#: ../Doc/library/pprint.rst:84
#: ../Doc/library/pprint.rst:86
msgid ""
"Return the formatted representation of *object* as a string. *indent*, "
"*width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter` "
@ -122,7 +122,7 @@ msgstr ""
"caractères. *indent*, *width*, *depth* et *compact* sont passés au "
"constructeur de :class:`PrettyPrinter` comme paramètres de formatage."
#: ../Doc/library/pprint.rst:95
#: ../Doc/library/pprint.rst:97
msgid ""
"Prints the formatted representation of *object* on *stream*, followed by a "
"newline. If *stream* is ``None``, ``sys.stdout`` is used. This may be used "
@ -139,7 +139,7 @@ msgstr ""
"portée). *indent*, *width*, *depth* et *compact* sont passés au constructeur "
"de classe :class:`PrettyPrinter` comme paramètres de formatage."
#: ../Doc/library/pprint.rst:121
#: ../Doc/library/pprint.rst:123
msgid ""
"Determine if the formatted representation of *object* is \"readable,\" or "
"can be used to reconstruct the value using :func:`eval`. This always "
@ -149,15 +149,15 @@ msgstr ""
"peut être utilisé pour recomposer sa valeur en utilisant la fonction :func:"
"`eval`. Cela renvoie toujours ``False`` pour les objets récursifs."
#: ../Doc/library/pprint.rst:131
#: ../Doc/library/pprint.rst:133
msgid "Determine if *object* requires a recursive representation."
msgstr "Détermine si *object* requiert une représentation récursive."
#: ../Doc/library/pprint.rst:134
#: ../Doc/library/pprint.rst:136
msgid "One more support function is also defined:"
msgstr "Une dernière fonction de support est définie ainsi : ::"
#: ../Doc/library/pprint.rst:138
#: ../Doc/library/pprint.rst:140
msgid ""
"Return a string representation of *object*, protected against recursive data "
"structures. If the representation of *object* exposes a recursive entry, "
@ -170,17 +170,17 @@ msgstr ""
"représentée telle que ``<Recursion on typename with id=number>``. Par "
"ailleurs, la représentation de lobjet nest pas formatée."
#: ../Doc/library/pprint.rst:150
#: ../Doc/library/pprint.rst:152
msgid "PrettyPrinter Objects"
msgstr "Les Objets PrettyPrinter"
#: ../Doc/library/pprint.rst:152
#: ../Doc/library/pprint.rst:154
msgid ":class:`PrettyPrinter` instances have the following methods:"
msgstr ""
"Les instances de la classe :class:`PrettyPrinter` ont les méthodes "
"suivantes : ::"
#: ../Doc/library/pprint.rst:157
#: ../Doc/library/pprint.rst:159
msgid ""
"Return the formatted representation of *object*. This takes into account "
"the options passed to the :class:`PrettyPrinter` constructor."
@ -188,7 +188,7 @@ msgstr ""
"Renvoie la représentation formatée de *object*. Cela prend en compte les "
"options passées au constructeur de la classe :class:`PrettyPrinter`."
#: ../Doc/library/pprint.rst:163
#: ../Doc/library/pprint.rst:165
msgid ""
"Print the formatted representation of *object* on the configured stream, "
"followed by a newline."
@ -196,7 +196,7 @@ msgstr ""
"Affiche sur le flux configuré la représentation formatée de *object*, suivie "
"dune fin de ligne."
#: ../Doc/library/pprint.rst:166
#: ../Doc/library/pprint.rst:168
msgid ""
"The following methods provide the implementations for the corresponding "
"functions of the same names. Using these methods on an instance is slightly "
@ -208,7 +208,7 @@ msgstr ""
"instance est légèrement plus efficace, car les nouveaux objets :class:"
"`PrettyPrinter` nont pas besoin dêtre créés."
#: ../Doc/library/pprint.rst:176
#: ../Doc/library/pprint.rst:178
msgid ""
"Determine if the formatted representation of the object is \"readable,\" or "
"can be used to reconstruct the value using :func:`eval`. Note that this "
@ -222,11 +222,11 @@ msgstr ""
"le paramètre *depth* de la classe :class:`PrettyPrinter` est initialisé et "
"que lobjet est plus « profond » que permis, cela renvoie ``False``."
#: ../Doc/library/pprint.rst:185
#: ../Doc/library/pprint.rst:187
msgid "Determine if the object requires a recursive representation."
msgstr "Détermine si lobjet nécessite une représentation récursive."
#: ../Doc/library/pprint.rst:187
#: ../Doc/library/pprint.rst:189
msgid ""
"This method is provided as a hook to allow subclasses to modify the way "
"objects are converted to strings. The default implementation uses the "
@ -237,7 +237,7 @@ msgstr ""
"classes de modifier la façon dont les objets sont convertis en chaînes. "
"Limplémentation par défaut est celle de la fonction :func:`saferepr`."
#: ../Doc/library/pprint.rst:194
#: ../Doc/library/pprint.rst:196
msgid ""
"Returns three values: the formatted version of *object* as a string, a flag "
"indicating whether the result is readable, and a flag indicating whether "
@ -270,11 +270,11 @@ msgstr ""
"courant; les appels récursifs doivent être passés à une valeur inférieure à "
"celle de lappel courant."
#: ../Doc/library/pprint.rst:212
#: ../Doc/library/pprint.rst:214
msgid "Example"
msgstr "Exemple"
#: ../Doc/library/pprint.rst:214
#: ../Doc/library/pprint.rst:216
msgid ""
"To demonstrate several uses of the :func:`pprint` function and its "
"parameters, let's fetch information about a project from `PyPI <https://pypi."
@ -284,13 +284,13 @@ msgstr ""
"`pprint` et de ses paramètres, allons chercher des informations sur un "
"projet `PyPI <https://pypi.org>`_ : ::"
#: ../Doc/library/pprint.rst:223
#: ../Doc/library/pprint.rst:225
msgid "In its basic form, :func:`pprint` shows the whole object::"
msgstr ""
"Dans sa forme basique, la fonction :func:`pprint` affiche lintégralité de "
"lobjet : ::"
#: ../Doc/library/pprint.rst:279
#: ../Doc/library/pprint.rst:281
msgid ""
"The result can be limited to a certain *depth* (ellipsis is used for deeper "
"contents)::"
@ -298,7 +298,7 @@ msgstr ""
"Le résultat peut être limité à une certaine profondeur en initialisant "
"*depth*. ( ``…`` est utilisé pour des contenus plus « profonds ») : ::"
#: ../Doc/library/pprint.rst:325
#: ../Doc/library/pprint.rst:327
msgid ""
"Additionally, maximum character *width* can be suggested. If a long object "
"cannot be split, the specified width will be exceeded::"

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -76,10 +76,10 @@ msgstr ""
#: ../Doc/library/py_compile.rst:56
msgid ""
"*invalidation_mode* should be a member of the :class:`PycInvalidationMode` "
"enum and controls how the generated ``.pyc`` files are invalidated at "
"runtime. If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set, "
"*invalidation_mode* will be forced to :attr:`PycInvalidationMode."
"CHECKED_HASH`."
"enum and controls how the generated bytecode cache is invalidated at "
"runtime. The default is :attr:`PycInvalidationMode.CHECKED_HASH` if the :"
"envvar:`SOURCE_DATE_EPOCH` environment variable is set, otherwise the "
"default is :attr:`PycInvalidationMode.TIMESTAMP`."
msgstr ""
#: ../Doc/library/py_compile.rst:62
@ -106,7 +106,14 @@ msgid ""
"CHECKED_HASH`."
msgstr ""
#: ../Doc/library/py_compile.rst:83
#: ../Doc/library/py_compile.rst:80
msgid ""
"The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer overrides the "
"value of the *invalidation_mode* argument, and determines its default value "
"instead."
msgstr ""
#: ../Doc/library/py_compile.rst:88
msgid ""
"A enumeration of possible methods the interpreter can use to determine "
"whether a bytecode file is up to date with a source file. The ``.pyc`` file "
@ -115,34 +122,34 @@ msgid ""
"at runtime."
msgstr ""
#: ../Doc/library/py_compile.rst:93
#: ../Doc/library/py_compile.rst:98
msgid ""
"The ``.pyc`` file includes the timestamp and size of the source file, which "
"Python will compare against the metadata of the source file at runtime to "
"determine if the ``.pyc`` file needs to be regenerated."
msgstr ""
#: ../Doc/library/py_compile.rst:99
#: ../Doc/library/py_compile.rst:104
msgid ""
"The ``.pyc`` file includes a hash of the source file content, which Python "
"will compare against the source at runtime to determine if the ``.pyc`` file "
"needs to be regenerated."
msgstr ""
#: ../Doc/library/py_compile.rst:105
#: ../Doc/library/py_compile.rst:110
msgid ""
"Like :attr:`CHECKED_HASH`, the ``.pyc`` file includes a hash of the source "
"file content. However, Python will at runtime assume the ``.pyc`` file is up "
"to date and not validate the ``.pyc`` against the source file at all."
msgstr ""
#: ../Doc/library/py_compile.rst:109
#: ../Doc/library/py_compile.rst:114
msgid ""
"This option is useful when the ``.pycs`` are kept up to date by some system "
"external to Python like a build system."
msgstr ""
#: ../Doc/library/py_compile.rst:115
#: ../Doc/library/py_compile.rst:120
msgid ""
"Compile several source files. The files named in *args* (or on the command "
"line, if *args* is ``None``) are compiled and the resulting byte-code is "
@ -152,21 +159,21 @@ msgid ""
"standard input."
msgstr ""
#: ../Doc/library/py_compile.rst:122
#: ../Doc/library/py_compile.rst:127
msgid "Added support for ``'-'``."
msgstr ""
#: ../Doc/library/py_compile.rst:125
#: ../Doc/library/py_compile.rst:130
msgid ""
"When this module is run as a script, the :func:`main` is used to compile all "
"the files named on the command line. The exit status is nonzero if one of "
"the files could not be compiled."
msgstr ""
#: ../Doc/library/py_compile.rst:132
#: ../Doc/library/py_compile.rst:137
msgid "Module :mod:`compileall`"
msgstr ""
#: ../Doc/library/py_compile.rst:133
#: ../Doc/library/py_compile.rst:138
msgid "Utilities to compile all Python source files in a directory tree."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -62,44 +62,44 @@ msgid ""
"string instead."
msgstr ""
#: ../Doc/library/reprlib.rst:47
#: ../Doc/library/reprlib.rst:50
msgid ""
"Decorator for :meth:`__repr__` methods to detect recursive calls within the "
"same thread. If a recursive call is made, the *fillvalue* is returned, "
"otherwise, the usual :meth:`__repr__` call is made. For example:"
msgstr ""
#: ../Doc/library/reprlib.rst:69
#: ../Doc/library/reprlib.rst:72
msgid "Repr Objects"
msgstr ""
#: ../Doc/library/reprlib.rst:71
#: ../Doc/library/reprlib.rst:74
msgid ""
":class:`Repr` instances provide several attributes which can be used to "
"provide size limits for the representations of different object types, and "
"methods which format specific object types."
msgstr ""
#: ../Doc/library/reprlib.rst:78
#: ../Doc/library/reprlib.rst:81
msgid ""
"Depth limit on the creation of recursive representations. The default is "
"``6``."
msgstr ""
#: ../Doc/library/reprlib.rst:89
#: ../Doc/library/reprlib.rst:92
msgid ""
"Limits on the number of entries represented for the named object type. The "
"default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` "
"for the others."
msgstr ""
#: ../Doc/library/reprlib.rst:96
#: ../Doc/library/reprlib.rst:99
msgid ""
"Maximum number of characters in the representation for an integer. Digits "
"are dropped from the middle. The default is ``40``."
msgstr ""
#: ../Doc/library/reprlib.rst:102
#: ../Doc/library/reprlib.rst:105
msgid ""
"Limit on the number of characters in the representation of the string. Note "
"that the \"normal\" representation of the string is used as the character "
@ -107,20 +107,20 @@ msgid ""
"mangled when the representation is shortened. The default is ``30``."
msgstr ""
#: ../Doc/library/reprlib.rst:110
#: ../Doc/library/reprlib.rst:113
msgid ""
"This limit is used to control the size of object types for which no specific "
"formatting method is available on the :class:`Repr` object. It is applied in "
"a similar manner as :attr:`maxstring`. The default is ``20``."
msgstr ""
#: ../Doc/library/reprlib.rst:117
#: ../Doc/library/reprlib.rst:120
msgid ""
"The equivalent to the built-in :func:`repr` that uses the formatting imposed "
"by the instance."
msgstr ""
#: ../Doc/library/reprlib.rst:123
#: ../Doc/library/reprlib.rst:126
msgid ""
"Recursive implementation used by :meth:`.repr`. This uses the type of *obj* "
"to determine which formatting method to call, passing it *obj* and *level*. "
@ -129,7 +129,7 @@ msgid ""
"call."
msgstr ""
#: ../Doc/library/reprlib.rst:132
#: ../Doc/library/reprlib.rst:135
msgid ""
"Formatting methods for specific types are implemented as methods with a name "
"based on the type name. In the method name, **TYPE** is replaced by ``'_'."
@ -138,11 +138,11 @@ msgid ""
"should call ``self.repr1(subobj, level - 1)``."
msgstr ""
#: ../Doc/library/reprlib.rst:142
#: ../Doc/library/reprlib.rst:145
msgid "Subclassing Repr Objects"
msgstr ""
#: ../Doc/library/reprlib.rst:144
#: ../Doc/library/reprlib.rst:147
msgid ""
"The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of :"
"class:`Repr` to add support for additional built-in object types or to "

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -200,8 +200,8 @@ msgid ""
msgstr ""
#: ../Doc/library/select.rst:160 ../Doc/library/select.rst:266
#: ../Doc/library/select.rst:360 ../Doc/library/select.rst:448
#: ../Doc/library/select.rst:488
#: ../Doc/library/select.rst:363 ../Doc/library/select.rst:451
#: ../Doc/library/select.rst:491
msgid ""
"The function is now retried with a recomputed timeout when interrupted by a "
"signal, except if the signal handler raises an exception (see :pep:`475` for "
@ -252,7 +252,7 @@ msgstr ""
msgid "Return the file descriptor number of the polling object."
msgstr ""
#: ../Doc/library/select.rst:217 ../Doc/library/select.rst:383
#: ../Doc/library/select.rst:217 ../Doc/library/select.rst:386
msgid ""
"Register a file descriptor with the polling object. Future calls to the :"
"meth:`poll` method will then check whether the file descriptor has any "
@ -282,7 +282,7 @@ msgid ""
"(a bit) more efficient that doing the same explicitly."
msgstr ""
#: ../Doc/library/select.rst:245 ../Doc/library/select.rst:427
#: ../Doc/library/select.rst:245 ../Doc/library/select.rst:430
msgid ""
"Remove a file descriptor being tracked by a polling object. Just like the :"
"meth:`register` method, *fd* can be an integer or an object with a :meth:"
@ -321,17 +321,17 @@ msgstr ""
msgid "*eventmask*"
msgstr ""
#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:395
#: ../Doc/library/select.rst:514 ../Doc/library/select.rst:543
#: ../Doc/library/select.rst:574 ../Doc/library/select.rst:582
#: ../Doc/library/select.rst:602 ../Doc/library/select.rst:625
#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:398
#: ../Doc/library/select.rst:517 ../Doc/library/select.rst:546
#: ../Doc/library/select.rst:577 ../Doc/library/select.rst:585
#: ../Doc/library/select.rst:605 ../Doc/library/select.rst:628
msgid "Constant"
msgstr "Constante"
#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:395
#: ../Doc/library/select.rst:514 ../Doc/library/select.rst:543
#: ../Doc/library/select.rst:574 ../Doc/library/select.rst:582
#: ../Doc/library/select.rst:602 ../Doc/library/select.rst:625
#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:398
#: ../Doc/library/select.rst:517 ../Doc/library/select.rst:546
#: ../Doc/library/select.rst:577 ../Doc/library/select.rst:585
#: ../Doc/library/select.rst:605 ../Doc/library/select.rst:628
msgid "Meaning"
msgstr "Signification"
@ -452,43 +452,49 @@ msgstr ":const:`EPOLLMSG`"
msgid "Ignored."
msgstr ""
#: ../Doc/library/select.rst:323
#: ../Doc/library/select.rst:320
msgid ""
":const:`EPOLLEXCLUSIVE` was added. It's only supported by Linux Kernel 4.5 "
"or later."
msgstr ""
#: ../Doc/library/select.rst:326
msgid "Close the control file descriptor of the epoll object."
msgstr ""
#: ../Doc/library/select.rst:328
#: ../Doc/library/select.rst:331
msgid "``True`` if the epoll object is closed."
msgstr ""
#: ../Doc/library/select.rst:333 ../Doc/library/select.rst:472
#: ../Doc/library/select.rst:336 ../Doc/library/select.rst:475
msgid "Return the file descriptor number of the control fd."
msgstr ""
#: ../Doc/library/select.rst:338
#: ../Doc/library/select.rst:341
msgid "Create an epoll object from a given file descriptor."
msgstr ""
#: ../Doc/library/select.rst:343
#: ../Doc/library/select.rst:346
msgid "Register a fd descriptor with the epoll object."
msgstr ""
#: ../Doc/library/select.rst:348
#: ../Doc/library/select.rst:351
msgid "Modify a registered file descriptor."
msgstr ""
#: ../Doc/library/select.rst:353
#: ../Doc/library/select.rst:356
msgid "Remove a registered file descriptor from the epoll object."
msgstr ""
#: ../Doc/library/select.rst:358
#: ../Doc/library/select.rst:361
msgid "Wait for events. timeout in seconds (float)"
msgstr ""
#: ../Doc/library/select.rst:370
#: ../Doc/library/select.rst:373
msgid "Polling Objects"
msgstr ""
#: ../Doc/library/select.rst:372
#: ../Doc/library/select.rst:375
msgid ""
"The :c:func:`poll` system call, supported on most Unix systems, provides "
"better scalability for network servers that service many, many clients at "
@ -500,7 +506,7 @@ msgid ""
"descriptors)."
msgstr ""
#: ../Doc/library/select.rst:389
#: ../Doc/library/select.rst:392
msgid ""
"*eventmask* is an optional bitmask describing the type of events you want to "
"check for, and can be a combination of the constants :const:`POLLIN`, :const:"
@ -508,70 +514,70 @@ msgid ""
"specified, the default value used will check for all 3 types of events."
msgstr ""
#: ../Doc/library/select.rst:397
#: ../Doc/library/select.rst:400
msgid ":const:`POLLIN`"
msgstr ":const:`POLLIN`"
#: ../Doc/library/select.rst:397
#: ../Doc/library/select.rst:400
msgid "There is data to read"
msgstr ""
#: ../Doc/library/select.rst:399
#: ../Doc/library/select.rst:402
msgid ":const:`POLLPRI`"
msgstr ":const:`POLLPRI`"
#: ../Doc/library/select.rst:399
#: ../Doc/library/select.rst:402
msgid "There is urgent data to read"
msgstr ""
#: ../Doc/library/select.rst:401
#: ../Doc/library/select.rst:404
msgid ":const:`POLLOUT`"
msgstr ":const:`POLLOUT`"
#: ../Doc/library/select.rst:401
#: ../Doc/library/select.rst:404
msgid "Ready for output: writing will not block"
msgstr ""
#: ../Doc/library/select.rst:403
#: ../Doc/library/select.rst:406
msgid ":const:`POLLERR`"
msgstr ":const:`POLLERR`"
#: ../Doc/library/select.rst:403
#: ../Doc/library/select.rst:406
msgid "Error condition of some sort"
msgstr ""
#: ../Doc/library/select.rst:405
#: ../Doc/library/select.rst:408
msgid ":const:`POLLHUP`"
msgstr ":const:`POLLHUP`"
#: ../Doc/library/select.rst:405
#: ../Doc/library/select.rst:408
msgid "Hung up"
msgstr ""
#: ../Doc/library/select.rst:407
#: ../Doc/library/select.rst:410
msgid ":const:`POLLRDHUP`"
msgstr ""
#: ../Doc/library/select.rst:407
#: ../Doc/library/select.rst:410
msgid ""
"Stream socket peer closed connection, or shut down writing half of connection"
msgstr ""
#: ../Doc/library/select.rst:410
#: ../Doc/library/select.rst:413
msgid ":const:`POLLNVAL`"
msgstr ":const:`POLLNVAL`"
#: ../Doc/library/select.rst:410
#: ../Doc/library/select.rst:413
msgid "Invalid request: descriptor not open"
msgstr ""
#: ../Doc/library/select.rst:413
#: ../Doc/library/select.rst:416
msgid ""
"Registering a file descriptor that's already registered is not an error, and "
"has the same effect as registering the descriptor exactly once."
msgstr ""
#: ../Doc/library/select.rst:419
#: ../Doc/library/select.rst:422
msgid ""
"Modifies an already registered fd. This has the same effect as "
"``register(fd, eventmask)``. Attempting to modify a file descriptor that "
@ -579,13 +585,13 @@ msgid ""
"`ENOENT` to be raised."
msgstr ""
#: ../Doc/library/select.rst:431
#: ../Doc/library/select.rst:434
msgid ""
"Attempting to remove a file descriptor that was never registered causes a :"
"exc:`KeyError` exception to be raised."
msgstr ""
#: ../Doc/library/select.rst:437
#: ../Doc/library/select.rst:440
msgid ""
"Polls the set of registered file descriptors, and returns a possibly-empty "
"list containing ``(fd, event)`` 2-tuples for the descriptors that have "
@ -599,47 +605,47 @@ msgid ""
"`None`, the call will block until there is an event for this poll object."
msgstr ""
#: ../Doc/library/select.rst:458
#: ../Doc/library/select.rst:461
msgid "Kqueue Objects"
msgstr ""
#: ../Doc/library/select.rst:462
#: ../Doc/library/select.rst:465
msgid "Close the control file descriptor of the kqueue object."
msgstr ""
#: ../Doc/library/select.rst:467
#: ../Doc/library/select.rst:470
msgid "``True`` if the kqueue object is closed."
msgstr ""
#: ../Doc/library/select.rst:477
#: ../Doc/library/select.rst:480
msgid "Create a kqueue object from a given file descriptor."
msgstr ""
#: ../Doc/library/select.rst:482
#: ../Doc/library/select.rst:485
msgid "Low level interface to kevent"
msgstr ""
#: ../Doc/library/select.rst:484
#: ../Doc/library/select.rst:487
msgid "changelist must be an iterable of kevent object or ``None``"
msgstr ""
#: ../Doc/library/select.rst:485
#: ../Doc/library/select.rst:488
msgid "max_events must be 0 or a positive integer"
msgstr ""
#: ../Doc/library/select.rst:486
#: ../Doc/library/select.rst:489
msgid "timeout in seconds (floats possible)"
msgstr ""
#: ../Doc/library/select.rst:498
#: ../Doc/library/select.rst:501
msgid "Kevent Objects"
msgstr ""
#: ../Doc/library/select.rst:500
#: ../Doc/library/select.rst:503
msgid "https://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2"
msgstr ""
#: ../Doc/library/select.rst:504
#: ../Doc/library/select.rst:507
msgid ""
"Value used to identify the event. The interpretation depends on the filter "
"but it's usually the file descriptor. In the constructor ident can either be "
@ -647,328 +653,328 @@ msgid ""
"the integer internally."
msgstr ""
#: ../Doc/library/select.rst:511
#: ../Doc/library/select.rst:514
msgid "Name of the kernel filter."
msgstr ""
#: ../Doc/library/select.rst:516
#: ../Doc/library/select.rst:519
msgid ":const:`KQ_FILTER_READ`"
msgstr ":const:`KQ_FILTER_READ`"
#: ../Doc/library/select.rst:516
#: ../Doc/library/select.rst:519
msgid "Takes a descriptor and returns whenever there is data available to read"
msgstr ""
#: ../Doc/library/select.rst:519
#: ../Doc/library/select.rst:522
msgid ":const:`KQ_FILTER_WRITE`"
msgstr ":const:`KQ_FILTER_WRITE`"
#: ../Doc/library/select.rst:519
#: ../Doc/library/select.rst:522
msgid ""
"Takes a descriptor and returns whenever there is data available to write"
msgstr ""
#: ../Doc/library/select.rst:522
#: ../Doc/library/select.rst:525
msgid ":const:`KQ_FILTER_AIO`"
msgstr ":const:`KQ_FILTER_AIO`"
#: ../Doc/library/select.rst:522
#: ../Doc/library/select.rst:525
msgid "AIO requests"
msgstr ""
#: ../Doc/library/select.rst:524
#: ../Doc/library/select.rst:527
msgid ":const:`KQ_FILTER_VNODE`"
msgstr ":const:`KQ_FILTER_VNODE`"
#: ../Doc/library/select.rst:524
#: ../Doc/library/select.rst:527
msgid ""
"Returns when one or more of the requested events watched in *fflag* occurs"
msgstr ""
#: ../Doc/library/select.rst:527
#: ../Doc/library/select.rst:530
msgid ":const:`KQ_FILTER_PROC`"
msgstr ":const:`KQ_FILTER_PROC`"
#: ../Doc/library/select.rst:527
#: ../Doc/library/select.rst:530
msgid "Watch for events on a process id"
msgstr ""
#: ../Doc/library/select.rst:529
#: ../Doc/library/select.rst:532
msgid ":const:`KQ_FILTER_NETDEV`"
msgstr ":const:`KQ_FILTER_NETDEV`"
#: ../Doc/library/select.rst:529
#: ../Doc/library/select.rst:532
msgid "Watch for events on a network device [not available on Mac OS X]"
msgstr ""
#: ../Doc/library/select.rst:532
#: ../Doc/library/select.rst:535
msgid ":const:`KQ_FILTER_SIGNAL`"
msgstr ":const:`KQ_FILTER_SIGNAL`"
#: ../Doc/library/select.rst:532
#: ../Doc/library/select.rst:535
msgid "Returns whenever the watched signal is delivered to the process"
msgstr ""
#: ../Doc/library/select.rst:535
#: ../Doc/library/select.rst:538
msgid ":const:`KQ_FILTER_TIMER`"
msgstr ":const:`KQ_FILTER_TIMER`"
#: ../Doc/library/select.rst:535
#: ../Doc/library/select.rst:538
msgid "Establishes an arbitrary timer"
msgstr ""
#: ../Doc/library/select.rst:540
#: ../Doc/library/select.rst:543
msgid "Filter action."
msgstr ""
#: ../Doc/library/select.rst:545
#: ../Doc/library/select.rst:548
msgid ":const:`KQ_EV_ADD`"
msgstr ":const:`KQ_EV_ADD`"
#: ../Doc/library/select.rst:545
#: ../Doc/library/select.rst:548
msgid "Adds or modifies an event"
msgstr ""
#: ../Doc/library/select.rst:547
#: ../Doc/library/select.rst:550
msgid ":const:`KQ_EV_DELETE`"
msgstr ":const:`KQ_EV_DELETE`"
#: ../Doc/library/select.rst:547
#: ../Doc/library/select.rst:550
msgid "Removes an event from the queue"
msgstr ""
#: ../Doc/library/select.rst:549
#: ../Doc/library/select.rst:552
msgid ":const:`KQ_EV_ENABLE`"
msgstr ":const:`KQ_EV_ENABLE`"
#: ../Doc/library/select.rst:549
#: ../Doc/library/select.rst:552
msgid "Permitscontrol() to returns the event"
msgstr ""
#: ../Doc/library/select.rst:551
#: ../Doc/library/select.rst:554
msgid ":const:`KQ_EV_DISABLE`"
msgstr ":const:`KQ_EV_DISABLE`"
#: ../Doc/library/select.rst:551
#: ../Doc/library/select.rst:554
msgid "Disablesevent"
msgstr ""
#: ../Doc/library/select.rst:553
#: ../Doc/library/select.rst:556
msgid ":const:`KQ_EV_ONESHOT`"
msgstr ":const:`KQ_EV_ONESHOT`"
#: ../Doc/library/select.rst:553
#: ../Doc/library/select.rst:556
msgid "Removes event after first occurrence"
msgstr ""
#: ../Doc/library/select.rst:555
#: ../Doc/library/select.rst:558
msgid ":const:`KQ_EV_CLEAR`"
msgstr ":const:`KQ_EV_CLEAR`"
#: ../Doc/library/select.rst:555
#: ../Doc/library/select.rst:558
msgid "Reset the state after an event is retrieved"
msgstr ""
#: ../Doc/library/select.rst:557
#: ../Doc/library/select.rst:560
msgid ":const:`KQ_EV_SYSFLAGS`"
msgstr ":const:`KQ_EV_SYSFLAGS`"
#: ../Doc/library/select.rst:557 ../Doc/library/select.rst:559
#: ../Doc/library/select.rst:560 ../Doc/library/select.rst:562
msgid "internal event"
msgstr ""
#: ../Doc/library/select.rst:559
#: ../Doc/library/select.rst:562
msgid ":const:`KQ_EV_FLAG1`"
msgstr ":const:`KQ_EV_FLAG1`"
#: ../Doc/library/select.rst:561
#: ../Doc/library/select.rst:564
msgid ":const:`KQ_EV_EOF`"
msgstr ":const:`KQ_EV_EOF`"
#: ../Doc/library/select.rst:561
#: ../Doc/library/select.rst:564
msgid "Filter specific EOF condition"
msgstr ""
#: ../Doc/library/select.rst:563
#: ../Doc/library/select.rst:566
msgid ":const:`KQ_EV_ERROR`"
msgstr ":const:`KQ_EV_ERROR`"
#: ../Doc/library/select.rst:563
#: ../Doc/library/select.rst:566
msgid "See return values"
msgstr ""
#: ../Doc/library/select.rst:569
#: ../Doc/library/select.rst:572
msgid "Filter specific flags."
msgstr ""
#: ../Doc/library/select.rst:571
#: ../Doc/library/select.rst:574
msgid ":const:`KQ_FILTER_READ` and :const:`KQ_FILTER_WRITE` filter flags:"
msgstr ""
#: ../Doc/library/select.rst:576
#: ../Doc/library/select.rst:579
msgid ":const:`KQ_NOTE_LOWAT`"
msgstr ":const:`KQ_NOTE_LOWAT`"
#: ../Doc/library/select.rst:576
#: ../Doc/library/select.rst:579
msgid "low water mark of a socket buffer"
msgstr ""
#: ../Doc/library/select.rst:579
#: ../Doc/library/select.rst:582
msgid ":const:`KQ_FILTER_VNODE` filter flags:"
msgstr ""
#: ../Doc/library/select.rst:584
#: ../Doc/library/select.rst:587
msgid ":const:`KQ_NOTE_DELETE`"
msgstr ":const:`KQ_NOTE_DELETE`"
#: ../Doc/library/select.rst:584
#: ../Doc/library/select.rst:587
msgid "*unlink()* was called"
msgstr ""
#: ../Doc/library/select.rst:586
#: ../Doc/library/select.rst:589
msgid ":const:`KQ_NOTE_WRITE`"
msgstr ":const:`KQ_NOTE_WRITE`"
#: ../Doc/library/select.rst:586
#: ../Doc/library/select.rst:589
msgid "a write occurred"
msgstr ""
#: ../Doc/library/select.rst:588
#: ../Doc/library/select.rst:591
msgid ":const:`KQ_NOTE_EXTEND`"
msgstr ":const:`KQ_NOTE_EXTEND`"
#: ../Doc/library/select.rst:588
#: ../Doc/library/select.rst:591
msgid "the file was extended"
msgstr ""
#: ../Doc/library/select.rst:590
#: ../Doc/library/select.rst:593
msgid ":const:`KQ_NOTE_ATTRIB`"
msgstr ":const:`KQ_NOTE_ATTRIB`"
#: ../Doc/library/select.rst:590
#: ../Doc/library/select.rst:593
msgid "an attribute was changed"
msgstr ""
#: ../Doc/library/select.rst:592
#: ../Doc/library/select.rst:595
msgid ":const:`KQ_NOTE_LINK`"
msgstr ":const:`KQ_NOTE_LINK`"
#: ../Doc/library/select.rst:592
#: ../Doc/library/select.rst:595
msgid "the link count has changed"
msgstr ""
#: ../Doc/library/select.rst:594
#: ../Doc/library/select.rst:597
msgid ":const:`KQ_NOTE_RENAME`"
msgstr ":const:`KQ_NOTE_RENAME`"
#: ../Doc/library/select.rst:594
#: ../Doc/library/select.rst:597
msgid "the file was renamed"
msgstr ""
#: ../Doc/library/select.rst:596
#: ../Doc/library/select.rst:599
msgid ":const:`KQ_NOTE_REVOKE`"
msgstr ":const:`KQ_NOTE_REVOKE`"
#: ../Doc/library/select.rst:596
#: ../Doc/library/select.rst:599
msgid "access to the file was revoked"
msgstr ""
#: ../Doc/library/select.rst:599
#: ../Doc/library/select.rst:602
msgid ":const:`KQ_FILTER_PROC` filter flags:"
msgstr ""
#: ../Doc/library/select.rst:604
#: ../Doc/library/select.rst:607
msgid ":const:`KQ_NOTE_EXIT`"
msgstr ":const:`KQ_NOTE_EXIT`"
#: ../Doc/library/select.rst:604
#: ../Doc/library/select.rst:607
msgid "the process has exited"
msgstr ""
#: ../Doc/library/select.rst:606
#: ../Doc/library/select.rst:609
msgid ":const:`KQ_NOTE_FORK`"
msgstr ":const:`KQ_NOTE_FORK`"
#: ../Doc/library/select.rst:606
#: ../Doc/library/select.rst:609
msgid "the process has called *fork()*"
msgstr ""
#: ../Doc/library/select.rst:608
#: ../Doc/library/select.rst:611
msgid ":const:`KQ_NOTE_EXEC`"
msgstr ":const:`KQ_NOTE_EXEC`"
#: ../Doc/library/select.rst:608
#: ../Doc/library/select.rst:611
msgid "the process has executed a new process"
msgstr ""
#: ../Doc/library/select.rst:610
#: ../Doc/library/select.rst:613
msgid ":const:`KQ_NOTE_PCTRLMASK`"
msgstr ":const:`KQ_NOTE_PCTRLMASK`"
#: ../Doc/library/select.rst:610 ../Doc/library/select.rst:612
#: ../Doc/library/select.rst:613 ../Doc/library/select.rst:615
msgid "internal filter flag"
msgstr ""
#: ../Doc/library/select.rst:612
#: ../Doc/library/select.rst:615
msgid ":const:`KQ_NOTE_PDATAMASK`"
msgstr ":const:`KQ_NOTE_PDATAMASK`"
#: ../Doc/library/select.rst:614
#: ../Doc/library/select.rst:617
msgid ":const:`KQ_NOTE_TRACK`"
msgstr ":const:`KQ_NOTE_TRACK`"
#: ../Doc/library/select.rst:614
#: ../Doc/library/select.rst:617
msgid "follow a process across *fork()*"
msgstr ""
#: ../Doc/library/select.rst:616
#: ../Doc/library/select.rst:619
msgid ":const:`KQ_NOTE_CHILD`"
msgstr ":const:`KQ_NOTE_CHILD`"
#: ../Doc/library/select.rst:616
#: ../Doc/library/select.rst:619
msgid "returned on the child process for *NOTE_TRACK*"
msgstr ""
#: ../Doc/library/select.rst:619
#: ../Doc/library/select.rst:622
msgid ":const:`KQ_NOTE_TRACKERR`"
msgstr ":const:`KQ_NOTE_TRACKERR`"
#: ../Doc/library/select.rst:619
#: ../Doc/library/select.rst:622
msgid "unable to attach to a child"
msgstr ""
#: ../Doc/library/select.rst:622
#: ../Doc/library/select.rst:625
msgid ":const:`KQ_FILTER_NETDEV` filter flags (not available on Mac OS X):"
msgstr ""
#: ../Doc/library/select.rst:627
#: ../Doc/library/select.rst:630
msgid ":const:`KQ_NOTE_LINKUP`"
msgstr ":const:`KQ_NOTE_LINKUP`"
#: ../Doc/library/select.rst:627
#: ../Doc/library/select.rst:630
msgid "link is up"
msgstr ""
#: ../Doc/library/select.rst:629
#: ../Doc/library/select.rst:632
msgid ":const:`KQ_NOTE_LINKDOWN`"
msgstr ":const:`KQ_NOTE_LINKDOWN`"
#: ../Doc/library/select.rst:629
#: ../Doc/library/select.rst:632
msgid "link is down"
msgstr ""
#: ../Doc/library/select.rst:631
#: ../Doc/library/select.rst:634
msgid ":const:`KQ_NOTE_LINKINV`"
msgstr ":const:`KQ_NOTE_LINKINV`"
#: ../Doc/library/select.rst:631
#: ../Doc/library/select.rst:634
msgid "link state is invalid"
msgstr ""
#: ../Doc/library/select.rst:637
#: ../Doc/library/select.rst:640
msgid "Filter specific data."
msgstr ""
#: ../Doc/library/select.rst:642
#: ../Doc/library/select.rst:645
msgid "User defined value."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2017-08-10 00:55+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -54,14 +54,14 @@ msgstr ""
#: ../Doc/library/smtplib.rst:43
msgid ""
"For normal use, you should only require the initialization/connect, :meth:"
"`sendmail`, and :meth:`~smtplib.quit` methods. An example is included below."
"`sendmail`, and :meth:`SMTP.quit` methods. An example is included below."
msgstr ""
#: ../Doc/library/smtplib.rst:47
msgid ""
"The :class:`SMTP` class supports the :keyword:`with` statement. When used "
"like this, the SMTP ``QUIT`` command is issued automatically when the :"
"keyword:`with` statement exits. E.g.::"
"keyword:`!with` statement exits. E.g.::"
msgstr ""
#: ../Doc/library/smtplib.rst:58

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -77,7 +77,7 @@ msgid ""
"the :meth:`~BaseServer.handle_request` or :meth:`~BaseServer.serve_forever` "
"method of the server object to process one or many requests. Finally, call :"
"meth:`~BaseServer.server_close` to close the socket (unless you used a :"
"keyword:`with` statement)."
"keyword:`!with` statement)."
msgstr ""
#: ../Doc/library/socketserver.rst:62

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: 2018-11-29 18:30+0100\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -1272,7 +1272,7 @@ msgstr ""
#: ../Doc/library/sys.rst:685
msgid ""
"Get the current coroutine origin tracking depth, as set by func:"
"Get the current coroutine origin tracking depth, as set by :func:"
"`set_coroutine_origin_tracking_depth`."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -306,7 +306,7 @@ msgid "Windows will return one of:"
msgstr ""
#: ../Doc/library/sysconfig.rst:188
msgid "win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)"
msgid "win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T)"
msgstr ""
#: ../Doc/library/sysconfig.rst:189

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -68,7 +68,7 @@ msgstr ""
#: ../Doc/library/telnetlib.rst:46
msgid ""
"A :class:`Telnet` object is a context manager and can be used in a :keyword:"
"`with` statement. When the :keyword:`with` block ends, the :meth:`close` "
"`with` statement. When the :keyword:`!with` block ends, the :meth:`close` "
"method is called::"
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -153,7 +153,7 @@ msgstr ""
msgid ""
"The directory name can be retrieved from the :attr:`name` attribute of the "
"returned object. When the returned object is used as a context manager, "
"the :attr:`name` will be assigned to the target of the :keyword:`as` clause "
"the :attr:`name` will be assigned to the target of the :keyword:`!as` clause "
"in the :keyword:`with` statement, if there is one."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -285,19 +285,19 @@ msgid ""
"*max_lines* lines, with *placeholder* appearing at the end of the output."
msgstr ""
#: ../Doc/library/textwrap.rst:273
#: ../Doc/library/textwrap.rst:275
msgid ""
"(default: ``' [...]'``) String that will appear at the end of the output "
"text if it has been truncated."
msgstr ""
#: ../Doc/library/textwrap.rst:279
#: ../Doc/library/textwrap.rst:281
msgid ""
":class:`TextWrapper` also provides some public methods, analogous to the "
"module-level convenience functions:"
msgstr ""
#: ../Doc/library/textwrap.rst:284
#: ../Doc/library/textwrap.rst:286
msgid ""
"Wraps the single paragraph in *text* (a string) so every line is at most :"
"attr:`width` characters long. All wrapping options are taken from instance "
@ -306,7 +306,7 @@ msgid ""
"returned list is empty."
msgstr ""
#: ../Doc/library/textwrap.rst:293
#: ../Doc/library/textwrap.rst:295
msgid ""
"Wraps the single paragraph in *text*, and returns a single string containing "
"the wrapped paragraph."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -1196,7 +1196,7 @@ msgstr ""
#: ../Doc/library/threading.rst:977
msgid ""
"Using locks, conditions, and semaphores in the :keyword:`with` statement"
"Using locks, conditions, and semaphores in the :keyword:`!with` statement"
msgstr ""
#: ../Doc/library/threading.rst:979

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -325,7 +325,7 @@ msgstr ""
msgid "Type variable."
msgstr ""
#: ../Doc/library/typing.rst:404 ../Doc/library/typing.rst:805
#: ../Doc/library/typing.rst:404 ../Doc/library/typing.rst:811
msgid "Usage::"
msgstr "Utilisation ::"
@ -582,83 +582,87 @@ msgid "A generic version of :class:`collections.defaultdict`."
msgstr ""
#: ../Doc/library/typing.rst:694
msgid "A generic version of :class:`collections.Counter`."
msgid "A generic version of :class:`collections.OrderedDict`."
msgstr ""
#: ../Doc/library/typing.rst:700
msgid "A generic version of :class:`collections.ChainMap`."
msgid "A generic version of :class:`collections.Counter`."
msgstr ""
#: ../Doc/library/typing.rst:706
msgid "A generic version of :class:`collections.ChainMap`."
msgstr ""
#: ../Doc/library/typing.rst:712
msgid ""
"A generator can be annotated by the generic type ``Generator[YieldType, "
"SendType, ReturnType]``. For example::"
msgstr ""
#: ../Doc/library/typing.rst:715
#: ../Doc/library/typing.rst:721
msgid ""
"Note that unlike many other generics in the typing module, the ``SendType`` "
"of :class:`Generator` behaves contravariantly, not covariantly or "
"invariantly."
msgstr ""
#: ../Doc/library/typing.rst:719
#: ../Doc/library/typing.rst:725
msgid ""
"If your generator will only yield values, set the ``SendType`` and "
"``ReturnType`` to ``None``::"
msgstr ""
#: ../Doc/library/typing.rst:727
#: ../Doc/library/typing.rst:733
msgid ""
"Alternatively, annotate your generator as having a return type of either "
"``Iterable[YieldType]`` or ``Iterator[YieldType]``::"
msgstr ""
#: ../Doc/library/typing.rst:737
#: ../Doc/library/typing.rst:743
msgid ""
"An async generator can be annotated by the generic type "
"``AsyncGenerator[YieldType, SendType]``. For example::"
msgstr ""
#: ../Doc/library/typing.rst:746
#: ../Doc/library/typing.rst:752
msgid ""
"Unlike normal generators, async generators cannot return a value, so there "
"is no ``ReturnType`` type parameter. As with :class:`Generator`, the "
"``SendType`` behaves contravariantly."
msgstr ""
#: ../Doc/library/typing.rst:750
#: ../Doc/library/typing.rst:756
msgid ""
"If your generator will only yield values, set the ``SendType`` to ``None``::"
msgstr ""
#: ../Doc/library/typing.rst:758
#: ../Doc/library/typing.rst:764
msgid ""
"Alternatively, annotate your generator as having a return type of either "
"``AsyncIterable[YieldType]`` or ``AsyncIterator[YieldType]``::"
msgstr ""
#: ../Doc/library/typing.rst:770
#: ../Doc/library/typing.rst:776
msgid ""
"``Text`` is an alias for ``str``. It is provided to supply a forward "
"compatible path for Python 2 code: in Python 2, ``Text`` is an alias for "
"``unicode``."
msgstr ""
#: ../Doc/library/typing.rst:774
#: ../Doc/library/typing.rst:780
msgid ""
"Use ``Text`` to indicate that a value must contain a unicode string in a "
"manner that is compatible with both Python 2 and Python 3::"
msgstr ""
#: ../Doc/library/typing.rst:786
#: ../Doc/library/typing.rst:792
msgid ""
"Generic type ``IO[AnyStr]`` and its subclasses ``TextIO(IO[str])`` and "
"``BinaryIO(IO[bytes])`` represent the types of I/O streams such as returned "
"by :func:`open`."
msgstr ""
#: ../Doc/library/typing.rst:794
#: ../Doc/library/typing.rst:800
msgid ""
"These type aliases correspond to the return types from :func:`re.compile` "
"and :func:`re.match`. These types (and the corresponding functions) are "
@ -666,25 +670,25 @@ msgid ""
"``Pattern[bytes]``, ``Match[str]``, or ``Match[bytes]``."
msgstr ""
#: ../Doc/library/typing.rst:803
#: ../Doc/library/typing.rst:809
msgid "Typed version of namedtuple."
msgstr ""
#: ../Doc/library/typing.rst:811
#: ../Doc/library/typing.rst:817
msgid "This is equivalent to::"
msgstr "Cest équivalent à ::"
#: ../Doc/library/typing.rst:815
#: ../Doc/library/typing.rst:821
msgid ""
"To give a field a default value, you can assign to it in the class body::"
msgstr ""
#: ../Doc/library/typing.rst:824
#: ../Doc/library/typing.rst:830
msgid ""
"Fields with a default value must come after any fields without a default."
msgstr ""
#: ../Doc/library/typing.rst:826
#: ../Doc/library/typing.rst:832
msgid ""
"The resulting class has two extra attributes: ``_field_types``, giving a "
"dict mapping field names to types, and ``_field_defaults``, a dict mapping "
@ -692,47 +696,47 @@ msgid ""
"attribute, which is part of the namedtuple API.)"
msgstr ""
#: ../Doc/library/typing.rst:831
#: ../Doc/library/typing.rst:837
msgid "``NamedTuple`` subclasses can also have docstrings and methods::"
msgstr ""
#: ../Doc/library/typing.rst:841
#: ../Doc/library/typing.rst:847
msgid "Backward-compatible usage::"
msgstr ""
#: ../Doc/library/typing.rst:845
#: ../Doc/library/typing.rst:851
msgid "Added support for :pep:`526` variable annotation syntax."
msgstr ""
#: ../Doc/library/typing.rst:848
#: ../Doc/library/typing.rst:854
msgid "Added support for default values, methods, and docstrings."
msgstr ""
#: ../Doc/library/typing.rst:853
#: ../Doc/library/typing.rst:859
msgid ""
"A helper function to indicate a distinct types to a typechecker, see :ref:"
"`distinct`. At runtime it returns a function that returns its argument. "
"Usage::"
msgstr ""
#: ../Doc/library/typing.rst:864
#: ../Doc/library/typing.rst:870
msgid "Cast a value to a type."
msgstr ""
#: ../Doc/library/typing.rst:866
#: ../Doc/library/typing.rst:872
msgid ""
"This returns the value unchanged. To the type checker this signals that the "
"return value has the designated type, but at runtime we intentionally don't "
"check anything (we want this to be as fast as possible)."
msgstr ""
#: ../Doc/library/typing.rst:873
#: ../Doc/library/typing.rst:879
msgid ""
"Return a dictionary containing type hints for a function, method, module or "
"class object."
msgstr ""
#: ../Doc/library/typing.rst:876
#: ../Doc/library/typing.rst:882
msgid ""
"This is often the same as ``obj.__annotations__``. In addition, forward "
"references encoded as string literals are handled by evaluating them in "
@ -742,7 +746,7 @@ msgid ""
"merging all the ``__annotations__`` along ``C.__mro__`` in reverse order."
msgstr ""
#: ../Doc/library/typing.rst:886
#: ../Doc/library/typing.rst:892
msgid ""
"The ``@overload`` decorator allows describing functions and methods that "
"support multiple different combinations of argument types. A series of "
@ -757,104 +761,104 @@ msgid ""
"variable::"
msgstr ""
#: ../Doc/library/typing.rst:910
#: ../Doc/library/typing.rst:916
msgid "See :pep:`484` for details and comparison with other typing semantics."
msgstr ""
#: ../Doc/library/typing.rst:914
#: ../Doc/library/typing.rst:920
msgid "Decorator to indicate that annotations are not type hints."
msgstr ""
#: ../Doc/library/typing.rst:916
#: ../Doc/library/typing.rst:922
msgid ""
"This works as class or function :term:`decorator`. With a class, it applies "
"recursively to all methods defined in that class (but not to methods defined "
"in its superclasses or subclasses)."
msgstr ""
#: ../Doc/library/typing.rst:920
#: ../Doc/library/typing.rst:926
msgid "This mutates the function(s) in place."
msgstr ""
#: ../Doc/library/typing.rst:924
#: ../Doc/library/typing.rst:930
msgid "Decorator to give another decorator the :func:`no_type_check` effect."
msgstr ""
#: ../Doc/library/typing.rst:926
#: ../Doc/library/typing.rst:932
msgid ""
"This wraps the decorator with something that wraps the decorated function "
"in :func:`no_type_check`."
msgstr ""
#: ../Doc/library/typing.rst:931
#: ../Doc/library/typing.rst:937
msgid "Special type indicating an unconstrained type."
msgstr ""
#: ../Doc/library/typing.rst:933
#: ../Doc/library/typing.rst:939
msgid "Every type is compatible with :data:`Any`."
msgstr ""
#: ../Doc/library/typing.rst:934
#: ../Doc/library/typing.rst:940
msgid ":data:`Any` is compatible with every type."
msgstr ""
#: ../Doc/library/typing.rst:938
#: ../Doc/library/typing.rst:944
msgid "Special type indicating that a function never returns. For example::"
msgstr ""
#: ../Doc/library/typing.rst:950
#: ../Doc/library/typing.rst:956
msgid "Union type; ``Union[X, Y]`` means either X or Y."
msgstr ""
#: ../Doc/library/typing.rst:952
#: ../Doc/library/typing.rst:958
msgid "To define a union, use e.g. ``Union[int, str]``. Details:"
msgstr ""
#: ../Doc/library/typing.rst:954
#: ../Doc/library/typing.rst:960
msgid "The arguments must be types and there must be at least one."
msgstr ""
#: ../Doc/library/typing.rst:956
#: ../Doc/library/typing.rst:962
msgid "Unions of unions are flattened, e.g.::"
msgstr ""
#: ../Doc/library/typing.rst:960
#: ../Doc/library/typing.rst:966
msgid "Unions of a single argument vanish, e.g.::"
msgstr ""
#: ../Doc/library/typing.rst:964
#: ../Doc/library/typing.rst:970
msgid "Redundant arguments are skipped, e.g.::"
msgstr ""
#: ../Doc/library/typing.rst:968
#: ../Doc/library/typing.rst:974
msgid "When comparing unions, the argument order is ignored, e.g.::"
msgstr ""
#: ../Doc/library/typing.rst:972
#: ../Doc/library/typing.rst:978
msgid "You cannot subclass or instantiate a union."
msgstr ""
#: ../Doc/library/typing.rst:974
#: ../Doc/library/typing.rst:980
msgid "You cannot write ``Union[X][Y]``."
msgstr ""
#: ../Doc/library/typing.rst:976
#: ../Doc/library/typing.rst:982
msgid "You can use ``Optional[X]`` as a shorthand for ``Union[X, None]``."
msgstr ""
#: ../Doc/library/typing.rst:978
#: ../Doc/library/typing.rst:984
msgid "Don't remove explicit subclasses from unions at runtime."
msgstr ""
#: ../Doc/library/typing.rst:983
#: ../Doc/library/typing.rst:989
msgid "Optional type."
msgstr ""
#: ../Doc/library/typing.rst:985
#: ../Doc/library/typing.rst:991
msgid "``Optional[X]`` is equivalent to ``Union[X, None]``."
msgstr ""
#: ../Doc/library/typing.rst:987
#: ../Doc/library/typing.rst:993
msgid ""
"Note that this is not the same concept as an optional argument, which is one "
"that has a default. An optional argument with a default does not require "
@ -862,45 +866,45 @@ msgid ""
"optional. For example::"
msgstr ""
#: ../Doc/library/typing.rst:995
#: ../Doc/library/typing.rst:1001
msgid ""
"On the other hand, if an explicit value of ``None`` is allowed, the use of "
"``Optional`` is appropriate, whether the argument is optional or not. For "
"example::"
msgstr ""
#: ../Doc/library/typing.rst:1004
#: ../Doc/library/typing.rst:1010
msgid ""
"Tuple type; ``Tuple[X, Y]`` is the type of a tuple of two items with the "
"first item of type X and the second of type Y."
msgstr ""
#: ../Doc/library/typing.rst:1007
#: ../Doc/library/typing.rst:1013
msgid ""
"Example: ``Tuple[T1, T2]`` is a tuple of two elements corresponding to type "
"variables T1 and T2. ``Tuple[int, float, str]`` is a tuple of an int, a "
"float and a string."
msgstr ""
#: ../Doc/library/typing.rst:1011
#: ../Doc/library/typing.rst:1017
msgid ""
"To specify a variable-length tuple of homogeneous type, use literal "
"ellipsis, e.g. ``Tuple[int, ...]``. A plain :data:`Tuple` is equivalent to "
"``Tuple[Any, ...]``, and in turn to :class:`tuple`."
msgstr ""
#: ../Doc/library/typing.rst:1017
#: ../Doc/library/typing.rst:1023
msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str."
msgstr ""
#: ../Doc/library/typing.rst:1019
#: ../Doc/library/typing.rst:1025
msgid ""
"The subscription syntax must always be used with exactly two values: the "
"argument list and the return type. The argument list must be a list of "
"types or an ellipsis; the return type must be a single type."
msgstr ""
#: ../Doc/library/typing.rst:1024
#: ../Doc/library/typing.rst:1030
msgid ""
"There is no syntax to indicate optional or keyword arguments; such function "
"types are rarely used as callback types. ``Callable[..., ReturnType]`` "
@ -910,22 +914,22 @@ msgid ""
"Callable`."
msgstr ""
#: ../Doc/library/typing.rst:1034
#: ../Doc/library/typing.rst:1040
msgid "Special type construct to mark class variables."
msgstr ""
#: ../Doc/library/typing.rst:1036
#: ../Doc/library/typing.rst:1042
msgid ""
"As introduced in :pep:`526`, a variable annotation wrapped in ClassVar "
"indicates that a given attribute is intended to be used as a class variable "
"and should not be set on instances of that class. Usage::"
msgstr ""
#: ../Doc/library/typing.rst:1044
#: ../Doc/library/typing.rst:1050
msgid ":data:`ClassVar` accepts only types and cannot be further subscribed."
msgstr ""
#: ../Doc/library/typing.rst:1046
#: ../Doc/library/typing.rst:1052
msgid ""
":data:`ClassVar` is not a class itself, and should not be used with :func:"
"`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change Python "
@ -933,25 +937,25 @@ msgid ""
"example, a type checker might flag the following code as an error::"
msgstr ""
#: ../Doc/library/typing.rst:1060
#: ../Doc/library/typing.rst:1066
msgid ""
"``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, "
"bytes)``."
msgstr ""
#: ../Doc/library/typing.rst:1063
#: ../Doc/library/typing.rst:1069
msgid ""
"It is meant to be used for functions that may accept any kind of string "
"without allowing different kinds of strings to mix. For example::"
msgstr ""
#: ../Doc/library/typing.rst:1075
#: ../Doc/library/typing.rst:1081
msgid ""
"A special constant that is assumed to be ``True`` by 3rd party static type "
"checkers. It is ``False`` at runtime. Usage::"
msgstr ""
#: ../Doc/library/typing.rst:1084
#: ../Doc/library/typing.rst:1090
msgid ""
"Note that the first type annotation must be enclosed in quotes, making it a "
"\"forward reference\", to hide the ``expensive_mod`` reference from the "

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-15 21:52+0200\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -159,61 +159,68 @@ msgid ""
"``mock_calls``:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:158
msgid "Setting Return Values and Attributes"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:160
msgid "Setting the return values on a mock object is trivially easy:"
#: ../Doc/library/unittest.mock-examples.rst:156
msgid ""
"However, parameters to calls that return mocks are not recorded, which means "
"it is not possible to track nested calls where the parameters used to create "
"ancestors are important:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:167
msgid "Setting Return Values and Attributes"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:169
msgid "Setting the return values on a mock object is trivially easy:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:176
msgid "Of course you can do the same for methods on the mock:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:174
#: ../Doc/library/unittest.mock-examples.rst:183
msgid "The return value can also be set in the constructor:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:180
#: ../Doc/library/unittest.mock-examples.rst:189
msgid "If you need an attribute setting on your mock, just do it:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:187
#: ../Doc/library/unittest.mock-examples.rst:196
msgid ""
"Sometimes you want to mock up a more complex situation, like for example "
"``mock.connection.cursor().execute(\"SELECT 1\")``. If we wanted this call "
"to return a list, then we have to configure the result of the nested call."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:191
#: ../Doc/library/unittest.mock-examples.rst:200
msgid ""
"We can use :data:`call` to construct the set of calls in a \"chained call\" "
"like this for easy assertion afterwards:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:205
#: ../Doc/library/unittest.mock-examples.rst:214
msgid ""
"It is the call to ``.call_list()`` that turns our call object into a list of "
"calls representing the chained calls."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:210
#: ../Doc/library/unittest.mock-examples.rst:219
msgid "Raising exceptions with mocks"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:212
#: ../Doc/library/unittest.mock-examples.rst:221
msgid ""
"A useful attribute is :attr:`~Mock.side_effect`. If you set this to an "
"exception class or instance then the exception will be raised when the mock "
"is called."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:224
#: ../Doc/library/unittest.mock-examples.rst:233
msgid "Side effect functions and iterables"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:226
#: ../Doc/library/unittest.mock-examples.rst:235
msgid ""
"``side_effect`` can also be set to a function or an iterable. The use case "
"for ``side_effect`` as an iterable is where your mock is going to be called "
@ -222,7 +229,7 @@ msgid ""
"value from the iterable:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:241
#: ../Doc/library/unittest.mock-examples.rst:250
msgid ""
"For more advanced use cases, like dynamically varying the return values "
"depending on what the mock is called with, ``side_effect`` can be a "
@ -230,11 +237,11 @@ msgid ""
"Whatever the function returns is what the call returns:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:258
#: ../Doc/library/unittest.mock-examples.rst:267
msgid "Creating a Mock from an Existing Object"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:260
#: ../Doc/library/unittest.mock-examples.rst:269
msgid ""
"One problem with over use of mocking is that it couples your tests to the "
"implementation of your mocks rather than your real code. Suppose you have a "
@ -244,7 +251,7 @@ msgid ""
"then your tests will continue to pass even though your code is now broken!"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:267
#: ../Doc/library/unittest.mock-examples.rst:276
msgid ""
":class:`Mock` allows you to provide an object as a specification for the "
"mock, using the *spec* keyword argument. Accessing methods / attributes on "
@ -254,38 +261,38 @@ msgid ""
"without you having to instantiate the class in those tests."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:280
#: ../Doc/library/unittest.mock-examples.rst:289
msgid ""
"Using a specification also enables a smarter matching of calls made to the "
"mock, regardless of whether some parameters were passed as positional or "
"named arguments::"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:291
#: ../Doc/library/unittest.mock-examples.rst:300
msgid ""
"If you want this smarter matching to also work with method calls on the "
"mock, you can use :ref:`auto-speccing <auto-speccing>`."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:294
#: ../Doc/library/unittest.mock-examples.rst:303
msgid ""
"If you want a stronger form of specification that prevents the setting of "
"arbitrary attributes as well as the getting of them then you can use "
"*spec_set* instead of *spec*."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:301
#: ../Doc/library/unittest.mock-examples.rst:310
msgid "Patch Decorators"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:305
#: ../Doc/library/unittest.mock-examples.rst:314
msgid ""
"With :func:`patch` it matters that you patch objects in the namespace where "
"they are looked up. This is normally straightforward, but for a quick guide "
"read :ref:`where to patch <where-to-patch>`."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:310
#: ../Doc/library/unittest.mock-examples.rst:319
msgid ""
"A common need in tests is to patch a class attribute or a module attribute, "
"for example patching a builtin or patching a class in a module to test that "
@ -294,7 +301,7 @@ msgid ""
"tests and cause hard to diagnose problems."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:316
#: ../Doc/library/unittest.mock-examples.rst:325
msgid ""
"mock provides three convenient decorators for this: :func:`patch`, :func:"
"`patch.object` and :func:`patch.dict`. ``patch`` takes a single string, of "
@ -305,37 +312,37 @@ msgid ""
"to patch it with."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:324
#: ../Doc/library/unittest.mock-examples.rst:333
msgid "``patch.object``:"
msgstr "``patch.object``:"
#: ../Doc/library/unittest.mock-examples.rst:341
#: ../Doc/library/unittest.mock-examples.rst:350
msgid ""
"If you are patching a module (including :mod:`builtins`) then use :func:"
"`patch` instead of :func:`patch.object`:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:351
#: ../Doc/library/unittest.mock-examples.rst:360
msgid ""
"The module name can be 'dotted', in the form ``package.module`` if needed:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:360
#: ../Doc/library/unittest.mock-examples.rst:369
msgid "A nice pattern is to actually decorate test methods themselves:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:371
#: ../Doc/library/unittest.mock-examples.rst:380
msgid ""
"If you want to patch with a Mock, you can use :func:`patch` with only one "
"argument (or :func:`patch.object` with two arguments). The mock will be "
"created for you and passed into the test function / method:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:383
#: ../Doc/library/unittest.mock-examples.rst:392
msgid "You can stack up multiple patch decorators using this pattern:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:394
#: ../Doc/library/unittest.mock-examples.rst:403
msgid ""
"When you nest patch decorators the mocks are passed in to the decorated "
"function in the same order they applied (the normal *Python* order that "
@ -343,45 +350,45 @@ msgid ""
"above the mock for ``test_module.ClassName2`` is passed in first."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:399
#: ../Doc/library/unittest.mock-examples.rst:408
msgid ""
"There is also :func:`patch.dict` for setting values in a dictionary just "
"during a scope and restoring the dictionary to its original state when the "
"test ends:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:410
#: ../Doc/library/unittest.mock-examples.rst:419
msgid ""
"``patch``, ``patch.object`` and ``patch.dict`` can all be used as context "
"managers."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:412
#: ../Doc/library/unittest.mock-examples.rst:421
msgid ""
"Where you use :func:`patch` to create a mock for you, you can get a "
"reference to the mock using the \"as\" form of the with statement:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:427
#: ../Doc/library/unittest.mock-examples.rst:436
msgid ""
"As an alternative ``patch``, ``patch.object`` and ``patch.dict`` can be used "
"as class decorators. When used in this way it is the same as applying the "
"decorator individually to every method whose name starts with \"test\"."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:435
#: ../Doc/library/unittest.mock-examples.rst:444
msgid "Further Examples"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:438
#: ../Doc/library/unittest.mock-examples.rst:447
msgid "Here are some more examples for some slightly more advanced scenarios."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:442
#: ../Doc/library/unittest.mock-examples.rst:451
msgid "Mocking chained calls"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:444
#: ../Doc/library/unittest.mock-examples.rst:453
msgid ""
"Mocking chained calls is actually straightforward with mock once you "
"understand the :attr:`~Mock.return_value` attribute. When a mock is called "
@ -389,31 +396,31 @@ msgid ""
"called, a new :class:`Mock` is created."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:449
#: ../Doc/library/unittest.mock-examples.rst:458
msgid ""
"This means that you can see how the object returned from a call to a mocked "
"object has been used by interrogating the ``return_value`` mock:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:457
#: ../Doc/library/unittest.mock-examples.rst:466
msgid ""
"From here it is a simple step to configure and then make assertions about "
"chained calls. Of course another alternative is writing your code in a more "
"testable way in the first place..."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:461
#: ../Doc/library/unittest.mock-examples.rst:470
msgid "So, suppose we have some code that looks a little bit like this:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:470
#: ../Doc/library/unittest.mock-examples.rst:479
msgid ""
"Assuming that ``BackendProvider`` is already well tested, how do we test "
"``method()``? Specifically, we want to test that the code section ``# more "
"code`` uses the response object in the correct way."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:474
#: ../Doc/library/unittest.mock-examples.rst:483
msgid ""
"As this chain of calls is made from an instance attribute we can monkey "
"patch the ``backend`` attribute on a ``Something`` instance. In this "
@ -423,26 +430,26 @@ msgid ""
"response object uses the builtin :func:`open` as its ``spec``."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:481
#: ../Doc/library/unittest.mock-examples.rst:490
msgid ""
"To do this we create a mock instance as our mock backend and create a mock "
"response object for it. To set the response as the return value for that "
"final ``start_call`` we could do this::"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:487
#: ../Doc/library/unittest.mock-examples.rst:496
msgid ""
"We can do that in a slightly nicer way using the :meth:`~Mock."
"configure_mock` method to directly set the return value for us:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:496
#: ../Doc/library/unittest.mock-examples.rst:505
msgid ""
"With these we monkey patch the \"mock backend\" in place and can make the "
"real call:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:502
#: ../Doc/library/unittest.mock-examples.rst:511
msgid ""
"Using :attr:`~Mock.mock_calls` we can check the chained call with a single "
"assert. A chained call is several calls in one line of code, so there will "
@ -450,11 +457,11 @@ msgid ""
"create this list of calls for us:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:513
#: ../Doc/library/unittest.mock-examples.rst:522
msgid "Partial mocking"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:515
#: ../Doc/library/unittest.mock-examples.rst:524
msgid ""
"In some tests I wanted to mock out a call to :meth:`datetime.date.today` to "
"return a known date, but I didn't want to prevent the code under test from "
@ -463,14 +470,14 @@ msgid ""
"method."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:520
#: ../Doc/library/unittest.mock-examples.rst:529
msgid ""
"I found a simple way of doing this that involved effectively wrapping the "
"date class with a mock, but passing through calls to the constructor to the "
"real class (and returning real instances)."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:524
#: ../Doc/library/unittest.mock-examples.rst:533
msgid ""
"The :func:`patch decorator <patch>` is used here to mock out the ``date`` "
"class in the module under test. The :attr:`side_effect` attribute on the "
@ -479,13 +486,13 @@ msgid ""
"returned by ``side_effect``."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:539
#: ../Doc/library/unittest.mock-examples.rst:548
msgid ""
"Note that we don't patch :class:`datetime.date` globally, we patch ``date`` "
"in the module that *uses* it. See :ref:`where to patch <where-to-patch>`."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:542
#: ../Doc/library/unittest.mock-examples.rst:551
msgid ""
"When ``date.today()`` is called a known date is returned, but calls to the "
"``date(...)`` constructor still return normal dates. Without this you can "
@ -493,30 +500,30 @@ msgid ""
"algorithm as the code under test, which is a classic testing anti-pattern."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:547
#: ../Doc/library/unittest.mock-examples.rst:556
msgid ""
"Calls to the date constructor are recorded in the ``mock_date`` attributes "
"(``call_count`` and friends) which may also be useful for your tests."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:550
#: ../Doc/library/unittest.mock-examples.rst:559
msgid ""
"An alternative way of dealing with mocking dates, or other builtin classes, "
"is discussed in `this blog entry <https://williambert.online/2011/07/how-to-"
"unit-testing-in-django-with-mocking-and-patching/>`_."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:556
#: ../Doc/library/unittest.mock-examples.rst:565
msgid "Mocking a Generator Method"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:558
#: ../Doc/library/unittest.mock-examples.rst:567
msgid ""
"A Python generator is a function or method that uses the :keyword:`yield` "
"statement to return a series of values when iterated over [#]_."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:561
#: ../Doc/library/unittest.mock-examples.rst:570
msgid ""
"A generator method / function is called to return the generator object. It "
"is the generator object that is then iterated over. The protocol method for "
@ -524,23 +531,23 @@ msgid ""
"`MagicMock`."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:566
#: ../Doc/library/unittest.mock-examples.rst:575
msgid ""
"Here's an example class with an \"iter\" method implemented as a generator:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:578
#: ../Doc/library/unittest.mock-examples.rst:587
msgid "How would we mock this class, and in particular its \"iter\" method?"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:580
#: ../Doc/library/unittest.mock-examples.rst:589
msgid ""
"To configure the values returned from the iteration (implicit in the call "
"to :class:`list`), we need to configure the object returned by the call to "
"``foo.iter()``."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:588
#: ../Doc/library/unittest.mock-examples.rst:597
msgid ""
"There are also generator expressions and more `advanced uses <http://www."
"dabeaz.com/coroutines/index.html>`_ of generators, but we aren't concerned "
@ -549,11 +556,11 @@ msgid ""
"com/generators/>`_."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:596
#: ../Doc/library/unittest.mock-examples.rst:605
msgid "Applying the same patch to every test method"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:598
#: ../Doc/library/unittest.mock-examples.rst:607
msgid ""
"If you want several patches in place for multiple test methods the obvious "
"way is to apply the patch decorators to every method. This can feel like "
@ -563,14 +570,14 @@ msgid ""
"methods whose names start with ``test``:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:622
#: ../Doc/library/unittest.mock-examples.rst:631
msgid ""
"An alternative way of managing patches is to use the :ref:`start-and-stop`. "
"These allow you to move the patching into your ``setUp`` and ``tearDown`` "
"methods."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:638
#: ../Doc/library/unittest.mock-examples.rst:647
msgid ""
"If you use this technique you must ensure that the patching is \"undone\" by "
"calling ``stop``. This can be fiddlier than you might think, because if an "
@ -578,11 +585,11 @@ msgid ""
"`unittest.TestCase.addCleanup` makes this easier:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:656
#: ../Doc/library/unittest.mock-examples.rst:665
msgid "Mocking Unbound Methods"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:658
#: ../Doc/library/unittest.mock-examples.rst:667
msgid ""
"Whilst writing tests today I needed to patch an *unbound method* (patching "
"the method on the class rather than on the instance). I needed self to be "
@ -596,7 +603,7 @@ msgid ""
"becomes a nuisance."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:669
#: ../Doc/library/unittest.mock-examples.rst:678
msgid ""
"If you pass ``autospec=True`` to patch then it does the patching with a "
"*real* function object. This function object has the same signature as the "
@ -608,30 +615,30 @@ msgid ""
"exactly what I wanted:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:690
#: ../Doc/library/unittest.mock-examples.rst:699
msgid ""
"If we don't use ``autospec=True`` then the unbound method is patched out "
"with a Mock instance instead, and isn't called with ``self``."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:695
#: ../Doc/library/unittest.mock-examples.rst:704
msgid "Checking multiple calls with mock"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:697
#: ../Doc/library/unittest.mock-examples.rst:706
msgid ""
"mock has a nice API for making assertions about how your mock objects are "
"used."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:704
#: ../Doc/library/unittest.mock-examples.rst:713
msgid ""
"If your mock is only being called once you can use the :meth:"
"`assert_called_once_with` method that also asserts that the :attr:"
"`call_count` is one."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:715
#: ../Doc/library/unittest.mock-examples.rst:724
msgid ""
"Both ``assert_called_with`` and ``assert_called_once_with`` make assertions "
"about the *most recent* call. If your mock is going to be called several "
@ -639,7 +646,7 @@ msgid ""
"attr:`~Mock.call_args_list`:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:727
#: ../Doc/library/unittest.mock-examples.rst:736
msgid ""
"The :data:`call` helper makes it easy to make assertions about these calls. "
"You can build up a list of expected calls and compare it to "
@ -647,11 +654,11 @@ msgid ""
"``call_args_list``:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:737
#: ../Doc/library/unittest.mock-examples.rst:746
msgid "Coping with mutable arguments"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:739
#: ../Doc/library/unittest.mock-examples.rst:748
msgid ""
"Another situation is rare, but can bite you, is when your mock is called "
"with mutable arguments. ``call_args`` and ``call_args_list`` store "
@ -660,26 +667,26 @@ msgid ""
"when the mock was called."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:744
#: ../Doc/library/unittest.mock-examples.rst:753
msgid ""
"Here's some example code that shows the problem. Imagine the following "
"functions defined in 'mymodule'::"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:755
#: ../Doc/library/unittest.mock-examples.rst:764
msgid ""
"When we try to test that ``grob`` calls ``frob`` with the correct argument "
"look what happens:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:770
#: ../Doc/library/unittest.mock-examples.rst:779
msgid ""
"One possibility would be for mock to copy the arguments you pass in. This "
"could then cause problems if you do assertions that rely on object identity "
"for equality."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:774
#: ../Doc/library/unittest.mock-examples.rst:783
msgid ""
"Here's one solution that uses the :attr:`side_effect` functionality. If you "
"provide a ``side_effect`` function for a mock then ``side_effect`` will be "
@ -689,28 +696,28 @@ msgid ""
"doing the assertion. Again a helper function sets this up for me."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:803
#: ../Doc/library/unittest.mock-examples.rst:812
msgid ""
"``copy_call_args`` is called with the mock that will be called. It returns a "
"new mock that we do the assertion on. The ``side_effect`` function makes a "
"copy of the args and calls our ``new_mock`` with the copy."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:809
#: ../Doc/library/unittest.mock-examples.rst:818
msgid ""
"If your mock is only going to be used once there is an easier way of "
"checking arguments at the point they are called. You can simply do the "
"checking inside a ``side_effect`` function."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:823
#: ../Doc/library/unittest.mock-examples.rst:832
msgid ""
"An alternative approach is to create a subclass of :class:`Mock` or :class:"
"`MagicMock` that copies (using :func:`copy.deepcopy`) the arguments. Here's "
"an example implementation:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:847
#: ../Doc/library/unittest.mock-examples.rst:856
msgid ""
"When you subclass ``Mock`` or ``MagicMock`` all dynamically created "
"attributes, and the ``return_value`` will use your subclass automatically. "
@ -718,18 +725,18 @@ msgid ""
"``CopyingMock``."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:853
#: ../Doc/library/unittest.mock-examples.rst:862
msgid "Nesting Patches"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:855
#: ../Doc/library/unittest.mock-examples.rst:864
msgid ""
"Using patch as a context manager is nice, but if you do multiple patches you "
"can end up with nested with statements indenting further and further to the "
"right:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:873
#: ../Doc/library/unittest.mock-examples.rst:882
msgid ""
"With unittest ``cleanup`` functions and the :ref:`start-and-stop` we can "
"achieve the same effect without the nested indentation. A simple helper "
@ -737,24 +744,24 @@ msgid ""
"mock for us:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:901
#: ../Doc/library/unittest.mock-examples.rst:910
msgid "Mocking a dictionary with MagicMock"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:903
#: ../Doc/library/unittest.mock-examples.rst:912
msgid ""
"You may want to mock a dictionary, or other container object, recording all "
"access to it whilst having it still behave like a dictionary."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:906
#: ../Doc/library/unittest.mock-examples.rst:915
msgid ""
"We can do this with :class:`MagicMock`, which will behave like a dictionary, "
"and using :data:`~Mock.side_effect` to delegate dictionary access to a real "
"underlying dictionary that is under our control."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:910
#: ../Doc/library/unittest.mock-examples.rst:919
msgid ""
"When the :meth:`__getitem__` and :meth:`__setitem__` methods of our "
"``MagicMock`` are called (normal dictionary access) then ``side_effect`` is "
@ -762,49 +769,49 @@ msgid ""
"can also control what is returned."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:914
#: ../Doc/library/unittest.mock-examples.rst:923
msgid ""
"After the ``MagicMock`` has been used we can use attributes like :data:"
"`~Mock.call_args_list` to assert about how the dictionary was used:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:930
#: ../Doc/library/unittest.mock-examples.rst:939
msgid ""
"An alternative to using ``MagicMock`` is to use ``Mock`` and *only* provide "
"the magic methods you specifically want:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:937
#: ../Doc/library/unittest.mock-examples.rst:946
msgid ""
"A *third* option is to use ``MagicMock`` but passing in ``dict`` as the "
"*spec* (or *spec_set*) argument so that the ``MagicMock`` created only has "
"dictionary magic methods available:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:945
#: ../Doc/library/unittest.mock-examples.rst:954
msgid ""
"With these side effect functions in place, the ``mock`` will behave like a "
"normal dictionary but recording the access. It even raises a :exc:`KeyError` "
"if you try to access a key that doesn't exist."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:964
#: ../Doc/library/unittest.mock-examples.rst:973
msgid ""
"After it has been used you can make assertions about the access using the "
"normal mock methods and attributes:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:976
#: ../Doc/library/unittest.mock-examples.rst:985
msgid "Mock subclasses and their attributes"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:978
#: ../Doc/library/unittest.mock-examples.rst:987
msgid ""
"There are various reasons why you might want to subclass :class:`Mock`. One "
"reason might be to add helper methods. Here's a silly example:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:994
#: ../Doc/library/unittest.mock-examples.rst:1003
msgid ""
"The standard behaviour for ``Mock`` instances is that attributes and the "
"return value mocks are of the same type as the mock they are accessed on. "
@ -814,7 +821,7 @@ msgid ""
"mock of instances of your subclass."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1010
#: ../Doc/library/unittest.mock-examples.rst:1019
msgid ""
"Sometimes this is inconvenient. For example, `one user <https://code.google."
"com/archive/p/mock/issues/105>`_ is subclassing mock to created a `Twisted "
@ -823,7 +830,7 @@ msgid ""
"errors."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1016
#: ../Doc/library/unittest.mock-examples.rst:1025
msgid ""
"``Mock`` (in all its flavours) uses a method called ``_get_child_mock`` to "
"create these \"sub-mocks\" for attributes and return values. You can prevent "
@ -832,25 +839,25 @@ msgid ""
"are then passed onto the mock constructor:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1033
#: ../Doc/library/unittest.mock-examples.rst:1042
msgid ""
"An exception to this rule are the non-callable mocks. Attributes use the "
"callable variant because otherwise non-callable mocks couldn't have callable "
"methods."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1039
#: ../Doc/library/unittest.mock-examples.rst:1048
msgid "Mocking imports with patch.dict"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1041
#: ../Doc/library/unittest.mock-examples.rst:1050
msgid ""
"One situation where mocking can be hard is where you have a local import "
"inside a function. These are harder to mock because they aren't using an "
"object from the module namespace that we can patch out."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1045
#: ../Doc/library/unittest.mock-examples.rst:1054
msgid ""
"Generally local imports are to be avoided. They are sometimes done to "
"prevent circular dependencies, for which there is *usually* a much better "
@ -860,7 +867,7 @@ msgid ""
"and only do the import on first use)."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1052
#: ../Doc/library/unittest.mock-examples.rst:1061
msgid ""
"That aside there is a way to use ``mock`` to affect the results of an "
"import. Importing fetches an *object* from the :data:`sys.modules` "
@ -870,7 +877,7 @@ msgid ""
"back. This need not be the case however."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1059
#: ../Doc/library/unittest.mock-examples.rst:1068
msgid ""
"This means you can use :func:`patch.dict` to *temporarily* put a mock in "
"place in :data:`sys.modules`. Any imports whilst this patch is active will "
@ -879,29 +886,29 @@ msgid ""
"whatever was there previously will be restored safely."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1065
#: ../Doc/library/unittest.mock-examples.rst:1074
msgid "Here's an example that mocks out the 'fooble' module."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1076
#: ../Doc/library/unittest.mock-examples.rst:1085
msgid ""
"As you can see the ``import fooble`` succeeds, but on exit there is no "
"'fooble' left in :data:`sys.modules`."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1079
#: ../Doc/library/unittest.mock-examples.rst:1088
msgid "This also works for the ``from module import name`` form:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1089
#: ../Doc/library/unittest.mock-examples.rst:1098
msgid "With slightly more work you can also mock package imports:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1102
#: ../Doc/library/unittest.mock-examples.rst:1111
msgid "Tracking order of calls and less verbose call assertions"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1104
#: ../Doc/library/unittest.mock-examples.rst:1113
msgid ""
"The :class:`Mock` class allows you to track the *order* of method calls on "
"your mock objects through the :attr:`~Mock.method_calls` attribute. This "
@ -909,7 +916,7 @@ msgid ""
"however we can use :attr:`~Mock.mock_calls` to achieve the same effect."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1109
#: ../Doc/library/unittest.mock-examples.rst:1118
msgid ""
"Because mocks track calls to child mocks in ``mock_calls``, and accessing an "
"arbitrary attribute of a mock creates a child mock, we can create our "
@ -917,20 +924,20 @@ msgid ""
"recorded, in order, in the ``mock_calls`` of the parent:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1126
#: ../Doc/library/unittest.mock-examples.rst:1135
msgid ""
"We can then assert about the calls, including the order, by comparing with "
"the ``mock_calls`` attribute on the manager mock:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1133
#: ../Doc/library/unittest.mock-examples.rst:1142
msgid ""
"If ``patch`` is creating, and putting in place, your mocks then you can "
"attach them to a manager mock using the :meth:`~Mock.attach_mock` method. "
"After attaching calls will be recorded in ``mock_calls`` of the manager."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1153
#: ../Doc/library/unittest.mock-examples.rst:1162
msgid ""
"If many calls have been made, but you're only interested in a particular "
"sequence of them then an alternative is to use the :meth:`~Mock."
@ -939,13 +946,13 @@ msgid ""
"mock_calls` then the assert succeeds."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1167
#: ../Doc/library/unittest.mock-examples.rst:1176
msgid ""
"Even though the chained call ``m.one().two().three()`` aren't the only calls "
"that have been made to the mock, the assert still succeeds."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1170
#: ../Doc/library/unittest.mock-examples.rst:1179
msgid ""
"Sometimes a mock may have several calls made to it, and you are only "
"interested in asserting about *some* of those calls. You may not even care "
@ -953,17 +960,17 @@ msgid ""
"``assert_has_calls``:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1182
#: ../Doc/library/unittest.mock-examples.rst:1191
msgid "More complex argument matching"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1184
#: ../Doc/library/unittest.mock-examples.rst:1193
msgid ""
"Using the same basic concept as :data:`ANY` we can implement matchers to do "
"more complex assertions on objects used as arguments to mocks."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1187
#: ../Doc/library/unittest.mock-examples.rst:1196
msgid ""
"Suppose we expect some object to be passed to a mock that by default "
"compares equal based on object identity (which is the Python default for "
@ -973,28 +980,28 @@ msgid ""
"attributes for us."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1194
#: ../Doc/library/unittest.mock-examples.rst:1203
msgid ""
"You can see in this example how a 'standard' call to ``assert_called_with`` "
"isn't sufficient:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1209
#: ../Doc/library/unittest.mock-examples.rst:1218
msgid ""
"A comparison function for our ``Foo`` class might look something like this:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1221
#: ../Doc/library/unittest.mock-examples.rst:1230
msgid ""
"And a matcher object that can use comparison functions like this for its "
"equality operation would look something like this:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1232
#: ../Doc/library/unittest.mock-examples.rst:1241
msgid "Putting all this together:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1237
#: ../Doc/library/unittest.mock-examples.rst:1246
msgid ""
"The ``Matcher`` is instantiated with our compare function and the ``Foo`` "
"object we want to compare against. In ``assert_called_with`` the ``Matcher`` "
@ -1004,13 +1011,13 @@ msgid ""
"raised:"
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1250
#: ../Doc/library/unittest.mock-examples.rst:1259
msgid ""
"With a bit of tweaking you could have the comparison function raise the :exc:"
"`AssertionError` directly and provide a more useful failure message."
msgstr ""
#: ../Doc/library/unittest.mock-examples.rst:1253
#: ../Doc/library/unittest.mock-examples.rst:1262
msgid ""
"As of version 1.5, the Python testing library `PyHamcrest <https://"
"pyhamcrest.readthedocs.io/>`_ provides similar functionality, that may be "

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-29 16:06+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: 2018-09-27 11:28+0200\n"
"Last-Translator: Lowic Mangin <louis.gabriel@orange.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -765,8 +765,8 @@ msgstr ""
#: ../Doc/library/unittest.rst:588
msgid ""
"Mark the test as an expected failure. If the test fails when run, the test "
"is not counted as a failure."
"Mark the test as an expected failure. If the test fails it will be "
"considered a success. If the test passes, it will be considered a failure."
msgstr ""
#: ../Doc/library/unittest.rst:593

View file

@ -5,8 +5,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"PO-Revision-Date: 2018-12-14 10:39+0100\n"
"POT-Creation-Date: 2018-12-17 21:38+0100\n"
"PO-Revision-Date: 2018-12-17 21:52+0100\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
@ -76,27 +76,30 @@ msgstr ""
"exécutant la commande ``venv`` ::"
#: ../Doc/using/venv-create.inc:6
#, fuzzy
msgid ""
"Running this command creates the target directory (creating any parent "
"directories that don't exist already) and places a ``pyvenv.cfg`` file in it "
"with a ``home`` key pointing to the Python installation from which the "
"command was run. It also creates a ``bin`` (or ``Scripts`` on Windows) "
"subdirectory containing a copy of the ``python`` binary (or binaries, in the "
"case of Windows). It also creates an (initially empty) ``lib/pythonX.Y/site-"
"packages`` subdirectory (on Windows, this is ``Lib\\site-packages``). If an "
"existing directory is specified, it will be re-used."
"subdirectory containing a copy/symlink of the Python binary/binaries (as "
"appropriate for the platform or arguments used at environment creation "
"time). It also creates an (initially empty) ``lib/pythonX.Y/site-packages`` "
"subdirectory (on Windows, this is ``Lib\\site-packages``). If an existing "
"directory is specified, it will be re-used."
msgstr ""
"Lancer cette commande crée le dossier du **venv** (en créant tous les "
"dossiers parents qui n'existent pas déjà) et crée un fichier ``pyenv.cfg`` à "
"lintérieur de ce dossier avec une clé ``home`` qui pointe sur "
"l'installation Python depuis laquelle cette commande a été lancée. Il crée "
"aussi un sous-dossier ``bin`` (ou ``Scripts`` sur Windows) contenant une "
"copie du binaire ``python`` (ou binaires, dans le cas de Windows). Il crée "
"aussi un sous-dossier (initialement vide) ``lib/pythonX.Y/site-packages`` "
"(Sur Windows, c'est ``Lib\\site-packages``). Si un dossier existant est "
"spécifié, il sera réutilisé."
"copie (ou un lien symbolique) du ou des binaire ``python`` (dépend de la "
"plateforme et des paramètres donnés à la création de l'environnement). Il "
"crée aussi un sous-dossier (initialement vide) ``lib/pythonX.Y/site-"
"packages`` (Sur Windows, c'est ``Lib\\site-packages``). Si un dossier "
"existant est spécifié, il sera réutilisé."
#: ../Doc/using/venv-create.inc:15
#: ../Doc/using/venv-create.inc:16
msgid ""
"``pyvenv`` was the recommended tool for creating virtual environments for "
"Python 3.3 and 3.4, and is `deprecated in Python 3.6 <https://docs.python."
@ -106,18 +109,18 @@ msgstr ""
"Python 3.3 et 3.4, et est `obsolète depuis Python 3.6 <https://docs.python."
"org/dev/whatsnew/3.6.html#deprecated-features>`_."
#: ../Doc/using/venv-create.inc:20
#: ../Doc/using/venv-create.inc:21
msgid ""
"The use of ``venv`` is now recommended for creating virtual environments."
msgstr ""
"L'utilisation de ``venv`` est maintenant recommandée pour créer vos "
"environnements virtuels."
#: ../Doc/using/venv-create.inc:25
#: ../Doc/using/venv-create.inc:26
msgid "On Windows, invoke the ``venv`` command as follows::"
msgstr "Sur Windows, appelez la commande ``venv`` comme suit ::"
#: ../Doc/using/venv-create.inc:29
#: ../Doc/using/venv-create.inc:30
msgid ""
"Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for "
"your :ref:`Python installation <using-on-windows>`::"
@ -125,19 +128,19 @@ msgstr ""
"Alternativement, si vous avez configuré les variables ``PATH`` et "
"``PATHEXT`` pour votre :ref:`installation Python <using-on-windows>` ::"
#: ../Doc/using/venv-create.inc:34
#: ../Doc/using/venv-create.inc:35
msgid "The command, if run with ``-h``, will show the available options::"
msgstr ""
"La commande, si lancée avec ``-h``, montrera les options disponibles ::"
#: ../Doc/using/venv-create.inc:64
#: ../Doc/using/venv-create.inc:65
msgid ""
"Installs pip by default, added the ``--without-pip`` and ``--copies`` "
"options"
msgstr ""
"Installe pip par défaut, ajout des options ``--without-pip`` et ``--copies``"
#: ../Doc/using/venv-create.inc:68
#: ../Doc/using/venv-create.inc:69
msgid ""
"In earlier versions, if the target directory already existed, an error was "
"raised, unless the ``--clear`` or ``--upgrade`` option was provided."
@ -146,7 +149,7 @@ msgstr ""
"une erreur était levée, sauf si l'option ``--clear`` ou ``--upgrade`` était "
"incluse."
#: ../Doc/using/venv-create.inc:72
#: ../Doc/using/venv-create.inc:73
msgid ""
"The created ``pyvenv.cfg`` file also includes the ``include-system-site-"
"packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-"
@ -156,7 +159,7 @@ msgstr ""
"packages``, dont la valeur est ``true`` si ``venv`` est lancé avec l'option "
"``--system-site-packages``, sinon sa valeur est ``false``."
#: ../Doc/using/venv-create.inc:76
#: ../Doc/using/venv-create.inc:77
msgid ""
"Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be "
"invoked to bootstrap ``pip`` into the virtual environment."
@ -164,7 +167,7 @@ msgstr ""
"Sauf si l'option ``--without-pip`` est incluse, :mod:`ensurepip` sera "
"invoqué pour amorcer ``pip`` dans l'environnement virtuel."
#: ../Doc/using/venv-create.inc:79
#: ../Doc/using/venv-create.inc:80
msgid ""
"Multiple paths can be given to ``venv``, in which case an identical virtual "
"environment will be created, according to the given options, at each "
@ -174,11 +177,13 @@ msgstr ""
"environnement virtuel sera créé, en fonction des options incluses, à chaque "
"chemin donné."
#: ../Doc/using/venv-create.inc:83
#: ../Doc/using/venv-create.inc:84
#, fuzzy
msgid ""
"Once a virtual environment has been created, it can be \"activated\" using a "
"script in the virtual environment's binary directory. The invocation of the "
"script is platform-specific:"
"script is platform-specific (`<venv>` must be replaced by the path of the "
"directory containing the virtual environment):"
msgstr ""
"Une fois qu'un environnement virtuel est créé, il peut être \"activé\" en "
"utilisant un script dans le dossier binaire de l'environnement virtuel. "
@ -186,67 +191,67 @@ msgstr ""
"être remplacé par le chemin d'accès du répertoire contenant l'environnement "
"virtuel) :"
#: ../Doc/using/venv-create.inc:88
#: ../Doc/using/venv-create.inc:90
msgid "Platform"
msgstr "Plateforme"
#: ../Doc/using/venv-create.inc:88
#: ../Doc/using/venv-create.inc:90
msgid "Shell"
msgstr "Invite de commande"
#: ../Doc/using/venv-create.inc:88
#: ../Doc/using/venv-create.inc:90
msgid "Command to activate virtual environment"
msgstr "Commande pour activer l'environnement virtuel"
#: ../Doc/using/venv-create.inc:90
#: ../Doc/using/venv-create.inc:92
msgid "Posix"
msgstr "Posix"
#: ../Doc/using/venv-create.inc:90
#: ../Doc/using/venv-create.inc:92
msgid "bash/zsh"
msgstr "bash/zsh"
#: ../Doc/using/venv-create.inc:90
#: ../Doc/using/venv-create.inc:92
msgid "$ source <venv>/bin/activate"
msgstr "``$ source <venv>/bin/activate``"
#: ../Doc/using/venv-create.inc:92
#: ../Doc/using/venv-create.inc:94
msgid "fish"
msgstr "fish"
#: ../Doc/using/venv-create.inc:92
#: ../Doc/using/venv-create.inc:94
msgid "$ . <venv>/bin/activate.fish"
msgstr "``$ . <venv>/bin/activate.fish``"
#: ../Doc/using/venv-create.inc:94
#: ../Doc/using/venv-create.inc:96
msgid "csh/tcsh"
msgstr "csh/tcsh"
#: ../Doc/using/venv-create.inc:94
#: ../Doc/using/venv-create.inc:96
msgid "$ source <venv>/bin/activate.csh"
msgstr "``$ source <venv>/bin/activate.csh``"
#: ../Doc/using/venv-create.inc:96
#: ../Doc/using/venv-create.inc:98
msgid "Windows"
msgstr "Windows"
#: ../Doc/using/venv-create.inc:96
#: ../Doc/using/venv-create.inc:98
msgid "cmd.exe"
msgstr "cmd.exe"
#: ../Doc/using/venv-create.inc:96
#: ../Doc/using/venv-create.inc:98
msgid "C:\\\\> <venv>\\\\Scripts\\\\activate.bat"
msgstr "``C:\\\\{venv}\\\\Scripts\\\\activate.bat``"
#: ../Doc/using/venv-create.inc:98
#: ../Doc/using/venv-create.inc:100
msgid "PowerShell"
msgstr "PowerShell"
#: ../Doc/using/venv-create.inc:98
#: ../Doc/using/venv-create.inc:100
msgid "PS C:\\\\> <venv>\\\\Scripts\\\\Activate.ps1"
msgstr "``PS C:\\\\> <venv>\\\\Scripts\\\\Activate.ps1``"
#: ../Doc/using/venv-create.inc:101
#: ../Doc/using/venv-create.inc:103
msgid ""
"You don't specifically *need* to activate an environment; activation just "
"prepends the virtual environment's binary directory to your path, so that "
@ -263,7 +268,7 @@ msgstr ""
"installés dans un environnement virtuel devraient être exécutables sans "
"l'activer, et se lancer avec l'environnement virtuel Python automatiquement."
#: ../Doc/using/venv-create.inc:108
#: ../Doc/using/venv-create.inc:110
msgid ""
"You can deactivate a virtual environment by typing \"deactivate\" in your "
"shell. The exact mechanism is platform-specific: for example, the Bash "
@ -278,7 +283,7 @@ msgstr ""
"``deactivate.bat`` et ``Deactivate.ps1`` qui sont installés quand "
"l'environnement virtuel est créé."
#: ../Doc/using/venv-create.inc:114
#: ../Doc/using/venv-create.inc:116
msgid "``fish`` and ``csh`` activation scripts."
msgstr "Les scripts d'activation pour ``fish`` et ``csh``."
@ -468,7 +473,7 @@ msgstr ""
"activé (par défaut à ``None`` ce qui veux dire qu'il utilisera le nom du "
"dossier de l'environnement)."
#: ../Doc/library/venv.rst:132 ../Doc/library/venv.rst:240
#: ../Doc/library/venv.rst:132 ../Doc/library/venv.rst:243
msgid "Added the ``with_pip`` parameter"
msgstr "Ajout du paramètre ``with_pip``"
@ -476,7 +481,7 @@ msgstr "Ajout du paramètre ``with_pip``"
msgid "Added the ``prompt`` parameter"
msgstr "Ajout du paramètre ``prompt``"
#: ../Doc/library/venv.rst:139
#: ../Doc/library/venv.rst:138
msgid ""
"Creators of third-party virtual environment tools will be free to use the "
"provided ``EnvBuilder`` class as a base class."
@ -484,12 +489,12 @@ msgstr ""
"Les créateurs des outils de création d'environnement virtuel externes seront "
"libres d'utiliser la classe ``EnvBuilder`` en tant que classe de base."
#: ../Doc/library/venv.rst:142
#: ../Doc/library/venv.rst:141
msgid "The returned env-builder is an object which has a method, ``create``:"
msgstr ""
"Le **env-builder** retourné est un objet qui a une méthode, ``create`` :"
#: ../Doc/library/venv.rst:146
#: ../Doc/library/venv.rst:145
msgid ""
"This method takes as required argument the path (absolute or relative to the "
"current directory) of the target directory which is to contain the virtual "
@ -501,7 +506,7 @@ msgstr ""
"l'environnement virtuel. La méthode ``create`` doit soit créer un "
"environnement dans le dossier spécifié, soit lever une exception."
#: ../Doc/library/venv.rst:152
#: ../Doc/library/venv.rst:151
msgid ""
"The ``create`` method of the ``EnvBuilder`` class illustrates the hooks "
"available for subclass customization::"
@ -509,7 +514,7 @@ msgstr ""
"La méthode ``create`` de la classe ``EnvBuilder`` illustre les points "
"d'entrées disponibles pour la personnalisation de sous-classes ::"
#: ../Doc/library/venv.rst:167
#: ../Doc/library/venv.rst:166
msgid ""
"Each of the methods :meth:`ensure_directories`, :meth:"
"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :"
@ -519,7 +524,7 @@ msgstr ""
"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` et :meth:"
"`post_setup` peuvent être écrasés."
#: ../Doc/library/venv.rst:173
#: ../Doc/library/venv.rst:172
msgid ""
"Creates the environment directory and all necessary directories, and returns "
"a context object. This is just a holder for attributes (such as paths), for "
@ -533,16 +538,17 @@ msgstr ""
"peuvent déjà exister. tant que ``clear`` ou ``upgrade`` ont été spécifiés "
"pour permettre de telles opérations dans un dossier d'environnement existant."
#: ../Doc/library/venv.rst:181
#: ../Doc/library/venv.rst:180
msgid "Creates the ``pyvenv.cfg`` configuration file in the environment."
msgstr "Crée le fichier de configuration ``pyenv.cfg`` dans l'environnement."
#: ../Doc/library/venv.rst:185
#: ../Doc/library/venv.rst:184
#, fuzzy
msgid ""
"Creates a copy of the Python executable (and, under Windows, DLLs) in the "
"environment. On a POSIX system, if a specific executable ``python3.x`` was "
"used, symlinks to ``python`` and ``python3`` will be created pointing to "
"that executable, unless files with those names already exist."
"Creates a copy of the Python executable in the environment on POSIX systems. "
"If a specific executable ``python3.x`` was used, symlinks to ``python`` and "
"``python3`` will be created pointing to that executable, unless files with "
"those names already exist."
msgstr ""
"Crée une copie de lexécutable Python (et, sous Windows, les DLLs) dans "
"l'environnement. Sur un système POSIX, si un exécutable ``python3.x`` a été "
@ -550,15 +556,16 @@ msgstr ""
"pointant vers cet exécutable, sauf si des fichiers avec ces noms existent "
"déjà."
#: ../Doc/library/venv.rst:193
#: ../Doc/library/venv.rst:191
#, fuzzy
msgid ""
"Installs activation scripts appropriate to the platform into the virtual "
"environment."
"environment. On Windows, also installs the ``python[w].exe`` scripts."
msgstr ""
"Installe des scripts d'activation appropriés pour la plateforme dans "
"l'environnement virtuel."
#: ../Doc/library/venv.rst:198
#: ../Doc/library/venv.rst:196
msgid ""
"A placeholder method which can be overridden in third party implementations "
"to pre-install packages in the virtual environment or perform other post-"
@ -568,7 +575,14 @@ msgstr ""
"implémentation externes pour pré installer des paquets dans l'environnement "
"virtuel ou pour exécuter des étapes post-création."
#: ../Doc/library/venv.rst:202
#: ../Doc/library/venv.rst:200
msgid ""
"Windows now uses redirector scripts for ``python[w].exe`` instead of copying "
"the actual binaries, and so :meth:`setup_python` does nothing unless running "
"from a build in the source tree."
msgstr ""
#: ../Doc/library/venv.rst:205
msgid ""
"In addition, :class:`EnvBuilder` provides this utility method that can be "
"called from :meth:`setup_scripts` or :meth:`post_setup` in subclasses to "
@ -579,7 +593,7 @@ msgstr ""
"pour assister dans l'installation de scripts customs dans l'environnement "
"virtuel."
#: ../Doc/library/venv.rst:208
#: ../Doc/library/venv.rst:211
msgid ""
"*path* is the path to a directory that should contain subdirectories \"common"
"\", \"posix\", \"nt\", each containing scripts destined for the bin "
@ -593,7 +607,7 @@ msgstr ""
"dossier \"**common**\" et le dossier correspondant à :data:`os.name` sont "
"copiés après quelque remplacement de texte temporaires :"
#: ../Doc/library/venv.rst:214
#: ../Doc/library/venv.rst:217
msgid ""
"``__VENV_DIR__`` is replaced with the absolute path of the environment "
"directory."
@ -601,7 +615,7 @@ msgstr ""
"``__VENV_DIR__`` est remplacé avec le chemin absolu du dossier de "
"l'environnement."
#: ../Doc/library/venv.rst:217
#: ../Doc/library/venv.rst:220
msgid ""
"``__VENV_NAME__`` is replaced with the environment name (final path segment "
"of environment directory)."
@ -609,7 +623,7 @@ msgstr ""
"``__VENV_NAME__`` est remplacé avec le nom de l'environnement (le dernier "
"segment du chemin vers le dossier de l'environnement)."
#: ../Doc/library/venv.rst:220
#: ../Doc/library/venv.rst:223
msgid ""
"``__VENV_PROMPT__`` is replaced with the prompt (the environment name "
"surrounded by parentheses and with a following space)"
@ -617,7 +631,7 @@ msgstr ""
"``__VENV_PROMPT__`` est remplacé par le prompt (nom de l'environnement "
"entouré de parenthèses et avec un espace le suivant)."
#: ../Doc/library/venv.rst:223
#: ../Doc/library/venv.rst:226
msgid ""
"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either "
"``bin`` or ``Scripts``)."
@ -625,7 +639,7 @@ msgstr ""
"``__VENV_BIN_NAME__`` est remplacé par le nom du dossier **bin** (soit "
"``bin`` soit ``Scripts``)."
#: ../Doc/library/venv.rst:226
#: ../Doc/library/venv.rst:229
msgid ""
"``__VENV_PYTHON__`` is replaced with the absolute path of the environment's "
"executable."
@ -633,7 +647,7 @@ msgstr ""
"``__VENV_PYTHON__`` est remplacé avec le chemin absolu de lexécutable de "
"l'environnement."
#: ../Doc/library/venv.rst:229
#: ../Doc/library/venv.rst:232
msgid ""
"The directories are allowed to exist (for when an existing environment is "
"being upgraded)."
@ -641,11 +655,11 @@ msgstr ""
"Les dossiers peuvent exister (pour quand un environnement existant est mis à "
"jour)."
#: ../Doc/library/venv.rst:232
#: ../Doc/library/venv.rst:235
msgid "There is also a module-level convenience function:"
msgstr "Il y a aussi une fonction pratique au niveau du module :"
#: ../Doc/library/venv.rst:237
#: ../Doc/library/venv.rst:240
msgid ""
"Create an :class:`EnvBuilder` with the given keyword arguments, and call "
"its :meth:`~EnvBuilder.create` method with the *env_dir* argument."
@ -653,11 +667,11 @@ msgstr ""
"Crée une :class:`EnvBuilder` avec les arguments donnés, et appelle sa "
"méthode :meth:`~EnvBuilder.create` avec l'argument *env_dir*."
#: ../Doc/library/venv.rst:244
#: ../Doc/library/venv.rst:247
msgid "An example of extending ``EnvBuilder``"
msgstr "Un exemple d'extension de ``EnvBuilder``"
#: ../Doc/library/venv.rst:246
#: ../Doc/library/venv.rst:249
msgid ""
"The following script shows how to extend :class:`EnvBuilder` by implementing "
"a subclass which installs setuptools and pip into a created virtual "
@ -667,7 +681,7 @@ msgstr ""
"implémentant une sous-classe qui installe **setuptools** et **pip** dans un "
"environnement créé ::"
#: ../Doc/library/venv.rst:465
#: ../Doc/library/venv.rst:468
msgid ""
"This script is also available for download `online <https://gist.github.com/"
"vsajip/4673395>`_."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2017-08-10 00:54+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -78,7 +78,7 @@ msgstr ""
#: ../Doc/library/wave.rst:42
msgid ""
"The :func:`.open` function may be used in a :keyword:`with` statement. When "
"the :keyword:`with` block completes, the :meth:`Wave_read.close() <wave."
"the :keyword:`!with` block completes, the :meth:`Wave_read.close() <wave."
"Wave_read.close>` or :meth:`Wave_write.close() <wave.Wave_write.close()>` "
"method is called."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-09-29 19:35+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -154,7 +154,7 @@ msgstr ""
msgid ""
"You can avoid calling this method explicitly by using the :keyword:`with` "
"statement. The following code will automatically unlink *dom* when the :"
"keyword:`with` block is exited::"
"keyword:`!with` block is exited::"
msgstr ""
#: ../Doc/library/xml.dom.minidom.rst:137

View file

@ -5,14 +5,14 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
"POT-Creation-Date: 2018-10-18 10:21+0200\n"
"PO-Revision-Date: 2018-11-30 14:07+0100\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\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"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"X-Generator: Poedit 2.2\n"
#: ../Doc/library/xml.sax.utils.rst:2

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-12 22:58+0100\n"
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-12-12 23:36+0100\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -283,9 +283,10 @@ msgstr ""
"appropriée pour un fichier archive ZIP vide sera écrite dans le fichier."
#: ../Doc/library/zipfile.rst:176
#, fuzzy
msgid ""
"ZipFile is also a context manager and therefore supports the :keyword:`with` "
"statement. In the example, *myzip* is closed after the :keyword:`with` "
"statement. In the example, *myzip* is closed after the :keyword:`!with` "
"statement's suite is finished---even if an exception occurs::"
msgstr ""
"*ZipFile* est aussi un gestionnaire de contexte et gère ainsi la "
@ -303,7 +304,7 @@ msgid "Added support for :mod:`bzip2 <bz2>` and :mod:`lzma` compression."
msgstr ""
"Ajout de la gestion de la compression :mod:`bzip2 <bz2>` et :mod:`lzma`."
#: ../Doc/library/zipfile.rst:189 ../Doc/library/zipfile.rst:469
#: ../Doc/library/zipfile.rst:189 ../Doc/library/zipfile.rst:464
msgid "ZIP64 extensions are enabled by default."
msgstr "Les extensions ZIP64 sont activées par défaut."
@ -623,26 +624,13 @@ msgstr ""
#: ../Doc/library/zipfile.rst:383
msgid ""
"There is no official file name encoding for ZIP files. If you have unicode "
"file names, you must convert them to byte strings in your desired encoding "
"before passing them to :meth:`write`. WinZip interprets all file names as "
"encoded in CP437, also known as DOS Latin."
msgstr ""
"Il n'y a pas d'encodage de nom de fichier officiel pour les fichiers ZIP. Si "
"vous avez des noms de fichier *unicode*, vous devez les convertir en chaînes "
"d'octets dans l'encodage désiré avant de les passer à :meth:`write`. "
"*WinZip* interprète tous les noms de fichier comme encodés en CP437, aussi "
"connu sous le nom de DOS Latin."
#: ../Doc/library/zipfile.rst:390
msgid ""
"Archive names should be relative to the archive root, that is, they should "
"not start with a path separator."
msgstr ""
"Les noms d'archive doivent être relatifs à la racine de l'archive, c'est-à-"
"dire qu'ils ne doivent pas commencer par un séparateur de chemin."
#: ../Doc/library/zipfile.rst:395
#: ../Doc/library/zipfile.rst:388
msgid ""
"If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a "
"null byte, the name of the file in the archive will be truncated at the null "
@ -651,7 +639,7 @@ msgstr ""
"Si ``arcname`` (ou ``filename`` si ``arcname`` n'est pas donné) contient un "
"octet nul, le nom du fichier dans l'archive sera tronqué à l'octet nul."
#: ../Doc/library/zipfile.rst:398
#: ../Doc/library/zipfile.rst:391
msgid ""
"Calling :meth:`write` on a ZipFile created with mode ``'r'`` or a closed "
"ZipFile will raise a :exc:`ValueError`. Previously, a :exc:`RuntimeError` "
@ -660,24 +648,27 @@ msgstr ""
"Appeler :meth:`.write` sur un fichier ZipFile fermé lève une erreur :exc:"
"`ValueError`. Précédemment, une erreur :exc:`RuntimeError` était levée."
#: ../Doc/library/zipfile.rst:407
#: ../Doc/library/zipfile.rst:400
#, fuzzy
msgid ""
"Write the string *data* to the archive; *zinfo_or_arcname* is either the "
"file name it will be given in the archive, or a :class:`ZipInfo` instance. "
"If it's an instance, at least the filename, date, and time must be given. "
"If it's a name, the date and time is set to the current date and time. The "
"archive must be opened with mode ``'w'``, ``'x'`` or ``'a'``."
"Write a file into the archive. The contents is *data*, which may be either "
"a :class:`str` or a :class:`bytes` instance; if it is a :class:`str`, it is "
"encoded as UTF-8 first. *zinfo_or_arcname* is either the file name it will "
"be given in the archive, or a :class:`ZipInfo` instance. If it's an "
"instance, at least the filename, date, and time must be given. If it's a "
"name, the date and time is set to the current date and time. The archive "
"must be opened with mode ``'w'``, ``'x'`` or ``'a'``."
msgstr ""
"Écrit un fichier dans l'archive. Le contenu est *data*, qui peut être soit "
"une instance de :class:`str` ou une instance de :class:`bytes` ; s'il s'agit "
"d'une :class:`str`, il est encodé en UTF-8 au préalable. *zinfo_or_arcname* "
"est soit le nom de fichier qu'il sera donné dans l'archive, soit une "
"instance de :class:`ZipInfo`. Si c'est une instance, au moins le "
"nom de fichier, la date et l'heure doivent être donnés. S'il s'agit d'un "
"nom, la date et l'heure sont définies sur la date et l'heure actuelles. "
"L'archive doit être ouverte avec le mode ``'w'``, ``'x'`` ou ``'a'``."
"instance de :class:`ZipInfo`. Si c'est une instance, au moins le nom de "
"fichier, la date et l'heure doivent être donnés. S'il s'agit d'un nom, la "
"date et l'heure sont définies sur la date et l'heure actuelles. L'archive "
"doit être ouverte avec le mode ``'w'``, ``'x'`` ou ``'a'``."
#: ../Doc/library/zipfile.rst:413
#: ../Doc/library/zipfile.rst:408
msgid ""
"If given, *compress_type* overrides the value given for the *compression* "
"parameter to the constructor for the new entry, or in the *zinfo_or_arcname* "
@ -689,7 +680,7 @@ msgstr ""
"*zinfo_or_arcname* (si c'est une instance de :class:`ZipInfo`). De la même "
"manière, *compresslevel* le constructeur si donné."
#: ../Doc/library/zipfile.rst:420
#: ../Doc/library/zipfile.rst:415
msgid ""
"When passing a :class:`ZipInfo` instance as the *zinfo_or_arcname* "
"parameter, the compression method used will be that specified in the "
@ -702,11 +693,11 @@ msgstr ""
"défaut, le constructeur de la classe :class:`ZipInfo` définit ce membre à :"
"const:`ZIP_STORED`."
#: ../Doc/library/zipfile.rst:425
#: ../Doc/library/zipfile.rst:420
msgid "The *compress_type* argument."
msgstr "L'argument *compress_type*."
#: ../Doc/library/zipfile.rst:428
#: ../Doc/library/zipfile.rst:423
msgid ""
"Calling :meth:`writestr` on a ZipFile created with mode ``'r'`` or a closed "
"ZipFile will raise a :exc:`ValueError`. Previously, a :exc:`RuntimeError` "
@ -715,15 +706,15 @@ msgstr ""
"Appeler :meth:`.writestr` sur un fichier ZipFile fermé lève une erreur :exc:"
"`ValueError`. Précédemment, une erreur :exc:`RuntimeError` était levée."
#: ../Doc/library/zipfile.rst:434
#: ../Doc/library/zipfile.rst:429
msgid "The following data attributes are also available:"
msgstr "Les attributs suivants sont aussi disponibles :"
#: ../Doc/library/zipfile.rst:438
#: ../Doc/library/zipfile.rst:433
msgid "Name of the ZIP file."
msgstr "Nom du fichier ZIP."
#: ../Doc/library/zipfile.rst:442
#: ../Doc/library/zipfile.rst:437
msgid ""
"The level of debug output to use. This may be set from ``0`` (the default, "
"no output) to ``3`` (the most output). Debugging information is written to "
@ -733,23 +724,24 @@ msgstr ""
"défaut, pas d'affichage) à ``3`` (affichage le plus bavard). Les "
"informations de débogage sont affichées sur ``sys.stdout``."
#: ../Doc/library/zipfile.rst:448
#: ../Doc/library/zipfile.rst:443
#, fuzzy
msgid ""
"The comment text associated with the ZIP file. If assigning a comment to a :"
"class:`ZipFile` instance created with mode ``'w'``, ``'x'`` or ``'a'``, this "
"should be a string no longer than 65535 bytes. Comments longer than this "
"will be truncated in the written archive when :meth:`close` is called."
"The comment associated with the ZIP file as a :class:`bytes` object. If "
"assigning a comment to a :class:`ZipFile` instance created with mode "
"``'w'``, ``'x'`` or ``'a'``, it should be no longer than 65535 bytes. "
"Comments longer than this will be truncated."
msgstr ""
"Le commentaire associé au fichier ZIP en tant qu'objet :class:`bytes`. Si "
"vous affectez un commentaire à une instance de :class:`ZipFile` créée avec "
"le mode ``'w'``, ``'x'`` ou ``'a'``, elle ne doit pas dépasser 65535 octets. "
"Les commentaires plus longs que cette taille seront tronqués."
#: ../Doc/library/zipfile.rst:458
#: ../Doc/library/zipfile.rst:453
msgid "PyZipFile Objects"
msgstr "Objets *PyZipFile*"
#: ../Doc/library/zipfile.rst:460
#: ../Doc/library/zipfile.rst:455
msgid ""
"The :class:`PyZipFile` constructor takes the same parameters as the :class:"
"`ZipFile` constructor, and one additional parameter, *optimize*."
@ -757,18 +749,18 @@ msgstr ""
"Le constructeur de :class:`PyZipFile` prend les mêmes paramètres que le "
"constructeur de :class:`ZipFile` avec un paramètre additionnel *optimize*."
#: ../Doc/library/zipfile.rst:466
#: ../Doc/library/zipfile.rst:461
msgid "The *optimize* parameter."
msgstr "Le paramètre *optimize*."
#: ../Doc/library/zipfile.rst:472
#: ../Doc/library/zipfile.rst:467
msgid ""
"Instances have one method in addition to those of :class:`ZipFile` objects:"
msgstr ""
"Les instances ont une méthode supplémentaire par rapport aux objets :class:"
"`ZipFile` :"
#: ../Doc/library/zipfile.rst:476
#: ../Doc/library/zipfile.rst:471
msgid ""
"Search for files :file:`\\*.py` and add the corresponding file to the "
"archive."
@ -776,7 +768,7 @@ msgstr ""
"Cherche les fichiers :file:`\\*.py` et ajoute le fichier correspondant à "
"l'archive."
#: ../Doc/library/zipfile.rst:479
#: ../Doc/library/zipfile.rst:474
msgid ""
"If the *optimize* parameter to :class:`PyZipFile` was not given or ``-1``, "
"the corresponding file is a :file:`\\*.pyc` file, compiling if necessary."
@ -785,7 +777,7 @@ msgstr ""
"donné ou est à ``-1``, le fichier correspondant est un fichier :file:`\\*."
"pyc`, à compiler si nécessaire."
#: ../Doc/library/zipfile.rst:482
#: ../Doc/library/zipfile.rst:477
msgid ""
"If the *optimize* parameter to :class:`PyZipFile` was ``0``, ``1`` or ``2``, "
"only files with that optimization level (see :func:`compile`) are added to "
@ -795,7 +787,7 @@ msgstr ""
"``0``, ``1`` ou ``2``, ne sont ajoutés dans l'archive que les fichiers avec "
"ce niveau d'optimisation (voir :func:`compile`), à compiler si nécessaire."
#: ../Doc/library/zipfile.rst:486
#: ../Doc/library/zipfile.rst:481
msgid ""
"If *pathname* is a file, the filename must end with :file:`.py`, and just "
"the (corresponding :file:`\\*.pyc`) file is added at the top level (no path "
@ -818,11 +810,11 @@ msgstr ""
"s'il y a des sous-répertoires qui sont des répertoires de paquet, ils sont "
"tous ajoutés récursivement dans un ordre trié."
#: ../Doc/library/zipfile.rst:496
#: ../Doc/library/zipfile.rst:491
msgid "*basename* is intended for internal use only."
msgstr "*basename* n'est sensé être utilisé qu'en interne."
#: ../Doc/library/zipfile.rst:498
#: ../Doc/library/zipfile.rst:493
msgid ""
"*filterfunc*, if given, must be a function taking a single string argument. "
"It will be passed each path (including each individual full file path) "
@ -841,31 +833,31 @@ msgstr ""
"``test_``, nous pouvons utiliser une fonction *filterfunc* pour les "
"exclure : ::"
#: ../Doc/library/zipfile.rst:512
#: ../Doc/library/zipfile.rst:507
msgid "The :meth:`writepy` method makes archives with file names like this::"
msgstr ""
"La méthode :meth:`writepy` crée des archives avec des noms de fichier comme "
"suit : ::"
#: ../Doc/library/zipfile.rst:521
#: ../Doc/library/zipfile.rst:516
msgid "The *filterfunc* parameter."
msgstr "Le paramètre *filterfunc*."
#: ../Doc/library/zipfile.rst:524
#: ../Doc/library/zipfile.rst:519
msgid "The *pathname* parameter accepts a :term:`path-like object`."
msgstr ""
"Le paramètre *pathname* accepte un objet chemin-compatible :term:`path-like "
"object`."
#: ../Doc/library/zipfile.rst:527
#: ../Doc/library/zipfile.rst:522
msgid "Recursion sorts directory entries."
msgstr "La récursion trie les entrées de dossier."
#: ../Doc/library/zipfile.rst:534
#: ../Doc/library/zipfile.rst:529
msgid "ZipInfo Objects"
msgstr "Objets *ZipInfo*"
#: ../Doc/library/zipfile.rst:536
#: ../Doc/library/zipfile.rst:531
msgid ""
"Instances of the :class:`ZipInfo` class are returned by the :meth:`.getinfo` "
"and :meth:`.infolist` methods of :class:`ZipFile` objects. Each object "
@ -875,7 +867,7 @@ msgstr ""
"méthodes :meth:`.getinfo` et :meth:`.infolist` des objets :class:`ZipFile`. "
"Chaque objet stocke des informations sur un seul membre de l'archive ZIP."
#: ../Doc/library/zipfile.rst:540
#: ../Doc/library/zipfile.rst:535
msgid ""
"There is one classmethod to make a :class:`ZipInfo` instance for a "
"filesystem file:"
@ -883,7 +875,7 @@ msgstr ""
"Il y a une méthode de classe pour créer une instance de :class:`ZipInfo` "
"pour un fichier du système de fichiers :"
#: ../Doc/library/zipfile.rst:545
#: ../Doc/library/zipfile.rst:540
msgid ""
"Construct a :class:`ZipInfo` instance for a file on the filesystem, in "
"preparation for adding it to a zip file."
@ -891,13 +883,13 @@ msgstr ""
"Construit une instance de :class:`ZipInfo` pour le fichier du système de "
"fichiers, en préparation de l'ajouter à un fichier ZIP."
#: ../Doc/library/zipfile.rst:548
#: ../Doc/library/zipfile.rst:543
msgid "*filename* should be the path to a file or directory on the filesystem."
msgstr ""
"*filename* doit être un chemin vers un fichier ou un répertoire dans le "
"système de fichiers."
#: ../Doc/library/zipfile.rst:550
#: ../Doc/library/zipfile.rst:545
msgid ""
"If *arcname* is specified, it is used as the name within the archive. If "
"*arcname* is not specified, the name will be the same as *filename*, but "
@ -907,31 +899,31 @@ msgstr ""
"*arcname* n'est pas spécifié, le nom sera le même que *filename* mais sans "
"lettre de disque et sans séparateur de chemin en première position."
#: ../Doc/library/zipfile.rst:556
#: ../Doc/library/zipfile.rst:551
msgid "The *filename* parameter accepts a :term:`path-like object`."
msgstr ""
"Le paramètre *filename* accepte un objet chemin-compatible :term:`path-like "
"object`."
#: ../Doc/library/zipfile.rst:560
#: ../Doc/library/zipfile.rst:555
msgid "Instances have the following methods and attributes:"
msgstr "Les instances ont les méthodes et attributs suivants :"
#: ../Doc/library/zipfile.rst:564
#: ../Doc/library/zipfile.rst:559
msgid "Return ``True`` if this archive member is a directory."
msgstr "Retourne ``True`` si le membre d'archive est un répertoire."
#: ../Doc/library/zipfile.rst:566
#: ../Doc/library/zipfile.rst:561
msgid "This uses the entry's name: directories should always end with ``/``."
msgstr ""
"Utilise le nom de l'entrée : les répertoires doivent toujours se terminer "
"par ``/``."
#: ../Doc/library/zipfile.rst:573
#: ../Doc/library/zipfile.rst:568
msgid "Name of the file in the archive."
msgstr "Nom du fichier dans l'archive."
#: ../Doc/library/zipfile.rst:578
#: ../Doc/library/zipfile.rst:573
msgid ""
"The time and date of the last modification to the archive member. This is a "
"tuple of six values:"
@ -939,138 +931,140 @@ msgstr ""
"Date et heure de dernière modification pour le membre de l'archive. *Tuple* "
"de six valeurs :"
#: ../Doc/library/zipfile.rst:582
#: ../Doc/library/zipfile.rst:577
msgid "Index"
msgstr "Index"
#: ../Doc/library/zipfile.rst:582
#: ../Doc/library/zipfile.rst:577
msgid "Value"
msgstr "Valeur"
#: ../Doc/library/zipfile.rst:584
#: ../Doc/library/zipfile.rst:579
msgid "``0``"
msgstr "``0``"
#: ../Doc/library/zipfile.rst:584
#: ../Doc/library/zipfile.rst:579
msgid "Year (>= 1980)"
msgstr "Année (>= 1980)"
#: ../Doc/library/zipfile.rst:586
#: ../Doc/library/zipfile.rst:581
msgid "``1``"
msgstr "``1``"
#: ../Doc/library/zipfile.rst:586
#: ../Doc/library/zipfile.rst:581
msgid "Month (one-based)"
msgstr "Mois (indexé à partir de 1)"
#: ../Doc/library/zipfile.rst:588
#: ../Doc/library/zipfile.rst:583
msgid "``2``"
msgstr "``2``"
#: ../Doc/library/zipfile.rst:588
#: ../Doc/library/zipfile.rst:583
msgid "Day of month (one-based)"
msgstr "Jour du mois (indexé à partir de 1)"
#: ../Doc/library/zipfile.rst:590
#: ../Doc/library/zipfile.rst:585
msgid "``3``"
msgstr "``3``"
#: ../Doc/library/zipfile.rst:590
#: ../Doc/library/zipfile.rst:585
msgid "Hours (zero-based)"
msgstr "Heures (indexées à partir de 0)"
#: ../Doc/library/zipfile.rst:592
#: ../Doc/library/zipfile.rst:587
msgid "``4``"
msgstr "``4``"
#: ../Doc/library/zipfile.rst:592
#: ../Doc/library/zipfile.rst:587
msgid "Minutes (zero-based)"
msgstr "Minutes (indexées à partir de 0)"
#: ../Doc/library/zipfile.rst:594
#: ../Doc/library/zipfile.rst:589
msgid "``5``"
msgstr "``5``"
#: ../Doc/library/zipfile.rst:594
#: ../Doc/library/zipfile.rst:589
msgid "Seconds (zero-based)"
msgstr "Secondes (indexées à partir de 0)"
#: ../Doc/library/zipfile.rst:599
#: ../Doc/library/zipfile.rst:594
msgid "The ZIP file format does not support timestamps before 1980."
msgstr "Le format de fichier ZIP ne gère pas les horodatages avant 1980."
#: ../Doc/library/zipfile.rst:604
#: ../Doc/library/zipfile.rst:599
msgid "Type of compression for the archive member."
msgstr "Type de compression du membre d'archive."
#: ../Doc/library/zipfile.rst:609
#: ../Doc/library/zipfile.rst:604
msgid "Comment for the individual archive member as a :class:`bytes` object."
msgstr ""
"Commentaire pour le membre d'archive individuel en tant qu'objet :class:"
"`bytes`."
#: ../Doc/library/zipfile.rst:614
#: ../Doc/library/zipfile.rst:609
#, fuzzy
msgid ""
"Expansion field data. The `PKZIP Application Note`_ contains some comments "
"on the internal structure of the data contained in this string."
"on the internal structure of the data contained in this :class:`bytes` "
"object."
msgstr ""
"Données du champ d'extension. La documentation `PKZIP Application Note`_ "
"contient quelques commentaires sur la structure interne des données "
"contenues dans cet objet :class:`bytes`."
#: ../Doc/library/zipfile.rst:620
#: ../Doc/library/zipfile.rst:616
msgid "System which created ZIP archive."
msgstr "Système ayant créé l'archive ZIP."
#: ../Doc/library/zipfile.rst:625
#: ../Doc/library/zipfile.rst:621
msgid "PKZIP version which created ZIP archive."
msgstr "Version de PKZIP ayant créé l'archive ZIP."
#: ../Doc/library/zipfile.rst:630
#: ../Doc/library/zipfile.rst:626
msgid "PKZIP version needed to extract archive."
msgstr "Version de PKZIP nécessaire à l'extraction de l'archive ZIP."
#: ../Doc/library/zipfile.rst:635
#: ../Doc/library/zipfile.rst:631
msgid "Must be zero."
msgstr "Doit être à zéro."
#: ../Doc/library/zipfile.rst:640
#: ../Doc/library/zipfile.rst:636
msgid "ZIP flag bits."
msgstr "Bits d'options ZIP."
#: ../Doc/library/zipfile.rst:645
#: ../Doc/library/zipfile.rst:641
msgid "Volume number of file header."
msgstr "Numéro de volume de l'entête du fichier."
#: ../Doc/library/zipfile.rst:650
#: ../Doc/library/zipfile.rst:646
msgid "Internal attributes."
msgstr "Attributs internes."
#: ../Doc/library/zipfile.rst:655
#: ../Doc/library/zipfile.rst:651
msgid "External file attributes."
msgstr "Attributs de fichier externes."
#: ../Doc/library/zipfile.rst:660
#: ../Doc/library/zipfile.rst:656
msgid "Byte offset to the file header."
msgstr "Longueur de l'entête du fichier en octets."
#: ../Doc/library/zipfile.rst:665
#: ../Doc/library/zipfile.rst:661
msgid "CRC-32 of the uncompressed file."
msgstr "CRC-32 du fichier décompressé."
#: ../Doc/library/zipfile.rst:670
#: ../Doc/library/zipfile.rst:666
msgid "Size of the compressed data."
msgstr "Taille des données décompressées."
#: ../Doc/library/zipfile.rst:675
#: ../Doc/library/zipfile.rst:671
msgid "Size of the uncompressed file."
msgstr "Taille du fichier décompressé."
#: ../Doc/library/zipfile.rst:682
#: ../Doc/library/zipfile.rst:678
msgid "Command-Line Interface"
msgstr "Interface en ligne de commande"
#: ../Doc/library/zipfile.rst:684
#: ../Doc/library/zipfile.rst:680
msgid ""
"The :mod:`zipfile` module provides a simple command-line interface to "
"interact with ZIP archives."
@ -1078,7 +1072,7 @@ msgstr ""
"Le module :mod:`zipfile` fournit une interface en ligne de commande simple "
"pour interagir avec des archives ZIP."
#: ../Doc/library/zipfile.rst:687
#: ../Doc/library/zipfile.rst:683
msgid ""
"If you want to create a new ZIP archive, specify its name after the :option:"
"`-c` option and then list the filename(s) that should be included:"
@ -1086,11 +1080,11 @@ msgstr ""
"Si vous voulez créer une nouvelle archive ZIP, spécifiez son nom après "
"l'option :option:`-c` et listez ensuite le(s) nom(s) de fichier à inclure :"
#: ../Doc/library/zipfile.rst:694
#: ../Doc/library/zipfile.rst:690
msgid "Passing a directory is also acceptable:"
msgstr "Passer un répertoire est aussi possible :"
#: ../Doc/library/zipfile.rst:700
#: ../Doc/library/zipfile.rst:696
msgid ""
"If you want to extract a ZIP archive into the specified directory, use the :"
"option:`-e` option:"
@ -1098,29 +1092,41 @@ msgstr ""
"Si vous voulez extraire une archive ZIP dans un répertoire donné, utilisez "
"l'option :option:`-e` :"
#: ../Doc/library/zipfile.rst:707
#: ../Doc/library/zipfile.rst:703
msgid "For a list of the files in a ZIP archive, use the :option:`-l` option:"
msgstr ""
"Pour une liste des fichiers dans une archive ZIP, utilisez l'option :option:"
"`-l` :"
#: ../Doc/library/zipfile.rst:715
#: ../Doc/library/zipfile.rst:711
msgid "Command-line options"
msgstr "Options de la ligne de commande"
#: ../Doc/library/zipfile.rst:720
#: ../Doc/library/zipfile.rst:716
msgid "List files in a zipfile."
msgstr "Liste les fichiers dans un fichier ZIP *zipfile*."
#: ../Doc/library/zipfile.rst:725
#: ../Doc/library/zipfile.rst:721
msgid "Create zipfile from source files."
msgstr "Crée un fichier ZIP *zipfile* à partir des fichiers *source*."
#: ../Doc/library/zipfile.rst:730
#: ../Doc/library/zipfile.rst:726
msgid "Extract zipfile into target directory."
msgstr ""
"Extrait le fichier ZIP *zipfile* vers le répertoire cible *output_dir*."
#: ../Doc/library/zipfile.rst:735
#: ../Doc/library/zipfile.rst:731
msgid "Test whether the zipfile is valid or not."
msgstr "Teste si le fichier zip est valide."
#~ msgid ""
#~ "There is no official file name encoding for ZIP files. If you have "
#~ "unicode file names, you must convert them to byte strings in your desired "
#~ "encoding before passing them to :meth:`write`. WinZip interprets all file "
#~ "names as encoded in CP437, also known as DOS Latin."
#~ msgstr ""
#~ "Il n'y a pas d'encodage de nom de fichier officiel pour les fichiers ZIP. "
#~ "Si vous avez des noms de fichier *unicode*, vous devez les convertir en "
#~ "chaînes d'octets dans l'encodage désiré avant de les passer à :meth:"
#~ "`write`. *WinZip* interprète tous les noms de fichier comme encodés en "
#~ "CP437, aussi connu sous le nom de DOS Latin."