From 0e3284c593cfe700ee23b33bbf20c061d6165be5 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 4 Feb 2020 11:14:03 +0100 Subject: [PATCH] make merge (#1125) --- Makefile | 3 +- c-api/code.po | 4 +- c-api/dict.po | 52 ++- c-api/init.po | 223 +++++---- c-api/long.po | 10 +- c-api/mapping.po | 28 +- c-api/object.po | 15 +- c-api/sys.po | 36 +- copyright.po | 5 +- distutils/apiref.po | 4 +- distutils/builtdist.po | 4 +- distutils/commandref.po | 4 +- distutils/configfile.po | 4 +- distutils/examples.po | 4 +- distutils/extending.po | 4 +- distutils/index.po | 4 +- distutils/introduction.po | 4 +- distutils/setupscript.po | 4 +- distutils/sourcedist.po | 4 +- faq/programming.po | 5 +- glossary.po | 205 ++++---- howto/functional.po | 10 +- howto/pyporting.po | 14 +- install/index.po | 4 +- library/array.po | 40 +- library/ast.po | 14 +- library/asyncio-eventloop.po | 774 +++++++++++++++--------------- library/code.po | 4 +- library/ctypes.po | 852 +++++++++++++++++----------------- library/dataclasses.po | 172 +++---- library/datetime.po | 684 ++++++++++++++------------- library/dis.po | 86 ++-- library/ensurepip.po | 9 +- library/enum.po | 7 +- library/idle.po | 275 +++++------ library/importlib.metadata.po | 16 +- library/inspect.po | 631 ++++++++++++------------- library/multiprocessing.po | 5 +- library/os.po | 5 +- library/platform.po | 6 +- library/site.po | 20 +- library/socket.po | 416 ++++++++--------- library/ssl.po | 556 +++++++++++----------- library/statistics.po | 38 +- library/stdtypes.po | 178 +++---- library/sys.po | 27 +- library/threading.po | 213 ++++----- library/time.po | 387 ++++++++------- library/token.po | 96 ++-- library/tokenize.po | 12 +- library/turtle.po | 596 ++++++++++++------------ library/types.po | 91 ++-- library/unittest.mock.po | 530 ++++++++++----------- library/venv.po | 72 +-- library/winreg.po | 433 ++++++++++------- reference/compound_stmts.po | 173 +++---- reference/datamodel.po | 248 +++++----- sphinx.po | 93 ++-- tutorial/classes.po | 19 +- using/cmdline.po | 18 +- using/windows.po | 311 ++++++++----- whatsnew/3.6.po | 16 +- whatsnew/3.7.po | 16 +- whatsnew/3.8.po | 29 +- 64 files changed, 4626 insertions(+), 4196 deletions(-) diff --git a/Makefile b/Makefile index b1140afa..42c9205c 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ # from which we generated our po files. We use it here so when we # test build, we're building with the .rst files that generated our # .po files. -CPYTHON_CURRENT_COMMIT := e21aa61e96f8343200e765d119ebe778873a6bf1 +CPYTHON_CURRENT_COMMIT := 83d3202b92fb4c2fc6df5b035d57f3a1cf715f20 CPYTHON_PATH := ../cpython/ @@ -157,6 +157,7 @@ merge: setup sed -i 's/^CPYTHON_CURRENT_COMMIT :=.*/CPYTHON_CURRENT_COMMIT := $(shell git -C $(WORKTREES)/$(BRANCH) rev-parse HEAD)/' Makefile rm -fr $(WORKTREES)/$(BRANCH) git -C $(CPYTHON_PATH) worktree prune + echo 'To add, you can use git status -s | grep "^ M .*\.po" | cut -d" " -f3 | while read -r file; do if [ $$(git diff "$$file" | wc -l) -gt 13 ]; then git add "$$file"; fi ; done' .PHONY: clean clean: diff --git a/c-api/code.po b/c-api/code.po index 26467d30..6fa942eb 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-02-15 00:30+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -67,7 +67,7 @@ msgstr "" #: ../Doc/c-api/code.rst:45 msgid "" "Similar to :c:func:`PyCode_New`, but with an extra \"posonlyargcount\" for " -"positonal-only arguments." +"positional-only arguments." msgstr "" #: ../Doc/c-api/code.rst:51 diff --git a/c-api/dict.po b/c-api/dict.po index 29dc4bda..c2ed5749 100644 --- a/c-api/dict.po +++ b/c-api/dict.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-07-03 11:36+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -69,65 +69,67 @@ msgstr "" #: ../Doc/c-api/dict.rst:65 msgid "" -"Insert *value* into the dictionary *p* with a key of *key*. *key* must be :" +"Insert *val* into the dictionary *p* with a key of *key*. *key* must be :" "term:`hashable`; if it isn't, :exc:`TypeError` will be raised. Return ``0`` " -"on success or ``-1`` on failure." +"on success or ``-1`` on failure. This function *does not* steal a reference " +"to *val*." msgstr "" -#: ../Doc/c-api/dict.rst:74 +#: ../Doc/c-api/dict.rst:75 msgid "" -"Insert *value* into the dictionary *p* using *key* as a key. *key* should be " +"Insert *val* into the dictionary *p* using *key* as a key. *key* should be " "a :c:type:`const char\\*`. The key object is created using " -"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on failure." +"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on " +"failure. This function *does not* steal a reference to *val*." msgstr "" -#: ../Doc/c-api/dict.rst:82 +#: ../Doc/c-api/dict.rst:83 msgid "" "Remove the entry in dictionary *p* with key *key*. *key* must be hashable; " "if it isn't, :exc:`TypeError` is raised. Return ``0`` on success or ``-1`` " "on failure." msgstr "" -#: ../Doc/c-api/dict.rst:89 +#: ../Doc/c-api/dict.rst:90 msgid "" "Remove the entry in dictionary *p* which has a key specified by the string " "*key*. Return ``0`` on success or ``-1`` on failure." msgstr "" -#: ../Doc/c-api/dict.rst:95 +#: ../Doc/c-api/dict.rst:96 msgid "" "Return the object from dictionary *p* which has a key *key*. Return " "``NULL`` if the key *key* is not present, but *without* setting an exception." msgstr "" -#: ../Doc/c-api/dict.rst:98 +#: ../Doc/c-api/dict.rst:99 msgid "" "Note that exceptions which occur while calling :meth:`__hash__` and :meth:" "`__eq__` methods will get suppressed. To get error reporting use :c:func:" "`PyDict_GetItemWithError()` instead." msgstr "" -#: ../Doc/c-api/dict.rst:105 +#: ../Doc/c-api/dict.rst:106 msgid "" "Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. " "Return ``NULL`` **with** an exception set if an exception occurred. Return " "``NULL`` **without** an exception set if the key wasn't present." msgstr "" -#: ../Doc/c-api/dict.rst:113 +#: ../Doc/c-api/dict.rst:114 msgid "" "This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:" "type:`const char\\*`, rather than a :c:type:`PyObject\\*`." msgstr "" -#: ../Doc/c-api/dict.rst:116 +#: ../Doc/c-api/dict.rst:117 msgid "" "Note that exceptions which occur while calling :meth:`__hash__` and :meth:" "`__eq__` methods and creating a temporary string object will get suppressed. " "To get error reporting use :c:func:`PyDict_GetItemWithError()` instead." msgstr "" -#: ../Doc/c-api/dict.rst:124 +#: ../Doc/c-api/dict.rst:125 msgid "" "This is the same as the Python-level :meth:`dict.setdefault`. If present, " "it returns the value corresponding to *key* from the dictionary *p*. If the " @@ -137,29 +139,29 @@ msgid "" "the insertion." msgstr "" -#: ../Doc/c-api/dict.rst:134 +#: ../Doc/c-api/dict.rst:135 msgid "" "Return a :c:type:`PyListObject` containing all the items from the dictionary." msgstr "" -#: ../Doc/c-api/dict.rst:139 +#: ../Doc/c-api/dict.rst:140 msgid "" "Return a :c:type:`PyListObject` containing all the keys from the dictionary." msgstr "" -#: ../Doc/c-api/dict.rst:144 +#: ../Doc/c-api/dict.rst:145 msgid "" "Return a :c:type:`PyListObject` containing all the values from the " "dictionary *p*." msgstr "" -#: ../Doc/c-api/dict.rst:152 +#: ../Doc/c-api/dict.rst:153 msgid "" "Return the number of items in the dictionary. This is equivalent to " "``len(p)`` on a dictionary." msgstr "" -#: ../Doc/c-api/dict.rst:158 +#: ../Doc/c-api/dict.rst:159 msgid "" "Iterate over all key-value pairs in the dictionary *p*. The :c:type:" "`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the " @@ -173,18 +175,18 @@ msgid "" "structure is sparse, the offsets are not consecutive." msgstr "" -#: ../Doc/c-api/dict.rst:169 +#: ../Doc/c-api/dict.rst:170 msgid "For example::" msgstr "Par exemple ::" -#: ../Doc/c-api/dict.rst:179 +#: ../Doc/c-api/dict.rst:180 msgid "" "The dictionary *p* should not be mutated during iteration. It is safe to " "modify the values of the keys as you iterate over the dictionary, but only " "so long as the set of keys does not change. For example::" msgstr "" -#: ../Doc/c-api/dict.rst:204 +#: ../Doc/c-api/dict.rst:205 msgid "" "Iterate over mapping object *b* adding key-value pairs to dictionary *a*. " "*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` " @@ -194,7 +196,7 @@ msgid "" "or ``-1`` if an exception was raised." msgstr "" -#: ../Doc/c-api/dict.rst:214 +#: ../Doc/c-api/dict.rst:215 msgid "" "This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a." "update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back " @@ -203,7 +205,7 @@ msgid "" "exception was raised." msgstr "" -#: ../Doc/c-api/dict.rst:223 +#: ../Doc/c-api/dict.rst:224 msgid "" "Update or merge into dictionary *a*, from the key-value pairs in *seq2*. " "*seq2* must be an iterable object producing iterable objects of length 2, " @@ -212,6 +214,6 @@ msgid "" "if an exception was raised. Equivalent Python (except for the return value)::" msgstr "" -#: ../Doc/c-api/dict.rst:238 +#: ../Doc/c-api/dict.rst:239 msgid "Clear the free list. Return the total number of freed items." msgstr "" diff --git a/c-api/init.po b/c-api/init.po index f8194a19..54115e87 100644 --- a/c-api/init.po +++ b/c-api/init.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 23:53+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-11-29 18:22+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1365,8 +1365,8 @@ msgid "" "sub-interpreters, the main interpreter has unique process-global " "responsibilities like signal handling. It is also responsible for execution " "during runtime initialization and is usually the active interpreter during " -"runtime finalization. The :c:func:`PyInterpreterState_Main` funtion returns " -"a pointer to its state." +"runtime finalization. The :c:func:`PyInterpreterState_Main` function " +"returns a pointer to its state." msgstr "" #: ../Doc/c-api/init.rst:1186 @@ -1404,20 +1404,40 @@ msgid "" msgstr "" #: ../Doc/c-api/init.rst:1225 -msgid "" -"Extension modules are shared between (sub-)interpreters as follows: the " -"first time a particular extension is imported, it is initialized normally, " -"and a (shallow) copy of its module's dictionary is squirreled away. When " -"the same extension is imported by another (sub-)interpreter, a new module is " -"initialized and filled with the contents of this copy; the extension's " -"``init`` function is not called. Note that this is different from what " -"happens when an extension is imported after the interpreter has been " -"completely re-initialized by calling :c:func:`Py_FinalizeEx` and :c:func:" -"`Py_Initialize`; in that case, the extension's ``initmodule`` function *is* " -"called again." +msgid "Extension modules are shared between (sub-)interpreters as follows:" msgstr "" -#: ../Doc/c-api/init.rst:1242 +#: ../Doc/c-api/init.rst:1227 +msgid "" +"For modules using multi-phase initialization, e.g. :c:func:" +"`PyModule_FromDefAndSpec`, a separate module object is created and " +"initialized for each interpreter. Only C-level static and global variables " +"are shared between these module objects." +msgstr "" + +#: ../Doc/c-api/init.rst:1233 +msgid "" +"For modules using single-phase initialization, e.g. :c:func:" +"`PyModule_Create`, the first time a particular extension is imported, it is " +"initialized normally, and a (shallow) copy of its module's dictionary is " +"squirreled away. When the same extension is imported by another " +"(sub-)interpreter, a new module is initialized and filled with the contents " +"of this copy; the extension's ``init`` function is not called. Objects in " +"the module's dictionary thus end up shared across (sub-)interpreters, which " +"might cause unwanted behavior (see `Bugs and caveats`_ below)." +msgstr "" + +#: ../Doc/c-api/init.rst:1244 +msgid "" +"Note that this is different from what happens when an extension is imported " +"after the interpreter has been completely re-initialized by calling :c:func:" +"`Py_FinalizeEx` and :c:func:`Py_Initialize`; in that case, the extension's " +"``initmodule`` function *is* called again. As with multi-phase " +"initialization, this means that only C-level static and global variables are " +"shared between these modules." +msgstr "" + +#: ../Doc/c-api/init.rst:1258 msgid "" "Destroy the (sub-)interpreter represented by the given thread state. The " "given thread state must be the current thread state. See the discussion of " @@ -1429,28 +1449,33 @@ msgid "" "point." msgstr "" -#: ../Doc/c-api/init.rst:1252 +#: ../Doc/c-api/init.rst:1268 msgid "Bugs and caveats" msgstr "" -#: ../Doc/c-api/init.rst:1254 +#: ../Doc/c-api/init.rst:1270 msgid "" "Because sub-interpreters (and the main interpreter) are part of the same " "process, the insulation between them isn't perfect --- for example, using " "low-level file operations like :func:`os.close` they can (accidentally or " "maliciously) affect each other's open files. Because of the way extensions " "are shared between (sub-)interpreters, some extensions may not work " -"properly; this is especially likely when the extension makes use of (static) " -"global variables, or when the extension manipulates its module's dictionary " -"after its initialization. It is possible to insert objects created in one " -"sub-interpreter into a namespace of another sub-interpreter; this should be " -"done with great care to avoid sharing user-defined functions, methods, " -"instances or classes between sub-interpreters, since import operations " -"executed by such objects may affect the wrong (sub-)interpreter's dictionary " -"of loaded modules." +"properly; this is especially likely when using single-phase initialization " +"or (static) global variables. It is possible to insert objects created in " +"one sub-interpreter into a namespace of another (sub-)interpreter; this " +"should be avoided if possible." msgstr "" -#: ../Doc/c-api/init.rst:1268 +#: ../Doc/c-api/init.rst:1280 +msgid "" +"Special care should be taken to avoid sharing user-defined functions, " +"methods, instances or classes between sub-interpreters, since import " +"operations executed by such objects may affect the wrong (sub-)interpreter's " +"dictionary of loaded modules. It is equally important to avoid sharing " +"objects from which the above are reachable." +msgstr "" + +#: ../Doc/c-api/init.rst:1286 msgid "" "Also note that combining this functionality with :c:func:`PyGILState_\\*` " "APIs is delicate, because these APIs assume a bijection between Python " @@ -1462,25 +1487,25 @@ msgid "" "created threads will probably be broken when using sub-interpreters." msgstr "" -#: ../Doc/c-api/init.rst:1279 +#: ../Doc/c-api/init.rst:1297 msgid "Asynchronous Notifications" msgstr "" -#: ../Doc/c-api/init.rst:1281 +#: ../Doc/c-api/init.rst:1299 msgid "" "A mechanism is provided to make asynchronous notifications to the main " "interpreter thread. These notifications take the form of a function pointer " "and a void pointer argument." msgstr "" -#: ../Doc/c-api/init.rst:1290 +#: ../Doc/c-api/init.rst:1308 msgid "" "Schedule a function to be called from the main interpreter thread. On " "success, ``0`` is returned and *func* is queued for being called in the main " "thread. On failure, ``-1`` is returned without setting any exception." msgstr "" -#: ../Doc/c-api/init.rst:1294 +#: ../Doc/c-api/init.rst:1312 msgid "" "When successfully queued, *func* will be *eventually* called from the main " "interpreter thread with the argument *arg*. It will be called " @@ -1488,17 +1513,17 @@ msgid "" "these conditions met:" msgstr "" -#: ../Doc/c-api/init.rst:1299 +#: ../Doc/c-api/init.rst:1317 msgid "on a :term:`bytecode` boundary;" msgstr "" -#: ../Doc/c-api/init.rst:1300 +#: ../Doc/c-api/init.rst:1318 msgid "" "with the main thread holding the :term:`global interpreter lock` (*func* can " "therefore use the full C API)." msgstr "" -#: ../Doc/c-api/init.rst:1303 +#: ../Doc/c-api/init.rst:1321 msgid "" "*func* must return ``0`` on success, or ``-1`` on failure with an exception " "set. *func* won't be interrupted to perform another asynchronous " @@ -1506,13 +1531,13 @@ msgid "" "if the global interpreter lock is released." msgstr "" -#: ../Doc/c-api/init.rst:1308 +#: ../Doc/c-api/init.rst:1326 msgid "" "This function doesn't need a current thread state to run, and it doesn't " "need the global interpreter lock." msgstr "" -#: ../Doc/c-api/init.rst:1312 +#: ../Doc/c-api/init.rst:1330 msgid "" "This is a low-level function, only useful for very special cases. There is " "no guarantee that *func* will be called as quick as possible. If the main " @@ -1522,18 +1547,18 @@ msgid "" "`PyGILState API`." msgstr "" -#: ../Doc/c-api/init.rst:1324 +#: ../Doc/c-api/init.rst:1342 msgid "Profiling and Tracing" msgstr "" -#: ../Doc/c-api/init.rst:1329 +#: ../Doc/c-api/init.rst:1347 msgid "" "The Python interpreter provides some low-level support for attaching " "profiling and execution tracing facilities. These are used for profiling, " "debugging, and coverage analysis tools." msgstr "" -#: ../Doc/c-api/init.rst:1333 +#: ../Doc/c-api/init.rst:1351 msgid "" "This C interface allows the profiling or tracing code to avoid the overhead " "of calling through Python-level callable objects, making a direct C function " @@ -1543,7 +1568,7 @@ msgid "" "reported to the Python-level trace functions in previous versions." msgstr "" -#: ../Doc/c-api/init.rst:1343 +#: ../Doc/c-api/init.rst:1361 msgid "" "The type of the trace function registered using :c:func:`PyEval_SetProfile` " "and :c:func:`PyEval_SetTrace`. The first parameter is the object passed to " @@ -1554,66 +1579,66 @@ msgid "" "or :const:`PyTrace_OPCODE`, and *arg* depends on the value of *what*:" msgstr "" -#: ../Doc/c-api/init.rst:1352 +#: ../Doc/c-api/init.rst:1370 msgid "Value of *what*" msgstr "" -#: ../Doc/c-api/init.rst:1352 +#: ../Doc/c-api/init.rst:1370 msgid "Meaning of *arg*" msgstr "" -#: ../Doc/c-api/init.rst:1354 +#: ../Doc/c-api/init.rst:1372 msgid ":const:`PyTrace_CALL`" msgstr "" -#: ../Doc/c-api/init.rst:1354 ../Doc/c-api/init.rst:1359 -#: ../Doc/c-api/init.rst:1370 +#: ../Doc/c-api/init.rst:1372 ../Doc/c-api/init.rst:1377 +#: ../Doc/c-api/init.rst:1388 msgid "Always :c:data:`Py_None`." msgstr "" -#: ../Doc/c-api/init.rst:1356 +#: ../Doc/c-api/init.rst:1374 msgid ":const:`PyTrace_EXCEPTION`" msgstr "" -#: ../Doc/c-api/init.rst:1356 +#: ../Doc/c-api/init.rst:1374 msgid "Exception information as returned by :func:`sys.exc_info`." msgstr "" -#: ../Doc/c-api/init.rst:1359 +#: ../Doc/c-api/init.rst:1377 msgid ":const:`PyTrace_LINE`" msgstr "" -#: ../Doc/c-api/init.rst:1361 +#: ../Doc/c-api/init.rst:1379 msgid ":const:`PyTrace_RETURN`" msgstr "" -#: ../Doc/c-api/init.rst:1361 +#: ../Doc/c-api/init.rst:1379 msgid "" "Value being returned to the caller, or ``NULL`` if caused by an exception." msgstr "" -#: ../Doc/c-api/init.rst:1364 +#: ../Doc/c-api/init.rst:1382 msgid ":const:`PyTrace_C_CALL`" msgstr "" -#: ../Doc/c-api/init.rst:1364 ../Doc/c-api/init.rst:1366 -#: ../Doc/c-api/init.rst:1368 +#: ../Doc/c-api/init.rst:1382 ../Doc/c-api/init.rst:1384 +#: ../Doc/c-api/init.rst:1386 msgid "Function object being called." msgstr "" -#: ../Doc/c-api/init.rst:1366 +#: ../Doc/c-api/init.rst:1384 msgid ":const:`PyTrace_C_EXCEPTION`" msgstr "" -#: ../Doc/c-api/init.rst:1368 +#: ../Doc/c-api/init.rst:1386 msgid ":const:`PyTrace_C_RETURN`" msgstr "" -#: ../Doc/c-api/init.rst:1370 +#: ../Doc/c-api/init.rst:1388 msgid ":const:`PyTrace_OPCODE`" msgstr "" -#: ../Doc/c-api/init.rst:1375 +#: ../Doc/c-api/init.rst:1393 msgid "" "The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " "a new call to a function or method is being reported, or a new entry into a " @@ -1622,7 +1647,7 @@ msgid "" "the corresponding frame." msgstr "" -#: ../Doc/c-api/init.rst:1384 +#: ../Doc/c-api/init.rst:1402 msgid "" "The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " "an exception has been raised. The callback function is called with this " @@ -1634,7 +1659,7 @@ msgid "" "profiler." msgstr "" -#: ../Doc/c-api/init.rst:1395 +#: ../Doc/c-api/init.rst:1413 msgid "" "The value passed as the *what* parameter to a :c:type:`Py_tracefunc` " "function (but not a profiling function) when a line-number event is being " @@ -1642,31 +1667,31 @@ msgid "" "*0* on that frame." msgstr "" -#: ../Doc/c-api/init.rst:1402 +#: ../Doc/c-api/init.rst:1420 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a call is about to return." msgstr "" -#: ../Doc/c-api/init.rst:1408 +#: ../Doc/c-api/init.rst:1426 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function is about to be called." msgstr "" -#: ../Doc/c-api/init.rst:1414 +#: ../Doc/c-api/init.rst:1432 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has raised an exception." msgstr "" -#: ../Doc/c-api/init.rst:1420 +#: ../Doc/c-api/init.rst:1438 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has returned." msgstr "" -#: ../Doc/c-api/init.rst:1426 +#: ../Doc/c-api/init.rst:1444 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions (but " "not profiling functions) when a new opcode is about to be executed. This " @@ -1674,7 +1699,7 @@ msgid "" "attr:`f_trace_opcodes` to *1* on the frame." msgstr "" -#: ../Doc/c-api/init.rst:1434 +#: ../Doc/c-api/init.rst:1452 msgid "" "Set the profiler function to *func*. The *obj* parameter is passed to the " "function as its first parameter, and may be any Python object, or ``NULL``. " @@ -1684,7 +1709,7 @@ msgid "" "`PyTrace_LINE` :const:`PyTrace_OPCODE` and :const:`PyTrace_EXCEPTION`." msgstr "" -#: ../Doc/c-api/init.rst:1444 +#: ../Doc/c-api/init.rst:1462 msgid "" "Set the tracing function to *func*. This is similar to :c:func:" "`PyEval_SetProfile`, except the tracing function does receive line-number " @@ -1695,48 +1720,48 @@ msgid "" "parameter." msgstr "" -#: ../Doc/c-api/init.rst:1454 +#: ../Doc/c-api/init.rst:1472 msgid "Advanced Debugger Support" msgstr "Support avancé du débogueur" -#: ../Doc/c-api/init.rst:1459 +#: ../Doc/c-api/init.rst:1477 msgid "" "These functions are only intended to be used by advanced debugging tools." msgstr "" -#: ../Doc/c-api/init.rst:1464 +#: ../Doc/c-api/init.rst:1482 msgid "" "Return the interpreter state object at the head of the list of all such " "objects." msgstr "" -#: ../Doc/c-api/init.rst:1469 +#: ../Doc/c-api/init.rst:1487 msgid "Return the main interpreter state object." msgstr "" -#: ../Doc/c-api/init.rst:1474 +#: ../Doc/c-api/init.rst:1492 msgid "" "Return the next interpreter state object after *interp* from the list of all " "such objects." msgstr "" -#: ../Doc/c-api/init.rst:1480 +#: ../Doc/c-api/init.rst:1498 msgid "" "Return the pointer to the first :c:type:`PyThreadState` object in the list " "of threads associated with the interpreter *interp*." msgstr "" -#: ../Doc/c-api/init.rst:1486 +#: ../Doc/c-api/init.rst:1504 msgid "" "Return the next thread state object after *tstate* from the list of all such " "objects belonging to the same :c:type:`PyInterpreterState` object." msgstr "" -#: ../Doc/c-api/init.rst:1493 +#: ../Doc/c-api/init.rst:1511 msgid "Thread Local Storage Support" msgstr "" -#: ../Doc/c-api/init.rst:1497 +#: ../Doc/c-api/init.rst:1515 msgid "" "The Python interpreter provides low-level support for thread-local storage " "(TLS) which wraps the underlying native TLS implementation to support the " @@ -1746,19 +1771,19 @@ msgid "" "thread." msgstr "" -#: ../Doc/c-api/init.rst:1504 +#: ../Doc/c-api/init.rst:1522 msgid "" "The GIL does *not* need to be held when calling these functions; they supply " "their own locking." msgstr "" -#: ../Doc/c-api/init.rst:1507 +#: ../Doc/c-api/init.rst:1525 msgid "" "Note that :file:`Python.h` does not include the declaration of the TLS APIs, " "you need to include :file:`pythread.h` to use thread-local storage." msgstr "" -#: ../Doc/c-api/init.rst:1511 +#: ../Doc/c-api/init.rst:1529 msgid "" "None of these API functions handle memory management on behalf of the :c:" "type:`void\\*` values. You need to allocate and deallocate them yourself. " @@ -1766,22 +1791,22 @@ msgid "" "functions don't do refcount operations on them either." msgstr "" -#: ../Doc/c-api/init.rst:1519 +#: ../Doc/c-api/init.rst:1537 msgid "Thread Specific Storage (TSS) API" msgstr "" -#: ../Doc/c-api/init.rst:1521 +#: ../Doc/c-api/init.rst:1539 msgid "" "TSS API is introduced to supersede the use of the existing TLS API within " "the CPython interpreter. This API uses a new type :c:type:`Py_tss_t` " "instead of :c:type:`int` to represent thread keys." msgstr "" -#: ../Doc/c-api/init.rst:1527 +#: ../Doc/c-api/init.rst:1545 msgid "\"A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)" msgstr "" -#: ../Doc/c-api/init.rst:1532 +#: ../Doc/c-api/init.rst:1550 msgid "" "This data structure represents the state of a thread key, the definition of " "which may depend on the underlying TLS implementation, and it has an " @@ -1789,52 +1814,52 @@ msgid "" "public members in this structure." msgstr "" -#: ../Doc/c-api/init.rst:1537 +#: ../Doc/c-api/init.rst:1555 msgid "" "When :ref:`Py_LIMITED_API ` is not defined, static allocation of " "this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed." msgstr "" -#: ../Doc/c-api/init.rst:1543 +#: ../Doc/c-api/init.rst:1561 msgid "" "This macro expands to the initializer for :c:type:`Py_tss_t` variables. Note " "that this macro won't be defined with :ref:`Py_LIMITED_API `." msgstr "" -#: ../Doc/c-api/init.rst:1548 +#: ../Doc/c-api/init.rst:1566 msgid "Dynamic Allocation" msgstr "" -#: ../Doc/c-api/init.rst:1550 +#: ../Doc/c-api/init.rst:1568 msgid "" "Dynamic allocation of the :c:type:`Py_tss_t`, required in extension modules " "built with :ref:`Py_LIMITED_API `, where static allocation of this " "type is not possible due to its implementation being opaque at build time." msgstr "" -#: ../Doc/c-api/init.rst:1557 +#: ../Doc/c-api/init.rst:1575 msgid "" "Return a value which is the same state as a value initialized with :c:macro:" "`Py_tss_NEEDS_INIT`, or ``NULL`` in the case of dynamic allocation failure." msgstr "" -#: ../Doc/c-api/init.rst:1564 +#: ../Doc/c-api/init.rst:1582 msgid "" "Free the given *key* allocated by :c:func:`PyThread_tss_alloc`, after first " "calling :c:func:`PyThread_tss_delete` to ensure any associated thread locals " "have been unassigned. This is a no-op if the *key* argument is `NULL`." msgstr "" -#: ../Doc/c-api/init.rst:1570 +#: ../Doc/c-api/init.rst:1588 msgid "" "A freed key becomes a dangling pointer, you should reset the key to `NULL`." msgstr "" -#: ../Doc/c-api/init.rst:1575 +#: ../Doc/c-api/init.rst:1593 msgid "Methods" msgstr "Méthodes" -#: ../Doc/c-api/init.rst:1577 +#: ../Doc/c-api/init.rst:1595 msgid "" "The parameter *key* of these functions must not be ``NULL``. Moreover, the " "behaviors of :c:func:`PyThread_tss_set` and :c:func:`PyThread_tss_get` are " @@ -1842,13 +1867,13 @@ msgid "" "func:`PyThread_tss_create`." msgstr "" -#: ../Doc/c-api/init.rst:1585 +#: ../Doc/c-api/init.rst:1603 msgid "" "Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized " "by :c:func:`PyThread_tss_create`." msgstr "" -#: ../Doc/c-api/init.rst:1591 +#: ../Doc/c-api/init.rst:1609 msgid "" "Return a zero value on successful initialization of a TSS key. The behavior " "is undefined if the value pointed to by the *key* argument is not " @@ -1857,7 +1882,7 @@ msgid "" "no-op and immediately returns success." msgstr "" -#: ../Doc/c-api/init.rst:1600 +#: ../Doc/c-api/init.rst:1618 msgid "" "Destroy a TSS key to forget the values associated with the key across all " "threads, and change the key's initialization state to uninitialized. A " @@ -1866,31 +1891,31 @@ msgid "" "key -- calling it on an already destroyed key is a no-op." msgstr "" -#: ../Doc/c-api/init.rst:1609 +#: ../Doc/c-api/init.rst:1627 msgid "" "Return a zero value to indicate successfully associating a :c:type:`void\\*` " "value with a TSS key in the current thread. Each thread has a distinct " "mapping of the key to a :c:type:`void\\*` value." msgstr "" -#: ../Doc/c-api/init.rst:1616 +#: ../Doc/c-api/init.rst:1634 msgid "" "Return the :c:type:`void\\*` value associated with a TSS key in the current " "thread. This returns ``NULL`` if no value is associated with the key in the " "current thread." msgstr "" -#: ../Doc/c-api/init.rst:1624 +#: ../Doc/c-api/init.rst:1642 msgid "Thread Local Storage (TLS) API" msgstr "" -#: ../Doc/c-api/init.rst:1626 +#: ../Doc/c-api/init.rst:1644 msgid "" "This API is superseded by :ref:`Thread Specific Storage (TSS) API `." msgstr "" -#: ../Doc/c-api/init.rst:1631 +#: ../Doc/c-api/init.rst:1649 msgid "" "This version of the API does not support platforms where the native TLS key " "is defined in a way that cannot be safely cast to ``int``. On such " @@ -1899,7 +1924,7 @@ msgid "" "platforms." msgstr "" -#: ../Doc/c-api/init.rst:1636 +#: ../Doc/c-api/init.rst:1654 msgid "" "Due to the compatibility problem noted above, this version of the API should " "not be used in new code." diff --git a/c-api/long.po b/c-api/long.po index 48492bd3..8dc6f2a0 100644 --- a/c-api/long.po +++ b/c-api/long.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -150,7 +150,7 @@ msgid "" "meth:`__int__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" -#: ../Doc/c-api/long.rst:138 ../Doc/c-api/long.rst:181 +#: ../Doc/c-api/long.rst:138 msgid "" "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" "type:`long`." @@ -189,6 +189,12 @@ msgid "" "meth:`__int__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" +#: ../Doc/c-api/long.rst:181 +msgid "" +"Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" +"type:`long long`." +msgstr "" + #: ../Doc/c-api/long.rst:200 msgid "" "If the value of *obj* is greater than :const:`PY_LLONG_MAX` or less than :" diff --git a/c-api/mapping.po b/c-api/mapping.po index eac750dc..e8a02d86 100644 --- a/c-api/mapping.po +++ b/c-api/mapping.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-11-17 21:20+0100\n" +"Last-Translator: Aveheuzed \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Aveheuzed \n" "X-Generator: Poedit 2.2.4\n" #: ../Doc/c-api/mapping.rst:6 @@ -62,16 +62,18 @@ msgstr "" "aussi :c:func:`PyObject_GetItem`." #: ../Doc/c-api/mapping.rst:38 +#, fuzzy msgid "" "Map the string *key* to the value *v* in object *o*. Returns ``-1`` on " "failure. This is the equivalent of the Python statement ``o[key] = v``. See " -"also :c:func:`PyObject_SetItem`." +"also :c:func:`PyObject_SetItem`. This function *does not* steal a reference " +"to *v*." msgstr "" "Fait correspondre la chaîne *key* à la valeur *v* dans l'objet *o*. Renvoie " "``-1`` en cas d'échec. C'est l'équivalent de la commande Python ``o[key] = " "v``. Voir aussi :c:func:`PyObject_SetItem`." -#: ../Doc/c-api/mapping.rst:45 +#: ../Doc/c-api/mapping.rst:46 msgid "" "Remove the mapping for the object *key* from the object *o*. Return ``-1`` " "on failure. This is equivalent to the Python statement ``del o[key]``. This " @@ -81,7 +83,7 @@ msgstr "" "Renvoie ``-1`` en cas d'échec. C'est l'équivalent de la commande Python " "``del o[key]``. C'est un alias pour :c:func:`PyObject_DelItem`." -#: ../Doc/c-api/mapping.rst:52 +#: ../Doc/c-api/mapping.rst:53 msgid "" "Remove the mapping for the string *key* from the object *o*. Return ``-1`` " "on failure. This is equivalent to the Python statement ``del o[key]``." @@ -90,7 +92,7 @@ msgstr "" "Renvoie ``-1`` en cas d'échec. C'est l'équivalent de la commande Python " "``del o[key]``." -#: ../Doc/c-api/mapping.rst:58 ../Doc/c-api/mapping.rst:69 +#: ../Doc/c-api/mapping.rst:59 ../Doc/c-api/mapping.rst:70 msgid "" "Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. " "This is equivalent to the Python expression ``key in o``. This function " @@ -100,7 +102,7 @@ msgstr "" "sinon. C'est l'équivalent de l'expression Python ``key in o``. Cette " "fonction ne provoque jamais d'erreur." -#: ../Doc/c-api/mapping.rst:62 +#: ../Doc/c-api/mapping.rst:63 msgid "" "Note that exceptions which occur while calling the :meth:`__getitem__` " "method will get suppressed. To get error reporting use :c:func:" @@ -110,7 +112,7 @@ msgstr "" "`__getitem__` seront supprimées. Pour obtenir le rapport d'erreur, utilisez " "plutôt :c:func:`PyObject_GetItem()`." -#: ../Doc/c-api/mapping.rst:73 +#: ../Doc/c-api/mapping.rst:74 msgid "" "Note that exceptions which occur while calling the :meth:`__getitem__` " "method and creating a temporary string object will get suppressed. To get " @@ -121,19 +123,19 @@ msgstr "" "supprimées. Pour obtenir le rapport d'erreur, utilisez plutôt :c:func:" "`PyMapping_GetItemString()`." -#: ../Doc/c-api/mapping.rst:80 +#: ../Doc/c-api/mapping.rst:81 msgid "" "On success, return a list of the keys in object *o*. On failure, return " "``NULL``." msgstr "" "Renvoie la liste des clefs dans l'objet *o*. En cas d'échec, renvoie *NULL*." -#: ../Doc/c-api/mapping.rst:83 ../Doc/c-api/mapping.rst:92 -#: ../Doc/c-api/mapping.rst:101 +#: ../Doc/c-api/mapping.rst:84 ../Doc/c-api/mapping.rst:93 +#: ../Doc/c-api/mapping.rst:102 msgid "Previously, the function returned a list or a tuple." msgstr "Auparavant, la fonction renvoyait une liste ou un n-uplet." -#: ../Doc/c-api/mapping.rst:89 +#: ../Doc/c-api/mapping.rst:90 msgid "" "On success, return a list of the values in object *o*. On failure, return " "``NULL``." @@ -141,7 +143,7 @@ msgstr "" "Renvoie la liste des valeurs dans l'objet *o*. En cas d'échec, renvoie " "*NULL*." -#: ../Doc/c-api/mapping.rst:98 +#: ../Doc/c-api/mapping.rst:99 msgid "" "On success, return a list of the items in object *o*, where each item is a " "tuple containing a key-value pair. On failure, return ``NULL``." diff --git a/c-api/object.po b/c-api/object.po index aea1337c..a6a234fc 100644 --- a/c-api/object.po +++ b/c-api/object.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-08-16 22:56+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -672,19 +672,24 @@ msgstr "" "l'expression Python ``o.attr_name``." #: ../Doc/c-api/object.rst:504 +#, fuzzy msgid "" "Map the object *key* to the value *v*. Raise an exception and return ``-1`` " "on failure; return ``0`` on success. This is the equivalent of the Python " -"statement ``o[key] = v``." +"statement ``o[key] = v``. This function *does not* steal a reference to *v*." msgstr "" +"Définit la valeur de l'attribut nommé *attr_name*, pour l'objet *o*, à la " +"valeur *v*. Lève une exception et renvoie ``-1`` en cas d'échec ; renvoie " +"``0`` en cas de succès. Ceci est équivalent à l'instruction Python ``o." +"attr_name = v``." -#: ../Doc/c-api/object.rst:511 +#: ../Doc/c-api/object.rst:512 msgid "" "Remove the mapping for the object *key* from the object *o*. Return ``-1`` " "on failure. This is equivalent to the Python statement ``del o[key]``." msgstr "" -#: ../Doc/c-api/object.rst:517 +#: ../Doc/c-api/object.rst:518 msgid "" "This is equivalent to the Python expression ``dir(o)``, returning a " "(possibly empty) list of strings appropriate for the object argument, or " @@ -694,7 +699,7 @@ msgid "" "`PyErr_Occurred` will return false." msgstr "" -#: ../Doc/c-api/object.rst:526 +#: ../Doc/c-api/object.rst:527 msgid "" "This is equivalent to the Python expression ``iter(o)``. It returns a new " "iterator for the object argument, or the object itself if the object is " diff --git a/c-api/sys.po b/c-api/sys.po index 0dc5e73b..b40fcbfc 100644 --- a/c-api/sys.po +++ b/c-api/sys.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -373,10 +373,22 @@ msgid "" msgstr "" #: ../Doc/c-api/sys.rst:323 +msgid "" +"Note that ``#`` format characters should always be treated as " +"``Py_ssize_t``, regardless of whether ``PY_SSIZE_T_CLEAN`` was defined." +msgstr "" + +#: ../Doc/c-api/sys.rst:326 msgid ":func:`sys.audit` performs the same function from Python code." msgstr "" -#: ../Doc/c-api/sys.rst:330 +#: ../Doc/c-api/sys.rst:332 +msgid "" +"Require ``Py_ssize_t`` for ``#`` format characters. Previously, an " +"unavoidable deprecation warning was raised." +msgstr "" + +#: ../Doc/c-api/sys.rst:338 msgid "" "Append the callable *hook* to the list of active auditing hooks. Return zero " "for success and non-zero on failure. If the runtime has been initialized, " @@ -384,14 +396,14 @@ msgid "" "all interpreters created by the runtime." msgstr "" -#: ../Doc/c-api/sys.rst:336 +#: ../Doc/c-api/sys.rst:344 msgid "" "The *userData* pointer is passed into the hook function. Since hook " "functions may be called from different runtimes, this pointer should not " "refer directly to Python state." msgstr "" -#: ../Doc/c-api/sys.rst:340 +#: ../Doc/c-api/sys.rst:348 msgid "" "This function is safe to call before :c:func:`Py_Initialize`. When called " "after runtime initialization, existing audit hooks are notified and may " @@ -399,7 +411,7 @@ msgid "" "`Exception` (other errors will not be silenced)." msgstr "" -#: ../Doc/c-api/sys.rst:345 +#: ../Doc/c-api/sys.rst:353 msgid "" "The hook function is of type :c:type:`int (*)(const char *event, PyObject " "*args, void *userData)`, where *args* is guaranteed to be a :c:type:" @@ -407,7 +419,7 @@ msgid "" "Python interpreter that raised the event." msgstr "" -#: ../Doc/c-api/sys.rst:350 +#: ../Doc/c-api/sys.rst:358 msgid "" "See :pep:`578` for a detailed description of auditing. Functions in the " "runtime and standard library that raise events are listed in the :ref:`audit " @@ -420,7 +432,7 @@ msgid "" "arguments." msgstr "" -#: ../Doc/c-api/sys.rst:357 +#: ../Doc/c-api/sys.rst:365 msgid "" "If the interpreter is initialized, this function raises a auditing event " "``sys.addaudithook`` with no arguments. If any existing hooks raise an " @@ -429,11 +441,11 @@ msgid "" "hook has been added unless they control all existing hooks." msgstr "" -#: ../Doc/c-api/sys.rst:369 +#: ../Doc/c-api/sys.rst:377 msgid "Process Control" msgstr "" -#: ../Doc/c-api/sys.rst:376 +#: ../Doc/c-api/sys.rst:384 msgid "" "Print a fatal error message and kill the process. No cleanup is performed. " "This function should only be invoked when a condition is detected that would " @@ -443,18 +455,18 @@ msgid "" "file:`core` file." msgstr "" -#: ../Doc/c-api/sys.rst:390 +#: ../Doc/c-api/sys.rst:398 msgid "" "Exit the current process. This calls :c:func:`Py_FinalizeEx` and then calls " "the standard C library function ``exit(status)``. If :c:func:" "`Py_FinalizeEx` indicates an error, the exit status is set to 120." msgstr "" -#: ../Doc/c-api/sys.rst:394 +#: ../Doc/c-api/sys.rst:402 msgid "Errors from finalization no longer ignored." msgstr "" -#: ../Doc/c-api/sys.rst:404 +#: ../Doc/c-api/sys.rst:412 msgid "" "Register a cleanup function to be called by :c:func:`Py_FinalizeEx`. The " "cleanup function will be called with no arguments and should return no " diff --git a/copyright.po b/copyright.po index 37a05e21..f0ceb42b 100644 --- a/copyright.po +++ b/copyright.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-03 16:57+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-01-03 16:59+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -23,7 +23,8 @@ msgid "Python and this documentation is:" msgstr "Python et cette documentation sont :" #: ../Doc/copyright.rst:7 -msgid "Copyright © 2001-2019 Python Software Foundation. All rights reserved." +#, fuzzy +msgid "Copyright © 2001-2020 Python Software Foundation. All rights reserved." msgstr "" "Copyright © 2001-2019 Python Software Foundation. Tous droits réservés." diff --git a/distutils/apiref.po b/distutils/apiref.po index 7fbdf8cb..0c1a6b06 100644 --- a/distutils/apiref.po +++ b/distutils/apiref.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 17:54+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-12-11 10:54+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -30,7 +30,7 @@ msgid "" "and is hence recommended over using ``distutils`` directly." msgstr "" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/builtdist.po b/distutils/builtdist.po index d8a73346..58e477bc 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-06-08 15:19+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -19,7 +19,7 @@ msgstr "" msgid "Creating Built Distributions" msgstr "Créer une distribution compilée" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/commandref.po b/distutils/commandref.po index c0a50924..0b86be56 100644 --- a/distutils/commandref.po +++ b/distutils/commandref.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-10-04 15:27+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -18,7 +18,7 @@ msgstr "" msgid "Command Reference" msgstr "Référence des commandes" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/configfile.po b/distutils/configfile.po index 0c59b4c0..956969d0 100644 --- a/distutils/configfile.po +++ b/distutils/configfile.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -18,7 +18,7 @@ msgstr "" msgid "Writing the Setup Configuration File" msgstr "" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/examples.po b/distutils/examples.po index fa87b74a..ae3f64e3 100644 --- a/distutils/examples.po +++ b/distutils/examples.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 17:54+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -19,7 +19,7 @@ msgstr "" msgid "Distutils Examples" msgstr "Exemples" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/extending.po b/distutils/extending.po index a324fec4..f13a0eb9 100644 --- a/distutils/extending.po +++ b/distutils/extending.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-11-30 14:00+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -19,7 +19,7 @@ msgstr "" msgid "Extending Distutils" msgstr "Extension de Distutils" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/index.po b/distutils/index.po index 3414c310..ef2baf76 100644 --- a/distutils/index.po +++ b/distutils/index.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-07-04 11:20+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -42,7 +42,7 @@ msgstr ":ref:`distributing-index`" msgid "The up to date module distribution documentations" msgstr "La documentation actuelle de distribution de modules" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/introduction.po b/distutils/introduction.po index 78315f0c..df075855 100644 --- a/distutils/introduction.po +++ b/distutils/introduction.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -18,7 +18,7 @@ msgstr "" msgid "An Introduction to Distutils" msgstr "" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/setupscript.po b/distutils/setupscript.po index 149743e1..1f1cb7d4 100644 --- a/distutils/setupscript.po +++ b/distutils/setupscript.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -18,7 +18,7 @@ msgstr "" msgid "Writing the Setup Script" msgstr "" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/distutils/sourcedist.po b/distutils/sourcedist.po index 81898aba..394b016f 100644 --- a/distutils/sourcedist.po +++ b/distutils/sourcedist.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-09-29 17:53+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -19,7 +19,7 @@ msgstr "" msgid "Creating a Source Distribution" msgstr "Créer une distribution source" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/faq/programming.po b/faq/programming.po index eb45b87a..3cf6a8f8 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 17:54+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-12-12 22:21+0100\n" "Last-Translator: Andy Kwok \n" "Language-Team: FRENCH \n" @@ -1547,9 +1547,10 @@ msgstr "" "avant d'aller plus loin :" #: ../Doc/faq/programming.rst:1021 +#, fuzzy msgid "" "Performance characteristics vary across Python implementations. This FAQ " -"focusses on :term:`CPython`." +"focuses on :term:`CPython`." msgstr "" "Les performances varient en fonction des implémentations de Python. Cette " "FAQ ne traite que de :term:`CPython`." diff --git a/glossary.po b/glossary.po index 69266046..e7ba11cb 100644 --- a/glossary.po +++ b/glossary.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 17:54+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-12-11 10:46+0100\n" "Last-Translator: Grenoya \n" "Language-Team: FRENCH \n" @@ -1518,7 +1518,7 @@ msgstr "" msgid "keyword argument" msgstr "argument nommé" -#: ../Doc/glossary.rst:639 ../Doc/glossary.rst:914 +#: ../Doc/glossary.rst:639 ../Doc/glossary.rst:916 msgid "See :term:`argument`." msgstr "Voir :term:`argument`." @@ -1974,17 +1974,20 @@ msgstr "" "l'exemple suivant ::" #: ../Doc/glossary.rst:826 +#, fuzzy msgid "" ":dfn:`positional-only`: specifies an argument that can be supplied only by " -"position. Python has no syntax for defining positional-only parameters. " -"However, some built-in functions have positional-only parameters (e.g. :func:" -"`abs`)." +"position. Positional-only parameters can be defined by including a ``/`` " +"character in the parameter list of the function definition after them, for " +"example *posonly1* and *posonly2* in the following::" msgstr "" -":dfn:`positional-only` : l'argument ne peut être donné que par sa position. " -"Python n'a pas de syntaxe pour déclarer de tels paramètres, cependant des " -"fonctions natives, comme :func:`abs`, en utilisent." +":dfn:`keyword-only` : l'argument ne peut être fourni que nommé. Les " +"paramètres *keyword-only* peuvent être définis en utilisant un seul " +"paramètre *var-positional*, ou en ajoutant une étoile (``*``) seule dans la " +"liste des paramètres avant eux. Par exemple, *kw_only1* et *kw_only2* dans " +"le code suivant ::" -#: ../Doc/glossary.rst:833 +#: ../Doc/glossary.rst:835 msgid "" ":dfn:`keyword-only`: specifies an argument that can be supplied only by " "keyword. Keyword-only parameters can be defined by including a single var-" @@ -1998,7 +2001,7 @@ msgstr "" "liste des paramètres avant eux. Par exemple, *kw_only1* et *kw_only2* dans " "le code suivant ::" -#: ../Doc/glossary.rst:841 +#: ../Doc/glossary.rst:843 msgid "" ":dfn:`var-positional`: specifies that an arbitrary sequence of positional " "arguments can be provided (in addition to any positional arguments already " @@ -2011,7 +2014,7 @@ msgstr "" "d'autres paramètres). Un tel paramètre peut être défini en préfixant son nom " "par une ``*``. Par exemple *args* ci-après ::" -#: ../Doc/glossary.rst:849 +#: ../Doc/glossary.rst:851 msgid "" ":dfn:`var-keyword`: specifies that arbitrarily many keyword arguments can be " "provided (in addition to any keyword arguments already accepted by other " @@ -2023,7 +2026,7 @@ msgstr "" "d'autres paramètres). Un tel paramètre est défini en préfixant le nom du " "paramètre par ``**``. Par exemple, *kwargs* ci-dessus." -#: ../Doc/glossary.rst:855 +#: ../Doc/glossary.rst:857 msgid "" "Parameters can specify both optional and required arguments, as well as " "default values for some optional arguments." @@ -2031,7 +2034,7 @@ msgstr "" "Les paramètres peuvent spécifier des arguments obligatoires ou optionnels, " "ainsi que des valeurs par défaut pour les arguments optionnels." -#: ../Doc/glossary.rst:858 +#: ../Doc/glossary.rst:860 msgid "" "See also the :term:`argument` glossary entry, the FAQ question on :ref:`the " "difference between arguments and parameters `, " @@ -2043,11 +2046,11 @@ msgstr "" "parameter>` dans la FAQ, la classe :class:`inspect.Parameter`, la section :" "ref:`function` et la :pep:`362`." -#: ../Doc/glossary.rst:862 +#: ../Doc/glossary.rst:864 msgid "path entry" msgstr "entrée de chemin" -#: ../Doc/glossary.rst:864 +#: ../Doc/glossary.rst:866 msgid "" "A single location on the :term:`import path` which the :term:`path based " "finder` consults to find modules for importing." @@ -2056,11 +2059,11 @@ msgstr "" "path* en anglais, d'où le *path*) que le :term:`chercheur basé sur les " "chemins ` consulte pour trouver des modules à importer." -#: ../Doc/glossary.rst:866 +#: ../Doc/glossary.rst:868 msgid "path entry finder" msgstr "chercheur de chemins" -#: ../Doc/glossary.rst:868 +#: ../Doc/glossary.rst:870 msgid "" "A :term:`finder` returned by a callable on :data:`sys.path_hooks` (i.e. a :" "term:`path entry hook`) which knows how to locate modules given a :term:" @@ -2071,7 +2074,7 @@ msgstr "" "path `) qui sait où trouver des modules lorsqu'on lui donne " "une :term:`entrée de path `." -#: ../Doc/glossary.rst:872 +#: ../Doc/glossary.rst:874 msgid "" "See :class:`importlib.abc.PathEntryFinder` for the methods that path entry " "finders implement." @@ -2079,11 +2082,11 @@ msgstr "" "Voir :class:`importlib.abc.PathEntryFinder` pour les méthodes qu'un " "chercheur d'entrée dans *path* doit implémenter." -#: ../Doc/glossary.rst:874 +#: ../Doc/glossary.rst:876 msgid "path entry hook" msgstr "point d'entrée pour la recherche dans *path*" -#: ../Doc/glossary.rst:876 +#: ../Doc/glossary.rst:878 msgid "" "A callable on the :data:`sys.path_hook` list which returns a :term:`path " "entry finder` if it knows how to find modules on a specific :term:`path " @@ -2093,11 +2096,11 @@ msgstr "" "d'entrée dans path ` s'il sait où trouver des modules " "pour une :term:`entrée dans path ` donnée." -#: ../Doc/glossary.rst:879 +#: ../Doc/glossary.rst:881 msgid "path based finder" msgstr "chercheur basé sur les chemins" -#: ../Doc/glossary.rst:881 +#: ../Doc/glossary.rst:883 msgid "" "One of the default :term:`meta path finders ` which " "searches an :term:`import path` for modules." @@ -2106,11 +2109,11 @@ msgstr "" "défaut qui cherche des modules dans un :term:`chemin des importations " "`." -#: ../Doc/glossary.rst:883 +#: ../Doc/glossary.rst:885 msgid "path-like object" msgstr "objet simili-chemin" -#: ../Doc/glossary.rst:885 +#: ../Doc/glossary.rst:887 msgid "" "An object representing a file system path. A path-like object is either a :" "class:`str` or :class:`bytes` object representing a path, or an object " @@ -2130,11 +2133,11 @@ msgstr "" "peuvent être utilisées, respectivement, pour garantir un résultat de type :" "class:`str` ou :class:`bytes` à la place. A été Introduit par la :pep:`519`." -#: ../Doc/glossary.rst:893 +#: ../Doc/glossary.rst:895 msgid "PEP" msgstr "PEP" -#: ../Doc/glossary.rst:895 +#: ../Doc/glossary.rst:897 msgid "" "Python Enhancement Proposal. A PEP is a design document providing " "information to the Python community, or describing a new feature for Python " @@ -2147,7 +2150,7 @@ msgstr "" "ou son environnement. Les PEP doivent fournir une spécification technique " "concise et une justification des fonctionnalités proposées." -#: ../Doc/glossary.rst:901 +#: ../Doc/glossary.rst:903 msgid "" "PEPs are intended to be the primary mechanisms for proposing major new " "features, for collecting community input on an issue, and for documenting " @@ -2162,15 +2165,15 @@ msgstr "" "l’établissement d’un consensus au sein de la communauté et de documenter les " "opinions contradictoires." -#: ../Doc/glossary.rst:907 +#: ../Doc/glossary.rst:909 msgid "See :pep:`1`." msgstr "Voir :pep:`1`." -#: ../Doc/glossary.rst:908 +#: ../Doc/glossary.rst:910 msgid "portion" msgstr "portion" -#: ../Doc/glossary.rst:910 +#: ../Doc/glossary.rst:912 msgid "" "A set of files in a single directory (possibly stored in a zip file) that " "contribute to a namespace package, as defined in :pep:`420`." @@ -2179,15 +2182,15 @@ msgstr "" "fichier zip) qui contribue à l'espace de nommage d'un paquet, tel que défini " "dans la :pep:`420`." -#: ../Doc/glossary.rst:912 +#: ../Doc/glossary.rst:914 msgid "positional argument" msgstr "argument positionnel" -#: ../Doc/glossary.rst:915 +#: ../Doc/glossary.rst:917 msgid "provisional API" msgstr "API provisoire" -#: ../Doc/glossary.rst:917 +#: ../Doc/glossary.rst:919 msgid "" "A provisional API is one which has been deliberately excluded from the " "standard library's backwards compatibility guarantees. While major changes " @@ -2206,7 +2209,7 @@ msgstr "" "surviendront que si de sérieux problèmes sont découverts et qu'ils n'avaient " "pas été identifiés avant l'ajout de l'API." -#: ../Doc/glossary.rst:926 +#: ../Doc/glossary.rst:928 msgid "" "Even for provisional APIs, backwards incompatible changes are seen as a " "\"solution of last resort\" - every attempt will still be made to find a " @@ -2217,7 +2220,7 @@ msgstr "" "possible sera fait pour tenter de résoudre les problèmes en conservant la " "rétrocompatibilité." -#: ../Doc/glossary.rst:930 +#: ../Doc/glossary.rst:932 msgid "" "This process allows the standard library to continue to evolve over time, " "without locking in problematic design errors for extended periods of time. " @@ -2227,19 +2230,19 @@ msgstr "" "le temps, sans se bloquer longtemps sur des erreurs d'architecture. Voir la :" "pep:`411` pour plus de détails." -#: ../Doc/glossary.rst:933 +#: ../Doc/glossary.rst:935 msgid "provisional package" msgstr "paquet provisoire" -#: ../Doc/glossary.rst:935 +#: ../Doc/glossary.rst:937 msgid "See :term:`provisional API`." msgstr "Voir :term:`provisional API`." -#: ../Doc/glossary.rst:936 +#: ../Doc/glossary.rst:938 msgid "Python 3000" msgstr "Python 3000" -#: ../Doc/glossary.rst:938 +#: ../Doc/glossary.rst:940 msgid "" "Nickname for the Python 3.x release line (coined long ago when the release " "of version 3 was something in the distant future.) This is also abbreviated " @@ -2248,11 +2251,11 @@ msgstr "" "Surnom donné à la série des Python 3.x (très vieux surnom donné à l'époque " "où Python 3 représentait un futur lointain). Aussi abrégé *Py3k*." -#: ../Doc/glossary.rst:941 +#: ../Doc/glossary.rst:943 msgid "Pythonic" msgstr "*Pythonique*" -#: ../Doc/glossary.rst:943 +#: ../Doc/glossary.rst:945 msgid "" "An idea or piece of code which closely follows the most common idioms of the " "Python language, rather than implementing code using concepts common to " @@ -2268,16 +2271,16 @@ msgstr "" "les gens qui ne sont pas habitués à Python utilisent parfois un compteur " "numérique à la place ::" -#: ../Doc/glossary.rst:953 +#: ../Doc/glossary.rst:955 msgid "As opposed to the cleaner, Pythonic method::" msgstr "" "Plutôt qu'utiliser la méthode, plus propre et élégante, donc *Pythonique* ::" -#: ../Doc/glossary.rst:957 +#: ../Doc/glossary.rst:959 msgid "qualified name" msgstr "nom qualifié" -#: ../Doc/glossary.rst:959 +#: ../Doc/glossary.rst:961 msgid "" "A dotted name showing the \"path\" from a module's global scope to a class, " "function or method defined in that module, as defined in :pep:`3155`. For " @@ -2289,7 +2292,7 @@ msgstr "" "module, tel que défini dans la :pep:`3155`. Pour les fonctions et classes de " "premier niveau, le nom qualifié est le même que le nom de l'objet ::" -#: ../Doc/glossary.rst:976 +#: ../Doc/glossary.rst:978 msgid "" "When used to refer to modules, the *fully qualified name* means the entire " "dotted path to the module, including any parent packages, e.g. ``email.mime." @@ -2300,11 +2303,11 @@ msgstr "" "par des points) vers le module, incluant tous les paquets parents. Par " "exemple : ``email.mime.text`` ::" -#: ../Doc/glossary.rst:983 +#: ../Doc/glossary.rst:985 msgid "reference count" msgstr "nombre de références" -#: ../Doc/glossary.rst:985 +#: ../Doc/glossary.rst:987 msgid "" "The number of references to an object. When the reference count of an " "object drops to zero, it is deallocated. Reference counting is generally " @@ -2320,11 +2323,11 @@ msgstr "" "func:`~sys.getrefcount` que les développeurs peuvent utiliser pour obtenir " "le nombre de références à un objet donné." -#: ../Doc/glossary.rst:991 +#: ../Doc/glossary.rst:993 msgid "regular package" msgstr "paquet classique" -#: ../Doc/glossary.rst:993 +#: ../Doc/glossary.rst:995 msgid "" "A traditional :term:`package`, such as a directory containing an ``__init__." "py`` file." @@ -2332,15 +2335,15 @@ msgstr "" ":term:`paquet` traditionnel, tel qu'un dossier contenant un fichier " "``__init__.py``." -#: ../Doc/glossary.rst:996 +#: ../Doc/glossary.rst:998 msgid "See also :term:`namespace package`." msgstr "Voir aussi :term:`paquet-espace de nommage `." -#: ../Doc/glossary.rst:997 +#: ../Doc/glossary.rst:999 msgid "__slots__" msgstr "``__slots__``" -#: ../Doc/glossary.rst:999 +#: ../Doc/glossary.rst:1001 msgid "" "A declaration inside a class that saves memory by pre-declaring space for " "instance attributes and eliminating instance dictionaries. Though popular, " @@ -2355,11 +2358,11 @@ msgstr "" "nombre d'instances dans une application devient un sujet critique pour la " "mémoire." -#: ../Doc/glossary.rst:1004 +#: ../Doc/glossary.rst:1006 msgid "sequence" msgstr "séquence" -#: ../Doc/glossary.rst:1006 +#: ../Doc/glossary.rst:1008 msgid "" "An :term:`iterable` which supports efficient element access using integer " "indices via the :meth:`__getitem__` special method and defines a :meth:" @@ -2378,7 +2381,7 @@ msgstr "" "*mapping* plutôt qu'une séquence, car ses accès se font par une clé " "arbitraire :term:`immuable` plutôt qu'un nombre entier." -#: ../Doc/glossary.rst:1015 +#: ../Doc/glossary.rst:1017 msgid "" "The :class:`collections.abc.Sequence` abstract base class defines a much " "richer interface that goes beyond just :meth:`__getitem__` and :meth:" @@ -2392,11 +2395,11 @@ msgstr "" "et :meth:`__reversed__`. Les types qui implémentent cette interface étendue " "peuvent s'enregistrer explicitement en utilisant :func:`~abc.register`." -#: ../Doc/glossary.rst:1022 +#: ../Doc/glossary.rst:1024 msgid "single dispatch" msgstr "distribution simple" -#: ../Doc/glossary.rst:1024 +#: ../Doc/glossary.rst:1026 msgid "" "A form of :term:`generic function` dispatch where the implementation is " "chosen based on the type of a single argument." @@ -2405,11 +2408,11 @@ msgstr "" "générique>`, où l'implémentation est choisie en fonction du type d'un seul " "argument." -#: ../Doc/glossary.rst:1026 +#: ../Doc/glossary.rst:1028 msgid "slice" msgstr "tranche" -#: ../Doc/glossary.rst:1028 +#: ../Doc/glossary.rst:1030 msgid "" "An object usually containing a portion of a :term:`sequence`. A slice is " "created using the subscript notation, ``[]`` with colons between numbers " @@ -2422,11 +2425,11 @@ msgstr "" "``variable_name[1:3:5]``. Cette notation utilise des objets :class:`slice` " "en interne." -#: ../Doc/glossary.rst:1032 +#: ../Doc/glossary.rst:1034 msgid "special method" msgstr "méthode spéciale" -#: ../Doc/glossary.rst:1036 +#: ../Doc/glossary.rst:1038 msgid "" "A method that is called implicitly by Python to execute a certain operation " "on a type, such as addition. Such methods have names starting and ending " @@ -2438,11 +2441,11 @@ msgstr "" "ont des noms commençant et terminant par des doubles tirets bas. Les " "méthodes spéciales sont documentées dans :ref:`specialnames`." -#: ../Doc/glossary.rst:1040 +#: ../Doc/glossary.rst:1042 msgid "statement" msgstr "instruction" -#: ../Doc/glossary.rst:1042 +#: ../Doc/glossary.rst:1044 msgid "" "A statement is part of a suite (a \"block\" of code). A statement is either " "an :term:`expression` or one of several constructs with a keyword, such as :" @@ -2453,21 +2456,21 @@ msgstr "" "constructions basées sur un mot-clé, comme :keyword:`if`, :keyword:`while` " "ou :keyword:`for`." -#: ../Doc/glossary.rst:1045 +#: ../Doc/glossary.rst:1047 msgid "text encoding" msgstr "encodage de texte" -#: ../Doc/glossary.rst:1047 +#: ../Doc/glossary.rst:1049 msgid "A codec which encodes Unicode strings to bytes." msgstr "" "Codec (codeur-décodeur) qui convertit des chaînes de caractères Unicode en " "octets (classe *bytes*)." -#: ../Doc/glossary.rst:1048 +#: ../Doc/glossary.rst:1050 msgid "text file" msgstr "fichier texte" -#: ../Doc/glossary.rst:1050 +#: ../Doc/glossary.rst:1052 msgid "" "A :term:`file object` able to read and write :class:`str` objects. Often, a " "text file actually accesses a byte-oriented datastream and handles the :term:" @@ -2482,7 +2485,7 @@ msgstr "" "ou ``'w'``), :data:`sys.stdin`, :data:`sys.stdout` et les instances de :" "class:`io.StringIO`." -#: ../Doc/glossary.rst:1057 +#: ../Doc/glossary.rst:1059 msgid "" "See also :term:`binary file` for a file object able to read and write :term:" "`bytes-like objects `." @@ -2490,11 +2493,11 @@ msgstr "" "Voir aussi :term:`binary file` pour un objet fichier capable de lire et " "d'écrire :term:`bytes-like objects `." -#: ../Doc/glossary.rst:1059 +#: ../Doc/glossary.rst:1061 msgid "triple-quoted string" msgstr "chaîne entre triple guillemets" -#: ../Doc/glossary.rst:1061 +#: ../Doc/glossary.rst:1063 msgid "" "A string which is bound by three instances of either a quotation mark (\") " "or an apostrophe ('). While they don't provide any functionality not " @@ -2513,11 +2516,11 @@ msgstr "" "\\``. Elle est ainsi particulièrement utile pour les chaînes de " "documentation (*docstrings*)." -#: ../Doc/glossary.rst:1068 +#: ../Doc/glossary.rst:1070 msgid "type" msgstr "type" -#: ../Doc/glossary.rst:1070 +#: ../Doc/glossary.rst:1072 msgid "" "The type of a Python object determines what kind of object it is; every " "object has a type. An object's type is accessible as its :attr:`~instance." @@ -2527,15 +2530,15 @@ msgstr "" "objets ont un type. Le type d'un objet peut être obtenu via son attribut :" "attr:`~instance.__class__` ou via ``type(obj)``." -#: ../Doc/glossary.rst:1074 +#: ../Doc/glossary.rst:1076 msgid "type alias" msgstr "alias de type" -#: ../Doc/glossary.rst:1076 +#: ../Doc/glossary.rst:1078 msgid "A synonym for a type, created by assigning the type to an identifier." msgstr "Synonyme d'un type, créé en affectant le type à un identifiant." -#: ../Doc/glossary.rst:1078 +#: ../Doc/glossary.rst:1080 msgid "" "Type aliases are useful for simplifying :term:`type hints `. For " "example::" @@ -2543,19 +2546,19 @@ msgstr "" "Les alias de types sont utiles pour simplifier les :term:`indications de " "types `. Par exemple ::" -#: ../Doc/glossary.rst:1087 +#: ../Doc/glossary.rst:1089 msgid "could be made more readable like this::" msgstr "pourrait être rendu plus lisible comme ceci ::" -#: ../Doc/glossary.rst:1096 ../Doc/glossary.rst:1110 +#: ../Doc/glossary.rst:1098 ../Doc/glossary.rst:1112 msgid "See :mod:`typing` and :pep:`484`, which describe this functionality." msgstr "Voir :mod:`typing` et :pep:`484`, qui décrivent cette fonctionnalité." -#: ../Doc/glossary.rst:1097 +#: ../Doc/glossary.rst:1099 msgid "type hint" msgstr "indication de type" -#: ../Doc/glossary.rst:1099 +#: ../Doc/glossary.rst:1101 msgid "" "An :term:`annotation` that specifies the expected type for a variable, a " "class attribute, or a function parameter or return value." @@ -2563,7 +2566,7 @@ msgstr "" "Le :term:`annotation` qui spécifie le type attendu pour une variable, un " "attribut de classe, un paramètre de fonction ou une valeur de retour." -#: ../Doc/glossary.rst:1102 +#: ../Doc/glossary.rst:1104 msgid "" "Type hints are optional and are not enforced by Python but they are useful " "to static type analysis tools, and aid IDEs with code completion and " @@ -2574,7 +2577,7 @@ msgstr "" "statique et aident les IDE à compléter et à réusiner (*code refactoring* en " "anglais) le code." -#: ../Doc/glossary.rst:1106 +#: ../Doc/glossary.rst:1108 msgid "" "Type hints of global variables, class attributes, and functions, but not " "local variables, can be accessed using :func:`typing.get_type_hints`." @@ -2583,11 +2586,11 @@ msgstr "" "fonctions, mais pas de variables locales, peuvent être consultés en " "utilisant :func:`typing.get_type_hints`." -#: ../Doc/glossary.rst:1111 +#: ../Doc/glossary.rst:1113 msgid "universal newlines" msgstr "retours à la ligne universels" -#: ../Doc/glossary.rst:1113 +#: ../Doc/glossary.rst:1115 msgid "" "A manner of interpreting text streams in which all of the following are " "recognized as ending a line: the Unix end-of-line convention ``'\\n'``, the " @@ -2601,22 +2604,22 @@ msgstr "" "``'\\r'``. Voir la :pep:`278` et la :pep:`3116`, ainsi que la fonction :func:" "`bytes.splitlines` pour d'autres usages." -#: ../Doc/glossary.rst:1118 +#: ../Doc/glossary.rst:1120 msgid "variable annotation" msgstr "annotation de variable" -#: ../Doc/glossary.rst:1120 +#: ../Doc/glossary.rst:1122 msgid "An :term:`annotation` of a variable or a class attribute." msgstr ":term:`annotation` d'une variable ou d'un attribut de classe." -#: ../Doc/glossary.rst:1122 +#: ../Doc/glossary.rst:1124 msgid "" "When annotating a variable or a class attribute, assignment is optional::" msgstr "" "Lorsque vous annotez une variable ou un attribut de classe, l'affectation " "est facultative ::" -#: ../Doc/glossary.rst:1127 +#: ../Doc/glossary.rst:1129 msgid "" "Variable annotations are usually used for :term:`type hints `: " "for example this variable is expected to take :class:`int` values::" @@ -2625,13 +2628,13 @@ msgstr "" "`indications de types ` : par exemple, cette variable devrait " "prendre des valeurs de type :class:`int` ::" -#: ../Doc/glossary.rst:1133 +#: ../Doc/glossary.rst:1135 msgid "Variable annotation syntax is explained in section :ref:`annassign`." msgstr "" "La syntaxe d'annotation de la variable est expliquée dans la section :ref:" "`annassign`." -#: ../Doc/glossary.rst:1135 +#: ../Doc/glossary.rst:1137 msgid "" "See :term:`function annotation`, :pep:`484` and :pep:`526`, which describe " "this functionality." @@ -2639,11 +2642,11 @@ msgstr "" "Reportez-vous à :term:`function annotation`, à la :pep:`484` et à la :pep:" "`526` qui décrivent cette fonctionnalité." -#: ../Doc/glossary.rst:1137 +#: ../Doc/glossary.rst:1139 msgid "virtual environment" msgstr "environnement virtuel" -#: ../Doc/glossary.rst:1139 +#: ../Doc/glossary.rst:1141 msgid "" "A cooperatively isolated runtime environment that allows Python users and " "applications to install and upgrade Python distribution packages without " @@ -2655,15 +2658,15 @@ msgstr "" "des paquets sans interférer avec d'autres applications Python fonctionnant " "sur le même système." -#: ../Doc/glossary.rst:1144 +#: ../Doc/glossary.rst:1146 msgid "See also :mod:`venv`." msgstr "Voir aussi :mod:`venv`." -#: ../Doc/glossary.rst:1145 +#: ../Doc/glossary.rst:1147 msgid "virtual machine" msgstr "machine virtuelle" -#: ../Doc/glossary.rst:1147 +#: ../Doc/glossary.rst:1149 msgid "" "A computer defined entirely in software. Python's virtual machine executes " "the :term:`bytecode` emitted by the bytecode compiler." @@ -2672,11 +2675,11 @@ msgstr "" "(*virtual machine*) de Python exécute le :term:`bytecode` produit par le " "compilateur de *bytecode*." -#: ../Doc/glossary.rst:1149 +#: ../Doc/glossary.rst:1151 msgid "Zen of Python" msgstr "Le zen de Python" -#: ../Doc/glossary.rst:1151 +#: ../Doc/glossary.rst:1153 msgid "" "Listing of Python design principles and philosophies that are helpful in " "understanding and using the language. The listing can be found by typing " @@ -2686,6 +2689,16 @@ msgstr "" "langage. Cette liste peut être obtenue en tapant \"``import this``\" dans " "une invite Python interactive." +#~ msgid "" +#~ ":dfn:`positional-only`: specifies an argument that can be supplied only " +#~ "by position. Python has no syntax for defining positional-only " +#~ "parameters. However, some built-in functions have positional-only " +#~ "parameters (e.g. :func:`abs`)." +#~ msgstr "" +#~ ":dfn:`positional-only` : l'argument ne peut être donné que par sa " +#~ "position. Python n'a pas de syntaxe pour déclarer de tels paramètres, " +#~ "cependant des fonctions natives, comme :func:`abs`, en utilisent." + #~ msgid "" #~ "Any tuple-like class whose indexable elements are also accessible using " #~ "named attributes (for example, :func:`time.localtime` returns a tuple-" diff --git a/howto/functional.po b/howto/functional.po index c254eb1c..be726e31 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-10-30 00:11+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -1954,12 +1954,12 @@ msgstr "" "Utilisation des fonctions d'ordre supérieur pour le traitement de texte »." #: ../Doc/howto/functional.rst:1230 +#, fuzzy msgid "" "Mertz also wrote a 3-part series of articles on functional programming for " -"IBM's DeveloperWorks site; see `part 1 `__, `part 2 `__, and `part 3 `__," +"IBM's DeveloperWorks site; see `part 1 `__, `part 2 `__, and " +"`part 3 `__," msgstr "" "Mertz a également écrit une série de 3 articles (en anglais) sur la " "programmation fonctionnelle pour le site de IBM *DeveloperWorks*, voir la " diff --git a/howto/pyporting.po b/howto/pyporting.po index f5817ef9..00bedae1 100644 --- a/howto/pyporting.po +++ b/howto/pyporting.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-10-31 15:33+0100\n" "Last-Translator: Loc Cosnier \n" "Language-Team: FRENCH \n" @@ -290,14 +290,15 @@ msgstr "" "py_ est recommandé." #: ../Doc/howto/pyporting.rst:118 +#, fuzzy msgid "" "Once you have your code well-tested you are ready to begin porting your code " "to Python 3! But to fully understand how your code is going to change and " "what you want to look out for while you code, you will want to learn what " "changes Python 3 makes in terms of Python 2. Typically the two best ways of " -"doing that is reading the `\"What's New\"`_ doc for each release of Python 3 " -"and the `Porting to Python 3`_ book (which is free online). There is also a " -"handy `cheat sheet`_ from the Python-Future project." +"doing that is reading the :ref:`\"What's New\" ` doc for " +"each release of Python 3 and the `Porting to Python 3`_ book (which is free " +"online). There is also a handy `cheat sheet`_ from the Python-Future project." msgstr "" "Une fois que votre code est bien testé, vous êtes prêt à démarrer votre " "portage vers Python 3 ! Mais afin de comprendre comment votre code va " @@ -743,11 +744,12 @@ msgstr "" "voici un exemple." #: ../Doc/howto/pyporting.rst:305 +#, fuzzy msgid "" -"Let's pretend that you need access to a feature of importlib_ that is " +"Let's pretend that you need access to a feature of :mod:`importlib` that is " "available in Python's standard library since Python 3.3 and available for " "Python 2 through importlib2_ on PyPI. You might be tempted to write code to " -"access e.g. the ``importlib.abc`` module by doing the following::" +"access e.g. the :mod:`importlib.abc` module by doing the following::" msgstr "" "Supposons que vous avez besoin d'accéder à une fonctionnalité de importlib_ " "qui n'est disponible dans la bibliothèque standard de Python que depuis la " diff --git a/install/index.po b/install/index.po index 502d7cf6..749b8678 100644 --- a/install/index.po +++ b/install/index.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-11-16 09:10+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -37,7 +37,7 @@ msgid "" "you almost certainly want that document rather than this one." msgstr "" -#: ../Doc/distutils/_setuptools_disclaimer.rst:3 +#: Doc/distutils/_setuptools_disclaimer.rst:3 msgid "" "This document is being retained solely until the ``setuptools`` " "documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html " diff --git a/library/array.po b/library/array.po index a9ff5e0c..811a50d0 100644 --- a/library/array.po +++ b/library/array.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-10-31 12:47+0100\n" "Last-Translator: Cléo Buck \n" "Language-Team: FRENCH \n" @@ -408,7 +408,7 @@ msgstr "" msgid "Deprecated alias for :meth:`frombytes`." msgstr "Alias obsolète de :meth:`frombytes`." -#: ../Doc/library/array.rst:179 +#: ../Doc/library/array.rst:181 msgid "" "Extends this array with data from the given unicode string. The array must " "be a type ``'u'`` array; otherwise a :exc:`ValueError` is raised. Use " @@ -420,7 +420,7 @@ msgstr "" "``array.frombytes(unicodestring.encode(enc))`` pour ajouter des données " "Unicode à un tableau d'un autre type." -#: ../Doc/library/array.rst:187 +#: ../Doc/library/array.rst:189 msgid "" "Return the smallest *i* such that *i* is the index of the first occurrence " "of *x* in the array." @@ -428,7 +428,7 @@ msgstr "" "Renvoie le plus petit *i* tel que *i* est l'index de la première occurrence " "de *x* dans le tableau." -#: ../Doc/library/array.rst:193 +#: ../Doc/library/array.rst:195 msgid "" "Insert a new item with value *x* in the array before position *i*. Negative " "values are treated as being relative to the end of the array." @@ -437,7 +437,7 @@ msgstr "" "position *i*. Les valeurs négatives sont traitées relativement à la fin du " "tableau." -#: ../Doc/library/array.rst:199 +#: ../Doc/library/array.rst:201 msgid "" "Removes the item with the index *i* from the array and returns it. The " "optional argument defaults to ``-1``, so that by default the last item is " @@ -447,15 +447,15 @@ msgstr "" "optionnel par défaut est à ``-1``, de sorte que par défaut le dernier " "élément est supprimé et renvoyé." -#: ../Doc/library/array.rst:206 +#: ../Doc/library/array.rst:208 msgid "Remove the first occurrence of *x* from the array." msgstr "Supprime la première occurrence de *x* du tableau." -#: ../Doc/library/array.rst:211 +#: ../Doc/library/array.rst:213 msgid "Reverse the order of the items in the array." msgstr "Inverse l'ordre des éléments du tableau." -#: ../Doc/library/array.rst:216 +#: ../Doc/library/array.rst:218 msgid "" "Convert the array to an array of machine values and return the bytes " "representation (the same sequence of bytes that would be written to a file " @@ -465,26 +465,26 @@ msgstr "" "représentation en octets (la même séquence d'octets qui serait écrite par la " "méthode :meth:`tofile`)." -#: ../Doc/library/array.rst:220 +#: ../Doc/library/array.rst:222 msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity." msgstr "" ":meth:`tostring` est renommé en :meth:`tobytes` pour plus de lisibilité." -#: ../Doc/library/array.rst:226 +#: ../Doc/library/array.rst:228 msgid "Write all items (as machine values) to the :term:`file object` *f*." msgstr "" "Écrit tous les éléments (en tant que valeurs machine) du :term:`file object` " "*f*." -#: ../Doc/library/array.rst:231 +#: ../Doc/library/array.rst:233 msgid "Convert the array to an ordinary list with the same items." msgstr "Convertit le tableau en une liste ordinaire avec les mêmes éléments." -#: ../Doc/library/array.rst:236 +#: ../Doc/library/array.rst:238 msgid "Deprecated alias for :meth:`tobytes`." msgstr "Alias obsolète de :meth:`tobytes`." -#: ../Doc/library/array.rst:241 +#: ../Doc/library/array.rst:245 msgid "" "Convert the array to a unicode string. The array must be a type ``'u'`` " "array; otherwise a :exc:`ValueError` is raised. Use ``array.tobytes()." @@ -495,7 +495,7 @@ msgstr "" "tobytes().decode(enc)`` pour obtenir une chaîne Unicode depuis un tableau de " "tout autre type." -#: ../Doc/library/array.rst:246 +#: ../Doc/library/array.rst:250 msgid "" "When an array object is printed or converted to a string, it is represented " "as ``array(typecode, initializer)``. The *initializer* is omitted if the " @@ -513,19 +513,19 @@ msgstr "" "func:`eval`, tant que la classe :class:`~array.array` a été importée en " "utilisant ``from array import array``. Exemples ::" -#: ../Doc/library/array.rst:263 +#: ../Doc/library/array.rst:267 msgid "Module :mod:`struct`" msgstr "Module :mod:`struct`" -#: ../Doc/library/array.rst:263 +#: ../Doc/library/array.rst:267 msgid "Packing and unpacking of heterogeneous binary data." msgstr "Empaquetage et dépaquetage de données binaires hétérogènes." -#: ../Doc/library/array.rst:267 +#: ../Doc/library/array.rst:271 msgid "Module :mod:`xdrlib`" msgstr "Module :mod:`xdrlib`" -#: ../Doc/library/array.rst:266 +#: ../Doc/library/array.rst:270 msgid "" "Packing and unpacking of External Data Representation (XDR) data as used in " "some remote procedure call systems." @@ -534,11 +534,11 @@ msgstr "" "telles qu'elles sont utilisées dans certains systèmes d'appels de procédures " "à distance (ou RPC pour *remote procedure call* en anglais)." -#: ../Doc/library/array.rst:270 +#: ../Doc/library/array.rst:274 msgid "`The Numerical Python Documentation `_" msgstr "`La documentation de *Numerical Python* `" -#: ../Doc/library/array.rst:270 +#: ../Doc/library/array.rst:274 msgid "" "The Numeric Python extension (NumPy) defines another array type; see http://" "www.numpy.org/ for further information about Numerical Python." diff --git a/library/ast.po b/library/ast.po index 067a1130..41cee97a 100644 --- a/library/ast.po +++ b/library/ast.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-09-11 07:42+0200\n" "Last-Translator: Julien VITARD \n" "Language-Team: FRENCH \n" @@ -498,10 +498,18 @@ msgstr "" "liste des nœuds plutôt qu'un seul nœud." #: ../Doc/library/ast.rst:317 +msgid "" +"If :class:`NodeTransformer` introduces new nodes (that weren't part of " +"original tree) without giving them location information (such as :attr:" +"`lineno`), :func:`fix_missing_locations` should be called with the new sub-" +"tree to recalculate the location information::" +msgstr "" + +#: ../Doc/library/ast.rst:325 msgid "Usually you use the transformer like this::" msgstr "Utilisation typique du *transformer* ::" -#: ../Doc/library/ast.rst:324 +#: ../Doc/library/ast.rst:332 #, fuzzy msgid "" "Return a formatted dump of the tree in *node*. This is mainly useful for " @@ -520,7 +528,7 @@ msgstr "" "colonne ne sont pas récupérés par défaut. Si l'on souhaite les récupérer, " "l'option *include_attributes* peut être définie comme ``True``." -#: ../Doc/library/ast.rst:334 +#: ../Doc/library/ast.rst:342 msgid "" "`Green Tree Snakes `_, an external " "documentation resource, has good details on working with Python ASTs." diff --git a/library/asyncio-eventloop.po b/library/asyncio-eventloop.po index 177bb856..357f539f 100644 --- a/library/asyncio-eventloop.po +++ b/library/asyncio-eventloop.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-06-10 15:50+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -66,111 +66,116 @@ msgid "" msgstr "" #: ../Doc/library/asyncio-eventloop.rst:41 +#, fuzzy +msgid "Get the current event loop." +msgstr "Arrête l'exécution de la boucle d'évènements." + +#: ../Doc/library/asyncio-eventloop.rst:43 msgid "" -"Get the current event loop. If there is no current event loop set in the " -"current OS thread and :func:`set_event_loop` has not yet been called, " -"asyncio will create a new event loop and set it as the current one." +"If there is no current event loop set in the current OS thread, the OS " +"thread is main, and :func:`set_event_loop` has not yet been called, asyncio " +"will create a new event loop and set it as the current one." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:46 +#: ../Doc/library/asyncio-eventloop.rst:48 msgid "" "Because this function has rather complex behavior (especially when custom " "event loop policies are in use), using the :func:`get_running_loop` function " "is preferred to :func:`get_event_loop` in coroutines and callbacks." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:51 +#: ../Doc/library/asyncio-eventloop.rst:53 msgid "" "Consider also using the :func:`asyncio.run` function instead of using lower " "level functions to manually create and close an event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:56 +#: ../Doc/library/asyncio-eventloop.rst:58 msgid "Set *loop* as a current event loop for the current OS thread." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:60 +#: ../Doc/library/asyncio-eventloop.rst:62 msgid "Create a new event loop object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:62 +#: ../Doc/library/asyncio-eventloop.rst:64 msgid "" "Note that the behaviour of :func:`get_event_loop`, :func:`set_event_loop`, " "and :func:`new_event_loop` functions can be altered by :ref:`setting a " "custom event loop policy `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:68 +#: ../Doc/library/asyncio-eventloop.rst:70 msgid "Contents" msgstr "Sommaire" -#: ../Doc/library/asyncio-eventloop.rst:69 +#: ../Doc/library/asyncio-eventloop.rst:71 msgid "This documentation page contains the following sections:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:71 +#: ../Doc/library/asyncio-eventloop.rst:73 msgid "" "The `Event Loop Methods`_ section is the reference documentation of the " "event loop APIs;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:74 +#: ../Doc/library/asyncio-eventloop.rst:76 msgid "" "The `Callback Handles`_ section documents the :class:`Handle` and :class:" "`TimerHandle` instances which are returned from scheduling methods such as :" "meth:`loop.call_soon` and :meth:`loop.call_later`;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:78 +#: ../Doc/library/asyncio-eventloop.rst:80 msgid "" "The `Server Objects`_ section documents types returned from event loop " "methods like :meth:`loop.create_server`;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:81 +#: ../Doc/library/asyncio-eventloop.rst:83 msgid "" "The `Event Loop Implementations`_ section documents the :class:" "`SelectorEventLoop` and :class:`ProactorEventLoop` classes;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:84 +#: ../Doc/library/asyncio-eventloop.rst:86 msgid "" "The `Examples`_ section showcases how to work with some event loop APIs." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:91 +#: ../Doc/library/asyncio-eventloop.rst:93 msgid "Event Loop Methods" msgstr "Méthodes de la boucle d'évènements" -#: ../Doc/library/asyncio-eventloop.rst:93 +#: ../Doc/library/asyncio-eventloop.rst:95 msgid "Event loops have **low-level** APIs for the following:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:101 +#: ../Doc/library/asyncio-eventloop.rst:103 msgid "Running and stopping the loop" msgstr "Démarrer et arrêter une boucle d'évènements" -#: ../Doc/library/asyncio-eventloop.rst:105 +#: ../Doc/library/asyncio-eventloop.rst:107 msgid "Run until the *future* (an instance of :class:`Future`) has completed." msgstr "" "Lance la boucle jusqu'à ce que *future* (une instance de :class:`Future`) " "soit terminée." -#: ../Doc/library/asyncio-eventloop.rst:108 +#: ../Doc/library/asyncio-eventloop.rst:110 msgid "" "If the argument is a :ref:`coroutine object ` it is implicitly " "scheduled to run as a :class:`asyncio.Task`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:111 +#: ../Doc/library/asyncio-eventloop.rst:113 msgid "Return the Future's result or raise its exception." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:115 +#: ../Doc/library/asyncio-eventloop.rst:117 msgid "Run the event loop until :meth:`stop` is called." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:117 +#: ../Doc/library/asyncio-eventloop.rst:119 msgid "" "If :meth:`stop` is called before :meth:`run_forever()` is called, the loop " "will poll the I/O selector once with a timeout of zero, run all callbacks " @@ -178,7 +183,7 @@ msgid "" "and then exit." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:122 +#: ../Doc/library/asyncio-eventloop.rst:124 msgid "" "If :meth:`stop` is called while :meth:`run_forever` is running, the loop " "will run the current batch of callbacks and then exit. Note that new " @@ -187,41 +192,41 @@ msgid "" "called." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:130 +#: ../Doc/library/asyncio-eventloop.rst:132 msgid "Stop the event loop." msgstr "Arrête l'exécution de la boucle d'évènements." -#: ../Doc/library/asyncio-eventloop.rst:134 +#: ../Doc/library/asyncio-eventloop.rst:136 msgid "Return ``True`` if the event loop is currently running." msgstr "Renvoie ``True`` si la boucle d'évènements est démarrée." -#: ../Doc/library/asyncio-eventloop.rst:138 +#: ../Doc/library/asyncio-eventloop.rst:140 msgid "Return ``True`` if the event loop was closed." msgstr "Renvoie ``True`` si la boucle d'évènements est arrêtée." -#: ../Doc/library/asyncio-eventloop.rst:142 +#: ../Doc/library/asyncio-eventloop.rst:144 msgid "Close the event loop." msgstr "Arrête la boucle d'évènements." -#: ../Doc/library/asyncio-eventloop.rst:144 +#: ../Doc/library/asyncio-eventloop.rst:146 msgid "" "The loop must not be running when this function is called. Any pending " "callbacks will be discarded." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:147 +#: ../Doc/library/asyncio-eventloop.rst:149 msgid "" "This method clears all queues and shuts down the executor, but does not wait " "for the executor to finish." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:150 +#: ../Doc/library/asyncio-eventloop.rst:152 msgid "" "This method is idempotent and irreversible. No other methods should be " "called after the event loop is closed." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:155 +#: ../Doc/library/asyncio-eventloop.rst:157 msgid "" "Schedule all currently open :term:`asynchronous generator` objects to close " "with an :meth:`~agen.aclose()` call. After calling this method, the event " @@ -229,59 +234,59 @@ msgid "" "should be used to reliably finalize all scheduled asynchronous generators." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:161 +#: ../Doc/library/asyncio-eventloop.rst:163 msgid "" "Note that there is no need to call this function when :func:`asyncio.run` is " "used." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:164 -#: ../Doc/library/asyncio-eventloop.rst:1034 -#: ../Doc/library/asyncio-eventloop.rst:1416 +#: ../Doc/library/asyncio-eventloop.rst:166 +#: ../Doc/library/asyncio-eventloop.rst:1050 +#: ../Doc/library/asyncio-eventloop.rst:1432 msgid "Example::" msgstr "Exemple ::" -#: ../Doc/library/asyncio-eventloop.rst:176 +#: ../Doc/library/asyncio-eventloop.rst:178 msgid "Scheduling callbacks" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:180 +#: ../Doc/library/asyncio-eventloop.rst:182 msgid "" "Schedule a *callback* to be called with *args* arguments at the next " "iteration of the event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:183 +#: ../Doc/library/asyncio-eventloop.rst:185 msgid "" "Callbacks are called in the order in which they are registered. Each " "callback will be called exactly once." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:186 -#: ../Doc/library/asyncio-eventloop.rst:249 +#: ../Doc/library/asyncio-eventloop.rst:188 +#: ../Doc/library/asyncio-eventloop.rst:251 msgid "" "An optional keyword-only *context* argument allows specifying a custom :" "class:`contextvars.Context` for the *callback* to run in. The current " "context is used when no *context* is provided." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:190 +#: ../Doc/library/asyncio-eventloop.rst:192 msgid "" "An instance of :class:`asyncio.Handle` is returned, which can be used later " "to cancel the callback." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:193 +#: ../Doc/library/asyncio-eventloop.rst:195 msgid "This method is not thread-safe." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:197 +#: ../Doc/library/asyncio-eventloop.rst:199 msgid "" "A thread-safe variant of :meth:`call_soon`. Must be used to schedule " "callbacks *from another thread*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:200 +#: ../Doc/library/asyncio-eventloop.rst:202 msgid "" "See the :ref:`concurrency and multithreading ` " "section of the documentation." @@ -289,143 +294,143 @@ msgstr "" "Voir la section :ref:`exécution concurrente et multi-fils d'exécution " "` de la documentation." -#: ../Doc/library/asyncio-eventloop.rst:203 -#: ../Doc/library/asyncio-eventloop.rst:253 -#: ../Doc/library/asyncio-eventloop.rst:273 +#: ../Doc/library/asyncio-eventloop.rst:205 +#: ../Doc/library/asyncio-eventloop.rst:255 +#: ../Doc/library/asyncio-eventloop.rst:275 msgid "" "The *context* keyword-only parameter was added. See :pep:`567` for more " "details." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:211 +#: ../Doc/library/asyncio-eventloop.rst:213 msgid "" "Most :mod:`asyncio` scheduling functions don't allow passing keyword " "arguments. To do that, use :func:`functools.partial`::" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:218 +#: ../Doc/library/asyncio-eventloop.rst:220 msgid "" "Using partial objects is usually more convenient than using lambdas, as " "asyncio can render partial objects better in debug and error messages." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:226 +#: ../Doc/library/asyncio-eventloop.rst:228 msgid "Scheduling delayed callbacks" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:228 +#: ../Doc/library/asyncio-eventloop.rst:230 msgid "" "Event loop provides mechanisms to schedule callback functions to be called " "at some point in the future. Event loop uses monotonic clocks to track time." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:235 +#: ../Doc/library/asyncio-eventloop.rst:237 msgid "" "Schedule *callback* to be called after the given *delay* number of seconds " "(can be either an int or a float)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:238 -#: ../Doc/library/asyncio-eventloop.rst:270 +#: ../Doc/library/asyncio-eventloop.rst:240 +#: ../Doc/library/asyncio-eventloop.rst:272 msgid "" "An instance of :class:`asyncio.TimerHandle` is returned which can be used to " "cancel the callback." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:241 +#: ../Doc/library/asyncio-eventloop.rst:243 msgid "" "*callback* will be called exactly once. If two callbacks are scheduled for " "exactly the same time, the order in which they are called is undefined." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:245 +#: ../Doc/library/asyncio-eventloop.rst:247 msgid "" "The optional positional *args* will be passed to the callback when it is " "called. If you want the callback to be called with keyword arguments use :" "func:`functools.partial`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:257 +#: ../Doc/library/asyncio-eventloop.rst:259 msgid "" "In Python 3.7 and earlier with the default event loop implementation, the " "*delay* could not exceed one day. This has been fixed in Python 3.8." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:264 +#: ../Doc/library/asyncio-eventloop.rst:266 msgid "" "Schedule *callback* to be called at the given absolute timestamp *when* (an " "int or a float), using the same time reference as :meth:`loop.time`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:268 +#: ../Doc/library/asyncio-eventloop.rst:270 msgid "This method's behavior is the same as :meth:`call_later`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:277 +#: ../Doc/library/asyncio-eventloop.rst:279 msgid "" "In Python 3.7 and earlier with the default event loop implementation, the " "difference between *when* and the current time could not exceed one day. " "This has been fixed in Python 3.8." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:284 +#: ../Doc/library/asyncio-eventloop.rst:286 msgid "" "Return the current time, as a :class:`float` value, according to the event " "loop's internal monotonic clock." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:288 +#: ../Doc/library/asyncio-eventloop.rst:290 msgid "" "In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*) " "should not exceed one day. This has been fixed in Python 3.8." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:294 +#: ../Doc/library/asyncio-eventloop.rst:296 msgid "The :func:`asyncio.sleep` function." msgstr "La fonction :func:`asyncio.sleep`." -#: ../Doc/library/asyncio-eventloop.rst:298 +#: ../Doc/library/asyncio-eventloop.rst:300 msgid "Creating Futures and Tasks" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:302 +#: ../Doc/library/asyncio-eventloop.rst:304 msgid "Create an :class:`asyncio.Future` object attached to the event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:304 +#: ../Doc/library/asyncio-eventloop.rst:306 msgid "" "This is the preferred way to create Futures in asyncio. This lets third-" "party event loops provide alternative implementations of the Future object " "(with better performance or instrumentation)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:312 +#: ../Doc/library/asyncio-eventloop.rst:314 msgid "" "Schedule the execution of a :ref:`coroutine`. Return a :class:`Task` object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:315 +#: ../Doc/library/asyncio-eventloop.rst:317 msgid "" "Third-party event loops can use their own subclass of :class:`Task` for " "interoperability. In this case, the result type is a subclass of :class:" "`Task`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:319 +#: ../Doc/library/asyncio-eventloop.rst:321 msgid "" "If the *name* argument is provided and not ``None``, it is set as the name " "of the task using :meth:`Task.set_name`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:322 +#: ../Doc/library/asyncio-eventloop.rst:324 msgid "Added the ``name`` parameter." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:327 +#: ../Doc/library/asyncio-eventloop.rst:329 msgid "Set a task factory that will be used by :meth:`loop.create_task`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:330 +#: ../Doc/library/asyncio-eventloop.rst:332 msgid "" "If *factory* is ``None`` the default task factory will be set. Otherwise, " "*factory* must be a *callable* with the signature matching ``(loop, coro)``, " @@ -434,82 +439,82 @@ msgid "" "compatible object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:338 +#: ../Doc/library/asyncio-eventloop.rst:340 msgid "Return a task factory or ``None`` if the default one is in use." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:342 +#: ../Doc/library/asyncio-eventloop.rst:344 msgid "Opening network connections" msgstr "Créer des connexions" -#: ../Doc/library/asyncio-eventloop.rst:350 +#: ../Doc/library/asyncio-eventloop.rst:352 msgid "" "Open a streaming transport connection to a given address specified by *host* " "and *port*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:353 +#: ../Doc/library/asyncio-eventloop.rst:355 msgid "" "The socket family can be either :py:data:`~socket.AF_INET` or :py:data:" "`~socket.AF_INET6` depending on *host* (or the *family* argument, if " "provided)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:357 +#: ../Doc/library/asyncio-eventloop.rst:359 msgid "The socket type will be :py:data:`~socket.SOCK_STREAM`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:359 -#: ../Doc/library/asyncio-eventloop.rst:950 +#: ../Doc/library/asyncio-eventloop.rst:361 #: ../Doc/library/asyncio-eventloop.rst:966 +#: ../Doc/library/asyncio-eventloop.rst:982 msgid "" "*protocol_factory* must be a callable returning an :ref:`asyncio protocol " "` implementation." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:362 +#: ../Doc/library/asyncio-eventloop.rst:364 msgid "" "This method will try to establish the connection in the background. When " "successful, it returns a ``(transport, protocol)`` pair." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:365 +#: ../Doc/library/asyncio-eventloop.rst:367 msgid "The chronological synopsis of the underlying operation is as follows:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:367 +#: ../Doc/library/asyncio-eventloop.rst:369 msgid "" "The connection is established and a :ref:`transport ` is " "created for it." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:370 +#: ../Doc/library/asyncio-eventloop.rst:372 msgid "" "*protocol_factory* is called without arguments and is expected to return a :" "ref:`protocol ` instance." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:373 +#: ../Doc/library/asyncio-eventloop.rst:375 msgid "" "The protocol instance is coupled with the transport by calling its :meth:" "`~BaseProtocol.connection_made` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:376 +#: ../Doc/library/asyncio-eventloop.rst:378 msgid "A ``(transport, protocol)`` tuple is returned on success." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:378 +#: ../Doc/library/asyncio-eventloop.rst:380 msgid "" "The created transport is an implementation-dependent bidirectional stream." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:381 -#: ../Doc/library/asyncio-eventloop.rst:477 +#: ../Doc/library/asyncio-eventloop.rst:383 +#: ../Doc/library/asyncio-eventloop.rst:494 msgid "Other arguments:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:383 +#: ../Doc/library/asyncio-eventloop.rst:385 msgid "" "*ssl*: if given and not false, a SSL/TLS transport is created (by default a " "plain TCP transport is created). If *ssl* is a :class:`ssl.SSLContext` " @@ -518,11 +523,11 @@ msgid "" "is used." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:389 +#: ../Doc/library/asyncio-eventloop.rst:391 msgid ":ref:`SSL/TLS security considerations `" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:391 +#: ../Doc/library/asyncio-eventloop.rst:393 msgid "" "*server_hostname* sets or overrides the hostname that the target server's " "certificate will be matched against. Should only be passed if *ssl* is not " @@ -533,7 +538,7 @@ msgid "" "potential man-in-the-middle attacks)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:399 +#: ../Doc/library/asyncio-eventloop.rst:401 msgid "" "*family*, *proto*, *flags* are the optional address family, protocol and " "flags to be passed through to getaddrinfo() for *host* resolution. If given, " @@ -541,7 +546,7 @@ msgid "" "constants." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:404 +#: ../Doc/library/asyncio-eventloop.rst:406 msgid "" "*happy_eyeballs_delay*, if given, enables Happy Eyeballs for this " "connection. It should be a floating-point number representing the amount of " @@ -551,7 +556,7 @@ msgid "" "RFC is ``0.25`` (250 milliseconds)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:412 +#: ../Doc/library/asyncio-eventloop.rst:414 msgid "" "*interleave* controls address reordering when a host name resolves to " "multiple IP addresses. If ``0`` or unspecified, no reordering is done, and " @@ -562,7 +567,7 @@ msgid "" "is not specified, and ``1`` if it is." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:421 +#: ../Doc/library/asyncio-eventloop.rst:423 msgid "" "*sock*, if given, should be an existing, already connected :class:`socket." "socket` object to be used by the transport. If *sock* is given, none of " @@ -570,93 +575,115 @@ msgid "" "*interleave* and *local_addr* should be specified." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:427 +#: ../Doc/library/asyncio-eventloop.rst:429 msgid "" "*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " "the socket to locally. The *local_host* and *local_port* are looked up " "using ``getaddrinfo()``, similarly to *host* and *port*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:431 -#: ../Doc/library/asyncio-eventloop.rst:759 +#: ../Doc/library/asyncio-eventloop.rst:433 +#: ../Doc/library/asyncio-eventloop.rst:775 msgid "" "*ssl_handshake_timeout* is (for a TLS connection) the time in seconds to " "wait for the TLS handshake to complete before aborting the connection. " "``60.0`` seconds if ``None`` (default)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:437 +#: ../Doc/library/asyncio-eventloop.rst:439 msgid "The *happy_eyeballs_delay* and *interleave* parameters." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:441 -#: ../Doc/library/asyncio-eventloop.rst:544 -#: ../Doc/library/asyncio-eventloop.rst:697 +#: ../Doc/library/asyncio-eventloop.rst:443 +#: ../Doc/library/asyncio-eventloop.rst:560 +#: ../Doc/library/asyncio-eventloop.rst:713 msgid "The *ssl_handshake_timeout* parameter." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:445 -#: ../Doc/library/asyncio-eventloop.rst:627 +#: ../Doc/library/asyncio-eventloop.rst:447 +#: ../Doc/library/asyncio-eventloop.rst:643 msgid "" "The socket option :py:data:`~socket.TCP_NODELAY` is set by default for all " "TCP connections." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:450 -#: ../Doc/library/asyncio-eventloop.rst:632 +#: ../Doc/library/asyncio-eventloop.rst:452 +#: ../Doc/library/asyncio-eventloop.rst:648 msgid "Added support for SSL/TLS in :class:`ProactorEventLoop`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:454 +#: ../Doc/library/asyncio-eventloop.rst:456 msgid "" "The :func:`open_connection` function is a high-level alternative API. It " "returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be " "used directly in async/await code." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:464 +#: ../Doc/library/asyncio-eventloop.rst:467 +msgid "" +"The parameter *reuse_address* is no longer supported, as using :py:data:" +"`~sockets.SO_REUSEADDR` poses a significant security concern for UDP. " +"Explicitly passing ``reuse_address=True`` will raise an exception." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:471 +msgid "" +"When multiple processes with differing UIDs assign sockets to an identical " +"UDP socket address with ``SO_REUSEADDR``, incoming packets can become " +"randomly distributed among the sockets." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:475 +msgid "" +"For supported platforms, *reuse_port* can be used as a replacement for " +"similar functionality. With *reuse_port*, :py:data:`~sockets.SO_REUSEPORT` " +"is used instead, which specifically prevents processes with differing UIDs " +"from assigning sockets to the same socket address." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:481 msgid "Create a datagram connection." msgstr "Créer une connexion par datagramme" -#: ../Doc/library/asyncio-eventloop.rst:466 +#: ../Doc/library/asyncio-eventloop.rst:483 msgid "" "The socket family can be either :py:data:`~socket.AF_INET`, :py:data:" "`~socket.AF_INET6`, or :py:data:`~socket.AF_UNIX`, depending on *host* (or " "the *family* argument, if provided)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:470 +#: ../Doc/library/asyncio-eventloop.rst:487 msgid "The socket type will be :py:data:`~socket.SOCK_DGRAM`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:472 -#: ../Doc/library/asyncio-eventloop.rst:569 -#: ../Doc/library/asyncio-eventloop.rst:680 +#: ../Doc/library/asyncio-eventloop.rst:489 +#: ../Doc/library/asyncio-eventloop.rst:585 +#: ../Doc/library/asyncio-eventloop.rst:696 msgid "" "*protocol_factory* must be a callable returning a :ref:`protocol ` implementation." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:475 -#: ../Doc/library/asyncio-eventloop.rst:530 +#: ../Doc/library/asyncio-eventloop.rst:492 +#: ../Doc/library/asyncio-eventloop.rst:546 msgid "A tuple of ``(transport, protocol)`` is returned on success." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:479 +#: ../Doc/library/asyncio-eventloop.rst:496 msgid "" "*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " "the socket to locally. The *local_host* and *local_port* are looked up " "using :meth:`getaddrinfo`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:483 +#: ../Doc/library/asyncio-eventloop.rst:500 msgid "" "*remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used to " "connect the socket to a remote address. The *remote_host* and *remote_port* " "are looked up using :meth:`getaddrinfo`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:487 +#: ../Doc/library/asyncio-eventloop.rst:504 msgid "" "*family*, *proto*, *flags* are the optional address family, protocol and " "flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If " @@ -664,15 +691,7 @@ msgid "" "module constants." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:492 -#: ../Doc/library/asyncio-eventloop.rst:601 -msgid "" -"*reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` " -"state, without waiting for its natural timeout to expire. If not specified " -"will automatically be set to ``True`` on Unix." -msgstr "" - -#: ../Doc/library/asyncio-eventloop.rst:497 +#: ../Doc/library/asyncio-eventloop.rst:509 msgid "" "*reuse_port* tells the kernel to allow this endpoint to be bound to the same " "port as other existing endpoints are bound to, so long as they all set this " @@ -681,13 +700,13 @@ msgid "" "this capability is unsupported." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:503 +#: ../Doc/library/asyncio-eventloop.rst:515 msgid "" "*allow_broadcast* tells the kernel to allow this endpoint to send messages " "to the broadcast address." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:506 +#: ../Doc/library/asyncio-eventloop.rst:518 msgid "" "*sock* can optionally be specified in order to use a preexisting, already " "connected, :class:`socket.socket` object to be used by the transport. If " @@ -695,142 +714,155 @@ msgid "" "`None`)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:511 +#: ../Doc/library/asyncio-eventloop.rst:523 msgid "" "See :ref:`UDP echo client protocol ` and :" "ref:`UDP echo server protocol ` examples." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:514 +#: ../Doc/library/asyncio-eventloop.rst:526 msgid "" "The *family*, *proto*, *flags*, *reuse_address*, *reuse_port, " "*allow_broadcast*, and *sock* parameters were added." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:518 +#: ../Doc/library/asyncio-eventloop.rst:530 +msgid "" +"The *reuse_address* parameter is no longer supported due to security " +"concerns." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:534 msgid "Added support for Windows." msgstr "Prise en charge sur Windows." -#: ../Doc/library/asyncio-eventloop.rst:525 +#: ../Doc/library/asyncio-eventloop.rst:541 msgid "Create a Unix connection." msgstr "Créer une connexion Unix" -#: ../Doc/library/asyncio-eventloop.rst:527 +#: ../Doc/library/asyncio-eventloop.rst:543 msgid "" "The socket family will be :py:data:`~socket.AF_UNIX`; socket type will be :" "py:data:`~socket.SOCK_STREAM`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:532 +#: ../Doc/library/asyncio-eventloop.rst:548 msgid "" "*path* is the name of a Unix domain socket and is required, unless a *sock* " "parameter is specified. Abstract Unix sockets, :class:`str`, :class:" "`bytes`, and :class:`~pathlib.Path` paths are supported." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:537 +#: ../Doc/library/asyncio-eventloop.rst:553 msgid "" "See the documentation of the :meth:`loop.create_connection` method for " "information about arguments to this method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:541 -#: ../Doc/library/asyncio-eventloop.rst:661 -#: ../Doc/library/asyncio-eventloop.rst:1017 +#: ../Doc/library/asyncio-eventloop.rst:557 +#: ../Doc/library/asyncio-eventloop.rst:677 +#: ../Doc/library/asyncio-eventloop.rst:1033 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilité ` : Unix." -#: ../Doc/library/asyncio-eventloop.rst:548 +#: ../Doc/library/asyncio-eventloop.rst:564 msgid "The *path* parameter can now be a :term:`path-like object`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:552 +#: ../Doc/library/asyncio-eventloop.rst:568 msgid "Creating network servers" msgstr "Créer des serveurs" -#: ../Doc/library/asyncio-eventloop.rst:562 +#: ../Doc/library/asyncio-eventloop.rst:578 msgid "" "Create a TCP server (socket type :data:`~socket.SOCK_STREAM`) listening on " "*port* of the *host* address." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:565 +#: ../Doc/library/asyncio-eventloop.rst:581 msgid "Returns a :class:`Server` object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:567 +#: ../Doc/library/asyncio-eventloop.rst:583 msgid "Arguments:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:572 +#: ../Doc/library/asyncio-eventloop.rst:588 msgid "" "The *host* parameter can be set to several types which determine where the " "server would be listening:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:575 +#: ../Doc/library/asyncio-eventloop.rst:591 msgid "" "If *host* is a string, the TCP server is bound to a single network interface " "specified by *host*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:578 +#: ../Doc/library/asyncio-eventloop.rst:594 msgid "" "If *host* is a sequence of strings, the TCP server is bound to all network " "interfaces specified by the sequence." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:581 +#: ../Doc/library/asyncio-eventloop.rst:597 msgid "" "If *host* is an empty string or ``None``, all interfaces are assumed and a " "list of multiple sockets will be returned (most likely one for IPv4 and " "another one for IPv6)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:585 +#: ../Doc/library/asyncio-eventloop.rst:601 msgid "" "*family* can be set to either :data:`socket.AF_INET` or :data:`~socket." "AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* " "will be determined from host name (defaults to :data:`~socket.AF_UNSPEC`)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:590 +#: ../Doc/library/asyncio-eventloop.rst:606 msgid "*flags* is a bitmask for :meth:`getaddrinfo`." msgstr "*flags* est un masque de bits pour :meth:`getaddrinfo`." -#: ../Doc/library/asyncio-eventloop.rst:592 +#: ../Doc/library/asyncio-eventloop.rst:608 msgid "" "*sock* can optionally be specified in order to use a preexisting socket " "object. If specified, *host* and *port* must not be specified." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:595 +#: ../Doc/library/asyncio-eventloop.rst:611 msgid "" "*backlog* is the maximum number of queued connections passed to :meth:" "`~socket.socket.listen` (defaults to 100)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:598 +#: ../Doc/library/asyncio-eventloop.rst:614 msgid "" "*ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over " "the accepted connections." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:606 +#: ../Doc/library/asyncio-eventloop.rst:617 +msgid "" +"*reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` " +"state, without waiting for its natural timeout to expire. If not specified " +"will automatically be set to ``True`` on Unix." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:622 msgid "" "*reuse_port* tells the kernel to allow this endpoint to be bound to the same " "port as other existing endpoints are bound to, so long as they all set this " "flag when being created. This option is not supported on Windows." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:611 +#: ../Doc/library/asyncio-eventloop.rst:627 msgid "" "*ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait " "for the TLS handshake to complete before aborting the connection. ``60.0`` " "seconds if ``None`` (default)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:615 +#: ../Doc/library/asyncio-eventloop.rst:631 msgid "" "*start_serving* set to ``True`` (the default) causes the created server to " "start accepting connections immediately. When set to ``False``, the user " @@ -838,105 +870,105 @@ msgid "" "to make the server to start accepting connections." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:623 +#: ../Doc/library/asyncio-eventloop.rst:639 msgid "Added *ssl_handshake_timeout* and *start_serving* parameters." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:636 +#: ../Doc/library/asyncio-eventloop.rst:652 msgid "The *host* parameter can be a sequence of strings." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:640 +#: ../Doc/library/asyncio-eventloop.rst:656 msgid "" "The :func:`start_server` function is a higher-level alternative API that " "returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can " "be used in an async/await code." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:649 +#: ../Doc/library/asyncio-eventloop.rst:665 msgid "" "Similar to :meth:`loop.create_server` but works with the :py:data:`~socket." "AF_UNIX` socket family." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:652 +#: ../Doc/library/asyncio-eventloop.rst:668 msgid "" "*path* is the name of a Unix domain socket, and is required, unless a *sock* " "argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, " "and :class:`~pathlib.Path` paths are supported." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:657 +#: ../Doc/library/asyncio-eventloop.rst:673 msgid "" "See the documentation of the :meth:`loop.create_server` method for " "information about arguments to this method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:664 +#: ../Doc/library/asyncio-eventloop.rst:680 msgid "The *ssl_handshake_timeout* and *start_serving* parameters." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:668 +#: ../Doc/library/asyncio-eventloop.rst:684 msgid "The *path* parameter can now be a :class:`~pathlib.Path` object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:673 +#: ../Doc/library/asyncio-eventloop.rst:689 msgid "Wrap an already accepted connection into a transport/protocol pair." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:675 +#: ../Doc/library/asyncio-eventloop.rst:691 msgid "" "This method can be used by servers that accept connections outside of " "asyncio but that use asyncio to handle them." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:678 -#: ../Doc/library/asyncio-eventloop.rst:745 +#: ../Doc/library/asyncio-eventloop.rst:694 +#: ../Doc/library/asyncio-eventloop.rst:761 msgid "Parameters:" msgstr "Paramètres :" -#: ../Doc/library/asyncio-eventloop.rst:683 +#: ../Doc/library/asyncio-eventloop.rst:699 msgid "" "*sock* is a preexisting socket object returned from :meth:`socket.accept " "`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:686 +#: ../Doc/library/asyncio-eventloop.rst:702 msgid "" "*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the " "accepted connections." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:689 +#: ../Doc/library/asyncio-eventloop.rst:705 msgid "" "*ssl_handshake_timeout* is (for an SSL connection) the time in seconds to " "wait for the SSL handshake to complete before aborting the connection. " "``60.0`` seconds if ``None`` (default)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:693 +#: ../Doc/library/asyncio-eventloop.rst:709 msgid "Returns a ``(transport, protocol)`` pair." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:703 +#: ../Doc/library/asyncio-eventloop.rst:719 msgid "Transferring files" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:708 +#: ../Doc/library/asyncio-eventloop.rst:724 msgid "" "Send a *file* over a *transport*. Return the total number of bytes sent." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:711 +#: ../Doc/library/asyncio-eventloop.rst:727 msgid "The method uses high-performance :meth:`os.sendfile` if available." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:713 +#: ../Doc/library/asyncio-eventloop.rst:729 msgid "*file* must be a regular file object opened in binary mode." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:715 -#: ../Doc/library/asyncio-eventloop.rst:905 +#: ../Doc/library/asyncio-eventloop.rst:731 +#: ../Doc/library/asyncio-eventloop.rst:921 msgid "" "*offset* tells from where to start reading the file. If specified, *count* " "is the total number of bytes to transmit as opposed to sending the file " @@ -945,98 +977,98 @@ msgid "" "obtain the actual number of bytes sent." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:722 +#: ../Doc/library/asyncio-eventloop.rst:738 msgid "" "*fallback* set to ``True`` makes asyncio to manually read and send the file " "when the platform does not support the sendfile system call (e.g. Windows or " "SSL socket on Unix)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:726 +#: ../Doc/library/asyncio-eventloop.rst:742 msgid "" "Raise :exc:`SendfileNotAvailableError` if the system does not support the " "*sendfile* syscall and *fallback* is ``False``." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:733 +#: ../Doc/library/asyncio-eventloop.rst:749 msgid "TLS Upgrade" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:739 +#: ../Doc/library/asyncio-eventloop.rst:755 msgid "Upgrade an existing transport-based connection to TLS." msgstr "Convertit une connexion existante en connexion TLS." -#: ../Doc/library/asyncio-eventloop.rst:741 +#: ../Doc/library/asyncio-eventloop.rst:757 msgid "" "Return a new transport instance, that the *protocol* must start using " "immediately after the *await*. The *transport* instance passed to the " "*start_tls* method should never be used again." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:747 +#: ../Doc/library/asyncio-eventloop.rst:763 msgid "" "*transport* and *protocol* instances that methods like :meth:`~loop." "create_server` and :meth:`~loop.create_connection` return." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:751 +#: ../Doc/library/asyncio-eventloop.rst:767 msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:753 +#: ../Doc/library/asyncio-eventloop.rst:769 msgid "" "*server_side* pass ``True`` when a server-side connection is being upgraded " "(like the one created by :meth:`~loop.create_server`)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:756 +#: ../Doc/library/asyncio-eventloop.rst:772 msgid "" "*server_hostname*: sets or overrides the host name that the target server's " "certificate will be matched against." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:767 +#: ../Doc/library/asyncio-eventloop.rst:783 msgid "Watching file descriptors" msgstr "Surveiller des descripteurs de fichiers" -#: ../Doc/library/asyncio-eventloop.rst:771 +#: ../Doc/library/asyncio-eventloop.rst:787 msgid "" "Start monitoring the *fd* file descriptor for read availability and invoke " "*callback* with the specified arguments once *fd* is available for reading." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:777 +#: ../Doc/library/asyncio-eventloop.rst:793 msgid "Stop monitoring the *fd* file descriptor for read availability." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:781 +#: ../Doc/library/asyncio-eventloop.rst:797 msgid "" "Start monitoring the *fd* file descriptor for write availability and invoke " "*callback* with the specified arguments once *fd* is available for writing." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:785 -#: ../Doc/library/asyncio-eventloop.rst:1004 +#: ../Doc/library/asyncio-eventloop.rst:801 +#: ../Doc/library/asyncio-eventloop.rst:1020 msgid "" "Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *callback*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:790 +#: ../Doc/library/asyncio-eventloop.rst:806 msgid "Stop monitoring the *fd* file descriptor for write availability." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:792 +#: ../Doc/library/asyncio-eventloop.rst:808 msgid "" "See also :ref:`Platform Support ` section for some " "limitations of these methods." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:797 +#: ../Doc/library/asyncio-eventloop.rst:813 msgid "Working with socket objects directly" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:799 +#: ../Doc/library/asyncio-eventloop.rst:815 msgid "" "In general, protocol implementations that use transport-based APIs such as :" "meth:`loop.create_connection` and :meth:`loop.create_server` are faster than " @@ -1045,49 +1077,49 @@ msgid "" "socket` objects directly is more convenient." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:808 +#: ../Doc/library/asyncio-eventloop.rst:824 msgid "" "Receive up to *nbytes* from *sock*. Asynchronous version of :meth:`socket." "recv() `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:811 +#: ../Doc/library/asyncio-eventloop.rst:827 msgid "Return the received data as a bytes object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:813 -#: ../Doc/library/asyncio-eventloop.rst:827 -#: ../Doc/library/asyncio-eventloop.rst:842 -#: ../Doc/library/asyncio-eventloop.rst:855 -#: ../Doc/library/asyncio-eventloop.rst:881 -#: ../Doc/library/asyncio-eventloop.rst:919 +#: ../Doc/library/asyncio-eventloop.rst:829 +#: ../Doc/library/asyncio-eventloop.rst:843 +#: ../Doc/library/asyncio-eventloop.rst:858 +#: ../Doc/library/asyncio-eventloop.rst:871 +#: ../Doc/library/asyncio-eventloop.rst:897 +#: ../Doc/library/asyncio-eventloop.rst:935 msgid "*sock* must be a non-blocking socket." msgstr "Le connecteur *sock* ne doit pas être bloquant." -#: ../Doc/library/asyncio-eventloop.rst:815 +#: ../Doc/library/asyncio-eventloop.rst:831 msgid "" "Even though this method was always documented as a coroutine method, " "releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this " "is an ``async def`` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:822 +#: ../Doc/library/asyncio-eventloop.rst:838 msgid "" "Receive data from *sock* into the *buf* buffer. Modeled after the blocking :" "meth:`socket.recv_into() ` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:825 +#: ../Doc/library/asyncio-eventloop.rst:841 msgid "Return the number of bytes written to the buffer." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:833 +#: ../Doc/library/asyncio-eventloop.rst:849 msgid "" "Send *data* to the *sock* socket. Asynchronous version of :meth:`socket." "sendall() `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:836 +#: ../Doc/library/asyncio-eventloop.rst:852 msgid "" "This method continues to send to the socket until either all data in *data* " "has been sent or an error occurs. ``None`` is returned on success. On " @@ -1096,23 +1128,23 @@ msgid "" "the connection." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:844 +#: ../Doc/library/asyncio-eventloop.rst:860 msgid "" "Even though the method was always documented as a coroutine method, before " "Python 3.7 it returned an :class:`Future`. Since Python 3.7, this is an " "``async def`` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:851 +#: ../Doc/library/asyncio-eventloop.rst:867 msgid "Connect *sock* to a remote socket at *address*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:853 +#: ../Doc/library/asyncio-eventloop.rst:869 msgid "" "Asynchronous version of :meth:`socket.connect() `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:857 +#: ../Doc/library/asyncio-eventloop.rst:873 msgid "" "``address`` no longer needs to be resolved. ``sock_connect`` will try to " "check if the *address* is already resolved by calling :func:`socket." @@ -1120,19 +1152,19 @@ msgid "" "*address*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:866 +#: ../Doc/library/asyncio-eventloop.rst:882 msgid "" ":meth:`loop.create_connection` and :func:`asyncio.open_connection() " "`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:872 +#: ../Doc/library/asyncio-eventloop.rst:888 msgid "" "Accept a connection. Modeled after the blocking :meth:`socket.accept() " "` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:875 +#: ../Doc/library/asyncio-eventloop.rst:891 msgid "" "The socket must be bound to an address and listening for connections. The " "return value is a pair ``(conn, address)`` where *conn* is a *new* socket " @@ -1140,64 +1172,64 @@ msgid "" "the address bound to the socket on the other end of the connection." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:883 +#: ../Doc/library/asyncio-eventloop.rst:899 msgid "" "Even though the method was always documented as a coroutine method, before " "Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an " "``async def`` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:890 +#: ../Doc/library/asyncio-eventloop.rst:906 msgid ":meth:`loop.create_server` and :func:`start_server`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:895 +#: ../Doc/library/asyncio-eventloop.rst:911 msgid "" "Send a file using high-performance :mod:`os.sendfile` if possible. Return " "the total number of bytes sent." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:898 +#: ../Doc/library/asyncio-eventloop.rst:914 msgid "" "Asynchronous version of :meth:`socket.sendfile() `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:900 +#: ../Doc/library/asyncio-eventloop.rst:916 msgid "" "*sock* must be a non-blocking :const:`socket.SOCK_STREAM` :class:`~socket." "socket`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:903 +#: ../Doc/library/asyncio-eventloop.rst:919 msgid "*file* must be a regular file object open in binary mode." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:912 +#: ../Doc/library/asyncio-eventloop.rst:928 msgid "" "*fallback*, when set to ``True``, makes asyncio manually read and send the " "file when the platform does not support the sendfile syscall (e.g. Windows " "or SSL socket on Unix)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:916 +#: ../Doc/library/asyncio-eventloop.rst:932 msgid "" "Raise :exc:`SendfileNotAvailableError` if the system does not support " "*sendfile* syscall and *fallback* is ``False``." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:925 +#: ../Doc/library/asyncio-eventloop.rst:941 msgid "DNS" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:930 +#: ../Doc/library/asyncio-eventloop.rst:946 msgid "Asynchronous version of :meth:`socket.getaddrinfo`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:934 +#: ../Doc/library/asyncio-eventloop.rst:950 msgid "Asynchronous version of :meth:`socket.getnameinfo`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:936 +#: ../Doc/library/asyncio-eventloop.rst:952 msgid "" "Both *getaddrinfo* and *getnameinfo* methods were always documented to " "return a coroutine, but prior to Python 3.7 they were, in fact, returning :" @@ -1205,68 +1237,68 @@ msgid "" "coroutines." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:944 +#: ../Doc/library/asyncio-eventloop.rst:960 msgid "Working with pipes" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:948 +#: ../Doc/library/asyncio-eventloop.rst:964 msgid "Register the read end of *pipe* in the event loop." msgstr "" "Branche l'extrémité en lecture du tube *pipe* à la boucle d'évènements." -#: ../Doc/library/asyncio-eventloop.rst:953 +#: ../Doc/library/asyncio-eventloop.rst:969 msgid "*pipe* is a :term:`file-like object `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:955 +#: ../Doc/library/asyncio-eventloop.rst:971 msgid "" "Return pair ``(transport, protocol)``, where *transport* supports the :class:" "`ReadTransport` interface and *protocol* is an object instantiated by the " "*protocol_factory*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:959 #: ../Doc/library/asyncio-eventloop.rst:975 +#: ../Doc/library/asyncio-eventloop.rst:991 msgid "" "With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-" "blocking mode." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:964 +#: ../Doc/library/asyncio-eventloop.rst:980 msgid "Register the write end of *pipe* in the event loop." msgstr "Branche l'extrémité en écriture de *pipe* à la boucle d'évènements." -#: ../Doc/library/asyncio-eventloop.rst:969 +#: ../Doc/library/asyncio-eventloop.rst:985 msgid "*pipe* is :term:`file-like object `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:971 +#: ../Doc/library/asyncio-eventloop.rst:987 msgid "" "Return pair ``(transport, protocol)``, where *transport* supports :class:" "`WriteTransport` interface and *protocol* is an object instantiated by the " "*protocol_factory*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:980 +#: ../Doc/library/asyncio-eventloop.rst:996 msgid "" ":class:`SelectorEventLoop` does not support the above methods on Windows. " "Use :class:`ProactorEventLoop` instead for Windows." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:985 +#: ../Doc/library/asyncio-eventloop.rst:1001 msgid "" "The :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` methods." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:990 +#: ../Doc/library/asyncio-eventloop.rst:1006 msgid "Unix signals" msgstr "Signaux Unix" -#: ../Doc/library/asyncio-eventloop.rst:994 +#: ../Doc/library/asyncio-eventloop.rst:1010 msgid "Set *callback* as the handler for the *signum* signal." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:996 +#: ../Doc/library/asyncio-eventloop.rst:1012 msgid "" "The callback will be invoked by *loop*, along with other queued callbacks " "and runnable coroutines of that event loop. Unlike signal handlers " @@ -1274,56 +1306,56 @@ msgid "" "function is allowed to interact with the event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1001 +#: ../Doc/library/asyncio-eventloop.rst:1017 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:1007 +#: ../Doc/library/asyncio-eventloop.rst:1023 msgid "" "Like :func:`signal.signal`, this function must be invoked in the main thread." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1012 +#: ../Doc/library/asyncio-eventloop.rst:1028 msgid "Remove the handler for the *sig* signal." msgstr "Supprime le gestionnaire du signal *sig*." -#: ../Doc/library/asyncio-eventloop.rst:1014 +#: ../Doc/library/asyncio-eventloop.rst:1030 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:1021 +#: ../Doc/library/asyncio-eventloop.rst:1037 msgid "The :mod:`signal` module." msgstr "Le module :mod:`signal`." -#: ../Doc/library/asyncio-eventloop.rst:1025 +#: ../Doc/library/asyncio-eventloop.rst:1041 msgid "Executing code in thread or process pools" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1029 +#: ../Doc/library/asyncio-eventloop.rst:1045 msgid "Arrange for *func* to be called in the specified executor." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1031 +#: ../Doc/library/asyncio-eventloop.rst:1047 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:1075 +#: ../Doc/library/asyncio-eventloop.rst:1091 msgid "This method returns a :class:`asyncio.Future` object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1077 +#: ../Doc/library/asyncio-eventloop.rst:1093 msgid "" "Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *func*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1080 +#: ../Doc/library/asyncio-eventloop.rst:1096 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 " @@ -1331,38 +1363,38 @@ msgid "" "default." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1089 +#: ../Doc/library/asyncio-eventloop.rst:1105 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:1093 +#: ../Doc/library/asyncio-eventloop.rst:1109 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:1098 +#: ../Doc/library/asyncio-eventloop.rst:1114 msgid "" "*executor* must be an instance of :class:`concurrent.futures." "ThreadPoolExecutor`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1103 +#: ../Doc/library/asyncio-eventloop.rst:1119 msgid "Error Handling API" msgstr "API de gestion d'erreur" -#: ../Doc/library/asyncio-eventloop.rst:1105 +#: ../Doc/library/asyncio-eventloop.rst:1121 msgid "Allows customizing how exceptions are handled in the event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1109 +#: ../Doc/library/asyncio-eventloop.rst:1125 msgid "Set *handler* as the new event loop exception handler." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1111 +#: ../Doc/library/asyncio-eventloop.rst:1127 msgid "" "If *handler* is ``None``, the default exception handler will be set. " "Otherwise, *handler* must be a callable with the signature matching ``(loop, " @@ -1371,147 +1403,147 @@ msgid "" "(see :meth:`call_exception_handler` documentation for details about context)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1121 +#: ../Doc/library/asyncio-eventloop.rst:1137 msgid "" "Return the current exception handler, or ``None`` if no custom exception " "handler was set." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1128 +#: ../Doc/library/asyncio-eventloop.rst:1144 msgid "Default exception handler." msgstr "Gestionnaire d'exception par défaut." -#: ../Doc/library/asyncio-eventloop.rst:1130 +#: ../Doc/library/asyncio-eventloop.rst:1146 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:1134 +#: ../Doc/library/asyncio-eventloop.rst:1150 msgid "" "*context* parameter has the same meaning as in :meth:" "`call_exception_handler`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1139 +#: ../Doc/library/asyncio-eventloop.rst:1155 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:1141 +#: ../Doc/library/asyncio-eventloop.rst:1157 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:1144 +#: ../Doc/library/asyncio-eventloop.rst:1160 msgid "'message': Error message;" msgstr "``message`` : Message d'erreur ;" -#: ../Doc/library/asyncio-eventloop.rst:1145 +#: ../Doc/library/asyncio-eventloop.rst:1161 msgid "'exception' (optional): Exception object;" msgstr "``exception`` (optionnel): Un objet exception ;" -#: ../Doc/library/asyncio-eventloop.rst:1146 +#: ../Doc/library/asyncio-eventloop.rst:1162 msgid "'future' (optional): :class:`asyncio.Future` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1147 +#: ../Doc/library/asyncio-eventloop.rst:1163 msgid "'handle' (optional): :class:`asyncio.Handle` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1148 +#: ../Doc/library/asyncio-eventloop.rst:1164 msgid "'protocol' (optional): :ref:`Protocol ` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1149 +#: ../Doc/library/asyncio-eventloop.rst:1165 msgid "'transport' (optional): :ref:`Transport ` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1150 +#: ../Doc/library/asyncio-eventloop.rst:1166 msgid "'socket' (optional): :class:`socket.socket` instance." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1154 +#: ../Doc/library/asyncio-eventloop.rst:1170 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:1159 +#: ../Doc/library/asyncio-eventloop.rst:1175 msgid "Enabling debug mode" msgstr "Active le mode débogage" -#: ../Doc/library/asyncio-eventloop.rst:1163 +#: ../Doc/library/asyncio-eventloop.rst:1179 msgid "Get the debug mode (:class:`bool`) of the event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1165 +#: ../Doc/library/asyncio-eventloop.rst:1181 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:1171 +#: ../Doc/library/asyncio-eventloop.rst:1187 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:1175 +#: ../Doc/library/asyncio-eventloop.rst:1191 msgid "" "The new ``-X dev`` command line option can now also be used to enable the " "debug mode." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1180 +#: ../Doc/library/asyncio-eventloop.rst:1196 msgid "The :ref:`debug mode of asyncio `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1184 +#: ../Doc/library/asyncio-eventloop.rst:1200 msgid "Running Subprocesses" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1186 +#: ../Doc/library/asyncio-eventloop.rst:1202 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:1193 +#: ../Doc/library/asyncio-eventloop.rst:1209 msgid "" "The default asyncio event loop on **Windows** does not support subprocesses. " "See :ref:`Subprocess Support on Windows ` for " "details." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1201 +#: ../Doc/library/asyncio-eventloop.rst:1217 msgid "" "Create a subprocess from one or more string arguments specified by *args*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1204 +#: ../Doc/library/asyncio-eventloop.rst:1220 msgid "*args* must be a list of strings represented by:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1206 +#: ../Doc/library/asyncio-eventloop.rst:1222 msgid ":class:`str`;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1207 +#: ../Doc/library/asyncio-eventloop.rst:1223 msgid "" "or :class:`bytes`, encoded to the :ref:`filesystem encoding `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1210 +#: ../Doc/library/asyncio-eventloop.rst:1226 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:1214 +#: ../Doc/library/asyncio-eventloop.rst:1230 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 " @@ -1519,136 +1551,136 @@ msgid "" "which is list of strings, *subprocess_exec* takes multiple string arguments." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1220 +#: ../Doc/library/asyncio-eventloop.rst:1236 msgid "" "The *protocol_factory* must be a callable returning a subclass of the :class:" "`asyncio.SubprocessProtocol` class." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1223 +#: ../Doc/library/asyncio-eventloop.rst:1239 msgid "Other parameters:" msgstr "Autres paramètres :" -#: ../Doc/library/asyncio-eventloop.rst:1225 +#: ../Doc/library/asyncio-eventloop.rst:1241 msgid "*stdin* can be any of these:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1227 +#: ../Doc/library/asyncio-eventloop.rst:1243 msgid "" "a file-like object representing a pipe to be connected to the subprocess's " "standard input stream using :meth:`~loop.connect_write_pipe`" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1230 -#: ../Doc/library/asyncio-eventloop.rst:1242 -#: ../Doc/library/asyncio-eventloop.rst:1254 +#: ../Doc/library/asyncio-eventloop.rst:1246 +#: ../Doc/library/asyncio-eventloop.rst:1258 +#: ../Doc/library/asyncio-eventloop.rst:1270 msgid "" "the :const:`subprocess.PIPE` constant (default) which will create a new pipe " "and connect it," msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1232 -#: ../Doc/library/asyncio-eventloop.rst:1244 -#: ../Doc/library/asyncio-eventloop.rst:1256 +#: ../Doc/library/asyncio-eventloop.rst:1248 +#: ../Doc/library/asyncio-eventloop.rst:1260 +#: ../Doc/library/asyncio-eventloop.rst:1272 msgid "" "the value ``None`` which will make the subprocess inherit the file " "descriptor from this process" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1234 -#: ../Doc/library/asyncio-eventloop.rst:1246 -#: ../Doc/library/asyncio-eventloop.rst:1258 +#: ../Doc/library/asyncio-eventloop.rst:1250 +#: ../Doc/library/asyncio-eventloop.rst:1262 +#: ../Doc/library/asyncio-eventloop.rst:1274 msgid "" "the :const:`subprocess.DEVNULL` constant which indicates that the special :" "data:`os.devnull` file will be used" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1237 +#: ../Doc/library/asyncio-eventloop.rst:1253 msgid "*stdout* can be any of these:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1239 +#: ../Doc/library/asyncio-eventloop.rst:1255 msgid "" "a file-like object representing a pipe to be connected to the subprocess's " "standard output stream using :meth:`~loop.connect_write_pipe`" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1249 +#: ../Doc/library/asyncio-eventloop.rst:1265 msgid "*stderr* can be any of these:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1251 +#: ../Doc/library/asyncio-eventloop.rst:1267 msgid "" "a file-like object representing a pipe to be connected to the subprocess's " "standard error stream using :meth:`~loop.connect_write_pipe`" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1260 +#: ../Doc/library/asyncio-eventloop.rst:1276 msgid "" "the :const:`subprocess.STDOUT` constant which will connect the standard " "error stream to the process' standard output stream" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1263 +#: ../Doc/library/asyncio-eventloop.rst:1279 msgid "" "All other keyword arguments are passed to :class:`subprocess.Popen` without " "interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*, " "*encoding* and *errors*, which should not be specified at all." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1268 +#: ../Doc/library/asyncio-eventloop.rst:1284 msgid "" "The ``asyncio`` subprocess API does not support decoding the streams as " "text. :func:`bytes.decode` can be used to convert the bytes returned from " "the stream to text." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1272 +#: ../Doc/library/asyncio-eventloop.rst:1288 msgid "" "See the constructor of the :class:`subprocess.Popen` class for documentation " "on other arguments." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1275 +#: ../Doc/library/asyncio-eventloop.rst:1291 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:1283 +#: ../Doc/library/asyncio-eventloop.rst:1299 msgid "" "Create a subprocess from *cmd*, which can be a :class:`str` or a :class:" "`bytes` string encoded to the :ref:`filesystem encoding `, using the platform's \"shell\" syntax." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1288 +#: ../Doc/library/asyncio-eventloop.rst:1304 msgid "" "This is similar to the standard library :class:`subprocess.Popen` class " "called with ``shell=True``." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1291 +#: ../Doc/library/asyncio-eventloop.rst:1307 msgid "" "The *protocol_factory* must be a callable returning a subclass of the :class:" "`SubprocessProtocol` class." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1294 +#: ../Doc/library/asyncio-eventloop.rst:1310 msgid "" "See :meth:`~loop.subprocess_exec` for more details about the remaining " "arguments." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1297 +#: ../Doc/library/asyncio-eventloop.rst:1313 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:1302 +#: ../Doc/library/asyncio-eventloop.rst:1318 msgid "" "It is the application's responsibility to ensure that all whitespace and " "special characters are quoted appropriately to avoid `shell injection " @@ -1658,105 +1690,105 @@ msgid "" "used to construct shell commands." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1311 +#: ../Doc/library/asyncio-eventloop.rst:1327 msgid "Callback Handles" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1315 +#: ../Doc/library/asyncio-eventloop.rst:1331 msgid "" "A callback wrapper object returned by :meth:`loop.call_soon`, :meth:`loop." "call_soon_threadsafe`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1320 +#: ../Doc/library/asyncio-eventloop.rst:1336 msgid "" "Cancel the callback. If the callback has already been canceled or executed, " "this method has no effect." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1325 +#: ../Doc/library/asyncio-eventloop.rst:1341 msgid "Return ``True`` if the callback was cancelled." msgstr "Renvoie ``True`` si la fonction de rappel à été annulé." -#: ../Doc/library/asyncio-eventloop.rst:1331 +#: ../Doc/library/asyncio-eventloop.rst:1347 msgid "" "A callback wrapper object returned by :meth:`loop.call_later`, and :meth:" "`loop.call_at`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1334 +#: ../Doc/library/asyncio-eventloop.rst:1350 msgid "This class is a subclass of :class:`Handle`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1338 +#: ../Doc/library/asyncio-eventloop.rst:1354 msgid "Return a scheduled callback time as :class:`float` seconds." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1340 +#: ../Doc/library/asyncio-eventloop.rst:1356 msgid "" "The time is an absolute timestamp, using the same time reference as :meth:" "`loop.time`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1347 +#: ../Doc/library/asyncio-eventloop.rst:1363 msgid "Server Objects" msgstr "Objets Serveur" -#: ../Doc/library/asyncio-eventloop.rst:1349 +#: ../Doc/library/asyncio-eventloop.rst:1365 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:1353 +#: ../Doc/library/asyncio-eventloop.rst:1369 msgid "Do not instantiate the class directly." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1357 +#: ../Doc/library/asyncio-eventloop.rst:1373 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:1370 +#: ../Doc/library/asyncio-eventloop.rst:1386 msgid "Server object is an asynchronous context manager since Python 3.7." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1375 +#: ../Doc/library/asyncio-eventloop.rst:1391 msgid "" "Stop serving: close listening sockets and set the :attr:`sockets` attribute " "to ``None``." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1378 +#: ../Doc/library/asyncio-eventloop.rst:1394 msgid "" "The sockets that represent existing incoming client connections are left " "open." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1381 +#: ../Doc/library/asyncio-eventloop.rst:1397 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:1386 +#: ../Doc/library/asyncio-eventloop.rst:1402 msgid "Return the event loop associated with the server object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1392 +#: ../Doc/library/asyncio-eventloop.rst:1408 msgid "Start accepting connections." msgstr "Commence à accepter les connexions." -#: ../Doc/library/asyncio-eventloop.rst:1394 +#: ../Doc/library/asyncio-eventloop.rst:1410 msgid "" "This method is idempotent, so it can be called when the server is already " "being serving." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1397 +#: ../Doc/library/asyncio-eventloop.rst:1413 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 " @@ -1765,97 +1797,97 @@ msgid "" "accepting connections." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1408 +#: ../Doc/library/asyncio-eventloop.rst:1424 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:1412 +#: ../Doc/library/asyncio-eventloop.rst:1428 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:1434 +#: ../Doc/library/asyncio-eventloop.rst:1450 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:1440 +#: ../Doc/library/asyncio-eventloop.rst:1456 msgid "Wait until the :meth:`close` method completes." msgstr "Attends que la méthode :meth:`close` se termine." -#: ../Doc/library/asyncio-eventloop.rst:1444 +#: ../Doc/library/asyncio-eventloop.rst:1460 msgid "List of :class:`socket.socket` objects the server is listening on." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1446 +#: ../Doc/library/asyncio-eventloop.rst:1462 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:1455 +#: ../Doc/library/asyncio-eventloop.rst:1471 msgid "Event Loop Implementations" msgstr "Implémentations de boucle d'évènements" -#: ../Doc/library/asyncio-eventloop.rst:1457 +#: ../Doc/library/asyncio-eventloop.rst:1473 msgid "" "asyncio ships with two different event loop implementations: :class:" "`SelectorEventLoop` and :class:`ProactorEventLoop`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1460 +#: ../Doc/library/asyncio-eventloop.rst:1476 msgid "" "By default asyncio is configured to use :class:`SelectorEventLoop` on Unix " "and :class:`ProactorEventLoop` on Windows." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1466 +#: ../Doc/library/asyncio-eventloop.rst:1482 msgid "An event loop based on the :mod:`selectors` module." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1468 +#: ../Doc/library/asyncio-eventloop.rst:1484 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:1480 +#: ../Doc/library/asyncio-eventloop.rst:1496 msgid ":ref:`Availability `: Unix, Windows." msgstr ":ref:`Disponibilité ` : Unix, Windows." -#: ../Doc/library/asyncio-eventloop.rst:1485 +#: ../Doc/library/asyncio-eventloop.rst:1501 msgid "An event loop for Windows that uses \"I/O Completion Ports\" (IOCP)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1488 +#: ../Doc/library/asyncio-eventloop.rst:1504 msgid ":ref:`Availability `: Windows." msgstr ":ref:`Disponibilité ` : Windows." -#: ../Doc/library/asyncio-eventloop.rst:1491 +#: ../Doc/library/asyncio-eventloop.rst:1507 msgid "" "`MSDN documentation on I/O Completion Ports `_." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1497 +#: ../Doc/library/asyncio-eventloop.rst:1513 msgid "Abstract base class for asyncio-compliant event loops." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1499 +#: ../Doc/library/asyncio-eventloop.rst:1515 msgid "" "The :ref:`Event Loop Methods ` section lists all methods " "that an alternative implementation of ``AbstractEventLoop`` should have " "defined." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1505 +#: ../Doc/library/asyncio-eventloop.rst:1521 msgid "Examples" msgstr "Exemples" -#: ../Doc/library/asyncio-eventloop.rst:1507 +#: ../Doc/library/asyncio-eventloop.rst:1523 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." @@ -1863,70 +1895,70 @@ msgid "" "consider using the high-level functions like :func:`asyncio.run`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1517 +#: ../Doc/library/asyncio-eventloop.rst:1533 msgid "Hello World with call_soon()" msgstr "\"Hello World\" avec ``call_soon()``" -#: ../Doc/library/asyncio-eventloop.rst:1519 +#: ../Doc/library/asyncio-eventloop.rst:1535 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:1543 +#: ../Doc/library/asyncio-eventloop.rst:1559 msgid "" "A similar :ref:`Hello World ` example created with a coroutine " "and the :func:`run` function." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1550 +#: ../Doc/library/asyncio-eventloop.rst:1566 msgid "Display the current date with call_later()" msgstr "Afficher la date actuelle avec ``call_later()``" -#: ../Doc/library/asyncio-eventloop.rst:1552 +#: ../Doc/library/asyncio-eventloop.rst:1568 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:1580 +#: ../Doc/library/asyncio-eventloop.rst:1596 msgid "" "A similar :ref:`current date ` example created with a " "coroutine and the :func:`run` function." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1587 +#: ../Doc/library/asyncio-eventloop.rst:1603 msgid "Watch a file descriptor for read events" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1589 +#: ../Doc/library/asyncio-eventloop.rst:1605 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:1627 +#: ../Doc/library/asyncio-eventloop.rst:1643 msgid "" "A similar :ref:`example ` using " "transports, protocols, and the :meth:`loop.create_connection` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1631 +#: ../Doc/library/asyncio-eventloop.rst:1647 msgid "" "Another similar :ref:`example ` " "using the high-level :func:`asyncio.open_connection` function and streams." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1639 +#: ../Doc/library/asyncio-eventloop.rst:1655 msgid "Set signal handlers for SIGINT and SIGTERM" msgstr "Définit les gestionnaires de signaux pour *SIGINT* et *SIGTERM*" -#: ../Doc/library/asyncio-eventloop.rst:1641 +#: ../Doc/library/asyncio-eventloop.rst:1657 msgid "(This ``signals`` example only works on Unix.)" msgstr "(Cet exemple ne fonctionne que sur Unix.)" -#: ../Doc/library/asyncio-eventloop.rst:1643 +#: ../Doc/library/asyncio-eventloop.rst:1659 msgid "" "Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using " "the :meth:`loop.add_signal_handler` method::" diff --git a/library/code.po b/library/code.po index b6c0da45..544fb2d1 100644 --- a/library/code.po +++ b/library/code.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -97,7 +97,7 @@ msgstr "" msgid "" "Compile and run some source in the interpreter. Arguments are the same as " "for :func:`compile_command`; the default for *filename* is ``''``, " -"and for *symbol* is ``'single'``. One several things can happen:" +"and for *symbol* is ``'single'``. One of several things can happen:" msgstr "" #: ../Doc/library/code.rst:81 diff --git a/library/ctypes.po b/library/ctypes.po index f589f6bd..f1bd405c 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-07-29 19:07+0200\n" +"Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \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.2.1\n" #: ../Doc/library/ctypes.rst:2 @@ -220,19 +220,7 @@ msgstr "" "Cet exemple appelle les deux fonctions avec un pointeur ``NULL`` (on utilise " "``None`` pour passer un pointeur ``NULL``) ::" -#: ../Doc/library/ctypes.rst:166 -msgid "" -":mod:`ctypes` may raise a :exc:`ValueError` after calling the function, if " -"it detects that an invalid number of arguments were passed. This behavior " -"should not be relied upon. It is deprecated in 3.6.2, and will be removed " -"in 3.7." -msgstr "" -"Si, après avoir appelé une fonction, :mod:`ctypes` détecte qu'un nombre " -"incorrect d'arguments a été passé, il peut lever une :exc:`ValueError`. Il " -"ne faut pas se baser sur ce comportement ; celui-ci est obsolète depuis la " -"version 3.6.2 et sera supprimé en 3.7." - -#: ../Doc/library/ctypes.rst:171 +#: ../Doc/library/ctypes.rst:164 msgid "" ":exc:`ValueError` is raised when you call an ``stdcall`` function with the " "``cdecl`` calling convention, or vice versa::" @@ -240,7 +228,7 @@ msgstr "" "Une :exc:`ValueError` est levée quand on appelle une fonction ``stdcall`` " "avec la convention d'appel ``cdecl`` et vice-versa ::" -#: ../Doc/library/ctypes.rst:186 +#: ../Doc/library/ctypes.rst:179 msgid "" "To find out the correct calling convention you have to look into the C " "header file or the documentation for the function you want to call." @@ -248,7 +236,7 @@ msgstr "" "Pour déterminer la convention d'appel, il faut consulter l'en-tête C ou la " "documentation de la fonction à appeler." -#: ../Doc/library/ctypes.rst:189 +#: ../Doc/library/ctypes.rst:182 msgid "" "On Windows, :mod:`ctypes` uses win32 structured exception handling to " "prevent crashes from general protection faults when functions are called " @@ -260,7 +248,7 @@ msgstr "" "(*general protection faults*) du système, lorsque des fonctions sont " "appelées avec un nombre incorrect d'arguments ::" -#: ../Doc/library/ctypes.rst:199 +#: ../Doc/library/ctypes.rst:192 msgid "" "There are, however, enough ways to crash Python with :mod:`ctypes`, so you " "should be careful anyway. The :mod:`faulthandler` module can be helpful in " @@ -273,7 +261,7 @@ msgstr "" "erreurs de segmentation produites par des appels erronés à la bibliothèque " "C)." -#: ../Doc/library/ctypes.rst:204 +#: ../Doc/library/ctypes.rst:197 msgid "" "``None``, integers, bytes objects and (unicode) strings are the only native " "Python objects that can directly be used as parameters in these function " @@ -292,7 +280,7 @@ msgstr "" "type C :c:type:`int` par défaut de la plate-forme, un masque étant appliqué " "pour qu'ils tiennent dans le type C." -#: ../Doc/library/ctypes.rst:211 +#: ../Doc/library/ctypes.rst:204 msgid "" "Before we move on calling functions with other parameter types, we have to " "learn more about :mod:`ctypes` data types." @@ -301,235 +289,235 @@ msgstr "" "paramètres, apprenons-en un peu plus sur les types de données de :mod:" "`ctypes`." -#: ../Doc/library/ctypes.rst:218 ../Doc/library/ctypes.rst:2135 +#: ../Doc/library/ctypes.rst:211 ../Doc/library/ctypes.rst:2128 msgid "Fundamental data types" msgstr "Types de données fondamentaux" -#: ../Doc/library/ctypes.rst:220 +#: ../Doc/library/ctypes.rst:213 msgid ":mod:`ctypes` defines a number of primitive C compatible data types:" msgstr "" ":mod:`ctypes` définit plusieurs types de donnée de base compatibles avec le " "C :" -#: ../Doc/library/ctypes.rst:223 +#: ../Doc/library/ctypes.rst:216 msgid "ctypes type" msgstr "Types de *ctypes*" -#: ../Doc/library/ctypes.rst:223 +#: ../Doc/library/ctypes.rst:216 msgid "C type" msgstr "Type C" -#: ../Doc/library/ctypes.rst:223 +#: ../Doc/library/ctypes.rst:216 msgid "Python type" msgstr "Type Python" -#: ../Doc/library/ctypes.rst:225 +#: ../Doc/library/ctypes.rst:218 msgid ":class:`c_bool`" msgstr ":class:`c_bool`" -#: ../Doc/library/ctypes.rst:225 +#: ../Doc/library/ctypes.rst:218 msgid ":c:type:`_Bool`" msgstr ":c:type:`_Bool`" -#: ../Doc/library/ctypes.rst:225 +#: ../Doc/library/ctypes.rst:218 msgid "bool (1)" msgstr "*bool* (1)" -#: ../Doc/library/ctypes.rst:227 +#: ../Doc/library/ctypes.rst:220 msgid ":class:`c_char`" msgstr ":class:`c_char`" -#: ../Doc/library/ctypes.rst:227 ../Doc/library/ctypes.rst:231 +#: ../Doc/library/ctypes.rst:220 ../Doc/library/ctypes.rst:224 msgid ":c:type:`char`" msgstr ":c:type:`char`" -#: ../Doc/library/ctypes.rst:227 +#: ../Doc/library/ctypes.rst:220 msgid "1-character bytes object" msgstr "objet octet (*bytes*) de 1 caractère" -#: ../Doc/library/ctypes.rst:229 +#: ../Doc/library/ctypes.rst:222 msgid ":class:`c_wchar`" msgstr ":class:`c_wchar`" -#: ../Doc/library/ctypes.rst:229 +#: ../Doc/library/ctypes.rst:222 msgid ":c:type:`wchar_t`" msgstr ":c:type:`wchar_t`" -#: ../Doc/library/ctypes.rst:229 +#: ../Doc/library/ctypes.rst:222 msgid "1-character string" msgstr "chaîne de caractères (*string*) de longueur 1" -#: ../Doc/library/ctypes.rst:231 +#: ../Doc/library/ctypes.rst:224 msgid ":class:`c_byte`" msgstr ":class:`c_byte`" -#: ../Doc/library/ctypes.rst:231 ../Doc/library/ctypes.rst:233 -#: ../Doc/library/ctypes.rst:235 ../Doc/library/ctypes.rst:237 -#: ../Doc/library/ctypes.rst:239 ../Doc/library/ctypes.rst:241 -#: ../Doc/library/ctypes.rst:243 ../Doc/library/ctypes.rst:245 -#: ../Doc/library/ctypes.rst:247 ../Doc/library/ctypes.rst:249 -#: ../Doc/library/ctypes.rst:252 ../Doc/library/ctypes.rst:254 +#: ../Doc/library/ctypes.rst:224 ../Doc/library/ctypes.rst:226 +#: ../Doc/library/ctypes.rst:228 ../Doc/library/ctypes.rst:230 +#: ../Doc/library/ctypes.rst:232 ../Doc/library/ctypes.rst:234 +#: ../Doc/library/ctypes.rst:236 ../Doc/library/ctypes.rst:238 +#: ../Doc/library/ctypes.rst:240 ../Doc/library/ctypes.rst:242 +#: ../Doc/library/ctypes.rst:245 ../Doc/library/ctypes.rst:247 msgid "int" msgstr "*int*" -#: ../Doc/library/ctypes.rst:233 +#: ../Doc/library/ctypes.rst:226 msgid ":class:`c_ubyte`" msgstr ":class:`c_ubyte`" -#: ../Doc/library/ctypes.rst:233 +#: ../Doc/library/ctypes.rst:226 msgid ":c:type:`unsigned char`" msgstr ":c:type:`unsigned char`" -#: ../Doc/library/ctypes.rst:235 +#: ../Doc/library/ctypes.rst:228 msgid ":class:`c_short`" msgstr ":class:`c_short`" -#: ../Doc/library/ctypes.rst:235 +#: ../Doc/library/ctypes.rst:228 msgid ":c:type:`short`" msgstr ":c:type:`short`" -#: ../Doc/library/ctypes.rst:237 +#: ../Doc/library/ctypes.rst:230 msgid ":class:`c_ushort`" msgstr ":class:`c_ushort`" -#: ../Doc/library/ctypes.rst:237 +#: ../Doc/library/ctypes.rst:230 msgid ":c:type:`unsigned short`" msgstr ":c:type:`unsigned short`" -#: ../Doc/library/ctypes.rst:239 +#: ../Doc/library/ctypes.rst:232 msgid ":class:`c_int`" msgstr ":class:`c_int`" -#: ../Doc/library/ctypes.rst:239 +#: ../Doc/library/ctypes.rst:232 msgid ":c:type:`int`" msgstr ":c:type:`int`" -#: ../Doc/library/ctypes.rst:241 +#: ../Doc/library/ctypes.rst:234 msgid ":class:`c_uint`" msgstr ":class:`c_uint`" -#: ../Doc/library/ctypes.rst:241 +#: ../Doc/library/ctypes.rst:234 msgid ":c:type:`unsigned int`" msgstr ":c:type:`unsigned int`" -#: ../Doc/library/ctypes.rst:243 +#: ../Doc/library/ctypes.rst:236 msgid ":class:`c_long`" msgstr ":class:`c_long`" -#: ../Doc/library/ctypes.rst:243 +#: ../Doc/library/ctypes.rst:236 msgid ":c:type:`long`" msgstr ":c:type:`long`" -#: ../Doc/library/ctypes.rst:245 +#: ../Doc/library/ctypes.rst:238 msgid ":class:`c_ulong`" msgstr ":class:`c_ulong`" -#: ../Doc/library/ctypes.rst:245 +#: ../Doc/library/ctypes.rst:238 msgid ":c:type:`unsigned long`" msgstr ":c:type:`unsigned long`" -#: ../Doc/library/ctypes.rst:247 +#: ../Doc/library/ctypes.rst:240 msgid ":class:`c_longlong`" msgstr ":class:`c_longlong`" -#: ../Doc/library/ctypes.rst:247 +#: ../Doc/library/ctypes.rst:240 msgid ":c:type:`__int64` or :c:type:`long long`" msgstr ":c:type:`__int64` ou :c:type:`long long`" -#: ../Doc/library/ctypes.rst:249 +#: ../Doc/library/ctypes.rst:242 msgid ":class:`c_ulonglong`" msgstr ":class:`c_ulonglong`" -#: ../Doc/library/ctypes.rst:249 +#: ../Doc/library/ctypes.rst:242 msgid ":c:type:`unsigned __int64` or :c:type:`unsigned long long`" msgstr ":c:type:`unsigned __int64` ou :c:type:`unsigned long long`" -#: ../Doc/library/ctypes.rst:252 +#: ../Doc/library/ctypes.rst:245 msgid ":class:`c_size_t`" msgstr ":class:`c_size_t`" -#: ../Doc/library/ctypes.rst:252 +#: ../Doc/library/ctypes.rst:245 msgid ":c:type:`size_t`" msgstr ":c:type:`size_t`" -#: ../Doc/library/ctypes.rst:254 +#: ../Doc/library/ctypes.rst:247 msgid ":class:`c_ssize_t`" msgstr ":class:`c_ssize_t`" -#: ../Doc/library/ctypes.rst:254 +#: ../Doc/library/ctypes.rst:247 msgid ":c:type:`ssize_t` or :c:type:`Py_ssize_t`" msgstr ":c:type:`ssize_t` ou :c:type:`Py_ssize_t`" -#: ../Doc/library/ctypes.rst:257 +#: ../Doc/library/ctypes.rst:250 msgid ":class:`c_float`" msgstr ":class:`c_float`" -#: ../Doc/library/ctypes.rst:257 +#: ../Doc/library/ctypes.rst:250 msgid ":c:type:`float`" msgstr ":c:type:`float`" -#: ../Doc/library/ctypes.rst:257 ../Doc/library/ctypes.rst:259 -#: ../Doc/library/ctypes.rst:261 +#: ../Doc/library/ctypes.rst:250 ../Doc/library/ctypes.rst:252 +#: ../Doc/library/ctypes.rst:254 msgid "float" msgstr "*float*" -#: ../Doc/library/ctypes.rst:259 +#: ../Doc/library/ctypes.rst:252 msgid ":class:`c_double`" msgstr ":class:`c_double`" -#: ../Doc/library/ctypes.rst:259 +#: ../Doc/library/ctypes.rst:252 msgid ":c:type:`double`" msgstr ":c:type:`double`" -#: ../Doc/library/ctypes.rst:261 +#: ../Doc/library/ctypes.rst:254 msgid ":class:`c_longdouble`" msgstr ":class:`c_longdouble`" -#: ../Doc/library/ctypes.rst:261 +#: ../Doc/library/ctypes.rst:254 msgid ":c:type:`long double`" msgstr ":c:type:`long double`" -#: ../Doc/library/ctypes.rst:263 +#: ../Doc/library/ctypes.rst:256 msgid ":class:`c_char_p`" msgstr ":class:`c_char_p`" -#: ../Doc/library/ctypes.rst:263 +#: ../Doc/library/ctypes.rst:256 msgid ":c:type:`char *` (NUL terminated)" msgstr ":c:type:`char *` (terminé par NUL)" -#: ../Doc/library/ctypes.rst:263 +#: ../Doc/library/ctypes.rst:256 msgid "bytes object or ``None``" msgstr "objet octet (*bytes*) ou ``None``" -#: ../Doc/library/ctypes.rst:265 +#: ../Doc/library/ctypes.rst:258 msgid ":class:`c_wchar_p`" msgstr ":class:`c_wchar_p`" -#: ../Doc/library/ctypes.rst:265 +#: ../Doc/library/ctypes.rst:258 msgid ":c:type:`wchar_t *` (NUL terminated)" msgstr ":c:type:`wchar_t *` (terminé par NUL)" -#: ../Doc/library/ctypes.rst:265 +#: ../Doc/library/ctypes.rst:258 msgid "string or ``None``" msgstr "chaîne de caractères (*string*) ou ``None``" -#: ../Doc/library/ctypes.rst:267 +#: ../Doc/library/ctypes.rst:260 msgid ":class:`c_void_p`" msgstr ":class:`c_void_p`" -#: ../Doc/library/ctypes.rst:267 +#: ../Doc/library/ctypes.rst:260 msgid ":c:type:`void *`" msgstr ":c:type:`void *`" -#: ../Doc/library/ctypes.rst:267 +#: ../Doc/library/ctypes.rst:260 msgid "int or ``None``" msgstr "*int* ou ``None``" -#: ../Doc/library/ctypes.rst:271 +#: ../Doc/library/ctypes.rst:264 msgid "The constructor accepts any object with a truth value." msgstr "Le constructeur accepte n'importe quel objet convertible en booléen." -#: ../Doc/library/ctypes.rst:273 +#: ../Doc/library/ctypes.rst:266 msgid "" "All these types can be created by calling them with an optional initializer " "of the correct type and value::" @@ -537,14 +525,14 @@ msgstr "" "Il est possible de créer chacun de ces types en les appelant avec une valeur " "d'initialisation du bon type et avec une valeur cohérente ::" -#: ../Doc/library/ctypes.rst:284 +#: ../Doc/library/ctypes.rst:277 msgid "" "Since these types are mutable, their value can also be changed afterwards::" msgstr "" "Ces types étant des muables, leur valeur peut aussi être modifiée après " "coup ::" -#: ../Doc/library/ctypes.rst:296 +#: ../Doc/library/ctypes.rst:289 msgid "" "Assigning a new value to instances of the pointer types :class:`c_char_p`, :" "class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they " @@ -556,7 +544,7 @@ msgstr "" "mémoire* sur laquelle elle pointe, et non *le contenu* de ce bloc mémoire " "(c'est logique parce que les objets octets sont immuables en Python) ::" -#: ../Doc/library/ctypes.rst:316 +#: ../Doc/library/ctypes.rst:309 msgid "" "You should be careful, however, not to pass them to functions expecting " "pointers to mutable memory. If you need mutable memory blocks, ctypes has a :" @@ -572,7 +560,7 @@ msgstr "" "permet d'accéder à (ou de modifier) un bloc mémoire ; l'attribut ``value`` " "permet d'y accéder comme à une chaîne de caractères terminée par NUL ::" -#: ../Doc/library/ctypes.rst:340 +#: ../Doc/library/ctypes.rst:333 msgid "" "The :func:`create_string_buffer` function replaces the :func:`c_buffer` " "function (which is still available as an alias), as well as the :func:" @@ -586,11 +574,11 @@ msgstr "" "bloc mémoire modifiable contenant des caractères Unicode du type C :c:type:" "`wchar_t`." -#: ../Doc/library/ctypes.rst:350 +#: ../Doc/library/ctypes.rst:343 msgid "Calling functions, continued" msgstr "Appel de fonctions, suite" -#: ../Doc/library/ctypes.rst:352 +#: ../Doc/library/ctypes.rst:345 msgid "" "Note that printf prints to the real standard output channel, *not* to :data:" "`sys.stdout`, so these examples will only work at the console prompt, not " @@ -600,7 +588,7 @@ msgstr "" "exemples suivants ne fonctionnent donc que dans une invite de commande et " "non depuis *IDLE* or *PythonWin* ::" -#: ../Doc/library/ctypes.rst:372 +#: ../Doc/library/ctypes.rst:365 msgid "" "As has been mentioned before, all Python types except integers, strings, and " "bytes objects have to be wrapped in their corresponding :mod:`ctypes` type, " @@ -611,11 +599,11 @@ msgstr "" "leur type :mod:`ctypes` correspondant pour pouvoir être convertis dans le " "type C requis ::" -#: ../Doc/library/ctypes.rst:385 +#: ../Doc/library/ctypes.rst:378 msgid "Calling functions with your own custom data types" msgstr "Appel de fonctions avec des types de données personnalisés" -#: ../Doc/library/ctypes.rst:387 +#: ../Doc/library/ctypes.rst:380 msgid "" "You can also customize :mod:`ctypes` argument conversion to allow instances " "of your own classes be used as function arguments. :mod:`ctypes` looks for " @@ -628,7 +616,7 @@ msgstr "" "et le prend comme argument à la fonction. Bien entendu, cet attribut doit " "être un entier, une chaîne de caractères ou des octets ::" -#: ../Doc/library/ctypes.rst:402 +#: ../Doc/library/ctypes.rst:395 msgid "" "If you don't want to store the instance's data in the :attr:`_as_parameter_` " "instance variable, you could define a :class:`property` which makes the " @@ -638,11 +626,11 @@ msgstr "" "attr:`_as_parameter_` de l'instance, vous pouvez toujours définir une :class:" "`propriété ` qui rend cet attribut disponible sur demande." -#: ../Doc/library/ctypes.rst:410 +#: ../Doc/library/ctypes.rst:403 msgid "Specifying the required argument types (function prototypes)" msgstr "Définition du type des arguments nécessaires (prototypes de fonction)" -#: ../Doc/library/ctypes.rst:412 +#: ../Doc/library/ctypes.rst:405 msgid "" "It is possible to specify the required argument types of functions exported " "from DLLs by setting the :attr:`argtypes` attribute." @@ -650,7 +638,7 @@ msgstr "" "Il est possible de définir le type des arguments demandés par une fonction " "exportée depuis une DLL en définissant son attribut :attr:`argtypes`." -#: ../Doc/library/ctypes.rst:415 +#: ../Doc/library/ctypes.rst:408 msgid "" ":attr:`argtypes` must be a sequence of C data types (the ``printf`` function " "is probably not a good example here, because it takes a variable number and " @@ -663,7 +651,7 @@ msgstr "" "selon la chaîne de formatage ; cela dit, elle se révèle pratique pour tester " "cette fonctionnalité) ::" -#: ../Doc/library/ctypes.rst:426 +#: ../Doc/library/ctypes.rst:419 msgid "" "Specifying a format protects against incompatible argument types (just as a " "prototype for a C function), and tries to convert the arguments to valid " @@ -673,7 +661,7 @@ msgstr "" "(comme le fait le prototype d'une fonction C) et tente de convertir les " "arguments en des types valides ::" -#: ../Doc/library/ctypes.rst:438 +#: ../Doc/library/ctypes.rst:431 msgid "" "If you have defined your own classes which you pass to function calls, you " "have to implement a :meth:`from_param` class method for them to be able to " @@ -695,11 +683,11 @@ msgstr "" "convient que le résultat soit un entier, une chaîne, des octets, une " "instance :mod:`ctypes` ou un objet avec un attribut :attr:`_as_parameter_`." -#: ../Doc/library/ctypes.rst:452 +#: ../Doc/library/ctypes.rst:445 msgid "Return types" msgstr "Types de sortie" -#: ../Doc/library/ctypes.rst:454 +#: ../Doc/library/ctypes.rst:447 msgid "" "By default functions are assumed to return the C :c:type:`int` type. Other " "return types can be specified by setting the :attr:`restype` attribute of " @@ -709,7 +697,7 @@ msgstr "" "`int` C. Pour préciser un autre type de sortie, il faut définir l'attribut :" "attr:`restype` de l'objet encapsulant la fonction." -#: ../Doc/library/ctypes.rst:458 +#: ../Doc/library/ctypes.rst:451 msgid "" "Here is a more advanced example, it uses the ``strchr`` function, which " "expects a string pointer and a char, and returns a pointer to a string::" @@ -718,7 +706,7 @@ msgstr "" "prend en paramètres un pointeur vers une chaîne et un caractère. Elle " "renvoie un pointeur sur une chaîne de caractères ::" -#: ../Doc/library/ctypes.rst:471 +#: ../Doc/library/ctypes.rst:464 msgid "" "If you want to avoid the ``ord(\"x\")`` calls above, you can set the :attr:" "`argtypes` attribute, and the second argument will be converted from a " @@ -728,7 +716,7 @@ msgstr "" "l'attribut :attr:`argtypes` ; le second argument, un objet octet à un seul " "caractère, sera automatiquement converti en un caractère C ::" -#: ../Doc/library/ctypes.rst:489 +#: ../Doc/library/ctypes.rst:482 msgid "" "You can also use a callable Python object (a function or a class for " "example) as the :attr:`restype` attribute, if the foreign function returns " @@ -744,7 +732,7 @@ msgstr "" "pratique pour vérifier les codes d'erreurs des valeurs de retour et lever " "automatiquement des exceptions ::" -#: ../Doc/library/ctypes.rst:512 +#: ../Doc/library/ctypes.rst:505 msgid "" "``WinError`` is a function which will call Windows ``FormatMessage()`` api " "to get the string representation of an error code, and *returns* an " @@ -757,7 +745,7 @@ msgstr "" "code d'erreur. Si celui-ci n'est pas passé, elle appelle :func:" "`GetLastError` pour le récupérer." -#: ../Doc/library/ctypes.rst:517 +#: ../Doc/library/ctypes.rst:510 msgid "" "Please note that a much more powerful error checking mechanism is available " "through the :attr:`errcheck` attribute; see the reference manual for details." @@ -766,11 +754,11 @@ msgstr "" "efficacement les erreurs ; référez-vous au manuel de référence pour plus de " "précisions." -#: ../Doc/library/ctypes.rst:524 +#: ../Doc/library/ctypes.rst:517 msgid "Passing pointers (or: passing parameters by reference)" msgstr "Passage de pointeurs (passage de paramètres par référence)" -#: ../Doc/library/ctypes.rst:526 +#: ../Doc/library/ctypes.rst:519 msgid "" "Sometimes a C api function expects a *pointer* to a data type as parameter, " "probably to write into the corresponding location, or if the data is too " @@ -782,7 +770,7 @@ msgstr "" "correspondant ou si la donnée est trop grande pour pouvoir être passée par " "valeur. Ce mécanisme est appelé *passage de paramètres par référence*." -#: ../Doc/library/ctypes.rst:530 +#: ../Doc/library/ctypes.rst:523 msgid "" ":mod:`ctypes` exports the :func:`byref` function which is used to pass " "parameters by reference. The same effect can be achieved with the :func:" @@ -796,11 +784,11 @@ msgstr "" "pointeur. Ainsi, si vous n'avez pas besoin de cet objet dans votre code " "Python, utiliser :func:`byref` est plus performant ::" -#: ../Doc/library/ctypes.rst:552 +#: ../Doc/library/ctypes.rst:545 msgid "Structures and unions" msgstr "Structures et unions" -#: ../Doc/library/ctypes.rst:554 +#: ../Doc/library/ctypes.rst:547 msgid "" "Structures and unions must derive from the :class:`Structure` and :class:" "`Union` base classes which are defined in the :mod:`ctypes` module. Each " @@ -813,7 +801,7 @@ msgstr "" "être une liste de *paires*, contenant un *nom de champ* et un *type de " "champ*." -#: ../Doc/library/ctypes.rst:559 +#: ../Doc/library/ctypes.rst:552 msgid "" "The field type must be a :mod:`ctypes` type like :class:`c_int`, or any " "other derived :mod:`ctypes` type: structure, union, array, pointer." @@ -821,7 +809,7 @@ msgstr "" "Le type de champ doit être un type :mod:`ctypes` comme :class:`c_int` ou un " "type :mod:`ctypes` dérivé : structure, union, tableau ou pointeur." -#: ../Doc/library/ctypes.rst:562 +#: ../Doc/library/ctypes.rst:555 msgid "" "Here is a simple example of a POINT structure, which contains two integers " "named *x* and *y*, and also shows how to initialize a structure in the " @@ -831,7 +819,7 @@ msgstr "" "et *y* et qui montre également comment instancier une structure avec le " "constructeur ::" -#: ../Doc/library/ctypes.rst:582 +#: ../Doc/library/ctypes.rst:575 msgid "" "You can, however, build much more complicated structures. A structure can " "itself contain other structures by using a structure as a field type." @@ -840,7 +828,7 @@ msgstr "" "structure peut elle-même contenir d'autres structures en prenant une " "structure comme type de champ." -#: ../Doc/library/ctypes.rst:585 +#: ../Doc/library/ctypes.rst:578 msgid "" "Here is a RECT structure which contains two POINTs named *upperleft* and " "*lowerright*::" @@ -848,7 +836,7 @@ msgstr "" "Voici une structure RECT qui contient deux POINTs *upperleft* et " "*lowerright* ::" -#: ../Doc/library/ctypes.rst:599 +#: ../Doc/library/ctypes.rst:592 msgid "" "Nested structures can also be initialized in the constructor in several " "ways::" @@ -856,7 +844,7 @@ msgstr "" "Une structure encapsulée peut être instanciée par un constructeur de " "plusieurs façons ::" -#: ../Doc/library/ctypes.rst:604 +#: ../Doc/library/ctypes.rst:597 msgid "" "Field :term:`descriptor`\\s can be retrieved from the *class*, they are " "useful for debugging because they can provide useful information::" @@ -865,7 +853,7 @@ msgstr "" "champs depuis la *classe*. Ils sont importants pour déboguer car ils " "contiennent des informations utiles ::" -#: ../Doc/library/ctypes.rst:618 +#: ../Doc/library/ctypes.rst:611 msgid "" ":mod:`ctypes` does not support passing unions or structures with bit-fields " "to functions by value. While this may work on 32-bit x86, it's not " @@ -878,14 +866,15 @@ msgstr "" "par la bibliothèque en général. Les unions et les structures avec des champs " "de bits doivent toujours être passées par pointeur." -#: ../Doc/library/ctypes.rst:624 +#: ../Doc/library/ctypes.rst:617 msgid "Structure/union alignment and byte order" msgstr "Alignement et boutisme des structures et des unions" -#: ../Doc/library/ctypes.rst:626 +#: ../Doc/library/ctypes.rst:619 +#, fuzzy msgid "" "By default, Structure and Union fields are aligned in the same way the C " -"compiler does it. It is possible to override this behavior be specifying a :" +"compiler does it. It is possible to override this behavior by specifying a :" "attr:`_pack_` class attribute in the subclass definition. This must be set " "to a positive integer and specifies the maximum alignment for the fields. " "This is what ``#pragma pack(n)`` also does in MSVC." @@ -896,7 +885,7 @@ msgstr "" "sous-classe. Ce champ doit être un entier positif et vaut l'alignement " "maximal des champs. C'est ce que fait ``#pragma pack(n)`` pour MSVC." -#: ../Doc/library/ctypes.rst:632 +#: ../Doc/library/ctypes.rst:625 msgid "" ":mod:`ctypes` uses the native byte order for Structures and Unions. To " "build structures with non-native byte order, you can use one of the :class:" @@ -910,11 +899,11 @@ msgstr "" "`LittleEndianStructure`, :class:`BigEndianUnion` ou :class:" "`LittleEndianUnion`. Ces classes ne peuvent pas avoir de champ pointeur." -#: ../Doc/library/ctypes.rst:642 +#: ../Doc/library/ctypes.rst:635 msgid "Bit fields in structures and unions" msgstr "Champs de bits dans les structures et les unions" -#: ../Doc/library/ctypes.rst:644 +#: ../Doc/library/ctypes.rst:637 msgid "" "It is possible to create structures and unions containing bit fields. Bit " "fields are only possible for integer fields, the bit width is specified as " @@ -924,11 +913,11 @@ msgstr "" "de bits. Seuls les entiers peuvent être des champs de bits, le nombre de " "bits est défini dans le troisième champ du n-uplet :attr:`_fields_` ::" -#: ../Doc/library/ctypes.rst:662 +#: ../Doc/library/ctypes.rst:655 msgid "Arrays" msgstr "Tableaux" -#: ../Doc/library/ctypes.rst:664 +#: ../Doc/library/ctypes.rst:657 msgid "" "Arrays are sequences, containing a fixed number of instances of the same " "type." @@ -936,7 +925,7 @@ msgstr "" "Les tableaux sont des séquences qui contiennent un nombre fixe d'instances " "du même type." -#: ../Doc/library/ctypes.rst:666 +#: ../Doc/library/ctypes.rst:659 msgid "" "The recommended way to create array types is by multiplying a data type with " "a positive integer::" @@ -944,7 +933,7 @@ msgstr "" "La meilleure façon de créer des tableaux consiste à multiplier le type de " "donnée par un entier positif ::" -#: ../Doc/library/ctypes.rst:671 +#: ../Doc/library/ctypes.rst:664 msgid "" "Here is an example of a somewhat artificial data type, a structure " "containing 4 POINTs among other stuff::" @@ -952,11 +941,11 @@ msgstr "" "Voici un exemple — un peu artificiel — d'une structure contenant, entre " "autres, 4 POINTs ::" -#: ../Doc/library/ctypes.rst:687 +#: ../Doc/library/ctypes.rst:680 msgid "Instances are created in the usual way, by calling the class::" msgstr "Comme d'habitude, on crée les instances en appelant la classe ::" -#: ../Doc/library/ctypes.rst:693 +#: ../Doc/library/ctypes.rst:686 msgid "" "The above code print a series of ``0 0`` lines, because the array contents " "is initialized to zeros." @@ -964,15 +953,15 @@ msgstr "" "Le code précédent affiche une suite de ``0 0`` car le contenu du tableau est " "initialisé avec des zéros." -#: ../Doc/library/ctypes.rst:696 +#: ../Doc/library/ctypes.rst:689 msgid "Initializers of the correct type can also be specified::" msgstr "Des valeurs d'initialisation du bon type peuvent être passées ::" -#: ../Doc/library/ctypes.rst:712 +#: ../Doc/library/ctypes.rst:705 msgid "Pointers" msgstr "Pointeurs" -#: ../Doc/library/ctypes.rst:714 +#: ../Doc/library/ctypes.rst:707 msgid "" "Pointer instances are created by calling the :func:`pointer` function on a :" "mod:`ctypes` type::" @@ -980,7 +969,7 @@ msgstr "" "On crée une instance de pointeur en appelant la fonction :func:`pointer` sur " "un type :mod:`ctypes` ::" -#: ../Doc/library/ctypes.rst:722 +#: ../Doc/library/ctypes.rst:715 msgid "" "Pointer instances have a :attr:`~_Pointer.contents` attribute which returns " "the object to which the pointer points, the ``i`` object above::" @@ -988,7 +977,7 @@ msgstr "" "Les instances de pointeurs ont un attribut :attr:`~_Pointer.contents` qui " "renvoie l'objet pointé (l'objet ``i`` ci-dessus) ::" -#: ../Doc/library/ctypes.rst:729 +#: ../Doc/library/ctypes.rst:722 msgid "" "Note that :mod:`ctypes` does not have OOR (original object return), it " "constructs a new, equivalent object each time you retrieve an attribute::" @@ -996,7 +985,7 @@ msgstr "" "Attention, :mod:`ctypes` ne fait pas de ROI (retour de l'objet initial). Il " "crée un nouvel objet à chaque fois qu'on accède à un attribut ::" -#: ../Doc/library/ctypes.rst:738 +#: ../Doc/library/ctypes.rst:731 msgid "" "Assigning another :class:`c_int` instance to the pointer's contents " "attribute would cause the pointer to point to the memory location where this " @@ -1006,15 +995,15 @@ msgstr "" "pointeur fait pointer le pointeur vers l'adresse mémoire de cette nouvelle " "instance ::" -#: ../Doc/library/ctypes.rst:750 +#: ../Doc/library/ctypes.rst:743 msgid "Pointer instances can also be indexed with integers::" msgstr "Il est possible d'indexer les pointeurs par des entiers ::" -#: ../Doc/library/ctypes.rst:756 +#: ../Doc/library/ctypes.rst:749 msgid "Assigning to an integer index changes the pointed to value::" msgstr "Affecter à travers un indice change la valeur pointée ::" -#: ../Doc/library/ctypes.rst:765 +#: ../Doc/library/ctypes.rst:758 msgid "" "It is also possible to use indexes different from 0, but you must know what " "you're doing, just as in C: You can access or change arbitrary memory " @@ -1028,7 +1017,7 @@ msgstr "" "renvoyé par une fonction C, pointeur que vous *savez* pointer vers un " "tableau et non sur un seul élément." -#: ../Doc/library/ctypes.rst:771 +#: ../Doc/library/ctypes.rst:764 msgid "" "Behind the scenes, the :func:`pointer` function does more than simply create " "pointer instances, it has to create pointer *types* first. This is done with " @@ -1040,7 +1029,7 @@ msgstr "" "sur… ». Cela s'effectue avec la fonction :func:`POINTER`, qui prend en " "paramètre n'importe quel type :mod:`ctypes` et renvoie un nouveau type ::" -#: ../Doc/library/ctypes.rst:787 +#: ../Doc/library/ctypes.rst:780 msgid "" "Calling the pointer type without an argument creates a ``NULL`` pointer. " "``NULL`` pointers have a ``False`` boolean value::" @@ -1048,7 +1037,7 @@ msgstr "" "Appeler le pointeur sur type sans arguments crée un pointeur ``NULL``. Les " "pointeurs ``NULL`` s'évaluent à ``False`` ::" -#: ../Doc/library/ctypes.rst:795 +#: ../Doc/library/ctypes.rst:788 msgid "" ":mod:`ctypes` checks for ``NULL`` when dereferencing pointers (but " "dereferencing invalid non-\\ ``NULL`` pointers would crash Python)::" @@ -1057,11 +1046,11 @@ msgstr "" "déréférence un (mais déréférencer des pointeurs non ``NULL`` invalides fait " "planter Python) ::" -#: ../Doc/library/ctypes.rst:814 +#: ../Doc/library/ctypes.rst:807 msgid "Type conversions" msgstr "Conversions de type" -#: ../Doc/library/ctypes.rst:816 +#: ../Doc/library/ctypes.rst:809 msgid "" "Usually, ctypes does strict type checking. This means, if you have " "``POINTER(c_int)`` in the :attr:`argtypes` list of a function or as the type " @@ -1080,7 +1069,7 @@ msgstr "" "place de pointeurs, s'ils sont compatibles. Dans le cas de " "``POINTER(c_int)``, *ctypes* accepte des tableaux de *c_int* ::" -#: ../Doc/library/ctypes.rst:837 +#: ../Doc/library/ctypes.rst:830 msgid "" "In addition, if a function argument is explicitly declared to be a pointer " "type (such as ``POINTER(c_int)``) in :attr:`argtypes`, an object of the " @@ -1093,13 +1082,13 @@ msgstr "" "*ctypes* appelle alors automatiquement la fonction de conversion :func:" "`byref`." -#: ../Doc/library/ctypes.rst:842 +#: ../Doc/library/ctypes.rst:835 msgid "To set a POINTER type field to ``NULL``, you can assign ``None``::" msgstr "" "Pour mettre un champ de type *POINTER* à ``NULL``, il faut lui affecter " "``None`` ::" -#: ../Doc/library/ctypes.rst:849 +#: ../Doc/library/ctypes.rst:842 msgid "" "Sometimes you have instances of incompatible types. In C, you can cast one " "type into another type. :mod:`ctypes` provides a :func:`cast` function " @@ -1114,11 +1103,11 @@ msgstr "" "`c_int` comme valeur pour le champ ``values``, mais pas des instances " "d'autres types ::" -#: ../Doc/library/ctypes.rst:861 +#: ../Doc/library/ctypes.rst:854 msgid "For these cases, the :func:`cast` function is handy." msgstr "C'est là que la fonction :func:`cast` intervient." -#: ../Doc/library/ctypes.rst:863 +#: ../Doc/library/ctypes.rst:856 msgid "" "The :func:`cast` function can be used to cast a ctypes instance into a " "pointer to a different ctypes data type. :func:`cast` takes two parameters, " @@ -1133,7 +1122,7 @@ msgstr "" "du second argument, qui pointe sur le même bloc mémoire que le premier " "argument ::" -#: ../Doc/library/ctypes.rst:874 +#: ../Doc/library/ctypes.rst:867 msgid "" "So, :func:`cast` can be used to assign to the ``values`` field of ``Bar`` " "the structure::" @@ -1141,11 +1130,11 @@ msgstr "" "Ainsi, la fonction :func:`cast` permet de remplir le champ ``values`` de la " "structure ``Bar`` ::" -#: ../Doc/library/ctypes.rst:887 +#: ../Doc/library/ctypes.rst:880 msgid "Incomplete Types" msgstr "Types incomplets" -#: ../Doc/library/ctypes.rst:889 +#: ../Doc/library/ctypes.rst:882 msgid "" "*Incomplete Types* are structures, unions or arrays whose members are not " "yet specified. In C, they are specified by forward declarations, which are " @@ -1155,14 +1144,14 @@ msgstr "" "membres ne sont pas encore définis. C'est l'équivalent d'une déclaration " "avancée en C, où la définition est fournie plus tard ::" -#: ../Doc/library/ctypes.rst:900 +#: ../Doc/library/ctypes.rst:893 msgid "" "The straightforward translation into ctypes code would be this, but it does " "not work::" msgstr "" "Une traduction naïve, mais invalide, en code *ctypes* ressemblerait à ça ::" -#: ../Doc/library/ctypes.rst:913 +#: ../Doc/library/ctypes.rst:906 msgid "" "because the new ``class cell`` is not available in the class statement " "itself. In :mod:`ctypes`, we can define the ``cell`` class and set the :attr:" @@ -1173,20 +1162,21 @@ msgstr "" "`ctypes`, on définit la classe ``cell`` et on définira les :attr:`_fields_` " "plus tard, après avoir défini la classe ::" -#: ../Doc/library/ctypes.rst:925 +#: ../Doc/library/ctypes.rst:918 +#, fuzzy msgid "" -"Lets try it. We create two instances of ``cell``, and let them point to each " -"other, and finally follow the pointer chain a few times::" +"Let's try it. We create two instances of ``cell``, and let them point to " +"each other, and finally follow the pointer chain a few times::" msgstr "" "Essayons. Nous créons deux instances de ``cell``, les faisons pointer l'une " "sur l'autre et enfin nous suivons quelques maillons de la chaîne de " "pointeurs ::" -#: ../Doc/library/ctypes.rst:946 +#: ../Doc/library/ctypes.rst:939 msgid "Callback functions" msgstr "Fonctions de rappel" -#: ../Doc/library/ctypes.rst:948 +#: ../Doc/library/ctypes.rst:941 msgid "" ":mod:`ctypes` allows creating C callable function pointers from Python " "callables. These are sometimes called *callback functions*." @@ -1194,7 +1184,7 @@ msgstr "" ":mod:`ctypes` permet de créer des pointeurs de fonctions appelables par des " "appelables Python. On les appelle parfois *fonctions de rappel*." -#: ../Doc/library/ctypes.rst:951 +#: ../Doc/library/ctypes.rst:944 msgid "" "First, you must create a class for the callback function. The class knows " "the calling convention, the return type, and the number and types of " @@ -1204,7 +1194,7 @@ msgstr "" "connaît la convention d'appel, le type de retour ainsi que le nombre et le " "type de paramètres que la fonction accepte." -#: ../Doc/library/ctypes.rst:955 +#: ../Doc/library/ctypes.rst:948 msgid "" "The :func:`CFUNCTYPE` factory function creates types for callback functions " "using the ``cdecl`` calling convention. On Windows, the :func:`WINFUNCTYPE` " @@ -1216,7 +1206,7 @@ msgstr "" "`WINFUNCTYPE` qui crée un type pour les fonctions de rappel qui suivent la " "convention d'appel ``stdcall``." -#: ../Doc/library/ctypes.rst:960 +#: ../Doc/library/ctypes.rst:953 msgid "" "Both of these factory functions are called with the result type as first " "argument, and the callback functions expected argument types as the " @@ -1225,7 +1215,7 @@ msgstr "" "Le premier paramètre de ces deux fonctions est le type de retour, et les " "suivants sont les types des arguments qu'attend la fonction de rappel." -#: ../Doc/library/ctypes.rst:964 +#: ../Doc/library/ctypes.rst:957 msgid "" "I will present an example here which uses the standard C library's :c:func:" "`qsort` function, that is used to sort items with the help of a callback " @@ -1236,7 +1226,7 @@ msgstr "" "l'emploi d'une fonction de rappel. Nous allons utiliser :c:func:`qsort` pour " "ordonner un tableau d'entiers ::" -#: ../Doc/library/ctypes.rst:974 +#: ../Doc/library/ctypes.rst:967 msgid "" ":func:`qsort` must be called with a pointer to the data to sort, the number " "of items in the data array, the size of one item, and a pointer to the " @@ -1252,7 +1242,7 @@ msgstr "" "négatif si le premier élément est plus petit que le second, zéro s'ils sont " "égaux et un entier positif sinon." -#: ../Doc/library/ctypes.rst:980 +#: ../Doc/library/ctypes.rst:973 msgid "" "So our callback function receives pointers to integers, and must return an " "integer. First we create the ``type`` for the callback function::" @@ -1260,7 +1250,7 @@ msgstr "" "Ainsi notre fonction de rappel reçoit des pointeurs vers des entiers et doit " "renvoyer un entier. Créons d'abord le ``type`` pour la fonction de rappel ::" -#: ../Doc/library/ctypes.rst:986 +#: ../Doc/library/ctypes.rst:979 msgid "" "To get started, here is a simple callback that shows the values it gets " "passed::" @@ -1268,22 +1258,22 @@ msgstr "" "Pour commencer, voici une fonction de rappel simple qui affiche les valeurs " "qu'on lui passe ::" -#: ../Doc/library/ctypes.rst:996 +#: ../Doc/library/ctypes.rst:989 msgid "The result::" msgstr "Résultat ::" -#: ../Doc/library/ctypes.rst:1006 +#: ../Doc/library/ctypes.rst:999 msgid "Now we can actually compare the two items and return a useful result::" msgstr "" "À présent, comparons pour de vrai les deux entiers et renvoyons un résultat " "utile ::" -#: ../Doc/library/ctypes.rst:1021 +#: ../Doc/library/ctypes.rst:1014 msgid "As we can easily check, our array is sorted now::" msgstr "" "Et comme il est facile de le voir, notre tableau est désormais classé ::" -#: ../Doc/library/ctypes.rst:1028 +#: ../Doc/library/ctypes.rst:1021 msgid "" "The function factories can be used as decorator factories, so we may as well " "write::" @@ -1291,7 +1281,7 @@ msgstr "" "Ces fonctions peuvent aussi être utilisées comme des décorateurs ; il est " "donc possible d'écrire ::" -#: ../Doc/library/ctypes.rst:1046 +#: ../Doc/library/ctypes.rst:1039 msgid "" "Make sure you keep references to :func:`CFUNCTYPE` objects as long as they " "are used from C code. :mod:`ctypes` doesn't, and if you don't, they may be " @@ -1302,7 +1292,7 @@ msgstr "" "tout seul et, si vous ne le faites pas, le ramasse-miette pourrait les " "libérer, ce qui fera planter votre programme quand un appel sera fait." -#: ../Doc/library/ctypes.rst:1050 +#: ../Doc/library/ctypes.rst:1043 msgid "" "Also, note that if the callback function is called in a thread created " "outside of Python's control (e.g. by the foreign code that calls the " @@ -1319,11 +1309,11 @@ msgstr "" "*pas* persistantes d'un appel à l'autre, même si les appels proviennent du " "même fil d'exécution C." -#: ../Doc/library/ctypes.rst:1060 +#: ../Doc/library/ctypes.rst:1053 msgid "Accessing values exported from dlls" msgstr "Accès aux variables exportées depuis une DLL" -#: ../Doc/library/ctypes.rst:1062 +#: ../Doc/library/ctypes.rst:1055 msgid "" "Some shared libraries not only export functions, they also export variables. " "An example in the Python library itself is the :c:data:`Py_OptimizeFlag`, an " @@ -1335,7 +1325,7 @@ msgstr "" "c:data:`Py_OptimizeFlag`, un entier valant 0, 1, ou 2 selon que l'option :" "option:`-O` ou :option:`-OO` soit donnée au démarrage." -#: ../Doc/library/ctypes.rst:1067 +#: ../Doc/library/ctypes.rst:1060 msgid "" ":mod:`ctypes` can access values like this with the :meth:`in_dll` class " "methods of the type. *pythonapi* is a predefined symbol giving access to " @@ -1345,7 +1335,7 @@ msgstr "" "meth:`in_dll` du type considéré. *pythonapi* est un symbole prédéfini qui " "donne accès à l'API C Python ::" -#: ../Doc/library/ctypes.rst:1076 +#: ../Doc/library/ctypes.rst:1069 msgid "" "If the interpreter would have been started with :option:`-O`, the sample " "would have printed ``c_long(1)``, or ``c_long(2)`` if :option:`-OO` would " @@ -1354,7 +1344,7 @@ msgstr "" "Si l'interpréteur est lancé avec :option:`-O`, l'exemple affiche " "``c_long(1)`` et ``c_long(2)`` avec :option:`-OO`." -#: ../Doc/library/ctypes.rst:1080 +#: ../Doc/library/ctypes.rst:1073 msgid "" "An extended example which also demonstrates the use of pointers accesses " "the :c:data:`PyImport_FrozenModules` pointer exported by Python." @@ -1362,11 +1352,11 @@ msgstr "" "Le pointeur :c:data:`PyImport_FrozenModules` exposé par Python est un autre " "exemple complet de l'utilisation de pointeurs." -#: ../Doc/library/ctypes.rst:1083 +#: ../Doc/library/ctypes.rst:1076 msgid "Quoting the docs for that value:" msgstr "Citons la documentation :" -#: ../Doc/library/ctypes.rst:1085 +#: ../Doc/library/ctypes.rst:1078 msgid "" "This pointer is initialized to point to an array of :c:type:`struct _frozen` " "records, terminated by one whose members are all ``NULL`` or zero. When a " @@ -1380,7 +1370,7 @@ msgstr "" "tableau. Du code tiers peut jouer avec pour construire dynamiquement une " "collection de module gelés." -#: ../Doc/library/ctypes.rst:1090 +#: ../Doc/library/ctypes.rst:1083 msgid "" "So manipulating this pointer could even prove useful. To restrict the " "example size, we show only how this table can be read with :mod:`ctypes`::" @@ -1389,7 +1379,7 @@ msgstr "" "taille de l'exemple, nous nous bornons à montrer comment lire ce tableau " "avec :mod:`ctypes` ::" -#: ../Doc/library/ctypes.rst:1102 +#: ../Doc/library/ctypes.rst:1095 msgid "" "We have defined the :c:type:`struct _frozen` data type, so we can get the " "pointer to the table::" @@ -1397,7 +1387,7 @@ msgstr "" "Le type de donnée :c:type:`struct _frozen` ayant été défini, nous pouvons " "récupérer le pointeur vers le tableau ::" -#: ../Doc/library/ctypes.rst:1109 +#: ../Doc/library/ctypes.rst:1102 msgid "" "Since ``table`` is a ``pointer`` to the array of ``struct_frozen`` records, " "we can iterate over it, but we just have to make sure that our loop " @@ -1411,21 +1401,22 @@ msgstr "" "ou tard, il planterait probablement avec une erreur de segmentation ou " "autre, donc mieux vaut sortir de la boucle quand on lit l'entrée ``NULL`` ::" -#: ../Doc/library/ctypes.rst:1127 +#: ../Doc/library/ctypes.rst:1120 +#, fuzzy msgid "" "The fact that standard Python has a frozen module and a frozen package " -"(indicated by the negative size member) is not well known, it is only used " -"for testing. Try it out with ``import __hello__`` for example." +"(indicated by the negative ``size`` member) is not well known, it is only " +"used for testing. Try it out with ``import __hello__`` for example." msgstr "" "Le fait que le standard Python possède un module et un paquet gelés (indiqué " "par la valeur négative du membre *size*) est peu connu, cela ne sert qu'aux " "tests. Essayez avec ``import __hello__`` par exemple." -#: ../Doc/library/ctypes.rst:1135 +#: ../Doc/library/ctypes.rst:1128 msgid "Surprises" msgstr "Pièges" -#: ../Doc/library/ctypes.rst:1137 +#: ../Doc/library/ctypes.rst:1130 msgid "" "There are some edges in :mod:`ctypes` where you might expect something other " "than what actually happens." @@ -1433,11 +1424,11 @@ msgstr "" "Il y a quelques cas tordus dans :mod:`ctypes` où on peut s'attendre à un " "résultat différent de la réalité." -#: ../Doc/library/ctypes.rst:1140 +#: ../Doc/library/ctypes.rst:1133 msgid "Consider the following example::" msgstr "Examinons l'exemple suivant ::" -#: ../Doc/library/ctypes.rst:1160 +#: ../Doc/library/ctypes.rst:1153 msgid "" "Hm. We certainly expected the last statement to print ``3 4 1 2``. What " "happened? Here are the steps of the ``rc.a, rc.b = rc.b, rc.a`` line above::" @@ -1446,7 +1437,7 @@ msgstr "" "``3 4 1 2``. Que s'est-il passé ? Les étapes de la ligne ``rc.a, rc.b = rc." "b, rc.a`` ci-dessus sont les suivantes ::" -#: ../Doc/library/ctypes.rst:1168 +#: ../Doc/library/ctypes.rst:1161 msgid "" "Note that ``temp0`` and ``temp1`` are objects still using the internal " "buffer of the ``rc`` object above. So executing ``rc.a = temp0`` copies the " @@ -1460,7 +1451,7 @@ msgstr "" "contenu de ``temp1``. Et donc, la dernière affectation, ``rc.b = temp1``, " "n'a pas l'effet escompté." -#: ../Doc/library/ctypes.rst:1174 +#: ../Doc/library/ctypes.rst:1167 msgid "" "Keep in mind that retrieving sub-objects from Structure, Unions, and Arrays " "doesn't *copy* the sub-object, instead it retrieves a wrapper object " @@ -1470,14 +1461,14 @@ msgstr "" "ou un *Array* ne copie *pas* le sous-objet, mais crée un objet interface qui " "accède au tampon sous-jacent de l'objet initial." -#: ../Doc/library/ctypes.rst:1178 +#: ../Doc/library/ctypes.rst:1171 msgid "" "Another example that may behave differently from what one would expect is " "this::" msgstr "" "Un autre exemple de comportement *a priori* inattendu est le suivant ::" -#: ../Doc/library/ctypes.rst:1190 +#: ../Doc/library/ctypes.rst:1183 msgid "" "Objects instantiated from :class:`c_char_p` can only have their value set to " "bytes or integers." @@ -1485,7 +1476,7 @@ msgstr "" "La valeur d'une instance de :class:`c_char_p` ne peut être initialisée " "qu'avec un octet ou un entier." -#: ../Doc/library/ctypes.rst:1193 +#: ../Doc/library/ctypes.rst:1186 msgid "" "Why is it printing ``False``? ctypes instances are objects containing a " "memory block plus some :term:`descriptor`\\s accessing the contents of the " @@ -1499,18 +1490,18 @@ msgstr "" "stocke pas l'objet même ; seuls ses ``contents`` le sont. Accéder au " "``contents`` crée un nouvel objet Python à chaque fois !" -#: ../Doc/library/ctypes.rst:1203 +#: ../Doc/library/ctypes.rst:1196 msgid "Variable-sized data types" msgstr "Types de données à taille flottante" -#: ../Doc/library/ctypes.rst:1205 +#: ../Doc/library/ctypes.rst:1198 msgid "" ":mod:`ctypes` provides some support for variable-sized arrays and structures." msgstr "" ":mod:`ctypes` assure la prise en charge des tableaux et des structures à " "taille flottante." -#: ../Doc/library/ctypes.rst:1207 +#: ../Doc/library/ctypes.rst:1200 msgid "" "The :func:`resize` function can be used to resize the memory buffer of an " "existing ctypes object. The function takes the object as first argument, " @@ -1525,7 +1516,7 @@ msgstr "" "unitaire du type considéré. Une :exc:`ValueError` est levée si c'est le " "cas ::" -#: ../Doc/library/ctypes.rst:1227 +#: ../Doc/library/ctypes.rst:1220 msgid "" "This is nice and fine, but how would one access the additional elements " "contained in this array? Since the type still only knows about 4 elements, " @@ -1535,7 +1526,7 @@ msgstr "" "tableau ? Vu que le type ne connaît que 4 éléments, on obtient une erreur si " "l'on accède aux suivants ::" -#: ../Doc/library/ctypes.rst:1239 +#: ../Doc/library/ctypes.rst:1232 msgid "" "Another way to use variable-sized data types with :mod:`ctypes` is to use " "the dynamic nature of Python, and (re-)define the data type after the " @@ -1546,21 +1537,21 @@ msgstr "" "dynamique de Python et de (re)définir le type de donnée une fois que la " "taille demandée est connue, au cas-par-cas." -#: ../Doc/library/ctypes.rst:1247 +#: ../Doc/library/ctypes.rst:1240 msgid "ctypes reference" msgstr "Référence du module" -#: ../Doc/library/ctypes.rst:1253 +#: ../Doc/library/ctypes.rst:1246 msgid "Finding shared libraries" msgstr "Recherche de bibliothèques partagées" -#: ../Doc/library/ctypes.rst:1255 +#: ../Doc/library/ctypes.rst:1248 msgid "" "When programming in a compiled language, shared libraries are accessed when " "compiling/linking a program, and when the program is run." msgstr "" -#: ../Doc/library/ctypes.rst:1258 +#: ../Doc/library/ctypes.rst:1251 msgid "" "The purpose of the :func:`find_library` function is to locate a library in a " "way similar to what the compiler or runtime loader does (on platforms with " @@ -1569,13 +1560,13 @@ msgid "" "the runtime loader directly." msgstr "" -#: ../Doc/library/ctypes.rst:1264 +#: ../Doc/library/ctypes.rst:1257 msgid "" "The :mod:`ctypes.util` module provides a function which can help to " "determine the library to load." msgstr "" -#: ../Doc/library/ctypes.rst:1272 +#: ../Doc/library/ctypes.rst:1265 msgid "" "Try to find a library and return a pathname. *name* is the library name " "without any prefix like *lib*, suffix like ``.so``, ``.dylib`` or version " @@ -1583,42 +1574,42 @@ msgid "" "If no library can be found, returns ``None``." msgstr "" -#: ../Doc/library/ctypes.rst:1277 ../Doc/library/ctypes.rst:1910 +#: ../Doc/library/ctypes.rst:1270 ../Doc/library/ctypes.rst:1903 msgid "The exact functionality is system dependent." msgstr "" -#: ../Doc/library/ctypes.rst:1279 +#: ../Doc/library/ctypes.rst:1272 msgid "" "On Linux, :func:`find_library` tries to run external programs (``/sbin/" "ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library file. It " "returns the filename of the library file." msgstr "" -#: ../Doc/library/ctypes.rst:1283 +#: ../Doc/library/ctypes.rst:1276 msgid "" "On Linux, the value of the environment variable ``LD_LIBRARY_PATH`` is used " "when searching for libraries, if a library cannot be found by any other " "means." msgstr "" -#: ../Doc/library/ctypes.rst:1287 +#: ../Doc/library/ctypes.rst:1280 msgid "Here are some examples::" msgstr "" -#: ../Doc/library/ctypes.rst:1298 +#: ../Doc/library/ctypes.rst:1291 msgid "" "On OS X, :func:`find_library` tries several predefined naming schemes and " "paths to locate the library, and returns a full pathname if successful::" msgstr "" -#: ../Doc/library/ctypes.rst:1312 +#: ../Doc/library/ctypes.rst:1305 msgid "" "On Windows, :func:`find_library` searches along the system search path, and " "returns the full pathname, but since there is no predefined naming scheme a " "call like ``find_library(\"c\")`` will fail and return ``None``." msgstr "" -#: ../Doc/library/ctypes.rst:1316 +#: ../Doc/library/ctypes.rst:1309 msgid "" "If wrapping a shared library with :mod:`ctypes`, it *may* be better to " "determine the shared library name at development time, and hardcode that " @@ -1626,24 +1617,24 @@ msgid "" "library at runtime." msgstr "" -#: ../Doc/library/ctypes.rst:1324 +#: ../Doc/library/ctypes.rst:1317 msgid "Loading shared libraries" msgstr "Chargement des bibliothèques partagées" -#: ../Doc/library/ctypes.rst:1326 +#: ../Doc/library/ctypes.rst:1319 msgid "" "There are several ways to load shared libraries into the Python process. " "One way is to instantiate one of the following classes:" msgstr "" -#: ../Doc/library/ctypes.rst:1332 +#: ../Doc/library/ctypes.rst:1325 msgid "" "Instances of this class represent loaded shared libraries. Functions in " "these libraries use the standard C calling convention, and are assumed to " "return :c:type:`int`." msgstr "" -#: ../Doc/library/ctypes.rst:1339 +#: ../Doc/library/ctypes.rst:1332 msgid "" "Windows only: Instances of this class represent loaded shared libraries, " "functions in these libraries use the ``stdcall`` calling convention, and are " @@ -1653,31 +1644,31 @@ msgid "" "value signals a failure, an :class:`OSError` is automatically raised." msgstr "" -#: ../Doc/library/ctypes.rst:1346 +#: ../Doc/library/ctypes.rst:1339 msgid ":exc:`WindowsError` used to be raised." msgstr ":exc:`WindowsError` était levée auparavant." -#: ../Doc/library/ctypes.rst:1352 +#: ../Doc/library/ctypes.rst:1345 msgid "" "Windows only: Instances of this class represent loaded shared libraries, " "functions in these libraries use the ``stdcall`` calling convention, and are " "assumed to return :c:type:`int` by default." msgstr "" -#: ../Doc/library/ctypes.rst:1356 +#: ../Doc/library/ctypes.rst:1349 msgid "" "On Windows CE only the standard calling convention is used, for convenience " "the :class:`WinDLL` and :class:`OleDLL` use the standard calling convention " "on this platform." msgstr "" -#: ../Doc/library/ctypes.rst:1360 +#: ../Doc/library/ctypes.rst:1353 msgid "" "The Python :term:`global interpreter lock` is released before calling any " "function exported by these libraries, and reacquired afterwards." msgstr "" -#: ../Doc/library/ctypes.rst:1366 +#: ../Doc/library/ctypes.rst:1359 msgid "" "Instances of this class behave like :class:`CDLL` instances, except that the " "Python GIL is *not* released during the function call, and after the " @@ -1685,11 +1676,11 @@ msgid "" "set, a Python exception is raised." msgstr "" -#: ../Doc/library/ctypes.rst:1371 +#: ../Doc/library/ctypes.rst:1364 msgid "Thus, this is only useful to call Python C api functions directly." msgstr "" -#: ../Doc/library/ctypes.rst:1373 +#: ../Doc/library/ctypes.rst:1366 msgid "" "All these classes can be instantiated by calling them with at least one " "argument, the pathname of the shared library. If you have an existing " @@ -1699,7 +1690,7 @@ msgid "" "to get a handle to it." msgstr "" -#: ../Doc/library/ctypes.rst:1380 +#: ../Doc/library/ctypes.rst:1373 msgid "" "The *mode* parameter can be used to specify how the library is loaded. For " "details, consult the :manpage:`dlopen(3)` manpage. On Windows, *mode* is " @@ -1707,7 +1698,7 @@ msgid "" "configurable." msgstr "" -#: ../Doc/library/ctypes.rst:1385 +#: ../Doc/library/ctypes.rst:1378 msgid "" "The *use_errno* parameter, when set to true, enables a ctypes mechanism that " "allows accessing the system :data:`errno` error number in a safe way. :mod:" @@ -1717,14 +1708,14 @@ msgid "" "private copy, the same happens immediately after the function call." msgstr "" -#: ../Doc/library/ctypes.rst:1392 +#: ../Doc/library/ctypes.rst:1385 msgid "" "The function :func:`ctypes.get_errno` returns the value of the ctypes " "private copy, and the function :func:`ctypes.set_errno` changes the ctypes " "private copy to a new value and returns the former value." msgstr "" -#: ../Doc/library/ctypes.rst:1396 +#: ../Doc/library/ctypes.rst:1389 msgid "" "The *use_last_error* parameter, when set to true, enables the same mechanism " "for the Windows error code which is managed by the :func:`GetLastError` and :" @@ -1733,7 +1724,7 @@ msgid "" "private copy of the windows error code." msgstr "" -#: ../Doc/library/ctypes.rst:1402 +#: ../Doc/library/ctypes.rst:1395 msgid "" "The *winmode* parameter is used on Windows to specify how the library is " "loaded (since *mode* is ignored). It takes any value that is valid for the " @@ -1743,29 +1734,29 @@ msgid "" "ensure the correct library and dependencies are loaded." msgstr "" -#: ../Doc/library/ctypes.rst:1409 +#: ../Doc/library/ctypes.rst:1402 msgid "Added *winmode* parameter." msgstr "Ajout du paramètre *winmode*." -#: ../Doc/library/ctypes.rst:1416 +#: ../Doc/library/ctypes.rst:1409 msgid "" "Flag to use as *mode* parameter. On platforms where this flag is not " "available, it is defined as the integer zero." msgstr "" -#: ../Doc/library/ctypes.rst:1423 +#: ../Doc/library/ctypes.rst:1416 msgid "" "Flag to use as *mode* parameter. On platforms where this is not available, " "it is the same as *RTLD_GLOBAL*." msgstr "" -#: ../Doc/library/ctypes.rst:1430 +#: ../Doc/library/ctypes.rst:1423 msgid "" "The default mode which is used to load shared libraries. On OSX 10.3, this " "is *RTLD_GLOBAL*, otherwise it is the same as *RTLD_LOCAL*." msgstr "" -#: ../Doc/library/ctypes.rst:1433 +#: ../Doc/library/ctypes.rst:1426 msgid "" "Instances of these classes have no public methods. Functions exported by " "the shared library can be accessed as attributes or by index. Please note " @@ -1774,21 +1765,21 @@ msgid "" "other hand, accessing it through an index returns a new object each time::" msgstr "" -#: ../Doc/library/ctypes.rst:1446 +#: ../Doc/library/ctypes.rst:1439 msgid "" "The following public attributes are available, their name starts with an " "underscore to not clash with exported function names:" msgstr "" -#: ../Doc/library/ctypes.rst:1452 +#: ../Doc/library/ctypes.rst:1445 msgid "The system handle used to access the library." msgstr "" -#: ../Doc/library/ctypes.rst:1457 +#: ../Doc/library/ctypes.rst:1450 msgid "The name of the library passed in the constructor." msgstr "" -#: ../Doc/library/ctypes.rst:1459 +#: ../Doc/library/ctypes.rst:1452 msgid "" "Shared libraries can also be loaded by using one of the prefabricated " "objects, which are instances of the :class:`LibraryLoader` class, either by " @@ -1796,52 +1787,52 @@ msgid "" "attribute of the loader instance." msgstr "" -#: ../Doc/library/ctypes.rst:1467 +#: ../Doc/library/ctypes.rst:1460 msgid "" "Class which loads shared libraries. *dlltype* should be one of the :class:" "`CDLL`, :class:`PyDLL`, :class:`WinDLL`, or :class:`OleDLL` types." msgstr "" -#: ../Doc/library/ctypes.rst:1470 +#: ../Doc/library/ctypes.rst:1463 msgid "" ":meth:`__getattr__` has special behavior: It allows loading a shared library " "by accessing it as attribute of a library loader instance. The result is " "cached, so repeated attribute accesses return the same library each time." msgstr "" -#: ../Doc/library/ctypes.rst:1476 +#: ../Doc/library/ctypes.rst:1469 msgid "" "Load a shared library into the process and return it. This method always " "returns a new instance of the library." msgstr "" -#: ../Doc/library/ctypes.rst:1480 +#: ../Doc/library/ctypes.rst:1473 msgid "These prefabricated library loaders are available:" msgstr "" -#: ../Doc/library/ctypes.rst:1485 +#: ../Doc/library/ctypes.rst:1478 msgid "Creates :class:`CDLL` instances." msgstr "" -#: ../Doc/library/ctypes.rst:1491 +#: ../Doc/library/ctypes.rst:1484 msgid "Windows only: Creates :class:`WinDLL` instances." msgstr "" -#: ../Doc/library/ctypes.rst:1497 +#: ../Doc/library/ctypes.rst:1490 msgid "Windows only: Creates :class:`OleDLL` instances." msgstr "" -#: ../Doc/library/ctypes.rst:1503 +#: ../Doc/library/ctypes.rst:1496 msgid "Creates :class:`PyDLL` instances." msgstr "" -#: ../Doc/library/ctypes.rst:1506 +#: ../Doc/library/ctypes.rst:1499 msgid "" "For accessing the C Python api directly, a ready-to-use Python shared " "library object is available:" msgstr "" -#: ../Doc/library/ctypes.rst:1512 +#: ../Doc/library/ctypes.rst:1505 msgid "" "An instance of :class:`PyDLL` that exposes Python C API functions as " "attributes. Note that all these functions are assumed to return C :c:type:" @@ -1855,7 +1846,7 @@ msgid "" "``name``." msgstr "" -#: ../Doc/library/ctypes.rst:1519 +#: ../Doc/library/ctypes.rst:1512 msgid "" "Loading a library through any of these objects raises an :ref:`auditing " "event ` ``ctypes.dlopen`` with string argument ``name``, the name " @@ -1868,7 +1859,7 @@ msgid "" "``library``, ``name``." msgstr "" -#: ../Doc/library/ctypes.rst:1525 +#: ../Doc/library/ctypes.rst:1518 msgid "" "Accessing a function on a loaded library raises an auditing event ``ctypes." "dlsym`` with arguments ``library`` (the library object) and ``name`` (the " @@ -1881,18 +1872,18 @@ msgid "" "arguments ``handle``, ``name``." msgstr "" -#: ../Doc/library/ctypes.rst:1531 +#: ../Doc/library/ctypes.rst:1524 msgid "" "In cases when only the library handle is available rather than the object, " "accessing a function raises an auditing event ``ctypes.dlsym/handle`` with " "arguments ``handle`` (the raw library handle) and ``name``." msgstr "" -#: ../Doc/library/ctypes.rst:1538 +#: ../Doc/library/ctypes.rst:1531 msgid "Foreign functions" msgstr "Fonctions externes" -#: ../Doc/library/ctypes.rst:1540 +#: ../Doc/library/ctypes.rst:1533 msgid "" "As explained in the previous section, foreign functions can be accessed as " "attributes of loaded shared libraries. The function objects created in this " @@ -1901,29 +1892,29 @@ msgid "" "library loader. They are instances of a private class:" msgstr "" -#: ../Doc/library/ctypes.rst:1549 +#: ../Doc/library/ctypes.rst:1542 msgid "Base class for C callable foreign functions." msgstr "" -#: ../Doc/library/ctypes.rst:1551 +#: ../Doc/library/ctypes.rst:1544 msgid "" "Instances of foreign functions are also C compatible data types; they " "represent C function pointers." msgstr "" -#: ../Doc/library/ctypes.rst:1554 +#: ../Doc/library/ctypes.rst:1547 msgid "" "This behavior can be customized by assigning to special attributes of the " "foreign function object." msgstr "" -#: ../Doc/library/ctypes.rst:1559 +#: ../Doc/library/ctypes.rst:1552 msgid "" "Assign a ctypes type to specify the result type of the foreign function. Use " "``None`` for :c:type:`void`, a function not returning anything." msgstr "" -#: ../Doc/library/ctypes.rst:1562 +#: ../Doc/library/ctypes.rst:1555 msgid "" "It is possible to assign a callable Python object that is not a ctypes type, " "in this case the function is assumed to return a C :c:type:`int`, and the " @@ -1933,7 +1924,7 @@ msgid "" "callable to the :attr:`errcheck` attribute." msgstr "" -#: ../Doc/library/ctypes.rst:1571 +#: ../Doc/library/ctypes.rst:1564 msgid "" "Assign a tuple of ctypes types to specify the argument types that the " "function accepts. Functions using the ``stdcall`` calling convention can " @@ -1942,7 +1933,7 @@ msgid "" "unspecified arguments as well." msgstr "" -#: ../Doc/library/ctypes.rst:1577 +#: ../Doc/library/ctypes.rst:1570 msgid "" "When a foreign function is called, each actual argument is passed to the :" "meth:`from_param` class method of the items in the :attr:`argtypes` tuple, " @@ -1952,7 +1943,7 @@ msgid "" "object using ctypes conversion rules." msgstr "" -#: ../Doc/library/ctypes.rst:1584 +#: ../Doc/library/ctypes.rst:1577 msgid "" "New: It is now possible to put items in argtypes which are not ctypes types, " "but each item must have a :meth:`from_param` method which returns a value " @@ -1960,38 +1951,38 @@ msgid "" "adapters that can adapt custom objects as function parameters." msgstr "" -#: ../Doc/library/ctypes.rst:1591 +#: ../Doc/library/ctypes.rst:1584 msgid "" "Assign a Python function or another callable to this attribute. The callable " "will be called with three or more arguments:" msgstr "" -#: ../Doc/library/ctypes.rst:1598 +#: ../Doc/library/ctypes.rst:1591 msgid "" "*result* is what the foreign function returns, as specified by the :attr:" "`restype` attribute." msgstr "" -#: ../Doc/library/ctypes.rst:1601 +#: ../Doc/library/ctypes.rst:1594 msgid "" "*func* is the foreign function object itself, this allows reusing the same " "callable object to check or post process the results of several functions." msgstr "" -#: ../Doc/library/ctypes.rst:1605 +#: ../Doc/library/ctypes.rst:1598 msgid "" "*arguments* is a tuple containing the parameters originally passed to the " "function call, this allows specializing the behavior on the arguments used." msgstr "" -#: ../Doc/library/ctypes.rst:1609 +#: ../Doc/library/ctypes.rst:1602 msgid "" "The object that this function returns will be returned from the foreign " "function call, but it can also check the result value and raise an exception " "if the foreign function call failed." msgstr "" -#: ../Doc/library/ctypes.rst:1616 +#: ../Doc/library/ctypes.rst:1609 msgid "" "This exception is raised when a foreign function call cannot convert one of " "the passed arguments." @@ -2003,7 +1994,7 @@ msgid "" "argument ``code``." msgstr "" -#: ../Doc/library/ctypes.rst:1622 +#: ../Doc/library/ctypes.rst:1615 msgid "" "On Windows, when a foreign function call raises a system exception (for " "example, due to an access violation), it will be captured and replaced with " @@ -2018,18 +2009,18 @@ msgid "" "arguments ``func_pointer``, ``arguments``." msgstr "" -#: ../Doc/library/ctypes.rst:1630 +#: ../Doc/library/ctypes.rst:1623 msgid "" "Some ways to invoke foreign function calls may raise an auditing event " "``ctypes.call_function`` with arguments ``function pointer`` and " "``arguments``." msgstr "" -#: ../Doc/library/ctypes.rst:1636 +#: ../Doc/library/ctypes.rst:1629 msgid "Function prototypes" msgstr "Prototypes de fonction" -#: ../Doc/library/ctypes.rst:1638 +#: ../Doc/library/ctypes.rst:1631 msgid "" "Foreign functions can also be created by instantiating function prototypes. " "Function prototypes are similar to function prototypes in C; they describe a " @@ -2040,7 +2031,7 @@ msgid "" "``@wrapper`` syntax. See :ref:`ctypes-callback-functions` for examples." msgstr "" -#: ../Doc/library/ctypes.rst:1649 +#: ../Doc/library/ctypes.rst:1642 msgid "" "The returned function prototype creates functions that use the standard C " "calling convention. The function will release the GIL during the call. If " @@ -2049,7 +2040,7 @@ msgid "" "after the call; *use_last_error* does the same for the Windows error code." msgstr "" -#: ../Doc/library/ctypes.rst:1659 +#: ../Doc/library/ctypes.rst:1652 msgid "" "Windows only: The returned function prototype creates functions that use the " "``stdcall`` calling convention, except on Windows CE where :func:" @@ -2058,30 +2049,30 @@ msgid "" "meaning as above." msgstr "" -#: ../Doc/library/ctypes.rst:1668 +#: ../Doc/library/ctypes.rst:1661 msgid "" "The returned function prototype creates functions that use the Python " "calling convention. The function will *not* release the GIL during the call." msgstr "" -#: ../Doc/library/ctypes.rst:1671 +#: ../Doc/library/ctypes.rst:1664 msgid "" "Function prototypes created by these factory functions can be instantiated " "in different ways, depending on the type and number of the parameters in the " "call:" msgstr "" -#: ../Doc/library/ctypes.rst:1679 +#: ../Doc/library/ctypes.rst:1672 msgid "" "Returns a foreign function at the specified address which must be an integer." msgstr "" -#: ../Doc/library/ctypes.rst:1686 +#: ../Doc/library/ctypes.rst:1679 msgid "" "Create a C callable function (a callback function) from a Python *callable*." msgstr "" -#: ../Doc/library/ctypes.rst:1693 +#: ../Doc/library/ctypes.rst:1686 msgid "" "Returns a foreign function exported by a shared library. *func_spec* must be " "a 2-tuple ``(name_or_ordinal, library)``. The first item is the name of the " @@ -2089,7 +2080,7 @@ msgid "" "small integer. The second item is the shared library instance." msgstr "" -#: ../Doc/library/ctypes.rst:1703 +#: ../Doc/library/ctypes.rst:1696 msgid "" "Returns a foreign function that will call a COM method. *vtbl_index* is the " "index into the virtual function table, a small non-negative integer. *name* " @@ -2097,85 +2088,85 @@ msgid "" "identifier which is used in extended error reporting." msgstr "" -#: ../Doc/library/ctypes.rst:1708 +#: ../Doc/library/ctypes.rst:1701 msgid "" "COM methods use a special calling convention: They require a pointer to the " "COM interface as first argument, in addition to those parameters that are " "specified in the :attr:`argtypes` tuple." msgstr "" -#: ../Doc/library/ctypes.rst:1712 +#: ../Doc/library/ctypes.rst:1705 msgid "" "The optional *paramflags* parameter creates foreign function wrappers with " "much more functionality than the features described above." msgstr "" -#: ../Doc/library/ctypes.rst:1715 +#: ../Doc/library/ctypes.rst:1708 msgid "*paramflags* must be a tuple of the same length as :attr:`argtypes`." msgstr "" -#: ../Doc/library/ctypes.rst:1717 +#: ../Doc/library/ctypes.rst:1710 msgid "" "Each item in this tuple contains further information about a parameter, it " "must be a tuple containing one, two, or three items." msgstr "" -#: ../Doc/library/ctypes.rst:1720 +#: ../Doc/library/ctypes.rst:1713 msgid "" "The first item is an integer containing a combination of direction flags for " "the parameter:" msgstr "" -#: ../Doc/library/ctypes.rst:1724 +#: ../Doc/library/ctypes.rst:1717 msgid "1" msgstr "1" -#: ../Doc/library/ctypes.rst:1724 +#: ../Doc/library/ctypes.rst:1717 msgid "Specifies an input parameter to the function." msgstr "" -#: ../Doc/library/ctypes.rst:1727 +#: ../Doc/library/ctypes.rst:1720 msgid "2" msgstr "2" -#: ../Doc/library/ctypes.rst:1727 +#: ../Doc/library/ctypes.rst:1720 msgid "Output parameter. The foreign function fills in a value." msgstr "" -#: ../Doc/library/ctypes.rst:1730 +#: ../Doc/library/ctypes.rst:1723 msgid "4" msgstr "4" -#: ../Doc/library/ctypes.rst:1730 +#: ../Doc/library/ctypes.rst:1723 msgid "Input parameter which defaults to the integer zero." msgstr "" -#: ../Doc/library/ctypes.rst:1732 +#: ../Doc/library/ctypes.rst:1725 msgid "" "The optional second item is the parameter name as string. If this is " "specified, the foreign function can be called with named parameters." msgstr "" -#: ../Doc/library/ctypes.rst:1735 +#: ../Doc/library/ctypes.rst:1728 msgid "The optional third item is the default value for this parameter." msgstr "" -#: ../Doc/library/ctypes.rst:1737 +#: ../Doc/library/ctypes.rst:1730 msgid "" "This example demonstrates how to wrap the Windows ``MessageBoxW`` function " "so that it supports default parameters and named arguments. The C " "declaration from the windows header file is this::" msgstr "" -#: ../Doc/library/ctypes.rst:1748 ../Doc/library/ctypes.rst:1771 +#: ../Doc/library/ctypes.rst:1741 ../Doc/library/ctypes.rst:1764 msgid "Here is the wrapping with :mod:`ctypes`::" msgstr "" -#: ../Doc/library/ctypes.rst:1756 +#: ../Doc/library/ctypes.rst:1749 msgid "The ``MessageBox`` foreign function can now be called in these ways::" msgstr "" -#: ../Doc/library/ctypes.rst:1762 +#: ../Doc/library/ctypes.rst:1755 msgid "" "A second example demonstrates output parameters. The win32 " "``GetWindowRect`` function retrieves the dimensions of a specified window by " @@ -2183,7 +2174,7 @@ msgid "" "the C declaration::" msgstr "" -#: ../Doc/library/ctypes.rst:1780 +#: ../Doc/library/ctypes.rst:1773 msgid "" "Functions with output parameters will automatically return the output " "parameter value if there is a single one, or a tuple containing the output " @@ -2191,7 +2182,7 @@ msgid "" "now returns a RECT instance, when called." msgstr "" -#: ../Doc/library/ctypes.rst:1785 +#: ../Doc/library/ctypes.rst:1778 msgid "" "Output parameters can be combined with the :attr:`errcheck` protocol to do " "further output processing and error checking. The win32 ``GetWindowRect`` " @@ -2200,7 +2191,7 @@ msgid "" "call failed::" msgstr "" -#: ../Doc/library/ctypes.rst:1798 +#: ../Doc/library/ctypes.rst:1791 msgid "" "If the :attr:`errcheck` function returns the argument tuple it receives " "unchanged, :mod:`ctypes` continues the normal processing it does on the " @@ -2209,46 +2200,46 @@ msgid "" "and return them instead, the normal processing will no longer take place::" msgstr "" -#: ../Doc/library/ctypes.rst:1817 +#: ../Doc/library/ctypes.rst:1810 msgid "Utility functions" msgstr "Fonctions utilitaires" -#: ../Doc/library/ctypes.rst:1821 +#: ../Doc/library/ctypes.rst:1814 msgid "" "Returns the address of the memory buffer as integer. *obj* must be an " "instance of a ctypes type." msgstr "" -#: ../Doc/library/ctypes.rst:1824 +#: ../Doc/library/ctypes.rst:1817 msgid "" "Raises an :ref:`auditing event ` ``ctypes.addressof`` with " "argument ``obj``." msgstr "" -#: ../Doc/library/ctypes.rst:1829 +#: ../Doc/library/ctypes.rst:1822 msgid "" "Returns the alignment requirements of a ctypes type. *obj_or_type* must be a " "ctypes type or instance." msgstr "" -#: ../Doc/library/ctypes.rst:1835 +#: ../Doc/library/ctypes.rst:1828 msgid "" "Returns a light-weight pointer to *obj*, which must be an instance of a " "ctypes type. *offset* defaults to zero, and must be an integer that will be " "added to the internal pointer value." msgstr "" -#: ../Doc/library/ctypes.rst:1839 +#: ../Doc/library/ctypes.rst:1832 msgid "``byref(obj, offset)`` corresponds to this C code::" msgstr "" -#: ../Doc/library/ctypes.rst:1843 +#: ../Doc/library/ctypes.rst:1836 msgid "" "The returned object can only be used as a foreign function call parameter. " "It behaves similar to ``pointer(obj)``, but the construction is a lot faster." msgstr "" -#: ../Doc/library/ctypes.rst:1849 +#: ../Doc/library/ctypes.rst:1842 msgid "" "This function is similar to the cast operator in C. It returns a new " "instance of *type* which points to the same memory block as *obj*. *type* " @@ -2256,19 +2247,19 @@ msgid "" "as a pointer." msgstr "" -#: ../Doc/library/ctypes.rst:1857 +#: ../Doc/library/ctypes.rst:1850 msgid "" "This function creates a mutable character buffer. The returned object is a " "ctypes array of :class:`c_char`." msgstr "" -#: ../Doc/library/ctypes.rst:1860 +#: ../Doc/library/ctypes.rst:1853 msgid "" "*init_or_size* must be an integer which specifies the size of the array, or " "a bytes object which will be used to initialize the array items." msgstr "" -#: ../Doc/library/ctypes.rst:1863 +#: ../Doc/library/ctypes.rst:1856 msgid "" "If a bytes object is specified as first argument, the buffer is made one " "item larger than its length so that the last element in the array is a NUL " @@ -2277,25 +2268,25 @@ msgid "" "not be used." msgstr "" -#: ../Doc/library/ctypes.rst:1868 +#: ../Doc/library/ctypes.rst:1861 msgid "" "Raises an :ref:`auditing event ` ``ctypes.create_string_buffer`` " "with arguments ``init``, ``size``." msgstr "" -#: ../Doc/library/ctypes.rst:1873 +#: ../Doc/library/ctypes.rst:1866 msgid "" "This function creates a mutable unicode character buffer. The returned " "object is a ctypes array of :class:`c_wchar`." msgstr "" -#: ../Doc/library/ctypes.rst:1876 +#: ../Doc/library/ctypes.rst:1869 msgid "" "*init_or_size* must be an integer which specifies the size of the array, or " "a string which will be used to initialize the array items." msgstr "" -#: ../Doc/library/ctypes.rst:1879 +#: ../Doc/library/ctypes.rst:1872 msgid "" "If a string is specified as first argument, the buffer is made one item " "larger than the length of the string so that the last element in the array " @@ -2304,27 +2295,27 @@ msgid "" "should not be used." msgstr "" -#: ../Doc/library/ctypes.rst:1885 +#: ../Doc/library/ctypes.rst:1878 msgid "" "Raises an :ref:`auditing event ` ``ctypes.create_unicode_buffer`` " "with arguments ``init``, ``size``." msgstr "" -#: ../Doc/library/ctypes.rst:1890 +#: ../Doc/library/ctypes.rst:1883 msgid "" "Windows only: This function is a hook which allows implementing in-process " "COM servers with ctypes. It is called from the DllCanUnloadNow function " "that the _ctypes extension dll exports." msgstr "" -#: ../Doc/library/ctypes.rst:1897 +#: ../Doc/library/ctypes.rst:1890 msgid "" "Windows only: This function is a hook which allows implementing in-process " "COM servers with ctypes. It is called from the DllGetClassObject function " "that the ``_ctypes`` extension dll exports." msgstr "" -#: ../Doc/library/ctypes.rst:1905 +#: ../Doc/library/ctypes.rst:1898 msgid "" "Try to find a library and return a pathname. *name* is the library name " "without any prefix like ``lib``, suffix like ``.so``, ``.dylib`` or version " @@ -2332,92 +2323,92 @@ msgid "" "If no library can be found, returns ``None``." msgstr "" -#: ../Doc/library/ctypes.rst:1916 +#: ../Doc/library/ctypes.rst:1909 msgid "" "Windows only: return the filename of the VC runtime library used by Python, " "and by the extension modules. If the name of the library cannot be " "determined, ``None`` is returned." msgstr "" -#: ../Doc/library/ctypes.rst:1920 +#: ../Doc/library/ctypes.rst:1913 msgid "" "If you need to free memory, for example, allocated by an extension module " "with a call to the ``free(void *)``, it is important that you use the " "function in the same library that allocated the memory." msgstr "" -#: ../Doc/library/ctypes.rst:1927 +#: ../Doc/library/ctypes.rst:1920 msgid "" "Windows only: Returns a textual description of the error code *code*. If no " "error code is specified, the last error code is used by calling the Windows " "api function GetLastError." msgstr "" -#: ../Doc/library/ctypes.rst:1934 +#: ../Doc/library/ctypes.rst:1927 msgid "" "Windows only: Returns the last error code set by Windows in the calling " "thread. This function calls the Windows `GetLastError()` function directly, " "it does not return the ctypes-private copy of the error code." msgstr "" -#: ../Doc/library/ctypes.rst:1940 +#: ../Doc/library/ctypes.rst:1933 msgid "" "Returns the current value of the ctypes-private copy of the system :data:" "`errno` variable in the calling thread." msgstr "" -#: ../Doc/library/ctypes.rst:1943 +#: ../Doc/library/ctypes.rst:1936 msgid "" "Raises an :ref:`auditing event ` ``ctypes.get_errno`` with no " "arguments." msgstr "" -#: ../Doc/library/ctypes.rst:1947 +#: ../Doc/library/ctypes.rst:1940 msgid "" "Windows only: returns the current value of the ctypes-private copy of the " "system :data:`LastError` variable in the calling thread." msgstr "" -#: ../Doc/library/ctypes.rst:1950 +#: ../Doc/library/ctypes.rst:1943 msgid "" "Raises an :ref:`auditing event ` ``ctypes.get_last_error`` with no " "arguments." msgstr "" -#: ../Doc/library/ctypes.rst:1954 +#: ../Doc/library/ctypes.rst:1947 msgid "" "Same as the standard C memmove library function: copies *count* bytes from " "*src* to *dst*. *dst* and *src* must be integers or ctypes instances that " "can be converted to pointers." msgstr "" -#: ../Doc/library/ctypes.rst:1961 +#: ../Doc/library/ctypes.rst:1954 msgid "" "Same as the standard C memset library function: fills the memory block at " "address *dst* with *count* bytes of value *c*. *dst* must be an integer " "specifying an address, or a ctypes instance." msgstr "" -#: ../Doc/library/ctypes.rst:1968 +#: ../Doc/library/ctypes.rst:1961 msgid "" "This factory function creates and returns a new ctypes pointer type. Pointer " "types are cached and reused internally, so calling this function repeatedly " "is cheap. *type* must be a ctypes type." msgstr "" -#: ../Doc/library/ctypes.rst:1975 +#: ../Doc/library/ctypes.rst:1968 msgid "" "This function creates a new pointer instance, pointing to *obj*. The " "returned object is of the type ``POINTER(type(obj))``." msgstr "" -#: ../Doc/library/ctypes.rst:1978 +#: ../Doc/library/ctypes.rst:1971 msgid "" "Note: If you just want to pass a pointer to an object to a foreign function " "call, you should use ``byref(obj)`` which is much faster." msgstr "" -#: ../Doc/library/ctypes.rst:1984 +#: ../Doc/library/ctypes.rst:1977 msgid "" "This function resizes the internal memory buffer of *obj*, which must be an " "instance of a ctypes type. It is not possible to make the buffer smaller " @@ -2425,51 +2416,51 @@ msgid "" "but it is possible to enlarge the buffer." msgstr "" -#: ../Doc/library/ctypes.rst:1992 +#: ../Doc/library/ctypes.rst:1985 msgid "" "Set the current value of the ctypes-private copy of the system :data:`errno` " "variable in the calling thread to *value* and return the previous value." msgstr "" -#: ../Doc/library/ctypes.rst:1995 +#: ../Doc/library/ctypes.rst:1988 msgid "" "Raises an :ref:`auditing event ` ``ctypes.set_errno`` with " "argument ``errno``." msgstr "" -#: ../Doc/library/ctypes.rst:2000 +#: ../Doc/library/ctypes.rst:1993 msgid "" "Windows only: set the current value of the ctypes-private copy of the " "system :data:`LastError` variable in the calling thread to *value* and " "return the previous value." msgstr "" -#: ../Doc/library/ctypes.rst:2004 +#: ../Doc/library/ctypes.rst:1997 msgid "" "Raises an :ref:`auditing event ` ``ctypes.set_last_error`` with " "argument ``error``." msgstr "" -#: ../Doc/library/ctypes.rst:2009 +#: ../Doc/library/ctypes.rst:2002 msgid "" "Returns the size in bytes of a ctypes type or instance memory buffer. Does " "the same as the C ``sizeof`` operator." msgstr "" -#: ../Doc/library/ctypes.rst:2015 +#: ../Doc/library/ctypes.rst:2008 msgid "" "This function returns the C string starting at memory address *address* as a " "bytes object. If size is specified, it is used as size, otherwise the string " "is assumed to be zero-terminated." msgstr "" -#: ../Doc/library/ctypes.rst:2019 +#: ../Doc/library/ctypes.rst:2012 msgid "" "Raises an :ref:`auditing event ` ``ctypes.string_at`` with " "arguments ``address``, ``size``." msgstr "" -#: ../Doc/library/ctypes.rst:2024 +#: ../Doc/library/ctypes.rst:2017 msgid "" "Windows only: this function is probably the worst-named thing in ctypes. It " "creates an instance of OSError. If *code* is not specified, " @@ -2478,11 +2469,11 @@ msgid "" "error." msgstr "" -#: ../Doc/library/ctypes.rst:2030 +#: ../Doc/library/ctypes.rst:2023 msgid "An instance of :exc:`WindowsError` used to be created." msgstr "" -#: ../Doc/library/ctypes.rst:2036 +#: ../Doc/library/ctypes.rst:2029 msgid "" "This function returns the wide character string starting at memory address " "*address* as a string. If *size* is specified, it is used as the number of " @@ -2490,17 +2481,17 @@ msgid "" "terminated." msgstr "" -#: ../Doc/library/ctypes.rst:2041 +#: ../Doc/library/ctypes.rst:2034 msgid "" "Raises an :ref:`auditing event ` ``ctypes.wstring_at`` with " "arguments ``address``, ``size``." msgstr "" -#: ../Doc/library/ctypes.rst:2047 +#: ../Doc/library/ctypes.rst:2040 msgid "Data types" msgstr "Types de données" -#: ../Doc/library/ctypes.rst:2052 +#: ../Doc/library/ctypes.rst:2045 msgid "" "This non-public class is the common base class of all ctypes data types. " "Among other things, all ctypes type instances contain a memory block that " @@ -2510,13 +2501,13 @@ msgid "" "alive in case the memory block contains pointers." msgstr "" -#: ../Doc/library/ctypes.rst:2059 +#: ../Doc/library/ctypes.rst:2052 msgid "" "Common methods of ctypes data types, these are all class methods (to be " "exact, they are methods of the :term:`metaclass`):" msgstr "" -#: ../Doc/library/ctypes.rst:2064 +#: ../Doc/library/ctypes.rst:2057 msgid "" "This method returns a ctypes instance that shares the buffer of the *source* " "object. The *source* object must support the writeable buffer interface. " @@ -2525,13 +2516,13 @@ msgid "" "exc:`ValueError` is raised." msgstr "" -#: ../Doc/library/ctypes.rst:2070 ../Doc/library/ctypes.rst:2080 +#: ../Doc/library/ctypes.rst:2063 ../Doc/library/ctypes.rst:2073 msgid "" "Raises an :ref:`auditing event ` ``ctypes.cdata/buffer`` with " "arguments ``pointer``, ``size``, ``offset``." msgstr "" -#: ../Doc/library/ctypes.rst:2074 +#: ../Doc/library/ctypes.rst:2067 msgid "" "This method creates a ctypes instance, copying the buffer from the *source* " "object buffer which must be readable. The optional *offset* parameter " @@ -2539,7 +2530,7 @@ msgid "" "If the source buffer is not large enough a :exc:`ValueError` is raised." msgstr "" -#: ../Doc/library/ctypes.rst:2084 +#: ../Doc/library/ctypes.rst:2077 msgid "" "This method returns a ctypes type instance using the memory specified by " "*address* which must be an integer." @@ -2551,13 +2542,13 @@ msgid "" "``address``." msgstr "" -#: ../Doc/library/ctypes.rst:2089 +#: ../Doc/library/ctypes.rst:2082 msgid "" "This method, and others that indirectly call this method, raises an :ref:" "`auditing event ` ``ctypes.cdata`` with argument ``address``." msgstr "" -#: ../Doc/library/ctypes.rst:2095 +#: ../Doc/library/ctypes.rst:2088 msgid "" "This method adapts *obj* to a ctypes type. It is called with the actual " "object used in a foreign function call when the type is present in the " @@ -2565,25 +2556,25 @@ msgid "" "be used as a function call parameter." msgstr "" -#: ../Doc/library/ctypes.rst:2100 +#: ../Doc/library/ctypes.rst:2093 msgid "" "All ctypes data types have a default implementation of this classmethod that " "normally returns *obj* if that is an instance of the type. Some types " "accept other objects as well." msgstr "" -#: ../Doc/library/ctypes.rst:2106 +#: ../Doc/library/ctypes.rst:2099 msgid "" "This method returns a ctypes type instance exported by a shared library. " "*name* is the name of the symbol that exports the data, *library* is the " "loaded shared library." msgstr "" -#: ../Doc/library/ctypes.rst:2110 +#: ../Doc/library/ctypes.rst:2103 msgid "Common instance variables of ctypes data types:" msgstr "" -#: ../Doc/library/ctypes.rst:2114 +#: ../Doc/library/ctypes.rst:2107 msgid "" "Sometimes ctypes data instances do not own the memory block they contain, " "instead they share part of the memory block of a base object. The :attr:" @@ -2591,13 +2582,13 @@ msgid "" "block." msgstr "" -#: ../Doc/library/ctypes.rst:2121 +#: ../Doc/library/ctypes.rst:2114 msgid "" "This read-only variable is true when the ctypes data instance has allocated " "the memory block itself, false otherwise." msgstr "" -#: ../Doc/library/ctypes.rst:2126 +#: ../Doc/library/ctypes.rst:2119 msgid "" "This member is either ``None`` or a dictionary containing Python objects " "that need to be kept alive so that the memory block contents is kept valid. " @@ -2605,7 +2596,7 @@ msgid "" "dictionary." msgstr "" -#: ../Doc/library/ctypes.rst:2139 +#: ../Doc/library/ctypes.rst:2132 msgid "" "This non-public class is the base class of all fundamental ctypes data " "types. It is mentioned here because it contains the common attributes of the " @@ -2614,11 +2605,11 @@ msgid "" "types that are not and do not contain pointers can now be pickled." msgstr "" -#: ../Doc/library/ctypes.rst:2145 +#: ../Doc/library/ctypes.rst:2138 msgid "Instances have a single attribute:" msgstr "" -#: ../Doc/library/ctypes.rst:2149 +#: ../Doc/library/ctypes.rst:2142 msgid "" "This attribute contains the actual value of the instance. For integer and " "pointer types, it is an integer, for character types, it is a single " @@ -2626,7 +2617,7 @@ msgid "" "bytes object or string." msgstr "" -#: ../Doc/library/ctypes.rst:2154 +#: ../Doc/library/ctypes.rst:2147 msgid "" "When the ``value`` attribute is retrieved from a ctypes instance, usually a " "new object is returned each time. :mod:`ctypes` does *not* implement " @@ -2634,7 +2625,7 @@ msgid "" "true for all other ctypes object instances." msgstr "" -#: ../Doc/library/ctypes.rst:2160 +#: ../Doc/library/ctypes.rst:2153 msgid "" "Fundamental data types, when returned as foreign function call results, or, " "for example, by retrieving structure field members or array items, are " @@ -2643,7 +2634,7 @@ msgid "" "receive a Python bytes object, *not* a :class:`c_char_p` instance." msgstr "" -#: ../Doc/library/ctypes.rst:2168 +#: ../Doc/library/ctypes.rst:2161 msgid "" "Subclasses of fundamental data types do *not* inherit this behavior. So, if " "a foreign functions :attr:`restype` is a subclass of :class:`c_void_p`, you " @@ -2651,25 +2642,25 @@ msgid "" "you can get the value of the pointer by accessing the ``value`` attribute." msgstr "" -#: ../Doc/library/ctypes.rst:2173 +#: ../Doc/library/ctypes.rst:2166 msgid "These are the fundamental ctypes data types:" msgstr "" -#: ../Doc/library/ctypes.rst:2177 +#: ../Doc/library/ctypes.rst:2170 msgid "" "Represents the C :c:type:`signed char` datatype, and interprets the value as " "small integer. The constructor accepts an optional integer initializer; no " "overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2184 +#: ../Doc/library/ctypes.rst:2177 msgid "" "Represents the C :c:type:`char` datatype, and interprets the value as a " "single character. The constructor accepts an optional string initializer, " "the length of the string must be exactly one character." msgstr "" -#: ../Doc/library/ctypes.rst:2191 +#: ../Doc/library/ctypes.rst:2184 msgid "" "Represents the C :c:type:`char *` datatype when it points to a zero-" "terminated string. For a general character pointer that may also point to " @@ -2677,178 +2668,178 @@ msgid "" "integer address, or a bytes object." msgstr "" -#: ../Doc/library/ctypes.rst:2199 +#: ../Doc/library/ctypes.rst:2192 msgid "" "Represents the C :c:type:`double` datatype. The constructor accepts an " "optional float initializer." msgstr "" -#: ../Doc/library/ctypes.rst:2205 +#: ../Doc/library/ctypes.rst:2198 msgid "" "Represents the C :c:type:`long double` datatype. The constructor accepts an " "optional float initializer. On platforms where ``sizeof(long double) == " "sizeof(double)`` it is an alias to :class:`c_double`." msgstr "" -#: ../Doc/library/ctypes.rst:2211 +#: ../Doc/library/ctypes.rst:2204 msgid "" "Represents the C :c:type:`float` datatype. The constructor accepts an " "optional float initializer." msgstr "" -#: ../Doc/library/ctypes.rst:2217 +#: ../Doc/library/ctypes.rst:2210 msgid "" "Represents the C :c:type:`signed int` datatype. The constructor accepts an " "optional integer initializer; no overflow checking is done. On platforms " "where ``sizeof(int) == sizeof(long)`` it is an alias to :class:`c_long`." msgstr "" -#: ../Doc/library/ctypes.rst:2224 +#: ../Doc/library/ctypes.rst:2217 msgid "" "Represents the C 8-bit :c:type:`signed int` datatype. Usually an alias for :" "class:`c_byte`." msgstr "" -#: ../Doc/library/ctypes.rst:2230 +#: ../Doc/library/ctypes.rst:2223 msgid "" "Represents the C 16-bit :c:type:`signed int` datatype. Usually an alias " "for :class:`c_short`." msgstr "" -#: ../Doc/library/ctypes.rst:2236 +#: ../Doc/library/ctypes.rst:2229 msgid "" "Represents the C 32-bit :c:type:`signed int` datatype. Usually an alias " "for :class:`c_int`." msgstr "" -#: ../Doc/library/ctypes.rst:2242 +#: ../Doc/library/ctypes.rst:2235 msgid "" "Represents the C 64-bit :c:type:`signed int` datatype. Usually an alias " "for :class:`c_longlong`." msgstr "" -#: ../Doc/library/ctypes.rst:2248 +#: ../Doc/library/ctypes.rst:2241 msgid "" "Represents the C :c:type:`signed long` datatype. The constructor accepts an " "optional integer initializer; no overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2254 +#: ../Doc/library/ctypes.rst:2247 msgid "" "Represents the C :c:type:`signed long long` datatype. The constructor " "accepts an optional integer initializer; no overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2260 +#: ../Doc/library/ctypes.rst:2253 msgid "" "Represents the C :c:type:`signed short` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2266 +#: ../Doc/library/ctypes.rst:2259 msgid "Represents the C :c:type:`size_t` datatype." msgstr "" -#: ../Doc/library/ctypes.rst:2271 +#: ../Doc/library/ctypes.rst:2264 msgid "Represents the C :c:type:`ssize_t` datatype." msgstr "" -#: ../Doc/library/ctypes.rst:2278 +#: ../Doc/library/ctypes.rst:2271 msgid "" "Represents the C :c:type:`unsigned char` datatype, it interprets the value " "as small integer. The constructor accepts an optional integer initializer; " "no overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2285 +#: ../Doc/library/ctypes.rst:2278 msgid "" "Represents the C :c:type:`unsigned int` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done. On platforms " "where ``sizeof(int) == sizeof(long)`` it is an alias for :class:`c_ulong`." msgstr "" -#: ../Doc/library/ctypes.rst:2292 +#: ../Doc/library/ctypes.rst:2285 msgid "" "Represents the C 8-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_ubyte`." msgstr "" -#: ../Doc/library/ctypes.rst:2298 +#: ../Doc/library/ctypes.rst:2291 msgid "" "Represents the C 16-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_ushort`." msgstr "" -#: ../Doc/library/ctypes.rst:2304 +#: ../Doc/library/ctypes.rst:2297 msgid "" "Represents the C 32-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_uint`." msgstr "" -#: ../Doc/library/ctypes.rst:2310 +#: ../Doc/library/ctypes.rst:2303 msgid "" "Represents the C 64-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_ulonglong`." msgstr "" -#: ../Doc/library/ctypes.rst:2316 +#: ../Doc/library/ctypes.rst:2309 msgid "" "Represents the C :c:type:`unsigned long` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2322 +#: ../Doc/library/ctypes.rst:2315 msgid "" "Represents the C :c:type:`unsigned long long` datatype. The constructor " "accepts an optional integer initializer; no overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2328 +#: ../Doc/library/ctypes.rst:2321 msgid "" "Represents the C :c:type:`unsigned short` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: ../Doc/library/ctypes.rst:2334 +#: ../Doc/library/ctypes.rst:2327 msgid "" "Represents the C :c:type:`void *` type. The value is represented as " "integer. The constructor accepts an optional integer initializer." msgstr "" -#: ../Doc/library/ctypes.rst:2340 +#: ../Doc/library/ctypes.rst:2333 msgid "" "Represents the C :c:type:`wchar_t` datatype, and interprets the value as a " "single character unicode string. The constructor accepts an optional string " "initializer, the length of the string must be exactly one character." msgstr "" -#: ../Doc/library/ctypes.rst:2347 +#: ../Doc/library/ctypes.rst:2340 msgid "" "Represents the C :c:type:`wchar_t *` datatype, which must be a pointer to a " "zero-terminated wide character string. The constructor accepts an integer " "address, or a string." msgstr "" -#: ../Doc/library/ctypes.rst:2354 +#: ../Doc/library/ctypes.rst:2347 msgid "" "Represent the C :c:type:`bool` datatype (more accurately, :c:type:`_Bool` " "from C99). Its value can be ``True`` or ``False``, and the constructor " "accepts any object that has a truth value." msgstr "" -#: ../Doc/library/ctypes.rst:2361 +#: ../Doc/library/ctypes.rst:2354 msgid "" "Windows only: Represents a :c:type:`HRESULT` value, which contains success " "or error information for a function or method call." msgstr "" -#: ../Doc/library/ctypes.rst:2367 +#: ../Doc/library/ctypes.rst:2360 msgid "" "Represents the C :c:type:`PyObject *` datatype. Calling this without an " "argument creates a ``NULL`` :c:type:`PyObject *` pointer." msgstr "" -#: ../Doc/library/ctypes.rst:2370 +#: ../Doc/library/ctypes.rst:2363 msgid "" "The :mod:`ctypes.wintypes` module provides quite some other Windows specific " "data types, for example :c:type:`HWND`, :c:type:`WPARAM`, or :c:type:" @@ -2856,33 +2847,33 @@ msgid "" "also defined." msgstr "" -#: ../Doc/library/ctypes.rst:2378 +#: ../Doc/library/ctypes.rst:2371 msgid "Structured data types" msgstr "Types de donnée dérivés de Structure" -#: ../Doc/library/ctypes.rst:2383 +#: ../Doc/library/ctypes.rst:2376 msgid "Abstract base class for unions in native byte order." msgstr "" -#: ../Doc/library/ctypes.rst:2388 +#: ../Doc/library/ctypes.rst:2381 msgid "Abstract base class for structures in *big endian* byte order." msgstr "" -#: ../Doc/library/ctypes.rst:2393 +#: ../Doc/library/ctypes.rst:2386 msgid "Abstract base class for structures in *little endian* byte order." msgstr "" -#: ../Doc/library/ctypes.rst:2395 +#: ../Doc/library/ctypes.rst:2388 msgid "" "Structures with non-native byte order cannot contain pointer type fields, or " "any other data types containing pointer type fields." msgstr "" -#: ../Doc/library/ctypes.rst:2401 +#: ../Doc/library/ctypes.rst:2394 msgid "Abstract base class for structures in *native* byte order." msgstr "" -#: ../Doc/library/ctypes.rst:2403 +#: ../Doc/library/ctypes.rst:2396 msgid "" "Concrete structure and union types must be created by subclassing one of " "these types, and at least define a :attr:`_fields_` class variable. :mod:" @@ -2890,34 +2881,34 @@ msgid "" "the fields by direct attribute accesses. These are the" msgstr "" -#: ../Doc/library/ctypes.rst:2411 +#: ../Doc/library/ctypes.rst:2404 msgid "" "A sequence defining the structure fields. The items must be 2-tuples or 3-" "tuples. The first item is the name of the field, the second item specifies " "the type of the field; it can be any ctypes data type." msgstr "" -#: ../Doc/library/ctypes.rst:2415 +#: ../Doc/library/ctypes.rst:2408 msgid "" "For integer type fields like :class:`c_int`, a third optional item can be " "given. It must be a small positive integer defining the bit width of the " "field." msgstr "" -#: ../Doc/library/ctypes.rst:2419 +#: ../Doc/library/ctypes.rst:2412 msgid "" "Field names must be unique within one structure or union. This is not " "checked, only one field can be accessed when names are repeated." msgstr "" -#: ../Doc/library/ctypes.rst:2422 +#: ../Doc/library/ctypes.rst:2415 msgid "" "It is possible to define the :attr:`_fields_` class variable *after* the " "class statement that defines the Structure subclass, this allows creating " "data types that directly or indirectly reference themselves::" msgstr "" -#: ../Doc/library/ctypes.rst:2432 +#: ../Doc/library/ctypes.rst:2425 msgid "" "The :attr:`_fields_` class variable must, however, be defined before the " "type is first used (an instance is created, :func:`sizeof` is called on it, " @@ -2925,28 +2916,28 @@ msgid "" "raise an AttributeError." msgstr "" -#: ../Doc/library/ctypes.rst:2437 +#: ../Doc/library/ctypes.rst:2430 msgid "" "It is possible to define sub-subclasses of structure types, they inherit the " "fields of the base class plus the :attr:`_fields_` defined in the sub-" "subclass, if any." msgstr "" -#: ../Doc/library/ctypes.rst:2444 +#: ../Doc/library/ctypes.rst:2437 msgid "" "An optional small integer that allows overriding the alignment of structure " "fields in the instance. :attr:`_pack_` must already be defined when :attr:" "`_fields_` is assigned, otherwise it will have no effect." msgstr "" -#: ../Doc/library/ctypes.rst:2451 +#: ../Doc/library/ctypes.rst:2444 msgid "" "An optional sequence that lists the names of unnamed (anonymous) fields. :" "attr:`_anonymous_` must be already defined when :attr:`_fields_` is " "assigned, otherwise it will have no effect." msgstr "" -#: ../Doc/library/ctypes.rst:2455 +#: ../Doc/library/ctypes.rst:2448 msgid "" "The fields listed in this variable must be structure or union type fields. :" "mod:`ctypes` will create descriptors in the structure type that allows " @@ -2954,11 +2945,11 @@ msgid "" "structure or union field." msgstr "" -#: ../Doc/library/ctypes.rst:2460 +#: ../Doc/library/ctypes.rst:2453 msgid "Here is an example type (Windows)::" msgstr "" -#: ../Doc/library/ctypes.rst:2473 +#: ../Doc/library/ctypes.rst:2466 msgid "" "The ``TYPEDESC`` structure describes a COM data type, the ``vt`` field " "specifies which one of the union fields is valid. Since the ``u`` field is " @@ -2968,7 +2959,7 @@ msgid "" "temporary union instance::" msgstr "" -#: ../Doc/library/ctypes.rst:2485 +#: ../Doc/library/ctypes.rst:2478 msgid "" "It is possible to define sub-subclasses of structures, they inherit the " "fields of the base class. If the subclass definition has a separate :attr:" @@ -2976,7 +2967,7 @@ msgid "" "of the base class." msgstr "" -#: ../Doc/library/ctypes.rst:2490 +#: ../Doc/library/ctypes.rst:2483 msgid "" "Structure and union constructors accept both positional and keyword " "arguments. Positional arguments are used to initialize member fields in the " @@ -2986,15 +2977,15 @@ msgid "" "names not present in :attr:`_fields_`." msgstr "" -#: ../Doc/library/ctypes.rst:2501 +#: ../Doc/library/ctypes.rst:2494 msgid "Arrays and pointers" msgstr "Tableaux et pointeurs" -#: ../Doc/library/ctypes.rst:2505 +#: ../Doc/library/ctypes.rst:2498 msgid "Abstract base class for arrays." msgstr "Classe de base abstraite pour les *arrays*." -#: ../Doc/library/ctypes.rst:2507 +#: ../Doc/library/ctypes.rst:2500 msgid "" "The recommended way to create concrete array types is by multiplying any :" "mod:`ctypes` data type with a positive integer. Alternatively, you can " @@ -3004,34 +2995,34 @@ msgid "" "an :class:`Array`." msgstr "" -#: ../Doc/library/ctypes.rst:2517 +#: ../Doc/library/ctypes.rst:2510 msgid "" "A positive integer specifying the number of elements in the array. Out-of-" "range subscripts result in an :exc:`IndexError`. Will be returned by :func:" "`len`." msgstr "" -#: ../Doc/library/ctypes.rst:2524 +#: ../Doc/library/ctypes.rst:2517 msgid "Specifies the type of each element in the array." msgstr "Spécifie le type de chaque élément de l'*array*." -#: ../Doc/library/ctypes.rst:2527 +#: ../Doc/library/ctypes.rst:2520 msgid "" "Array subclass constructors accept positional arguments, used to initialize " "the elements in order." msgstr "" -#: ../Doc/library/ctypes.rst:2533 +#: ../Doc/library/ctypes.rst:2526 msgid "Private, abstract base class for pointers." msgstr "" -#: ../Doc/library/ctypes.rst:2535 +#: ../Doc/library/ctypes.rst:2528 msgid "" "Concrete pointer types are created by calling :func:`POINTER` with the type " "that will be pointed to; this is done automatically by :func:`pointer`." msgstr "" -#: ../Doc/library/ctypes.rst:2539 +#: ../Doc/library/ctypes.rst:2532 msgid "" "If a pointer points to an array, its elements can be read and written using " "standard subscript and slice accesses. Pointer objects have no size, so :" @@ -3040,12 +3031,23 @@ msgid "" "probably crash with an access violation (if you're lucky)." msgstr "" -#: ../Doc/library/ctypes.rst:2549 +#: ../Doc/library/ctypes.rst:2542 msgid "Specifies the type pointed to." msgstr "" -#: ../Doc/library/ctypes.rst:2553 +#: ../Doc/library/ctypes.rst:2546 msgid "" "Returns the object to which to pointer points. Assigning to this attribute " "changes the pointer to point to the assigned object." msgstr "" + +#~ msgid "" +#~ ":mod:`ctypes` may raise a :exc:`ValueError` after calling the function, " +#~ "if it detects that an invalid number of arguments were passed. This " +#~ "behavior should not be relied upon. It is deprecated in 3.6.2, and will " +#~ "be removed in 3.7." +#~ msgstr "" +#~ "Si, après avoir appelé une fonction, :mod:`ctypes` détecte qu'un nombre " +#~ "incorrect d'arguments a été passé, il peut lever une :exc:`ValueError`. " +#~ "Il ne faut pas se baser sur ce comportement ; celui-ci est obsolète " +#~ "depuis la version 3.6.2 et sera supprimé en 3.7." diff --git a/library/dataclasses.po b/library/dataclasses.po index 4b53f355..efb4f2eb 100644 --- a/library/dataclasses.po +++ b/library/dataclasses.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-12-24 14:53+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -96,8 +96,8 @@ msgstr "" msgid "" "The :func:`dataclass` decorator will add various \"dunder\" methods to the " "class, described below. If any of the added methods already exist on the " -"class, a :exc:`TypeError` will be raised. The decorator returns the same " -"class that is called on: no new class is created." +"class, the behavior depends on the parameter, as documented below. The " +"decorator returns the same class that is called on; no new class is created." msgstr "" "Le décorateur :func:`dataclass` ajoute diverses méthodes « spéciales » à la " "classe, décrites ci-après. Si l’une des méthodes ajoutées existe déjà dans " @@ -105,7 +105,7 @@ msgstr "" "dessous. Le décorateur renvoie la classe sur laquelle il est appelé ; il n’y " "a pas de nouvelle classe créée." -#: ../Doc/library/dataclasses.rst:66 +#: ../Doc/library/dataclasses.rst:67 msgid "" "If :func:`dataclass` is used just as a simple decorator with no parameters, " "it acts as if it has the default values documented in this signature. That " @@ -116,24 +116,24 @@ msgstr "" "en signature. Ainsi, les trois usages suivants de :func:`dataclass` sont " "équivalents ::" -#: ../Doc/library/dataclasses.rst:83 +#: ../Doc/library/dataclasses.rst:84 msgid "The parameters to :func:`dataclass` are:" msgstr "Les paramètres de :func:`dataclass` sont :" -#: ../Doc/library/dataclasses.rst:85 +#: ../Doc/library/dataclasses.rst:86 msgid "" "``init``: If true (the default), a :meth:`__init__` method will be generated." msgstr "" "``init``: Si vrai (par défaut), une méthode :meth:`__init__` est générée." -#: ../Doc/library/dataclasses.rst:88 +#: ../Doc/library/dataclasses.rst:89 msgid "" "If the class already defines :meth:`__init__`, this parameter is ignored." msgstr "" "Si la classe définit déjà une méthode :meth:`__init__`, ce paramètre est " "ignoré." -#: ../Doc/library/dataclasses.rst:91 +#: ../Doc/library/dataclasses.rst:92 msgid "" "``repr``: If true (the default), a :meth:`__repr__` method will be " "generated. The generated repr string will have the class name and the name " @@ -149,14 +149,14 @@ msgstr "" "représentation ne sont pas inclus. Par exemple : " "``InventoryItem(name='widget', unit_price=3.0, quantity_on_hand=10)``." -#: ../Doc/library/dataclasses.rst:98 +#: ../Doc/library/dataclasses.rst:99 msgid "" "If the class already defines :meth:`__repr__`, this parameter is ignored." msgstr "" "Si la classe définit déjà une méthode :meth:`__repr__`, ce paramètre est " "ignoré." -#: ../Doc/library/dataclasses.rst:101 +#: ../Doc/library/dataclasses.rst:102 msgid "" "``eq``: If true (the default), an :meth:`__eq__` method will be generated. " "This method compares the class as if it were a tuple of its fields, in " @@ -167,13 +167,13 @@ msgstr "" "d’un tuple de ses champs, dans l’ordre. Les deux instances dans la " "comparaison doivent être de même type." -#: ../Doc/library/dataclasses.rst:106 +#: ../Doc/library/dataclasses.rst:107 msgid "If the class already defines :meth:`__eq__`, this parameter is ignored." msgstr "" "Si la classe définit déjà une méthode :meth:`__eq__`, ce paramètre est " "ignoré." -#: ../Doc/library/dataclasses.rst:109 +#: ../Doc/library/dataclasses.rst:110 msgid "" "``order``: If true (the default is ``False``), :meth:`__lt__`, :meth:" "`__le__`, :meth:`__gt__`, and :meth:`__ge__` methods will be generated. " @@ -188,17 +188,17 @@ msgstr "" "comparaison doit être de même type. Si ``order`` est vrai mais que ``eq`` " "est faux, une :exc:`ValueError` est levée." -#: ../Doc/library/dataclasses.rst:116 +#: ../Doc/library/dataclasses.rst:117 #, fuzzy msgid "" "If the class already defines any of :meth:`__lt__`, :meth:`__le__`, :meth:" -"`__gt__`, or :meth:`__ge__`, then :exc:`ValueError` is raised." +"`__gt__`, or :meth:`__ge__`, then :exc:`TypeError` is raised." msgstr "" "Si la classe définit déjà l’une des méthodes :meth:`__lt__`, :meth:" "`__le__`, :meth:`__gt__`, ou :meth:`__ge__`, alors une :exc:`TypeError` est " "levée." -#: ../Doc/library/dataclasses.rst:120 +#: ../Doc/library/dataclasses.rst:121 msgid "" "``unsafe_hash``: If ``False`` (the default), a :meth:`__hash__` method is " "generated according to how ``eq`` and ``frozen`` are set." @@ -206,7 +206,7 @@ msgstr "" "``unsafe_hash``: Si ``False`` (par défaut), une méthode :meth:`__hash__` est " "générée et son comportement dépend des valeurs de ``eq`` et ``frozen``." -#: ../Doc/library/dataclasses.rst:123 +#: ../Doc/library/dataclasses.rst:124 msgid "" ":meth:`__hash__` is used by built-in :meth:`hash()`, and when objects are " "added to hashed collections such as dictionaries and sets. Having a :meth:" @@ -223,7 +223,7 @@ msgstr "" "et du comportement de la méthode :meth:`__eq__`, et des valeurs des options " "``eq`` et ``frozen`` dans l’appel au décorateur :func:`dataclass`." -#: ../Doc/library/dataclasses.rst:130 +#: ../Doc/library/dataclasses.rst:131 msgid "" "By default, :func:`dataclass` will not implicitly add a :meth:`__hash__` " "method unless it is safe to do so. Neither will it add or change an " @@ -238,7 +238,7 @@ msgstr "" "signification particulière en Python, comme précisé dans la documentation " "de :meth:`__hash__`." -#: ../Doc/library/dataclasses.rst:136 +#: ../Doc/library/dataclasses.rst:137 msgid "" "If :meth:`__hash__` is not explicit defined, or if it is set to ``None``, " "then :func:`dataclass` *may* add an implicit :meth:`__hash__` method. " @@ -255,7 +255,7 @@ msgstr "" "logiquement immuable mais qu’une mutation est tout de même possible. C’est " "un cas très particulier qui doit être considéré avec la plus grande prudence." -#: ../Doc/library/dataclasses.rst:143 +#: ../Doc/library/dataclasses.rst:144 msgid "" "Here are the rules governing implicit creation of a :meth:`__hash__` " "method. Note that you cannot both have an explicit :meth:`__hash__` method " @@ -267,7 +267,7 @@ msgstr "" "méthode :meth:`__hash__` explicite dans votre *dataclass* et définir " "``unsafe_hash=True``; cela lèvera une :exc:`TypeError`." -#: ../Doc/library/dataclasses.rst:148 +#: ../Doc/library/dataclasses.rst:149 msgid "" "If ``eq`` and ``frozen`` are both true, by default :func:`dataclass` will " "generate a :meth:`__hash__` method for you. If ``eq`` is true and " @@ -286,7 +286,7 @@ msgstr "" "parente sera utilisée (si la classe parente est :class:`object`, le " "comportement est un hachage basé sur les id)." -#: ../Doc/library/dataclasses.rst:156 +#: ../Doc/library/dataclasses.rst:157 #, fuzzy msgid "" "``frozen``: If true (the default is ``False``), assigning to fields will " @@ -300,7 +300,7 @@ msgstr "" "sur la classe, alors une :exc:`TypeError` est levée. Voir la discussion ci-" "dessous." -#: ../Doc/library/dataclasses.rst:161 +#: ../Doc/library/dataclasses.rst:162 msgid "" "``field``\\s may optionally specify a default value, using normal Python " "syntax::" @@ -308,7 +308,7 @@ msgstr "" "Les ``field``\\s peuvent éventuellement spécifier une valeur par défaut, en " "utilisant la syntaxe Python normale ::" -#: ../Doc/library/dataclasses.rst:169 +#: ../Doc/library/dataclasses.rst:170 msgid "" "In this example, both ``a`` and ``b`` will be included in the added :meth:" "`__init__` method, which will be defined as::" @@ -316,7 +316,7 @@ msgstr "" "Dans cet exemple, ``a`` et ``b`` sont tous deux inclus dans la signature de " "la méthode générée :meth:`__init__`, qui est définie comme suit ::" -#: ../Doc/library/dataclasses.rst:174 +#: ../Doc/library/dataclasses.rst:175 msgid "" ":exc:`TypeError` will be raised if a field without a default value follows a " "field with a default value. This is true either when this occurs in a " @@ -327,7 +327,7 @@ msgstr "" "une seule classe, mais également si c’est le résultat d’un héritage de " "classes." -#: ../Doc/library/dataclasses.rst:180 +#: ../Doc/library/dataclasses.rst:181 msgid "" "For common and simple use cases, no other functionality is required. There " "are, however, some dataclass features that require additional per-field " @@ -336,7 +336,7 @@ msgid "" "function. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:193 +#: ../Doc/library/dataclasses.rst:194 msgid "" "As shown above, the ``MISSING`` value is a sentinel object used to detect if " "the ``default`` and ``default_factory`` parameters are provided. This " @@ -344,18 +344,18 @@ msgid "" "should directly use the ``MISSING`` value." msgstr "" -#: ../Doc/library/dataclasses.rst:199 +#: ../Doc/library/dataclasses.rst:200 msgid "The parameters to :func:`field` are:" msgstr "" -#: ../Doc/library/dataclasses.rst:201 +#: ../Doc/library/dataclasses.rst:202 msgid "" "``default``: If provided, this will be the default value for this field. " "This is needed because the :meth:`field` call itself replaces the normal " "position of the default value." msgstr "" -#: ../Doc/library/dataclasses.rst:205 +#: ../Doc/library/dataclasses.rst:206 msgid "" "``default_factory``: If provided, it must be a zero-argument callable that " "will be called when a default value is needed for this field. Among other " @@ -364,25 +364,25 @@ msgid "" "``default_factory``." msgstr "" -#: ../Doc/library/dataclasses.rst:211 +#: ../Doc/library/dataclasses.rst:212 msgid "" "``init``: If true (the default), this field is included as a parameter to " "the generated :meth:`__init__` method." msgstr "" -#: ../Doc/library/dataclasses.rst:214 +#: ../Doc/library/dataclasses.rst:215 msgid "" "``repr``: If true (the default), this field is included in the string " "returned by the generated :meth:`__repr__` method." msgstr "" -#: ../Doc/library/dataclasses.rst:217 +#: ../Doc/library/dataclasses.rst:218 msgid "" "``compare``: If true (the default), this field is included in the generated " "equality and comparison methods (:meth:`__eq__`, :meth:`__gt__`, et al.)." msgstr "" -#: ../Doc/library/dataclasses.rst:221 +#: ../Doc/library/dataclasses.rst:222 msgid "" "``hash``: This can be a bool or ``None``. If true, this field is included " "in the generated :meth:`__hash__` method. If ``None`` (the default), use " @@ -391,7 +391,7 @@ msgid "" "Setting this value to anything other than ``None`` is discouraged." msgstr "" -#: ../Doc/library/dataclasses.rst:228 +#: ../Doc/library/dataclasses.rst:229 msgid "" "One possible reason to set ``hash=False`` but ``compare=True`` would be if a " "field is expensive to compute a hash value for, that field is needed for " @@ -400,7 +400,7 @@ msgid "" "used for comparisons." msgstr "" -#: ../Doc/library/dataclasses.rst:234 +#: ../Doc/library/dataclasses.rst:235 msgid "" "``metadata``: This can be a mapping or None. None is treated as an empty " "dict. This value is wrapped in :func:`~types.MappingProxyType` to make it " @@ -410,7 +410,7 @@ msgid "" "the metadata." msgstr "" -#: ../Doc/library/dataclasses.rst:242 +#: ../Doc/library/dataclasses.rst:243 msgid "" "If the default value of a field is specified by a call to :func:`field()`, " "then the class attribute for this field will be replaced by the specified " @@ -421,13 +421,13 @@ msgid "" "after::" msgstr "" -#: ../Doc/library/dataclasses.rst:258 +#: ../Doc/library/dataclasses.rst:259 msgid "" "The class attribute ``C.z`` will be ``10``, the class attribute ``C.t`` will " "be ``20``, and the class attributes ``C.x`` and ``C.y`` will not be set." msgstr "" -#: ../Doc/library/dataclasses.rst:264 +#: ../Doc/library/dataclasses.rst:265 msgid "" ":class:`Field` objects describe each defined field. These objects are " "created internally, and are returned by the :func:`fields` module-level " @@ -435,28 +435,28 @@ msgid "" "directly. Its documented attributes are:" msgstr "" -#: ../Doc/library/dataclasses.rst:269 +#: ../Doc/library/dataclasses.rst:270 msgid "``name``: The name of the field." msgstr "" -#: ../Doc/library/dataclasses.rst:271 +#: ../Doc/library/dataclasses.rst:272 msgid "``type``: The type of the field." msgstr "" -#: ../Doc/library/dataclasses.rst:273 +#: ../Doc/library/dataclasses.rst:274 msgid "" "``default``, ``default_factory``, ``init``, ``repr``, ``hash``, ``compare``, " "and ``metadata`` have the identical meaning and values as they do in the :" "func:`field` declaration." msgstr "" -#: ../Doc/library/dataclasses.rst:277 +#: ../Doc/library/dataclasses.rst:278 msgid "" "Other attributes may exist, but they are private and must not be inspected " "or relied on." msgstr "" -#: ../Doc/library/dataclasses.rst:282 +#: ../Doc/library/dataclasses.rst:283 msgid "" "Returns a tuple of :class:`Field` objects that define the fields for this " "dataclass. Accepts either a dataclass, or an instance of a dataclass. " @@ -464,7 +464,7 @@ msgid "" "not return pseudo-fields which are ``ClassVar`` or ``InitVar``." msgstr "" -#: ../Doc/library/dataclasses.rst:289 +#: ../Doc/library/dataclasses.rst:290 msgid "" "Converts the dataclass ``instance`` to a dict (by using the factory function " "``dict_factory``). Each dataclass is converted to a dict of its fields, as " @@ -472,22 +472,22 @@ msgid "" "into. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:309 ../Doc/library/dataclasses.rst:323 +#: ../Doc/library/dataclasses.rst:310 ../Doc/library/dataclasses.rst:324 msgid "Raises :exc:`TypeError` if ``instance`` is not a dataclass instance." msgstr "" -#: ../Doc/library/dataclasses.rst:313 +#: ../Doc/library/dataclasses.rst:314 msgid "" "Converts the dataclass ``instance`` to a tuple (by using the factory " "function ``tuple_factory``). Each dataclass is converted to a tuple of its " "field values. dataclasses, dicts, lists, and tuples are recursed into." msgstr "" -#: ../Doc/library/dataclasses.rst:318 +#: ../Doc/library/dataclasses.rst:319 msgid "Continuing from the previous example::" msgstr "" -#: ../Doc/library/dataclasses.rst:327 +#: ../Doc/library/dataclasses.rst:328 msgid "" "Creates a new dataclass with name ``cls_name``, fields as defined in " "``fields``, base classes as given in ``bases``, and initialized with a " @@ -499,7 +499,7 @@ msgid "" "`dataclass`." msgstr "" -#: ../Doc/library/dataclasses.rst:336 +#: ../Doc/library/dataclasses.rst:337 msgid "" "This function is not strictly required, because any Python mechanism for " "creating a new class with ``__annotations__`` can then apply the :func:" @@ -507,11 +507,11 @@ msgid "" "provided as a convenience. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:348 +#: ../Doc/library/dataclasses.rst:349 msgid "Is equivalent to::" msgstr "" -#: ../Doc/library/dataclasses.rst:361 +#: ../Doc/library/dataclasses.rst:362 msgid "" "Creates a new object of the same type of ``instance``, replacing fields with " "values from ``changes``. If ``instance`` is not a Data Class, raises :exc:" @@ -519,27 +519,27 @@ msgid "" "`TypeError`." msgstr "" -#: ../Doc/library/dataclasses.rst:366 +#: ../Doc/library/dataclasses.rst:367 msgid "" "The newly returned object is created by calling the :meth:`__init__` method " "of the dataclass. This ensures that :meth:`__post_init__`, if present, is " "also called." msgstr "" -#: ../Doc/library/dataclasses.rst:370 +#: ../Doc/library/dataclasses.rst:371 msgid "" "Init-only variables without default values, if any exist, must be specified " "on the call to :func:`replace` so that they can be passed to :meth:" "`__init__` and :meth:`__post_init__`." msgstr "" -#: ../Doc/library/dataclasses.rst:374 +#: ../Doc/library/dataclasses.rst:375 msgid "" "It is an error for ``changes`` to contain any fields that are defined as " "having ``init=False``. A :exc:`ValueError` will be raised in this case." msgstr "" -#: ../Doc/library/dataclasses.rst:378 +#: ../Doc/library/dataclasses.rst:379 msgid "" "Be forewarned about how ``init=False`` fields work during a call to :func:" "`replace`. They are not copied from the source object, but rather are " @@ -550,24 +550,24 @@ msgid "" "instance copying." msgstr "" -#: ../Doc/library/dataclasses.rst:389 +#: ../Doc/library/dataclasses.rst:390 msgid "" "Return ``True`` if its parameter is a dataclass or an instance of one, " "otherwise return ``False``." msgstr "" -#: ../Doc/library/dataclasses.rst:392 +#: ../Doc/library/dataclasses.rst:393 msgid "" "If you need to know if a class is an instance of a dataclass (and not a " "dataclass itself), then add a further check for ``not isinstance(obj, " "type)``::" msgstr "" -#: ../Doc/library/dataclasses.rst:400 +#: ../Doc/library/dataclasses.rst:401 msgid "Post-init processing" msgstr "" -#: ../Doc/library/dataclasses.rst:402 +#: ../Doc/library/dataclasses.rst:403 msgid "" "The generated :meth:`__init__` code will call a method named :meth:" "`__post_init__`, if :meth:`__post_init__` is defined on the class. It will " @@ -577,24 +577,24 @@ msgid "" "generated, then :meth:`__post_init__` will not automatically be called." msgstr "" -#: ../Doc/library/dataclasses.rst:410 +#: ../Doc/library/dataclasses.rst:411 msgid "" "Among other uses, this allows for initializing field values that depend on " "one or more other fields. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:422 +#: ../Doc/library/dataclasses.rst:423 msgid "" "See the section below on init-only variables for ways to pass parameters to :" "meth:`__post_init__`. Also see the warning about how :func:`replace` " "handles ``init=False`` fields." msgstr "" -#: ../Doc/library/dataclasses.rst:427 +#: ../Doc/library/dataclasses.rst:428 msgid "Class variables" msgstr "" -#: ../Doc/library/dataclasses.rst:429 +#: ../Doc/library/dataclasses.rst:430 msgid "" "One of two places where :func:`dataclass` actually inspects the type of a " "field is to determine if a field is a class variable as defined in :pep:" @@ -604,11 +604,11 @@ msgid "" "pseudo-fields are not returned by the module-level :func:`fields` function." msgstr "" -#: ../Doc/library/dataclasses.rst:438 +#: ../Doc/library/dataclasses.rst:439 msgid "Init-only variables" msgstr "" -#: ../Doc/library/dataclasses.rst:440 +#: ../Doc/library/dataclasses.rst:441 msgid "" "The other place where :func:`dataclass` inspects a type annotation is to " "determine if a field is an init-only variable. It does this by seeing if " @@ -620,23 +620,23 @@ msgid "" "`__post_init__` method. They are not otherwise used by dataclasses." msgstr "" -#: ../Doc/library/dataclasses.rst:450 +#: ../Doc/library/dataclasses.rst:451 msgid "" "For example, suppose a field will be initialized from a database, if a value " "is not provided when creating the class::" msgstr "" -#: ../Doc/library/dataclasses.rst:465 +#: ../Doc/library/dataclasses.rst:466 msgid "" "In this case, :func:`fields` will return :class:`Field` objects for ``i`` " "and ``j``, but not for ``database``." msgstr "" -#: ../Doc/library/dataclasses.rst:469 +#: ../Doc/library/dataclasses.rst:470 msgid "Frozen instances" msgstr "" -#: ../Doc/library/dataclasses.rst:471 +#: ../Doc/library/dataclasses.rst:472 msgid "" "It is not possible to create truly immutable Python objects. However, by " "passing ``frozen=True`` to the :meth:`dataclass` decorator you can emulate " @@ -645,18 +645,18 @@ msgid "" "`FrozenInstanceError` when invoked." msgstr "" -#: ../Doc/library/dataclasses.rst:477 +#: ../Doc/library/dataclasses.rst:478 msgid "" "There is a tiny performance penalty when using ``frozen=True``: :meth:" "`__init__` cannot use simple assignment to initialize fields, and must use :" "meth:`object.__setattr__`." msgstr "" -#: ../Doc/library/dataclasses.rst:482 +#: ../Doc/library/dataclasses.rst:483 msgid "Inheritance" msgstr "Héritage" -#: ../Doc/library/dataclasses.rst:484 +#: ../Doc/library/dataclasses.rst:485 msgid "" "When the dataclass is being created by the :meth:`dataclass` decorator, it " "looks through all of the class's base classes in reverse MRO (that is, " @@ -668,28 +668,28 @@ msgid "" "derived classes override base classes. An example::" msgstr "" -#: ../Doc/library/dataclasses.rst:504 +#: ../Doc/library/dataclasses.rst:505 msgid "" "The final list of fields is, in order, ``x``, ``y``, ``z``. The final type " "of ``x`` is ``int``, as specified in class ``C``." msgstr "" -#: ../Doc/library/dataclasses.rst:507 +#: ../Doc/library/dataclasses.rst:508 msgid "The generated :meth:`__init__` method for ``C`` will look like::" msgstr "" -#: ../Doc/library/dataclasses.rst:512 +#: ../Doc/library/dataclasses.rst:513 msgid "Default factory functions" msgstr "" -#: ../Doc/library/dataclasses.rst:514 +#: ../Doc/library/dataclasses.rst:515 msgid "" "If a :func:`field` specifies a ``default_factory``, it is called with zero " "arguments when a default value for the field is needed. For example, to " "create a new instance of a list, use::" msgstr "" -#: ../Doc/library/dataclasses.rst:520 +#: ../Doc/library/dataclasses.rst:521 msgid "" "If a field is excluded from :meth:`__init__` (using ``init=False``) and the " "field also specifies ``default_factory``, then the default factory function " @@ -697,31 +697,31 @@ msgid "" "happens because there is no other way to give the field an initial value." msgstr "" -#: ../Doc/library/dataclasses.rst:527 +#: ../Doc/library/dataclasses.rst:528 msgid "Mutable default values" msgstr "" -#: ../Doc/library/dataclasses.rst:529 +#: ../Doc/library/dataclasses.rst:530 msgid "" "Python stores default member variable values in class attributes. Consider " "this example, not using dataclasses::" msgstr "" -#: ../Doc/library/dataclasses.rst:544 +#: ../Doc/library/dataclasses.rst:545 msgid "" "Note that the two instances of class ``C`` share the same class variable " "``x``, as expected." msgstr "" -#: ../Doc/library/dataclasses.rst:547 +#: ../Doc/library/dataclasses.rst:548 msgid "Using dataclasses, *if* this code was valid::" msgstr "" -#: ../Doc/library/dataclasses.rst:555 +#: ../Doc/library/dataclasses.rst:556 msgid "it would generate code similar to::" msgstr "" -#: ../Doc/library/dataclasses.rst:566 +#: ../Doc/library/dataclasses.rst:567 msgid "" "This has the same issue as the original example using class ``C``. That is, " "two instances of class ``D`` that do not specify a value for ``x`` when " @@ -733,17 +733,17 @@ msgid "" "partial solution, but it does protect against many common errors." msgstr "" -#: ../Doc/library/dataclasses.rst:576 +#: ../Doc/library/dataclasses.rst:577 msgid "" "Using default factory functions is a way to create new instances of mutable " "types as default values for fields::" msgstr "" -#: ../Doc/library/dataclasses.rst:586 +#: ../Doc/library/dataclasses.rst:587 msgid "Exceptions" msgstr "Exceptions" -#: ../Doc/library/dataclasses.rst:590 +#: ../Doc/library/dataclasses.rst:591 msgid "" "Raised when an implicitly defined :meth:`__setattr__` or :meth:`__delattr__` " "is called on a dataclass which was defined with ``frozen=True``." diff --git a/library/datetime.po b/library/datetime.po index b2e52764..41a13401 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-08-21 00:28+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -430,8 +430,8 @@ msgstr "" "premier abord. Par exemple," #: ../Doc/library/datetime.rst:246 ../Doc/library/datetime.rst:540 -#: ../Doc/library/datetime.rst:1045 ../Doc/library/datetime.rst:1663 -#: ../Doc/library/datetime.rst:2257 +#: ../Doc/library/datetime.rst:1043 ../Doc/library/datetime.rst:1661 +#: ../Doc/library/datetime.rst:2255 msgid "Class attributes:" msgstr "Attributs de la classe :" @@ -465,7 +465,7 @@ msgstr "" "d'un objet :class:`timedelta`." #: ../Doc/library/datetime.rst:267 ../Doc/library/datetime.rst:558 -#: ../Doc/library/datetime.rst:1065 ../Doc/library/datetime.rst:1683 +#: ../Doc/library/datetime.rst:1063 ../Doc/library/datetime.rst:1681 msgid "Instance attributes (read-only):" msgstr "Attributs de l'instance (en lecture seule) :" @@ -502,17 +502,17 @@ msgid "Between 0 and 999999 inclusive" msgstr "Entre 0 et 999999 inclus" #: ../Doc/library/datetime.rst:279 ../Doc/library/datetime.rst:575 -#: ../Doc/library/datetime.rst:1118 +#: ../Doc/library/datetime.rst:1116 msgid "Supported operations:" msgstr "Opérations gérées :" #: ../Doc/library/datetime.rst:284 ../Doc/library/datetime.rst:578 -#: ../Doc/library/datetime.rst:1121 +#: ../Doc/library/datetime.rst:1119 msgid "Operation" msgstr "Opération" #: ../Doc/library/datetime.rst:284 ../Doc/library/datetime.rst:578 -#: ../Doc/library/datetime.rst:1121 +#: ../Doc/library/datetime.rst:1119 msgid "Result" msgstr "Résultat" @@ -684,7 +684,7 @@ msgstr "" "construit avec des valeurs d'attributs canoniques." #: ../Doc/library/datetime.rst:345 ../Doc/library/datetime.rst:592 -#: ../Doc/library/datetime.rst:2469 +#: ../Doc/library/datetime.rst:2467 msgid "Notes:" msgstr "Notes :" @@ -784,7 +784,7 @@ msgstr "" "n'est pas égal à ``timedelta(0)``." #: ../Doc/library/datetime.rst:412 ../Doc/library/datetime.rst:621 -#: ../Doc/library/datetime.rst:1192 ../Doc/library/datetime.rst:1780 +#: ../Doc/library/datetime.rst:1190 ../Doc/library/datetime.rst:1778 msgid "Instance methods:" msgstr "Méthodes de l'instance :" @@ -980,15 +980,15 @@ msgstr "" "La plus petite différence possible entre deux objets dates non-égaux, " "``timedelta(days=1)``." -#: ../Doc/library/datetime.rst:562 ../Doc/library/datetime.rst:1069 +#: ../Doc/library/datetime.rst:562 ../Doc/library/datetime.rst:1067 msgid "Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive." msgstr "Entre :const:`MINYEAR` et :const:`MAXYEAR` inclus." -#: ../Doc/library/datetime.rst:567 ../Doc/library/datetime.rst:1074 +#: ../Doc/library/datetime.rst:567 ../Doc/library/datetime.rst:1072 msgid "Between 1 and 12 inclusive." msgstr "Entre 1 et 12 inclus." -#: ../Doc/library/datetime.rst:572 ../Doc/library/datetime.rst:1079 +#: ../Doc/library/datetime.rst:572 ../Doc/library/datetime.rst:1077 msgid "Between 1 and the number of days in the given month of the given year." msgstr "Entre 1 et le nombre de jours du mois donné de l'année donnée." @@ -1014,7 +1014,7 @@ msgstr "Calcule *date2* de façon à avoir ``date2 + timedelta == date1``. (2)" msgid "``timedelta = date1 - date2``" msgstr "``timedelta = date1 - date2``" -#: ../Doc/library/datetime.rst:586 ../Doc/library/datetime.rst:1127 +#: ../Doc/library/datetime.rst:586 ../Doc/library/datetime.rst:1125 msgid "\\(3)" msgstr "\\(3)" @@ -1100,12 +1100,12 @@ msgstr "" "par arguments nommés. Par exemple, si ``d == date(2002, 12, 31)``, alors " "``d.replace(day=26) == date(2002, 12, 26)``." -#: ../Doc/library/datetime.rst:628 ../Doc/library/datetime.rst:1823 +#: ../Doc/library/datetime.rst:628 ../Doc/library/datetime.rst:1821 #, fuzzy msgid "Example::" msgstr "Exemple :" -#: ../Doc/library/datetime.rst:638 ../Doc/library/datetime.rst:1305 +#: ../Doc/library/datetime.rst:638 ../Doc/library/datetime.rst:1303 msgid "" "Return a :class:`time.struct_time` such as returned by :func:`time." "localtime`." @@ -1115,7 +1115,7 @@ msgstr "" msgid "The hours, minutes and seconds are 0, and the DST flag is -1." msgstr "" -#: ../Doc/library/datetime.rst:642 ../Doc/library/datetime.rst:1307 +#: ../Doc/library/datetime.rst:642 ../Doc/library/datetime.rst:1305 msgid "``d.timetuple()`` is equivalent to::" msgstr "" @@ -1214,7 +1214,7 @@ msgstr "Pour une date *d*, ``str(d)`` est équivalent à ``d.isoformat()``." msgid "Return a string representing the date::" msgstr "" -#: ../Doc/library/datetime.rst:714 ../Doc/library/datetime.rst:1491 +#: ../Doc/library/datetime.rst:714 ../Doc/library/datetime.rst:1489 msgid "``d.ctime()`` is equivalent to::" msgstr "" @@ -1325,28 +1325,28 @@ msgstr "``1 <= month <= 12``," msgid "``1 <= day <= number of days in the given month and year``," msgstr "``1 <= day <= nombre de jours dans le mois donné de l'année donnée``," -#: ../Doc/library/datetime.rst:829 ../Doc/library/datetime.rst:1654 +#: ../Doc/library/datetime.rst:829 ../Doc/library/datetime.rst:1652 msgid "``0 <= hour < 24``," msgstr "``0 <= hour < 24``," -#: ../Doc/library/datetime.rst:830 ../Doc/library/datetime.rst:1655 +#: ../Doc/library/datetime.rst:830 ../Doc/library/datetime.rst:1653 msgid "``0 <= minute < 60``," msgstr "``0 <= minute < 60``," -#: ../Doc/library/datetime.rst:831 ../Doc/library/datetime.rst:1656 +#: ../Doc/library/datetime.rst:831 ../Doc/library/datetime.rst:1654 msgid "``0 <= second < 60``," msgstr "``0 <= second < 60``," -#: ../Doc/library/datetime.rst:832 ../Doc/library/datetime.rst:1657 +#: ../Doc/library/datetime.rst:832 ../Doc/library/datetime.rst:1655 msgid "``0 <= microsecond < 1000000``," msgstr "``0 <= microsecond < 1000000``," -#: ../Doc/library/datetime.rst:833 ../Doc/library/datetime.rst:1658 +#: ../Doc/library/datetime.rst:833 ../Doc/library/datetime.rst:1656 msgid "``fold in [0, 1]``." msgstr "``fold in [0, 1]``." -#: ../Doc/library/datetime.rst:837 ../Doc/library/datetime.rst:1226 -#: ../Doc/library/datetime.rst:1790 +#: ../Doc/library/datetime.rst:837 ../Doc/library/datetime.rst:1224 +#: ../Doc/library/datetime.rst:1788 msgid "Added the ``fold`` argument." msgstr "Ajout de l'argument ``fold``." @@ -1629,18 +1629,16 @@ msgid "" "intended as the inverse operation of :meth:`datetime.isoformat`. A more full-" "featured ISO 8601 parser, ``dateutil.parser.isoparse`` is available in the " "third-party package `dateutil `__. This does not support parsing " -"arbitrary ISO 8601 strings - it is only intended as the inverse operation " -"of :meth:`datetime.isoformat`." +"parser.html#dateutil.parser.isoparse>`__." msgstr "" -#: ../Doc/library/datetime.rst:1003 ../Doc/library/datetime.rst:1420 -#: ../Doc/library/datetime.rst:1767 +#: ../Doc/library/datetime.rst:1001 ../Doc/library/datetime.rst:1418 +#: ../Doc/library/datetime.rst:1765 #, fuzzy msgid "Examples::" msgstr "Exemple :" -#: ../Doc/library/datetime.rst:1022 +#: ../Doc/library/datetime.rst:1020 msgid "" "Return a :class:`.datetime` corresponding to the ISO calendar date specified " "by year, week and day. The non-date components of the datetime are populated " @@ -1648,17 +1646,17 @@ msgid "" "`datetime.isocalendar`." msgstr "" -#: ../Doc/library/datetime.rst:1031 +#: ../Doc/library/datetime.rst:1029 msgid "" "Return a :class:`.datetime` corresponding to *date_string*, parsed according " "to *format*." msgstr "" -#: ../Doc/library/datetime.rst:1034 +#: ../Doc/library/datetime.rst:1032 msgid "This is equivalent to::" msgstr "C’est équivalent à ::" -#: ../Doc/library/datetime.rst:1038 +#: ../Doc/library/datetime.rst:1036 #, fuzzy msgid "" ":exc:`ValueError` is raised if the date_string and format can't be parsed " @@ -1673,7 +1671,7 @@ msgstr "" "ou si elle renvoie une valeur qui n'est pas un *tuple-temps*. Pour une liste " "complète des directives de formatage, voir :ref:`strftime-strptime-behavior`." -#: ../Doc/library/datetime.rst:1049 +#: ../Doc/library/datetime.rst:1047 msgid "" "The earliest representable :class:`.datetime`, ``datetime(MINYEAR, 1, 1, " "tzinfo=None)``." @@ -1681,7 +1679,7 @@ msgstr "" "Le plus ancien :class:`.datetime` représentable, ``datetime(MINYEAR, 1, 1, " "tzinfo=None)``." -#: ../Doc/library/datetime.rst:1055 +#: ../Doc/library/datetime.rst:1053 msgid "" "The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23, " "59, 59, 999999, tzinfo=None)``." @@ -1689,7 +1687,7 @@ msgstr "" "Le dernier :class:`.datetime` représentable, ``datetime(MAXYEAR, 12, 31, 23, " "59, 59, 999999, tzinfo=None)``." -#: ../Doc/library/datetime.rst:1061 +#: ../Doc/library/datetime.rst:1059 msgid "" "The smallest possible difference between non-equal :class:`.datetime` " "objects, ``timedelta(microseconds=1)``." @@ -1697,20 +1695,20 @@ msgstr "" "La plus petite différence possible entre deux objets :class:`.datetime` non-" "égaux, ``timedelta(microseconds=1)``." -#: ../Doc/library/datetime.rst:1084 ../Doc/library/datetime.rst:1687 +#: ../Doc/library/datetime.rst:1082 ../Doc/library/datetime.rst:1685 msgid "In ``range(24)``." msgstr "Dans ``range(24)``." -#: ../Doc/library/datetime.rst:1089 ../Doc/library/datetime.rst:1094 -#: ../Doc/library/datetime.rst:1692 ../Doc/library/datetime.rst:1697 +#: ../Doc/library/datetime.rst:1087 ../Doc/library/datetime.rst:1092 +#: ../Doc/library/datetime.rst:1690 ../Doc/library/datetime.rst:1695 msgid "In ``range(60)``." msgstr "Dans ``range(60)``." -#: ../Doc/library/datetime.rst:1099 ../Doc/library/datetime.rst:1702 +#: ../Doc/library/datetime.rst:1097 ../Doc/library/datetime.rst:1700 msgid "In ``range(1000000)``." msgstr "Dans ``range(1000000)``." -#: ../Doc/library/datetime.rst:1104 +#: ../Doc/library/datetime.rst:1102 msgid "" "The object passed as the *tzinfo* argument to the :class:`.datetime` " "constructor, or ``None`` if none was passed." @@ -1718,7 +1716,7 @@ msgstr "" "L'objet passé en tant que paramètre *tzinfo* du constructeur de la classe :" "class:`.datetime` ou ``None`` si aucun n'a été donné." -#: ../Doc/library/datetime.rst:1110 ../Doc/library/datetime.rst:1713 +#: ../Doc/library/datetime.rst:1108 ../Doc/library/datetime.rst:1711 #, fuzzy msgid "" "In ``[0, 1]``. Used to disambiguate wall times during a repeated interval. " @@ -1733,38 +1731,38 @@ msgstr "" "décrémenté pour des raisons politiques.) La valeur 0 (1) représente le plus " "ancien (récent) des deux moments représentés par la même heure." -#: ../Doc/library/datetime.rst:1123 +#: ../Doc/library/datetime.rst:1121 msgid "``datetime2 = datetime1 + timedelta``" msgstr "``datetime2 = datetime1 + timedelta``" -#: ../Doc/library/datetime.rst:1123 ../Doc/library/datetime.rst:2305 -#: ../Doc/library/datetime.rst:2310 ../Doc/library/datetime.rst:2322 -#: ../Doc/library/datetime.rst:2327 ../Doc/library/datetime.rst:2387 -#: ../Doc/library/datetime.rst:2392 ../Doc/library/datetime.rst:2396 +#: ../Doc/library/datetime.rst:1121 ../Doc/library/datetime.rst:2303 +#: ../Doc/library/datetime.rst:2308 ../Doc/library/datetime.rst:2320 +#: ../Doc/library/datetime.rst:2325 ../Doc/library/datetime.rst:2385 +#: ../Doc/library/datetime.rst:2390 ../Doc/library/datetime.rst:2394 msgid "\\(1)" msgstr "\\(1)" -#: ../Doc/library/datetime.rst:1125 +#: ../Doc/library/datetime.rst:1123 msgid "``datetime2 = datetime1 - timedelta``" msgstr "``datetime2 = datetime1 - timedelta``" -#: ../Doc/library/datetime.rst:1125 ../Doc/library/datetime.rst:2338 +#: ../Doc/library/datetime.rst:1123 ../Doc/library/datetime.rst:2336 msgid "\\(2)" msgstr "\\(2)" -#: ../Doc/library/datetime.rst:1127 +#: ../Doc/library/datetime.rst:1125 msgid "``timedelta = datetime1 - datetime2``" msgstr "``timedelta = datetime1 - datetime2``" -#: ../Doc/library/datetime.rst:1129 +#: ../Doc/library/datetime.rst:1127 msgid "``datetime1 < datetime2``" msgstr "``datetime1 < datetime2``" -#: ../Doc/library/datetime.rst:1129 +#: ../Doc/library/datetime.rst:1127 msgid "Compares :class:`.datetime` to :class:`.datetime`. (4)" msgstr "Compare :class:`.datetime` à :class:`.datetime`. (4)" -#: ../Doc/library/datetime.rst:1134 +#: ../Doc/library/datetime.rst:1132 #, fuzzy msgid "" "datetime2 is a duration of timedelta removed from datetime1, moving forward " @@ -1784,7 +1782,7 @@ msgstr "" "qu'aucun ajustement de fuseau horaire n'est réalisé même si l'entrée est " "avisée." -#: ../Doc/library/datetime.rst:1143 +#: ../Doc/library/datetime.rst:1141 msgid "" "Computes the datetime2 such that datetime2 + timedelta == datetime1. As for " "addition, the result has the same :attr:`~.datetime.tzinfo` attribute as the " @@ -1796,7 +1794,7 @@ msgstr "" "que le *datetime* d'entrée, et aucun ajustement de fuseau horaire n'est " "réalisé même si l'entrée est avisée." -#: ../Doc/library/datetime.rst:1148 +#: ../Doc/library/datetime.rst:1146 #, fuzzy msgid "" "Subtraction of a :class:`.datetime` from a :class:`.datetime` is defined " @@ -1808,7 +1806,7 @@ msgstr "" "avisés. Si l'un est avisé et que l'autre est naïf, une :exc:`TypeError` est " "levée." -#: ../Doc/library/datetime.rst:1152 +#: ../Doc/library/datetime.rst:1150 #, fuzzy msgid "" "If both are naive, or both are aware and have the same :attr:`~.datetime." @@ -1822,7 +1820,7 @@ msgstr "" "``datetime2 + t == datetime1``. Aucun ajustement de fuseau horaire n'a lieu " "dans ce cas." -#: ../Doc/library/datetime.rst:1157 +#: ../Doc/library/datetime.rst:1155 #, fuzzy msgid "" "If both are aware and have different :attr:`~.datetime.tzinfo` attributes, " @@ -1837,7 +1835,7 @@ msgstr "" "a.utcoffset()) - (b.replace(tzinfo=None) - b.utcoffset())`` à l'exception " "que l'implémentation ne produit jamais de débordement." -#: ../Doc/library/datetime.rst:1163 +#: ../Doc/library/datetime.rst:1161 msgid "" "*datetime1* is considered less than *datetime2* when *datetime1* precedes " "*datetime2* in time." @@ -1845,7 +1843,7 @@ msgstr "" "*datetime1* est considéré inférieur à *datetime2* quand il le précède dans " "le temps." -#: ../Doc/library/datetime.rst:1166 +#: ../Doc/library/datetime.rst:1164 #, fuzzy msgid "" "If one comparand is naive and the other is aware, :exc:`TypeError` is raised " @@ -1856,7 +1854,7 @@ msgstr "" "une comparaison d'ordre est attendue. Pour les comparaisons d'égalité, les " "instances naïves ne sont jamais égales aux instances avisées." -#: ../Doc/library/datetime.rst:1170 +#: ../Doc/library/datetime.rst:1168 #, fuzzy msgid "" "If both comparands are aware, and have the same :attr:`~.datetime.tzinfo` " @@ -1873,7 +1871,7 @@ msgstr "" "premièrement ajustés en soustrayant leurs décalages UTC (obtenus depuis " "``self.utcoffset()``)." -#: ../Doc/library/datetime.rst:1176 +#: ../Doc/library/datetime.rst:1174 #, fuzzy msgid "" "Equality comparisons between aware and naive :class:`.datetime` instances " @@ -1882,7 +1880,7 @@ msgstr "" "Les comparaisons d'égalité entre des instances :class:`.datetime` naïves et " "avisées ne lèvent pas de :exc:`TypeError`." -#: ../Doc/library/datetime.rst:1182 +#: ../Doc/library/datetime.rst:1180 #, fuzzy msgid "" "In order to stop comparison from falling back to the default scheme of " @@ -1906,11 +1904,11 @@ msgstr "" "comparaison soit ``==`` ou ``!=``. Ces derniers cas renvoient " "respectivement :const:`False` et :const:`True`." -#: ../Doc/library/datetime.rst:1196 +#: ../Doc/library/datetime.rst:1194 msgid "Return :class:`date` object with same year, month and day." msgstr "Renvoie un objet :class:`date` avec les mêmes année, mois et jour." -#: ../Doc/library/datetime.rst:1201 +#: ../Doc/library/datetime.rst:1199 #, fuzzy msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond and " @@ -1920,11 +1918,11 @@ msgstr "" "microseconde et *fold*. :attr:`.tzinfo` est ``None``. Voir aussi la " "méthode :meth:`timetz`." -#: ../Doc/library/datetime.rst:1204 ../Doc/library/datetime.rst:1213 +#: ../Doc/library/datetime.rst:1202 ../Doc/library/datetime.rst:1211 msgid "The fold value is copied to the returned :class:`.time` object." msgstr "La valeur *fold* est copiée vers l'objet :class:`.time` renvoyé." -#: ../Doc/library/datetime.rst:1210 +#: ../Doc/library/datetime.rst:1208 #, fuzzy msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond, " @@ -1934,7 +1932,7 @@ msgstr "" "seconde, microseconde, *fold* et *tzinfo*. Voir aussi la méthode :meth:" "`time`." -#: ../Doc/library/datetime.rst:1221 +#: ../Doc/library/datetime.rst:1219 #, fuzzy msgid "" "Return a datetime with the same attributes, except for those attributes " @@ -1947,7 +1945,7 @@ msgstr "" "Notez que ``tzinfo=None`` peut être spécifié pour créer un *datetime* naïf " "depuis un *datetime* avisé sans conversion de la date ou de l'heure." -#: ../Doc/library/datetime.rst:1232 +#: ../Doc/library/datetime.rst:1230 msgid "" "Return a :class:`.datetime` object with new :attr:`.tzinfo` attribute *tz*, " "adjusting the date and time data so the result is the same UTC time as " @@ -1957,7 +1955,7 @@ msgstr "" "valant *tz*, ajustant la date et l'heure pour que le résultat soit le même " "temps UTC que *self*, mais dans le temps local au fuseau *tz*." -#: ../Doc/library/datetime.rst:1236 +#: ../Doc/library/datetime.rst:1234 #, fuzzy msgid "" "If provided, *tz* must be an instance of a :class:`tzinfo` subclass, and " @@ -1969,7 +1967,7 @@ msgstr "" "``None``. Si *self* est naïf, Python considère que le temps est exprimé " "dans le fuseau horaire du système." -#: ../Doc/library/datetime.rst:1240 +#: ../Doc/library/datetime.rst:1238 #, fuzzy msgid "" "If called without arguments (or with ``tz=None``) the system local timezone " @@ -1982,7 +1980,7 @@ msgstr "" "l'instance *datetime* convertie aura pour valeur une instance de :class:" "`timezone` avec le nom de fuseau et le décalage obtenus depuis l'OS." -#: ../Doc/library/datetime.rst:1245 +#: ../Doc/library/datetime.rst:1243 msgid "" "If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no " "adjustment of date or time data is performed. Else the result is local time " @@ -1996,7 +1994,7 @@ msgstr "" "après ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` aura les " "mêmes données de date et d'heure que ``dt - dt.utcoffset()``." -#: ../Doc/library/datetime.rst:1251 +#: ../Doc/library/datetime.rst:1249 #, fuzzy msgid "" "If you merely want to attach a time zone object *tz* to a datetime *dt* " @@ -2010,7 +2008,7 @@ msgstr "" "d'un *datetime* *dt* avisé sans conversion des données de date et d'heure, " "utilisez ``dt.replace(tzinfo=None)``." -#: ../Doc/library/datetime.rst:1256 +#: ../Doc/library/datetime.rst:1254 msgid "" "Note that the default :meth:`tzinfo.fromutc` method can be overridden in a :" "class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`. " @@ -2021,11 +2019,11 @@ msgstr "" "meth:`astimezone`. En ignorant les cas d'erreurs, :meth:`astimezone` se " "comporte comme : ::" -#: ../Doc/library/datetime.rst:1268 +#: ../Doc/library/datetime.rst:1266 msgid "*tz* now can be omitted." msgstr "*tz* peut maintenant être omis." -#: ../Doc/library/datetime.rst:1271 +#: ../Doc/library/datetime.rst:1269 msgid "" "The :meth:`astimezone` method can now be called on naive instances that are " "presumed to represent system local time." @@ -2033,7 +2031,7 @@ msgstr "" "La méthode :meth:`astimezone` peut maintenant être appelée sur des instances " "naïves qui sont supposées représenter un temps local au système." -#: ../Doc/library/datetime.rst:1278 +#: ../Doc/library/datetime.rst:1276 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "utcoffset(self)``, and raises an exception if the latter doesn't return " @@ -2044,13 +2042,13 @@ msgstr "" "ne renvoie pas ``None`` ou un objet :class:`timedelta` d'une magnitude " "inférieure à un jour." -#: ../Doc/library/datetime.rst:1282 ../Doc/library/datetime.rst:1865 -#: ../Doc/library/datetime.rst:1971 ../Doc/library/datetime.rst:2217 -#: ../Doc/library/datetime.rst:2229 ../Doc/library/datetime.rst:2525 +#: ../Doc/library/datetime.rst:1280 ../Doc/library/datetime.rst:1863 +#: ../Doc/library/datetime.rst:1969 ../Doc/library/datetime.rst:2215 +#: ../Doc/library/datetime.rst:2227 ../Doc/library/datetime.rst:2523 msgid "The UTC offset is not restricted to a whole number of minutes." msgstr "Le décalage UTC peut aussi être autre chose qu'un ensemble de minutes." -#: ../Doc/library/datetime.rst:1288 +#: ../Doc/library/datetime.rst:1286 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "dst(self)``, and raises an exception if the latter doesn't return ``None`` " @@ -2061,12 +2059,12 @@ msgstr "" "renvoie pas ``None`` ou un objet :class:`timedelta` d'une magnitude " "inférieure à un jour." -#: ../Doc/library/datetime.rst:1292 ../Doc/library/datetime.rst:1875 -#: ../Doc/library/datetime.rst:2025 +#: ../Doc/library/datetime.rst:1290 ../Doc/library/datetime.rst:1873 +#: ../Doc/library/datetime.rst:2023 msgid "The DST offset is not restricted to a whole number of minutes." msgstr "Le décalage DST n'est pas restreint à des minutes entières." -#: ../Doc/library/datetime.rst:1298 +#: ../Doc/library/datetime.rst:1296 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "tzname(self)``, raises an exception if the latter doesn't return ``None`` or " @@ -2076,7 +2074,7 @@ msgstr "" "tzinfo.tzname(self)``, lève une exception si l'expression précédente ne " "renvoie pas ``None`` ou une chaîne de caractères," -#: ../Doc/library/datetime.rst:1313 +#: ../Doc/library/datetime.rst:1311 #, fuzzy msgid "" "where ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the " @@ -2097,7 +2095,7 @@ msgstr "" "une valeur non-nulle, :attr:`tm_isdst` est mise à ``1`` ; sinon :attr:" "`tm_isdst` est mise à ``0``." -#: ../Doc/library/datetime.rst:1324 +#: ../Doc/library/datetime.rst:1322 #, fuzzy msgid "" "If :class:`.datetime` instance *d* is naive, this is the same as ``d." @@ -2109,7 +2107,7 @@ msgstr "" "de ce que renvoie ``d.dst()``. L'heure d'été n'est jamais effective pour un " "temps UTC." -#: ../Doc/library/datetime.rst:1328 +#: ../Doc/library/datetime.rst:1326 #, fuzzy msgid "" "If *d* is aware, *d* is normalized to UTC time, by subtracting ``d." @@ -2124,7 +2122,7 @@ msgstr "" "`OverflowError` peut être levée si *d.year* vaut ``MINYEAR``ou ``MAXYEAR`` " "et que l'ajustement UTC fait dépasser les bornes." -#: ../Doc/library/datetime.rst:1337 +#: ../Doc/library/datetime.rst:1335 msgid "" "Because naive ``datetime`` objects are treated by many ``datetime`` methods " "as local times, it is preferred to use aware datetimes to represent times in " @@ -2134,7 +2132,7 @@ msgid "" "meth:`.datetime.timetuple`." msgstr "" -#: ../Doc/library/datetime.rst:1346 +#: ../Doc/library/datetime.rst:1344 #, fuzzy msgid "" "Return the proleptic Gregorian ordinal of the date. The same as ``self." @@ -2143,7 +2141,7 @@ msgstr "" "Renvoie l'ordinal du calendrier géorgien proleptique de cette date. " "Identique à ``self.date().toordinal()``." -#: ../Doc/library/datetime.rst:1351 +#: ../Doc/library/datetime.rst:1349 #, fuzzy msgid "" "Return POSIX timestamp corresponding to the :class:`.datetime` instance. The " @@ -2154,7 +2152,7 @@ msgstr "" "l'instance :class:`.datetime`. La valeur renvoyée est un :class:`float` " "similaire à ceux renvoyés par :func:`time.time`." -#: ../Doc/library/datetime.rst:1355 +#: ../Doc/library/datetime.rst:1353 #, fuzzy msgid "" "Naive :class:`.datetime` instances are assumed to represent local time and " @@ -2170,14 +2168,14 @@ msgstr "" "plateformes, cette méthode peut lever une :exc:`OverflowError` pour les " "temps trop éloignés dans le passé ou le futur." -#: ../Doc/library/datetime.rst:1362 +#: ../Doc/library/datetime.rst:1360 msgid "" "For aware :class:`.datetime` instances, the return value is computed as::" msgstr "" "Pour les instances :class:`.datetime` avisées, la valeur renvoyée est " "calculée comme suit : ::" -#: ../Doc/library/datetime.rst:1369 +#: ../Doc/library/datetime.rst:1367 msgid "" "The :meth:`timestamp` method uses the :attr:`.fold` attribute to " "disambiguate the times during a repeated interval." @@ -2185,7 +2183,7 @@ msgstr "" "La méthode :meth:`timestamp` utilise l'attribut :attr:`.fold` pour " "désambiguïser le temps dans un intervalle répété." -#: ../Doc/library/datetime.rst:1375 +#: ../Doc/library/datetime.rst:1373 #, fuzzy msgid "" "There is no method to obtain the POSIX timestamp directly from a naive :" @@ -2199,11 +2197,11 @@ msgstr "" "que le fuseau horaire de votre système est UTC, vous pouvez obtenir " "l'horodatage *POSIX* en fournissant ``tzinfo=timezone.utc`` : ::" -#: ../Doc/library/datetime.rst:1383 +#: ../Doc/library/datetime.rst:1381 msgid "or by calculating the timestamp directly::" msgstr "ou en calculant l'horodatage (*timestamp* en anglais) directement : ::" -#: ../Doc/library/datetime.rst:1389 +#: ../Doc/library/datetime.rst:1387 msgid "" "Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " "The same as ``self.date().weekday()``. See also :meth:`isoweekday`." @@ -2212,7 +2210,7 @@ msgstr "" "dimanche vaut 6. Identique à ``self.date().weekday()``. Voir aussi :meth:" "`isoweekday`." -#: ../Doc/library/datetime.rst:1395 +#: ../Doc/library/datetime.rst:1393 msgid "" "Return the day of the week as an integer, where Monday is 1 and Sunday is 7. " "The same as ``self.date().isoweekday()``. See also :meth:`weekday`, :meth:" @@ -2222,7 +2220,7 @@ msgstr "" "dimanche vaut 7. Identique à ``self.date().isoweekday()``. Voir aussi :meth:" "`weekday`, :meth:`isocalendar`." -#: ../Doc/library/datetime.rst:1402 +#: ../Doc/library/datetime.rst:1400 #, fuzzy msgid "" "Return a 3-tuple, (ISO year, ISO week number, ISO weekday). The same as " @@ -2231,7 +2229,7 @@ msgstr "" "Renvoie un *tuple* de 3 éléments, (année ISO, numéro de semaine ISO, jour de " "la semaine ISO). Identique à ``self.date().isocalendar()``." -#: ../Doc/library/datetime.rst:1408 +#: ../Doc/library/datetime.rst:1406 #, fuzzy msgid "Return a string representing the date and time in ISO 8601 format:" msgstr "" @@ -2239,15 +2237,15 @@ msgstr "" "MM-DDTHH:MM:SS.ffffff* ou, si :attr:`microsecond` vaut 0, *YYYY-MM-DDTHH:MM:" "SS*" -#: ../Doc/library/datetime.rst:1410 +#: ../Doc/library/datetime.rst:1408 msgid "``YYYY-MM-DDTHH:MM:SS.ffffff``, if :attr:`microsecond` is not 0" msgstr "" -#: ../Doc/library/datetime.rst:1411 +#: ../Doc/library/datetime.rst:1409 msgid "``YYYY-MM-DDTHH:MM:SS``, if :attr:`microsecond` is 0" msgstr "" -#: ../Doc/library/datetime.rst:1413 +#: ../Doc/library/datetime.rst:1411 #, fuzzy msgid "" "If :meth:`utcoffset` does not return ``None``, a string is appended, giving " @@ -2256,18 +2254,18 @@ msgstr "" "Si :meth:`utcoffset` ne renvoie pas ``None``, :meth:`dst` ne doit pas non " "plus renvoyer ``None``." -#: ../Doc/library/datetime.rst:1416 +#: ../Doc/library/datetime.rst:1414 msgid "" "``YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` " "is not 0" msgstr "" -#: ../Doc/library/datetime.rst:1418 +#: ../Doc/library/datetime.rst:1416 msgid "" "``YYYY-MM-DDTHH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0" msgstr "" -#: ../Doc/library/datetime.rst:1428 +#: ../Doc/library/datetime.rst:1426 #, fuzzy msgid "" "The optional argument *sep* (default ``'T'``) is a one-character separator, " @@ -2277,7 +2275,7 @@ msgstr "" "d'un caractère, placé entre les portions du résultat correspondant à la date " "et à l'heure. Par exemple," -#: ../Doc/library/datetime.rst:1442 ../Doc/library/datetime.rst:1803 +#: ../Doc/library/datetime.rst:1440 ../Doc/library/datetime.rst:1801 msgid "" "The optional argument *timespec* specifies the number of additional " "components of the time to include (the default is ``'auto'``). It can be one " @@ -2287,7 +2285,7 @@ msgstr "" "additionnels de temps à inclure (par défaut ``'auto'``). Il peut valoir " "l'une des valeurs suivantes :" -#: ../Doc/library/datetime.rst:1446 ../Doc/library/datetime.rst:1807 +#: ../Doc/library/datetime.rst:1444 ../Doc/library/datetime.rst:1805 msgid "" "``'auto'``: Same as ``'seconds'`` if :attr:`microsecond` is 0, same as " "``'microseconds'`` otherwise." @@ -2295,18 +2293,18 @@ msgstr "" "``'auto'`` : Identique à ``'seconds'`` si :attr:`microsecond` vaut 0, à " "``'microseconds'`` sinon." -#: ../Doc/library/datetime.rst:1448 ../Doc/library/datetime.rst:1809 +#: ../Doc/library/datetime.rst:1446 ../Doc/library/datetime.rst:1807 #, fuzzy msgid "``'hours'``: Include the :attr:`hour` in the two-digit ``HH`` format." msgstr "``'hours'`` : Inclut :attr:`hour` au format à deux chiffres HH." -#: ../Doc/library/datetime.rst:1449 ../Doc/library/datetime.rst:1810 +#: ../Doc/library/datetime.rst:1447 ../Doc/library/datetime.rst:1808 #, fuzzy msgid "" "``'minutes'``: Include :attr:`hour` and :attr:`minute` in ``HH:MM`` format." msgstr "``'minutes'`` : Inclut :attr:`hour` et :attr:`minute` au format HH:MM." -#: ../Doc/library/datetime.rst:1450 ../Doc/library/datetime.rst:1811 +#: ../Doc/library/datetime.rst:1448 ../Doc/library/datetime.rst:1809 #, fuzzy msgid "" "``'seconds'``: Include :attr:`hour`, :attr:`minute`, and :attr:`second` in " @@ -2315,7 +2313,7 @@ msgstr "" "``'seconds'`` : Inclut :attr:`hour`, :attr:`minute` et :attr:`second` au " "format ``HH:MM:SS``." -#: ../Doc/library/datetime.rst:1452 ../Doc/library/datetime.rst:1813 +#: ../Doc/library/datetime.rst:1450 ../Doc/library/datetime.rst:1811 #, fuzzy msgid "" "``'milliseconds'``: Include full time, but truncate fractional second part " @@ -2324,27 +2322,27 @@ msgstr "" "``'milliseconds'`` : Inclut le temps complet, mais tronque la partie " "fractionnaire des millisecondes, au format ``HH:MM:SS.sss``." -#: ../Doc/library/datetime.rst:1454 ../Doc/library/datetime.rst:1815 +#: ../Doc/library/datetime.rst:1452 ../Doc/library/datetime.rst:1813 #, fuzzy msgid "``'microseconds'``: Include full time in ``HH:MM:SS.ffffff`` format." msgstr "" "``'microseconds'`` : Inclut le temps complet, au format ``HH:MM:SS.ffffff``." -#: ../Doc/library/datetime.rst:1458 ../Doc/library/datetime.rst:1819 +#: ../Doc/library/datetime.rst:1456 ../Doc/library/datetime.rst:1817 msgid "Excluded time components are truncated, not rounded." msgstr "Les composants de temps exclus sont tronqués et non arrondis." -#: ../Doc/library/datetime.rst:1460 +#: ../Doc/library/datetime.rst:1458 #, fuzzy msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument::" msgstr "" "Une :exc:`ValueError` sera levée en cas d'argument *timespec* invalide." -#: ../Doc/library/datetime.rst:1470 ../Doc/library/datetime.rst:1834 +#: ../Doc/library/datetime.rst:1468 ../Doc/library/datetime.rst:1832 msgid "Added the *timespec* argument." msgstr "Ajout de l'argument *timespec*." -#: ../Doc/library/datetime.rst:1476 +#: ../Doc/library/datetime.rst:1474 msgid "" "For a :class:`.datetime` instance *d*, ``str(d)`` is equivalent to ``d." "isoformat(' ')``." @@ -2352,17 +2350,17 @@ msgstr "" "Pour une instance *d* de :class:`.datetime`, ``str(d)`` est équivalent à ``d." "isoformat(' ')``." -#: ../Doc/library/datetime.rst:1482 +#: ../Doc/library/datetime.rst:1480 msgid "Return a string representing the date and time::" msgstr "" -#: ../Doc/library/datetime.rst:1488 +#: ../Doc/library/datetime.rst:1486 msgid "" "The output string will *not* include time zone information, regardless of " "whether the input is aware or naive." msgstr "" -#: ../Doc/library/datetime.rst:1495 +#: ../Doc/library/datetime.rst:1493 #, fuzzy msgid "" "on platforms where the native C :c:func:`ctime` function (which :func:`time." @@ -2375,7 +2373,7 @@ msgstr "" "plateformes où la fonction C native :c:func:`ctime` (que :func:`time.ctime` " "invoque, mais pas :meth:`date.ctime`) est conforme au standard C." -#: ../Doc/library/datetime.rst:1501 +#: ../Doc/library/datetime.rst:1499 #, fuzzy msgid "" "Return a string representing the date and time, controlled by an explicit " @@ -2386,7 +2384,7 @@ msgstr "" "de format explicite. Pour une liste complète des directives de formatage, " "voir :ref:`strftime-strptime-behavior`." -#: ../Doc/library/datetime.rst:1508 +#: ../Doc/library/datetime.rst:1506 #, fuzzy msgid "" "Same as :meth:`.datetime.strftime`. This makes it possible to specify a " @@ -2400,32 +2398,32 @@ msgstr "" "une liste complète des directives de formatage, voir :ref:`strftime-strptime-" "behavior`." -#: ../Doc/library/datetime.rst:1515 +#: ../Doc/library/datetime.rst:1513 #, fuzzy msgid "Examples of Usage: :class:`.datetime`" msgstr "Exemple d'utilisation de la classe :class:`date` :" -#: ../Doc/library/datetime.rst:1517 +#: ../Doc/library/datetime.rst:1515 #, fuzzy msgid "Examples of working with :class:`~datetime.datetime` objects:" msgstr "Exemples d'utilisation des objets *datetime* :" -#: ../Doc/library/datetime.rst:1570 +#: ../Doc/library/datetime.rst:1568 msgid "" "The example below defines a :class:`tzinfo` subclass capturing time zone " "information for Kabul, Afghanistan, which used +4 UTC until 1945 and then " "+4:30 UTC thereafter::" msgstr "" -#: ../Doc/library/datetime.rst:1617 +#: ../Doc/library/datetime.rst:1615 msgid "Usage of ``KabulTz`` from above::" msgstr "" -#: ../Doc/library/datetime.rst:1643 +#: ../Doc/library/datetime.rst:1641 msgid ":class:`.time` Objects" msgstr "Objets :class:`.time`" -#: ../Doc/library/datetime.rst:1645 +#: ../Doc/library/datetime.rst:1643 #, fuzzy msgid "" "A :class:`time` object represents a (local) time of day, independent of any " @@ -2434,7 +2432,7 @@ msgstr "" "Un objet *time* représente une heure (locale) du jour, indépendante de tout " "jour particulier, et sujette à des ajustements par un objet :class:`tzinfo`." -#: ../Doc/library/datetime.rst:1650 +#: ../Doc/library/datetime.rst:1648 #, fuzzy msgid "" "All arguments are optional. *tzinfo* may be ``None``, or an instance of a :" @@ -2445,7 +2443,7 @@ msgstr "" "instance d'une sous-classe :class:`tzinfo`. Les autres arguments doivent " "être des nombres entiers, dans les intervalles suivants :" -#: ../Doc/library/datetime.rst:1660 +#: ../Doc/library/datetime.rst:1658 #, fuzzy msgid "" "If an argument outside those ranges is given, :exc:`ValueError` is raised. " @@ -2455,18 +2453,18 @@ msgstr "" "levée. Ils valent tous ``0`` par défaut, à l'exception de *tzinfo* qui " "vaut :const:`None`." -#: ../Doc/library/datetime.rst:1668 +#: ../Doc/library/datetime.rst:1666 msgid "The earliest representable :class:`.time`, ``time(0, 0, 0, 0)``." msgstr "" "Le plus petit objet :class:`.time` représentable, ``time(0, 0, 0, 0)``." -#: ../Doc/library/datetime.rst:1673 +#: ../Doc/library/datetime.rst:1671 msgid "The latest representable :class:`.time`, ``time(23, 59, 59, 999999)``." msgstr "" "Le plus grand objet :class:`.time` représentable, ``time(23, 59, 59, " "999999)``." -#: ../Doc/library/datetime.rst:1678 +#: ../Doc/library/datetime.rst:1676 msgid "" "The smallest possible difference between non-equal :class:`.time` objects, " "``timedelta(microseconds=1)``, although note that arithmetic on :class:`." @@ -2476,7 +2474,7 @@ msgstr "" "égaux, ``timedelta(microseconds=1)``, notez cependant que les objets :class:" "`.time` n'implémentent pas d'opérations arithmétiques." -#: ../Doc/library/datetime.rst:1707 +#: ../Doc/library/datetime.rst:1705 msgid "" "The object passed as the tzinfo argument to the :class:`.time` constructor, " "or ``None`` if none was passed." @@ -2484,7 +2482,7 @@ msgstr "" "L'objet passé comme argument *tzinfo* au constructeur de :class:`.time`, ou " "``None`` si aucune valeur n'a été passée." -#: ../Doc/library/datetime.rst:1721 +#: ../Doc/library/datetime.rst:1719 #, fuzzy msgid "" ":class:`.time` objects support comparison of :class:`.time` to :class:`." @@ -2499,7 +2497,7 @@ msgstr "" "`TypeError` est levée. Pour les égalités, les instances naïves ne sont " "jamais égales aux instances avisées." -#: ../Doc/library/datetime.rst:1727 +#: ../Doc/library/datetime.rst:1725 #, fuzzy msgid "" "If both comparands are aware, and have the same :attr:`~time.tzinfo` " @@ -2524,7 +2522,7 @@ msgstr "" "que la comparaison soit ``==`` ou ``!=``. Ces derniers cas renvoient " "respectivement :const:`False` et :const:`True`." -#: ../Doc/library/datetime.rst:1737 +#: ../Doc/library/datetime.rst:1735 #, fuzzy msgid "" "Equality comparisons between aware and naive :class:`~datetime.time` " @@ -2533,7 +2531,7 @@ msgstr "" "Les comparaisons d'égalité entre instances de :class:`~datetime.time` naïves " "et avisées ne lèvent pas de :exc:`TypeError`." -#: ../Doc/library/datetime.rst:1741 +#: ../Doc/library/datetime.rst:1739 #, fuzzy msgid "" "In Boolean contexts, a :class:`.time` object is always considered to be true." @@ -2541,7 +2539,7 @@ msgstr "" "Dans un contexte booléen, un objet :class:`.time` est toujours considéré " "comme vrai." -#: ../Doc/library/datetime.rst:1743 +#: ../Doc/library/datetime.rst:1741 #, fuzzy msgid "" "Before Python 3.5, a :class:`.time` object was considered to be false if it " @@ -2554,11 +2552,11 @@ msgstr "" "propice aux erreurs, il a été supprimé en Python 3.5. Voir :issue:`13936` " "pour les détails complets." -#: ../Doc/library/datetime.rst:1750 +#: ../Doc/library/datetime.rst:1748 msgid "Other constructor:" msgstr "Autre constructeur :" -#: ../Doc/library/datetime.rst:1754 +#: ../Doc/library/datetime.rst:1752 #, fuzzy msgid "" "Return a :class:`.time` corresponding to a *time_string* in one of the " @@ -2569,7 +2567,7 @@ msgstr "" "par :meth:`date.isoformat`. Spécifiquement, cette fonction gère des chaînes " "dans le(s) format(s) ``YYYY-MM-DD``." -#: ../Doc/library/datetime.rst:1764 +#: ../Doc/library/datetime.rst:1762 #, fuzzy msgid "" "This does *not* support parsing arbitrary ISO 8601 strings. It is only " @@ -2578,7 +2576,7 @@ msgstr "" "Ceci ne gère pas l'analyse arbitraire de chaînes ISO 8601, ceci est " "seulement destiné à l'opération inverse de :meth:`time.isoformat`." -#: ../Doc/library/datetime.rst:1785 +#: ../Doc/library/datetime.rst:1783 #, fuzzy msgid "" "Return a :class:`.time` with the same value, except for those attributes " @@ -2592,7 +2590,7 @@ msgstr "" "`.time` naïve à partir d'une instance :class:`.time` avisée, sans conversion " "des données de temps." -#: ../Doc/library/datetime.rst:1796 +#: ../Doc/library/datetime.rst:1794 #, fuzzy msgid "Return a string representing the time in ISO 8601 format, one of:" msgstr "" @@ -2600,36 +2598,36 @@ msgstr "" "\"YYYY-MM-DD\". Par exemple, ``date(2002, 12, 4).isoformat() == " "'2002-12-04'``." -#: ../Doc/library/datetime.rst:1798 +#: ../Doc/library/datetime.rst:1796 msgid "``HH:MM:SS.ffffff``, if :attr:`microsecond` is not 0" msgstr "" -#: ../Doc/library/datetime.rst:1799 +#: ../Doc/library/datetime.rst:1797 msgid "``HH:MM:SS``, if :attr:`microsecond` is 0" msgstr "" -#: ../Doc/library/datetime.rst:1800 +#: ../Doc/library/datetime.rst:1798 msgid "" "``HH:MM:SS.ffffff+HH:MM[:SS[.ffffff]]``, if :meth:`utcoffset` does not " "return ``None``" msgstr "" -#: ../Doc/library/datetime.rst:1801 +#: ../Doc/library/datetime.rst:1799 msgid "" "``HH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0 and :meth:" "`utcoffset` does not return ``None``" msgstr "" -#: ../Doc/library/datetime.rst:1821 +#: ../Doc/library/datetime.rst:1819 msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument." msgstr "" "Une :exc:`ValueError` sera levée en cas d'argument *timespec* invalide." -#: ../Doc/library/datetime.rst:1840 +#: ../Doc/library/datetime.rst:1838 msgid "For a time *t*, ``str(t)`` is equivalent to ``t.isoformat()``." msgstr "Pour un temps *t*, ``str(t)`` est équivalent à ``t.isoformat()``." -#: ../Doc/library/datetime.rst:1845 +#: ../Doc/library/datetime.rst:1843 #, fuzzy msgid "" "Return a string representing the time, controlled by an explicit format " @@ -2640,7 +2638,7 @@ msgstr "" "chaîne de formatage explicite. Pour une liste complète des directives de " "formatage, voir :ref:`strftime-strptime-behavior`." -#: ../Doc/library/datetime.rst:1852 +#: ../Doc/library/datetime.rst:1850 #, fuzzy msgid "" "Same as :meth:`.time.strftime`. This makes it possible to specify a format " @@ -2654,7 +2652,7 @@ msgstr "" "liste complète des directives de formatage, voir :ref:`strftime-strptime-" "behavior`." -#: ../Doc/library/datetime.rst:1861 +#: ../Doc/library/datetime.rst:1859 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "utcoffset(None)``, and raises an exception if the latter doesn't return " @@ -2665,7 +2663,7 @@ msgstr "" "ne renvoie pas ``None`` ou un objet :class:`timedelta` d'une magnitude " "inférieure à un jour." -#: ../Doc/library/datetime.rst:1871 +#: ../Doc/library/datetime.rst:1869 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "dst(None)``, and raises an exception if the latter doesn't return ``None``, " @@ -2676,7 +2674,7 @@ msgstr "" "renvoie pas ``None`` ou un objet :class:`timedelta` d'une magnitude " "inférieure à un jour." -#: ../Doc/library/datetime.rst:1880 +#: ../Doc/library/datetime.rst:1878 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "tzname(None)``, or raises an exception if the latter doesn't return ``None`` " @@ -2686,28 +2684,28 @@ msgstr "" "tzinfo.tzname(None)``, et lève une exception si l'expression précédente ne " "renvoie pas ``None`` ou une chaîne de caractères." -#: ../Doc/library/datetime.rst:1885 +#: ../Doc/library/datetime.rst:1883 #, fuzzy msgid "Examples of Usage: :class:`.time`" msgstr "Exemple d'utilisation de la classe :class:`date` :" -#: ../Doc/library/datetime.rst:1887 +#: ../Doc/library/datetime.rst:1885 #, fuzzy msgid "Examples of working with a :class:`.time` object::" msgstr "Exemples d'utilisation des objets *datetime* :" -#: ../Doc/library/datetime.rst:1918 +#: ../Doc/library/datetime.rst:1916 msgid ":class:`tzinfo` Objects" msgstr "Objets :class:`tzinfo`" -#: ../Doc/library/datetime.rst:1922 +#: ../Doc/library/datetime.rst:1920 msgid "" "This is an abstract base class, meaning that this class should not be " "instantiated directly. Define a subclass of :class:`tzinfo` to capture " "information about a particular time zone." msgstr "" -#: ../Doc/library/datetime.rst:1926 +#: ../Doc/library/datetime.rst:1924 msgid "" "An instance of (a concrete subclass of) :class:`tzinfo` can be passed to the " "constructors for :class:`.datetime` and :class:`.time` objects. The latter " @@ -2723,7 +2721,7 @@ msgstr "" "temps local par rapport à UTC, le nom du fuseau horaire, le décalage d'heure " "d'été, tous relatifs à un objet de date ou d'heure qui leur est passé." -#: ../Doc/library/datetime.rst:1932 +#: ../Doc/library/datetime.rst:1930 #, fuzzy msgid "" "You need to derive a concrete subclass, and (at least) supply " @@ -2742,7 +2740,7 @@ msgstr "" "avec des décalages fixes par rapport à UTC, tels qu'UTC lui-même ou les nord-" "américains EST et EDT." -#: ../Doc/library/datetime.rst:1939 +#: ../Doc/library/datetime.rst:1937 #, fuzzy msgid "" "Special requirement for pickling: A :class:`tzinfo` subclass must have an :" @@ -2755,7 +2753,7 @@ msgstr "" "sans quoi un objet sérialisé ne pourrait pas toujours être désérialisé. " "C'est un prérequis technique qui pourrait être assoupli dans le futur." -#: ../Doc/library/datetime.rst:1944 +#: ../Doc/library/datetime.rst:1942 #, fuzzy msgid "" "A concrete subclass of :class:`tzinfo` may need to implement the following " @@ -2767,13 +2765,13 @@ msgstr "" "l'utilisation qui est faite des objets :mod:`datetime` avisés. Dans le " "doute, implémentez-les toutes." -#: ../Doc/library/datetime.rst:1951 +#: ../Doc/library/datetime.rst:1949 msgid "" "Return offset of local time from UTC, as a :class:`timedelta` object that is " "positive east of UTC. If local time is west of UTC, this should be negative." msgstr "" -#: ../Doc/library/datetime.rst:1954 +#: ../Doc/library/datetime.rst:1952 #, fuzzy msgid "" "This represents the *total* offset from UTC; for example, if a :class:" @@ -2796,7 +2794,7 @@ msgstr "" "un jour). La plupart des implémentations de :meth:`utcoffset` ressembleront " "probablement à l'une des deux suivantes : ::" -#: ../Doc/library/datetime.rst:1965 +#: ../Doc/library/datetime.rst:1963 msgid "" "If :meth:`utcoffset` does not return ``None``, :meth:`dst` should not return " "``None`` either." @@ -2804,7 +2802,7 @@ msgstr "" "Si :meth:`utcoffset` ne renvoie pas ``None``, :meth:`dst` ne doit pas non " "plus renvoyer ``None``." -#: ../Doc/library/datetime.rst:1968 +#: ../Doc/library/datetime.rst:1966 msgid "" "The default implementation of :meth:`utcoffset` raises :exc:" "`NotImplementedError`." @@ -2812,13 +2810,13 @@ msgstr "" "L'implémentation par défaut de :meth:`utcoffset` lève une :exc:" "`NotImplementedError`." -#: ../Doc/library/datetime.rst:1977 +#: ../Doc/library/datetime.rst:1975 msgid "" "Return the daylight saving time (DST) adjustment, as a :class:`timedelta` " "object or ``None`` if DST information isn't known." msgstr "" -#: ../Doc/library/datetime.rst:1981 +#: ../Doc/library/datetime.rst:1979 #, fuzzy msgid "" "Return ``timedelta(0)`` if DST is not in effect. If DST is in effect, return " @@ -2845,7 +2843,7 @@ msgstr "" "`dst` pour tenir compte des heures d'été quand elle traverse des fuseaux " "horaires." -#: ../Doc/library/datetime.rst:1991 +#: ../Doc/library/datetime.rst:1989 msgid "" "An instance *tz* of a :class:`tzinfo` subclass that models both standard and " "daylight times must be consistent in this sense:" @@ -2853,11 +2851,11 @@ msgstr "" "Une instance *tz* d'une sous-classe :class:`tzinfo` convenant à la fois pour " "une heure standard et une heure d'été doit être cohérente :" -#: ../Doc/library/datetime.rst:1994 +#: ../Doc/library/datetime.rst:1992 msgid "``tz.utcoffset(dt) - tz.dst(dt)``" msgstr "``tz.utcoffset(dt) - tz.dst(dt)``" -#: ../Doc/library/datetime.rst:1996 +#: ../Doc/library/datetime.rst:1994 #, fuzzy msgid "" "must return the same result for every :class:`.datetime` *dt* with ``dt." @@ -2881,7 +2879,7 @@ msgstr "" "l'implémentation par défaut de :meth:`tzinfo.fromutc` pour tout de même " "fonctionner correctement avec :meth:`astimezone`." -#: ../Doc/library/datetime.rst:2005 +#: ../Doc/library/datetime.rst:2003 msgid "" "Most implementations of :meth:`dst` will probably look like one of these " "two::" @@ -2889,18 +2887,18 @@ msgstr "" "La plupart des implémentations de :meth:`dst` ressembleront probablement à " "l'une des deux suivantes : ::" -#: ../Doc/library/datetime.rst:2011 +#: ../Doc/library/datetime.rst:2009 msgid "or::" msgstr "ou  ::" -#: ../Doc/library/datetime.rst:2023 +#: ../Doc/library/datetime.rst:2021 msgid "" "The default implementation of :meth:`dst` raises :exc:`NotImplementedError`." msgstr "" "L'implémentation par défaut de :meth:`dst` lève une :exc:" "`NotImplementedError`." -#: ../Doc/library/datetime.rst:2031 +#: ../Doc/library/datetime.rst:2029 #, fuzzy msgid "" "Return the time zone name corresponding to the :class:`.datetime` object " @@ -2924,7 +2922,7 @@ msgstr "" "renvoyer des noms différents en fonction de valeurs de *dt* spécifiques, en " "particulier si la classe :class:`tzinfo` tient compte de l'heure d'été." -#: ../Doc/library/datetime.rst:2041 +#: ../Doc/library/datetime.rst:2039 msgid "" "The default implementation of :meth:`tzname` raises :exc:" "`NotImplementedError`." @@ -2932,7 +2930,7 @@ msgstr "" "L'implémentation par défaut de :meth:`tzname` lève une :exc:" "`NotImplementedError`." -#: ../Doc/library/datetime.rst:2044 +#: ../Doc/library/datetime.rst:2042 #, fuzzy msgid "" "These methods are called by a :class:`.datetime` or :class:`.time` object, " @@ -2949,7 +2947,7 @@ msgstr "" "être prêtes à recevoir un argument ``None`` pour *dt*, ou une instance de :" "class:`.datetime`." -#: ../Doc/library/datetime.rst:2050 +#: ../Doc/library/datetime.rst:2048 #, fuzzy msgid "" "When ``None`` is passed, it's up to the class designer to decide the best " @@ -2965,7 +2963,7 @@ msgstr "" "``utcoffset(None)`` de renvoyer le décalage UTC standard, comme il n'existe " "aucune autre convention pour obtenir ce décalage." -#: ../Doc/library/datetime.rst:2056 +#: ../Doc/library/datetime.rst:2054 #, fuzzy msgid "" "When a :class:`.datetime` object is passed in response to a :class:`." @@ -2983,7 +2981,7 @@ msgstr "" "étant le temps local, et n'aient pas à se soucier des objets dans d'autres " "fuseaux horaires." -#: ../Doc/library/datetime.rst:2062 +#: ../Doc/library/datetime.rst:2060 msgid "" "There is one more :class:`tzinfo` method that a subclass may wish to " "override:" @@ -2991,7 +2989,7 @@ msgstr "" "Il y a une dernière méthode de :class:`tzinfo` que les sous-classes peuvent " "vouloir redéfinir :" -#: ../Doc/library/datetime.rst:2067 +#: ../Doc/library/datetime.rst:2065 #, fuzzy msgid "" "This is called from the default :class:`datetime.astimezone()` " @@ -3007,7 +3005,7 @@ msgstr "" "et d'heure, renvoyant un objet *datetime* équivalent à *self*, dans le temps " "local." -#: ../Doc/library/datetime.rst:2073 +#: ../Doc/library/datetime.rst:2071 #, fuzzy msgid "" "Most :class:`tzinfo` subclasses should be able to inherit the default :meth:" @@ -3034,7 +3032,7 @@ msgstr "" "ne pas produire les résultats attendus si le résultat est l'une des heures " "affectées par le changement d'heure." -#: ../Doc/library/datetime.rst:2084 +#: ../Doc/library/datetime.rst:2082 msgid "" "Skipping code for error cases, the default :meth:`fromutc` implementation " "acts like::" @@ -3042,7 +3040,7 @@ msgstr "" "En omettant le code des cas d'erreurs, l'implémentation par défaut de :meth:" "`fromutc` se comporte comme suit : ::" -#: ../Doc/library/datetime.rst:2102 +#: ../Doc/library/datetime.rst:2100 msgid "" "In the following :download:`tzinfo_examples.py <../includes/tzinfo_examples." "py>` file there are some examples of :class:`tzinfo` classes:" @@ -3050,7 +3048,7 @@ msgstr "" "Dans le fichier :download:`tzinfo_examples.py <../includes/tzinfo_examples." "py>` il y a des exemples de :class:`tzinfo` classes:" -#: ../Doc/library/datetime.rst:2108 +#: ../Doc/library/datetime.rst:2106 #, fuzzy msgid "" "Note that there are unavoidable subtleties twice per year in a :class:" @@ -3066,7 +3064,7 @@ msgstr "" "la minute qui suit 1:59 (EST) le second dimanche de mars, et se termine à la " "minute qui suit 1:59 (EDT) le premier dimanche de novembre : ::" -#: ../Doc/library/datetime.rst:2122 +#: ../Doc/library/datetime.rst:2120 #, fuzzy msgid "" "When DST starts (the \"start\" line), the local wall clock leaps from 1:59 " @@ -3081,7 +3079,7 @@ msgstr "" "== 2`` pour le jour où débute l'heure d'été. Par exemple, lors de la " "transition du printemps 2016, nous obtenons" -#: ../Doc/library/datetime.rst:2141 +#: ../Doc/library/datetime.rst:2139 #, fuzzy msgid "" "When DST ends (the \"end\" line), there's a potentially worse problem: " @@ -3109,7 +3107,7 @@ msgstr "" "attr:`~datetime.fold` à 0 et les plus récentes l'ont à 1. Par exemple, lors " "de la transition de l'automne 2016, nous obtenons" -#: ../Doc/library/datetime.rst:2163 +#: ../Doc/library/datetime.rst:2161 #, fuzzy msgid "" "Note that the :class:`.datetime` instances that differ only by the value of " @@ -3119,7 +3117,7 @@ msgstr "" "valeur de leur attribut :attr:`~datetime.fold` sont considérées égales dans " "les comparaisons." -#: ../Doc/library/datetime.rst:2166 +#: ../Doc/library/datetime.rst:2164 msgid "" "Applications that can't bear wall-time ambiguities should explicitly check " "the value of the :attr:`~datetime.fold` attribute or avoid using hybrid :" @@ -3136,11 +3134,11 @@ msgstr "" "représentant uniquement le fuseau EST (de décalage fixe *-5h*) ou uniquement " "EDT (*-4h*))." -#: ../Doc/library/datetime.rst:2181 +#: ../Doc/library/datetime.rst:2179 msgid "`dateutil.tz `_" msgstr "`dateutil.tz `_" -#: ../Doc/library/datetime.rst:2175 +#: ../Doc/library/datetime.rst:2173 #, fuzzy msgid "" "The :mod:`datetime` module has a basic :class:`timezone` class (for handling " @@ -3151,7 +3149,7 @@ msgstr "" "décalages fixes par rapport à UTC et :attr:`timezone.utc` comme instance du " "fuseau horaire UTC." -#: ../Doc/library/datetime.rst:2179 +#: ../Doc/library/datetime.rst:2177 #, fuzzy msgid "" "*dateutil.tz* library brings the *IANA timezone database* (also known as the " @@ -3161,13 +3159,13 @@ msgstr "" "fuseaux horaires IANA* (*IANA timezone database*, aussi appelée base de " "données Olson) , et son utilisation est recommandée." -#: ../Doc/library/datetime.rst:2187 +#: ../Doc/library/datetime.rst:2185 msgid "`IANA timezone database `_" msgstr "" "`Base de données des fuseaux horaires de l'IANA `_" -#: ../Doc/library/datetime.rst:2184 +#: ../Doc/library/datetime.rst:2182 msgid "" "The Time Zone Database (often called tz, tzdata or zoneinfo) contains code " "and data that represent the history of local time for many representative " @@ -3182,17 +3180,17 @@ msgstr "" "politiques sur les bornes du fuseau, les décalages UTC, et les règles de " "passage à l'heure d'été." -#: ../Doc/library/datetime.rst:2194 +#: ../Doc/library/datetime.rst:2192 msgid ":class:`timezone` Objects" msgstr "Objets :class:`timezone`" -#: ../Doc/library/datetime.rst:2196 +#: ../Doc/library/datetime.rst:2194 msgid "" "The :class:`timezone` class is a subclass of :class:`tzinfo`, each instance " "of which represents a timezone defined by a fixed offset from UTC." msgstr "" -#: ../Doc/library/datetime.rst:2200 +#: ../Doc/library/datetime.rst:2198 #, fuzzy msgid "" "Objects of this class cannot be used to represent timezone information in " @@ -3206,7 +3204,7 @@ msgstr "" "emplacements où plusieurs décalages sont utilisés au cours de l'année ou où " "des changements historiques ont été opérés sur le temps civil." -#: ../Doc/library/datetime.rst:2207 +#: ../Doc/library/datetime.rst:2205 #, fuzzy msgid "" "The *offset* argument must be specified as a :class:`timedelta` object " @@ -3219,7 +3217,7 @@ msgstr "" "strictement compris entre ``-timedelta(hours=24)`` et " "``timedelta(hours=24)``, autrement une :exc:`ValueError` est levée." -#: ../Doc/library/datetime.rst:2212 +#: ../Doc/library/datetime.rst:2210 #, fuzzy msgid "" "The *name* argument is optional. If specified it must be a string that will " @@ -3229,13 +3227,13 @@ msgstr "" "caractères qui sera utilisée comme valeur de retour de la méthode :meth:" "`datetime.tzname`." -#: ../Doc/library/datetime.rst:2223 ../Doc/library/datetime.rst:2234 +#: ../Doc/library/datetime.rst:2221 ../Doc/library/datetime.rst:2232 msgid "" "Return the fixed value specified when the :class:`timezone` instance is " "constructed." msgstr "" -#: ../Doc/library/datetime.rst:2226 +#: ../Doc/library/datetime.rst:2224 #, fuzzy msgid "" "The *dt* argument is ignored. The return value is a :class:`timedelta` " @@ -3246,7 +3244,7 @@ msgstr "" "instance :class:`timedelta` égale à la différence entre le temps local et " "UTC." -#: ../Doc/library/datetime.rst:2237 +#: ../Doc/library/datetime.rst:2235 #, fuzzy msgid "" "If *name* is not provided in the constructor, the name returned by " @@ -3263,7 +3261,7 @@ msgstr "" "et HH et MM sont respectivement les représentations à deux chiffres de " "``offset.hours`` et ``offset.minutes``." -#: ../Doc/library/datetime.rst:2243 +#: ../Doc/library/datetime.rst:2241 #, fuzzy msgid "" "Name generated from ``offset=timedelta(0)`` is now plain `'UTC'`, not ``'UTC" @@ -3272,11 +3270,11 @@ msgstr "" "Le nom généré à partir de ``offset=timedelta(0)`` est maintenant \"UTC\" " "plutôt que \"UTC+00:00\"." -#: ../Doc/library/datetime.rst:2250 +#: ../Doc/library/datetime.rst:2248 msgid "Always returns ``None``." msgstr "Renvoie toujours ``None``." -#: ../Doc/library/datetime.rst:2254 +#: ../Doc/library/datetime.rst:2252 #, fuzzy msgid "" "Return ``dt + offset``. The *dt* argument must be an aware :class:`." @@ -3285,15 +3283,15 @@ msgstr "" "Renvoie ``dt + offset``. L'argument *dt* doit être une instance avisée de :" "class:`datetime`, avec ``tzinfo`` valant ``self``." -#: ../Doc/library/datetime.rst:2261 +#: ../Doc/library/datetime.rst:2259 msgid "The UTC timezone, ``timezone(timedelta(0))``." msgstr "Le fuseau horaire UTC, ``timezone(timedelta(0))``." -#: ../Doc/library/datetime.rst:2270 +#: ../Doc/library/datetime.rst:2268 msgid ":meth:`strftime` and :meth:`strptime` Behavior" msgstr "Comportement de :meth:`strftime` et :meth:`strptime`" -#: ../Doc/library/datetime.rst:2272 +#: ../Doc/library/datetime.rst:2270 #, fuzzy msgid "" ":class:`date`, :class:`.datetime`, and :class:`.time` objects all support a " @@ -3307,88 +3305,88 @@ msgstr "" "la fonction ``time.strftime(fmt, d.timetuple())`` du module :mod:`time`, " "bien que tous les objets ne comportent pas de méthode :meth:`timetuple`." -#: ../Doc/library/datetime.rst:2276 +#: ../Doc/library/datetime.rst:2274 msgid "" "Conversely, the :meth:`datetime.strptime` class method creates a :class:`." "datetime` object from a string representing a date and time and a " "corresponding format string." msgstr "" -#: ../Doc/library/datetime.rst:2280 +#: ../Doc/library/datetime.rst:2278 msgid "" "The table below provides a high-level comparison of :meth:`strftime` versus :" "meth:`strptime`:" msgstr "" -#: ../Doc/library/datetime.rst:2284 +#: ../Doc/library/datetime.rst:2282 #, fuzzy msgid "``strftime``" msgstr "``str(t)``" -#: ../Doc/library/datetime.rst:2284 +#: ../Doc/library/datetime.rst:2282 #, fuzzy msgid "``strptime``" msgstr "``str(t)``" -#: ../Doc/library/datetime.rst:2286 +#: ../Doc/library/datetime.rst:2284 msgid "Usage" msgstr "" -#: ../Doc/library/datetime.rst:2286 +#: ../Doc/library/datetime.rst:2284 msgid "Convert object to a string according to a given format" msgstr "" -#: ../Doc/library/datetime.rst:2286 +#: ../Doc/library/datetime.rst:2284 msgid "" "Parse a string into a :class:`.datetime` object given a corresponding format" msgstr "" -#: ../Doc/library/datetime.rst:2288 +#: ../Doc/library/datetime.rst:2286 msgid "Type of method" msgstr "" -#: ../Doc/library/datetime.rst:2288 +#: ../Doc/library/datetime.rst:2286 #, fuzzy msgid "Instance method" msgstr "Méthodes de l'instance :" -#: ../Doc/library/datetime.rst:2288 +#: ../Doc/library/datetime.rst:2286 msgid "Class method" msgstr "" -#: ../Doc/library/datetime.rst:2290 +#: ../Doc/library/datetime.rst:2288 msgid "Method of" msgstr "" -#: ../Doc/library/datetime.rst:2290 +#: ../Doc/library/datetime.rst:2288 #, fuzzy msgid ":class:`date`; :class:`.datetime`; :class:`.time`" msgstr "Compare :class:`.datetime` à :class:`.datetime`. (4)" -#: ../Doc/library/datetime.rst:2290 +#: ../Doc/library/datetime.rst:2288 #, fuzzy msgid ":class:`.datetime`" msgstr "Objets :class:`.datetime`" -#: ../Doc/library/datetime.rst:2292 +#: ../Doc/library/datetime.rst:2290 msgid "Signature" msgstr "" -#: ../Doc/library/datetime.rst:2292 +#: ../Doc/library/datetime.rst:2290 #, fuzzy msgid "``strftime(format)``" msgstr "``str(t)``" -#: ../Doc/library/datetime.rst:2292 +#: ../Doc/library/datetime.rst:2290 msgid "``strptime(date_string, format)``" msgstr "" -#: ../Doc/library/datetime.rst:2297 +#: ../Doc/library/datetime.rst:2295 #, fuzzy msgid ":meth:`strftime` and :meth:`strptime` Format Codes" msgstr "Comportement de :meth:`strftime` et :meth:`strptime`" -#: ../Doc/library/datetime.rst:2299 +#: ../Doc/library/datetime.rst:2297 #, fuzzy msgid "" "The following is a list of all the format codes that the 1989 C standard " @@ -3399,27 +3397,27 @@ msgstr "" "possédant une implémentation de C standard. Notez que la version 1999 du " "standard C a ajouté des codes de formatage additionnels." -#: ../Doc/library/datetime.rst:2303 ../Doc/library/datetime.rst:2406 +#: ../Doc/library/datetime.rst:2301 ../Doc/library/datetime.rst:2404 msgid "Directive" msgstr "Directive" -#: ../Doc/library/datetime.rst:2303 ../Doc/library/datetime.rst:2406 +#: ../Doc/library/datetime.rst:2301 ../Doc/library/datetime.rst:2404 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/datetime.rst:2303 ../Doc/library/datetime.rst:2406 +#: ../Doc/library/datetime.rst:2301 ../Doc/library/datetime.rst:2404 msgid "Example" msgstr "Exemple" -#: ../Doc/library/datetime.rst:2303 ../Doc/library/datetime.rst:2406 +#: ../Doc/library/datetime.rst:2301 ../Doc/library/datetime.rst:2404 msgid "Notes" msgstr "Notes" -#: ../Doc/library/datetime.rst:2305 +#: ../Doc/library/datetime.rst:2303 msgid "``%a``" msgstr "``%a``" -#: ../Doc/library/datetime.rst:2305 +#: ../Doc/library/datetime.rst:2303 msgid "Weekday as locale's abbreviated name." msgstr "Jour de la semaine abrégé dans la langue locale." @@ -3431,11 +3429,11 @@ msgstr "Sun, Mon, ..., Sat (en_US);" msgid "So, Mo, ..., Sa (de_DE)" msgstr "Lu, Ma, ..., Di (*fr_FR*)" -#: ../Doc/library/datetime.rst:2310 +#: ../Doc/library/datetime.rst:2308 msgid "``%A``" msgstr "``%A``" -#: ../Doc/library/datetime.rst:2310 +#: ../Doc/library/datetime.rst:2308 msgid "Weekday as locale's full name." msgstr "Jour de la semaine complet dans la langue locale." @@ -3447,43 +3445,43 @@ msgstr "*Sunday*, *Monday*, ..., *Saturday* (*en_US*);" msgid "Sonntag, Montag, ..., Samstag (de_DE)" msgstr "Lundi, Mardi, ..., Dimanche (*fr_FR*)" -#: ../Doc/library/datetime.rst:2315 +#: ../Doc/library/datetime.rst:2313 msgid "``%w``" msgstr "``%w``" -#: ../Doc/library/datetime.rst:2315 +#: ../Doc/library/datetime.rst:2313 msgid "Weekday as a decimal number, where 0 is Sunday and 6 is Saturday." msgstr "" "Jour de la semaine en chiffre, avec 0 pour le dimanche et 6 pour le samedi." -#: ../Doc/library/datetime.rst:2315 +#: ../Doc/library/datetime.rst:2313 msgid "0, 1, ..., 6" msgstr "0, 1, ..., 6" -#: ../Doc/library/datetime.rst:2319 +#: ../Doc/library/datetime.rst:2317 msgid "``%d``" msgstr "``%d``" -#: ../Doc/library/datetime.rst:2319 +#: ../Doc/library/datetime.rst:2317 msgid "Day of the month as a zero-padded decimal number." msgstr "Jour du mois sur deux chiffres." -#: ../Doc/library/datetime.rst:2319 +#: ../Doc/library/datetime.rst:2317 msgid "01, 02, ..., 31" msgstr "01, 02, ..., 31" -#: ../Doc/library/datetime.rst:2319 ../Doc/library/datetime.rst:2332 -#: ../Doc/library/datetime.rst:2335 ../Doc/library/datetime.rst:2341 -#: ../Doc/library/datetime.rst:2344 ../Doc/library/datetime.rst:2350 -#: ../Doc/library/datetime.rst:2368 +#: ../Doc/library/datetime.rst:2317 ../Doc/library/datetime.rst:2330 +#: ../Doc/library/datetime.rst:2333 ../Doc/library/datetime.rst:2339 +#: ../Doc/library/datetime.rst:2342 ../Doc/library/datetime.rst:2348 +#: ../Doc/library/datetime.rst:2366 msgid "\\(9)" msgstr "\\(9)" -#: ../Doc/library/datetime.rst:2322 +#: ../Doc/library/datetime.rst:2320 msgid "``%b``" msgstr "``%b``" -#: ../Doc/library/datetime.rst:2322 +#: ../Doc/library/datetime.rst:2320 msgid "Month as locale's abbreviated name." msgstr "Nom du mois abrégé dans la langue locale." @@ -3495,11 +3493,11 @@ msgstr "Jan, Feb, ..., Dec (*en_US*);" msgid "Jan, Feb, ..., Dez (de_DE)" msgstr "janv., févr., ..., déc. (*fr_FR*)" -#: ../Doc/library/datetime.rst:2327 +#: ../Doc/library/datetime.rst:2325 msgid "``%B``" msgstr "``%B``" -#: ../Doc/library/datetime.rst:2327 +#: ../Doc/library/datetime.rst:2325 msgid "Month as locale's full name." msgstr "Nom complet du mois dans la langue locale." @@ -3511,67 +3509,67 @@ msgstr "*January*, *February*, ..., *December* (*en_US*);" msgid "Januar, Februar, ..., Dezember (de_DE)" msgstr "janvier, février, ..., décembre (*fr_FR*)" -#: ../Doc/library/datetime.rst:2332 +#: ../Doc/library/datetime.rst:2330 msgid "``%m``" msgstr "``%m``" -#: ../Doc/library/datetime.rst:2332 +#: ../Doc/library/datetime.rst:2330 msgid "Month as a zero-padded decimal number." msgstr "Numéro du mois sur deux chiffres." -#: ../Doc/library/datetime.rst:2332 ../Doc/library/datetime.rst:2344 +#: ../Doc/library/datetime.rst:2330 ../Doc/library/datetime.rst:2342 msgid "01, 02, ..., 12" msgstr "01, 02, ..., 12" -#: ../Doc/library/datetime.rst:2335 +#: ../Doc/library/datetime.rst:2333 msgid "``%y``" msgstr "``%y``" -#: ../Doc/library/datetime.rst:2335 +#: ../Doc/library/datetime.rst:2333 msgid "Year without century as a zero-padded decimal number." msgstr "Année sur deux chiffres (sans le siècle)." -#: ../Doc/library/datetime.rst:2335 +#: ../Doc/library/datetime.rst:2333 msgid "00, 01, ..., 99" msgstr "00, 01, ..., 99" -#: ../Doc/library/datetime.rst:2338 +#: ../Doc/library/datetime.rst:2336 msgid "``%Y``" msgstr "``%Y``" -#: ../Doc/library/datetime.rst:2338 +#: ../Doc/library/datetime.rst:2336 msgid "Year with century as a decimal number." msgstr "Année complète sur quatre chiffres." -#: ../Doc/library/datetime.rst:2338 ../Doc/library/datetime.rst:2408 +#: ../Doc/library/datetime.rst:2336 ../Doc/library/datetime.rst:2406 msgid "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" msgstr "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" -#: ../Doc/library/datetime.rst:2341 +#: ../Doc/library/datetime.rst:2339 msgid "``%H``" msgstr "``%H``" -#: ../Doc/library/datetime.rst:2341 +#: ../Doc/library/datetime.rst:2339 msgid "Hour (24-hour clock) as a zero-padded decimal number." msgstr "Heure à deux chiffres de 00 à 23." -#: ../Doc/library/datetime.rst:2341 +#: ../Doc/library/datetime.rst:2339 msgid "00, 01, ..., 23" msgstr "00, 01, ..., 23" -#: ../Doc/library/datetime.rst:2344 +#: ../Doc/library/datetime.rst:2342 msgid "``%I``" msgstr "``%I``" -#: ../Doc/library/datetime.rst:2344 +#: ../Doc/library/datetime.rst:2342 msgid "Hour (12-hour clock) as a zero-padded decimal number." msgstr "Heure à deux chiffres pour les horloges 12h (01 à 12)." -#: ../Doc/library/datetime.rst:2347 +#: ../Doc/library/datetime.rst:2345 msgid "``%p``" msgstr "``%p``" -#: ../Doc/library/datetime.rst:2347 +#: ../Doc/library/datetime.rst:2345 msgid "Locale's equivalent of either AM or PM." msgstr "Équivalent local à AM/PM." @@ -3583,55 +3581,55 @@ msgstr "AM, PM (en_US);" msgid "am, pm (de_DE)" msgstr "am, pm (de_DE)" -#: ../Doc/library/datetime.rst:2347 +#: ../Doc/library/datetime.rst:2345 msgid "\\(1), \\(3)" msgstr "\\(1), \\(3)" -#: ../Doc/library/datetime.rst:2350 +#: ../Doc/library/datetime.rst:2348 msgid "``%M``" msgstr "``%M``" -#: ../Doc/library/datetime.rst:2350 +#: ../Doc/library/datetime.rst:2348 msgid "Minute as a zero-padded decimal number." msgstr "Minutes sur deux chiffres." -#: ../Doc/library/datetime.rst:2350 ../Doc/library/datetime.rst:2353 +#: ../Doc/library/datetime.rst:2348 ../Doc/library/datetime.rst:2351 msgid "00, 01, ..., 59" msgstr "00, 01, ..., 59" -#: ../Doc/library/datetime.rst:2353 +#: ../Doc/library/datetime.rst:2351 msgid "``%S``" msgstr "``%S``" -#: ../Doc/library/datetime.rst:2353 +#: ../Doc/library/datetime.rst:2351 msgid "Second as a zero-padded decimal number." msgstr "Secondes sur deux chiffres." -#: ../Doc/library/datetime.rst:2353 +#: ../Doc/library/datetime.rst:2351 msgid "\\(4), \\(9)" msgstr "\\(4), \\(9)" -#: ../Doc/library/datetime.rst:2356 +#: ../Doc/library/datetime.rst:2354 msgid "``%f``" msgstr "``%f``" -#: ../Doc/library/datetime.rst:2356 +#: ../Doc/library/datetime.rst:2354 msgid "Microsecond as a decimal number, zero-padded on the left." msgstr "Microsecondes sur 6 chiffres." -#: ../Doc/library/datetime.rst:2356 +#: ../Doc/library/datetime.rst:2354 msgid "000000, 000001, ..., 999999" msgstr "000000, 000001, ..., 999999" -#: ../Doc/library/datetime.rst:2356 +#: ../Doc/library/datetime.rst:2354 msgid "\\(5)" msgstr "\\(5)" -#: ../Doc/library/datetime.rst:2360 ../Doc/library/datetime.rst:2523 +#: ../Doc/library/datetime.rst:2358 ../Doc/library/datetime.rst:2521 msgid "``%z``" msgstr "``%z``" -#: ../Doc/library/datetime.rst:2360 +#: ../Doc/library/datetime.rst:2358 #, fuzzy msgid "" "UTC offset in the form ``±HHMM[SS[.ffffff]]`` (empty string if the object is " @@ -3640,43 +3638,43 @@ msgstr "" "Décalage UTC sous la forme ``±HHMM[SS[.ffffff]]`` (chaîne vide si l'instance " "est naïve)." -#: ../Doc/library/datetime.rst:2360 +#: ../Doc/library/datetime.rst:2358 msgid "(empty), +0000, -0400, +1030, +063415, -030712.345216" msgstr "(vide), +0000, -0400, +1030, +063415, -030712.345216" -#: ../Doc/library/datetime.rst:2360 +#: ../Doc/library/datetime.rst:2358 msgid "\\(6)" msgstr "\\(6)" -#: ../Doc/library/datetime.rst:2365 ../Doc/library/datetime.rst:2538 +#: ../Doc/library/datetime.rst:2363 ../Doc/library/datetime.rst:2536 msgid "``%Z``" msgstr "``%Z``" -#: ../Doc/library/datetime.rst:2365 +#: ../Doc/library/datetime.rst:2363 msgid "Time zone name (empty string if the object is naive)." msgstr "Nom du fuseau horaire (chaîne vide si l'instance est naïve)." -#: ../Doc/library/datetime.rst:2365 +#: ../Doc/library/datetime.rst:2363 msgid "(empty), UTC, EST, CST" msgstr "(vide), UTC, EST, CST" -#: ../Doc/library/datetime.rst:2368 +#: ../Doc/library/datetime.rst:2366 msgid "``%j``" msgstr "``%j``" -#: ../Doc/library/datetime.rst:2368 +#: ../Doc/library/datetime.rst:2366 msgid "Day of the year as a zero-padded decimal number." msgstr "Numéro du jour dans l'année sur trois chiffres." -#: ../Doc/library/datetime.rst:2368 +#: ../Doc/library/datetime.rst:2366 msgid "001, 002, ..., 366" msgstr "001, 002, ..., 366" -#: ../Doc/library/datetime.rst:2371 +#: ../Doc/library/datetime.rst:2369 msgid "``%U``" msgstr "``%U``" -#: ../Doc/library/datetime.rst:2371 +#: ../Doc/library/datetime.rst:2369 msgid "" "Week number of the year (Sunday as the first day of the week) as a zero " "padded decimal number. All days in a new year preceding the first Sunday are " @@ -3686,19 +3684,19 @@ msgstr "" "premier jour de la semaine). Tous les jours de l'année précédent le premier " "dimanche sont considérés comme appartenant à la semaine 0." -#: ../Doc/library/datetime.rst:2371 ../Doc/library/datetime.rst:2379 +#: ../Doc/library/datetime.rst:2369 ../Doc/library/datetime.rst:2377 msgid "00, 01, ..., 53" msgstr "00, 01, ..., 53" -#: ../Doc/library/datetime.rst:2371 ../Doc/library/datetime.rst:2379 +#: ../Doc/library/datetime.rst:2369 ../Doc/library/datetime.rst:2377 msgid "\\(7), \\(9)" msgstr "\\(7), \\(9)" -#: ../Doc/library/datetime.rst:2379 +#: ../Doc/library/datetime.rst:2377 msgid "``%W``" msgstr "``%W``" -#: ../Doc/library/datetime.rst:2379 +#: ../Doc/library/datetime.rst:2377 msgid "" "Week number of the year (Monday as the first day of the week) as a decimal " "number. All days in a new year preceding the first Monday are considered to " @@ -3708,11 +3706,11 @@ msgstr "" "premier jour de la semaine). Tous les jours de l'année précédent le premier " "lundi sont considérés comme appartenant à la semaine 0." -#: ../Doc/library/datetime.rst:2387 +#: ../Doc/library/datetime.rst:2385 msgid "``%c``" msgstr "``%c``" -#: ../Doc/library/datetime.rst:2387 +#: ../Doc/library/datetime.rst:2385 msgid "Locale's appropriate date and time representation." msgstr "Représentation locale de la date et de l'heure." @@ -3724,11 +3722,11 @@ msgstr "Tue Aug 16 21:30:00 1988 (*en_US*);" msgid "Di 16 Aug 21:30:00 1988 (de_DE)" msgstr "mar. 16 août 1988 21:30:00 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2392 +#: ../Doc/library/datetime.rst:2390 msgid "``%x``" msgstr "``%x``" -#: ../Doc/library/datetime.rst:2392 +#: ../Doc/library/datetime.rst:2390 msgid "Locale's appropriate date representation." msgstr "Représentation locale de la date." @@ -3744,11 +3742,11 @@ msgstr "08/16/1988 (*en_US*);" msgid "16.08.1988 (de_DE)" msgstr "16/08/1988 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2396 +#: ../Doc/library/datetime.rst:2394 msgid "``%X``" msgstr "``%X``" -#: ../Doc/library/datetime.rst:2396 +#: ../Doc/library/datetime.rst:2394 msgid "Locale's appropriate time representation." msgstr "Représentation locale de l'heure." @@ -3760,29 +3758,29 @@ msgstr "21:30:00 (*en_US*) ;" msgid "21:30:00 (de_DE)" msgstr "21:30:00 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2399 +#: ../Doc/library/datetime.rst:2397 msgid "``%%``" msgstr "``%%``" -#: ../Doc/library/datetime.rst:2399 +#: ../Doc/library/datetime.rst:2397 msgid "A literal ``'%'`` character." msgstr "Un caractère ``'%'`` littéral." -#: ../Doc/library/datetime.rst:2399 +#: ../Doc/library/datetime.rst:2397 msgid "%" msgstr "%" -#: ../Doc/library/datetime.rst:2402 +#: ../Doc/library/datetime.rst:2400 msgid "" "Several additional directives not required by the C89 standard are included " "for convenience. These parameters all correspond to ISO 8601 date values." msgstr "" -#: ../Doc/library/datetime.rst:2408 +#: ../Doc/library/datetime.rst:2406 msgid "``%G``" msgstr "``%G``" -#: ../Doc/library/datetime.rst:2408 +#: ../Doc/library/datetime.rst:2406 msgid "" "ISO 8601 year with century representing the year that contains the greater " "part of the ISO week (``%V``)." @@ -3790,27 +3788,27 @@ msgstr "" "Année complète ISO 8601 représentant l'année contenant la plus grande partie " "de la semaine ISO (``%V``)." -#: ../Doc/library/datetime.rst:2408 +#: ../Doc/library/datetime.rst:2406 msgid "\\(8)" msgstr "\\(8)" -#: ../Doc/library/datetime.rst:2413 +#: ../Doc/library/datetime.rst:2411 msgid "``%u``" msgstr "``%u``" -#: ../Doc/library/datetime.rst:2413 +#: ../Doc/library/datetime.rst:2411 msgid "ISO 8601 weekday as a decimal number where 1 is Monday." msgstr "Jour de la semaine ISO 8601 où 1 correspond au lundi." -#: ../Doc/library/datetime.rst:2413 +#: ../Doc/library/datetime.rst:2411 msgid "1, 2, ..., 7" msgstr "1, 2, ..., 7" -#: ../Doc/library/datetime.rst:2416 +#: ../Doc/library/datetime.rst:2414 msgid "``%V``" msgstr "``%V``" -#: ../Doc/library/datetime.rst:2416 +#: ../Doc/library/datetime.rst:2414 msgid "" "ISO 8601 week as a decimal number with Monday as the first day of the week. " "Week 01 is the week containing Jan 4." @@ -3818,15 +3816,15 @@ msgstr "" "Numéro de la semaine ISO 8601, avec lundi étant le premier jour de la " "semaine. La semaine 01 est la semaine contenant le 4 janvier." -#: ../Doc/library/datetime.rst:2416 +#: ../Doc/library/datetime.rst:2414 msgid "01, 02, ..., 53" msgstr "01, 02, ..., 53" -#: ../Doc/library/datetime.rst:2416 +#: ../Doc/library/datetime.rst:2414 msgid "\\(8), \\(9)" msgstr "\\(8), \\(9)" -#: ../Doc/library/datetime.rst:2423 +#: ../Doc/library/datetime.rst:2421 #, fuzzy msgid "" "These may not be available on all platforms when used with the :meth:" @@ -3843,7 +3841,7 @@ msgstr "" "directives d'année et de semaine précédentes. Appeler :meth:`strptime` avec " "des directives ISO 8601 incomplètes ou ambiguës lèvera une :exc:`ValueError`." -#: ../Doc/library/datetime.rst:2428 +#: ../Doc/library/datetime.rst:2426 #, fuzzy msgid "" "The full set of format codes supported varies across platforms, because " @@ -3857,15 +3855,15 @@ msgstr "" "voir un ensemble complet des codes de formatage implémentés par votre " "plateforme, consultez la documentation de :manpage:`strftime(3)`." -#: ../Doc/library/datetime.rst:2433 +#: ../Doc/library/datetime.rst:2431 msgid "``%G``, ``%u`` and ``%V`` were added." msgstr "``%G``, ``%u`` et ``%V`` ont été ajoutés." -#: ../Doc/library/datetime.rst:2437 +#: ../Doc/library/datetime.rst:2435 msgid "Technical Detail" msgstr "" -#: ../Doc/library/datetime.rst:2439 +#: ../Doc/library/datetime.rst:2437 #, fuzzy msgid "" "Broadly speaking, ``d.strftime(fmt)`` acts like the :mod:`time` module's " @@ -3879,7 +3877,7 @@ msgstr "" "la fonction ``time.strftime(fmt, d.timetuple())`` du module :mod:`time`, " "bien que tous les objets ne comportent pas de méthode :meth:`timetuple`." -#: ../Doc/library/datetime.rst:2443 +#: ../Doc/library/datetime.rst:2441 msgid "" "For the :meth:`datetime.strptime` class method, the default value is " "``1900-01-01T00:00:00.000``: any components not specified in the format " @@ -3889,18 +3887,18 @@ msgstr "" "``1900-01-01T00:00:00.000`` : tous les composants non spécifiés dans la " "chaîne de formatage seront retirés de la valeur par défaut. [#]_" -#: ../Doc/library/datetime.rst:2447 +#: ../Doc/library/datetime.rst:2445 msgid "Using ``datetime.strptime(date_string, format)`` is equivalent to::" msgstr "" -#: ../Doc/library/datetime.rst:2451 +#: ../Doc/library/datetime.rst:2449 msgid "" "except when the format includes sub-second components or timezone offset " "information, which are supported in ``datetime.strptime`` but are discarded " "by ``time.strptime``." msgstr "" -#: ../Doc/library/datetime.rst:2455 +#: ../Doc/library/datetime.rst:2453 #, fuzzy msgid "" "For :class:`.time` objects, the format codes for year, month, and day should " @@ -3913,7 +3911,7 @@ msgstr "" "possèdent pas de telles valeurs. S'ils sont tout de même utilisés, ``1900`` " "est substitué à l'année, et ``1`` au mois et au jour." -#: ../Doc/library/datetime.rst:2459 +#: ../Doc/library/datetime.rst:2457 #, fuzzy msgid "" "For :class:`date` objects, the format codes for hours, minutes, seconds, and " @@ -3925,7 +3923,7 @@ msgstr "" "les objets :class:`date` ne possèdent pas de telles valeurs. S'ils sont " "tous de même utilisés, ils sont substitués par ``0``." -#: ../Doc/library/datetime.rst:2463 +#: ../Doc/library/datetime.rst:2461 msgid "" "For the same reason, handling of format strings containing Unicode code " "points that can't be represented in the charset of the current locale is " @@ -3940,7 +3938,7 @@ msgstr "" "plateformes ``strftime`` lève une :exc:`UnicodeError` ou renvoie une chaîne " "vide." -#: ../Doc/library/datetime.rst:2472 +#: ../Doc/library/datetime.rst:2470 msgid "" "Because the format depends on the current locale, care should be taken when " "making assumptions about the output value. Field orderings will vary (for " @@ -3959,7 +3957,7 @@ msgstr "" "utilisez :meth:`locale.getlocale` pour déterminer l'encodage de la locale " "courante)." -#: ../Doc/library/datetime.rst:2481 +#: ../Doc/library/datetime.rst:2479 msgid "" "The :meth:`strptime` method can parse years in the full [1, 9999] range, but " "years < 1000 must be zero-filled to 4-digit width." @@ -3968,7 +3966,7 @@ msgstr "" "[1, 9999], mais toutes les années < 1000 doivent être représentées sur " "quatre chiffres." -#: ../Doc/library/datetime.rst:2484 +#: ../Doc/library/datetime.rst:2482 msgid "" "In previous versions, :meth:`strftime` method was restricted to years >= " "1900." @@ -3976,13 +3974,13 @@ msgstr "" "Dans les versions précédentes, la méthode :meth:`strftime` était limitée aux " "années >= 1900." -#: ../Doc/library/datetime.rst:2488 +#: ../Doc/library/datetime.rst:2486 msgid "" "In version 3.2, :meth:`strftime` method was restricted to years >= 1000." msgstr "" "En version 3.2, la méthode :meth:`strftime` était limitée aux années >= 1000." -#: ../Doc/library/datetime.rst:2493 +#: ../Doc/library/datetime.rst:2491 msgid "" "When used with the :meth:`strptime` method, the ``%p`` directive only " "affects the output hour field if the ``%I`` directive is used to parse the " @@ -3992,7 +3990,7 @@ msgstr "" "n'affecte l'heure extraite que si la directive ``%I`` est utilisée pour " "analyser l'heure." -#: ../Doc/library/datetime.rst:2497 +#: ../Doc/library/datetime.rst:2495 msgid "" "Unlike the :mod:`time` module, the :mod:`datetime` module does not support " "leap seconds." @@ -4000,7 +3998,7 @@ msgstr "" "À l'inverse du module :mod:`time`, le module :mod:`datetime` ne gère pas les " "secondes intercalaires." -#: ../Doc/library/datetime.rst:2501 +#: ../Doc/library/datetime.rst:2499 #, fuzzy msgid "" "When used with the :meth:`strptime` method, the ``%f`` directive accepts " @@ -4014,7 +4012,7 @@ msgstr "" "caractères de formatage du standard C (mais implémentée séparément dans les " "objets *datetime*, la rendant ainsi toujours disponible)." -#: ../Doc/library/datetime.rst:2508 +#: ../Doc/library/datetime.rst:2506 msgid "" "For a naive object, the ``%z`` and ``%Z`` format codes are replaced by empty " "strings." @@ -4022,17 +4020,17 @@ msgstr "" "Pour les objets naïfs, les codes de formatage ``%z`` et ``%Z`` sont " "remplacés par des chaînes vides." -#: ../Doc/library/datetime.rst:2511 +#: ../Doc/library/datetime.rst:2509 msgid "For an aware object:" msgstr "Pour un objet avisé :" -#: ../Doc/library/datetime.rst:2514 +#: ../Doc/library/datetime.rst:2512 #, fuzzy msgid "" ":meth:`utcoffset` is transformed into a string of the form ``±HHMM[SS[." "ffffff]]``, where ``HH`` is a 2-digit string giving the number of UTC offset " "hours, ``MM`` is a 2-digit string giving the number of UTC offset minutes, " -"SS is a 2-digit string giving the number of UTC offset seconds and " +"``SS`` is a 2-digit string giving the number of UTC offset seconds and " "``ffffff`` is a 6-digit string giving the number of UTC offset microseconds. " "The ``ffffff`` part is omitted when the offset is a whole number of seconds " "and both the ``ffffff`` and the ``SS`` part is omitted when the offset is a " @@ -4050,7 +4048,7 @@ msgstr "" "``timedelta(hours=-3, minutes=-30)``, ``%z`` est remplacé par la chaîne " "`'-0330'``." -#: ../Doc/library/datetime.rst:2528 +#: ../Doc/library/datetime.rst:2526 msgid "" "When the ``%z`` directive is provided to the :meth:`strptime` method, the " "UTC offsets can have a colon as a separator between hours, minutes and " @@ -4062,7 +4060,7 @@ msgstr "" "minutes et secondes. Par exemple, ``'+01:00:00'``, est analysé comme un " "décalage d'une heure. Par ailleurs, ``'Z'`` est identique à ``'+00:00'``." -#: ../Doc/library/datetime.rst:2536 +#: ../Doc/library/datetime.rst:2534 #, fuzzy msgid "" "If :meth:`tzname` returns ``None``, ``%Z`` is replaced by an empty string. " @@ -4072,7 +4070,7 @@ msgstr "" "vide. Autrement ``%Z`` est remplacé par la valeur renvoyée, qui doit être " "une chaîne." -#: ../Doc/library/datetime.rst:2540 +#: ../Doc/library/datetime.rst:2538 #, fuzzy msgid "" "When the ``%z`` directive is provided to the :meth:`strptime` method, an " @@ -4083,7 +4081,7 @@ msgstr "" "objet :class:`.datetime` avisé est construit. L'attribut ``tzinfo`` du " "résultat aura pour valeur une instance de :class:`timezone`." -#: ../Doc/library/datetime.rst:2546 +#: ../Doc/library/datetime.rst:2544 msgid "" "When used with the :meth:`strptime` method, ``%U`` and ``%W`` are only used " "in calculations when the day of the week and the calendar year (``%Y``) are " @@ -4093,7 +4091,7 @@ msgstr "" "et ``%W`` ne sont utilisées dans les calculs que si le jour de la semaine et " "l'année calendaire (``%Y``) sont spécifiés." -#: ../Doc/library/datetime.rst:2551 +#: ../Doc/library/datetime.rst:2549 msgid "" "Similar to ``%U`` and ``%W``, ``%V`` is only used in calculations when the " "day of the week and the ISO year (``%G``) are specified in a :meth:" @@ -4105,7 +4103,7 @@ msgstr "" "dans la chaîne de formatage :meth:`strptime`. Notez aussi que ``%G`` et ``" "%Y`` ne sont pas interchangeables." -#: ../Doc/library/datetime.rst:2557 +#: ../Doc/library/datetime.rst:2555 msgid "" "When used with the :meth:`strptime` method, the leading zero is optional " "for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%J``, ``%U``, " @@ -4116,15 +4114,15 @@ msgstr "" "%M``, ``%S``, ``%J``, ``%U``, ``%W`` et ``%V``. Le format ``%y`` requiert un " "zéro en entête." -#: ../Doc/library/datetime.rst:2562 +#: ../Doc/library/datetime.rst:2560 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/datetime.rst:2563 +#: ../Doc/library/datetime.rst:2561 msgid "If, that is, we ignore the effects of Relativity" msgstr "Si on ignore les effets de la Relativité" -#: ../Doc/library/datetime.rst:2565 +#: ../Doc/library/datetime.rst:2563 #, fuzzy msgid "" "This matches the definition of the \"proleptic Gregorian\" calendar in " @@ -4142,7 +4140,7 @@ msgstr "" "base de tous les calculs. Référez-vous au livre pour les algorithmes de " "conversion entre calendriers grégorien proleptique et les autres systèmes." -#: ../Doc/library/datetime.rst:2571 +#: ../Doc/library/datetime.rst:2569 #, fuzzy msgid "" "See R. H. van Gent's `guide to the mathematics of the ISO 8601 calendar " @@ -4153,7 +4151,7 @@ msgstr "" "grégorien. Voir https://www.staff.science.uu.nl/~gent0113/calendar/" "isocalendar.htm pour une bonne explication." -#: ../Doc/library/datetime.rst:2575 +#: ../Doc/library/datetime.rst:2573 msgid "" "Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since ``1900`` is " "not a leap year." diff --git a/library/dis.po b/library/dis.po index 86bbb8e1..e7dd6ac0 100644 --- a/library/dis.po +++ b/library/dis.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-07-18 21:03+0200\n" "Last-Translator: Aya Keddam \n" "Language-Team: FRENCH \n" @@ -1261,62 +1261,64 @@ msgstr "" #: ../Doc/library/dis.rst:1179 msgid "" -"Loads a method named ``co_names[namei]`` from TOS object. TOS is popped and " -"method and TOS are pushed when interpreter can call unbound method directly. " -"TOS will be used as the first argument (``self``) by :opcode:`CALL_METHOD`. " -"Otherwise, ``NULL`` and method is pushed (method is bound method or " -"something else)." +"Loads a method named ``co_names[namei]`` from the TOS object. TOS is popped. " +"This bytecode distinguishes two cases: if TOS has a method with the correct " +"name, the bytecode pushes the unbound method and TOS. TOS will be used as " +"the first argument (``self``) by :opcode:`CALL_METHOD` when calling the " +"unbound method. Otherwise, ``NULL`` and the object return by the attribute " +"lookup are pushed." msgstr "" -#: ../Doc/library/dis.rst:1190 +#: ../Doc/library/dis.rst:1191 msgid "" -"Calls a method. *argc* is number of positional arguments. Keyword arguments " -"are not supported. This opcode is designed to be used with :opcode:" -"`LOAD_METHOD`. Positional arguments are on top of the stack. Below them, " -"two items described in :opcode:`LOAD_METHOD` on the stack. All of them are " -"popped and return value is pushed." +"Calls a method. *argc* is the number of positional arguments. Keyword " +"arguments are not supported. This opcode is designed to be used with :" +"opcode:`LOAD_METHOD`. Positional arguments are on top of the stack. Below " +"them, the two items described in :opcode:`LOAD_METHOD` are on the stack " +"(either ``self`` and an unbound method object or ``NULL`` and an arbitrary " +"callable). All of them are popped and the return value is pushed." msgstr "" -#: ../Doc/library/dis.rst:1201 +#: ../Doc/library/dis.rst:1203 msgid "" "Pushes a new function object on the stack. From bottom to top, the consumed " "stack must consist of values if the argument carries a specified flag value" msgstr "" -#: ../Doc/library/dis.rst:1204 +#: ../Doc/library/dis.rst:1206 msgid "" "``0x01`` a tuple of default values for positional-only and positional-or-" "keyword parameters in positional order" msgstr "" -#: ../Doc/library/dis.rst:1206 +#: ../Doc/library/dis.rst:1208 msgid "``0x02`` a dictionary of keyword-only parameters' default values" msgstr "" -#: ../Doc/library/dis.rst:1207 +#: ../Doc/library/dis.rst:1209 msgid "``0x04`` an annotation dictionary" msgstr "" -#: ../Doc/library/dis.rst:1208 +#: ../Doc/library/dis.rst:1210 msgid "``0x08`` a tuple containing cells for free variables, making a closure" msgstr "" -#: ../Doc/library/dis.rst:1209 +#: ../Doc/library/dis.rst:1211 msgid "the code associated with the function (at TOS1)" msgstr "" -#: ../Doc/library/dis.rst:1210 +#: ../Doc/library/dis.rst:1212 msgid "the :term:`qualified name` of the function (at TOS)" msgstr "" -#: ../Doc/library/dis.rst:1217 +#: ../Doc/library/dis.rst:1219 msgid "" "Pushes a slice object on the stack. *argc* must be 2 or 3. If it is 2, " "``slice(TOS1, TOS)`` is pushed; if it is 3, ``slice(TOS2, TOS1, TOS)`` is " "pushed. See the :func:`slice` built-in function for more information." msgstr "" -#: ../Doc/library/dis.rst:1224 +#: ../Doc/library/dis.rst:1226 msgid "" "Prefixes any opcode which has an argument too big to fit into the default " "one byte. *ext* holds an additional byte which act as higher bits in the " @@ -1324,86 +1326,86 @@ msgid "" "allowed, forming an argument from two-byte to four-byte." msgstr "" -#: ../Doc/library/dis.rst:1232 +#: ../Doc/library/dis.rst:1234 msgid "" "Used for implementing formatted literal strings (f-strings). Pops an " "optional *fmt_spec* from the stack, then a required *value*. *flags* is " "interpreted as follows:" msgstr "" -#: ../Doc/library/dis.rst:1236 +#: ../Doc/library/dis.rst:1238 msgid "``(flags & 0x03) == 0x00``: *value* is formatted as-is." msgstr "" -#: ../Doc/library/dis.rst:1237 +#: ../Doc/library/dis.rst:1239 msgid "" "``(flags & 0x03) == 0x01``: call :func:`str` on *value* before formatting it." msgstr "" -#: ../Doc/library/dis.rst:1239 +#: ../Doc/library/dis.rst:1241 msgid "" "``(flags & 0x03) == 0x02``: call :func:`repr` on *value* before formatting " "it." msgstr "" -#: ../Doc/library/dis.rst:1241 +#: ../Doc/library/dis.rst:1243 msgid "" "``(flags & 0x03) == 0x03``: call :func:`ascii` on *value* before formatting " "it." msgstr "" -#: ../Doc/library/dis.rst:1243 +#: ../Doc/library/dis.rst:1245 msgid "" "``(flags & 0x04) == 0x04``: pop *fmt_spec* from the stack and use it, else " "use an empty *fmt_spec*." msgstr "" -#: ../Doc/library/dis.rst:1246 +#: ../Doc/library/dis.rst:1248 msgid "" "Formatting is performed using :c:func:`PyObject_Format`. The result is " "pushed on the stack." msgstr "" -#: ../Doc/library/dis.rst:1254 +#: ../Doc/library/dis.rst:1256 msgid "" "This is not really an opcode. It identifies the dividing line between " "opcodes which don't use their argument and those that do (``< " "HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively)." msgstr "" -#: ../Doc/library/dis.rst:1258 +#: ../Doc/library/dis.rst:1260 msgid "" "Now every instruction has an argument, but opcodes ``< HAVE_ARGUMENT`` " "ignore it. Before, only opcodes ``>= HAVE_ARGUMENT`` had an argument." msgstr "" -#: ../Doc/library/dis.rst:1266 +#: ../Doc/library/dis.rst:1268 msgid "Opcode collections" msgstr "" -#: ../Doc/library/dis.rst:1268 +#: ../Doc/library/dis.rst:1270 msgid "" "These collections are provided for automatic introspection of bytecode " "instructions:" msgstr "" -#: ../Doc/library/dis.rst:1273 +#: ../Doc/library/dis.rst:1275 msgid "Sequence of operation names, indexable using the bytecode." msgstr "" -#: ../Doc/library/dis.rst:1278 +#: ../Doc/library/dis.rst:1280 msgid "Dictionary mapping operation names to bytecodes." msgstr "" -#: ../Doc/library/dis.rst:1283 +#: ../Doc/library/dis.rst:1285 msgid "Sequence of all compare operation names." msgstr "" -#: ../Doc/library/dis.rst:1288 +#: ../Doc/library/dis.rst:1290 msgid "Sequence of bytecodes that access a constant." msgstr "" -#: ../Doc/library/dis.rst:1293 +#: ../Doc/library/dis.rst:1295 msgid "" "Sequence of bytecodes that access a free variable (note that 'free' in this " "context refers to names in the current scope that are referenced by inner " @@ -1411,22 +1413,22 @@ msgid "" "does *not* include references to global or builtin scopes)." msgstr "" -#: ../Doc/library/dis.rst:1301 +#: ../Doc/library/dis.rst:1303 msgid "Sequence of bytecodes that access an attribute by name." msgstr "" -#: ../Doc/library/dis.rst:1306 +#: ../Doc/library/dis.rst:1308 msgid "Sequence of bytecodes that have a relative jump target." msgstr "" -#: ../Doc/library/dis.rst:1311 +#: ../Doc/library/dis.rst:1313 msgid "Sequence of bytecodes that have an absolute jump target." msgstr "" -#: ../Doc/library/dis.rst:1316 +#: ../Doc/library/dis.rst:1318 msgid "Sequence of bytecodes that access a local variable." msgstr "" -#: ../Doc/library/dis.rst:1321 +#: ../Doc/library/dis.rst:1323 msgid "Sequence of bytecodes of Boolean operations." msgstr "" diff --git a/library/ensurepip.po b/library/ensurepip.po index 7955d924..a9ed6573 100644 --- a/library/ensurepip.po +++ b/library/ensurepip.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2017-08-10 00:59+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -115,12 +115,9 @@ msgid "" "script will *not* be installed." msgstr "" -#: ../Doc/library/ensurepip.rst:77 -msgid "``--default-pip``: if a \"default pip\" installation is requested, the" -msgstr "" - -#: ../Doc/library/ensurepip.rst:77 +#: ../Doc/library/ensurepip.rst:76 msgid "" +"``--default-pip``: if a \"default pip\" installation is requested, the " "``pip`` script will be installed in addition to the two regular scripts." msgstr "" diff --git a/library/enum.po b/library/enum.po index acc2d28b..4cfaf191 100644 --- a/library/enum.po +++ b/library/enum.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-12-11 11:26+0100\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" @@ -94,7 +94,10 @@ msgstr "" "un seul nom." #: ../Doc/library/enum.rst:58 -msgid "Instances are replaced with an appropriate value for Enum members." +#, fuzzy +msgid "" +"Instances are replaced with an appropriate value for Enum members. Initial " +"value starts at 1." msgstr "" "Les instances de cette classe remplacent les membres d'une *Enum* par une " "valeur appropriée." diff --git a/library/idle.po b/library/idle.po index a249f1d5..d1166176 100644 --- a/library/idle.po +++ b/library/idle.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-12-11 11:17+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -861,10 +861,11 @@ msgstr "" "presse-papier standard, également disponibles dans le menu *Edit*." #: ../Doc/library/idle.rst:371 +#, fuzzy msgid "" "Editor windows also have breakpoint functions. Lines with a breakpoint set " "are specially marked. Breakpoints only have an effect when running under " -"the debugger. Breakpoints for a file are saved in the user's .idlerc " +"the debugger. Breakpoints for a file are saved in the user's ``.idlerc`` " "directory." msgstr "" "Les fenêtres d'édition ont aussi des fonctions de points d'arrêt. Les lignes " @@ -872,37 +873,37 @@ msgstr "" "que lorsque l'exécution se déroule sous débogueur. Les points d'arrêt pour " "un fichier sont enregistrés dans le dossier *.idlerc* de l'utilisateur." -#: ../Doc/library/idle.rst:376 +#: ../Doc/library/idle.rst:377 msgid "Set Breakpoint" msgstr "*Set Breakpoint*" -#: ../Doc/library/idle.rst:376 +#: ../Doc/library/idle.rst:377 msgid "Set a breakpoint on the current line." msgstr "Place un point d'arrêt sur la ligne active." -#: ../Doc/library/idle.rst:379 +#: ../Doc/library/idle.rst:380 msgid "Clear Breakpoint" msgstr "*Clear Breakpoint*" -#: ../Doc/library/idle.rst:379 +#: ../Doc/library/idle.rst:380 msgid "Clear the breakpoint on that line." msgstr "Enlève le point d'arrêt sur cette ligne." -#: ../Doc/library/idle.rst:381 +#: ../Doc/library/idle.rst:382 msgid "Shell and Output windows also have the following." msgstr "" "Les fenêtres de console et d'affichage disposent en plus des éléments " "suivants." -#: ../Doc/library/idle.rst:384 +#: ../Doc/library/idle.rst:385 msgid "Go to file/line" msgstr "*Go to file/line*" -#: ../Doc/library/idle.rst:384 +#: ../Doc/library/idle.rst:385 msgid "Same as in Debug menu." msgstr "Même effet que dans le menu *Debug*." -#: ../Doc/library/idle.rst:386 +#: ../Doc/library/idle.rst:387 msgid "" "The Shell window also has an output squeezing facility explained in the " "*Python Shell window* subsection below." @@ -910,11 +911,11 @@ msgstr "" "Les fenêtres de console ont également une fonction de réduction des sorties " "détaillée dans la sous-section *fenêtre de console de Python* ci-dessous." -#: ../Doc/library/idle.rst:392 +#: ../Doc/library/idle.rst:393 msgid "Squeeze" msgstr "*Squeeze*" -#: ../Doc/library/idle.rst:390 +#: ../Doc/library/idle.rst:391 msgid "" "If the cursor is over an output line, squeeze all the output between the " "code above and the prompt below down to a 'Squeezed text' label." @@ -922,15 +923,15 @@ msgstr "" "Si le curseur est sur une ligne d'affichage, compacte toute la sortie entre " "le code au-dessus et l'invite en-dessous en un bouton *\"Squeezed text\"*." -#: ../Doc/library/idle.rst:397 +#: ../Doc/library/idle.rst:398 msgid "Editing and navigation" msgstr "Édition et navigation" -#: ../Doc/library/idle.rst:400 +#: ../Doc/library/idle.rst:401 msgid "Editor windows" msgstr "Fenêtre d'édition" -#: ../Doc/library/idle.rst:402 +#: ../Doc/library/idle.rst:403 msgid "" "IDLE may open editor windows when it starts, depending on settings and how " "you start IDLE. Thereafter, use the File menu. There can be only one open " @@ -941,7 +942,7 @@ msgstr "" "menu *File*. Il ne peut y avoir qu'une fenêtre d'édition pour un fichier " "donné." -#: ../Doc/library/idle.rst:406 +#: ../Doc/library/idle.rst:407 msgid "" "The title bar contains the name of the file, the full path, and the version " "of Python and IDLE running the window. The status bar contains the line " @@ -954,7 +955,7 @@ msgstr "" "\"*). Les numéros de ligne commencent à 1 ; les numéros de colonne " "commencent à 0." -#: ../Doc/library/idle.rst:411 +#: ../Doc/library/idle.rst:412 msgid "" "IDLE assumes that files with a known .py* extension contain Python code and " "that other files do not. Run Python code with the Run menu." @@ -963,11 +964,11 @@ msgstr "" "contiennent du code Python, mais pas les autres fichiers. Exécutez du code " "Python avec le menu *Run*." -#: ../Doc/library/idle.rst:415 +#: ../Doc/library/idle.rst:416 msgid "Key bindings" msgstr "Raccourcis clavier" -#: ../Doc/library/idle.rst:417 +#: ../Doc/library/idle.rst:418 msgid "" "In this section, 'C' refers to the :kbd:`Control` key on Windows and Unix " "and the :kbd:`Command` key on macOS." @@ -975,59 +976,59 @@ msgstr "" "Dans cette section, *\"C\"* renvoie à la touche :kbd:`Contrôle`sous Windows " "et *Unix* et à la touche :kbd:`Commande` sous *macOS*." -#: ../Doc/library/idle.rst:420 +#: ../Doc/library/idle.rst:421 msgid ":kbd:`Backspace` deletes to the left; :kbd:`Del` deletes to the right" msgstr "" ":kbd:`Retour arrière` supprime à gauche ; :kbd:`Suppr` supprime à droite" -#: ../Doc/library/idle.rst:422 +#: ../Doc/library/idle.rst:423 msgid "" ":kbd:`C-Backspace` delete word left; :kbd:`C-Del` delete word to the right" msgstr "" ":kbd:`C-Retour arrière` supprime le mot à gauche ; :kbd:`C-Suppr` supprime " "le mot à droite" -#: ../Doc/library/idle.rst:424 +#: ../Doc/library/idle.rst:425 msgid "Arrow keys and :kbd:`Page Up`/:kbd:`Page Down` to move around" msgstr "" "Utilisez les touches flèche et :kbd:`Page Haut` / :kbd:`Page Bas` pour vous " "déplacer" -#: ../Doc/library/idle.rst:426 +#: ../Doc/library/idle.rst:427 msgid ":kbd:`C-LeftArrow` and :kbd:`C-RightArrow` moves by words" msgstr "" ":kbd:`C-Flèche Gauche` et :kbd:`C-Flèche Droite` déplacent de mot en mot" -#: ../Doc/library/idle.rst:428 +#: ../Doc/library/idle.rst:429 msgid ":kbd:`Home`/:kbd:`End` go to begin/end of line" msgstr ":kbd:`Début`/:kbd:`Fin` vont au début / à la fin de la ligne" -#: ../Doc/library/idle.rst:430 +#: ../Doc/library/idle.rst:431 msgid ":kbd:`C-Home`/:kbd:`C-End` go to begin/end of file" msgstr ":kbd:`C-Début` / :kbd:`C-Fin` vont au début / à la fin du fichier" -#: ../Doc/library/idle.rst:432 +#: ../Doc/library/idle.rst:433 msgid "Some useful Emacs bindings are inherited from Tcl/Tk:" msgstr "Quelques raccourcis *Emacs* utiles sont hérités de *Tcl/Tk* :" -#: ../Doc/library/idle.rst:434 +#: ../Doc/library/idle.rst:435 msgid ":kbd:`C-a` beginning of line" msgstr ":kbd:`C-a` début de ligne" -#: ../Doc/library/idle.rst:436 +#: ../Doc/library/idle.rst:437 msgid ":kbd:`C-e` end of line" msgstr ":kbd:`C-e` fin de ligne" -#: ../Doc/library/idle.rst:438 +#: ../Doc/library/idle.rst:439 msgid ":kbd:`C-k` kill line (but doesn't put it in clipboard)" msgstr "" ":kbd:`C-k` supprime la ligne (mais ne la met pas dans le presse-papier)" -#: ../Doc/library/idle.rst:440 +#: ../Doc/library/idle.rst:441 msgid ":kbd:`C-l` center window around the insertion point" msgstr ":kbd:`C-l` centre la fenêtre autour du point d’insertion" -#: ../Doc/library/idle.rst:442 +#: ../Doc/library/idle.rst:443 msgid "" ":kbd:`C-b` go backward one character without deleting (usually you can also " "use the cursor key for this)" @@ -1035,7 +1036,7 @@ msgstr "" ":kbd:`C-b` recule d'un caractère sans le supprimer (habituellement vous " "pouvez également utiliser les touches flèches pour faire cela)" -#: ../Doc/library/idle.rst:445 +#: ../Doc/library/idle.rst:446 msgid "" ":kbd:`C-f` go forward one character without deleting (usually you can also " "use the cursor key for this)" @@ -1043,18 +1044,18 @@ msgstr "" ":kbd:`C-f` avance d'un caractère sans le supprimer (habituellement vous " "pouvez également utiliser les touches flèches pour faire cela)" -#: ../Doc/library/idle.rst:448 +#: ../Doc/library/idle.rst:449 msgid "" ":kbd:`C-p` go up one line (usually you can also use the cursor key for this)" msgstr "" ":kbd:`C-p` remonte d'une ligne (habituellement vous pouvez également " "utiliser les touches flèches pour faire cela)" -#: ../Doc/library/idle.rst:451 +#: ../Doc/library/idle.rst:452 msgid ":kbd:`C-d` delete next character" msgstr ":kbd:`C-d` supprime le caractère suivant" -#: ../Doc/library/idle.rst:453 +#: ../Doc/library/idle.rst:454 msgid "" "Standard keybindings (like :kbd:`C-c` to copy and :kbd:`C-v` to paste) may " "work. Keybindings are selected in the Configure IDLE dialog." @@ -1063,11 +1064,11 @@ msgstr "" "pour coller) peuvent fonctionner. Les raccourcis clavier sont sélectionnés " "dans la fenêtre de configuration d'*IDLE*." -#: ../Doc/library/idle.rst:457 +#: ../Doc/library/idle.rst:458 msgid "Automatic indentation" msgstr "Indentation automatique" -#: ../Doc/library/idle.rst:459 +#: ../Doc/library/idle.rst:460 msgid "" "After a block-opening statement, the next line is indented by 4 spaces (in " "the Python Shell window by one tab). After certain keywords (break, return " @@ -1084,7 +1085,7 @@ msgstr "" "tabulation), en nombre dépendant de la configuration. Les tabulations sont " "actuellement restreintes à quatre espaces à cause de limitations de *Tcl/Tk*." -#: ../Doc/library/idle.rst:466 +#: ../Doc/library/idle.rst:467 msgid "" "See also the indent/dedent region commands on the :ref:`Format menu `." @@ -1092,11 +1093,11 @@ msgstr "" "Cf. les commandes *indent/dedent region* dans le :ref:`menu *Format* `." -#: ../Doc/library/idle.rst:473 +#: ../Doc/library/idle.rst:474 msgid "Completions" msgstr "Complétions" -#: ../Doc/library/idle.rst:475 +#: ../Doc/library/idle.rst:476 msgid "" "Completions are supplied for functions, classes, and attributes of classes, " "both built-in and user-defined. Completions are also provided for filenames." @@ -1105,7 +1106,7 @@ msgstr "" "classes incluses par défaut et celles définies par l'utilisateur. Les " "complétions sont aussi fournies pour les noms de fichiers." -#: ../Doc/library/idle.rst:479 +#: ../Doc/library/idle.rst:480 msgid "" "The AutoCompleteWindow (ACW) will open after a predefined delay (default is " "two seconds) after a '.' or (in a string) an os.sep is typed. If after one " @@ -1118,7 +1119,7 @@ msgstr "" "(éventuellement suivi d'autres caractères), une tabulation est saisie, " "l'**ACW** s'ouvre immédiatement si une complétion compatible est trouvée." -#: ../Doc/library/idle.rst:484 +#: ../Doc/library/idle.rst:485 msgid "" "If there is only one possible completion for the characters entered, a :kbd:" "`Tab` will supply that completion without opening the ACW." @@ -1126,7 +1127,7 @@ msgstr "" "S'il n'y a qu'une seule complétion possible pour le caractère saisi, un :kbd:" "`Tab` fournit cette complétion sans ouvrir l'*ACW*." -#: ../Doc/library/idle.rst:487 +#: ../Doc/library/idle.rst:488 msgid "" "'Show Completions' will force open a completions window, by default the :kbd:" "`C-space` will open a completions window. In an empty string, this will " @@ -1143,7 +1144,7 @@ msgstr "" "modules importés. Si des caractères ont été saisis, l'*ACW* essaie d'être " "plus spécifique." -#: ../Doc/library/idle.rst:494 +#: ../Doc/library/idle.rst:495 msgid "" "If a string of characters is typed, the ACW selection will jump to the entry " "most closely matching those characters. Entering a :kbd:`tab` will cause " @@ -1160,7 +1161,7 @@ msgstr "" "la sélection à la souris et la molette de la souris fonctionnent tous sur " "l'*ACW*." -#: ../Doc/library/idle.rst:501 +#: ../Doc/library/idle.rst:502 msgid "" "\"Hidden\" attributes can be accessed by typing the beginning of hidden name " "after a '.', e.g. '_'. This allows access to modules with ``__all__`` set, " @@ -1170,13 +1171,13 @@ msgstr "" "nom caché après un *\"*.\"**, e.g.\"**_\"**. Ceci permet l'accès aux modules " "utilisant ``__all__`` ou aux attributs privés des classes." -#: ../Doc/library/idle.rst:505 +#: ../Doc/library/idle.rst:506 msgid "Completions and the 'Expand Word' facility can save a lot of typing!" msgstr "" "Les complétions et la fonctionnalité *\"*Expand Word*\"* peuvent vous faire " "économiser beaucoup de temps !" -#: ../Doc/library/idle.rst:507 +#: ../Doc/library/idle.rst:508 msgid "" "Completions are currently limited to those in the namespaces. Names in an " "Editor window which are not via ``__main__`` and :data:`sys.modules` will " @@ -1191,7 +1192,7 @@ msgstr "" "lui-même place quelques modules dans *sys.modules*, qui peuvent être donc " "accédés par défaut, comme le module *re*." -#: ../Doc/library/idle.rst:513 +#: ../Doc/library/idle.rst:514 msgid "" "If you don't like the ACW popping up unbidden, simply make the delay longer " "or disable the extension." @@ -1199,11 +1200,11 @@ msgstr "" "Si vous n'aimez pas que l'*ACW* s'affiche spontanément, vous pouvez " "simplement augmenter le délai ou désactiver l'extension." -#: ../Doc/library/idle.rst:519 +#: ../Doc/library/idle.rst:520 msgid "Calltips" msgstr "Info-bulles" -#: ../Doc/library/idle.rst:521 +#: ../Doc/library/idle.rst:522 msgid "" "A calltip is shown when one types :kbd:`(` after the name of an *accessible* " "function. A name expression may include dots and subscripts. A calltip " @@ -1218,7 +1219,7 @@ msgstr "" "soit saisi. Quand le curseur est dans la partie *\"arguments\"* de la " "définition, le menu ou raccourci affiche une info-bulle." -#: ../Doc/library/idle.rst:527 +#: ../Doc/library/idle.rst:528 msgid "" "A calltip consists of the function signature and the first line of the " "docstring. For builtins without an accessible signature, the calltip " @@ -1230,7 +1231,7 @@ msgstr "" "accessible, l'info-bulle contient toutes les lignes jusqu'à la cinquième " "ligne ou la première ligne vide. Ces détails sont sujets à changement." -#: ../Doc/library/idle.rst:532 +#: ../Doc/library/idle.rst:533 msgid "" "The set of *accessible* functions depends on what modules have been imported " "into the user process, including those imported by Idle itself, and what " @@ -1241,7 +1242,7 @@ msgstr "" "lui-même et quelles définitions ont été exécutées, le tout depuis le dernier " "redémarrage." -#: ../Doc/library/idle.rst:536 +#: ../Doc/library/idle.rst:537 msgid "" "For example, restart the Shell and enter ``itertools.count(``. A calltip " "appears because Idle imports itertools into the user process for its own " @@ -1256,7 +1257,7 @@ msgstr "" "menu ou le raccourci ne font rien non plus. Saisir ``import *turtle`` puis " "``turtle.write(`` fonctionnera." -#: ../Doc/library/idle.rst:542 +#: ../Doc/library/idle.rst:543 msgid "" "In an editor, import statements have no effect until one runs the file. One " "might want to run a file after writing the import statements at the top, or " @@ -1267,11 +1268,11 @@ msgstr "" "les commandes d'importation au début, ou immédiatement exécuter un fichier " "existant avant de l'éditer." -#: ../Doc/library/idle.rst:549 +#: ../Doc/library/idle.rst:550 msgid "Code Context" msgstr "Contexte du code" -#: ../Doc/library/idle.rst:551 +#: ../Doc/library/idle.rst:552 msgid "" "Within an editor window containing Python code, code context can be toggled " "in order to show or hide a pane at the top of the window. When shown, this " @@ -1296,7 +1297,7 @@ msgstr "" "activée, une unique ligne vide est affichée. Un clic sur une ligne dans la " "zone de contexte déplace cette ligne en haut de l'éditeur." -#: ../Doc/library/idle.rst:562 +#: ../Doc/library/idle.rst:563 msgid "" "The text and background colors for the context pane can be configured under " "the Highlights tab in the Configure IDLE dialog." @@ -1305,11 +1306,11 @@ msgstr "" "configurées dans l'onglet *Highlights* de la fenêtre de configuration " "d'*IDLE*." -#: ../Doc/library/idle.rst:566 +#: ../Doc/library/idle.rst:567 msgid "Python Shell window" msgstr "Fenêtre de console Python" -#: ../Doc/library/idle.rst:568 +#: ../Doc/library/idle.rst:569 msgid "" "With IDLE's Shell, one enters, edits, and recalls complete statements. Most " "consoles and terminals only work with a single physical line at a time." @@ -1318,7 +1319,7 @@ msgstr "" "commandes entières. La plupart des consoles et des terminaux ne travaillent " "qu'avec une seule ligne physique à la fois." -#: ../Doc/library/idle.rst:571 +#: ../Doc/library/idle.rst:572 msgid "" "When one pastes code into Shell, it is not compiled and possibly executed " "until one hits :kbd:`Return`. One may edit pasted code first. If one pastes " @@ -1331,7 +1332,7 @@ msgstr "" "`SyntaxError` est levée si plusieurs commandes sont compilées comme une " "seule." -#: ../Doc/library/idle.rst:576 +#: ../Doc/library/idle.rst:577 msgid "" "The editing features described in previous subsections work when entering " "code interactively. IDLE's Shell window also responds to the following keys." @@ -1340,28 +1341,28 @@ msgstr "" "fonctionnent du code est saisi de façon interactive. La fenêtre de console " "d'*IDLE* réagit également aux touches suivantes." -#: ../Doc/library/idle.rst:579 +#: ../Doc/library/idle.rst:580 msgid ":kbd:`C-c` interrupts executing command" msgstr ":kbd:`C-c` interrompt l'exécution de la commande" -#: ../Doc/library/idle.rst:581 +#: ../Doc/library/idle.rst:582 msgid "" ":kbd:`C-d` sends end-of-file; closes window if typed at a ``>>>`` prompt" msgstr "" ":kbd:`C-d` envoie fin-de-fichier (*EOF*) ; cela ferme la fenêtre s'il est " "saisi à une invite ``>>>``" -#: ../Doc/library/idle.rst:583 +#: ../Doc/library/idle.rst:584 msgid ":kbd:`Alt-/` (Expand word) is also useful to reduce typing" msgstr "" ":kbd:`Alt-/` (Compléter le mot) est également utile pour réduire la quantité " "de texte saisie" -#: ../Doc/library/idle.rst:585 +#: ../Doc/library/idle.rst:586 msgid "Command history" msgstr "Historique des commandes" -#: ../Doc/library/idle.rst:587 +#: ../Doc/library/idle.rst:588 msgid "" ":kbd:`Alt-p` retrieves previous command matching what you have typed. On " "macOS use :kbd:`C-p`." @@ -1369,20 +1370,20 @@ msgstr "" ":kbd:`Alt-p` récupère la précédente commande qui correspond à ce que vous " "avez saisi. Sous *macOS*, utilisez :kbd:`C-p`." -#: ../Doc/library/idle.rst:590 +#: ../Doc/library/idle.rst:591 msgid ":kbd:`Alt-n` retrieves next. On macOS use :kbd:`C-n`." msgstr ":kbd:`Alt-n` récupère la suivante. Sous *macOS*, utilisez :kbd:`C-n`." -#: ../Doc/library/idle.rst:592 +#: ../Doc/library/idle.rst:593 msgid ":kbd:`Return` while on any previous command retrieves that command" msgstr "" ":kbd:`Entrée` sur une des commandes précédentes récupère cette commande" -#: ../Doc/library/idle.rst:595 +#: ../Doc/library/idle.rst:596 msgid "Text colors" msgstr "Coloration du texte" -#: ../Doc/library/idle.rst:597 +#: ../Doc/library/idle.rst:598 msgid "" "Idle defaults to black on white text, but colors text with special meanings. " "For the shell, these are shell output, shell error, user output, and user " @@ -1401,7 +1402,7 @@ msgstr "" "sont le curseur (si présent), le texte trouvé (s'il y en a) et le texte " "sélectionné." -#: ../Doc/library/idle.rst:604 +#: ../Doc/library/idle.rst:605 msgid "" "Text coloring is done in the background, so uncolorized text is occasionally " "visible. To change the color scheme, use the Configure IDLE dialog " @@ -1414,11 +1415,11 @@ msgstr "" "points d'arrêt du débogueur dans l'éditeur et du texte dans les dialogues " "n'est pas configurable." -#: ../Doc/library/idle.rst:611 +#: ../Doc/library/idle.rst:612 msgid "Startup and code execution" msgstr "Démarrage et exécution du code" -#: ../Doc/library/idle.rst:613 +#: ../Doc/library/idle.rst:614 msgid "" "Upon startup with the ``-s`` option, IDLE will execute the file referenced " "by the environment variables :envvar:`IDLESTARTUP` or :envvar:" @@ -1438,7 +1439,7 @@ msgstr "" "fonctions qui sont utilisées fréquemment depuis la console d'*IDLE* ou pour " "exécuter des commandes d'importation des modules communs." -#: ../Doc/library/idle.rst:621 +#: ../Doc/library/idle.rst:622 msgid "" "In addition, ``Tk`` also loads a startup file if it is present. Note that " "the Tk file is loaded unconditionally. This additional file is ``.Idle.py`` " @@ -1453,15 +1454,15 @@ msgstr "" "nommage de *Tk*, donc ce fichier n'est pas utile pour importer des fonctions " "à utiliser depuis la console Python d'*IDLE*." -#: ../Doc/library/idle.rst:628 +#: ../Doc/library/idle.rst:629 msgid "Command line usage" msgstr "Utilisation de la ligne de commande" -#: ../Doc/library/idle.rst:644 +#: ../Doc/library/idle.rst:645 msgid "If there are arguments:" msgstr "S'il y a des arguments :" -#: ../Doc/library/idle.rst:646 +#: ../Doc/library/idle.rst:647 msgid "" "If ``-``, ``-c``, or ``r`` is used, all arguments are placed in ``sys." "argv[1:...]`` and ``sys.argv[0]`` is set to ``''``, ``'-c'``, or ``'-r'``. " @@ -1473,7 +1474,7 @@ msgstr "" "ou ``'-r'``. Aucune fenêtre d'édition n'est ouverte, même si c'est le " "comportement par défaut fixé dans la fenêtre d'options." -#: ../Doc/library/idle.rst:651 +#: ../Doc/library/idle.rst:652 msgid "" "Otherwise, arguments are files opened for editing and ``sys.argv`` reflects " "the arguments passed to IDLE itself." @@ -1481,11 +1482,11 @@ msgstr "" "Sinon, les arguments sont des fichiers ouverts pour édition et ``sys.argv`` " "reflète les arguments passés à *IDLE* lui-même." -#: ../Doc/library/idle.rst:655 +#: ../Doc/library/idle.rst:656 msgid "Startup failure" msgstr "Échec au démarrage" -#: ../Doc/library/idle.rst:657 +#: ../Doc/library/idle.rst:658 msgid "" "IDLE uses a socket to communicate between the IDLE GUI process and the user " "code execution process. A connection must be established whenever the Shell " @@ -1503,7 +1504,7 @@ msgstr "" "message *\"connexion impossible\"* qui redirige l'utilisateur ici. Ensuite, " "il s'arrête." -#: ../Doc/library/idle.rst:664 +#: ../Doc/library/idle.rst:665 msgid "" "A common cause of failure is a user-written file with the same name as a " "standard library module, such as *random.py* and *tkinter.py*. When such a " @@ -1518,7 +1519,7 @@ msgstr "" "standard. La solution actuelle consiste à renommer le fichier de " "l'utilisateur." -#: ../Doc/library/idle.rst:670 +#: ../Doc/library/idle.rst:671 msgid "" "Though less common than in the past, an antivirus or firewall program may " "stop the connection. If the program cannot be taught to allow the " @@ -1534,7 +1535,7 @@ msgstr "" "visible depuis un port extérieur. Un problème similaire est une mauvaise " "configuration du réseau qui bloque les connexions." -#: ../Doc/library/idle.rst:677 +#: ../Doc/library/idle.rst:678 msgid "" "Python installation issues occasionally stop IDLE: multiple versions can " "clash, or a single installation might need admin access. If one undo the " @@ -1547,7 +1548,7 @@ msgstr "" "ne veut pas accorder de privilège, il peut être plus facile de désinstaller " "complètement Python et de recommencer." -#: ../Doc/library/idle.rst:682 +#: ../Doc/library/idle.rst:683 msgid "" "A zombie pythonw.exe process could be a problem. On Windows, use Task " "Manager to detect and stop one. Sometimes a restart initiated by a program " @@ -1564,10 +1565,11 @@ msgstr "" # ... this can be prevented by never editing the files by hand, using the # configuration dialog, under Options, instead Options. # Qu'est-ce que ça veut dire ??? -#: ../Doc/library/idle.rst:687 +#: ../Doc/library/idle.rst:688 +#, fuzzy msgid "" -"When IDLE first starts, it attempts to read user configuration files in ~/." -"idlerc/ (~ is one's home directory). If there is a problem, an error " +"When IDLE first starts, it attempts to read user configuration files in ``~/." +"idlerc/`` (~ is one's home directory). If there is a problem, an error " "message should be displayed. Leaving aside random disk glitches, this can " "be prevented by never editing the files by hand, using the configuration " "dialog, under Options, instead Options. Once it happens, the solution may " @@ -1584,20 +1586,21 @@ msgstr "" # Je suppose que c'est (``python -m idlelib)``, et pas (``python -m # idlelib``)... -#: ../Doc/library/idle.rst:694 +#: ../Doc/library/idle.rst:695 +#, fuzzy msgid "" "If IDLE quits with no message, and it was not started from a console, try " -"starting from a console (``python -m idlelib)`` and see if a message appears." +"starting from a console (``python -m idlelib``) and see if a message appears." msgstr "" "Si *IDLE* se ferme sans message et qu'il n'a pas été démarré depuis une " "console, essayez de le démarrer depuis une console (``python -m idlelib``) " "et regardez si un message apparaît." -#: ../Doc/library/idle.rst:698 +#: ../Doc/library/idle.rst:699 msgid "Running user code" msgstr "Exécuter le code de l'utilisateur" -#: ../Doc/library/idle.rst:700 +#: ../Doc/library/idle.rst:701 msgid "" "With rare exceptions, the result of executing Python code with IDLE is " "intended to be the same as executing the same code by the default method, " @@ -1614,7 +1617,7 @@ msgstr "" "modules`` démarre avec plus d'entrées et ``threading.activeCount()`` renvoie " "2 plutôt que 1." -#: ../Doc/library/idle.rst:707 +#: ../Doc/library/idle.rst:708 msgid "" "By default, IDLE runs user code in a separate OS process rather than in the " "user interface process that runs the shell and editor. In the execution " @@ -1631,7 +1634,7 @@ msgstr "" "valeurs originales stockées dans ``sys.__stdin__``, ``sys.__stdout__`` et " "``sys.__stderr__`` ne sont pas touchées, mais peuvent être ``None``." -#: ../Doc/library/idle.rst:714 +#: ../Doc/library/idle.rst:715 msgid "" "When Shell has the focus, it controls the keyboard and screen. This is " "normally transparent, but functions that directly access the keyboard and " @@ -1644,7 +1647,7 @@ msgstr "" "fonctions spécifiques du système qui déterminent si une touche a été pressée " "et, le cas échéant, laquelle." -#: ../Doc/library/idle.rst:719 +#: ../Doc/library/idle.rst:720 msgid "" "IDLE's standard stream replacements are not inherited by subprocesses " "created in the execution process, whether directly by user code or by " @@ -1661,7 +1664,7 @@ msgstr "" "de commande. Le sous-processus secondaire sera ensuite attaché à cette " "fenêtre pour les entrées et les sorties." -#: ../Doc/library/idle.rst:726 +#: ../Doc/library/idle.rst:727 msgid "" "The IDLE code running in the execution process adds frames to the call stack " "that would not be there otherwise. IDLE wraps ``sys.getrecursionlimit`` and " @@ -1669,7 +1672,7 @@ msgid "" "frames." msgstr "" -#: ../Doc/library/idle.rst:730 +#: ../Doc/library/idle.rst:731 msgid "" "If ``sys`` is reset by user code, such as with ``importlib.reload(sys)``, " "IDLE's changes are lost and input from the keyboard and output to the screen " @@ -1680,17 +1683,17 @@ msgstr "" "l'entrée du clavier et la sortie à l'écran ne fonctionneront pas " "correctement." -#: ../Doc/library/idle.rst:734 +#: ../Doc/library/idle.rst:735 msgid "" "When user code raises SystemExit either directly or by calling sys.exit, " "IDLE returns to a Shell prompt instead of exiting." msgstr "" -#: ../Doc/library/idle.rst:738 +#: ../Doc/library/idle.rst:739 msgid "User output in Shell" msgstr "Sortie de l'utilisateur sur la console" -#: ../Doc/library/idle.rst:740 +#: ../Doc/library/idle.rst:741 msgid "" "When a program outputs text, the result is determined by the corresponding " "output device. When IDLE executes user code, ``sys.stdout`` and ``sys." @@ -1707,7 +1710,7 @@ msgstr "" "programmées. Quand cela importe, la console est conçue pour le développement " "plutôt que l'exécution en production." -#: ../Doc/library/idle.rst:747 +#: ../Doc/library/idle.rst:748 msgid "" "For instance, Shell never throws away output. A program that sends " "unlimited output to Shell will eventually fill memory, resulting in a memory " @@ -1722,7 +1725,7 @@ msgstr "" "exemple, conserve une quantité de lignes configurable entre 1 et 9999, avec " "une valeur par défaut de 300." -#: ../Doc/library/idle.rst:753 +#: ../Doc/library/idle.rst:754 #, fuzzy msgid "" "A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) " @@ -1749,7 +1752,7 @@ msgstr "" "curseur de texte sur une sortie de ce genre peut provoquer un comportement " "surprenant du point de vue de l'espacement.)" -#: ../Doc/library/idle.rst:771 +#: ../Doc/library/idle.rst:772 msgid "" "The ``repr`` function is used for interactive echo of expression values. It " "returns an altered version of the input string in which control codes, some " @@ -1764,7 +1767,7 @@ msgstr "" "d'échappement. Comme montré ci-dessus, ceci permet d'identifier les " "caractères dans une chaîne, quelle que soit la façon dont elle est affichée." -#: ../Doc/library/idle.rst:777 +#: ../Doc/library/idle.rst:778 msgid "" "Normal and error output are generally kept separate (on separate lines) from " "code input and each other. They each get different highlight colors." @@ -1773,7 +1776,7 @@ msgstr "" "séparées) de l'entrée de code et entre elles. Elles ont chacune une " "coloration différente." -#: ../Doc/library/idle.rst:780 +#: ../Doc/library/idle.rst:781 msgid "" "For SyntaxError tracebacks, the normal '^' marking where the error was " "detected is replaced by coloring the text with an error highlight. When code " @@ -1788,7 +1791,7 @@ msgstr "" "d'accéder à la ligne correspondante dans un éditeur *IDLE*. Le fichier est " "ouvert si nécessaire." -#: ../Doc/library/idle.rst:786 +#: ../Doc/library/idle.rst:787 msgid "" "Shell has a special facility for squeezing output lines down to a 'Squeezed " "text' label. This is done automatically for output over N lines (N = 50 by " @@ -1804,7 +1807,7 @@ msgstr "" "sortie. Ceci peut être utile sur des lignes si longues qu'elles ralentissent " "la navigation." -#: ../Doc/library/idle.rst:794 +#: ../Doc/library/idle.rst:795 msgid "" "Squeezed output is expanded in place by double-clicking the label. It can " "also be sent to the clipboard or a separate view window by right-clicking " @@ -1814,11 +1817,11 @@ msgstr "" "l'étiquette Elles peuvent aussi être envoyées au presse-papier ou sur un " "fenêtre séparée par un clic-droit sur l'étiquette." -#: ../Doc/library/idle.rst:799 +#: ../Doc/library/idle.rst:800 msgid "Developing tkinter applications" msgstr "Développer des applications *tkinter*" -#: ../Doc/library/idle.rst:801 +#: ../Doc/library/idle.rst:802 msgid "" "IDLE is intentionally different from standard Python in order to facilitate " "development of tkinter programs. Enter ``import tkinter as tk; root = tk." @@ -1840,7 +1843,7 @@ msgstr "" "changement n'est visible en Python standard jusqu'à la saisie de ``root." "update()``." -#: ../Doc/library/idle.rst:810 +#: ../Doc/library/idle.rst:811 msgid "" "Most tkinter programs run ``root.mainloop()``, which usually does not return " "until the tk app is destroyed. If the program is run with ``python -i`` or " @@ -1853,7 +1856,7 @@ msgstr "" "une invite de commande ``>>>`` n'apparaît pas tant que ``mainloop()`` ne " "termine pas, c'est-à-dire quand il ne reste plus rien avec lequel interagir." -#: ../Doc/library/idle.rst:816 +#: ../Doc/library/idle.rst:817 msgid "" "When running a tkinter program from an IDLE editor, one can comment out the " "mainloop call. One then gets a shell prompt immediately and can interact " @@ -1866,11 +1869,11 @@ msgstr "" "se rappeler de réactiver l'appel à *mainloop* lors de l'exécution en Python " "standard." -#: ../Doc/library/idle.rst:822 +#: ../Doc/library/idle.rst:823 msgid "Running without a subprocess" msgstr "Exécution sans sous-processus" -#: ../Doc/library/idle.rst:824 +#: ../Doc/library/idle.rst:825 msgid "" "By default, IDLE executes user code in a separate subprocess via a socket, " "which uses the internal loopback interface. This connection is not " @@ -1882,7 +1885,7 @@ msgstr "" "connexion n'est pas visible de l'extérieur et rien n'est envoyé ou reçu " "d'Internet. Si un pare-feu s'en plaint quand même, vous pouvez l'ignorer." -#: ../Doc/library/idle.rst:829 +#: ../Doc/library/idle.rst:830 msgid "" "If the attempt to make the socket connection fails, Idle will notify you. " "Such failures are sometimes transient, but if persistent, the problem may be " @@ -1897,7 +1900,7 @@ msgstr "" "résolu, vous pouvez exécuter *IDLE* avec l'option *-n* de la ligne de " "commande." -#: ../Doc/library/idle.rst:835 +#: ../Doc/library/idle.rst:836 msgid "" "If IDLE is started with the -n command line switch it will run in a single " "process and will not create the subprocess which runs the RPC Python " @@ -1922,15 +1925,15 @@ msgstr "" "effet. Pour toutes ces raisons, il est préférable d'exécuter *IDLE* avec le " "sous-processus par défaut si c'est possible." -#: ../Doc/library/idle.rst:850 +#: ../Doc/library/idle.rst:851 msgid "Help and preferences" msgstr "Aide et préférences" -#: ../Doc/library/idle.rst:855 +#: ../Doc/library/idle.rst:856 msgid "Help sources" msgstr "Sources d'aide" -#: ../Doc/library/idle.rst:857 +#: ../Doc/library/idle.rst:858 msgid "" "Help menu entry \"IDLE Help\" displays a formatted html version of the IDLE " "chapter of the Library Reference. The result, in a read-only tkinter text " @@ -1947,12 +1950,14 @@ msgstr "" "enfoncées. Ou cliquez sur le bouton TOC (*Table of Contents* : sommaire) et " "sélectionnez un titre de section dans l'espace ouvert." -#: ../Doc/library/idle.rst:865 +#: ../Doc/library/idle.rst:866 +#, fuzzy msgid "" "Help menu entry \"Python Docs\" opens the extensive sources of help, " -"including tutorials, available at docs.python.org/x.y, where 'x.y' is the " -"currently running Python version. If your system has an off-line copy of " -"the docs (this may be an installation option), that will be opened instead." +"including tutorials, available at ``docs.python.org/x.y``, where 'x.y' is " +"the currently running Python version. If your system has an off-line copy " +"of the docs (this may be an installation option), that will be opened " +"instead." msgstr "" "L'entrée du menu d'aide *\"Python Docs\"* ouvre les sources d'aide " "détaillées, incluant des tutoriels, disponibles sur https://docs.python.org/" @@ -1960,26 +1965,28 @@ msgstr "" "système a une copie locale de la documentation (ce peut être une option " "d'installation), c'est elle qui est ouverte." -#: ../Doc/library/idle.rst:871 +#: ../Doc/library/idle.rst:872 +#, fuzzy msgid "" "Selected URLs can be added or removed from the help menu at any time using " -"the General tab of the Configure IDLE dialog ." +"the General tab of the Configure IDLE dialog." msgstr "" "Les URI sélectionnés peuvent être ajoutés ou enlevés du menu d'aide à " "n'importe quel moment en utilisant l'onglet *General* de la fenêtre de " "configuration d'*IDLE*." -#: ../Doc/library/idle.rst:877 +#: ../Doc/library/idle.rst:878 msgid "Setting preferences" msgstr "Modifier les préférences" -#: ../Doc/library/idle.rst:879 +#: ../Doc/library/idle.rst:880 +#, fuzzy msgid "" "The font preferences, highlighting, keys, and general preferences can be " "changed via Configure IDLE on the Option menu. Non-default user settings are " -"saved in a .idlerc directory in the user's home directory. Problems caused " -"by bad user configuration files are solved by editing or deleting one or " -"more of the files in .idlerc." +"saved in a ``.idlerc`` directory in the user's home directory. Problems " +"caused by bad user configuration files are solved by editing or deleting one " +"or more of the files in ``.idlerc``." msgstr "" "Les préférences de fontes, surlignage, touches et les préférences générales " "peuvent peuvent être changées via *Configure *IDLE** dans le menu Option. " @@ -1988,7 +1995,7 @@ msgstr "" "des fichiers de configuration de l'utilisateur corrompus sont résolus en " "modifiant ou en supprimant un ou plusieurs fichiers dans *.idlerc*." -#: ../Doc/library/idle.rst:885 +#: ../Doc/library/idle.rst:886 msgid "" "On the Font tab, see the text sample for the effect of font face and size on " "multiple characters in multiple languages. Edit the sample to add other " @@ -2004,7 +2011,7 @@ msgstr "" "console ou l'éditeur, ajoutez-les en haut des échantillons et essayez de " "changer d'abord la taille, puis la fonte." -#: ../Doc/library/idle.rst:892 +#: ../Doc/library/idle.rst:893 msgid "" "On the Highlights and Keys tab, select a built-in or custom color theme and " "key set. To use a newer built-in color theme or key set with older IDLEs, " @@ -2017,12 +2024,12 @@ msgstr "" "ancienne, enregistrez-le en tant que nouveau thème ou ensemble de raccourcis " "personnalisé ; il sera alors accessible aux *IDLE* plus anciens." -#: ../Doc/library/idle.rst:898 +#: ../Doc/library/idle.rst:899 msgid "IDLE on macOS" msgstr "*IDLE* sous *macOS*" # framework=>cadriciel ne pose pas de problème ? -#: ../Doc/library/idle.rst:900 +#: ../Doc/library/idle.rst:901 msgid "" "Under System Preferences: Dock, one can set \"Prefer tabs when opening " "documents\" to \"Always\". This setting is not compatible with the tk/" @@ -2033,11 +2040,11 @@ msgstr "" "avec le cadriciel *tk/tkinter* utilisé par *IDLE* et il casse quelques " "fonctionnalités d'*IDLE*." -#: ../Doc/library/idle.rst:905 +#: ../Doc/library/idle.rst:906 msgid "Extensions" msgstr "Extensions" -#: ../Doc/library/idle.rst:907 +#: ../Doc/library/idle.rst:908 msgid "" "IDLE contains an extension facility. Preferences for extensions can be " "changed with the Extensions tab of the preferences dialog. See the beginning " diff --git a/library/importlib.metadata.po b/library/importlib.metadata.po index 5865301a..17aca39f 100644 --- a/library/importlib.metadata.po +++ b/library/importlib.metadata.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 17:54+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-09-04 11:42+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -216,9 +216,9 @@ msgstr "" #: ../Doc/library/importlib.metadata.rst:219 msgid "" -"By default ``importlib.metadata`` installs a finder for distribution " -"packages found on the file system. This finder doesn't actually find any " -"*packages*, but it can find the packages' metadata." +"The default ``PathFinder`` for Python includes a hook that calls into " +"``importlib.metadata.MetadataPathFinder`` for finding distributions loaded " +"from typical file-system-based paths." msgstr "" #: ../Doc/library/importlib.metadata.rst:223 @@ -241,10 +241,10 @@ msgstr "" #: ../Doc/library/importlib.metadata.rst:241 msgid "" "What this means in practice is that to support finding distribution package " -"metadata in locations other than the file system, you should derive from " -"``Distribution`` and implement the ``load_metadata()`` method. Then from " -"your finder, return instances of this derived ``Distribution`` in the " -"``find_distributions()`` method." +"metadata in locations other than the file system, subclass ``Distribution`` " +"and implement the abstract methods. Then from a custom finder, return " +"instances of this derived ``Distribution`` in the ``find_distributions()`` " +"method." msgstr "" #: ../Doc/library/importlib.metadata.rst:260 diff --git a/library/inspect.po b/library/inspect.po index affabc7b..616cdb56 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 23:53+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-09-06 13:49+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -70,14 +70,14 @@ msgid "module" msgstr "module" #: ../Doc/library/inspect.rst:43 ../Doc/library/inspect.rst:48 -#: ../Doc/library/inspect.rst:58 ../Doc/library/inspect.rst:73 -#: ../Doc/library/inspect.rst:225 +#: ../Doc/library/inspect.rst:58 ../Doc/library/inspect.rst:76 +#: ../Doc/library/inspect.rst:231 msgid "__doc__" msgstr "__doc__" #: ../Doc/library/inspect.rst:43 ../Doc/library/inspect.rst:48 -#: ../Doc/library/inspect.rst:58 ../Doc/library/inspect.rst:73 -#: ../Doc/library/inspect.rst:225 +#: ../Doc/library/inspect.rst:58 ../Doc/library/inspect.rst:76 +#: ../Doc/library/inspect.rst:231 msgid "documentation string" msgstr "" @@ -94,8 +94,8 @@ msgid "class" msgstr "classe" #: ../Doc/library/inspect.rst:50 ../Doc/library/inspect.rst:60 -#: ../Doc/library/inspect.rst:75 ../Doc/library/inspect.rst:194 -#: ../Doc/library/inspect.rst:208 ../Doc/library/inspect.rst:227 +#: ../Doc/library/inspect.rst:78 ../Doc/library/inspect.rst:200 +#: ../Doc/library/inspect.rst:214 ../Doc/library/inspect.rst:233 msgid "__name__" msgstr "__name__" @@ -104,18 +104,19 @@ msgid "name with which this class was defined" msgstr "" #: ../Doc/library/inspect.rst:53 ../Doc/library/inspect.rst:63 -#: ../Doc/library/inspect.rst:78 ../Doc/library/inspect.rst:196 -#: ../Doc/library/inspect.rst:210 ../Doc/library/inspect.rst:230 +#: ../Doc/library/inspect.rst:81 ../Doc/library/inspect.rst:202 +#: ../Doc/library/inspect.rst:216 ../Doc/library/inspect.rst:236 msgid "__qualname__" msgstr "__qualname__" #: ../Doc/library/inspect.rst:53 ../Doc/library/inspect.rst:63 -#: ../Doc/library/inspect.rst:78 ../Doc/library/inspect.rst:196 -#: ../Doc/library/inspect.rst:210 ../Doc/library/inspect.rst:230 +#: ../Doc/library/inspect.rst:81 ../Doc/library/inspect.rst:202 +#: ../Doc/library/inspect.rst:216 ../Doc/library/inspect.rst:236 msgid "qualified name" msgstr "nom qualifié" -#: ../Doc/library/inspect.rst:55 +#: ../Doc/library/inspect.rst:55 ../Doc/library/inspect.rst:73 +#: ../Doc/library/inspect.rst:104 msgid "__module__" msgstr "__module__" @@ -139,7 +140,7 @@ msgstr "__func__" msgid "function object containing implementation of method" msgstr "" -#: ../Doc/library/inspect.rst:69 ../Doc/library/inspect.rst:232 +#: ../Doc/library/inspect.rst:69 ../Doc/library/inspect.rst:238 msgid "__self__" msgstr "__self__" @@ -148,383 +149,391 @@ msgid "instance to which this method is bound, or ``None``" msgstr "" #: ../Doc/library/inspect.rst:73 +msgid "name of module in which this method was defined" +msgstr "" + +#: ../Doc/library/inspect.rst:76 msgid "function" msgstr "fonction" -#: ../Doc/library/inspect.rst:75 +#: ../Doc/library/inspect.rst:78 msgid "name with which this function was defined" msgstr "" -#: ../Doc/library/inspect.rst:80 +#: ../Doc/library/inspect.rst:83 msgid "__code__" msgstr "__code__" -#: ../Doc/library/inspect.rst:80 +#: ../Doc/library/inspect.rst:83 msgid "code object containing compiled function :term:`bytecode`" msgstr "" -#: ../Doc/library/inspect.rst:84 +#: ../Doc/library/inspect.rst:87 msgid "__defaults__" msgstr "__defaults__" -#: ../Doc/library/inspect.rst:84 +#: ../Doc/library/inspect.rst:87 msgid "tuple of any default values for positional or keyword parameters" msgstr "" -#: ../Doc/library/inspect.rst:88 +#: ../Doc/library/inspect.rst:91 msgid "__kwdefaults__" msgstr "__kwdefaults__" -#: ../Doc/library/inspect.rst:88 +#: ../Doc/library/inspect.rst:91 msgid "mapping of any default values for keyword-only parameters" msgstr "" -#: ../Doc/library/inspect.rst:92 +#: ../Doc/library/inspect.rst:95 msgid "__globals__" msgstr "__globals__" -#: ../Doc/library/inspect.rst:92 +#: ../Doc/library/inspect.rst:95 msgid "global namespace in which this function was defined" msgstr "" -#: ../Doc/library/inspect.rst:95 +#: ../Doc/library/inspect.rst:98 msgid "__annotations__" msgstr "__annotations__" -#: ../Doc/library/inspect.rst:95 +#: ../Doc/library/inspect.rst:98 msgid "" "mapping of parameters names to annotations; ``\"return\"`` key is reserved " "for return annotations." msgstr "" -#: ../Doc/library/inspect.rst:101 -msgid "traceback" -msgstr "traceback" - -#: ../Doc/library/inspect.rst:101 -msgid "tb_frame" -msgstr "tb_frame" - -#: ../Doc/library/inspect.rst:101 -msgid "frame object at this level" -msgstr "" - #: ../Doc/library/inspect.rst:104 -msgid "tb_lasti" -msgstr "tb_lasti" - -#: ../Doc/library/inspect.rst:104 ../Doc/library/inspect.rst:126 -msgid "index of last attempted instruction in bytecode" +msgid "name of module in which this function was defined" msgstr "" #: ../Doc/library/inspect.rst:107 +msgid "traceback" +msgstr "traceback" + +#: ../Doc/library/inspect.rst:107 +msgid "tb_frame" +msgstr "tb_frame" + +#: ../Doc/library/inspect.rst:107 +msgid "frame object at this level" +msgstr "" + +#: ../Doc/library/inspect.rst:110 +msgid "tb_lasti" +msgstr "tb_lasti" + +#: ../Doc/library/inspect.rst:110 ../Doc/library/inspect.rst:132 +msgid "index of last attempted instruction in bytecode" +msgstr "" + +#: ../Doc/library/inspect.rst:113 msgid "tb_lineno" msgstr "tb_lineno" -#: ../Doc/library/inspect.rst:107 ../Doc/library/inspect.rst:129 +#: ../Doc/library/inspect.rst:113 ../Doc/library/inspect.rst:135 msgid "current line number in Python source code" msgstr "" -#: ../Doc/library/inspect.rst:110 +#: ../Doc/library/inspect.rst:116 msgid "tb_next" msgstr "tb_next" -#: ../Doc/library/inspect.rst:110 +#: ../Doc/library/inspect.rst:116 msgid "next inner traceback object (called by this level)" msgstr "" -#: ../Doc/library/inspect.rst:114 ../Doc/library/inspect.rst:198 -#: ../Doc/library/inspect.rst:215 +#: ../Doc/library/inspect.rst:120 ../Doc/library/inspect.rst:204 +#: ../Doc/library/inspect.rst:221 msgid "frame" msgstr "" -#: ../Doc/library/inspect.rst:114 +#: ../Doc/library/inspect.rst:120 msgid "f_back" msgstr "f_back" -#: ../Doc/library/inspect.rst:114 +#: ../Doc/library/inspect.rst:120 msgid "next outer frame object (this frame's caller)" msgstr "" -#: ../Doc/library/inspect.rst:117 +#: ../Doc/library/inspect.rst:123 msgid "f_builtins" msgstr "f_builtins" -#: ../Doc/library/inspect.rst:117 +#: ../Doc/library/inspect.rst:123 msgid "builtins namespace seen by this frame" msgstr "" -#: ../Doc/library/inspect.rst:120 +#: ../Doc/library/inspect.rst:126 msgid "f_code" msgstr "f_code" -#: ../Doc/library/inspect.rst:120 +#: ../Doc/library/inspect.rst:126 msgid "code object being executed in this frame" msgstr "" -#: ../Doc/library/inspect.rst:123 +#: ../Doc/library/inspect.rst:129 msgid "f_globals" msgstr "f_globals" -#: ../Doc/library/inspect.rst:123 +#: ../Doc/library/inspect.rst:129 msgid "global namespace seen by this frame" msgstr "" -#: ../Doc/library/inspect.rst:126 +#: ../Doc/library/inspect.rst:132 msgid "f_lasti" msgstr "f_lasti" -#: ../Doc/library/inspect.rst:129 +#: ../Doc/library/inspect.rst:135 msgid "f_lineno" msgstr "f_lineno" -#: ../Doc/library/inspect.rst:132 +#: ../Doc/library/inspect.rst:138 msgid "f_locals" msgstr "f_locals" -#: ../Doc/library/inspect.rst:132 +#: ../Doc/library/inspect.rst:138 msgid "local namespace seen by this frame" msgstr "" -#: ../Doc/library/inspect.rst:135 +#: ../Doc/library/inspect.rst:141 msgid "f_trace" msgstr "f_trace" -#: ../Doc/library/inspect.rst:135 +#: ../Doc/library/inspect.rst:141 msgid "tracing function for this frame, or ``None``" msgstr "" -#: ../Doc/library/inspect.rst:138 ../Doc/library/inspect.rst:202 -#: ../Doc/library/inspect.rst:219 +#: ../Doc/library/inspect.rst:144 ../Doc/library/inspect.rst:208 +#: ../Doc/library/inspect.rst:225 msgid "code" msgstr "" -#: ../Doc/library/inspect.rst:138 +#: ../Doc/library/inspect.rst:144 msgid "co_argcount" msgstr "co_argcount" -#: ../Doc/library/inspect.rst:138 +#: ../Doc/library/inspect.rst:144 msgid "" "number of arguments (not including keyword only arguments, \\* or \\*\\* " "args)" msgstr "" -#: ../Doc/library/inspect.rst:143 +#: ../Doc/library/inspect.rst:149 msgid "co_code" msgstr "co_code" -#: ../Doc/library/inspect.rst:143 +#: ../Doc/library/inspect.rst:149 msgid "string of raw compiled bytecode" msgstr "" -#: ../Doc/library/inspect.rst:146 +#: ../Doc/library/inspect.rst:152 msgid "co_cellvars" msgstr "" -#: ../Doc/library/inspect.rst:146 +#: ../Doc/library/inspect.rst:152 msgid "tuple of names of cell variables (referenced by containing scopes)" msgstr "" -#: ../Doc/library/inspect.rst:150 +#: ../Doc/library/inspect.rst:156 msgid "co_consts" msgstr "co_consts" -#: ../Doc/library/inspect.rst:150 +#: ../Doc/library/inspect.rst:156 msgid "tuple of constants used in the bytecode" msgstr "" -#: ../Doc/library/inspect.rst:153 +#: ../Doc/library/inspect.rst:159 msgid "co_filename" msgstr "co_filename" -#: ../Doc/library/inspect.rst:153 +#: ../Doc/library/inspect.rst:159 msgid "name of file in which this code object was created" msgstr "" -#: ../Doc/library/inspect.rst:157 +#: ../Doc/library/inspect.rst:163 msgid "co_firstlineno" msgstr "co_firstlineno" -#: ../Doc/library/inspect.rst:157 +#: ../Doc/library/inspect.rst:163 msgid "number of first line in Python source code" msgstr "" -#: ../Doc/library/inspect.rst:160 +#: ../Doc/library/inspect.rst:166 msgid "co_flags" msgstr "co_flags" -#: ../Doc/library/inspect.rst:160 +#: ../Doc/library/inspect.rst:166 msgid "" "bitmap of ``CO_*`` flags, read more :ref:`here `" msgstr "" -#: ../Doc/library/inspect.rst:164 +#: ../Doc/library/inspect.rst:170 msgid "co_lnotab" msgstr "co_lnotab" -#: ../Doc/library/inspect.rst:164 +#: ../Doc/library/inspect.rst:170 msgid "encoded mapping of line numbers to bytecode indices" msgstr "" -#: ../Doc/library/inspect.rst:168 +#: ../Doc/library/inspect.rst:174 msgid "co_freevars" msgstr "co_freevars" -#: ../Doc/library/inspect.rst:168 +#: ../Doc/library/inspect.rst:174 msgid "tuple of names of free variables (referenced via a function's closure)" msgstr "" -#: ../Doc/library/inspect.rst:172 +#: ../Doc/library/inspect.rst:178 msgid "co_posonlyargcount" msgstr "co_posonlyargcount" -#: ../Doc/library/inspect.rst:172 +#: ../Doc/library/inspect.rst:178 msgid "number of positional only arguments" msgstr "" -#: ../Doc/library/inspect.rst:175 +#: ../Doc/library/inspect.rst:181 msgid "co_kwonlyargcount" msgstr "co_kwonlyargcount" -#: ../Doc/library/inspect.rst:175 +#: ../Doc/library/inspect.rst:181 msgid "number of keyword only arguments (not including \\*\\* arg)" msgstr "" -#: ../Doc/library/inspect.rst:179 +#: ../Doc/library/inspect.rst:185 msgid "co_name" msgstr "co_name" -#: ../Doc/library/inspect.rst:179 +#: ../Doc/library/inspect.rst:185 msgid "name with which this code object was defined" msgstr "" -#: ../Doc/library/inspect.rst:182 +#: ../Doc/library/inspect.rst:188 msgid "co_names" msgstr "co_names" -#: ../Doc/library/inspect.rst:182 +#: ../Doc/library/inspect.rst:188 msgid "tuple of names of local variables" msgstr "" -#: ../Doc/library/inspect.rst:185 +#: ../Doc/library/inspect.rst:191 msgid "co_nlocals" msgstr "co_nlocals" -#: ../Doc/library/inspect.rst:185 +#: ../Doc/library/inspect.rst:191 msgid "number of local variables" msgstr "" -#: ../Doc/library/inspect.rst:187 +#: ../Doc/library/inspect.rst:193 msgid "co_stacksize" msgstr "co_stacksize" -#: ../Doc/library/inspect.rst:187 +#: ../Doc/library/inspect.rst:193 msgid "virtual machine stack space required" msgstr "" -#: ../Doc/library/inspect.rst:190 +#: ../Doc/library/inspect.rst:196 msgid "co_varnames" msgstr "co_varnames" -#: ../Doc/library/inspect.rst:190 +#: ../Doc/library/inspect.rst:196 msgid "tuple of names of arguments and local variables" msgstr "" -#: ../Doc/library/inspect.rst:194 +#: ../Doc/library/inspect.rst:200 msgid "generator" msgstr "générateur" -#: ../Doc/library/inspect.rst:194 ../Doc/library/inspect.rst:208 +#: ../Doc/library/inspect.rst:200 ../Doc/library/inspect.rst:214 msgid "name" msgstr "" -#: ../Doc/library/inspect.rst:198 +#: ../Doc/library/inspect.rst:204 msgid "gi_frame" msgstr "gi_frame" -#: ../Doc/library/inspect.rst:200 +#: ../Doc/library/inspect.rst:206 msgid "gi_running" msgstr "gi_running" -#: ../Doc/library/inspect.rst:200 +#: ../Doc/library/inspect.rst:206 msgid "is the generator running?" msgstr "" -#: ../Doc/library/inspect.rst:202 +#: ../Doc/library/inspect.rst:208 msgid "gi_code" msgstr "gi_code" -#: ../Doc/library/inspect.rst:204 +#: ../Doc/library/inspect.rst:210 msgid "gi_yieldfrom" msgstr "gi_yieldfrom" -#: ../Doc/library/inspect.rst:204 +#: ../Doc/library/inspect.rst:210 msgid "object being iterated by ``yield from``, or ``None``" msgstr "" -#: ../Doc/library/inspect.rst:208 +#: ../Doc/library/inspect.rst:214 msgid "coroutine" msgstr "coroutine" -#: ../Doc/library/inspect.rst:212 +#: ../Doc/library/inspect.rst:218 msgid "cr_await" msgstr "cr_await" -#: ../Doc/library/inspect.rst:212 +#: ../Doc/library/inspect.rst:218 msgid "object being awaited on, or ``None``" msgstr "" -#: ../Doc/library/inspect.rst:215 +#: ../Doc/library/inspect.rst:221 msgid "cr_frame" msgstr "cr_frame" -#: ../Doc/library/inspect.rst:217 +#: ../Doc/library/inspect.rst:223 msgid "cr_running" msgstr "cr_running" -#: ../Doc/library/inspect.rst:217 +#: ../Doc/library/inspect.rst:223 msgid "is the coroutine running?" msgstr "" -#: ../Doc/library/inspect.rst:219 +#: ../Doc/library/inspect.rst:225 msgid "cr_code" msgstr "cr_code" -#: ../Doc/library/inspect.rst:221 +#: ../Doc/library/inspect.rst:227 msgid "cr_origin" msgstr "" -#: ../Doc/library/inspect.rst:221 +#: ../Doc/library/inspect.rst:227 msgid "where coroutine was created, or ``None``. See |coroutine-origin-link|" msgstr "" -#: ../Doc/library/inspect.rst:225 +#: ../Doc/library/inspect.rst:231 msgid "builtin" msgstr "" -#: ../Doc/library/inspect.rst:227 +#: ../Doc/library/inspect.rst:233 msgid "original name of this function or method" msgstr "" -#: ../Doc/library/inspect.rst:232 +#: ../Doc/library/inspect.rst:238 msgid "instance to which a method is bound, or ``None``" msgstr "" -#: ../Doc/library/inspect.rst:239 +#: ../Doc/library/inspect.rst:245 msgid "Add ``__qualname__`` and ``gi_yieldfrom`` attributes to generators." msgstr "" -#: ../Doc/library/inspect.rst:241 +#: ../Doc/library/inspect.rst:247 msgid "" "The ``__name__`` attribute of generators is now set from the function name, " "instead of the code name, and it can now be modified." msgstr "" -#: ../Doc/library/inspect.rst:246 +#: ../Doc/library/inspect.rst:252 msgid "Add ``cr_origin`` attribute to coroutines." msgstr "" -#: ../Doc/library/inspect.rst:250 +#: ../Doc/library/inspect.rst:256 msgid "" "Return all the members of an object in a list of ``(name, value)`` pairs " "sorted by name. If the optional *predicate* argument—which will be called " @@ -532,14 +541,14 @@ msgid "" "the predicate returns a true value are included." msgstr "" -#: ../Doc/library/inspect.rst:257 +#: ../Doc/library/inspect.rst:263 msgid "" ":func:`getmembers` will only return class attributes defined in the " "metaclass when the argument is a class and those attributes have been listed " "in the metaclass' custom :meth:`__dir__`." msgstr "" -#: ../Doc/library/inspect.rst:264 +#: ../Doc/library/inspect.rst:270 msgid "" "Return the name of the module named by the file *path*, without including " "the names of enclosing packages. The file extension is checked against all " @@ -548,134 +557,134 @@ msgid "" "``None`` is returned." msgstr "" -#: ../Doc/library/inspect.rst:270 +#: ../Doc/library/inspect.rst:276 msgid "" "Note that this function *only* returns a meaningful name for actual Python " "modules - paths that potentially refer to Python packages will still return " "``None``." msgstr "" -#: ../Doc/library/inspect.rst:274 +#: ../Doc/library/inspect.rst:280 msgid "The function is based directly on :mod:`importlib`." msgstr "" -#: ../Doc/library/inspect.rst:280 +#: ../Doc/library/inspect.rst:286 msgid "Return ``True`` if the object is a module." msgstr "" -#: ../Doc/library/inspect.rst:285 +#: ../Doc/library/inspect.rst:291 msgid "" "Return ``True`` if the object is a class, whether built-in or created in " "Python code." msgstr "" -#: ../Doc/library/inspect.rst:291 +#: ../Doc/library/inspect.rst:297 msgid "Return ``True`` if the object is a bound method written in Python." msgstr "" -#: ../Doc/library/inspect.rst:296 +#: ../Doc/library/inspect.rst:302 msgid "" "Return ``True`` if the object is a Python function, which includes functions " "created by a :term:`lambda` expression." msgstr "" -#: ../Doc/library/inspect.rst:302 +#: ../Doc/library/inspect.rst:308 msgid "Return ``True`` if the object is a Python generator function." msgstr "" -#: ../Doc/library/inspect.rst:304 +#: ../Doc/library/inspect.rst:310 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is a Python generator function." msgstr "" -#: ../Doc/library/inspect.rst:311 +#: ../Doc/library/inspect.rst:317 msgid "Return ``True`` if the object is a generator." msgstr "" -#: ../Doc/library/inspect.rst:316 +#: ../Doc/library/inspect.rst:322 msgid "" "Return ``True`` if the object is a :term:`coroutine function` (a function " "defined with an :keyword:`async def` syntax)." msgstr "" -#: ../Doc/library/inspect.rst:321 +#: ../Doc/library/inspect.rst:327 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is a :term:`coroutine function`." msgstr "" -#: ../Doc/library/inspect.rst:328 +#: ../Doc/library/inspect.rst:334 msgid "" "Return ``True`` if the object is a :term:`coroutine` created by an :keyword:" "`async def` function." msgstr "" -#: ../Doc/library/inspect.rst:336 +#: ../Doc/library/inspect.rst:342 msgid "" "Return ``True`` if the object can be used in :keyword:`await` expression." msgstr "" -#: ../Doc/library/inspect.rst:338 +#: ../Doc/library/inspect.rst:344 msgid "" "Can also be used to distinguish generator-based coroutines from regular " "generators::" msgstr "" -#: ../Doc/library/inspect.rst:355 +#: ../Doc/library/inspect.rst:361 msgid "" "Return ``True`` if the object is an :term:`asynchronous generator` function, " "for example::" msgstr "" -#: ../Doc/library/inspect.rst:366 +#: ../Doc/library/inspect.rst:372 msgid "" "Functions wrapped in :func:`functools.partial` now return ``True`` if the " "wrapped function is a :term:`asynchronous generator` function." msgstr "" -#: ../Doc/library/inspect.rst:373 +#: ../Doc/library/inspect.rst:379 msgid "" "Return ``True`` if the object is an :term:`asynchronous generator iterator` " "created by an :term:`asynchronous generator` function." msgstr "" -#: ../Doc/library/inspect.rst:380 +#: ../Doc/library/inspect.rst:386 msgid "Return ``True`` if the object is a traceback." msgstr "" -#: ../Doc/library/inspect.rst:385 +#: ../Doc/library/inspect.rst:391 msgid "Return ``True`` if the object is a frame." msgstr "" -#: ../Doc/library/inspect.rst:390 +#: ../Doc/library/inspect.rst:396 msgid "Return ``True`` if the object is a code." msgstr "" -#: ../Doc/library/inspect.rst:395 +#: ../Doc/library/inspect.rst:401 msgid "" "Return ``True`` if the object is a built-in function or a bound built-in " "method." msgstr "" -#: ../Doc/library/inspect.rst:400 +#: ../Doc/library/inspect.rst:406 msgid "" "Return ``True`` if the object is a user-defined or built-in function or " "method." msgstr "" -#: ../Doc/library/inspect.rst:405 +#: ../Doc/library/inspect.rst:411 msgid "Return ``True`` if the object is an abstract base class." msgstr "" -#: ../Doc/library/inspect.rst:410 +#: ../Doc/library/inspect.rst:416 msgid "" "Return ``True`` if the object is a method descriptor, but not if :func:" "`ismethod`, :func:`isclass`, :func:`isfunction` or :func:`isbuiltin` are " "true." msgstr "" -#: ../Doc/library/inspect.rst:414 +#: ../Doc/library/inspect.rst:420 msgid "" "This, for example, is true of ``int.__add__``. An object passing this test " "has a :meth:`~object.__get__` method but not a :meth:`~object.__set__` " @@ -683,7 +692,7 @@ msgid "" "__name__` attribute is usually sensible, and :attr:`__doc__` often is." msgstr "" -#: ../Doc/library/inspect.rst:420 +#: ../Doc/library/inspect.rst:426 msgid "" "Methods implemented via descriptors that also pass one of the other tests " "return ``False`` from the :func:`ismethoddescriptor` test, simply because " @@ -691,11 +700,11 @@ msgid "" "`__func__` attribute (etc) when an object passes :func:`ismethod`." msgstr "" -#: ../Doc/library/inspect.rst:428 +#: ../Doc/library/inspect.rst:434 msgid "Return ``True`` if the object is a data descriptor." msgstr "" -#: ../Doc/library/inspect.rst:430 +#: ../Doc/library/inspect.rst:436 msgid "" "Data descriptors have a :attr:`~object.__set__` or a :attr:`~object." "__delete__` method. Examples are properties (defined in Python), getsets, " @@ -706,33 +715,33 @@ msgid "" "and members have both of these attributes), but this is not guaranteed." msgstr "" -#: ../Doc/library/inspect.rst:441 +#: ../Doc/library/inspect.rst:447 msgid "Return ``True`` if the object is a getset descriptor." msgstr "" -#: ../Doc/library/inspect.rst:445 +#: ../Doc/library/inspect.rst:451 msgid "" "getsets are attributes defined in extension modules via :c:type:" "`PyGetSetDef` structures. For Python implementations without such types, " "this method will always return ``False``." msgstr "" -#: ../Doc/library/inspect.rst:452 +#: ../Doc/library/inspect.rst:458 msgid "Return ``True`` if the object is a member descriptor." msgstr "" -#: ../Doc/library/inspect.rst:456 +#: ../Doc/library/inspect.rst:462 msgid "" "Member descriptors are attributes defined in extension modules via :c:type:" "`PyMemberDef` structures. For Python implementations without such types, " "this method will always return ``False``." msgstr "" -#: ../Doc/library/inspect.rst:464 +#: ../Doc/library/inspect.rst:470 msgid "Retrieving source code" msgstr "" -#: ../Doc/library/inspect.rst:468 +#: ../Doc/library/inspect.rst:474 msgid "" "Get the documentation string for an object, cleaned up with :func:" "`cleandoc`. If the documentation string for an object is not provided and " @@ -740,11 +749,11 @@ msgid "" "documentation string from the inheritance hierarchy." msgstr "" -#: ../Doc/library/inspect.rst:473 +#: ../Doc/library/inspect.rst:479 msgid "Documentation strings are now inherited if not overridden." msgstr "" -#: ../Doc/library/inspect.rst:479 +#: ../Doc/library/inspect.rst:485 msgid "" "Return in a single string any lines of comments immediately preceding the " "object's source code (for a class, function, or method), or at the top of " @@ -753,25 +762,25 @@ msgid "" "been defined in C or the interactive shell." msgstr "" -#: ../Doc/library/inspect.rst:488 +#: ../Doc/library/inspect.rst:494 msgid "" "Return the name of the (text or binary) file in which an object was defined. " "This will fail with a :exc:`TypeError` if the object is a built-in module, " "class, or function." msgstr "" -#: ../Doc/library/inspect.rst:495 +#: ../Doc/library/inspect.rst:501 msgid "Try to guess which module an object was defined in." msgstr "" -#: ../Doc/library/inspect.rst:500 +#: ../Doc/library/inspect.rst:506 msgid "" "Return the name of the Python source file in which an object was defined. " "This will fail with a :exc:`TypeError` if the object is a built-in module, " "class, or function." msgstr "" -#: ../Doc/library/inspect.rst:507 +#: ../Doc/library/inspect.rst:513 msgid "" "Return a list of source lines and starting line number for an object. The " "argument may be a module, class, method, function, traceback, frame, or code " @@ -781,13 +790,13 @@ msgid "" "code cannot be retrieved." msgstr "" -#: ../Doc/library/inspect.rst:514 ../Doc/library/inspect.rst:526 +#: ../Doc/library/inspect.rst:520 ../Doc/library/inspect.rst:532 msgid "" ":exc:`OSError` is raised instead of :exc:`IOError`, now an alias of the " "former." msgstr "" -#: ../Doc/library/inspect.rst:521 +#: ../Doc/library/inspect.rst:527 msgid "" "Return the text of the source code for an object. The argument may be a " "module, class, method, function, traceback, frame, or code object. The " @@ -795,13 +804,13 @@ msgid "" "the source code cannot be retrieved." msgstr "" -#: ../Doc/library/inspect.rst:533 +#: ../Doc/library/inspect.rst:539 msgid "" "Clean up indentation from docstrings that are indented to line up with " "blocks of code." msgstr "" -#: ../Doc/library/inspect.rst:536 +#: ../Doc/library/inspect.rst:542 msgid "" "All leading whitespace is removed from the first line. Any leading " "whitespace that can be uniformly removed from the second line onwards is " @@ -809,62 +818,62 @@ msgid "" "Also, all tabs are expanded to spaces." msgstr "" -#: ../Doc/library/inspect.rst:545 +#: ../Doc/library/inspect.rst:551 msgid "Introspecting callables with the Signature object" msgstr "" -#: ../Doc/library/inspect.rst:549 +#: ../Doc/library/inspect.rst:555 msgid "" "The Signature object represents the call signature of a callable object and " "its return annotation. To retrieve a Signature object, use the :func:" "`signature` function." msgstr "" -#: ../Doc/library/inspect.rst:555 +#: ../Doc/library/inspect.rst:561 msgid "Return a :class:`Signature` object for the given ``callable``::" msgstr "" -#: ../Doc/library/inspect.rst:572 +#: ../Doc/library/inspect.rst:578 msgid "" "Accepts a wide range of Python callables, from plain functions and classes " "to :func:`functools.partial` objects." msgstr "" -#: ../Doc/library/inspect.rst:575 +#: ../Doc/library/inspect.rst:581 msgid "" "Raises :exc:`ValueError` if no signature can be provided, and :exc:" "`TypeError` if that type of object is not supported." msgstr "" -#: ../Doc/library/inspect.rst:578 +#: ../Doc/library/inspect.rst:584 msgid "" "A slash(/) in the signature of a function denotes that the parameters prior " "to it are positional-only. For more info, see :ref:`the FAQ entry on " "positional-only parameters `." msgstr "" -#: ../Doc/library/inspect.rst:582 +#: ../Doc/library/inspect.rst:588 msgid "" "``follow_wrapped`` parameter. Pass ``False`` to get a signature of " "``callable`` specifically (``callable.__wrapped__`` will not be used to " "unwrap decorated callables.)" msgstr "" -#: ../Doc/library/inspect.rst:589 +#: ../Doc/library/inspect.rst:595 msgid "" "Some callables may not be introspectable in certain implementations of " "Python. For example, in CPython, some built-in functions defined in C " "provide no metadata about their arguments." msgstr "" -#: ../Doc/library/inspect.rst:596 +#: ../Doc/library/inspect.rst:602 msgid "" "A Signature object represents the call signature of a function and its " "return annotation. For each parameter accepted by the function it stores a :" "class:`Parameter` object in its :attr:`parameters` collection." msgstr "" -#: ../Doc/library/inspect.rst:600 +#: ../Doc/library/inspect.rst:606 msgid "" "The optional *parameters* argument is a sequence of :class:`Parameter` " "objects, which is validated to check that there are no parameters with " @@ -873,54 +882,54 @@ msgid "" "defaults follow parameters without defaults." msgstr "" -#: ../Doc/library/inspect.rst:606 +#: ../Doc/library/inspect.rst:612 msgid "" "The optional *return_annotation* argument, can be an arbitrary Python " "object, is the \"return\" annotation of the callable." msgstr "" -#: ../Doc/library/inspect.rst:609 +#: ../Doc/library/inspect.rst:615 msgid "" "Signature objects are *immutable*. Use :meth:`Signature.replace` to make a " "modified copy." msgstr "" -#: ../Doc/library/inspect.rst:612 +#: ../Doc/library/inspect.rst:618 msgid "Signature objects are picklable and hashable." msgstr "" -#: ../Doc/library/inspect.rst:617 +#: ../Doc/library/inspect.rst:623 msgid "A special class-level marker to specify absence of a return annotation." msgstr "" -#: ../Doc/library/inspect.rst:621 +#: ../Doc/library/inspect.rst:627 msgid "" "An ordered mapping of parameters' names to the corresponding :class:" "`Parameter` objects. Parameters appear in strict definition order, " "including keyword-only parameters." msgstr "" -#: ../Doc/library/inspect.rst:625 ../Doc/library/inspect.rst:962 +#: ../Doc/library/inspect.rst:631 ../Doc/library/inspect.rst:968 msgid "" "Python only explicitly guaranteed that it preserved the declaration order of " "keyword-only parameters as of version 3.7, although in practice this order " "had always been preserved in Python 3." msgstr "" -#: ../Doc/library/inspect.rst:632 +#: ../Doc/library/inspect.rst:638 msgid "" "The \"return\" annotation for the callable. If the callable has no \"return" "\" annotation, this attribute is set to :attr:`Signature.empty`." msgstr "" -#: ../Doc/library/inspect.rst:637 +#: ../Doc/library/inspect.rst:643 msgid "" "Create a mapping from positional and keyword arguments to parameters. " "Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the " "signature, or raises a :exc:`TypeError`." msgstr "" -#: ../Doc/library/inspect.rst:643 +#: ../Doc/library/inspect.rst:649 msgid "" "Works the same way as :meth:`Signature.bind`, but allows the omission of " "some required arguments (mimics :func:`functools.partial` behavior.) " @@ -928,7 +937,7 @@ msgid "" "arguments do not match the signature." msgstr "" -#: ../Doc/library/inspect.rst:650 +#: ../Doc/library/inspect.rst:656 msgid "" "Create a new Signature instance based on the instance replace was invoked " "on. It is possible to pass different ``parameters`` and/or " @@ -937,141 +946,141 @@ msgid "" "attr:`Signature.empty`." msgstr "" -#: ../Doc/library/inspect.rst:667 +#: ../Doc/library/inspect.rst:673 msgid "" "Return a :class:`Signature` (or its subclass) object for a given callable " "``obj``. Pass ``follow_wrapped=False`` to get a signature of ``obj`` " "without unwrapping its ``__wrapped__`` chain." msgstr "" -#: ../Doc/library/inspect.rst:671 +#: ../Doc/library/inspect.rst:677 msgid "This method simplifies subclassing of :class:`Signature`::" msgstr "" -#: ../Doc/library/inspect.rst:683 +#: ../Doc/library/inspect.rst:689 msgid "" "Parameter objects are *immutable*. Instead of modifying a Parameter object, " "you can use :meth:`Parameter.replace` to create a modified copy." msgstr "" -#: ../Doc/library/inspect.rst:686 +#: ../Doc/library/inspect.rst:692 msgid "Parameter objects are picklable and hashable." msgstr "" -#: ../Doc/library/inspect.rst:691 +#: ../Doc/library/inspect.rst:697 msgid "" "A special class-level marker to specify absence of default values and " "annotations." msgstr "" -#: ../Doc/library/inspect.rst:696 +#: ../Doc/library/inspect.rst:702 msgid "" "The name of the parameter as a string. The name must be a valid Python " "identifier." msgstr "" -#: ../Doc/library/inspect.rst:701 +#: ../Doc/library/inspect.rst:707 msgid "" "CPython generates implicit parameter names of the form ``.0`` on the code " "objects used to implement comprehensions and generator expressions." msgstr "" -#: ../Doc/library/inspect.rst:705 +#: ../Doc/library/inspect.rst:711 msgid "" "These parameter names are exposed by this module as names like ``implicit0``." msgstr "" -#: ../Doc/library/inspect.rst:711 +#: ../Doc/library/inspect.rst:717 msgid "" "The default value for the parameter. If the parameter has no default value, " "this attribute is set to :attr:`Parameter.empty`." msgstr "" -#: ../Doc/library/inspect.rst:716 +#: ../Doc/library/inspect.rst:722 msgid "" "The annotation for the parameter. If the parameter has no annotation, this " "attribute is set to :attr:`Parameter.empty`." msgstr "" -#: ../Doc/library/inspect.rst:721 +#: ../Doc/library/inspect.rst:727 msgid "" "Describes how argument values are bound to the parameter. Possible values " "(accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``):" msgstr "" -#: ../Doc/library/inspect.rst:727 +#: ../Doc/library/inspect.rst:733 msgid "Name" msgstr "Nom" -#: ../Doc/library/inspect.rst:727 +#: ../Doc/library/inspect.rst:733 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/inspect.rst:729 +#: ../Doc/library/inspect.rst:735 msgid "*POSITIONAL_ONLY*" msgstr "" -#: ../Doc/library/inspect.rst:729 +#: ../Doc/library/inspect.rst:735 msgid "" "Value must be supplied as a positional argument. Positional only parameters " "are those which appear before a ``/`` entry (if present) in a Python " "function definition." msgstr "" -#: ../Doc/library/inspect.rst:734 +#: ../Doc/library/inspect.rst:740 msgid "*POSITIONAL_OR_KEYWORD*" msgstr "" -#: ../Doc/library/inspect.rst:734 +#: ../Doc/library/inspect.rst:740 msgid "" "Value may be supplied as either a keyword or positional argument (this is " "the standard binding behaviour for functions implemented in Python.)" msgstr "" -#: ../Doc/library/inspect.rst:739 +#: ../Doc/library/inspect.rst:745 msgid "*VAR_POSITIONAL*" msgstr "" -#: ../Doc/library/inspect.rst:739 +#: ../Doc/library/inspect.rst:745 msgid "" "A tuple of positional arguments that aren't bound to any other parameter. " "This corresponds to a ``*args`` parameter in a Python function definition." msgstr "" -#: ../Doc/library/inspect.rst:744 +#: ../Doc/library/inspect.rst:750 msgid "*KEYWORD_ONLY*" msgstr "" -#: ../Doc/library/inspect.rst:744 +#: ../Doc/library/inspect.rst:750 msgid "" "Value must be supplied as a keyword argument. Keyword only parameters are " "those which appear after a ``*`` or ``*args`` entry in a Python function " "definition." msgstr "" -#: ../Doc/library/inspect.rst:749 +#: ../Doc/library/inspect.rst:755 msgid "*VAR_KEYWORD*" msgstr "" -#: ../Doc/library/inspect.rst:749 +#: ../Doc/library/inspect.rst:755 msgid "" "A dict of keyword arguments that aren't bound to any other parameter. This " "corresponds to a ``**kwargs`` parameter in a Python function definition." msgstr "" -#: ../Doc/library/inspect.rst:755 +#: ../Doc/library/inspect.rst:761 msgid "Example: print all keyword-only arguments without default values::" msgstr "" -#: ../Doc/library/inspect.rst:769 +#: ../Doc/library/inspect.rst:775 msgid "Describes a enum value of Parameter.kind." msgstr "" -#: ../Doc/library/inspect.rst:773 +#: ../Doc/library/inspect.rst:779 msgid "Example: print all descriptions of arguments::" msgstr "" -#: ../Doc/library/inspect.rst:788 +#: ../Doc/library/inspect.rst:794 msgid "" "Create a new Parameter instance based on the instance replaced was invoked " "on. To override a :class:`Parameter` attribute, pass the corresponding " @@ -1079,20 +1088,20 @@ msgid "" "pass :attr:`Parameter.empty`." msgstr "" -#: ../Doc/library/inspect.rst:806 +#: ../Doc/library/inspect.rst:812 msgid "" "In Python 3.3 Parameter objects were allowed to have ``name`` set to " "``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer " "permitted." msgstr "" -#: ../Doc/library/inspect.rst:813 +#: ../Doc/library/inspect.rst:819 msgid "" "Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call. " "Holds the mapping of arguments to the function's parameters." msgstr "" -#: ../Doc/library/inspect.rst:818 +#: ../Doc/library/inspect.rst:824 msgid "" "An ordered, mutable mapping (:class:`collections.OrderedDict`) of " "parameters' names to arguments' values. Contains only explicitly bound " @@ -1100,68 +1109,68 @@ msgid "" "attr:`kwargs`." msgstr "" -#: ../Doc/library/inspect.rst:823 +#: ../Doc/library/inspect.rst:829 msgid "" "Should be used in conjunction with :attr:`Signature.parameters` for any " "argument processing purposes." msgstr "" -#: ../Doc/library/inspect.rst:828 +#: ../Doc/library/inspect.rst:834 msgid "" "Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial` " "relied on a default value are skipped. However, if needed, use :meth:" "`BoundArguments.apply_defaults` to add them." msgstr "" -#: ../Doc/library/inspect.rst:835 +#: ../Doc/library/inspect.rst:841 msgid "" "A tuple of positional arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" -#: ../Doc/library/inspect.rst:840 +#: ../Doc/library/inspect.rst:846 msgid "" "A dict of keyword arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" -#: ../Doc/library/inspect.rst:845 +#: ../Doc/library/inspect.rst:851 msgid "A reference to the parent :class:`Signature` object." msgstr "" -#: ../Doc/library/inspect.rst:849 +#: ../Doc/library/inspect.rst:855 msgid "Set default values for missing arguments." msgstr "" -#: ../Doc/library/inspect.rst:851 +#: ../Doc/library/inspect.rst:857 msgid "" "For variable-positional arguments (``*args``) the default is an empty tuple." msgstr "" -#: ../Doc/library/inspect.rst:854 +#: ../Doc/library/inspect.rst:860 msgid "" "For variable-keyword arguments (``**kwargs``) the default is an empty dict." msgstr "" -#: ../Doc/library/inspect.rst:867 +#: ../Doc/library/inspect.rst:873 msgid "" "The :attr:`args` and :attr:`kwargs` properties can be used to invoke " "functions::" msgstr "" -#: ../Doc/library/inspect.rst:880 +#: ../Doc/library/inspect.rst:886 msgid ":pep:`362` - Function Signature Object." msgstr "" -#: ../Doc/library/inspect.rst:881 +#: ../Doc/library/inspect.rst:887 msgid "The detailed specification, implementation details and examples." msgstr "" -#: ../Doc/library/inspect.rst:887 +#: ../Doc/library/inspect.rst:893 msgid "Classes and functions" msgstr "Classes et fonctions" -#: ../Doc/library/inspect.rst:891 +#: ../Doc/library/inspect.rst:897 msgid "" "Arrange the given list of classes into a hierarchy of nested lists. Where a " "nested list appears, it contains classes derived from the class whose entry " @@ -1172,7 +1181,7 @@ msgid "" "will appear multiple times." msgstr "" -#: ../Doc/library/inspect.rst:902 +#: ../Doc/library/inspect.rst:908 msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` ``ArgSpec(args, varargs, keywords, defaults)`` is returned. " @@ -1183,33 +1192,33 @@ msgid "" "in *args*." msgstr "" -#: ../Doc/library/inspect.rst:910 +#: ../Doc/library/inspect.rst:916 msgid "" "Use :func:`getfullargspec` for an updated API that is usually a drop-in " "replacement, but also correctly handles function annotations and keyword-" "only parameters." msgstr "" -#: ../Doc/library/inspect.rst:915 +#: ../Doc/library/inspect.rst:921 msgid "" "Alternatively, use :func:`signature` and :ref:`Signature Object `, which provide a more structured introspection API for " "callables." msgstr "" -#: ../Doc/library/inspect.rst:922 +#: ../Doc/library/inspect.rst:928 msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` is returned:" msgstr "" -#: ../Doc/library/inspect.rst:925 +#: ../Doc/library/inspect.rst:931 msgid "" "``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, " "annotations)``" msgstr "" -#: ../Doc/library/inspect.rst:928 +#: ../Doc/library/inspect.rst:934 msgid "" "*args* is a list of the positional parameter names. *varargs* is the name of " "the ``*`` parameter or ``None`` if arbitrary positional arguments are not " @@ -1224,7 +1233,7 @@ msgid "" "report the function return value annotation (if any)." msgstr "" -#: ../Doc/library/inspect.rst:943 +#: ../Doc/library/inspect.rst:949 msgid "" "Note that :func:`signature` and :ref:`Signature Object ` provide the recommended API for callable introspection, and support " @@ -1234,14 +1243,14 @@ msgid "" "``inspect`` module API." msgstr "" -#: ../Doc/library/inspect.rst:950 +#: ../Doc/library/inspect.rst:956 msgid "" "This function is now based on :func:`signature`, but still ignores " "``__wrapped__`` attributes and includes the already bound first parameter in " "the signature output for bound methods." msgstr "" -#: ../Doc/library/inspect.rst:955 +#: ../Doc/library/inspect.rst:961 msgid "" "This method was previously documented as deprecated in favour of :func:" "`signature` in Python 3.5, but that decision has been reversed in order to " @@ -1249,7 +1258,7 @@ msgid "" "code migrating away from the legacy :func:`getargspec` API." msgstr "" -#: ../Doc/library/inspect.rst:970 +#: ../Doc/library/inspect.rst:976 msgid "" "Get information about arguments passed into a particular frame. A :term:" "`named tuple` ``ArgInfo(args, varargs, keywords, locals)`` is returned. " @@ -1258,47 +1267,47 @@ msgid "" "dictionary of the given frame." msgstr "" -#: ../Doc/library/inspect.rst:977 ../Doc/library/inspect.rst:1014 +#: ../Doc/library/inspect.rst:983 ../Doc/library/inspect.rst:1020 msgid "This function was inadvertently marked as deprecated in Python 3.5." msgstr "" -#: ../Doc/library/inspect.rst:982 +#: ../Doc/library/inspect.rst:988 msgid "" "Format a pretty argument spec from the values returned by :func:" "`getfullargspec`." msgstr "" -#: ../Doc/library/inspect.rst:985 +#: ../Doc/library/inspect.rst:991 msgid "" "The first seven arguments are (``args``, ``varargs``, ``varkw``, " "``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``)." msgstr "" -#: ../Doc/library/inspect.rst:988 +#: ../Doc/library/inspect.rst:994 msgid "" "The other six arguments are functions that are called to turn argument " "names, ``*`` argument name, ``**`` argument name, default values, return " "annotation and individual annotations into strings, respectively." msgstr "" -#: ../Doc/library/inspect.rst:992 +#: ../Doc/library/inspect.rst:998 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/library/inspect.rst:1001 +#: ../Doc/library/inspect.rst:1007 msgid "" "Use :func:`signature` and :ref:`Signature Object `, which provide a better introspecting API for callables." msgstr "" -#: ../Doc/library/inspect.rst:1009 +#: ../Doc/library/inspect.rst:1015 msgid "" "Format a pretty argument spec from the four values returned by :func:" "`getargvalues`. The format\\* arguments are the corresponding optional " "formatting functions that are called to turn names and values into strings." msgstr "" -#: ../Doc/library/inspect.rst:1019 +#: ../Doc/library/inspect.rst:1025 msgid "" "Return a tuple of class cls's base classes, including cls, in method " "resolution order. No class appears more than once in this tuple. Note that " @@ -1306,7 +1315,7 @@ msgid "" "user-defined metatype is in use, cls will be the first element of the tuple." msgstr "" -#: ../Doc/library/inspect.rst:1027 +#: ../Doc/library/inspect.rst:1033 msgid "" "Bind the *args* and *kwds* to the argument names of the Python function or " "method *func*, as if it was called with them. For bound methods, bind also " @@ -1319,11 +1328,11 @@ msgid "" "example::" msgstr "" -#: ../Doc/library/inspect.rst:1050 +#: ../Doc/library/inspect.rst:1056 msgid "Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead." msgstr "" -#: ../Doc/library/inspect.rst:1056 +#: ../Doc/library/inspect.rst:1062 msgid "" "Get the mapping of external name references in a Python function or method " "*func* to their current values. A :term:`named tuple` " @@ -1335,18 +1344,18 @@ msgid "" "builtins." msgstr "" -#: ../Doc/library/inspect.rst:1065 +#: ../Doc/library/inspect.rst:1071 msgid "" ":exc:`TypeError` is raised if *func* is not a Python function or method." msgstr "" -#: ../Doc/library/inspect.rst:1072 +#: ../Doc/library/inspect.rst:1078 msgid "" "Get the object wrapped by *func*. It follows the chain of :attr:" "`__wrapped__` attributes returning the last object in the chain." msgstr "" -#: ../Doc/library/inspect.rst:1075 +#: ../Doc/library/inspect.rst:1081 msgid "" "*stop* is an optional callback accepting an object in the wrapper chain as " "its sole argument that allows the unwrapping to be terminated early if the " @@ -1356,15 +1365,15 @@ msgid "" "``__signature__`` attribute defined." msgstr "" -#: ../Doc/library/inspect.rst:1082 +#: ../Doc/library/inspect.rst:1088 msgid ":exc:`ValueError` is raised if a cycle is encountered." msgstr "" -#: ../Doc/library/inspect.rst:1090 +#: ../Doc/library/inspect.rst:1096 msgid "The interpreter stack" msgstr "" -#: ../Doc/library/inspect.rst:1092 +#: ../Doc/library/inspect.rst:1098 msgid "" "When the following functions return \"frame records,\" each record is a :" "term:`named tuple` ``FrameInfo(frame, filename, lineno, function, " @@ -1374,11 +1383,11 @@ msgid "" "list." msgstr "" -#: ../Doc/library/inspect.rst:1100 +#: ../Doc/library/inspect.rst:1106 msgid "Return a named tuple instead of a tuple." msgstr "" -#: ../Doc/library/inspect.rst:1105 +#: ../Doc/library/inspect.rst:1111 msgid "" "Keeping references to frame objects, as found in the first element of the " "frame records these functions return, can cause your program to create " @@ -1390,7 +1399,7 @@ msgid "" "consumption which occurs." msgstr "" -#: ../Doc/library/inspect.rst:1113 +#: ../Doc/library/inspect.rst:1119 msgid "" "Though the cycle detector will catch these, destruction of the frames (and " "local variables) can be made deterministic by removing the cycle in a :" @@ -1398,27 +1407,27 @@ msgid "" "disabled when Python was compiled or using :func:`gc.disable`. For example::" msgstr "" -#: ../Doc/library/inspect.rst:1125 +#: ../Doc/library/inspect.rst:1131 msgid "" "If you want to keep the frame around (for example to print a traceback " "later), you can also break reference cycles by using the :meth:`frame.clear` " "method." msgstr "" -#: ../Doc/library/inspect.rst:1129 +#: ../Doc/library/inspect.rst:1135 msgid "" "The optional *context* argument supported by most of these functions " "specifies the number of lines of context to return, which are centered " "around the current line." msgstr "" -#: ../Doc/library/inspect.rst:1136 +#: ../Doc/library/inspect.rst:1142 msgid "" "Get information about a frame or traceback object. A :term:`named tuple` " "``Traceback(filename, lineno, function, code_context, index)`` is returned." msgstr "" -#: ../Doc/library/inspect.rst:1142 +#: ../Doc/library/inspect.rst:1148 msgid "" "Get a list of frame records for a frame and all outer frames. These frames " "represent the calls that lead to the creation of *frame*. The first entry in " @@ -1426,14 +1435,14 @@ msgid "" "outermost call on *frame*'s stack." msgstr "" -#: ../Doc/library/inspect.rst:1147 ../Doc/library/inspect.rst:1160 -#: ../Doc/library/inspect.rst:1184 ../Doc/library/inspect.rst:1197 +#: ../Doc/library/inspect.rst:1153 ../Doc/library/inspect.rst:1166 +#: ../Doc/library/inspect.rst:1190 ../Doc/library/inspect.rst:1203 msgid "" "A list of :term:`named tuples ` ``FrameInfo(frame, filename, " "lineno, function, code_context, index)`` is returned." msgstr "" -#: ../Doc/library/inspect.rst:1155 +#: ../Doc/library/inspect.rst:1161 msgid "" "Get a list of frame records for a traceback's frame and all inner frames. " "These frames represent calls made as a consequence of *frame*. The first " @@ -1441,11 +1450,11 @@ msgid "" "the exception was raised." msgstr "" -#: ../Doc/library/inspect.rst:1168 +#: ../Doc/library/inspect.rst:1174 msgid "Return the frame object for the caller's stack frame." msgstr "" -#: ../Doc/library/inspect.rst:1172 +#: ../Doc/library/inspect.rst:1178 msgid "" "This function relies on Python stack frame support in the interpreter, which " "isn't guaranteed to exist in all implementations of Python. If running in " @@ -1453,14 +1462,14 @@ msgid "" "``None``." msgstr "" -#: ../Doc/library/inspect.rst:1180 +#: ../Doc/library/inspect.rst:1186 msgid "" "Return a list of frame records for the caller's stack. The first entry in " "the returned list represents the caller; the last entry represents the " "outermost call on the stack." msgstr "" -#: ../Doc/library/inspect.rst:1192 +#: ../Doc/library/inspect.rst:1198 msgid "" "Return a list of frame records for the stack between the current frame and " "the frame in which an exception currently being handled was raised in. The " @@ -1468,11 +1477,11 @@ msgid "" "where the exception was raised." msgstr "" -#: ../Doc/library/inspect.rst:1204 +#: ../Doc/library/inspect.rst:1210 msgid "Fetching attributes statically" msgstr "" -#: ../Doc/library/inspect.rst:1206 +#: ../Doc/library/inspect.rst:1212 msgid "" "Both :func:`getattr` and :func:`hasattr` can trigger code execution when " "fetching or checking for the existence of attributes. Descriptors, like " @@ -1480,20 +1489,20 @@ msgid "" "`__getattribute__` may be called." msgstr "" -#: ../Doc/library/inspect.rst:1211 +#: ../Doc/library/inspect.rst:1217 msgid "" "For cases where you want passive introspection, like documentation tools, " "this can be inconvenient. :func:`getattr_static` has the same signature as :" "func:`getattr` but avoids executing code when it fetches attributes." msgstr "" -#: ../Doc/library/inspect.rst:1217 +#: ../Doc/library/inspect.rst:1223 msgid "" "Retrieve attributes without triggering dynamic lookup via the descriptor " "protocol, :meth:`__getattr__` or :meth:`__getattribute__`." msgstr "" -#: ../Doc/library/inspect.rst:1220 +#: ../Doc/library/inspect.rst:1226 msgid "" "Note: this function may not be able to retrieve all attributes that getattr " "can fetch (like dynamically created attributes) and may find attributes that " @@ -1501,31 +1510,31 @@ msgid "" "return descriptors objects instead of instance members." msgstr "" -#: ../Doc/library/inspect.rst:1226 +#: ../Doc/library/inspect.rst:1232 msgid "" "If the instance :attr:`~object.__dict__` is shadowed by another member (for " "example a property) then this function will be unable to find instance " "members." msgstr "" -#: ../Doc/library/inspect.rst:1232 +#: ../Doc/library/inspect.rst:1238 msgid "" ":func:`getattr_static` does not resolve descriptors, for example slot " "descriptors or getset descriptors on objects implemented in C. The " "descriptor object is returned instead of the underlying attribute." msgstr "" -#: ../Doc/library/inspect.rst:1236 +#: ../Doc/library/inspect.rst:1242 msgid "" "You can handle these with code like the following. Note that for arbitrary " "getset descriptors invoking these may trigger code execution::" msgstr "" -#: ../Doc/library/inspect.rst:1262 +#: ../Doc/library/inspect.rst:1268 msgid "Current State of Generators and Coroutines" msgstr "" -#: ../Doc/library/inspect.rst:1264 +#: ../Doc/library/inspect.rst:1270 msgid "" "When implementing coroutine schedulers and for other advanced uses of " "generators, it is useful to determine whether a generator is currently " @@ -1534,31 +1543,31 @@ msgid "" "generator to be determined easily." msgstr "" -#: ../Doc/library/inspect.rst:1272 +#: ../Doc/library/inspect.rst:1278 msgid "Get current state of a generator-iterator." msgstr "" -#: ../Doc/library/inspect.rst:1278 ../Doc/library/inspect.rst:1293 +#: ../Doc/library/inspect.rst:1284 ../Doc/library/inspect.rst:1299 msgid "Possible states are:" msgstr "" -#: ../Doc/library/inspect.rst:1275 +#: ../Doc/library/inspect.rst:1281 msgid "GEN_CREATED: Waiting to start execution." msgstr "" -#: ../Doc/library/inspect.rst:1276 +#: ../Doc/library/inspect.rst:1282 msgid "GEN_RUNNING: Currently being executed by the interpreter." msgstr "" -#: ../Doc/library/inspect.rst:1277 +#: ../Doc/library/inspect.rst:1283 msgid "GEN_SUSPENDED: Currently suspended at a yield expression." msgstr "" -#: ../Doc/library/inspect.rst:1278 +#: ../Doc/library/inspect.rst:1284 msgid "GEN_CLOSED: Execution has completed." msgstr "" -#: ../Doc/library/inspect.rst:1284 +#: ../Doc/library/inspect.rst:1290 msgid "" "Get current state of a coroutine object. The function is intended to be " "used with coroutine objects created by :keyword:`async def` functions, but " @@ -1566,30 +1575,30 @@ msgid "" "``cr_frame`` attributes." msgstr "" -#: ../Doc/library/inspect.rst:1290 +#: ../Doc/library/inspect.rst:1296 msgid "CORO_CREATED: Waiting to start execution." msgstr "" -#: ../Doc/library/inspect.rst:1291 +#: ../Doc/library/inspect.rst:1297 msgid "CORO_RUNNING: Currently being executed by the interpreter." msgstr "" -#: ../Doc/library/inspect.rst:1292 +#: ../Doc/library/inspect.rst:1298 msgid "CORO_SUSPENDED: Currently suspended at an await expression." msgstr "" -#: ../Doc/library/inspect.rst:1293 +#: ../Doc/library/inspect.rst:1299 msgid "CORO_CLOSED: Execution has completed." msgstr "" -#: ../Doc/library/inspect.rst:1297 +#: ../Doc/library/inspect.rst:1303 msgid "" "The current internal state of the generator can also be queried. This is " "mostly useful for testing purposes, to ensure that internal state is being " "updated as expected:" msgstr "" -#: ../Doc/library/inspect.rst:1303 +#: ../Doc/library/inspect.rst:1309 msgid "" "Get the mapping of live local variables in *generator* to their current " "values. A dictionary is returned that maps from variable names to values. " @@ -1597,14 +1606,14 @@ msgid "" "generator, and all the same caveats apply." msgstr "" -#: ../Doc/library/inspect.rst:1308 +#: ../Doc/library/inspect.rst:1314 msgid "" "If *generator* is a :term:`generator` with no currently associated frame, " "then an empty dictionary is returned. :exc:`TypeError` is raised if " "*generator* is not a Python generator object." msgstr "" -#: ../Doc/library/inspect.rst:1314 +#: ../Doc/library/inspect.rst:1320 msgid "" "This function relies on the generator exposing a Python stack frame for " "introspection, which isn't guaranteed to be the case in all implementations " @@ -1612,76 +1621,76 @@ msgid "" "dictionary." msgstr "" -#: ../Doc/library/inspect.rst:1323 +#: ../Doc/library/inspect.rst:1329 msgid "" "This function is analogous to :func:`~inspect.getgeneratorlocals`, but works " "for coroutine objects created by :keyword:`async def` functions." msgstr "" -#: ../Doc/library/inspect.rst:1332 +#: ../Doc/library/inspect.rst:1338 msgid "Code Objects Bit Flags" msgstr "" -#: ../Doc/library/inspect.rst:1334 +#: ../Doc/library/inspect.rst:1340 msgid "" "Python code objects have a ``co_flags`` attribute, which is a bitmap of the " "following flags:" msgstr "" -#: ../Doc/library/inspect.rst:1339 +#: ../Doc/library/inspect.rst:1345 msgid "The code object is optimized, using fast locals." msgstr "" -#: ../Doc/library/inspect.rst:1343 +#: ../Doc/library/inspect.rst:1349 msgid "" "If set, a new dict will be created for the frame's ``f_locals`` when the " "code object is executed." msgstr "" -#: ../Doc/library/inspect.rst:1348 +#: ../Doc/library/inspect.rst:1354 msgid "The code object has a variable positional parameter (``*args``-like)." msgstr "" -#: ../Doc/library/inspect.rst:1352 +#: ../Doc/library/inspect.rst:1358 msgid "The code object has a variable keyword parameter (``**kwargs``-like)." msgstr "" -#: ../Doc/library/inspect.rst:1356 +#: ../Doc/library/inspect.rst:1362 msgid "The flag is set when the code object is a nested function." msgstr "" -#: ../Doc/library/inspect.rst:1360 +#: ../Doc/library/inspect.rst:1366 msgid "" "The flag is set when the code object is a generator function, i.e. a " "generator object is returned when the code object is executed." msgstr "" -#: ../Doc/library/inspect.rst:1365 +#: ../Doc/library/inspect.rst:1371 msgid "The flag is set if there are no free or cell variables." msgstr "" -#: ../Doc/library/inspect.rst:1369 +#: ../Doc/library/inspect.rst:1375 msgid "" "The flag is set when the code object is a coroutine function. When the code " "object is executed it returns a coroutine object. See :pep:`492` for more " "details." msgstr "" -#: ../Doc/library/inspect.rst:1377 +#: ../Doc/library/inspect.rst:1383 msgid "" "The flag is used to transform generators into generator-based coroutines. " "Generator objects with this flag can be used in ``await`` expression, and " "can ``yield from`` coroutine objects. See :pep:`492` for more details." msgstr "" -#: ../Doc/library/inspect.rst:1386 +#: ../Doc/library/inspect.rst:1392 msgid "" "The flag is set when the code object is an asynchronous generator function. " "When the code object is executed it returns an asynchronous generator " "object. See :pep:`525` for more details." msgstr "" -#: ../Doc/library/inspect.rst:1393 +#: ../Doc/library/inspect.rst:1399 msgid "" "The flags are specific to CPython, and may not be defined in other Python " "implementations. Furthermore, the flags are an implementation detail, and " @@ -1689,24 +1698,24 @@ msgid "" "use public APIs from the :mod:`inspect` module for any introspection needs." msgstr "" -#: ../Doc/library/inspect.rst:1403 +#: ../Doc/library/inspect.rst:1409 msgid "Command Line Interface" msgstr "Interface en ligne de commande" -#: ../Doc/library/inspect.rst:1405 +#: ../Doc/library/inspect.rst:1411 msgid "" "The :mod:`inspect` module also provides a basic introspection capability " "from the command line." msgstr "" -#: ../Doc/library/inspect.rst:1410 +#: ../Doc/library/inspect.rst:1416 msgid "" "By default, accepts the name of a module and prints the source of that " "module. A class or function within the module can be printed instead by " "appended a colon and the qualified name of the target object." msgstr "" -#: ../Doc/library/inspect.rst:1416 +#: ../Doc/library/inspect.rst:1422 msgid "" "Print information about the specified object rather than the source code" msgstr "" diff --git a/library/multiprocessing.po b/library/multiprocessing.po index 4290c694..8cce7b83 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2020-01-09 22:44+0100\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" @@ -3445,9 +3445,10 @@ msgid "Return whether the call has completed." msgstr "Renvoie ``True`` ou ``False`` suivant si la tâche est accomplie." #: ../Doc/library/multiprocessing.rst:2281 +#, fuzzy msgid "" "Return whether the call completed without raising an exception. Will raise :" -"exc:`AssertionError` if the result is not ready." +"exc:`ValueError` if the result is not ready." msgstr "" "Renvoie ``True`` ou ``False`` suivant si la tâche est accomplie sans lever " "d'exception. Lève une :exc:`AssertionError` si le résultat n'est pas prêt." diff --git a/library/os.po b/library/os.po index b6cfc829..20f7e617 100644 --- a/library/os.po +++ b/library/os.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 23:53+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2020-01-06 22:41+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -449,7 +449,6 @@ msgstr "" "Utilisez :func:`os.getenvb` si vous voulez utiliser un encodage différent." #: ../Doc/library/os.rst:230 ../Doc/library/os.rst:443 -#: ../Doc/library/os.rst:646 msgid ":ref:`Availability `: most flavors of Unix, Windows." msgstr "" ":ref:`Disponibilité ` : la plupart des dérivés Unix, Windows." @@ -472,7 +471,7 @@ msgstr "" ":func:`getenvb` n'est disponible que si :data:`supports_byte_environ` vaut " "``True``." -#: ../Doc/library/os.rst:242 +#: ../Doc/library/os.rst:242 ../Doc/library/os.rst:646 msgid ":ref:`Availability `: most flavors of Unix." msgstr ":ref:`Disponibilité ` : la plupart des dérivés Unix." diff --git a/library/platform.po b/library/platform.po index c8084067..e3d14b4e 100644 --- a/library/platform.po +++ b/library/platform.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -182,8 +182,8 @@ msgstr "" #: ../Doc/library/platform.rst:148 msgid "" -"Returns the system/OS name, e.g. ``'Linux'``, ``'Windows'``, or ``'Java'``. " -"An empty string is returned if the value cannot be determined." +"Returns the system/OS name, such as ``'Linux'``, ``'Darwin'``, ``'Java'``, " +"``'Windows'``. An empty string is returned if the value cannot be determined." msgstr "" #: ../Doc/library/platform.rst:154 diff --git a/library/site.po b/library/site.po index 9c0fa75c..0f6048c2 100644 --- a/library/site.po +++ b/library/site.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 17:54+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -251,13 +251,17 @@ msgid "" "respecting :envvar:`PYTHONNOUSERSITE` and :data:`USER_BASE`." msgstr "" -#: ../Doc/library/site.rst:239 +#: ../Doc/library/site.rst:242 +msgid "Command Line Interface" +msgstr "" + +#: ../Doc/library/site.rst:246 msgid "" "The :mod:`site` module also provides a way to get the user directories from " "the command line:" msgstr "" -#: ../Doc/library/site.rst:249 +#: ../Doc/library/site.rst:254 msgid "" "If it is called without arguments, it will print the contents of :data:`sys." "path` on the standard output, followed by the value of :data:`USER_BASE` and " @@ -265,21 +269,21 @@ msgid "" "finally the value of :data:`ENABLE_USER_SITE`." msgstr "" -#: ../Doc/library/site.rst:256 +#: ../Doc/library/site.rst:261 msgid "Print the path to the user base directory." msgstr "" -#: ../Doc/library/site.rst:260 +#: ../Doc/library/site.rst:265 msgid "Print the path to the user site-packages directory." msgstr "" -#: ../Doc/library/site.rst:262 +#: ../Doc/library/site.rst:267 msgid "" "If both options are given, user base and user site will be printed (always " "in this order), separated by :data:`os.pathsep`." msgstr "" -#: ../Doc/library/site.rst:265 +#: ../Doc/library/site.rst:270 msgid "" "If any option is given, the script will exit with one of these values: ``0`` " "if the user site-packages directory is enabled, ``1`` if it was disabled by " @@ -287,6 +291,6 @@ msgid "" "administrator, and a value greater than 2 if there is an error." msgstr "" -#: ../Doc/library/site.rst:272 +#: ../Doc/library/site.rst:277 msgid ":pep:`370` -- Per user site-packages directory" msgstr ":pep:`370` -- Répertoire site-packages propre à l'utilisateur." diff --git a/library/socket.po b/library/socket.po index b75cc472..34a1fcb8 100644 --- a/library/socket.po +++ b/library/socket.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-06-18 21:59+0200\n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -95,8 +95,8 @@ msgid "" "Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 encoding." msgstr "" -#: ../Doc/library/socket.rst:63 ../Doc/library/socket.rst:918 -#: ../Doc/library/socket.rst:960 ../Doc/library/socket.rst:1643 +#: ../Doc/library/socket.rst:63 ../Doc/library/socket.rst:920 +#: ../Doc/library/socket.rst:962 ../Doc/library/socket.rst:1645 msgid "Writable :term:`bytes-like object` is now accepted." msgstr "N'importe quel :term:`bytes-like object` est maintenant accepté." @@ -546,7 +546,7 @@ msgid "" "the :meth:`~socket.socket.ioctl` method of socket objects." msgstr "" -#: ../Doc/library/socket.rst:435 ../Doc/library/socket.rst:1267 +#: ../Doc/library/socket.rst:435 ../Doc/library/socket.rst:1269 msgid "``SIO_LOOPBACK_FAST_PATH`` was added." msgstr "" @@ -560,7 +560,7 @@ msgstr "" msgid "Constants for Linux Kernel cryptography." msgstr "" -#: ../Doc/library/socket.rst:451 ../Doc/library/socket.rst:1567 +#: ../Doc/library/socket.rst:451 ../Doc/library/socket.rst:1569 msgid ":ref:`Availability `: Linux >= 2.6.38." msgstr ":ref:`Disponibilité ` : Linux >= 2.6.38." @@ -643,8 +643,8 @@ msgid "" "This may help close a detached socket using :meth:`socket.close()`." msgstr "" -#: ../Doc/library/socket.rst:530 ../Doc/library/socket.rst:659 -#: ../Doc/library/socket.rst:1097 ../Doc/library/socket.rst:1184 +#: ../Doc/library/socket.rst:530 ../Doc/library/socket.rst:661 +#: ../Doc/library/socket.rst:1099 ../Doc/library/socket.rst:1186 msgid "The newly created socket is :ref:`non-inheritable `." msgstr "" "Il n'est :ref:`pas possible d'hériter ` du connecteur " @@ -664,7 +664,7 @@ msgstr "" msgid "The CAN_BCM protocol was added." msgstr "" -#: ../Doc/library/socket.rst:541 ../Doc/library/socket.rst:661 +#: ../Doc/library/socket.rst:541 ../Doc/library/socket.rst:663 msgid "The returned socket is now non-inheritable." msgstr "" @@ -676,24 +676,16 @@ msgstr "" msgid "" "When :const:`SOCK_NONBLOCK` or :const:`SOCK_CLOEXEC` bit flags are applied " "to *type* they are cleared, and :attr:`socket.type` will not reflect them. " -"They are still passed to the underlying system `socket()` call. Therefore::" +"They are still passed to the underlying system `socket()` call. Therefore," msgstr "" -#: ../Doc/library/socket.rst:555 -msgid "sock = socket.socket(" -msgstr "" - -#: ../Doc/library/socket.rst:554 -msgid "socket.AF_INET, socket.SOCK_STREAM | socket.SOCK_NONBLOCK)" -msgstr "" - -#: ../Doc/library/socket.rst:557 +#: ../Doc/library/socket.rst:559 msgid "" "will still create a non-blocking socket on OSes that support " "``SOCK_NONBLOCK``, but ``sock.type`` will be set to ``socket.SOCK_STREAM``." msgstr "" -#: ../Doc/library/socket.rst:563 +#: ../Doc/library/socket.rst:565 msgid "" "Build a pair of connected socket objects using the given address family, " "socket type, and protocol number. Address family, socket type, and protocol " @@ -702,25 +694,25 @@ msgid "" "`AF_INET`." msgstr "" -#: ../Doc/library/socket.rst:568 +#: ../Doc/library/socket.rst:570 msgid "The newly created sockets are :ref:`non-inheritable `." msgstr "" -#: ../Doc/library/socket.rst:570 +#: ../Doc/library/socket.rst:572 msgid "" "The returned socket objects now support the whole socket API, rather than a " "subset." msgstr "" -#: ../Doc/library/socket.rst:574 +#: ../Doc/library/socket.rst:576 msgid "The returned sockets are now non-inheritable." msgstr "" -#: ../Doc/library/socket.rst:577 +#: ../Doc/library/socket.rst:579 msgid "Windows support added." msgstr "" -#: ../Doc/library/socket.rst:583 +#: ../Doc/library/socket.rst:585 msgid "" "Connect to a TCP service listening on the Internet *address* (a 2-tuple " "``(host, port)``), and return the socket object. This is a higher-level " @@ -731,31 +723,31 @@ msgid "" "IPv4 and IPv6." msgstr "" -#: ../Doc/library/socket.rst:591 +#: ../Doc/library/socket.rst:593 msgid "" "Passing the optional *timeout* parameter will set the timeout on the socket " "instance before attempting to connect. If no *timeout* is supplied, the " "global default timeout setting returned by :func:`getdefaulttimeout` is used." msgstr "" -#: ../Doc/library/socket.rst:596 +#: ../Doc/library/socket.rst:598 msgid "" "If supplied, *source_address* must be a 2-tuple ``(host, port)`` for the " "socket to bind to as its source address before connecting. If host or port " "are '' or 0 respectively the OS default behavior will be used." msgstr "" -#: ../Doc/library/socket.rst:600 +#: ../Doc/library/socket.rst:602 msgid "*source_address* was added." msgstr "" -#: ../Doc/library/socket.rst:605 +#: ../Doc/library/socket.rst:607 msgid "" "Convenience function which creates a TCP socket bound to *address* (a 2-" "tuple ``(host, port)``) and return the socket object." msgstr "" -#: ../Doc/library/socket.rst:608 +#: ../Doc/library/socket.rst:610 msgid "" "*family* should be either :data:`AF_INET` or :data:`AF_INET6`. *backlog* is " "the queue size passed to :meth:`socket.listen`; when ``0`` a default " @@ -763,7 +755,7 @@ msgid "" "`SO_REUSEPORT` socket option." msgstr "" -#: ../Doc/library/socket.rst:613 +#: ../Doc/library/socket.rst:615 msgid "" "If *dualstack_ipv6* is true and the platform supports it the socket will be " "able to accept both IPv4 and IPv6 connections, else it will raise :exc:" @@ -776,20 +768,20 @@ msgid "" "func:`has_dualstack_ipv6`:" msgstr "" -#: ../Doc/library/socket.rst:635 +#: ../Doc/library/socket.rst:637 msgid "" "On POSIX platforms the :data:`SO_REUSEADDR` socket option is set in order to " "immediately reuse previous sockets which were bound on the same *address* " "and remained in TIME_WAIT state." msgstr "" -#: ../Doc/library/socket.rst:643 +#: ../Doc/library/socket.rst:645 msgid "" "Return ``True`` if the platform supports creating a TCP socket which can " "handle both IPv4 and IPv6 connections." msgstr "" -#: ../Doc/library/socket.rst:650 +#: ../Doc/library/socket.rst:652 msgid "" "Duplicate the file descriptor *fd* (an integer as returned by a file " "object's :meth:`fileno` method) and build a socket object from the result. " @@ -802,38 +794,38 @@ msgid "" "socket is assumed to be in blocking mode." msgstr "" -#: ../Doc/library/socket.rst:667 +#: ../Doc/library/socket.rst:669 msgid "" "Instantiate a socket from data obtained from the :meth:`socket.share` " "method. The socket is assumed to be in blocking mode." msgstr "" -#: ../Doc/library/socket.rst:671 ../Doc/library/socket.rst:1668 +#: ../Doc/library/socket.rst:673 ../Doc/library/socket.rst:1670 msgid ":ref:`Availability `: Windows." msgstr ":ref:`Disponibilité ` : Windows." -#: ../Doc/library/socket.rst:677 +#: ../Doc/library/socket.rst:679 msgid "" "This is a Python type object that represents the socket object type. It is " "the same as ``type(socket(...))``." msgstr "" -#: ../Doc/library/socket.rst:682 +#: ../Doc/library/socket.rst:684 msgid "Other functions" msgstr "Autres fonctions" -#: ../Doc/library/socket.rst:684 +#: ../Doc/library/socket.rst:686 msgid "The :mod:`socket` module also offers various network-related services:" msgstr "" -#: ../Doc/library/socket.rst:689 +#: ../Doc/library/socket.rst:691 msgid "" "Close a socket file descriptor. This is like :func:`os.close`, but for " "sockets. On some platforms (most noticeable Windows) :func:`os.close` does " "not work for socket file descriptors." msgstr "" -#: ../Doc/library/socket.rst:697 +#: ../Doc/library/socket.rst:699 msgid "" "Translate the *host*/*port* argument into a sequence of 5-tuples that " "contain all the necessary arguments for creating a socket connected to that " @@ -843,7 +835,7 @@ msgid "" "and *port*, you can pass ``NULL`` to the underlying C API." msgstr "" -#: ../Doc/library/socket.rst:704 +#: ../Doc/library/socket.rst:706 msgid "" "The *family*, *type* and *proto* arguments can be optionally specified in " "order to narrow the list of addresses returned. Passing zero as a value for " @@ -854,15 +846,15 @@ msgid "" "domain name." msgstr "" -#: ../Doc/library/socket.rst:712 +#: ../Doc/library/socket.rst:714 msgid "The function returns a list of 5-tuples with the following structure:" msgstr "" -#: ../Doc/library/socket.rst:714 +#: ../Doc/library/socket.rst:716 msgid "``(family, type, proto, canonname, sockaddr)``" msgstr "" -#: ../Doc/library/socket.rst:716 +#: ../Doc/library/socket.rst:718 msgid "" "In these tuples, *family*, *type*, *proto* are all integers and are meant to " "be passed to the :func:`.socket` function. *canonname* will be a string " @@ -874,30 +866,30 @@ msgid "" "be passed to the :meth:`socket.connect` method." msgstr "" -#: ../Doc/library/socket.rst:727 +#: ../Doc/library/socket.rst:729 msgid "" "Raises an :ref:`auditing event ` ``socket.getaddrinfo`` with " "arguments ``host``, ``port``, ``family``, ``type``, ``protocol``." msgstr "" -#: ../Doc/library/socket.rst:728 +#: ../Doc/library/socket.rst:730 msgid "" "The following example fetches address information for a hypothetical TCP " "connection to ``example.org`` on port 80 (results may differ on your system " "if IPv6 isn't enabled)::" msgstr "" -#: ../Doc/library/socket.rst:738 +#: ../Doc/library/socket.rst:740 msgid "parameters can now be passed using keyword arguments." msgstr "" -#: ../Doc/library/socket.rst:741 +#: ../Doc/library/socket.rst:743 msgid "" "for IPv6 multicast addresses, string representing an address will not " "contain ``%scope`` part." msgstr "" -#: ../Doc/library/socket.rst:747 +#: ../Doc/library/socket.rst:749 msgid "" "Return a fully qualified domain name for *name*. If *name* is omitted or " "empty, it is interpreted as the local host. To find the fully qualified " @@ -907,7 +899,7 @@ msgid "" "hostname as returned by :func:`gethostname` is returned." msgstr "" -#: ../Doc/library/socket.rst:757 +#: ../Doc/library/socket.rst:759 msgid "" "Translate a host name to IPv4 address format. The IPv4 address is returned " "as a string, such as ``'100.50.200.5'``. If the host name is an IPv4 " @@ -917,13 +909,13 @@ msgid "" "stack support." msgstr "" -#: ../Doc/library/socket.rst:763 ../Doc/library/socket.rst:777 +#: ../Doc/library/socket.rst:765 ../Doc/library/socket.rst:779 msgid "" "Raises an :ref:`auditing event ` ``socket.gethostbyname`` with " "argument ``hostname``." msgstr "" -#: ../Doc/library/socket.rst:768 +#: ../Doc/library/socket.rst:770 msgid "" "Translate a host name to IPv4 address format, extended interface. Return a " "triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary " @@ -935,25 +927,25 @@ msgid "" "IPv4/v6 dual stack support." msgstr "" -#: ../Doc/library/socket.rst:782 +#: ../Doc/library/socket.rst:784 msgid "" "Return a string containing the hostname of the machine where the Python " "interpreter is currently executing." msgstr "" -#: ../Doc/library/socket.rst:786 +#: ../Doc/library/socket.rst:788 msgid "" "Raises an :ref:`auditing event ` ``socket.gethostname`` with no " "arguments." msgstr "" -#: ../Doc/library/socket.rst:787 +#: ../Doc/library/socket.rst:789 msgid "" "Note: :func:`gethostname` doesn't always return the fully qualified domain " "name; use :func:`getfqdn` for that." msgstr "" -#: ../Doc/library/socket.rst:793 +#: ../Doc/library/socket.rst:795 msgid "" "Return a triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is " "the primary host name responding to the given *ip_address*, *aliaslist* is a " @@ -964,13 +956,13 @@ msgid "" "`gethostbyaddr` supports both IPv4 and IPv6." msgstr "" -#: ../Doc/library/socket.rst:801 +#: ../Doc/library/socket.rst:803 msgid "" "Raises an :ref:`auditing event ` ``socket.gethostbyaddr`` with " "argument ``ip_address``." msgstr "" -#: ../Doc/library/socket.rst:806 +#: ../Doc/library/socket.rst:808 msgid "" "Translate a socket address *sockaddr* into a 2-tuple ``(host, port)``. " "Depending on the settings of *flags*, the result can contain a fully-" @@ -978,24 +970,24 @@ msgid "" "Similarly, *port* can contain a string port name or a numeric port number." msgstr "" -#: ../Doc/library/socket.rst:811 +#: ../Doc/library/socket.rst:813 msgid "" "For IPv6 addresses, ``%scope`` is appended to the host part if *sockaddr* " "contains meaningful *scopeid*. Usually this happens for multicast addresses." msgstr "" -#: ../Doc/library/socket.rst:814 +#: ../Doc/library/socket.rst:816 msgid "" "For more information about *flags* you can consult :manpage:`getnameinfo(3)`." msgstr "" -#: ../Doc/library/socket.rst:816 +#: ../Doc/library/socket.rst:818 msgid "" "Raises an :ref:`auditing event ` ``socket.getnameinfo`` with " "argument ``sockaddr``." msgstr "" -#: ../Doc/library/socket.rst:820 +#: ../Doc/library/socket.rst:822 msgid "" "Translate an Internet protocol name (for example, ``'icmp'``) to a constant " "suitable for passing as the (optional) third argument to the :func:`.socket` " @@ -1004,47 +996,47 @@ msgid "" "chosen automatically if the protocol is omitted or zero." msgstr "" -#: ../Doc/library/socket.rst:829 +#: ../Doc/library/socket.rst:831 msgid "" "Translate an Internet service name and protocol name to a port number for " "that service. The optional protocol name, if given, should be ``'tcp'`` or " "``'udp'``, otherwise any protocol will match." msgstr "" -#: ../Doc/library/socket.rst:833 +#: ../Doc/library/socket.rst:835 msgid "" "Raises an :ref:`auditing event ` ``socket.getservbyname`` with " "arguments ``servicename``, ``protocolname``." msgstr "" -#: ../Doc/library/socket.rst:838 +#: ../Doc/library/socket.rst:840 msgid "" "Translate an Internet port number and protocol name to a service name for " "that service. The optional protocol name, if given, should be ``'tcp'`` or " "``'udp'``, otherwise any protocol will match." msgstr "" -#: ../Doc/library/socket.rst:842 +#: ../Doc/library/socket.rst:844 msgid "" "Raises an :ref:`auditing event ` ``socket.getservbyport`` with " "arguments ``port``, ``protocolname``." msgstr "" -#: ../Doc/library/socket.rst:847 +#: ../Doc/library/socket.rst:849 msgid "" "Convert 32-bit positive integers from network to host byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 4-byte swap operation." msgstr "" -#: ../Doc/library/socket.rst:854 +#: ../Doc/library/socket.rst:856 msgid "" "Convert 16-bit positive integers from network to host byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 2-byte swap operation." msgstr "" -#: ../Doc/library/socket.rst:858 ../Doc/library/socket.rst:878 +#: ../Doc/library/socket.rst:860 ../Doc/library/socket.rst:880 msgid "" "In case *x* does not fit in 16-bit unsigned integer, but does fit in a " "positive C int, it is silently truncated to 16-bit unsigned integer. This " @@ -1052,21 +1044,21 @@ msgid "" "future versions of Python." msgstr "" -#: ../Doc/library/socket.rst:867 +#: ../Doc/library/socket.rst:869 msgid "" "Convert 32-bit positive integers from host to network byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 4-byte swap operation." msgstr "" -#: ../Doc/library/socket.rst:874 +#: ../Doc/library/socket.rst:876 msgid "" "Convert 16-bit positive integers from host to network byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 2-byte swap operation." msgstr "" -#: ../Doc/library/socket.rst:887 +#: ../Doc/library/socket.rst:889 msgid "" "Convert an IPv4 address from dotted-quad string format (for example, " "'123.45.67.89') to 32-bit packed binary format, as a bytes object four " @@ -1076,26 +1068,26 @@ msgid "" "returns." msgstr "" -#: ../Doc/library/socket.rst:893 +#: ../Doc/library/socket.rst:895 msgid "" ":func:`inet_aton` also accepts strings with less than three dots; see the " "Unix manual page :manpage:`inet(3)` for details." msgstr "" -#: ../Doc/library/socket.rst:896 +#: ../Doc/library/socket.rst:898 msgid "" "If the IPv4 address string passed to this function is invalid, :exc:" "`OSError` will be raised. Note that exactly what is valid depends on the " "underlying C implementation of :c:func:`inet_aton`." msgstr "" -#: ../Doc/library/socket.rst:900 +#: ../Doc/library/socket.rst:902 msgid "" ":func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be " "used instead for IPv4/v6 dual stack support." msgstr "" -#: ../Doc/library/socket.rst:906 +#: ../Doc/library/socket.rst:908 msgid "" "Convert a 32-bit packed IPv4 address (a :term:`bytes-like object` four bytes " "in length) to its standard dotted-quad string representation (for example, " @@ -1105,7 +1097,7 @@ msgid "" "an argument." msgstr "" -#: ../Doc/library/socket.rst:913 +#: ../Doc/library/socket.rst:915 msgid "" "If the byte sequence passed to this function is not exactly 4 bytes in " "length, :exc:`OSError` will be raised. :func:`inet_ntoa` does not support " @@ -1113,7 +1105,7 @@ msgid "" "support." msgstr "" -#: ../Doc/library/socket.rst:924 +#: ../Doc/library/socket.rst:926 msgid "" "Convert an IP address from its family-specific string format to a packed, " "binary format. :func:`inet_pton` is useful when a library or network " @@ -1121,7 +1113,7 @@ msgid "" "func:`inet_aton`) or :c:type:`struct in6_addr`." msgstr "" -#: ../Doc/library/socket.rst:929 +#: ../Doc/library/socket.rst:931 msgid "" "Supported values for *address_family* are currently :const:`AF_INET` and :" "const:`AF_INET6`. If the IP address string *ip_string* is invalid, :exc:" @@ -1130,16 +1122,16 @@ msgid "" "`inet_pton`." msgstr "" -#: ../Doc/library/socket.rst:936 ../Doc/library/socket.rst:956 +#: ../Doc/library/socket.rst:938 ../Doc/library/socket.rst:958 msgid "" ":ref:`Availability `: Unix (maybe not all platforms), Windows." msgstr "" -#: ../Doc/library/socket.rst:937 ../Doc/library/socket.rst:957 +#: ../Doc/library/socket.rst:939 ../Doc/library/socket.rst:959 msgid "Windows support added" msgstr "Ajout de la gestion de Windows." -#: ../Doc/library/socket.rst:943 +#: ../Doc/library/socket.rst:945 msgid "" "Convert a packed IP address (a :term:`bytes-like object` of some number of " "bytes) to its standard, family-specific string representation (for example, " @@ -1148,7 +1140,7 @@ msgid "" "in_addr` (similar to :func:`inet_ntoa`) or :c:type:`struct in6_addr`." msgstr "" -#: ../Doc/library/socket.rst:950 +#: ../Doc/library/socket.rst:952 msgid "" "Supported values for *address_family* are currently :const:`AF_INET` and :" "const:`AF_INET6`. If the bytes object *packed_ip* is not the correct length " @@ -1156,7 +1148,7 @@ msgid "" "`OSError` is raised for errors from the call to :func:`inet_ntop`." msgstr "" -#: ../Doc/library/socket.rst:972 +#: ../Doc/library/socket.rst:974 msgid "" "Return the total length, without trailing padding, of an ancillary data item " "with associated data of the given *length*. This value can often be used as " @@ -1167,14 +1159,14 @@ msgid "" "the permissible range of values." msgstr "" -#: ../Doc/library/socket.rst:982 ../Doc/library/socket.rst:1003 -#: ../Doc/library/socket.rst:1403 ../Doc/library/socket.rst:1445 -#: ../Doc/library/socket.rst:1551 +#: ../Doc/library/socket.rst:984 ../Doc/library/socket.rst:1005 +#: ../Doc/library/socket.rst:1405 ../Doc/library/socket.rst:1447 +#: ../Doc/library/socket.rst:1553 msgid "" ":ref:`Availability `: most Unix platforms, possibly others." msgstr "" -#: ../Doc/library/socket.rst:988 +#: ../Doc/library/socket.rst:990 msgid "" "Return the buffer size needed for :meth:`~socket.recvmsg` to receive an " "ancillary data item with associated data of the given *length*, along with " @@ -1184,7 +1176,7 @@ msgid "" "values." msgstr "" -#: ../Doc/library/socket.rst:996 +#: ../Doc/library/socket.rst:998 msgid "" "Note that some systems might support ancillary data without providing this " "function. Also note that setting the buffer size using the results of this " @@ -1192,83 +1184,83 @@ msgid "" "received, since additional data may be able to fit into the padding area." msgstr "" -#: ../Doc/library/socket.rst:1009 +#: ../Doc/library/socket.rst:1011 msgid "" "Return the default timeout in seconds (float) for new socket objects. A " "value of ``None`` indicates that new socket objects have no timeout. When " "the socket module is first imported, the default is ``None``." msgstr "" -#: ../Doc/library/socket.rst:1016 +#: ../Doc/library/socket.rst:1018 msgid "" "Set the default timeout in seconds (float) for new socket objects. When the " "socket module is first imported, the default is ``None``. See :meth:" "`~socket.settimeout` for possible values and their respective meanings." msgstr "" -#: ../Doc/library/socket.rst:1024 +#: ../Doc/library/socket.rst:1026 msgid "" "Set the machine's hostname to *name*. This will raise an :exc:`OSError` if " "you don't have enough rights." msgstr "" -#: ../Doc/library/socket.rst:1028 +#: ../Doc/library/socket.rst:1030 msgid "" "Raises an :ref:`auditing event ` ``socket.sethostname`` with " "argument ``name``." msgstr "" -#: ../Doc/library/socket.rst:1030 +#: ../Doc/library/socket.rst:1032 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilité ` : Unix." -#: ../Doc/library/socket.rst:1036 +#: ../Doc/library/socket.rst:1038 msgid "" "Return a list of network interface information (index int, name string) " "tuples. :exc:`OSError` if the system call fails." msgstr "" -#: ../Doc/library/socket.rst:1041 ../Doc/library/socket.rst:1055 -#: ../Doc/library/socket.rst:1069 +#: ../Doc/library/socket.rst:1043 ../Doc/library/socket.rst:1057 +#: ../Doc/library/socket.rst:1071 #, fuzzy msgid ":ref:`Availability `: Unix, Windows." msgstr ":ref:`Disponibilité ` : Windows." -#: ../Doc/library/socket.rst:1044 ../Doc/library/socket.rst:1058 -#: ../Doc/library/socket.rst:1072 +#: ../Doc/library/socket.rst:1046 ../Doc/library/socket.rst:1060 +#: ../Doc/library/socket.rst:1074 #, fuzzy msgid "Windows support was added." msgstr "Ajout de la gestion de Windows." -#: ../Doc/library/socket.rst:1050 +#: ../Doc/library/socket.rst:1052 msgid "" "Return a network interface index number corresponding to an interface name. :" "exc:`OSError` if no interface with the given name exists." msgstr "" -#: ../Doc/library/socket.rst:1064 +#: ../Doc/library/socket.rst:1066 msgid "" "Return a network interface name corresponding to an interface index number. :" "exc:`OSError` if no interface with the given index exists." msgstr "" -#: ../Doc/library/socket.rst:1079 +#: ../Doc/library/socket.rst:1081 msgid "Socket Objects" msgstr "" -#: ../Doc/library/socket.rst:1081 +#: ../Doc/library/socket.rst:1083 msgid "" "Socket objects have the following methods. Except for :meth:`~socket." "makefile`, these correspond to Unix system calls applicable to sockets." msgstr "" -#: ../Doc/library/socket.rst:1085 +#: ../Doc/library/socket.rst:1087 msgid "" "Support for the :term:`context manager` protocol was added. Exiting the " "context manager is equivalent to calling :meth:`~socket.close`." msgstr "" -#: ../Doc/library/socket.rst:1092 +#: ../Doc/library/socket.rst:1094 msgid "" "Accept a connection. The socket must be bound to an address and listening " "for connections. The return value is a pair ``(conn, address)`` where *conn* " @@ -1277,14 +1269,14 @@ msgid "" "connection." msgstr "" -#: ../Doc/library/socket.rst:1099 ../Doc/library/socket.rst:1186 +#: ../Doc/library/socket.rst:1101 ../Doc/library/socket.rst:1188 msgid "The socket is now non-inheritable." msgstr "" -#: ../Doc/library/socket.rst:1102 ../Doc/library/socket.rst:1317 -#: ../Doc/library/socket.rst:1331 ../Doc/library/socket.rst:1406 -#: ../Doc/library/socket.rst:1477 ../Doc/library/socket.rst:1496 -#: ../Doc/library/socket.rst:1513 ../Doc/library/socket.rst:1556 +#: ../Doc/library/socket.rst:1104 ../Doc/library/socket.rst:1319 +#: ../Doc/library/socket.rst:1333 ../Doc/library/socket.rst:1408 +#: ../Doc/library/socket.rst:1479 ../Doc/library/socket.rst:1498 +#: ../Doc/library/socket.rst:1515 ../Doc/library/socket.rst:1558 msgid "" "If the system call is interrupted and the signal handler does not raise an " "exception, the method now retries the system call instead of raising an :exc:" @@ -1294,19 +1286,19 @@ msgstr "" "aucune exception, la fonction réessaye l'appel système au lieu de lever une :" "exc:`InterruptedError` (voir la :pep:`475` à propos du raisonnement)." -#: ../Doc/library/socket.rst:1110 +#: ../Doc/library/socket.rst:1112 msgid "" "Bind the socket to *address*. The socket must not already be bound. (The " "format of *address* depends on the address family --- see above.)" msgstr "" -#: ../Doc/library/socket.rst:1113 +#: ../Doc/library/socket.rst:1115 msgid "" "Raises an :ref:`auditing event ` ``socket.bind`` with arguments " "``self``, ``address``." msgstr "" -#: ../Doc/library/socket.rst:1117 +#: ../Doc/library/socket.rst:1119 msgid "" "Mark the socket closed. The underlying system resource (e.g. a file " "descriptor) is also closed when all file objects from :meth:`makefile()` are " @@ -1315,20 +1307,20 @@ msgid "" "flushed)." msgstr "" -#: ../Doc/library/socket.rst:1123 +#: ../Doc/library/socket.rst:1125 msgid "" "Sockets are automatically closed when they are garbage-collected, but it is " "recommended to :meth:`close` them explicitly, or to use a :keyword:`with` " "statement around them." msgstr "" -#: ../Doc/library/socket.rst:1127 +#: ../Doc/library/socket.rst:1129 msgid "" ":exc:`OSError` is now raised if an error occurs when the underlying :c:func:" "`close` call is made." msgstr "" -#: ../Doc/library/socket.rst:1133 +#: ../Doc/library/socket.rst:1135 msgid "" ":meth:`close()` releases the resource associated with a connection but does " "not necessarily close the connection immediately. If you want to close the " @@ -1336,13 +1328,13 @@ msgid "" "`close()`." msgstr "" -#: ../Doc/library/socket.rst:1141 +#: ../Doc/library/socket.rst:1143 msgid "" "Connect to a remote socket at *address*. (The format of *address* depends on " "the address family --- see above.)" msgstr "" -#: ../Doc/library/socket.rst:1144 +#: ../Doc/library/socket.rst:1146 msgid "" "If the connection is interrupted by a signal, the method waits until the " "connection completes, or raise a :exc:`socket.timeout` on timeout, if the " @@ -1352,13 +1344,13 @@ msgid "" "(or the exception raised by the signal handler)." msgstr "" -#: ../Doc/library/socket.rst:1152 ../Doc/library/socket.rst:1169 +#: ../Doc/library/socket.rst:1154 ../Doc/library/socket.rst:1171 msgid "" "Raises an :ref:`auditing event ` ``socket.connect`` with arguments " "``self``, ``address``." msgstr "" -#: ../Doc/library/socket.rst:1153 +#: ../Doc/library/socket.rst:1155 msgid "" "The method now waits until the connection completes instead of raising an :" "exc:`InterruptedError` exception if the connection is interrupted by a " @@ -1366,7 +1358,7 @@ msgid "" "blocking or has a timeout (see the :pep:`475` for the rationale)." msgstr "" -#: ../Doc/library/socket.rst:1162 +#: ../Doc/library/socket.rst:1164 msgid "" "Like ``connect(address)``, but return an error indicator instead of raising " "an exception for errors returned by the C-level :c:func:`connect` call " @@ -1376,38 +1368,38 @@ msgid "" "asynchronous connects." msgstr "" -#: ../Doc/library/socket.rst:1173 +#: ../Doc/library/socket.rst:1175 msgid "" "Put the socket object into closed state without actually closing the " "underlying file descriptor. The file descriptor is returned, and can be " "reused for other purposes." msgstr "" -#: ../Doc/library/socket.rst:1182 +#: ../Doc/library/socket.rst:1184 msgid "Duplicate the socket." msgstr "" -#: ../Doc/library/socket.rst:1192 +#: ../Doc/library/socket.rst:1194 msgid "" "Return the socket's file descriptor (a small integer), or -1 on failure. " "This is useful with :func:`select.select`." msgstr "" -#: ../Doc/library/socket.rst:1195 +#: ../Doc/library/socket.rst:1197 msgid "" "Under Windows the small integer returned by this method cannot be used where " "a file descriptor can be used (such as :func:`os.fdopen`). Unix does not " "have this limitation." msgstr "" -#: ../Doc/library/socket.rst:1201 +#: ../Doc/library/socket.rst:1203 msgid "" "Get the :ref:`inheritable flag ` of the socket's file " "descriptor or socket's handle: ``True`` if the socket can be inherited in " "child processes, ``False`` if it cannot." msgstr "" -#: ../Doc/library/socket.rst:1210 +#: ../Doc/library/socket.rst:1212 msgid "" "Return the remote address to which the socket is connected. This is useful " "to find out the port number of a remote IPv4/v6 socket, for instance. (The " @@ -1415,14 +1407,14 @@ msgid "" "above.) On some systems this function is not supported." msgstr "" -#: ../Doc/library/socket.rst:1218 +#: ../Doc/library/socket.rst:1220 msgid "" "Return the socket's own address. This is useful to find out the port number " "of an IPv4/v6 socket, for instance. (The format of the address returned " "depends on the address family --- see above.)" msgstr "" -#: ../Doc/library/socket.rst:1225 +#: ../Doc/library/socket.rst:1227 msgid "" "Return the value of the given socket option (see the Unix man page :manpage:" "`getsockopt(2)`). The needed symbolic constants (:const:`SO_\\*` etc.) are " @@ -1434,16 +1426,16 @@ msgid "" "`struct` for a way to decode C structures encoded as byte strings)." msgstr "" -#: ../Doc/library/socket.rst:1237 +#: ../Doc/library/socket.rst:1239 msgid "" "Return ``True`` if socket is in blocking mode, ``False`` if in non-blocking." msgstr "" -#: ../Doc/library/socket.rst:1240 +#: ../Doc/library/socket.rst:1242 msgid "This is equivalent to checking ``socket.gettimeout() == 0``." msgstr "" -#: ../Doc/library/socket.rst:1247 +#: ../Doc/library/socket.rst:1249 msgid "" "Return the timeout in seconds (float) associated with socket operations, or " "``None`` if no timeout is set. This reflects the last call to :meth:" @@ -1454,30 +1446,30 @@ msgstr "" msgid "platform" msgstr "" -#: ../Doc/library/socket.rst:1254 +#: ../Doc/library/socket.rst:1256 msgid "Windows" msgstr "Windows" -#: ../Doc/library/socket.rst:1256 +#: ../Doc/library/socket.rst:1258 msgid "" "The :meth:`ioctl` method is a limited interface to the WSAIoctl system " "interface. Please refer to the `Win32 documentation `_ for more information." msgstr "" -#: ../Doc/library/socket.rst:1261 +#: ../Doc/library/socket.rst:1263 msgid "" "On other platforms, the generic :func:`fcntl.fcntl` and :func:`fcntl.ioctl` " "functions may be used; they accept a socket object as their first argument." msgstr "" -#: ../Doc/library/socket.rst:1264 +#: ../Doc/library/socket.rst:1266 msgid "" "Currently only the following control codes are supported: ``SIO_RCVALL``, " "``SIO_KEEPALIVE_VALS``, and ``SIO_LOOPBACK_FAST_PATH``." msgstr "" -#: ../Doc/library/socket.rst:1272 +#: ../Doc/library/socket.rst:1274 msgid "" "Enable a server to accept connections. If *backlog* is specified, it must " "be at least 0 (if it is lower, it is set to 0); it specifies the number of " @@ -1485,11 +1477,11 @@ msgid "" "connections. If not specified, a default reasonable value is chosen." msgstr "" -#: ../Doc/library/socket.rst:1277 +#: ../Doc/library/socket.rst:1279 msgid "The *backlog* parameter is now optional." msgstr "" -#: ../Doc/library/socket.rst:1285 +#: ../Doc/library/socket.rst:1287 msgid "" "Return a :term:`file object` associated with the socket. The exact returned " "type depends on the arguments given to :meth:`makefile`. These arguments " @@ -1498,28 +1490,28 @@ msgid "" "``'b'``." msgstr "" -#: ../Doc/library/socket.rst:1290 +#: ../Doc/library/socket.rst:1292 msgid "" "The socket must be in blocking mode; it can have a timeout, but the file " "object's internal buffer may end up in an inconsistent state if a timeout " "occurs." msgstr "" -#: ../Doc/library/socket.rst:1294 +#: ../Doc/library/socket.rst:1296 msgid "" "Closing the file object returned by :meth:`makefile` won't close the " "original socket unless all other file objects have been closed and :meth:" "`socket.close` has been called on the socket object." msgstr "" -#: ../Doc/library/socket.rst:1300 +#: ../Doc/library/socket.rst:1302 msgid "" "On Windows, the file-like object created by :meth:`makefile` cannot be used " "where a file object with a file descriptor is expected, such as the stream " "arguments of :meth:`subprocess.Popen`." msgstr "" -#: ../Doc/library/socket.rst:1307 +#: ../Doc/library/socket.rst:1309 msgid "" "Receive data from the socket. The return value is a bytes object " "representing the data received. The maximum amount of data to be received " @@ -1528,13 +1520,13 @@ msgid "" "zero." msgstr "" -#: ../Doc/library/socket.rst:1314 +#: ../Doc/library/socket.rst:1316 msgid "" "For best match with hardware and network realities, the value of *bufsize* " "should be a relatively small power of 2, for example, 4096." msgstr "" -#: ../Doc/library/socket.rst:1325 +#: ../Doc/library/socket.rst:1327 msgid "" "Receive data from the socket. The return value is a pair ``(bytes, " "address)`` where *bytes* is a bytes object representing the data received " @@ -1544,14 +1536,14 @@ msgid "" "address family --- see above.)" msgstr "" -#: ../Doc/library/socket.rst:1336 +#: ../Doc/library/socket.rst:1338 msgid "" "For multicast IPv6 address, first item of *address* does not contain ``" "%scope`` part anymore. In order to get full IPv6 address use :func:" "`getnameinfo`." msgstr "" -#: ../Doc/library/socket.rst:1343 +#: ../Doc/library/socket.rst:1345 msgid "" "Receive normal data (up to *bufsize* bytes) and ancillary data from the " "socket. The *ancbufsize* argument sets the size in bytes of the internal " @@ -1562,7 +1554,7 @@ msgid "" "*flags* argument defaults to 0 and has the same meaning as for :meth:`recv`." msgstr "" -#: ../Doc/library/socket.rst:1353 +#: ../Doc/library/socket.rst:1355 msgid "" "The return value is a 4-tuple: ``(data, ancdata, msg_flags, address)``. The " "*data* item is a :class:`bytes` object holding the non-ancillary data " @@ -1577,7 +1569,7 @@ msgid "" "socket, if available; otherwise, its value is unspecified." msgstr "" -#: ../Doc/library/socket.rst:1367 +#: ../Doc/library/socket.rst:1369 msgid "" "On some systems, :meth:`sendmsg` and :meth:`recvmsg` can be used to pass " "file descriptors between processes over an :const:`AF_UNIX` socket. When " @@ -1590,7 +1582,7 @@ msgid "" "descriptors received via this mechanism." msgstr "" -#: ../Doc/library/socket.rst:1378 +#: ../Doc/library/socket.rst:1380 msgid "" "Some systems do not indicate the truncated length of ancillary data items " "which have been only partially received. If an item appears to extend " @@ -1599,7 +1591,7 @@ msgid "" "provided it has not been truncated before the start of its associated data." msgstr "" -#: ../Doc/library/socket.rst:1385 +#: ../Doc/library/socket.rst:1387 msgid "" "On systems which support the :const:`SCM_RIGHTS` mechanism, the following " "function will receive up to *maxfds* file descriptors, returning the message " @@ -1608,7 +1600,7 @@ msgid "" "meth:`sendmsg`. ::" msgstr "" -#: ../Doc/library/socket.rst:1414 +#: ../Doc/library/socket.rst:1416 msgid "" "Receive normal data and ancillary data from the socket, behaving as :meth:" "`recvmsg` would, but scatter the non-ancillary data into a series of buffers " @@ -1621,7 +1613,7 @@ msgid "" "arguments have the same meaning as for :meth:`recvmsg`." msgstr "" -#: ../Doc/library/socket.rst:1425 +#: ../Doc/library/socket.rst:1427 msgid "" "The return value is a 4-tuple: ``(nbytes, ancdata, msg_flags, address)``, " "where *nbytes* is the total number of bytes of non-ancillary data written " @@ -1629,11 +1621,11 @@ msgid "" "for :meth:`recvmsg`." msgstr "" -#: ../Doc/library/socket.rst:1430 +#: ../Doc/library/socket.rst:1432 msgid "Example::" msgstr "Exemple ::" -#: ../Doc/library/socket.rst:1451 +#: ../Doc/library/socket.rst:1453 msgid "" "Receive data from the socket, writing it into *buffer* instead of creating a " "new bytestring. The return value is a pair ``(nbytes, address)`` where " @@ -1643,7 +1635,7 @@ msgid "" "format of *address* depends on the address family --- see above.)" msgstr "" -#: ../Doc/library/socket.rst:1461 +#: ../Doc/library/socket.rst:1463 msgid "" "Receive up to *nbytes* bytes from the socket, storing the data into a buffer " "rather than creating a new bytestring. If *nbytes* is not specified (or 0), " @@ -1652,7 +1644,7 @@ msgid "" "of the optional argument *flags*; it defaults to zero." msgstr "" -#: ../Doc/library/socket.rst:1470 +#: ../Doc/library/socket.rst:1472 msgid "" "Send data to the socket. The socket must be connected to a remote socket. " "The optional *flags* argument has the same meaning as for :meth:`recv` " @@ -1662,7 +1654,7 @@ msgid "" "data. For further information on this topic, consult the :ref:`socket-howto`." msgstr "" -#: ../Doc/library/socket.rst:1485 +#: ../Doc/library/socket.rst:1487 msgid "" "Send data to the socket. The socket must be connected to a remote socket. " "The optional *flags* argument has the same meaning as for :meth:`recv` " @@ -1672,13 +1664,13 @@ msgid "" "to determine how much data, if any, was successfully sent." msgstr "" -#: ../Doc/library/socket.rst:1492 +#: ../Doc/library/socket.rst:1494 msgid "" "The socket timeout is no more reset each time data is sent successfully. The " "socket timeout is now the maximum total duration to send all data." msgstr "" -#: ../Doc/library/socket.rst:1505 +#: ../Doc/library/socket.rst:1507 msgid "" "Send data to the socket. The socket should not be connected to a remote " "socket, since the destination socket is specified by *address*. The " @@ -1687,13 +1679,13 @@ msgid "" "address family --- see above.)" msgstr "" -#: ../Doc/library/socket.rst:1512 +#: ../Doc/library/socket.rst:1514 msgid "" "Raises an :ref:`auditing event ` ``socket.sendto`` with arguments " "``self``, ``address``." msgstr "" -#: ../Doc/library/socket.rst:1521 +#: ../Doc/library/socket.rst:1523 msgid "" "Send normal and ancillary data to the socket, gathering the non-ancillary " "data from a series of buffers and concatenating it into a single message. " @@ -1713,27 +1705,27 @@ msgid "" "bytes of non-ancillary data sent." msgstr "" -#: ../Doc/library/socket.rst:1541 +#: ../Doc/library/socket.rst:1543 msgid "" "The following function sends the list of file descriptors *fds* over an :" "const:`AF_UNIX` socket, on systems which support the :const:`SCM_RIGHTS` " "mechanism. See also :meth:`recvmsg`. ::" msgstr "" -#: ../Doc/library/socket.rst:1553 +#: ../Doc/library/socket.rst:1555 msgid "" "Raises an :ref:`auditing event ` ``socket.sendmsg`` with arguments " "``self``, ``address``." msgstr "" -#: ../Doc/library/socket.rst:1563 +#: ../Doc/library/socket.rst:1565 msgid "" "Specialized version of :meth:`~socket.sendmsg` for :const:`AF_ALG` socket. " "Set mode, IV, AEAD associated data length and flags for :const:`AF_ALG` " "socket." msgstr "" -#: ../Doc/library/socket.rst:1572 +#: ../Doc/library/socket.rst:1574 msgid "" "Send a file until EOF is reached by using high-performance :mod:`os." "sendfile` and return the total number of bytes which were sent. *file* must " @@ -1747,38 +1739,38 @@ msgid "" "be of :const:`SOCK_STREAM` type. Non-blocking sockets are not supported." msgstr "" -#: ../Doc/library/socket.rst:1588 +#: ../Doc/library/socket.rst:1590 msgid "" "Set the :ref:`inheritable flag ` of the socket's file " "descriptor or socket's handle." msgstr "" -#: ../Doc/library/socket.rst:1596 +#: ../Doc/library/socket.rst:1598 msgid "" "Set blocking or non-blocking mode of the socket: if *flag* is false, the " "socket is set to non-blocking, else to blocking mode." msgstr "" -#: ../Doc/library/socket.rst:1599 +#: ../Doc/library/socket.rst:1601 msgid "" "This method is a shorthand for certain :meth:`~socket.settimeout` calls:" msgstr "" -#: ../Doc/library/socket.rst:1601 +#: ../Doc/library/socket.rst:1603 msgid "``sock.setblocking(True)`` is equivalent to ``sock.settimeout(None)``" msgstr "" -#: ../Doc/library/socket.rst:1603 +#: ../Doc/library/socket.rst:1605 msgid "``sock.setblocking(False)`` is equivalent to ``sock.settimeout(0.0)``" msgstr "" -#: ../Doc/library/socket.rst:1605 +#: ../Doc/library/socket.rst:1607 msgid "" "The method no longer applies :const:`SOCK_NONBLOCK` flag on :attr:`socket." "type`." msgstr "" -#: ../Doc/library/socket.rst:1612 +#: ../Doc/library/socket.rst:1614 msgid "" "Set a timeout on blocking socket operations. The *value* argument can be a " "nonnegative floating point number expressing seconds, or ``None``. If a non-" @@ -1788,19 +1780,19 @@ msgid "" "blocking mode. If ``None`` is given, the socket is put in blocking mode." msgstr "" -#: ../Doc/library/socket.rst:1619 +#: ../Doc/library/socket.rst:1621 msgid "" "For further information, please consult the :ref:`notes on socket timeouts " "`." msgstr "" -#: ../Doc/library/socket.rst:1621 +#: ../Doc/library/socket.rst:1623 msgid "" "The method no longer toggles :const:`SOCK_NONBLOCK` flag on :attr:`socket." "type`." msgstr "" -#: ../Doc/library/socket.rst:1632 +#: ../Doc/library/socket.rst:1634 msgid "" "Set the value of the given socket option (see the Unix manual page :manpage:" "`setsockopt(2)`). The needed symbolic constants are defined in the :mod:" @@ -1813,11 +1805,11 @@ msgid "" "C function with ``optval=NULL`` and ``optlen=optlen``." msgstr "" -#: ../Doc/library/socket.rst:1646 +#: ../Doc/library/socket.rst:1648 msgid "setsockopt(level, optname, None, optlen: int) form added." msgstr "" -#: ../Doc/library/socket.rst:1652 +#: ../Doc/library/socket.rst:1654 msgid "" "Shut down one or both halves of the connection. If *how* is :const:" "`SHUT_RD`, further receives are disallowed. If *how* is :const:`SHUT_WR`, " @@ -1825,7 +1817,7 @@ msgid "" "and receives are disallowed." msgstr "" -#: ../Doc/library/socket.rst:1660 +#: ../Doc/library/socket.rst:1662 msgid "" "Duplicate a socket and prepare it for sharing with a target process. The " "target process must be provided with *process_id*. The resulting bytes " @@ -1836,48 +1828,48 @@ msgid "" "process." msgstr "" -#: ../Doc/library/socket.rst:1672 +#: ../Doc/library/socket.rst:1674 msgid "" "Note that there are no methods :meth:`read` or :meth:`write`; use :meth:" "`~socket.recv` and :meth:`~socket.send` without *flags* argument instead." msgstr "" -#: ../Doc/library/socket.rst:1675 +#: ../Doc/library/socket.rst:1677 msgid "" "Socket objects also have these (read-only) attributes that correspond to the " "values given to the :class:`~socket.socket` constructor." msgstr "" -#: ../Doc/library/socket.rst:1681 +#: ../Doc/library/socket.rst:1683 msgid "The socket family." msgstr "" -#: ../Doc/library/socket.rst:1686 +#: ../Doc/library/socket.rst:1688 msgid "The socket type." msgstr "" -#: ../Doc/library/socket.rst:1691 +#: ../Doc/library/socket.rst:1693 msgid "The socket protocol." msgstr "" -#: ../Doc/library/socket.rst:1698 +#: ../Doc/library/socket.rst:1700 msgid "Notes on socket timeouts" msgstr "" -#: ../Doc/library/socket.rst:1700 +#: ../Doc/library/socket.rst:1702 msgid "" "A socket object can be in one of three modes: blocking, non-blocking, or " "timeout. Sockets are by default always created in blocking mode, but this " "can be changed by calling :func:`setdefaulttimeout`." msgstr "" -#: ../Doc/library/socket.rst:1704 +#: ../Doc/library/socket.rst:1706 msgid "" "In *blocking mode*, operations block until complete or the system returns an " "error (such as connection timed out)." msgstr "" -#: ../Doc/library/socket.rst:1707 +#: ../Doc/library/socket.rst:1709 msgid "" "In *non-blocking mode*, operations fail (with an error that is unfortunately " "system-dependent) if they cannot be completed immediately: functions from " @@ -1885,14 +1877,14 @@ msgid "" "for reading or writing." msgstr "" -#: ../Doc/library/socket.rst:1712 +#: ../Doc/library/socket.rst:1714 msgid "" "In *timeout mode*, operations fail if they cannot be completed within the " "timeout specified for the socket (they raise a :exc:`timeout` exception) or " "if the system returns an error." msgstr "" -#: ../Doc/library/socket.rst:1717 +#: ../Doc/library/socket.rst:1719 msgid "" "At the operating system level, sockets in *timeout mode* are internally set " "in non-blocking mode. Also, the blocking and timeout modes are shared " @@ -1901,11 +1893,11 @@ msgid "" "you decide to use the :meth:`~socket.fileno()` of a socket." msgstr "" -#: ../Doc/library/socket.rst:1724 +#: ../Doc/library/socket.rst:1726 msgid "Timeouts and the ``connect`` method" msgstr "" -#: ../Doc/library/socket.rst:1726 +#: ../Doc/library/socket.rst:1728 msgid "" "The :meth:`~socket.connect` operation is also subject to the timeout " "setting, and in general it is recommended to call :meth:`~socket.settimeout` " @@ -1915,24 +1907,24 @@ msgid "" "setting." msgstr "" -#: ../Doc/library/socket.rst:1734 +#: ../Doc/library/socket.rst:1736 msgid "Timeouts and the ``accept`` method" msgstr "" -#: ../Doc/library/socket.rst:1736 +#: ../Doc/library/socket.rst:1738 msgid "" "If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :" "meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour " "depends on settings of the listening socket:" msgstr "" -#: ../Doc/library/socket.rst:1740 +#: ../Doc/library/socket.rst:1742 msgid "" "if the listening socket is in *blocking mode* or in *timeout mode*, the " "socket returned by :meth:`~socket.accept` is in *blocking mode*;" msgstr "" -#: ../Doc/library/socket.rst:1743 +#: ../Doc/library/socket.rst:1745 msgid "" "if the listening socket is in *non-blocking mode*, whether the socket " "returned by :meth:`~socket.accept` is in blocking or non-blocking mode is " @@ -1940,11 +1932,11 @@ msgid "" "it is recommended you manually override this setting." msgstr "" -#: ../Doc/library/socket.rst:1752 +#: ../Doc/library/socket.rst:1754 msgid "Example" msgstr "Exemple" -#: ../Doc/library/socket.rst:1754 +#: ../Doc/library/socket.rst:1756 msgid "" "Here are four minimal example programs using the TCP/IP protocol: a server " "that echoes all data that it receives back (servicing only one client), and " @@ -1957,11 +1949,11 @@ msgid "" "new socket returned by :meth:`~socket.accept`." msgstr "" -#: ../Doc/library/socket.rst:1764 +#: ../Doc/library/socket.rst:1766 msgid "The first two examples support IPv4 only. ::" msgstr "" -#: ../Doc/library/socket.rst:1795 +#: ../Doc/library/socket.rst:1797 msgid "" "The next two examples are identical to the above two, but support both IPv4 " "and IPv6. The server side will listen to the first address family available " @@ -1971,73 +1963,73 @@ msgid "" "resolution, and sends traffic to the first one connected successfully. ::" msgstr "" -#: ../Doc/library/socket.rst:1867 +#: ../Doc/library/socket.rst:1869 msgid "" "The next example shows how to write a very simple network sniffer with raw " "sockets on Windows. The example requires administrator privileges to modify " "the interface::" msgstr "" -#: ../Doc/library/socket.rst:1892 +#: ../Doc/library/socket.rst:1894 msgid "" "The next example shows how to use the socket interface to communicate to a " "CAN network using the raw socket protocol. To use CAN with the broadcast " "manager protocol instead, open a socket with::" msgstr "" -#: ../Doc/library/socket.rst:1898 +#: ../Doc/library/socket.rst:1900 msgid "" "After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the " "socket, you can use the :meth:`socket.send`, and the :meth:`socket.recv` " "operations (and their counterparts) on the socket object as usual." msgstr "" -#: ../Doc/library/socket.rst:1902 +#: ../Doc/library/socket.rst:1904 msgid "This last example might require special privileges::" msgstr "" -#: ../Doc/library/socket.rst:1942 +#: ../Doc/library/socket.rst:1944 msgid "" "Running an example several times with too small delay between executions, " "could lead to this error::" msgstr "" -#: ../Doc/library/socket.rst:1947 +#: ../Doc/library/socket.rst:1949 msgid "" "This is because the previous execution has left the socket in a " "``TIME_WAIT`` state, and can't be immediately reused." msgstr "" -#: ../Doc/library/socket.rst:1950 +#: ../Doc/library/socket.rst:1952 msgid "" "There is a :mod:`socket` flag to set, in order to prevent this, :data:" "`socket.SO_REUSEADDR`::" msgstr "" -#: ../Doc/library/socket.rst:1957 +#: ../Doc/library/socket.rst:1959 msgid "" "the :data:`SO_REUSEADDR` flag tells the kernel to reuse a local socket in " "``TIME_WAIT`` state, without waiting for its natural timeout to expire." msgstr "" -#: ../Doc/library/socket.rst:1963 +#: ../Doc/library/socket.rst:1965 msgid "" "For an introduction to socket programming (in C), see the following papers:" msgstr "" -#: ../Doc/library/socket.rst:1965 +#: ../Doc/library/socket.rst:1967 msgid "" "*An Introductory 4.3BSD Interprocess Communication Tutorial*, by Stuart " "Sechrest" msgstr "" -#: ../Doc/library/socket.rst:1967 +#: ../Doc/library/socket.rst:1969 msgid "" "*An Advanced 4.3BSD Interprocess Communication Tutorial*, by Samuel J. " "Leffler et al," msgstr "" -#: ../Doc/library/socket.rst:1970 +#: ../Doc/library/socket.rst:1972 msgid "" "both in the UNIX Programmer's Manual, Supplementary Documents 1 (sections " "PS1:7 and PS1:8). The platform-specific reference material for the various " diff --git a/library/ssl.po b/library/ssl.po index ba79ea85..7ea748c6 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-11-29 18:27+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -537,8 +537,8 @@ msgid "" "exactly ``True`` if the certificate is trustworthy for all purposes." msgstr "" -#: ../Doc/library/ssl.rst:489 ../Doc/library/ssl.rst:1574 -#: ../Doc/library/ssl.rst:1889 +#: ../Doc/library/ssl.rst:489 ../Doc/library/ssl.rst:1577 +#: ../Doc/library/ssl.rst:1892 msgid "Example::" msgstr "Exemple ::" @@ -616,7 +616,7 @@ msgid "" "does not send any for client cert authentication." msgstr "" -#: ../Doc/library/ssl.rst:560 ../Doc/library/ssl.rst:2314 +#: ../Doc/library/ssl.rst:560 ../Doc/library/ssl.rst:2317 msgid "See the discussion of :ref:`ssl-security` below." msgstr "" @@ -1351,7 +1351,11 @@ msgid "" "``crlDistributionPoints``, ``caIssuers`` and ``OCSP`` URIs." msgstr "" -#: ../Doc/library/ssl.rst:1261 +#: ../Doc/library/ssl.rst:1259 +msgid "IPv6 address strings no longer have a trailing new line." +msgstr "" + +#: ../Doc/library/ssl.rst:1264 msgid "" "Returns a three-value tuple containing the name of the cipher being used, " "the version of the SSL protocol that defines its use, and the number of " @@ -1359,7 +1363,7 @@ msgid "" "``None``." msgstr "" -#: ../Doc/library/ssl.rst:1267 +#: ../Doc/library/ssl.rst:1270 msgid "" "Return the list of ciphers shared by the client during the handshake. Each " "entry of the returned list is a three-value tuple containing the name of the " @@ -1369,25 +1373,25 @@ msgid "" "socket." msgstr "" -#: ../Doc/library/ssl.rst:1278 +#: ../Doc/library/ssl.rst:1281 msgid "" "Return the compression algorithm being used as a string, or ``None`` if the " "connection isn't compressed." msgstr "" -#: ../Doc/library/ssl.rst:1281 +#: ../Doc/library/ssl.rst:1284 msgid "" "If the higher-level protocol supports its own compression mechanism, you can " "use :data:`OP_NO_COMPRESSION` to disable SSL-level compression." msgstr "" -#: ../Doc/library/ssl.rst:1288 +#: ../Doc/library/ssl.rst:1291 msgid "" "Get channel binding data for current connection, as a bytes object. Returns " "``None`` if not connected or the handshake has not been completed." msgstr "" -#: ../Doc/library/ssl.rst:1291 +#: ../Doc/library/ssl.rst:1294 msgid "" "The *cb_type* parameter allow selection of the desired channel binding type. " "Valid channel binding types are listed in the :data:`CHANNEL_BINDING_TYPES` " @@ -1396,7 +1400,7 @@ msgid "" "channel binding type is requested." msgstr "" -#: ../Doc/library/ssl.rst:1301 +#: ../Doc/library/ssl.rst:1304 msgid "" "Return the protocol that was selected during the TLS handshake. If :meth:" "`SSLContext.set_alpn_protocols` was not called, if the other party does not " @@ -1404,7 +1408,7 @@ msgid "" "protocols, or if the handshake has not happened yet, ``None`` is returned." msgstr "" -#: ../Doc/library/ssl.rst:1311 +#: ../Doc/library/ssl.rst:1314 msgid "" "Return the higher-level protocol that was selected during the TLS/SSL " "handshake. If :meth:`SSLContext.set_npn_protocols` was not called, or if the " @@ -1412,7 +1416,7 @@ msgid "" "this will return ``None``." msgstr "" -#: ../Doc/library/ssl.rst:1320 +#: ../Doc/library/ssl.rst:1323 msgid "" "Performs the SSL shutdown handshake, which removes the TLS layer from the " "underlying socket, and returns the underlying socket object. This can be " @@ -1421,7 +1425,7 @@ msgid "" "other side of the connection, rather than the original socket." msgstr "" -#: ../Doc/library/ssl.rst:1328 +#: ../Doc/library/ssl.rst:1331 msgid "" "Requests post-handshake authentication (PHA) from a TLS 1.3 client. PHA can " "only be initiated for a TLS 1.3 connection from a server-side socket, after " @@ -1429,26 +1433,26 @@ msgid "" "`SSLContext.post_handshake_auth`." msgstr "" -#: ../Doc/library/ssl.rst:1333 +#: ../Doc/library/ssl.rst:1336 msgid "" "The method does not perform a cert exchange immediately. The server-side " "sends a CertificateRequest during the next write event and expects the " "client to respond with a certificate on the next read event." msgstr "" -#: ../Doc/library/ssl.rst:1337 +#: ../Doc/library/ssl.rst:1340 msgid "" "If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:" "`SSLError` is raised." msgstr "" -#: ../Doc/library/ssl.rst:1341 +#: ../Doc/library/ssl.rst:1344 msgid "" "Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 " "support, the method raises :exc:`NotImplementedError`." msgstr "" -#: ../Doc/library/ssl.rst:1348 +#: ../Doc/library/ssl.rst:1351 msgid "" "Return the actual SSL protocol version negotiated by the connection as a " "string, or ``None`` is no secure connection is established. As of this " @@ -1457,13 +1461,13 @@ msgid "" "may define more return values." msgstr "" -#: ../Doc/library/ssl.rst:1358 +#: ../Doc/library/ssl.rst:1361 msgid "" "Returns the number of already decrypted bytes available for read, pending on " "the connection." msgstr "" -#: ../Doc/library/ssl.rst:1363 +#: ../Doc/library/ssl.rst:1366 msgid "" "The :class:`SSLContext` object this SSL socket is tied to. If the SSL " "socket was created using the deprecated :func:`wrap_socket` function (rather " @@ -1471,19 +1475,19 @@ msgid "" "created for this SSL socket." msgstr "" -#: ../Doc/library/ssl.rst:1372 +#: ../Doc/library/ssl.rst:1375 msgid "" "A boolean which is ``True`` for server-side sockets and ``False`` for client-" "side sockets." msgstr "" -#: ../Doc/library/ssl.rst:1379 +#: ../Doc/library/ssl.rst:1382 msgid "" "Hostname of the server: :class:`str` type, or ``None`` for server-side " "socket or if the hostname was not specified in the constructor." msgstr "" -#: ../Doc/library/ssl.rst:1384 +#: ../Doc/library/ssl.rst:1387 msgid "" "The attribute is now always ASCII text. When ``server_hostname`` is an " "internationalized domain name (IDN), this attribute now stores the A-label " @@ -1491,7 +1495,7 @@ msgid "" "org\"``)." msgstr "" -#: ../Doc/library/ssl.rst:1392 +#: ../Doc/library/ssl.rst:1395 msgid "" "The :class:`SSLSession` for this SSL connection. The session is available " "for client and server side sockets after the TLS handshake has been " @@ -1499,11 +1503,11 @@ msgid "" "`~SSLSocket.do_handshake` has been called to reuse a session." msgstr "" -#: ../Doc/library/ssl.rst:1405 +#: ../Doc/library/ssl.rst:1408 msgid "SSL Contexts" msgstr "" -#: ../Doc/library/ssl.rst:1409 +#: ../Doc/library/ssl.rst:1412 msgid "" "An SSL context holds various data longer-lived than single SSL connections, " "such as SSL configuration options, certificate(s) and private key(s). It " @@ -1511,7 +1515,7 @@ msgid "" "speed up repeated connections from the same clients." msgstr "" -#: ../Doc/library/ssl.rst:1416 +#: ../Doc/library/ssl.rst:1419 msgid "" "Create a new SSL context. You may pass *protocol* which must be one of the " "``PROTOCOL_*`` constants defined in this module. The parameter specifies " @@ -1522,109 +1526,109 @@ msgid "" "provides the most compatibility with other versions." msgstr "" -#: ../Doc/library/ssl.rst:1425 +#: ../Doc/library/ssl.rst:1428 msgid "" "Here's a table showing which versions in a client (down the side) can " "connect to which versions in a server (along the top):" msgstr "" -#: ../Doc/library/ssl.rst:1431 +#: ../Doc/library/ssl.rst:1434 msgid "*client* / **server**" msgstr "" -#: ../Doc/library/ssl.rst:1431 +#: ../Doc/library/ssl.rst:1434 msgid "**SSLv2**" msgstr "**SSLv2**" -#: ../Doc/library/ssl.rst:1431 +#: ../Doc/library/ssl.rst:1434 msgid "**SSLv3**" msgstr "**SSLv3**" -#: ../Doc/library/ssl.rst:1431 +#: ../Doc/library/ssl.rst:1434 msgid "**TLS** [3]_" msgstr "**TLS** [3]_" -#: ../Doc/library/ssl.rst:1431 +#: ../Doc/library/ssl.rst:1434 msgid "**TLSv1**" msgstr "**TLSv1**" -#: ../Doc/library/ssl.rst:1431 +#: ../Doc/library/ssl.rst:1434 msgid "**TLSv1.1**" msgstr "**TLSv1.1**" -#: ../Doc/library/ssl.rst:1431 +#: ../Doc/library/ssl.rst:1434 msgid "**TLSv1.2**" msgstr "**TLSv1.2**" -#: ../Doc/library/ssl.rst:1433 +#: ../Doc/library/ssl.rst:1436 msgid "*SSLv2*" msgstr "*SSLv2*" -#: ../Doc/library/ssl.rst:1433 ../Doc/library/ssl.rst:1434 -#: ../Doc/library/ssl.rst:1435 ../Doc/library/ssl.rst:1436 -#: ../Doc/library/ssl.rst:1437 ../Doc/library/ssl.rst:1438 +#: ../Doc/library/ssl.rst:1436 ../Doc/library/ssl.rst:1437 +#: ../Doc/library/ssl.rst:1438 ../Doc/library/ssl.rst:1439 +#: ../Doc/library/ssl.rst:1440 ../Doc/library/ssl.rst:1441 msgid "yes" msgstr "oui" -#: ../Doc/library/ssl.rst:1433 ../Doc/library/ssl.rst:1434 #: ../Doc/library/ssl.rst:1436 ../Doc/library/ssl.rst:1437 -#: ../Doc/library/ssl.rst:1438 +#: ../Doc/library/ssl.rst:1439 ../Doc/library/ssl.rst:1440 +#: ../Doc/library/ssl.rst:1441 msgid "no" msgstr "non" -#: ../Doc/library/ssl.rst:1433 ../Doc/library/ssl.rst:1435 +#: ../Doc/library/ssl.rst:1436 ../Doc/library/ssl.rst:1438 msgid "no [1]_" msgstr "" -#: ../Doc/library/ssl.rst:1434 +#: ../Doc/library/ssl.rst:1437 msgid "*SSLv3*" msgstr "*SSLv3*" -#: ../Doc/library/ssl.rst:1434 ../Doc/library/ssl.rst:1435 +#: ../Doc/library/ssl.rst:1437 ../Doc/library/ssl.rst:1438 msgid "no [2]_" msgstr "" -#: ../Doc/library/ssl.rst:1435 +#: ../Doc/library/ssl.rst:1438 msgid "*TLS* (*SSLv23*) [3]_" msgstr "" -#: ../Doc/library/ssl.rst:1436 +#: ../Doc/library/ssl.rst:1439 msgid "*TLSv1*" msgstr "*TLSv1*" -#: ../Doc/library/ssl.rst:1437 +#: ../Doc/library/ssl.rst:1440 msgid "*TLSv1.1*" msgstr "*TLSv1.1*" -#: ../Doc/library/ssl.rst:1438 +#: ../Doc/library/ssl.rst:1441 msgid "*TLSv1.2*" msgstr "*TLSv1.2*" -#: ../Doc/library/ssl.rst:1441 +#: ../Doc/library/ssl.rst:1444 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/ssl.rst:1442 +#: ../Doc/library/ssl.rst:1445 msgid ":class:`SSLContext` disables SSLv2 with :data:`OP_NO_SSLv2` by default." msgstr "" -#: ../Doc/library/ssl.rst:1443 +#: ../Doc/library/ssl.rst:1446 msgid ":class:`SSLContext` disables SSLv3 with :data:`OP_NO_SSLv3` by default." msgstr "" -#: ../Doc/library/ssl.rst:1444 +#: ../Doc/library/ssl.rst:1447 msgid "" "TLS 1.3 protocol will be available with :data:`PROTOCOL_TLS` in OpenSSL >= " "1.1.1. There is no dedicated PROTOCOL constant for just TLS 1.3." msgstr "" -#: ../Doc/library/ssl.rst:1449 +#: ../Doc/library/ssl.rst:1452 msgid "" ":func:`create_default_context` lets the :mod:`ssl` module choose security " "settings for a given purpose." msgstr "" -#: ../Doc/library/ssl.rst:1454 +#: ../Doc/library/ssl.rst:1457 msgid "" "The context is created with secure default values. The options :data:" "`OP_NO_COMPRESSION`, :data:`OP_CIPHER_SERVER_PREFERENCE`, :data:" @@ -1635,22 +1639,22 @@ msgid "" "for :data:`PROTOCOL_SSLv2`)." msgstr "" -#: ../Doc/library/ssl.rst:1464 +#: ../Doc/library/ssl.rst:1467 msgid ":class:`SSLContext` objects have the following methods and attributes:" msgstr "" -#: ../Doc/library/ssl.rst:1468 +#: ../Doc/library/ssl.rst:1471 msgid "" "Get statistics about quantities of loaded X.509 certificates, count of X.509 " "certificates flagged as CA certificates and certificate revocation lists as " "dictionary." msgstr "" -#: ../Doc/library/ssl.rst:1472 +#: ../Doc/library/ssl.rst:1475 msgid "Example for a context with one CA cert and one other cert::" msgstr "" -#: ../Doc/library/ssl.rst:1482 +#: ../Doc/library/ssl.rst:1485 msgid "" "Load a private key and the corresponding certificate. The *certfile* string " "must be the path to a single file in PEM format containing the certificate " @@ -1662,7 +1666,7 @@ msgid "" "*certfile*." msgstr "" -#: ../Doc/library/ssl.rst:1491 +#: ../Doc/library/ssl.rst:1494 msgid "" "The *password* argument may be a function to call to get the password for " "decrypting the private key. It will only be called if the private key is " @@ -1674,24 +1678,24 @@ msgid "" "encrypted and no password is needed." msgstr "" -#: ../Doc/library/ssl.rst:1500 +#: ../Doc/library/ssl.rst:1503 msgid "" "If the *password* argument is not specified and a password is required, " "OpenSSL's built-in password prompting mechanism will be used to " "interactively prompt the user for a password." msgstr "" -#: ../Doc/library/ssl.rst:1504 +#: ../Doc/library/ssl.rst:1507 msgid "" "An :class:`SSLError` is raised if the private key doesn't match with the " "certificate." msgstr "" -#: ../Doc/library/ssl.rst:1507 +#: ../Doc/library/ssl.rst:1510 msgid "New optional argument *password*." msgstr "" -#: ../Doc/library/ssl.rst:1512 +#: ../Doc/library/ssl.rst:1515 msgid "" "Load a set of default \"certification authority\" (CA) certificates from " "default locations. On Windows it loads CA certs from the ``CA`` and ``ROOT`` " @@ -1700,7 +1704,7 @@ msgid "" "from other locations, too." msgstr "" -#: ../Doc/library/ssl.rst:1518 +#: ../Doc/library/ssl.rst:1521 msgid "" "The *purpose* flag specifies what kind of CA certificates are loaded. The " "default settings :data:`Purpose.SERVER_AUTH` loads certificates, that are " @@ -1709,28 +1713,28 @@ msgid "" "certificate verification on the server side." msgstr "" -#: ../Doc/library/ssl.rst:1528 +#: ../Doc/library/ssl.rst:1531 msgid "" "Load a set of \"certification authority\" (CA) certificates used to validate " "other peers' certificates when :data:`verify_mode` is other than :data:" "`CERT_NONE`. At least one of *cafile* or *capath* must be specified." msgstr "" -#: ../Doc/library/ssl.rst:1532 +#: ../Doc/library/ssl.rst:1535 msgid "" "This method can also load certification revocation lists (CRLs) in PEM or " "DER format. In order to make use of CRLs, :attr:`SSLContext.verify_flags` " "must be configured properly." msgstr "" -#: ../Doc/library/ssl.rst:1536 +#: ../Doc/library/ssl.rst:1539 msgid "" "The *cafile* string, if present, is the path to a file of concatenated CA " "certificates in PEM format. See the discussion of :ref:`ssl-certificates` " "for more information about how to arrange the certificates in this file." msgstr "" -#: ../Doc/library/ssl.rst:1541 +#: ../Doc/library/ssl.rst:1544 msgid "" "The *capath* string, if present, is the path to a directory containing " "several CA certificates in PEM format, following an `OpenSSL specific layout " @@ -1738,7 +1742,7 @@ msgid "" "html>`_." msgstr "" -#: ../Doc/library/ssl.rst:1546 +#: ../Doc/library/ssl.rst:1549 msgid "" "The *cadata* object, if present, is either an ASCII string of one or more " "PEM-encoded certificates or a :term:`bytes-like object` of DER-encoded " @@ -1746,11 +1750,11 @@ msgid "" "are ignored but at least one certificate must be present." msgstr "" -#: ../Doc/library/ssl.rst:1551 +#: ../Doc/library/ssl.rst:1554 msgid "New optional argument *cadata*" msgstr "" -#: ../Doc/library/ssl.rst:1556 +#: ../Doc/library/ssl.rst:1559 msgid "" "Get a list of loaded \"certification authority\" (CA) certificates. If the " "``binary_form`` parameter is :const:`False` each list entry is a dict like " @@ -1760,27 +1764,27 @@ msgid "" "a SSL connection." msgstr "" -#: ../Doc/library/ssl.rst:1564 +#: ../Doc/library/ssl.rst:1567 msgid "" "Certificates in a capath directory aren't loaded unless they have been used " "at least once." msgstr "" -#: ../Doc/library/ssl.rst:1571 +#: ../Doc/library/ssl.rst:1574 msgid "" "Get a list of enabled ciphers. The list is in order of cipher priority. See :" "meth:`SSLContext.set_ciphers`." msgstr "" -#: ../Doc/library/ssl.rst:1594 +#: ../Doc/library/ssl.rst:1597 msgid "On OpenSSL 1.1 and newer the cipher dict contains additional fields::" msgstr "" -#: ../Doc/library/ssl.rst:1623 +#: ../Doc/library/ssl.rst:1626 msgid ":ref:`Availability `: OpenSSL 1.0.2+." msgstr "" -#: ../Doc/library/ssl.rst:1628 +#: ../Doc/library/ssl.rst:1631 msgid "" "Load a set of default \"certification authority\" (CA) certificates from a " "filesystem path defined when building the OpenSSL library. Unfortunately, " @@ -1790,7 +1794,7 @@ msgid "" "configured properly." msgstr "" -#: ../Doc/library/ssl.rst:1637 +#: ../Doc/library/ssl.rst:1640 msgid "" "Set the available ciphers for sockets created with this context. It should " "be a string in the `OpenSSL cipher list format `_" msgstr "" -#: ../Doc/library/ssl.rst:1775 +#: ../Doc/library/ssl.rst:1778 msgid "Vincent Bernat." msgstr "" -#: ../Doc/library/ssl.rst:1781 +#: ../Doc/library/ssl.rst:1784 msgid "" "Wrap an existing Python socket *sock* and return an instance of :attr:" "`SSLContext.sslsocket_class` (default :class:`SSLSocket`). The returned SSL " @@ -1986,13 +1990,13 @@ msgid "" "a :data:`~socket.SOCK_STREAM` socket; other socket types are unsupported." msgstr "" -#: ../Doc/library/ssl.rst:1787 +#: ../Doc/library/ssl.rst:1790 msgid "" "The parameter ``server_side`` is a boolean which identifies whether server-" "side or client-side behavior is desired from this socket." msgstr "" -#: ../Doc/library/ssl.rst:1790 +#: ../Doc/library/ssl.rst:1793 msgid "" "For client-side sockets, the context construction is lazy; if the underlying " "socket isn't connected yet, the context construction will be performed " @@ -2003,7 +2007,7 @@ msgid "" "exc:`SSLError`." msgstr "" -#: ../Doc/library/ssl.rst:1798 +#: ../Doc/library/ssl.rst:1801 msgid "" "On client connections, the optional parameter *server_hostname* specifies " "the hostname of the service which we are connecting to. This allows a " @@ -2012,7 +2016,7 @@ msgid "" "*server_hostname* will raise a :exc:`ValueError` if *server_side* is true." msgstr "" -#: ../Doc/library/ssl.rst:1804 +#: ../Doc/library/ssl.rst:1807 msgid "" "The parameter ``do_handshake_on_connect`` specifies whether to do the SSL " "handshake automatically after doing a :meth:`socket.connect`, or whether the " @@ -2022,7 +2026,7 @@ msgid "" "socket I/O involved in the handshake." msgstr "" -#: ../Doc/library/ssl.rst:1811 +#: ../Doc/library/ssl.rst:1814 msgid "" "The parameter ``suppress_ragged_eofs`` specifies how the :meth:`SSLSocket." "recv` method should signal unexpected EOF from the other end of the " @@ -2032,34 +2036,34 @@ msgid "" "exceptions back to the caller." msgstr "" -#: ../Doc/library/ssl.rst:1818 +#: ../Doc/library/ssl.rst:1821 msgid "*session*, see :attr:`~SSLSocket.session`." msgstr "" -#: ../Doc/library/ssl.rst:1820 +#: ../Doc/library/ssl.rst:1823 msgid "" "Always allow a server_hostname to be passed, even if OpenSSL does not have " "SNI." msgstr "" -#: ../Doc/library/ssl.rst:1824 ../Doc/library/ssl.rst:1850 +#: ../Doc/library/ssl.rst:1827 ../Doc/library/ssl.rst:1853 msgid "*session* argument was added." msgstr "" -#: ../Doc/library/ssl.rst:1827 +#: ../Doc/library/ssl.rst:1830 msgid "" "The method returns on instance of :attr:`SSLContext.sslsocket_class` instead " "of hard-coded :class:`SSLSocket`." msgstr "" -#: ../Doc/library/ssl.rst:1833 +#: ../Doc/library/ssl.rst:1836 msgid "" "The return type of :meth:`SSLContext.wrap_socket`, defaults to :class:" "`SSLSocket`. The attribute can be overridden on instance of class in order " "to return a custom subclass of :class:`SSLSocket`." msgstr "" -#: ../Doc/library/ssl.rst:1842 +#: ../Doc/library/ssl.rst:1845 msgid "" "Wrap the BIO objects *incoming* and *outgoing* and return an instance of :" "attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL " @@ -2067,26 +2071,26 @@ msgid "" "outgoing BIO." msgstr "" -#: ../Doc/library/ssl.rst:1847 +#: ../Doc/library/ssl.rst:1850 msgid "" "The *server_side*, *server_hostname* and *session* parameters have the same " "meaning as in :meth:`SSLContext.wrap_socket`." msgstr "" -#: ../Doc/library/ssl.rst:1853 +#: ../Doc/library/ssl.rst:1856 msgid "" "The method returns on instance of :attr:`SSLContext.sslobject_class` instead " "of hard-coded :class:`SSLObject`." msgstr "" -#: ../Doc/library/ssl.rst:1859 +#: ../Doc/library/ssl.rst:1862 msgid "" "The return type of :meth:`SSLContext.wrap_bio`, defaults to :class:" "`SSLObject`. The attribute can be overridden on instance of class in order " "to return a custom subclass of :class:`SSLObject`." msgstr "" -#: ../Doc/library/ssl.rst:1867 +#: ../Doc/library/ssl.rst:1870 msgid "" "Get statistics about the SSL sessions created or managed by this context. A " "dictionary is returned which maps the names of each `piece of information " @@ -2095,7 +2099,7 @@ msgid "" "misses in the session cache since the context was created::" msgstr "" -#: ../Doc/library/ssl.rst:1878 +#: ../Doc/library/ssl.rst:1881 msgid "" "Whether to match the peer cert's hostname with :func:`match_hostname` in :" "meth:`SSLSocket.do_handshake`. The context's :attr:`~SSLContext.verify_mode` " @@ -2109,7 +2113,7 @@ msgid "" "explicitly." msgstr "" -#: ../Doc/library/ssl.rst:1906 +#: ../Doc/library/ssl.rst:1909 msgid "" ":attr:`~SSLContext.verify_mode` is now automatically changed to :data:" "`CERT_REQUIRED` when hostname checking is enabled and :attr:`~SSLContext." @@ -2117,11 +2121,11 @@ msgid "" "failed with a :exc:`ValueError`." msgstr "" -#: ../Doc/library/ssl.rst:1913 +#: ../Doc/library/ssl.rst:1916 msgid "This features requires OpenSSL 0.9.8f or newer." msgstr "" -#: ../Doc/library/ssl.rst:1917 +#: ../Doc/library/ssl.rst:1920 msgid "" "Write TLS keys to a keylog file, whenever key material is generated or " "received. The keylog file is designed for debugging purposes only. The file " @@ -2130,11 +2134,11 @@ msgid "" "synchronized between threads, but not between processes." msgstr "" -#: ../Doc/library/ssl.rst:1927 +#: ../Doc/library/ssl.rst:1930 msgid "This features requires OpenSSL 1.1.1 or newer." msgstr "" -#: ../Doc/library/ssl.rst:1931 +#: ../Doc/library/ssl.rst:1934 msgid "" "A :class:`TLSVersion` enum member representing the highest supported TLS " "version. The value defaults to :attr:`TLSVersion.MAXIMUM_SUPPORTED`. The " @@ -2142,7 +2146,7 @@ msgid "" "`PROTOCOL_TLS_CLIENT`, and :attr:`PROTOCOL_TLS_SERVER`." msgstr "" -#: ../Doc/library/ssl.rst:1936 +#: ../Doc/library/ssl.rst:1939 msgid "" "The attributes :attr:`~SSLContext.maximum_version`, :attr:`~SSLContext." "minimum_version` and :attr:`SSLContext.options` all affect the supported SSL " @@ -2152,50 +2156,50 @@ msgid "" "`TLSVersion.TLSv1_2` will not be able to establish a TLS 1.2 connection." msgstr "" -#: ../Doc/library/ssl.rst:1947 ../Doc/library/ssl.rst:1959 +#: ../Doc/library/ssl.rst:1950 ../Doc/library/ssl.rst:1962 msgid "" "This attribute is not available unless the ssl module is compiled with " "OpenSSL 1.1.0g or newer." msgstr "" -#: ../Doc/library/ssl.rst:1954 +#: ../Doc/library/ssl.rst:1957 msgid "" "Like :attr:`SSLContext.maximum_version` except it is the lowest supported " "version or :attr:`TLSVersion.MINIMUM_SUPPORTED`." msgstr "" -#: ../Doc/library/ssl.rst:1966 +#: ../Doc/library/ssl.rst:1969 msgid "" "Control the number of TLS 1.3 session tickets of a :attr:" "`TLS_PROTOCOL_SERVER` context. The setting has no impact on TLS 1.0 to 1.2 " "connections." msgstr "" -#: ../Doc/library/ssl.rst:1972 +#: ../Doc/library/ssl.rst:1975 msgid "" "This attribute is not available unless the ssl module is compiled with " "OpenSSL 1.1.1 or newer." msgstr "" -#: ../Doc/library/ssl.rst:1979 +#: ../Doc/library/ssl.rst:1982 msgid "" "An integer representing the set of SSL options enabled on this context. The " "default value is :data:`OP_ALL`, but you can specify other options such as :" "data:`OP_NO_SSLv2` by ORing them together." msgstr "" -#: ../Doc/library/ssl.rst:1984 +#: ../Doc/library/ssl.rst:1987 msgid "" "With versions of OpenSSL older than 0.9.8m, it is only possible to set " "options, not to clear them. Attempting to clear an option (by resetting the " "corresponding bits) will raise a :exc:`ValueError`." msgstr "" -#: ../Doc/library/ssl.rst:1988 +#: ../Doc/library/ssl.rst:1991 msgid ":attr:`SSLContext.options` returns :class:`Options` flags:" msgstr "" -#: ../Doc/library/ssl.rst:1996 +#: ../Doc/library/ssl.rst:1999 msgid "" "Enable TLS 1.3 post-handshake client authentication. Post-handshake auth is " "disabled by default and a server can only request a TLS client certificate " @@ -2203,13 +2207,13 @@ msgid "" "client certificate at any time after the handshake." msgstr "" -#: ../Doc/library/ssl.rst:2001 +#: ../Doc/library/ssl.rst:2004 msgid "" "When enabled on client-side sockets, the client signals the server that it " "supports post-handshake authentication." msgstr "" -#: ../Doc/library/ssl.rst:2004 +#: ../Doc/library/ssl.rst:2007 msgid "" "When enabled on server-side sockets, :attr:`SSLContext.verify_mode` must be " "set to :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`, too. The actual " @@ -2217,30 +2221,30 @@ msgid "" "verify_client_post_handshake` is called and some I/O is performed." msgstr "" -#: ../Doc/library/ssl.rst:2011 +#: ../Doc/library/ssl.rst:2014 msgid "" "Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 " "support, the property value is None and can't be modified" msgstr "" -#: ../Doc/library/ssl.rst:2018 +#: ../Doc/library/ssl.rst:2021 msgid "" "The protocol version chosen when constructing the context. This attribute " "is read-only." msgstr "" -#: ../Doc/library/ssl.rst:2023 +#: ../Doc/library/ssl.rst:2026 msgid "" "Whether :attr:`~SSLContext.check_hostname` falls back to verify the cert's " "subject common name in the absence of a subject alternative name extension " "(default: true)." msgstr "" -#: ../Doc/library/ssl.rst:2028 +#: ../Doc/library/ssl.rst:2031 msgid "Only writeable with OpenSSL 1.1.0 or higher." msgstr "" -#: ../Doc/library/ssl.rst:2034 +#: ../Doc/library/ssl.rst:2037 msgid "" "The flags for certificate verification operations. You can set flags like :" "data:`VERIFY_CRL_CHECK_LEAF` by ORing them together. By default OpenSSL does " @@ -2248,26 +2252,26 @@ msgid "" "only with openssl version 0.9.8+." msgstr "" -#: ../Doc/library/ssl.rst:2041 +#: ../Doc/library/ssl.rst:2044 msgid ":attr:`SSLContext.verify_flags` returns :class:`VerifyFlags` flags:" msgstr "" -#: ../Doc/library/ssl.rst:2049 +#: ../Doc/library/ssl.rst:2052 msgid "" "Whether to try to verify other peers' certificates and how to behave if " "verification fails. This attribute must be one of :data:`CERT_NONE`, :data:" "`CERT_OPTIONAL` or :data:`CERT_REQUIRED`." msgstr "" -#: ../Doc/library/ssl.rst:2053 +#: ../Doc/library/ssl.rst:2056 msgid ":attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:" msgstr "" -#: ../Doc/library/ssl.rst:2066 +#: ../Doc/library/ssl.rst:2069 msgid "Certificates" msgstr "" -#: ../Doc/library/ssl.rst:2068 +#: ../Doc/library/ssl.rst:2071 msgid "" "Certificates in general are part of a public-key / private-key system. In " "this system, each *principal*, (which may be a machine, or a person, or an " @@ -2278,7 +2282,7 @@ msgid "" "other part, and **only** with the other part." msgstr "" -#: ../Doc/library/ssl.rst:2076 +#: ../Doc/library/ssl.rst:2079 msgid "" "A certificate contains information about two principals. It contains the " "name of a *subject*, and the subject's public key. It also contains a " @@ -2292,7 +2296,7 @@ msgid "" "as two fields, called \"notBefore\" and \"notAfter\"." msgstr "" -#: ../Doc/library/ssl.rst:2086 +#: ../Doc/library/ssl.rst:2089 msgid "" "In the Python use of certificates, a client or server can use a certificate " "to prove who they are. The other side of a network connection can also be " @@ -2305,18 +2309,18 @@ msgid "" "take place." msgstr "" -#: ../Doc/library/ssl.rst:2096 +#: ../Doc/library/ssl.rst:2099 msgid "" "Python uses files to contain certificates. They should be formatted as \"PEM" "\" (see :rfc:`1422`), which is a base-64 encoded form wrapped with a header " "line and a footer line::" msgstr "" -#: ../Doc/library/ssl.rst:2105 +#: ../Doc/library/ssl.rst:2108 msgid "Certificate chains" msgstr "" -#: ../Doc/library/ssl.rst:2107 +#: ../Doc/library/ssl.rst:2110 msgid "" "The Python files which contain certificates can contain a sequence of " "certificates, sometimes called a *certificate chain*. This chain should " @@ -2332,11 +2336,11 @@ msgid "" "agency which issued the certification authority's certificate::" msgstr "" -#: ../Doc/library/ssl.rst:2131 +#: ../Doc/library/ssl.rst:2134 msgid "CA certificates" msgstr "" -#: ../Doc/library/ssl.rst:2133 +#: ../Doc/library/ssl.rst:2136 msgid "" "If you are going to require validation of the other side of the connection's " "certificate, you need to provide a \"CA certs\" file, filled with the " @@ -2348,11 +2352,11 @@ msgid "" "create_default_context`." msgstr "" -#: ../Doc/library/ssl.rst:2142 +#: ../Doc/library/ssl.rst:2145 msgid "Combined key and certificate" msgstr "" -#: ../Doc/library/ssl.rst:2144 +#: ../Doc/library/ssl.rst:2147 msgid "" "Often the private key is stored in the same file as the certificate; in this " "case, only the ``certfile`` parameter to :meth:`SSLContext.load_cert_chain` " @@ -2361,11 +2365,11 @@ msgid "" "certificate chain::" msgstr "" -#: ../Doc/library/ssl.rst:2158 +#: ../Doc/library/ssl.rst:2161 msgid "Self-signed certificates" msgstr "" -#: ../Doc/library/ssl.rst:2160 +#: ../Doc/library/ssl.rst:2163 msgid "" "If you are going to create a server that provides SSL-encrypted connection " "services, you will need to acquire a certificate for that service. There " @@ -2375,51 +2379,51 @@ msgid "" "package, using something like the following::" msgstr "" -#: ../Doc/library/ssl.rst:2189 +#: ../Doc/library/ssl.rst:2192 msgid "" "The disadvantage of a self-signed certificate is that it is its own root " "certificate, and no one else will have it in their cache of known (and " "trusted) root certificates." msgstr "" -#: ../Doc/library/ssl.rst:2195 +#: ../Doc/library/ssl.rst:2198 msgid "Examples" msgstr "Exemples" -#: ../Doc/library/ssl.rst:2198 +#: ../Doc/library/ssl.rst:2201 msgid "Testing for SSL support" msgstr "" -#: ../Doc/library/ssl.rst:2200 +#: ../Doc/library/ssl.rst:2203 msgid "" "To test for the presence of SSL support in a Python installation, user code " "should use the following idiom::" msgstr "" -#: ../Doc/library/ssl.rst:2211 +#: ../Doc/library/ssl.rst:2214 msgid "Client-side operation" msgstr "" -#: ../Doc/library/ssl.rst:2213 +#: ../Doc/library/ssl.rst:2216 msgid "" "This example creates a SSL context with the recommended security settings " "for client sockets, including automatic certificate verification::" msgstr "" -#: ../Doc/library/ssl.rst:2218 +#: ../Doc/library/ssl.rst:2221 msgid "" "If you prefer to tune security settings yourself, you might create a context " "from scratch (but beware that you might not get the settings right)::" msgstr "" -#: ../Doc/library/ssl.rst:2225 +#: ../Doc/library/ssl.rst:2228 msgid "" "(this snippet assumes your operating system places a bundle of all CA " "certificates in ``/etc/ssl/certs/ca-bundle.crt``; if not, you'll get an " "error and have to adjust the location)" msgstr "" -#: ../Doc/library/ssl.rst:2229 +#: ../Doc/library/ssl.rst:2232 msgid "" "The :data:`PROTOCOL_TLS_CLIENT` protocol configures the context for cert " "validation and hostname verification. :attr:`~SSLContext.verify_mode` is set " @@ -2427,7 +2431,7 @@ msgid "" "``True``. All other protocols create SSL contexts with insecure defaults." msgstr "" -#: ../Doc/library/ssl.rst:2234 +#: ../Doc/library/ssl.rst:2237 msgid "" "When you use the context to connect to a server, :const:`CERT_REQUIRED` and :" "attr:`~SSLContext.check_hostname` validate the server certificate: it " @@ -2436,27 +2440,27 @@ msgid "" "properties like validity and identity of the hostname::" msgstr "" -#: ../Doc/library/ssl.rst:2244 +#: ../Doc/library/ssl.rst:2247 msgid "You may then fetch the certificate::" msgstr "" -#: ../Doc/library/ssl.rst:2248 +#: ../Doc/library/ssl.rst:2251 msgid "" "Visual inspection shows that the certificate does identify the desired " "service (that is, the HTTPS host ``www.python.org``)::" msgstr "" -#: ../Doc/library/ssl.rst:2291 +#: ../Doc/library/ssl.rst:2294 msgid "" "Now the SSL channel is established and the certificate verified, you can " "proceed to talk with the server::" msgstr "" -#: ../Doc/library/ssl.rst:2318 +#: ../Doc/library/ssl.rst:2321 msgid "Server-side operation" msgstr "" -#: ../Doc/library/ssl.rst:2320 +#: ../Doc/library/ssl.rst:2323 msgid "" "For server operation, typically you'll need to have a server certificate, " "and private key, each in a file. You'll first create a context holding the " @@ -2465,20 +2469,20 @@ msgid "" "start waiting for clients to connect::" msgstr "" -#: ../Doc/library/ssl.rst:2335 +#: ../Doc/library/ssl.rst:2338 msgid "" "When a client connects, you'll call :meth:`accept` on the socket to get the " "new socket from the other end, and use the context's :meth:`SSLContext." "wrap_socket` method to create a server-side SSL socket for the connection::" msgstr "" -#: ../Doc/library/ssl.rst:2348 +#: ../Doc/library/ssl.rst:2351 msgid "" "Then you'll read data from the ``connstream`` and do something with it till " "you are finished with the client (or the client is finished with you)::" msgstr "" -#: ../Doc/library/ssl.rst:2362 +#: ../Doc/library/ssl.rst:2365 msgid "" "And go back to listening for new client connections (of course, a real " "server would probably handle each client connection in a separate thread, or " @@ -2486,18 +2490,18 @@ msgid "" "event loop)." msgstr "" -#: ../Doc/library/ssl.rst:2370 +#: ../Doc/library/ssl.rst:2373 msgid "Notes on non-blocking sockets" msgstr "" -#: ../Doc/library/ssl.rst:2372 +#: ../Doc/library/ssl.rst:2375 msgid "" "SSL sockets behave slightly different than regular sockets in non-blocking " "mode. When working with non-blocking sockets, there are thus several things " "you need to be aware of:" msgstr "" -#: ../Doc/library/ssl.rst:2376 +#: ../Doc/library/ssl.rst:2379 msgid "" "Most :class:`SSLSocket` methods will raise either :exc:`SSLWantWriteError` " "or :exc:`SSLWantReadError` instead of :exc:`BlockingIOError` if an I/O " @@ -2509,13 +2513,13 @@ msgid "" "require a prior *write* to the underlying socket." msgstr "" -#: ../Doc/library/ssl.rst:2388 +#: ../Doc/library/ssl.rst:2391 msgid "" "In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero " "instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`." msgstr "" -#: ../Doc/library/ssl.rst:2392 +#: ../Doc/library/ssl.rst:2395 msgid "" "Calling :func:`~select.select` tells you that the OS-level socket can be " "read from (or written to), but it does not imply that there is sufficient " @@ -2525,7 +2529,7 @@ msgid "" "`~select.select`." msgstr "" -#: ../Doc/library/ssl.rst:2399 +#: ../Doc/library/ssl.rst:2402 msgid "" "Conversely, since the SSL layer has its own framing, a SSL socket may still " "have data available for reading without :func:`~select.select` being aware " @@ -2534,13 +2538,13 @@ msgid "" "call if still necessary." msgstr "" -#: ../Doc/library/ssl.rst:2405 +#: ../Doc/library/ssl.rst:2408 msgid "" "(of course, similar provisions apply when using other primitives such as :" "func:`~select.poll`, or those in the :mod:`selectors` module)" msgstr "" -#: ../Doc/library/ssl.rst:2408 +#: ../Doc/library/ssl.rst:2411 msgid "" "The SSL handshake itself will be non-blocking: the :meth:`SSLSocket." "do_handshake` method has to be retried until it returns successfully. Here " @@ -2548,7 +2552,7 @@ msgid "" "readiness::" msgstr "" -#: ../Doc/library/ssl.rst:2424 +#: ../Doc/library/ssl.rst:2427 msgid "" "The :mod:`asyncio` module supports :ref:`non-blocking SSL sockets ` and provides a higher level API. It polls for events using " @@ -2557,26 +2561,26 @@ msgid "" "handshake asynchronously as well." msgstr "" -#: ../Doc/library/ssl.rst:2433 +#: ../Doc/library/ssl.rst:2436 msgid "Memory BIO Support" msgstr "" -#: ../Doc/library/ssl.rst:2437 +#: ../Doc/library/ssl.rst:2440 msgid "" "Ever since the SSL module was introduced in Python 2.6, the :class:" "`SSLSocket` class has provided two related but distinct areas of " "functionality:" msgstr "" -#: ../Doc/library/ssl.rst:2440 +#: ../Doc/library/ssl.rst:2443 msgid "SSL protocol handling" msgstr "" -#: ../Doc/library/ssl.rst:2441 +#: ../Doc/library/ssl.rst:2444 msgid "Network IO" msgstr "" -#: ../Doc/library/ssl.rst:2443 +#: ../Doc/library/ssl.rst:2446 msgid "" "The network IO API is identical to that provided by :class:`socket.socket`, " "from which :class:`SSLSocket` also inherits. This allows an SSL socket to be " @@ -2584,7 +2588,7 @@ msgid "" "add SSL support to an existing application." msgstr "" -#: ../Doc/library/ssl.rst:2448 +#: ../Doc/library/ssl.rst:2451 msgid "" "Combining SSL protocol handling and network IO usually works well, but there " "are some cases where it doesn't. An example is async IO frameworks that want " @@ -2596,7 +2600,7 @@ msgid "" "`SSLObject` is provided." msgstr "" -#: ../Doc/library/ssl.rst:2459 +#: ../Doc/library/ssl.rst:2462 msgid "" "A reduced-scope variant of :class:`SSLSocket` representing an SSL protocol " "instance that does not contain any network IO methods. This class is " @@ -2604,7 +2608,7 @@ msgid "" "for SSL through memory buffers." msgstr "" -#: ../Doc/library/ssl.rst:2464 +#: ../Doc/library/ssl.rst:2467 msgid "" "This class implements an interface on top of a low-level SSL object as " "implemented by OpenSSL. This object captures the state of an SSL connection " @@ -2612,7 +2616,7 @@ msgid "" "separate \"BIO\" objects which are OpenSSL's IO abstraction layer." msgstr "" -#: ../Doc/library/ssl.rst:2469 +#: ../Doc/library/ssl.rst:2472 msgid "" "This class has no public constructor. An :class:`SSLObject` instance must " "be created using the :meth:`~SSLContext.wrap_bio` method. This method will " @@ -2621,202 +2625,202 @@ msgid "" "instance, while the *outgoing* BIO is used to pass data the other way around." msgstr "" -#: ../Doc/library/ssl.rst:2476 +#: ../Doc/library/ssl.rst:2479 msgid "The following methods are available:" msgstr "" -#: ../Doc/library/ssl.rst:2478 +#: ../Doc/library/ssl.rst:2481 msgid ":attr:`~SSLSocket.context`" msgstr "" -#: ../Doc/library/ssl.rst:2479 +#: ../Doc/library/ssl.rst:2482 msgid ":attr:`~SSLSocket.server_side`" msgstr "" -#: ../Doc/library/ssl.rst:2480 +#: ../Doc/library/ssl.rst:2483 msgid ":attr:`~SSLSocket.server_hostname`" msgstr "" -#: ../Doc/library/ssl.rst:2481 +#: ../Doc/library/ssl.rst:2484 msgid ":attr:`~SSLSocket.session`" msgstr "" -#: ../Doc/library/ssl.rst:2482 +#: ../Doc/library/ssl.rst:2485 msgid ":attr:`~SSLSocket.session_reused`" msgstr "" -#: ../Doc/library/ssl.rst:2483 +#: ../Doc/library/ssl.rst:2486 msgid ":meth:`~SSLSocket.read`" msgstr "" -#: ../Doc/library/ssl.rst:2484 +#: ../Doc/library/ssl.rst:2487 msgid ":meth:`~SSLSocket.write`" msgstr "" -#: ../Doc/library/ssl.rst:2485 +#: ../Doc/library/ssl.rst:2488 msgid ":meth:`~SSLSocket.getpeercert`" msgstr "" -#: ../Doc/library/ssl.rst:2486 +#: ../Doc/library/ssl.rst:2489 msgid ":meth:`~SSLSocket.selected_npn_protocol`" msgstr "" -#: ../Doc/library/ssl.rst:2487 +#: ../Doc/library/ssl.rst:2490 msgid ":meth:`~SSLSocket.cipher`" msgstr "" -#: ../Doc/library/ssl.rst:2488 +#: ../Doc/library/ssl.rst:2491 msgid ":meth:`~SSLSocket.shared_ciphers`" msgstr "" -#: ../Doc/library/ssl.rst:2489 +#: ../Doc/library/ssl.rst:2492 msgid ":meth:`~SSLSocket.compression`" msgstr "" -#: ../Doc/library/ssl.rst:2490 +#: ../Doc/library/ssl.rst:2493 msgid ":meth:`~SSLSocket.pending`" msgstr "" -#: ../Doc/library/ssl.rst:2491 +#: ../Doc/library/ssl.rst:2494 msgid ":meth:`~SSLSocket.do_handshake`" msgstr "" -#: ../Doc/library/ssl.rst:2492 +#: ../Doc/library/ssl.rst:2495 msgid ":meth:`~SSLSocket.unwrap`" msgstr "" -#: ../Doc/library/ssl.rst:2493 +#: ../Doc/library/ssl.rst:2496 msgid ":meth:`~SSLSocket.get_channel_binding`" msgstr "" -#: ../Doc/library/ssl.rst:2495 +#: ../Doc/library/ssl.rst:2498 msgid "" "When compared to :class:`SSLSocket`, this object lacks the following " "features:" msgstr "" -#: ../Doc/library/ssl.rst:2498 +#: ../Doc/library/ssl.rst:2501 msgid "" "Any form of network IO; ``recv()`` and ``send()`` read and write only to the " "underlying :class:`MemoryBIO` buffers." msgstr "" -#: ../Doc/library/ssl.rst:2501 +#: ../Doc/library/ssl.rst:2504 msgid "" "There is no *do_handshake_on_connect* machinery. You must always manually " "call :meth:`~SSLSocket.do_handshake` to start the handshake." msgstr "" -#: ../Doc/library/ssl.rst:2504 +#: ../Doc/library/ssl.rst:2507 msgid "" "There is no handling of *suppress_ragged_eofs*. All end-of-file conditions " "that are in violation of the protocol are reported via the :exc:" "`SSLEOFError` exception." msgstr "" -#: ../Doc/library/ssl.rst:2508 +#: ../Doc/library/ssl.rst:2511 msgid "" "The method :meth:`~SSLSocket.unwrap` call does not return anything, unlike " "for an SSL socket where it returns the underlying socket." msgstr "" -#: ../Doc/library/ssl.rst:2511 +#: ../Doc/library/ssl.rst:2514 msgid "" "The *server_name_callback* callback passed to :meth:`SSLContext." "set_servername_callback` will get an :class:`SSLObject` instance instead of " "a :class:`SSLSocket` instance as its first parameter." msgstr "" -#: ../Doc/library/ssl.rst:2515 +#: ../Doc/library/ssl.rst:2518 msgid "Some notes related to the use of :class:`SSLObject`:" msgstr "" -#: ../Doc/library/ssl.rst:2517 +#: ../Doc/library/ssl.rst:2520 msgid "" "All IO on an :class:`SSLObject` is :ref:`non-blocking `. " "This means that for example :meth:`~SSLSocket.read` will raise an :exc:" "`SSLWantReadError` if it needs more data than the incoming BIO has available." msgstr "" -#: ../Doc/library/ssl.rst:2522 +#: ../Doc/library/ssl.rst:2525 msgid "" "There is no module-level ``wrap_bio()`` call like there is for :meth:" "`~SSLContext.wrap_socket`. An :class:`SSLObject` is always created via an :" "class:`SSLContext`." msgstr "" -#: ../Doc/library/ssl.rst:2526 +#: ../Doc/library/ssl.rst:2529 msgid "" ":class:`SSLObject` instances must to created with :meth:`~SSLContext." "wrap_bio`. In earlier versions, it was possible to create instances " "directly. This was never documented or officially supported." msgstr "" -#: ../Doc/library/ssl.rst:2532 +#: ../Doc/library/ssl.rst:2535 msgid "" "An SSLObject communicates with the outside world using memory buffers. The " "class :class:`MemoryBIO` provides a memory buffer that can be used for this " "purpose. It wraps an OpenSSL memory BIO (Basic IO) object:" msgstr "" -#: ../Doc/library/ssl.rst:2538 +#: ../Doc/library/ssl.rst:2541 msgid "" "A memory buffer that can be used to pass data between Python and an SSL " "protocol instance." msgstr "" -#: ../Doc/library/ssl.rst:2543 +#: ../Doc/library/ssl.rst:2546 msgid "Return the number of bytes currently in the memory buffer." msgstr "" -#: ../Doc/library/ssl.rst:2547 +#: ../Doc/library/ssl.rst:2550 msgid "" "A boolean indicating whether the memory BIO is current at the end-of-file " "position." msgstr "" -#: ../Doc/library/ssl.rst:2552 +#: ../Doc/library/ssl.rst:2555 msgid "" "Read up to *n* bytes from the memory buffer. If *n* is not specified or " "negative, all bytes are returned." msgstr "" -#: ../Doc/library/ssl.rst:2557 +#: ../Doc/library/ssl.rst:2560 msgid "" "Write the bytes from *buf* to the memory BIO. The *buf* argument must be an " "object supporting the buffer protocol." msgstr "" -#: ../Doc/library/ssl.rst:2560 +#: ../Doc/library/ssl.rst:2563 msgid "" "The return value is the number of bytes written, which is always equal to " "the length of *buf*." msgstr "" -#: ../Doc/library/ssl.rst:2565 +#: ../Doc/library/ssl.rst:2568 msgid "" "Write an EOF marker to the memory BIO. After this method has been called, it " "is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will " "become true after all data currently in the buffer has been read." msgstr "" -#: ../Doc/library/ssl.rst:2571 +#: ../Doc/library/ssl.rst:2574 msgid "SSL session" msgstr "" -#: ../Doc/library/ssl.rst:2577 +#: ../Doc/library/ssl.rst:2580 msgid "Session object used by :attr:`~SSLSocket.session`." msgstr "" -#: ../Doc/library/ssl.rst:2589 +#: ../Doc/library/ssl.rst:2592 msgid "Security considerations" msgstr "" -#: ../Doc/library/ssl.rst:2592 +#: ../Doc/library/ssl.rst:2595 msgid "Best defaults" msgstr "" -#: ../Doc/library/ssl.rst:2594 +#: ../Doc/library/ssl.rst:2597 msgid "" "For **client use**, if you don't have any special requirements for your " "security policy, it is highly recommended that you use the :func:" @@ -2826,19 +2830,19 @@ msgid "" "settings." msgstr "" -#: ../Doc/library/ssl.rst:2601 +#: ../Doc/library/ssl.rst:2604 msgid "" "For example, here is how you would use the :class:`smtplib.SMTP` class to " "create a trusted, secure connection to a SMTP server::" msgstr "" -#: ../Doc/library/ssl.rst:2610 +#: ../Doc/library/ssl.rst:2613 msgid "" "If a client certificate is needed for the connection, it can be added with :" "meth:`SSLContext.load_cert_chain`." msgstr "" -#: ../Doc/library/ssl.rst:2613 +#: ../Doc/library/ssl.rst:2616 msgid "" "By contrast, if you create the SSL context by calling the :class:" "`SSLContext` constructor yourself, it will not have certificate validation " @@ -2846,15 +2850,15 @@ msgid "" "paragraphs below to achieve a good security level." msgstr "" -#: ../Doc/library/ssl.rst:2619 +#: ../Doc/library/ssl.rst:2622 msgid "Manual settings" msgstr "" -#: ../Doc/library/ssl.rst:2622 +#: ../Doc/library/ssl.rst:2625 msgid "Verifying certificates" msgstr "" -#: ../Doc/library/ssl.rst:2624 +#: ../Doc/library/ssl.rst:2627 msgid "" "When calling the :class:`SSLContext` constructor directly, :const:" "`CERT_NONE` is the default. Since it does not authenticate the other peer, " @@ -2869,13 +2873,13 @@ msgid "" "automatically performed when :attr:`SSLContext.check_hostname` is enabled." msgstr "" -#: ../Doc/library/ssl.rst:2637 +#: ../Doc/library/ssl.rst:2640 msgid "" "Hostname matchings is now performed by OpenSSL. Python no longer uses :func:" "`match_hostname`." msgstr "" -#: ../Doc/library/ssl.rst:2641 +#: ../Doc/library/ssl.rst:2644 msgid "" "In server mode, if you want to authenticate your clients using the SSL layer " "(rather than using a higher-level authentication mechanism), you'll also " @@ -2883,11 +2887,11 @@ msgid "" "certificate." msgstr "" -#: ../Doc/library/ssl.rst:2647 +#: ../Doc/library/ssl.rst:2650 msgid "Protocol versions" msgstr "" -#: ../Doc/library/ssl.rst:2649 +#: ../Doc/library/ssl.rst:2652 msgid "" "SSL versions 2 and 3 are considered insecure and are therefore dangerous to " "use. If you want maximum compatibility between clients and servers, it is " @@ -2896,7 +2900,7 @@ msgid "" "by default." msgstr "" -#: ../Doc/library/ssl.rst:2662 +#: ../Doc/library/ssl.rst:2665 msgid "" "The SSL context created above will only allow TLSv1.2 and later (if " "supported by your system) connections to a server. :const:" @@ -2904,11 +2908,11 @@ msgid "" "default. You have to load certificates into the context." msgstr "" -#: ../Doc/library/ssl.rst:2669 +#: ../Doc/library/ssl.rst:2672 msgid "Cipher selection" msgstr "" -#: ../Doc/library/ssl.rst:2671 +#: ../Doc/library/ssl.rst:2674 msgid "" "If you have advanced security requirements, fine-tuning of the ciphers " "enabled when negotiating a SSL session is possible through the :meth:" @@ -2921,11 +2925,11 @@ msgid "" "ciphers`` command on your system." msgstr "" -#: ../Doc/library/ssl.rst:2682 +#: ../Doc/library/ssl.rst:2685 msgid "Multi-processing" msgstr "" -#: ../Doc/library/ssl.rst:2684 +#: ../Doc/library/ssl.rst:2687 msgid "" "If using this module as part of a multi-processed application (using, for " "example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules), be " @@ -2936,18 +2940,18 @@ msgid "" "`~ssl.RAND_pseudo_bytes` is sufficient." msgstr "" -#: ../Doc/library/ssl.rst:2696 +#: ../Doc/library/ssl.rst:2699 msgid "TLS 1.3" msgstr "" -#: ../Doc/library/ssl.rst:2700 +#: ../Doc/library/ssl.rst:2703 msgid "" "Python has provisional and experimental support for TLS 1.3 with OpenSSL " "1.1.1. The new protocol behaves slightly differently than previous version " "of TLS/SSL. Some new TLS 1.3 features are not yet available." msgstr "" -#: ../Doc/library/ssl.rst:2704 +#: ../Doc/library/ssl.rst:2707 msgid "" "TLS 1.3 uses a disjunct set of cipher suites. All AES-GCM and ChaCha20 " "cipher suites are enabled by default. The method :meth:`SSLContext." @@ -2955,14 +2959,14 @@ msgid "" "`SSLContext.get_ciphers` returns them." msgstr "" -#: ../Doc/library/ssl.rst:2708 +#: ../Doc/library/ssl.rst:2711 msgid "" "Session tickets are no longer sent as part of the initial handshake and are " "handled differently. :attr:`SSLSocket.session` and :class:`SSLSession` are " "not compatible with TLS 1.3." msgstr "" -#: ../Doc/library/ssl.rst:2711 +#: ../Doc/library/ssl.rst:2714 msgid "" "Client-side certificates are also no longer verified during the initial " "handshake. A server can request a certificate at any time. Clients process " @@ -2970,127 +2974,127 @@ msgid "" "server." msgstr "" -#: ../Doc/library/ssl.rst:2715 +#: ../Doc/library/ssl.rst:2718 msgid "" "TLS 1.3 features like early data, deferred TLS client cert request, " "signature algorithm configuration, and rekeying are not supported yet." msgstr "" -#: ../Doc/library/ssl.rst:2722 +#: ../Doc/library/ssl.rst:2725 msgid "LibreSSL support" msgstr "" -#: ../Doc/library/ssl.rst:2724 +#: ../Doc/library/ssl.rst:2727 msgid "" "LibreSSL is a fork of OpenSSL 1.0.1. The ssl module has limited support for " "LibreSSL. Some features are not available when the ssl module is compiled " "with LibreSSL." msgstr "" -#: ../Doc/library/ssl.rst:2728 +#: ../Doc/library/ssl.rst:2731 msgid "" "LibreSSL >= 2.6.1 no longer supports NPN. The methods :meth:`SSLContext." "set_npn_protocols` and :meth:`SSLSocket.selected_npn_protocol` are not " "available." msgstr "" -#: ../Doc/library/ssl.rst:2731 +#: ../Doc/library/ssl.rst:2734 msgid "" ":meth:`SSLContext.set_default_verify_paths` ignores the env vars :envvar:" "`SSL_CERT_FILE` and :envvar:`SSL_CERT_PATH` although :func:" "`get_default_verify_paths` still reports them." msgstr "" -#: ../Doc/library/ssl.rst:2739 +#: ../Doc/library/ssl.rst:2742 msgid "Class :class:`socket.socket`" msgstr "" -#: ../Doc/library/ssl.rst:2739 +#: ../Doc/library/ssl.rst:2742 msgid "Documentation of underlying :mod:`socket` class" msgstr "" -#: ../Doc/library/ssl.rst:2742 +#: ../Doc/library/ssl.rst:2745 msgid "" "`SSL/TLS Strong Encryption: An Introduction `_" msgstr "" -#: ../Doc/library/ssl.rst:2742 +#: ../Doc/library/ssl.rst:2745 msgid "Intro from the Apache HTTP Server documentation" msgstr "" -#: ../Doc/library/ssl.rst:2745 +#: ../Doc/library/ssl.rst:2748 msgid "" ":rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: " "Certificate-Based Key Management <1422>`" msgstr "" -#: ../Doc/library/ssl.rst:2745 +#: ../Doc/library/ssl.rst:2748 msgid "Steve Kent" msgstr "" -#: ../Doc/library/ssl.rst:2748 +#: ../Doc/library/ssl.rst:2751 msgid ":rfc:`RFC 4086: Randomness Requirements for Security <4086>`" msgstr "" -#: ../Doc/library/ssl.rst:2748 +#: ../Doc/library/ssl.rst:2751 msgid "Donald E., Jeffrey I. Schiller" msgstr "" -#: ../Doc/library/ssl.rst:2751 +#: ../Doc/library/ssl.rst:2754 msgid "" ":rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and " "Certificate Revocation List (CRL) Profile <5280>`" msgstr "" -#: ../Doc/library/ssl.rst:2751 +#: ../Doc/library/ssl.rst:2754 msgid "D. Cooper" msgstr "" -#: ../Doc/library/ssl.rst:2754 +#: ../Doc/library/ssl.rst:2757 msgid "" ":rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 " "<5246>`" msgstr "" -#: ../Doc/library/ssl.rst:2754 +#: ../Doc/library/ssl.rst:2757 msgid "T. Dierks et. al." msgstr "" -#: ../Doc/library/ssl.rst:2757 +#: ../Doc/library/ssl.rst:2760 msgid ":rfc:`RFC 6066: Transport Layer Security (TLS) Extensions <6066>`" msgstr "" -#: ../Doc/library/ssl.rst:2757 +#: ../Doc/library/ssl.rst:2760 msgid "D. Eastlake" msgstr "" -#: ../Doc/library/ssl.rst:2760 +#: ../Doc/library/ssl.rst:2763 msgid "" "`IANA TLS: Transport Layer Security (TLS) Parameters `_" msgstr "" -#: ../Doc/library/ssl.rst:2760 +#: ../Doc/library/ssl.rst:2763 msgid "IANA" msgstr "" -#: ../Doc/library/ssl.rst:2763 +#: ../Doc/library/ssl.rst:2766 msgid "" ":rfc:`RFC 7525: Recommendations for Secure Use of Transport Layer Security " "(TLS) and Datagram Transport Layer Security (DTLS) <7525>`" msgstr "" -#: ../Doc/library/ssl.rst:2763 +#: ../Doc/library/ssl.rst:2766 msgid "IETF" msgstr "" -#: ../Doc/library/ssl.rst:2765 +#: ../Doc/library/ssl.rst:2768 msgid "" "`Mozilla's Server Side TLS recommendations `_" msgstr "" -#: ../Doc/library/ssl.rst:2766 +#: ../Doc/library/ssl.rst:2769 msgid "Mozilla" msgstr "" diff --git a/library/statistics.po b/library/statistics.po index aeda458f..786b9117 100644 --- a/library/statistics.po +++ b/library/statistics.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -856,11 +856,11 @@ msgstr "" #: ../Doc/library/statistics.rst:736 msgid "" -"For example, given `historical data for SAT exams `_ showing that scores are normally distributed " -"with a mean of 1060 and a standard deviation of 192, determine the " -"percentage of students with test scores between 1100 and 1200, after " -"rounding to the nearest whole number:" +"For example, given `historical data for SAT exams `_ showing that scores are " +"normally distributed with a mean of 1060 and a standard deviation of 195, " +"determine the percentage of students with test scores between 1100 and 1200, " +"after rounding to the nearest whole number:" msgstr "" #: ../Doc/library/statistics.rst:749 @@ -877,10 +877,26 @@ msgid "" msgstr "" #: ../Doc/library/statistics.rst:775 +msgid "" +"Normal distributions can be used to approximate `Binomial distributions " +"`_ when the sample " +"size is large and when the probability of a successful trial is near 50%." +msgstr "" + +#: ../Doc/library/statistics.rst:780 +msgid "" +"For example, an open source conference has 750 attendees and two rooms with " +"a 500 person capacity. There is a talk about Python and another about Ruby. " +"In previous conferences, 65% of the attendees preferred to listen to Python " +"talks. Assuming the population preferences haven't changed, what is the " +"probability that the Python room will stay within its capacity limits?" +msgstr "" + +#: ../Doc/library/statistics.rst:811 msgid "Normal distributions commonly arise in machine learning problems." msgstr "" -#: ../Doc/library/statistics.rst:777 +#: ../Doc/library/statistics.rst:813 msgid "" "Wikipedia has a `nice example of a Naive Bayesian Classifier `_. The " @@ -888,20 +904,20 @@ msgid "" "distributed features including height, weight, and foot size." msgstr "" -#: ../Doc/library/statistics.rst:782 +#: ../Doc/library/statistics.rst:818 msgid "" "We're given a training dataset with measurements for eight people. The " "measurements are assumed to be normally distributed, so we summarize the " "data with :class:`NormalDist`:" msgstr "" -#: ../Doc/library/statistics.rst:795 +#: ../Doc/library/statistics.rst:831 msgid "" "Next, we encounter a new person whose feature measurements are known but " "whose gender is unknown:" msgstr "" -#: ../Doc/library/statistics.rst:804 +#: ../Doc/library/statistics.rst:840 msgid "" "Starting with a 50% `prior probability `_ of being male or female, we compute the posterior as " @@ -909,7 +925,7 @@ msgid "" "given the gender:" msgstr "" -#: ../Doc/library/statistics.rst:819 +#: ../Doc/library/statistics.rst:855 msgid "" "The final prediction goes to the largest posterior. This is known as the " "`maximum a posteriori \n" "Language-Team: FRENCH \n" @@ -6188,7 +6188,7 @@ msgstr "" "Renvoie un itérateur sur les clefs du dictionnaire. C'est un raccourci pour " "``iter(d.keys())``." -#: ../Doc/library/stdtypes.rst:4331 +#: ../Doc/library/stdtypes.rst:4333 msgid "" "If *key* is in the dictionary, return its value. If not, insert *key* with " "a value of *default* and return *default*. *default* defaults to ``None``." @@ -6197,7 +6197,7 @@ msgstr "" "*key* avec comme valeur *default* et renvoie *default*. *default* vaut " "``None`` par défaut." -#: ../Doc/library/stdtypes.rst:4337 +#: ../Doc/library/stdtypes.rst:4339 msgid "" "Update the dictionary with the key/value pairs from *other*, overwriting " "existing keys. Return ``None``." @@ -6205,7 +6205,7 @@ msgstr "" "Met à jour le dictionnaire avec les paires de clef/valeur d'*other*, " "écrasant les clefs existantes. Renvoie ``None``." -#: ../Doc/library/stdtypes.rst:4340 +#: ../Doc/library/stdtypes.rst:4342 msgid "" ":meth:`update` accepts either another dictionary object or an iterable of " "key/value pairs (as tuples or other iterables of length two). If keyword " @@ -6217,7 +6217,7 @@ msgstr "" "Si des paramètres par mot-clef sont donnés, le dictionnaire et ensuite mis à " "jour avec ces pairs de clef/valeurs : ``d.update(red=1, blue=2)``." -#: ../Doc/library/stdtypes.rst:4347 +#: ../Doc/library/stdtypes.rst:4349 msgid "" "Return a new view of the dictionary's values. See the :ref:`documentation " "of view objects `." @@ -6225,14 +6225,14 @@ msgstr "" "Renvoie une nouvelle vue des valeurs du dictionnaire. Voir la :ref:" "`documentation des vues `." -#: ../Doc/library/stdtypes.rst:4350 +#: ../Doc/library/stdtypes.rst:4352 msgid "" "An equality comparison between one ``dict.values()`` view and another will " "always return ``False``. This also applies when comparing ``dict.values()`` " "to itself::" msgstr "" -#: ../Doc/library/stdtypes.rst:4358 +#: ../Doc/library/stdtypes.rst:4360 #, fuzzy msgid "" "Dictionaries compare equal if and only if they have the same ``(key, " @@ -6243,7 +6243,7 @@ msgstr "" "clef-valeur. Les comparaisons d'ordre (``<``, ``<=``, ``>=``, ``>``) lèvent " "une :exc:`TypeError`." -#: ../Doc/library/stdtypes.rst:4362 +#: ../Doc/library/stdtypes.rst:4364 msgid "" "Dictionaries preserve insertion order. Note that updating a key does not " "affect the order. Keys added after deletion are inserted at the end. ::" @@ -6252,7 +6252,7 @@ msgstr "" "clé n'affecte pas l'ordre. Les clés ajoutées après un effacement sont " "insérées à la fin. ::" -#: ../Doc/library/stdtypes.rst:4380 +#: ../Doc/library/stdtypes.rst:4382 msgid "" "Dictionary order is guaranteed to be insertion order. This behavior was an " "implementation detail of CPython from 3.6." @@ -6261,15 +6261,15 @@ msgstr "" "comportement était un détail d'implémentation de CPython depuis la version " "3.6." -#: ../Doc/library/stdtypes.rst:4384 +#: ../Doc/library/stdtypes.rst:4386 msgid "Dictionaries and dictionary views are reversible. ::" msgstr "" -#: ../Doc/library/stdtypes.rst:4396 +#: ../Doc/library/stdtypes.rst:4398 msgid "Dictionaries are now reversible." msgstr "" -#: ../Doc/library/stdtypes.rst:4401 +#: ../Doc/library/stdtypes.rst:4403 msgid "" ":class:`types.MappingProxyType` can be used to create a read-only view of a :" "class:`dict`." @@ -6277,11 +6277,11 @@ msgstr "" ":class:`types.MappingProxyType` peut être utilisé pour créer une vue en " "lecture seule d'un :class:`dict`." -#: ../Doc/library/stdtypes.rst:4408 +#: ../Doc/library/stdtypes.rst:4410 msgid "Dictionary view objects" msgstr "Les vues de dictionnaires" -#: ../Doc/library/stdtypes.rst:4410 +#: ../Doc/library/stdtypes.rst:4412 msgid "" "The objects returned by :meth:`dict.keys`, :meth:`dict.values` and :meth:" "`dict.items` are *view objects*. They provide a dynamic view on the " @@ -6293,7 +6293,7 @@ msgstr "" "éléments du dictionnaire, ce qui signifie que si le dictionnaire change, la " "vue reflète ces changements." -#: ../Doc/library/stdtypes.rst:4415 +#: ../Doc/library/stdtypes.rst:4417 msgid "" "Dictionary views can be iterated over to yield their respective data, and " "support membership tests:" @@ -6301,11 +6301,11 @@ msgstr "" "Les vues de dictionnaires peuvent être itérées et ainsi renvoyer les données " "du dictionnaire, elle gèrent aussi les tests de présence :" -#: ../Doc/library/stdtypes.rst:4420 +#: ../Doc/library/stdtypes.rst:4422 msgid "Return the number of entries in the dictionary." msgstr "Renvoie le nombre d'entrées du dictionnaire." -#: ../Doc/library/stdtypes.rst:4424 +#: ../Doc/library/stdtypes.rst:4426 msgid "" "Return an iterator over the keys, values or items (represented as tuples of " "``(key, value)``) in the dictionary." @@ -6313,7 +6313,7 @@ msgstr "" "Renvoie un itérateur sur les clefs, les valeurs, ou les éléments " "(représentés par des *tuples* de ``(key, value)`` du dictionnaire." -#: ../Doc/library/stdtypes.rst:4427 +#: ../Doc/library/stdtypes.rst:4429 msgid "" "Keys and values are iterated over in insertion order. This allows the " "creation of ``(value, key)`` pairs using :func:`zip`: ``pairs = zip(d." @@ -6325,7 +6325,7 @@ msgstr "" "``pairs = zip(d.values(), d.keys())``. Un autre moyen de construire la même " "liste est ``pairs = [(v, k) for (k, v) in d.items()]``." -#: ../Doc/library/stdtypes.rst:4432 +#: ../Doc/library/stdtypes.rst:4434 msgid "" "Iterating views while adding or deleting entries in the dictionary may raise " "a :exc:`RuntimeError` or fail to iterate over all entries." @@ -6334,11 +6334,11 @@ msgstr "" "dictionnaire peut lever une :exc:`RuntimeError` ou ne pas fournir toutes les " "entrées." -#: ../Doc/library/stdtypes.rst:4435 +#: ../Doc/library/stdtypes.rst:4437 msgid "Dictionary order is guaranteed to be insertion order." msgstr "L'ordre d'un dictionnaire est toujours l'ordre des insertions." -#: ../Doc/library/stdtypes.rst:4440 +#: ../Doc/library/stdtypes.rst:4442 msgid "" "Return ``True`` if *x* is in the underlying dictionary's keys, values or " "items (in the latter case, *x* should be a ``(key, value)`` tuple)." @@ -6347,7 +6347,7 @@ msgstr "" "dictionnaire sous-jacent (dans le dernier cas, *x* doit être un *tuple* " "``(key, value)``)." -#: ../Doc/library/stdtypes.rst:4445 +#: ../Doc/library/stdtypes.rst:4447 #, fuzzy msgid "" "Return a reverse iterator over the keys, values or items of the dictionary. " @@ -6356,12 +6356,12 @@ msgstr "" "Renvoie un itérateur sur les clefs, les valeurs, ou les éléments " "(représentés par des *tuples* de ``(key, value)`` du dictionnaire." -#: ../Doc/library/stdtypes.rst:4448 +#: ../Doc/library/stdtypes.rst:4450 #, fuzzy msgid "Dictionary views are now reversible." msgstr "Les vues de dictionnaires" -#: ../Doc/library/stdtypes.rst:4452 +#: ../Doc/library/stdtypes.rst:4454 msgid "" "Keys views are set-like since their entries are unique and hashable. If all " "values are hashable, so that ``(key, value)`` pairs are unique and hashable, " @@ -6380,15 +6380,15 @@ msgstr "" "abstraite :class:`collections.abc.Set` sont disponibles (comme ``==``, " "``<``, ou ``^``)." -#: ../Doc/library/stdtypes.rst:4459 +#: ../Doc/library/stdtypes.rst:4461 msgid "An example of dictionary view usage::" msgstr "Exemple d'utilisation de vue de dictionnaire ::" -#: ../Doc/library/stdtypes.rst:4494 +#: ../Doc/library/stdtypes.rst:4496 msgid "Context Manager Types" msgstr "Le type gestionnaire de contexte" -#: ../Doc/library/stdtypes.rst:4501 +#: ../Doc/library/stdtypes.rst:4503 msgid "" "Python's :keyword:`with` statement supports the concept of a runtime context " "defined by a context manager. This is implemented using a pair of methods " @@ -6401,7 +6401,7 @@ msgstr "" "entré avant l'exécution du corps de l'instruction, et qui est quitté lorsque " "l'instruction se termine :" -#: ../Doc/library/stdtypes.rst:4509 +#: ../Doc/library/stdtypes.rst:4511 msgid "" "Enter the runtime context and return either this object or another object " "related to the runtime context. The value returned by this method is bound " @@ -6413,7 +6413,7 @@ msgstr "" "cette méthode est liée à l'identifiant donné au :keyword:`!as` de " "l'instruction :keyword:`with` utilisant ce gestionnaire de contexte." -#: ../Doc/library/stdtypes.rst:4514 +#: ../Doc/library/stdtypes.rst:4516 msgid "" "An example of a context manager that returns itself is a :term:`file " "object`. File objects return themselves from __enter__() to allow :func:" @@ -6424,7 +6424,7 @@ msgstr "" "autorisent :func:`open` à être utilisé comme contexte à une instruction :" "keyword:`with`." -#: ../Doc/library/stdtypes.rst:4518 +#: ../Doc/library/stdtypes.rst:4520 msgid "" "An example of a context manager that returns a related object is the one " "returned by :func:`decimal.localcontext`. These managers set the active " @@ -6439,7 +6439,7 @@ msgstr "" "renvoyée. Ça permet de changer le contexte courant dans le corps du :keyword:" "`with` sans affecter le code en dehors de l'instruction :keyword:`!with`." -#: ../Doc/library/stdtypes.rst:4528 +#: ../Doc/library/stdtypes.rst:4530 msgid "" "Exit the runtime context and return a Boolean flag indicating if any " "exception that occurred should be suppressed. If an exception occurred while " @@ -6453,7 +6453,7 @@ msgstr "" "l'exception, sa valeur, et la trace de la pile (*traceback*). Sinon les " "trois arguments valent ``None``." -#: ../Doc/library/stdtypes.rst:4533 +#: ../Doc/library/stdtypes.rst:4535 msgid "" "Returning a true value from this method will cause the :keyword:`with` " "statement to suppress the exception and continue execution with the " @@ -6470,7 +6470,7 @@ msgstr "" "pendant l'exécution de cette méthode remplaceront toute exception qui s'est " "produite dans le corps du :keyword:`!with`." -#: ../Doc/library/stdtypes.rst:4540 +#: ../Doc/library/stdtypes.rst:4542 msgid "" "The exception passed in should never be reraised explicitly - instead, this " "method should return a false value to indicate that the method completed " @@ -6484,7 +6484,7 @@ msgstr "" "Ceci permet au code de gestion du contexte de comprendre si une méthode :" "meth:`__exit__` a échoué." -#: ../Doc/library/stdtypes.rst:4546 +#: ../Doc/library/stdtypes.rst:4548 msgid "" "Python defines several context managers to support easy thread " "synchronisation, prompt closure of files or other objects, and simpler " @@ -6499,7 +6499,7 @@ msgstr "" "protocole de gestion du contexte. Voir les exemples dans la documentation du " "module :mod:`contextlib`." -#: ../Doc/library/stdtypes.rst:4552 +#: ../Doc/library/stdtypes.rst:4554 msgid "" "Python's :term:`generator`\\s and the :class:`contextlib.contextmanager` " "decorator provide a convenient way to implement these protocols. If a " @@ -6515,7 +6515,7 @@ msgstr "" "`__enter__` et :meth:`__exit__`, plutôt que l'itérateur produit par un " "générateur non décoré." -#: ../Doc/library/stdtypes.rst:4559 +#: ../Doc/library/stdtypes.rst:4561 msgid "" "Note that there is no specific slot for any of these methods in the type " "structure for Python objects in the Python/C API. Extension types wanting to " @@ -6530,11 +6530,11 @@ msgstr "" "d'exécution, les le coût d'un accès au dictionnaire d'une classe unique est " "négligeable." -#: ../Doc/library/stdtypes.rst:4569 +#: ../Doc/library/stdtypes.rst:4571 msgid "Other Built-in Types" msgstr "Autres types natifs" -#: ../Doc/library/stdtypes.rst:4571 +#: ../Doc/library/stdtypes.rst:4573 msgid "" "The interpreter supports several other kinds of objects. Most of these " "support only one or two operations." @@ -6542,11 +6542,11 @@ msgstr "" "L'interpréteur gère aussi d'autres types d'objets, la plupart ne supportant " "cependant qu'une ou deux opérations." -#: ../Doc/library/stdtypes.rst:4578 +#: ../Doc/library/stdtypes.rst:4580 msgid "Modules" msgstr "Modules" -#: ../Doc/library/stdtypes.rst:4580 +#: ../Doc/library/stdtypes.rst:4582 msgid "" "The only special operation on a module is attribute access: ``m.name``, " "where *m* is a module and *name* accesses a name defined in *m*'s symbol " @@ -6564,7 +6564,7 @@ msgstr "" "objet module nommé *foo* existe, il nécessite cependant une *définition* " "(externe) d'un module nommé *foo* quelque part.)" -#: ../Doc/library/stdtypes.rst:4587 +#: ../Doc/library/stdtypes.rst:4589 msgid "" "A special attribute of every module is :attr:`~object.__dict__`. This is the " "dictionary containing the module's symbol table. Modifying this dictionary " @@ -6582,7 +6582,7 @@ msgstr "" "vous ne pouvez pas écrire ``m.__dict__ = {}``). Modifier :attr:`~object." "__dict__` directement n'est pas recommandé." -#: ../Doc/library/stdtypes.rst:4595 +#: ../Doc/library/stdtypes.rst:4597 msgid "" "Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ````. S'ils sont chargés depuis un fichier, ils sont représentés " "````." -#: ../Doc/library/stdtypes.rst:4603 +#: ../Doc/library/stdtypes.rst:4605 msgid "Classes and Class Instances" msgstr "Les classes et instances de classes" -#: ../Doc/library/stdtypes.rst:4605 +#: ../Doc/library/stdtypes.rst:4607 msgid "See :ref:`objects` and :ref:`class` for these." msgstr "Voir :ref:`objects` et :ref:`class`." -#: ../Doc/library/stdtypes.rst:4611 +#: ../Doc/library/stdtypes.rst:4613 msgid "Functions" msgstr "Fonctions" -#: ../Doc/library/stdtypes.rst:4613 +#: ../Doc/library/stdtypes.rst:4615 msgid "" "Function objects are created by function definitions. The only operation on " "a function object is to call it: ``func(argument-list)``." @@ -6613,7 +6613,7 @@ msgstr "" "opération applicable à un objet fonction est de l'appeler : ``func(argument-" "list)``." -#: ../Doc/library/stdtypes.rst:4616 +#: ../Doc/library/stdtypes.rst:4618 msgid "" "There are really two flavors of function objects: built-in functions and " "user-defined functions. Both support the same operation (to call the " @@ -6625,15 +6625,15 @@ msgstr "" "opérations (l'appel à la fonction), mais leur implémentation est différente, " "d'où les deux types distincts." -#: ../Doc/library/stdtypes.rst:4620 +#: ../Doc/library/stdtypes.rst:4622 msgid "See :ref:`function` for more information." msgstr "Voir :ref:`function` pour plus d'information." -#: ../Doc/library/stdtypes.rst:4626 +#: ../Doc/library/stdtypes.rst:4628 msgid "Methods" msgstr "Méthodes" -#: ../Doc/library/stdtypes.rst:4630 +#: ../Doc/library/stdtypes.rst:4632 msgid "" "Methods are functions that are called using the attribute notation. There " "are two flavors: built-in methods (such as :meth:`append` on lists) and " @@ -6645,7 +6645,7 @@ msgstr "" "listes), et les méthodes d'instances de classes. Les méthodes natives sont " "représentées avec le type qui les supporte." -#: ../Doc/library/stdtypes.rst:4635 +#: ../Doc/library/stdtypes.rst:4637 msgid "" "If you access a method (a function defined in a class namespace) through an " "instance, you get a special object: a :dfn:`bound method` (also called :dfn:" @@ -6666,7 +6666,7 @@ msgstr "" "n)`` est tout à fait équivalent à appeler ``m.__func__(m.__self__, arg-1, " "arg-2, …, arg-n)``." -#: ../Doc/library/stdtypes.rst:4644 +#: ../Doc/library/stdtypes.rst:4646 msgid "" "Like function objects, bound method objects support getting arbitrary " "attributes. However, since method attributes are actually stored on the " @@ -6683,15 +6683,15 @@ msgstr "" "`AttributeError`. Pour affecter l'attribut, vous devrez explicitement " "l'affecter à sa fonction sous-jacente ::" -#: ../Doc/library/stdtypes.rst:4664 ../Doc/library/stdtypes.rst:4692 +#: ../Doc/library/stdtypes.rst:4666 ../Doc/library/stdtypes.rst:4694 msgid "See :ref:`types` for more information." msgstr "Voir :ref:`types` pour plus d'information." -#: ../Doc/library/stdtypes.rst:4672 +#: ../Doc/library/stdtypes.rst:4674 msgid "Code Objects" msgstr "Objets code" -#: ../Doc/library/stdtypes.rst:4678 +#: ../Doc/library/stdtypes.rst:4680 msgid "" "Code objects are used by the implementation to represent \"pseudo-compiled\" " "executable Python code such as a function body. They differ from function " @@ -6707,7 +6707,7 @@ msgstr "" "fonction native :func:`compile` et peuvent être obtenus des objets fonction " "via leur attribut :attr:`__code__`. Voir aussi le module :mod:`code`." -#: ../Doc/library/stdtypes.rst:4689 +#: ../Doc/library/stdtypes.rst:4691 msgid "" "A code object can be executed or evaluated by passing it (instead of a " "source string) to the :func:`exec` or :func:`eval` built-in functions." @@ -6716,11 +6716,11 @@ msgstr "" "d'une chaîne contenant du code) aux fonction natives :func:`exec` ou :func:" "`eval`." -#: ../Doc/library/stdtypes.rst:4698 +#: ../Doc/library/stdtypes.rst:4700 msgid "Type Objects" msgstr "Objets type" -#: ../Doc/library/stdtypes.rst:4704 +#: ../Doc/library/stdtypes.rst:4706 msgid "" "Type objects represent the various object types. An object's type is " "accessed by the built-in function :func:`type`. There are no special " @@ -6732,15 +6732,15 @@ msgstr "" "opération spéciale sur les types. Le module standard :mod:`types` définit " "les noms de tous les types natifs." -#: ../Doc/library/stdtypes.rst:4709 +#: ../Doc/library/stdtypes.rst:4711 msgid "Types are written like this: ````." msgstr "Les types sont représentés : ````." -#: ../Doc/library/stdtypes.rst:4715 +#: ../Doc/library/stdtypes.rst:4717 msgid "The Null Object" msgstr "L'objet Null" -#: ../Doc/library/stdtypes.rst:4717 +#: ../Doc/library/stdtypes.rst:4719 msgid "" "This object is returned by functions that don't explicitly return a value. " "It supports no special operations. There is exactly one null object, named " @@ -6750,15 +6750,15 @@ msgstr "" "valeur. Il ne supporte aucune opération spéciale. Il existe exactement un " "objet *null* nommé ``None`` (c'est un nom natif). ``type(None)()``." -#: ../Doc/library/stdtypes.rst:4721 +#: ../Doc/library/stdtypes.rst:4723 msgid "It is written as ``None``." msgstr "C'est écrit ``None``." -#: ../Doc/library/stdtypes.rst:4728 +#: ../Doc/library/stdtypes.rst:4730 msgid "The Ellipsis Object" msgstr "L'objet points de suspension" -#: ../Doc/library/stdtypes.rst:4730 +#: ../Doc/library/stdtypes.rst:4732 msgid "" "This object is commonly used by slicing (see :ref:`slicings`). It supports " "no special operations. There is exactly one ellipsis object, named :const:" @@ -6770,15 +6770,15 @@ msgstr "" "objet *ellipsis*, nommé :const:`Ellipsis` (un nom natif). ``type(Ellipsis)" "()`` produit le *singleton* :const:`Ellipsis`." -#: ../Doc/library/stdtypes.rst:4735 +#: ../Doc/library/stdtypes.rst:4737 msgid "It is written as ``Ellipsis`` or ``...``." msgstr "C'est écrit ``Ellipsis`` ou ``...``." -#: ../Doc/library/stdtypes.rst:4741 +#: ../Doc/library/stdtypes.rst:4743 msgid "The NotImplemented Object" msgstr "L'objet *NotImplemented*" -#: ../Doc/library/stdtypes.rst:4743 +#: ../Doc/library/stdtypes.rst:4745 msgid "" "This object is returned from comparisons and binary operations when they are " "asked to operate on types they don't support. See :ref:`comparisons` for " @@ -6790,15 +6790,15 @@ msgstr "" "pour plus d'informations. Il n'y a qu'un seul objet ``NotImplemented``. " "``type(NotImplemented)()`` renvoie un *singleton*." -#: ../Doc/library/stdtypes.rst:4748 +#: ../Doc/library/stdtypes.rst:4750 msgid "It is written as ``NotImplemented``." msgstr "C'est écrit ``NotImplemented``." -#: ../Doc/library/stdtypes.rst:4754 +#: ../Doc/library/stdtypes.rst:4756 msgid "Boolean Values" msgstr "Valeurs booléennes" -#: ../Doc/library/stdtypes.rst:4756 +#: ../Doc/library/stdtypes.rst:4758 msgid "" "Boolean values are the two constant objects ``False`` and ``True``. They " "are used to represent truth values (although other values can also be " @@ -6817,15 +6817,15 @@ msgstr "" "valeur en booléen tant que la valeur peut être interprétée en une valeur de " "vérité (voir :ref:`truth` au dessus)." -#: ../Doc/library/stdtypes.rst:4769 +#: ../Doc/library/stdtypes.rst:4771 msgid "They are written as ``False`` and ``True``, respectively." msgstr "Ils s'écrivent ``False`` et ``True``, respectivement." -#: ../Doc/library/stdtypes.rst:4775 +#: ../Doc/library/stdtypes.rst:4777 msgid "Internal Objects" msgstr "Objets internes" -#: ../Doc/library/stdtypes.rst:4777 +#: ../Doc/library/stdtypes.rst:4779 msgid "" "See :ref:`types` for this information. It describes stack frame objects, " "traceback objects, and slice objects." @@ -6833,11 +6833,11 @@ msgstr "" "Voir :ref:`types`. Ils décrivent les objets *stack frame*, *traceback*, et " "*slice*." -#: ../Doc/library/stdtypes.rst:4784 +#: ../Doc/library/stdtypes.rst:4786 msgid "Special Attributes" msgstr "Attributs spéciaux" -#: ../Doc/library/stdtypes.rst:4786 +#: ../Doc/library/stdtypes.rst:4788 msgid "" "The implementation adds a few special read-only attributes to several object " "types, where they are relevant. Some of these are not reported by the :func:" @@ -6847,7 +6847,7 @@ msgstr "" "certains types, lorsque ça a du sens. Certains ne sont *pas* listés par la " "fonction native :func:`dir`." -#: ../Doc/library/stdtypes.rst:4793 +#: ../Doc/library/stdtypes.rst:4795 msgid "" "A dictionary or other mapping object used to store an object's (writable) " "attributes." @@ -6855,20 +6855,20 @@ msgstr "" "Un dictionnaire ou un autre *mapping object* utilisé pour stocker les " "attributs (modifiables) de l'objet." -#: ../Doc/library/stdtypes.rst:4799 +#: ../Doc/library/stdtypes.rst:4801 msgid "The class to which a class instance belongs." msgstr "La classe de l'instance de classe." -#: ../Doc/library/stdtypes.rst:4804 +#: ../Doc/library/stdtypes.rst:4806 msgid "The tuple of base classes of a class object." msgstr "Le *tuple* des classes parentes d'un objet classe." -#: ../Doc/library/stdtypes.rst:4809 +#: ../Doc/library/stdtypes.rst:4811 msgid "" "The name of the class, function, method, descriptor, or generator instance." msgstr "Le nom de la classe, fonction, méthode, descripteur, ou générateur." -#: ../Doc/library/stdtypes.rst:4815 +#: ../Doc/library/stdtypes.rst:4817 msgid "" "The :term:`qualified name` of the class, function, method, descriptor, or " "generator instance." @@ -6876,7 +6876,7 @@ msgstr "" "Le :term:`qualified name` de la classe, fonction, méthode, descripteur, ou " "générateur." -#: ../Doc/library/stdtypes.rst:4823 +#: ../Doc/library/stdtypes.rst:4825 msgid "" "This attribute is a tuple of classes that are considered when looking for " "base classes during method resolution." @@ -6884,7 +6884,7 @@ msgstr "" "Cet attribut est un *tuple* contenant les classes parents prises en compte " "lors de la résolution de méthode." -#: ../Doc/library/stdtypes.rst:4829 +#: ../Doc/library/stdtypes.rst:4831 msgid "" "This method can be overridden by a metaclass to customize the method " "resolution order for its instances. It is called at class instantiation, " @@ -6895,7 +6895,7 @@ msgstr "" "la l'initialisation de la classe, et son résultat est stocké dans " "l'attribut :attr:`~class.__mro__`." -#: ../Doc/library/stdtypes.rst:4836 +#: ../Doc/library/stdtypes.rst:4838 msgid "" "Each class keeps a list of weak references to its immediate subclasses. " "This method returns a list of all those references still alive. Example::" @@ -6904,11 +6904,11 @@ msgstr "" "immédiates. Cette méthode renvoie la liste de toutes ces références encore " "valables. Exemple ::" -#: ../Doc/library/stdtypes.rst:4845 +#: ../Doc/library/stdtypes.rst:4847 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/stdtypes.rst:4846 +#: ../Doc/library/stdtypes.rst:4848 msgid "" "Additional information on these special methods may be found in the Python " "Reference Manual (:ref:`customization`)." @@ -6916,7 +6916,7 @@ msgstr "" "Plus d'informations sur ces méthodes spéciales peuvent être trouvées dans le " "*Python Reference Manual* (:ref:`customization`)." -#: ../Doc/library/stdtypes.rst:4849 +#: ../Doc/library/stdtypes.rst:4851 msgid "" "As a consequence, the list ``[1, 2]`` is considered equal to ``[1.0, 2.0]``, " "and similarly for tuples." @@ -6924,13 +6924,13 @@ msgstr "" "Par conséquent, la liste ``[1, 2]`` est considérée égale à ``[1.0, 2.0]``. " "Idem avec des tuples." -#: ../Doc/library/stdtypes.rst:4852 +#: ../Doc/library/stdtypes.rst:4854 msgid "They must have since the parser can't tell the type of the operands." msgstr "" "Nécessairement, puisque l'analyseur ne peut pas discerner le type des " "opérandes." -#: ../Doc/library/stdtypes.rst:4854 +#: ../Doc/library/stdtypes.rst:4856 msgid "" "Cased characters are those with general category property being one of \"Lu" "\" (Letter, uppercase), \"Ll\" (Letter, lowercase), or \"Lt\" (Letter, " @@ -6940,7 +6940,7 @@ msgstr "" "category* est soit \"Lu\" (pour *Letter*, *uppercase*), soit \"Ll\" (pour " "*Letter*, *lowercase*), soit \"Lt\" (pour *Letter*, *titlecase*)." -#: ../Doc/library/stdtypes.rst:4857 +#: ../Doc/library/stdtypes.rst:4859 msgid "" "To format only a tuple you should therefore provide a singleton tuple whose " "only element is the tuple to be formatted." diff --git a/library/sys.po b/library/sys.po index f4e1c53b..34f612dc 100644 --- a/library/sys.po +++ b/library/sys.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2020-02-04 09:09+0100\n" "Last-Translator: louisMaury \n" "Language-Team: FRENCH \n" @@ -183,10 +183,11 @@ msgid "" msgstr "" #: ../Doc/library/sys.rst:105 +#, fuzzy msgid "" "Set during Python startup, before ``site.py`` is run, to the same value as :" "data:`exec_prefix`. If not running in a :ref:`virtual environment `, the values will stay the same ; if ``site.py`` finds that a virtual " +"def>`, the values will stay the same; if ``site.py`` finds that a virtual " "environment is in use, the values of :data:`prefix` and :data:`exec_prefix` " "will be changed to point to the virtual environment, whereas :data:" "`base_prefix` and :data:`base_exec_prefix` will remain pointing to the base " @@ -892,8 +893,9 @@ msgid "DBL_EPSILON" msgstr "DBL_EPSILON" #: ../Doc/library/sys.rst:482 +#, fuzzy msgid "" -"difference between 1 and the least value greater than 1 that is " +"difference between 1.0 and the least value greater than 1.0 that is " "representable as a float" msgstr "" "différence entre 1 et la plus petite valeur plus grande que 1 représentable " @@ -940,7 +942,8 @@ msgid "DBL_MAX" msgstr "DBL_MAX" #: ../Doc/library/sys.rst:491 -msgid "maximum representable finite float" +#, fuzzy +msgid "maximum representable positive finite float" msgstr "plus grand `float` fini représentable" #: ../Doc/library/sys.rst:493 @@ -952,8 +955,10 @@ msgid "DBL_MAX_EXP" msgstr "DBL_MAX_EXP" #: ../Doc/library/sys.rst:493 +#, fuzzy msgid "" -"maximum integer e such that ``radix**(e-1)`` is a representable finite float" +"maximum integer *e* such that ``radix**(e-1)`` is a representable finite " +"float" msgstr "" "plus grand nombre entier *e* tel que ``radix**(e-1)`` soit représentable " "sous forme de *float* finit" @@ -967,8 +972,9 @@ msgid "DBL_MAX_10_EXP" msgstr "DBL_MAX_10_EXP" #: ../Doc/library/sys.rst:496 +#, fuzzy msgid "" -"maximum integer e such that ``10**e`` is in the range of representable " +"maximum integer *e* such that ``10**e`` is in the range of representable " "finite floats" msgstr "" "plus grand nombre entier *e* tel que ``10**e`` est dans l'intervalle des " @@ -983,7 +989,8 @@ msgid "DBL_MIN" msgstr "DBL_MIN" #: ../Doc/library/sys.rst:499 -msgid "minimum positive normalized float" +#, fuzzy +msgid "minimum representable positive *normalized* float" msgstr "plus petit nombre à virgule flottante positif normalisé" #: ../Doc/library/sys.rst:501 @@ -995,7 +1002,8 @@ msgid "DBL_MIN_EXP" msgstr "DBL_MIN_EXP" #: ../Doc/library/sys.rst:501 -msgid "minimum integer e such that ``radix**(e-1)`` is a normalized float" +#, fuzzy +msgid "minimum integer *e* such that ``radix**(e-1)`` is a normalized float" msgstr "" "plus petit entier *e* tel que ``radix**(e-1)`` est un *float* normalisé" @@ -1008,7 +1016,8 @@ msgid "DBL_MIN_10_EXP" msgstr "DBL_MIN_10_EXP" #: ../Doc/library/sys.rst:504 -msgid "minimum integer e such that ``10**e`` is a normalized float" +#, fuzzy +msgid "minimum integer *e* such that ``10**e`` is a normalized float" msgstr "" "plus petit nombre entier *e* tel que ``10**e`` est un nombre à virgule " "flottante normalisé" diff --git a/library/threading.po b/library/threading.po index 18b0c688..d9b64f7a 100644 --- a/library/threading.po +++ b/library/threading.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2020-01-21 21:25+0100\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" @@ -845,7 +845,7 @@ msgid "" "by the platform." msgstr "" -#: ../Doc/library/threading.rst:452 ../Doc/library/threading.rst:531 +#: ../Doc/library/threading.rst:452 ../Doc/library/threading.rst:532 msgid "Acquire a lock, blocking or non-blocking." msgstr "Acquiert un verrou, bloquant ou non bloquant." @@ -877,8 +877,8 @@ msgid "" "if not (for example if the *timeout* expired)." msgstr "" -#: ../Doc/library/threading.rst:470 ../Doc/library/threading.rst:553 -#: ../Doc/library/threading.rst:798 +#: ../Doc/library/threading.rst:470 ../Doc/library/threading.rst:554 +#: ../Doc/library/threading.rst:799 msgid "The *timeout* parameter is new." msgstr "Le paramètre *timeout* est nouveau." @@ -905,15 +905,20 @@ msgstr "" msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised." msgstr "" -#: ../Doc/library/threading.rst:489 ../Doc/library/threading.rst:569 +#: ../Doc/library/threading.rst:489 ../Doc/library/threading.rst:570 msgid "There is no return value." msgstr "Il n'y a pas de valeur de retour." -#: ../Doc/library/threading.rst:499 +#: ../Doc/library/threading.rst:493 +#, fuzzy +msgid "Return true if the lock is acquired." +msgstr "Renvoie si le fil d'exécution est vivant ou pas." + +#: ../Doc/library/threading.rst:500 msgid "RLock Objects" msgstr "" -#: ../Doc/library/threading.rst:501 +#: ../Doc/library/threading.rst:502 msgid "" "A reentrant lock is a synchronization primitive that may be acquired " "multiple times by the same thread. Internally, it uses the concepts of " @@ -922,7 +927,7 @@ msgid "" "lock; in the unlocked state, no thread owns it." msgstr "" -#: ../Doc/library/threading.rst:507 +#: ../Doc/library/threading.rst:508 msgid "" "To lock the lock, a thread calls its :meth:`~RLock.acquire` method; this " "returns once the thread owns the lock. To unlock the lock, a thread calls " @@ -933,13 +938,13 @@ msgid "" "proceed." msgstr "" -#: ../Doc/library/threading.rst:514 +#: ../Doc/library/threading.rst:515 msgid "" "Reentrant locks also support the :ref:`context management protocol `." msgstr "" -#: ../Doc/library/threading.rst:519 +#: ../Doc/library/threading.rst:520 msgid "" "This class implements reentrant lock objects. A reentrant lock must be " "released by the thread that acquired it. Once a thread has acquired a " @@ -947,14 +952,14 @@ msgid "" "thread must release it once for each time it has acquired it." msgstr "" -#: ../Doc/library/threading.rst:524 +#: ../Doc/library/threading.rst:525 msgid "" "Note that ``RLock`` is actually a factory function which returns an instance " "of the most efficient version of the concrete RLock class that is supported " "by the platform." msgstr "" -#: ../Doc/library/threading.rst:533 +#: ../Doc/library/threading.rst:534 msgid "" "When invoked without arguments: if this thread already owns the lock, " "increment the recursion level by one, and return immediately. Otherwise, if " @@ -965,13 +970,13 @@ msgid "" "ownership of the lock. There is no return value in this case." msgstr "" -#: ../Doc/library/threading.rst:541 +#: ../Doc/library/threading.rst:542 msgid "" "When invoked with the *blocking* argument set to true, do the same thing as " "when called without arguments, and return ``True``." msgstr "" -#: ../Doc/library/threading.rst:544 +#: ../Doc/library/threading.rst:545 msgid "" "When invoked with the *blocking* argument set to false, do not block. If a " "call without an argument would block, return ``False`` immediately; " @@ -979,7 +984,7 @@ msgid "" "``True``." msgstr "" -#: ../Doc/library/threading.rst:548 +#: ../Doc/library/threading.rst:549 msgid "" "When invoked with the floating-point *timeout* argument set to a positive " "value, block for at most the number of seconds specified by *timeout* and as " @@ -987,7 +992,7 @@ msgid "" "acquired, false if the timeout has elapsed." msgstr "" -#: ../Doc/library/threading.rst:559 +#: ../Doc/library/threading.rst:560 msgid "" "Release a lock, decrementing the recursion level. If after the decrement it " "is zero, reset the lock to unlocked (not owned by any thread), and if any " @@ -996,17 +1001,17 @@ msgid "" "is still nonzero, the lock remains locked and owned by the calling thread." msgstr "" -#: ../Doc/library/threading.rst:565 +#: ../Doc/library/threading.rst:566 msgid "" "Only call this method when the calling thread owns the lock. A :exc:" "`RuntimeError` is raised if this method is called when the lock is unlocked." msgstr "" -#: ../Doc/library/threading.rst:575 +#: ../Doc/library/threading.rst:576 msgid "Condition Objects" msgstr "" -#: ../Doc/library/threading.rst:577 +#: ../Doc/library/threading.rst:578 msgid "" "A condition variable is always associated with some kind of lock; this can " "be passed in or one will be created by default. Passing one in is useful " @@ -1014,7 +1019,7 @@ msgid "" "of the condition object: you don't have to track it separately." msgstr "" -#: ../Doc/library/threading.rst:582 +#: ../Doc/library/threading.rst:583 msgid "" "A condition variable obeys the :ref:`context management protocol `: using the ``with`` statement acquires the associated lock for the " @@ -1023,7 +1028,7 @@ msgid "" "associated lock." msgstr "" -#: ../Doc/library/threading.rst:588 +#: ../Doc/library/threading.rst:589 msgid "" "Other methods must be called with the associated lock held. The :meth:" "`~Condition.wait` method releases the lock, and then blocks until another " @@ -1032,14 +1037,14 @@ msgid "" "and returns. It is also possible to specify a timeout." msgstr "" -#: ../Doc/library/threading.rst:594 +#: ../Doc/library/threading.rst:595 msgid "" "The :meth:`~Condition.notify` method wakes up one of the threads waiting for " "the condition variable, if any are waiting. The :meth:`~Condition." "notify_all` method wakes up all threads waiting for the condition variable." msgstr "" -#: ../Doc/library/threading.rst:598 +#: ../Doc/library/threading.rst:599 msgid "" "Note: the :meth:`~Condition.notify` and :meth:`~Condition.notify_all` " "methods don't release the lock; this means that the thread or threads " @@ -1048,7 +1053,7 @@ msgid "" "or :meth:`~Condition.notify_all` finally relinquishes ownership of the lock." msgstr "" -#: ../Doc/library/threading.rst:604 +#: ../Doc/library/threading.rst:605 msgid "" "The typical programming style using condition variables uses the lock to " "synchronize access to some shared state; threads that are interested in a " @@ -1060,7 +1065,7 @@ msgid "" "situation with unlimited buffer capacity::" msgstr "" -#: ../Doc/library/threading.rst:624 +#: ../Doc/library/threading.rst:625 msgid "" "The ``while`` loop checking for the application's condition is necessary " "because :meth:`~Condition.wait` can return after an arbitrary long time, and " @@ -1070,7 +1075,7 @@ msgid "" "checking, and eases the computation of timeouts::" msgstr "" -#: ../Doc/library/threading.rst:636 +#: ../Doc/library/threading.rst:637 msgid "" "To choose between :meth:`~Condition.notify` and :meth:`~Condition." "notify_all`, consider whether one state change can be interesting for only " @@ -1079,45 +1084,45 @@ msgid "" "thread." msgstr "" -#: ../Doc/library/threading.rst:644 +#: ../Doc/library/threading.rst:645 msgid "" "This class implements condition variable objects. A condition variable " "allows one or more threads to wait until they are notified by another thread." msgstr "" -#: ../Doc/library/threading.rst:647 +#: ../Doc/library/threading.rst:648 msgid "" "If the *lock* argument is given and not ``None``, it must be a :class:`Lock` " "or :class:`RLock` object, and it is used as the underlying lock. Otherwise, " "a new :class:`RLock` object is created and used as the underlying lock." msgstr "" -#: ../Doc/library/threading.rst:651 ../Doc/library/threading.rst:773 -#: ../Doc/library/threading.rst:816 ../Doc/library/threading.rst:868 -#: ../Doc/library/threading.rst:937 +#: ../Doc/library/threading.rst:652 ../Doc/library/threading.rst:774 +#: ../Doc/library/threading.rst:817 ../Doc/library/threading.rst:869 +#: ../Doc/library/threading.rst:938 msgid "changed from a factory function to a class." msgstr "" -#: ../Doc/library/threading.rst:656 +#: ../Doc/library/threading.rst:657 msgid "" "Acquire the underlying lock. This method calls the corresponding method on " "the underlying lock; the return value is whatever that method returns." msgstr "" -#: ../Doc/library/threading.rst:661 +#: ../Doc/library/threading.rst:662 msgid "" "Release the underlying lock. This method calls the corresponding method on " "the underlying lock; there is no return value." msgstr "" -#: ../Doc/library/threading.rst:666 +#: ../Doc/library/threading.rst:667 msgid "" "Wait until notified or until a timeout occurs. If the calling thread has not " "acquired the lock when this method is called, a :exc:`RuntimeError` is " "raised." msgstr "" -#: ../Doc/library/threading.rst:670 +#: ../Doc/library/threading.rst:671 msgid "" "This method releases the underlying lock, and then blocks until it is " "awakened by a :meth:`notify` or :meth:`notify_all` call for the same " @@ -1125,14 +1130,14 @@ msgid "" "Once awakened or timed out, it re-acquires the lock and returns." msgstr "" -#: ../Doc/library/threading.rst:675 +#: ../Doc/library/threading.rst:676 msgid "" "When the *timeout* argument is present and not ``None``, it should be a " "floating point number specifying a timeout for the operation in seconds (or " "fractions thereof)." msgstr "" -#: ../Doc/library/threading.rst:679 +#: ../Doc/library/threading.rst:680 msgid "" "When the underlying lock is an :class:`RLock`, it is not released using its :" "meth:`release` method, since this may not actually unlock the lock when it " @@ -1142,24 +1147,24 @@ msgid "" "used to restore the recursion level when the lock is reacquired." msgstr "" -#: ../Doc/library/threading.rst:687 +#: ../Doc/library/threading.rst:688 msgid "" "The return value is ``True`` unless a given *timeout* expired, in which case " "it is ``False``." msgstr "" -#: ../Doc/library/threading.rst:690 ../Doc/library/threading.rst:902 +#: ../Doc/library/threading.rst:691 ../Doc/library/threading.rst:903 msgid "Previously, the method always returned ``None``." msgstr "" -#: ../Doc/library/threading.rst:695 +#: ../Doc/library/threading.rst:696 msgid "" "Wait until a condition evaluates to true. *predicate* should be a callable " "which result will be interpreted as a boolean value. A *timeout* may be " "provided giving the maximum time to wait." msgstr "" -#: ../Doc/library/threading.rst:699 +#: ../Doc/library/threading.rst:700 msgid "" "This utility method may call :meth:`wait` repeatedly until the predicate is " "satisfied, or until a timeout occurs. The return value is the last return " @@ -1167,33 +1172,33 @@ msgid "" "out." msgstr "" -#: ../Doc/library/threading.rst:704 +#: ../Doc/library/threading.rst:705 msgid "" "Ignoring the timeout feature, calling this method is roughly equivalent to " "writing::" msgstr "" -#: ../Doc/library/threading.rst:710 +#: ../Doc/library/threading.rst:711 msgid "" "Therefore, the same rules apply as with :meth:`wait`: The lock must be held " "when called and is re-acquired on return. The predicate is evaluated with " "the lock held." msgstr "" -#: ../Doc/library/threading.rst:718 +#: ../Doc/library/threading.rst:719 msgid "" "By default, wake up one thread waiting on this condition, if any. If the " "calling thread has not acquired the lock when this method is called, a :exc:" "`RuntimeError` is raised." msgstr "" -#: ../Doc/library/threading.rst:722 +#: ../Doc/library/threading.rst:723 msgid "" "This method wakes up at most *n* of the threads waiting for the condition " "variable; it is a no-op if no threads are waiting." msgstr "" -#: ../Doc/library/threading.rst:725 +#: ../Doc/library/threading.rst:726 msgid "" "The current implementation wakes up exactly *n* threads, if at least *n* " "threads are waiting. However, it's not safe to rely on this behavior. A " @@ -1201,14 +1206,14 @@ msgid "" "threads." msgstr "" -#: ../Doc/library/threading.rst:730 +#: ../Doc/library/threading.rst:731 msgid "" "Note: an awakened thread does not actually return from its :meth:`wait` call " "until it can reacquire the lock. Since :meth:`notify` does not release the " "lock, its caller should." msgstr "" -#: ../Doc/library/threading.rst:736 +#: ../Doc/library/threading.rst:737 msgid "" "Wake up all threads waiting on this condition. This method acts like :meth:" "`notify`, but wakes up all waiting threads instead of one. If the calling " @@ -1216,11 +1221,11 @@ msgid "" "`RuntimeError` is raised." msgstr "" -#: ../Doc/library/threading.rst:745 +#: ../Doc/library/threading.rst:746 msgid "Semaphore Objects" msgstr "" -#: ../Doc/library/threading.rst:747 +#: ../Doc/library/threading.rst:748 msgid "" "This is one of the oldest synchronization primitives in the history of " "computer science, invented by the early Dutch computer scientist Edsger W. " @@ -1228,7 +1233,7 @@ msgid "" "acquire` and :meth:`~Semaphore.release`)." msgstr "" -#: ../Doc/library/threading.rst:752 +#: ../Doc/library/threading.rst:753 msgid "" "A semaphore manages an internal counter which is decremented by each :meth:" "`~Semaphore.acquire` call and incremented by each :meth:`~Semaphore.release` " @@ -1237,12 +1242,12 @@ msgid "" "meth:`~Semaphore.release`." msgstr "" -#: ../Doc/library/threading.rst:758 +#: ../Doc/library/threading.rst:759 msgid "" "Semaphores also support the :ref:`context management protocol `." msgstr "" -#: ../Doc/library/threading.rst:763 +#: ../Doc/library/threading.rst:764 msgid "" "This class implements semaphore objects. A semaphore manages an atomic " "counter representing the number of :meth:`release` calls minus the number " @@ -1251,28 +1256,28 @@ msgid "" "If not given, *value* defaults to 1." msgstr "" -#: ../Doc/library/threading.rst:769 +#: ../Doc/library/threading.rst:770 msgid "" "The optional argument gives the initial *value* for the internal counter; it " "defaults to ``1``. If the *value* given is less than 0, :exc:`ValueError` is " "raised." msgstr "" -#: ../Doc/library/threading.rst:778 +#: ../Doc/library/threading.rst:779 msgid "Acquire a semaphore." msgstr "" -#: ../Doc/library/threading.rst:780 +#: ../Doc/library/threading.rst:781 msgid "When invoked without arguments:" msgstr "" -#: ../Doc/library/threading.rst:782 +#: ../Doc/library/threading.rst:783 msgid "" "If the internal counter is larger than zero on entry, decrement it by one " "and return ``True`` immediately." msgstr "" -#: ../Doc/library/threading.rst:784 +#: ../Doc/library/threading.rst:785 msgid "" "If the internal counter is zero on entry, block until awoken by a call to :" "meth:`~Semaphore.release`. Once awoken (and the counter is greater than 0), " @@ -1281,28 +1286,28 @@ msgid "" "threads are awoken should not be relied on." msgstr "" -#: ../Doc/library/threading.rst:790 +#: ../Doc/library/threading.rst:791 msgid "" "When invoked with *blocking* set to false, do not block. If a call without " "an argument would block, return ``False`` immediately; otherwise, do the " "same thing as when called without arguments, and return ``True``." msgstr "" -#: ../Doc/library/threading.rst:794 +#: ../Doc/library/threading.rst:795 msgid "" "When invoked with a *timeout* other than ``None``, it will block for at most " "*timeout* seconds. If acquire does not complete successfully in that " "interval, return ``False``. Return ``True`` otherwise." msgstr "" -#: ../Doc/library/threading.rst:803 +#: ../Doc/library/threading.rst:804 msgid "" "Release a semaphore, incrementing the internal counter by one. When it was " "zero on entry and another thread is waiting for it to become larger than " "zero again, wake up that thread." msgstr "" -#: ../Doc/library/threading.rst:810 +#: ../Doc/library/threading.rst:811 msgid "" "Class implementing bounded semaphore objects. A bounded semaphore checks to " "make sure its current value doesn't exceed its initial value. If it does, :" @@ -1311,11 +1316,11 @@ msgid "" "times it's a sign of a bug. If not given, *value* defaults to 1." msgstr "" -#: ../Doc/library/threading.rst:823 +#: ../Doc/library/threading.rst:824 msgid ":class:`Semaphore` Example" msgstr "" -#: ../Doc/library/threading.rst:825 +#: ../Doc/library/threading.rst:826 msgid "" "Semaphores are often used to guard resources with limited capacity, for " "example, a database server. In any situation where the size of the resource " @@ -1323,37 +1328,37 @@ msgid "" "threads, your main thread would initialize the semaphore::" msgstr "" -#: ../Doc/library/threading.rst:834 +#: ../Doc/library/threading.rst:835 msgid "" "Once spawned, worker threads call the semaphore's acquire and release " "methods when they need to connect to the server::" msgstr "" -#: ../Doc/library/threading.rst:844 +#: ../Doc/library/threading.rst:845 msgid "" "The use of a bounded semaphore reduces the chance that a programming error " "which causes the semaphore to be released more than it's acquired will go " "undetected." msgstr "" -#: ../Doc/library/threading.rst:851 +#: ../Doc/library/threading.rst:852 msgid "Event Objects" msgstr "" -#: ../Doc/library/threading.rst:853 +#: ../Doc/library/threading.rst:854 msgid "" "This is one of the simplest mechanisms for communication between threads: " "one thread signals an event and other threads wait for it." msgstr "" -#: ../Doc/library/threading.rst:856 +#: ../Doc/library/threading.rst:857 msgid "" "An event object manages an internal flag that can be set to true with the :" "meth:`~Event.set` method and reset to false with the :meth:`~Event.clear` " "method. The :meth:`~Event.wait` method blocks until the flag is true." msgstr "" -#: ../Doc/library/threading.rst:863 +#: ../Doc/library/threading.rst:864 msgid "" "Class implementing event objects. An event manages a flag that can be set " "to true with the :meth:`~Event.set` method and reset to false with the :meth:" @@ -1361,39 +1366,39 @@ msgid "" "flag is initially false." msgstr "" -#: ../Doc/library/threading.rst:873 +#: ../Doc/library/threading.rst:874 msgid "Return ``True`` if and only if the internal flag is true." msgstr "" -#: ../Doc/library/threading.rst:877 +#: ../Doc/library/threading.rst:878 msgid "" "Set the internal flag to true. All threads waiting for it to become true are " "awakened. Threads that call :meth:`wait` once the flag is true will not " "block at all." msgstr "" -#: ../Doc/library/threading.rst:883 +#: ../Doc/library/threading.rst:884 msgid "" "Reset the internal flag to false. Subsequently, threads calling :meth:`wait` " "will block until :meth:`.set` is called to set the internal flag to true " "again." msgstr "" -#: ../Doc/library/threading.rst:889 +#: ../Doc/library/threading.rst:890 msgid "" "Block until the internal flag is true. If the internal flag is true on " "entry, return immediately. Otherwise, block until another thread calls :" "meth:`.set` to set the flag to true, or until the optional timeout occurs." msgstr "" -#: ../Doc/library/threading.rst:893 +#: ../Doc/library/threading.rst:894 msgid "" "When the timeout argument is present and not ``None``, it should be a " "floating point number specifying a timeout for the operation in seconds (or " "fractions thereof)." msgstr "" -#: ../Doc/library/threading.rst:897 +#: ../Doc/library/threading.rst:898 msgid "" "This method returns ``True`` if and only if the internal flag has been set " "to true, either before the wait call or after the wait starts, so it will " @@ -1401,11 +1406,11 @@ msgid "" "out." msgstr "" -#: ../Doc/library/threading.rst:909 +#: ../Doc/library/threading.rst:910 msgid "Timer Objects" msgstr "" -#: ../Doc/library/threading.rst:911 +#: ../Doc/library/threading.rst:912 msgid "" "This class represents an action that should be run only after a certain " "amount of time has passed --- a timer. :class:`Timer` is a subclass of :" @@ -1413,7 +1418,7 @@ msgid "" "threads." msgstr "" -#: ../Doc/library/threading.rst:915 +#: ../Doc/library/threading.rst:916 msgid "" "Timers are started, as with threads, by calling their :meth:`~Timer.start` " "method. The timer can be stopped (before its action has begun) by calling " @@ -1422,11 +1427,11 @@ msgid "" "by the user." msgstr "" -#: ../Doc/library/threading.rst:921 +#: ../Doc/library/threading.rst:922 msgid "For example::" msgstr "Par exemple ::" -#: ../Doc/library/threading.rst:932 +#: ../Doc/library/threading.rst:933 msgid "" "Create a timer that will run *function* with arguments *args* and keyword " "arguments *kwargs*, after *interval* seconds have passed. If *args* is " @@ -1434,17 +1439,17 @@ msgid "" "``None`` (the default) then an empty dict will be used." msgstr "" -#: ../Doc/library/threading.rst:942 +#: ../Doc/library/threading.rst:943 msgid "" "Stop the timer, and cancel the execution of the timer's action. This will " "only work if the timer is still in its waiting stage." msgstr "" -#: ../Doc/library/threading.rst:947 +#: ../Doc/library/threading.rst:948 msgid "Barrier Objects" msgstr "" -#: ../Doc/library/threading.rst:951 +#: ../Doc/library/threading.rst:952 msgid "" "This class provides a simple synchronization primitive for use by a fixed " "number of threads that need to wait for each other. Each of the threads " @@ -1453,18 +1458,18 @@ msgid "" "calls. At this point, the threads are released simultaneously." msgstr "" -#: ../Doc/library/threading.rst:957 +#: ../Doc/library/threading.rst:958 msgid "" "The barrier can be reused any number of times for the same number of threads." msgstr "" -#: ../Doc/library/threading.rst:959 +#: ../Doc/library/threading.rst:960 msgid "" "As an example, here is a simple way to synchronize a client and server " "thread::" msgstr "" -#: ../Doc/library/threading.rst:979 +#: ../Doc/library/threading.rst:980 msgid "" "Create a barrier object for *parties* number of threads. An *action*, when " "provided, is a callable to be called by one of the threads when they are " @@ -1472,7 +1477,7 @@ msgid "" "the :meth:`wait` method." msgstr "" -#: ../Doc/library/threading.rst:986 +#: ../Doc/library/threading.rst:987 msgid "" "Pass the barrier. When all the threads party to the barrier have called " "this function, they are all released simultaneously. If a *timeout* is " @@ -1480,44 +1485,44 @@ msgid "" "constructor." msgstr "" -#: ../Doc/library/threading.rst:991 +#: ../Doc/library/threading.rst:992 msgid "" "The return value is an integer in the range 0 to *parties* -- 1, different " "for each thread. This can be used to select a thread to do some special " "housekeeping, e.g.::" msgstr "" -#: ../Doc/library/threading.rst:1000 +#: ../Doc/library/threading.rst:1001 msgid "" "If an *action* was provided to the constructor, one of the threads will have " "called it prior to being released. Should this call raise an error, the " "barrier is put into the broken state." msgstr "" -#: ../Doc/library/threading.rst:1004 +#: ../Doc/library/threading.rst:1005 msgid "If the call times out, the barrier is put into the broken state." msgstr "" -#: ../Doc/library/threading.rst:1006 +#: ../Doc/library/threading.rst:1007 msgid "" "This method may raise a :class:`BrokenBarrierError` exception if the barrier " "is broken or reset while a thread is waiting." msgstr "" -#: ../Doc/library/threading.rst:1011 +#: ../Doc/library/threading.rst:1012 msgid "" "Return the barrier to the default, empty state. Any threads waiting on it " "will receive the :class:`BrokenBarrierError` exception." msgstr "" -#: ../Doc/library/threading.rst:1014 +#: ../Doc/library/threading.rst:1015 msgid "" "Note that using this function may require some external synchronization if " "there are other threads whose state is unknown. If a barrier is broken it " "may be better to just leave it and create a new one." msgstr "" -#: ../Doc/library/threading.rst:1020 +#: ../Doc/library/threading.rst:1021 msgid "" "Put the barrier into a broken state. This causes any active or future calls " "to :meth:`wait` to fail with the :class:`BrokenBarrierError`. Use this for " @@ -1525,36 +1530,36 @@ msgid "" "application." msgstr "" -#: ../Doc/library/threading.rst:1025 +#: ../Doc/library/threading.rst:1026 msgid "" "It may be preferable to simply create the barrier with a sensible *timeout* " "value to automatically guard against one of the threads going awry." msgstr "" -#: ../Doc/library/threading.rst:1031 +#: ../Doc/library/threading.rst:1032 msgid "The number of threads required to pass the barrier." msgstr "" -#: ../Doc/library/threading.rst:1035 +#: ../Doc/library/threading.rst:1036 msgid "The number of threads currently waiting in the barrier." msgstr "" -#: ../Doc/library/threading.rst:1039 +#: ../Doc/library/threading.rst:1040 msgid "A boolean that is ``True`` if the barrier is in the broken state." msgstr "" -#: ../Doc/library/threading.rst:1044 +#: ../Doc/library/threading.rst:1045 msgid "" "This exception, a subclass of :exc:`RuntimeError`, is raised when the :class:" "`Barrier` object is reset or broken." msgstr "" -#: ../Doc/library/threading.rst:1051 +#: ../Doc/library/threading.rst:1052 msgid "" "Using locks, conditions, and semaphores in the :keyword:`!with` statement" msgstr "" -#: ../Doc/library/threading.rst:1053 +#: ../Doc/library/threading.rst:1054 msgid "" "All of the objects provided by this module that have :meth:`acquire` and :" "meth:`release` methods can be used as context managers for a :keyword:`with` " @@ -1563,11 +1568,11 @@ msgid "" "Hence, the following snippet::" msgstr "" -#: ../Doc/library/threading.rst:1062 +#: ../Doc/library/threading.rst:1063 msgid "is equivalent to::" msgstr "est équivalente à ::" -#: ../Doc/library/threading.rst:1070 +#: ../Doc/library/threading.rst:1071 msgid "" "Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`, :class:" "`Semaphore`, and :class:`BoundedSemaphore` objects may be used as :keyword:" diff --git a/library/time.po b/library/time.po index 842198ce..fd297751 100644 --- a/library/time.po +++ b/library/time.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-03-27 13:21+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -311,9 +311,9 @@ msgstr "" #: ../Doc/library/time.rst:160 ../Doc/library/time.rst:170 #: ../Doc/library/time.rst:179 ../Doc/library/time.rst:189 -#: ../Doc/library/time.rst:198 ../Doc/library/time.rst:630 -#: ../Doc/library/time.rst:747 ../Doc/library/time.rst:766 -#: ../Doc/library/time.rst:784 ../Doc/library/time.rst:820 +#: ../Doc/library/time.rst:198 ../Doc/library/time.rst:629 +#: ../Doc/library/time.rst:746 ../Doc/library/time.rst:765 +#: ../Doc/library/time.rst:783 ../Doc/library/time.rst:819 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilité ` : Unix." @@ -379,34 +379,30 @@ msgstr "" "permettant de lire leur valeur sont les suivants :" #: ../Doc/library/time.rst:221 -msgid "``'clock'``: :func:`time.clock`" -msgstr "``'clock'``: :func:`time.clock`" - -#: ../Doc/library/time.rst:222 msgid "``'monotonic'``: :func:`time.monotonic`" msgstr "``'monotonic'``: :func:`time.monotonic`" -#: ../Doc/library/time.rst:223 +#: ../Doc/library/time.rst:222 msgid "``'perf_counter'``: :func:`time.perf_counter`" msgstr "``'perf_counter'``: :func:`time.perf_counter`" -#: ../Doc/library/time.rst:224 +#: ../Doc/library/time.rst:223 msgid "``'process_time'``: :func:`time.process_time`" msgstr "``'process_time'``: :func:`time.process_time`" -#: ../Doc/library/time.rst:225 +#: ../Doc/library/time.rst:224 msgid "``'thread_time'``: :func:`time.thread_time`" msgstr "``'thread_time'``: :func:`time.thread_time`" -#: ../Doc/library/time.rst:226 +#: ../Doc/library/time.rst:225 msgid "``'time'``: :func:`time.time`" msgstr "``'time'``: :func:`time.time`" -#: ../Doc/library/time.rst:228 +#: ../Doc/library/time.rst:227 msgid "The result has the following attributes:" msgstr "Le résultat a les attributs suivants :" -#: ../Doc/library/time.rst:230 +#: ../Doc/library/time.rst:229 msgid "" "*adjustable*: ``True`` if the clock can be changed automatically (e.g. by a " "NTP daemon) or manually by the system administrator, ``False`` otherwise" @@ -415,7 +411,7 @@ msgstr "" "exemple par un démon NTP) ou manuellement par l’administrateur système, " "``False`` autrement" -#: ../Doc/library/time.rst:232 +#: ../Doc/library/time.rst:231 msgid "" "*implementation*: The name of the underlying C function used to get the " "clock value. Refer to :ref:`time-clock-id-constants` for possible values." @@ -424,18 +420,18 @@ msgstr "" "la valeur d’horloge. Voir :ref:`time-clock-id-constants` pour les valeurs " "possibles." -#: ../Doc/library/time.rst:234 +#: ../Doc/library/time.rst:233 msgid "" "*monotonic*: ``True`` if the clock cannot go backward, ``False`` otherwise" msgstr "" "*monotonic* : ``True`` si l’horloge ne peut pas revenir en arrière, " "``False`` autrement" -#: ../Doc/library/time.rst:236 +#: ../Doc/library/time.rst:235 msgid "*resolution*: The resolution of the clock in seconds (:class:`float`)" msgstr "*resolution* : La résolution de l’horloge en secondes (:class:`float`)" -#: ../Doc/library/time.rst:243 +#: ../Doc/library/time.rst:242 msgid "" "Convert a time expressed in seconds since the epoch to a :class:" "`struct_time` in UTC in which the dst flag is always zero. If *secs* is not " @@ -451,7 +447,7 @@ msgstr "" "ignorées. Voir ci-dessus pour une description de l’objet :class:" "`struct_time`. Voir :func:`calendar.timegm` pour l’inverse de cette fonction." -#: ../Doc/library/time.rst:253 +#: ../Doc/library/time.rst:252 msgid "" "Like :func:`gmtime` but converts to local time. If *secs* is not provided " "or :const:`None`, the current time as returned by :func:`.time` is used. " @@ -462,7 +458,7 @@ msgstr "" "`.time` est utilisée. Le drapeau *dst* est mis à ``1`` lorsque l’heure d’été " "s’applique à l’heure indiquée." -#: ../Doc/library/time.rst:260 +#: ../Doc/library/time.rst:259 msgid "" "This is the inverse function of :func:`localtime`. Its argument is the :" "class:`struct_time` or full 9-tuple (since the dst flag is needed; use " @@ -484,7 +480,7 @@ msgstr "" "interceptée par Python ou par les bibliothèque C sous-jacentes). La date la " "plus proche pour laquelle il peut générer une heure dépend de la plate-forme." -#: ../Doc/library/time.rst:272 +#: ../Doc/library/time.rst:271 msgid "" "Return the value (in fractional seconds) of a monotonic clock, i.e. a clock " "that cannot go backwards. The clock is not affected by system clock " @@ -497,19 +493,19 @@ msgstr "" "point de référence de la valeur renvoyée n’est pas défini, de sorte que " "seule la différence entre les résultats d’appels consécutifs est valide." -#: ../Doc/library/time.rst:278 +#: ../Doc/library/time.rst:277 msgid "The function is now always available and always system-wide." msgstr "" "La fonction est maintenant toujours disponible et toujours à l’échelle du " "système." -#: ../Doc/library/time.rst:284 +#: ../Doc/library/time.rst:283 msgid "Similar to :func:`monotonic`, but return time as nanoseconds." msgstr "" "Similaire à :func:`monotonique`, mais le temps de retour est exprimé en " "nanosecondes." -#: ../Doc/library/time.rst:293 +#: ../Doc/library/time.rst:292 msgid "" "Return the value (in fractional seconds) of a performance counter, i.e. a " "clock with the highest available resolution to measure a short duration. It " @@ -524,12 +520,12 @@ msgstr "" "de la valeur renvoyée n’est pas défini, de sorte que seule la différence " "entre les résultats d’appels consécutifs est valide." -#: ../Doc/library/time.rst:303 +#: ../Doc/library/time.rst:302 msgid "Similar to :func:`perf_counter`, but return time as nanoseconds." msgstr "" "Similaire à :func:`perf_counter`, mais renvoie le temps en nanosecondes." -#: ../Doc/library/time.rst:315 +#: ../Doc/library/time.rst:314 msgid "" "Return the value (in fractional seconds) of the sum of the system and user " "CPU time of the current process. It does not include time elapsed during " @@ -543,12 +539,12 @@ msgstr "" "référence de la valeur renvoyée n’est pas défini, de sorte que seule la " "différence entre les résultats d’appels consécutifs est valide." -#: ../Doc/library/time.rst:325 +#: ../Doc/library/time.rst:324 msgid "Similar to :func:`process_time` but return time as nanoseconds." msgstr "" "Similaire à :func:`process_time` mais renvoie le temps en nanosecondes." -#: ../Doc/library/time.rst:331 +#: ../Doc/library/time.rst:330 msgid "" "Suspend execution of the calling thread for the given number of seconds. The " "argument may be a floating point number to indicate a more precise sleep " @@ -567,7 +563,7 @@ msgstr "" "montant arbitraire en raison de la planification d’une autre activité dans " "le système." -#: ../Doc/library/time.rst:339 +#: ../Doc/library/time.rst:338 msgid "" "The function now sleeps at least *secs* even if the sleep is interrupted by " "a signal, except if the signal handler raises an exception (see :pep:`475` " @@ -577,7 +573,7 @@ msgstr "" "interrompu par un signal, sauf si le gestionnaire de signaux lève une " "exception (voir :pep:`475` pour la justification)." -#: ../Doc/library/time.rst:350 +#: ../Doc/library/time.rst:349 msgid "" "Convert a tuple or :class:`struct_time` representing a time as returned by :" "func:`gmtime` or :func:`localtime` to a string as specified by the *format* " @@ -592,7 +588,7 @@ msgstr "" "champs de *t* se situe en dehors de la plage autorisée, une :exc:" "`ValueError` est levée ." -#: ../Doc/library/time.rst:356 +#: ../Doc/library/time.rst:355 msgid "" "0 is a legal argument for any position in the time tuple; if it is normally " "illegal the value is forced to a correct one." @@ -600,7 +596,7 @@ msgstr "" "0 est un argument légal pour toute position dans le *tuple* temporel ; s’il " "est normalement illégal, la valeur est forcée à une valeur correcte." -#: ../Doc/library/time.rst:359 +#: ../Doc/library/time.rst:358 msgid "" "The following directives can be embedded in the *format* string. They are " "shown without the optional field width and precision specification, and are " @@ -611,137 +607,137 @@ msgstr "" "de précision, et sont remplacés par les caractères indiqués dans le résultat " "de :func:`strftime` :" -#: ../Doc/library/time.rst:364 +#: ../Doc/library/time.rst:363 msgid "Directive" msgstr "Directive" -#: ../Doc/library/time.rst:364 +#: ../Doc/library/time.rst:363 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/time.rst:364 +#: ../Doc/library/time.rst:363 msgid "Notes" msgstr "Notes" -#: ../Doc/library/time.rst:366 +#: ../Doc/library/time.rst:365 msgid "``%a``" msgstr "``%a``" -#: ../Doc/library/time.rst:366 +#: ../Doc/library/time.rst:365 msgid "Locale's abbreviated weekday name." msgstr "Nom abrégé du jour de la semaine selon les paramètres régionaux." -#: ../Doc/library/time.rst:369 +#: ../Doc/library/time.rst:368 msgid "``%A``" msgstr "``%A``" -#: ../Doc/library/time.rst:369 +#: ../Doc/library/time.rst:368 msgid "Locale's full weekday name." msgstr "Le nom de semaine complet de la région." -#: ../Doc/library/time.rst:371 +#: ../Doc/library/time.rst:370 msgid "``%b``" msgstr "``%b``" -#: ../Doc/library/time.rst:371 +#: ../Doc/library/time.rst:370 msgid "Locale's abbreviated month name." msgstr "Nom abrégé du mois de la région." -#: ../Doc/library/time.rst:374 +#: ../Doc/library/time.rst:373 msgid "``%B``" msgstr "``%B``" -#: ../Doc/library/time.rst:374 +#: ../Doc/library/time.rst:373 msgid "Locale's full month name." msgstr "Nom complet du mois de la région." -#: ../Doc/library/time.rst:376 +#: ../Doc/library/time.rst:375 msgid "``%c``" msgstr "``%c``" -#: ../Doc/library/time.rst:376 +#: ../Doc/library/time.rst:375 msgid "Locale's appropriate date and time representation." msgstr "" "Représentation appropriée de la date et de l’heure selon les paramètres " "régionaux." -#: ../Doc/library/time.rst:379 +#: ../Doc/library/time.rst:378 msgid "``%d``" msgstr "``%d``" -#: ../Doc/library/time.rst:379 +#: ../Doc/library/time.rst:378 msgid "Day of the month as a decimal number [01,31]." msgstr "Jour du mois sous forme décimale [01,31]." -#: ../Doc/library/time.rst:382 +#: ../Doc/library/time.rst:381 msgid "``%H``" msgstr "``%H``" -#: ../Doc/library/time.rst:382 +#: ../Doc/library/time.rst:381 msgid "Hour (24-hour clock) as a decimal number [00,23]." msgstr "Heure (horloge sur 24 heures) sous forme de nombre décimal [00,23]." -#: ../Doc/library/time.rst:385 +#: ../Doc/library/time.rst:384 msgid "``%I``" msgstr "``%I``" -#: ../Doc/library/time.rst:385 +#: ../Doc/library/time.rst:384 msgid "Hour (12-hour clock) as a decimal number [01,12]." msgstr "Heure (horloge sur 12 heures) sous forme de nombre décimal [01,12]." -#: ../Doc/library/time.rst:388 +#: ../Doc/library/time.rst:387 msgid "``%j``" msgstr "``%j``" -#: ../Doc/library/time.rst:388 +#: ../Doc/library/time.rst:387 msgid "Day of the year as a decimal number [001,366]." msgstr "Jour de l’année sous forme de nombre décimal [001,366]." -#: ../Doc/library/time.rst:391 +#: ../Doc/library/time.rst:390 msgid "``%m``" msgstr "``%m``" -#: ../Doc/library/time.rst:391 +#: ../Doc/library/time.rst:390 msgid "Month as a decimal number [01,12]." msgstr "Mois sous forme décimale [01,12]." -#: ../Doc/library/time.rst:394 +#: ../Doc/library/time.rst:393 msgid "``%M``" msgstr "``%M``" -#: ../Doc/library/time.rst:394 +#: ../Doc/library/time.rst:393 msgid "Minute as a decimal number [00,59]." msgstr "Minutes sous forme décimale [00,59]." -#: ../Doc/library/time.rst:397 +#: ../Doc/library/time.rst:396 msgid "``%p``" msgstr "``%p``" -#: ../Doc/library/time.rst:397 +#: ../Doc/library/time.rst:396 msgid "Locale's equivalent of either AM or PM." msgstr "L’équivalent local de AM ou PM." -#: ../Doc/library/time.rst:397 +#: ../Doc/library/time.rst:396 msgid "\\(1)" msgstr "\\(1)" -#: ../Doc/library/time.rst:400 +#: ../Doc/library/time.rst:399 msgid "``%S``" msgstr "``%S``" -#: ../Doc/library/time.rst:400 +#: ../Doc/library/time.rst:399 msgid "Second as a decimal number [00,61]." msgstr "Deuxième sous forme de nombre décimal [00,61]." -#: ../Doc/library/time.rst:400 +#: ../Doc/library/time.rst:399 msgid "\\(2)" msgstr "\\(2)" -#: ../Doc/library/time.rst:403 +#: ../Doc/library/time.rst:402 msgid "``%U``" msgstr "``%U``" -#: ../Doc/library/time.rst:403 +#: ../Doc/library/time.rst:402 msgid "" "Week number of the year (Sunday as the first day of the week) as a decimal " "number [00,53]. All days in a new year preceding the first Sunday are " @@ -752,23 +748,23 @@ msgstr "" "précédant le premier dimanche sont considérés comme appartenant à la semaine " "0." -#: ../Doc/library/time.rst:403 ../Doc/library/time.rst:414 +#: ../Doc/library/time.rst:402 ../Doc/library/time.rst:413 msgid "\\(3)" msgstr "\\(3)" -#: ../Doc/library/time.rst:411 +#: ../Doc/library/time.rst:410 msgid "``%w``" msgstr "``%w``" -#: ../Doc/library/time.rst:411 +#: ../Doc/library/time.rst:410 msgid "Weekday as a decimal number [0(Sunday),6]." msgstr "Jour de la semaine sous forme de nombre décimal [0 (dimanche), 6]." -#: ../Doc/library/time.rst:414 +#: ../Doc/library/time.rst:413 msgid "``%W``" msgstr "``%W``" -#: ../Doc/library/time.rst:414 +#: ../Doc/library/time.rst:413 msgid "" "Week number of the year (Monday as the first day of the week) as a decimal " "number [00,53]. All days in a new year preceding the first Monday are " @@ -778,43 +774,43 @@ msgstr "" "forme décimale [00,53]. Tous les jours d’une nouvelle année précédant le " "premier lundi sont considérés comme appartenant à la semaine 0." -#: ../Doc/library/time.rst:422 +#: ../Doc/library/time.rst:421 msgid "``%x``" msgstr "``%x``" -#: ../Doc/library/time.rst:422 +#: ../Doc/library/time.rst:421 msgid "Locale's appropriate date representation." msgstr "Représentation de la date appropriée par les paramètres régionaux." -#: ../Doc/library/time.rst:425 +#: ../Doc/library/time.rst:424 msgid "``%X``" msgstr "``%X``" -#: ../Doc/library/time.rst:425 +#: ../Doc/library/time.rst:424 msgid "Locale's appropriate time representation." msgstr "Représentation locale de l'heure." -#: ../Doc/library/time.rst:428 +#: ../Doc/library/time.rst:427 msgid "``%y``" msgstr "``%y``" -#: ../Doc/library/time.rst:428 +#: ../Doc/library/time.rst:427 msgid "Year without century as a decimal number [00,99]." msgstr "Année sans siècle comme un nombre décimal [00, 99]." -#: ../Doc/library/time.rst:431 +#: ../Doc/library/time.rst:430 msgid "``%Y``" msgstr "``%Y``" -#: ../Doc/library/time.rst:431 +#: ../Doc/library/time.rst:430 msgid "Year with century as a decimal number." msgstr "Année complète sur quatre chiffres." -#: ../Doc/library/time.rst:434 +#: ../Doc/library/time.rst:433 msgid "``%z``" msgstr "``%z``" -#: ../Doc/library/time.rst:434 +#: ../Doc/library/time.rst:433 msgid "" "Time zone offset indicating a positive or negative time difference from UTC/" "GMT of the form +HHMM or -HHMM, where H represents decimal hour digits and M " @@ -825,28 +821,28 @@ msgstr "" "représente les chiffres des heures décimales et M, les chiffres des minutes " "décimales [*-23:59*, *+23:59*]." -#: ../Doc/library/time.rst:440 +#: ../Doc/library/time.rst:439 msgid "``%Z``" msgstr "``%Z``" -#: ../Doc/library/time.rst:440 +#: ../Doc/library/time.rst:439 msgid "Time zone name (no characters if no time zone exists)." msgstr "" "Nom du fuseau horaire (pas de caractères s’il n’y a pas de fuseau horaire)." -#: ../Doc/library/time.rst:443 +#: ../Doc/library/time.rst:442 msgid "``%%``" msgstr "``%%``" -#: ../Doc/library/time.rst:443 +#: ../Doc/library/time.rst:442 msgid "A literal ``'%'`` character." msgstr "Un caractère ``'%'`` littéral." -#: ../Doc/library/time.rst:446 +#: ../Doc/library/time.rst:445 msgid "Notes:" msgstr "Notes :" -#: ../Doc/library/time.rst:449 +#: ../Doc/library/time.rst:448 msgid "" "When used with the :func:`strptime` function, the ``%p`` directive only " "affects the output hour field if the ``%I`` directive is used to parse the " @@ -856,7 +852,7 @@ msgstr "" "%p`` n’affecte le champ d’heure en sortie que si la directive ``%I`` est " "utilisée pour analyser l’heure." -#: ../Doc/library/time.rst:453 +#: ../Doc/library/time.rst:452 msgid "" "The range really is ``0`` to ``61``; value ``60`` is valid in timestamps " "representing `leap seconds`_ and value ``61`` is supported for historical " @@ -866,7 +862,7 @@ msgstr "" "les *timestamps* représentant des `leap seconds`_ et la valeur ``61`` est " "prise en charge pour des raisons historiques." -#: ../Doc/library/time.rst:458 +#: ../Doc/library/time.rst:457 msgid "" "When used with the :func:`strptime` function, ``%U`` and ``%W`` are only " "used in calculations when the day of the week and the year are specified." @@ -875,7 +871,7 @@ msgstr "" "%W`` ne sont utilisées que dans les calculs lorsque le jour de la semaine et " "l’année sont spécifiés." -#: ../Doc/library/time.rst:461 +#: ../Doc/library/time.rst:460 msgid "" "Here is an example, a format for dates compatible with that specified in " "the :rfc:`2822` Internet email standard. [#]_ ::" @@ -883,7 +879,7 @@ msgstr "" "Voici un exemple de format de date compatible avec celui spécifié dans la " "norme de courrier électronique Internet suivante :rfc:`2822`. [#]_ ::" -#: ../Doc/library/time.rst:468 +#: ../Doc/library/time.rst:467 msgid "" "Additional directives may be supported on certain platforms, but only the " "ones listed here have a meaning standardized by ANSI C. To see the full set " @@ -896,7 +892,7 @@ msgstr "" "en charge sur votre plate-forme, consultez la documentation :manpage:" "`strftime(3)`." -#: ../Doc/library/time.rst:473 +#: ../Doc/library/time.rst:472 msgid "" "On some platforms, an optional field width and precision specification can " "immediately follow the initial ``'%'`` of a directive in the following " @@ -908,7 +904,7 @@ msgstr "" "directive dans l’ordre suivant ; ce n’est pas non plus portable. La largeur " "du champ est normalement 2 sauf pour ``%j`` où il est 3." -#: ../Doc/library/time.rst:484 +#: ../Doc/library/time.rst:483 msgid "" "Parse a string representing a time according to a format. The return value " "is a :class:`struct_time` as returned by :func:`gmtime` or :func:`localtime`." @@ -917,7 +913,7 @@ msgstr "" "renvoyée est une :class:`struct_time` tel que renvoyé par :func:`gmtime` ou :" "func:`localtime`." -#: ../Doc/library/time.rst:488 +#: ../Doc/library/time.rst:487 msgid "" "The *format* parameter uses the same directives as those used by :func:" "`strftime`; it defaults to ``\"%a %b %d %H:%M:%S %Y\"`` which matches the " @@ -936,11 +932,11 @@ msgstr "" "précises ne peuvent pas être inférées sont ``(1900, 1, 1, 0, 0, 0, 0, 1, " "-1)``. *string* et *format* doivent être des chaînes." -#: ../Doc/library/time.rst:496 +#: ../Doc/library/time.rst:495 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/library/time.rst:503 +#: ../Doc/library/time.rst:502 msgid "" "Support for the ``%Z`` directive is based on the values contained in " "``tzname`` and whether ``daylight`` is true. Because of this, it is " @@ -953,7 +949,7 @@ msgstr "" "reconnaissance des heures UTC et GMT, qui sont toujours connues (et " "considérées comme des fuseaux horaires ne respectant pas l’heure d’été)." -#: ../Doc/library/time.rst:508 +#: ../Doc/library/time.rst:507 msgid "" "Only the directives specified in the documentation are supported. Because " "``strftime()`` is implemented per platform it can sometimes offer more " @@ -968,7 +964,7 @@ msgstr "" "supporte donc pas nécessairement toutes les directives disponibles qui ne " "sont pas documentées comme gérées." -#: ../Doc/library/time.rst:517 +#: ../Doc/library/time.rst:516 msgid "" "The type of the time value sequence returned by :func:`gmtime`, :func:" "`localtime`, and :func:`strptime`. It is an object with a :term:`named " @@ -980,147 +976,147 @@ msgstr "" "ses valeurs sont accessibles par index et par nom d’attribut. Les valeurs " "suivantes sont présentes :" -#: ../Doc/library/time.rst:523 +#: ../Doc/library/time.rst:522 msgid "Index" msgstr "Index" -#: ../Doc/library/time.rst:523 +#: ../Doc/library/time.rst:522 msgid "Attribute" msgstr "Attribut" -#: ../Doc/library/time.rst:523 +#: ../Doc/library/time.rst:522 msgid "Values" msgstr "Valeurs" -#: ../Doc/library/time.rst:525 +#: ../Doc/library/time.rst:524 msgid "0" msgstr "0" -#: ../Doc/library/time.rst:525 +#: ../Doc/library/time.rst:524 msgid ":attr:`tm_year`" msgstr ":attr:`tm_year`" -#: ../Doc/library/time.rst:525 +#: ../Doc/library/time.rst:524 msgid "(for example, 1993)" msgstr "(par exemple, 1993)" -#: ../Doc/library/time.rst:527 +#: ../Doc/library/time.rst:526 msgid "1" msgstr "1" -#: ../Doc/library/time.rst:527 +#: ../Doc/library/time.rst:526 msgid ":attr:`tm_mon`" msgstr ":attr:`tm_mon`" -#: ../Doc/library/time.rst:527 +#: ../Doc/library/time.rst:526 msgid "range [1, 12]" msgstr "plage [1, 12]" -#: ../Doc/library/time.rst:529 +#: ../Doc/library/time.rst:528 msgid "2" msgstr "2" -#: ../Doc/library/time.rst:529 +#: ../Doc/library/time.rst:528 msgid ":attr:`tm_mday`" msgstr ":attr:`tm_mday`" -#: ../Doc/library/time.rst:529 +#: ../Doc/library/time.rst:528 msgid "range [1, 31]" msgstr "plage [1, 31]" -#: ../Doc/library/time.rst:531 +#: ../Doc/library/time.rst:530 msgid "3" msgstr "3" -#: ../Doc/library/time.rst:531 +#: ../Doc/library/time.rst:530 msgid ":attr:`tm_hour`" msgstr ":attr:`tm_hour`" -#: ../Doc/library/time.rst:531 +#: ../Doc/library/time.rst:530 msgid "range [0, 23]" msgstr "plage [0, 23]" -#: ../Doc/library/time.rst:533 +#: ../Doc/library/time.rst:532 msgid "4" msgstr "4" -#: ../Doc/library/time.rst:533 +#: ../Doc/library/time.rst:532 msgid ":attr:`tm_min`" msgstr ":attr:`tm_min`" -#: ../Doc/library/time.rst:533 +#: ../Doc/library/time.rst:532 msgid "range [0, 59]" msgstr "plage [0, 59]" -#: ../Doc/library/time.rst:535 +#: ../Doc/library/time.rst:534 msgid "5" msgstr "5" -#: ../Doc/library/time.rst:535 +#: ../Doc/library/time.rst:534 msgid ":attr:`tm_sec`" msgstr ":attr:`tm_sec`" -#: ../Doc/library/time.rst:535 +#: ../Doc/library/time.rst:534 msgid "range [0, 61]; see **(2)** in :func:`strftime` description" msgstr "plage [0, 61]; voir **(2)** dans la description :func:`strftime`" -#: ../Doc/library/time.rst:538 +#: ../Doc/library/time.rst:537 msgid "6" msgstr "6" -#: ../Doc/library/time.rst:538 +#: ../Doc/library/time.rst:537 msgid ":attr:`tm_wday`" msgstr ":attr:`tm_wday`" -#: ../Doc/library/time.rst:538 +#: ../Doc/library/time.rst:537 msgid "range [0, 6], Monday is 0" msgstr "plage [0, 6], Lundi valant 0" -#: ../Doc/library/time.rst:540 +#: ../Doc/library/time.rst:539 msgid "7" msgstr "7" -#: ../Doc/library/time.rst:540 +#: ../Doc/library/time.rst:539 msgid ":attr:`tm_yday`" msgstr ":attr:`tm_yday`" -#: ../Doc/library/time.rst:540 +#: ../Doc/library/time.rst:539 msgid "range [1, 366]" msgstr "plage [1, 366]" -#: ../Doc/library/time.rst:542 +#: ../Doc/library/time.rst:541 msgid "8" msgstr "8" -#: ../Doc/library/time.rst:542 +#: ../Doc/library/time.rst:541 msgid ":attr:`tm_isdst`" msgstr ":attr:`tm_isdst`" -#: ../Doc/library/time.rst:542 +#: ../Doc/library/time.rst:541 msgid "0, 1 or -1; see below" msgstr "``0``, ``1`` or ``-1`` ; voir en bas" -#: ../Doc/library/time.rst:544 ../Doc/library/time.rst:546 +#: ../Doc/library/time.rst:543 ../Doc/library/time.rst:545 msgid "N/A" msgstr "N/A" -#: ../Doc/library/time.rst:544 +#: ../Doc/library/time.rst:543 msgid ":attr:`tm_zone`" msgstr ":attr:`tm_zone`" -#: ../Doc/library/time.rst:544 +#: ../Doc/library/time.rst:543 msgid "abbreviation of timezone name" msgstr "abréviation du nom du fuseau horaire" -#: ../Doc/library/time.rst:546 +#: ../Doc/library/time.rst:545 msgid ":attr:`tm_gmtoff`" msgstr ":attr:`tm_gmtoff`" -#: ../Doc/library/time.rst:546 +#: ../Doc/library/time.rst:545 msgid "offset east of UTC in seconds" msgstr "décalage à l’est de UTC en secondes" -#: ../Doc/library/time.rst:549 +#: ../Doc/library/time.rst:548 msgid "" "Note that unlike the C structure, the month value is a range of [1, 12], not " "[0, 11]." @@ -1128,7 +1124,7 @@ msgstr "" "Notez que contrairement à la structure C, la valeur du mois est une plage de " "[1, 12], pas de [0, 11]." -#: ../Doc/library/time.rst:552 +#: ../Doc/library/time.rst:551 msgid "" "In calls to :func:`mktime`, :attr:`tm_isdst` may be set to 1 when daylight " "savings time is in effect, and 0 when it is not. A value of -1 indicates " @@ -1140,7 +1136,7 @@ msgstr "" "Une valeur de ``-1`` indique que cela n’est pas connu et entraînera " "généralement le remplissage de l’état correct." -#: ../Doc/library/time.rst:556 +#: ../Doc/library/time.rst:555 msgid "" "When a tuple with an incorrect length is passed to a function expecting a :" "class:`struct_time`, or having elements of the wrong type, a :exc:" @@ -1150,7 +1146,7 @@ msgstr "" "une :class:`struct_time`, ou comportant des éléments de type incorrect, une " "exception :exc:`TypeError` est levé." -#: ../Doc/library/time.rst:562 +#: ../Doc/library/time.rst:561 msgid "" "Return the time in seconds since the epoch_ as a floating point number. The " "specific date of the epoch and the handling of `leap seconds`_ is platform " @@ -1169,7 +1165,7 @@ msgstr "" "wikipedia.org/wiki/Unix_time>`_. Pour savoir quelle est *epoch* sur une " "plate-forme donnée, consultez ``gmtime(0)``." -#: ../Doc/library/time.rst:572 +#: ../Doc/library/time.rst:571 msgid "" "Note that even though the time is always returned as a floating point " "number, not all systems provide time with a better precision than 1 second. " @@ -1184,7 +1180,7 @@ msgstr "" "inférieure à celle d’un appel précédent si l’horloge système a été réglée " "entre les deux appels." -#: ../Doc/library/time.rst:578 +#: ../Doc/library/time.rst:577 msgid "" "The number returned by :func:`.time` may be converted into a more common " "time format (i.e. year, month, day, hour, etc...) in UTC by passing it to :" @@ -1200,7 +1196,7 @@ msgstr "" "est renvoyé, à partir duquel les composants de la date du calendrier peuvent " "être consultés en tant qu’attributs." -#: ../Doc/library/time.rst:593 +#: ../Doc/library/time.rst:592 msgid "" "Return the value (in fractional seconds) of the sum of the system and user " "CPU time of the current thread. It does not include time elapsed during " @@ -1215,7 +1211,7 @@ msgstr "" "la différence entre les résultats d’appels consécutifs dans le même thread " "est valide." -#: ../Doc/library/time.rst:601 +#: ../Doc/library/time.rst:600 msgid "" ":ref:`Availability `: Windows, Linux, Unix systems supporting " "``CLOCK_THREAD_CPUTIME_ID``." @@ -1223,11 +1219,11 @@ msgstr "" ":ref:`Disponibilité ` : Systèmes Windows, Linux, Unix prenant " "en charge ``CLOCK_THREAD_CPUTIME_ID``." -#: ../Doc/library/time.rst:607 +#: ../Doc/library/time.rst:606 msgid "Similar to :func:`thread_time` but return time as nanoseconds." msgstr "Similaire à :func:`thread_time` mais renvoie le temps en nanosecondes." -#: ../Doc/library/time.rst:614 +#: ../Doc/library/time.rst:613 msgid "" "Similar to :func:`~time.time` but returns time as an integer number of " "nanoseconds since the epoch_." @@ -1235,7 +1231,7 @@ msgstr "" "Similaire à :func:`~time.time` mais renvoie le temps sous forme de nombre " "entier de nanosecondes depuis epoch_." -#: ../Doc/library/time.rst:621 +#: ../Doc/library/time.rst:620 msgid "" "Reset the time conversion rules used by the library routines. The " "environment variable :envvar:`TZ` specifies how this is done. It will also " @@ -1254,7 +1250,7 @@ msgstr "" "d’heure d’été, ou non nul s’il existe une heure, passée, présente ou future " "lorsque l’heure d’été est appliquée)." -#: ../Doc/library/time.rst:633 +#: ../Doc/library/time.rst:632 msgid "" "Although in many cases, changing the :envvar:`TZ` environment variable may " "affect the output of functions like :func:`localtime` without calling :func:" @@ -1265,12 +1261,12 @@ msgstr "" "que :func:`localtime` sans appeler :func:`tzset`, ce comportement n'est pas " "garanti." -#: ../Doc/library/time.rst:637 +#: ../Doc/library/time.rst:636 msgid "The :envvar:`TZ` environment variable should contain no whitespace." msgstr "" "La variable d’environnement :envvar:`TZ` ne doit contenir aucun espace." -#: ../Doc/library/time.rst:639 +#: ../Doc/library/time.rst:638 msgid "" "The standard format of the :envvar:`TZ` environment variable is (whitespace " "added for clarity)::" @@ -1278,15 +1274,15 @@ msgstr "" "Le format standard de la variable d’environnement :envvar:`TZ` est (espaces " "ajoutés pour plus de clarté)::" -#: ../Doc/library/time.rst:644 +#: ../Doc/library/time.rst:643 msgid "Where the components are:" msgstr "Où les composants sont :" -#: ../Doc/library/time.rst:648 +#: ../Doc/library/time.rst:647 msgid "``std`` and ``dst``" msgstr "``std`` et ``dst``" -#: ../Doc/library/time.rst:647 +#: ../Doc/library/time.rst:646 msgid "" "Three or more alphanumerics giving the timezone abbreviations. These will be " "propagated into time.tzname" @@ -1294,11 +1290,11 @@ msgstr "" "Trois alphanumériques ou plus donnant les abréviations du fuseau horaire. " "Ceux-ci seront propagés dans *time.tzname*" -#: ../Doc/library/time.rst:654 +#: ../Doc/library/time.rst:653 msgid "``offset``" msgstr "``offset``" -#: ../Doc/library/time.rst:651 +#: ../Doc/library/time.rst:650 msgid "" "The offset has the form: ``± hh[:mm[:ss]]``. This indicates the value added " "the local time to arrive at UTC. If preceded by a '-', the timezone is east " @@ -1311,11 +1307,11 @@ msgstr "" "aucun décalage ne suit *dst*, l’heure d’été est supposée être en avance " "d’une heure sur l’heure standard." -#: ../Doc/library/time.rst:676 +#: ../Doc/library/time.rst:675 msgid "``start[/time], end[/time]``" msgstr "``start[/time], end[/time]``" -#: ../Doc/library/time.rst:657 +#: ../Doc/library/time.rst:656 msgid "" "Indicates when to change to and back from DST. The format of the start and " "end dates are one of the following:" @@ -1323,11 +1319,11 @@ msgstr "" "Indique quand passer à DST et en revenir. Le format des dates de début et de " "fin est l’un des suivants :" -#: ../Doc/library/time.rst:662 +#: ../Doc/library/time.rst:661 msgid ":samp:`J{n}`" msgstr ":samp:`J{n}`" -#: ../Doc/library/time.rst:661 +#: ../Doc/library/time.rst:660 msgid "" "The Julian day *n* (1 <= *n* <= 365). Leap days are not counted, so in all " "years February 28 is day 59 and March 1 is day 60." @@ -1336,11 +1332,11 @@ msgstr "" "comptabilisés. Par conséquent, le 28 février est le 59\\ :sup:`e` jour et le " "1\\ :sup:`er` Mars est le 60\\ :sup:`e` jour de toutes les années." -#: ../Doc/library/time.rst:666 +#: ../Doc/library/time.rst:665 msgid ":samp:`{n}`" msgstr ":samp:`{n}`" -#: ../Doc/library/time.rst:665 +#: ../Doc/library/time.rst:664 msgid "" "The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it " "is possible to refer to February 29." @@ -1348,11 +1344,11 @@ msgstr "" "Le jour Julien de base zéro (0 <= *n* <= 365). Les jours bissextiles sont " "comptés et il est possible de se référer au 29 février." -#: ../Doc/library/time.rst:673 +#: ../Doc/library/time.rst:672 msgid ":samp:`M{m}.{n}.{d}`" msgstr ":samp:`M{m}.{n}.{d}`" -#: ../Doc/library/time.rst:669 +#: ../Doc/library/time.rst:668 msgid "" "The *d*'th day (0 <= *d* <= 6) of week *n* of month *m* of the year (1 <= " "*n* <= 5, 1 <= *m* <= 12, where week 5 means \"the last *d* day in month *m*" @@ -1365,7 +1361,7 @@ msgstr "" "semaine). La semaine 1 est la première semaine au cours de laquelle le " "*jour* se produit. Le jour zéro est un dimanche." -#: ../Doc/library/time.rst:675 +#: ../Doc/library/time.rst:674 msgid "" "``time`` has the same format as ``offset`` except that no leading sign ('-' " "or '+') is allowed. The default, if time is not given, is 02:00:00." @@ -1374,7 +1370,7 @@ msgstr "" "(``'-'`` ou ``'+'``) n’est autorisé. La valeur par défaut, si l’heure n’est " "pas spécifiée, est 02:00:00." -#: ../Doc/library/time.rst:689 +#: ../Doc/library/time.rst:688 msgid "" "On many Unix systems (including \\*BSD, Linux, Solaris, and Darwin), it is " "more convenient to use the system's zoneinfo (:manpage:`tzfile(5)`) " @@ -1393,11 +1389,11 @@ msgstr "" "zoneinfo`. Par exemple, ``'US/Eastern'``, ``'Australia/Melbourne'``, " "``'Egypt'`` ou ``'Europe/Amsterdam'``. ::" -#: ../Doc/library/time.rst:710 +#: ../Doc/library/time.rst:709 msgid "Clock ID Constants" msgstr "Constantes d’identification d’horloge" -#: ../Doc/library/time.rst:712 +#: ../Doc/library/time.rst:711 msgid "" "These constants are used as parameters for :func:`clock_getres` and :func:" "`clock_gettime`." @@ -1405,7 +1401,7 @@ msgstr "" "Ces constantes sont utilisées comme paramètres pour :func:`clock_getres` et :" "func:`clock_gettime`." -#: ../Doc/library/time.rst:717 +#: ../Doc/library/time.rst:716 msgid "" "Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that " "the system is suspended." @@ -1413,7 +1409,7 @@ msgstr "" "Identique à :data:`CLOCK_MONOTONIC`, sauf qu'elle inclut également toute " "suspension du système." -#: ../Doc/library/time.rst:720 +#: ../Doc/library/time.rst:719 msgid "" "This allows applications to get a suspend-aware monotonic clock without " "having to deal with the complications of :data:`CLOCK_REALTIME`, which may " @@ -1425,11 +1421,11 @@ msgstr "" "`CLOCK_REALTIME`, qui peuvent présenter des discontinuités si l’heure est " "modifiée à l’aide de ``settimeofday()`` ou similaire." -#: ../Doc/library/time.rst:726 +#: ../Doc/library/time.rst:725 msgid ":ref:`Availability `: Linux 2.6.39 or later." msgstr ":ref:`Disponibilité ` : Linux 2.6.39 et ultérieures." -#: ../Doc/library/time.rst:732 +#: ../Doc/library/time.rst:731 msgid "" "The Solaris OS has a ``CLOCK_HIGHRES`` timer that attempts to use an optimal " "hardware source, and may give close to nanosecond resolution. " @@ -1440,11 +1436,11 @@ msgstr "" "résolution proche de la nanoseconde. ``CLOCK_HIGHRES`` est l’horloge haute " "résolution non ajustable." -#: ../Doc/library/time.rst:737 +#: ../Doc/library/time.rst:736 msgid ":ref:`Availability `: Solaris." msgstr ":ref:`Disponibilité ` : Solaris." -#: ../Doc/library/time.rst:743 +#: ../Doc/library/time.rst:742 msgid "" "Clock that cannot be set and represents monotonic time since some " "unspecified starting point." @@ -1452,7 +1448,7 @@ msgstr "" "Horloge qui ne peut pas être réglée et représente l’heure monotone depuis un " "point de départ non spécifié." -#: ../Doc/library/time.rst:753 +#: ../Doc/library/time.rst:752 msgid "" "Similar to :data:`CLOCK_MONOTONIC`, but provides access to a raw hardware-" "based time that is not subject to NTP adjustments." @@ -1460,7 +1456,7 @@ msgstr "" "Similaire à :data:`CLOCK_MONOTONIC`, mais donne accès à une heure matérielle " "brute qui n’est pas soumise aux ajustements NTP." -#: ../Doc/library/time.rst:757 +#: ../Doc/library/time.rst:756 msgid "" ":ref:`Availability `: Linux 2.6.28 and newer, macOS 10.12 and " "newer." @@ -1468,22 +1464,22 @@ msgstr "" ":ref:`Disponibilité `: Linux 2.6.28 et ultérieur, MacOS 10.12 " "et ultérieur." -#: ../Doc/library/time.rst:763 ../Doc/library/time.rst:772 +#: ../Doc/library/time.rst:762 ../Doc/library/time.rst:771 msgid "High-resolution per-process timer from the CPU." msgstr "Minuterie haute résolution par processus du CPU." -#: ../Doc/library/time.rst:775 +#: ../Doc/library/time.rst:774 msgid "" ":ref:`Availability `: FreeBSD, NetBSD 7 or later, OpenBSD." msgstr "" ":ref:`Disponibilité ` : FreeBSD, NetBSD 7 ou version " "ultérieure, OpenBSD." -#: ../Doc/library/time.rst:781 +#: ../Doc/library/time.rst:780 msgid "Thread-specific CPU-time clock." msgstr "Horloge de temps CPU spécifique au thread." -#: ../Doc/library/time.rst:790 +#: ../Doc/library/time.rst:789 msgid "" "Time whose absolute value is the time the system has been running and not " "suspended, providing accurate uptime measurement, both absolute and interval." @@ -1492,13 +1488,13 @@ msgstr "" "été exécuté et non suspendu, fournissant une mesure précise du temps de " "disponibilité, à la fois absolue et à intervalle." -#: ../Doc/library/time.rst:795 +#: ../Doc/library/time.rst:794 msgid ":ref:`Availability `: FreeBSD, OpenBSD 5.5 or later." msgstr "" ":ref:`Disponibilité ` : FreeBSD, OpenBSD 5.5 ou version " "ultérieure." -#: ../Doc/library/time.rst:801 +#: ../Doc/library/time.rst:800 msgid "" "Clock that increments monotonically, tracking the time since an arbitrary " "point, unaffected by frequency or time adjustments and not incremented while " @@ -1508,11 +1504,11 @@ msgstr "" "point arbitraire, qui n'est pas affectée par les ajustements de fréquence ou " "de date et qui n'augmente pas pendant que le système est endormi." -#: ../Doc/library/time.rst:806 +#: ../Doc/library/time.rst:805 msgid ":ref:`Availability `: macOS 10.12 and newer." msgstr ":ref:`Disponibilité ` : macOS 10.12 et ultérieur." -#: ../Doc/library/time.rst:810 +#: ../Doc/library/time.rst:809 msgid "" "The following constant is the only parameter that can be sent to :func:" "`clock_settime`." @@ -1520,7 +1516,7 @@ msgstr "" "La constante suivante est le seul paramètre pouvant être envoyé à :func:" "`clock_settime`." -#: ../Doc/library/time.rst:816 +#: ../Doc/library/time.rst:815 msgid "" "System-wide real-time clock. Setting this clock requires appropriate " "privileges." @@ -1528,11 +1524,11 @@ msgstr "" "Horloge en temps réel à l’échelle du système. Le réglage de cette horloge " "nécessite des privilèges appropriés." -#: ../Doc/library/time.rst:827 +#: ../Doc/library/time.rst:826 msgid "Timezone Constants" msgstr "Constantes de fuseau horaire" -#: ../Doc/library/time.rst:831 +#: ../Doc/library/time.rst:830 msgid "" "The offset of the local DST timezone, in seconds west of UTC, if one is " "defined. This is negative if the local DST timezone is east of UTC (as in " @@ -1544,11 +1540,11 @@ msgstr "" "de UTC (comme en Europe occidentale, y compris le Royaume-Uni). Utilisez " "ceci uniquement si ``daylight`` est différent de zéro. Voir note ci-dessous." -#: ../Doc/library/time.rst:837 +#: ../Doc/library/time.rst:836 msgid "Nonzero if a DST timezone is defined. See note below." msgstr "Non nul si un fuseau horaire DST est défini. Voir note ci-dessous." -#: ../Doc/library/time.rst:841 +#: ../Doc/library/time.rst:840 msgid "" "The offset of the local (non-DST) timezone, in seconds west of UTC (negative " "in most of Western Europe, positive in the US, zero in the UK). See note " @@ -1558,7 +1554,7 @@ msgstr "" "de l’UTC (négatif dans la plupart des pays d’Europe occidentale, positif aux " "États-Unis, nul au Royaume-Uni). Voir note ci-dessous." -#: ../Doc/library/time.rst:846 +#: ../Doc/library/time.rst:845 msgid "" "A tuple of two strings: the first is the name of the local non-DST timezone, " "the second is the name of the local DST timezone. If no DST timezone is " @@ -1569,7 +1565,7 @@ msgstr "" "fuseau horaire DST n’est défini, la deuxième chaîne ne doit pas être " "utilisée. Voir note ci-dessous." -#: ../Doc/library/time.rst:852 +#: ../Doc/library/time.rst:851 msgid "" "For the above Timezone constants (:data:`altzone`, :data:`daylight`, :data:" "`timezone`, and :data:`tzname`), the value is determined by the timezone " @@ -1586,19 +1582,19 @@ msgstr "" "attr:`tm_zone` résulte de :func:`localtime` pour obtenir des informations " "sur le fuseau horaire." -#: ../Doc/library/time.rst:862 +#: ../Doc/library/time.rst:861 msgid "Module :mod:`datetime`" msgstr "Module :mod:`datetime`" -#: ../Doc/library/time.rst:862 +#: ../Doc/library/time.rst:861 msgid "More object-oriented interface to dates and times." msgstr "Interface plus orientée objet vers les dates et les heures." -#: ../Doc/library/time.rst:866 +#: ../Doc/library/time.rst:865 msgid "Module :mod:`locale`" msgstr "Module :mod:`locale`" -#: ../Doc/library/time.rst:865 +#: ../Doc/library/time.rst:864 msgid "" "Internationalization services. The locale setting affects the " "interpretation of many format specifiers in :func:`strftime` and :func:" @@ -1608,11 +1604,11 @@ msgstr "" "l’interprétation de nombreux spécificateurs de format dans :func:`strftime` " "et :func:`strptime`." -#: ../Doc/library/time.rst:869 +#: ../Doc/library/time.rst:868 msgid "Module :mod:`calendar`" msgstr "Module :mod:`calendar`" -#: ../Doc/library/time.rst:869 +#: ../Doc/library/time.rst:868 msgid "" "General calendar-related functions. :func:`~calendar.timegm` is the " "inverse of :func:`gmtime` from this module." @@ -1620,11 +1616,11 @@ msgstr "" "Fonctions générales liées au calendrier. :func:`~calendar.timegm` est " "l’inverse de :func:`gmtime` à partir de ce module." -#: ../Doc/library/time.rst:873 +#: ../Doc/library/time.rst:872 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/time.rst:874 +#: ../Doc/library/time.rst:873 msgid "" "The use of ``%Z`` is now deprecated, but the ``%z`` escape that expands to " "the preferred hour/minute offset is not supported by all ANSI C libraries. " @@ -1643,6 +1639,9 @@ msgstr "" "est devenue obsolète et l'année à 4 chiffres a été recommandée pour la " "première fois par la :rfc:`1123` puis rendue obligatoire par la :rfc:`2822`." +#~ msgid "``'clock'``: :func:`time.clock`" +#~ msgstr "``'clock'``: :func:`time.clock`" + #~ msgid "" #~ "On Unix, return the current processor time as a floating point number " #~ "expressed in seconds. The precision, and in fact the very definition of " diff --git a/library/token.po b/library/token.po index a0f0115d..98068e11 100644 --- a/library/token.po +++ b/library/token.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-09-28 10:04+0200\n" "Last-Translator: Mickaël Bergem \n" "Language-Team: FRENCH \n" @@ -78,191 +78,191 @@ msgstr "" msgid "The token constants are:" msgstr "Les constantes associées aux jetons sont :" -#: ../Doc/library/token-list.inc:18 +#: Doc/library/token-list.inc:18 msgid "Token value for ``\"(\"``." msgstr "" -#: ../Doc/library/token-list.inc:22 +#: Doc/library/token-list.inc:22 msgid "Token value for ``\")\"``." msgstr "" -#: ../Doc/library/token-list.inc:26 +#: Doc/library/token-list.inc:26 msgid "Token value for ``\"[\"``." msgstr "" -#: ../Doc/library/token-list.inc:30 +#: Doc/library/token-list.inc:30 msgid "Token value for ``\"]\"``." msgstr "" -#: ../Doc/library/token-list.inc:34 +#: Doc/library/token-list.inc:34 msgid "Token value for ``\":\"``." msgstr "" -#: ../Doc/library/token-list.inc:38 +#: Doc/library/token-list.inc:38 msgid "Token value for ``\",\"``." msgstr "" -#: ../Doc/library/token-list.inc:42 +#: Doc/library/token-list.inc:42 msgid "Token value for ``\";\"``." msgstr "" -#: ../Doc/library/token-list.inc:46 +#: Doc/library/token-list.inc:46 msgid "Token value for ``\"+\"``." msgstr "" -#: ../Doc/library/token-list.inc:50 +#: Doc/library/token-list.inc:50 msgid "Token value for ``\"-\"``." msgstr "" -#: ../Doc/library/token-list.inc:54 +#: Doc/library/token-list.inc:54 msgid "Token value for ``\"*\"``." msgstr "" -#: ../Doc/library/token-list.inc:58 +#: Doc/library/token-list.inc:58 msgid "Token value for ``\"/\"``." msgstr "" -#: ../Doc/library/token-list.inc:62 +#: Doc/library/token-list.inc:62 msgid "Token value for ``\"|\"``." msgstr "" -#: ../Doc/library/token-list.inc:66 +#: Doc/library/token-list.inc:66 msgid "Token value for ``\"&\"``." msgstr "" -#: ../Doc/library/token-list.inc:70 +#: Doc/library/token-list.inc:70 msgid "Token value for ``\"<\"``." msgstr "" -#: ../Doc/library/token-list.inc:74 +#: Doc/library/token-list.inc:74 msgid "Token value for ``\">\"``." msgstr "" -#: ../Doc/library/token-list.inc:78 +#: Doc/library/token-list.inc:78 msgid "Token value for ``\"=\"``." msgstr "" -#: ../Doc/library/token-list.inc:82 +#: Doc/library/token-list.inc:82 msgid "Token value for ``\".\"``." msgstr "" -#: ../Doc/library/token-list.inc:86 +#: Doc/library/token-list.inc:86 msgid "Token value for ``\"%\"``." msgstr "" -#: ../Doc/library/token-list.inc:90 +#: Doc/library/token-list.inc:90 msgid "Token value for ``\"{\"``." msgstr "" -#: ../Doc/library/token-list.inc:94 +#: Doc/library/token-list.inc:94 msgid "Token value for ``\"}\"``." msgstr "" -#: ../Doc/library/token-list.inc:98 +#: Doc/library/token-list.inc:98 msgid "Token value for ``\"==\"``." msgstr "" -#: ../Doc/library/token-list.inc:102 +#: Doc/library/token-list.inc:102 msgid "Token value for ``\"!=\"``." msgstr "" -#: ../Doc/library/token-list.inc:106 +#: Doc/library/token-list.inc:106 msgid "Token value for ``\"<=\"``." msgstr "" -#: ../Doc/library/token-list.inc:110 +#: Doc/library/token-list.inc:110 msgid "Token value for ``\">=\"``." msgstr "" -#: ../Doc/library/token-list.inc:114 +#: Doc/library/token-list.inc:114 msgid "Token value for ``\"~\"``." msgstr "" -#: ../Doc/library/token-list.inc:118 +#: Doc/library/token-list.inc:118 msgid "Token value for ``\"^\"``." msgstr "" -#: ../Doc/library/token-list.inc:122 +#: Doc/library/token-list.inc:122 msgid "Token value for ``\"<<\"``." msgstr "" -#: ../Doc/library/token-list.inc:126 +#: Doc/library/token-list.inc:126 msgid "Token value for ``\">>\"``." msgstr "" -#: ../Doc/library/token-list.inc:130 +#: Doc/library/token-list.inc:130 msgid "Token value for ``\"**\"``." msgstr "" -#: ../Doc/library/token-list.inc:134 +#: Doc/library/token-list.inc:134 msgid "Token value for ``\"+=\"``." msgstr "" -#: ../Doc/library/token-list.inc:138 +#: Doc/library/token-list.inc:138 msgid "Token value for ``\"-=\"``." msgstr "" -#: ../Doc/library/token-list.inc:142 +#: Doc/library/token-list.inc:142 msgid "Token value for ``\"*=\"``." msgstr "" -#: ../Doc/library/token-list.inc:146 +#: Doc/library/token-list.inc:146 msgid "Token value for ``\"/=\"``." msgstr "" -#: ../Doc/library/token-list.inc:150 +#: Doc/library/token-list.inc:150 msgid "Token value for ``\"%=\"``." msgstr "" -#: ../Doc/library/token-list.inc:154 +#: Doc/library/token-list.inc:154 msgid "Token value for ``\"&=\"``." msgstr "" -#: ../Doc/library/token-list.inc:158 +#: Doc/library/token-list.inc:158 msgid "Token value for ``\"|=\"``." msgstr "" -#: ../Doc/library/token-list.inc:162 +#: Doc/library/token-list.inc:162 msgid "Token value for ``\"^=\"``." msgstr "" -#: ../Doc/library/token-list.inc:166 +#: Doc/library/token-list.inc:166 msgid "Token value for ``\"<<=\"``." msgstr "" -#: ../Doc/library/token-list.inc:170 +#: Doc/library/token-list.inc:170 msgid "Token value for ``\">>=\"``." msgstr "" -#: ../Doc/library/token-list.inc:174 +#: Doc/library/token-list.inc:174 msgid "Token value for ``\"**=\"``." msgstr "" -#: ../Doc/library/token-list.inc:178 +#: Doc/library/token-list.inc:178 msgid "Token value for ``\"//\"``." msgstr "" -#: ../Doc/library/token-list.inc:182 +#: Doc/library/token-list.inc:182 msgid "Token value for ``\"//=\"``." msgstr "" -#: ../Doc/library/token-list.inc:186 +#: Doc/library/token-list.inc:186 msgid "Token value for ``\"@\"``." msgstr "" -#: ../Doc/library/token-list.inc:190 +#: Doc/library/token-list.inc:190 msgid "Token value for ``\"@=\"``." msgstr "" -#: ../Doc/library/token-list.inc:194 +#: Doc/library/token-list.inc:194 msgid "Token value for ``\"->\"``." msgstr "" -#: ../Doc/library/token-list.inc:198 +#: Doc/library/token-list.inc:198 msgid "Token value for ``\"...\"``." msgstr "" -#: ../Doc/library/token-list.inc:202 +#: Doc/library/token-list.inc:202 msgid "Token value for ``\":=\"``." msgstr "" diff --git a/library/tokenize.po b/library/tokenize.po index 7ba23c80..3f302f02 100644 --- a/library/tokenize.po +++ b/library/tokenize.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-09-28 10:08+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -340,3 +340,13 @@ msgid "" msgstr "" "Les noms exacts des types de jeton peuvent être affichés en utilisant " "l’option : :option:`-e`" + +#: ../Doc/library/tokenize.rst:282 +msgid "" +"Example of tokenizing a file programmatically, reading unicode strings " +"instead of bytes with :func:`generate_tokens`::" +msgstr "" + +#: ../Doc/library/tokenize.rst:292 +msgid "Or reading bytes directly with :func:`.tokenize`::" +msgstr "" diff --git a/library/turtle.po b/library/turtle.po index 092c411d..7e363ec7 100644 --- a/library/turtle.po +++ b/library/turtle.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-01-14 15:47+0100\n" "Last-Translator: Pablo Abril \n" "Language-Team: FRENCH \n" @@ -256,7 +256,7 @@ msgstr ":func:`setheading` | :func:`seth`" msgid ":func:`home`" msgstr ":func:`home`" -#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2451 +#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2456 msgid ":func:`circle`" msgstr ":func:`circle`" @@ -264,7 +264,7 @@ msgstr ":func:`circle`" msgid ":func:`dot`" msgstr ":func:`dot`" -#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2429 +#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2434 msgid ":func:`stamp`" msgstr ":func:`stamp`" @@ -384,7 +384,7 @@ msgstr ":func:`begin_fill`" msgid ":func:`end_fill`" msgstr ":func:`end_fill`" -#: ../Doc/library/turtle.rst:155 ../Doc/library/turtle.rst:1064 +#: ../Doc/library/turtle.rst:155 ../Doc/library/turtle.rst:1069 msgid "More drawing control" msgstr "" @@ -400,11 +400,11 @@ msgstr ":func:`clear`" msgid ":func:`write`" msgstr ":func:`write`" -#: ../Doc/library/turtle.rst:172 ../Doc/library/turtle.rst:1110 +#: ../Doc/library/turtle.rst:172 ../Doc/library/turtle.rst:1115 msgid "Turtle state" msgstr "" -#: ../Doc/library/turtle.rst:161 ../Doc/library/turtle.rst:1113 +#: ../Doc/library/turtle.rst:161 ../Doc/library/turtle.rst:1118 msgid "Visibility" msgstr "" @@ -420,7 +420,7 @@ msgstr ":func:`hideturtle` | :func:`ht`" msgid ":func:`isvisible`" msgstr ":func:`isvisible`" -#: ../Doc/library/turtle.rst:172 ../Doc/library/turtle.rst:1152 +#: ../Doc/library/turtle.rst:172 ../Doc/library/turtle.rst:1157 msgid "Appearance" msgstr "" @@ -460,11 +460,11 @@ msgstr ":func:`shapetransform`" msgid ":func:`get_shapepoly`" msgstr ":func:`get_shapepoly`" -#: ../Doc/library/turtle.rst:177 ../Doc/library/turtle.rst:1357 +#: ../Doc/library/turtle.rst:177 ../Doc/library/turtle.rst:1362 msgid "Using events" msgstr "" -#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2423 +#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2428 msgid ":func:`onclick`" msgstr ":func:`onclick`" @@ -472,11 +472,11 @@ msgstr ":func:`onclick`" msgid ":func:`onrelease`" msgstr ":func:`onrelease`" -#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2406 +#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2411 msgid ":func:`ondrag`" msgstr ":func:`ondrag`" -#: ../Doc/library/turtle.rst:188 ../Doc/library/turtle.rst:1430 +#: ../Doc/library/turtle.rst:188 ../Doc/library/turtle.rst:1435 msgid "Special Turtle methods" msgstr "" @@ -492,7 +492,7 @@ msgstr ":func:`end_poly`" msgid ":func:`get_poly`" msgstr ":func:`get_poly`" -#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2442 +#: ../Doc/library/turtle.rst:0 ../Doc/library/turtle.rst:2447 msgid ":func:`clone`" msgstr ":func:`clone`" @@ -516,7 +516,7 @@ msgstr ":func:`undobufferentries`" msgid "Methods of TurtleScreen/Screen" msgstr "" -#: ../Doc/library/turtle.rst:199 ../Doc/library/turtle.rst:1584 +#: ../Doc/library/turtle.rst:199 ../Doc/library/turtle.rst:1589 msgid "Window control" msgstr "" @@ -544,7 +544,7 @@ msgstr ":func:`screensize`" msgid ":func:`setworldcoordinates`" msgstr ":func:`setworldcoordinates`" -#: ../Doc/library/turtle.rst:204 ../Doc/library/turtle.rst:1701 +#: ../Doc/library/turtle.rst:204 ../Doc/library/turtle.rst:1706 msgid "Animation control" msgstr "" @@ -560,7 +560,7 @@ msgstr ":func:`tracer`" msgid ":func:`update`" msgstr ":func:`update`" -#: ../Doc/library/turtle.rst:212 ../Doc/library/turtle.rst:1754 +#: ../Doc/library/turtle.rst:212 ../Doc/library/turtle.rst:1759 msgid "Using screen events" msgstr "" @@ -588,7 +588,7 @@ msgstr ":func:`ontimer`" msgid ":func:`mainloop` | :func:`done`" msgstr ":func:`mainloop` | :func:`done`" -#: ../Doc/library/turtle.rst:222 ../Doc/library/turtle.rst:1899 +#: ../Doc/library/turtle.rst:222 ../Doc/library/turtle.rst:1904 msgid "Settings and special methods" msgstr "" @@ -624,7 +624,7 @@ msgstr ":func:`window_height`" msgid ":func:`window_width`" msgstr ":func:`window_width`" -#: ../Doc/library/turtle.rst:226 ../Doc/library/turtle.rst:1863 +#: ../Doc/library/turtle.rst:226 ../Doc/library/turtle.rst:1868 msgid "Input methods" msgstr "" @@ -683,8 +683,8 @@ msgid "" msgstr "" #: ../Doc/library/turtle.rst:269 ../Doc/library/turtle.rst:473 -#: ../Doc/library/turtle.rst:748 ../Doc/library/turtle.rst:1251 -#: ../Doc/library/turtle.rst:1270 +#: ../Doc/library/turtle.rst:748 ../Doc/library/turtle.rst:1256 +#: ../Doc/library/turtle.rst:1275 msgid "a number" msgstr "" @@ -1218,36 +1218,44 @@ msgstr "" msgid "Fill the shape drawn after the last call to :func:`begin_fill`." msgstr "" -#: ../Doc/library/turtle.rst:1068 +#: ../Doc/library/turtle.rst:1054 +msgid "" +"Whether or not overlap regions for self-intersecting polygons or multiple " +"shapes are filled depends on the operating system graphics, type of overlap, " +"and number of overlaps. For example, the Turtle star above may be either " +"all yellow or have some white regions." +msgstr "" + +#: ../Doc/library/turtle.rst:1073 msgid "" "Delete the turtle's drawings from the screen, re-center the turtle and set " "variables to the default values." msgstr "" -#: ../Doc/library/turtle.rst:1089 +#: ../Doc/library/turtle.rst:1094 msgid "" "Delete the turtle's drawings from the screen. Do not move turtle. State " "and position of the turtle as well as drawings of other turtles are not " "affected." msgstr "" -#: ../Doc/library/turtle.rst:1095 +#: ../Doc/library/turtle.rst:1100 msgid "object to be written to the TurtleScreen" msgstr "" -#: ../Doc/library/turtle.rst:1096 +#: ../Doc/library/turtle.rst:1101 msgid "True/False" msgstr "" -#: ../Doc/library/turtle.rst:1097 +#: ../Doc/library/turtle.rst:1102 msgid "one of the strings \"left\", \"center\" or right\"" msgstr "" -#: ../Doc/library/turtle.rst:1098 +#: ../Doc/library/turtle.rst:1103 msgid "a triple (fontname, fontsize, fonttype)" msgstr "" -#: ../Doc/library/turtle.rst:1100 +#: ../Doc/library/turtle.rst:1105 msgid "" "Write text - the string representation of *arg* - at the current turtle " "position according to *align* (\"left\", \"center\" or right\") and with the " @@ -1255,26 +1263,26 @@ msgid "" "of the text. By default, *move* is ``False``." msgstr "" -#: ../Doc/library/turtle.rst:1118 +#: ../Doc/library/turtle.rst:1123 msgid "" "Make the turtle invisible. It's a good idea to do this while you're in the " "middle of doing some complex drawing, because hiding the turtle speeds up " "the drawing observably." msgstr "" -#: ../Doc/library/turtle.rst:1131 +#: ../Doc/library/turtle.rst:1136 msgid "Make the turtle visible." msgstr "" -#: ../Doc/library/turtle.rst:1141 +#: ../Doc/library/turtle.rst:1146 msgid "Return ``True`` if the Turtle is shown, ``False`` if it's hidden." msgstr "" -#: ../Doc/library/turtle.rst:1156 +#: ../Doc/library/turtle.rst:1161 msgid "a string which is a valid shapename" msgstr "" -#: ../Doc/library/turtle.rst:1158 +#: ../Doc/library/turtle.rst:1163 msgid "" "Set turtle shape to shape with given *name* or, if name is not given, return " "name of current shape. Shape with *name* must exist in the TurtleScreen's " @@ -1283,44 +1291,44 @@ msgid "" "about how to deal with shapes see Screen method :func:`register_shape`." msgstr "" -#: ../Doc/library/turtle.rst:1176 +#: ../Doc/library/turtle.rst:1181 msgid "one of the strings \"auto\", \"user\", \"noresize\"" msgstr "" -#: ../Doc/library/turtle.rst:1178 +#: ../Doc/library/turtle.rst:1183 msgid "" "Set resizemode to one of the values: \"auto\", \"user\", \"noresize\". If " "*rmode* is not given, return current resizemode. Different resizemodes have " "the following effects:" msgstr "" -#: ../Doc/library/turtle.rst:1182 +#: ../Doc/library/turtle.rst:1187 msgid "" "\"auto\": adapts the appearance of the turtle corresponding to the value of " "pensize." msgstr "" -#: ../Doc/library/turtle.rst:1183 +#: ../Doc/library/turtle.rst:1188 msgid "" "\"user\": adapts the appearance of the turtle according to the values of " "stretchfactor and outlinewidth (outline), which are set by :func:`shapesize`." msgstr "" -#: ../Doc/library/turtle.rst:1186 +#: ../Doc/library/turtle.rst:1191 msgid "\"noresize\": no adaption of the turtle's appearance takes place." msgstr "" -#: ../Doc/library/turtle.rst:1188 +#: ../Doc/library/turtle.rst:1193 msgid "" "resizemode(\"user\") is called by :func:`shapesize` when used with arguments." msgstr "" -#: ../Doc/library/turtle.rst:1203 ../Doc/library/turtle.rst:1204 -#: ../Doc/library/turtle.rst:1205 +#: ../Doc/library/turtle.rst:1208 ../Doc/library/turtle.rst:1209 +#: ../Doc/library/turtle.rst:1210 msgid "positive number" msgstr "" -#: ../Doc/library/turtle.rst:1207 +#: ../Doc/library/turtle.rst:1212 msgid "" "Return or set the pen's attributes x/y-stretchfactors and/or outline. Set " "resizemode to \"user\". If and only if resizemode is set to \"user\", the " @@ -1330,12 +1338,12 @@ msgid "" "determines the width of the shapes's outline." msgstr "" -#: ../Doc/library/turtle.rst:1230 ../Doc/library/turtle.rst:1882 -#: ../Doc/library/turtle.rst:1883 ../Doc/library/turtle.rst:1884 +#: ../Doc/library/turtle.rst:1235 ../Doc/library/turtle.rst:1887 +#: ../Doc/library/turtle.rst:1888 ../Doc/library/turtle.rst:1889 msgid "number (optional)" msgstr "" -#: ../Doc/library/turtle.rst:1232 +#: ../Doc/library/turtle.rst:1237 msgid "" "Set or return the current shearfactor. Shear the turtleshape according to " "the given shearfactor shear, which is the tangent of the shear angle. Do " @@ -1344,26 +1352,26 @@ msgid "" "by which lines parallel to the heading of the turtle are sheared." msgstr "" -#: ../Doc/library/turtle.rst:1253 +#: ../Doc/library/turtle.rst:1258 msgid "" "Rotate the turtleshape by *angle* from its current tilt-angle, but do *not* " "change the turtle's heading (direction of movement)." msgstr "" -#: ../Doc/library/turtle.rst:1272 +#: ../Doc/library/turtle.rst:1277 msgid "" "Rotate the turtleshape to point in the direction specified by *angle*, " "regardless of its current tilt-angle. *Do not* change the turtle's heading " "(direction of movement)." msgstr "" -#: ../Doc/library/turtle.rst:1292 ../Doc/library/turtle.rst:1315 -#: ../Doc/library/turtle.rst:1316 ../Doc/library/turtle.rst:1317 -#: ../Doc/library/turtle.rst:1318 +#: ../Doc/library/turtle.rst:1297 ../Doc/library/turtle.rst:1320 +#: ../Doc/library/turtle.rst:1321 ../Doc/library/turtle.rst:1322 +#: ../Doc/library/turtle.rst:1323 msgid "a number (optional)" msgstr "" -#: ../Doc/library/turtle.rst:1294 +#: ../Doc/library/turtle.rst:1299 msgid "" "Set or return the current tilt-angle. If angle is given, rotate the " "turtleshape to point in the direction specified by angle, regardless of its " @@ -1373,11 +1381,11 @@ msgid "" "turtle (its direction of movement)." msgstr "" -#: ../Doc/library/turtle.rst:1320 +#: ../Doc/library/turtle.rst:1325 msgid "Set or return the current transformation matrix of the turtle shape." msgstr "" -#: ../Doc/library/turtle.rst:1322 +#: ../Doc/library/turtle.rst:1327 msgid "" "If none of the matrix elements are given, return the transformation matrix " "as a tuple of 4 elements. Otherwise set the given elements and transform the " @@ -1387,101 +1395,101 @@ msgid "" "tiltangle according to the given matrix." msgstr "" -#: ../Doc/library/turtle.rst:1344 +#: ../Doc/library/turtle.rst:1349 msgid "" "Return the current shape polygon as tuple of coordinate pairs. This can be " "used to define a new shape or components of a compound shape." msgstr "" -#: ../Doc/library/turtle.rst:1361 ../Doc/library/turtle.rst:1383 -#: ../Doc/library/turtle.rst:1408 ../Doc/library/turtle.rst:1806 +#: ../Doc/library/turtle.rst:1366 ../Doc/library/turtle.rst:1388 +#: ../Doc/library/turtle.rst:1413 ../Doc/library/turtle.rst:1811 msgid "" "a function with two arguments which will be called with the coordinates of " "the clicked point on the canvas" msgstr "" -#: ../Doc/library/turtle.rst:1363 ../Doc/library/turtle.rst:1385 -#: ../Doc/library/turtle.rst:1410 ../Doc/library/turtle.rst:1808 +#: ../Doc/library/turtle.rst:1368 ../Doc/library/turtle.rst:1390 +#: ../Doc/library/turtle.rst:1415 ../Doc/library/turtle.rst:1813 msgid "number of the mouse-button, defaults to 1 (left mouse button)" msgstr "" -#: ../Doc/library/turtle.rst:1364 ../Doc/library/turtle.rst:1386 -#: ../Doc/library/turtle.rst:1411 ../Doc/library/turtle.rst:1809 +#: ../Doc/library/turtle.rst:1369 ../Doc/library/turtle.rst:1391 +#: ../Doc/library/turtle.rst:1416 ../Doc/library/turtle.rst:1814 msgid "" "``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise " "it will replace a former binding" msgstr "" -#: ../Doc/library/turtle.rst:1367 +#: ../Doc/library/turtle.rst:1372 msgid "" "Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``, " "existing bindings are removed. Example for the anonymous turtle, i.e. the " "procedural way:" msgstr "" -#: ../Doc/library/turtle.rst:1389 +#: ../Doc/library/turtle.rst:1394 msgid "" "Bind *fun* to mouse-button-release events on this turtle. If *fun* is " "``None``, existing bindings are removed." msgstr "" -#: ../Doc/library/turtle.rst:1414 +#: ../Doc/library/turtle.rst:1419 msgid "" "Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``, " "existing bindings are removed." msgstr "" -#: ../Doc/library/turtle.rst:1417 +#: ../Doc/library/turtle.rst:1422 msgid "" "Remark: Every sequence of mouse-move-events on a turtle is preceded by a " "mouse-click event on that turtle." msgstr "" -#: ../Doc/library/turtle.rst:1425 +#: ../Doc/library/turtle.rst:1430 msgid "" "Subsequently, clicking and dragging the Turtle will move it across the " "screen thereby producing handdrawings (if pen is down)." msgstr "" -#: ../Doc/library/turtle.rst:1434 +#: ../Doc/library/turtle.rst:1439 msgid "" "Start recording the vertices of a polygon. Current turtle position is first " "vertex of polygon." msgstr "" -#: ../Doc/library/turtle.rst:1440 +#: ../Doc/library/turtle.rst:1445 msgid "" "Stop recording the vertices of a polygon. Current turtle position is last " "vertex of polygon. This will be connected with the first vertex." msgstr "" -#: ../Doc/library/turtle.rst:1446 +#: ../Doc/library/turtle.rst:1451 msgid "Return the last recorded polygon." msgstr "" -#: ../Doc/library/turtle.rst:1465 +#: ../Doc/library/turtle.rst:1470 msgid "" "Create and return a clone of the turtle with same position, heading and " "turtle properties." msgstr "" -#: ../Doc/library/turtle.rst:1478 +#: ../Doc/library/turtle.rst:1483 msgid "" "Return the Turtle object itself. Only reasonable use: as a function to " "return the \"anonymous turtle\":" msgstr "" -#: ../Doc/library/turtle.rst:1492 +#: ../Doc/library/turtle.rst:1497 msgid "" "Return the :class:`TurtleScreen` object the turtle is drawing on. " "TurtleScreen methods can then be called for that object." msgstr "" -#: ../Doc/library/turtle.rst:1506 +#: ../Doc/library/turtle.rst:1511 msgid "an integer or ``None``" msgstr "" -#: ../Doc/library/turtle.rst:1508 +#: ../Doc/library/turtle.rst:1513 msgid "" "Set or disable undobuffer. If *size* is an integer an empty undobuffer of " "given size is installed. *size* gives the maximum number of turtle actions " @@ -1489,71 +1497,71 @@ msgid "" "``None``, the undobuffer is disabled." msgstr "" -#: ../Doc/library/turtle.rst:1521 +#: ../Doc/library/turtle.rst:1526 msgid "Return number of entries in the undobuffer." msgstr "" -#: ../Doc/library/turtle.rst:1534 +#: ../Doc/library/turtle.rst:1539 msgid "Compound shapes" msgstr "" -#: ../Doc/library/turtle.rst:1536 +#: ../Doc/library/turtle.rst:1541 msgid "" "To use compound turtle shapes, which consist of several polygons of " "different color, you must use the helper class :class:`Shape` explicitly as " "described below:" msgstr "" -#: ../Doc/library/turtle.rst:1540 +#: ../Doc/library/turtle.rst:1545 msgid "Create an empty Shape object of type \"compound\"." msgstr "" -#: ../Doc/library/turtle.rst:1541 +#: ../Doc/library/turtle.rst:1546 msgid "" "Add as many components to this object as desired, using the :meth:" "`addcomponent` method." msgstr "" -#: ../Doc/library/turtle.rst:1544 +#: ../Doc/library/turtle.rst:1549 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/library/turtle.rst:1555 +#: ../Doc/library/turtle.rst:1560 msgid "Now add the Shape to the Screen's shapelist and use it:" msgstr "" -#: ../Doc/library/turtle.rst:1566 +#: ../Doc/library/turtle.rst:1571 msgid "" "The :class:`Shape` class is used internally by the :func:`register_shape` " "method in different ways. The application programmer has to deal with the " "Shape class *only* when using compound shapes like shown above!" msgstr "" -#: ../Doc/library/turtle.rst:1572 +#: ../Doc/library/turtle.rst:1577 msgid "Methods of TurtleScreen/Screen and corresponding functions" msgstr "" -#: ../Doc/library/turtle.rst:1574 +#: ../Doc/library/turtle.rst:1579 msgid "" "Most of the examples in this section refer to a TurtleScreen instance called " "``screen``." msgstr "" -#: ../Doc/library/turtle.rst:1588 +#: ../Doc/library/turtle.rst:1593 msgid "" "a color string or three numbers in the range 0..colormode or a 3-tuple of " "such numbers" msgstr "" -#: ../Doc/library/turtle.rst:1592 +#: ../Doc/library/turtle.rst:1597 msgid "Set or return background color of the TurtleScreen." msgstr "" -#: ../Doc/library/turtle.rst:1607 +#: ../Doc/library/turtle.rst:1612 msgid "a string, name of a gif-file or ``\"nopic\"``, or ``None``" msgstr "" -#: ../Doc/library/turtle.rst:1609 +#: ../Doc/library/turtle.rst:1614 msgid "" "Set background image or return name of current backgroundimage. If " "*picname* is a filename, set the corresponding image as background. If " @@ -1561,44 +1569,44 @@ msgid "" "*picname* is ``None``, return the filename of the current backgroundimage. ::" msgstr "" -#: ../Doc/library/turtle.rst:1624 +#: ../Doc/library/turtle.rst:1629 msgid "" "Delete all drawings and all turtles from the TurtleScreen. Reset the now " "empty TurtleScreen to its initial state: white background, no background " "image, no event bindings and tracing on." msgstr "" -#: ../Doc/library/turtle.rst:1629 +#: ../Doc/library/turtle.rst:1634 msgid "" "This TurtleScreen method is available as a global function only under the " "name ``clearscreen``. The global function ``clear`` is a different one " "derived from the Turtle method ``clear``." msgstr "" -#: ../Doc/library/turtle.rst:1637 +#: ../Doc/library/turtle.rst:1642 msgid "Reset all Turtles on the Screen to their initial state." msgstr "" -#: ../Doc/library/turtle.rst:1640 +#: ../Doc/library/turtle.rst:1645 msgid "" "This TurtleScreen method is available as a global function only under the " "name ``resetscreen``. The global function ``reset`` is another one derived " "from the Turtle method ``reset``." msgstr "" -#: ../Doc/library/turtle.rst:1647 +#: ../Doc/library/turtle.rst:1652 msgid "positive integer, new width of canvas in pixels" msgstr "" -#: ../Doc/library/turtle.rst:1648 +#: ../Doc/library/turtle.rst:1653 msgid "positive integer, new height of canvas in pixels" msgstr "" -#: ../Doc/library/turtle.rst:1649 +#: ../Doc/library/turtle.rst:1654 msgid "colorstring or color-tuple, new background color" msgstr "" -#: ../Doc/library/turtle.rst:1651 +#: ../Doc/library/turtle.rst:1656 msgid "" "If no arguments are given, return current (canvaswidth, canvasheight). Else " "resize the canvas the turtles are drawing on. Do not alter the drawing " @@ -1607,59 +1615,59 @@ msgid "" "outside the canvas before." msgstr "" -#: ../Doc/library/turtle.rst:1663 +#: ../Doc/library/turtle.rst:1668 msgid "e.g. to search for an erroneously escaped turtle ;-)" msgstr "" -#: ../Doc/library/turtle.rst:1668 +#: ../Doc/library/turtle.rst:1673 msgid "a number, x-coordinate of lower left corner of canvas" msgstr "" -#: ../Doc/library/turtle.rst:1669 +#: ../Doc/library/turtle.rst:1674 msgid "a number, y-coordinate of lower left corner of canvas" msgstr "" -#: ../Doc/library/turtle.rst:1670 +#: ../Doc/library/turtle.rst:1675 msgid "a number, x-coordinate of upper right corner of canvas" msgstr "" -#: ../Doc/library/turtle.rst:1671 +#: ../Doc/library/turtle.rst:1676 msgid "a number, y-coordinate of upper right corner of canvas" msgstr "" -#: ../Doc/library/turtle.rst:1673 +#: ../Doc/library/turtle.rst:1678 msgid "" "Set up user-defined coordinate system and switch to mode \"world\" if " "necessary. This performs a ``screen.reset()``. If mode \"world\" is " "already active, all drawings are redrawn according to the new coordinates." msgstr "" -#: ../Doc/library/turtle.rst:1677 +#: ../Doc/library/turtle.rst:1682 msgid "" "**ATTENTION**: in user-defined coordinate systems angles may appear " "distorted." msgstr "" -#: ../Doc/library/turtle.rst:1705 +#: ../Doc/library/turtle.rst:1710 msgid "positive integer" msgstr "" -#: ../Doc/library/turtle.rst:1707 +#: ../Doc/library/turtle.rst:1712 msgid "" "Set or return the drawing *delay* in milliseconds. (This is approximately " "the time interval between two consecutive canvas updates.) The longer the " "drawing delay, the slower the animation." msgstr "" -#: ../Doc/library/turtle.rst:1711 +#: ../Doc/library/turtle.rst:1716 msgid "Optional argument:" msgstr "" -#: ../Doc/library/turtle.rst:1725 ../Doc/library/turtle.rst:1726 +#: ../Doc/library/turtle.rst:1730 ../Doc/library/turtle.rst:1731 msgid "nonnegative integer" msgstr "" -#: ../Doc/library/turtle.rst:1728 +#: ../Doc/library/turtle.rst:1733 msgid "" "Turn turtle animation on/off and set delay for update drawings. If *n* is " "given, only each n-th regular screen update is really performed. (Can be " @@ -1668,75 +1676,75 @@ msgid "" "delay value (see :func:`delay`)." msgstr "" -#: ../Doc/library/turtle.rst:1748 +#: ../Doc/library/turtle.rst:1753 msgid "Perform a TurtleScreen update. To be used when tracer is turned off." msgstr "" -#: ../Doc/library/turtle.rst:1750 +#: ../Doc/library/turtle.rst:1755 msgid "See also the RawTurtle/Turtle method :func:`speed`." msgstr "" -#: ../Doc/library/turtle.rst:1758 +#: ../Doc/library/turtle.rst:1763 msgid "" "Set focus on TurtleScreen (in order to collect key-events). Dummy arguments " "are provided in order to be able to pass :func:`listen` to the onclick " "method." msgstr "" -#: ../Doc/library/turtle.rst:1765 ../Doc/library/turtle.rst:1785 +#: ../Doc/library/turtle.rst:1770 ../Doc/library/turtle.rst:1790 msgid "a function with no arguments or ``None``" msgstr "" -#: ../Doc/library/turtle.rst:1766 ../Doc/library/turtle.rst:1786 +#: ../Doc/library/turtle.rst:1771 ../Doc/library/turtle.rst:1791 msgid "a string: key (e.g. \"a\") or key-symbol (e.g. \"space\")" msgstr "" -#: ../Doc/library/turtle.rst:1768 +#: ../Doc/library/turtle.rst:1773 msgid "" "Bind *fun* to key-release event of key. If *fun* is ``None``, event " "bindings are removed. Remark: in order to be able to register key-events, " "TurtleScreen must have the focus. (See method :func:`listen`.)" msgstr "" -#: ../Doc/library/turtle.rst:1788 +#: ../Doc/library/turtle.rst:1793 msgid "" "Bind *fun* to key-press event of key if key is given, or to any key-press-" "event if no key is given. Remark: in order to be able to register key-" "events, TurtleScreen must have focus. (See method :func:`listen`.)" msgstr "" -#: ../Doc/library/turtle.rst:1812 +#: ../Doc/library/turtle.rst:1817 msgid "" "Bind *fun* to mouse-click events on this screen. If *fun* is ``None``, " "existing bindings are removed." msgstr "" -#: ../Doc/library/turtle.rst:1815 +#: ../Doc/library/turtle.rst:1820 msgid "" "Example for a TurtleScreen instance named ``screen`` and a Turtle instance " "named turtle:" msgstr "" -#: ../Doc/library/turtle.rst:1826 +#: ../Doc/library/turtle.rst:1831 msgid "" "This TurtleScreen method is available as a global function only under the " "name ``onscreenclick``. The global function ``onclick`` is another one " "derived from the Turtle method ``onclick``." msgstr "" -#: ../Doc/library/turtle.rst:1833 +#: ../Doc/library/turtle.rst:1838 msgid "a function with no arguments" msgstr "" -#: ../Doc/library/turtle.rst:1834 +#: ../Doc/library/turtle.rst:1839 msgid "a number >= 0" msgstr "" -#: ../Doc/library/turtle.rst:1836 +#: ../Doc/library/turtle.rst:1841 msgid "Install a timer that calls *fun* after *t* milliseconds." msgstr "" -#: ../Doc/library/turtle.rst:1854 +#: ../Doc/library/turtle.rst:1859 msgid "" "Starts event loop - calling Tkinter's mainloop function. Must be the last " "statement in a turtle graphics program. Must *not* be used if a script is " @@ -1744,12 +1752,12 @@ msgid "" "turtle graphics. ::" msgstr "" -#: ../Doc/library/turtle.rst:1867 ../Doc/library/turtle.rst:1868 -#: ../Doc/library/turtle.rst:1880 ../Doc/library/turtle.rst:1881 +#: ../Doc/library/turtle.rst:1872 ../Doc/library/turtle.rst:1873 +#: ../Doc/library/turtle.rst:1885 ../Doc/library/turtle.rst:1886 msgid "string" msgstr "*string*" -#: ../Doc/library/turtle.rst:1870 +#: ../Doc/library/turtle.rst:1875 msgid "" "Pop up a dialog window for input of a string. Parameter title is the title " "of the dialog window, prompt is a text mostly describing what information to " @@ -1757,7 +1765,7 @@ msgid "" "``None``. ::" msgstr "" -#: ../Doc/library/turtle.rst:1886 +#: ../Doc/library/turtle.rst:1891 msgid "" "Pop up a dialog window for input of a number. title is the title of the " "dialog window, prompt is a text mostly describing what numerical information " @@ -1768,17 +1776,17 @@ msgid "" "return ``None``. ::" msgstr "" -#: ../Doc/library/turtle.rst:1903 +#: ../Doc/library/turtle.rst:1908 msgid "one of the strings \"standard\", \"logo\" or \"world\"" msgstr "" -#: ../Doc/library/turtle.rst:1905 +#: ../Doc/library/turtle.rst:1910 msgid "" "Set turtle mode (\"standard\", \"logo\" or \"world\") and perform reset. If " "mode is not given, current mode is returned." msgstr "" -#: ../Doc/library/turtle.rst:1908 +#: ../Doc/library/turtle.rst:1913 msgid "" "Mode \"standard\" is compatible with old :mod:`turtle`. Mode \"logo\" is " "compatible with most Logo turtle graphics. Mode \"world\" uses user-defined " @@ -1786,121 +1794,121 @@ msgid "" "if ``x/y`` unit-ratio doesn't equal 1." msgstr "" -#: ../Doc/library/turtle.rst:1914 +#: ../Doc/library/turtle.rst:1919 msgid "Mode" msgstr "" -#: ../Doc/library/turtle.rst:1914 +#: ../Doc/library/turtle.rst:1919 msgid "Initial turtle heading" msgstr "" -#: ../Doc/library/turtle.rst:1914 +#: ../Doc/library/turtle.rst:1919 msgid "positive angles" msgstr "" -#: ../Doc/library/turtle.rst:1916 +#: ../Doc/library/turtle.rst:1921 msgid "\"standard\"" msgstr "" -#: ../Doc/library/turtle.rst:1916 +#: ../Doc/library/turtle.rst:1921 msgid "to the right (east)" msgstr "" -#: ../Doc/library/turtle.rst:1916 +#: ../Doc/library/turtle.rst:1921 msgid "counterclockwise" msgstr "" -#: ../Doc/library/turtle.rst:1917 +#: ../Doc/library/turtle.rst:1922 msgid "\"logo\"" msgstr "" -#: ../Doc/library/turtle.rst:1917 +#: ../Doc/library/turtle.rst:1922 msgid "upward (north)" msgstr "" -#: ../Doc/library/turtle.rst:1917 +#: ../Doc/library/turtle.rst:1922 msgid "clockwise" msgstr "" -#: ../Doc/library/turtle.rst:1930 +#: ../Doc/library/turtle.rst:1935 msgid "one of the values 1.0 or 255" msgstr "" -#: ../Doc/library/turtle.rst:1932 +#: ../Doc/library/turtle.rst:1937 msgid "" "Return the colormode or set it to 1.0 or 255. Subsequently *r*, *g*, *b* " "values of color triples have to be in the range 0..\\ *cmode*." msgstr "" -#: ../Doc/library/turtle.rst:1953 +#: ../Doc/library/turtle.rst:1958 msgid "" "Return the Canvas of this TurtleScreen. Useful for insiders who know what " "to do with a Tkinter Canvas." msgstr "" -#: ../Doc/library/turtle.rst:1966 +#: ../Doc/library/turtle.rst:1971 msgid "Return a list of names of all currently available turtle shapes." msgstr "" -#: ../Doc/library/turtle.rst:1978 +#: ../Doc/library/turtle.rst:1983 msgid "There are three different ways to call this function:" msgstr "" -#: ../Doc/library/turtle.rst:1980 +#: ../Doc/library/turtle.rst:1985 msgid "" "*name* is the name of a gif-file and *shape* is ``None``: Install the " "corresponding image shape. ::" msgstr "" -#: ../Doc/library/turtle.rst:1986 +#: ../Doc/library/turtle.rst:1991 msgid "" "Image shapes *do not* rotate when turning the turtle, so they do not display " "the heading of the turtle!" msgstr "" -#: ../Doc/library/turtle.rst:1989 +#: ../Doc/library/turtle.rst:1994 msgid "" "*name* is an arbitrary string and *shape* is a tuple of pairs of " "coordinates: Install the corresponding polygon shape." msgstr "" -#: ../Doc/library/turtle.rst:1997 +#: ../Doc/library/turtle.rst:2002 msgid "" "*name* is an arbitrary string and shape is a (compound) :class:`Shape` " "object: Install the corresponding compound shape." msgstr "" -#: ../Doc/library/turtle.rst:2000 +#: ../Doc/library/turtle.rst:2005 msgid "" "Add a turtle shape to TurtleScreen's shapelist. Only thusly registered " "shapes can be used by issuing the command ``shape(shapename)``." msgstr "" -#: ../Doc/library/turtle.rst:2006 +#: ../Doc/library/turtle.rst:2011 msgid "Return the list of turtles on the screen." msgstr "" -#: ../Doc/library/turtle.rst:2017 +#: ../Doc/library/turtle.rst:2022 msgid "Return the height of the turtle window. ::" msgstr "" -#: ../Doc/library/turtle.rst:2025 +#: ../Doc/library/turtle.rst:2030 msgid "Return the width of the turtle window. ::" msgstr "" -#: ../Doc/library/turtle.rst:2034 +#: ../Doc/library/turtle.rst:2039 msgid "Methods specific to Screen, not inherited from TurtleScreen" msgstr "" -#: ../Doc/library/turtle.rst:2038 +#: ../Doc/library/turtle.rst:2043 msgid "Shut the turtlegraphics window." msgstr "" -#: ../Doc/library/turtle.rst:2043 +#: ../Doc/library/turtle.rst:2048 msgid "Bind bye() method to mouse clicks on the Screen." msgstr "" -#: ../Doc/library/turtle.rst:2046 +#: ../Doc/library/turtle.rst:2051 msgid "" "If the value \"using_IDLE\" in the configuration dictionary is ``False`` " "(default value), also enter mainloop. Remark: If IDLE with the ``-n`` " @@ -1909,246 +1917,246 @@ msgid "" "client script." msgstr "" -#: ../Doc/library/turtle.rst:2055 +#: ../Doc/library/turtle.rst:2060 msgid "" "Set the size and position of the main window. Default values of arguments " "are stored in the configuration dictionary and can be changed via a :file:" "`turtle.cfg` file." msgstr "" -#: ../Doc/library/turtle.rst:2059 +#: ../Doc/library/turtle.rst:2064 msgid "" "if an integer, a size in pixels, if a float, a fraction of the screen; " "default is 50% of screen" msgstr "" -#: ../Doc/library/turtle.rst:2061 +#: ../Doc/library/turtle.rst:2066 msgid "" "if an integer, the height in pixels, if a float, a fraction of the screen; " "default is 75% of screen" msgstr "" -#: ../Doc/library/turtle.rst:2063 +#: ../Doc/library/turtle.rst:2068 msgid "" "if positive, starting position in pixels from the left edge of the screen, " "if negative from the right edge, if ``None``, center window horizontally" msgstr "" -#: ../Doc/library/turtle.rst:2066 +#: ../Doc/library/turtle.rst:2071 msgid "" "if positive, starting position in pixels from the top edge of the screen, if " "negative from the bottom edge, if ``None``, center window vertically" msgstr "" -#: ../Doc/library/turtle.rst:2081 +#: ../Doc/library/turtle.rst:2086 msgid "a string that is shown in the titlebar of the turtle graphics window" msgstr "" -#: ../Doc/library/turtle.rst:2084 +#: ../Doc/library/turtle.rst:2089 msgid "Set title of turtle window to *titlestring*." msgstr "" -#: ../Doc/library/turtle.rst:2093 +#: ../Doc/library/turtle.rst:2098 msgid "Public classes" msgstr "" -#: ../Doc/library/turtle.rst:2099 +#: ../Doc/library/turtle.rst:2104 msgid "" "a :class:`tkinter.Canvas`, a :class:`ScrolledCanvas` or a :class:" "`TurtleScreen`" msgstr "" -#: ../Doc/library/turtle.rst:2102 +#: ../Doc/library/turtle.rst:2107 msgid "" "Create a turtle. The turtle has all methods described above as \"methods of " "Turtle/RawTurtle\"." msgstr "" -#: ../Doc/library/turtle.rst:2108 +#: ../Doc/library/turtle.rst:2113 msgid "" "Subclass of RawTurtle, has the same interface but draws on a default :class:" "`Screen` object created automatically when needed for the first time." msgstr "" -#: ../Doc/library/turtle.rst:2114 +#: ../Doc/library/turtle.rst:2119 msgid "a :class:`tkinter.Canvas`" msgstr "" -#: ../Doc/library/turtle.rst:2116 +#: ../Doc/library/turtle.rst:2121 msgid "" "Provides screen oriented methods like :func:`setbg` etc. that are described " "above." msgstr "" -#: ../Doc/library/turtle.rst:2121 +#: ../Doc/library/turtle.rst:2126 msgid "" "Subclass of TurtleScreen, with :ref:`four methods added `." msgstr "" -#: ../Doc/library/turtle.rst:2126 +#: ../Doc/library/turtle.rst:2131 msgid "" "some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas " "with scrollbars added" msgstr "" -#: ../Doc/library/turtle.rst:2129 +#: ../Doc/library/turtle.rst:2134 msgid "" "Used by class Screen, which thus automatically provides a ScrolledCanvas as " "playground for the turtles." msgstr "" -#: ../Doc/library/turtle.rst:2134 +#: ../Doc/library/turtle.rst:2139 msgid "one of the strings \"polygon\", \"image\", \"compound\"" msgstr "" -#: ../Doc/library/turtle.rst:2136 +#: ../Doc/library/turtle.rst:2141 msgid "" "Data structure modeling shapes. The pair ``(type_, data)`` must follow this " "specification:" msgstr "" -#: ../Doc/library/turtle.rst:2141 +#: ../Doc/library/turtle.rst:2146 msgid "*type_*" msgstr "*type_*" -#: ../Doc/library/turtle.rst:2141 +#: ../Doc/library/turtle.rst:2146 msgid "*data*" msgstr "*data*" -#: ../Doc/library/turtle.rst:2143 +#: ../Doc/library/turtle.rst:2148 msgid "\"polygon\"" msgstr "" -#: ../Doc/library/turtle.rst:2143 +#: ../Doc/library/turtle.rst:2148 msgid "a polygon-tuple, i.e. a tuple of pairs of coordinates" msgstr "" -#: ../Doc/library/turtle.rst:2144 +#: ../Doc/library/turtle.rst:2149 msgid "\"image\"" msgstr "" -#: ../Doc/library/turtle.rst:2144 +#: ../Doc/library/turtle.rst:2149 msgid "an image (in this form only used internally!)" msgstr "" -#: ../Doc/library/turtle.rst:2145 +#: ../Doc/library/turtle.rst:2150 msgid "\"compound\"" msgstr "" -#: ../Doc/library/turtle.rst:2145 +#: ../Doc/library/turtle.rst:2150 msgid "" "``None`` (a compound shape has to be constructed using the :meth:" "`addcomponent` method)" msgstr "" -#: ../Doc/library/turtle.rst:2151 +#: ../Doc/library/turtle.rst:2156 msgid "a polygon, i.e. a tuple of pairs of numbers" msgstr "" -#: ../Doc/library/turtle.rst:2152 +#: ../Doc/library/turtle.rst:2157 msgid "a color the *poly* will be filled with" msgstr "" -#: ../Doc/library/turtle.rst:2153 +#: ../Doc/library/turtle.rst:2158 msgid "a color for the poly's outline (if given)" msgstr "" -#: ../Doc/library/turtle.rst:2155 +#: ../Doc/library/turtle.rst:2160 msgid "Example:" msgstr "Exemple :" -#: ../Doc/library/turtle.rst:2165 +#: ../Doc/library/turtle.rst:2170 msgid "See :ref:`compoundshapes`." msgstr "" -#: ../Doc/library/turtle.rst:2170 +#: ../Doc/library/turtle.rst:2175 msgid "" "A two-dimensional vector class, used as a helper class for implementing " "turtle graphics. May be useful for turtle graphics programs too. Derived " "from tuple, so a vector is a tuple!" msgstr "" -#: ../Doc/library/turtle.rst:2174 +#: ../Doc/library/turtle.rst:2179 msgid "Provides (for *a*, *b* vectors, *k* number):" msgstr "" -#: ../Doc/library/turtle.rst:2176 +#: ../Doc/library/turtle.rst:2181 msgid "``a + b`` vector addition" msgstr "" -#: ../Doc/library/turtle.rst:2177 +#: ../Doc/library/turtle.rst:2182 msgid "``a - b`` vector subtraction" msgstr "" -#: ../Doc/library/turtle.rst:2178 +#: ../Doc/library/turtle.rst:2183 msgid "``a * b`` inner product" msgstr "" -#: ../Doc/library/turtle.rst:2179 +#: ../Doc/library/turtle.rst:2184 msgid "``k * a`` and ``a * k`` multiplication with scalar" msgstr "" -#: ../Doc/library/turtle.rst:2180 +#: ../Doc/library/turtle.rst:2185 msgid "``abs(a)`` absolute value of a" msgstr "" -#: ../Doc/library/turtle.rst:2181 +#: ../Doc/library/turtle.rst:2186 msgid "``a.rotate(angle)`` rotation" msgstr "" -#: ../Doc/library/turtle.rst:2185 +#: ../Doc/library/turtle.rst:2190 msgid "Help and configuration" msgstr "" -#: ../Doc/library/turtle.rst:2188 +#: ../Doc/library/turtle.rst:2193 msgid "How to use help" msgstr "" -#: ../Doc/library/turtle.rst:2190 +#: ../Doc/library/turtle.rst:2195 msgid "" "The public methods of the Screen and Turtle classes are documented " "extensively via docstrings. So these can be used as online-help via the " "Python help facilities:" msgstr "" -#: ../Doc/library/turtle.rst:2194 +#: ../Doc/library/turtle.rst:2199 msgid "" "When using IDLE, tooltips show the signatures and first lines of the " "docstrings of typed in function-/method calls." msgstr "" -#: ../Doc/library/turtle.rst:2197 +#: ../Doc/library/turtle.rst:2202 msgid "Calling :func:`help` on methods or functions displays the docstrings::" msgstr "" -#: ../Doc/library/turtle.rst:2228 +#: ../Doc/library/turtle.rst:2233 msgid "" "The docstrings of the functions which are derived from methods have a " "modified form::" msgstr "" -#: ../Doc/library/turtle.rst:2262 +#: ../Doc/library/turtle.rst:2267 msgid "" "These modified docstrings are created automatically together with the " "function definitions that are derived from the methods at import time." msgstr "" -#: ../Doc/library/turtle.rst:2267 +#: ../Doc/library/turtle.rst:2272 msgid "Translation of docstrings into different languages" msgstr "" -#: ../Doc/library/turtle.rst:2269 +#: ../Doc/library/turtle.rst:2274 msgid "" "There is a utility to create a dictionary the keys of which are the method " "names and the values of which are the docstrings of the public methods of " "the classes Screen and Turtle." msgstr "" -#: ../Doc/library/turtle.rst:2275 +#: ../Doc/library/turtle.rst:2280 msgid "a string, used as filename" msgstr "" -#: ../Doc/library/turtle.rst:2277 +#: ../Doc/library/turtle.rst:2282 msgid "" "Create and write docstring-dictionary to a Python script with the given " "filename. This function has to be called explicitly (it is not used by the " @@ -2157,37 +2165,37 @@ msgid "" "for translation of the docstrings into different languages." msgstr "" -#: ../Doc/library/turtle.rst:2283 +#: ../Doc/library/turtle.rst:2288 msgid "" "If you (or your students) want to use :mod:`turtle` with online help in your " "native language, you have to translate the docstrings and save the resulting " "file as e.g. :file:`turtle_docstringdict_german.py`." msgstr "" -#: ../Doc/library/turtle.rst:2287 +#: ../Doc/library/turtle.rst:2292 msgid "" "If you have an appropriate entry in your :file:`turtle.cfg` file this " "dictionary will be read in at import time and will replace the original " "English docstrings." msgstr "" -#: ../Doc/library/turtle.rst:2290 +#: ../Doc/library/turtle.rst:2295 msgid "" "At the time of this writing there are docstring dictionaries in German and " "in Italian. (Requests please to glingl@aon.at.)" msgstr "" -#: ../Doc/library/turtle.rst:2296 +#: ../Doc/library/turtle.rst:2301 msgid "How to configure Screen and Turtles" msgstr "" -#: ../Doc/library/turtle.rst:2298 +#: ../Doc/library/turtle.rst:2303 msgid "" "The built-in default configuration mimics the appearance and behaviour of " "the old turtle module in order to retain best possible compatibility with it." msgstr "" -#: ../Doc/library/turtle.rst:2301 +#: ../Doc/library/turtle.rst:2306 msgid "" "If you want to use a different configuration which better reflects the " "features of this module or which better fits to your needs, e.g. for use in " @@ -2196,54 +2204,54 @@ msgid "" "settings." msgstr "" -#: ../Doc/library/turtle.rst:2306 +#: ../Doc/library/turtle.rst:2311 msgid "" "The built in configuration would correspond to the following turtle.cfg::" msgstr "" -#: ../Doc/library/turtle.rst:2329 +#: ../Doc/library/turtle.rst:2334 msgid "Short explanation of selected entries:" msgstr "" -#: ../Doc/library/turtle.rst:2331 +#: ../Doc/library/turtle.rst:2336 msgid "" "The first four lines correspond to the arguments of the :meth:`Screen.setup` " "method." msgstr "" -#: ../Doc/library/turtle.rst:2333 +#: ../Doc/library/turtle.rst:2338 msgid "" "Line 5 and 6 correspond to the arguments of the method :meth:`Screen." "screensize`." msgstr "" -#: ../Doc/library/turtle.rst:2335 +#: ../Doc/library/turtle.rst:2340 msgid "" "*shape* can be any of the built-in shapes, e.g: arrow, turtle, etc. For " "more info try ``help(shape)``." msgstr "" -#: ../Doc/library/turtle.rst:2337 +#: ../Doc/library/turtle.rst:2342 msgid "" "If you want to use no fillcolor (i.e. make the turtle transparent), you have " "to write ``fillcolor = \"\"`` (but all nonempty strings must not have quotes " "in the cfg-file)." msgstr "" -#: ../Doc/library/turtle.rst:2340 +#: ../Doc/library/turtle.rst:2345 msgid "" "If you want to reflect the turtle its state, you have to use ``resizemode = " "auto``." msgstr "" -#: ../Doc/library/turtle.rst:2342 +#: ../Doc/library/turtle.rst:2347 msgid "" "If you set e.g. ``language = italian`` the docstringdict :file:" "`turtle_docstringdict_italian.py` will be loaded at import time (if present " "on the import path, e.g. in the same directory as :mod:`turtle`." msgstr "" -#: ../Doc/library/turtle.rst:2345 +#: ../Doc/library/turtle.rst:2350 msgid "" "The entries *exampleturtle* and *examplescreen* define the names of these " "objects as they occur in the docstrings. The transformation of method-" @@ -2251,301 +2259,301 @@ msgid "" "docstrings." msgstr "" -#: ../Doc/library/turtle.rst:2349 +#: ../Doc/library/turtle.rst:2354 msgid "" "*using_IDLE*: Set this to ``True`` if you regularly work with IDLE and its -" "n switch (\"no subprocess\"). This will prevent :func:`exitonclick` to " "enter the mainloop." msgstr "" -#: ../Doc/library/turtle.rst:2353 +#: ../Doc/library/turtle.rst:2358 msgid "" "There can be a :file:`turtle.cfg` file in the directory where :mod:`turtle` " "is stored and an additional one in the current working directory. The " "latter will override the settings of the first one." msgstr "" -#: ../Doc/library/turtle.rst:2357 +#: ../Doc/library/turtle.rst:2362 msgid "" "The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. " "You can study it as an example and see its effects when running the demos " "(preferably not from within the demo-viewer)." msgstr "" -#: ../Doc/library/turtle.rst:2363 +#: ../Doc/library/turtle.rst:2368 msgid ":mod:`turtledemo` --- Demo scripts" msgstr "" -#: ../Doc/library/turtle.rst:2368 +#: ../Doc/library/turtle.rst:2373 msgid "" "The :mod:`turtledemo` package includes a set of demo scripts. These scripts " "can be run and viewed using the supplied demo viewer as follows::" msgstr "" -#: ../Doc/library/turtle.rst:2373 +#: ../Doc/library/turtle.rst:2378 msgid "" "Alternatively, you can run the demo scripts individually. For example, ::" msgstr "" -#: ../Doc/library/turtle.rst:2377 +#: ../Doc/library/turtle.rst:2382 msgid "The :mod:`turtledemo` package directory contains:" msgstr "" -#: ../Doc/library/turtle.rst:2379 +#: ../Doc/library/turtle.rst:2384 msgid "" "A demo viewer :file:`__main__.py` which can be used to view the sourcecode " "of the scripts and run them at the same time." msgstr "" -#: ../Doc/library/turtle.rst:2381 +#: ../Doc/library/turtle.rst:2386 msgid "" "Multiple scripts demonstrating different features of the :mod:`turtle` " "module. Examples can be accessed via the Examples menu. They can also be " "run standalone." msgstr "" -#: ../Doc/library/turtle.rst:2384 +#: ../Doc/library/turtle.rst:2389 msgid "" "A :file:`turtle.cfg` file which serves as an example of how to write and use " "such files." msgstr "" -#: ../Doc/library/turtle.rst:2387 +#: ../Doc/library/turtle.rst:2392 msgid "The demo scripts are:" msgstr "" -#: ../Doc/library/turtle.rst:2392 +#: ../Doc/library/turtle.rst:2397 msgid "Name" msgstr "Nom" -#: ../Doc/library/turtle.rst:2392 +#: ../Doc/library/turtle.rst:2397 msgid "Description" msgstr "Description" -#: ../Doc/library/turtle.rst:2392 +#: ../Doc/library/turtle.rst:2397 msgid "Features" msgstr "" -#: ../Doc/library/turtle.rst:2394 +#: ../Doc/library/turtle.rst:2399 msgid "bytedesign" msgstr "" -#: ../Doc/library/turtle.rst:2394 +#: ../Doc/library/turtle.rst:2399 msgid "complex classical turtle graphics pattern" msgstr "" -#: ../Doc/library/turtle.rst:2394 +#: ../Doc/library/turtle.rst:2399 msgid ":func:`tracer`, delay, :func:`update`" msgstr "" -#: ../Doc/library/turtle.rst:2397 +#: ../Doc/library/turtle.rst:2402 msgid "chaos" msgstr "" -#: ../Doc/library/turtle.rst:2397 +#: ../Doc/library/turtle.rst:2402 msgid "" "graphs Verhulst dynamics, shows that computer's computations can generate " "results sometimes against the common sense expectations" msgstr "" -#: ../Doc/library/turtle.rst:2397 +#: ../Doc/library/turtle.rst:2402 msgid "world coordinates" msgstr "" -#: ../Doc/library/turtle.rst:2403 +#: ../Doc/library/turtle.rst:2408 msgid "clock" msgstr "" -#: ../Doc/library/turtle.rst:2403 +#: ../Doc/library/turtle.rst:2408 msgid "analog clock showing time of your computer" msgstr "" -#: ../Doc/library/turtle.rst:2403 +#: ../Doc/library/turtle.rst:2408 msgid "turtles as clock's hands, ontimer" msgstr "" -#: ../Doc/library/turtle.rst:2406 +#: ../Doc/library/turtle.rst:2411 msgid "colormixer" msgstr "" -#: ../Doc/library/turtle.rst:2406 +#: ../Doc/library/turtle.rst:2411 msgid "experiment with r, g, b" msgstr "" -#: ../Doc/library/turtle.rst:2408 +#: ../Doc/library/turtle.rst:2413 msgid "forest" msgstr "" -#: ../Doc/library/turtle.rst:2408 +#: ../Doc/library/turtle.rst:2413 msgid "3 breadth-first trees" msgstr "" -#: ../Doc/library/turtle.rst:2408 +#: ../Doc/library/turtle.rst:2413 msgid "randomization" msgstr "" -#: ../Doc/library/turtle.rst:2410 +#: ../Doc/library/turtle.rst:2415 msgid "fractalcurves" msgstr "" -#: ../Doc/library/turtle.rst:2410 +#: ../Doc/library/turtle.rst:2415 msgid "Hilbert & Koch curves" msgstr "" -#: ../Doc/library/turtle.rst:2410 +#: ../Doc/library/turtle.rst:2415 msgid "recursion" msgstr "" -#: ../Doc/library/turtle.rst:2412 +#: ../Doc/library/turtle.rst:2417 msgid "lindenmayer" msgstr "" -#: ../Doc/library/turtle.rst:2412 +#: ../Doc/library/turtle.rst:2417 msgid "ethnomathematics (indian kolams)" msgstr "" -#: ../Doc/library/turtle.rst:2412 +#: ../Doc/library/turtle.rst:2417 msgid "L-System" msgstr "" -#: ../Doc/library/turtle.rst:2415 +#: ../Doc/library/turtle.rst:2420 msgid "minimal_hanoi" msgstr "" -#: ../Doc/library/turtle.rst:2415 +#: ../Doc/library/turtle.rst:2420 msgid "Towers of Hanoi" msgstr "" -#: ../Doc/library/turtle.rst:2415 +#: ../Doc/library/turtle.rst:2420 msgid "Rectangular Turtles as Hanoi discs (shape, shapesize)" msgstr "" -#: ../Doc/library/turtle.rst:2419 +#: ../Doc/library/turtle.rst:2424 msgid "nim" msgstr "" -#: ../Doc/library/turtle.rst:2419 +#: ../Doc/library/turtle.rst:2424 msgid "" "play the classical nim game with three heaps of sticks against the computer." msgstr "" -#: ../Doc/library/turtle.rst:2419 +#: ../Doc/library/turtle.rst:2424 msgid "turtles as nimsticks, event driven (mouse, keyboard)" msgstr "" -#: ../Doc/library/turtle.rst:2423 +#: ../Doc/library/turtle.rst:2428 msgid "paint" msgstr "" -#: ../Doc/library/turtle.rst:2423 +#: ../Doc/library/turtle.rst:2428 msgid "super minimalistic drawing program" msgstr "" -#: ../Doc/library/turtle.rst:2426 +#: ../Doc/library/turtle.rst:2431 msgid "peace" msgstr "" -#: ../Doc/library/turtle.rst:2426 +#: ../Doc/library/turtle.rst:2431 msgid "elementary" msgstr "" -#: ../Doc/library/turtle.rst:2426 +#: ../Doc/library/turtle.rst:2431 msgid "turtle: appearance and animation" msgstr "" -#: ../Doc/library/turtle.rst:2429 +#: ../Doc/library/turtle.rst:2434 msgid "penrose" msgstr "" -#: ../Doc/library/turtle.rst:2429 +#: ../Doc/library/turtle.rst:2434 msgid "aperiodic tiling with kites and darts" msgstr "" -#: ../Doc/library/turtle.rst:2432 +#: ../Doc/library/turtle.rst:2437 msgid "planet_and_moon" msgstr "" -#: ../Doc/library/turtle.rst:2432 +#: ../Doc/library/turtle.rst:2437 msgid "simulation of gravitational system" msgstr "" -#: ../Doc/library/turtle.rst:2432 +#: ../Doc/library/turtle.rst:2437 msgid "compound shapes, :class:`Vec2D`" msgstr "" -#: ../Doc/library/turtle.rst:2435 +#: ../Doc/library/turtle.rst:2440 msgid "round_dance" msgstr "" -#: ../Doc/library/turtle.rst:2435 +#: ../Doc/library/turtle.rst:2440 msgid "dancing turtles rotating pairwise in opposite direction" msgstr "" -#: ../Doc/library/turtle.rst:2435 +#: ../Doc/library/turtle.rst:2440 msgid "compound shapes, clone shapesize, tilt, get_shapepoly, update" msgstr "" -#: ../Doc/library/turtle.rst:2439 +#: ../Doc/library/turtle.rst:2444 msgid "sorting_animate" msgstr "" -#: ../Doc/library/turtle.rst:2439 +#: ../Doc/library/turtle.rst:2444 msgid "visual demonstration of different sorting methods" msgstr "" -#: ../Doc/library/turtle.rst:2439 +#: ../Doc/library/turtle.rst:2444 msgid "simple alignment, randomization" msgstr "" -#: ../Doc/library/turtle.rst:2442 +#: ../Doc/library/turtle.rst:2447 msgid "tree" msgstr "" -#: ../Doc/library/turtle.rst:2442 +#: ../Doc/library/turtle.rst:2447 msgid "a (graphical) breadth first tree (using generators)" msgstr "" -#: ../Doc/library/turtle.rst:2445 +#: ../Doc/library/turtle.rst:2450 msgid "two_canvases" msgstr "" -#: ../Doc/library/turtle.rst:2445 +#: ../Doc/library/turtle.rst:2450 msgid "simple design" msgstr "" -#: ../Doc/library/turtle.rst:2445 +#: ../Doc/library/turtle.rst:2450 msgid "turtles on two canvases" msgstr "" -#: ../Doc/library/turtle.rst:2448 +#: ../Doc/library/turtle.rst:2453 msgid "wikipedia" msgstr "" -#: ../Doc/library/turtle.rst:2448 +#: ../Doc/library/turtle.rst:2453 msgid "a pattern from the wikipedia article on turtle graphics" msgstr "" -#: ../Doc/library/turtle.rst:2448 +#: ../Doc/library/turtle.rst:2453 msgid ":func:`clone`, :func:`undo`" msgstr "" -#: ../Doc/library/turtle.rst:2451 +#: ../Doc/library/turtle.rst:2456 msgid "yinyang" msgstr "" -#: ../Doc/library/turtle.rst:2451 +#: ../Doc/library/turtle.rst:2456 msgid "another elementary example" msgstr "" -#: ../Doc/library/turtle.rst:2454 +#: ../Doc/library/turtle.rst:2459 msgid "Have fun!" msgstr "" -#: ../Doc/library/turtle.rst:2458 +#: ../Doc/library/turtle.rst:2463 msgid "Changes since Python 2.6" msgstr "" -#: ../Doc/library/turtle.rst:2460 +#: ../Doc/library/turtle.rst:2465 msgid "" "The methods :meth:`Turtle.tracer`, :meth:`Turtle.window_width` and :meth:" "`Turtle.window_height` have been eliminated. Methods with these names and " @@ -2555,25 +2563,25 @@ msgid "" "`TurtleScreen`/:class:`Screen`-methods.)" msgstr "" -#: ../Doc/library/turtle.rst:2468 +#: ../Doc/library/turtle.rst:2473 msgid "" "The method :meth:`Turtle.fill` has been eliminated. The behaviour of :meth:" "`begin_fill` and :meth:`end_fill` have changed slightly: now every filling-" "process must be completed with an ``end_fill()`` call." msgstr "" -#: ../Doc/library/turtle.rst:2473 +#: ../Doc/library/turtle.rst:2478 msgid "" "A method :meth:`Turtle.filling` has been added. It returns a boolean value: " "``True`` if a filling process is under way, ``False`` otherwise. This " "behaviour corresponds to a ``fill()`` call without arguments in Python 2.6." msgstr "" -#: ../Doc/library/turtle.rst:2479 +#: ../Doc/library/turtle.rst:2484 msgid "Changes since Python 3.0" msgstr "" -#: ../Doc/library/turtle.rst:2481 +#: ../Doc/library/turtle.rst:2486 msgid "" "The methods :meth:`Turtle.shearfactor`, :meth:`Turtle.shapetransform` and :" "meth:`Turtle.get_shapepoly` have been added. Thus the full range of regular " @@ -2582,28 +2590,28 @@ msgid "" "get or set the tiltangle. :meth:`Turtle.settiltangle` has been deprecated." msgstr "" -#: ../Doc/library/turtle.rst:2488 +#: ../Doc/library/turtle.rst:2493 msgid "" "The method :meth:`Screen.onkeypress` has been added as a complement to :meth:" "`Screen.onkey` which in fact binds actions to the keyrelease event. " "Accordingly the latter has got an alias: :meth:`Screen.onkeyrelease`." msgstr "" -#: ../Doc/library/turtle.rst:2492 +#: ../Doc/library/turtle.rst:2497 msgid "" "The method :meth:`Screen.mainloop` has been added. So when working only " "with Screen and Turtle objects one must not additionally import :func:" "`mainloop` anymore." msgstr "" -#: ../Doc/library/turtle.rst:2496 +#: ../Doc/library/turtle.rst:2501 msgid "" "Two input methods has been added :meth:`Screen.textinput` and :meth:`Screen." "numinput`. These popup input dialogs and return strings and numbers " "respectively." msgstr "" -#: ../Doc/library/turtle.rst:2500 +#: ../Doc/library/turtle.rst:2505 msgid "" "Two example scripts :file:`tdemo_nim.py` and :file:`tdemo_round_dance.py` " "have been added to the :file:`Lib/turtledemo` directory." diff --git a/library/types.po b/library/types.po index 259372a5..92e827e2 100644 --- a/library/types.po +++ b/library/types.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-09-28 10:04+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -202,73 +202,78 @@ msgstr "" #: ../Doc/library/types.rst:148 msgid "" +"Return a copy of the code object with new values for the specified fields." +msgstr "" + +#: ../Doc/library/types.rst:154 +msgid "" "The type for cell objects: such objects are used as containers for a " "function's free variables." msgstr "" -#: ../Doc/library/types.rst:156 +#: ../Doc/library/types.rst:162 msgid "The type of methods of user-defined class instances." msgstr "" -#: ../Doc/library/types.rst:162 +#: ../Doc/library/types.rst:168 msgid "" "The type of built-in functions like :func:`len` or :func:`sys.exit`, and " "methods of built-in classes. (Here, the term \"built-in\" means \"written " "in C\".)" msgstr "" -#: ../Doc/library/types.rst:169 +#: ../Doc/library/types.rst:175 msgid "" "The type of methods of some built-in data types and base classes such as :" "meth:`object.__init__` or :meth:`object.__lt__`." msgstr "" -#: ../Doc/library/types.rst:177 +#: ../Doc/library/types.rst:183 msgid "" "The type of *bound* methods of some built-in data types and base classes. " "For example it is the type of :code:`object().__str__`." msgstr "" -#: ../Doc/library/types.rst:185 +#: ../Doc/library/types.rst:191 msgid "" "The type of methods of some built-in data types such as :meth:`str.join`." msgstr "" -#: ../Doc/library/types.rst:192 +#: ../Doc/library/types.rst:198 msgid "" "The type of *unbound* class methods of some built-in data types such as " "``dict.__dict__['fromkeys']``." msgstr "" -#: ../Doc/library/types.rst:200 +#: ../Doc/library/types.rst:206 msgid "" "The type of :term:`modules `. Constructor takes the name of the " "module to be created and optionally its :term:`docstring`." msgstr "" -#: ../Doc/library/types.rst:204 +#: ../Doc/library/types.rst:210 msgid "" "Use :func:`importlib.util.module_from_spec` to create a new module if you " "wish to set the various import-controlled attributes." msgstr "" -#: ../Doc/library/types.rst:209 +#: ../Doc/library/types.rst:215 msgid "The :term:`docstring` of the module. Defaults to ``None``." msgstr "" -#: ../Doc/library/types.rst:213 +#: ../Doc/library/types.rst:219 msgid "The :term:`loader` which loaded the module. Defaults to ``None``." msgstr "" -#: ../Doc/library/types.rst:215 ../Doc/library/types.rst:229 +#: ../Doc/library/types.rst:221 ../Doc/library/types.rst:235 msgid "Defaults to ``None``. Previously the attribute was optional." msgstr "" -#: ../Doc/library/types.rst:220 +#: ../Doc/library/types.rst:226 msgid "The name of the module." msgstr "" -#: ../Doc/library/types.rst:224 +#: ../Doc/library/types.rst:230 msgid "" "Which :term:`package` a module belongs to. If the module is top-level (i.e. " "not a part of any specific package) then the attribute should be set to " @@ -276,30 +281,30 @@ msgid "" "`__name__` if the module is a package itself). Defaults to ``None``." msgstr "" -#: ../Doc/library/types.rst:235 +#: ../Doc/library/types.rst:241 msgid "The type of traceback objects such as found in ``sys.exc_info()[2]``." msgstr "" -#: ../Doc/library/types.rst:237 +#: ../Doc/library/types.rst:243 msgid "" "See :ref:`the language reference ` for details of the " "available attributes and operations, and guidance on creating tracebacks " "dynamically." msgstr "" -#: ../Doc/library/types.rst:244 +#: ../Doc/library/types.rst:250 msgid "" "The type of frame objects such as found in ``tb.tb_frame`` if ``tb`` is a " "traceback object." msgstr "" -#: ../Doc/library/types.rst:247 +#: ../Doc/library/types.rst:253 msgid "" "See :ref:`the language reference ` for details of the " "available attributes and operations." msgstr "" -#: ../Doc/library/types.rst:253 +#: ../Doc/library/types.rst:259 msgid "" "The type of objects defined in extension modules with ``PyGetSetDef``, such " "as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as " @@ -307,7 +312,7 @@ msgid "" "`property` type, but for classes defined in extension modules." msgstr "" -#: ../Doc/library/types.rst:261 +#: ../Doc/library/types.rst:267 msgid "" "The type of objects defined in extension modules with ``PyMemberDef``, such " "as ``datetime.timedelta.days``. This type is used as descriptor for simple " @@ -316,97 +321,97 @@ msgid "" "modules." msgstr "" -#: ../Doc/library/types.rst:268 +#: ../Doc/library/types.rst:274 msgid "" "In other implementations of Python, this type may be identical to " "``GetSetDescriptorType``." msgstr "" -#: ../Doc/library/types.rst:273 +#: ../Doc/library/types.rst:279 msgid "" "Read-only proxy of a mapping. It provides a dynamic view on the mapping's " "entries, which means that when the mapping changes, the view reflects these " "changes." msgstr "" -#: ../Doc/library/types.rst:281 +#: ../Doc/library/types.rst:287 msgid "" "Return ``True`` if the underlying mapping has a key *key*, else ``False``." msgstr "" -#: ../Doc/library/types.rst:286 +#: ../Doc/library/types.rst:292 msgid "" "Return the item of the underlying mapping with key *key*. Raises a :exc:" "`KeyError` if *key* is not in the underlying mapping." msgstr "" -#: ../Doc/library/types.rst:291 +#: ../Doc/library/types.rst:297 msgid "" "Return an iterator over the keys of the underlying mapping. This is a " "shortcut for ``iter(proxy.keys())``." msgstr "" -#: ../Doc/library/types.rst:296 +#: ../Doc/library/types.rst:302 msgid "Return the number of items in the underlying mapping." msgstr "" -#: ../Doc/library/types.rst:300 +#: ../Doc/library/types.rst:306 msgid "Return a shallow copy of the underlying mapping." msgstr "" -#: ../Doc/library/types.rst:304 +#: ../Doc/library/types.rst:310 msgid "" "Return the value for *key* if *key* is in the underlying mapping, else " "*default*. If *default* is not given, it defaults to ``None``, so that this " "method never raises a :exc:`KeyError`." msgstr "" -#: ../Doc/library/types.rst:310 +#: ../Doc/library/types.rst:316 msgid "" "Return a new view of the underlying mapping's items (``(key, value)`` pairs)." msgstr "" -#: ../Doc/library/types.rst:315 +#: ../Doc/library/types.rst:321 msgid "Return a new view of the underlying mapping's keys." msgstr "" -#: ../Doc/library/types.rst:319 +#: ../Doc/library/types.rst:325 msgid "Return a new view of the underlying mapping's values." msgstr "" -#: ../Doc/library/types.rst:323 +#: ../Doc/library/types.rst:329 msgid "Additional Utility Classes and Functions" msgstr "" -#: ../Doc/library/types.rst:327 +#: ../Doc/library/types.rst:333 msgid "" "A simple :class:`object` subclass that provides attribute access to its " "namespace, as well as a meaningful repr." msgstr "" -#: ../Doc/library/types.rst:330 +#: ../Doc/library/types.rst:336 msgid "" "Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove " "attributes. If a ``SimpleNamespace`` object is initialized with keyword " "arguments, those are directly added to the underlying namespace." msgstr "" -#: ../Doc/library/types.rst:334 +#: ../Doc/library/types.rst:340 msgid "The type is roughly equivalent to the following code::" msgstr "" -#: ../Doc/library/types.rst:348 +#: ../Doc/library/types.rst:354 msgid "" "``SimpleNamespace`` may be useful as a replacement for ``class NS: pass``. " "However, for a structured record type use :func:`~collections.namedtuple` " "instead." msgstr "" -#: ../Doc/library/types.rst:357 +#: ../Doc/library/types.rst:363 msgid "Route attribute access on a class to __getattr__." msgstr "" -#: ../Doc/library/types.rst:359 +#: ../Doc/library/types.rst:365 msgid "" "This is a descriptor, used to define attributes that act differently when " "accessed through an instance and through a class. Instance access remains " @@ -414,17 +419,17 @@ msgid "" "class's __getattr__ method; this is done by raising AttributeError." msgstr "" -#: ../Doc/library/types.rst:364 +#: ../Doc/library/types.rst:370 msgid "" "This allows one to have properties active on an instance, and have virtual " "attributes on the class with the same name (see Enum for an example)." msgstr "" -#: ../Doc/library/types.rst:371 +#: ../Doc/library/types.rst:377 msgid "Coroutine Utility Functions" msgstr "" -#: ../Doc/library/types.rst:375 +#: ../Doc/library/types.rst:381 msgid "" "This function transforms a :term:`generator` function into a :term:" "`coroutine function` which returns a generator-based coroutine. The " @@ -433,11 +438,11 @@ msgid "" "However, it may not necessarily implement the :meth:`__await__` method." msgstr "" -#: ../Doc/library/types.rst:382 +#: ../Doc/library/types.rst:388 msgid "If *gen_func* is a generator function, it will be modified in-place." msgstr "" -#: ../Doc/library/types.rst:384 +#: ../Doc/library/types.rst:390 msgid "" "If *gen_func* is not a generator function, it will be wrapped. If it returns " "an instance of :class:`collections.abc.Generator`, the instance will be " diff --git a/library/unittest.mock.po b/library/unittest.mock.po index e528327c..49034394 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-04-22 12:07+0200\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" @@ -933,23 +933,23 @@ msgid "" "functions will be :class:`AsyncMock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:921 +#: ../Doc/library/unittest.mock.rst:922 msgid "" "Assert that the mock was awaited at least once. Note that this is separate " "from the object having been called, the ``await`` keyword must be used:" msgstr "" -#: ../Doc/library/unittest.mock.rst:940 +#: ../Doc/library/unittest.mock.rst:941 #, fuzzy msgid "Assert that the mock was awaited exactly once." msgstr "Asserter que le *mock* a été appelé exactement une fois." -#: ../Doc/library/unittest.mock.rst:956 +#: ../Doc/library/unittest.mock.rst:957 #, fuzzy msgid "Assert that the last await was with the specified arguments." msgstr "Asserter que le simulacre a été appelé avec les arguments spécifiés." -#: ../Doc/library/unittest.mock.rst:973 +#: ../Doc/library/unittest.mock.rst:974 #, fuzzy msgid "" "Assert that the mock was awaited exactly once and with the specified " @@ -958,12 +958,12 @@ msgstr "" "Asserter que le simulacre a été appelé exactement une fois et que cet appel " "était avec les arguments spécifiés." -#: ../Doc/library/unittest.mock.rst:990 +#: ../Doc/library/unittest.mock.rst:991 #, fuzzy msgid "Assert the mock has ever been awaited with the specified arguments." msgstr "Asserter que le simulacre a été appelé avec les arguments spécifiés." -#: ../Doc/library/unittest.mock.rst:1006 +#: ../Doc/library/unittest.mock.rst:1007 #, fuzzy msgid "" "Assert the mock has been awaited with the specified calls. The :attr:" @@ -972,7 +972,7 @@ msgstr "" "Asserter que le simulacre a été appelé avec les appels spécifiés. " "L'attribut :attr:`mock_calls` est comparé à la liste des appels." -#: ../Doc/library/unittest.mock.rst:1009 +#: ../Doc/library/unittest.mock.rst:1010 #, fuzzy msgid "" "If *any_order* is false then the awaits must be sequential. There can be " @@ -982,7 +982,7 @@ msgstr "" "séquentiels. Il peut y avoir des appels supplémentaires avant ou après les " "appels spécifiés." -#: ../Doc/library/unittest.mock.rst:1013 +#: ../Doc/library/unittest.mock.rst:1014 #, fuzzy msgid "" "If *any_order* is true then the awaits can be in any order, but they must " @@ -991,42 +991,42 @@ msgstr "" "Si *any_order* est vrai alors les appels peuvent être dans n'importe quel " "ordre, mais ils doivent tous apparaître dans :attr:`mock_calls`." -#: ../Doc/library/unittest.mock.rst:1033 +#: ../Doc/library/unittest.mock.rst:1034 #, fuzzy msgid "Assert that the mock was never awaited." msgstr "Asserter que le simulacre n'a jamais été appelé." -#: ../Doc/library/unittest.mock.rst:1040 +#: ../Doc/library/unittest.mock.rst:1041 msgid "" "See :func:`Mock.reset_mock`. Also sets :attr:`await_count` to 0, :attr:" "`await_args` to None, and clears the :attr:`await_args_list`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1045 +#: ../Doc/library/unittest.mock.rst:1046 #, fuzzy msgid "" "An integer keeping track of how many times the mock object has been awaited." msgstr "Un entier indiquant combien de fois le simulacre a été appelé :" -#: ../Doc/library/unittest.mock.rst:1060 +#: ../Doc/library/unittest.mock.rst:1061 msgid "" "This is either ``None`` (if the mock hasn’t been awaited), or the arguments " "that the mock was last awaited with. Functions the same as :attr:`Mock." "call_args`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1078 +#: ../Doc/library/unittest.mock.rst:1079 msgid "" "This is a list of all the awaits made to the mock object in sequence (so the " "length of the list is the number of times it has been awaited). Before any " "awaits have been made it is an empty list." msgstr "" -#: ../Doc/library/unittest.mock.rst:1097 +#: ../Doc/library/unittest.mock.rst:1098 msgid "Calling" msgstr "" -#: ../Doc/library/unittest.mock.rst:1099 +#: ../Doc/library/unittest.mock.rst:1100 msgid "" "Mock objects are callable. The call will return the value set as the :attr:" "`~Mock.return_value` attribute. The default return value is a new Mock " @@ -1035,26 +1035,26 @@ msgid "" "returned each time." msgstr "" -#: ../Doc/library/unittest.mock.rst:1105 +#: ../Doc/library/unittest.mock.rst:1106 msgid "" "Calls made to the object will be recorded in the attributes like :attr:" "`~Mock.call_args` and :attr:`~Mock.call_args_list`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1108 +#: ../Doc/library/unittest.mock.rst:1109 msgid "" "If :attr:`~Mock.side_effect` is set then it will be called after the call " "has been recorded, so if :attr:`side_effect` raises an exception the call is " "still recorded." msgstr "" -#: ../Doc/library/unittest.mock.rst:1112 +#: ../Doc/library/unittest.mock.rst:1113 msgid "" "The simplest way to make a mock raise an exception when called is to make :" "attr:`~Mock.side_effect` an exception class or instance:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1130 +#: ../Doc/library/unittest.mock.rst:1131 msgid "" "If :attr:`side_effect` is a function then whatever that function returns is " "what calls to the mock return. The :attr:`side_effect` function is called " @@ -1062,7 +1062,7 @@ msgid "" "value of the call dynamically, based on the input:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1146 +#: ../Doc/library/unittest.mock.rst:1147 msgid "" "If you want the mock to still return the default return value (a new mock), " "or any set return value, then there are two ways of doing this. Either " @@ -1070,36 +1070,36 @@ msgid "" "data:`DEFAULT`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1165 +#: ../Doc/library/unittest.mock.rst:1166 msgid "" "To remove a :attr:`side_effect`, and return to the default behaviour, set " "the :attr:`side_effect` to ``None``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1179 +#: ../Doc/library/unittest.mock.rst:1180 msgid "" "The :attr:`side_effect` can also be any iterable object. Repeated calls to " "the mock will return values from the iterable (until the iterable is " "exhausted and a :exc:`StopIteration` is raised):" msgstr "" -#: ../Doc/library/unittest.mock.rst:1195 +#: ../Doc/library/unittest.mock.rst:1196 msgid "" "If any members of the iterable are exceptions they will be raised instead of " "returned::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1213 +#: ../Doc/library/unittest.mock.rst:1214 msgid "Deleting Attributes" msgstr "" -#: ../Doc/library/unittest.mock.rst:1215 +#: ../Doc/library/unittest.mock.rst:1216 msgid "" "Mock objects create attributes on demand. This allows them to pretend to be " "objects of any type." msgstr "" -#: ../Doc/library/unittest.mock.rst:1218 +#: ../Doc/library/unittest.mock.rst:1219 msgid "" "You may want a mock object to return ``False`` to a :func:`hasattr` call, or " "raise an :exc:`AttributeError` when an attribute is fetched. You can do this " @@ -1107,17 +1107,17 @@ msgid "" "convenient." msgstr "" -#: ../Doc/library/unittest.mock.rst:1222 +#: ../Doc/library/unittest.mock.rst:1223 msgid "" "You \"block\" attributes by deleting them. Once deleted, accessing an " "attribute will raise an :exc:`AttributeError`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1239 +#: ../Doc/library/unittest.mock.rst:1240 msgid "Mock names and the name attribute" msgstr "" -#: ../Doc/library/unittest.mock.rst:1241 +#: ../Doc/library/unittest.mock.rst:1242 msgid "" "Since \"name\" is an argument to the :class:`Mock` constructor, if you want " "your mock object to have a \"name\" attribute you can't just pass it in at " @@ -1125,17 +1125,17 @@ msgid "" "configure_mock`::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1251 +#: ../Doc/library/unittest.mock.rst:1252 msgid "" "A simpler option is to simply set the \"name\" attribute after mock " "creation::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1258 +#: ../Doc/library/unittest.mock.rst:1259 msgid "Attaching Mocks as Attributes" msgstr "" -#: ../Doc/library/unittest.mock.rst:1260 +#: ../Doc/library/unittest.mock.rst:1261 msgid "" "When you attach a mock as an attribute of another mock (or as the return " "value) it becomes a \"child\" of that mock. Calls to the child are recorded " @@ -1146,20 +1146,20 @@ msgid "" "calls between mocks:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1278 +#: ../Doc/library/unittest.mock.rst:1279 msgid "" "The exception to this is if the mock has a name. This allows you to prevent " "the \"parenting\" if for some reason you don't want it to happen." msgstr "" -#: ../Doc/library/unittest.mock.rst:1289 +#: ../Doc/library/unittest.mock.rst:1290 msgid "" "Mocks created for you by :func:`patch` are automatically given names. To " "attach mocks that have names to a parent you use the :meth:`~Mock." "attach_mock` method::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1307 +#: ../Doc/library/unittest.mock.rst:1308 msgid "" "The only exceptions are magic methods and attributes (those that have " "leading and trailing double underscores). Mock doesn't create these but " @@ -1169,11 +1169,11 @@ msgid "" "support see :ref:`magic methods `." msgstr "" -#: ../Doc/library/unittest.mock.rst:1316 +#: ../Doc/library/unittest.mock.rst:1317 msgid "The patchers" msgstr "" -#: ../Doc/library/unittest.mock.rst:1318 +#: ../Doc/library/unittest.mock.rst:1319 msgid "" "The patch decorators are used for patching objects only within the scope of " "the function they decorate. They automatically handle the unpatching for " @@ -1181,17 +1181,17 @@ msgid "" "in with statements or as class decorators." msgstr "" -#: ../Doc/library/unittest.mock.rst:1325 +#: ../Doc/library/unittest.mock.rst:1326 msgid "patch" msgstr "" -#: ../Doc/library/unittest.mock.rst:1329 +#: ../Doc/library/unittest.mock.rst:1330 msgid "" ":func:`patch` is straightforward to use. The key is to do the patching in " "the right namespace. See the section `where to patch`_." msgstr "" -#: ../Doc/library/unittest.mock.rst:1334 +#: ../Doc/library/unittest.mock.rst:1335 msgid "" ":func:`patch` acts as a function decorator, class decorator or a context " "manager. Inside the body of the function or with statement, the *target* is " @@ -1199,7 +1199,7 @@ msgid "" "patch is undone." msgstr "" -#: ../Doc/library/unittest.mock.rst:1339 +#: ../Doc/library/unittest.mock.rst:1340 msgid "" "If *new* is omitted, then the target is replaced with an :class:`AsyncMock` " "if the patched object is an async function or a :class:`MagicMock` " @@ -1209,7 +1209,7 @@ msgid "" "by the context manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:1347 +#: ../Doc/library/unittest.mock.rst:1348 msgid "" "*target* should be a string in the form ``'package.module.ClassName'``. The " "*target* is imported and the specified object replaced with the *new* " @@ -1218,26 +1218,26 @@ msgid "" "function is executed, not at decoration time." msgstr "" -#: ../Doc/library/unittest.mock.rst:1353 +#: ../Doc/library/unittest.mock.rst:1354 msgid "" "The *spec* and *spec_set* keyword arguments are passed to the :class:" "`MagicMock` if patch is creating one for you." msgstr "" -#: ../Doc/library/unittest.mock.rst:1356 +#: ../Doc/library/unittest.mock.rst:1357 msgid "" "In addition you can pass ``spec=True`` or ``spec_set=True``, which causes " "patch to pass in the object being mocked as the spec/spec_set object." msgstr "" -#: ../Doc/library/unittest.mock.rst:1359 +#: ../Doc/library/unittest.mock.rst:1360 msgid "" "*new_callable* allows you to specify a different class, or callable object, " "that will be called to create the *new* object. By default :class:" "`AsyncMock` is used for async functions and :class:`MagicMock` for the rest." msgstr "" -#: ../Doc/library/unittest.mock.rst:1363 +#: ../Doc/library/unittest.mock.rst:1364 msgid "" "A more powerful form of *spec* is *autospec*. If you set ``autospec=True`` " "then the mock will be created with a spec from the object being replaced. " @@ -1249,13 +1249,13 @@ msgid "" "func:`create_autospec` function and :ref:`auto-speccing`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1373 +#: ../Doc/library/unittest.mock.rst:1374 msgid "" "Instead of ``autospec=True`` you can pass ``autospec=some_object`` to use an " "arbitrary object as the spec instead of the one being replaced." msgstr "" -#: ../Doc/library/unittest.mock.rst:1376 +#: ../Doc/library/unittest.mock.rst:1377 msgid "" "By default :func:`patch` will fail to replace attributes that don't exist. " "If you pass in ``create=True``, and the attribute doesn't exist, patch will " @@ -1266,13 +1266,13 @@ msgid "" "write passing tests against APIs that don't actually exist!" msgstr "" -#: ../Doc/library/unittest.mock.rst:1386 +#: ../Doc/library/unittest.mock.rst:1387 msgid "" "If you are patching builtins in a module then you don't need to pass " "``create=True``, it will be added by default." msgstr "" -#: ../Doc/library/unittest.mock.rst:1390 +#: ../Doc/library/unittest.mock.rst:1391 msgid "" "Patch can be used as a :class:`TestCase` class decorator. It works by " "decorating each test method in the class. This reduces the boilerplate code " @@ -1283,7 +1283,7 @@ msgid "" "TEST_PREFIX``." msgstr "" -#: ../Doc/library/unittest.mock.rst:1397 +#: ../Doc/library/unittest.mock.rst:1398 msgid "" "Patch can be used as a context manager, with the with statement. Here the " "patching applies to the indented block after the with statement. If you use " @@ -1291,64 +1291,64 @@ msgid "" "very useful if :func:`patch` is creating a mock object for you." msgstr "" -#: ../Doc/library/unittest.mock.rst:1402 +#: ../Doc/library/unittest.mock.rst:1403 msgid "" ":func:`patch` takes arbitrary keyword arguments. These will be passed to " "the :class:`Mock` (or *new_callable*) on construction." msgstr "" -#: ../Doc/library/unittest.mock.rst:1405 +#: ../Doc/library/unittest.mock.rst:1406 msgid "" "``patch.dict(...)``, ``patch.multiple(...)`` and ``patch.object(...)`` are " "available for alternate use-cases." msgstr "" -#: ../Doc/library/unittest.mock.rst:1408 +#: ../Doc/library/unittest.mock.rst:1409 msgid "" ":func:`patch` as function decorator, creating the mock for you and passing " "it into the decorated function::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1418 +#: ../Doc/library/unittest.mock.rst:1419 msgid "" "Patching a class replaces the class with a :class:`MagicMock` *instance*. If " "the class is instantiated in the code under test then it will be the :attr:" "`~Mock.return_value` of the mock that will be used." msgstr "" -#: ../Doc/library/unittest.mock.rst:1422 +#: ../Doc/library/unittest.mock.rst:1423 msgid "" "If the class is instantiated multiple times you could use :attr:`~Mock." "side_effect` to return a new mock each time. Alternatively you can set the " "*return_value* to be anything you want." msgstr "" -#: ../Doc/library/unittest.mock.rst:1426 +#: ../Doc/library/unittest.mock.rst:1427 msgid "" "To configure return values on methods of *instances* on the patched class " "you must do this on the :attr:`return_value`. For example::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1440 +#: ../Doc/library/unittest.mock.rst:1441 msgid "" "If you use *spec* or *spec_set* and :func:`patch` is replacing a *class*, " "then the return value of the created mock will have the same spec. ::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1450 +#: ../Doc/library/unittest.mock.rst:1451 msgid "" "The *new_callable* argument is useful where you want to use an alternative " "class to the default :class:`MagicMock` for the created mock. For example, " "if you wanted a :class:`NonCallableMock` to be used::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1463 +#: ../Doc/library/unittest.mock.rst:1464 msgid "" "Another use case might be to replace an object with an :class:`io.StringIO` " "instance::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1476 +#: ../Doc/library/unittest.mock.rst:1477 msgid "" "When :func:`patch` is creating a mock for you, it is common that the first " "thing you need to do is to configure the mock. Some of that configuration " @@ -1356,7 +1356,7 @@ msgid "" "call will be used to set attributes on the created mock::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1488 +#: ../Doc/library/unittest.mock.rst:1489 msgid "" "As well as attributes on the created mock attributes, like the :attr:`~Mock." "return_value` and :attr:`~Mock.side_effect`, of child mocks can also be " @@ -1365,36 +1365,36 @@ msgid "" "func:`patch` call using ``**``::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1504 +#: ../Doc/library/unittest.mock.rst:1505 msgid "" "By default, attempting to patch a function in a module (or a method or an " "attribute in a class) that does not exist will fail with :exc:" "`AttributeError`::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1516 +#: ../Doc/library/unittest.mock.rst:1517 msgid "" "but adding ``create=True`` in the call to :func:`patch` will make the " "previous example work as expected::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1527 +#: ../Doc/library/unittest.mock.rst:1528 msgid "" ":func:`patch` now returns an :class:`AsyncMock` if the target is an async " "function." msgstr "" -#: ../Doc/library/unittest.mock.rst:1531 +#: ../Doc/library/unittest.mock.rst:1532 msgid "patch.object" msgstr "" -#: ../Doc/library/unittest.mock.rst:1535 +#: ../Doc/library/unittest.mock.rst:1536 msgid "" "patch the named member (*attribute*) on an object (*target*) with a mock " "object." msgstr "" -#: ../Doc/library/unittest.mock.rst:1538 +#: ../Doc/library/unittest.mock.rst:1539 msgid "" ":func:`patch.object` can be used as a decorator, class decorator or a " "context manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* " @@ -1403,80 +1403,80 @@ msgid "" "configuring the mock object it creates." msgstr "" -#: ../Doc/library/unittest.mock.rst:1544 +#: ../Doc/library/unittest.mock.rst:1545 msgid "" "When used as a class decorator :func:`patch.object` honours ``patch." "TEST_PREFIX`` for choosing which methods to wrap." msgstr "" -#: ../Doc/library/unittest.mock.rst:1547 +#: ../Doc/library/unittest.mock.rst:1548 msgid "" "You can either call :func:`patch.object` with three arguments or two " "arguments. The three argument form takes the object to be patched, the " "attribute name and the object to replace the attribute with." msgstr "" -#: ../Doc/library/unittest.mock.rst:1551 +#: ../Doc/library/unittest.mock.rst:1552 msgid "" "When calling with the two argument form you omit the replacement object, and " "a mock is created for you and passed in as an extra argument to the " "decorated function:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1562 +#: ../Doc/library/unittest.mock.rst:1563 msgid "" "*spec*, *create* and the other arguments to :func:`patch.object` have the " "same meaning as they do for :func:`patch`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1567 +#: ../Doc/library/unittest.mock.rst:1568 msgid "patch.dict" msgstr "" -#: ../Doc/library/unittest.mock.rst:1571 +#: ../Doc/library/unittest.mock.rst:1572 msgid "" "Patch a dictionary, or dictionary like object, and restore the dictionary to " "its original state after the test." msgstr "" -#: ../Doc/library/unittest.mock.rst:1574 +#: ../Doc/library/unittest.mock.rst:1575 msgid "" "*in_dict* can be a dictionary or a mapping like container. If it is a " "mapping then it must at least support getting, setting and deleting items " "plus iterating over keys." msgstr "" -#: ../Doc/library/unittest.mock.rst:1578 +#: ../Doc/library/unittest.mock.rst:1579 msgid "" "*in_dict* can also be a string specifying the name of the dictionary, which " "will then be fetched by importing it." msgstr "" -#: ../Doc/library/unittest.mock.rst:1581 +#: ../Doc/library/unittest.mock.rst:1582 msgid "" "*values* can be a dictionary of values to set in the dictionary. *values* " "can also be an iterable of ``(key, value)`` pairs." msgstr "" -#: ../Doc/library/unittest.mock.rst:1584 +#: ../Doc/library/unittest.mock.rst:1585 msgid "" "If *clear* is true then the dictionary will be cleared before the new values " "are set." msgstr "" -#: ../Doc/library/unittest.mock.rst:1587 +#: ../Doc/library/unittest.mock.rst:1588 msgid "" ":func:`patch.dict` can also be called with arbitrary keyword arguments to " "set values in the dictionary." msgstr "" -#: ../Doc/library/unittest.mock.rst:1592 +#: ../Doc/library/unittest.mock.rst:1593 msgid "" ":func:`patch.dict` now returns the patched dictionary when used as a context " "manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:1595 +#: ../Doc/library/unittest.mock.rst:1596 #, fuzzy msgid "" ":func:`patch.dict` can be used as a context manager, decorator or class " @@ -1485,33 +1485,33 @@ msgstr "" "Comme tout décorateur, :func:`patch` peut être utilisé comme gestionnaire de " "contexte avec une instruction *with* ::" -#: ../Doc/library/unittest.mock.rst:1605 +#: ../Doc/library/unittest.mock.rst:1606 msgid "" "When used as a class decorator :func:`patch.dict` honours ``patch." "TEST_PREFIX`` (default to ``'test'``) for choosing which methods to wrap:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1616 +#: ../Doc/library/unittest.mock.rst:1617 msgid "" "If you want to use a different prefix for your test, you can inform the " "patchers of the different prefix by setting ``patch.TEST_PREFIX``. For more " "details about how to change the value of see :ref:`test-prefix`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1620 +#: ../Doc/library/unittest.mock.rst:1621 msgid "" ":func:`patch.dict` can be used to add members to a dictionary, or simply let " "a test change a dictionary, and ensure the dictionary is restored when the " "test ends." msgstr "" -#: ../Doc/library/unittest.mock.rst:1641 +#: ../Doc/library/unittest.mock.rst:1642 msgid "" "Keywords can be used in the :func:`patch.dict` call to set values in the " "dictionary:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1651 +#: ../Doc/library/unittest.mock.rst:1652 msgid "" ":func:`patch.dict` can be used with dictionary like objects that aren't " "actually dictionaries. At the very minimum they must support item getting, " @@ -1520,18 +1520,18 @@ msgid "" "`__delitem__` and either :meth:`__iter__` or :meth:`__contains__`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1680 +#: ../Doc/library/unittest.mock.rst:1681 msgid "patch.multiple" msgstr "" -#: ../Doc/library/unittest.mock.rst:1684 +#: ../Doc/library/unittest.mock.rst:1685 msgid "" "Perform multiple patches in a single call. It takes the object to be patched " "(either as an object or a string to fetch the object by importing) and " "keyword arguments for the patches::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1691 +#: ../Doc/library/unittest.mock.rst:1692 msgid "" "Use :data:`DEFAULT` as the value if you want :func:`patch.multiple` to " "create mocks for you. In this case the created mocks are passed into a " @@ -1539,7 +1539,7 @@ msgid "" "`patch.multiple` is used as a context manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:1696 +#: ../Doc/library/unittest.mock.rst:1697 msgid "" ":func:`patch.multiple` can be used as a decorator, class decorator or a " "context manager. The arguments *spec*, *spec_set*, *create*, *autospec* and " @@ -1547,13 +1547,13 @@ msgid "" "will be applied to *all* patches done by :func:`patch.multiple`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1701 +#: ../Doc/library/unittest.mock.rst:1702 msgid "" "When used as a class decorator :func:`patch.multiple` honours ``patch." "TEST_PREFIX`` for choosing which methods to wrap." msgstr "" -#: ../Doc/library/unittest.mock.rst:1704 +#: ../Doc/library/unittest.mock.rst:1705 msgid "" "If you want :func:`patch.multiple` to create mocks for you, then you can " "use :data:`DEFAULT` as the value. If you use :func:`patch.multiple` as a " @@ -1561,32 +1561,32 @@ msgid "" "keyword. ::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1718 +#: ../Doc/library/unittest.mock.rst:1719 msgid "" ":func:`patch.multiple` can be nested with other ``patch`` decorators, but " "put arguments passed by keyword *after* any of the standard arguments " "created by :func:`patch`::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1730 +#: ../Doc/library/unittest.mock.rst:1731 msgid "" "If :func:`patch.multiple` is used as a context manager, the value returned " "by the context manager is a dictionary where created mocks are keyed by " "name::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1744 +#: ../Doc/library/unittest.mock.rst:1745 msgid "patch methods: start and stop" msgstr "" -#: ../Doc/library/unittest.mock.rst:1746 +#: ../Doc/library/unittest.mock.rst:1747 msgid "" "All the patchers have :meth:`start` and :meth:`stop` methods. These make it " "simpler to do patching in ``setUp`` methods or where you want to do multiple " "patches without nesting decorators or with statements." msgstr "" -#: ../Doc/library/unittest.mock.rst:1750 +#: ../Doc/library/unittest.mock.rst:1751 msgid "" "To use them call :func:`patch`, :func:`patch.object` or :func:`patch.dict` " "as normal and keep a reference to the returned ``patcher`` object. You can " @@ -1594,19 +1594,19 @@ msgid "" "it." msgstr "" -#: ../Doc/library/unittest.mock.rst:1754 +#: ../Doc/library/unittest.mock.rst:1755 msgid "" "If you are using :func:`patch` to create a mock for you then it will be " "returned by the call to ``patcher.start``. ::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1768 +#: ../Doc/library/unittest.mock.rst:1769 msgid "" "A typical use case for this might be for doing multiple patches in the " "``setUp`` method of a :class:`TestCase`::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1790 +#: ../Doc/library/unittest.mock.rst:1791 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 " @@ -1614,37 +1614,37 @@ msgid "" "`unittest.TestCase.addCleanup` makes this easier::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1805 +#: ../Doc/library/unittest.mock.rst:1806 msgid "" "As an added bonus you no longer need to keep a reference to the ``patcher`` " "object." msgstr "" -#: ../Doc/library/unittest.mock.rst:1808 +#: ../Doc/library/unittest.mock.rst:1809 msgid "" "It is also possible to stop all patches which have been started by using :" "func:`patch.stopall`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1813 +#: ../Doc/library/unittest.mock.rst:1814 msgid "Stop all active patches. Only stops patches started with ``start``." msgstr "" -#: ../Doc/library/unittest.mock.rst:1819 +#: ../Doc/library/unittest.mock.rst:1820 msgid "patch builtins" msgstr "" -#: ../Doc/library/unittest.mock.rst:1820 +#: ../Doc/library/unittest.mock.rst:1821 msgid "" "You can patch any builtins within a module. The following example patches " "builtin :func:`ord`::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1835 +#: ../Doc/library/unittest.mock.rst:1836 msgid "TEST_PREFIX" msgstr "" -#: ../Doc/library/unittest.mock.rst:1837 +#: ../Doc/library/unittest.mock.rst:1838 msgid "" "All of the patchers can be used as class decorators. When used in this way " "they wrap every test method on the class. The patchers recognise methods " @@ -1652,39 +1652,39 @@ msgid "" "the :class:`unittest.TestLoader` finds test methods by default." msgstr "" -#: ../Doc/library/unittest.mock.rst:1842 +#: ../Doc/library/unittest.mock.rst:1843 msgid "" "It is possible that you want to use a different prefix for your tests. You " "can inform the patchers of the different prefix by setting ``patch." "TEST_PREFIX``::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1865 +#: ../Doc/library/unittest.mock.rst:1866 msgid "Nesting Patch Decorators" msgstr "" -#: ../Doc/library/unittest.mock.rst:1867 +#: ../Doc/library/unittest.mock.rst:1868 msgid "" "If you want to perform multiple patches then you can simply stack up the " "decorators." msgstr "" -#: ../Doc/library/unittest.mock.rst:1870 +#: ../Doc/library/unittest.mock.rst:1871 msgid "You can stack up multiple patch decorators using this pattern:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1886 +#: ../Doc/library/unittest.mock.rst:1887 msgid "" "Note that the decorators are applied from the bottom upwards. This is the " "standard way that Python applies decorators. The order of the created mocks " "passed into your test function matches this order." msgstr "" -#: ../Doc/library/unittest.mock.rst:1894 +#: ../Doc/library/unittest.mock.rst:1895 msgid "Where to patch" msgstr "" -#: ../Doc/library/unittest.mock.rst:1896 +#: ../Doc/library/unittest.mock.rst:1897 msgid "" ":func:`patch` works by (temporarily) changing the object that a *name* " "points to with another one. There can be many names pointing to any " @@ -1692,19 +1692,19 @@ msgid "" "the name used by the system under test." msgstr "" -#: ../Doc/library/unittest.mock.rst:1901 +#: ../Doc/library/unittest.mock.rst:1902 msgid "" "The basic principle is that you patch where an object is *looked up*, which " "is not necessarily the same place as where it is defined. A couple of " "examples will help to clarify this." msgstr "" -#: ../Doc/library/unittest.mock.rst:1905 +#: ../Doc/library/unittest.mock.rst:1906 msgid "" "Imagine we have a project that we want to test with the following structure::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1914 +#: ../Doc/library/unittest.mock.rst:1915 msgid "" "Now we want to test ``some_function`` but we want to mock out ``SomeClass`` " "using :func:`patch`. The problem is that when we import module b, which we " @@ -1714,7 +1714,7 @@ msgid "" "like our patching had no effect." msgstr "" -#: ../Doc/library/unittest.mock.rst:1921 +#: ../Doc/library/unittest.mock.rst:1922 msgid "" "The key is to patch out ``SomeClass`` where it is used (or where it is " "looked up). In this case ``some_function`` will actually look up " @@ -1722,7 +1722,7 @@ msgid "" "look like::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1927 +#: ../Doc/library/unittest.mock.rst:1928 msgid "" "However, consider the alternative scenario where instead of ``from a import " "SomeClass`` module b does ``import a`` and ``some_function`` uses ``a." @@ -1731,11 +1731,11 @@ msgid "" "``a.SomeClass`` instead::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1936 +#: ../Doc/library/unittest.mock.rst:1937 msgid "Patching Descriptors and Proxy Objects" msgstr "" -#: ../Doc/library/unittest.mock.rst:1938 +#: ../Doc/library/unittest.mock.rst:1939 msgid "" "Both patch_ and patch.object_ correctly patch and restore descriptors: class " "methods, static methods and properties. You should patch these on the " @@ -1744,22 +1744,22 @@ msgid "" "voidspace.org.uk/python/weblog/arch_d7_2010_12_04.shtml#e1198>`_." msgstr "" -#: ../Doc/library/unittest.mock.rst:1946 +#: ../Doc/library/unittest.mock.rst:1947 msgid "MagicMock and magic method support" msgstr "" -#: ../Doc/library/unittest.mock.rst:1951 +#: ../Doc/library/unittest.mock.rst:1952 msgid "Mocking Magic Methods" msgstr "" -#: ../Doc/library/unittest.mock.rst:1953 +#: ../Doc/library/unittest.mock.rst:1954 msgid "" ":class:`Mock` supports mocking the Python protocol methods, also known as " "\"magic methods\". This allows mock objects to replace containers or other " "objects that implement Python protocols." msgstr "" -#: ../Doc/library/unittest.mock.rst:1957 +#: ../Doc/library/unittest.mock.rst:1958 msgid "" "Because magic methods are looked up differently from normal methods [#]_, " "this support has been specially implemented. This means that only specific " @@ -1767,74 +1767,74 @@ msgid "" "them. If there are any missing that you need please let us know." msgstr "" -#: ../Doc/library/unittest.mock.rst:1962 +#: ../Doc/library/unittest.mock.rst:1963 msgid "" "You mock magic methods by setting the method you are interested in to a " "function or a mock instance. If you are using a function then it *must* take " "``self`` as the first argument [#]_." msgstr "" -#: ../Doc/library/unittest.mock.rst:1985 +#: ../Doc/library/unittest.mock.rst:1986 msgid "" "One use case for this is for mocking objects used as context managers in a :" "keyword:`with` statement:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1997 +#: ../Doc/library/unittest.mock.rst:1998 msgid "" "Calls to magic methods do not appear in :attr:`~Mock.method_calls`, but they " "are recorded in :attr:`~Mock.mock_calls`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2002 +#: ../Doc/library/unittest.mock.rst:2003 msgid "" "If you use the *spec* keyword argument to create a mock then attempting to " "set a magic method that isn't in the spec will raise an :exc:" "`AttributeError`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2005 +#: ../Doc/library/unittest.mock.rst:2006 msgid "The full list of supported magic methods is:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2007 +#: ../Doc/library/unittest.mock.rst:2008 msgid "``__hash__``, ``__sizeof__``, ``__repr__`` and ``__str__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2008 +#: ../Doc/library/unittest.mock.rst:2009 msgid "``__dir__``, ``__format__`` and ``__subclasses__``" msgstr "``__dir__``, ``__format__`` et ``__subclasses__``" -#: ../Doc/library/unittest.mock.rst:2009 +#: ../Doc/library/unittest.mock.rst:2010 #, fuzzy msgid "``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``" msgstr "``__floor__``, ``__trunc__`` et ``__ceil__``" -#: ../Doc/library/unittest.mock.rst:2010 +#: ../Doc/library/unittest.mock.rst:2011 msgid "" "Comparisons: ``__lt__``, ``__gt__``, ``__le__``, ``__ge__``, ``__eq__`` and " "``__ne__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2012 +#: ../Doc/library/unittest.mock.rst:2013 msgid "" "Container methods: ``__getitem__``, ``__setitem__``, ``__delitem__``, " "``__contains__``, ``__len__``, ``__iter__``, ``__reversed__`` and " "``__missing__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2015 +#: ../Doc/library/unittest.mock.rst:2016 #, fuzzy msgid "" "Context manager: ``__enter__``, ``__exit__``, ``__aenter__`` and " "``__aexit__``" msgstr "``__get__``, ``__set__`` et ``__delete__``" -#: ../Doc/library/unittest.mock.rst:2016 +#: ../Doc/library/unittest.mock.rst:2017 msgid "Unary numeric methods: ``__neg__``, ``__pos__`` and ``__invert__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2017 +#: ../Doc/library/unittest.mock.rst:2018 msgid "" "The numeric methods (including right hand and in-place variants): " "``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__div__``, " @@ -1843,100 +1843,100 @@ msgid "" "``__pow__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2021 +#: ../Doc/library/unittest.mock.rst:2022 msgid "" "Numeric conversion methods: ``__complex__``, ``__int__``, ``__float__`` and " "``__index__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2023 +#: ../Doc/library/unittest.mock.rst:2024 msgid "Descriptor methods: ``__get__``, ``__set__`` and ``__delete__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2024 +#: ../Doc/library/unittest.mock.rst:2025 msgid "" "Pickling: ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, " "``__getnewargs__``, ``__getstate__`` and ``__setstate__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2026 +#: ../Doc/library/unittest.mock.rst:2027 msgid "File system path representation: ``__fspath__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2027 +#: ../Doc/library/unittest.mock.rst:2028 msgid "Asynchronous iteration methods: ``__aiter__`` and ``__anext__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2029 +#: ../Doc/library/unittest.mock.rst:2030 msgid "Added support for :func:`os.PathLike.__fspath__`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2032 +#: ../Doc/library/unittest.mock.rst:2033 msgid "" "Added support for ``__aenter__``, ``__aexit__``, ``__aiter__`` and " "``__anext__``." msgstr "" -#: ../Doc/library/unittest.mock.rst:2036 +#: ../Doc/library/unittest.mock.rst:2037 msgid "" "The following methods exist but are *not* supported as they are either in " "use by mock, can't be set dynamically, or can cause problems:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2039 +#: ../Doc/library/unittest.mock.rst:2040 msgid "``__getattr__``, ``__setattr__``, ``__init__`` and ``__new__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2040 +#: ../Doc/library/unittest.mock.rst:2041 msgid "" "``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2045 +#: ../Doc/library/unittest.mock.rst:2046 msgid "Magic Mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:2047 +#: ../Doc/library/unittest.mock.rst:2048 msgid "" "There are two ``MagicMock`` variants: :class:`MagicMock` and :class:" "`NonCallableMagicMock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2052 +#: ../Doc/library/unittest.mock.rst:2053 msgid "" "``MagicMock`` is a subclass of :class:`Mock` with default implementations of " "most of the magic methods. You can use ``MagicMock`` without having to " "configure the magic methods yourself." msgstr "" -#: ../Doc/library/unittest.mock.rst:2056 +#: ../Doc/library/unittest.mock.rst:2057 msgid "The constructor parameters have the same meaning as for :class:`Mock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2058 +#: ../Doc/library/unittest.mock.rst:2059 msgid "" "If you use the *spec* or *spec_set* arguments then *only* magic methods that " "exist in the spec will be created." msgstr "" -#: ../Doc/library/unittest.mock.rst:2064 +#: ../Doc/library/unittest.mock.rst:2065 msgid "A non-callable version of :class:`MagicMock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2066 +#: ../Doc/library/unittest.mock.rst:2067 msgid "" "The constructor parameters have the same meaning as for :class:`MagicMock`, " "with the exception of *return_value* and *side_effect* which have no meaning " "on a non-callable mock." msgstr "" -#: ../Doc/library/unittest.mock.rst:2070 +#: ../Doc/library/unittest.mock.rst:2071 msgid "" "The magic methods are setup with :class:`MagicMock` objects, so you can " "configure them and use them in the usual way:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2080 +#: ../Doc/library/unittest.mock.rst:2081 msgid "" "By default many of the protocol methods are required to return objects of a " "specific type. These methods are preconfigured with a default return value, " @@ -1945,83 +1945,83 @@ msgid "" "manually if you want to change the default." msgstr "" -#: ../Doc/library/unittest.mock.rst:2086 +#: ../Doc/library/unittest.mock.rst:2087 msgid "Methods and their defaults:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2088 +#: ../Doc/library/unittest.mock.rst:2089 msgid "``__lt__``: ``NotImplemented``" msgstr "``__lt__``: ``NotImplemented``" -#: ../Doc/library/unittest.mock.rst:2089 +#: ../Doc/library/unittest.mock.rst:2090 msgid "``__gt__``: ``NotImplemented``" msgstr "``__gt__``: ``NotImplemented``" -#: ../Doc/library/unittest.mock.rst:2090 +#: ../Doc/library/unittest.mock.rst:2091 msgid "``__le__``: ``NotImplemented``" msgstr "``__le__``: ``NotImplemented``" -#: ../Doc/library/unittest.mock.rst:2091 +#: ../Doc/library/unittest.mock.rst:2092 msgid "``__ge__``: ``NotImplemented``" msgstr "``__ge__``: ``NotImplemented``" -#: ../Doc/library/unittest.mock.rst:2092 +#: ../Doc/library/unittest.mock.rst:2093 msgid "``__int__``: ``1``" msgstr "``__int__``: ``1``" -#: ../Doc/library/unittest.mock.rst:2093 +#: ../Doc/library/unittest.mock.rst:2094 msgid "``__contains__``: ``False``" msgstr "``__contains__``: ``False``" -#: ../Doc/library/unittest.mock.rst:2094 +#: ../Doc/library/unittest.mock.rst:2095 msgid "``__len__``: ``0``" msgstr "``__int__``: ``0``" -#: ../Doc/library/unittest.mock.rst:2095 +#: ../Doc/library/unittest.mock.rst:2096 msgid "``__iter__``: ``iter([])``" msgstr "``__iter__``: ``iter([])``" -#: ../Doc/library/unittest.mock.rst:2096 +#: ../Doc/library/unittest.mock.rst:2097 msgid "``__exit__``: ``False``" msgstr "``__exit__``: ``False``" -#: ../Doc/library/unittest.mock.rst:2097 +#: ../Doc/library/unittest.mock.rst:2098 msgid "``__aexit__``: ``False``" msgstr "``__exit__``: ``False``" -#: ../Doc/library/unittest.mock.rst:2098 +#: ../Doc/library/unittest.mock.rst:2099 msgid "``__complex__``: ``1j``" msgstr "``__complex__``: ``1j``" -#: ../Doc/library/unittest.mock.rst:2099 +#: ../Doc/library/unittest.mock.rst:2100 msgid "``__float__``: ``1.0``" msgstr "``__float__``: ``1.0``" -#: ../Doc/library/unittest.mock.rst:2100 +#: ../Doc/library/unittest.mock.rst:2101 msgid "``__bool__``: ``True``" msgstr "``__bool__``: ``True``" -#: ../Doc/library/unittest.mock.rst:2101 +#: ../Doc/library/unittest.mock.rst:2102 msgid "``__index__``: ``1``" msgstr "``__index__``: ``1``" -#: ../Doc/library/unittest.mock.rst:2102 +#: ../Doc/library/unittest.mock.rst:2103 msgid "``__hash__``: default hash for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:2103 +#: ../Doc/library/unittest.mock.rst:2104 msgid "``__str__``: default str for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:2104 +#: ../Doc/library/unittest.mock.rst:2105 msgid "``__sizeof__``: default sizeof for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:2106 +#: ../Doc/library/unittest.mock.rst:2107 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/library/unittest.mock.rst:2118 +#: ../Doc/library/unittest.mock.rst:2119 msgid "" "The two equality methods, :meth:`__eq__` and :meth:`__ne__`, are special. " "They do the default equality comparison on identity, using the :attr:`~Mock." @@ -2029,102 +2029,102 @@ msgid "" "something else::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2132 +#: ../Doc/library/unittest.mock.rst:2133 msgid "" "The return value of :meth:`MagicMock.__iter__` can be any iterable object " "and isn't required to be an iterator:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2142 +#: ../Doc/library/unittest.mock.rst:2143 msgid "" "If the return value *is* an iterator, then iterating over it once will " "consume it and subsequent iterations will result in an empty list:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2151 +#: ../Doc/library/unittest.mock.rst:2152 msgid "" "``MagicMock`` has all of the supported magic methods configured except for " "some of the obscure and obsolete ones. You can still set these up if you " "want." msgstr "" -#: ../Doc/library/unittest.mock.rst:2154 +#: ../Doc/library/unittest.mock.rst:2155 msgid "" "Magic methods that are supported but not setup by default in ``MagicMock`` " "are:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2156 +#: ../Doc/library/unittest.mock.rst:2157 msgid "``__subclasses__``" msgstr "``__subclasses__``" -#: ../Doc/library/unittest.mock.rst:2157 +#: ../Doc/library/unittest.mock.rst:2158 msgid "``__dir__``" msgstr "``__dir__``" -#: ../Doc/library/unittest.mock.rst:2158 +#: ../Doc/library/unittest.mock.rst:2159 msgid "``__format__``" msgstr "``__format__``" -#: ../Doc/library/unittest.mock.rst:2159 +#: ../Doc/library/unittest.mock.rst:2160 msgid "``__get__``, ``__set__`` and ``__delete__``" msgstr "``__get__``, ``__set__`` et ``__delete__``" -#: ../Doc/library/unittest.mock.rst:2160 +#: ../Doc/library/unittest.mock.rst:2161 msgid "``__reversed__`` and ``__missing__``" msgstr "``__reversed__`` et ``__missing__``" -#: ../Doc/library/unittest.mock.rst:2161 +#: ../Doc/library/unittest.mock.rst:2162 msgid "" "``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``, " "``__getstate__`` and ``__setstate__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:2163 +#: ../Doc/library/unittest.mock.rst:2164 msgid "``__getformat__`` and ``__setformat__``" msgstr "``__getformat__`` et ``__setformat__``" -#: ../Doc/library/unittest.mock.rst:2167 +#: ../Doc/library/unittest.mock.rst:2168 msgid "" "Magic methods *should* be looked up on the class rather than the instance. " "Different versions of Python are inconsistent about applying this rule. The " "supported protocol methods should work with all supported versions of Python." msgstr "" -#: ../Doc/library/unittest.mock.rst:2171 +#: ../Doc/library/unittest.mock.rst:2172 msgid "" "The function is basically hooked up to the class, but each ``Mock`` instance " "is kept isolated from the others." msgstr "" -#: ../Doc/library/unittest.mock.rst:2176 +#: ../Doc/library/unittest.mock.rst:2177 msgid "Helpers" msgstr "" -#: ../Doc/library/unittest.mock.rst:2179 +#: ../Doc/library/unittest.mock.rst:2180 msgid "sentinel" msgstr "" -#: ../Doc/library/unittest.mock.rst:2183 +#: ../Doc/library/unittest.mock.rst:2184 msgid "" "The ``sentinel`` object provides a convenient way of providing unique " "objects for your tests." msgstr "" -#: ../Doc/library/unittest.mock.rst:2186 +#: ../Doc/library/unittest.mock.rst:2187 msgid "" "Attributes are created on demand when you access them by name. Accessing the " "same attribute will always return the same object. The objects returned have " "a sensible repr so that test failure messages are readable." msgstr "" -#: ../Doc/library/unittest.mock.rst:2190 +#: ../Doc/library/unittest.mock.rst:2191 msgid "" "The ``sentinel`` attributes now preserve their identity when they are :mod:" "`copied ` or :mod:`pickled `." msgstr "" -#: ../Doc/library/unittest.mock.rst:2194 +#: ../Doc/library/unittest.mock.rst:2195 msgid "" "Sometimes when testing you need to test that a specific object is passed as " "an argument to another method, or returned. It can be common to create named " @@ -2132,28 +2132,28 @@ msgid "" "creating and testing the identity of objects like this." msgstr "" -#: ../Doc/library/unittest.mock.rst:2199 +#: ../Doc/library/unittest.mock.rst:2200 msgid "" "In this example we monkey patch ``method`` to return ``sentinel." "some_object``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2211 +#: ../Doc/library/unittest.mock.rst:2212 msgid "DEFAULT" msgstr "" -#: ../Doc/library/unittest.mock.rst:2216 +#: ../Doc/library/unittest.mock.rst:2217 msgid "" "The :data:`DEFAULT` object is a pre-created sentinel (actually ``sentinel." "DEFAULT``). It can be used by :attr:`~Mock.side_effect` functions to " "indicate that the normal return value should be used." msgstr "" -#: ../Doc/library/unittest.mock.rst:2222 +#: ../Doc/library/unittest.mock.rst:2223 msgid "call" msgstr "" -#: ../Doc/library/unittest.mock.rst:2226 +#: ../Doc/library/unittest.mock.rst:2227 msgid "" ":func:`call` is a helper object for making simpler assertions, for comparing " "with :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`, :attr:`~Mock." @@ -2161,13 +2161,13 @@ msgid "" "with :meth:`~Mock.assert_has_calls`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2239 +#: ../Doc/library/unittest.mock.rst:2240 msgid "" "For a call object that represents multiple calls, :meth:`call_list` returns " "a list of all the intermediate calls as well as the final call." msgstr "" -#: ../Doc/library/unittest.mock.rst:2243 +#: ../Doc/library/unittest.mock.rst:2244 msgid "" "``call_list`` is particularly useful for making assertions on \"chained calls" "\". A chained call is multiple calls on a single line of code. This results " @@ -2175,13 +2175,13 @@ msgid "" "constructing the sequence of calls can be tedious." msgstr "" -#: ../Doc/library/unittest.mock.rst:2248 +#: ../Doc/library/unittest.mock.rst:2249 msgid "" ":meth:`~call.call_list` can construct the sequence of calls from the same " "chained call:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2265 +#: ../Doc/library/unittest.mock.rst:2266 msgid "" "A ``call`` object is either a tuple of (positional args, keyword args) or " "(name, positional args, keyword args) depending on how it was constructed. " @@ -2191,7 +2191,7 @@ msgid "" "to get at the individual arguments they contain." msgstr "" -#: ../Doc/library/unittest.mock.rst:2272 +#: ../Doc/library/unittest.mock.rst:2273 msgid "" "The ``call`` objects in :attr:`Mock.call_args` and :attr:`Mock." "call_args_list` are two-tuples of (positional args, keyword args) whereas " @@ -2200,7 +2200,7 @@ msgid "" "args)." msgstr "" -#: ../Doc/library/unittest.mock.rst:2277 +#: ../Doc/library/unittest.mock.rst:2278 msgid "" "You can use their \"tupleness\" to pull out the individual arguments for " "more complex introspection and assertions. The positional arguments are a " @@ -2208,29 +2208,29 @@ msgid "" "arguments are a dictionary:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2310 +#: ../Doc/library/unittest.mock.rst:2311 msgid "create_autospec" msgstr "" -#: ../Doc/library/unittest.mock.rst:2314 +#: ../Doc/library/unittest.mock.rst:2315 msgid "" "Create a mock object using another object as a spec. Attributes on the mock " "will use the corresponding attribute on the *spec* object as their spec." msgstr "" -#: ../Doc/library/unittest.mock.rst:2318 +#: ../Doc/library/unittest.mock.rst:2319 msgid "" "Functions or methods being mocked will have their arguments checked to " "ensure that they are called with the correct signature." msgstr "" -#: ../Doc/library/unittest.mock.rst:2321 +#: ../Doc/library/unittest.mock.rst:2322 msgid "" "If *spec_set* is ``True`` then attempting to set attributes that don't exist " "on the spec object will raise an :exc:`AttributeError`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2324 +#: ../Doc/library/unittest.mock.rst:2325 msgid "" "If a class is used as a spec then the return value of the mock (the instance " "of the class) will have the same spec. You can use a class as the spec for " @@ -2238,29 +2238,29 @@ msgid "" "be callable if instances of the mock are callable." msgstr "" -#: ../Doc/library/unittest.mock.rst:2329 +#: ../Doc/library/unittest.mock.rst:2330 msgid "" ":func:`create_autospec` also takes arbitrary keyword arguments that are " "passed to the constructor of the created mock." msgstr "" -#: ../Doc/library/unittest.mock.rst:2332 +#: ../Doc/library/unittest.mock.rst:2333 msgid "" "See :ref:`auto-speccing` for examples of how to use auto-speccing with :func:" "`create_autospec` and the *autospec* argument to :func:`patch`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2338 +#: ../Doc/library/unittest.mock.rst:2339 msgid "" ":func:`create_autospec` now returns an :class:`AsyncMock` if the target is " "an async function." msgstr "" -#: ../Doc/library/unittest.mock.rst:2343 +#: ../Doc/library/unittest.mock.rst:2344 msgid "ANY" msgstr "" -#: ../Doc/library/unittest.mock.rst:2347 +#: ../Doc/library/unittest.mock.rst:2348 msgid "" "Sometimes you may need to make assertions about *some* of the arguments in a " "call to mock, but either not care about some of the arguments or want to " @@ -2268,24 +2268,24 @@ msgid "" "assertions on them." msgstr "" -#: ../Doc/library/unittest.mock.rst:2352 +#: ../Doc/library/unittest.mock.rst:2353 msgid "" "To ignore certain arguments you can pass in objects that compare equal to " "*everything*. Calls to :meth:`~Mock.assert_called_with` and :meth:`~Mock." "assert_called_once_with` will then succeed no matter what was passed in." msgstr "" -#: ../Doc/library/unittest.mock.rst:2361 +#: ../Doc/library/unittest.mock.rst:2362 msgid "" ":data:`ANY` can also be used in comparisons with call lists like :attr:" "`~Mock.mock_calls`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2374 +#: ../Doc/library/unittest.mock.rst:2375 msgid "FILTER_DIR" msgstr "" -#: ../Doc/library/unittest.mock.rst:2378 +#: ../Doc/library/unittest.mock.rst:2379 msgid "" ":data:`FILTER_DIR` is a module level variable that controls the way mock " "objects respond to :func:`dir` (only for Python 2.6 or more recent). The " @@ -2294,7 +2294,7 @@ msgid "" "diagnostic purposes, then set ``mock.FILTER_DIR = False``." msgstr "" -#: ../Doc/library/unittest.mock.rst:2384 +#: ../Doc/library/unittest.mock.rst:2385 msgid "" "With filtering on, ``dir(some_mock)`` shows only useful attributes and will " "include any dynamically created attributes that wouldn't normally be shown. " @@ -2303,7 +2303,7 @@ msgid "" "yet:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2411 +#: ../Doc/library/unittest.mock.rst:2412 msgid "" "Many of the not-very-useful (private to :class:`Mock` rather than the thing " "being mocked) underscore and double underscore prefixed attributes have been " @@ -2312,31 +2312,31 @@ msgid "" "switch :data:`FILTER_DIR`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2432 +#: ../Doc/library/unittest.mock.rst:2433 msgid "" "Alternatively you can just use ``vars(my_mock)`` (instance members) and " "``dir(type(my_mock))`` (type members) to bypass the filtering irrespective " "of :data:`mock.FILTER_DIR`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2438 +#: ../Doc/library/unittest.mock.rst:2439 msgid "mock_open" msgstr "" -#: ../Doc/library/unittest.mock.rst:2442 +#: ../Doc/library/unittest.mock.rst:2443 msgid "" "A helper function to create a mock to replace the use of :func:`open`. It " "works for :func:`open` called directly or used as a context manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:2445 +#: ../Doc/library/unittest.mock.rst:2446 msgid "" "The *mock* argument is the mock object to configure. If ``None`` (the " "default) then a :class:`MagicMock` will be created for you, with the API " "limited to methods or attributes available on standard file handles." msgstr "" -#: ../Doc/library/unittest.mock.rst:2449 +#: ../Doc/library/unittest.mock.rst:2450 msgid "" "*read_data* is a string for the :meth:`~io.IOBase.read`, :meth:`~io.IOBase." "readline`, and :meth:`~io.IOBase.readlines` methods of the file handle to " @@ -2349,51 +2349,51 @@ msgid "" "realistic filesystem for testing." msgstr "" -#: ../Doc/library/unittest.mock.rst:2459 +#: ../Doc/library/unittest.mock.rst:2460 msgid "" "Added :meth:`~io.IOBase.readline` and :meth:`~io.IOBase.readlines` support. " "The mock of :meth:`~io.IOBase.read` changed to consume *read_data* rather " "than returning it on each call." msgstr "" -#: ../Doc/library/unittest.mock.rst:2464 +#: ../Doc/library/unittest.mock.rst:2465 msgid "*read_data* is now reset on each call to the *mock*." msgstr "" -#: ../Doc/library/unittest.mock.rst:2467 +#: ../Doc/library/unittest.mock.rst:2468 msgid "" "Added :meth:`__iter__` to implementation so that iteration (such as in for " "loops) correctly consumes *read_data*." msgstr "" -#: ../Doc/library/unittest.mock.rst:2471 +#: ../Doc/library/unittest.mock.rst:2472 msgid "" "Using :func:`open` as a context manager is a great way to ensure your file " "handles are closed properly and is becoming common::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2477 +#: ../Doc/library/unittest.mock.rst:2478 msgid "" "The issue is that even if you mock out the call to :func:`open` it is the " "*returned object* that is used as a context manager (and has :meth:" "`__enter__` and :meth:`__exit__` called)." msgstr "" -#: ../Doc/library/unittest.mock.rst:2481 +#: ../Doc/library/unittest.mock.rst:2482 msgid "" "Mocking context managers with a :class:`MagicMock` is common enough and " "fiddly enough that a helper function is useful. ::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2498 +#: ../Doc/library/unittest.mock.rst:2499 msgid "And for reading files::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2511 +#: ../Doc/library/unittest.mock.rst:2512 msgid "Autospeccing" msgstr "" -#: ../Doc/library/unittest.mock.rst:2513 +#: ../Doc/library/unittest.mock.rst:2514 msgid "" "Autospeccing is based on the existing :attr:`spec` feature of mock. It " "limits the api of mocks to the api of an original object (the spec), but it " @@ -2403,11 +2403,11 @@ msgid "" "`TypeError` if they are called incorrectly." msgstr "" -#: ../Doc/library/unittest.mock.rst:2520 +#: ../Doc/library/unittest.mock.rst:2521 msgid "Before I explain how auto-speccing works, here's why it is needed." msgstr "" -#: ../Doc/library/unittest.mock.rst:2522 +#: ../Doc/library/unittest.mock.rst:2523 msgid "" ":class:`Mock` is a very powerful and flexible object, but it suffers from " "two flaws when used to mock out objects from a system under test. One of " @@ -2415,25 +2415,25 @@ msgid "" "general problem with using mock objects." msgstr "" -#: ../Doc/library/unittest.mock.rst:2527 +#: ../Doc/library/unittest.mock.rst:2528 msgid "" "First the problem specific to :class:`Mock`. :class:`Mock` has two assert " "methods that are extremely handy: :meth:`~Mock.assert_called_with` and :meth:" "`~Mock.assert_called_once_with`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2540 +#: ../Doc/library/unittest.mock.rst:2541 msgid "" "Because mocks auto-create attributes on demand, and allow you to call them " "with arbitrary arguments, if you misspell one of these assert methods then " "your assertion is gone:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2550 +#: ../Doc/library/unittest.mock.rst:2551 msgid "Your tests can pass silently and incorrectly because of the typo." msgstr "" -#: ../Doc/library/unittest.mock.rst:2552 +#: ../Doc/library/unittest.mock.rst:2553 msgid "" "The second issue is more general to mocking. If you refactor some of your " "code, rename members and so on, any tests for code that is still using the " @@ -2441,7 +2441,7 @@ msgid "" "means your tests can all pass even though your code is broken." msgstr "" -#: ../Doc/library/unittest.mock.rst:2557 +#: ../Doc/library/unittest.mock.rst:2558 msgid "" "Note that this is another reason why you need integration tests as well as " "unit tests. Testing everything in isolation is all fine and dandy, but if " @@ -2449,20 +2449,20 @@ msgid "" "room for bugs that tests might have caught." msgstr "" -#: ../Doc/library/unittest.mock.rst:2562 +#: ../Doc/library/unittest.mock.rst:2563 msgid "" ":mod:`mock` already provides a feature to help with this, called speccing. " "If you use a class or instance as the :attr:`spec` for a mock then you can " "only access attributes on the mock that exist on the real class:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2573 +#: ../Doc/library/unittest.mock.rst:2574 msgid "" "The spec only applies to the mock itself, so we still have the same issue " "with any methods on the mock:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2582 +#: ../Doc/library/unittest.mock.rst:2583 msgid "" "Auto-speccing solves this problem. You can either pass ``autospec=True`` to :" "func:`patch` / :func:`patch.object` or use the :func:`create_autospec` " @@ -2474,24 +2474,24 @@ msgid "" "import modules) without a big performance hit." msgstr "" -#: ../Doc/library/unittest.mock.rst:2591 +#: ../Doc/library/unittest.mock.rst:2592 msgid "Here's an example of it in use::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2601 +#: ../Doc/library/unittest.mock.rst:2602 msgid "" "You can see that :class:`request.Request` has a spec. :class:`request." "Request` takes two arguments in the constructor (one of which is *self*). " "Here's what happens if we try to call it incorrectly::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2610 +#: ../Doc/library/unittest.mock.rst:2611 msgid "" "The spec also applies to instantiated classes (i.e. the return value of " "specced mocks)::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2617 +#: ../Doc/library/unittest.mock.rst:2618 msgid "" ":class:`Request` objects are not callable, so the return value of " "instantiating our mocked out :class:`request.Request` is a non-callable " @@ -2499,20 +2499,20 @@ msgid "" "error::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2629 +#: ../Doc/library/unittest.mock.rst:2630 msgid "" "In many cases you will just be able to add ``autospec=True`` to your " "existing :func:`patch` calls and then be protected against bugs due to typos " "and api changes." msgstr "" -#: ../Doc/library/unittest.mock.rst:2633 +#: ../Doc/library/unittest.mock.rst:2634 msgid "" "As well as using *autospec* through :func:`patch` there is a :func:" "`create_autospec` for creating autospecced mocks directly:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2641 +#: ../Doc/library/unittest.mock.rst:2642 msgid "" "This isn't without caveats and limitations however, which is why it is not " "the default behaviour. In order to know what attributes are available on the " @@ -2524,7 +2524,7 @@ msgid "" "objects so that introspection is safe [#]_." msgstr "" -#: ../Doc/library/unittest.mock.rst:2650 +#: ../Doc/library/unittest.mock.rst:2651 msgid "" "A more serious problem is that it is common for instance attributes to be " "created in the :meth:`__init__` method and not to exist on the class at all. " @@ -2532,7 +2532,7 @@ msgid "" "the api to visible attributes. ::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2667 +#: ../Doc/library/unittest.mock.rst:2668 msgid "" "There are a few different ways of resolving this problem. The easiest, but " "not necessarily the least annoying, way is to simply set the required " @@ -2541,7 +2541,7 @@ msgid "" "setting them::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2678 +#: ../Doc/library/unittest.mock.rst:2679 msgid "" "There is a more aggressive version of both *spec* and *autospec* that *does* " "prevent you setting non-existent attributes. This is useful if you want to " @@ -2549,7 +2549,7 @@ msgid "" "this particular scenario:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2691 +#: ../Doc/library/unittest.mock.rst:2692 msgid "" "Probably the best way of solving the problem is to add class attributes as " "default values for instance members initialised in :meth:`__init__`. Note " @@ -2558,7 +2558,7 @@ msgid "" "faster too. e.g." msgstr "" -#: ../Doc/library/unittest.mock.rst:2701 +#: ../Doc/library/unittest.mock.rst:2702 msgid "" "This brings up another issue. It is relatively common to provide a default " "value of ``None`` for members that will later be an object of a different " @@ -2569,7 +2569,7 @@ msgid "" "These will just be ordinary mocks (well - MagicMocks):" msgstr "" -#: ../Doc/library/unittest.mock.rst:2716 +#: ../Doc/library/unittest.mock.rst:2717 msgid "" "If modifying your production classes to add defaults isn't to your liking " "then there are more options. One of these is simply to use an instance as " @@ -2580,25 +2580,25 @@ msgid "" "alternative object as the *autospec* argument::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2737 +#: ../Doc/library/unittest.mock.rst:2738 msgid "" "This only applies to classes or already instantiated objects. Calling a " "mocked class to create a mock instance *does not* create a real instance. It " "is only attribute lookups - along with calls to :func:`dir` - that are done." msgstr "" -#: ../Doc/library/unittest.mock.rst:2742 +#: ../Doc/library/unittest.mock.rst:2743 msgid "Sealing mocks" msgstr "" -#: ../Doc/library/unittest.mock.rst:2751 +#: ../Doc/library/unittest.mock.rst:2752 msgid "" "Seal will disable the automatic creation of mocks when accessing an " "attribute of the mock being sealed or any of its attributes that are already " "mocks recursively." msgstr "" -#: ../Doc/library/unittest.mock.rst:2754 +#: ../Doc/library/unittest.mock.rst:2755 msgid "" "If a mock instance with a name or a spec is assigned to an attribute it " "won't be considered in the sealing chain. This allows one to prevent seal " diff --git a/library/venv.po b/library/venv.po index 8b51cedc..8b3cf7dc 100644 --- a/library/venv.po +++ b/library/venv.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-09-06 13:49+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -58,7 +58,7 @@ msgstr "" msgid "Creating virtual environments" msgstr "Création d'environnements virtuels" -#: ../Doc/using/venv-create.inc:1 +#: Doc/using/venv-create.inc:1 msgid "" "Creation of :ref:`virtual environments ` is done by executing the " "command ``venv``::" @@ -66,7 +66,7 @@ msgstr "" "La création d':ref:`environnements virtuels ` est faite en " "exécutant la commande ``venv`` ::" -#: ../Doc/using/venv-create.inc:6 +#: Doc/using/venv-create.inc:6 #, fuzzy msgid "" "Running this command creates the target directory (creating any parent " @@ -91,7 +91,7 @@ msgstr "" "packages`` (Sur Windows, c'est ``Lib\\site-packages``). Si un dossier " "existant est spécifié, il sera réutilisé." -#: ../Doc/using/venv-create.inc:17 +#: Doc/using/venv-create.inc:17 msgid "" "``pyvenv`` was the recommended tool for creating virtual environments for " "Python 3.3 and 3.4, and is `deprecated in Python 3.6 `_." -#: ../Doc/using/venv-create.inc:22 +#: Doc/using/venv-create.inc:22 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:27 +#: Doc/using/venv-create.inc:27 msgid "On Windows, invoke the ``venv`` command as follows::" msgstr "Sur Windows, appelez la commande ``venv`` comme suit ::" -#: ../Doc/using/venv-create.inc:31 +#: Doc/using/venv-create.inc:31 msgid "" "Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " "your :ref:`Python installation `::" @@ -120,19 +120,19 @@ msgstr "" "Alternativement, si vous avez configuré les variables ``PATH`` et " "``PATHEXT`` pour votre :ref:`installation Python ` ::" -#: ../Doc/using/venv-create.inc:36 +#: Doc/using/venv-create.inc:36 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:68 +#: Doc/using/venv-create.inc:68 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:72 +#: Doc/using/venv-create.inc:72 msgid "" "In earlier versions, if the target directory already existed, an error was " "raised, unless the ``--clear`` or ``--upgrade`` option was provided." @@ -141,7 +141,7 @@ msgstr "" "une erreur était levée, sauf si l'option ``--clear`` ou ``--upgrade`` était " "incluse." -#: ../Doc/using/venv-create.inc:77 +#: Doc/using/venv-create.inc:77 msgid "" "While symlinks are supported on Windows, they are not recommended. Of " "particular note is that double-clicking ``python.exe`` in File Explorer will " @@ -152,7 +152,7 @@ msgstr "" "``python.exe`` dans l'Explorateur de fichiers suivra le lien symbolique et " "ignorera l'environnement virtuel." -#: ../Doc/using/venv-create.inc:81 +#: Doc/using/venv-create.inc:81 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-" @@ -162,7 +162,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:85 +#: Doc/using/venv-create.inc:85 msgid "" "Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " "invoked to bootstrap ``pip`` into the virtual environment." @@ -170,7 +170,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:88 +#: Doc/using/venv-create.inc:88 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 " @@ -180,7 +180,7 @@ msgstr "" "environnement virtuel sera créé, en fonction des options incluses, à chaque " "chemin donné." -#: ../Doc/using/venv-create.inc:92 +#: Doc/using/venv-create.inc:92 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 " @@ -193,76 +193,76 @@ msgstr "" "être remplacé par le chemin d'accès du répertoire contenant l'environnement " "virtuel) :" -#: ../Doc/using/venv-create.inc:98 +#: Doc/using/venv-create.inc:98 msgid "Platform" msgstr "Plateforme" -#: ../Doc/using/venv-create.inc:98 +#: Doc/using/venv-create.inc:98 msgid "Shell" msgstr "Invite de commande" -#: ../Doc/using/venv-create.inc:98 +#: Doc/using/venv-create.inc:98 msgid "Command to activate virtual environment" msgstr "Commande pour activer l'environnement virtuel" -#: ../Doc/using/venv-create.inc:100 +#: Doc/using/venv-create.inc:100 msgid "POSIX" msgstr "" -#: ../Doc/using/venv-create.inc:100 +#: Doc/using/venv-create.inc:100 msgid "bash/zsh" msgstr "bash/zsh" -#: ../Doc/using/venv-create.inc:100 +#: Doc/using/venv-create.inc:100 msgid "$ source /bin/activate" msgstr "``$ source /bin/activate``" -#: ../Doc/using/venv-create.inc:102 +#: Doc/using/venv-create.inc:102 msgid "fish" msgstr "fish" -#: ../Doc/using/venv-create.inc:102 +#: Doc/using/venv-create.inc:102 msgid "$ . /bin/activate.fish" msgstr "``$ . /bin/activate.fish``" -#: ../Doc/using/venv-create.inc:104 +#: Doc/using/venv-create.inc:104 msgid "csh/tcsh" msgstr "csh/tcsh" -#: ../Doc/using/venv-create.inc:104 +#: Doc/using/venv-create.inc:104 msgid "$ source /bin/activate.csh" msgstr "``$ source /bin/activate.csh``" -#: ../Doc/using/venv-create.inc:106 +#: Doc/using/venv-create.inc:106 msgid "PowerShell Core" msgstr "PowerShell Core" -#: ../Doc/using/venv-create.inc:106 +#: Doc/using/venv-create.inc:106 #, fuzzy msgid "$ /bin/Activate.ps1" msgstr "``$ . /bin/activate.fish``" -#: ../Doc/using/venv-create.inc:108 +#: Doc/using/venv-create.inc:108 msgid "Windows" msgstr "Windows" -#: ../Doc/using/venv-create.inc:108 +#: Doc/using/venv-create.inc:108 msgid "cmd.exe" msgstr "cmd.exe" -#: ../Doc/using/venv-create.inc:108 +#: Doc/using/venv-create.inc:108 msgid "C:\\\\> \\\\Scripts\\\\activate.bat" msgstr "``C:\\\\{venv}\\\\Scripts\\\\activate.bat``" -#: ../Doc/using/venv-create.inc:110 +#: Doc/using/venv-create.inc:110 msgid "PowerShell" msgstr "PowerShell" -#: ../Doc/using/venv-create.inc:110 +#: Doc/using/venv-create.inc:110 msgid "PS C:\\\\> \\\\Scripts\\\\Activate.ps1" msgstr "``PS C:\\\\> \\\\Scripts\\\\Activate.ps1``" -#: ../Doc/using/venv-create.inc:113 +#: Doc/using/venv-create.inc:113 msgid "" "You don't specifically *need* to activate an environment; activation just " "prepends the virtual environment's binary directory to your path, so that " @@ -279,7 +279,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:120 +#: Doc/using/venv-create.inc:120 #, fuzzy msgid "" "You can deactivate a virtual environment by typing \"deactivate\" in your " @@ -293,11 +293,11 @@ msgstr "" "``deactivate.bat`` et ``Deactivate.ps1`` qui sont installés quand " "l'environnement virtuel est créé." -#: ../Doc/using/venv-create.inc:124 +#: Doc/using/venv-create.inc:124 msgid "``fish`` and ``csh`` activation scripts." msgstr "Les scripts d'activation pour ``fish`` et ``csh``." -#: ../Doc/using/venv-create.inc:127 +#: Doc/using/venv-create.inc:127 msgid "" "PowerShell activation scripts installed under POSIX for PowerShell Core " "support." diff --git a/library/winreg.po b/library/winreg.po index c1138b13..d3aeaa76 100644 --- a/library/winreg.po +++ b/library/winreg.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -68,88 +68,113 @@ msgstr "" msgid "*key* is the predefined handle to connect to." msgstr "" -#: ../Doc/library/winreg.rst:53 ../Doc/library/winreg.rst:75 -#: ../Doc/library/winreg.rst:103 +#: ../Doc/library/winreg.rst:53 ../Doc/library/winreg.rst:77 +#: ../Doc/library/winreg.rst:109 msgid "" "The return value is the handle of the opened key. If the function fails, an :" "exc:`OSError` exception is raised." msgstr "" -#: ../Doc/library/winreg.rst:56 ../Doc/library/winreg.rst:78 -#: ../Doc/library/winreg.rst:108 ../Doc/library/winreg.rst:127 -#: ../Doc/library/winreg.rst:163 ../Doc/library/winreg.rst:190 -#: ../Doc/library/winreg.rst:223 ../Doc/library/winreg.rst:306 +#: ../Doc/library/winreg.rst:57 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.ConnectRegistry`` with " +"arguments ``computer_name``, ``key``." +msgstr "" + +#: ../Doc/library/winreg.rst:58 ../Doc/library/winreg.rst:84 +#: ../Doc/library/winreg.rst:118 ../Doc/library/winreg.rst:139 +#: ../Doc/library/winreg.rst:177 ../Doc/library/winreg.rst:208 +#: ../Doc/library/winreg.rst:243 ../Doc/library/winreg.rst:334 msgid "See :ref:`above `." msgstr "" -#: ../Doc/library/winreg.rst:62 ../Doc/library/winreg.rst:84 +#: ../Doc/library/winreg.rst:64 ../Doc/library/winreg.rst:90 msgid "" "Creates or opens the specified key, returning a :ref:`handle object `." msgstr "" -#: ../Doc/library/winreg.rst:65 ../Doc/library/winreg.rst:87 -#: ../Doc/library/winreg.rst:116 ../Doc/library/winreg.rst:141 -#: ../Doc/library/winreg.rst:171 ../Doc/library/winreg.rst:181 -#: ../Doc/library/winreg.rst:198 ../Doc/library/winreg.rst:243 -#: ../Doc/library/winreg.rst:288 ../Doc/library/winreg.rst:314 -#: ../Doc/library/winreg.rst:338 ../Doc/library/winreg.rst:356 -#: ../Doc/library/winreg.rst:378 ../Doc/library/winreg.rst:401 -#: ../Doc/library/winreg.rst:427 ../Doc/library/winreg.rst:456 -#: ../Doc/library/winreg.rst:471 ../Doc/library/winreg.rst:484 +#: ../Doc/library/winreg.rst:67 ../Doc/library/winreg.rst:93 +#: ../Doc/library/winreg.rst:126 ../Doc/library/winreg.rst:153 +#: ../Doc/library/winreg.rst:185 ../Doc/library/winreg.rst:197 +#: ../Doc/library/winreg.rst:216 ../Doc/library/winreg.rst:265 +#: ../Doc/library/winreg.rst:312 ../Doc/library/winreg.rst:342 +#: ../Doc/library/winreg.rst:368 ../Doc/library/winreg.rst:388 +#: ../Doc/library/winreg.rst:412 ../Doc/library/winreg.rst:437 +#: ../Doc/library/winreg.rst:465 ../Doc/library/winreg.rst:496 +#: ../Doc/library/winreg.rst:513 ../Doc/library/winreg.rst:528 msgid "" "*key* is an already open key, or one of the predefined :ref:`HKEY_* " "constants `." msgstr "" -#: ../Doc/library/winreg.rst:68 ../Doc/library/winreg.rst:90 +#: ../Doc/library/winreg.rst:70 ../Doc/library/winreg.rst:96 msgid "*sub_key* is a string that names the key this method opens or creates." msgstr "" -#: ../Doc/library/winreg.rst:70 ../Doc/library/winreg.rst:98 +#: ../Doc/library/winreg.rst:72 ../Doc/library/winreg.rst:104 msgid "" "If *key* is one of the predefined keys, *sub_key* may be ``None``. In that " "case, the handle returned is the same key handle passed in to the function." msgstr "" -#: ../Doc/library/winreg.rst:73 ../Doc/library/winreg.rst:101 +#: ../Doc/library/winreg.rst:75 ../Doc/library/winreg.rst:107 msgid "If the key already exists, this function opens the existing key." msgstr "" -#: ../Doc/library/winreg.rst:92 ../Doc/library/winreg.rst:148 +#: ../Doc/library/winreg.rst:81 ../Doc/library/winreg.rst:113 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.CreateKey`` with " +"arguments ``key``, ``sub_key``, ``access``." +msgstr "" + +#: ../Doc/library/winreg.rst:83 ../Doc/library/winreg.rst:115 +#: ../Doc/library/winreg.rst:330 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.OpenKey/result`` with " +"argument ``key``." +msgstr "" + +#: ../Doc/library/winreg.rst:98 ../Doc/library/winreg.rst:160 msgid "" "*reserved* is a reserved integer, and must be zero. The default is zero." msgstr "" -#: ../Doc/library/winreg.rst:94 +#: ../Doc/library/winreg.rst:100 msgid "" "*access* is an integer that specifies an access mask that describes the " "desired security access for the key. Default is :const:`KEY_WRITE`. See :" "ref:`Access Rights ` for other allowed values." msgstr "" -#: ../Doc/library/winreg.rst:114 ../Doc/library/winreg.rst:133 +#: ../Doc/library/winreg.rst:124 ../Doc/library/winreg.rst:145 msgid "Deletes the specified key." msgstr "" -#: ../Doc/library/winreg.rst:119 +#: ../Doc/library/winreg.rst:129 msgid "" "*sub_key* is a string that must be a subkey of the key identified by the " "*key* parameter. This value must not be ``None``, and the key may not have " "subkeys." msgstr "" -#: ../Doc/library/winreg.rst:122 ../Doc/library/winreg.rst:154 +#: ../Doc/library/winreg.rst:132 ../Doc/library/winreg.rst:166 msgid "*This method can not delete keys with subkeys.*" msgstr "" -#: ../Doc/library/winreg.rst:124 ../Doc/library/winreg.rst:156 +#: ../Doc/library/winreg.rst:134 ../Doc/library/winreg.rst:168 msgid "" "If the method succeeds, the entire key, including all of its values, is " "removed. If the method fails, an :exc:`OSError` exception is raised." msgstr "" -#: ../Doc/library/winreg.rst:136 +#: ../Doc/library/winreg.rst:138 ../Doc/library/winreg.rst:174 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.DeleteKey`` with " +"arguments ``key``, ``sub_key``, ``access``." +msgstr "" + +#: ../Doc/library/winreg.rst:148 msgid "" "The :func:`DeleteKeyEx` function is implemented with the RegDeleteKeyEx " "Windows API function, which is specific to 64-bit versions of Windows. See " @@ -157,118 +182,142 @@ msgid "" "ms724847%28VS.85%29.aspx>`__." msgstr "" -#: ../Doc/library/winreg.rst:144 +#: ../Doc/library/winreg.rst:156 msgid "" "*sub_key* is a string that must be a subkey of the key identified by the " "*key* parameter. This value must not be ``None``, and the key may not have " "subkeys." msgstr "" -#: ../Doc/library/winreg.rst:150 +#: ../Doc/library/winreg.rst:162 msgid "" "*access* is an integer that specifies an access mask that describes the " "desired security access for the key. Default is :const:`KEY_WOW64_64KEY`. " "See :ref:`Access Rights ` for other allowed values." msgstr "" -#: ../Doc/library/winreg.rst:159 +#: ../Doc/library/winreg.rst:171 msgid "On unsupported Windows versions, :exc:`NotImplementedError` is raised." msgstr "" -#: ../Doc/library/winreg.rst:169 +#: ../Doc/library/winreg.rst:183 msgid "Removes a named value from a registry key." msgstr "" -#: ../Doc/library/winreg.rst:174 +#: ../Doc/library/winreg.rst:188 msgid "*value* is a string that identifies the value to remove." msgstr "" -#: ../Doc/library/winreg.rst:179 +#: ../Doc/library/winreg.rst:190 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.DeleteValue`` with " +"arguments ``key``, ``value``." +msgstr "" + +#: ../Doc/library/winreg.rst:195 msgid "Enumerates subkeys of an open registry key, returning a string." msgstr "" -#: ../Doc/library/winreg.rst:184 +#: ../Doc/library/winreg.rst:200 msgid "*index* is an integer that identifies the index of the key to retrieve." msgstr "" -#: ../Doc/library/winreg.rst:186 +#: ../Doc/library/winreg.rst:202 msgid "" "The function retrieves the name of one subkey each time it is called. It is " "typically called repeatedly until an :exc:`OSError` exception is raised, " "indicating, no more values are available." msgstr "" -#: ../Doc/library/winreg.rst:196 +#: ../Doc/library/winreg.rst:207 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.EnumKey`` with arguments " +"``key``, ``index``." +msgstr "" + +#: ../Doc/library/winreg.rst:214 msgid "Enumerates values of an open registry key, returning a tuple." msgstr "" -#: ../Doc/library/winreg.rst:201 +#: ../Doc/library/winreg.rst:219 msgid "" "*index* is an integer that identifies the index of the value to retrieve." msgstr "" -#: ../Doc/library/winreg.rst:203 +#: ../Doc/library/winreg.rst:221 msgid "" "The function retrieves the name of one subkey each time it is called. It is " "typically called repeatedly, until an :exc:`OSError` exception is raised, " "indicating no more values." msgstr "" -#: ../Doc/library/winreg.rst:207 ../Doc/library/winreg.rst:317 +#: ../Doc/library/winreg.rst:225 ../Doc/library/winreg.rst:345 msgid "The result is a tuple of 3 items:" msgstr "" -#: ../Doc/library/winreg.rst:210 ../Doc/library/winreg.rst:320 -#: ../Doc/library/winreg.rst:364 +#: ../Doc/library/winreg.rst:228 ../Doc/library/winreg.rst:348 +#: ../Doc/library/winreg.rst:396 msgid "Index" msgstr "Index" -#: ../Doc/library/winreg.rst:210 ../Doc/library/winreg.rst:320 -#: ../Doc/library/winreg.rst:364 +#: ../Doc/library/winreg.rst:228 ../Doc/library/winreg.rst:348 +#: ../Doc/library/winreg.rst:396 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/winreg.rst:212 ../Doc/library/winreg.rst:322 -#: ../Doc/library/winreg.rst:366 +#: ../Doc/library/winreg.rst:230 ../Doc/library/winreg.rst:350 +#: ../Doc/library/winreg.rst:398 msgid "``0``" msgstr "``0``" -#: ../Doc/library/winreg.rst:212 +#: ../Doc/library/winreg.rst:230 msgid "A string that identifies the value name" msgstr "" -#: ../Doc/library/winreg.rst:214 ../Doc/library/winreg.rst:325 -#: ../Doc/library/winreg.rst:368 +#: ../Doc/library/winreg.rst:232 ../Doc/library/winreg.rst:353 +#: ../Doc/library/winreg.rst:400 msgid "``1``" msgstr "``1``" -#: ../Doc/library/winreg.rst:214 +#: ../Doc/library/winreg.rst:232 msgid "" "An object that holds the value data, and whose type depends on the " "underlying registry type" msgstr "" -#: ../Doc/library/winreg.rst:218 ../Doc/library/winreg.rst:328 +#: ../Doc/library/winreg.rst:236 ../Doc/library/winreg.rst:356 msgid "``2``" msgstr "``2``" -#: ../Doc/library/winreg.rst:218 +#: ../Doc/library/winreg.rst:236 msgid "" "An integer that identifies the type of the value data (see table in docs " "for :meth:`SetValueEx`)" msgstr "" -#: ../Doc/library/winreg.rst:232 +#: ../Doc/library/winreg.rst:242 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.EnumValue`` with " +"arguments ``key``, ``index``." +msgstr "" + +#: ../Doc/library/winreg.rst:252 msgid "" "Expands environment variable placeholders ``%NAME%`` in strings like :const:" "`REG_EXPAND_SZ`::" msgstr "" -#: ../Doc/library/winreg.rst:241 +#: ../Doc/library/winreg.rst:258 +msgid "" +"Raises an :ref:`auditing event ` ``winreg." +"ExpandEnvironmentStrings`` with argument ``str``." +msgstr "" + +#: ../Doc/library/winreg.rst:263 msgid "Writes all the attributes of a key to the registry." msgstr "" -#: ../Doc/library/winreg.rst:246 +#: ../Doc/library/winreg.rst:268 msgid "" "It is not necessary to call :func:`FlushKey` to change a key. Registry " "changes are flushed to disk by the registry using its lazy flusher. " @@ -279,36 +328,36 @@ msgid "" "disk." msgstr "" -#: ../Doc/library/winreg.rst:255 +#: ../Doc/library/winreg.rst:277 msgid "" "If you don't know whether a :func:`FlushKey` call is required, it probably " "isn't." msgstr "" -#: ../Doc/library/winreg.rst:261 +#: ../Doc/library/winreg.rst:283 msgid "" "Creates a subkey under the specified key and stores registration information " "from a specified file into that subkey." msgstr "" -#: ../Doc/library/winreg.rst:264 +#: ../Doc/library/winreg.rst:286 msgid "" "*key* is a handle returned by :func:`ConnectRegistry` or one of the " "constants :const:`HKEY_USERS` or :const:`HKEY_LOCAL_MACHINE`." msgstr "" -#: ../Doc/library/winreg.rst:267 +#: ../Doc/library/winreg.rst:289 msgid "*sub_key* is a string that identifies the subkey to load." msgstr "" -#: ../Doc/library/winreg.rst:269 +#: ../Doc/library/winreg.rst:291 msgid "" "*file_name* is the name of the file to load registry data from. This file " "must have been created with the :func:`SaveKey` function. Under the file " "allocation table (FAT) file system, the filename may not have an extension." msgstr "" -#: ../Doc/library/winreg.rst:273 +#: ../Doc/library/winreg.rst:295 msgid "" "A call to :func:`LoadKey` fails if the calling process does not have the :" "const:`SE_RESTORE_PRIVILEGE` privilege. Note that privileges are different " @@ -316,68 +365,86 @@ msgid "" "microsoft.com/en-us/library/ms724889%28v=VS.85%29.aspx>`__ for more details." msgstr "" -#: ../Doc/library/winreg.rst:279 +#: ../Doc/library/winreg.rst:301 msgid "" "If *key* is a handle returned by :func:`ConnectRegistry`, then the path " "specified in *file_name* is relative to the remote computer." msgstr "" -#: ../Doc/library/winreg.rst:286 +#: ../Doc/library/winreg.rst:304 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.LoadKey`` with arguments " +"``key``, ``sub_key``, ``file_name``." +msgstr "" + +#: ../Doc/library/winreg.rst:310 msgid "" "Opens the specified key, returning a :ref:`handle object `." msgstr "" -#: ../Doc/library/winreg.rst:291 +#: ../Doc/library/winreg.rst:315 msgid "*sub_key* is a string that identifies the sub_key to open." msgstr "" -#: ../Doc/library/winreg.rst:293 +#: ../Doc/library/winreg.rst:317 msgid "" "*reserved* is a reserved integer, and must be zero. The default is zero." msgstr "" -#: ../Doc/library/winreg.rst:295 +#: ../Doc/library/winreg.rst:319 msgid "" "*access* is an integer that specifies an access mask that describes the " "desired security access for the key. Default is :const:`KEY_READ`. See :" "ref:`Access Rights ` for other allowed values." msgstr "" -#: ../Doc/library/winreg.rst:299 +#: ../Doc/library/winreg.rst:323 msgid "The result is a new handle to the specified key." msgstr "" -#: ../Doc/library/winreg.rst:301 +#: ../Doc/library/winreg.rst:325 msgid "If the function fails, :exc:`OSError` is raised." msgstr "" -#: ../Doc/library/winreg.rst:303 +#: ../Doc/library/winreg.rst:328 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.OpenKey`` with arguments " +"``key``, ``sub_key``, ``access``." +msgstr "" + +#: ../Doc/library/winreg.rst:331 msgid "Allow the use of named arguments." msgstr "" -#: ../Doc/library/winreg.rst:312 +#: ../Doc/library/winreg.rst:340 msgid "Returns information about a key, as a tuple." msgstr "" -#: ../Doc/library/winreg.rst:322 +#: ../Doc/library/winreg.rst:350 msgid "An integer giving the number of sub keys this key has." msgstr "" -#: ../Doc/library/winreg.rst:325 +#: ../Doc/library/winreg.rst:353 msgid "An integer giving the number of values this key has." msgstr "" -#: ../Doc/library/winreg.rst:328 +#: ../Doc/library/winreg.rst:356 msgid "" "An integer giving when the key was last modified (if available) as 100's of " "nanoseconds since Jan 1, 1601." msgstr "" -#: ../Doc/library/winreg.rst:336 +#: ../Doc/library/winreg.rst:361 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.QueryInfoKey`` with " +"argument ``key``." +msgstr "" + +#: ../Doc/library/winreg.rst:366 msgid "Retrieves the unnamed value for a key, as a string." msgstr "" -#: ../Doc/library/winreg.rst:341 +#: ../Doc/library/winreg.rst:371 msgid "" "*sub_key* is a string that holds the name of the subkey with which the value " "is associated. If this parameter is ``None`` or empty, the function " @@ -385,7 +452,7 @@ msgid "" "identified by *key*." msgstr "" -#: ../Doc/library/winreg.rst:345 +#: ../Doc/library/winreg.rst:375 msgid "" "Values in the registry have name, type, and data components. This method " "retrieves the data for a key's first value that has a ``NULL`` name. But the " @@ -393,35 +460,41 @@ msgid "" "`QueryValueEx` if possible." msgstr "" -#: ../Doc/library/winreg.rst:353 +#: ../Doc/library/winreg.rst:380 ../Doc/library/winreg.rst:405 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.QueryValue`` with " +"arguments ``key``, ``sub_key``, ``value_name``." +msgstr "" + +#: ../Doc/library/winreg.rst:385 msgid "" "Retrieves the type and data for a specified value name associated with an " "open registry key." msgstr "" -#: ../Doc/library/winreg.rst:359 +#: ../Doc/library/winreg.rst:391 msgid "*value_name* is a string indicating the value to query." msgstr "" -#: ../Doc/library/winreg.rst:361 +#: ../Doc/library/winreg.rst:393 msgid "The result is a tuple of 2 items:" msgstr "" -#: ../Doc/library/winreg.rst:366 +#: ../Doc/library/winreg.rst:398 msgid "The value of the registry item." msgstr "" -#: ../Doc/library/winreg.rst:368 +#: ../Doc/library/winreg.rst:400 msgid "" "An integer giving the registry type for this value (see table in docs for :" "meth:`SetValueEx`)" msgstr "" -#: ../Doc/library/winreg.rst:376 +#: ../Doc/library/winreg.rst:410 msgid "Saves the specified key, and all its subkeys to the specified file." msgstr "" -#: ../Doc/library/winreg.rst:381 +#: ../Doc/library/winreg.rst:415 msgid "" "*file_name* is the name of the file to save registry data to. This file " "cannot already exist. If this filename includes an extension, it cannot be " @@ -429,7 +502,7 @@ msgid "" "method." msgstr "" -#: ../Doc/library/winreg.rst:386 +#: ../Doc/library/winreg.rst:420 msgid "" "If *key* represents a key on a remote computer, the path described by " "*file_name* is relative to the remote computer. The caller of this method " @@ -439,139 +512,169 @@ msgid "" "library/ms724878%28v=VS.85%29.aspx>`__ for more details." msgstr "" -#: ../Doc/library/winreg.rst:394 +#: ../Doc/library/winreg.rst:428 msgid "This function passes ``NULL`` for *security_attributes* to the API." msgstr "" -#: ../Doc/library/winreg.rst:399 +#: ../Doc/library/winreg.rst:430 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.SaveKey`` with arguments " +"``key``, ``file_name``." +msgstr "" + +#: ../Doc/library/winreg.rst:435 msgid "Associates a value with a specified key." msgstr "" -#: ../Doc/library/winreg.rst:404 +#: ../Doc/library/winreg.rst:440 msgid "" "*sub_key* is a string that names the subkey with which the value is " "associated." msgstr "" -#: ../Doc/library/winreg.rst:406 +#: ../Doc/library/winreg.rst:442 msgid "" "*type* is an integer that specifies the type of the data. Currently this " "must be :const:`REG_SZ`, meaning only strings are supported. Use the :func:" "`SetValueEx` function for support for other data types." msgstr "" -#: ../Doc/library/winreg.rst:410 ../Doc/library/winreg.rst:438 +#: ../Doc/library/winreg.rst:446 ../Doc/library/winreg.rst:476 msgid "*value* is a string that specifies the new value." msgstr "" -#: ../Doc/library/winreg.rst:412 +#: ../Doc/library/winreg.rst:448 msgid "" "If the key specified by the *sub_key* parameter does not exist, the SetValue " "function creates it." msgstr "" -#: ../Doc/library/winreg.rst:415 ../Doc/library/winreg.rst:446 +#: ../Doc/library/winreg.rst:451 ../Doc/library/winreg.rst:484 msgid "" "Value lengths are limited by available memory. Long values (more than 2048 " "bytes) should be stored as files with the filenames stored in the " "configuration registry. This helps the registry perform efficiently." msgstr "" -#: ../Doc/library/winreg.rst:419 +#: ../Doc/library/winreg.rst:455 msgid "" "The key identified by the *key* parameter must have been opened with :const:" "`KEY_SET_VALUE` access." msgstr "" -#: ../Doc/library/winreg.rst:425 +#: ../Doc/library/winreg.rst:458 ../Doc/library/winreg.rst:488 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.SetValue`` with " +"arguments ``key``, ``sub_key``, ``type``, ``value``." +msgstr "" + +#: ../Doc/library/winreg.rst:463 msgid "Stores data in the value field of an open registry key." msgstr "" -#: ../Doc/library/winreg.rst:430 +#: ../Doc/library/winreg.rst:468 msgid "" "*value_name* is a string that names the subkey with which the value is " "associated." msgstr "" -#: ../Doc/library/winreg.rst:433 +#: ../Doc/library/winreg.rst:471 msgid "*reserved* can be anything -- zero is always passed to the API." msgstr "" -#: ../Doc/library/winreg.rst:435 +#: ../Doc/library/winreg.rst:473 msgid "" "*type* is an integer that specifies the type of the data. See :ref:`Value " "Types ` for the available types." msgstr "" -#: ../Doc/library/winreg.rst:440 +#: ../Doc/library/winreg.rst:478 msgid "" "This method can also set additional value and type information for the " "specified key. The key identified by the key parameter must have been " "opened with :const:`KEY_SET_VALUE` access." msgstr "" -#: ../Doc/library/winreg.rst:444 +#: ../Doc/library/winreg.rst:482 msgid "To open the key, use the :func:`CreateKey` or :func:`OpenKey` methods." msgstr "" -#: ../Doc/library/winreg.rst:453 +#: ../Doc/library/winreg.rst:493 msgid "" "Disables registry reflection for 32-bit processes running on a 64-bit " "operating system." msgstr "" -#: ../Doc/library/winreg.rst:459 ../Doc/library/winreg.rst:474 -#: ../Doc/library/winreg.rst:489 +#: ../Doc/library/winreg.rst:499 ../Doc/library/winreg.rst:516 +#: ../Doc/library/winreg.rst:533 msgid "" "Will generally raise :exc:`NotImplementedError` if executed on a 32-bit " "operating system." msgstr "" -#: ../Doc/library/winreg.rst:462 +#: ../Doc/library/winreg.rst:502 msgid "" "If the key is not on the reflection list, the function succeeds but has no " "effect. Disabling reflection for a key does not affect reflection of any " "subkeys." msgstr "" -#: ../Doc/library/winreg.rst:469 +#: ../Doc/library/winreg.rst:506 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.DisableReflectionKey`` " +"with argument ``key``." +msgstr "" + +#: ../Doc/library/winreg.rst:511 msgid "Restores registry reflection for the specified disabled key." msgstr "" -#: ../Doc/library/winreg.rst:477 +#: ../Doc/library/winreg.rst:519 msgid "" "Restoring reflection for a key does not affect reflection of any subkeys." msgstr "" -#: ../Doc/library/winreg.rst:482 +#: ../Doc/library/winreg.rst:521 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.EnableReflectionKey`` " +"with argument ``key``." +msgstr "" + +#: ../Doc/library/winreg.rst:526 msgid "Determines the reflection state for the specified key." msgstr "" -#: ../Doc/library/winreg.rst:487 +#: ../Doc/library/winreg.rst:531 msgid "Returns ``True`` if reflection is disabled." msgstr "" -#: ../Doc/library/winreg.rst:496 +#: ../Doc/library/winreg.rst:536 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.QueryReflectionKey`` " +"with argument ``key``." +msgstr "" + +#: ../Doc/library/winreg.rst:542 msgid "Constants" msgstr "Constantes" -#: ../Doc/library/winreg.rst:498 +#: ../Doc/library/winreg.rst:544 msgid "" "The following constants are defined for use in many :mod:`_winreg` functions." msgstr "" -#: ../Doc/library/winreg.rst:503 +#: ../Doc/library/winreg.rst:549 msgid "HKEY_* Constants" msgstr "" -#: ../Doc/library/winreg.rst:507 +#: ../Doc/library/winreg.rst:553 msgid "" "Registry entries subordinate to this key define types (or classes) of " "documents and the properties associated with those types. Shell and COM " "applications use the information stored under this key." msgstr "" -#: ../Doc/library/winreg.rst:514 +#: ../Doc/library/winreg.rst:560 msgid "" "Registry entries subordinate to this key define the preferences of the " "current user. These preferences include the settings of environment " @@ -579,48 +682,48 @@ msgid "" "and application preferences." msgstr "" -#: ../Doc/library/winreg.rst:521 +#: ../Doc/library/winreg.rst:567 msgid "" "Registry entries subordinate to this key define the physical state of the " "computer, including data about the bus type, system memory, and installed " "hardware and software." msgstr "" -#: ../Doc/library/winreg.rst:527 +#: ../Doc/library/winreg.rst:573 msgid "" "Registry entries subordinate to this key define the default user " "configuration for new users on the local computer and the user configuration " "for the current user." msgstr "" -#: ../Doc/library/winreg.rst:533 +#: ../Doc/library/winreg.rst:579 msgid "" "Registry entries subordinate to this key allow you to access performance " "data. The data is not actually stored in the registry; the registry " "functions cause the system to collect the data from its source." msgstr "" -#: ../Doc/library/winreg.rst:541 +#: ../Doc/library/winreg.rst:587 msgid "" "Contains information about the current hardware profile of the local " "computer system." msgstr "" -#: ../Doc/library/winreg.rst:546 +#: ../Doc/library/winreg.rst:592 msgid "This key is not used in versions of Windows after 98." msgstr "" -#: ../Doc/library/winreg.rst:552 +#: ../Doc/library/winreg.rst:598 msgid "Access Rights" msgstr "" -#: ../Doc/library/winreg.rst:554 +#: ../Doc/library/winreg.rst:600 msgid "" "For more information, see `Registry Key Security and Access `__." msgstr "" -#: ../Doc/library/winreg.rst:559 +#: ../Doc/library/winreg.rst:605 msgid "" "Combines the STANDARD_RIGHTS_REQUIRED, :const:`KEY_QUERY_VALUE`, :const:" "`KEY_SET_VALUE`, :const:`KEY_CREATE_SUB_KEY`, :const:" @@ -628,180 +731,180 @@ msgid "" "access rights." msgstr "" -#: ../Doc/library/winreg.rst:566 +#: ../Doc/library/winreg.rst:612 msgid "" "Combines the STANDARD_RIGHTS_WRITE, :const:`KEY_SET_VALUE`, and :const:" "`KEY_CREATE_SUB_KEY` access rights." msgstr "" -#: ../Doc/library/winreg.rst:571 +#: ../Doc/library/winreg.rst:617 msgid "" "Combines the STANDARD_RIGHTS_READ, :const:`KEY_QUERY_VALUE`, :const:" "`KEY_ENUMERATE_SUB_KEYS`, and :const:`KEY_NOTIFY` values." msgstr "" -#: ../Doc/library/winreg.rst:576 +#: ../Doc/library/winreg.rst:622 msgid "Equivalent to :const:`KEY_READ`." msgstr "" -#: ../Doc/library/winreg.rst:580 +#: ../Doc/library/winreg.rst:626 msgid "Required to query the values of a registry key." msgstr "" -#: ../Doc/library/winreg.rst:584 +#: ../Doc/library/winreg.rst:630 msgid "Required to create, delete, or set a registry value." msgstr "" -#: ../Doc/library/winreg.rst:588 +#: ../Doc/library/winreg.rst:634 msgid "Required to create a subkey of a registry key." msgstr "" -#: ../Doc/library/winreg.rst:592 +#: ../Doc/library/winreg.rst:638 msgid "Required to enumerate the subkeys of a registry key." msgstr "" -#: ../Doc/library/winreg.rst:596 +#: ../Doc/library/winreg.rst:642 msgid "" "Required to request change notifications for a registry key or for subkeys " "of a registry key." msgstr "" -#: ../Doc/library/winreg.rst:601 +#: ../Doc/library/winreg.rst:647 msgid "Reserved for system use." msgstr "" -#: ../Doc/library/winreg.rst:607 +#: ../Doc/library/winreg.rst:653 msgid "64-bit Specific" msgstr "" -#: ../Doc/library/winreg.rst:609 +#: ../Doc/library/winreg.rst:655 msgid "" "For more information, see `Accessing an Alternate Registry View `__." msgstr "" -#: ../Doc/library/winreg.rst:614 +#: ../Doc/library/winreg.rst:660 msgid "" "Indicates that an application on 64-bit Windows should operate on the 64-bit " "registry view." msgstr "" -#: ../Doc/library/winreg.rst:619 +#: ../Doc/library/winreg.rst:665 msgid "" "Indicates that an application on 64-bit Windows should operate on the 32-bit " "registry view." msgstr "" -#: ../Doc/library/winreg.rst:626 +#: ../Doc/library/winreg.rst:672 msgid "Value Types" msgstr "" -#: ../Doc/library/winreg.rst:628 +#: ../Doc/library/winreg.rst:674 msgid "" "For more information, see `Registry Value Types `__." msgstr "" -#: ../Doc/library/winreg.rst:633 +#: ../Doc/library/winreg.rst:679 msgid "Binary data in any form." msgstr "" -#: ../Doc/library/winreg.rst:637 +#: ../Doc/library/winreg.rst:683 msgid "32-bit number." msgstr "" -#: ../Doc/library/winreg.rst:641 +#: ../Doc/library/winreg.rst:687 msgid "" "A 32-bit number in little-endian format. Equivalent to :const:`REG_DWORD`." msgstr "" -#: ../Doc/library/winreg.rst:645 +#: ../Doc/library/winreg.rst:691 msgid "A 32-bit number in big-endian format." msgstr "" -#: ../Doc/library/winreg.rst:649 +#: ../Doc/library/winreg.rst:695 msgid "" "Null-terminated string containing references to environment variables (``" "%PATH%``)." msgstr "" -#: ../Doc/library/winreg.rst:654 +#: ../Doc/library/winreg.rst:700 msgid "A Unicode symbolic link." msgstr "" -#: ../Doc/library/winreg.rst:658 +#: ../Doc/library/winreg.rst:704 msgid "" "A sequence of null-terminated strings, terminated by two null characters. " "(Python handles this termination automatically.)" msgstr "" -#: ../Doc/library/winreg.rst:663 +#: ../Doc/library/winreg.rst:709 msgid "No defined value type." msgstr "" -#: ../Doc/library/winreg.rst:667 +#: ../Doc/library/winreg.rst:713 msgid "A 64-bit number." msgstr "" -#: ../Doc/library/winreg.rst:673 +#: ../Doc/library/winreg.rst:719 msgid "" "A 64-bit number in little-endian format. Equivalent to :const:`REG_QWORD`." msgstr "" -#: ../Doc/library/winreg.rst:679 +#: ../Doc/library/winreg.rst:725 msgid "A device-driver resource list." msgstr "" -#: ../Doc/library/winreg.rst:683 +#: ../Doc/library/winreg.rst:729 msgid "A hardware setting." msgstr "" -#: ../Doc/library/winreg.rst:687 +#: ../Doc/library/winreg.rst:733 msgid "A hardware resource list." msgstr "" -#: ../Doc/library/winreg.rst:691 +#: ../Doc/library/winreg.rst:737 msgid "A null-terminated string." msgstr "" -#: ../Doc/library/winreg.rst:697 +#: ../Doc/library/winreg.rst:743 msgid "Registry Handle Objects" msgstr "" -#: ../Doc/library/winreg.rst:699 +#: ../Doc/library/winreg.rst:745 msgid "" "This object wraps a Windows HKEY object, automatically closing it when the " "object is destroyed. To guarantee cleanup, you can call either the :meth:" "`~PyHKEY.Close` method on the object, or the :func:`CloseKey` function." msgstr "" -#: ../Doc/library/winreg.rst:703 +#: ../Doc/library/winreg.rst:749 msgid "All registry functions in this module return one of these objects." msgstr "" -#: ../Doc/library/winreg.rst:705 +#: ../Doc/library/winreg.rst:751 msgid "" "All registry functions in this module which accept a handle object also " "accept an integer, however, use of the handle object is encouraged." msgstr "" -#: ../Doc/library/winreg.rst:708 +#: ../Doc/library/winreg.rst:754 msgid "Handle objects provide semantics for :meth:`__bool__` -- thus ::" msgstr "" -#: ../Doc/library/winreg.rst:713 +#: ../Doc/library/winreg.rst:759 msgid "" "will print ``Yes`` if the handle is currently valid (has not been closed or " "detached)." msgstr "" -#: ../Doc/library/winreg.rst:716 +#: ../Doc/library/winreg.rst:762 msgid "" "The object also support comparison semantics, so handle objects will compare " "true if they both reference the same underlying Windows handle value." msgstr "" -#: ../Doc/library/winreg.rst:719 +#: ../Doc/library/winreg.rst:765 msgid "" "Handle objects can be converted to an integer (e.g., using the built-in :" "func:`int` function), in which case the underlying Windows handle value is " @@ -810,40 +913,46 @@ msgid "" "object." msgstr "" -#: ../Doc/library/winreg.rst:727 +#: ../Doc/library/winreg.rst:773 msgid "Closes the underlying Windows handle." msgstr "" -#: ../Doc/library/winreg.rst:729 +#: ../Doc/library/winreg.rst:775 msgid "If the handle is already closed, no error is raised." msgstr "" -#: ../Doc/library/winreg.rst:734 +#: ../Doc/library/winreg.rst:780 msgid "Detaches the Windows handle from the handle object." msgstr "" -#: ../Doc/library/winreg.rst:736 +#: ../Doc/library/winreg.rst:782 msgid "" "The result is an integer that holds the value of the handle before it is " "detached. If the handle is already detached or closed, this will return " "zero." msgstr "" -#: ../Doc/library/winreg.rst:740 +#: ../Doc/library/winreg.rst:786 msgid "" "After calling this function, the handle is effectively invalidated, but the " "handle is not closed. You would call this function when you need the " "underlying Win32 handle to exist beyond the lifetime of the handle object." msgstr "" -#: ../Doc/library/winreg.rst:747 +#: ../Doc/library/winreg.rst:790 +msgid "" +"Raises an :ref:`auditing event ` ``winreg.PyHKEY.Detach`` with " +"argument ``key``." +msgstr "" + +#: ../Doc/library/winreg.rst:796 msgid "" "The HKEY object implements :meth:`~object.__enter__` and :meth:`~object." "__exit__` and thus supports the context protocol for the :keyword:`with` " "statement::" msgstr "" -#: ../Doc/library/winreg.rst:754 +#: ../Doc/library/winreg.rst:803 msgid "" "will automatically close *key* when control leaves the :keyword:`with` block." msgstr "" diff --git a/reference/compound_stmts.po b/reference/compound_stmts.po index 24abc590..a012e8c2 100644 --- a/reference/compound_stmts.po +++ b/reference/compound_stmts.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-09-22 20:57+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -535,16 +535,23 @@ msgstr "" "est évaluée pour obtenir un gestionnaire de contexte." #: ../Doc/reference/compound_stmts.rst:402 -msgid "The context manager's :meth:`__exit__` is loaded for later use." +#, fuzzy +msgid "The context manager's :meth:`__enter__` is loaded for later use." msgstr "" "La méthode :meth:`__exit__` du gestionnaire de contexte est chargée pour une " "utilisation ultérieure." #: ../Doc/reference/compound_stmts.rst:404 +msgid "The context manager's :meth:`__exit__` is loaded for later use." +msgstr "" +"La méthode :meth:`__exit__` du gestionnaire de contexte est chargée pour une " +"utilisation ultérieure." + +#: ../Doc/reference/compound_stmts.rst:406 msgid "The context manager's :meth:`__enter__` method is invoked." msgstr "La méthode :meth:`__enter__` du gestionnaire de contexte est invoquée." -#: ../Doc/reference/compound_stmts.rst:406 +#: ../Doc/reference/compound_stmts.rst:408 msgid "" "If a target was included in the :keyword:`with` statement, the return value " "from :meth:`__enter__` is assigned to it." @@ -553,7 +560,7 @@ msgstr "" "l'instruction :keyword:`with`, la valeur de retour de :meth:`__enter__` lui " "est assignée." -#: ../Doc/reference/compound_stmts.rst:411 +#: ../Doc/reference/compound_stmts.rst:413 msgid "" "The :keyword:`with` statement guarantees that if the :meth:`__enter__` " "method returns without an error, then :meth:`__exit__` will always be " @@ -567,11 +574,11 @@ msgstr "" "cible, elle est traitée de la même façon qu'une erreur se produisant dans la " "suite. Voir l'étape 6 ci-dessous." -#: ../Doc/reference/compound_stmts.rst:417 +#: ../Doc/reference/compound_stmts.rst:419 msgid "The suite is executed." msgstr "La suite est exécutée." -#: ../Doc/reference/compound_stmts.rst:419 +#: ../Doc/reference/compound_stmts.rst:421 msgid "" "The context manager's :meth:`__exit__` method is invoked. If an exception " "caused the suite to be exited, its type, value, and traceback are passed as " @@ -583,7 +590,7 @@ msgstr "" "d'appels sont passés en arguments à :meth:`__exit__`. Sinon, trois " "arguments :const:`None` sont fournis." -#: ../Doc/reference/compound_stmts.rst:424 +#: ../Doc/reference/compound_stmts.rst:426 msgid "" "If the suite was exited due to an exception, and the return value from the :" "meth:`__exit__` method was false, the exception is reraised. If the return " @@ -596,7 +603,7 @@ msgstr "" "l'exécution continue avec l'instruction qui suit l'instruction :keyword:" "`with`." -#: ../Doc/reference/compound_stmts.rst:429 +#: ../Doc/reference/compound_stmts.rst:431 msgid "" "If the suite was exited for any reason other than an exception, the return " "value from :meth:`__exit__` is ignored, and execution proceeds at the normal " @@ -606,7 +613,20 @@ msgstr "" "valeur de retour de :meth:`__exit__` est ignorée et l'exécution se poursuit " "à l'endroit normal pour le type de sortie prise." -#: ../Doc/reference/compound_stmts.rst:433 +#: ../Doc/reference/compound_stmts.rst:435 +#: ../Doc/reference/compound_stmts.rst:798 +#: ../Doc/reference/compound_stmts.rst:839 +msgid "The following code::" +msgstr "Le code suivant ::" + +#: ../Doc/reference/compound_stmts.rst:440 +#: ../Doc/reference/compound_stmts.rst:465 +#: ../Doc/reference/compound_stmts.rst:844 +#, fuzzy +msgid "is semantically equivalent to::" +msgstr "est sémantiquement équivalent à ::" + +#: ../Doc/reference/compound_stmts.rst:459 msgid "" "With more than one item, the context managers are processed as if multiple :" "keyword:`with` statements were nested::" @@ -614,20 +634,15 @@ msgstr "" "Avec plus d'un élément, les gestionnaires de contexte sont traités comme si " "plusieurs instructions :keyword:`with` étaient imbriquées ::" -#: ../Doc/reference/compound_stmts.rst:439 -#: ../Doc/reference/compound_stmts.rst:656 -msgid "is equivalent to ::" -msgstr "est équivalente à ::" - -#: ../Doc/reference/compound_stmts.rst:445 +#: ../Doc/reference/compound_stmts.rst:471 msgid "Support for multiple context expressions." msgstr "Prise en charge de multiples expressions de contexte." -#: ../Doc/reference/compound_stmts.rst:451 +#: ../Doc/reference/compound_stmts.rst:477 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` — L'instruction « *with* »" -#: ../Doc/reference/compound_stmts.rst:451 +#: ../Doc/reference/compound_stmts.rst:477 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." @@ -635,11 +650,11 @@ msgstr "" "La spécification, les motivations et des exemples de l'instruction :keyword:" "`with` en Python." -#: ../Doc/reference/compound_stmts.rst:462 +#: ../Doc/reference/compound_stmts.rst:488 msgid "Function definitions" msgstr "Définition de fonctions" -#: ../Doc/reference/compound_stmts.rst:477 +#: ../Doc/reference/compound_stmts.rst:503 msgid "" "A function definition defines a user-defined function object (see section :" "ref:`types`):" @@ -647,7 +662,7 @@ msgstr "" "Une définition de fonction définit un objet fonction allogène (voir la " "section :ref:`types`) :" -#: ../Doc/reference/compound_stmts.rst:497 +#: ../Doc/reference/compound_stmts.rst:523 msgid "" "A function definition is an executable statement. Its execution binds the " "function name in the current local namespace to a function object (a wrapper " @@ -662,7 +677,7 @@ msgstr "" "globaux courant comme espace des noms globaux à utiliser lorsque la fonction " "est appelée." -#: ../Doc/reference/compound_stmts.rst:503 +#: ../Doc/reference/compound_stmts.rst:529 msgid "" "The function definition does not execute the function body; this gets " "executed only when the function is called. [#]_" @@ -670,7 +685,7 @@ msgstr "" "La définition de la fonction n'exécute pas le corps de la fonction ; elle " "n'est exécutée que lorsque la fonction est appelée. [#]_" -#: ../Doc/reference/compound_stmts.rst:509 +#: ../Doc/reference/compound_stmts.rst:535 msgid "" "A function definition may be wrapped by one or more :term:`decorator` " "expressions. Decorator expressions are evaluated when the function is " @@ -689,19 +704,19 @@ msgstr "" "décorateurs, ils sont appliqués par imbrication ; par exemple, le code " "suivant ::" -#: ../Doc/reference/compound_stmts.rst:520 -#: ../Doc/reference/compound_stmts.rst:686 +#: ../Doc/reference/compound_stmts.rst:546 +#: ../Doc/reference/compound_stmts.rst:712 msgid "is roughly equivalent to ::" msgstr "est à peu près équivalent à ::" -#: ../Doc/reference/compound_stmts.rst:525 +#: ../Doc/reference/compound_stmts.rst:551 msgid "" "except that the original function is not temporarily bound to the name " "``func``." msgstr "" "sauf que la fonction originale n'est pas temporairement liée au nom ``func``." -#: ../Doc/reference/compound_stmts.rst:532 +#: ../Doc/reference/compound_stmts.rst:558 msgid "" "When one or more :term:`parameters ` have the form *parameter* " "``=`` *expression*, the function is said to have \"default parameter values." @@ -720,7 +735,7 @@ msgstr "" "une valeur par défaut — ceci est une restriction syntaxique qui n'est pas " "exprimée dans la grammaire." -#: ../Doc/reference/compound_stmts.rst:540 +#: ../Doc/reference/compound_stmts.rst:566 msgid "" "**Default parameter values are evaluated from left to right when the " "function definition is executed.** This means that the expression is " @@ -743,7 +758,7 @@ msgstr "" "d'éviter cet écueil est d'utiliser ``None`` par défaut et de tester " "explicitement la valeur dans le corps de la fonction. Par exemple ::" -#: ../Doc/reference/compound_stmts.rst:560 +#: ../Doc/reference/compound_stmts.rst:586 msgid "" "Function call semantics are described in more detail in section :ref:" "`calls`. A function call always assigns values to all parameters mentioned " @@ -769,7 +784,7 @@ msgstr "" "ou \"``*identifier``\" sont forcément des paramètres par mot-clé et ne " "peuvent être passés qu'en utilisant des arguments par mot-clé." -#: ../Doc/reference/compound_stmts.rst:576 +#: ../Doc/reference/compound_stmts.rst:602 msgid "" "Parameters may have an :term:`annotation ` of the form " "\"``: expression``\" following the parameter name. Any parameter may have " @@ -801,7 +816,7 @@ msgstr "" "cas, les annotations peuvent être interprétées dans un ordre différent de " "l'ordre dans lequel elles apparaissent dans le fichier." -#: ../Doc/reference/compound_stmts.rst:591 +#: ../Doc/reference/compound_stmts.rst:617 msgid "" "It is also possible to create anonymous functions (functions not bound to a " "name), for immediate use in expressions. This uses lambda expressions, " @@ -822,7 +837,7 @@ msgstr "" "en fait plus puissante puisqu'elle permet l'exécution de plusieurs " "instructions et les annotations." -#: ../Doc/reference/compound_stmts.rst:599 +#: ../Doc/reference/compound_stmts.rst:625 msgid "" "**Programmer's note:** Functions are first-class objects. A \"``def``\" " "statement executed inside a function definition defines a local function " @@ -837,29 +852,29 @@ msgstr "" "ont accès aux variables locales de la fonction contenant le \"``def``\". " "Voir la section :ref:`naming` pour plus de détails." -#: ../Doc/reference/compound_stmts.rst:608 +#: ../Doc/reference/compound_stmts.rst:634 msgid ":pep:`3107` - Function Annotations" msgstr ":pep:`3107` — Annotations de fonctions" -#: ../Doc/reference/compound_stmts.rst:608 +#: ../Doc/reference/compound_stmts.rst:634 msgid "The original specification for function annotations." msgstr "La spécification originale pour les annotations de fonctions." -#: ../Doc/reference/compound_stmts.rst:611 +#: ../Doc/reference/compound_stmts.rst:637 msgid ":pep:`484` - Type Hints" msgstr ":pep:`484` — Indications de types" -#: ../Doc/reference/compound_stmts.rst:611 +#: ../Doc/reference/compound_stmts.rst:637 msgid "Definition of a standard meaning for annotations: type hints." msgstr "" "Définition de la signification standard pour les annotations : indications " "de types." -#: ../Doc/reference/compound_stmts.rst:615 +#: ../Doc/reference/compound_stmts.rst:641 msgid ":pep:`526` - Syntax for Variable Annotations" msgstr ":pep:`526` — Syntaxe pour les annotations de variables" -#: ../Doc/reference/compound_stmts.rst:614 +#: ../Doc/reference/compound_stmts.rst:640 msgid "" "Ability to type hint variable declarations, including class variables and " "instance variables" @@ -867,11 +882,11 @@ msgstr "" "Capacité d'indiquer des types pour les déclarations de variables, y compris " "les variables de classes et les variables d'instances" -#: ../Doc/reference/compound_stmts.rst:618 +#: ../Doc/reference/compound_stmts.rst:644 msgid ":pep:`563` - Postponed Evaluation of Annotations" msgstr ":pep:`563` — Évaluation différée des annotations" -#: ../Doc/reference/compound_stmts.rst:618 +#: ../Doc/reference/compound_stmts.rst:644 msgid "" "Support for forward references within annotations by preserving annotations " "in a string form at runtime instead of eager evaluation." @@ -880,17 +895,17 @@ msgstr "" "préservant les annotations sous forme de chaînes à l'exécution au lieu d'une " "évaluation directe." -#: ../Doc/reference/compound_stmts.rst:625 +#: ../Doc/reference/compound_stmts.rst:651 msgid "Class definitions" msgstr "Définition de classes" -#: ../Doc/reference/compound_stmts.rst:640 +#: ../Doc/reference/compound_stmts.rst:666 msgid "A class definition defines a class object (see section :ref:`types`):" msgstr "" "Une définition de classe définit un objet classe (voir la section :ref:" "`types`) :" -#: ../Doc/reference/compound_stmts.rst:647 +#: ../Doc/reference/compound_stmts.rst:673 msgid "" "A class definition is an executable statement. The inheritance list usually " "gives a list of base classes (see :ref:`metaclasses` for more advanced " @@ -906,7 +921,11 @@ msgstr "" "classes sans liste d'héritage héritent, par défaut, de la classe de base :" "class:`object` ; d'où ::" -#: ../Doc/reference/compound_stmts.rst:661 +#: ../Doc/reference/compound_stmts.rst:682 +msgid "is equivalent to ::" +msgstr "est équivalente à ::" + +#: ../Doc/reference/compound_stmts.rst:687 msgid "" "The class's suite is then executed in a new execution frame (see :ref:" "`naming`), using a newly created local namespace and the original global " @@ -927,7 +946,7 @@ msgstr "" "de nommage sauvegardé comme dictionnaire des attributs. Le nom de classe est " "lié à l'objet classe dans l'espace de nommage local original." -#: ../Doc/reference/compound_stmts.rst:670 +#: ../Doc/reference/compound_stmts.rst:696 msgid "" "The order in which attributes are defined in the class body is preserved in " "the new class's ``__dict__``. Note that this is reliable only right after " @@ -939,7 +958,7 @@ msgstr "" "n'est fiable que juste après la création de la classe et seulement pour les " "classes qui ont été définies en utilisant la syntaxe de définition." -#: ../Doc/reference/compound_stmts.rst:675 +#: ../Doc/reference/compound_stmts.rst:701 msgid "" "Class creation can be customized heavily using :ref:`metaclasses " "`." @@ -947,13 +966,13 @@ msgstr "" "La création de classes peut être fortement personnalisée en utilisant les :" "ref:`métaclasses `." -#: ../Doc/reference/compound_stmts.rst:680 +#: ../Doc/reference/compound_stmts.rst:706 msgid "Classes can also be decorated: just like when decorating functions, ::" msgstr "" "Les classes peuvent aussi être décorées : comme pour les décorateurs de " "fonctions, ::" -#: ../Doc/reference/compound_stmts.rst:691 +#: ../Doc/reference/compound_stmts.rst:717 msgid "" "The evaluation rules for the decorator expressions are the same as for " "function decorators. The result is then bound to the class name." @@ -962,7 +981,7 @@ msgstr "" "que pour les décorateurs de fonctions. Le résultat est alors lié au nom de " "la classe." -#: ../Doc/reference/compound_stmts.rst:694 +#: ../Doc/reference/compound_stmts.rst:720 msgid "" "**Programmer's note:** Variables defined in the class definition are class " "attributes; they are shared by instances. Instance attributes can be set in " @@ -986,11 +1005,11 @@ msgstr "" "peuvent être utilisés pour créer des variables d'instances avec des détails " "d'implémentation différents." -#: ../Doc/reference/compound_stmts.rst:709 +#: ../Doc/reference/compound_stmts.rst:735 msgid ":pep:`3115` - Metaclasses in Python 3000" msgstr ":pep:`3115` — Métaclasses dans Python 3000" -#: ../Doc/reference/compound_stmts.rst:707 +#: ../Doc/reference/compound_stmts.rst:733 msgid "" "The proposal that changed the declaration of metaclasses to the current " "syntax, and the semantics for how classes with metaclasses are constructed." @@ -999,11 +1018,11 @@ msgstr "" "actuelle, et la sémantique pour la façon dont les classes avec métaclasses " "sont construites." -#: ../Doc/reference/compound_stmts.rst:712 +#: ../Doc/reference/compound_stmts.rst:738 msgid ":pep:`3129` - Class Decorators" msgstr ":pep:`3129` — Décorateurs de classes" -#: ../Doc/reference/compound_stmts.rst:712 +#: ../Doc/reference/compound_stmts.rst:738 msgid "" "The proposal that added class decorators. Function and method decorators " "were introduced in :pep:`318`." @@ -1011,15 +1030,15 @@ msgstr "" "La proposition qui a ajouté des décorateurs de classe. Les décorateurs de " "fonction et de méthode ont été introduits dans :pep:`318`." -#: ../Doc/reference/compound_stmts.rst:719 +#: ../Doc/reference/compound_stmts.rst:745 msgid "Coroutines" msgstr "Coroutines" -#: ../Doc/reference/compound_stmts.rst:727 +#: ../Doc/reference/compound_stmts.rst:753 msgid "Coroutine function definition" msgstr "Définition de fonctions coroutines" -#: ../Doc/reference/compound_stmts.rst:737 +#: ../Doc/reference/compound_stmts.rst:763 msgid "" "Execution of Python coroutines can be suspended and resumed at many points " "(see :term:`coroutine`). Inside the body of a coroutine function, ``await`` " @@ -1033,7 +1052,7 @@ msgstr "" "expressions :keyword:`await`, :keyword:`async for` et :keyword:`async with` " "ne peuvent être utilisées que dans les corps de coroutines." -#: ../Doc/reference/compound_stmts.rst:743 +#: ../Doc/reference/compound_stmts.rst:769 msgid "" "Functions defined with ``async def`` syntax are always coroutine functions, " "even if they do not contain ``await`` or ``async`` keywords." @@ -1042,7 +1061,7 @@ msgstr "" "fonctions coroutines, même si elles ne contiennent aucun mot-clé ``await`` " "ou ``async``." -#: ../Doc/reference/compound_stmts.rst:746 +#: ../Doc/reference/compound_stmts.rst:772 msgid "" "It is a :exc:`SyntaxError` to use a ``yield from`` expression inside the " "body of a coroutine function." @@ -1050,15 +1069,15 @@ msgstr "" "C'est une :exc:`SyntaxError` d'utiliser une expression ``yield from`` dans " "une coroutine." -#: ../Doc/reference/compound_stmts.rst:749 +#: ../Doc/reference/compound_stmts.rst:775 msgid "An example of a coroutine function::" msgstr "Un exemple de fonction coroutine ::" -#: ../Doc/reference/compound_stmts.rst:760 +#: ../Doc/reference/compound_stmts.rst:786 msgid "The :keyword:`!async for` statement" msgstr "L'instruction :keyword:`!async for`" -#: ../Doc/reference/compound_stmts.rst:765 +#: ../Doc/reference/compound_stmts.rst:791 msgid "" "An :term:`asynchronous iterable` is able to call asynchronous code in its " "*iter* implementation, and :term:`asynchronous iterator` can call " @@ -1069,7 +1088,7 @@ msgstr "" "`itérateur asynchrone ` peut appeler du code " "asynchrone dans sa méthode *next*." -#: ../Doc/reference/compound_stmts.rst:769 +#: ../Doc/reference/compound_stmts.rst:795 msgid "" "The ``async for`` statement allows convenient iteration over asynchronous " "iterators." @@ -1077,22 +1096,16 @@ msgstr "" "L'instruction ``async for`` permet d'itérer facilement sur des itérateurs " "asynchrones." -#: ../Doc/reference/compound_stmts.rst:772 -#: ../Doc/reference/compound_stmts.rst:812 -msgid "The following code::" -msgstr "Le code suivant ::" - -#: ../Doc/reference/compound_stmts.rst:779 -#: ../Doc/reference/compound_stmts.rst:817 +#: ../Doc/reference/compound_stmts.rst:805 msgid "Is semantically equivalent to::" msgstr "est sémantiquement équivalent à ::" -#: ../Doc/reference/compound_stmts.rst:794 +#: ../Doc/reference/compound_stmts.rst:821 msgid "See also :meth:`__aiter__` and :meth:`__anext__` for details." msgstr "" "Voir aussi :meth:`__aiter__` et :meth:`__anext__` pour plus de détails." -#: ../Doc/reference/compound_stmts.rst:796 +#: ../Doc/reference/compound_stmts.rst:823 msgid "" "It is a :exc:`SyntaxError` to use an ``async for`` statement outside the " "body of a coroutine function." @@ -1100,11 +1113,11 @@ msgstr "" "C'est une :exc:`SyntaxError` d'utiliser une instruction ``async for`` en " "dehors d'une fonction coroutine." -#: ../Doc/reference/compound_stmts.rst:804 +#: ../Doc/reference/compound_stmts.rst:831 msgid "The :keyword:`!async with` statement" msgstr "L'instruction :keyword:`!async with`" -#: ../Doc/reference/compound_stmts.rst:809 +#: ../Doc/reference/compound_stmts.rst:836 msgid "" "An :term:`asynchronous context manager` is a :term:`context manager` that is " "able to suspend execution in its *enter* and *exit* methods." @@ -1113,12 +1126,12 @@ msgstr "" "manager>` est un :term:`gestionnaire de contexte ` qui est " "capable de suspendre l'exécution dans ses méthodes *enter* et *exit*." -#: ../Doc/reference/compound_stmts.rst:832 +#: ../Doc/reference/compound_stmts.rst:863 msgid "See also :meth:`__aenter__` and :meth:`__aexit__` for details." msgstr "" "Voir aussi :meth:`__aenter__` et :meth:`__aexit__` pour plus de détails." -#: ../Doc/reference/compound_stmts.rst:834 +#: ../Doc/reference/compound_stmts.rst:865 msgid "" "It is a :exc:`SyntaxError` to use an ``async with`` statement outside the " "body of a coroutine function." @@ -1126,11 +1139,11 @@ msgstr "" "C'est une :exc:`SyntaxError` d'utiliser l'instruction ``async with`` en " "dehors d'une fonction coroutine." -#: ../Doc/reference/compound_stmts.rst:840 +#: ../Doc/reference/compound_stmts.rst:871 msgid ":pep:`492` - Coroutines with async and await syntax" msgstr ":pep:`492` — Coroutines avec les syntaxes *async* et *await*" -#: ../Doc/reference/compound_stmts.rst:840 +#: ../Doc/reference/compound_stmts.rst:871 msgid "" "The proposal that made coroutines a proper standalone concept in Python, and " "added supporting syntax." @@ -1138,11 +1151,11 @@ msgstr "" "La proposition qui a fait que les coroutines soient un concept propre en " "Python, et a ajouté la syntaxe de prise en charge de celles-ci." -#: ../Doc/reference/compound_stmts.rst:845 +#: ../Doc/reference/compound_stmts.rst:876 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/compound_stmts.rst:846 +#: ../Doc/reference/compound_stmts.rst:877 msgid "" "The exception is propagated to the invocation stack unless there is a :" "keyword:`finally` clause which happens to raise another exception. That new " @@ -1153,7 +1166,7 @@ msgstr "" "perte de l'ancienne exception. Cette nouvelle exception entraîne la perte " "pure et simple de l'ancienne." -#: ../Doc/reference/compound_stmts.rst:850 +#: ../Doc/reference/compound_stmts.rst:881 msgid "" "A string literal appearing as the first statement in the function body is " "transformed into the function's ``__doc__`` attribute and therefore the " @@ -1163,7 +1176,7 @@ msgstr "" "de la fonction est transformée en attribut ``__doc__`` de la fonction et " "donc en :term:`docstring` de la fonction." -#: ../Doc/reference/compound_stmts.rst:854 +#: ../Doc/reference/compound_stmts.rst:885 msgid "" "A string literal appearing as the first statement in the class body is " "transformed into the namespace's ``__doc__`` item and therefore the class's :" diff --git a/reference/datamodel.po b/reference/datamodel.po index d3882800..5eb3660e 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-12-05 23:16+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-12-11 11:27+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -1561,6 +1561,7 @@ msgstr "" "référence (directe ou indirecte) à des objets muables." #: ../Doc/reference/datamodel.rst:909 +#, fuzzy msgid "" "Special read-only attributes: :attr:`co_name` gives the function name; :attr:" "`co_argcount` is the total number of positional arguments (including " @@ -1580,9 +1581,8 @@ msgid "" "which the code was compiled; :attr:`co_firstlineno` is the first line number " "of the function; :attr:`co_lnotab` is a string encoding the mapping from " "bytecode offsets to line numbers (for details see the source code of the " -"interpreter); :attr:`co_stacksize` is the required stack size (including " -"local variables); :attr:`co_flags` is an integer encoding a number of flags " -"for the interpreter." +"interpreter); :attr:`co_stacksize` is the required stack size; :attr:" +"`co_flags` is an integer encoding a number of flags for the interpreter." msgstr "" "Attributs spéciaux en lecture seule : :attr:`co_name` donne le nom de la " "fonction ; :attr:`co_argcount` est le nombre total d'arguments positionnels " @@ -3330,7 +3330,7 @@ msgstr "" "utilisé à la place de la classe de base. Le tuple peut être vide, dans ce " "cas la classe de base originale est ignorée." -#: ../Doc/reference/datamodel.rst:1914 ../Doc/reference/datamodel.rst:2101 +#: ../Doc/reference/datamodel.rst:1914 ../Doc/reference/datamodel.rst:2102 msgid ":pep:`560` - Core support for typing module and generic types" msgstr "" ":pep:`560` — Gestion de base pour les types modules et les types génériques" @@ -3390,11 +3390,13 @@ msgid "Preparing the class namespace" msgstr "Préparation de l'espace de nommage de la classe" #: ../Doc/reference/datamodel.rst:1945 +#, fuzzy msgid "" "Once the appropriate metaclass has been identified, then the class namespace " "is prepared. If the metaclass has a ``__prepare__`` attribute, it is called " "as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the " -"additional keyword arguments, if any, come from the class definition)." +"additional keyword arguments, if any, come from the class definition). The " +"``__prepare__`` method should be implemented as a :func:`classmethod`." msgstr "" "Une fois que la méta-classe appropriée est identifiée, l'espace de nommage " "de la classe est préparé. Si la méta-classe possède un attribut " @@ -3402,7 +3404,7 @@ msgstr "" "__prepare__(name, bases, **kwds)`` (où les arguments nommés supplémentaires, " "s'il y en a, viennent de la définition de la classe)." -#: ../Doc/reference/datamodel.rst:1950 +#: ../Doc/reference/datamodel.rst:1951 msgid "" "If the metaclass has no ``__prepare__`` attribute, then the class namespace " "is initialised as an empty ordered mapping." @@ -3411,21 +3413,21 @@ msgstr "" "de nommage de la classe est initialisé en tant que tableau de " "correspondances ordonné." -#: ../Doc/reference/datamodel.rst:1955 +#: ../Doc/reference/datamodel.rst:1956 msgid ":pep:`3115` - Metaclasses in Python 3000" msgstr ":pep:`3115` — Méta-classes dans Python 3000" -#: ../Doc/reference/datamodel.rst:1956 +#: ../Doc/reference/datamodel.rst:1957 msgid "Introduced the ``__prepare__`` namespace hook" msgstr "" "introduction de la fonction automatique ``__prepare__`` de l'espace de " "nommage" -#: ../Doc/reference/datamodel.rst:1960 +#: ../Doc/reference/datamodel.rst:1961 msgid "Executing the class body" msgstr "Exécution du corps de la classe" -#: ../Doc/reference/datamodel.rst:1965 +#: ../Doc/reference/datamodel.rst:1966 msgid "" "The class body is executed (approximately) as ``exec(body, globals(), " "namespace)``. The key difference from a normal call to :func:`exec` is that " @@ -3440,7 +3442,7 @@ msgstr "" "des portées externes lorsque la définition de classe a lieu dans une " "fonction." -#: ../Doc/reference/datamodel.rst:1971 +#: ../Doc/reference/datamodel.rst:1972 msgid "" "However, even when the class definition occurs inside the function, methods " "defined inside the class still cannot see names defined at the class scope. " @@ -3455,11 +3457,11 @@ msgstr "" "ou *via* la référence implicite ``__class__`` incluse dans la portée " "lexicale et décrite dans la section suivante." -#: ../Doc/reference/datamodel.rst:1980 +#: ../Doc/reference/datamodel.rst:1981 msgid "Creating the class object" msgstr "Création de l'objet classe" -#: ../Doc/reference/datamodel.rst:1987 +#: ../Doc/reference/datamodel.rst:1988 msgid "" "Once the class namespace has been populated by executing the class body, the " "class object is created by calling ``metaclass(name, bases, namespace, " @@ -3471,7 +3473,7 @@ msgstr "" "**kwds)`` (les arguments nommés supplémentaires passés ici sont les mêmes " "que ceux passés à ``__prepare__``)." -#: ../Doc/reference/datamodel.rst:1992 +#: ../Doc/reference/datamodel.rst:1993 msgid "" "This class object is the one that will be referenced by the zero-argument " "form of :func:`super`. ``__class__`` is an implicit closure reference " @@ -3490,7 +3492,7 @@ msgstr "" "l'appel en cours est identifiée en fonction du premier argument transmis à " "la méthode." -#: ../Doc/reference/datamodel.rst:2002 +#: ../Doc/reference/datamodel.rst:2003 msgid "" "In CPython 3.6 and later, the ``__class__`` cell is passed to the metaclass " "as a ``__classcell__`` entry in the class namespace. If present, this must " @@ -3504,7 +3506,7 @@ msgstr "" "new__`` pour que la classe soit correctement initialisée. Ne pas le faire se " "traduit par un :exc:`RuntimeError` dans Python 3.8." -#: ../Doc/reference/datamodel.rst:2008 +#: ../Doc/reference/datamodel.rst:2009 msgid "" "When using the default metaclass :class:`type`, or any metaclass that " "ultimately calls ``type.__new__``, the following additional customisation " @@ -3515,7 +3517,7 @@ msgstr "" "personnalisation supplémentaires suivantes sont suivies après la création de " "l'objet classe :" -#: ../Doc/reference/datamodel.rst:2012 +#: ../Doc/reference/datamodel.rst:2013 msgid "" "first, ``type.__new__`` collects all of the descriptors in the class " "namespace that define a :meth:`~object.__set_name__` method;" @@ -3524,7 +3526,7 @@ msgstr "" "tous les descripteurs qui définissent une méthode :meth:`~object." "__set_name__` ;" -#: ../Doc/reference/datamodel.rst:2014 +#: ../Doc/reference/datamodel.rst:2015 msgid "" "second, all of these ``__set_name__`` methods are called with the class " "being defined and the assigned name of that particular descriptor;" @@ -3532,7 +3534,7 @@ msgstr "" "ensuite, toutes ces méthodes ``__set_name__`` sont appelées avec la classe " "en cours de définition et le nom assigné à chaque descripteur ;" -#: ../Doc/reference/datamodel.rst:2016 +#: ../Doc/reference/datamodel.rst:2017 msgid "" "finally, the :meth:`~object.__init_subclass__` hook is called on the " "immediate parent of the new class in its method resolution order." @@ -3541,7 +3543,7 @@ msgstr "" "appelée sur le parent immédiat de la nouvelle classe en utilisant l'ordre de " "résolution des méthodes." -#: ../Doc/reference/datamodel.rst:2019 +#: ../Doc/reference/datamodel.rst:2020 msgid "" "After the class object is created, it is passed to the class decorators " "included in the class definition (if any) and the resulting object is bound " @@ -3552,7 +3554,7 @@ msgstr "" "et l'objet résultant est lié à l'espace de nommage local en tant que classe " "définie." -#: ../Doc/reference/datamodel.rst:2023 +#: ../Doc/reference/datamodel.rst:2024 msgid "" "When a new class is created by ``type.__new__``, the object provided as the " "namespace parameter is copied to a new ordered mapping and the original " @@ -3565,21 +3567,21 @@ msgstr "" "nouvelle copie est encapsulée dans un mandataire en lecture seule qui " "devient l'attribut :attr:`~object.__dict__` de l'objet classe." -#: ../Doc/reference/datamodel.rst:2030 +#: ../Doc/reference/datamodel.rst:2031 msgid ":pep:`3135` - New super" msgstr ":pep:`3135` — Nouvelle méthode super" -#: ../Doc/reference/datamodel.rst:2031 +#: ../Doc/reference/datamodel.rst:2032 msgid "Describes the implicit ``__class__`` closure reference" msgstr "" "Décrit la référence à la fermeture (*closure* en anglais) de la " "``__class__`` implicite" -#: ../Doc/reference/datamodel.rst:2035 +#: ../Doc/reference/datamodel.rst:2036 msgid "Uses for metaclasses" msgstr "Cas d'utilisations des métaclasses" -#: ../Doc/reference/datamodel.rst:2037 +#: ../Doc/reference/datamodel.rst:2038 msgid "" "The potential uses for metaclasses are boundless. Some ideas that have been " "explored include enum, logging, interface checking, automatic delegation, " @@ -3592,11 +3594,11 @@ msgstr "" "de propriétés, les mandataires, les *frameworks* ainsi que le verrouillage " "ou la synchronisation automatique de ressources." -#: ../Doc/reference/datamodel.rst:2044 +#: ../Doc/reference/datamodel.rst:2045 msgid "Customizing instance and subclass checks" msgstr "Personnalisation des instances et vérification des sous-classes" -#: ../Doc/reference/datamodel.rst:2046 +#: ../Doc/reference/datamodel.rst:2047 msgid "" "The following methods are used to override the default behavior of the :func:" "`isinstance` and :func:`issubclass` built-in functions." @@ -3604,7 +3606,7 @@ msgstr "" "Les méthodes suivantes sont utilisées pour surcharger le comportement par " "défaut des fonctions natives :func:`isinstance` et :func:`issubclass`." -#: ../Doc/reference/datamodel.rst:2049 +#: ../Doc/reference/datamodel.rst:2050 msgid "" "In particular, the metaclass :class:`abc.ABCMeta` implements these methods " "in order to allow the addition of Abstract Base Classes (ABCs) as \"virtual " @@ -3616,7 +3618,7 @@ msgstr "" "Base Classes* en anglais) en tant que « classes de base virtuelles » pour " "toute classe ou type (y compris les types natifs)." -#: ../Doc/reference/datamodel.rst:2056 +#: ../Doc/reference/datamodel.rst:2057 msgid "" "Return true if *instance* should be considered a (direct or indirect) " "instance of *class*. If defined, called to implement ``isinstance(instance, " @@ -3626,7 +3628,7 @@ msgstr "" "(directe ou indirecte) de *class*. Si elle est définie, elle est appelée " "pour implémenter ``isinstance(instance, class)``." -#: ../Doc/reference/datamodel.rst:2063 +#: ../Doc/reference/datamodel.rst:2064 msgid "" "Return true if *subclass* should be considered a (direct or indirect) " "subclass of *class*. If defined, called to implement ``issubclass(subclass, " @@ -3636,7 +3638,7 @@ msgstr "" "(directe ou indirecte) de *class*. Si elle est définie, appelée pour " "implémenter ``issubclass(subclass, class)``." -#: ../Doc/reference/datamodel.rst:2068 +#: ../Doc/reference/datamodel.rst:2069 msgid "" "Note that these methods are looked up on the type (metaclass) of a class. " "They cannot be defined as class methods in the actual class. This is " @@ -3649,11 +3651,11 @@ msgstr "" "spéciales qui sont appelées pour les instances, sauf qu'ici l'instance est " "elle-même une classe." -#: ../Doc/reference/datamodel.rst:2079 +#: ../Doc/reference/datamodel.rst:2080 msgid ":pep:`3119` - Introducing Abstract Base Classes" msgstr ":pep:`3119` — Introduction aux classes de bases abstraites" -#: ../Doc/reference/datamodel.rst:2076 +#: ../Doc/reference/datamodel.rst:2077 msgid "" "Includes the specification for customizing :func:`isinstance` and :func:" "`issubclass` behavior through :meth:`~class.__instancecheck__` and :meth:" @@ -3667,11 +3669,11 @@ msgstr "" "motivation pour cette fonctionnalité l'ajout les classes de base abstraites " "(voir le module :mod:`abc`) au langage." -#: ../Doc/reference/datamodel.rst:2084 +#: ../Doc/reference/datamodel.rst:2085 msgid "Emulating generic types" msgstr "Émulation de types génériques" -#: ../Doc/reference/datamodel.rst:2086 +#: ../Doc/reference/datamodel.rst:2087 msgid "" "One can implement the generic class syntax as specified by :pep:`484` (for " "example ``List[int]``) by defining a special method:" @@ -3680,7 +3682,7 @@ msgstr "" "la :pep:`484` (par exemple ``List[int]``) en définissant une méthode " "spéciale :" -#: ../Doc/reference/datamodel.rst:2091 +#: ../Doc/reference/datamodel.rst:2092 msgid "" "Return an object representing the specialization of a generic class by type " "arguments found in *key*." @@ -3688,7 +3690,7 @@ msgstr "" "Renvoie un objet représentant la spécialisation d'une classe générique en " "fonction des arguments types trouvés dans *key*." -#: ../Doc/reference/datamodel.rst:2094 +#: ../Doc/reference/datamodel.rst:2095 msgid "" "This method is looked up on the class object itself, and when defined in the " "class body, this method is implicitly a class method. Note, this mechanism " @@ -3701,11 +3703,11 @@ msgstr "" "principalement réservé à une utilisation avec des indications de type " "statiques, d'autres utilisations sont déconseillées." -#: ../Doc/reference/datamodel.rst:2107 +#: ../Doc/reference/datamodel.rst:2108 msgid "Emulating callable objects" msgstr "Émulation d'objets appelables" -#: ../Doc/reference/datamodel.rst:2114 +#: ../Doc/reference/datamodel.rst:2115 msgid "" "Called when the instance is \"called\" as a function; if this method is " "defined, ``x(arg1, arg2, ...)`` is a shorthand for ``x.__call__(arg1, " @@ -3715,11 +3717,11 @@ msgstr "" "méthode est définie, ``x(arg1, arg2, ...)`` est un raccourci pour ``x." "__call__(arg1, arg2, ...)``." -#: ../Doc/reference/datamodel.rst:2121 +#: ../Doc/reference/datamodel.rst:2122 msgid "Emulating container types" msgstr "Émulation de types conteneurs" -#: ../Doc/reference/datamodel.rst:2123 +#: ../Doc/reference/datamodel.rst:2124 msgid "" "The following methods can be defined to implement container objects. " "Containers usually are sequences (such as lists or tuples) or mappings (like " @@ -3786,7 +3788,7 @@ msgstr "" "de correspondances, :meth:`__iter__` doit itérer sur les clés de l'objet ; " "pour les séquences, elle doit itérer sur les valeurs." -#: ../Doc/reference/datamodel.rst:2158 +#: ../Doc/reference/datamodel.rst:2159 msgid "" "Called to implement the built-in function :func:`len`. Should return the " "length of the object, an integer ``>=`` 0. Also, an object that doesn't " @@ -3798,7 +3800,7 @@ msgstr "" "définit pas de méthode :meth:`__bool__` et dont la méthode :meth:`__len__` " "renvoie zéro est considéré comme valant ``False`` dans un contexte booléen." -#: ../Doc/reference/datamodel.rst:2165 +#: ../Doc/reference/datamodel.rst:2166 msgid "" "In CPython, the length is required to be at most :attr:`sys.maxsize`. If the " "length is larger than :attr:`!sys.maxsize` some features (such as :func:" @@ -3812,7 +3814,7 @@ msgstr "" "exc:`!OverflowError` lors de tests booléens, un objet doit définir la " "méthode :meth:`__bool__`." -#: ../Doc/reference/datamodel.rst:2174 +#: ../Doc/reference/datamodel.rst:2175 msgid "" "Called to implement :func:`operator.length_hint`. Should return an estimated " "length for the object (which may be greater or less than the actual length). " @@ -3829,22 +3831,22 @@ msgstr "" "méthode est utilisée uniquement pour optimiser les traitements et n'est " "jamais tenue de renvoyer un résultat exact." -#: ../Doc/reference/datamodel.rst:2188 +#: ../Doc/reference/datamodel.rst:2189 msgid "" "Slicing is done exclusively with the following three methods. A call like ::" msgstr "" "Le découpage est effectué uniquement à l'aide des trois méthodes suivantes. " "Un appel comme ::" -#: ../Doc/reference/datamodel.rst:2192 +#: ../Doc/reference/datamodel.rst:2193 msgid "is translated to ::" msgstr "est traduit en ::" -#: ../Doc/reference/datamodel.rst:2196 +#: ../Doc/reference/datamodel.rst:2197 msgid "and so forth. Missing slice items are always filled in with ``None``." msgstr "et ainsi de suite. Les éléments manquants sont remplacés par ``None``." -#: ../Doc/reference/datamodel.rst:2201 +#: ../Doc/reference/datamodel.rst:2202 msgid "" "Called to implement evaluation of ``self[key]``. For sequence types, the " "accepted keys should be integers and slice objects. Note that the special " @@ -3865,7 +3867,7 @@ msgstr "" "`IndexError` doit être levée. Pour les tableaux de correspondances, si *key* " "n'existe pas dans le conteneur, une :exc:`KeyError` doit être levée." -#: ../Doc/reference/datamodel.rst:2212 +#: ../Doc/reference/datamodel.rst:2213 msgid "" ":keyword:`for` loops expect that an :exc:`IndexError` will be raised for " "illegal indexes to allow proper detection of the end of the sequence." @@ -3873,7 +3875,7 @@ msgstr "" ":keyword:`for` s'attend à ce qu'une :exc:`IndexError` soit levée en cas " "d'indice illégal afin de détecter correctement la fin de la séquence." -#: ../Doc/reference/datamodel.rst:2218 +#: ../Doc/reference/datamodel.rst:2219 msgid "" "Called to implement assignment to ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -3889,7 +3891,7 @@ msgstr "" "exceptions que pour la méthode :meth:`__getitem__` doivent être levées en " "cas de mauvaises valeurs de clés." -#: ../Doc/reference/datamodel.rst:2227 +#: ../Doc/reference/datamodel.rst:2228 msgid "" "Called to implement deletion of ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -3904,7 +3906,7 @@ msgstr "" "Les mêmes exceptions que pour la méthode :meth:`__getitem__` doivent être " "levées en cas de mauvaises valeurs de clés." -#: ../Doc/reference/datamodel.rst:2236 +#: ../Doc/reference/datamodel.rst:2237 msgid "" "Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]`` " "for dict subclasses when key is not in the dictionary." @@ -3913,7 +3915,7 @@ msgstr "" "``self[key]`` dans les sous-classes de dictionnaires lorsque la clé n'est " "pas dans le dictionnaire." -#: ../Doc/reference/datamodel.rst:2242 +#: ../Doc/reference/datamodel.rst:2243 msgid "" "This method is called when an iterator is required for a container. This " "method should return a new iterator object that can iterate over all the " @@ -3925,7 +3927,7 @@ msgstr "" "tous les objets du conteneur. Pour les tableaux de correspondances, elle " "doit itérer sur les clés du conteneur." -#: ../Doc/reference/datamodel.rst:2246 +#: ../Doc/reference/datamodel.rst:2247 msgid "" "Iterator objects also need to implement this method; they are required to " "return themselves. For more information on iterator objects, see :ref:" @@ -3935,7 +3937,7 @@ msgstr "" "alors se renvoyer eux-mêmes. Pour plus d'information sur les objets " "itérateurs, lisez :ref:`typeiter`." -#: ../Doc/reference/datamodel.rst:2252 +#: ../Doc/reference/datamodel.rst:2253 msgid "" "Called (if present) by the :func:`reversed` built-in to implement reverse " "iteration. It should return a new iterator object that iterates over all " @@ -3945,7 +3947,7 @@ msgstr "" "implémenter l'itération en sens inverse. Elle doit renvoyer un nouvel objet " "itérateur qui itère sur tous les objets du conteneur en sens inverse." -#: ../Doc/reference/datamodel.rst:2256 +#: ../Doc/reference/datamodel.rst:2257 msgid "" "If the :meth:`__reversed__` method is not provided, the :func:`reversed` " "built-in will fall back to using the sequence protocol (:meth:`__len__` and :" @@ -3959,7 +3961,7 @@ msgstr "" "doivent fournir :meth:`__reversed__` que si l'implémentation qu'ils " "proposent est plus efficace que celle de :func:`reversed`." -#: ../Doc/reference/datamodel.rst:2263 +#: ../Doc/reference/datamodel.rst:2264 msgid "" "The membership test operators (:keyword:`in` and :keyword:`not in`) are " "normally implemented as an iteration through a container. However, container " @@ -3972,7 +3974,7 @@ msgstr "" "suivantes avec une implémentation plus efficace, qui ne requièrent " "d'ailleurs pas que l'objet soit itérable." -#: ../Doc/reference/datamodel.rst:2270 +#: ../Doc/reference/datamodel.rst:2271 msgid "" "Called to implement membership test operators. Should return true if *item* " "is in *self*, false otherwise. For mapping objects, this should consider " @@ -3983,7 +3985,7 @@ msgstr "" "tableaux de correspondances, seules les clés sont considérées (pas les " "valeurs des paires clés-valeurs)." -#: ../Doc/reference/datamodel.rst:2274 +#: ../Doc/reference/datamodel.rst:2275 msgid "" "For objects that don't define :meth:`__contains__`, the membership test " "first tries iteration via :meth:`__iter__`, then the old sequence iteration " @@ -3996,11 +3998,11 @@ msgstr "" "reportez-vous à :ref:`cette section dans la référence du langage `." -#: ../Doc/reference/datamodel.rst:2283 +#: ../Doc/reference/datamodel.rst:2284 msgid "Emulating numeric types" msgstr "Émulation de types numériques" -#: ../Doc/reference/datamodel.rst:2285 +#: ../Doc/reference/datamodel.rst:2286 msgid "" "The following methods can be defined to emulate numeric objects. Methods " "corresponding to operations that are not supported by the particular kind of " @@ -4013,7 +4015,7 @@ msgstr "" "opérations bit à bit pour les nombres qui ne sont pas entiers) doivent être " "laissées indéfinies." -#: ../Doc/reference/datamodel.rst:2311 +#: ../Doc/reference/datamodel.rst:2312 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -4036,7 +4038,7 @@ msgstr "" "accepter un troisième argument optionnel si la version ternaire de la " "fonction native :func:`pow` est autorisée." -#: ../Doc/reference/datamodel.rst:2322 +#: ../Doc/reference/datamodel.rst:2323 msgid "" "If one of those methods does not support the operation with the supplied " "arguments, it should return ``NotImplemented``." @@ -4044,7 +4046,7 @@ msgstr "" "Si l'une de ces méthodes n'autorise pas l'opération avec les arguments " "donnés, elle doit renvoyer ``NotImplemented``." -#: ../Doc/reference/datamodel.rst:2345 +#: ../Doc/reference/datamodel.rst:2346 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -4065,7 +4067,7 @@ msgstr "" "`__rsub__`, ``y.__rsub__(x)`` est appelée si ``x.__sub__(y)`` renvoie " "*NotImplemented*." -#: ../Doc/reference/datamodel.rst:2356 +#: ../Doc/reference/datamodel.rst:2357 msgid "" "Note that ternary :func:`pow` will not try calling :meth:`__rpow__` (the " "coercion rules would become too complicated)." @@ -4073,7 +4075,7 @@ msgstr "" "Notez que la fonction ternaire :func:`pow` n'essaie pas d'appeler :meth:" "`__rpow__` (les règles de coercition seraient trop compliquées)." -#: ../Doc/reference/datamodel.rst:2361 +#: ../Doc/reference/datamodel.rst:2362 msgid "" "If the right operand's type is a subclass of the left operand's type and " "that subclass provides the reflected method for the operation, this method " @@ -4086,7 +4088,7 @@ msgstr "" "l'opérande gauche. Ce comportement permet à des sous-classes de surcharger " "les opérations de leurs ancêtres." -#: ../Doc/reference/datamodel.rst:2381 +#: ../Doc/reference/datamodel.rst:2382 msgid "" "These methods are called to implement the augmented arithmetic assignments " "(``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, ``**=``, ``<<=``, " @@ -4115,7 +4117,7 @@ msgstr "" "erreurs inattendues (voir :ref:`faq-augmented-assignment-tuple-error`), mais " "ce comportement est en fait partie intégrante du modèle de données." -#: ../Doc/reference/datamodel.rst:2402 +#: ../Doc/reference/datamodel.rst:2403 msgid "" "Called to implement the unary arithmetic operations (``-``, ``+``, :func:" "`abs` and ``~``)." @@ -4123,7 +4125,7 @@ msgstr "" "Appelée pour implémenter les opérations arithmétiques unaires (``-``, ``" "+``, :func:`abs` et ``~``)." -#: ../Doc/reference/datamodel.rst:2415 +#: ../Doc/reference/datamodel.rst:2416 msgid "" "Called to implement the built-in functions :func:`complex`, :func:`int` and :" "func:`float`. Should return a value of the appropriate type." @@ -4131,7 +4133,7 @@ msgstr "" "Appelées pour implémenter les fonctions natives :func:`complex`, :func:`int` " "et :func:`float`. Elles doivent renvoyer une valeur du type approprié." -#: ../Doc/reference/datamodel.rst:2422 +#: ../Doc/reference/datamodel.rst:2423 msgid "" "Called to implement :func:`operator.index`, and whenever Python needs to " "losslessly convert the numeric object to an integer object (such as in " @@ -4145,7 +4147,7 @@ msgstr "" "`oct`). La présence de cette méthode indique que l'objet numérique est un " "type entier. Elle doit renvoyer un entier." -#: ../Doc/reference/datamodel.rst:2428 +#: ../Doc/reference/datamodel.rst:2429 msgid "" "If :meth:`__int__`, :meth:`__float__` and :meth:`__complex__` are not " "defined then corresponding built-in functions :func:`int`, :func:`float` " @@ -4155,7 +4157,7 @@ msgstr "" "définies, alors les fonctions natives :func:`int`, :func:`float` et :func:" "`complex` redirigent par défaut vers :meth:`__index__`." -#: ../Doc/reference/datamodel.rst:2440 +#: ../Doc/reference/datamodel.rst:2441 msgid "" "Called to implement the built-in function :func:`round` and :mod:`math` " "functions :func:`~math.trunc`, :func:`~math.floor` and :func:`~math.ceil`. " @@ -4169,7 +4171,7 @@ msgstr "" "toutes ces méthodes doivent renvoyer la valeur de l'objet tronquée pour " "donner un :class:`~numbers.Integral` (typiquement un :class:`int`)." -#: ../Doc/reference/datamodel.rst:2446 +#: ../Doc/reference/datamodel.rst:2447 msgid "" "If :meth:`__int__` is not defined then the built-in function :func:`int` " "falls back to :meth:`__trunc__`." @@ -4177,11 +4179,11 @@ msgstr "" "Si :meth:`__int__` n'est pas définie, alors la fonction native :func:`int` " "se replie sur :meth:`__trunc__`." -#: ../Doc/reference/datamodel.rst:2453 +#: ../Doc/reference/datamodel.rst:2454 msgid "With Statement Context Managers" msgstr "Gestionnaire de contexte With" -#: ../Doc/reference/datamodel.rst:2455 +#: ../Doc/reference/datamodel.rst:2456 msgid "" "A :dfn:`context manager` is an object that defines the runtime context to be " "established when executing a :keyword:`with` statement. The context manager " @@ -4198,7 +4200,7 @@ msgstr "" "dans la section :ref:`with`), mais ils peuvent aussi être directement " "invoqués par leurs méthodes." -#: ../Doc/reference/datamodel.rst:2466 +#: ../Doc/reference/datamodel.rst:2467 msgid "" "Typical uses of context managers include saving and restoring various kinds " "of global state, locking and unlocking resources, closing opened files, etc." @@ -4207,14 +4209,14 @@ msgstr "" "et la restauration d'états divers, le verrouillage et le déverrouillage de " "ressources, la fermeture de fichiers ouverts, etc." -#: ../Doc/reference/datamodel.rst:2469 +#: ../Doc/reference/datamodel.rst:2470 msgid "" "For more information on context managers, see :ref:`typecontextmanager`." msgstr "" "Pour plus d'informations sur les gestionnaires de contexte, lisez :ref:" "`typecontextmanager`." -#: ../Doc/reference/datamodel.rst:2474 +#: ../Doc/reference/datamodel.rst:2475 msgid "" "Enter the runtime context related to this object. The :keyword:`with` " "statement will bind this method's return value to the target(s) specified in " @@ -4225,7 +4227,7 @@ msgstr "" "cible spécifiée par la clause :keyword:`!as` de l'instruction, si elle est " "spécifiée." -#: ../Doc/reference/datamodel.rst:2481 +#: ../Doc/reference/datamodel.rst:2482 msgid "" "Exit the runtime context related to this object. The parameters describe the " "exception that caused the context to be exited. If the context was exited " @@ -4235,7 +4237,7 @@ msgstr "" "l'exception qui a causé la sortie du contexte. Si l'on sort du contexte sans " "exception, les trois arguments sont à :const:`None`." -#: ../Doc/reference/datamodel.rst:2485 +#: ../Doc/reference/datamodel.rst:2486 msgid "" "If an exception is supplied, and the method wishes to suppress the exception " "(i.e., prevent it from being propagated), it should return a true value. " @@ -4247,7 +4249,7 @@ msgstr "" "propagée), elle doit renvoyer ``True``. Sinon, l'exception est traitée " "normalement à la sortie de cette méthode." -#: ../Doc/reference/datamodel.rst:2489 +#: ../Doc/reference/datamodel.rst:2490 msgid "" "Note that :meth:`__exit__` methods should not reraise the passed-in " "exception; this is the caller's responsibility." @@ -4255,11 +4257,11 @@ msgstr "" "Notez qu'une méthode :meth:`__exit__` ne doit pas lever à nouveau " "l'exception qu'elle reçoit ; c'est du ressort de l'appelant." -#: ../Doc/reference/datamodel.rst:2496 +#: ../Doc/reference/datamodel.rst:2497 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` — L'instruction ``with``" -#: ../Doc/reference/datamodel.rst:2496 +#: ../Doc/reference/datamodel.rst:2497 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." @@ -4267,11 +4269,11 @@ msgstr "" "La spécification, les motivations et des exemples de l'instruction :keyword:" "`with` en Python." -#: ../Doc/reference/datamodel.rst:2503 +#: ../Doc/reference/datamodel.rst:2504 msgid "Special method lookup" msgstr "Recherche des méthodes spéciales" -#: ../Doc/reference/datamodel.rst:2505 +#: ../Doc/reference/datamodel.rst:2506 msgid "" "For custom classes, implicit invocations of special methods are only " "guaranteed to work correctly if defined on an object's type, not in the " @@ -4283,7 +4285,7 @@ msgstr "" "type d'objet, pas dans le dictionnaire de l'objet instance. Ce comportement " "explique pourquoi le code suivant lève une exception ::" -#: ../Doc/reference/datamodel.rst:2520 +#: ../Doc/reference/datamodel.rst:2521 msgid "" "The rationale behind this behaviour lies with a number of special methods " "such as :meth:`__hash__` and :meth:`__repr__` that are implemented by all " @@ -4297,7 +4299,7 @@ msgstr "" "méthodes utilisait le processus normal de recherche, elles ne " "fonctionneraient pas si on les appelait sur l'objet type lui-même ::" -#: ../Doc/reference/datamodel.rst:2533 +#: ../Doc/reference/datamodel.rst:2534 msgid "" "Incorrectly attempting to invoke an unbound method of a class in this way is " "sometimes referred to as 'metaclass confusion', and is avoided by bypassing " @@ -4307,7 +4309,7 @@ msgstr "" "parfois appelé « confusion de méta-classe » et se contourne en shuntant " "l'instance lors de la recherche des méthodes spéciales ::" -#: ../Doc/reference/datamodel.rst:2542 +#: ../Doc/reference/datamodel.rst:2543 msgid "" "In addition to bypassing any instance attributes in the interest of " "correctness, implicit special method lookup generally also bypasses the :" @@ -4317,7 +4319,7 @@ msgstr "" "correctement, la recherche des méthodes spéciales implicites shunte aussi la " "méthode :meth:`__getattribute__` même dans la méta-classe de l'objet ::" -#: ../Doc/reference/datamodel.rst:2568 +#: ../Doc/reference/datamodel.rst:2569 msgid "" "Bypassing the :meth:`__getattribute__` machinery in this fashion provides " "significant scope for speed optimisations within the interpreter, at the " @@ -4331,15 +4333,15 @@ msgstr "" "être définie sur l'objet classe lui-même afin d'être invoquée de manière " "cohérente par l'interpréteur)." -#: ../Doc/reference/datamodel.rst:2579 +#: ../Doc/reference/datamodel.rst:2580 msgid "Coroutines" msgstr "Coroutines" -#: ../Doc/reference/datamodel.rst:2583 +#: ../Doc/reference/datamodel.rst:2584 msgid "Awaitable Objects" msgstr "Objets *attendables* (*awaitables*)" -#: ../Doc/reference/datamodel.rst:2585 +#: ../Doc/reference/datamodel.rst:2586 msgid "" "An :term:`awaitable` object generally implements an :meth:`__await__` " "method. :term:`Coroutine` objects returned from :keyword:`async def` " @@ -4349,7 +4351,7 @@ msgstr "" "`__await__`. Les objets :term:`Coroutine` renvoyés par les fonctions :" "keyword:`async def` sont des *awaitables*." -#: ../Doc/reference/datamodel.rst:2591 +#: ../Doc/reference/datamodel.rst:2592 msgid "" "The :term:`generator iterator` objects returned from generators decorated " "with :func:`types.coroutine` or :func:`asyncio.coroutine` are also " @@ -4359,7 +4361,7 @@ msgstr "" "décorés par :func:`types.coroutine` ou :func:`asyncio.coroutine` sont aussi " "des *awaitables*, mais ils n'implémentent pas :meth:`__await__`." -#: ../Doc/reference/datamodel.rst:2597 +#: ../Doc/reference/datamodel.rst:2598 msgid "" "Must return an :term:`iterator`. Should be used to implement :term:" "`awaitable` objects. For instance, :class:`asyncio.Future` implements this " @@ -4369,15 +4371,15 @@ msgstr "" "objets :term:`awaitable`. Par exemple, :class:`asyncio.Future` implémente " "cette méthode pour être compatible avec les expressions :keyword:`await`." -#: ../Doc/reference/datamodel.rst:2603 +#: ../Doc/reference/datamodel.rst:2604 msgid ":pep:`492` for additional information about awaitable objects." msgstr ":pep:`492` pour les informations relatives aux objets *awaitables*." -#: ../Doc/reference/datamodel.rst:2609 +#: ../Doc/reference/datamodel.rst:2610 msgid "Coroutine Objects" msgstr "Objets coroutines" -#: ../Doc/reference/datamodel.rst:2611 +#: ../Doc/reference/datamodel.rst:2612 msgid "" ":term:`Coroutine` objects are :term:`awaitable` objects. A coroutine's " "execution can be controlled by calling :meth:`__await__` and iterating over " @@ -4395,7 +4397,7 @@ msgstr "" "exception, elle est propagée par l'itérateur. Les coroutines ne doivent pas " "lever directement des exceptions :exc:`StopIteration` non gérées." -#: ../Doc/reference/datamodel.rst:2619 +#: ../Doc/reference/datamodel.rst:2620 msgid "" "Coroutines also have the methods listed below, which are analogous to those " "of generators (see :ref:`generator-methods`). However, unlike generators, " @@ -4406,13 +4408,13 @@ msgstr "" "contraire des générateurs, vous ne pouvez pas itérer directement sur des " "coroutines." -#: ../Doc/reference/datamodel.rst:2623 +#: ../Doc/reference/datamodel.rst:2624 msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once." msgstr "" "Utiliser *await* plus d'une fois sur une coroutine lève une :exc:" "`RuntimeError`." -#: ../Doc/reference/datamodel.rst:2629 +#: ../Doc/reference/datamodel.rst:2630 msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " "is equivalent to advancing the iterator returned by :meth:`__await__`. If " @@ -4429,7 +4431,7 @@ msgstr "" "est le même que lorsque vous itérez sur la valeur de retour de :meth:" "`__await__`, décrite ci-dessus." -#: ../Doc/reference/datamodel.rst:2639 +#: ../Doc/reference/datamodel.rst:2640 msgid "" "Raises the specified exception in the coroutine. This method delegates to " "the :meth:`~generator.throw` method of the iterator that caused the " @@ -4447,7 +4449,7 @@ msgstr "" "retour de :meth:`__await__`, décrite ci-dessus. Si l'exception n'est pas " "gérée par la coroutine, elle est propagée à l'appelant." -#: ../Doc/reference/datamodel.rst:2650 +#: ../Doc/reference/datamodel.rst:2651 msgid "" "Causes the coroutine to clean itself up and exit. If the coroutine is " "suspended, this method first delegates to the :meth:`~generator.close` " @@ -4464,7 +4466,7 @@ msgstr "" "la coroutine est marquée comme ayant terminé son exécution, même si elle n'a " "jamais démarré." -#: ../Doc/reference/datamodel.rst:2658 +#: ../Doc/reference/datamodel.rst:2659 msgid "" "Coroutine objects are automatically closed using the above process when they " "are about to be destroyed." @@ -4472,11 +4474,11 @@ msgstr "" "Les objets coroutines sont automatiquement fermés en utilisant le processus " "décrit au-dessus au moment où ils sont détruits." -#: ../Doc/reference/datamodel.rst:2664 +#: ../Doc/reference/datamodel.rst:2665 msgid "Asynchronous Iterators" msgstr "Itérateurs asynchrones" -#: ../Doc/reference/datamodel.rst:2666 +#: ../Doc/reference/datamodel.rst:2667 msgid "" "An *asynchronous iterator* can call asynchronous code in its ``__anext__`` " "method." @@ -4484,18 +4486,18 @@ msgstr "" "Un *itérateur asynchrone* peut appeler du code asynchrone dans sa méthode " "``__anext__``." -#: ../Doc/reference/datamodel.rst:2669 +#: ../Doc/reference/datamodel.rst:2670 msgid "" "Asynchronous iterators can be used in an :keyword:`async for` statement." msgstr "" "Les itérateurs asynchrones peuvent être utilisés dans des instructions :" "keyword:`async for`." -#: ../Doc/reference/datamodel.rst:2673 +#: ../Doc/reference/datamodel.rst:2674 msgid "Must return an *asynchronous iterator* object." msgstr "Doit renvoyer un objet *itérateur asynchrone*." -#: ../Doc/reference/datamodel.rst:2677 +#: ../Doc/reference/datamodel.rst:2678 msgid "" "Must return an *awaitable* resulting in a next value of the iterator. " "Should raise a :exc:`StopAsyncIteration` error when the iteration is over." @@ -4504,11 +4506,11 @@ msgstr "" "l'itérateur. Doit lever une :exc:`StopAsyncIteration` quand l'itération est " "terminée." -#: ../Doc/reference/datamodel.rst:2680 +#: ../Doc/reference/datamodel.rst:2681 msgid "An example of an asynchronous iterable object::" msgstr "Un exemple d'objet itérateur asynchrone ::" -#: ../Doc/reference/datamodel.rst:2697 +#: ../Doc/reference/datamodel.rst:2698 msgid "" "Prior to Python 3.7, ``__aiter__`` could return an *awaitable* that would " "resolve to an :term:`asynchronous iterator `." @@ -4517,7 +4519,7 @@ msgstr "" "résolvait potentiellement en un :term:`itérateur asynchrone `." -#: ../Doc/reference/datamodel.rst:2702 +#: ../Doc/reference/datamodel.rst:2703 msgid "" "Starting with Python 3.7, ``__aiter__`` must return an asynchronous iterator " "object. Returning anything else will result in a :exc:`TypeError` error." @@ -4525,11 +4527,11 @@ msgstr "" "À partir de Python 3.7, ``__aiter__`` doit renvoyer un objet itérateur " "asynchrone. Renvoyer autre chose entraine une erreur :exc:`TypeError`." -#: ../Doc/reference/datamodel.rst:2710 +#: ../Doc/reference/datamodel.rst:2711 msgid "Asynchronous Context Managers" msgstr "Gestionnaires de contexte asynchrones" -#: ../Doc/reference/datamodel.rst:2712 +#: ../Doc/reference/datamodel.rst:2713 msgid "" "An *asynchronous context manager* is a *context manager* that is able to " "suspend execution in its ``__aenter__`` and ``__aexit__`` methods." @@ -4538,7 +4540,7 @@ msgstr "" "qui est capable de suspendre son exécution dans ses méthodes ``__aenter__`` " "et ``__aexit__``." -#: ../Doc/reference/datamodel.rst:2715 +#: ../Doc/reference/datamodel.rst:2716 msgid "" "Asynchronous context managers can be used in an :keyword:`async with` " "statement." @@ -4546,7 +4548,7 @@ msgstr "" "Les gestionnaires de contexte asynchrones peuvent être utilisés dans des " "instructions :keyword:`async with`." -#: ../Doc/reference/datamodel.rst:2719 +#: ../Doc/reference/datamodel.rst:2720 msgid "" "Semantically similar to :meth:`__enter__`, the only difference being that it " "must return an *awaitable*." @@ -4554,7 +4556,7 @@ msgstr "" "Sémantiquement équivalente à :meth:`__enter__`, à la seule différence près " "qu'elle doit renvoyer un *awaitable*." -#: ../Doc/reference/datamodel.rst:2724 +#: ../Doc/reference/datamodel.rst:2725 msgid "" "Semantically similar to :meth:`__exit__`, the only difference being that it " "must return an *awaitable*." @@ -4562,15 +4564,15 @@ msgstr "" "Sémantiquement équivalente à :meth:`__exit__`, à la seule différence près " "qu'elle doit renvoyer un *awaitable*." -#: ../Doc/reference/datamodel.rst:2727 +#: ../Doc/reference/datamodel.rst:2728 msgid "An example of an asynchronous context manager class::" msgstr "Un exemple de classe de gestionnaire de contexte asynchrone ::" -#: ../Doc/reference/datamodel.rst:2740 +#: ../Doc/reference/datamodel.rst:2741 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/datamodel.rst:2741 +#: ../Doc/reference/datamodel.rst:2742 msgid "" "It *is* possible in some cases to change an object's type, under certain " "controlled conditions. It generally isn't a good idea though, since it can " @@ -4581,7 +4583,7 @@ msgstr "" "car cela peut conduire à un comportement très étrange si ce n'est pas géré " "correctement." -#: ../Doc/reference/datamodel.rst:2745 +#: ../Doc/reference/datamodel.rst:2746 msgid "" "The :meth:`__hash__`, :meth:`__iter__`, :meth:`__reversed__`, and :meth:" "`__contains__` methods have special handling for this; others will still " @@ -4593,7 +4595,7 @@ msgstr "" "lèvent toujours :exc:`TypeError`, mais le font en considérant que ``None`` " "n'est pas un appelable." -#: ../Doc/reference/datamodel.rst:2750 +#: ../Doc/reference/datamodel.rst:2751 msgid "" "\"Does not support\" here means that the class has no such method, or the " "method returns ``NotImplemented``. Do not set the method to ``None`` if you " @@ -4605,7 +4607,7 @@ msgstr "" "``None`` à la méthode si vous voulez un repli vers la méthode symétrique de " "l'opérande de droite — cela aurait pour effet de *bloquer* un tel repli." -#: ../Doc/reference/datamodel.rst:2756 +#: ../Doc/reference/datamodel.rst:2757 msgid "" "For operands of the same type, it is assumed that if the non-reflected " "method (such as :meth:`__add__`) fails the operation is not supported, which " diff --git a/sphinx.po b/sphinx.po index 9a4b8d0e..c50f45b1 100644 --- a/sphinx.po +++ b/sphinx.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-10-19 22:53+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -38,169 +38,169 @@ msgstr "" "Obsolète depuis la version {deprecated}, sera retirée dans la version " "{removed}" -#: ../Doc/tools/templates/indexcontent.html:8 +#: ../Doc/tools/templates/indexcontent.html:6 msgid "Welcome! This is the documentation for Python %(release)s." msgstr "Bienvenue sur la documentation de Python %(release)s." -#: ../Doc/tools/templates/indexcontent.html:10 +#: ../Doc/tools/templates/indexcontent.html:8 msgid "Parts of the documentation:" msgstr "La documentation :" -#: ../Doc/tools/templates/indexcontent.html:13 +#: ../Doc/tools/templates/indexcontent.html:11 msgid "What's new in Python %(version)s?" msgstr "Les nouveautés de Python %(version)s" -#: ../Doc/tools/templates/indexcontent.html:14 +#: ../Doc/tools/templates/indexcontent.html:12 msgid "" "or all \"What's new\" documents since 2.0" msgstr "" "ou toutes les nouveautés depuis la 2.0" -#: ../Doc/tools/templates/indexcontent.html:15 +#: ../Doc/tools/templates/indexcontent.html:13 msgid "Tutorial" msgstr "Tutoriel" -#: ../Doc/tools/templates/indexcontent.html:16 +#: ../Doc/tools/templates/indexcontent.html:14 msgid "start here" msgstr "démarrez ici" -#: ../Doc/tools/templates/indexcontent.html:17 +#: ../Doc/tools/templates/indexcontent.html:15 msgid "Library Reference" msgstr "Référence de la bibliothèque" -#: ../Doc/tools/templates/indexcontent.html:18 +#: ../Doc/tools/templates/indexcontent.html:16 msgid "keep this under your pillow" msgstr "gardez-ça sous votre oreiller" -#: ../Doc/tools/templates/indexcontent.html:19 +#: ../Doc/tools/templates/indexcontent.html:17 msgid "Language Reference" msgstr "Référence du langage" -#: ../Doc/tools/templates/indexcontent.html:20 +#: ../Doc/tools/templates/indexcontent.html:18 msgid "describes syntax and language elements" msgstr "décrit la syntaxe et les éléments du langage" -#: ../Doc/tools/templates/indexcontent.html:21 +#: ../Doc/tools/templates/indexcontent.html:19 msgid "Python Setup and Usage" msgstr "Installation et utilisation de Python" -#: ../Doc/tools/templates/indexcontent.html:22 +#: ../Doc/tools/templates/indexcontent.html:20 msgid "how to use Python on different platforms" msgstr "utilisation de Python sur différentes plateformes" -#: ../Doc/tools/templates/indexcontent.html:23 +#: ../Doc/tools/templates/indexcontent.html:21 msgid "Python HOWTOs" msgstr "Les HOWTOs de Python" -#: ../Doc/tools/templates/indexcontent.html:24 +#: ../Doc/tools/templates/indexcontent.html:22 msgid "in-depth documents on specific topics" msgstr "documents explorant certains sujets en profondeur" -#: ../Doc/tools/templates/indexcontent.html:26 +#: ../Doc/tools/templates/indexcontent.html:24 msgid "Installing Python Modules" msgstr "Installation de modules Python" -#: ../Doc/tools/templates/indexcontent.html:27 +#: ../Doc/tools/templates/indexcontent.html:25 msgid "installing from the Python Package Index & other sources" msgstr "installation depuis le *Python Package Index* ou d'autres sources" -#: ../Doc/tools/templates/indexcontent.html:28 +#: ../Doc/tools/templates/indexcontent.html:26 msgid "Distributing Python Modules" msgstr "Distribuer des modules Python" -#: ../Doc/tools/templates/indexcontent.html:29 +#: ../Doc/tools/templates/indexcontent.html:27 msgid "publishing modules for installation by others" msgstr "publier des modules pour que d'autres puissent les installer" -#: ../Doc/tools/templates/indexcontent.html:30 +#: ../Doc/tools/templates/indexcontent.html:28 msgid "Extending and Embedding" msgstr "Amélioration et intégration" -#: ../Doc/tools/templates/indexcontent.html:31 +#: ../Doc/tools/templates/indexcontent.html:29 msgid "tutorial for C/C++ programmers" msgstr "tutoriel pour les développeurs C/C++" -#: ../Doc/tools/templates/indexcontent.html:32 +#: ../Doc/tools/templates/indexcontent.html:30 msgid "Python/C API" msgstr "Python/C API" -#: ../Doc/tools/templates/indexcontent.html:33 +#: ../Doc/tools/templates/indexcontent.html:31 msgid "reference for C/C++ programmers" msgstr "référence pour les développeurs C/C++" -#: ../Doc/tools/templates/indexcontent.html:34 +#: ../Doc/tools/templates/indexcontent.html:32 msgid "FAQs" msgstr "FAQs" -#: ../Doc/tools/templates/indexcontent.html:35 +#: ../Doc/tools/templates/indexcontent.html:33 msgid "frequently asked questions (with answers!)" msgstr "foire aux questions (avec les réponses !)" -#: ../Doc/tools/templates/indexcontent.html:39 +#: ../Doc/tools/templates/indexcontent.html:37 msgid "Indices and tables:" msgstr "Index et tables des matières :" -#: ../Doc/tools/templates/indexcontent.html:42 +#: ../Doc/tools/templates/indexcontent.html:40 msgid "Global Module Index" msgstr "Index global des modules" -#: ../Doc/tools/templates/indexcontent.html:43 +#: ../Doc/tools/templates/indexcontent.html:41 msgid "quick access to all modules" msgstr "accès rapide à tous les modules" -#: ../Doc/tools/templates/indexcontent.html:44 +#: ../Doc/tools/templates/indexcontent.html:42 msgid "General Index" msgstr "Index général" -#: ../Doc/tools/templates/indexcontent.html:45 +#: ../Doc/tools/templates/indexcontent.html:43 msgid "all functions, classes, terms" msgstr "toutes les fonctions, classes et termes" -#: ../Doc/tools/templates/indexcontent.html:46 +#: ../Doc/tools/templates/indexcontent.html:44 msgid "Glossary" msgstr "Glossaire" -#: ../Doc/tools/templates/indexcontent.html:47 +#: ../Doc/tools/templates/indexcontent.html:45 msgid "the most important terms explained" msgstr "explication des mots les plus importants" -#: ../Doc/tools/templates/indexcontent.html:49 +#: ../Doc/tools/templates/indexcontent.html:47 msgid "Search page" msgstr "Page de recherche" -#: ../Doc/tools/templates/indexcontent.html:50 +#: ../Doc/tools/templates/indexcontent.html:48 msgid "search this documentation" msgstr "recherche dans cette documentation" -#: ../Doc/tools/templates/indexcontent.html:51 +#: ../Doc/tools/templates/indexcontent.html:49 msgid "Complete Table of Contents" msgstr "Table des matières complète" -#: ../Doc/tools/templates/indexcontent.html:52 +#: ../Doc/tools/templates/indexcontent.html:50 msgid "lists all sections and subsections" msgstr "liste complète des sections et sous-sections" -#: ../Doc/tools/templates/indexcontent.html:56 +#: ../Doc/tools/templates/indexcontent.html:54 msgid "Meta information:" msgstr "Méta informations :" -#: ../Doc/tools/templates/indexcontent.html:59 +#: ../Doc/tools/templates/indexcontent.html:57 msgid "Reporting bugs" msgstr "Signalement de bogue" -#: ../Doc/tools/templates/indexcontent.html:60 +#: ../Doc/tools/templates/indexcontent.html:58 msgid "Contributing to Docs" msgstr "Contribuer à la documentation" -#: ../Doc/tools/templates/indexcontent.html:61 +#: ../Doc/tools/templates/indexcontent.html:59 msgid "About the documentation" msgstr "À propos de la documentation" -#: ../Doc/tools/templates/indexcontent.html:63 +#: ../Doc/tools/templates/indexcontent.html:61 msgid "History and License of Python" msgstr "Histoire et licence de Python" -#: ../Doc/tools/templates/indexcontent.html:64 +#: ../Doc/tools/templates/indexcontent.html:62 msgid "Copyright" msgstr "Copyright" @@ -238,7 +238,8 @@ msgid "Python 3.5 (security-fixes)" msgstr "Python 3.5 (correctifs de sécurité)" #: ../Doc/tools/templates/indexsidebar.html:10 -msgid "Python 2.7 (stable)" +#, fuzzy +msgid "Python 2.7 (EOL)" msgstr "Python 2.7 (stable)" #: ../Doc/tools/templates/indexsidebar.html:11 @@ -269,7 +270,7 @@ msgstr "Documents multimédia" msgid "Python Developer’s Guide" msgstr "Guide du développeur Python" -#: ../Doc/tools/templates/layout.html:6 +#: ../Doc/tools/templates/layout.html:5 msgid "" "This document is for an old version of Python that is no longer supported.\n" " You should upgrade, and read the " @@ -278,11 +279,11 @@ msgstr "" "soutenue.\n" " Mettez à jour votre version et lisez " -#: ../Doc/tools/templates/layout.html:8 +#: ../Doc/tools/templates/layout.html:7 msgid " Python documentation for the current stable release" msgstr "Bienvenue sur la documentation de la version stable actuelle de Python" -#: ../Doc/tools/templates/layout.html:19 +#: ../Doc/tools/templates/layout.html:16 msgid "Documentation " msgstr "Documentation" diff --git a/tutorial/classes.po b/tutorial/classes.po index 8d17e48b..8facdace 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-10-31 17:05+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -356,15 +356,16 @@ msgstr "" "réalité, les variables locales sont déjà déterminées de manière statique) !" #: ../Doc/tutorial/classes.rst:146 +#, fuzzy msgid "" -"A special quirk of Python is that -- if no :keyword:`global` statement is in " -"effect -- assignments to names always go into the innermost scope. " -"Assignments do not copy data --- they just bind names to objects. The same " -"is true for deletions: the statement ``del x`` removes the binding of ``x`` " -"from the namespace referenced by the local scope. In fact, all operations " -"that introduce new names use the local scope: in particular, :keyword:" -"`import` statements and function definitions bind the module or function " -"name in the local scope." +"A special quirk of Python is that -- if no :keyword:`global` or :keyword:" +"`nonlocal` statement is in effect -- assignments to names always go into the " +"innermost scope. Assignments do not copy data --- they just bind names to " +"objects. The same is true for deletions: the statement ``del x`` removes " +"the binding of ``x`` from the namespace referenced by the local scope. In " +"fact, all operations that introduce new names use the local scope: in " +"particular, :keyword:`import` statements and function definitions bind the " +"module or function name in the local scope." msgstr "" "Une particularité de Python est que, si aucune instruction :keyword:`global` " "n'est active, les affectations de noms vont toujours dans la portée la plus " diff --git a/using/cmdline.po b/using/cmdline.po index 78c9f5af..7b5ac769 100644 --- a/using/cmdline.po +++ b/using/cmdline.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 17:54+0200\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-11-17 22:20+0100\n" "Last-Translator: Khaïs COLIN \n" "Language-Team: FRENCH \n" @@ -1572,7 +1572,7 @@ msgstr "" "désactivées pour forcer l'interpréteur à utiliser ``ASCII`` en lieu et place " "de ``UTF-8`` pour les interfaces avec le système." -#: ../Doc/using/cmdline.rst:879 ../Doc/using/cmdline.rst:940 +#: ../Doc/using/cmdline.rst:879 msgid ":ref:`Availability `: \\*nix." msgstr ":ref:`Disponibilité ` : systèmes de type UNIX." @@ -1715,33 +1715,33 @@ msgstr "" msgid "Also available as the :option:`-X` ``utf8`` option." msgstr "Également disponible en tant qu'option :option:`-X` ``utf8``." -#: ../Doc/using/cmdline.rst:941 +#: ../Doc/using/cmdline.rst:939 msgid "See :pep:`540` for more details." msgstr "Voir la :pep:`540` pour plus d'informations." -#: ../Doc/using/cmdline.rst:946 +#: ../Doc/using/cmdline.rst:944 msgid "Debug-mode variables" msgstr "Variables en mode débogage" -#: ../Doc/using/cmdline.rst:948 +#: ../Doc/using/cmdline.rst:946 msgid "Setting these variables only has an effect in a debug build of Python." msgstr "" "Définir ces variables n'a d'effet que si Python a été compilé en mode " "débogage." -#: ../Doc/using/cmdline.rst:952 +#: ../Doc/using/cmdline.rst:950 msgid "If set, Python will print threading debug info." msgstr "" "Si elle est définie, Python affiche des informations de débogage relatives " "aux différents fils d'exécution." -#: ../Doc/using/cmdline.rst:954 +#: ../Doc/using/cmdline.rst:952 msgid "Need Python configured with the ``--with-pydebug`` build option." msgstr "" "Nécessite que Python soit configuré avec l'option de compilation ``--with-" "pydebug``." -#: ../Doc/using/cmdline.rst:959 +#: ../Doc/using/cmdline.rst:957 msgid "" "If set, Python will dump objects and reference counts still alive after " "shutting down the interpreter." @@ -1750,7 +1750,7 @@ msgstr "" "compteurs de références toujours existant après la fermeture de " "l'interpréteur." -#: ../Doc/using/cmdline.rst:962 +#: ../Doc/using/cmdline.rst:960 msgid "Need Python configured with the ``--with-trace-refs`` build option." msgstr "" "Nécessite que Python soit configuré avec l'option de compilation ``--with-" diff --git a/using/windows.po b/using/windows.po index ffd13277..f1216884 100644 --- a/using/windows.po +++ b/using/windows.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-12-01 23:28+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -1393,10 +1393,81 @@ msgstr "" "premières entrées existaient déjà) ::" #: ../Doc/using/windows.rst:608 +msgid "UTF-8 mode" +msgstr "" + +#: ../Doc/using/windows.rst:612 +msgid "" +"Windows still uses legacy encodings for the system encoding (the ANSI Code " +"Page). Python uses it for the default encoding of text files (e.g. :func:" +"`locale.getpreferredencoding`)." +msgstr "" + +#: ../Doc/using/windows.rst:616 +msgid "" +"This may cause issues because UTF-8 is widely used on the internet and most " +"Unix systems, including WSL (Windows Subsystem for Linux)." +msgstr "" + +#: ../Doc/using/windows.rst:619 +msgid "" +"You can use UTF-8 mode to change the default text encoding to UTF-8. You can " +"enable UTF-8 mode via the ``-X utf8`` command line option, or the " +"``PYTHONUTF8=1`` environment variable. See :envvar:`PYTHONUTF8` for " +"enabling UTF-8 mode, and :ref:`setting-envvars` for how to modify " +"environment variables." +msgstr "" + +#: ../Doc/using/windows.rst:625 +msgid "When UTF-8 mode is enabled:" +msgstr "" + +#: ../Doc/using/windows.rst:627 +msgid "" +":func:`locale.getpreferredencoding` returns ``'UTF-8'`` instead of the " +"system encoding. This function is used for the default text encoding in " +"many places, including :func:`open`, :class:`Popen`, :meth:`Path.read_text`, " +"etc." +msgstr "" + +#: ../Doc/using/windows.rst:631 +msgid "" +":data:`sys.stdin`, :data:`sys.stdout`, and :data:`sys.stderr` all use UTF-8 " +"as their text encoding." +msgstr "" + +#: ../Doc/using/windows.rst:633 +msgid "You can still use the system encoding via the \"mbcs\" codec." +msgstr "" + +#: ../Doc/using/windows.rst:635 +msgid "" +"Note that adding ``PYTHONUTF8=1`` to the default environment variables will " +"affect all Python 3.7+ applications on your system. If you have any Python " +"3.7+ applications which rely on the legacy system encoding, it is " +"recommended to set the environment variable temporarily or use the ``-X " +"utf8`` command line option." +msgstr "" + +#: ../Doc/using/windows.rst:642 +msgid "" +"Even when UTF-8 mode is disabled, Python uses UTF-8 by default on Windows " +"for:" +msgstr "" + +#: ../Doc/using/windows.rst:645 +msgid "Console I/O including standard I/O (see :pep:`528` for details)." +msgstr "" + +#: ../Doc/using/windows.rst:646 +msgid "The filesystem encoding (see :pep:`529` for details)." +msgstr "" + +#: ../Doc/using/windows.rst:652 msgid "Python Launcher for Windows" msgstr "Lanceur Python pour Windows" -#: ../Doc/using/windows.rst:612 +#: ../Doc/using/windows.rst:656 msgid "" "The Python launcher for Windows is a utility which aids in locating and " "executing of different Python versions. It allows scripts (or the command-" @@ -1408,7 +1479,7 @@ msgstr "" "à la ligne de commande) d'indiquer une préférence pour une version Python " "spécifique, cherchera et exécutera cette version." -#: ../Doc/using/windows.rst:617 +#: ../Doc/using/windows.rst:661 msgid "" "Unlike the :envvar:`PATH` variable, the launcher will correctly select the " "most appropriate version of Python. It will prefer per-user installations " @@ -1420,19 +1491,19 @@ msgstr "" "installations par utilisateur sur celles du système, et les trie par version " "plutôt que d'utiliser la version la plus récente installée." -#: ../Doc/using/windows.rst:622 +#: ../Doc/using/windows.rst:666 msgid "The launcher was originally specified in :pep:`397`." msgstr "Le lanceur a été initialement spécifié dans :pep:`397`." -#: ../Doc/using/windows.rst:625 +#: ../Doc/using/windows.rst:669 msgid "Getting started" msgstr "Pour commencer" -#: ../Doc/using/windows.rst:628 +#: ../Doc/using/windows.rst:672 msgid "From the command-line" msgstr "Depuis la ligne de commande" -#: ../Doc/using/windows.rst:632 +#: ../Doc/using/windows.rst:676 msgid "" "System-wide installations of Python 3.3 and later will put the launcher on " "your :envvar:`PATH`. The launcher is compatible with all available versions " @@ -1445,7 +1516,7 @@ msgstr "" "vérifier que le lanceur est disponible, exécutez la commande suivante dans " "l'invite de commandes :" -#: ../Doc/using/windows.rst:641 +#: ../Doc/using/windows.rst:685 msgid "" "You should find that the latest version of Python you have installed is " "started - it can be exited as normal, and any additional command-line " @@ -1455,7 +1526,7 @@ msgstr "" "peut être quitté normalement, et tous les arguments de ligne de commande " "supplémentaires spécifiés seront envoyés directement à Python." -#: ../Doc/using/windows.rst:645 +#: ../Doc/using/windows.rst:689 msgid "" "If you have multiple versions of Python installed (e.g., 2.7 and |version|) " "you will have noticed that Python |version| was started - to launch Python " @@ -1465,7 +1536,7 @@ msgstr "" "version|), vous aurez remarqué que Python |version| se lance -- pour lancer " "Python 2.7, essayez la commande :" -#: ../Doc/using/windows.rst:653 +#: ../Doc/using/windows.rst:697 msgid "" "If you want the latest version of Python 2.x you have installed, try the " "command:" @@ -1473,15 +1544,15 @@ msgstr "" "Si vous voulez que la dernière version de Python 2.x que vous avez installé, " "essayez la commande :" -#: ../Doc/using/windows.rst:660 +#: ../Doc/using/windows.rst:704 msgid "You should find the latest version of Python 2.x starts." msgstr "Remarquez que la dernière version de Python 2.x démarre." -#: ../Doc/using/windows.rst:662 +#: ../Doc/using/windows.rst:706 msgid "If you see the following error, you do not have the launcher installed:" msgstr "Si vous voyez l'erreur suivante, le lanceur n'est pas installé :" -#: ../Doc/using/windows.rst:669 +#: ../Doc/using/windows.rst:713 msgid "" "Per-user installations of Python do not add the launcher to :envvar:`PATH` " "unless the option was selected on installation." @@ -1489,11 +1560,11 @@ msgstr "" "Les installations par utilisateur de Python n'ajoutent pas le lanceur à :" "envvar:`PATH` sauf si l'option a été sélectionnée lors de l'installation." -#: ../Doc/using/windows.rst:673 +#: ../Doc/using/windows.rst:717 msgid "Virtual environments" msgstr "Environnements virtuels" -#: ../Doc/using/windows.rst:677 +#: ../Doc/using/windows.rst:721 msgid "" "If the launcher is run with no explicit Python version specification, and a " "virtual environment (created with the standard library :mod:`venv` module or " @@ -1509,11 +1580,11 @@ msgstr "" "Pour exécuter l'interpréteur global, désactivez l'environnement virtuel ou " "spécifiez explicitement la version Python globale." -#: ../Doc/using/windows.rst:685 +#: ../Doc/using/windows.rst:729 msgid "From a script" msgstr "À partir d'un script" -#: ../Doc/using/windows.rst:687 +#: ../Doc/using/windows.rst:731 msgid "" "Let's create a test Python script - create a file called ``hello.py`` with " "the following contents" @@ -1521,13 +1592,13 @@ msgstr "" "Créons un script Python de test, créez un fichier appelé ``hello.py`` avec " "le contenu suivant" -#: ../Doc/using/windows.rst:696 +#: ../Doc/using/windows.rst:740 msgid "From the directory in which hello.py lives, execute the command:" msgstr "" "À partir du répertoire dans lequel se trouve ``hello.py``, exécutez la " "commande :" -#: ../Doc/using/windows.rst:702 +#: ../Doc/using/windows.rst:746 msgid "" "You should notice the version number of your latest Python 2.x installation " "is printed. Now try changing the first line to be:" @@ -1535,7 +1606,7 @@ msgstr "" "Vous devriez voir le numéro de version du Python 2.x le plus récemment " "installé. Maintenant, essayez de changer la première ligne en :" -#: ../Doc/using/windows.rst:709 +#: ../Doc/using/windows.rst:753 msgid "" "Re-executing the command should now print the latest Python 3.x information. " "As with the above command-line examples, you can specify a more explicit " @@ -1550,7 +1621,7 @@ msgstr "" "python2.6`` et vous devriez trouver les informations de version 2.6 " "imprimées." -#: ../Doc/using/windows.rst:715 +#: ../Doc/using/windows.rst:759 msgid "" "Note that unlike interactive use, a bare \"python\" will use the latest " "version of Python 2.x that you have installed. This is for backward " @@ -1562,11 +1633,11 @@ msgstr "" "pour la compatibilité ascendante et pour la compatibilité avec UNIX, où la " "commande ``python`` fait généralement référence à Python 2." -#: ../Doc/using/windows.rst:721 +#: ../Doc/using/windows.rst:765 msgid "From file associations" msgstr "À partir d'associations de fichiers" -#: ../Doc/using/windows.rst:723 +#: ../Doc/using/windows.rst:767 msgid "" "The launcher should have been associated with Python files (i.e. ``.py``, ``." "pyw``, ``.pyc`` files) when it was installed. This means that when you " @@ -1581,7 +1652,7 @@ msgstr "" "les mêmes installations décrites ci-dessus pour que le script spécifie la " "version qui doit être utilisée." -#: ../Doc/using/windows.rst:729 +#: ../Doc/using/windows.rst:773 msgid "" "The key benefit of this is that a single launcher can support multiple " "Python versions at the same time depending on the contents of the first line." @@ -1590,11 +1661,11 @@ msgstr "" "plusieurs versions de Python en même temps en fonction du contenu de la " "première ligne." -#: ../Doc/using/windows.rst:733 +#: ../Doc/using/windows.rst:777 msgid "Shebang Lines" msgstr "Lignes Shebang" -#: ../Doc/using/windows.rst:735 +#: ../Doc/using/windows.rst:779 msgid "" "If the first line of a script file starts with ``#!``, it is known as a " "\"shebang\" line. Linux and other Unix like operating systems have native " @@ -1611,7 +1682,7 @@ msgstr "" "des scripts Python sur Windows et les exemples ci-dessus démontrent leur " "utilisation." -#: ../Doc/using/windows.rst:742 +#: ../Doc/using/windows.rst:786 msgid "" "To allow shebang lines in Python scripts to be portable between Unix and " "Windows, this launcher supports a number of 'virtual' commands to specify " @@ -1622,27 +1693,27 @@ msgstr "" "« virtuelles » pour spécifier l'interpréteur à utiliser. Les commandes " "virtuelles prises en charge sont :" -#: ../Doc/using/windows.rst:746 +#: ../Doc/using/windows.rst:790 msgid "``/usr/bin/env python``" msgstr "``/usr/bin/env python``" -#: ../Doc/using/windows.rst:747 +#: ../Doc/using/windows.rst:791 msgid "``/usr/bin/python``" msgstr "``/usr/bin/python``" -#: ../Doc/using/windows.rst:748 +#: ../Doc/using/windows.rst:792 msgid "``/usr/local/bin/python``" msgstr "``/usr/local/bin/python``" -#: ../Doc/using/windows.rst:749 +#: ../Doc/using/windows.rst:793 msgid "``python``" msgstr "``python``" -#: ../Doc/using/windows.rst:751 +#: ../Doc/using/windows.rst:795 msgid "For example, if the first line of your script starts with" msgstr "Par exemple, si la première ligne de votre script commence par" -#: ../Doc/using/windows.rst:757 +#: ../Doc/using/windows.rst:801 msgid "" "The default Python will be located and used. As many Python scripts written " "to work on Unix will already have this line, you should find these scripts " @@ -1656,7 +1727,7 @@ msgstr "" "nouveau script sur Windows et que vous pensez qu'il sera utile sur UNIX, " "vous devez utiliser l'une des lignes *shebang* commençant par ``/usr``." -#: ../Doc/using/windows.rst:763 +#: ../Doc/using/windows.rst:807 msgid "" "Any of the above virtual commands can be suffixed with an explicit version " "(either just the major version, or the major and minor version). Furthermore " @@ -1670,7 +1741,7 @@ msgstr "" "**-32** après le numéro de version mineur. Par exemple ``/usr/bin/" "python2.7-32`` demande d’utiliser la version 32-bit de Python 2.7." -#: ../Doc/using/windows.rst:771 +#: ../Doc/using/windows.rst:815 msgid "" "Beginning with python launcher 3.7 it is possible to request 64-bit version " "by the \"-64\" suffix. Furthermore it is possible to specify a major and " @@ -1681,7 +1752,7 @@ msgstr "" "spécifier une version majeure et une architecture sans version mineure (par " "exemple ``/usr/bin/python3-64``)." -#: ../Doc/using/windows.rst:775 +#: ../Doc/using/windows.rst:819 msgid "" "The ``/usr/bin/env`` form of shebang line has one further special property. " "Before looking for installed Python interpreters, this form will search the " @@ -1695,11 +1766,11 @@ msgstr "" "au comportement du programme Unix ``env``, qui effectue une recherche dans :" "envvar:`PATH`." -#: ../Doc/using/windows.rst:781 +#: ../Doc/using/windows.rst:825 msgid "Arguments in shebang lines" msgstr "Arguments dans les lignes *shebang*" -#: ../Doc/using/windows.rst:783 +#: ../Doc/using/windows.rst:827 msgid "" "The shebang lines can also specify additional options to be passed to the " "Python interpreter. For example, if you have a shebang line:" @@ -1708,19 +1779,19 @@ msgstr "" "à passer à l'interpréteur Python. Par exemple, si vous avez une ligne " "*shebang* :" -#: ../Doc/using/windows.rst:790 +#: ../Doc/using/windows.rst:834 msgid "Then Python will be started with the ``-v`` option" msgstr "Alors, Python sera démarré avec l'option ``-v``" -#: ../Doc/using/windows.rst:793 +#: ../Doc/using/windows.rst:837 msgid "Customization" msgstr "Personnalisation" -#: ../Doc/using/windows.rst:796 +#: ../Doc/using/windows.rst:840 msgid "Customization via INI files" msgstr "Personnalisation via des fichiers INI" -#: ../Doc/using/windows.rst:798 +#: ../Doc/using/windows.rst:842 msgid "" "Two .ini files will be searched by the launcher - ``py.ini`` in the current " "user's \"application data\" directory (i.e. the directory returned by " @@ -1737,7 +1808,7 @@ msgstr "" "« console » du lanceur (c'est-à-dire ``py.exe``) et pour la version " "« fenêtrée » (c'est-à-dire ``pyw.exe``)." -#: ../Doc/using/windows.rst:805 +#: ../Doc/using/windows.rst:849 msgid "" "Customization specified in the \"application directory\" will have " "precedence over the one next to the executable, so a user, who may not have " @@ -1749,11 +1820,11 @@ msgstr "" "qui peut ne pas avoir accès en écriture au fichier ``.ini`` à côté du " "lanceur, peut substituer des commandes dans ce fichier ``.ini`` global)" -#: ../Doc/using/windows.rst:810 +#: ../Doc/using/windows.rst:854 msgid "Customizing default Python versions" msgstr "Personnalisation des versions Python par défaut" -#: ../Doc/using/windows.rst:812 +#: ../Doc/using/windows.rst:856 msgid "" "In some cases, a version qualifier can be included in a command to dictate " "which version of Python will be used by the command. A version qualifier " @@ -1770,7 +1841,7 @@ msgstr "" "implémentation 32 ou 64 bit doit être demandée en ajoutant **-32** ou " "**-64**." -#: ../Doc/using/windows.rst:818 +#: ../Doc/using/windows.rst:862 msgid "" "For example, a shebang line of ``#!python`` has no version qualifier, while " "``#!python3`` has a version qualifier which specifies only a major version." @@ -1779,7 +1850,7 @@ msgstr "" "qualificateur de version, tandis que ``#!python3`` a un qualificateur de " "version qui ne spécifie qu'une version majeure." -#: ../Doc/using/windows.rst:821 +#: ../Doc/using/windows.rst:865 msgid "" "If no version qualifiers are found in a command, the environment variable :" "envvar:`PY_PYTHON` can be set to specify the default version qualifier. If " @@ -1796,7 +1867,7 @@ msgstr "" "``3.7-32`` ou ``3.7-64``. (Notez que l’option **-64** est seulement " "disponible avec le lanceur inclus avec Python 3.7 ou plus récent.)" -#: ../Doc/using/windows.rst:828 +#: ../Doc/using/windows.rst:872 msgid "" "If no minor version qualifiers are found, the environment variable " "``PY_PYTHON{major}`` (where ``{major}`` is the current major version " @@ -1814,7 +1885,7 @@ msgstr "" "la dernière version mineure trouvée pour la version principale, qui est " "probablement la plus récemment installée dans cette famille." -#: ../Doc/using/windows.rst:836 +#: ../Doc/using/windows.rst:880 msgid "" "On 64-bit Windows with both 32-bit and 64-bit implementations of the same " "(major.minor) Python version installed, the 64-bit version will always be " @@ -1839,11 +1910,11 @@ msgstr "" "un suffixe optionnel ``-32`` ou ``-64`` peut être utilisé sur un " "spécificateur de version pour modifier ce comportement." -#: ../Doc/using/windows.rst:847 +#: ../Doc/using/windows.rst:891 msgid "Examples:" msgstr "Exemples :" -#: ../Doc/using/windows.rst:849 +#: ../Doc/using/windows.rst:893 msgid "" "If no relevant options are set, the commands ``python`` and ``python2`` will " "use the latest Python 2.x version installed and the command ``python3`` will " @@ -1853,7 +1924,7 @@ msgstr "" "``python2`` utiliseront la dernière version de Python 2.x installée et la " "commande ``python3`` utilisera le dernier Python 3.x installé." -#: ../Doc/using/windows.rst:853 +#: ../Doc/using/windows.rst:897 msgid "" "The commands ``python3.1`` and ``python2.7`` will not consult any options at " "all as the versions are fully specified." @@ -1861,7 +1932,7 @@ msgstr "" "Les commandes ``python3.1`` et ``python2.7`` ne consultent aucune option du " "tout car les versions sont entièrement spécifiées." -#: ../Doc/using/windows.rst:856 +#: ../Doc/using/windows.rst:900 msgid "" "If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use " "the latest installed Python 3 version." @@ -1869,7 +1940,7 @@ msgstr "" "Si ``PY_PYTHON=3``, les commandes ``python`` et ``python3`` utiliseront la " "dernière version de Python 3 installée." -#: ../Doc/using/windows.rst:859 +#: ../Doc/using/windows.rst:903 msgid "" "If ``PY_PYTHON=3.1-32``, the command ``python`` will use the 32-bit " "implementation of 3.1 whereas the command ``python3`` will use the latest " @@ -1881,7 +1952,7 @@ msgstr "" "installé (*PY_PYTHON* n'a pas été considéré du tout comme une version " "majeure a été spécifiée.)" -#: ../Doc/using/windows.rst:864 +#: ../Doc/using/windows.rst:908 msgid "" "If ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1``, the commands ``python`` and " "``python3`` will both use specifically 3.1" @@ -1889,7 +1960,7 @@ msgstr "" "Si ``PY_PYTHON=3`` et ``PY_PYTHON3=3.1``, les commandes ``python`` et " "``python3`` utiliseront spécifiquement 3.1" -#: ../Doc/using/windows.rst:867 +#: ../Doc/using/windows.rst:911 msgid "" "In addition to environment variables, the same settings can be configured in " "the .INI file used by the launcher. The section in the INI file is called " @@ -1906,15 +1977,15 @@ msgstr "" "contenu d'une variable d'environnement remplacera les éléments spécifiés " "dans le fichier *INI*." -#: ../Doc/using/windows.rst:874 +#: ../Doc/using/windows.rst:918 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/using/windows.rst:876 +#: ../Doc/using/windows.rst:920 msgid "Setting ``PY_PYTHON=3.1`` is equivalent to the INI file containing:" msgstr "Le paramètre ``PY_PYTHON=3.1`` équivaut au fichier **INI** contenant :" -#: ../Doc/using/windows.rst:883 +#: ../Doc/using/windows.rst:927 msgid "" "Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1`` is equivalent to the INI file " "containing:" @@ -1922,11 +1993,11 @@ msgstr "" "Le paramètre ``PY_PYTHON=3`` et ``PY_PYTHON3=3.1`` équivaut au fichier *INI* " "contenant :" -#: ../Doc/using/windows.rst:893 +#: ../Doc/using/windows.rst:937 msgid "Diagnostics" msgstr "Diagnostics" -#: ../Doc/using/windows.rst:895 +#: ../Doc/using/windows.rst:939 msgid "" "If an environment variable ``PYLAUNCH_DEBUG`` is set (to any value), the " "launcher will print diagnostic information to stderr (i.e. to the console). " @@ -1943,11 +2014,11 @@ msgstr "" "une version particulière a été choisie et la ligne de commande exacte " "utilisée pour exécuter le Python cible." -#: ../Doc/using/windows.rst:907 +#: ../Doc/using/windows.rst:951 msgid "Finding modules" msgstr "Recherche de modules" -#: ../Doc/using/windows.rst:909 +#: ../Doc/using/windows.rst:953 msgid "" "Python usually stores its library (and thereby your site-packages folder) in " "the installation directory. So, if you had installed Python to :file:`C:\\" @@ -1961,7 +2032,7 @@ msgstr "" "dans :file:`C:\\\\Python\\\\Lib\\\\` et les modules tiers devraient être " "stockés dans :file:`C:\\\\Python\\\\Lib\\\\site-packages\\\\`." -#: ../Doc/using/windows.rst:915 +#: ../Doc/using/windows.rst:959 msgid "" "To completely override :data:`sys.path`, create a ``._pth`` file with the " "same name as the DLL (``python37._pth``) or the executable (``python._pth``) " @@ -1976,7 +2047,7 @@ msgstr "" "l'exécutable, qui permet aux chemins d'être restreints pour tout programme " "chargeant le *runtime* si désiré." -#: ../Doc/using/windows.rst:921 +#: ../Doc/using/windows.rst:965 msgid "" "When the file exists, all registry and environment variables are ignored, " "isolated mode is enabled, and :mod:`site` is not imported unless one line in " @@ -1993,7 +2064,7 @@ msgstr "" "importations autres que vers *site* ne sont pas autorisées, ni n'importe " "quelle instruction Python." -#: ../Doc/using/windows.rst:928 +#: ../Doc/using/windows.rst:972 msgid "" "Note that ``.pth`` files (without leading underscore) will be processed " "normally by the :mod:`site` module when ``import site`` has been specified." @@ -2002,7 +2073,7 @@ msgstr "" "seront traités normalement par le module :mod:`site` lorsque ``import site`` " "a été spécifié." -#: ../Doc/using/windows.rst:931 +#: ../Doc/using/windows.rst:975 msgid "" "When no ``._pth`` file is found, this is how :data:`sys.path` is populated " "on Windows:" @@ -2010,14 +2081,14 @@ msgstr "" "Lorsque aucun fichier ``._pth`` n'est trouvé, voilà comment :data:`sys.path` " "est construit sur Windows :" -#: ../Doc/using/windows.rst:934 +#: ../Doc/using/windows.rst:978 msgid "" "An empty entry is added at the start, which corresponds to the current " "directory." msgstr "" "Une entrée vide est ajoutée au début, qui correspond au répertoire courant." -#: ../Doc/using/windows.rst:937 +#: ../Doc/using/windows.rst:981 msgid "" "If the environment variable :envvar:`PYTHONPATH` exists, as described in :" "ref:`using-on-envvars`, its entries are added next. Note that on Windows, " @@ -2030,7 +2101,7 @@ msgstr "" "des points-virgules, pour les distinguer des deux points utilisés dans les " "identificateurs de lecteur (``C:\\`` etc.)." -#: ../Doc/using/windows.rst:942 +#: ../Doc/using/windows.rst:986 msgid "" "Additional \"application paths\" can be added in the registry as subkeys of :" "samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\\\PythonPath` under " @@ -2048,7 +2119,7 @@ msgstr "" "tous les installateurs connus utilisent seulement HKLM, donc HKCU est " "généralement vide.)" -#: ../Doc/using/windows.rst:949 +#: ../Doc/using/windows.rst:993 msgid "" "If the environment variable :envvar:`PYTHONHOME` is set, it is assumed as " "\"Python Home\". Otherwise, the path of the main Python executable is used " @@ -2067,7 +2138,7 @@ msgstr "" "chemin d'accès Python principal est construit à partir du PythonPath stocké " "dans le registre." -#: ../Doc/using/windows.rst:957 +#: ../Doc/using/windows.rst:1001 msgid "" "If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified " "in the environment, and no registry entries can be found, a default path " @@ -2078,7 +2149,7 @@ msgstr "" "trouvée, un chemin par défaut avec des entrées relatives est utilisé (par " "exemple ``.\\Lib`` ; ``.\\plat-win``, etc.)." -#: ../Doc/using/windows.rst:961 +#: ../Doc/using/windows.rst:1005 msgid "" "If a ``pyvenv.cfg`` file is found alongside the main executable or in the " "directory one level above the executable, the following variations apply:" @@ -2087,7 +2158,7 @@ msgstr "" "dans le répertoire un niveau au-dessus de l'exécutable, les variantes " "suivantes s'appliquent :" -#: ../Doc/using/windows.rst:964 +#: ../Doc/using/windows.rst:1008 msgid "" "If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this " "path is used instead of the path to the main executable when deducing the " @@ -2097,11 +2168,11 @@ msgstr "" "ce chemin d'accès est utilisé au lieu du chemin d'accès à l'exécutable " "principal lors de la déduction de l'emplacement du `home`." -#: ../Doc/using/windows.rst:968 +#: ../Doc/using/windows.rst:1012 msgid "The end result of all this is:" msgstr "Le résultat final de tout ceci est :" -#: ../Doc/using/windows.rst:970 +#: ../Doc/using/windows.rst:1014 msgid "" "When running :file:`python.exe`, or any other .exe in the main Python " "directory (either an installed version, or directly from the PCbuild " @@ -2114,7 +2185,7 @@ msgstr "" "chemins d'accès principaux dans le Registre sont ignorés. D'autres \"chemins " "d'application\" dans le registre sont toujours lus." -#: ../Doc/using/windows.rst:975 +#: ../Doc/using/windows.rst:1019 msgid "" "When Python is hosted in another .exe (different directory, embedded via " "COM, etc), the \"Python Home\" will not be deduced, so the core path from " @@ -2126,7 +2197,7 @@ msgstr "" "sorte que le chemin d'accès principal du registre est utilisé. D'autres " "\"chemins d'application\" dans le registre sont toujours lus." -#: ../Doc/using/windows.rst:979 +#: ../Doc/using/windows.rst:1023 msgid "" "If Python can't find its home and there are no registry value (frozen .exe, " "some very strange installation setup) you get a path with some default, but " @@ -2136,7 +2207,7 @@ msgstr "" "registre (*.exe* gelé, une installation très étrange) vous obtenez un chemin " "d'accès avec certains chemins par défaut, mais relatif." -#: ../Doc/using/windows.rst:983 +#: ../Doc/using/windows.rst:1027 msgid "" "For those who want to bundle Python into their application or distribution, " "the following advice will prevent conflicts with other installations:" @@ -2145,7 +2216,7 @@ msgstr "" "distribution, les conseils suivants empêcheront les conflits avec d'autres " "installations :" -#: ../Doc/using/windows.rst:986 +#: ../Doc/using/windows.rst:1030 msgid "" "Include a ``._pth`` file alongside your executable containing the " "directories to include. This will ignore paths listed in the registry and " @@ -2157,7 +2228,7 @@ msgstr "" "registre et les variables d'environnement, et ignorera également :mod:`site` " "à moins que ``import site`` soit listé." -#: ../Doc/using/windows.rst:991 +#: ../Doc/using/windows.rst:1035 msgid "" "If you are loading :file:`python3.dll` or :file:`python37.dll` in your own " "executable, explicitly call :c:func:`Py_SetPath` or (at least) :c:func:" @@ -2167,7 +2238,7 @@ msgstr "" "propre exécutable, appelez explicitement :c:func:`Py_SetPath` ou (au moins) :" "c:func:`Py_SetProgramName` avant :c:func:`Py_Initialize`." -#: ../Doc/using/windows.rst:995 +#: ../Doc/using/windows.rst:1039 msgid "" "Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` " "before launching :file:`python.exe` from your application." @@ -2175,7 +2246,7 @@ msgstr "" "Effacer et/ou écraser :envvar:`PYTHONPATH` et configurez :envvar:" "`PYTHONHOME` avant de lancer le :file:`python.exe` de votre application." -#: ../Doc/using/windows.rst:998 +#: ../Doc/using/windows.rst:1042 msgid "" "If you cannot use the previous suggestions (for example, you are a " "distribution that allows people to run :file:`python.exe` directly), ensure " @@ -2190,7 +2261,7 @@ msgstr "" "détecté à l'intérieur d'un fichier ZIP, mais un fichier ZIP correctement " "nommé sera détecté à la place.)" -#: ../Doc/using/windows.rst:1004 +#: ../Doc/using/windows.rst:1048 msgid "" "These will ensure that the files in a system-wide installation will not take " "precedence over the copy of the standard library bundled with your " @@ -2206,7 +2277,7 @@ msgstr "" "suggestion est la meilleure, car les autres peuvent encore être sensibles " "aux chemins non-standard dans le registre et le *site-packages* utilisateur." -#: ../Doc/using/windows.rst:1013 +#: ../Doc/using/windows.rst:1057 msgid "" "Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv." "cfg``." @@ -2214,7 +2285,7 @@ msgstr "" "Ajout de la gestion des ``._pth`` et suppression de l'option ``applocal`` de " "``pyvenv.cfg``." -#: ../Doc/using/windows.rst:1015 +#: ../Doc/using/windows.rst:1059 msgid "" "Adds ``pythonXX.zip`` as a potential landmark when directly adjacent to the " "executable." @@ -2222,7 +2293,7 @@ msgstr "" "Ajout de ``pythonXX.zip`` comme point de repère potentiel lorsqu'il est " "directement adjacent à l'exécutable." -#: ../Doc/using/windows.rst:1021 +#: ../Doc/using/windows.rst:1065 msgid "" "Modules specified in the registry under ``Modules`` (not ``PythonPath``) may " "be imported by :class:`importlib.machinery.WindowsRegistryFinder`. This " @@ -2235,11 +2306,11 @@ msgstr "" "récent, mais il pourrait être nécessaire de l'ajouter explicitement à :attr:" "`sys.meta_path` à l'avenir." -#: ../Doc/using/windows.rst:1027 +#: ../Doc/using/windows.rst:1071 msgid "Additional modules" msgstr "Modules supplémentaires" -#: ../Doc/using/windows.rst:1029 +#: ../Doc/using/windows.rst:1073 msgid "" "Even though Python aims to be portable among all platforms, there are " "features that are unique to Windows. A couple of modules, both in the " @@ -2250,7 +2321,7 @@ msgstr "" "dans la bibliothèque standard et externe, et des exemples existent pour " "utiliser ces fonctionnalités." -#: ../Doc/using/windows.rst:1033 +#: ../Doc/using/windows.rst:1077 msgid "" "The Windows-specific standard modules are documented in :ref:`mswin-specific-" "services`." @@ -2258,11 +2329,11 @@ msgstr "" "Les modules standard de Windows sont documentés dans :ref:`mswin-specific-" "services`." -#: ../Doc/using/windows.rst:1037 +#: ../Doc/using/windows.rst:1081 msgid "PyWin32" msgstr "PyWin32" -#: ../Doc/using/windows.rst:1039 +#: ../Doc/using/windows.rst:1083 msgid "" "The `PyWin32 `_ module by Mark Hammond is " "a collection of modules for advanced Windows-specific support. This " @@ -2272,7 +2343,7 @@ msgstr "" "une collection de modules pour un support avancé spécifique à Windows. Cela " "inclut les services pour :" -#: ../Doc/using/windows.rst:1043 +#: ../Doc/using/windows.rst:1087 msgid "" "`Component Object Model `_ (COM)" @@ -2280,19 +2351,19 @@ msgstr "" "`Component Object Model `_ (COM)" -#: ../Doc/using/windows.rst:1046 +#: ../Doc/using/windows.rst:1090 msgid "Win32 API calls" msgstr "Appels à l'API Win32" -#: ../Doc/using/windows.rst:1047 +#: ../Doc/using/windows.rst:1091 msgid "Registry" msgstr "Registre" -#: ../Doc/using/windows.rst:1048 +#: ../Doc/using/windows.rst:1092 msgid "Event log" msgstr "Journal d'événement" -#: ../Doc/using/windows.rst:1049 +#: ../Doc/using/windows.rst:1093 msgid "" "`Microsoft Foundation Classes `_ (MFC) user interfaces" @@ -2300,7 +2371,7 @@ msgstr "" "`Microsoft Foundation Classes `_ (MFC) interfaces utilisateur" -#: ../Doc/using/windows.rst:1052 +#: ../Doc/using/windows.rst:1096 msgid "" "`PythonWin `_ is a sample MFC application shipped with PyWin32. " @@ -2310,29 +2381,29 @@ msgstr "" "windows/pythonwin/>`_ est un exemple d'application MFC livrée avec PyWin32. " "Il s'agit d'un IDE embarqué avec débogueur intégré." -#: ../Doc/using/windows.rst:1059 +#: ../Doc/using/windows.rst:1103 msgid "" "`Win32 How Do I...? `_" msgstr "" "`Win32 How Do I...? `_" -#: ../Doc/using/windows.rst:1059 +#: ../Doc/using/windows.rst:1103 msgid "by Tim Golden" msgstr "par Tim Golden" -#: ../Doc/using/windows.rst:1061 +#: ../Doc/using/windows.rst:1105 msgid "`Python and COM `_" msgstr "`Python and COM `_" -#: ../Doc/using/windows.rst:1062 +#: ../Doc/using/windows.rst:1106 msgid "by David and Paul Boddie" msgstr "par David et Paul Boddie" -#: ../Doc/using/windows.rst:1066 +#: ../Doc/using/windows.rst:1110 msgid "cx_Freeze" msgstr "cx_Freeze" -#: ../Doc/using/windows.rst:1068 +#: ../Doc/using/windows.rst:1112 msgid "" "`cx_Freeze `_ is a :mod:" "`distutils` extension (see :ref:`extending-distutils`) which wraps Python " @@ -2346,11 +2417,11 @@ msgstr "" "`{*}.exe`). Lorsque vous l'avez fait, vous pouvez distribuer votre " "application sans demander à vos utilisateurs d'installer Python." -#: ../Doc/using/windows.rst:1076 +#: ../Doc/using/windows.rst:1120 msgid "WConio" msgstr "WConio" -#: ../Doc/using/windows.rst:1078 +#: ../Doc/using/windows.rst:1122 msgid "" "Since Python's advanced terminal handling layer, :mod:`curses`, is " "restricted to Unix-like systems, there is a library exclusive to Windows as " @@ -2360,7 +2431,7 @@ msgstr "" "est limité aux systèmes de type UNIX, il existe une bibliothèque exclusive à " "Windows : *Windows Console I/O for Python*." -#: ../Doc/using/windows.rst:1082 +#: ../Doc/using/windows.rst:1126 msgid "" "`WConio `_ is a wrapper " "for Turbo-C's :file:`CONIO.H`, used to create text user interfaces." @@ -2369,11 +2440,11 @@ msgstr "" "*wrapper* pour les fichiers Turbo-C :file:`CONIO.H`, utilisé pour créer des " "interfaces texte utilisateur." -#: ../Doc/using/windows.rst:1088 +#: ../Doc/using/windows.rst:1132 msgid "Compiling Python on Windows" msgstr "Compiler Python sous Windows" -#: ../Doc/using/windows.rst:1090 +#: ../Doc/using/windows.rst:1134 msgid "" "If you want to compile CPython yourself, first thing you should do is get " "the `source `_. You can download " @@ -2385,7 +2456,7 @@ msgstr "" "télécharger soit la source de la dernière version ou tout simplement prendre " "un `checkout `_." -#: ../Doc/using/windows.rst:1095 +#: ../Doc/using/windows.rst:1139 msgid "" "The source tree contains a build solution and project files for Microsoft " "Visual Studio 2015, which is the compiler used to build the official Python " @@ -2396,7 +2467,7 @@ msgstr "" "pour générer les versions officielles de Python. Ces fichiers se trouvent " "dans le répertoire :file:`PCbuild`." -#: ../Doc/using/windows.rst:1099 +#: ../Doc/using/windows.rst:1143 msgid "" "Check :file:`PCbuild/readme.txt` for general information on the build " "process." @@ -2404,11 +2475,11 @@ msgstr "" "Consultez :file:`PC/readme.txt` pour des informations générales sur le " "processus de construction." -#: ../Doc/using/windows.rst:1102 +#: ../Doc/using/windows.rst:1146 msgid "For extension modules, consult :ref:`building-on-windows`." msgstr "Pour les modules d'extension, consultez :ref:`building-on-windows`." -#: ../Doc/using/windows.rst:1109 +#: ../Doc/using/windows.rst:1153 msgid "" "`Python + Windows + distutils + SWIG + gcc MinGW `_" @@ -2416,7 +2487,7 @@ msgstr "" "`Python + Windows + distutils + SWIG + gcc MinGW `_" -#: ../Doc/using/windows.rst:1107 +#: ../Doc/using/windows.rst:1151 msgid "" "or \"Creating Python extensions in C/C++ with SWIG and compiling them with " "MinGW gcc under Windows\" or \"Installing Python extension with distutils " @@ -2426,15 +2497,15 @@ msgstr "" "MinGW gcc under Windows*\" ou \"*Installing Python extension with distutils " "and without Microsoft Visual C++*\" par Sébastien Sauvage, 2003" -#: ../Doc/using/windows.rst:1111 +#: ../Doc/using/windows.rst:1155 msgid "`MingW -- Python extensions `_" msgstr "`MingW -- Python extensions `_" -#: ../Doc/using/windows.rst:1115 +#: ../Doc/using/windows.rst:1159 msgid "Other Platforms" msgstr "Autres plateformes" -#: ../Doc/using/windows.rst:1117 +#: ../Doc/using/windows.rst:1161 msgid "" "With ongoing development of Python, some platforms that used to be supported " "earlier are no longer supported (due to the lack of users or developers). " @@ -2445,12 +2516,12 @@ msgstr "" "manque d'utilisateurs ou de développeurs). Voir :pep:`11` pour plus de " "détails sur toutes les plateformes non prises en charge." -#: ../Doc/using/windows.rst:1121 +#: ../Doc/using/windows.rst:1165 msgid "`Windows CE `_ is still supported." msgstr "" "`Windows CE `_ est toujours pris en charge." -#: ../Doc/using/windows.rst:1122 +#: ../Doc/using/windows.rst:1166 msgid "" "The `Cygwin `_ installer offers to install the Python " "interpreter as well (cf. `Cygwin package source `_, `Maintainer " "releases `_)" -#: ../Doc/using/windows.rst:1128 +#: ../Doc/using/windows.rst:1172 msgid "" "See `Python for Windows `_ for " "detailed information about platforms with pre-compiled installers." diff --git a/whatsnew/3.6.po b/whatsnew/3.6.po index 784b31b2..bb29e0e1 100644 --- a/whatsnew/3.6.po +++ b/whatsnew/3.6.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-10-13 17:48+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -3208,6 +3208,20 @@ msgid "" "Ammar Askar in :issue:`33899`.)" msgstr "" +#: ../Doc/whatsnew/3.6.rst:2438 +msgid "Notable changes in Python 3.6.10" +msgstr "" + +#: ../Doc/whatsnew/3.6.rst:2440 +msgid "" +"Due to significant security concerns, the *reuse_address* parameter of :meth:" +"`asyncio.loop.create_datagram_endpoint` is no longer supported. This is " +"because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For " +"more details, see the documentation for ``loop.create_datagram_endpoint()``. " +"(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:" +"`37228`.)" +msgstr "" + #~ msgid "|today|" #~ msgstr "|today|" diff --git a/whatsnew/3.7.po b/whatsnew/3.7.po index 72c1c121..8978fc35 100644 --- a/whatsnew/3.7.po +++ b/whatsnew/3.7.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2018-08-03 23:47+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -3576,3 +3576,17 @@ msgid "" "this release will still require recreation of virtual environments in order " "to get the new scripts." msgstr "" + +#: ../Doc/whatsnew/3.7.rst:2546 +msgid "Notable changes in Python 3.7.6" +msgstr "" + +#: ../Doc/whatsnew/3.7.rst:2548 +msgid "" +"Due to significant security concerns, the *reuse_address* parameter of :meth:" +"`asyncio.loop.create_datagram_endpoint` is no longer supported. This is " +"because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For " +"more details, see the documentation for ``loop.create_datagram_endpoint()``. " +"(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:" +"`37228`.)" +msgstr "" diff --git a/whatsnew/3.8.po b/whatsnew/3.8.po index 6e3956cb..defeb703 100644 --- a/whatsnew/3.8.po +++ b/whatsnew/3.8.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-15 18:54+0100\n" +"POT-Creation-Date: 2020-02-04 10:00+0100\n" "PO-Revision-Date: 2019-09-04 11:41+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -885,7 +885,7 @@ msgstr "csv" msgid "" "The :class:`csv.DictReader` now returns instances of :class:`dict` instead " "of a :class:`collections.OrderedDict`. The tool is now faster and uses less " -"memory while still preserving the field order. (Contributed by Michael Seek " +"memory while still preserving the field order. (Contributed by Michael Selik " "in :issue:`34003`.)" msgstr "" @@ -2779,3 +2779,28 @@ msgstr "" #: ../Doc/whatsnew/3.8.rst:2161 msgid "Here's a summary of performance improvements since Python 3.3:" msgstr "" + +#: ../Doc/whatsnew/3.8.rst:2211 +msgid "Notable changes in Python 3.8.1" +msgstr "" + +#: ../Doc/whatsnew/3.8.rst:2213 +msgid "" +"Due to significant security concerns, the *reuse_address* parameter of :meth:" +"`asyncio.loop.create_datagram_endpoint` is no longer supported. This is " +"because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For " +"more details, see the documentation for ``loop.create_datagram_endpoint()``. " +"(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:" +"`37228`.)" +msgstr "" + +#: ../Doc/whatsnew/3.8.rst:2221 +msgid "Notable changes in Python 3.8.2" +msgstr "" + +#: ../Doc/whatsnew/3.8.rst:2223 +msgid "" +"Fixed a regression with the ``ignore`` callback of :func:`shutil.copytree`. " +"The argument types are now str and List[str] again. (Contributed by Manuel " +"Barkhau and Giampaolo Rodola in :issue:`39390`.)" +msgstr ""