From 527c1242a61c506b687986a96e2fab128afb5e28 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 24 Dec 2018 14:20:55 +0100 Subject: [PATCH] Pomerge (#499) --- .travis.yml | 2 +- c-api/buffer.po | 9 +- c-api/codec.po | 4 +- c-api/dict.po | 44 +- c-api/mapping.po | 28 +- c-api/memory.po | 8 +- c-api/number.po | 5 +- c-api/objbuffer.po | 14 +- c-api/object.po | 139 ++-- c-api/structures.po | 53 +- c-api/type.po | 28 +- distutils/apiref.po | 8 +- distutils/extending.po | 4 +- faq/extending.po | 4 +- faq/programming.po | 7 +- faq/windows.po | 62 +- glossary.po | 16 +- howto/functional.po | 9 +- library/aifc.po | 4 +- library/asyncio-eventloop.po | 256 +++---- library/compileall.po | 86 +-- library/concurrent.futures.po | 10 +- library/contextlib.po | 14 +- library/crypt.po | 4 +- library/email.compat32-message.po | 4 +- library/email.message.po | 8 +- library/email.parser.po | 4 +- library/email.util.po | 245 ------- library/email.utils.po | 10 +- library/exceptions.po | 8 +- library/fileinput.po | 6 +- library/functions.po | 11 +- library/functools.po | 96 +-- library/idle.po | 468 +++++++------ library/imaplib.po | 4 +- library/imp.po | 4 +- library/importlib.po | 8 +- library/io.po | 4 +- library/locale.po | 162 +++-- library/operator.po | 4 +- library/parser.po | 4 +- library/pickle.po | 320 ++++----- library/pprint.po | 50 +- library/py_compile.po | 37 +- library/reprlib.po | 28 +- library/select.po | 274 ++++---- library/smtplib.po | 6 +- library/socketserver.po | 4 +- library/stdtypes.po | 911 ++++++++++++------------- library/sys.po | 4 +- library/sysconfig.po | 4 +- library/telnetlib.po | 4 +- library/tempfile.po | 4 +- library/textwrap.po | 10 +- library/threading.po | 4 +- library/time.po | 365 +++++----- library/typing.po | 142 ++-- library/unittest.mock-examples.po | 275 ++++---- library/unittest.mock.po | 513 +++++++------- library/unittest.po | 6 +- library/venv.po | 152 +++-- library/wave.po | 4 +- library/xml.dom.minidom.po | 4 +- library/xml.sax.utils.po | 4 +- library/zipfile.po | 222 +++--- reference/compound_stmts.po | 308 +++++---- reference/datamodel.po | 314 ++++----- reference/executionmodel.po | 14 +- reference/expressions.po | 190 +++--- reference/import.po | 10 +- reference/simple_stmts.po | 75 ++- tutorial/classes.po | 18 +- tutorial/controlflow.po | 50 +- tutorial/datastructures.po | 23 +- tutorial/errors.po | 28 +- tutorial/inputoutput.po | 7 +- tutorial/modules.po | 7 +- using/unix.po | 4 +- using/windows.po | 1047 ++++++++++++++++------------- whatsnew/2.0.po | 16 +- whatsnew/2.1.po | 8 +- whatsnew/2.2.po | 30 +- whatsnew/2.3.po | 28 +- whatsnew/2.5.po | 21 +- whatsnew/2.6.po | 25 +- whatsnew/2.7.po | 8 +- whatsnew/3.0.po | 16 +- whatsnew/3.4.po | 6 +- whatsnew/3.7.po | 18 +- 89 files changed, 3812 insertions(+), 3674 deletions(-) delete mode 100644 library/email.util.po diff --git a/.travis.yml b/.travis.yml index 25dd9b40..a07e9782 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ install: - pospell --version script: - pospell -p dict -l fr_FR **/*.po - - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=75a402a + - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=d1e71758 diff --git a/c-api/buffer.po b/c-api/buffer.po index 62c4ac20..6c9b0ac0 100644 --- a/c-api/buffer.po +++ b/c-api/buffer.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-10-04 12:18+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -336,7 +336,7 @@ msgstr "" #: ../Doc/c-api/buffer.rst:201 msgid "" -"If all suboffsets are negative (i.e. no de-referencing is needed, then this " +"If all suboffsets are negative (i.e. no de-referencing is needed), then this " "field must be NULL (the default value)." msgstr "" @@ -619,7 +619,7 @@ msgstr "Fonctions relatives aux tampons" msgid "" "Return ``1`` if *obj* supports the buffer interface otherwise ``0``. When " "``1`` is returned, it doesn't guarantee that :c:func:`PyObject_GetBuffer` " -"will succeed." +"will succeed. This function always succeeds." msgstr "" #: ../Doc/c-api/buffer.rst:437 @@ -670,7 +670,8 @@ msgstr "" msgid "" "Return ``1`` if the memory defined by the *view* is C-style (*order* is " "``'C'``) or Fortran-style (*order* is ``'F'``) :term:`contiguous` or either " -"one (*order* is ``'A'``). Return ``0`` otherwise." +"one (*order* is ``'A'``). Return ``0`` otherwise. This function always " +"succeeds." msgstr "" #: ../Doc/c-api/buffer.rst:478 diff --git a/c-api/codec.po b/c-api/codec.po index c88d8322..977a2cd0 100644 --- a/c-api/codec.po +++ b/c-api/codec.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -31,7 +31,7 @@ msgstr "" #: ../Doc/c-api/codec.rst:15 msgid "" "Return ``1`` or ``0`` depending on whether there is a registered codec for " -"the given *encoding*." +"the given *encoding*. This function always succeeds." msgstr "" #: ../Doc/c-api/codec.rst:20 diff --git a/c-api/dict.po b/c-api/dict.po index daf4e249..c50d1ef4 100644 --- a/c-api/dict.po +++ b/c-api/dict.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-03 11:36+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -100,20 +100,34 @@ msgid "" "if the key *key* is not present, but *without* setting an exception." msgstr "" -#: ../Doc/c-api/dict.rst:101 +#: ../Doc/c-api/dict.rst:98 +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 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:109 +#: ../Doc/c-api/dict.rst:113 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:115 +#: ../Doc/c-api/dict.rst:116 +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 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 " @@ -123,29 +137,29 @@ msgid "" "the insertion." msgstr "" -#: ../Doc/c-api/dict.rst:125 +#: ../Doc/c-api/dict.rst:134 msgid "" "Return a :c:type:`PyListObject` containing all the items from the dictionary." msgstr "" -#: ../Doc/c-api/dict.rst:130 +#: ../Doc/c-api/dict.rst:139 msgid "" "Return a :c:type:`PyListObject` containing all the keys from the dictionary." msgstr "" -#: ../Doc/c-api/dict.rst:135 +#: ../Doc/c-api/dict.rst:144 msgid "" "Return a :c:type:`PyListObject` containing all the values from the " "dictionary *p*." msgstr "" -#: ../Doc/c-api/dict.rst:143 +#: ../Doc/c-api/dict.rst:152 msgid "" "Return the number of items in the dictionary. This is equivalent to " "``len(p)`` on a dictionary." msgstr "" -#: ../Doc/c-api/dict.rst:149 +#: ../Doc/c-api/dict.rst:158 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 " @@ -159,18 +173,18 @@ msgid "" "structure is sparse, the offsets are not consecutive." msgstr "" -#: ../Doc/c-api/dict.rst:160 +#: ../Doc/c-api/dict.rst:169 msgid "For example::" msgstr "Par exemple ::" -#: ../Doc/c-api/dict.rst:170 +#: ../Doc/c-api/dict.rst:179 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:195 +#: ../Doc/c-api/dict.rst:204 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` " @@ -180,7 +194,7 @@ msgid "" "or ``-1`` if an exception was raised." msgstr "" -#: ../Doc/c-api/dict.rst:205 +#: ../Doc/c-api/dict.rst:214 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 " @@ -189,7 +203,7 @@ msgid "" "exception was raised." msgstr "" -#: ../Doc/c-api/dict.rst:214 +#: ../Doc/c-api/dict.rst:223 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, " @@ -198,6 +212,6 @@ msgid "" "if an exception was raised. Equivalent Python (except for the return value)::" msgstr "" -#: ../Doc/c-api/dict.rst:229 +#: ../Doc/c-api/dict.rst:238 msgid "Clear the free list. Return the total number of freed items." msgstr "" diff --git a/c-api/mapping.po b/c-api/mapping.po index fa5bcbc6..c94973f9 100644 --- a/c-api/mapping.po +++ b/c-api/mapping.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -65,31 +65,45 @@ msgid "" "on failure. This is equivalent to the Python statement ``del o[key]``." msgstr "" -#: ../Doc/c-api/mapping.rst:59 ../Doc/c-api/mapping.rst:66 +#: ../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 " "always succeeds." msgstr "" -#: ../Doc/c-api/mapping.rst:73 +#: ../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:" +"`PyObject_GetItem()` instead." +msgstr "" + +#: ../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 " +"error reporting use :c:func:`PyMapping_GetItemString()` instead." +msgstr "" + +#: ../Doc/c-api/mapping.rst:81 msgid "" "On success, return a list of the keys in object *o*. On failure, return " "*NULL*." msgstr "" -#: ../Doc/c-api/mapping.rst:76 ../Doc/c-api/mapping.rst:85 -#: ../Doc/c-api/mapping.rst:94 +#: ../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 "" -#: ../Doc/c-api/mapping.rst:82 +#: ../Doc/c-api/mapping.rst:90 msgid "" "On success, return a list of the values in object *o*. On failure, return " "*NULL*." msgstr "" -#: ../Doc/c-api/mapping.rst:91 +#: ../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/memory.po b/c-api/memory.po index efde30a1..4e1993bd 100644 --- a/c-api/memory.po +++ b/c-api/memory.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -437,7 +437,7 @@ msgstr "" msgid "``pymalloc`` + debug" msgstr "" -#: ../Doc/c-api/memory.rst:344 ../Doc/c-api/memory.rst:345 +#: ../Doc/c-api/memory.rst:344 msgid "Release build, without pymalloc" msgstr "" @@ -445,6 +445,10 @@ msgstr "" msgid "``\"malloc\"``" msgstr "" +#: ../Doc/c-api/memory.rst:345 +msgid "Debug build, without pymalloc" +msgstr "" + #: ../Doc/c-api/memory.rst:345 msgid "``\"malloc_debug\"``" msgstr "" diff --git a/c-api/number.po b/c-api/number.po index dbccb6ae..0e2b8784 100644 --- a/c-api/number.po +++ b/c-api/number.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -280,5 +280,6 @@ msgstr "" #: ../Doc/c-api/number.rst:281 msgid "" "Returns ``1`` if *o* is an index integer (has the nb_index slot of the " -"tp_as_number structure filled in), and ``0`` otherwise." +"tp_as_number structure filled in), and ``0`` otherwise. This function always " +"succeeds." msgstr "" diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index 7e7cd375..0e5dafd0 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-11-30 10:55+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -78,14 +78,22 @@ msgstr "" "`TypeError` en cas d'erreur." #: ../Doc/c-api/objbuffer.rst:41 +#, fuzzy msgid "" "Returns ``1`` if *o* supports the single-segment readable buffer interface. " -"Otherwise returns ``0``." +"Otherwise returns ``0``. This function always succeeds." msgstr "" "Retourne ``1`` si *o* prend en charge l'interface de mémoire tampon lisible " "à segment unique. Sinon, renvoie ``0``." -#: ../Doc/c-api/objbuffer.rst:47 +#: ../Doc/c-api/objbuffer.rst:44 +msgid "" +"Note that this function tries to get and release a buffer, and exceptions " +"which occur while calling correspoding functions will get suppressed. To get " +"error reporting use :c:func:`PyObject_GetBuffer()` instead." +msgstr "" + +#: ../Doc/c-api/objbuffer.rst:51 msgid "" "Returns a pointer to a writable memory location. The *obj* argument must " "support the single-segment, character buffer interface. On success, returns " diff --git a/c-api/object.po b/c-api/object.po index 1b6bccb8..b9184c4f 100644 --- a/c-api/object.po +++ b/c-api/object.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -39,28 +39,43 @@ msgid "" "the object is written instead of the :func:`repr`." msgstr "" -#: ../Doc/c-api/object.rst:32 ../Doc/c-api/object.rst:39 +#: ../Doc/c-api/object.rst:32 ../Doc/c-api/object.rst:43 msgid "" "Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. " "This is equivalent to the Python expression ``hasattr(o, attr_name)``. This " "function always succeeds." msgstr "" -#: ../Doc/c-api/object.rst:46 +#: ../Doc/c-api/object.rst:36 +msgid "" +"Note that exceptions which occur while calling :meth:`__getattr__` and :meth:" +"`__getattribute__` methods will get suppressed. To get error reporting use :" +"c:func:`PyObject_GetAttr()` instead." +msgstr "" + +#: ../Doc/c-api/object.rst:47 +msgid "" +"Note that exceptions which occur while calling :meth:`__getattr__` and :meth:" +"`__getattribute__` methods and creating a temporary string object will get " +"suppressed. To get error reporting use :c:func:`PyObject_GetAttrString()` " +"instead." +msgstr "" + +#: ../Doc/c-api/object.rst:55 msgid "" "Retrieve an attribute named *attr_name* from object *o*. Returns the " "attribute value on success, or *NULL* on failure. This is the equivalent of " "the Python expression ``o.attr_name``." msgstr "" -#: ../Doc/c-api/object.rst:53 +#: ../Doc/c-api/object.rst:62 msgid "" "Retrieve an attribute named *attr_name* from object *o*. Returns the " "attribute value on success, or *NULL* on failure. This is the equivalent of " "the Python expression ``o.attr_name``." msgstr "" -#: ../Doc/c-api/object.rst:60 +#: ../Doc/c-api/object.rst:69 msgid "" "Generic attribute getter function that is meant to be put into a type " "object's ``tp_getattro`` slot. It looks for a descriptor in the dictionary " @@ -70,26 +85,26 @@ msgid "" "descriptors don't. Otherwise, an :exc:`AttributeError` is raised." msgstr "" -#: ../Doc/c-api/object.rst:70 ../Doc/c-api/object.rst:81 +#: ../Doc/c-api/object.rst:79 ../Doc/c-api/object.rst:90 msgid "" "Set the value of the attribute named *attr_name*, for object *o*, 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.attr_name = v``." msgstr "" -#: ../Doc/c-api/object.rst:75 +#: ../Doc/c-api/object.rst:84 msgid "" "If *v* is *NULL*, the attribute is deleted, however this feature is " "deprecated in favour of using :c:func:`PyObject_DelAttr`." msgstr "" -#: ../Doc/c-api/object.rst:86 +#: ../Doc/c-api/object.rst:95 msgid "" "If *v* is *NULL*, the attribute is deleted, however this feature is " "deprecated in favour of using :c:func:`PyObject_DelAttrString`." msgstr "" -#: ../Doc/c-api/object.rst:92 +#: ../Doc/c-api/object.rst:101 msgid "" "Generic attribute setter and deleter function that is meant to be put into a " "type object's :c:member:`~PyTypeObject.tp_setattro` slot. It looks for a " @@ -101,25 +116,25 @@ msgid "" "returned." msgstr "" -#: ../Doc/c-api/object.rst:104 ../Doc/c-api/object.rst:110 +#: ../Doc/c-api/object.rst:113 ../Doc/c-api/object.rst:119 msgid "" "Delete attribute named *attr_name*, for object *o*. Returns ``-1`` on " "failure. This is the equivalent of the Python statement ``del o.attr_name``." msgstr "" -#: ../Doc/c-api/object.rst:116 +#: ../Doc/c-api/object.rst:125 msgid "" "A generic implementation for the getter of a ``__dict__`` descriptor. It " "creates the dictionary if necessary." msgstr "" -#: ../Doc/c-api/object.rst:124 +#: ../Doc/c-api/object.rst:133 msgid "" "A generic implementation for the setter of a ``__dict__`` descriptor. This " "implementation does not allow the dictionary to be deleted." msgstr "" -#: ../Doc/c-api/object.rst:132 +#: ../Doc/c-api/object.rst:141 msgid "" "Compare the values of *o1* and *o2* using the operation specified by *opid*, " "which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, :const:" @@ -130,7 +145,7 @@ msgid "" "failure." msgstr "" -#: ../Doc/c-api/object.rst:142 +#: ../Doc/c-api/object.rst:151 msgid "" "Compare the values of *o1* and *o2* using the operation specified by *opid*, " "which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, :const:" @@ -141,26 +156,26 @@ msgid "" "to *opid*." msgstr "" -#: ../Doc/c-api/object.rst:151 +#: ../Doc/c-api/object.rst:160 msgid "" "If *o1* and *o2* are the same object, :c:func:`PyObject_RichCompareBool` " "will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`." msgstr "" -#: ../Doc/c-api/object.rst:158 +#: ../Doc/c-api/object.rst:167 msgid "" "Compute a string representation of object *o*. Returns the string " "representation on success, *NULL* on failure. This is the equivalent of the " "Python expression ``repr(o)``. Called by the :func:`repr` built-in function." msgstr "" -#: ../Doc/c-api/object.rst:162 ../Doc/c-api/object.rst:186 +#: ../Doc/c-api/object.rst:171 ../Doc/c-api/object.rst:195 msgid "" "This function now includes a debug assertion to help ensure that it does not " "silently discard an active exception." msgstr "" -#: ../Doc/c-api/object.rst:170 +#: ../Doc/c-api/object.rst:179 msgid "" "As :c:func:`PyObject_Repr`, compute a string representation of object *o*, " "but escape the non-ASCII characters in the string returned by :c:func:" @@ -169,7 +184,7 @@ msgid "" "Called by the :func:`ascii` built-in function." msgstr "" -#: ../Doc/c-api/object.rst:181 +#: ../Doc/c-api/object.rst:190 msgid "" "Compute a string representation of object *o*. Returns the string " "representation on success, *NULL* on failure. This is the equivalent of the " @@ -177,7 +192,7 @@ msgid "" "and, therefore, by the :func:`print` function." msgstr "" -#: ../Doc/c-api/object.rst:194 +#: ../Doc/c-api/object.rst:203 msgid "" "Compute a bytes representation of object *o*. *NULL* is returned on failure " "and a bytes object on success. This is equivalent to the Python expression " @@ -185,20 +200,20 @@ msgid "" "is raised when *o* is an integer instead of a zero-initialized bytes object." msgstr "" -#: ../Doc/c-api/object.rst:203 +#: ../Doc/c-api/object.rst:212 msgid "" "Return ``1`` if the class *derived* is identical to or derived from the " "class *cls*, otherwise return ``0``. In case of an error, return ``-1``." msgstr "" -#: ../Doc/c-api/object.rst:206 ../Doc/c-api/object.rst:225 +#: ../Doc/c-api/object.rst:215 ../Doc/c-api/object.rst:234 msgid "" "If *cls* is a tuple, the check will be done against every entry in *cls*. " "The result will be ``1`` when at least one of the checks returns ``1``, " "otherwise it will be ``0``." msgstr "" -#: ../Doc/c-api/object.rst:210 +#: ../Doc/c-api/object.rst:219 msgid "" "If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to " "determine the subclass status as described in :pep:`3119`. Otherwise, " @@ -206,80 +221,80 @@ msgid "" "e. contained in ``cls.__mro__``." msgstr "" -#: ../Doc/c-api/object.rst:215 +#: ../Doc/c-api/object.rst:224 msgid "" "Normally only class objects, i.e. instances of :class:`type` or a derived " "class, are considered classes. However, objects can override this by having " "a :attr:`__bases__` attribute (which must be a tuple of base classes)." msgstr "" -#: ../Doc/c-api/object.rst:222 +#: ../Doc/c-api/object.rst:231 msgid "" "Return ``1`` if *inst* is an instance of the class *cls* or a subclass of " "*cls*, or ``0`` if not. On error, returns ``-1`` and sets an exception." msgstr "" -#: ../Doc/c-api/object.rst:229 +#: ../Doc/c-api/object.rst:238 msgid "" "If *cls* has a :meth:`~class.__instancecheck__` method, it will be called to " "determine the subclass status as described in :pep:`3119`. Otherwise, " "*inst* is an instance of *cls* if its class is a subclass of *cls*." msgstr "" -#: ../Doc/c-api/object.rst:233 +#: ../Doc/c-api/object.rst:242 msgid "" "An instance *inst* can override what is considered its class by having a :" "attr:`__class__` attribute." msgstr "" -#: ../Doc/c-api/object.rst:236 +#: ../Doc/c-api/object.rst:245 msgid "" "An object *cls* can override if it is considered a class, and what its base " "classes are, by having a :attr:`__bases__` attribute (which must be a tuple " "of base classes)." msgstr "" -#: ../Doc/c-api/object.rst:243 +#: ../Doc/c-api/object.rst:252 msgid "" "Determine if the object *o* is callable. Return ``1`` if the object is " "callable and ``0`` otherwise. This function always succeeds." msgstr "" -#: ../Doc/c-api/object.rst:249 +#: ../Doc/c-api/object.rst:258 msgid "" "Call a callable Python object *callable*, with arguments given by the tuple " "*args*, and named arguments given by the dictionary *kwargs*." msgstr "" -#: ../Doc/c-api/object.rst:252 +#: ../Doc/c-api/object.rst:261 msgid "" "*args* must not be *NULL*, use an empty tuple if no arguments are needed. If " "no named arguments are needed, *kwargs* can be *NULL*." msgstr "" -#: ../Doc/c-api/object.rst:255 ../Doc/c-api/object.rst:266 -#: ../Doc/c-api/object.rst:277 ../Doc/c-api/object.rst:296 -#: ../Doc/c-api/object.rst:314 +#: ../Doc/c-api/object.rst:264 ../Doc/c-api/object.rst:275 +#: ../Doc/c-api/object.rst:286 ../Doc/c-api/object.rst:305 +#: ../Doc/c-api/object.rst:323 msgid "Returns the result of the call on success, or *NULL* on failure." msgstr "" -#: ../Doc/c-api/object.rst:257 +#: ../Doc/c-api/object.rst:266 msgid "" "This is the equivalent of the Python expression: ``callable(*args, " "**kwargs)``." msgstr "" -#: ../Doc/c-api/object.rst:263 +#: ../Doc/c-api/object.rst:272 msgid "" "Call a callable Python object *callable*, with arguments given by the tuple " "*args*. If no arguments are needed, then *args* can be *NULL*." msgstr "" -#: ../Doc/c-api/object.rst:268 ../Doc/c-api/object.rst:279 +#: ../Doc/c-api/object.rst:277 ../Doc/c-api/object.rst:288 msgid "This is the equivalent of the Python expression: ``callable(*args)``." msgstr "" -#: ../Doc/c-api/object.rst:273 +#: ../Doc/c-api/object.rst:282 msgid "" "Call a callable Python object *callable*, with a variable number of C " "arguments. The C arguments are described using a :c:func:`Py_BuildValue` " @@ -287,57 +302,57 @@ msgid "" "are provided." msgstr "" -#: ../Doc/c-api/object.rst:281 +#: ../Doc/c-api/object.rst:290 msgid "" "Note that if you only pass :c:type:`PyObject \\*` args, :c:func:" "`PyObject_CallFunctionObjArgs` is a faster alternative." msgstr "" -#: ../Doc/c-api/object.rst:284 +#: ../Doc/c-api/object.rst:293 msgid "The type of *format* was changed from ``char *``." msgstr "" -#: ../Doc/c-api/object.rst:290 +#: ../Doc/c-api/object.rst:299 msgid "" "Call the method named *name* of object *obj* with a variable number of C " "arguments. The C arguments are described by a :c:func:`Py_BuildValue` " "format string that should produce a tuple." msgstr "" -#: ../Doc/c-api/object.rst:294 +#: ../Doc/c-api/object.rst:303 msgid "The format can be *NULL*, indicating that no arguments are provided." msgstr "" -#: ../Doc/c-api/object.rst:298 +#: ../Doc/c-api/object.rst:307 msgid "" "This is the equivalent of the Python expression: ``obj.name(arg1, " "arg2, ...)``." msgstr "" -#: ../Doc/c-api/object.rst:301 +#: ../Doc/c-api/object.rst:310 msgid "" "Note that if you only pass :c:type:`PyObject \\*` args, :c:func:" "`PyObject_CallMethodObjArgs` is a faster alternative." msgstr "" -#: ../Doc/c-api/object.rst:304 +#: ../Doc/c-api/object.rst:313 msgid "The types of *name* and *format* were changed from ``char *``." msgstr "" -#: ../Doc/c-api/object.rst:310 +#: ../Doc/c-api/object.rst:319 msgid "" "Call a callable Python object *callable*, with a variable number of :c:type:" "`PyObject\\*` arguments. The arguments are provided as a variable number of " "parameters followed by *NULL*." msgstr "" -#: ../Doc/c-api/object.rst:316 +#: ../Doc/c-api/object.rst:325 msgid "" "This is the equivalent of the Python expression: ``callable(arg1, " "arg2, ...)``." msgstr "" -#: ../Doc/c-api/object.rst:322 +#: ../Doc/c-api/object.rst:331 msgid "" "Calls a method of the Python object *obj*, where the name of the method is " "given as a Python string object in *name*. It is called with a variable " @@ -346,19 +361,19 @@ msgid "" "call on success, or *NULL* on failure." msgstr "" -#: ../Doc/c-api/object.rst:333 +#: ../Doc/c-api/object.rst:342 msgid "" "Compute and return the hash value of an object *o*. On failure, return " "``-1``. This is the equivalent of the Python expression ``hash(o)``." msgstr "" -#: ../Doc/c-api/object.rst:336 +#: ../Doc/c-api/object.rst:345 msgid "" "The return type is now Py_hash_t. This is a signed integer the same size as " "Py_ssize_t." msgstr "" -#: ../Doc/c-api/object.rst:343 +#: ../Doc/c-api/object.rst:352 msgid "" "Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and " "return ``-1``. This function receives special treatment when stored in a " @@ -366,21 +381,21 @@ msgid "" "that it is not hashable." msgstr "" -#: ../Doc/c-api/object.rst:351 +#: ../Doc/c-api/object.rst:360 msgid "" "Returns ``1`` if the object *o* is considered to be true, and ``0`` " "otherwise. This is equivalent to the Python expression ``not not o``. On " "failure, return ``-1``." msgstr "" -#: ../Doc/c-api/object.rst:358 +#: ../Doc/c-api/object.rst:367 msgid "" "Returns ``0`` if the object *o* is considered to be true, and ``1`` " "otherwise. This is equivalent to the Python expression ``not o``. On " "failure, return ``-1``." msgstr "" -#: ../Doc/c-api/object.rst:367 +#: ../Doc/c-api/object.rst:376 msgid "" "When *o* is non-*NULL*, returns a type object corresponding to the object " "type of object *o*. On failure, raises :exc:`SystemError` and returns " @@ -391,13 +406,13 @@ msgid "" "except when the incremented reference count is needed." msgstr "" -#: ../Doc/c-api/object.rst:378 +#: ../Doc/c-api/object.rst:387 msgid "" "Return true if the object *o* is of type *type* or a subtype of *type*. " "Both parameters must be non-*NULL*." msgstr "" -#: ../Doc/c-api/object.rst:387 +#: ../Doc/c-api/object.rst:396 msgid "" "Return the length of object *o*. If the object *o* provides either the " "sequence and mapping protocols, the sequence length is returned. On error, " @@ -405,7 +420,7 @@ msgid "" "``len(o)``." msgstr "" -#: ../Doc/c-api/object.rst:394 +#: ../Doc/c-api/object.rst:403 msgid "" "Return an estimated length for the object *o*. First try to return its " "actual length, then an estimate using :meth:`~object.__length_hint__`, and " @@ -413,26 +428,26 @@ msgid "" "equivalent to the Python expression ``operator.length_hint(o, default)``." msgstr "" -#: ../Doc/c-api/object.rst:404 +#: ../Doc/c-api/object.rst:413 msgid "" "Return element of *o* corresponding to the object *key* or *NULL* on " "failure. This is the equivalent of the Python expression ``o[key]``." msgstr "" -#: ../Doc/c-api/object.rst:410 +#: ../Doc/c-api/object.rst:419 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``." msgstr "" -#: ../Doc/c-api/object.rst:417 +#: ../Doc/c-api/object.rst:426 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:423 +#: ../Doc/c-api/object.rst:432 msgid "" "This is equivalent to the Python expression ``dir(o)``, returning a " "(possibly empty) list of strings appropriate for the object argument, or " @@ -442,7 +457,7 @@ msgid "" "`PyErr_Occurred` will return false." msgstr "" -#: ../Doc/c-api/object.rst:432 +#: ../Doc/c-api/object.rst:441 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/structures.po b/c-api/structures.po index deb2ab98..4422d372 100644 --- a/c-api/structures.po +++ b/c-api/structures.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -130,17 +130,17 @@ msgid "" msgstr "" #: ../Doc/c-api/structures.rst:129 ../Doc/c-api/structures.rst:240 -#: ../Doc/c-api/structures.rst:305 +#: ../Doc/c-api/structures.rst:306 msgid "Field" msgstr "" #: ../Doc/c-api/structures.rst:129 ../Doc/c-api/structures.rst:240 -#: ../Doc/c-api/structures.rst:305 +#: ../Doc/c-api/structures.rst:306 msgid "C Type" msgstr "Type C" #: ../Doc/c-api/structures.rst:129 ../Doc/c-api/structures.rst:240 -#: ../Doc/c-api/structures.rst:305 +#: ../Doc/c-api/structures.rst:306 msgid "Meaning" msgstr "Signification" @@ -150,8 +150,8 @@ msgstr "" #: ../Doc/c-api/structures.rst:131 ../Doc/c-api/structures.rst:139 #: ../Doc/c-api/structures.rst:242 ../Doc/c-api/structures.rst:255 -#: ../Doc/c-api/structures.rst:271 ../Doc/c-api/structures.rst:307 -#: ../Doc/c-api/structures.rst:315 +#: ../Doc/c-api/structures.rst:271 ../Doc/c-api/structures.rst:308 +#: ../Doc/c-api/structures.rst:316 msgid "const char \\*" msgstr "" @@ -486,91 +486,92 @@ msgstr "" msgid "" ":attr:`flags` can be ``0`` for write and read access or :c:macro:`READONLY` " "for read-only access. Using :c:macro:`T_STRING` for :attr:`type` implies :c:" -"macro:`READONLY`. Only :c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` " -"members can be deleted. (They are set to *NULL*)." +"macro:`READONLY`. :c:macro:`T_STRING` data is interpreted as UTF-8. Only :c:" +"macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` members can be deleted. (They " +"are set to *NULL*)." msgstr "" -#: ../Doc/c-api/structures.rst:301 +#: ../Doc/c-api/structures.rst:302 msgid "" "Structure to define property-like access for a type. See also description of " "the :c:member:`PyTypeObject.tp_getset` slot." msgstr "" -#: ../Doc/c-api/structures.rst:307 +#: ../Doc/c-api/structures.rst:308 msgid "name" msgstr "" -#: ../Doc/c-api/structures.rst:307 +#: ../Doc/c-api/structures.rst:308 msgid "attribute name" msgstr "" -#: ../Doc/c-api/structures.rst:309 +#: ../Doc/c-api/structures.rst:310 msgid "get" msgstr "" -#: ../Doc/c-api/structures.rst:309 +#: ../Doc/c-api/structures.rst:310 msgid "getter" msgstr "" -#: ../Doc/c-api/structures.rst:309 +#: ../Doc/c-api/structures.rst:310 msgid "C Function to get the attribute" msgstr "" -#: ../Doc/c-api/structures.rst:311 +#: ../Doc/c-api/structures.rst:312 msgid "set" msgstr "" -#: ../Doc/c-api/structures.rst:311 +#: ../Doc/c-api/structures.rst:312 msgid "setter" msgstr "" -#: ../Doc/c-api/structures.rst:311 +#: ../Doc/c-api/structures.rst:312 msgid "" "optional C function to set or delete the attribute, if omitted the attribute " "is readonly" msgstr "" -#: ../Doc/c-api/structures.rst:315 +#: ../Doc/c-api/structures.rst:316 msgid "doc" msgstr "" -#: ../Doc/c-api/structures.rst:315 +#: ../Doc/c-api/structures.rst:316 msgid "optional docstring" msgstr "" -#: ../Doc/c-api/structures.rst:317 +#: ../Doc/c-api/structures.rst:318 msgid "closure" msgstr "" -#: ../Doc/c-api/structures.rst:317 +#: ../Doc/c-api/structures.rst:318 msgid "void \\*" msgstr "" -#: ../Doc/c-api/structures.rst:317 +#: ../Doc/c-api/structures.rst:318 msgid "" "optional function pointer, providing additional data for getter and setter" msgstr "" -#: ../Doc/c-api/structures.rst:322 +#: ../Doc/c-api/structures.rst:323 msgid "" "The ``get`` function takes one :c:type:`PyObject\\*` parameter (the " "instance) and a function pointer (the associated ``closure``)::" msgstr "" -#: ../Doc/c-api/structures.rst:327 +#: ../Doc/c-api/structures.rst:328 msgid "" "It should return a new reference on success or *NULL* with a set exception " "on failure." msgstr "" -#: ../Doc/c-api/structures.rst:330 +#: ../Doc/c-api/structures.rst:331 msgid "" "``set`` functions take two :c:type:`PyObject\\*` parameters (the instance " "and the value to be set) and a function pointer (the associated " "``closure``)::" msgstr "" -#: ../Doc/c-api/structures.rst:335 +#: ../Doc/c-api/structures.rst:336 msgid "" "In case the attribute should be deleted the second parameter is *NULL*. " "Should return ``0`` on success or ``-1`` with a set exception on failure." diff --git a/c-api/type.po b/c-api/type.po index b8e2dc8e..8be0c2f2 100644 --- a/c-api/type.po +++ b/c-api/type.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-02-15 00:33+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -52,51 +52,55 @@ msgid "" "c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API." msgstr "" -#: ../Doc/c-api/type.rst:50 +#: ../Doc/c-api/type.rst:47 +msgid "The return type is now ``unsigned long`` rather than ``long``." +msgstr "" + +#: ../Doc/c-api/type.rst:53 msgid "" "Invalidate the internal lookup cache for the type and all of its subtypes. " "This function must be called after any manual modification of the attributes " "or base classes of the type." msgstr "" -#: ../Doc/c-api/type.rst:57 +#: ../Doc/c-api/type.rst:60 msgid "" "Return true if the type object *o* sets the feature *feature*. Type " "features are denoted by single bit flags." msgstr "" -#: ../Doc/c-api/type.rst:63 +#: ../Doc/c-api/type.rst:66 msgid "" "Return true if the type object includes support for the cycle detector; this " "tests the type flag :const:`Py_TPFLAGS_HAVE_GC`." msgstr "" -#: ../Doc/c-api/type.rst:69 +#: ../Doc/c-api/type.rst:72 msgid "Return true if *a* is a subtype of *b*." msgstr "" -#: ../Doc/c-api/type.rst:71 +#: ../Doc/c-api/type.rst:74 msgid "" "This function only checks for actual subtypes, which means that :meth:" "`~class.__subclasscheck__` is not called on *b*. Call :c:func:" "`PyObject_IsSubclass` to do the same check that :func:`issubclass` would do." msgstr "" -#: ../Doc/c-api/type.rst:79 +#: ../Doc/c-api/type.rst:82 msgid "" "Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type " "object. Use Python's default memory allocation mechanism to allocate a new " "instance and initialize all its contents to *NULL*." msgstr "" -#: ../Doc/c-api/type.rst:85 +#: ../Doc/c-api/type.rst:88 msgid "" "Generic handler for the :c:member:`~PyTypeObject.tp_new` slot of a type " "object. Create a new instance using the type's :c:member:`~PyTypeObject." "tp_alloc` slot." msgstr "" -#: ../Doc/c-api/type.rst:90 +#: ../Doc/c-api/type.rst:93 msgid "" "Finalize a type object. This should be called on all type objects to finish " "their initialization. This function is responsible for adding inherited " @@ -104,13 +108,13 @@ msgid "" "and sets an exception on error." msgstr "" -#: ../Doc/c-api/type.rst:97 +#: ../Doc/c-api/type.rst:100 msgid "" "Creates and returns a heap type object from the *spec* passed to the " "function." msgstr "" -#: ../Doc/c-api/type.rst:101 +#: ../Doc/c-api/type.rst:104 msgid "" "Creates and returns a heap type object from the *spec*. In addition to that, " "the created heap type contains all types contained by the *bases* tuple as " @@ -118,7 +122,7 @@ msgid "" "types." msgstr "" -#: ../Doc/c-api/type.rst:109 +#: ../Doc/c-api/type.rst:112 msgid "" "Return the function pointer stored in the given slot. If the result is " "*NULL*, this indicates that either the slot is *NULL*, or that the function " diff --git a/distutils/apiref.po b/distutils/apiref.po index 6f132bc3..d2867fd9 100644 --- a/distutils/apiref.po +++ b/distutils/apiref.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-10-21 23:45+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"PO-Revision-Date: 2018-12-17 21:44+0100\n" "Last-Translator: Pierre Bousquié \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -459,7 +459,6 @@ msgid "*sources*" msgstr "*sources*" #: ../Doc/distutils/apiref.rst:183 -#, fuzzy msgid "" "list of source filenames, relative to the distribution root (where the setup " "script lives), in Unix form (slash-separated) for portability. Source files " @@ -1785,7 +1784,7 @@ msgstr "" #: ../Doc/distutils/apiref.rst:943 msgid "" "Return true if *target* is out-of-date with respect to any file listed in " -"*sources* In other words, if *target* exists and is newer than every file " +"*sources*. In other words, if *target* exists and is newer than every file " "in *sources*, return false; otherwise return true. *missing* controls what " "we do when a source file is missing; the default (``'error'``) is to blow up " "with an :exc:`OSError` from inside :func:`os.stat`; if it is ``'ignore'``, " @@ -2836,7 +2835,6 @@ msgid "*strip_comments*" msgstr "*strip_comments*" #: ../Doc/distutils/apiref.rst:1570 -#, fuzzy msgid "" "strip from ``'#'`` to end-of-line, as well as any whitespace leading up to " "the ``'#'``\\ ---unless it is escaped by a backslash" diff --git a/distutils/extending.po b/distutils/extending.po index 94059315..3415815c 100644 --- a/distutils/extending.po +++ b/distutils/extending.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2018-10-18 10:21+0200\n" "PO-Revision-Date: 2018-11-30 14:00+0100\n" +"Last-Translator: Jules Lasne \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: Jules Lasne \n" "X-Generator: Poedit 2.2\n" #: ../Doc/distutils/extending.rst:5 diff --git a/faq/extending.po b/faq/extending.po index 0b49f547..1d2c8f69 100644 --- a/faq/extending.po +++ b/faq/extending.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-02-15 00:37+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -342,7 +342,7 @@ msgid "" "same thread as your rest application and you can't allow the :c:func:" "`PyRun_InteractiveLoop` to stop while waiting for user input. The one " "solution then is to call :c:func:`PyParser_ParseString` and test for ``e." -"error`` equal to ``E_EOF``, which means the input is incomplete). Here's a " +"error`` equal to ``E_EOF``, which means the input is incomplete. Here's a " "sample code fragment, untested, inspired by code from Alex Farber::" msgstr "" diff --git a/faq/programming.po b/faq/programming.po index bedfa1d4..f3957d2a 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-09-15 21:52+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-11-13 09:44+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -902,9 +902,10 @@ msgstr "" "en Python ?" #: ../Doc/faq/programming.rst:740 +#, fuzzy msgid "" -"Yes. Usually this is done by nesting :keyword:`lambda` within :keyword:" -"`lambda`. See the following three examples, due to Ulf Bartelt::" +"Yes. Usually this is done by nesting :keyword:`lambda` within :keyword:`!" +"lambda`. See the following three examples, due to Ulf Bartelt::" msgstr "" "Oui. Cela est généralement réalisé en imbriquant les :keyword:`lambda` dans " "des :keyword:`lambda`. Observez les trois exemples suivants de Ulf Bartelt ::" diff --git a/faq/windows.po b/faq/windows.po index 3a7bd422..759aa6a4 100644 --- a/faq/windows.po +++ b/faq/windows.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-12-10 14:17+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -442,49 +442,31 @@ msgstr "" "touche s'est produite, et ``getch()`` qui récupère le caractère sans " "l'afficher." -#: ../Doc/faq/windows.rst:286 #, fuzzy -msgid "How do I emulate os.kill() in Windows?" -msgstr "Comment émuler ``os.kill()`` sur Windows ?" +#~ msgid "How do I emulate os.kill() in Windows?" +#~ msgstr "Comment émuler ``os.kill()`` sur Windows ?" -#: ../Doc/faq/windows.rst:288 -msgid "" -"Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod:" -"`ctypes`:" -msgstr "" +#~ msgid "How do I extract the downloaded documentation on Windows?" +#~ msgstr "Comment décompresser la documentation téléchargée sous Windows ?" -#: ../Doc/faq/windows.rst:300 -msgid "" -"In 2.7 and 3.2, :func:`os.kill` is implemented similar to the above " -"function, with the additional feature of being able to send :kbd:`Ctrl+C` " -"and :kbd:`Ctrl+Break` to console subprocesses which are designed to handle " -"those signals. See :func:`os.kill` for further details." -msgstr "" +#~ msgid "" +#~ "Sometimes, when you download the documentation package to a Windows " +#~ "machine using a web browser, the file extension of the saved file ends up " +#~ "being .EXE. This is a mistake; the extension should be .TGZ." +#~ msgstr "" +#~ "Quelquefois, lorsque vous téléchargez de la documentation avec Windows en " +#~ "utilisant un navigateur internet, l’extension du fichier est .EXE. Il " +#~ "s'agit d'une erreur ; l'extension devrait être .TGZ." -#: ../Doc/faq/windows.rst:306 -msgid "How do I extract the downloaded documentation on Windows?" -msgstr "Comment décompresser la documentation téléchargée sous Windows ?" - -#: ../Doc/faq/windows.rst:308 -msgid "" -"Sometimes, when you download the documentation package to a Windows machine " -"using a web browser, the file extension of the saved file ends up being ." -"EXE. This is a mistake; the extension should be .TGZ." -msgstr "" -"Quelquefois, lorsque vous téléchargez de la documentation avec Windows en " -"utilisant un navigateur internet, l’extension du fichier est .EXE. Il s'agit " -"d'une erreur ; l'extension devrait être .TGZ." - -#: ../Doc/faq/windows.rst:312 -msgid "" -"Simply rename the downloaded file to have the .TGZ extension, and WinZip " -"will be able to handle it. (If your copy of WinZip doesn't, get a newer one " -"from https://www.winzip.com.)" -msgstr "" -"Renommez simplement le fichier téléchargé pour lui donner l'extension .TGZ, " -"puis utilisez WinZip pour le décompresser. Si WinZip ne peut pas " -"décompresser le fichier, téléchargez une version plus à jour (https://www." -"winzip.com)." +#~ msgid "" +#~ "Simply rename the downloaded file to have the .TGZ extension, and WinZip " +#~ "will be able to handle it. (If your copy of WinZip doesn't, get a newer " +#~ "one from https://www.winzip.com.)" +#~ msgstr "" +#~ "Renommez simplement le fichier téléchargé pour lui donner l'extension ." +#~ "TGZ, puis utilisez WinZip pour le décompresser. Si WinZip ne peut pas " +#~ "décompresser le fichier, téléchargez une version plus à jour (https://www." +#~ "winzip.com)." #~ msgid "|Python Development on XP|_" #~ msgstr "|Python Development on XP|_" diff --git a/glossary.po b/glossary.po index 6235141d..669014b6 100644 --- a/glossary.po +++ b/glossary.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-14 15:07+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -255,8 +255,8 @@ msgstr "Objet créé par une fonction :term:`asynchronous generator`." #: ../Doc/glossary.rst:109 msgid "" "This is an :term:`asynchronous iterator` which when called using the :meth:" -"`__anext__` method returns an awaitable object which will execute that the " -"body of the asynchronous generator function until the next :keyword:`yield` " +"`__anext__` method returns an awaitable object which will execute the body " +"of the asynchronous generator function until the next :keyword:`yield` " "expression." msgstr "" "C'est un :term:`asynchronous iterator` qui, lorsqu'il est appelé via la " @@ -785,13 +785,14 @@ msgid "expression" msgstr "expression" #: ../Doc/glossary.rst:330 +#, fuzzy msgid "" "A piece of syntax which can be evaluated to some value. In other words, an " "expression is an accumulation of expression elements like literals, names, " "attribute access, operators or function calls which all return a value. In " "contrast to many other languages, not all language constructs are " "expressions. There are also :term:`statement`\\s which cannot be used as " -"expressions, such as :keyword:`if`. Assignments are also statements, not " +"expressions, such as :keyword:`while`. Assignments are also statements, not " "expressions." msgstr "" "Suite logique de termes et chiffres conformes à la syntaxe Python dont " @@ -1061,11 +1062,12 @@ msgid "generator expression" msgstr "expression génératrice" #: ../Doc/glossary.rst:446 +#, fuzzy msgid "" "An expression that returns an iterator. It looks like a normal expression " -"followed by a :keyword:`for` expression defining a loop variable, range, and " -"an optional :keyword:`if` expression. The combined expression generates " -"values for an enclosing function::" +"followed by a :keyword:`!for` clause defining a loop variable, range, and an " +"optional :keyword:`!if` clause. The combined expression generates values " +"for an enclosing function::" msgstr "" "Expression qui donne un itérateur. Elle ressemble à une expression normale, " "suivie d'une expression :keyword:`for` définissant une variable de boucle, " diff --git a/howto/functional.po b/howto/functional.po index 9fcdc2ab..24574553 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-13 15:13+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-02-15 00:38+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1168,9 +1168,10 @@ msgstr "" #: ../Doc/howto/functional.rst:1110 msgid "" "If the function you need doesn't exist, you need to write it. One way to " -"write small functions is to use the :keyword:`lambda` statement. ``lambda`` " -"takes a number of parameters and an expression combining these parameters, " -"and creates an anonymous function that returns the value of the expression::" +"write small functions is to use the :keyword:`lambda` expression. " +"``lambda`` takes a number of parameters and an expression combining these " +"parameters, and creates an anonymous function that returns the value of the " +"expression::" msgstr "" #: ../Doc/howto/functional.rst:1119 diff --git a/library/aifc.po b/library/aifc.po index 6e627510..fcf8325a 100644 --- a/library/aifc.po +++ b/library/aifc.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-09-12 13:37+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -64,7 +64,7 @@ msgid "" "be seekable, unless you know ahead of time how many samples you are going to " "write in total and use :meth:`writeframesraw` and :meth:`setnframes`. The :" "func:`.open` function may be used in a :keyword:`with` statement. When the :" -"keyword:`with` block completes, the :meth:`~aifc.close` method is called." +"keyword:`!with` block completes, the :meth:`~aifc.close` method is called." msgstr "" #: ../Doc/library/aifc.rst:50 diff --git a/library/asyncio-eventloop.po b/library/asyncio-eventloop.po index a179321f..ee0315d4 100644 --- a/library/asyncio-eventloop.po +++ b/library/asyncio-eventloop.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-11-29 18:24+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -229,8 +229,8 @@ msgid "" msgstr "" #: ../Doc/library/asyncio-eventloop.rst:160 -#: ../Doc/library/asyncio-eventloop.rst:993 -#: ../Doc/library/asyncio-eventloop.rst:1355 +#: ../Doc/library/asyncio-eventloop.rst:1001 +#: ../Doc/library/asyncio-eventloop.rst:1363 msgid "Example::" msgstr "Exemple ::" @@ -692,7 +692,7 @@ msgstr "" #: ../Doc/library/asyncio-eventloop.rst:508 #: ../Doc/library/asyncio-eventloop.rst:628 -#: ../Doc/library/asyncio-eventloop.rst:976 +#: ../Doc/library/asyncio-eventloop.rst:984 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilité ` : Unix." @@ -972,11 +972,10 @@ msgid "" msgstr "" #: ../Doc/library/asyncio-eventloop.rst:752 -#: ../Doc/library/asyncio-eventloop.rst:966 -#: ../Doc/library/asyncio-eventloop.rst:1036 +#: ../Doc/library/asyncio-eventloop.rst:971 msgid "" "Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *func*." +"keywords>` to *callback*." msgstr "" #: ../Doc/library/asyncio-eventloop.rst:757 @@ -1225,43 +1224,62 @@ msgstr "" #: ../Doc/library/asyncio-eventloop.rst:963 msgid "" +"The callback will be invoked by *loop*, along with other queued callbacks " +"and runnable coroutines of that event loop. Unlike signal handlers " +"registered using :func:`signal.signal`, a callback registered with this " +"function is allowed to interact with the event loop." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:968 +msgid "" "Raise :exc:`ValueError` if the signal number is invalid or uncatchable. " "Raise :exc:`RuntimeError` if there is a problem setting up the handler." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:971 +#: ../Doc/library/asyncio-eventloop.rst:974 +msgid "" +"Like :func:`signal.signal`, this function must be invoked in the main thread." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:979 msgid "Remove the handler for the *sig* signal." msgstr "Supprime le gestionnaire du signal *sig*." -#: ../Doc/library/asyncio-eventloop.rst:973 +#: ../Doc/library/asyncio-eventloop.rst:981 msgid "" "Return ``True`` if the signal handler was removed, or ``False`` if no " "handler was set for the given signal." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:980 +#: ../Doc/library/asyncio-eventloop.rst:988 msgid "The :mod:`signal` module." msgstr "Le module :mod:`signal`." -#: ../Doc/library/asyncio-eventloop.rst:984 +#: ../Doc/library/asyncio-eventloop.rst:992 msgid "Executing code in thread or process pools" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:988 +#: ../Doc/library/asyncio-eventloop.rst:996 msgid "Arrange for *func* to be called in the specified executor." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:990 +#: ../Doc/library/asyncio-eventloop.rst:998 msgid "" "The *executor* argument should be an :class:`concurrent.futures.Executor` " "instance. The default executor is used if *executor* is ``None``." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1034 +#: ../Doc/library/asyncio-eventloop.rst:1042 msgid "This method returns a :class:`asyncio.Future` object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1039 +#: ../Doc/library/asyncio-eventloop.rst:1044 +msgid "" +"Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *func*." +msgstr "" + +#: ../Doc/library/asyncio-eventloop.rst:1047 msgid "" ":meth:`loop.run_in_executor` no longer configures the ``max_workers`` of the " "thread pool executor it creates, instead leaving it up to the thread pool " @@ -1269,38 +1287,38 @@ msgid "" "default." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1048 +#: ../Doc/library/asyncio-eventloop.rst:1056 msgid "" "Set *executor* as the default executor used by :meth:`run_in_executor`. " "*executor* should be an instance of :class:`~concurrent.futures." "ThreadPoolExecutor`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1052 +#: ../Doc/library/asyncio-eventloop.rst:1060 msgid "" "Using an executor that is not an instance of :class:`~concurrent.futures." "ThreadPoolExecutor` is deprecated and will trigger an error in Python 3.9." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1057 +#: ../Doc/library/asyncio-eventloop.rst:1065 msgid "" "*executor* must be an instance of :class:`concurrent.futures." "ThreadPoolExecutor`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1062 +#: ../Doc/library/asyncio-eventloop.rst:1070 msgid "Error Handling API" msgstr "API de gestion d'erreur" -#: ../Doc/library/asyncio-eventloop.rst:1064 +#: ../Doc/library/asyncio-eventloop.rst:1072 msgid "Allows customizing how exceptions are handled in the event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1068 +#: ../Doc/library/asyncio-eventloop.rst:1076 msgid "Set *handler* as the new event loop exception handler." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1070 +#: ../Doc/library/asyncio-eventloop.rst:1078 msgid "" "If *handler* is ``None``, the default exception handler will be set. " "Otherwise, *handler* must be a callable with the signature matching ``(loop, " @@ -1309,147 +1327,147 @@ msgid "" "(see :meth:`call_exception_handler` documentation for details about context)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1080 +#: ../Doc/library/asyncio-eventloop.rst:1088 msgid "" "Return the current exception handler, or ``None`` if no custom exception " "handler was set." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1087 +#: ../Doc/library/asyncio-eventloop.rst:1095 msgid "Default exception handler." msgstr "Gestionnaire d'exception par défaut." -#: ../Doc/library/asyncio-eventloop.rst:1089 +#: ../Doc/library/asyncio-eventloop.rst:1097 msgid "" "This is called when an exception occurs and no exception handler is set. " "This can be called by a custom exception handler that wants to defer to the " "default handler behavior." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1093 +#: ../Doc/library/asyncio-eventloop.rst:1101 msgid "" "*context* parameter has the same meaning as in :meth:" "`call_exception_handler`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1098 +#: ../Doc/library/asyncio-eventloop.rst:1106 msgid "Call the current event loop exception handler." msgstr "" "Appelle le gestionnaire d'exception de la boucle d'évènements actuelle." -#: ../Doc/library/asyncio-eventloop.rst:1100 +#: ../Doc/library/asyncio-eventloop.rst:1108 msgid "" "*context* is a ``dict`` object containing the following keys (new keys may " "be introduced in future Python versions):" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1103 +#: ../Doc/library/asyncio-eventloop.rst:1111 msgid "'message': Error message;" msgstr "``message`` : Message d'erreur ;" -#: ../Doc/library/asyncio-eventloop.rst:1104 +#: ../Doc/library/asyncio-eventloop.rst:1112 msgid "'exception' (optional): Exception object;" msgstr "``exception`` (optionnel): Un objet exception ;" -#: ../Doc/library/asyncio-eventloop.rst:1105 +#: ../Doc/library/asyncio-eventloop.rst:1113 msgid "'future' (optional): :class:`asyncio.Future` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1106 +#: ../Doc/library/asyncio-eventloop.rst:1114 msgid "'handle' (optional): :class:`asyncio.Handle` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1107 +#: ../Doc/library/asyncio-eventloop.rst:1115 msgid "'protocol' (optional): :ref:`Protocol ` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1108 +#: ../Doc/library/asyncio-eventloop.rst:1116 msgid "'transport' (optional): :ref:`Transport ` instance;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1109 +#: ../Doc/library/asyncio-eventloop.rst:1117 msgid "'socket' (optional): :class:`socket.socket` instance." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1113 +#: ../Doc/library/asyncio-eventloop.rst:1121 msgid "" "This method should not be overloaded in subclassed event loops. For custom " "exception handling, use the :meth:`set_exception_handler()` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1118 +#: ../Doc/library/asyncio-eventloop.rst:1126 msgid "Enabling debug mode" msgstr "Active le mode débogage" -#: ../Doc/library/asyncio-eventloop.rst:1122 +#: ../Doc/library/asyncio-eventloop.rst:1130 msgid "Get the debug mode (:class:`bool`) of the event loop." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1124 +#: ../Doc/library/asyncio-eventloop.rst:1132 msgid "" "The default value is ``True`` if the environment variable :envvar:" "`PYTHONASYNCIODEBUG` is set to a non-empty string, ``False`` otherwise." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1130 +#: ../Doc/library/asyncio-eventloop.rst:1138 msgid "Set the debug mode of the event loop." msgstr "Active le mode débogage pour la boucle d'évènements." -#: ../Doc/library/asyncio-eventloop.rst:1134 +#: ../Doc/library/asyncio-eventloop.rst:1142 msgid "" "The new ``-X dev`` command line option can now also be used to enable the " "debug mode." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1139 +#: ../Doc/library/asyncio-eventloop.rst:1147 msgid "The :ref:`debug mode of asyncio `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1143 +#: ../Doc/library/asyncio-eventloop.rst:1151 msgid "Running Subprocesses" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1145 +#: ../Doc/library/asyncio-eventloop.rst:1153 msgid "" "Methods described in this subsections are low-level. In regular async/await " "code consider using the high-level :func:`asyncio.create_subprocess_shell` " "and :func:`asyncio.create_subprocess_exec` convenience functions instead." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1152 +#: ../Doc/library/asyncio-eventloop.rst:1160 msgid "" "The default asyncio event loop on **Windows** does not support subprocesses. " "See :ref:`Subprocess Support on Windows ` for " "details." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1160 +#: ../Doc/library/asyncio-eventloop.rst:1168 msgid "" "Create a subprocess from one or more string arguments specified by *args*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1163 +#: ../Doc/library/asyncio-eventloop.rst:1171 msgid "*args* must be a list of strings represented by:" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1165 +#: ../Doc/library/asyncio-eventloop.rst:1173 msgid ":class:`str`;" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1166 +#: ../Doc/library/asyncio-eventloop.rst:1174 msgid "" "or :class:`bytes`, encoded to the :ref:`filesystem encoding `." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1169 +#: ../Doc/library/asyncio-eventloop.rst:1177 msgid "" "The first string specifies the program executable, and the remaining strings " "specify the arguments. Together, string arguments form the ``argv`` of the " "program." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1173 +#: ../Doc/library/asyncio-eventloop.rst:1181 msgid "" "This is similar to the standard library :class:`subprocess.Popen` class " "called with ``shell=False`` and the list of strings passed as the first " @@ -1457,17 +1475,17 @@ msgid "" "which is list of strings, *subprocess_exec* takes multiple string arguments." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1179 +#: ../Doc/library/asyncio-eventloop.rst:1187 msgid "" "The *protocol_factory* must be a callable returning a subclass of the :class:" "`asyncio.SubprocessProtocol` class." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1182 +#: ../Doc/library/asyncio-eventloop.rst:1190 msgid "Other parameters:" msgstr "Autres paramètres :" -#: ../Doc/library/asyncio-eventloop.rst:1184 +#: ../Doc/library/asyncio-eventloop.rst:1192 msgid "" "*stdin*: either a file-like object representing a pipe to be connected to " "the subprocess's standard input stream using :meth:`~loop." @@ -1475,7 +1493,7 @@ msgid "" "default a new pipe will be created and connected." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1190 +#: ../Doc/library/asyncio-eventloop.rst:1198 msgid "" "*stdout*: either a file-like object representing the pipe to be connected to " "the subprocess's standard output stream using :meth:`~loop." @@ -1483,7 +1501,7 @@ msgid "" "default a new pipe will be created and connected." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1196 +#: ../Doc/library/asyncio-eventloop.rst:1204 msgid "" "*stderr*: either a file-like object representing the pipe to be connected to " "the subprocess's standard error stream using :meth:`~loop." @@ -1491,66 +1509,66 @@ msgid "" "`subprocess.STDOUT` constants." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1202 +#: ../Doc/library/asyncio-eventloop.rst:1210 msgid "" "By default a new pipe will be created and connected. When :const:`subprocess." "STDOUT` is specified, the subprocess' standard error stream will be " "connected to the same pipe as the standard output stream." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1207 +#: ../Doc/library/asyncio-eventloop.rst:1215 msgid "" "All other keyword arguments are passed to :class:`subprocess.Popen` without " "interpretation, except for *bufsize*, *universal_newlines* and *shell*, " "which should not be specified at all." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1211 +#: ../Doc/library/asyncio-eventloop.rst:1219 msgid "" "See the constructor of the :class:`subprocess.Popen` class for documentation " "on other arguments." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1214 +#: ../Doc/library/asyncio-eventloop.rst:1222 msgid "" "Returns a pair of ``(transport, protocol)``, where *transport* conforms to " "the :class:`asyncio.SubprocessTransport` base class and *protocol* is an " "object instantiated by the *protocol_factory*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1222 +#: ../Doc/library/asyncio-eventloop.rst:1230 msgid "" "Create a subprocess from *cmd*, which can be a :class:`str` or a :class:" "`bytes` string encoded to the :ref:`filesystem encoding `, using the platform's \"shell\" syntax." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1227 +#: ../Doc/library/asyncio-eventloop.rst:1235 msgid "" "This is similar to the standard library :class:`subprocess.Popen` class " "called with ``shell=True``." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1230 +#: ../Doc/library/asyncio-eventloop.rst:1238 msgid "" "The *protocol_factory* must be a callable returning a subclass of the :class:" "`SubprocessProtocol` class." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1233 +#: ../Doc/library/asyncio-eventloop.rst:1241 msgid "" "See :meth:`~loop.subprocess_exec` for more details about the remaining " "arguments." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1236 +#: ../Doc/library/asyncio-eventloop.rst:1244 msgid "" "Returns a pair of ``(transport, protocol)``, where *transport* conforms to " "the :class:`SubprocessTransport` base class and *protocol* is an object " "instantiated by the *protocol_factory*." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1241 +#: ../Doc/library/asyncio-eventloop.rst:1249 msgid "" "It is the application's responsibility to ensure that all whitespace and " "special characters are quoted appropriately to avoid `shell injection " @@ -1560,105 +1578,105 @@ msgid "" "used to construct shell commands." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1250 +#: ../Doc/library/asyncio-eventloop.rst:1258 msgid "Callback Handles" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1254 +#: ../Doc/library/asyncio-eventloop.rst:1262 msgid "" "A callback wrapper object returned by :meth:`loop.call_soon`, :meth:`loop." "call_soon_threadsafe`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1259 +#: ../Doc/library/asyncio-eventloop.rst:1267 msgid "" "Cancel the callback. If the callback has already been canceled or executed, " "this method has no effect." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1264 +#: ../Doc/library/asyncio-eventloop.rst:1272 msgid "Return ``True`` if the callback was cancelled." msgstr "Renvoie ``True`` si la fonction de rappel à été annulé." -#: ../Doc/library/asyncio-eventloop.rst:1270 +#: ../Doc/library/asyncio-eventloop.rst:1278 msgid "" "A callback wrapper object returned by :meth:`loop.call_later`, and :meth:" "`loop.call_at`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1273 +#: ../Doc/library/asyncio-eventloop.rst:1281 msgid "This class is a subclass of :class:`Handle`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1277 +#: ../Doc/library/asyncio-eventloop.rst:1285 msgid "Return a scheduled callback time as :class:`float` seconds." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1279 +#: ../Doc/library/asyncio-eventloop.rst:1287 msgid "" "The time is an absolute timestamp, using the same time reference as :meth:" "`loop.time`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1286 +#: ../Doc/library/asyncio-eventloop.rst:1294 msgid "Server Objects" msgstr "Objets Serveur" -#: ../Doc/library/asyncio-eventloop.rst:1288 +#: ../Doc/library/asyncio-eventloop.rst:1296 msgid "" "Server objects are created by :meth:`loop.create_server`, :meth:`loop." "create_unix_server`, :func:`start_server`, and :func:`start_unix_server` " "functions." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1292 +#: ../Doc/library/asyncio-eventloop.rst:1300 msgid "Do not instantiate the class directly." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1296 +#: ../Doc/library/asyncio-eventloop.rst:1304 msgid "" "*Server* objects are asynchronous context managers. When used in an ``async " "with`` statement, it's guaranteed that the Server object is closed and not " "accepting new connections when the ``async with`` statement is completed::" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1309 +#: ../Doc/library/asyncio-eventloop.rst:1317 msgid "Server object is an asynchronous context manager since Python 3.7." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1314 +#: ../Doc/library/asyncio-eventloop.rst:1322 msgid "" "Stop serving: close listening sockets and set the :attr:`sockets` attribute " "to ``None``." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1317 +#: ../Doc/library/asyncio-eventloop.rst:1325 msgid "" "The sockets that represent existing incoming client connections are left " "open." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1320 +#: ../Doc/library/asyncio-eventloop.rst:1328 msgid "" "The server is closed asynchronously, use the :meth:`wait_closed` coroutine " "to wait until the server is closed." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1325 +#: ../Doc/library/asyncio-eventloop.rst:1333 msgid "Return the event loop associated with the server object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1331 +#: ../Doc/library/asyncio-eventloop.rst:1339 msgid "Start accepting connections." msgstr "Commence à accepter les connexions." -#: ../Doc/library/asyncio-eventloop.rst:1333 +#: ../Doc/library/asyncio-eventloop.rst:1341 msgid "" "This method is idempotent, so it can be called when the server is already " "being serving." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1336 +#: ../Doc/library/asyncio-eventloop.rst:1344 msgid "" "The *start_serving* keyword-only parameter to :meth:`loop.create_server` " "and :meth:`asyncio.start_server` allows creating a Server object that is not " @@ -1667,103 +1685,103 @@ msgid "" "accepting connections." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1347 +#: ../Doc/library/asyncio-eventloop.rst:1355 msgid "" "Start accepting connections until the coroutine is cancelled. Cancellation " "of ``serve_forever`` task causes the server to be closed." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1351 +#: ../Doc/library/asyncio-eventloop.rst:1359 msgid "" "This method can be called if the server is already accepting connections. " "Only one ``serve_forever`` task can exist per one *Server* object." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1373 +#: ../Doc/library/asyncio-eventloop.rst:1381 msgid "Return ``True`` if the server is accepting new connections." msgstr "Donne ``True`` si le serveur accepte de nouvelles connexions." -#: ../Doc/library/asyncio-eventloop.rst:1379 +#: ../Doc/library/asyncio-eventloop.rst:1387 msgid "Wait until the :meth:`close` method completes." msgstr "Attends que la méthode :meth:`close` se termine." -#: ../Doc/library/asyncio-eventloop.rst:1383 +#: ../Doc/library/asyncio-eventloop.rst:1391 msgid "" "List of :class:`socket.socket` objects the server is listening on, or " "``None`` if the server is closed." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1386 +#: ../Doc/library/asyncio-eventloop.rst:1394 msgid "" "Prior to Python 3.7 ``Server.sockets`` used to return an internal list of " "server sockets directly. In 3.7 a copy of that list is returned." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1395 +#: ../Doc/library/asyncio-eventloop.rst:1403 msgid "Event Loop Implementations" msgstr "Implémentations de boucle d'évènements" -#: ../Doc/library/asyncio-eventloop.rst:1397 +#: ../Doc/library/asyncio-eventloop.rst:1405 msgid "" "asyncio ships with two different event loop implementations: :class:" "`SelectorEventLoop` and :class:`ProactorEventLoop`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1400 +#: ../Doc/library/asyncio-eventloop.rst:1408 msgid "" "By default asyncio is configured to use :class:`SelectorEventLoop` on all " "platforms." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1406 +#: ../Doc/library/asyncio-eventloop.rst:1414 msgid "An event loop based on the :mod:`selectors` module." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1408 +#: ../Doc/library/asyncio-eventloop.rst:1416 msgid "" "Uses the most efficient *selector* available for the given platform. It is " "also possible to manually configure the exact selector implementation to be " "used::" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1420 +#: ../Doc/library/asyncio-eventloop.rst:1428 msgid ":ref:`Availability `: Unix, Windows." msgstr ":ref:`Disponibilité ` : Unix, Windows." -#: ../Doc/library/asyncio-eventloop.rst:1425 +#: ../Doc/library/asyncio-eventloop.rst:1433 msgid "An event loop for Windows that uses \"I/O Completion Ports\" (IOCP)." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1428 +#: ../Doc/library/asyncio-eventloop.rst:1436 msgid ":ref:`Availability `: Windows." msgstr ":ref:`Disponibilité ` : Windows." -#: ../Doc/library/asyncio-eventloop.rst:1429 +#: ../Doc/library/asyncio-eventloop.rst:1437 msgid "An example how to use :class:`ProactorEventLoop` on Windows::" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1440 +#: ../Doc/library/asyncio-eventloop.rst:1448 msgid "" "`MSDN documentation on I/O Completion Ports `_." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1446 +#: ../Doc/library/asyncio-eventloop.rst:1454 msgid "Abstract base class for asyncio-compliant event loops." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1448 +#: ../Doc/library/asyncio-eventloop.rst:1456 msgid "" "The :ref:`Event Loop Methods ` section lists all methods " "that an alternative implementation of ``AbstractEventLoop`` should have " "defined." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1454 +#: ../Doc/library/asyncio-eventloop.rst:1462 msgid "Examples" msgstr "Exemples" -#: ../Doc/library/asyncio-eventloop.rst:1456 +#: ../Doc/library/asyncio-eventloop.rst:1464 msgid "" "Note that all examples in this section **purposefully** show how to use the " "low-level event loop APIs, such as :meth:`loop.run_forever` and :meth:`loop." @@ -1771,70 +1789,70 @@ msgid "" "consider using the high-level functions like :func:`asyncio.run`." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1466 +#: ../Doc/library/asyncio-eventloop.rst:1474 msgid "Hello World with call_soon()" msgstr "\"Hello World\" avec ``call_soon()``" -#: ../Doc/library/asyncio-eventloop.rst:1468 +#: ../Doc/library/asyncio-eventloop.rst:1476 msgid "" "An example using the :meth:`loop.call_soon` method to schedule a callback. " "The callback displays ``\"Hello World\"`` and then stops the event loop::" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1492 +#: ../Doc/library/asyncio-eventloop.rst:1500 msgid "" "A similar :ref:`Hello World ` example created with a coroutine " "and the :func:`run` function." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1499 +#: ../Doc/library/asyncio-eventloop.rst:1507 msgid "Display the current date with call_later()" msgstr "Afficher la date actuelle avec ``call_later()``" -#: ../Doc/library/asyncio-eventloop.rst:1501 +#: ../Doc/library/asyncio-eventloop.rst:1509 msgid "" "An example of a callback displaying the current date every second. The " "callback uses the :meth:`loop.call_later` method to reschedule itself after " "5 seconds, and then stops the event loop::" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1529 +#: ../Doc/library/asyncio-eventloop.rst:1537 msgid "" "A similar :ref:`current date ` example created with a " "coroutine and the :func:`run` function." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1536 +#: ../Doc/library/asyncio-eventloop.rst:1544 msgid "Watch a file descriptor for read events" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1538 +#: ../Doc/library/asyncio-eventloop.rst:1546 msgid "" "Wait until a file descriptor received some data using the :meth:`loop." "add_reader` method and then close the event loop::" msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1576 +#: ../Doc/library/asyncio-eventloop.rst:1584 msgid "" "A similar :ref:`example ` using " "transports, protocols, and the :meth:`loop.create_connection` method." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1580 +#: ../Doc/library/asyncio-eventloop.rst:1588 msgid "" "Another similar :ref:`example ` " "using the high-level :func:`asyncio.open_connection` function and streams." msgstr "" -#: ../Doc/library/asyncio-eventloop.rst:1588 +#: ../Doc/library/asyncio-eventloop.rst:1596 msgid "Set signal handlers for SIGINT and SIGTERM" msgstr "Définit les gestionnaires de signaux pour *SIGINT* et *SIGTERM*" -#: ../Doc/library/asyncio-eventloop.rst:1590 +#: ../Doc/library/asyncio-eventloop.rst:1598 msgid "(This ``signals`` example only works on Unix.)" msgstr "(Cet exemple ne fonctionne que sur Unix.)" -#: ../Doc/library/asyncio-eventloop.rst:1592 +#: ../Doc/library/asyncio-eventloop.rst:1600 msgid "" "Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using " "the :meth:`loop.add_signal_handler` method::" diff --git a/library/compileall.po b/library/compileall.po index 3b842225..3f94d594 100644 --- a/library/compileall.po +++ b/library/compileall.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -110,55 +110,57 @@ msgstr "" #: ../Doc/library/compileall.rst:88 msgid "" -"Control how the generated pycs will be invalidated at runtime. The default " -"setting, ``timestamp``, means that ``.pyc`` files with the source timestamp " -"and size embedded will be generated. The ``checked-hash`` and ``unchecked-" -"hash`` values cause hash-based pycs to be generated. Hash-based pycs embed a " -"hash of the source file contents rather than a timestamp. See :ref:`pyc-" +"Control how the generated byte-code files are invalidated at runtime. The " +"``timestamp`` value, means that ``.pyc`` files with the source timestamp and " +"size embedded will be generated. The ``checked-hash`` and ``unchecked-hash`` " +"values cause hash-based pycs to be generated. Hash-based pycs embed a hash " +"of the source file contents rather than a timestamp. See :ref:`pyc-" "invalidation` for more information on how Python validates bytecode cache " -"files at runtime." -msgstr "" - -#: ../Doc/library/compileall.rst:96 -msgid "Added the ``-i``, ``-b`` and ``-h`` options." +"files at runtime. The default is ``timestamp`` if the :envvar:" +"`SOURCE_DATE_EPOCH` environment variable is not set, and ``checked-hash`` if " +"the ``SOURCE_DATE_EPOCH`` environment variable is set." msgstr "" #: ../Doc/library/compileall.rst:99 +msgid "Added the ``-i``, ``-b`` and ``-h`` options." +msgstr "" + +#: ../Doc/library/compileall.rst:102 msgid "" "Added the ``-j``, ``-r``, and ``-qq`` options. ``-q`` option was changed " "to a multilevel value. ``-b`` will always produce a byte-code file ending " "in ``.pyc``, never ``.pyo``." msgstr "" -#: ../Doc/library/compileall.rst:104 +#: ../Doc/library/compileall.rst:107 msgid "Added the ``--invalidation-mode`` parameter." msgstr "" -#: ../Doc/library/compileall.rst:108 +#: ../Doc/library/compileall.rst:111 msgid "" "There is no command-line option to control the optimization level used by " "the :func:`compile` function, because the Python interpreter itself already " "provides the option: :program:`python -O -m compileall`." msgstr "" -#: ../Doc/library/compileall.rst:113 +#: ../Doc/library/compileall.rst:116 msgid "Public functions" msgstr "" -#: ../Doc/library/compileall.rst:117 +#: ../Doc/library/compileall.rst:120 msgid "" "Recursively descend the directory tree named by *dir*, compiling all :file:`." "py` files along the way. Return a true value if all the files compiled " "successfully, and a false value otherwise." msgstr "" -#: ../Doc/library/compileall.rst:121 +#: ../Doc/library/compileall.rst:124 msgid "" "The *maxlevels* parameter is used to limit the depth of the recursion; it " "defaults to ``10``." msgstr "" -#: ../Doc/library/compileall.rst:124 +#: ../Doc/library/compileall.rst:127 msgid "" "If *ddir* is given, it is prepended to the path to each file being compiled " "for use in compilation time tracebacks, and is also compiled in to the byte-" @@ -167,27 +169,27 @@ msgid "" "executed." msgstr "" -#: ../Doc/library/compileall.rst:130 +#: ../Doc/library/compileall.rst:133 msgid "" "If *force* is true, modules are re-compiled even if the timestamps are up to " "date." msgstr "" -#: ../Doc/library/compileall.rst:133 +#: ../Doc/library/compileall.rst:136 msgid "" "If *rx* is given, its search method is called on the complete path to each " "file considered for compilation, and if it returns a true value, the file is " "skipped." msgstr "" -#: ../Doc/library/compileall.rst:137 ../Doc/library/compileall.rst:194 +#: ../Doc/library/compileall.rst:140 ../Doc/library/compileall.rst:197 msgid "" "If *quiet* is ``False`` or ``0`` (the default), the filenames and other " "information are printed to standard out. Set to ``1``, only errors are " "printed. Set to ``2``, all output is suppressed." msgstr "" -#: ../Doc/library/compileall.rst:141 ../Doc/library/compileall.rst:198 +#: ../Doc/library/compileall.rst:144 ../Doc/library/compileall.rst:201 msgid "" "If *legacy* is true, byte-code files are written to their legacy locations " "and names, which may overwrite byte-code files created by another version of " @@ -196,13 +198,13 @@ msgid "" "coexist." msgstr "" -#: ../Doc/library/compileall.rst:147 ../Doc/library/compileall.rst:204 +#: ../Doc/library/compileall.rst:150 ../Doc/library/compileall.rst:207 msgid "" "*optimize* specifies the optimization level for the compiler. It is passed " "to the built-in :func:`compile` function." msgstr "" -#: ../Doc/library/compileall.rst:150 +#: ../Doc/library/compileall.rst:153 msgid "" "The argument *workers* specifies how many workers are used to compile files " "in parallel. The default is to not use multiple workers. If the platform " @@ -211,49 +213,49 @@ msgid "" "a :exc:`ValueError` will be raised." msgstr "" -#: ../Doc/library/compileall.rst:156 ../Doc/library/compileall.rst:207 +#: ../Doc/library/compileall.rst:159 ../Doc/library/compileall.rst:210 msgid "" "*invalidation_mode* should be a member of the :class:`py_compile." "PycInvalidationMode` enum and controls how the generated pycs are " "invalidated at runtime." msgstr "" -#: ../Doc/library/compileall.rst:160 ../Doc/library/compileall.rst:233 +#: ../Doc/library/compileall.rst:163 ../Doc/library/compileall.rst:236 msgid "Added the *legacy* and *optimize* parameter." msgstr "" -#: ../Doc/library/compileall.rst:163 +#: ../Doc/library/compileall.rst:166 msgid "Added the *workers* parameter." msgstr "" -#: ../Doc/library/compileall.rst:166 ../Doc/library/compileall.rst:213 -#: ../Doc/library/compileall.rst:236 -msgid "*quiet* parameter was changed to a multilevel value." -msgstr "" - #: ../Doc/library/compileall.rst:169 ../Doc/library/compileall.rst:216 #: ../Doc/library/compileall.rst:239 +msgid "*quiet* parameter was changed to a multilevel value." +msgstr "" + +#: ../Doc/library/compileall.rst:172 ../Doc/library/compileall.rst:219 +#: ../Doc/library/compileall.rst:242 msgid "" "The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no " "matter what the value of *optimize* is." msgstr "" -#: ../Doc/library/compileall.rst:173 +#: ../Doc/library/compileall.rst:176 msgid "Accepts a :term:`path-like object`." msgstr "Accepte un :term:`path-like object`." -#: ../Doc/library/compileall.rst:176 ../Doc/library/compileall.rst:220 -#: ../Doc/library/compileall.rst:243 +#: ../Doc/library/compileall.rst:179 ../Doc/library/compileall.rst:223 +#: ../Doc/library/compileall.rst:246 msgid "The *invalidation_mode* parameter was added." msgstr "" -#: ../Doc/library/compileall.rst:181 +#: ../Doc/library/compileall.rst:184 msgid "" "Compile the file with path *fullname*. Return a true value if the file " "compiled successfully, and a false value otherwise." msgstr "" -#: ../Doc/library/compileall.rst:184 +#: ../Doc/library/compileall.rst:187 msgid "" "If *ddir* is given, it is prepended to the path to the file being compiled " "for use in compilation time tracebacks, and is also compiled in to the byte-" @@ -262,21 +264,21 @@ msgid "" "executed." msgstr "" -#: ../Doc/library/compileall.rst:190 +#: ../Doc/library/compileall.rst:193 msgid "" "If *rx* is given, its search method is passed the full path name to the file " "being compiled, and if it returns a true value, the file is not compiled and " "``True`` is returned." msgstr "" -#: ../Doc/library/compileall.rst:225 +#: ../Doc/library/compileall.rst:228 msgid "" "Byte-compile all the :file:`.py` files found along ``sys.path``. Return a " "true value if all the files compiled successfully, and a false value " "otherwise." msgstr "" -#: ../Doc/library/compileall.rst:228 +#: ../Doc/library/compileall.rst:231 msgid "" "If *skip_curdir* is true (the default), the current directory is not " "included in the search. All other parameters are passed to the :func:" @@ -284,16 +286,16 @@ msgid "" "``maxlevels`` defaults to ``0``." msgstr "" -#: ../Doc/library/compileall.rst:246 +#: ../Doc/library/compileall.rst:249 msgid "" "To force a recompile of all the :file:`.py` files in the :file:`Lib/` " "subdirectory and all its subdirectories::" msgstr "" -#: ../Doc/library/compileall.rst:263 +#: ../Doc/library/compileall.rst:266 msgid "Module :mod:`py_compile`" msgstr "" -#: ../Doc/library/compileall.rst:264 +#: ../Doc/library/compileall.rst:267 msgid "Byte-compile a single source file." msgstr "" diff --git a/library/concurrent.futures.po b/library/concurrent.futures.po index df363d18..ce1089c2 100644 --- a/library/concurrent.futures.po +++ b/library/concurrent.futures.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -156,7 +156,7 @@ msgid "" "worker thread; *initargs* is a tuple of arguments passed to the " "initializer. Should *initializer* raise an exception, all currently pending " "jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`, as " -"well any attempt to submit more jobs to the pool." +"well as any attempt to submit more jobs to the pool." msgstr "" #: ../Doc/library/concurrent.futures.rst:146 @@ -170,9 +170,9 @@ msgstr "" #: ../Doc/library/concurrent.futures.rst:154 msgid "" -"The *thread_name_prefix* argument was added to allow users to control the " -"threading.Thread names for worker threads created by the pool for easier " -"debugging." +"The *thread_name_prefix* argument was added to allow users to control the :" +"class:`threading.Thread` names for worker threads created by the pool for " +"easier debugging." msgstr "" #: ../Doc/library/concurrent.futures.rst:159 diff --git a/library/contextlib.po b/library/contextlib.po index 75b82c16..13d2a9d0 100644 --- a/library/contextlib.po +++ b/library/contextlib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-04 11:33+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -16,7 +16,7 @@ msgstr "" #: ../Doc/library/contextlib.rst:2 msgid "" -":mod:`contextlib` --- Utilities for :keyword:`with`\\ -statement contexts" +":mod:`!contextlib` --- Utilities for :keyword:`!with`\\ -statement contexts" msgstr "" #: ../Doc/library/contextlib.rst:7 @@ -81,7 +81,7 @@ msgstr "" msgid "" "The function being decorated must return a :term:`generator`-iterator when " "called. This iterator must yield exactly one value, which will be bound to " -"the targets in the :keyword:`with` statement's :keyword:`as` clause, if any." +"the targets in the :keyword:`with` statement's :keyword:`!as` clause, if any." msgstr "" #: ../Doc/library/contextlib.rst:77 @@ -95,9 +95,9 @@ msgid "" "place. If an exception is trapped merely in order to log it or to perform " "some action (rather than to suppress it entirely), the generator must " "reraise that exception. Otherwise the generator context manager will " -"indicate to the :keyword:`with` statement that the exception has been " +"indicate to the :keyword:`!with` statement that the exception has been " "handled, and execution will resume with the statement immediately following " -"the :keyword:`with` statement." +"the :keyword:`!with` statement." msgstr "" #: ../Doc/library/contextlib.rst:89 @@ -280,7 +280,7 @@ msgid "" "As the decorated function must be able to be called multiple times, the " "underlying context manager must support use in multiple :keyword:`with` " "statements. If this is not the case, then the original construct with the " -"explicit :keyword:`with` statement inside the function should be used." +"explicit :keyword:`!with` statement inside the function should be used." msgstr "" #: ../Doc/library/contextlib.rst:356 @@ -660,7 +660,7 @@ msgstr "" msgid "" "More sophisticated context managers may be \"reentrant\". These context " "managers can not only be used in multiple :keyword:`with` statements, but " -"may also be used *inside* a :keyword:`with` statement that is already using " +"may also be used *inside* a :keyword:`!with` statement that is already using " "the same context manager." msgstr "" diff --git a/library/crypt.po b/library/crypt.po index 5d0f9034..c1270294 100644 --- a/library/crypt.po +++ b/library/crypt.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -104,7 +104,7 @@ msgid "" "from :func:`mksalt`, one of the ``crypt.METHOD_*`` values (though not all " "may be available on all platforms), or a full encrypted password including " "salt, as returned by this function. If *salt* is not provided, the " -"strongest method will be used (as returned by :func:`methods`." +"strongest method will be used (as returned by :func:`methods`)." msgstr "" #: ../Doc/library/crypt.rst:96 diff --git a/library/email.compat32-message.po b/library/email.compat32-message.po index 9ee1e382..a0cbe1ec 100644 --- a/library/email.compat32-message.po +++ b/library/email.compat32-message.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -176,7 +176,7 @@ msgid "" "Return ``True`` if the message's payload is a list of sub-\\ :class:" "`Message` objects, otherwise return ``False``. When :meth:`is_multipart` " "returns ``False``, the payload should be a string object (which might be a " -"CTE encoded binary payload. (Note that :meth:`is_multipart` returning " +"CTE encoded binary payload). (Note that :meth:`is_multipart` returning " "``True`` does not necessarily mean that \"msg.get_content_maintype() == " "'multipart'\" will return the ``True``. For example, ``is_multipart`` will " "return ``True`` when the :class:`Message` is of type ``message/rfc822``.)" diff --git a/library/email.message.po b/library/email.message.po index df15f81b..0cf5ea28 100644 --- a/library/email.message.po +++ b/library/email.message.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-05-27 19:40+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -129,7 +129,7 @@ msgstr "" #: ../Doc/library/email.message.rst:95 msgid "" -"Equivalent to `as_string(policy=self.policy.clone(utf8=True)`. Allows " +"Equivalent to ``as_string(policy=self.policy.clone(utf8=True))``. Allows " "``str(msg)`` to produce a string containing the serialized message in a " "readable format." msgstr "" @@ -445,7 +445,7 @@ msgstr "" msgid "" "Note that existing parameter values of headers may be accessed through the :" "attr:`~email.headerregistry.BaseHeader.params` attribute of the header value " -"(for example, ``msg['Content-Type'].params['charset']``." +"(for example, ``msg['Content-Type'].params['charset']``)." msgstr "" #: ../Doc/library/email.message.rst:384 @@ -735,7 +735,7 @@ msgid "" "specified, use the ``content_manager`` specified by the current :mod:`~email." "policy`. If the added part has no :mailheader:`Content-Disposition` header, " "add one with the value ``attachment``. This method can be used both for " -"explicit attachments (:mailheader:`Content-Disposition: attachment` and " +"explicit attachments (:mailheader:`Content-Disposition: attachment`) and " "``inline`` attachments (:mailheader:`Content-Disposition: inline`), by " "passing appropriate options to the ``content_manager``." msgstr "" diff --git a/library/email.parser.po b/library/email.parser.po index 181e4349..c089d31a 100644 --- a/library/email.parser.po +++ b/library/email.parser.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -213,7 +213,7 @@ msgid "" "The header block is terminated either by the end of the data or by a blank " "line. Following the header block is the body of the message (which may " "contain MIME-encoded subparts, including subparts with a :mailheader:" -"`Content-Transfer-Encoding` of ``8bit``." +"`Content-Transfer-Encoding` of ``8bit``)." msgstr "" #: ../Doc/library/email.parser.rst:169 diff --git a/library/email.util.po b/library/email.util.po deleted file mode 100644 index f32bd426..00000000 --- a/library/email.util.po +++ /dev/null @@ -1,245 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.7\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ../Doc/library/email.util.rst:2 -msgid ":mod:`email.utils`: Miscellaneous utilities" -msgstr "" - -#: ../Doc/library/email.util.rst:7 -msgid "**Source code:** :source:`Lib/email/utils.py`" -msgstr "" - -#: ../Doc/library/email.util.rst:11 -msgid "" -"There are a couple of useful utilities provided in the :mod:`email.utils` " -"module:" -msgstr "" - -#: ../Doc/library/email.util.rst:16 -msgid "" -"Return local time as an aware datetime object. If called without arguments, " -"return current time. Otherwise *dt* argument should be a :class:`~datetime." -"datetime` instance, and it is converted to the local time zone according to " -"the system time zone database. If *dt* is naive (that is, ``dt.tzinfo`` is " -"``None``), it is assumed to be in local time. In this case, a positive or " -"zero value for *isdst* causes ``localtime`` to presume initially that summer " -"time (for example, Daylight Saving Time) is or is not (respectively) in " -"effect for the specified time. A negative value for *isdst* causes the " -"``localtime`` to attempt to divine whether summer time is in effect for the " -"specified time." -msgstr "" - -#: ../Doc/library/email.util.rst:32 -msgid "" -"Returns a string suitable for an :rfc:`2822`\\ -compliant :mailheader:" -"`Message-ID` header. Optional *idstring* if given, is a string used to " -"strengthen the uniqueness of the message id. Optional *domain* if given " -"provides the portion of the msgid after the '@'. The default is the local " -"hostname. It is not normally necessary to override this default, but may be " -"useful certain cases, such as a constructing distributed system that uses a " -"consistent domain name across multiple hosts." -msgstr "" - -#: ../Doc/library/email.util.rst:40 -msgid "Added the *domain* keyword." -msgstr "" - -#: ../Doc/library/email.util.rst:44 -msgid "" -"The remaining functions are part of the legacy (``Compat32``) email API. " -"There is no need to directly use these with the new API, since the parsing " -"and formatting they provide is done automatically by the header parsing " -"machinery of the new API." -msgstr "" - -#: ../Doc/library/email.util.rst:52 -msgid "" -"Return a new string with backslashes in *str* replaced by two backslashes, " -"and double quotes replaced by backslash-double quote." -msgstr "" - -#: ../Doc/library/email.util.rst:58 -msgid "" -"Return a new string which is an *unquoted* version of *str*. If *str* ends " -"and begins with double quotes, they are stripped off. Likewise if *str* " -"ends and begins with angle brackets, they are stripped off." -msgstr "" - -#: ../Doc/library/email.util.rst:65 -msgid "" -"Parse address -- which should be the value of some address-containing field " -"such as :mailheader:`To` or :mailheader:`Cc` -- into its constituent " -"*realname* and *email address* parts. Returns a tuple of that information, " -"unless the parse fails, in which case a 2-tuple of ``('', '')`` is returned." -msgstr "" - -#: ../Doc/library/email.util.rst:73 -msgid "" -"The inverse of :meth:`parseaddr`, this takes a 2-tuple of the form " -"``(realname, email_address)`` and returns the string value suitable for a :" -"mailheader:`To` or :mailheader:`Cc` header. If the first element of *pair* " -"is false, then the second element is returned unmodified." -msgstr "" - -#: ../Doc/library/email.util.rst:78 -msgid "" -"Optional *charset* is the character set that will be used in the :rfc:`2047` " -"encoding of the ``realname`` if the ``realname`` contains non-ASCII " -"characters. Can be an instance of :class:`str` or a :class:`~email.charset." -"Charset`. Defaults to ``utf-8``." -msgstr "" - -#: ../Doc/library/email.util.rst:83 -msgid "Added the *charset* option." -msgstr "" - -#: ../Doc/library/email.util.rst:89 -msgid "" -"This method returns a list of 2-tuples of the form returned by " -"``parseaddr()``. *fieldvalues* is a sequence of header field values as might " -"be returned by :meth:`Message.get_all `. " -"Here's a simple example that gets all the recipients of a message::" -msgstr "" - -#: ../Doc/library/email.util.rst:105 -msgid "" -"Attempts to parse a date according to the rules in :rfc:`2822`. however, " -"some mailers don't follow that format as specified, so :func:`parsedate` " -"tries to guess correctly in such cases. *date* is a string containing an :" -"rfc:`2822` date, such as ``\"Mon, 20 Nov 1995 19:12:08 -0500\"``. If it " -"succeeds in parsing the date, :func:`parsedate` returns a 9-tuple that can " -"be passed directly to :func:`time.mktime`; otherwise ``None`` will be " -"returned. Note that indexes 6, 7, and 8 of the result tuple are not usable." -msgstr "" - -#: ../Doc/library/email.util.rst:116 -msgid "" -"Performs the same function as :func:`parsedate`, but returns either ``None`` " -"or a 10-tuple; the first 9 elements make up a tuple that can be passed " -"directly to :func:`time.mktime`, and the tenth is the offset of the date's " -"timezone from UTC (which is the official term for Greenwich Mean Time) " -"[#]_. If the input string has no timezone, the last element of the tuple " -"returned is ``None``. Note that indexes 6, 7, and 8 of the result tuple are " -"not usable." -msgstr "" - -#: ../Doc/library/email.util.rst:126 -msgid "" -"The inverse of :func:`format_datetime`. Performs the same function as :func:" -"`parsedate`, but on success returns a :mod:`~datetime.datetime`. If the " -"input date has a timezone of ``-0000``, the ``datetime`` will be a naive " -"``datetime``, and if the date is conforming to the RFCs it will represent a " -"time in UTC but with no indication of the actual source timezone of the " -"message the date comes from. If the input date has any other valid timezone " -"offset, the ``datetime`` will be an aware ``datetime`` with the " -"corresponding a :class:`~datetime.timezone` :class:`~datetime.tzinfo`." -msgstr "" - -#: ../Doc/library/email.util.rst:140 -msgid "" -"Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp " -"(seconds since the Epoch). If the timezone item in the tuple is ``None``, " -"assume local time." -msgstr "" - -#: ../Doc/library/email.util.rst:147 -msgid "Returns a date string as per :rfc:`2822`, e.g.::" -msgstr "" - -#: ../Doc/library/email.util.rst:151 -msgid "" -"Optional *timeval* if given is a floating point time value as accepted by :" -"func:`time.gmtime` and :func:`time.localtime`, otherwise the current time is " -"used." -msgstr "" - -#: ../Doc/library/email.util.rst:155 -msgid "" -"Optional *localtime* is a flag that when ``True``, interprets *timeval*, and " -"returns a date relative to the local timezone instead of UTC, properly " -"taking daylight savings time into account. The default is ``False`` meaning " -"UTC is used." -msgstr "" - -#: ../Doc/library/email.util.rst:160 -msgid "" -"Optional *usegmt* is a flag that when ``True``, outputs a date string with " -"the timezone as an ascii string ``GMT``, rather than a numeric ``-0000``. " -"This is needed for some protocols (such as HTTP). This only applies when " -"*localtime* is ``False``. The default is ``False``." -msgstr "" - -#: ../Doc/library/email.util.rst:168 -msgid "" -"Like ``formatdate``, but the input is a :mod:`datetime` instance. If it is " -"a naive datetime, it is assumed to be \"UTC with no information about the " -"source timezone\", and the conventional ``-0000`` is used for the timezone. " -"If it is an aware ``datetime``, then the numeric timezone offset is used. If " -"it is an aware timezone with offset zero, then *usegmt* may be set to " -"``True``, in which case the string ``GMT`` is used instead of the numeric " -"timezone offset. This provides a way to generate standards conformant HTTP " -"date headers." -msgstr "" - -#: ../Doc/library/email.util.rst:182 -msgid "Decode the string *s* according to :rfc:`2231`." -msgstr "" - -#: ../Doc/library/email.util.rst:187 -msgid "" -"Encode the string *s* according to :rfc:`2231`. Optional *charset* and " -"*language*, if given is the character set name and language name to use. If " -"neither is given, *s* is returned as-is. If *charset* is given but " -"*language* is not, the string is encoded using the empty string for " -"*language*." -msgstr "" - -#: ../Doc/library/email.util.rst:195 -msgid "" -"When a header parameter is encoded in :rfc:`2231` format, :meth:`Message." -"get_param ` may return a 3-tuple containing " -"the character set, language, and value. :func:`collapse_rfc2231_value` " -"turns this into a unicode string. Optional *errors* is passed to the " -"*errors* argument of :class:`str`'s :func:`~str.encode` method; it defaults " -"to ``'replace'``. Optional *fallback_charset* specifies the character set " -"to use if the one in the :rfc:`2231` header is not known by Python; it " -"defaults to ``'us-ascii'``." -msgstr "" - -#: ../Doc/library/email.util.rst:204 -msgid "" -"For convenience, if the *value* passed to :func:`collapse_rfc2231_value` is " -"not a tuple, it should be a string and it is returned unquoted." -msgstr "" - -#: ../Doc/library/email.util.rst:210 -msgid "" -"Decode parameters list according to :rfc:`2231`. *params* is a sequence of " -"2-tuples containing elements of the form ``(content-type, string-value)``." -msgstr "" - -#: ../Doc/library/email.util.rst:215 -msgid "Footnotes" -msgstr "" - -#: ../Doc/library/email.util.rst:216 -msgid "" -"Note that the sign of the timezone offset is the opposite of the sign of the " -"``time.timezone`` variable for the same timezone; the latter variable " -"follows the POSIX standard while this module follows :rfc:`2822`." -msgstr "" diff --git a/library/email.utils.po b/library/email.utils.po index c6fe225a..a133c994 100644 --- a/library/email.utils.po +++ b/library/email.utils.po @@ -1,17 +1,15 @@ -# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2018, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# For licence information, see README file. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \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" diff --git a/library/exceptions.po b/library/exceptions.po index 4eb88268..c37ed91a 100644 --- a/library/exceptions.po +++ b/library/exceptions.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-03 17:52+0200\n" -"PO-Revision-Date: 2018-09-28 13:07+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"PO-Revision-Date: 2018-12-17 21:45+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -113,7 +113,7 @@ msgid "" "`__cause__` also implicitly sets the :attr:`__suppress_context__` attribute " "to ``True``, so that using ``raise new_exc from None`` effectively replaces " "the old exception with the new one for display purposes (e.g. converting :" -"exc:`KeyError` to :exc:`AttributeError`, while leaving the old exception " +"exc:`KeyError` to :exc:`AttributeError`), while leaving the old exception " "available in :attr:`__context__` for introspection when debugging." msgstr "" "L'expression suivant :keyword:`from` doit être une exception ou ``None``. " @@ -122,7 +122,7 @@ msgstr "" "`__suppress_context__` à ``True``, de sorte que l'utilisation de ``raise " "new_exc from None`` remplace bien l'ancienne exception avec la nouvelle à " "des fins d'affichage (e.g., convertir :exc:`KeyError` en :exc:" -"`AttributeError`, tout en laissant l'ancienne exception disponible dans :" +"`AttributeError`), tout en laissant l'ancienne exception disponible dans :" "attr:`__context__` pour introspection lors du débogage." #: ../Doc/library/exceptions.rst:59 diff --git a/library/fileinput.po b/library/fileinput.po index 220c4b81..ebc25290 100644 --- a/library/fileinput.po +++ b/library/fileinput.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-03-23 09:03+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -99,7 +99,7 @@ msgstr "" msgid "" "The :class:`FileInput` instance can be used as a context manager in the :" "keyword:`with` statement. In this example, *input* is closed after the :" -"keyword:`with` statement is exited, even if an exception occurs::" +"keyword:`!with` statement is exited, even if an exception occurs::" msgstr "" #: ../Doc/library/fileinput.rst:72 ../Doc/library/fileinput.rst:163 @@ -204,7 +204,7 @@ msgstr "" msgid "" "A :class:`FileInput` instance can be used as a context manager in the :" "keyword:`with` statement. In this example, *input* is closed after the :" -"keyword:`with` statement is exited, even if an exception occurs::" +"keyword:`!with` statement is exited, even if an exception occurs::" msgstr "" #: ../Doc/library/fileinput.rst:166 diff --git a/library/functions.po b/library/functions.po index 7fc8345e..41882bae 100644 --- a/library/functions.po +++ b/library/functions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-10-13 17:36+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -2954,13 +2954,14 @@ msgstr "" "contrairement à :func:`importlib.import_module`." #: ../Doc/library/functions.rst:1655 +#, fuzzy msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " -"``builtins.__import__``) in order to change semantics of the :keyword:" -"`import` statement, but doing so is **strongly** discouraged as it is " -"usually simpler to use import hooks (see :pep:`302`) to attain the same " -"goals and does not cause issues with code which assumes the default import " +"``builtins.__import__``) in order to change semantics of the :keyword:`!" +"import` statement, but doing so is **strongly** discouraged as it is usually " +"simpler to use import hooks (see :pep:`302`) to attain the same goals and " +"does not cause issues with code which assumes the default import " "implementation is in use. Direct use of :func:`__import__` is also " "discouraged in favor of :func:`importlib.import_module`." msgstr "" diff --git a/library/functools.po b/library/functools.po index 35ea77d5..c15d5776 100644 --- a/library/functools.po +++ b/library/functools.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-09-29 15:53+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -71,7 +71,7 @@ msgstr "" "un appelable qui prend un argument et retourne une autre valeur qui sera " "utilisée comme clé de tri." -#: ../Doc/library/functools.rst:37 ../Doc/library/functools.rst:226 +#: ../Doc/library/functools.rst:37 ../Doc/library/functools.rst:231 msgid "Example::" msgstr "Exemple ::" @@ -181,10 +181,18 @@ msgstr "" "limite sur les processus longs comme les serveurs web." #: ../Doc/library/functools.rst:88 +msgid "" +"In general, the LRU cache should only be used when you want to reuse " +"previously computed values. Accordingly, it doesn't make sense to cache " +"functions with side-effects, functions that need to create distinct mutable " +"objects on each call, or impure functions such as time() or random()." +msgstr "" + +#: ../Doc/library/functools.rst:93 msgid "Example of an LRU cache for static web content::" msgstr "Exemple d'un cache LRU pour du contenu web statique ::" -#: ../Doc/library/functools.rst:107 +#: ../Doc/library/functools.rst:112 msgid "" "Example of efficiently computing `Fibonacci numbers `_ using a cache to implement a `dynamic " @@ -195,11 +203,11 @@ msgstr "" "technique de `programmation dynamique `_ ::" -#: ../Doc/library/functools.rst:127 +#: ../Doc/library/functools.rst:132 msgid "Added the *typed* option." msgstr "L'option *typed* a été ajoutée." -#: ../Doc/library/functools.rst:132 +#: ../Doc/library/functools.rst:137 msgid "" "Given a class defining one or more rich comparison ordering methods, this " "class decorator supplies the rest. This simplifies the effort involved in " @@ -209,7 +217,7 @@ msgstr "" "riches, ce décorateur de classe fournit le reste. Ceci simplifie l'effort à " "fournir dans la spécification de toutes les opérations de comparaison riche :" -#: ../Doc/library/functools.rst:136 +#: ../Doc/library/functools.rst:141 msgid "" "The class must define one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, " "or :meth:`__ge__`. In addition, the class should supply an :meth:`__eq__` " @@ -219,11 +227,11 @@ msgstr "" "`__le__`, :meth:`__gt__`, or :meth:`__ge__`. De plus, la classe doit fournir " "une méthode :meth:`__eq__`." -#: ../Doc/library/functools.rst:140 +#: ../Doc/library/functools.rst:145 msgid "For example::" msgstr "Par exemple ::" -#: ../Doc/library/functools.rst:160 +#: ../Doc/library/functools.rst:165 msgid "" "While this decorator makes it easy to create well behaved totally ordered " "types, it *does* come at the cost of slower execution and more complex stack " @@ -238,7 +246,7 @@ msgstr "" "méthodes de comparaison riches résoudra normalement vos problèmes de " "rapidité." -#: ../Doc/library/functools.rst:169 +#: ../Doc/library/functools.rst:174 msgid "" "Returning NotImplemented from the underlying comparison function for " "unrecognised types is now supported." @@ -246,7 +254,7 @@ msgstr "" "Retourner NotImplemented dans les fonction de comparaison sous-jacentes pour " "les types non reconnus est maintenant supporté." -#: ../Doc/library/functools.rst:175 +#: ../Doc/library/functools.rst:180 #, fuzzy msgid "" "Return a new :ref:`partial object` which when called will " @@ -261,7 +269,7 @@ msgstr "" "ils sont ajoutés à *args*. Si plus d'arguments nommés sont fournis, ils " "étendent et surchargent *keywords*. A peu près équivalent à ::" -#: ../Doc/library/functools.rst:192 +#: ../Doc/library/functools.rst:197 msgid "" "The :func:`partial` is used for partial function application which \"freezes" "\" some portion of a function's arguments and/or keywords resulting in a new " @@ -275,7 +283,7 @@ msgstr "" "peut être utilisé pour créer un appelable qui se comporte comme la fonction :" "func:`int` ou l'argument *base* est deux par défaut :" -#: ../Doc/library/functools.rst:207 +#: ../Doc/library/functools.rst:212 msgid "" "Return a new :class:`partialmethod` descriptor which behaves like :class:" "`partial` except that it is designed to be used as a method definition " @@ -285,7 +293,7 @@ msgstr "" "comme :class:`partial` sauf qu'il est fait pour être utilisé comme une " "définition de méthode plutôt que d'être appelé directement." -#: ../Doc/library/functools.rst:211 +#: ../Doc/library/functools.rst:216 msgid "" "*func* must be a :term:`descriptor` or a callable (objects which are both, " "like normal functions, are handled as descriptors)." @@ -293,7 +301,7 @@ msgstr "" "*func* doit être un :term:`descriptor` ou un appelable (les objets qui sont " "les deux, comme les fonction normales, sont gérés comme des descripteurs)." -#: ../Doc/library/functools.rst:214 +#: ../Doc/library/functools.rst:219 #, fuzzy msgid "" "When *func* is a descriptor (such as a normal Python function, :func:" @@ -308,7 +316,7 @@ msgstr "" "au descripteur sous-jacent, et un objet :class:`partial` approprié est " "retourné comme résultat." -#: ../Doc/library/functools.rst:220 +#: ../Doc/library/functools.rst:225 msgid "" "When *func* is a non-descriptor callable, an appropriate bound method is " "created dynamically. This behaves like a normal Python function when used as " @@ -322,7 +330,7 @@ msgstr "" "premier argument positionnel, avant les *args* et *keywords* fournis au " "constructeur :class:`partialmethod`." -#: ../Doc/library/functools.rst:251 +#: ../Doc/library/functools.rst:256 msgid "" "Apply *function* of two arguments cumulatively to the items of *sequence*, " "from left to right, so as to reduce the sequence to a single value. For " @@ -344,11 +352,11 @@ msgstr "" "la séquence est vide. Si *initializer* n'est pas renseigné et que " "*sequence* ne contient qu'un élément, le premier élément est retourné." -#: ../Doc/library/functools.rst:260 +#: ../Doc/library/functools.rst:265 msgid "Roughly equivalent to::" msgstr "Sensiblement équivalent à : ::" -#: ../Doc/library/functools.rst:275 +#: ../Doc/library/functools.rst:280 msgid "" "Transform a function into a :term:`single-dispatch ` :term:" "`generic function`." @@ -356,7 +364,7 @@ msgstr "" "Transforme une fonction en une :term:`fonction générique ` :term:`single-dispatch `." -#: ../Doc/library/functools.rst:278 +#: ../Doc/library/functools.rst:283 msgid "" "To define a generic function, decorate it with the ``@singledispatch`` " "decorator. Note that the dispatch happens on the type of the first argument, " @@ -366,7 +374,7 @@ msgstr "" "``@singledispatch``. Noter que la distribution est effectuée sur le type du " "premier argument, donc la fonction doit être créée en conséquence ::" -#: ../Doc/library/functools.rst:289 +#: ../Doc/library/functools.rst:294 msgid "" "To add overloaded implementations to the function, use the :func:`register` " "attribute of the generic function. It is a decorator. For functions " @@ -378,7 +386,7 @@ msgstr "" "Pour les fonctions annotées avec des types, le décorateur infère le type du " "premier argument automatiquement : ::" -#: ../Doc/library/functools.rst:307 +#: ../Doc/library/functools.rst:312 msgid "" "For code which doesn't use type annotations, the appropriate type argument " "can be passed explicitly to the decorator itself::" @@ -386,7 +394,7 @@ msgstr "" "Pour le code qui n’utilise pas les indications de type, le type souhaité " "peut être passé explicitement en argument au décorateur : ::" -#: ../Doc/library/functools.rst:318 +#: ../Doc/library/functools.rst:323 msgid "" "To enable registering lambdas and pre-existing functions, the :func:" "`register` attribute can be used in a functional form::" @@ -394,7 +402,7 @@ msgstr "" "Pour permettre l'enregistrement de lambdas et de fonctions pré-existantes, " "l'attribut :func:`register` peut être utilisé sous forme fonctionnelle ::" -#: ../Doc/library/functools.rst:326 +#: ../Doc/library/functools.rst:331 msgid "" "The :func:`register` attribute returns the undecorated function which " "enables decorator stacking, pickling, as well as creating unit tests for " @@ -404,7 +412,7 @@ msgstr "" "d'empiler les décorateurs, la sérialisation, et la création de tests " "unitaires pour chaque variante indépendamment ::" -#: ../Doc/library/functools.rst:340 +#: ../Doc/library/functools.rst:345 msgid "" "When called, the generic function dispatches on the type of the first " "argument::" @@ -412,7 +420,7 @@ msgstr "" "Quand elle est appelée, la fonction générique distribue sur le type du " "premier argument ::" -#: ../Doc/library/functools.rst:360 +#: ../Doc/library/functools.rst:365 msgid "" "Where there is no registered implementation for a specific type, its method " "resolution order is used to find a more generic implementation. The original " @@ -425,7 +433,7 @@ msgstr "" "est enregistrée pour le type d'``object``, et elle sera utilisée si aucune " "implémentation n'est trouvée." -#: ../Doc/library/functools.rst:366 +#: ../Doc/library/functools.rst:371 msgid "" "To check which implementation will the generic function choose for a given " "type, use the ``dispatch()`` attribute::" @@ -433,7 +441,7 @@ msgstr "" "Pour vérifier quelle implémentation la fonction générique choisira pour un " "type donné, utiliser l'attribut ``dispatch()`` ::" -#: ../Doc/library/functools.rst:374 +#: ../Doc/library/functools.rst:379 msgid "" "To access all registered implementations, use the read-only ``registry`` " "attribute::" @@ -441,12 +449,12 @@ msgstr "" "Pour accéder à toutes les implémentations enregistrées, utiliser l'attribut " "en lecture seule ``registry`` ::" -#: ../Doc/library/functools.rst:388 +#: ../Doc/library/functools.rst:393 msgid "The :func:`register` attribute supports using type annotations." msgstr "" "L’attribut :func:`register` gère l’utilisation des indications de type." -#: ../Doc/library/functools.rst:394 +#: ../Doc/library/functools.rst:399 msgid "" "Update a *wrapper* function to look like the *wrapped* function. The " "optional arguments are tuples to specify which attributes of the original " @@ -471,7 +479,7 @@ msgstr "" "met à jour le ``__dict__`` de la fonction englobante, c'est-à-dire le " "dictionnaire de l'instance)." -#: ../Doc/library/functools.rst:404 +#: ../Doc/library/functools.rst:409 msgid "" "To allow access to the original function for introspection and other " "purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), " @@ -483,7 +491,7 @@ msgstr "" "func:`lru_cache`), cette fonction ajoute automatiquement un attribut " "``__wrapped__`` qui référence la fonction englobée." -#: ../Doc/library/functools.rst:409 +#: ../Doc/library/functools.rst:414 msgid "" "The main intended use for this function is in :term:`decorator` functions " "which wrap the decorated function and return the wrapper. If the wrapper " @@ -497,7 +505,7 @@ msgstr "" "décorateur, au lieu de la définition originale, métadonnées souvent bien " "moins utiles." -#: ../Doc/library/functools.rst:415 +#: ../Doc/library/functools.rst:420 msgid "" ":func:`update_wrapper` may be used with callables other than functions. Any " "attributes named in *assigned* or *updated* that are missing from the object " @@ -511,20 +519,20 @@ msgstr "" "dans la fonction englobante). :exc:`AttributeError` est toujours levée si le " "fonction englobante elle même a des attributs non existants dans *updated*." -#: ../Doc/library/functools.rst:421 +#: ../Doc/library/functools.rst:426 msgid "Automatic addition of the ``__wrapped__`` attribute." msgstr "Ajout automatique de l'attribut ``__wrapped__``." -#: ../Doc/library/functools.rst:424 +#: ../Doc/library/functools.rst:429 msgid "Copying of the ``__annotations__`` attribute by default." msgstr "Copie de l'attribut ``__annotations__`` par défaut." -#: ../Doc/library/functools.rst:427 +#: ../Doc/library/functools.rst:432 msgid "Missing attributes no longer trigger an :exc:`AttributeError`." msgstr "" "Les attributs manquants ne lèvent plus d'exception :exc:`AttributeError`." -#: ../Doc/library/functools.rst:430 +#: ../Doc/library/functools.rst:435 msgid "" "The ``__wrapped__`` attribute now always refers to the wrapped function, " "even if that function defined a ``__wrapped__`` attribute. (see :issue:" @@ -533,7 +541,7 @@ msgstr "" "L'attribut ``__wrapped__`` renvoie toujours la fonction englobée, même si " "cette fonction définit un attribut ``__wrapped__``. (voir :issue:`17482`)" -#: ../Doc/library/functools.rst:438 +#: ../Doc/library/functools.rst:443 msgid "" "This is a convenience function for invoking :func:`update_wrapper` as a " "function decorator when defining a wrapper function. It is equivalent to " @@ -545,7 +553,7 @@ msgstr "" "C'est équivalent à ``partial(update_wrapper, wrapped=wrapped, " "assigned=assigned, updated=updated)``. Par exemple ::" -#: ../Doc/library/functools.rst:464 +#: ../Doc/library/functools.rst:469 msgid "" "Without the use of this decorator factory, the name of the example function " "would have been ``'wrapper'``, and the docstring of the original :func:" @@ -555,11 +563,11 @@ msgstr "" "d'exemple aurait été ``'wrapper'``, et la chaîne de documentation de la " "fonction :func:`example` originale aurait été perdue." -#: ../Doc/library/functools.rst:472 +#: ../Doc/library/functools.rst:477 msgid ":class:`partial` Objects" msgstr "Objets :class:`partial`" -#: ../Doc/library/functools.rst:474 +#: ../Doc/library/functools.rst:479 msgid "" ":class:`partial` objects are callable objects created by :func:`partial`. " "They have three read-only attributes:" @@ -567,7 +575,7 @@ msgstr "" "Les objets :class:`partial` sont des objets appelables créés par :func:" "`partial`. Ils ont trois attributs en lecture seule :" -#: ../Doc/library/functools.rst:480 +#: ../Doc/library/functools.rst:485 msgid "" "A callable object or function. Calls to the :class:`partial` object will be " "forwarded to :attr:`func` with new arguments and keywords." @@ -575,7 +583,7 @@ msgstr "" "Un objet ou une fonction appelable. Les appels à l'objet :class:`partial` " "seront transmis à :attr:`func` avec les nouveaux arguments et mots-clés." -#: ../Doc/library/functools.rst:486 +#: ../Doc/library/functools.rst:491 msgid "" "The leftmost positional arguments that will be prepended to the positional " "arguments provided to a :class:`partial` object call." @@ -583,7 +591,7 @@ msgstr "" "Les arguments positionnels qui seront ajoutés avant les arguments fournis " "lors de l'appel d'un objet :class:`partial`." -#: ../Doc/library/functools.rst:492 +#: ../Doc/library/functools.rst:497 msgid "" "The keyword arguments that will be supplied when the :class:`partial` object " "is called." @@ -591,7 +599,7 @@ msgstr "" "Les arguments nommés qui seront fournis quand l'objet :class:`partial` est " "appelé." -#: ../Doc/library/functools.rst:495 +#: ../Doc/library/functools.rst:500 msgid "" ":class:`partial` objects are like :class:`function` objects in that they are " "callable, weak referencable, and can have attributes. There are some " diff --git a/library/idle.po b/library/idle.po index 37cf6ccd..80ab8aeb 100644 --- a/library/idle.po +++ b/library/idle.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -35,7 +35,7 @@ msgid "coded in 100% pure Python, using the :mod:`tkinter` GUI toolkit" msgstr "" #: ../Doc/library/idle.rst:23 -msgid "cross-platform: works mostly the same on Windows, Unix, and Mac OS X" +msgid "cross-platform: works mostly the same on Windows, Unix, and macOS" msgstr "" #: ../Doc/library/idle.rst:25 @@ -87,7 +87,7 @@ msgstr "" #: ../Doc/library/idle.rst:51 msgid "" -"On MacOS, there is one application menu. It dynamically changes according " +"On macOS, there is one application menu. It dynamically changes according " "to the window currently selected. It has an IDLE menu, and some entries " "described below are moved around to conform to Apple guidlines." msgstr "" @@ -226,28 +226,28 @@ msgstr "" msgid "Redo the last undone change to the current window." msgstr "" -#: ../Doc/library/idle.rst:116 ../Doc/library/idle.rst:331 +#: ../Doc/library/idle.rst:116 ../Doc/library/idle.rst:330 msgid "Cut" msgstr "" -#: ../Doc/library/idle.rst:116 ../Doc/library/idle.rst:331 +#: ../Doc/library/idle.rst:116 ../Doc/library/idle.rst:330 msgid "" "Copy selection into the system-wide clipboard; then delete the selection." msgstr "" -#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:334 +#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:333 msgid "Copy" msgstr "" -#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:334 +#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:333 msgid "Copy selection into the system-wide clipboard." msgstr "" -#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:337 +#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:336 msgid "Paste" msgstr "" -#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:337 +#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:336 msgid "Insert contents of the system-wide clipboard into the current window." msgstr "" @@ -317,8 +317,8 @@ msgstr "" #: ../Doc/library/idle.rst:148 msgid "" -"Open a scrollable list allowing selection of keywords and attributes. See " -"Completions in the Tips sections below." +"Open a scrollable list allowing selection of keywords and attributes. See :" +"ref:`Completions ` in the Editing and navigation section below." msgstr "" #: ../Doc/library/idle.rst:153 @@ -331,135 +331,136 @@ msgid "" "repeat to get a different expansion." msgstr "" -#: ../Doc/library/idle.rst:157 +#: ../Doc/library/idle.rst:158 msgid "Show call tip" msgstr "" #: ../Doc/library/idle.rst:156 msgid "" "After an unclosed parenthesis for a function, open a small window with " -"function parameter hints." +"function parameter hints. See :ref:`Calltips ` in the Editing and " +"navigation section below." msgstr "" -#: ../Doc/library/idle.rst:160 +#: ../Doc/library/idle.rst:161 msgid "Show surrounding parens" msgstr "" -#: ../Doc/library/idle.rst:160 +#: ../Doc/library/idle.rst:161 msgid "Highlight the surrounding parenthesis." msgstr "" -#: ../Doc/library/idle.rst:163 +#: ../Doc/library/idle.rst:166 msgid "Format menu (Editor window only)" msgstr "" -#: ../Doc/library/idle.rst:166 +#: ../Doc/library/idle.rst:169 msgid "Indent Region" msgstr "" -#: ../Doc/library/idle.rst:166 +#: ../Doc/library/idle.rst:169 msgid "Shift selected lines right by the indent width (default 4 spaces)." msgstr "" -#: ../Doc/library/idle.rst:169 +#: ../Doc/library/idle.rst:172 msgid "Dedent Region" msgstr "" -#: ../Doc/library/idle.rst:169 +#: ../Doc/library/idle.rst:172 msgid "Shift selected lines left by the indent width (default 4 spaces)." msgstr "" -#: ../Doc/library/idle.rst:172 +#: ../Doc/library/idle.rst:175 msgid "Comment Out Region" msgstr "" -#: ../Doc/library/idle.rst:172 +#: ../Doc/library/idle.rst:175 msgid "Insert ## in front of selected lines." msgstr "" -#: ../Doc/library/idle.rst:175 +#: ../Doc/library/idle.rst:178 msgid "Uncomment Region" msgstr "" -#: ../Doc/library/idle.rst:175 +#: ../Doc/library/idle.rst:178 msgid "Remove leading # or ## from selected lines." msgstr "" -#: ../Doc/library/idle.rst:179 +#: ../Doc/library/idle.rst:182 msgid "Tabify Region" msgstr "" -#: ../Doc/library/idle.rst:178 +#: ../Doc/library/idle.rst:181 msgid "" "Turn *leading* stretches of spaces into tabs. (Note: We recommend using 4 " "space blocks to indent Python code.)" msgstr "" -#: ../Doc/library/idle.rst:182 +#: ../Doc/library/idle.rst:185 msgid "Untabify Region" msgstr "" -#: ../Doc/library/idle.rst:182 +#: ../Doc/library/idle.rst:185 msgid "Turn *all* tabs into the correct number of spaces." msgstr "" -#: ../Doc/library/idle.rst:185 +#: ../Doc/library/idle.rst:188 msgid "Toggle Tabs" msgstr "" -#: ../Doc/library/idle.rst:185 +#: ../Doc/library/idle.rst:188 msgid "Open a dialog to switch between indenting with spaces and tabs." msgstr "" -#: ../Doc/library/idle.rst:189 +#: ../Doc/library/idle.rst:192 msgid "New Indent Width" msgstr "" -#: ../Doc/library/idle.rst:188 +#: ../Doc/library/idle.rst:191 msgid "" "Open a dialog to change indent width. The accepted default by the Python " "community is 4 spaces." msgstr "" -#: ../Doc/library/idle.rst:194 +#: ../Doc/library/idle.rst:197 msgid "Format Paragraph" msgstr "" -#: ../Doc/library/idle.rst:192 +#: ../Doc/library/idle.rst:195 msgid "" "Reformat the current blank-line-delimited paragraph in comment block or " "multiline string or selected line in a string. All lines in the paragraph " "will be formatted to less than N columns, where N defaults to 72." msgstr "" -#: ../Doc/library/idle.rst:199 +#: ../Doc/library/idle.rst:202 msgid "Strip trailing whitespace" msgstr "" -#: ../Doc/library/idle.rst:197 +#: ../Doc/library/idle.rst:200 msgid "" "Remove trailing space and other whitespace characters after the last non-" "whitespace character of a line by applying str.rstrip to each line, " "including lines within multiline strings." msgstr "" -#: ../Doc/library/idle.rst:205 +#: ../Doc/library/idle.rst:208 msgid "Run menu (Editor window only)" msgstr "" -#: ../Doc/library/idle.rst:208 +#: ../Doc/library/idle.rst:211 msgid "Python Shell" msgstr "" -#: ../Doc/library/idle.rst:208 +#: ../Doc/library/idle.rst:211 msgid "Open or wake up the Python Shell window." msgstr "" -#: ../Doc/library/idle.rst:215 +#: ../Doc/library/idle.rst:218 msgid "Check Module" msgstr "" -#: ../Doc/library/idle.rst:211 +#: ../Doc/library/idle.rst:214 msgid "" "Check the syntax of the module currently open in the Editor window. If the " "module has not been saved IDLE will either prompt the user to save or " @@ -468,11 +469,11 @@ msgid "" "window." msgstr "" -#: ../Doc/library/idle.rst:224 +#: ../Doc/library/idle.rst:227 msgid "Run Module" msgstr "" -#: ../Doc/library/idle.rst:218 +#: ../Doc/library/idle.rst:221 msgid "" "Do Check Module (above). If no error, restart the shell to clean the " "environment, then execute the module. Output is displayed in the Shell " @@ -482,43 +483,43 @@ msgid "" "similar to executing a file with ``python -i file`` at a command line." msgstr "" -#: ../Doc/library/idle.rst:227 +#: ../Doc/library/idle.rst:230 msgid "Shell menu (Shell window only)" msgstr "" -#: ../Doc/library/idle.rst:230 +#: ../Doc/library/idle.rst:233 msgid "View Last Restart" msgstr "" -#: ../Doc/library/idle.rst:230 +#: ../Doc/library/idle.rst:233 msgid "Scroll the shell window to the last Shell restart." msgstr "" -#: ../Doc/library/idle.rst:233 +#: ../Doc/library/idle.rst:236 msgid "Restart Shell" msgstr "" -#: ../Doc/library/idle.rst:233 +#: ../Doc/library/idle.rst:236 msgid "Restart the shell to clean the environment." msgstr "" -#: ../Doc/library/idle.rst:236 +#: ../Doc/library/idle.rst:239 msgid "Interrupt Execution" msgstr "" -#: ../Doc/library/idle.rst:236 +#: ../Doc/library/idle.rst:239 msgid "Stop a running program." msgstr "" -#: ../Doc/library/idle.rst:239 +#: ../Doc/library/idle.rst:242 msgid "Debug menu (Shell window only)" msgstr "" -#: ../Doc/library/idle.rst:246 +#: ../Doc/library/idle.rst:249 msgid "Go to File/Line" msgstr "" -#: ../Doc/library/idle.rst:242 +#: ../Doc/library/idle.rst:245 msgid "" "Look on the current line. with the cursor, and the line above for a filename " "and line number. If found, open the file if not already open, and show the " @@ -527,151 +528,143 @@ msgid "" "Shell window and Output windows." msgstr "" -#: ../Doc/library/idle.rst:255 +#: ../Doc/library/idle.rst:258 msgid "Debugger (toggle)" msgstr "" -#: ../Doc/library/idle.rst:253 +#: ../Doc/library/idle.rst:256 msgid "" "When activated, code entered in the Shell or run from an Editor will run " "under the debugger. In the Editor, breakpoints can be set with the context " "menu. This feature is still incomplete and somewhat experimental." msgstr "" -#: ../Doc/library/idle.rst:259 +#: ../Doc/library/idle.rst:262 msgid "Stack Viewer" msgstr "" -#: ../Doc/library/idle.rst:258 +#: ../Doc/library/idle.rst:261 msgid "" "Show the stack traceback of the last exception in a tree widget, with access " "to locals and globals." msgstr "" -#: ../Doc/library/idle.rst:262 +#: ../Doc/library/idle.rst:265 msgid "Auto-open Stack Viewer" msgstr "" -#: ../Doc/library/idle.rst:262 +#: ../Doc/library/idle.rst:265 msgid "" "Toggle automatically opening the stack viewer on an unhandled exception." msgstr "" -#: ../Doc/library/idle.rst:265 +#: ../Doc/library/idle.rst:268 msgid "Options menu (Shell and Editor)" msgstr "" -#: ../Doc/library/idle.rst:277 +#: ../Doc/library/idle.rst:276 msgid "Configure IDLE" msgstr "" -#: ../Doc/library/idle.rst:268 +#: ../Doc/library/idle.rst:271 msgid "" "Open a configuration dialog and change preferences for the following: fonts, " "indentation, keybindings, text color themes, startup windows and size, " -"additional help sources, and extensions (see below). On OS X, open the " -"configuration dialog by selecting Preferences in the application menu. To " -"use a new built-in color theme (IDLE Dark) with older IDLEs, save it as a " -"new custom theme." +"additional help sources, and extensions. On macOS, open the configuration " +"dialog by selecting Preferences in the application menu. For more, see :ref:" +"`Setting preferences ` under Help and preferences." msgstr "" -#: ../Doc/library/idle.rst:275 -msgid "" -"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." -msgstr "" - -#: ../Doc/library/idle.rst:282 +#: ../Doc/library/idle.rst:281 msgid "Code Context (toggle)(Editor Window only)" msgstr "" -#: ../Doc/library/idle.rst:280 +#: ../Doc/library/idle.rst:279 msgid "" "Open a pane at the top of the edit window which shows the block context of " -"the code which has scrolled above the top of the window. Clicking a line in " -"this pane exposes that line at the top of the editor." +"the code which has scrolled above the top of the window. See :ref:`Code " +"Context ` in the Editing and Navigation section below." msgstr "" -#: ../Doc/library/idle.rst:285 +#: ../Doc/library/idle.rst:284 msgid "Window menu (Shell and Editor)" msgstr "" -#: ../Doc/library/idle.rst:290 +#: ../Doc/library/idle.rst:289 msgid "Zoom Height" msgstr "" -#: ../Doc/library/idle.rst:288 +#: ../Doc/library/idle.rst:287 msgid "" "Toggles the window between normal size and maximum height. The initial size " "defaults to 40 lines by 80 chars unless changed on the General tab of the " "Configure IDLE dialog." msgstr "" -#: ../Doc/library/idle.rst:292 +#: ../Doc/library/idle.rst:291 msgid "" "The rest of this menu lists the names of all open windows; select one to " "bring it to the foreground (deiconifying it if necessary)." msgstr "" -#: ../Doc/library/idle.rst:296 +#: ../Doc/library/idle.rst:295 msgid "Help menu (Shell and Editor)" msgstr "" -#: ../Doc/library/idle.rst:299 +#: ../Doc/library/idle.rst:298 msgid "About IDLE" msgstr "" -#: ../Doc/library/idle.rst:299 +#: ../Doc/library/idle.rst:298 msgid "Display version, copyright, license, credits, and more." msgstr "" -#: ../Doc/library/idle.rst:303 +#: ../Doc/library/idle.rst:302 msgid "IDLE Help" msgstr "" -#: ../Doc/library/idle.rst:302 +#: ../Doc/library/idle.rst:301 msgid "" "Display this IDLE document, detailing the menu options, basic editing and " "navigation, and other tips." msgstr "" -#: ../Doc/library/idle.rst:307 +#: ../Doc/library/idle.rst:306 msgid "Python Docs" msgstr "" -#: ../Doc/library/idle.rst:306 +#: ../Doc/library/idle.rst:305 msgid "" "Access local Python documentation, if installed, or start a web browser and " "open docs.python.org showing the latest Python documentation." msgstr "" -#: ../Doc/library/idle.rst:310 +#: ../Doc/library/idle.rst:309 msgid "Turtle Demo" msgstr "" -#: ../Doc/library/idle.rst:310 +#: ../Doc/library/idle.rst:309 msgid "Run the turtledemo module with example Python code and turtle drawings." msgstr "" -#: ../Doc/library/idle.rst:312 +#: ../Doc/library/idle.rst:311 msgid "" "Additional help sources may be added here with the Configure IDLE dialog " -"under the General tab. See the \"Help sources\" subsection below for more on " -"Help menu choices." +"under the General tab. See the :ref:`Help sources ` subsection " +"below for more on Help menu choices." msgstr "" -#: ../Doc/library/idle.rst:325 +#: ../Doc/library/idle.rst:324 msgid "Context Menus" msgstr "" -#: ../Doc/library/idle.rst:327 +#: ../Doc/library/idle.rst:326 msgid "" -"Open a context menu by right-clicking in a window (Control-click on OS X). " +"Open a context menu by right-clicking in a window (Control-click on macOS). " "Context menus have the standard clipboard functions also on the Edit menu." msgstr "" -#: ../Doc/library/idle.rst:339 +#: ../Doc/library/idle.rst:338 msgid "" "Editor windows also have breakpoint functions. Lines with a breakpoint set " "are specially marked. Breakpoints only have an effect when running under " @@ -679,66 +672,66 @@ msgid "" "directory." msgstr "" -#: ../Doc/library/idle.rst:344 +#: ../Doc/library/idle.rst:343 msgid "Set Breakpoint" msgstr "" -#: ../Doc/library/idle.rst:344 +#: ../Doc/library/idle.rst:343 msgid "Set a breakpoint on the current line." msgstr "" -#: ../Doc/library/idle.rst:347 +#: ../Doc/library/idle.rst:346 msgid "Clear Breakpoint" msgstr "" -#: ../Doc/library/idle.rst:347 +#: ../Doc/library/idle.rst:346 msgid "Clear the breakpoint on that line." msgstr "" -#: ../Doc/library/idle.rst:349 +#: ../Doc/library/idle.rst:348 msgid "Shell and Output windows also have the following." msgstr "" -#: ../Doc/library/idle.rst:352 +#: ../Doc/library/idle.rst:351 msgid "Go to file/line" msgstr "" -#: ../Doc/library/idle.rst:352 +#: ../Doc/library/idle.rst:351 msgid "Same as in Debug menu." msgstr "" -#: ../Doc/library/idle.rst:354 +#: ../Doc/library/idle.rst:353 msgid "" "The Shell window also has an output squeezing facility explained in the the " "*Python Shell window* subsection below." msgstr "" -#: ../Doc/library/idle.rst:360 +#: ../Doc/library/idle.rst:359 msgid "Squeeze" msgstr "" -#: ../Doc/library/idle.rst:358 +#: ../Doc/library/idle.rst:357 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." msgstr "" -#: ../Doc/library/idle.rst:363 +#: ../Doc/library/idle.rst:364 msgid "Editing and navigation" msgstr "" -#: ../Doc/library/idle.rst:366 +#: ../Doc/library/idle.rst:367 msgid "Editor windows" msgstr "" -#: ../Doc/library/idle.rst:368 +#: ../Doc/library/idle.rst:369 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 " "editor window for a given file." msgstr "" -#: ../Doc/library/idle.rst:372 +#: ../Doc/library/idle.rst:373 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 " @@ -746,99 +739,99 @@ msgid "" "numbers with 0." msgstr "" -#: ../Doc/library/idle.rst:377 +#: ../Doc/library/idle.rst:378 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." msgstr "" -#: ../Doc/library/idle.rst:381 +#: ../Doc/library/idle.rst:382 msgid "Key bindings" msgstr "" -#: ../Doc/library/idle.rst:383 +#: ../Doc/library/idle.rst:384 msgid "" "In this section, 'C' refers to the :kbd:`Control` key on Windows and Unix " -"and the :kbd:`Command` key on Mac OSX." +"and the :kbd:`Command` key on macOS." msgstr "" -#: ../Doc/library/idle.rst:386 +#: ../Doc/library/idle.rst:387 msgid ":kbd:`Backspace` deletes to the left; :kbd:`Del` deletes to the right" msgstr "" -#: ../Doc/library/idle.rst:388 +#: ../Doc/library/idle.rst:389 msgid "" ":kbd:`C-Backspace` delete word left; :kbd:`C-Del` delete word to the right" msgstr "" -#: ../Doc/library/idle.rst:390 +#: ../Doc/library/idle.rst:391 msgid "Arrow keys and :kbd:`Page Up`/:kbd:`Page Down` to move around" msgstr "" -#: ../Doc/library/idle.rst:392 +#: ../Doc/library/idle.rst:393 msgid ":kbd:`C-LeftArrow` and :kbd:`C-RightArrow` moves by words" msgstr "" -#: ../Doc/library/idle.rst:394 +#: ../Doc/library/idle.rst:395 msgid ":kbd:`Home`/:kbd:`End` go to begin/end of line" msgstr "" -#: ../Doc/library/idle.rst:396 +#: ../Doc/library/idle.rst:397 msgid ":kbd:`C-Home`/:kbd:`C-End` go to begin/end of file" msgstr "" -#: ../Doc/library/idle.rst:398 +#: ../Doc/library/idle.rst:399 msgid "Some useful Emacs bindings are inherited from Tcl/Tk:" msgstr "" -#: ../Doc/library/idle.rst:400 +#: ../Doc/library/idle.rst:401 msgid ":kbd:`C-a` beginning of line" msgstr "" -#: ../Doc/library/idle.rst:402 +#: ../Doc/library/idle.rst:403 msgid ":kbd:`C-e` end of line" msgstr "" -#: ../Doc/library/idle.rst:404 +#: ../Doc/library/idle.rst:405 msgid ":kbd:`C-k` kill line (but doesn't put it in clipboard)" msgstr "" -#: ../Doc/library/idle.rst:406 +#: ../Doc/library/idle.rst:407 msgid ":kbd:`C-l` center window around the insertion point" msgstr "" -#: ../Doc/library/idle.rst:408 +#: ../Doc/library/idle.rst:409 msgid "" ":kbd:`C-b` go backward one character without deleting (usually you can also " "use the cursor key for this)" msgstr "" -#: ../Doc/library/idle.rst:411 +#: ../Doc/library/idle.rst:412 msgid "" ":kbd:`C-f` go forward one character without deleting (usually you can also " "use the cursor key for this)" msgstr "" -#: ../Doc/library/idle.rst:414 +#: ../Doc/library/idle.rst:415 msgid "" ":kbd:`C-p` go up one line (usually you can also use the cursor key for this)" msgstr "" -#: ../Doc/library/idle.rst:417 +#: ../Doc/library/idle.rst:418 msgid ":kbd:`C-d` delete next character" msgstr "" -#: ../Doc/library/idle.rst:419 +#: ../Doc/library/idle.rst:420 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." msgstr "" -#: ../Doc/library/idle.rst:423 +#: ../Doc/library/idle.rst:424 msgid "Automatic indentation" msgstr "" -#: ../Doc/library/idle.rst:425 +#: ../Doc/library/idle.rst:426 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 " @@ -848,21 +841,23 @@ msgid "" "tabs are restricted to four spaces due to Tcl/Tk limitations." msgstr "" -#: ../Doc/library/idle.rst:432 -msgid "See also the indent/dedent region commands in the edit menu." +#: ../Doc/library/idle.rst:433 +msgid "" +"See also the indent/dedent region commands on the :ref:`Format menu `." msgstr "" -#: ../Doc/library/idle.rst:435 +#: ../Doc/library/idle.rst:440 msgid "Completions" msgstr "" -#: ../Doc/library/idle.rst:437 +#: ../Doc/library/idle.rst:442 msgid "" "Completions are supplied for functions, classes, and attributes of classes, " "both built-in and user-defined. Completions are also provided for filenames." msgstr "" -#: ../Doc/library/idle.rst:441 +#: ../Doc/library/idle.rst:446 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 " @@ -870,13 +865,13 @@ msgid "" "ACW will open immediately if a possible continuation is found." msgstr "" -#: ../Doc/library/idle.rst:446 +#: ../Doc/library/idle.rst:451 msgid "" "If there is only one possible completion for the characters entered, a :kbd:" "`Tab` will supply that completion without opening the ACW." msgstr "" -#: ../Doc/library/idle.rst:449 +#: ../Doc/library/idle.rst:454 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 " @@ -886,7 +881,7 @@ msgid "" "the ACW will attempt to be more specific." msgstr "" -#: ../Doc/library/idle.rst:456 +#: ../Doc/library/idle.rst:461 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 " @@ -896,18 +891,18 @@ msgid "" "and the scroll wheel all operate on the ACW." msgstr "" -#: ../Doc/library/idle.rst:463 +#: ../Doc/library/idle.rst:468 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, " "or to class-private attributes." msgstr "" -#: ../Doc/library/idle.rst:467 +#: ../Doc/library/idle.rst:472 msgid "Completions and the 'Expand Word' facility can save a lot of typing!" msgstr "" -#: ../Doc/library/idle.rst:469 +#: ../Doc/library/idle.rst:474 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 " @@ -916,17 +911,17 @@ msgid "" "so much can be found by default, e.g. the re module." msgstr "" -#: ../Doc/library/idle.rst:475 +#: ../Doc/library/idle.rst:480 msgid "" "If you don't like the ACW popping up unbidden, simply make the delay longer " "or disable the extension." msgstr "" -#: ../Doc/library/idle.rst:479 +#: ../Doc/library/idle.rst:486 msgid "Calltips" msgstr "" -#: ../Doc/library/idle.rst:481 +#: ../Doc/library/idle.rst:488 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 " @@ -935,7 +930,7 @@ msgid "" "definition, the menu or shortcut display a calltip." msgstr "" -#: ../Doc/library/idle.rst:487 +#: ../Doc/library/idle.rst:494 msgid "" "A calltip consists of the function signature and the first line of the " "docstring. For builtins without an accessible signature, the calltip " @@ -943,14 +938,14 @@ msgid "" "details may change." msgstr "" -#: ../Doc/library/idle.rst:492 +#: ../Doc/library/idle.rst:499 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 " "definitions have been run, all since the last restart." msgstr "" -#: ../Doc/library/idle.rst:496 +#: ../Doc/library/idle.rst:503 msgid "" "For example, restart the Shell and enter ``itertools.count(``. A calltip " "appears because Idle imports itertools into the user process for its own " @@ -959,24 +954,48 @@ msgid "" "``import turtle`` and then ``turtle.write(`` will work." msgstr "" -#: ../Doc/library/idle.rst:502 +#: ../Doc/library/idle.rst:509 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 " "immediately run an existing file before editing." msgstr "" -#: ../Doc/library/idle.rst:507 +#: ../Doc/library/idle.rst:516 +msgid "Code Context" +msgstr "" + +#: ../Doc/library/idle.rst:518 +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 " +"pane freezes the opening lines for block code, such as those beginning with " +"``class``, ``def``, or ``if`` keywords, that would have otherwise scrolled " +"out of view. The size of the pane will be expanded and contracted as needed " +"to show the all current levels of context, up to the maximum number of lines " +"defined in the Configure IDLE dialog (which defaults to 15). If there are " +"no current context lines and the feature is toggled on, a single blank line " +"will display. Clicking on a line in the context pane will move that line to " +"the top of the editor." +msgstr "" + +#: ../Doc/library/idle.rst:529 +msgid "" +"The text and background colors for the context pane can be configured under " +"the Highlights tab in the Configure IDLE dialog." +msgstr "" + +#: ../Doc/library/idle.rst:533 msgid "Python Shell window" msgstr "" -#: ../Doc/library/idle.rst:509 +#: ../Doc/library/idle.rst:535 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." msgstr "" -#: ../Doc/library/idle.rst:512 +#: ../Doc/library/idle.rst:538 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 " @@ -984,48 +1003,48 @@ msgid "" "when multiple statements are compiled as if they were one." msgstr "" -#: ../Doc/library/idle.rst:517 +#: ../Doc/library/idle.rst:543 msgid "" "The editing features described in previous subsections work when entering " "code interactively. IDLE's Shell window also responds to the following keys." msgstr "" -#: ../Doc/library/idle.rst:520 +#: ../Doc/library/idle.rst:546 msgid ":kbd:`C-c` interrupts executing command" msgstr "" -#: ../Doc/library/idle.rst:522 +#: ../Doc/library/idle.rst:548 msgid "" ":kbd:`C-d` sends end-of-file; closes window if typed at a ``>>>`` prompt" msgstr "" -#: ../Doc/library/idle.rst:524 +#: ../Doc/library/idle.rst:550 msgid ":kbd:`Alt-/` (Expand word) is also useful to reduce typing" msgstr "" -#: ../Doc/library/idle.rst:526 +#: ../Doc/library/idle.rst:552 msgid "Command history" msgstr "" -#: ../Doc/library/idle.rst:528 +#: ../Doc/library/idle.rst:554 msgid "" -":kbd:`Alt-p` retrieves previous command matching what you have typed. On OS " -"X use :kbd:`C-p`." +":kbd:`Alt-p` retrieves previous command matching what you have typed. On " +"macOS use :kbd:`C-p`." msgstr "" -#: ../Doc/library/idle.rst:531 -msgid ":kbd:`Alt-n` retrieves next. On OS X use :kbd:`C-n`." +#: ../Doc/library/idle.rst:557 +msgid ":kbd:`Alt-n` retrieves next. On macOS use :kbd:`C-n`." msgstr "" -#: ../Doc/library/idle.rst:533 +#: ../Doc/library/idle.rst:559 msgid ":kbd:`Return` while on any previous command retrieves that command" msgstr "" -#: ../Doc/library/idle.rst:536 +#: ../Doc/library/idle.rst:562 msgid "Text colors" msgstr "" -#: ../Doc/library/idle.rst:538 +#: ../Doc/library/idle.rst:564 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 " @@ -1035,7 +1054,7 @@ msgid "" "(when present), found text (when possible), and selected text." msgstr "" -#: ../Doc/library/idle.rst:545 +#: ../Doc/library/idle.rst:571 msgid "" "Text coloring is done in the background, so uncolorized text is occasionally " "visible. To change the color scheme, use the Configure IDLE dialog " @@ -1043,11 +1062,11 @@ msgid "" "and text in popups and dialogs is not user-configurable." msgstr "" -#: ../Doc/library/idle.rst:552 +#: ../Doc/library/idle.rst:578 msgid "Startup and code execution" msgstr "" -#: ../Doc/library/idle.rst:554 +#: ../Doc/library/idle.rst:580 msgid "" "Upon startup with the ``-s`` option, IDLE will execute the file referenced " "by the environment variables :envvar:`IDLESTARTUP` or :envvar:" @@ -1059,7 +1078,7 @@ msgid "" "modules." msgstr "" -#: ../Doc/library/idle.rst:562 +#: ../Doc/library/idle.rst:588 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`` " @@ -1068,15 +1087,15 @@ msgid "" "importing functions to be used from IDLE's Python shell." msgstr "" -#: ../Doc/library/idle.rst:569 +#: ../Doc/library/idle.rst:595 msgid "Command line usage" msgstr "" -#: ../Doc/library/idle.rst:585 +#: ../Doc/library/idle.rst:611 msgid "If there are arguments:" msgstr "" -#: ../Doc/library/idle.rst:587 +#: ../Doc/library/idle.rst:613 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'``. " @@ -1084,17 +1103,17 @@ msgid "" "dialog." msgstr "" -#: ../Doc/library/idle.rst:592 +#: ../Doc/library/idle.rst:618 msgid "" "Otherwise, arguments are files opened for editing and ``sys.argv`` reflects " "the arguments passed to IDLE itself." msgstr "" -#: ../Doc/library/idle.rst:596 +#: ../Doc/library/idle.rst:622 msgid "Startup failure" msgstr "" -#: ../Doc/library/idle.rst:598 +#: ../Doc/library/idle.rst:624 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 " @@ -1104,7 +1123,7 @@ msgid "" "user here. It then exits." msgstr "" -#: ../Doc/library/idle.rst:605 +#: ../Doc/library/idle.rst:631 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 " @@ -1113,7 +1132,7 @@ msgid "" "file." msgstr "" -#: ../Doc/library/idle.rst:611 +#: ../Doc/library/idle.rst:637 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 " @@ -1123,7 +1142,7 @@ msgid "" "connections." msgstr "" -#: ../Doc/library/idle.rst:618 +#: ../Doc/library/idle.rst:644 msgid "" "Python installation issues occasionally stop IDLE: multiple versions can " "clash, or a single installation might need admin access. If one undo the " @@ -1131,7 +1150,7 @@ msgid "" "completely remove Python and start over." msgstr "" -#: ../Doc/library/idle.rst:623 +#: ../Doc/library/idle.rst:649 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 " @@ -1139,7 +1158,7 @@ msgid "" "error box or Restart Shell on the Shell menu may fix a temporary problem." msgstr "" -#: ../Doc/library/idle.rst:628 +#: ../Doc/library/idle.rst:654 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 " @@ -1149,17 +1168,17 @@ msgid "" "be to delete one or more of the configuration files." msgstr "" -#: ../Doc/library/idle.rst:635 +#: ../Doc/library/idle.rst:661 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." msgstr "" -#: ../Doc/library/idle.rst:639 +#: ../Doc/library/idle.rst:665 msgid "Running user code" msgstr "" -#: ../Doc/library/idle.rst:641 +#: ../Doc/library/idle.rst:667 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, " @@ -1169,7 +1188,7 @@ msgid "" "``threading.activeCount()`` returns 2 instead of 1." msgstr "" -#: ../Doc/library/idle.rst:648 +#: ../Doc/library/idle.rst:674 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 " @@ -1179,7 +1198,7 @@ msgid "" "__stderr__`` are not touched, but may be ``None``." msgstr "" -#: ../Doc/library/idle.rst:655 +#: ../Doc/library/idle.rst:681 msgid "" "When Shell has the focus, it controls the keyboard and screen. This is " "normally transparent, but functions that directly access the keyboard and " @@ -1187,7 +1206,7 @@ msgid "" "determine whether a key has been pressed and if so, which." msgstr "" -#: ../Doc/library/idle.rst:660 +#: ../Doc/library/idle.rst:686 msgid "" "IDLE's standard stream replacements are not inherited by subprocesses " "created in the execution process, whether directly by user code or by " @@ -1197,18 +1216,18 @@ msgid "" "attached to that window for input and output." msgstr "" -#: ../Doc/library/idle.rst:667 +#: ../Doc/library/idle.rst:693 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 " "will not work correctly." msgstr "" -#: ../Doc/library/idle.rst:672 +#: ../Doc/library/idle.rst:698 msgid "User output in Shell" msgstr "" -#: ../Doc/library/idle.rst:674 +#: ../Doc/library/idle.rst:700 msgid "" "When a program outputs text, the result is determined by the corresponding " "output device. When IDLE executes user code, ``sys.stdout`` and ``sys." @@ -1218,7 +1237,7 @@ msgid "" "rather than production runs." msgstr "" -#: ../Doc/library/idle.rst:681 +#: ../Doc/library/idle.rst:707 msgid "" "For instance, Shell never throws away output. A program that sends " "unlimited output to Shell will eventually fill memory, resulting in a memory " @@ -1227,7 +1246,7 @@ msgid "" "lines, with 300 the default." msgstr "" -#: ../Doc/library/idle.rst:687 +#: ../Doc/library/idle.rst:713 msgid "" "Text widgets display a subset of Unicode, the Basic Multilingual Plane " "(BMP). Which characters get a proper glyph instead of a replacement box " @@ -1239,13 +1258,13 @@ msgid "" "they are output." msgstr "" -#: ../Doc/library/idle.rst:696 +#: ../Doc/library/idle.rst:722 msgid "" "Normal and error output are generally kept separate (on separate lines) from " "code input and each other. They each get different highlight colors." msgstr "" -#: ../Doc/library/idle.rst:699 +#: ../Doc/library/idle.rst:725 msgid "" "For SyntaxError tracebacks, the normal '^' marking where the error was " "detected is replaced by coloring the text with an error highlight. When code " @@ -1254,7 +1273,7 @@ msgid "" "opened if necessary." msgstr "" -#: ../Doc/library/idle.rst:705 +#: ../Doc/library/idle.rst:731 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 " @@ -1263,18 +1282,18 @@ msgid "" "on the output. This can be useful lines long enough to slow down scrolling." msgstr "" -#: ../Doc/library/idle.rst:713 +#: ../Doc/library/idle.rst:739 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 " "the label." msgstr "" -#: ../Doc/library/idle.rst:718 +#: ../Doc/library/idle.rst:744 msgid "Developing tkinter applications" msgstr "" -#: ../Doc/library/idle.rst:720 +#: ../Doc/library/idle.rst:746 msgid "" "IDLE is intentionally different from standard Python in order to facilitate " "development of tkinter programs. Enter ``import tkinter as tk; root = tk." @@ -1286,7 +1305,7 @@ msgid "" "changes in standard Python until one enters ``root.update()``." msgstr "" -#: ../Doc/library/idle.rst:729 +#: ../Doc/library/idle.rst:755 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 " @@ -1294,7 +1313,7 @@ msgid "" "``mainloop()`` returns, at which time there is nothing left to interact with." msgstr "" -#: ../Doc/library/idle.rst:735 +#: ../Doc/library/idle.rst:761 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 " @@ -1302,11 +1321,11 @@ msgid "" "mainloop call when running in standard Python." msgstr "" -#: ../Doc/library/idle.rst:741 +#: ../Doc/library/idle.rst:767 msgid "Running without a subprocess" msgstr "" -#: ../Doc/library/idle.rst:743 +#: ../Doc/library/idle.rst:769 msgid "" "By default, IDLE executes user code in a separate subprocess via a socket, " "which uses the internal loopback interface. This connection is not " @@ -1314,7 +1333,7 @@ msgid "" "firewall software complains anyway, you can ignore it." msgstr "" -#: ../Doc/library/idle.rst:748 +#: ../Doc/library/idle.rst:774 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 " @@ -1323,7 +1342,7 @@ msgid "" "command line switch." msgstr "" -#: ../Doc/library/idle.rst:754 +#: ../Doc/library/idle.rst:780 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 " @@ -1337,15 +1356,15 @@ msgid "" "at all possible." msgstr "" -#: ../Doc/library/idle.rst:769 +#: ../Doc/library/idle.rst:795 msgid "Help and preferences" msgstr "" -#: ../Doc/library/idle.rst:772 +#: ../Doc/library/idle.rst:800 msgid "Help sources" msgstr "" -#: ../Doc/library/idle.rst:774 +#: ../Doc/library/idle.rst:802 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 " @@ -1355,7 +1374,7 @@ msgid "" "the opened box." msgstr "" -#: ../Doc/library/idle.rst:782 +#: ../Doc/library/idle.rst:810 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 " @@ -1363,40 +1382,49 @@ msgid "" "the docs (this may be an installation option), that will be opened instead." msgstr "" -#: ../Doc/library/idle.rst:788 +#: ../Doc/library/idle.rst:816 msgid "" "Selected URLs can be added or removed from the help menu at any time using " "the General tab of the Configure IDLE dialog ." msgstr "" -#: ../Doc/library/idle.rst:792 +#: ../Doc/library/idle.rst:822 msgid "Setting preferences" msgstr "" -#: ../Doc/library/idle.rst:794 +#: ../Doc/library/idle.rst:824 msgid "" "The font preferences, highlighting, keys, and general preferences can be " -"changed via Configure IDLE on the Option menu. Keys can be user defined; " -"IDLE ships with four built-in key sets. In addition, a user can create a " -"custom key set in the Configure IDLE dialog under the keys tab." +"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." msgstr "" -#: ../Doc/library/idle.rst:800 -msgid "IDLE on MacOS" +#: ../Doc/library/idle.rst:830 +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, " +"save it as a new custom theme or key set and it well be accessible to older " +"IDLEs." msgstr "" -#: ../Doc/library/idle.rst:802 +#: ../Doc/library/idle.rst:836 +msgid "IDLE on macOS" +msgstr "" + +#: ../Doc/library/idle.rst:838 msgid "" "Under System Preferences: Dock, one can set \"Prefer tabs when opening " "documents\" to \"Always\". This setting is not compatible with the tk/" "tkinter GUI framework used by IDLE, and it breaks a few IDLE features." msgstr "" -#: ../Doc/library/idle.rst:807 +#: ../Doc/library/idle.rst:843 msgid "Extensions" msgstr "" -#: ../Doc/library/idle.rst:809 +#: ../Doc/library/idle.rst:845 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/imaplib.po b/library/imaplib.po index fbc3608e..bd2001b4 100644 --- a/library/imaplib.po +++ b/library/imaplib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-09-15 21:52+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -49,7 +49,7 @@ msgstr "" msgid "" "The :class:`IMAP4` class supports the :keyword:`with` statement. When used " "like this, the IMAP4 ``LOGOUT`` command is issued automatically when the :" -"keyword:`with` statement exits. E.g.::" +"keyword:`!with` statement exits. E.g.::" msgstr "" #: ../Doc/library/imaplib.rst:50 diff --git a/library/imp.po b/library/imp.po index d89a1c1c..eb6e33f0 100644 --- a/library/imp.po +++ b/library/imp.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -242,7 +242,7 @@ msgid "" "If a module imports objects from another module using :keyword:`from` ... :" "keyword:`import` ..., calling :func:`reload` for the other module does not " "redefine the objects imported from it --- one way around this is to re-" -"execute the :keyword:`from` statement, another is to use :keyword:`import` " +"execute the :keyword:`!from` statement, another is to use :keyword:`!import` " "and qualified names (*module*.*name*) instead." msgstr "" diff --git a/library/importlib.po b/library/importlib.po index 3a9f3c0e..81455a8d 100644 --- a/library/importlib.po +++ b/library/importlib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-04 11:26+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -16,7 +16,7 @@ msgstr "" "X-Generator: Poedit 1.8.11\n" #: ../Doc/library/importlib.rst:2 -msgid ":mod:`importlib` --- The implementation of :keyword:`import`" +msgid ":mod:`!importlib` --- The implementation of :keyword:`!import`" msgstr "" #: ../Doc/library/importlib.rst:12 @@ -32,7 +32,7 @@ msgid "" "The purpose of the :mod:`importlib` package is two-fold. One is to provide " "the implementation of the :keyword:`import` statement (and thus, by " "extension, the :func:`__import__` function) in Python source code. This " -"provides an implementation of :keyword:`import` which is portable to any " +"provides an implementation of :keyword:`!import` which is portable to any " "Python interpreter. This also provides an implementation which is easier to " "comprehend than one implemented in a programming language other than Python." msgstr "" @@ -323,7 +323,7 @@ msgid "" "If a module imports objects from another module using :keyword:`from` ... :" "keyword:`import` ..., calling :func:`reload` for the other module does not " "redefine the objects imported from it --- one way around this is to re-" -"execute the :keyword:`from` statement, another is to use :keyword:`import` " +"execute the :keyword:`!from` statement, another is to use :keyword:`!import` " "and qualified names (*module.name*) instead." msgstr "" diff --git a/library/io.po b/library/io.po index d5cd3ec7..6b0312b7 100644 --- a/library/io.po +++ b/library/io.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-03 11:13+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -381,7 +381,7 @@ msgstr "" msgid "" ":class:`IOBase` is also a context manager and therefore supports the :" "keyword:`with` statement. In this example, *file* is closed after the :" -"keyword:`with` statement's suite is finished---even if an exception occurs::" +"keyword:`!with` statement's suite is finished---even if an exception occurs::" msgstr "" #: ../Doc/library/io.rst:257 diff --git a/library/locale.po b/library/locale.po index 2b236dd7..f90d0a7a 100644 --- a/library/locale.po +++ b/library/locale.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -307,19 +307,17 @@ msgstr "" #: ../Doc/library/locale.rst:150 msgid "" "The function sets temporarily the ``LC_CTYPE`` locale to the ``LC_NUMERIC`` " -"locale to decode ``decimal_point`` and ``thousands_sep`` byte strings if " -"they are non-ASCII or longer than 1 byte, and the ``LC_NUMERIC`` locale is " -"different than the ``LC_CTYPE`` locale. This temporary change affects other " -"threads." +"locale or the ``LC_MONETARY`` locale if locales are different and numeric or " +"monetary strings are non-ASCII. This temporary change affects other threads." msgstr "" -#: ../Doc/library/locale.rst:156 +#: ../Doc/library/locale.rst:154 msgid "" "The function now sets temporarily the ``LC_CTYPE`` locale to the " "``LC_NUMERIC`` locale in some cases." msgstr "" -#: ../Doc/library/locale.rst:163 +#: ../Doc/library/locale.rst:161 msgid "" "Return some locale-specific information as a string. This function is not " "available on all systems, and the set of possible options might also vary " @@ -327,103 +325,103 @@ msgid "" "symbolic constants are available in the locale module." msgstr "" -#: ../Doc/library/locale.rst:168 +#: ../Doc/library/locale.rst:166 msgid "" "The :func:`nl_langinfo` function accepts one of the following keys. Most " "descriptions are taken from the corresponding description in the GNU C " "library." msgstr "" -#: ../Doc/library/locale.rst:174 +#: ../Doc/library/locale.rst:172 msgid "" "Get a string with the name of the character encoding used in the selected " "locale." msgstr "" -#: ../Doc/library/locale.rst:179 +#: ../Doc/library/locale.rst:177 msgid "" "Get a string that can be used as a format string for :func:`time.strftime` " "to represent date and time in a locale-specific way." msgstr "" -#: ../Doc/library/locale.rst:184 +#: ../Doc/library/locale.rst:182 msgid "" "Get a string that can be used as a format string for :func:`time.strftime` " "to represent a date in a locale-specific way." msgstr "" -#: ../Doc/library/locale.rst:189 +#: ../Doc/library/locale.rst:187 msgid "" "Get a string that can be used as a format string for :func:`time.strftime` " "to represent a time in a locale-specific way." msgstr "" -#: ../Doc/library/locale.rst:194 +#: ../Doc/library/locale.rst:192 msgid "" "Get a format string for :func:`time.strftime` to represent time in the am/pm " "format." msgstr "" -#: ../Doc/library/locale.rst:199 +#: ../Doc/library/locale.rst:197 msgid "Get the name of the n-th day of the week." msgstr "" -#: ../Doc/library/locale.rst:203 +#: ../Doc/library/locale.rst:201 msgid "" "This follows the US convention of :const:`DAY_1` being Sunday, not the " "international convention (ISO 8601) that Monday is the first day of the week." msgstr "" -#: ../Doc/library/locale.rst:209 +#: ../Doc/library/locale.rst:207 msgid "Get the abbreviated name of the n-th day of the week." msgstr "" -#: ../Doc/library/locale.rst:213 +#: ../Doc/library/locale.rst:211 msgid "Get the name of the n-th month." msgstr "" -#: ../Doc/library/locale.rst:217 +#: ../Doc/library/locale.rst:215 msgid "Get the abbreviated name of the n-th month." msgstr "" -#: ../Doc/library/locale.rst:221 +#: ../Doc/library/locale.rst:219 msgid "Get the radix character (decimal dot, decimal comma, etc.)." msgstr "" -#: ../Doc/library/locale.rst:225 +#: ../Doc/library/locale.rst:223 msgid "Get the separator character for thousands (groups of three digits)." msgstr "" -#: ../Doc/library/locale.rst:229 +#: ../Doc/library/locale.rst:227 msgid "" "Get a regular expression that can be used with the regex function to " "recognize a positive response to a yes/no question." msgstr "" -#: ../Doc/library/locale.rst:234 +#: ../Doc/library/locale.rst:232 msgid "" "The expression is in the syntax suitable for the :c:func:`regex` function " "from the C library, which might differ from the syntax used in :mod:`re`." msgstr "" -#: ../Doc/library/locale.rst:239 +#: ../Doc/library/locale.rst:237 msgid "" "Get a regular expression that can be used with the regex(3) function to " "recognize a negative response to a yes/no question." msgstr "" -#: ../Doc/library/locale.rst:244 +#: ../Doc/library/locale.rst:242 msgid "" "Get the currency symbol, preceded by \"-\" if the symbol should appear " "before the value, \"+\" if the symbol should appear after the value, or \"." "\" if the symbol should replace the radix character." msgstr "" -#: ../Doc/library/locale.rst:250 +#: ../Doc/library/locale.rst:248 msgid "Get a string that represents the era used in the current locale." msgstr "" -#: ../Doc/library/locale.rst:252 +#: ../Doc/library/locale.rst:250 msgid "" "Most locales do not define this value. An example of a locale which does " "define this value is the Japanese one. In Japan, the traditional " @@ -431,7 +429,7 @@ msgid "" "then-emperor's reign." msgstr "" -#: ../Doc/library/locale.rst:257 +#: ../Doc/library/locale.rst:255 msgid "" "Normally it should not be necessary to use this value directly. Specifying " "the ``E`` modifier in their format strings causes the :func:`time.strftime` " @@ -440,37 +438,37 @@ msgid "" "systems." msgstr "" -#: ../Doc/library/locale.rst:265 +#: ../Doc/library/locale.rst:263 msgid "" "Get a format string for :func:`time.strftime` to represent date and time in " "a locale-specific era-based way." msgstr "" -#: ../Doc/library/locale.rst:270 +#: ../Doc/library/locale.rst:268 msgid "" "Get a format string for :func:`time.strftime` to represent a date in a " "locale-specific era-based way." msgstr "" -#: ../Doc/library/locale.rst:275 +#: ../Doc/library/locale.rst:273 msgid "" "Get a format string for :func:`time.strftime` to represent a time in a " "locale-specific era-based way." msgstr "" -#: ../Doc/library/locale.rst:280 +#: ../Doc/library/locale.rst:278 msgid "" "Get a representation of up to 100 values used to represent the values 0 to " "99." msgstr "" -#: ../Doc/library/locale.rst:286 +#: ../Doc/library/locale.rst:284 msgid "" "Tries to determine the default locale settings and returns them as a tuple " "of the form ``(language code, encoding)``." msgstr "" -#: ../Doc/library/locale.rst:289 +#: ../Doc/library/locale.rst:287 msgid "" "According to POSIX, a program which has not called ``setlocale(LC_ALL, '')`` " "runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` " @@ -479,7 +477,7 @@ msgid "" "emulate the behavior in the way described above." msgstr "" -#: ../Doc/library/locale.rst:295 +#: ../Doc/library/locale.rst:293 msgid "" "To maintain compatibility with other platforms, not only the :envvar:`LANG` " "variable is tested, but a list of variables given as envvars parameter. The " @@ -489,21 +487,21 @@ msgid "" "``'LC_CTYPE'``, ``'LANG'`` and ``'LANGUAGE'``, in that order." msgstr "" -#: ../Doc/library/locale.rst:302 ../Doc/library/locale.rst:313 +#: ../Doc/library/locale.rst:300 ../Doc/library/locale.rst:311 msgid "" "Except for the code ``'C'``, the language code corresponds to :rfc:`1766`. " "*language code* and *encoding* may be ``None`` if their values cannot be " "determined." msgstr "" -#: ../Doc/library/locale.rst:309 +#: ../Doc/library/locale.rst:307 msgid "" "Returns the current setting for the given locale category as sequence " "containing *language code*, *encoding*. *category* may be one of the :const:" "`LC_\\*` values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`." msgstr "" -#: ../Doc/library/locale.rst:320 +#: ../Doc/library/locale.rst:318 msgid "" "Return the encoding used for text data, according to user preferences. User " "preferences are expressed differently on different systems, and might not be " @@ -511,49 +509,49 @@ msgid "" "guess." msgstr "" -#: ../Doc/library/locale.rst:325 +#: ../Doc/library/locale.rst:323 msgid "" "On some systems, it is necessary to invoke :func:`setlocale` to obtain the " "user preferences, so this function is not thread-safe. If invoking setlocale " "is not necessary or desired, *do_setlocale* should be set to ``False``." msgstr "" -#: ../Doc/library/locale.rst:329 +#: ../Doc/library/locale.rst:327 msgid "" "On Android or in the UTF-8 mode (:option:`-X` ``utf8`` option), always " "return ``'UTF-8'``, the locale and the *do_setlocale* argument are ignored." msgstr "" -#: ../Doc/library/locale.rst:332 +#: ../Doc/library/locale.rst:330 msgid "" "The function now always returns ``UTF-8`` on Android or if the UTF-8 mode is " "enabled." msgstr "" -#: ../Doc/library/locale.rst:339 +#: ../Doc/library/locale.rst:337 msgid "" "Returns a normalized locale code for the given locale name. The returned " "locale code is formatted for use with :func:`setlocale`. If normalization " "fails, the original name is returned unchanged." msgstr "" -#: ../Doc/library/locale.rst:343 +#: ../Doc/library/locale.rst:341 msgid "" "If the given encoding is not known, the function defaults to the default " "encoding for the locale code just like :func:`setlocale`." msgstr "" -#: ../Doc/library/locale.rst:349 +#: ../Doc/library/locale.rst:347 msgid "Sets the locale for *category* to the default setting." msgstr "" -#: ../Doc/library/locale.rst:351 +#: ../Doc/library/locale.rst:349 msgid "" "The default setting is determined by calling :func:`getdefaultlocale`. " "*category* defaults to :const:`LC_ALL`." msgstr "" -#: ../Doc/library/locale.rst:357 +#: ../Doc/library/locale.rst:355 msgid "" "Compares two strings according to the current :const:`LC_COLLATE` setting. " "As any other compare function, returns a negative, or a positive value, or " @@ -561,7 +559,7 @@ msgid "" "is equal to it." msgstr "" -#: ../Doc/library/locale.rst:365 +#: ../Doc/library/locale.rst:363 msgid "" "Transforms a string to one that can be used in locale-aware comparisons. " "For example, ``strxfrm(s1) < strxfrm(s2)`` is equivalent to ``strcoll(s1, " @@ -569,7 +567,7 @@ msgid "" "repeatedly, e.g. when collating a sequence of strings." msgstr "" -#: ../Doc/library/locale.rst:374 +#: ../Doc/library/locale.rst:372 msgid "" "Formats a number *val* according to the current :const:`LC_NUMERIC` setting. " "The format follows the conventions of the ``%`` operator. For floating " @@ -577,44 +575,44 @@ msgid "" "is true, also takes the grouping into account." msgstr "" -#: ../Doc/library/locale.rst:379 +#: ../Doc/library/locale.rst:377 msgid "" "If *monetary* is true, the conversion uses monetary thousands separator and " "grouping strings." msgstr "" -#: ../Doc/library/locale.rst:382 +#: ../Doc/library/locale.rst:380 msgid "" "Processes formatting specifiers as in ``format % val``, but takes the " "current locale settings into account." msgstr "" -#: ../Doc/library/locale.rst:385 +#: ../Doc/library/locale.rst:383 msgid "The *monetary* keyword parameter was added." msgstr "" -#: ../Doc/library/locale.rst:391 +#: ../Doc/library/locale.rst:389 msgid "" "Please note that this function works like :meth:`format_string` but will " "only work for exactly one ``%char`` specifier. For example, ``'%f'`` and " "``'%.0f'`` are both valid specifiers, but ``'%f KiB'`` is not." msgstr "" -#: ../Doc/library/locale.rst:395 +#: ../Doc/library/locale.rst:393 msgid "For whole format strings, use :func:`format_string`." msgstr "" -#: ../Doc/library/locale.rst:397 +#: ../Doc/library/locale.rst:395 msgid "Use :meth:`format_string` instead." msgstr "" -#: ../Doc/library/locale.rst:403 +#: ../Doc/library/locale.rst:401 msgid "" "Formats a number *val* according to the current :const:`LC_MONETARY` " "settings." msgstr "" -#: ../Doc/library/locale.rst:405 +#: ../Doc/library/locale.rst:403 msgid "" "The returned string includes the currency symbol if *symbol* is true, which " "is the default. If *grouping* is true (which is not the default), grouping " @@ -622,62 +620,62 @@ msgid "" "default), the international currency symbol is used." msgstr "" -#: ../Doc/library/locale.rst:410 +#: ../Doc/library/locale.rst:408 msgid "" "Note that this function will not work with the 'C' locale, so you have to " "set a locale via :func:`setlocale` first." msgstr "" -#: ../Doc/library/locale.rst:416 +#: ../Doc/library/locale.rst:414 msgid "" "Formats a floating point number using the same format as the built-in " "function ``str(float)``, but takes the decimal point into account." msgstr "" -#: ../Doc/library/locale.rst:422 +#: ../Doc/library/locale.rst:420 msgid "" "Converts a string into a normalized number string, following the :const:" "`LC_NUMERIC` settings." msgstr "" -#: ../Doc/library/locale.rst:430 +#: ../Doc/library/locale.rst:428 msgid "" "Converts a string to a floating point number, following the :const:" "`LC_NUMERIC` settings." msgstr "" -#: ../Doc/library/locale.rst:436 +#: ../Doc/library/locale.rst:434 msgid "" "Converts a string to an integer, following the :const:`LC_NUMERIC` " "conventions." msgstr "" -#: ../Doc/library/locale.rst:443 +#: ../Doc/library/locale.rst:441 msgid "" "Locale category for the character type functions. Depending on the settings " "of this category, the functions of module :mod:`string` dealing with case " "change their behaviour." msgstr "" -#: ../Doc/library/locale.rst:450 +#: ../Doc/library/locale.rst:448 msgid "" "Locale category for sorting strings. The functions :func:`strcoll` and :" "func:`strxfrm` of the :mod:`locale` module are affected." msgstr "" -#: ../Doc/library/locale.rst:456 +#: ../Doc/library/locale.rst:454 msgid "" "Locale category for the formatting of time. The function :func:`time." "strftime` follows these conventions." msgstr "" -#: ../Doc/library/locale.rst:462 +#: ../Doc/library/locale.rst:460 msgid "" "Locale category for formatting of monetary values. The available options " "are available from the :func:`localeconv` function." msgstr "" -#: ../Doc/library/locale.rst:468 +#: ../Doc/library/locale.rst:466 msgid "" "Locale category for message display. Python currently does not support " "application specific locale-aware messages. Messages displayed by the " @@ -685,7 +683,7 @@ msgid "" "affected by this category." msgstr "" -#: ../Doc/library/locale.rst:476 +#: ../Doc/library/locale.rst:474 msgid "" "Locale category for formatting numbers. The functions :func:`.format`, :" "func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`locale` module are " @@ -693,7 +691,7 @@ msgid "" "affected." msgstr "" -#: ../Doc/library/locale.rst:484 +#: ../Doc/library/locale.rst:482 msgid "" "Combination of all locale settings. If this flag is used when the locale is " "changed, setting the locale for all categories is attempted. If that fails " @@ -703,21 +701,21 @@ msgid "" "settings." msgstr "" -#: ../Doc/library/locale.rst:493 +#: ../Doc/library/locale.rst:491 msgid "" "This is a symbolic constant used for different values returned by :func:" "`localeconv`." msgstr "" -#: ../Doc/library/locale.rst:497 +#: ../Doc/library/locale.rst:495 msgid "Example::" msgstr "Exemple ::" -#: ../Doc/library/locale.rst:510 +#: ../Doc/library/locale.rst:508 msgid "Background, details, hints, tips and caveats" msgstr "" -#: ../Doc/library/locale.rst:512 +#: ../Doc/library/locale.rst:510 msgid "" "The C standard defines the locale as a program-wide property that may be " "relatively expensive to change. On top of that, some implementation are " @@ -725,7 +723,7 @@ msgid "" "This makes the locale somewhat painful to use correctly." msgstr "" -#: ../Doc/library/locale.rst:517 +#: ../Doc/library/locale.rst:515 msgid "" "Initially, when a program is started, the locale is the ``C`` locale, no " "matter what the user's preferred locale is. There is one exception: the :" @@ -735,7 +733,7 @@ msgid "" "categories by calling ``setlocale(LC_ALL, '')``." msgstr "" -#: ../Doc/library/locale.rst:524 +#: ../Doc/library/locale.rst:522 msgid "" "It is generally a bad idea to call :func:`setlocale` in some library " "routine, since as a side effect it affects the entire program. Saving and " @@ -743,7 +741,7 @@ msgid "" "that happen to run before the settings have been restored." msgstr "" -#: ../Doc/library/locale.rst:529 +#: ../Doc/library/locale.rst:527 msgid "" "If, when coding a module for general use, you need a locale independent " "version of an operation that is affected by the locale (such as certain " @@ -754,14 +752,14 @@ msgid "" "settings." msgstr "" -#: ../Doc/library/locale.rst:536 +#: ../Doc/library/locale.rst:534 msgid "" "The only way to perform numeric operations according to the locale is to use " "the special functions defined by this module: :func:`atof`, :func:`atoi`, :" "func:`.format`, :func:`.str`." msgstr "" -#: ../Doc/library/locale.rst:540 +#: ../Doc/library/locale.rst:538 msgid "" "There is no way to perform case conversions and character classifications " "according to the locale. For (Unicode) text strings these are done " @@ -772,11 +770,11 @@ msgid "" "whitespace." msgstr "" -#: ../Doc/library/locale.rst:551 +#: ../Doc/library/locale.rst:549 msgid "For extension writers and programs that embed Python" msgstr "" -#: ../Doc/library/locale.rst:553 +#: ../Doc/library/locale.rst:551 msgid "" "Extension modules should never call :func:`setlocale`, except to find out " "what the current locale is. But since the return value can only be used " @@ -784,7 +782,7 @@ msgid "" "whether or not the locale is ``C``)." msgstr "" -#: ../Doc/library/locale.rst:558 +#: ../Doc/library/locale.rst:556 msgid "" "When Python code uses the :mod:`locale` module to change the locale, this " "also affects the embedding application. If the embedding application " @@ -794,11 +792,11 @@ msgid "" "accessible as a shared library." msgstr "" -#: ../Doc/library/locale.rst:569 +#: ../Doc/library/locale.rst:567 msgid "Access to message catalogs" msgstr "" -#: ../Doc/library/locale.rst:577 +#: ../Doc/library/locale.rst:575 msgid "" "The locale module exposes the C library's gettext interface on systems that " "provide this interface. It consists of the functions :func:`!gettext`, :" @@ -809,7 +807,7 @@ msgid "" "for locating message catalogs." msgstr "" -#: ../Doc/library/locale.rst:584 +#: ../Doc/library/locale.rst:582 msgid "" "Python applications should normally find no need to invoke these functions, " "and should use :mod:`gettext` instead. A known exception to this rule are " diff --git a/library/operator.po b/library/operator.po index 6134ca8f..d9d22222 100644 --- a/library/operator.po +++ b/library/operator.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-10-18 10:21+0200\n" "PO-Revision-Date: 2018-12-11 22:46+0100\n" +"Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Antoine Wecxsteen\n" "X-Generator: Poedit 2.0.6\n" #: ../Doc/library/operator.rst:2 diff --git a/library/parser.po b/library/parser.po index 90658325..2dee2083 100644 --- a/library/parser.po +++ b/library/parser.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -78,7 +78,7 @@ msgid "" "important aspect of this structure which should be noted is that keywords " "used to identify the parent node type, such as the keyword :keyword:`if` in " "an :const:`if_stmt`, are included in the node tree without any special " -"treatment. For example, the :keyword:`if` keyword is represented by the " +"treatment. For example, the :keyword:`!if` keyword is represented by the " "tuple ``(1, 'if')``, where ``1`` is the numeric value associated with all :" "const:`NAME` tokens, including variable and function names defined by the " "user. In an alternate form returned when line number information is " diff --git a/library/pickle.po b/library/pickle.po index b10ac9d1..23e17f2b 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-10 11:27+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -98,37 +98,40 @@ msgid "" "`.pyc` files, the Python implementers reserve the right to change the " "serialization format in non-backwards compatible ways should the need arise. " "The :mod:`pickle` serialization format is guaranteed to be backwards " -"compatible across Python releases." -msgstr "" - -#: ../Doc/library/pickle.rst:77 -msgid "Comparison with ``json``" +"compatible across Python releases provided a compatible pickle protocol is " +"chosen and pickling and unpickling code deals with Python 2 to Python 3 type " +"differences if your data is crossing that unique breaking change language " +"boundary." msgstr "" #: ../Doc/library/pickle.rst:79 +msgid "Comparison with ``json``" +msgstr "" + +#: ../Doc/library/pickle.rst:81 msgid "" "There are fundamental differences between the pickle protocols and `JSON " "(JavaScript Object Notation) `_:" msgstr "" -#: ../Doc/library/pickle.rst:82 +#: ../Doc/library/pickle.rst:84 msgid "" "JSON is a text serialization format (it outputs unicode text, although most " "of the time it is then encoded to ``utf-8``), while pickle is a binary " "serialization format;" msgstr "" -#: ../Doc/library/pickle.rst:86 +#: ../Doc/library/pickle.rst:88 msgid "JSON is human-readable, while pickle is not;" msgstr "" -#: ../Doc/library/pickle.rst:88 +#: ../Doc/library/pickle.rst:90 msgid "" "JSON is interoperable and widely used outside of the Python ecosystem, while " "pickle is Python-specific;" msgstr "" -#: ../Doc/library/pickle.rst:91 +#: ../Doc/library/pickle.rst:93 msgid "" "JSON, by default, can only represent a subset of the Python built-in types, " "and no custom classes; pickle can represent an extremely large number of " @@ -137,17 +140,17 @@ msgid "" "`specific object APIs `)." msgstr "" -#: ../Doc/library/pickle.rst:98 +#: ../Doc/library/pickle.rst:100 msgid "" "The :mod:`json` module: a standard library module allowing JSON " "serialization and deserialization." msgstr "" -#: ../Doc/library/pickle.rst:105 +#: ../Doc/library/pickle.rst:107 msgid "Data stream format" msgstr "" -#: ../Doc/library/pickle.rst:110 +#: ../Doc/library/pickle.rst:112 msgid "" "The data format used by :mod:`pickle` is Python-specific. This has the " "advantage that there are no restrictions imposed by external standards such " @@ -156,47 +159,47 @@ msgid "" "objects." msgstr "" -#: ../Doc/library/pickle.rst:115 +#: ../Doc/library/pickle.rst:117 msgid "" "By default, the :mod:`pickle` data format uses a relatively compact binary " "representation. If you need optimal size characteristics, you can " "efficiently :doc:`compress ` pickled data." msgstr "" -#: ../Doc/library/pickle.rst:119 +#: ../Doc/library/pickle.rst:121 msgid "" "The module :mod:`pickletools` contains tools for analyzing data streams " "generated by :mod:`pickle`. :mod:`pickletools` source code has extensive " "comments about opcodes used by pickle protocols." msgstr "" -#: ../Doc/library/pickle.rst:123 +#: ../Doc/library/pickle.rst:125 msgid "" "There are currently 5 different protocols which can be used for pickling. " "The higher the protocol used, the more recent the version of Python needed " "to read the pickle produced." msgstr "" -#: ../Doc/library/pickle.rst:127 +#: ../Doc/library/pickle.rst:129 msgid "" "Protocol version 0 is the original \"human-readable\" protocol and is " "backwards compatible with earlier versions of Python." msgstr "" -#: ../Doc/library/pickle.rst:130 +#: ../Doc/library/pickle.rst:132 msgid "" "Protocol version 1 is an old binary format which is also compatible with " "earlier versions of Python." msgstr "" -#: ../Doc/library/pickle.rst:133 +#: ../Doc/library/pickle.rst:135 msgid "" "Protocol version 2 was introduced in Python 2.3. It provides much more " "efficient pickling of :term:`new-style class`\\es. Refer to :pep:`307` for " "information about improvements brought by protocol 2." msgstr "" -#: ../Doc/library/pickle.rst:137 +#: ../Doc/library/pickle.rst:139 msgid "" "Protocol version 3 was added in Python 3.0. It has explicit support for :" "class:`bytes` objects and cannot be unpickled by Python 2.x. This is the " @@ -204,7 +207,7 @@ msgid "" "Python 3 versions is required." msgstr "" -#: ../Doc/library/pickle.rst:142 +#: ../Doc/library/pickle.rst:144 msgid "" "Protocol version 4 was added in Python 3.4. It adds support for very large " "objects, pickling more kinds of objects, and some data format " @@ -212,7 +215,7 @@ msgid "" "brought by protocol 4." msgstr "" -#: ../Doc/library/pickle.rst:148 +#: ../Doc/library/pickle.rst:150 msgid "" "Serialization is a more primitive notion than persistence; although :mod:" "`pickle` reads and writes file objects, it does not handle the issue of " @@ -226,11 +229,11 @@ msgid "" "and unpickle objects on DBM-style database files." msgstr "" -#: ../Doc/library/pickle.rst:161 +#: ../Doc/library/pickle.rst:163 msgid "Module Interface" msgstr "" -#: ../Doc/library/pickle.rst:163 +#: ../Doc/library/pickle.rst:165 msgid "" "To serialize an object hierarchy, you simply call the :func:`dumps` " "function. Similarly, to de-serialize a data stream, you call the :func:" @@ -239,37 +242,37 @@ msgid "" "object, respectively." msgstr "" -#: ../Doc/library/pickle.rst:168 +#: ../Doc/library/pickle.rst:170 msgid "The :mod:`pickle` module provides the following constants:" msgstr "" -#: ../Doc/library/pickle.rst:173 +#: ../Doc/library/pickle.rst:175 msgid "" "An integer, the highest :ref:`protocol version ` " "available. This value can be passed as a *protocol* value to functions :" "func:`dump` and :func:`dumps` as well as the :class:`Pickler` constructor." msgstr "" -#: ../Doc/library/pickle.rst:180 +#: ../Doc/library/pickle.rst:182 msgid "" "An integer, the default :ref:`protocol version ` used for " "pickling. May be less than :data:`HIGHEST_PROTOCOL`. Currently the default " "protocol is 3, a new protocol designed for Python 3." msgstr "" -#: ../Doc/library/pickle.rst:185 +#: ../Doc/library/pickle.rst:187 msgid "" "The :mod:`pickle` module provides the following functions to make the " "pickling process more convenient:" msgstr "" -#: ../Doc/library/pickle.rst:190 +#: ../Doc/library/pickle.rst:192 msgid "" "Write a pickled representation of *obj* to the open :term:`file object` " "*file*. This is equivalent to ``Pickler(file, protocol).dump(obj)``." msgstr "" -#: ../Doc/library/pickle.rst:193 ../Doc/library/pickle.rst:289 +#: ../Doc/library/pickle.rst:195 ../Doc/library/pickle.rst:297 msgid "" "The optional *protocol* argument, an integer, tells the pickler to use the " "given protocol; supported protocols are 0 to :data:`HIGHEST_PROTOCOL`. If " @@ -277,7 +280,7 @@ msgid "" "number is specified, :data:`HIGHEST_PROTOCOL` is selected." msgstr "" -#: ../Doc/library/pickle.rst:198 ../Doc/library/pickle.rst:294 +#: ../Doc/library/pickle.rst:200 ../Doc/library/pickle.rst:302 msgid "" "The *file* argument must have a write() method that accepts a single bytes " "argument. It can thus be an on-disk file opened for binary writing, an :" @@ -285,40 +288,40 @@ msgid "" "interface." msgstr "" -#: ../Doc/library/pickle.rst:203 ../Doc/library/pickle.rst:299 +#: ../Doc/library/pickle.rst:205 ../Doc/library/pickle.rst:307 msgid "" "If *fix_imports* is true and *protocol* is less than 3, pickle will try to " "map the new Python 3 names to the old module names used in Python 2, so that " "the pickle data stream is readable with Python 2." msgstr "" -#: ../Doc/library/pickle.rst:209 +#: ../Doc/library/pickle.rst:211 msgid "" "Return the pickled representation of the object as a :class:`bytes` object, " "instead of writing it to a file." msgstr "" -#: ../Doc/library/pickle.rst:212 +#: ../Doc/library/pickle.rst:214 msgid "" "Arguments *protocol* and *fix_imports* have the same meaning as in :func:" "`dump`." msgstr "" -#: ../Doc/library/pickle.rst:217 +#: ../Doc/library/pickle.rst:219 msgid "" "Read a pickled object representation from the open :term:`file object` " "*file* and return the reconstituted object hierarchy specified therein. This " "is equivalent to ``Unpickler(file).load()``." msgstr "" -#: ../Doc/library/pickle.rst:221 ../Doc/library/pickle.rst:244 +#: ../Doc/library/pickle.rst:223 ../Doc/library/pickle.rst:249 msgid "" "The protocol version of the pickle is detected automatically, so no protocol " "argument is needed. Bytes past the pickled object's representation are " "ignored." msgstr "" -#: ../Doc/library/pickle.rst:225 +#: ../Doc/library/pickle.rst:227 msgid "" "The argument *file* must have two methods, a read() method that takes an " "integer argument, and a readline() method that requires no arguments. Both " @@ -327,8 +330,7 @@ msgid "" "that meets this interface." msgstr "" -#: ../Doc/library/pickle.rst:231 ../Doc/library/pickle.rst:248 -#: ../Doc/library/pickle.rst:367 +#: ../Doc/library/pickle.rst:233 ../Doc/library/pickle.rst:253 msgid "" "Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which " "are used to control compatibility support for pickle stream generated by " @@ -336,71 +338,74 @@ msgid "" "names to the new names used in Python 3. The *encoding* and *errors* tell " "pickle how to decode 8-bit string instances pickled by Python 2; these " "default to 'ASCII' and 'strict', respectively. The *encoding* can be " -"'bytes' to read these 8-bit string instances as bytes objects." +"'bytes' to read these 8-bit string instances as bytes objects. Using " +"``encoding='latin1'`` is required for unpickling NumPy arrays and instances " +"of :class:`~datetime.datetime`, :class:`~datetime.date` and :class:" +"`~datetime.time` pickled by Python 2." msgstr "" -#: ../Doc/library/pickle.rst:241 +#: ../Doc/library/pickle.rst:246 msgid "" "Read a pickled object hierarchy from a :class:`bytes` object and return the " "reconstituted object hierarchy specified therein." msgstr "" -#: ../Doc/library/pickle.rst:257 +#: ../Doc/library/pickle.rst:265 msgid "The :mod:`pickle` module defines three exceptions:" msgstr "" -#: ../Doc/library/pickle.rst:261 +#: ../Doc/library/pickle.rst:269 msgid "" "Common base class for the other pickling exceptions. It inherits :exc:" "`Exception`." msgstr "" -#: ../Doc/library/pickle.rst:266 +#: ../Doc/library/pickle.rst:274 msgid "" "Error raised when an unpicklable object is encountered by :class:`Pickler`. " "It inherits :exc:`PickleError`." msgstr "" -#: ../Doc/library/pickle.rst:269 +#: ../Doc/library/pickle.rst:277 msgid "" "Refer to :ref:`pickle-picklable` to learn what kinds of objects can be " "pickled." msgstr "" -#: ../Doc/library/pickle.rst:274 +#: ../Doc/library/pickle.rst:282 msgid "" "Error raised when there is a problem unpickling an object, such as a data " "corruption or a security violation. It inherits :exc:`PickleError`." msgstr "" -#: ../Doc/library/pickle.rst:277 +#: ../Doc/library/pickle.rst:285 msgid "" "Note that other exceptions may also be raised during unpickling, including " "(but not necessarily limited to) AttributeError, EOFError, ImportError, and " "IndexError." msgstr "" -#: ../Doc/library/pickle.rst:282 +#: ../Doc/library/pickle.rst:290 msgid "" "The :mod:`pickle` module exports two classes, :class:`Pickler` and :class:" "`Unpickler`:" msgstr "" -#: ../Doc/library/pickle.rst:287 +#: ../Doc/library/pickle.rst:295 msgid "This takes a binary file for writing a pickle data stream." msgstr "" -#: ../Doc/library/pickle.rst:305 +#: ../Doc/library/pickle.rst:313 msgid "" "Write a pickled representation of *obj* to the open file object given in the " "constructor." msgstr "" -#: ../Doc/library/pickle.rst:310 +#: ../Doc/library/pickle.rst:318 msgid "Do nothing by default. This exists so a subclass can override it." msgstr "" -#: ../Doc/library/pickle.rst:312 +#: ../Doc/library/pickle.rst:320 msgid "" "If :meth:`persistent_id` returns ``None``, *obj* is pickled as usual. Any " "other value causes :class:`Pickler` to emit the returned value as a " @@ -409,11 +414,11 @@ msgid "" "by :meth:`persistent_id` cannot itself have a persistent ID." msgstr "" -#: ../Doc/library/pickle.rst:318 ../Doc/library/pickle.rst:389 +#: ../Doc/library/pickle.rst:326 ../Doc/library/pickle.rst:397 msgid "See :ref:`pickle-persistent` for details and examples of uses." msgstr "" -#: ../Doc/library/pickle.rst:322 +#: ../Doc/library/pickle.rst:330 msgid "" "A pickler object's dispatch table is a registry of *reduction functions* of " "the kind which can be declared using :func:`copyreg.pickle`. It is a " @@ -422,7 +427,7 @@ msgid "" "should conform to the same interface as a :meth:`__reduce__` method." msgstr "" -#: ../Doc/library/pickle.rst:330 +#: ../Doc/library/pickle.rst:338 msgid "" "By default, a pickler object will not have a :attr:`dispatch_table` " "attribute, and it will instead use the global dispatch table managed by the :" @@ -433,11 +438,11 @@ msgid "" "table for instances of that class." msgstr "" -#: ../Doc/library/pickle.rst:339 +#: ../Doc/library/pickle.rst:347 msgid "See :ref:`pickle-dispatch` for usage examples." msgstr "" -#: ../Doc/library/pickle.rst:345 +#: ../Doc/library/pickle.rst:353 msgid "" "Deprecated. Enable fast mode if set to a true value. The fast mode disables " "the usage of memo, therefore speeding the pickling process by not generating " @@ -445,21 +450,21 @@ msgid "" "objects, doing otherwise will cause :class:`Pickler` to recurse infinitely." msgstr "" -#: ../Doc/library/pickle.rst:351 +#: ../Doc/library/pickle.rst:359 msgid "Use :func:`pickletools.optimize` if you need more compact pickles." msgstr "" -#: ../Doc/library/pickle.rst:356 +#: ../Doc/library/pickle.rst:364 msgid "This takes a binary file for reading a pickle data stream." msgstr "" -#: ../Doc/library/pickle.rst:358 +#: ../Doc/library/pickle.rst:366 msgid "" "The protocol version of the pickle is detected automatically, so no protocol " "argument is needed." msgstr "" -#: ../Doc/library/pickle.rst:361 +#: ../Doc/library/pickle.rst:369 msgid "" "The argument *file* must have two methods, a read() method that takes an " "integer argument, and a readline() method that requires no arguments. Both " @@ -468,25 +473,36 @@ msgid "" "custom object that meets this interface." msgstr "" -#: ../Doc/library/pickle.rst:377 +#: ../Doc/library/pickle.rst:375 +msgid "" +"Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which " +"are used to control compatibility support for pickle stream generated by " +"Python 2. If *fix_imports* is true, pickle will try to map the old Python 2 " +"names to the new names used in Python 3. The *encoding* and *errors* tell " +"pickle how to decode 8-bit string instances pickled by Python 2; these " +"default to 'ASCII' and 'strict', respectively. The *encoding* can be " +"'bytes' to read these 8-bit string instances as bytes objects." +msgstr "" + +#: ../Doc/library/pickle.rst:385 msgid "" "Read a pickled object representation from the open file object given in the " "constructor, and return the reconstituted object hierarchy specified " "therein. Bytes past the pickled object's representation are ignored." msgstr "" -#: ../Doc/library/pickle.rst:383 +#: ../Doc/library/pickle.rst:391 msgid "Raise an :exc:`UnpicklingError` by default." msgstr "" -#: ../Doc/library/pickle.rst:385 +#: ../Doc/library/pickle.rst:393 msgid "" "If defined, :meth:`persistent_load` should return the object specified by " "the persistent ID *pid*. If an invalid persistent ID is encountered, an :" "exc:`UnpicklingError` should be raised." msgstr "" -#: ../Doc/library/pickle.rst:393 +#: ../Doc/library/pickle.rst:401 msgid "" "Import *module* if necessary and return the object called *name* from it, " "where the *module* and *name* arguments are :class:`str` objects. Note, " @@ -494,59 +510,59 @@ msgid "" "functions." msgstr "" -#: ../Doc/library/pickle.rst:398 +#: ../Doc/library/pickle.rst:406 msgid "" "Subclasses may override this to gain control over what type of objects and " "how they can be loaded, potentially reducing security risks. Refer to :ref:" "`pickle-restrict` for details." msgstr "" -#: ../Doc/library/pickle.rst:406 +#: ../Doc/library/pickle.rst:414 msgid "What can be pickled and unpickled?" msgstr "" -#: ../Doc/library/pickle.rst:408 +#: ../Doc/library/pickle.rst:416 msgid "The following types can be pickled:" msgstr "" -#: ../Doc/library/pickle.rst:410 +#: ../Doc/library/pickle.rst:418 msgid "``None``, ``True``, and ``False``" msgstr "``None``, ``True``, and ``False``" -#: ../Doc/library/pickle.rst:412 +#: ../Doc/library/pickle.rst:420 msgid "integers, floating point numbers, complex numbers" msgstr "" -#: ../Doc/library/pickle.rst:414 +#: ../Doc/library/pickle.rst:422 msgid "strings, bytes, bytearrays" msgstr "" -#: ../Doc/library/pickle.rst:416 +#: ../Doc/library/pickle.rst:424 msgid "tuples, lists, sets, and dictionaries containing only picklable objects" msgstr "" -#: ../Doc/library/pickle.rst:418 +#: ../Doc/library/pickle.rst:426 msgid "" "functions defined at the top level of a module (using :keyword:`def`, not :" "keyword:`lambda`)" msgstr "" -#: ../Doc/library/pickle.rst:421 +#: ../Doc/library/pickle.rst:429 msgid "built-in functions defined at the top level of a module" msgstr "" -#: ../Doc/library/pickle.rst:423 +#: ../Doc/library/pickle.rst:431 msgid "classes that are defined at the top level of a module" msgstr "" -#: ../Doc/library/pickle.rst:425 +#: ../Doc/library/pickle.rst:433 msgid "" "instances of such classes whose :attr:`~object.__dict__` or the result of " "calling :meth:`__getstate__` is picklable (see section :ref:`pickle-inst` " "for details)." msgstr "" -#: ../Doc/library/pickle.rst:429 +#: ../Doc/library/pickle.rst:437 msgid "" "Attempts to pickle unpicklable objects will raise the :exc:`PicklingError` " "exception; when this happens, an unspecified number of bytes may have " @@ -556,7 +572,7 @@ msgid "" "limit with :func:`sys.setrecursionlimit`." msgstr "" -#: ../Doc/library/pickle.rst:436 +#: ../Doc/library/pickle.rst:444 msgid "" "Note that functions (built-in and user-defined) are pickled by \"fully " "qualified\" name reference, not by value. [#]_ This means that only the " @@ -567,7 +583,7 @@ msgid "" "exception will be raised. [#]_" msgstr "" -#: ../Doc/library/pickle.rst:443 +#: ../Doc/library/pickle.rst:451 msgid "" "Similarly, classes are pickled by named reference, so the same restrictions " "in the unpickling environment apply. Note that none of the class's code or " @@ -575,13 +591,13 @@ msgid "" "not restored in the unpickling environment::" msgstr "" -#: ../Doc/library/pickle.rst:453 +#: ../Doc/library/pickle.rst:461 msgid "" "These restrictions are why picklable functions and classes must be defined " "in the top level of a module." msgstr "" -#: ../Doc/library/pickle.rst:456 +#: ../Doc/library/pickle.rst:464 msgid "" "Similarly, when class instances are pickled, their class's code and data are " "not pickled along with them. Only the instance data are pickled. This is " @@ -593,17 +609,17 @@ msgid "" "method." msgstr "" -#: ../Doc/library/pickle.rst:468 +#: ../Doc/library/pickle.rst:476 msgid "Pickling Class Instances" msgstr "" -#: ../Doc/library/pickle.rst:472 +#: ../Doc/library/pickle.rst:480 msgid "" "In this section, we describe the general mechanisms available to you to " "define, customize, and control how class instances are pickled and unpickled." msgstr "" -#: ../Doc/library/pickle.rst:475 +#: ../Doc/library/pickle.rst:483 msgid "" "In most cases, no additional code is needed to make instances picklable. By " "default, pickle will retrieve the class and the attributes of an instance " @@ -613,13 +629,13 @@ msgid "" "following code shows an implementation of this behaviour::" msgstr "" -#: ../Doc/library/pickle.rst:490 +#: ../Doc/library/pickle.rst:498 msgid "" "Classes can alter the default behaviour by providing one or several special " "methods:" msgstr "" -#: ../Doc/library/pickle.rst:495 +#: ../Doc/library/pickle.rst:503 msgid "" "In protocols 2 and newer, classes that implements the :meth:" "`__getnewargs_ex__` method can dictate the values passed to the :meth:" @@ -629,37 +645,37 @@ msgid "" "passed to the :meth:`__new__` method upon unpickling." msgstr "" -#: ../Doc/library/pickle.rst:503 +#: ../Doc/library/pickle.rst:511 msgid "" "You should implement this method if the :meth:`__new__` method of your class " "requires keyword-only arguments. Otherwise, it is recommended for " "compatibility to implement :meth:`__getnewargs__`." msgstr "" -#: ../Doc/library/pickle.rst:507 +#: ../Doc/library/pickle.rst:515 msgid ":meth:`__getnewargs_ex__` is now used in protocols 2 and 3." msgstr "" -#: ../Doc/library/pickle.rst:513 +#: ../Doc/library/pickle.rst:521 msgid "" "This method serves a similar purpose as :meth:`__getnewargs_ex__`, but " "supports only positional arguments. It must return a tuple of arguments " "``args`` which will be passed to the :meth:`__new__` method upon unpickling." msgstr "" -#: ../Doc/library/pickle.rst:517 +#: ../Doc/library/pickle.rst:525 msgid "" ":meth:`__getnewargs__` will not be called if :meth:`__getnewargs_ex__` is " "defined." msgstr "" -#: ../Doc/library/pickle.rst:520 +#: ../Doc/library/pickle.rst:528 msgid "" "Before Python 3.6, :meth:`__getnewargs__` was called instead of :meth:" "`__getnewargs_ex__` in protocols 2 and 3." msgstr "" -#: ../Doc/library/pickle.rst:527 +#: ../Doc/library/pickle.rst:535 msgid "" "Classes can further influence how their instances are pickled; if the class " "defines the method :meth:`__getstate__`, it is called and the returned " @@ -668,7 +684,7 @@ msgid "" "the instance's :attr:`~object.__dict__` is pickled as usual." msgstr "" -#: ../Doc/library/pickle.rst:536 +#: ../Doc/library/pickle.rst:544 msgid "" "Upon unpickling, if the class defines :meth:`__setstate__`, it is called " "with the unpickled state. In that case, there is no requirement for the " @@ -676,19 +692,19 @@ msgid "" "dictionary and its items are assigned to the new instance's dictionary." msgstr "" -#: ../Doc/library/pickle.rst:543 +#: ../Doc/library/pickle.rst:551 msgid "" "If :meth:`__getstate__` returns a false value, the :meth:`__setstate__` " "method will not be called upon unpickling." msgstr "" -#: ../Doc/library/pickle.rst:547 +#: ../Doc/library/pickle.rst:555 msgid "" "Refer to the section :ref:`pickle-state` for more information about how to " "use the methods :meth:`__getstate__` and :meth:`__setstate__`." msgstr "" -#: ../Doc/library/pickle.rst:552 +#: ../Doc/library/pickle.rst:560 msgid "" "At unpickling time, some methods like :meth:`__getattr__`, :meth:" "`__getattribute__`, or :meth:`__setattr__` may be called upon the instance. " @@ -698,7 +714,7 @@ msgid "" "`__init__` will be called." msgstr "" -#: ../Doc/library/pickle.rst:561 +#: ../Doc/library/pickle.rst:569 msgid "" "As we shall see, pickle does not use directly the methods described above. " "In fact, these methods are part of the copy protocol which implements the :" @@ -707,7 +723,7 @@ msgid "" "objects. [#]_" msgstr "" -#: ../Doc/library/pickle.rst:567 +#: ../Doc/library/pickle.rst:575 msgid "" "Although powerful, implementing :meth:`__reduce__` directly in your classes " "is error prone. For this reason, class designers should use the high-level " @@ -717,14 +733,14 @@ msgid "" "pickling or both." msgstr "" -#: ../Doc/library/pickle.rst:576 +#: ../Doc/library/pickle.rst:584 msgid "" "The interface is currently defined as follows. The :meth:`__reduce__` " "method takes no argument and shall return either a string or preferably a " "tuple (the returned object is often referred to as the \"reduce value\")." msgstr "" -#: ../Doc/library/pickle.rst:580 +#: ../Doc/library/pickle.rst:588 msgid "" "If a string is returned, the string should be interpreted as the name of a " "global variable. It should be the object's local name relative to its " @@ -732,26 +748,26 @@ msgid "" "object's module. This behaviour is typically useful for singletons." msgstr "" -#: ../Doc/library/pickle.rst:585 +#: ../Doc/library/pickle.rst:593 msgid "" "When a tuple is returned, it must be between two and five items long. " "Optional items can either be omitted, or ``None`` can be provided as their " "value. The semantics of each item are in order:" msgstr "" -#: ../Doc/library/pickle.rst:591 +#: ../Doc/library/pickle.rst:599 msgid "" "A callable object that will be called to create the initial version of the " "object." msgstr "" -#: ../Doc/library/pickle.rst:594 +#: ../Doc/library/pickle.rst:602 msgid "" "A tuple of arguments for the callable object. An empty tuple must be given " "if the callable does not accept any argument." msgstr "" -#: ../Doc/library/pickle.rst:597 +#: ../Doc/library/pickle.rst:605 msgid "" "Optionally, the object's state, which will be passed to the object's :meth:" "`__setstate__` method as previously described. If the object has no such " @@ -759,7 +775,7 @@ msgid "" "object's :attr:`~object.__dict__` attribute." msgstr "" -#: ../Doc/library/pickle.rst:602 +#: ../Doc/library/pickle.rst:610 msgid "" "Optionally, an iterator (and not a sequence) yielding successive items. " "These items will be appended to the object either using ``obj.append(item)`` " @@ -771,7 +787,7 @@ msgid "" "must be supported.)" msgstr "" -#: ../Doc/library/pickle.rst:611 +#: ../Doc/library/pickle.rst:619 msgid "" "Optionally, an iterator (not a sequence) yielding successive key-value " "pairs. These items will be stored to the object using ``obj[key] = " @@ -779,7 +795,7 @@ msgid "" "by other classes as long as they implement :meth:`__setitem__`." msgstr "" -#: ../Doc/library/pickle.rst:619 +#: ../Doc/library/pickle.rst:627 msgid "" "Alternatively, a :meth:`__reduce_ex__` method may be defined. The only " "difference is this method should take a single integer argument, the " @@ -789,11 +805,11 @@ msgid "" "provide backwards-compatible reduce values for older Python releases." msgstr "" -#: ../Doc/library/pickle.rst:631 +#: ../Doc/library/pickle.rst:639 msgid "Persistence of External Objects" msgstr "" -#: ../Doc/library/pickle.rst:637 +#: ../Doc/library/pickle.rst:645 msgid "" "For the benefit of object persistence, the :mod:`pickle` module supports the " "notion of a reference to an object outside the pickled data stream. Such " @@ -802,7 +818,7 @@ msgid "" "(for any newer protocol)." msgstr "" -#: ../Doc/library/pickle.rst:643 +#: ../Doc/library/pickle.rst:651 msgid "" "The resolution of such persistent IDs is not defined by the :mod:`pickle` " "module; it will delegate this resolution to the user defined methods on the " @@ -810,7 +826,7 @@ msgid "" "persistent_load` respectively." msgstr "" -#: ../Doc/library/pickle.rst:648 +#: ../Doc/library/pickle.rst:656 msgid "" "To pickle objects that have an external persistent id, the pickler must have " "a custom :meth:`~Pickler.persistent_id` method that takes an object as an " @@ -821,59 +837,59 @@ msgid "" "persistent ID." msgstr "" -#: ../Doc/library/pickle.rst:655 +#: ../Doc/library/pickle.rst:663 msgid "" "To unpickle external objects, the unpickler must have a custom :meth:" "`~Unpickler.persistent_load` method that takes a persistent ID object and " "returns the referenced object." msgstr "" -#: ../Doc/library/pickle.rst:659 +#: ../Doc/library/pickle.rst:667 msgid "" "Here is a comprehensive example presenting how persistent ID can be used to " "pickle external objects by reference." msgstr "" -#: ../Doc/library/pickle.rst:667 +#: ../Doc/library/pickle.rst:675 msgid "Dispatch Tables" msgstr "" -#: ../Doc/library/pickle.rst:669 +#: ../Doc/library/pickle.rst:677 msgid "" "If one wants to customize pickling of some classes without disturbing any " "other code which depends on pickling, then one can create a pickler with a " "private dispatch table." msgstr "" -#: ../Doc/library/pickle.rst:673 +#: ../Doc/library/pickle.rst:681 msgid "" "The global dispatch table managed by the :mod:`copyreg` module is available " "as :data:`copyreg.dispatch_table`. Therefore, one may choose to use a " "modified copy of :data:`copyreg.dispatch_table` as a private dispatch table." msgstr "" -#: ../Doc/library/pickle.rst:678 +#: ../Doc/library/pickle.rst:686 msgid "For example ::" msgstr "Par exemple ::" -#: ../Doc/library/pickle.rst:685 +#: ../Doc/library/pickle.rst:693 msgid "" "creates an instance of :class:`pickle.Pickler` with a private dispatch table " "which handles the ``SomeClass`` class specially. Alternatively, the code ::" msgstr "" -#: ../Doc/library/pickle.rst:695 +#: ../Doc/library/pickle.rst:703 msgid "" "does the same, but all instances of ``MyPickler`` will by default share the " "same dispatch table. The equivalent code using the :mod:`copyreg` module " "is ::" msgstr "" -#: ../Doc/library/pickle.rst:706 +#: ../Doc/library/pickle.rst:714 msgid "Handling Stateful Objects" msgstr "" -#: ../Doc/library/pickle.rst:712 +#: ../Doc/library/pickle.rst:720 msgid "" "Here's an example that shows how to modify pickling behavior for a class. " "The :class:`TextReader` class opens a text file, and returns the line number " @@ -885,15 +901,15 @@ msgid "" "behavior. ::" msgstr "" -#: ../Doc/library/pickle.rst:758 +#: ../Doc/library/pickle.rst:766 msgid "A sample usage might be something like this::" msgstr "" -#: ../Doc/library/pickle.rst:773 +#: ../Doc/library/pickle.rst:781 msgid "Restricting Globals" msgstr "" -#: ../Doc/library/pickle.rst:778 +#: ../Doc/library/pickle.rst:786 msgid "" "By default, unpickling will import any class or function that it finds in " "the pickle data. For many applications, this behaviour is unacceptable as " @@ -901,7 +917,7 @@ msgid "" "what this hand-crafted pickle data stream does when loaded::" msgstr "" -#: ../Doc/library/pickle.rst:788 +#: ../Doc/library/pickle.rst:796 msgid "" "In this example, the unpickler imports the :func:`os.system` function and " "then apply the string argument \"echo hello world\". Although this example " @@ -909,7 +925,7 @@ msgid "" "system." msgstr "" -#: ../Doc/library/pickle.rst:792 +#: ../Doc/library/pickle.rst:800 msgid "" "For this reason, you may want to control what gets unpickled by customizing :" "meth:`Unpickler.find_class`. Unlike its name suggests, :meth:`Unpickler." @@ -918,17 +934,17 @@ msgid "" "restrict them to a safe subset." msgstr "" -#: ../Doc/library/pickle.rst:798 +#: ../Doc/library/pickle.rst:806 msgid "" "Here is an example of an unpickler allowing only few safe classes from the :" "mod:`builtins` module to be loaded::" msgstr "" -#: ../Doc/library/pickle.rst:827 +#: ../Doc/library/pickle.rst:835 msgid "A sample usage of our unpickler working has intended::" msgstr "" -#: ../Doc/library/pickle.rst:846 +#: ../Doc/library/pickle.rst:854 msgid "" "As our examples shows, you have to be careful with what you allow to be " "unpickled. Therefore if security is a concern, you may want to consider " @@ -936,97 +952,97 @@ msgid "" "party solutions." msgstr "" -#: ../Doc/library/pickle.rst:853 +#: ../Doc/library/pickle.rst:861 msgid "Performance" msgstr "" -#: ../Doc/library/pickle.rst:855 +#: ../Doc/library/pickle.rst:863 msgid "" "Recent versions of the pickle protocol (from protocol 2 and upwards) feature " "efficient binary encodings for several common features and built-in types. " "Also, the :mod:`pickle` module has a transparent optimizer written in C." msgstr "" -#: ../Doc/library/pickle.rst:863 +#: ../Doc/library/pickle.rst:871 msgid "Examples" msgstr "Exemples" -#: ../Doc/library/pickle.rst:865 +#: ../Doc/library/pickle.rst:873 msgid "" "For the simplest code, use the :func:`dump` and :func:`load` functions. ::" msgstr "" -#: ../Doc/library/pickle.rst:881 +#: ../Doc/library/pickle.rst:889 msgid "The following example reads the resulting pickled data. ::" msgstr "" -#: ../Doc/library/pickle.rst:898 +#: ../Doc/library/pickle.rst:906 msgid "Module :mod:`copyreg`" msgstr "" -#: ../Doc/library/pickle.rst:898 +#: ../Doc/library/pickle.rst:906 msgid "Pickle interface constructor registration for extension types." msgstr "" -#: ../Doc/library/pickle.rst:901 +#: ../Doc/library/pickle.rst:909 msgid "Module :mod:`pickletools`" msgstr "" -#: ../Doc/library/pickle.rst:901 +#: ../Doc/library/pickle.rst:909 msgid "Tools for working with and analyzing pickled data." msgstr "" -#: ../Doc/library/pickle.rst:904 +#: ../Doc/library/pickle.rst:912 msgid "Module :mod:`shelve`" msgstr "" -#: ../Doc/library/pickle.rst:904 +#: ../Doc/library/pickle.rst:912 msgid "Indexed databases of objects; uses :mod:`pickle`." msgstr "" -#: ../Doc/library/pickle.rst:907 +#: ../Doc/library/pickle.rst:915 msgid "Module :mod:`copy`" msgstr "" -#: ../Doc/library/pickle.rst:907 +#: ../Doc/library/pickle.rst:915 msgid "Shallow and deep object copying." msgstr "" -#: ../Doc/library/pickle.rst:909 +#: ../Doc/library/pickle.rst:917 msgid "Module :mod:`marshal`" msgstr "" -#: ../Doc/library/pickle.rst:910 +#: ../Doc/library/pickle.rst:918 msgid "High-performance serialization of built-in types." msgstr "" -#: ../Doc/library/pickle.rst:914 +#: ../Doc/library/pickle.rst:922 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/pickle.rst:915 +#: ../Doc/library/pickle.rst:923 msgid "Don't confuse this with the :mod:`marshal` module" msgstr "" -#: ../Doc/library/pickle.rst:917 +#: ../Doc/library/pickle.rst:925 msgid "" -"This is why :keyword:`lambda` functions cannot be pickled: all :keyword:" -"`lambda` functions share the same name: ````." +"This is why :keyword:`lambda` functions cannot be pickled: all :keyword:`!" +"lambda` functions share the same name: ````." msgstr "" -#: ../Doc/library/pickle.rst:920 +#: ../Doc/library/pickle.rst:928 msgid "" "The exception raised will likely be an :exc:`ImportError` or an :exc:" "`AttributeError` but it could be something else." msgstr "" -#: ../Doc/library/pickle.rst:923 +#: ../Doc/library/pickle.rst:931 msgid "" "The :mod:`copy` module uses this protocol for shallow and deep copying " "operations." msgstr "" -#: ../Doc/library/pickle.rst:926 +#: ../Doc/library/pickle.rst:934 msgid "" "The limitation on alphanumeric characters is due to the fact the persistent " "IDs, in protocol 0, are delimited by the newline character. Therefore if " diff --git a/library/pprint.po b/library/pprint.po index ae5d7597..dacb2462 100644 --- a/library/pprint.po +++ b/library/pprint.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-10-20 12:15+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -64,7 +64,7 @@ msgstr "" msgid "The :mod:`pprint` module defines one class:" msgstr "Le module :mod:`pprint` définit une seule classe : ::" -#: ../Doc/library/pprint.rst:36 +#: ../Doc/library/pprint.rst:38 msgid "" "Construct a :class:`PrettyPrinter` instance. This constructor understands " "several keyword parameters. An output stream may be set using the *stream* " @@ -102,17 +102,17 @@ msgstr "" "*compact* est initialisé à *True*, tous les éléments qui peuvent tenir dans " "la largeur définie sont formatés sur chaque ligne de sortie." -#: ../Doc/library/pprint.rst:53 ../Doc/library/pprint.rst:88 -#: ../Doc/library/pprint.rst:102 +#: ../Doc/library/pprint.rst:55 ../Doc/library/pprint.rst:90 +#: ../Doc/library/pprint.rst:104 msgid "Added the *compact* parameter." msgstr "Ajout du paramètre *compact*." -#: ../Doc/library/pprint.rst:80 +#: ../Doc/library/pprint.rst:82 msgid "The :mod:`pprint` module also provides several shortcut functions:" msgstr "" "Le module :mod:`pprint` fournit aussi quelques fonctions de raccourcis : ::" -#: ../Doc/library/pprint.rst:84 +#: ../Doc/library/pprint.rst:86 msgid "" "Return the formatted representation of *object* as a string. *indent*, " "*width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter` " @@ -122,7 +122,7 @@ msgstr "" "caractères. *indent*, *width*, *depth* et *compact* sont passés au " "constructeur de :class:`PrettyPrinter` comme paramètres de formatage." -#: ../Doc/library/pprint.rst:95 +#: ../Doc/library/pprint.rst:97 msgid "" "Prints the formatted representation of *object* on *stream*, followed by a " "newline. If *stream* is ``None``, ``sys.stdout`` is used. This may be used " @@ -139,7 +139,7 @@ msgstr "" "portée). *indent*, *width*, *depth* et *compact* sont passés au constructeur " "de classe :class:`PrettyPrinter` comme paramètres de formatage." -#: ../Doc/library/pprint.rst:121 +#: ../Doc/library/pprint.rst:123 msgid "" "Determine if the formatted representation of *object* is \"readable,\" or " "can be used to reconstruct the value using :func:`eval`. This always " @@ -149,15 +149,15 @@ msgstr "" "peut être utilisé pour recomposer sa valeur en utilisant la fonction :func:" "`eval`. Cela renvoie toujours ``False`` pour les objets récursifs." -#: ../Doc/library/pprint.rst:131 +#: ../Doc/library/pprint.rst:133 msgid "Determine if *object* requires a recursive representation." msgstr "Détermine si *object* requiert une représentation récursive." -#: ../Doc/library/pprint.rst:134 +#: ../Doc/library/pprint.rst:136 msgid "One more support function is also defined:" msgstr "Une dernière fonction de support est définie ainsi : ::" -#: ../Doc/library/pprint.rst:138 +#: ../Doc/library/pprint.rst:140 msgid "" "Return a string representation of *object*, protected against recursive data " "structures. If the representation of *object* exposes a recursive entry, " @@ -170,17 +170,17 @@ msgstr "" "représentée telle que ````. Par " "ailleurs, la représentation de l’objet n’est pas formatée." -#: ../Doc/library/pprint.rst:150 +#: ../Doc/library/pprint.rst:152 msgid "PrettyPrinter Objects" msgstr "Les Objets PrettyPrinter" -#: ../Doc/library/pprint.rst:152 +#: ../Doc/library/pprint.rst:154 msgid ":class:`PrettyPrinter` instances have the following methods:" msgstr "" "Les instances de la classe :class:`PrettyPrinter` ont les méthodes " "suivantes : ::" -#: ../Doc/library/pprint.rst:157 +#: ../Doc/library/pprint.rst:159 msgid "" "Return the formatted representation of *object*. This takes into account " "the options passed to the :class:`PrettyPrinter` constructor." @@ -188,7 +188,7 @@ msgstr "" "Renvoie la représentation formatée de *object*. Cela prend en compte les " "options passées au constructeur de la classe :class:`PrettyPrinter`." -#: ../Doc/library/pprint.rst:163 +#: ../Doc/library/pprint.rst:165 msgid "" "Print the formatted representation of *object* on the configured stream, " "followed by a newline." @@ -196,7 +196,7 @@ msgstr "" "Affiche sur le flux configuré la représentation formatée de *object*, suivie " "d’une fin de ligne." -#: ../Doc/library/pprint.rst:166 +#: ../Doc/library/pprint.rst:168 msgid "" "The following methods provide the implementations for the corresponding " "functions of the same names. Using these methods on an instance is slightly " @@ -208,7 +208,7 @@ msgstr "" "instance est légèrement plus efficace, car les nouveaux objets :class:" "`PrettyPrinter` n’ont pas besoin d’être créés." -#: ../Doc/library/pprint.rst:176 +#: ../Doc/library/pprint.rst:178 msgid "" "Determine if the formatted representation of the object is \"readable,\" or " "can be used to reconstruct the value using :func:`eval`. Note that this " @@ -222,11 +222,11 @@ msgstr "" "le paramètre *depth* de la classe :class:`PrettyPrinter` est initialisé et " "que l’objet est plus « profond » que permis, cela renvoie ``False``." -#: ../Doc/library/pprint.rst:185 +#: ../Doc/library/pprint.rst:187 msgid "Determine if the object requires a recursive representation." msgstr "Détermine si l’objet nécessite une représentation récursive." -#: ../Doc/library/pprint.rst:187 +#: ../Doc/library/pprint.rst:189 msgid "" "This method is provided as a hook to allow subclasses to modify the way " "objects are converted to strings. The default implementation uses the " @@ -237,7 +237,7 @@ msgstr "" "classes de modifier la façon dont les objets sont convertis en chaînes. " "L’implémentation par défaut est celle de la fonction :func:`saferepr`." -#: ../Doc/library/pprint.rst:194 +#: ../Doc/library/pprint.rst:196 msgid "" "Returns three values: the formatted version of *object* as a string, a flag " "indicating whether the result is readable, and a flag indicating whether " @@ -270,11 +270,11 @@ msgstr "" "courant; les appels récursifs doivent être passés à une valeur inférieure à " "celle de l’appel courant." -#: ../Doc/library/pprint.rst:212 +#: ../Doc/library/pprint.rst:214 msgid "Example" msgstr "Exemple" -#: ../Doc/library/pprint.rst:214 +#: ../Doc/library/pprint.rst:216 msgid "" "To demonstrate several uses of the :func:`pprint` function and its " "parameters, let's fetch information about a project from `PyPI `_ : ::" -#: ../Doc/library/pprint.rst:223 +#: ../Doc/library/pprint.rst:225 msgid "In its basic form, :func:`pprint` shows the whole object::" msgstr "" "Dans sa forme basique, la fonction :func:`pprint` affiche l’intégralité de " "l’objet : ::" -#: ../Doc/library/pprint.rst:279 +#: ../Doc/library/pprint.rst:281 msgid "" "The result can be limited to a certain *depth* (ellipsis is used for deeper " "contents)::" @@ -298,7 +298,7 @@ msgstr "" "Le résultat peut être limité à une certaine profondeur en initialisant " "*depth*. ( ``…`` est utilisé pour des contenus plus « profonds ») : ::" -#: ../Doc/library/pprint.rst:325 +#: ../Doc/library/pprint.rst:327 msgid "" "Additionally, maximum character *width* can be suggested. If a long object " "cannot be split, the specified width will be exceeded::" diff --git a/library/py_compile.po b/library/py_compile.po index 8bfeabad..b6a479c5 100644 --- a/library/py_compile.po +++ b/library/py_compile.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -76,10 +76,10 @@ msgstr "" #: ../Doc/library/py_compile.rst:56 msgid "" "*invalidation_mode* should be a member of the :class:`PycInvalidationMode` " -"enum and controls how the generated ``.pyc`` files are invalidated at " -"runtime. If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set, " -"*invalidation_mode* will be forced to :attr:`PycInvalidationMode." -"CHECKED_HASH`." +"enum and controls how the generated bytecode cache is invalidated at " +"runtime. The default is :attr:`PycInvalidationMode.CHECKED_HASH` if the :" +"envvar:`SOURCE_DATE_EPOCH` environment variable is set, otherwise the " +"default is :attr:`PycInvalidationMode.TIMESTAMP`." msgstr "" #: ../Doc/library/py_compile.rst:62 @@ -106,7 +106,14 @@ msgid "" "CHECKED_HASH`." msgstr "" -#: ../Doc/library/py_compile.rst:83 +#: ../Doc/library/py_compile.rst:80 +msgid "" +"The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer overrides the " +"value of the *invalidation_mode* argument, and determines its default value " +"instead." +msgstr "" + +#: ../Doc/library/py_compile.rst:88 msgid "" "A enumeration of possible methods the interpreter can use to determine " "whether a bytecode file is up to date with a source file. The ``.pyc`` file " @@ -115,34 +122,34 @@ msgid "" "at runtime." msgstr "" -#: ../Doc/library/py_compile.rst:93 +#: ../Doc/library/py_compile.rst:98 msgid "" "The ``.pyc`` file includes the timestamp and size of the source file, which " "Python will compare against the metadata of the source file at runtime to " "determine if the ``.pyc`` file needs to be regenerated." msgstr "" -#: ../Doc/library/py_compile.rst:99 +#: ../Doc/library/py_compile.rst:104 msgid "" "The ``.pyc`` file includes a hash of the source file content, which Python " "will compare against the source at runtime to determine if the ``.pyc`` file " "needs to be regenerated." msgstr "" -#: ../Doc/library/py_compile.rst:105 +#: ../Doc/library/py_compile.rst:110 msgid "" "Like :attr:`CHECKED_HASH`, the ``.pyc`` file includes a hash of the source " "file content. However, Python will at runtime assume the ``.pyc`` file is up " "to date and not validate the ``.pyc`` against the source file at all." msgstr "" -#: ../Doc/library/py_compile.rst:109 +#: ../Doc/library/py_compile.rst:114 msgid "" "This option is useful when the ``.pycs`` are kept up to date by some system " "external to Python like a build system." msgstr "" -#: ../Doc/library/py_compile.rst:115 +#: ../Doc/library/py_compile.rst:120 msgid "" "Compile several source files. The files named in *args* (or on the command " "line, if *args* is ``None``) are compiled and the resulting byte-code is " @@ -152,21 +159,21 @@ msgid "" "standard input." msgstr "" -#: ../Doc/library/py_compile.rst:122 +#: ../Doc/library/py_compile.rst:127 msgid "Added support for ``'-'``." msgstr "" -#: ../Doc/library/py_compile.rst:125 +#: ../Doc/library/py_compile.rst:130 msgid "" "When this module is run as a script, the :func:`main` is used to compile all " "the files named on the command line. The exit status is nonzero if one of " "the files could not be compiled." msgstr "" -#: ../Doc/library/py_compile.rst:132 +#: ../Doc/library/py_compile.rst:137 msgid "Module :mod:`compileall`" msgstr "" -#: ../Doc/library/py_compile.rst:133 +#: ../Doc/library/py_compile.rst:138 msgid "Utilities to compile all Python source files in a directory tree." msgstr "" diff --git a/library/reprlib.po b/library/reprlib.po index 6026ddcc..34d71e43 100644 --- a/library/reprlib.po +++ b/library/reprlib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -62,44 +62,44 @@ msgid "" "string instead." msgstr "" -#: ../Doc/library/reprlib.rst:47 +#: ../Doc/library/reprlib.rst:50 msgid "" "Decorator for :meth:`__repr__` methods to detect recursive calls within the " "same thread. If a recursive call is made, the *fillvalue* is returned, " "otherwise, the usual :meth:`__repr__` call is made. For example:" msgstr "" -#: ../Doc/library/reprlib.rst:69 +#: ../Doc/library/reprlib.rst:72 msgid "Repr Objects" msgstr "" -#: ../Doc/library/reprlib.rst:71 +#: ../Doc/library/reprlib.rst:74 msgid "" ":class:`Repr` instances provide several attributes which can be used to " "provide size limits for the representations of different object types, and " "methods which format specific object types." msgstr "" -#: ../Doc/library/reprlib.rst:78 +#: ../Doc/library/reprlib.rst:81 msgid "" "Depth limit on the creation of recursive representations. The default is " "``6``." msgstr "" -#: ../Doc/library/reprlib.rst:89 +#: ../Doc/library/reprlib.rst:92 msgid "" "Limits on the number of entries represented for the named object type. The " "default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` " "for the others." msgstr "" -#: ../Doc/library/reprlib.rst:96 +#: ../Doc/library/reprlib.rst:99 msgid "" "Maximum number of characters in the representation for an integer. Digits " "are dropped from the middle. The default is ``40``." msgstr "" -#: ../Doc/library/reprlib.rst:102 +#: ../Doc/library/reprlib.rst:105 msgid "" "Limit on the number of characters in the representation of the string. Note " "that the \"normal\" representation of the string is used as the character " @@ -107,20 +107,20 @@ msgid "" "mangled when the representation is shortened. The default is ``30``." msgstr "" -#: ../Doc/library/reprlib.rst:110 +#: ../Doc/library/reprlib.rst:113 msgid "" "This limit is used to control the size of object types for which no specific " "formatting method is available on the :class:`Repr` object. It is applied in " "a similar manner as :attr:`maxstring`. The default is ``20``." msgstr "" -#: ../Doc/library/reprlib.rst:117 +#: ../Doc/library/reprlib.rst:120 msgid "" "The equivalent to the built-in :func:`repr` that uses the formatting imposed " "by the instance." msgstr "" -#: ../Doc/library/reprlib.rst:123 +#: ../Doc/library/reprlib.rst:126 msgid "" "Recursive implementation used by :meth:`.repr`. This uses the type of *obj* " "to determine which formatting method to call, passing it *obj* and *level*. " @@ -129,7 +129,7 @@ msgid "" "call." msgstr "" -#: ../Doc/library/reprlib.rst:132 +#: ../Doc/library/reprlib.rst:135 msgid "" "Formatting methods for specific types are implemented as methods with a name " "based on the type name. In the method name, **TYPE** is replaced by ``'_'." @@ -138,11 +138,11 @@ msgid "" "should call ``self.repr1(subobj, level - 1)``." msgstr "" -#: ../Doc/library/reprlib.rst:142 +#: ../Doc/library/reprlib.rst:145 msgid "Subclassing Repr Objects" msgstr "" -#: ../Doc/library/reprlib.rst:144 +#: ../Doc/library/reprlib.rst:147 msgid "" "The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of :" "class:`Repr` to add support for additional built-in object types or to " diff --git a/library/select.po b/library/select.po index a0e14299..8630aa66 100644 --- a/library/select.po +++ b/library/select.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -200,8 +200,8 @@ msgid "" msgstr "" #: ../Doc/library/select.rst:160 ../Doc/library/select.rst:266 -#: ../Doc/library/select.rst:360 ../Doc/library/select.rst:448 -#: ../Doc/library/select.rst:488 +#: ../Doc/library/select.rst:363 ../Doc/library/select.rst:451 +#: ../Doc/library/select.rst:491 msgid "" "The function is now retried with a recomputed timeout when interrupted by a " "signal, except if the signal handler raises an exception (see :pep:`475` for " @@ -252,7 +252,7 @@ msgstr "" msgid "Return the file descriptor number of the polling object." msgstr "" -#: ../Doc/library/select.rst:217 ../Doc/library/select.rst:383 +#: ../Doc/library/select.rst:217 ../Doc/library/select.rst:386 msgid "" "Register a file descriptor with the polling object. Future calls to the :" "meth:`poll` method will then check whether the file descriptor has any " @@ -282,7 +282,7 @@ msgid "" "(a bit) more efficient that doing the same explicitly." msgstr "" -#: ../Doc/library/select.rst:245 ../Doc/library/select.rst:427 +#: ../Doc/library/select.rst:245 ../Doc/library/select.rst:430 msgid "" "Remove a file descriptor being tracked by a polling object. Just like the :" "meth:`register` method, *fd* can be an integer or an object with a :meth:" @@ -321,17 +321,17 @@ msgstr "" msgid "*eventmask*" msgstr "" -#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:395 -#: ../Doc/library/select.rst:514 ../Doc/library/select.rst:543 -#: ../Doc/library/select.rst:574 ../Doc/library/select.rst:582 -#: ../Doc/library/select.rst:602 ../Doc/library/select.rst:625 +#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:398 +#: ../Doc/library/select.rst:517 ../Doc/library/select.rst:546 +#: ../Doc/library/select.rst:577 ../Doc/library/select.rst:585 +#: ../Doc/library/select.rst:605 ../Doc/library/select.rst:628 msgid "Constant" msgstr "Constante" -#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:395 -#: ../Doc/library/select.rst:514 ../Doc/library/select.rst:543 -#: ../Doc/library/select.rst:574 ../Doc/library/select.rst:582 -#: ../Doc/library/select.rst:602 ../Doc/library/select.rst:625 +#: ../Doc/library/select.rst:283 ../Doc/library/select.rst:398 +#: ../Doc/library/select.rst:517 ../Doc/library/select.rst:546 +#: ../Doc/library/select.rst:577 ../Doc/library/select.rst:585 +#: ../Doc/library/select.rst:605 ../Doc/library/select.rst:628 msgid "Meaning" msgstr "Signification" @@ -452,43 +452,49 @@ msgstr ":const:`EPOLLMSG`" msgid "Ignored." msgstr "" -#: ../Doc/library/select.rst:323 +#: ../Doc/library/select.rst:320 +msgid "" +":const:`EPOLLEXCLUSIVE` was added. It's only supported by Linux Kernel 4.5 " +"or later." +msgstr "" + +#: ../Doc/library/select.rst:326 msgid "Close the control file descriptor of the epoll object." msgstr "" -#: ../Doc/library/select.rst:328 +#: ../Doc/library/select.rst:331 msgid "``True`` if the epoll object is closed." msgstr "" -#: ../Doc/library/select.rst:333 ../Doc/library/select.rst:472 +#: ../Doc/library/select.rst:336 ../Doc/library/select.rst:475 msgid "Return the file descriptor number of the control fd." msgstr "" -#: ../Doc/library/select.rst:338 +#: ../Doc/library/select.rst:341 msgid "Create an epoll object from a given file descriptor." msgstr "" -#: ../Doc/library/select.rst:343 +#: ../Doc/library/select.rst:346 msgid "Register a fd descriptor with the epoll object." msgstr "" -#: ../Doc/library/select.rst:348 +#: ../Doc/library/select.rst:351 msgid "Modify a registered file descriptor." msgstr "" -#: ../Doc/library/select.rst:353 +#: ../Doc/library/select.rst:356 msgid "Remove a registered file descriptor from the epoll object." msgstr "" -#: ../Doc/library/select.rst:358 +#: ../Doc/library/select.rst:361 msgid "Wait for events. timeout in seconds (float)" msgstr "" -#: ../Doc/library/select.rst:370 +#: ../Doc/library/select.rst:373 msgid "Polling Objects" msgstr "" -#: ../Doc/library/select.rst:372 +#: ../Doc/library/select.rst:375 msgid "" "The :c:func:`poll` system call, supported on most Unix systems, provides " "better scalability for network servers that service many, many clients at " @@ -500,7 +506,7 @@ msgid "" "descriptors)." msgstr "" -#: ../Doc/library/select.rst:389 +#: ../Doc/library/select.rst:392 msgid "" "*eventmask* is an optional bitmask describing the type of events you want to " "check for, and can be a combination of the constants :const:`POLLIN`, :const:" @@ -508,70 +514,70 @@ msgid "" "specified, the default value used will check for all 3 types of events." msgstr "" -#: ../Doc/library/select.rst:397 +#: ../Doc/library/select.rst:400 msgid ":const:`POLLIN`" msgstr ":const:`POLLIN`" -#: ../Doc/library/select.rst:397 +#: ../Doc/library/select.rst:400 msgid "There is data to read" msgstr "" -#: ../Doc/library/select.rst:399 +#: ../Doc/library/select.rst:402 msgid ":const:`POLLPRI`" msgstr ":const:`POLLPRI`" -#: ../Doc/library/select.rst:399 +#: ../Doc/library/select.rst:402 msgid "There is urgent data to read" msgstr "" -#: ../Doc/library/select.rst:401 +#: ../Doc/library/select.rst:404 msgid ":const:`POLLOUT`" msgstr ":const:`POLLOUT`" -#: ../Doc/library/select.rst:401 +#: ../Doc/library/select.rst:404 msgid "Ready for output: writing will not block" msgstr "" -#: ../Doc/library/select.rst:403 +#: ../Doc/library/select.rst:406 msgid ":const:`POLLERR`" msgstr ":const:`POLLERR`" -#: ../Doc/library/select.rst:403 +#: ../Doc/library/select.rst:406 msgid "Error condition of some sort" msgstr "" -#: ../Doc/library/select.rst:405 +#: ../Doc/library/select.rst:408 msgid ":const:`POLLHUP`" msgstr ":const:`POLLHUP`" -#: ../Doc/library/select.rst:405 +#: ../Doc/library/select.rst:408 msgid "Hung up" msgstr "" -#: ../Doc/library/select.rst:407 +#: ../Doc/library/select.rst:410 msgid ":const:`POLLRDHUP`" msgstr "" -#: ../Doc/library/select.rst:407 +#: ../Doc/library/select.rst:410 msgid "" "Stream socket peer closed connection, or shut down writing half of connection" msgstr "" -#: ../Doc/library/select.rst:410 +#: ../Doc/library/select.rst:413 msgid ":const:`POLLNVAL`" msgstr ":const:`POLLNVAL`" -#: ../Doc/library/select.rst:410 +#: ../Doc/library/select.rst:413 msgid "Invalid request: descriptor not open" msgstr "" -#: ../Doc/library/select.rst:413 +#: ../Doc/library/select.rst:416 msgid "" "Registering a file descriptor that's already registered is not an error, and " "has the same effect as registering the descriptor exactly once." msgstr "" -#: ../Doc/library/select.rst:419 +#: ../Doc/library/select.rst:422 msgid "" "Modifies an already registered fd. This has the same effect as " "``register(fd, eventmask)``. Attempting to modify a file descriptor that " @@ -579,13 +585,13 @@ msgid "" "`ENOENT` to be raised." msgstr "" -#: ../Doc/library/select.rst:431 +#: ../Doc/library/select.rst:434 msgid "" "Attempting to remove a file descriptor that was never registered causes a :" "exc:`KeyError` exception to be raised." msgstr "" -#: ../Doc/library/select.rst:437 +#: ../Doc/library/select.rst:440 msgid "" "Polls the set of registered file descriptors, and returns a possibly-empty " "list containing ``(fd, event)`` 2-tuples for the descriptors that have " @@ -599,47 +605,47 @@ msgid "" "`None`, the call will block until there is an event for this poll object." msgstr "" -#: ../Doc/library/select.rst:458 +#: ../Doc/library/select.rst:461 msgid "Kqueue Objects" msgstr "" -#: ../Doc/library/select.rst:462 +#: ../Doc/library/select.rst:465 msgid "Close the control file descriptor of the kqueue object." msgstr "" -#: ../Doc/library/select.rst:467 +#: ../Doc/library/select.rst:470 msgid "``True`` if the kqueue object is closed." msgstr "" -#: ../Doc/library/select.rst:477 +#: ../Doc/library/select.rst:480 msgid "Create a kqueue object from a given file descriptor." msgstr "" -#: ../Doc/library/select.rst:482 +#: ../Doc/library/select.rst:485 msgid "Low level interface to kevent" msgstr "" -#: ../Doc/library/select.rst:484 +#: ../Doc/library/select.rst:487 msgid "changelist must be an iterable of kevent object or ``None``" msgstr "" -#: ../Doc/library/select.rst:485 +#: ../Doc/library/select.rst:488 msgid "max_events must be 0 or a positive integer" msgstr "" -#: ../Doc/library/select.rst:486 +#: ../Doc/library/select.rst:489 msgid "timeout in seconds (floats possible)" msgstr "" -#: ../Doc/library/select.rst:498 +#: ../Doc/library/select.rst:501 msgid "Kevent Objects" msgstr "" -#: ../Doc/library/select.rst:500 +#: ../Doc/library/select.rst:503 msgid "https://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2" msgstr "" -#: ../Doc/library/select.rst:504 +#: ../Doc/library/select.rst:507 msgid "" "Value used to identify the event. The interpretation depends on the filter " "but it's usually the file descriptor. In the constructor ident can either be " @@ -647,328 +653,328 @@ msgid "" "the integer internally." msgstr "" -#: ../Doc/library/select.rst:511 +#: ../Doc/library/select.rst:514 msgid "Name of the kernel filter." msgstr "" -#: ../Doc/library/select.rst:516 +#: ../Doc/library/select.rst:519 msgid ":const:`KQ_FILTER_READ`" msgstr ":const:`KQ_FILTER_READ`" -#: ../Doc/library/select.rst:516 +#: ../Doc/library/select.rst:519 msgid "Takes a descriptor and returns whenever there is data available to read" msgstr "" -#: ../Doc/library/select.rst:519 +#: ../Doc/library/select.rst:522 msgid ":const:`KQ_FILTER_WRITE`" msgstr ":const:`KQ_FILTER_WRITE`" -#: ../Doc/library/select.rst:519 +#: ../Doc/library/select.rst:522 msgid "" "Takes a descriptor and returns whenever there is data available to write" msgstr "" -#: ../Doc/library/select.rst:522 +#: ../Doc/library/select.rst:525 msgid ":const:`KQ_FILTER_AIO`" msgstr ":const:`KQ_FILTER_AIO`" -#: ../Doc/library/select.rst:522 +#: ../Doc/library/select.rst:525 msgid "AIO requests" msgstr "" -#: ../Doc/library/select.rst:524 +#: ../Doc/library/select.rst:527 msgid ":const:`KQ_FILTER_VNODE`" msgstr ":const:`KQ_FILTER_VNODE`" -#: ../Doc/library/select.rst:524 +#: ../Doc/library/select.rst:527 msgid "" "Returns when one or more of the requested events watched in *fflag* occurs" msgstr "" -#: ../Doc/library/select.rst:527 +#: ../Doc/library/select.rst:530 msgid ":const:`KQ_FILTER_PROC`" msgstr ":const:`KQ_FILTER_PROC`" -#: ../Doc/library/select.rst:527 +#: ../Doc/library/select.rst:530 msgid "Watch for events on a process id" msgstr "" -#: ../Doc/library/select.rst:529 +#: ../Doc/library/select.rst:532 msgid ":const:`KQ_FILTER_NETDEV`" msgstr ":const:`KQ_FILTER_NETDEV`" -#: ../Doc/library/select.rst:529 +#: ../Doc/library/select.rst:532 msgid "Watch for events on a network device [not available on Mac OS X]" msgstr "" -#: ../Doc/library/select.rst:532 +#: ../Doc/library/select.rst:535 msgid ":const:`KQ_FILTER_SIGNAL`" msgstr ":const:`KQ_FILTER_SIGNAL`" -#: ../Doc/library/select.rst:532 +#: ../Doc/library/select.rst:535 msgid "Returns whenever the watched signal is delivered to the process" msgstr "" -#: ../Doc/library/select.rst:535 +#: ../Doc/library/select.rst:538 msgid ":const:`KQ_FILTER_TIMER`" msgstr ":const:`KQ_FILTER_TIMER`" -#: ../Doc/library/select.rst:535 +#: ../Doc/library/select.rst:538 msgid "Establishes an arbitrary timer" msgstr "" -#: ../Doc/library/select.rst:540 +#: ../Doc/library/select.rst:543 msgid "Filter action." msgstr "" -#: ../Doc/library/select.rst:545 +#: ../Doc/library/select.rst:548 msgid ":const:`KQ_EV_ADD`" msgstr ":const:`KQ_EV_ADD`" -#: ../Doc/library/select.rst:545 +#: ../Doc/library/select.rst:548 msgid "Adds or modifies an event" msgstr "" -#: ../Doc/library/select.rst:547 +#: ../Doc/library/select.rst:550 msgid ":const:`KQ_EV_DELETE`" msgstr ":const:`KQ_EV_DELETE`" -#: ../Doc/library/select.rst:547 +#: ../Doc/library/select.rst:550 msgid "Removes an event from the queue" msgstr "" -#: ../Doc/library/select.rst:549 +#: ../Doc/library/select.rst:552 msgid ":const:`KQ_EV_ENABLE`" msgstr ":const:`KQ_EV_ENABLE`" -#: ../Doc/library/select.rst:549 +#: ../Doc/library/select.rst:552 msgid "Permitscontrol() to returns the event" msgstr "" -#: ../Doc/library/select.rst:551 +#: ../Doc/library/select.rst:554 msgid ":const:`KQ_EV_DISABLE`" msgstr ":const:`KQ_EV_DISABLE`" -#: ../Doc/library/select.rst:551 +#: ../Doc/library/select.rst:554 msgid "Disablesevent" msgstr "" -#: ../Doc/library/select.rst:553 +#: ../Doc/library/select.rst:556 msgid ":const:`KQ_EV_ONESHOT`" msgstr ":const:`KQ_EV_ONESHOT`" -#: ../Doc/library/select.rst:553 +#: ../Doc/library/select.rst:556 msgid "Removes event after first occurrence" msgstr "" -#: ../Doc/library/select.rst:555 +#: ../Doc/library/select.rst:558 msgid ":const:`KQ_EV_CLEAR`" msgstr ":const:`KQ_EV_CLEAR`" -#: ../Doc/library/select.rst:555 +#: ../Doc/library/select.rst:558 msgid "Reset the state after an event is retrieved" msgstr "" -#: ../Doc/library/select.rst:557 +#: ../Doc/library/select.rst:560 msgid ":const:`KQ_EV_SYSFLAGS`" msgstr ":const:`KQ_EV_SYSFLAGS`" -#: ../Doc/library/select.rst:557 ../Doc/library/select.rst:559 +#: ../Doc/library/select.rst:560 ../Doc/library/select.rst:562 msgid "internal event" msgstr "" -#: ../Doc/library/select.rst:559 +#: ../Doc/library/select.rst:562 msgid ":const:`KQ_EV_FLAG1`" msgstr ":const:`KQ_EV_FLAG1`" -#: ../Doc/library/select.rst:561 +#: ../Doc/library/select.rst:564 msgid ":const:`KQ_EV_EOF`" msgstr ":const:`KQ_EV_EOF`" -#: ../Doc/library/select.rst:561 +#: ../Doc/library/select.rst:564 msgid "Filter specific EOF condition" msgstr "" -#: ../Doc/library/select.rst:563 +#: ../Doc/library/select.rst:566 msgid ":const:`KQ_EV_ERROR`" msgstr ":const:`KQ_EV_ERROR`" -#: ../Doc/library/select.rst:563 +#: ../Doc/library/select.rst:566 msgid "See return values" msgstr "" -#: ../Doc/library/select.rst:569 +#: ../Doc/library/select.rst:572 msgid "Filter specific flags." msgstr "" -#: ../Doc/library/select.rst:571 +#: ../Doc/library/select.rst:574 msgid ":const:`KQ_FILTER_READ` and :const:`KQ_FILTER_WRITE` filter flags:" msgstr "" -#: ../Doc/library/select.rst:576 +#: ../Doc/library/select.rst:579 msgid ":const:`KQ_NOTE_LOWAT`" msgstr ":const:`KQ_NOTE_LOWAT`" -#: ../Doc/library/select.rst:576 +#: ../Doc/library/select.rst:579 msgid "low water mark of a socket buffer" msgstr "" -#: ../Doc/library/select.rst:579 +#: ../Doc/library/select.rst:582 msgid ":const:`KQ_FILTER_VNODE` filter flags:" msgstr "" -#: ../Doc/library/select.rst:584 +#: ../Doc/library/select.rst:587 msgid ":const:`KQ_NOTE_DELETE`" msgstr ":const:`KQ_NOTE_DELETE`" -#: ../Doc/library/select.rst:584 +#: ../Doc/library/select.rst:587 msgid "*unlink()* was called" msgstr "" -#: ../Doc/library/select.rst:586 +#: ../Doc/library/select.rst:589 msgid ":const:`KQ_NOTE_WRITE`" msgstr ":const:`KQ_NOTE_WRITE`" -#: ../Doc/library/select.rst:586 +#: ../Doc/library/select.rst:589 msgid "a write occurred" msgstr "" -#: ../Doc/library/select.rst:588 +#: ../Doc/library/select.rst:591 msgid ":const:`KQ_NOTE_EXTEND`" msgstr ":const:`KQ_NOTE_EXTEND`" -#: ../Doc/library/select.rst:588 +#: ../Doc/library/select.rst:591 msgid "the file was extended" msgstr "" -#: ../Doc/library/select.rst:590 +#: ../Doc/library/select.rst:593 msgid ":const:`KQ_NOTE_ATTRIB`" msgstr ":const:`KQ_NOTE_ATTRIB`" -#: ../Doc/library/select.rst:590 +#: ../Doc/library/select.rst:593 msgid "an attribute was changed" msgstr "" -#: ../Doc/library/select.rst:592 +#: ../Doc/library/select.rst:595 msgid ":const:`KQ_NOTE_LINK`" msgstr ":const:`KQ_NOTE_LINK`" -#: ../Doc/library/select.rst:592 +#: ../Doc/library/select.rst:595 msgid "the link count has changed" msgstr "" -#: ../Doc/library/select.rst:594 +#: ../Doc/library/select.rst:597 msgid ":const:`KQ_NOTE_RENAME`" msgstr ":const:`KQ_NOTE_RENAME`" -#: ../Doc/library/select.rst:594 +#: ../Doc/library/select.rst:597 msgid "the file was renamed" msgstr "" -#: ../Doc/library/select.rst:596 +#: ../Doc/library/select.rst:599 msgid ":const:`KQ_NOTE_REVOKE`" msgstr ":const:`KQ_NOTE_REVOKE`" -#: ../Doc/library/select.rst:596 +#: ../Doc/library/select.rst:599 msgid "access to the file was revoked" msgstr "" -#: ../Doc/library/select.rst:599 +#: ../Doc/library/select.rst:602 msgid ":const:`KQ_FILTER_PROC` filter flags:" msgstr "" -#: ../Doc/library/select.rst:604 +#: ../Doc/library/select.rst:607 msgid ":const:`KQ_NOTE_EXIT`" msgstr ":const:`KQ_NOTE_EXIT`" -#: ../Doc/library/select.rst:604 +#: ../Doc/library/select.rst:607 msgid "the process has exited" msgstr "" -#: ../Doc/library/select.rst:606 +#: ../Doc/library/select.rst:609 msgid ":const:`KQ_NOTE_FORK`" msgstr ":const:`KQ_NOTE_FORK`" -#: ../Doc/library/select.rst:606 +#: ../Doc/library/select.rst:609 msgid "the process has called *fork()*" msgstr "" -#: ../Doc/library/select.rst:608 +#: ../Doc/library/select.rst:611 msgid ":const:`KQ_NOTE_EXEC`" msgstr ":const:`KQ_NOTE_EXEC`" -#: ../Doc/library/select.rst:608 +#: ../Doc/library/select.rst:611 msgid "the process has executed a new process" msgstr "" -#: ../Doc/library/select.rst:610 +#: ../Doc/library/select.rst:613 msgid ":const:`KQ_NOTE_PCTRLMASK`" msgstr ":const:`KQ_NOTE_PCTRLMASK`" -#: ../Doc/library/select.rst:610 ../Doc/library/select.rst:612 +#: ../Doc/library/select.rst:613 ../Doc/library/select.rst:615 msgid "internal filter flag" msgstr "" -#: ../Doc/library/select.rst:612 +#: ../Doc/library/select.rst:615 msgid ":const:`KQ_NOTE_PDATAMASK`" msgstr ":const:`KQ_NOTE_PDATAMASK`" -#: ../Doc/library/select.rst:614 +#: ../Doc/library/select.rst:617 msgid ":const:`KQ_NOTE_TRACK`" msgstr ":const:`KQ_NOTE_TRACK`" -#: ../Doc/library/select.rst:614 +#: ../Doc/library/select.rst:617 msgid "follow a process across *fork()*" msgstr "" -#: ../Doc/library/select.rst:616 +#: ../Doc/library/select.rst:619 msgid ":const:`KQ_NOTE_CHILD`" msgstr ":const:`KQ_NOTE_CHILD`" -#: ../Doc/library/select.rst:616 +#: ../Doc/library/select.rst:619 msgid "returned on the child process for *NOTE_TRACK*" msgstr "" -#: ../Doc/library/select.rst:619 +#: ../Doc/library/select.rst:622 msgid ":const:`KQ_NOTE_TRACKERR`" msgstr ":const:`KQ_NOTE_TRACKERR`" -#: ../Doc/library/select.rst:619 +#: ../Doc/library/select.rst:622 msgid "unable to attach to a child" msgstr "" -#: ../Doc/library/select.rst:622 +#: ../Doc/library/select.rst:625 msgid ":const:`KQ_FILTER_NETDEV` filter flags (not available on Mac OS X):" msgstr "" -#: ../Doc/library/select.rst:627 +#: ../Doc/library/select.rst:630 msgid ":const:`KQ_NOTE_LINKUP`" msgstr ":const:`KQ_NOTE_LINKUP`" -#: ../Doc/library/select.rst:627 +#: ../Doc/library/select.rst:630 msgid "link is up" msgstr "" -#: ../Doc/library/select.rst:629 +#: ../Doc/library/select.rst:632 msgid ":const:`KQ_NOTE_LINKDOWN`" msgstr ":const:`KQ_NOTE_LINKDOWN`" -#: ../Doc/library/select.rst:629 +#: ../Doc/library/select.rst:632 msgid "link is down" msgstr "" -#: ../Doc/library/select.rst:631 +#: ../Doc/library/select.rst:634 msgid ":const:`KQ_NOTE_LINKINV`" msgstr ":const:`KQ_NOTE_LINKINV`" -#: ../Doc/library/select.rst:631 +#: ../Doc/library/select.rst:634 msgid "link state is invalid" msgstr "" -#: ../Doc/library/select.rst:637 +#: ../Doc/library/select.rst:640 msgid "Filter specific data." msgstr "" -#: ../Doc/library/select.rst:642 +#: ../Doc/library/select.rst:645 msgid "User defined value." msgstr "" diff --git a/library/smtplib.po b/library/smtplib.po index ef8e252d..f04fa0af 100644 --- a/library/smtplib.po +++ b/library/smtplib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2017-08-10 00:55+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -54,14 +54,14 @@ msgstr "" #: ../Doc/library/smtplib.rst:43 msgid "" "For normal use, you should only require the initialization/connect, :meth:" -"`sendmail`, and :meth:`~smtplib.quit` methods. An example is included below." +"`sendmail`, and :meth:`SMTP.quit` methods. An example is included below." msgstr "" #: ../Doc/library/smtplib.rst:47 msgid "" "The :class:`SMTP` class supports the :keyword:`with` statement. When used " "like this, the SMTP ``QUIT`` command is issued automatically when the :" -"keyword:`with` statement exits. E.g.::" +"keyword:`!with` statement exits. E.g.::" msgstr "" #: ../Doc/library/smtplib.rst:58 diff --git a/library/socketserver.po b/library/socketserver.po index ca995cbe..9046eae5 100644 --- a/library/socketserver.po +++ b/library/socketserver.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -77,7 +77,7 @@ msgid "" "the :meth:`~BaseServer.handle_request` or :meth:`~BaseServer.serve_forever` " "method of the server object to process one or many requests. Finally, call :" "meth:`~BaseServer.server_close` to close the socket (unless you used a :" -"keyword:`with` statement)." +"keyword:`!with` statement)." msgstr "" #: ../Doc/library/socketserver.rst:62 diff --git a/library/stdtypes.po b/library/stdtypes.po index bbd73d0a..fe6dfc85 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-11-09 21:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"PO-Revision-Date: 2018-12-17 21:48+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -119,7 +119,8 @@ msgstr "" "``or`` et ``and`` renvoient toujours l'une de leurs opérandes.)" #: ../Doc/library/stdtypes.rst:78 -msgid "Boolean Operations --- :keyword:`and`, :keyword:`or`, :keyword:`not`" +#, fuzzy +msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" msgstr "" "Opérations booléennes --- :keyword:`and`, :keyword:`or`, :keyword:`not`" @@ -142,8 +143,8 @@ msgstr "Résultat" #: ../Doc/library/stdtypes.rst:85 ../Doc/library/stdtypes.rst:275 #: ../Doc/library/stdtypes.rst:414 ../Doc/library/stdtypes.rst:856 -#: ../Doc/library/stdtypes.rst:1051 ../Doc/library/stdtypes.rst:2201 -#: ../Doc/library/stdtypes.rst:3335 +#: ../Doc/library/stdtypes.rst:1051 ../Doc/library/stdtypes.rst:2199 +#: ../Doc/library/stdtypes.rst:3331 msgid "Notes" msgstr "Notes" @@ -157,8 +158,8 @@ msgstr "si *x* est faux, alors *y*, sinon *x*" #: ../Doc/library/stdtypes.rst:87 ../Doc/library/stdtypes.rst:285 #: ../Doc/library/stdtypes.rst:858 ../Doc/library/stdtypes.rst:861 -#: ../Doc/library/stdtypes.rst:1062 ../Doc/library/stdtypes.rst:2207 -#: ../Doc/library/stdtypes.rst:3341 +#: ../Doc/library/stdtypes.rst:1062 ../Doc/library/stdtypes.rst:2205 +#: ../Doc/library/stdtypes.rst:3337 msgid "\\(1)" msgstr "\\(1)" @@ -172,8 +173,8 @@ msgstr "si *x* est faux, alors *x*, sinon *y*" #: ../Doc/library/stdtypes.rst:90 ../Doc/library/stdtypes.rst:288 #: ../Doc/library/stdtypes.rst:308 ../Doc/library/stdtypes.rst:1090 -#: ../Doc/library/stdtypes.rst:2211 ../Doc/library/stdtypes.rst:2213 -#: ../Doc/library/stdtypes.rst:3345 ../Doc/library/stdtypes.rst:3347 +#: ../Doc/library/stdtypes.rst:2209 ../Doc/library/stdtypes.rst:2211 +#: ../Doc/library/stdtypes.rst:3341 ../Doc/library/stdtypes.rst:3343 msgid "\\(2)" msgstr "\\(2)" @@ -186,18 +187,18 @@ msgid "if *x* is false, then ``True``, else ``False``" msgstr "si *x* est faux, alors ``True``, sinon ``False``" #: ../Doc/library/stdtypes.rst:93 ../Doc/library/stdtypes.rst:870 -#: ../Doc/library/stdtypes.rst:1093 ../Doc/library/stdtypes.rst:2215 -#: ../Doc/library/stdtypes.rst:2217 ../Doc/library/stdtypes.rst:2219 -#: ../Doc/library/stdtypes.rst:2221 ../Doc/library/stdtypes.rst:3349 -#: ../Doc/library/stdtypes.rst:3351 ../Doc/library/stdtypes.rst:3353 -#: ../Doc/library/stdtypes.rst:3355 +#: ../Doc/library/stdtypes.rst:1093 ../Doc/library/stdtypes.rst:2213 +#: ../Doc/library/stdtypes.rst:2215 ../Doc/library/stdtypes.rst:2217 +#: ../Doc/library/stdtypes.rst:2219 ../Doc/library/stdtypes.rst:3345 +#: ../Doc/library/stdtypes.rst:3347 ../Doc/library/stdtypes.rst:3349 +#: ../Doc/library/stdtypes.rst:3351 msgid "\\(3)" msgstr "\\(3)" #: ../Doc/library/stdtypes.rst:102 ../Doc/library/stdtypes.rst:319 #: ../Doc/library/stdtypes.rst:432 ../Doc/library/stdtypes.rst:897 -#: ../Doc/library/stdtypes.rst:1101 ../Doc/library/stdtypes.rst:2247 -#: ../Doc/library/stdtypes.rst:3385 +#: ../Doc/library/stdtypes.rst:1101 ../Doc/library/stdtypes.rst:2245 +#: ../Doc/library/stdtypes.rst:3381 msgid "Notes:" msgstr "Notes :" @@ -249,9 +250,9 @@ msgstr "" msgid "This table summarizes the comparison operations:" msgstr "Ce tableau résume les opérations de comparaison :" -#: ../Doc/library/stdtypes.rst:143 ../Doc/library/stdtypes.rst:2178 -#: ../Doc/library/stdtypes.rst:2201 ../Doc/library/stdtypes.rst:3312 -#: ../Doc/library/stdtypes.rst:3335 +#: ../Doc/library/stdtypes.rst:143 ../Doc/library/stdtypes.rst:2176 +#: ../Doc/library/stdtypes.rst:2199 ../Doc/library/stdtypes.rst:3308 +#: ../Doc/library/stdtypes.rst:3331 msgid "Meaning" msgstr "Signification" @@ -587,7 +588,7 @@ msgstr "" "imaginaire. *im* vaut zéro par défaut." #: ../Doc/library/stdtypes.rst:301 ../Doc/library/stdtypes.rst:1083 -#: ../Doc/library/stdtypes.rst:2209 ../Doc/library/stdtypes.rst:3372 +#: ../Doc/library/stdtypes.rst:2207 ../Doc/library/stdtypes.rst:3368 msgid "\\(6)" msgstr "\\(6)" @@ -625,9 +626,9 @@ msgstr "*x* à la puissance *y*" #: ../Doc/library/stdtypes.rst:310 ../Doc/library/stdtypes.rst:312 #: ../Doc/library/stdtypes.rst:1072 ../Doc/library/stdtypes.rst:1075 -#: ../Doc/library/stdtypes.rst:2234 ../Doc/library/stdtypes.rst:2237 -#: ../Doc/library/stdtypes.rst:2240 ../Doc/library/stdtypes.rst:3368 -#: ../Doc/library/stdtypes.rst:3375 +#: ../Doc/library/stdtypes.rst:2232 ../Doc/library/stdtypes.rst:2235 +#: ../Doc/library/stdtypes.rst:2238 ../Doc/library/stdtypes.rst:3364 +#: ../Doc/library/stdtypes.rst:3371 msgid "\\(5)" msgstr "\\(5)" @@ -796,8 +797,8 @@ msgstr ":dfn:`ou ` binaire de *x* et *y*" #: ../Doc/library/stdtypes.rst:416 ../Doc/library/stdtypes.rst:419 #: ../Doc/library/stdtypes.rst:422 ../Doc/library/stdtypes.rst:1096 -#: ../Doc/library/stdtypes.rst:2223 ../Doc/library/stdtypes.rst:2227 -#: ../Doc/library/stdtypes.rst:3357 ../Doc/library/stdtypes.rst:3361 +#: ../Doc/library/stdtypes.rst:2221 ../Doc/library/stdtypes.rst:2225 +#: ../Doc/library/stdtypes.rst:3353 ../Doc/library/stdtypes.rst:3357 msgid "\\(4)" msgstr "\\(4)" @@ -876,8 +877,8 @@ msgstr "" msgid "" "Performing these calculations with at least one extra sign extension bit in " "a finite two's complement representation (a working bit-width of ``1 + max(x." -"bit_length(), y.bit_length()`` or more) is sufficient to get the same result " -"as if there were an infinite number of sign bits." +"bit_length(), y.bit_length())`` or more) is sufficient to get the same " +"result as if there were an infinite number of sign bits." msgstr "" "Effectuer ces calculs avec au moins un bit d'extension de signe " "supplémentaire dans une représentation finie du complément à deux éléments " @@ -1505,7 +1506,7 @@ msgstr "" "indice de la première occurrence de *x* dans *s* (à ou après l'indice *i* et " "avant indice *j*)" -#: ../Doc/library/stdtypes.rst:883 ../Doc/library/stdtypes.rst:3343 +#: ../Doc/library/stdtypes.rst:883 ../Doc/library/stdtypes.rst:3339 msgid "\\(8)" msgstr "\\(8)" @@ -3165,14 +3166,14 @@ msgstr "" #: ../Doc/library/stdtypes.rst:1882 ../Doc/library/stdtypes.rst:1898 #: ../Doc/library/stdtypes.rst:1950 ../Doc/library/stdtypes.rst:2018 -#: ../Doc/library/stdtypes.rst:2082 ../Doc/library/stdtypes.rst:2845 -#: ../Doc/library/stdtypes.rst:2861 ../Doc/library/stdtypes.rst:2952 -#: ../Doc/library/stdtypes.rst:2968 ../Doc/library/stdtypes.rst:2993 -#: ../Doc/library/stdtypes.rst:3007 ../Doc/library/stdtypes.rst:3035 -#: ../Doc/library/stdtypes.rst:3049 ../Doc/library/stdtypes.rst:3067 -#: ../Doc/library/stdtypes.rst:3094 ../Doc/library/stdtypes.rst:3117 -#: ../Doc/library/stdtypes.rst:3144 ../Doc/library/stdtypes.rst:3186 -#: ../Doc/library/stdtypes.rst:3210 +#: ../Doc/library/stdtypes.rst:2082 ../Doc/library/stdtypes.rst:2843 +#: ../Doc/library/stdtypes.rst:2859 ../Doc/library/stdtypes.rst:2950 +#: ../Doc/library/stdtypes.rst:2966 ../Doc/library/stdtypes.rst:2991 +#: ../Doc/library/stdtypes.rst:3005 ../Doc/library/stdtypes.rst:3033 +#: ../Doc/library/stdtypes.rst:3047 ../Doc/library/stdtypes.rst:3065 +#: ../Doc/library/stdtypes.rst:3092 ../Doc/library/stdtypes.rst:3115 +#: ../Doc/library/stdtypes.rst:3142 ../Doc/library/stdtypes.rst:3184 +#: ../Doc/library/stdtypes.rst:3208 msgid "For example::" msgstr "Par exemple ::" @@ -3380,7 +3381,7 @@ msgstr "" "Renvoie une version en initiales majuscules de la chaîne où les mots " "commencent par une capitale et les caractères restants sont en minuscules." -#: ../Doc/library/stdtypes.rst:2023 ../Doc/library/stdtypes.rst:3154 +#: ../Doc/library/stdtypes.rst:2023 ../Doc/library/stdtypes.rst:3152 msgid "" "The algorithm uses a simple language-independent definition of a word as " "groups of consecutive letters. The definition works in many contexts but it " @@ -3393,7 +3394,7 @@ msgstr "" "apostrophes (typiquement de la forme possessive en Anglais) forment les " "limites de mot, ce qui n'est pas toujours le résultat souhaité : ::" -#: ../Doc/library/stdtypes.rst:2031 ../Doc/library/stdtypes.rst:3162 +#: ../Doc/library/stdtypes.rst:2031 ../Doc/library/stdtypes.rst:3160 msgid "" "A workaround for apostrophes can be constructed using regular expressions::" msgstr "" @@ -3521,7 +3522,7 @@ msgstr "" "d'éléments spécifiés par la chaîne de format, ou un seul objet de " "correspondances ( *mapping object*, par exemple, un dictionnaire)." -#: ../Doc/library/stdtypes.rst:2126 ../Doc/library/stdtypes.rst:3260 +#: ../Doc/library/stdtypes.rst:2131 ../Doc/library/stdtypes.rst:3263 msgid "" "A conversion specifier contains two or more characters and has the following " "components, which must occur in this order:" @@ -3529,11 +3530,11 @@ msgstr "" "Un indicateur de conversion contient deux ou plusieurs caractères et " "comporte les éléments suivants, qui doivent apparaître dans cet ordre :" -#: ../Doc/library/stdtypes.rst:2129 ../Doc/library/stdtypes.rst:3263 +#: ../Doc/library/stdtypes.rst:2134 ../Doc/library/stdtypes.rst:3266 msgid "The ``'%'`` character, which marks the start of the specifier." msgstr "Le caractère ``'%'``, qui marque le début du marqueur." -#: ../Doc/library/stdtypes.rst:2134 ../Doc/library/stdtypes.rst:3268 +#: ../Doc/library/stdtypes.rst:2136 ../Doc/library/stdtypes.rst:3268 msgid "" "Mapping key (optional), consisting of a parenthesised sequence of characters " "(for example, ``(somename)``)." @@ -3541,7 +3542,7 @@ msgstr "" "La clé de correspondance (facultative), composée d'une suite de caractères " "entre parenthèse (par exemple, ``(somename)``)." -#: ../Doc/library/stdtypes.rst:2137 ../Doc/library/stdtypes.rst:3271 +#: ../Doc/library/stdtypes.rst:2139 ../Doc/library/stdtypes.rst:3271 msgid "" "Conversion flags (optional), which affect the result of some conversion " "types." @@ -3549,7 +3550,7 @@ msgstr "" "Des options de conversion, facultatives, qui affectent le résultat de " "certains types de conversion." -#: ../Doc/library/stdtypes.rst:2142 ../Doc/library/stdtypes.rst:3276 +#: ../Doc/library/stdtypes.rst:2142 ../Doc/library/stdtypes.rst:3274 msgid "" "Minimum field width (optional). If specified as an ``'*'`` (asterisk), the " "actual width is read from the next element of the tuple in *values*, and the " @@ -3559,7 +3560,7 @@ msgstr "" "est lue de l'élément suivant du tuple *values*, et l'objet à convertir vient " "après la largeur de champ minimale et la précision facultative." -#: ../Doc/library/stdtypes.rst:2148 ../Doc/library/stdtypes.rst:3282 +#: ../Doc/library/stdtypes.rst:2146 ../Doc/library/stdtypes.rst:3278 msgid "" "Precision (optional), given as a ``'.'`` (dot) followed by the precision. " "If specified as ``'*'`` (an asterisk), the actual precision is read from the " @@ -3571,15 +3572,15 @@ msgstr "" "lue à partir de l'élément suivant du tuple *values* et la valeur à convertir " "vient ensuite." -#: ../Doc/library/stdtypes.rst:2153 ../Doc/library/stdtypes.rst:3287 +#: ../Doc/library/stdtypes.rst:2151 ../Doc/library/stdtypes.rst:3283 msgid "Length modifier (optional)." msgstr "Modificateur de longueur (facultatif)." -#: ../Doc/library/stdtypes.rst:2155 ../Doc/library/stdtypes.rst:3289 +#: ../Doc/library/stdtypes.rst:2153 ../Doc/library/stdtypes.rst:3285 msgid "Conversion type." msgstr "Type de conversion." -#: ../Doc/library/stdtypes.rst:2157 +#: ../Doc/library/stdtypes.rst:2155 msgid "" "When the right argument is a dictionary (or other mapping type), then the " "formats in the string *must* include a parenthesised mapping key into that " @@ -3592,7 +3593,7 @@ msgstr "" "caractère ``'%'``. La clé indique quelle valeur du dictionnaire doit être " "formatée. Par exemple :" -#: ../Doc/library/stdtypes.rst:2166 ../Doc/library/stdtypes.rst:3300 +#: ../Doc/library/stdtypes.rst:2164 ../Doc/library/stdtypes.rst:3296 msgid "" "In this case no ``*`` specifiers may occur in a format (since they require a " "sequential parameter list)." @@ -3600,36 +3601,36 @@ msgstr "" "Dans ce cas, aucune ``*`` ne peuvent se trouver dans le format (car ces " "``*`` nécessitent une liste (accès séquentiel) de paramètres)." -#: ../Doc/library/stdtypes.rst:2169 ../Doc/library/stdtypes.rst:3303 +#: ../Doc/library/stdtypes.rst:2167 ../Doc/library/stdtypes.rst:3299 msgid "The conversion flag characters are:" msgstr "Les caractères indicateurs de conversion sont :" -#: ../Doc/library/stdtypes.rst:2178 ../Doc/library/stdtypes.rst:3312 +#: ../Doc/library/stdtypes.rst:2176 ../Doc/library/stdtypes.rst:3308 msgid "Flag" msgstr "Option" -#: ../Doc/library/stdtypes.rst:2180 ../Doc/library/stdtypes.rst:3314 +#: ../Doc/library/stdtypes.rst:2178 ../Doc/library/stdtypes.rst:3310 msgid "``'#'``" msgstr "``'#'``" -#: ../Doc/library/stdtypes.rst:2180 ../Doc/library/stdtypes.rst:3314 +#: ../Doc/library/stdtypes.rst:2178 ../Doc/library/stdtypes.rst:3310 msgid "" "The value conversion will use the \"alternate form\" (where defined below)." msgstr "La conversion utilisera la \"forme alternative\" (définie ci-dessous)." -#: ../Doc/library/stdtypes.rst:2183 ../Doc/library/stdtypes.rst:3317 +#: ../Doc/library/stdtypes.rst:2181 ../Doc/library/stdtypes.rst:3313 msgid "``'0'``" msgstr "``'0'``" -#: ../Doc/library/stdtypes.rst:2183 ../Doc/library/stdtypes.rst:3317 +#: ../Doc/library/stdtypes.rst:2181 ../Doc/library/stdtypes.rst:3313 msgid "The conversion will be zero padded for numeric values." msgstr "Les valeurs numériques converties seront complétée de zéros." -#: ../Doc/library/stdtypes.rst:2185 ../Doc/library/stdtypes.rst:3319 +#: ../Doc/library/stdtypes.rst:2183 ../Doc/library/stdtypes.rst:3315 msgid "``'-'``" msgstr "``'-'``" -#: ../Doc/library/stdtypes.rst:2185 ../Doc/library/stdtypes.rst:3319 +#: ../Doc/library/stdtypes.rst:2183 ../Doc/library/stdtypes.rst:3315 msgid "" "The converted value is left adjusted (overrides the ``'0'`` conversion if " "both are given)." @@ -3637,11 +3638,11 @@ msgstr "" "La valeur convertie est ajustée à gauche (remplace la conversion ``'0'`` si " "les deux sont données)." -#: ../Doc/library/stdtypes.rst:2188 ../Doc/library/stdtypes.rst:3322 +#: ../Doc/library/stdtypes.rst:2186 ../Doc/library/stdtypes.rst:3318 msgid "``' '``" msgstr "``' '``" -#: ../Doc/library/stdtypes.rst:2188 ../Doc/library/stdtypes.rst:3322 +#: ../Doc/library/stdtypes.rst:2186 ../Doc/library/stdtypes.rst:3318 msgid "" "(a space) A blank should be left before a positive number (or empty string) " "produced by a signed conversion." @@ -3649,11 +3650,11 @@ msgstr "" "(un espace) Un espace doit être laissé avant un nombre positif (ou chaîne " "vide) produite par la conversion d'une valeur signée." -#: ../Doc/library/stdtypes.rst:2191 ../Doc/library/stdtypes.rst:3325 +#: ../Doc/library/stdtypes.rst:2189 ../Doc/library/stdtypes.rst:3321 msgid "``'+'``" msgstr "``'+'``" -#: ../Doc/library/stdtypes.rst:2191 ../Doc/library/stdtypes.rst:3325 +#: ../Doc/library/stdtypes.rst:2189 ../Doc/library/stdtypes.rst:3321 msgid "" "A sign character (``'+'`` or ``'-'``) will precede the conversion (overrides " "a \"space\" flag)." @@ -3661,7 +3662,7 @@ msgstr "" "Un caractère de signe (``'+'`` ou ``'-'``) précède la valeur convertie " "(remplace le marqueur \"espace\")." -#: ../Doc/library/stdtypes.rst:2195 ../Doc/library/stdtypes.rst:3329 +#: ../Doc/library/stdtypes.rst:2193 ../Doc/library/stdtypes.rst:3325 msgid "" "A length modifier (``h``, ``l``, or ``L``) may be present, but is ignored as " "it is not necessary for Python -- so e.g. ``%ld`` is identical to ``%d``." @@ -3670,93 +3671,93 @@ msgstr "" "est ignoré car il est pas nécessaire pour Python, donc par exemple ``%ld`` " "est identique à ``%d``." -#: ../Doc/library/stdtypes.rst:2198 ../Doc/library/stdtypes.rst:3332 +#: ../Doc/library/stdtypes.rst:2196 ../Doc/library/stdtypes.rst:3328 msgid "The conversion types are:" msgstr "Les types utilisables dans les conversion sont :" -#: ../Doc/library/stdtypes.rst:2201 ../Doc/library/stdtypes.rst:3335 +#: ../Doc/library/stdtypes.rst:2199 ../Doc/library/stdtypes.rst:3331 msgid "Conversion" msgstr "Conversion" -#: ../Doc/library/stdtypes.rst:2203 ../Doc/library/stdtypes.rst:3337 +#: ../Doc/library/stdtypes.rst:2201 ../Doc/library/stdtypes.rst:3333 msgid "``'d'``" msgstr "``'d'``" -#: ../Doc/library/stdtypes.rst:2203 ../Doc/library/stdtypes.rst:2205 -#: ../Doc/library/stdtypes.rst:3337 ../Doc/library/stdtypes.rst:3339 +#: ../Doc/library/stdtypes.rst:2201 ../Doc/library/stdtypes.rst:2203 +#: ../Doc/library/stdtypes.rst:3333 ../Doc/library/stdtypes.rst:3335 msgid "Signed integer decimal." msgstr "Entier décimal signé." -#: ../Doc/library/stdtypes.rst:2205 ../Doc/library/stdtypes.rst:3339 +#: ../Doc/library/stdtypes.rst:2203 ../Doc/library/stdtypes.rst:3335 msgid "``'i'``" msgstr "``'i'``" -#: ../Doc/library/stdtypes.rst:2207 ../Doc/library/stdtypes.rst:3341 +#: ../Doc/library/stdtypes.rst:2205 ../Doc/library/stdtypes.rst:3337 msgid "``'o'``" msgstr "``'o'``" -#: ../Doc/library/stdtypes.rst:2207 ../Doc/library/stdtypes.rst:3341 +#: ../Doc/library/stdtypes.rst:2205 ../Doc/library/stdtypes.rst:3337 msgid "Signed octal value." msgstr "Valeur octale signée." -#: ../Doc/library/stdtypes.rst:2209 ../Doc/library/stdtypes.rst:3343 +#: ../Doc/library/stdtypes.rst:2207 ../Doc/library/stdtypes.rst:3339 msgid "``'u'``" msgstr "``'u'``" -#: ../Doc/library/stdtypes.rst:2209 ../Doc/library/stdtypes.rst:3343 +#: ../Doc/library/stdtypes.rst:2207 ../Doc/library/stdtypes.rst:3339 msgid "Obsolete type -- it is identical to ``'d'``." msgstr "Type obsolète --- identique à ``'d'``." -#: ../Doc/library/stdtypes.rst:2211 ../Doc/library/stdtypes.rst:3345 +#: ../Doc/library/stdtypes.rst:2209 ../Doc/library/stdtypes.rst:3341 msgid "``'x'``" msgstr "``'x'``" -#: ../Doc/library/stdtypes.rst:2211 ../Doc/library/stdtypes.rst:3345 +#: ../Doc/library/stdtypes.rst:2209 ../Doc/library/stdtypes.rst:3341 msgid "Signed hexadecimal (lowercase)." msgstr "Hexadécimal signé (en minuscules)." -#: ../Doc/library/stdtypes.rst:2213 ../Doc/library/stdtypes.rst:3347 +#: ../Doc/library/stdtypes.rst:2211 ../Doc/library/stdtypes.rst:3343 msgid "``'X'``" msgstr "``'X'``" -#: ../Doc/library/stdtypes.rst:2213 ../Doc/library/stdtypes.rst:3347 +#: ../Doc/library/stdtypes.rst:2211 ../Doc/library/stdtypes.rst:3343 msgid "Signed hexadecimal (uppercase)." msgstr "Hexadécimal signé (capitales)." -#: ../Doc/library/stdtypes.rst:2215 ../Doc/library/stdtypes.rst:3349 +#: ../Doc/library/stdtypes.rst:2213 ../Doc/library/stdtypes.rst:3345 msgid "``'e'``" msgstr "``'e'``" -#: ../Doc/library/stdtypes.rst:2215 ../Doc/library/stdtypes.rst:3349 +#: ../Doc/library/stdtypes.rst:2213 ../Doc/library/stdtypes.rst:3345 msgid "Floating point exponential format (lowercase)." msgstr "Format exponentiel pour un *float* (minuscule)." -#: ../Doc/library/stdtypes.rst:2217 ../Doc/library/stdtypes.rst:3351 +#: ../Doc/library/stdtypes.rst:2215 ../Doc/library/stdtypes.rst:3347 msgid "``'E'``" msgstr "``'E'``" -#: ../Doc/library/stdtypes.rst:2217 ../Doc/library/stdtypes.rst:3351 +#: ../Doc/library/stdtypes.rst:2215 ../Doc/library/stdtypes.rst:3347 msgid "Floating point exponential format (uppercase)." msgstr "Format exponentiel pour un *float* (en capitales)." -#: ../Doc/library/stdtypes.rst:2219 ../Doc/library/stdtypes.rst:3353 +#: ../Doc/library/stdtypes.rst:2217 ../Doc/library/stdtypes.rst:3349 msgid "``'f'``" msgstr "``'f'``" -#: ../Doc/library/stdtypes.rst:2219 ../Doc/library/stdtypes.rst:2221 -#: ../Doc/library/stdtypes.rst:3353 ../Doc/library/stdtypes.rst:3355 +#: ../Doc/library/stdtypes.rst:2217 ../Doc/library/stdtypes.rst:2219 +#: ../Doc/library/stdtypes.rst:3349 ../Doc/library/stdtypes.rst:3351 msgid "Floating point decimal format." msgstr "Format décimal pour un *float*." -#: ../Doc/library/stdtypes.rst:2221 ../Doc/library/stdtypes.rst:3355 +#: ../Doc/library/stdtypes.rst:2219 ../Doc/library/stdtypes.rst:3351 msgid "``'F'``" msgstr "``'F'``" -#: ../Doc/library/stdtypes.rst:2223 ../Doc/library/stdtypes.rst:3357 +#: ../Doc/library/stdtypes.rst:2221 ../Doc/library/stdtypes.rst:3353 msgid "``'g'``" msgstr "``'g'``" -#: ../Doc/library/stdtypes.rst:2223 ../Doc/library/stdtypes.rst:3357 +#: ../Doc/library/stdtypes.rst:2221 ../Doc/library/stdtypes.rst:3353 msgid "" "Floating point format. Uses lowercase exponential format if exponent is less " "than -4 or not less than precision, decimal format otherwise." @@ -3765,11 +3766,11 @@ msgstr "" "inférieur à ``-4`` ou pas plus petit que la précision, sinon le format " "décimal." -#: ../Doc/library/stdtypes.rst:2227 ../Doc/library/stdtypes.rst:3361 +#: ../Doc/library/stdtypes.rst:2225 ../Doc/library/stdtypes.rst:3357 msgid "``'G'``" msgstr "``'G'``" -#: ../Doc/library/stdtypes.rst:2227 ../Doc/library/stdtypes.rst:3361 +#: ../Doc/library/stdtypes.rst:2225 ../Doc/library/stdtypes.rst:3357 msgid "" "Floating point format. Uses uppercase exponential format if exponent is less " "than -4 or not less than precision, decimal format otherwise." @@ -3778,51 +3779,51 @@ msgstr "" "inférieur à ``-4`` ou pas plus petit que la précision, sinon le format " "décimal." -#: ../Doc/library/stdtypes.rst:2231 ../Doc/library/stdtypes.rst:3365 +#: ../Doc/library/stdtypes.rst:2229 ../Doc/library/stdtypes.rst:3361 msgid "``'c'``" msgstr "``'c'``" -#: ../Doc/library/stdtypes.rst:2231 +#: ../Doc/library/stdtypes.rst:2229 msgid "Single character (accepts integer or single character string)." msgstr "" "Un seul caractère (accepte des entiers ou une chaîne d'un seul caractère)." -#: ../Doc/library/stdtypes.rst:2234 ../Doc/library/stdtypes.rst:3378 +#: ../Doc/library/stdtypes.rst:2232 ../Doc/library/stdtypes.rst:3374 msgid "``'r'``" msgstr "``'r'``" -#: ../Doc/library/stdtypes.rst:2234 +#: ../Doc/library/stdtypes.rst:2232 msgid "String (converts any Python object using :func:`repr`)." msgstr "String (convertit n'importe quel objet Python avec :func:`repr`)." -#: ../Doc/library/stdtypes.rst:2237 ../Doc/library/stdtypes.rst:3372 +#: ../Doc/library/stdtypes.rst:2235 ../Doc/library/stdtypes.rst:3368 msgid "``'s'``" msgstr "``'s'``" -#: ../Doc/library/stdtypes.rst:2237 +#: ../Doc/library/stdtypes.rst:2235 msgid "String (converts any Python object using :func:`str`)." msgstr "String (convertit n'importe quel objet Python avec :func:`str`)." -#: ../Doc/library/stdtypes.rst:2240 ../Doc/library/stdtypes.rst:3375 +#: ../Doc/library/stdtypes.rst:2238 ../Doc/library/stdtypes.rst:3371 msgid "``'a'``" msgstr "``'a'``" -#: ../Doc/library/stdtypes.rst:2240 +#: ../Doc/library/stdtypes.rst:2238 msgid "String (converts any Python object using :func:`ascii`)." msgstr "" "String (convertit n'importe quel objet Python en utilisant :func:`ascii`)." -#: ../Doc/library/stdtypes.rst:2243 ../Doc/library/stdtypes.rst:3381 +#: ../Doc/library/stdtypes.rst:2241 ../Doc/library/stdtypes.rst:3377 msgid "``'%'``" msgstr "``'%'``" -#: ../Doc/library/stdtypes.rst:2243 ../Doc/library/stdtypes.rst:3381 +#: ../Doc/library/stdtypes.rst:2241 ../Doc/library/stdtypes.rst:3377 msgid "No argument is converted, results in a ``'%'`` character in the result." msgstr "" "Aucun argument n'est converti, donne un caractère de ``'%'`` dans le " "résultat." -#: ../Doc/library/stdtypes.rst:2250 ../Doc/library/stdtypes.rst:3388 +#: ../Doc/library/stdtypes.rst:2248 ../Doc/library/stdtypes.rst:3384 msgid "" "The alternate form causes a leading octal specifier (``'0o'``) to be " "inserted before the first digit." @@ -3830,7 +3831,7 @@ msgstr "" "La forme alternative entraîne l'insertion d'un préfixe octal (``'0o'``) " "avant le premier chiffre." -#: ../Doc/library/stdtypes.rst:2254 ../Doc/library/stdtypes.rst:3392 +#: ../Doc/library/stdtypes.rst:2252 ../Doc/library/stdtypes.rst:3388 msgid "" "The alternate form causes a leading ``'0x'`` or ``'0X'`` (depending on " "whether the ``'x'`` or ``'X'`` format was used) to be inserted before the " @@ -3840,7 +3841,7 @@ msgstr "" "(respectivement pour les formats ``'x'`` et ``'X'``) avant le premier " "chiffre." -#: ../Doc/library/stdtypes.rst:2258 ../Doc/library/stdtypes.rst:3396 +#: ../Doc/library/stdtypes.rst:2256 ../Doc/library/stdtypes.rst:3392 msgid "" "The alternate form causes the result to always contain a decimal point, even " "if no digits follow it." @@ -3848,14 +3849,14 @@ msgstr "" "La forme alternative implique la présence d'un point décimal, même si aucun " "chiffre ne le suit." -#: ../Doc/library/stdtypes.rst:2261 ../Doc/library/stdtypes.rst:3399 +#: ../Doc/library/stdtypes.rst:2259 ../Doc/library/stdtypes.rst:3395 msgid "" "The precision determines the number of digits after the decimal point and " "defaults to 6." msgstr "" "La précision détermine le nombre de chiffres après la virgule, 6 par défaut." -#: ../Doc/library/stdtypes.rst:2265 ../Doc/library/stdtypes.rst:3403 +#: ../Doc/library/stdtypes.rst:2263 ../Doc/library/stdtypes.rst:3399 msgid "" "The alternate form causes the result to always contain a decimal point, and " "trailing zeroes are not removed as they would otherwise be." @@ -3863,7 +3864,7 @@ msgstr "" "La forme alternative implique la présence d'un point décimal et les zéros " "non significatifs sont conservés (ils ne le seraient pas autrement)." -#: ../Doc/library/stdtypes.rst:2268 ../Doc/library/stdtypes.rst:3406 +#: ../Doc/library/stdtypes.rst:2266 ../Doc/library/stdtypes.rst:3402 msgid "" "The precision determines the number of significant digits before and after " "the decimal point and defaults to 6." @@ -3871,15 +3872,15 @@ msgstr "" "La précision détermine le nombre de chiffres significatifs avant et après la " "virgule. 6 par défaut." -#: ../Doc/library/stdtypes.rst:2272 ../Doc/library/stdtypes.rst:3410 +#: ../Doc/library/stdtypes.rst:2270 ../Doc/library/stdtypes.rst:3406 msgid "If precision is ``N``, the output is truncated to ``N`` characters." msgstr "Si la précision est ``N``, la sortie est tronquée à ``N`` caractères." -#: ../Doc/library/stdtypes.rst:2275 ../Doc/library/stdtypes.rst:3419 +#: ../Doc/library/stdtypes.rst:2273 ../Doc/library/stdtypes.rst:3415 msgid "See :pep:`237`." msgstr "Voir la :pep:`237`." -#: ../Doc/library/stdtypes.rst:2277 +#: ../Doc/library/stdtypes.rst:2275 msgid "" "Since Python strings have an explicit length, ``%s`` conversions do not " "assume that ``'\\0'`` is the end of the string." @@ -3887,7 +3888,7 @@ msgstr "" "Puisque les chaînes Python ont une longueur explicite, les conversions ``" "%s`` ne considèrent pas ``'\\0'`` comme la fin de la chaîne." -#: ../Doc/library/stdtypes.rst:2282 +#: ../Doc/library/stdtypes.rst:2280 msgid "" "``%f`` conversions for numbers whose absolute value is over 1e50 are no " "longer replaced by ``%g`` conversions." @@ -3895,7 +3896,7 @@ msgstr "" "Les conversions ``%f`` pour nombres dont la valeur absolue est supérieure à " "``1e50`` ne sont plus remplacés par des conversions ``%g``." -#: ../Doc/library/stdtypes.rst:2293 +#: ../Doc/library/stdtypes.rst:2291 msgid "" "Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, :class:" "`memoryview`" @@ -3903,7 +3904,7 @@ msgstr "" "Séquences Binaires --- :class:`bytes`, :class:`bytearray`, :class:" "`memoryview`" -#: ../Doc/library/stdtypes.rst:2301 +#: ../Doc/library/stdtypes.rst:2299 msgid "" "The core built-in types for manipulating binary data are :class:`bytes` and :" "class:`bytearray`. They are supported by :class:`memoryview` which uses the :" @@ -3915,7 +3916,7 @@ msgstr "" "qui utilise le :ref:`buffer protocol ` pour accéder à la " "mémoire d'autres objets binaires sans avoir besoin d'en faire une copie." -#: ../Doc/library/stdtypes.rst:2306 +#: ../Doc/library/stdtypes.rst:2304 msgid "" "The :mod:`array` module supports efficient storage of basic data types like " "32-bit integers and IEEE754 double-precision floating values." @@ -3923,11 +3924,11 @@ msgstr "" "Le module :mod:`array` permet le stockage efficace de types basiques comme " "les entiers de 32 bits et les *float* double précision IEEE754." -#: ../Doc/library/stdtypes.rst:2312 +#: ../Doc/library/stdtypes.rst:2310 msgid "Bytes Objects" msgstr "Objets *bytes*" -#: ../Doc/library/stdtypes.rst:2316 +#: ../Doc/library/stdtypes.rst:2314 msgid "" "Bytes objects are immutable sequences of single bytes. Since many major " "binary protocols are based on the ASCII text encoding, bytes objects offer " @@ -3939,7 +3940,7 @@ msgstr "" "méthodes qui ne sont valables que lors de la manipulation de données ASCII " "et sont étroitement liés aux objets *str* dans bien d'autres aspects." -#: ../Doc/library/stdtypes.rst:2323 +#: ../Doc/library/stdtypes.rst:2321 msgid "" "Firstly, the syntax for bytes literals is largely the same as that for " "string literals, except that a ``b`` prefix is added:" @@ -3947,24 +3948,24 @@ msgstr "" "Tout d'abord, la syntaxe des *bytes* littéraux est en grande partie la même " "que pour les chaînes littérales, en dehors du préfixe ``b`` :" -#: ../Doc/library/stdtypes.rst:2326 +#: ../Doc/library/stdtypes.rst:2324 msgid "Single quotes: ``b'still allows embedded \"double\" quotes'``" msgstr "" "Les guillemets simples : ``b'autorisent aussi les guillemets \"doubles\"'``" -#: ../Doc/library/stdtypes.rst:2327 +#: ../Doc/library/stdtypes.rst:2325 msgid "Double quotes: ``b\"still allows embedded 'single' quotes\"``." msgstr "" "Les guillemets doubles : ``b\"permettent aussi les guillemets 'simples'\"``." -#: ../Doc/library/stdtypes.rst:2328 +#: ../Doc/library/stdtypes.rst:2326 msgid "" "Triple quoted: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" msgstr "" "Les guillemets triples : ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes" "\"\"\"``" -#: ../Doc/library/stdtypes.rst:2330 +#: ../Doc/library/stdtypes.rst:2328 msgid "" "Only ASCII characters are permitted in bytes literals (regardless of the " "declared source code encoding). Any binary values over 127 must be entered " @@ -3975,7 +3976,7 @@ msgstr "" "delà de 127 doivent être entrés dans littéraux de *bytes* en utilisant une " "séquence d'échappement appropriée." -#: ../Doc/library/stdtypes.rst:2334 +#: ../Doc/library/stdtypes.rst:2332 msgid "" "As with string literals, bytes literals may also use a ``r`` prefix to " "disable processing of escape sequences. See :ref:`strings` for more about " @@ -3987,7 +3988,7 @@ msgstr "" "différentes formes littérales de *bytes*, y compris les séquences " "d'échappement supportées." -#: ../Doc/library/stdtypes.rst:2338 +#: ../Doc/library/stdtypes.rst:2336 msgid "" "While bytes literals and representations are based on ASCII text, bytes " "objects actually behave like immutable sequences of integers, with each " @@ -4010,7 +4011,7 @@ msgstr "" "sur des données binaires qui ne sont pas compatibles ASCII conduit " "généralement à leur corruption)." -#: ../Doc/library/stdtypes.rst:2348 +#: ../Doc/library/stdtypes.rst:2346 msgid "" "In addition to the literal forms, bytes objects can be created in a number " "of other ways:" @@ -4018,26 +4019,26 @@ msgstr "" "En plus des formes littérales, des objets *bytes* peuvent être créés par de " "nombreux moyens :" -#: ../Doc/library/stdtypes.rst:2351 +#: ../Doc/library/stdtypes.rst:2349 msgid "A zero-filled bytes object of a specified length: ``bytes(10)``" msgstr "" "Un objet *bytes* rempli de zéros d'une longueur spécifiée : ``bytes(10)``" -#: ../Doc/library/stdtypes.rst:2352 +#: ../Doc/library/stdtypes.rst:2350 msgid "From an iterable of integers: ``bytes(range(20))``" msgstr "D'un itérable d'entiers : ``bytes(range(20))``" -#: ../Doc/library/stdtypes.rst:2353 +#: ../Doc/library/stdtypes.rst:2351 msgid "Copying existing binary data via the buffer protocol: ``bytes(obj)``" msgstr "" "Copier des données binaires existantes via le *buffer protocol* : " "``bytes(obj)``" -#: ../Doc/library/stdtypes.rst:2355 +#: ../Doc/library/stdtypes.rst:2353 msgid "Also see the :ref:`bytes ` built-in." msgstr "Voir aussi la fonction native :ref:`bytes `." -#: ../Doc/library/stdtypes.rst:2357 +#: ../Doc/library/stdtypes.rst:2355 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " @@ -4049,7 +4050,7 @@ msgstr "" "données binaires. Par conséquent, le type *bytes* a une méthode de classe " "pour lire des données dans ce format :" -#: ../Doc/library/stdtypes.rst:2363 +#: ../Doc/library/stdtypes.rst:2361 msgid "" "This :class:`bytes` class method returns a bytes object, decoding the given " "string object. The string must contain two hexadecimal digits per byte, " @@ -4059,7 +4060,7 @@ msgstr "" "la chaîne donnée. La chaîne doit contenir deux chiffres hexadécimaux par " "octet, les espaces ASCII sont ignorés." -#: ../Doc/library/stdtypes.rst:2370 +#: ../Doc/library/stdtypes.rst:2368 msgid "" ":meth:`bytes.fromhex` now skips all ASCII whitespace in the string, not just " "spaces." @@ -4067,7 +4068,7 @@ msgstr "" ":meth:`bytes.fromhex` saute maintenant dans la chaîne tous les caractères " "ASCII \"blancs\", pas seulement les espaces." -#: ../Doc/library/stdtypes.rst:2374 +#: ../Doc/library/stdtypes.rst:2372 msgid "" "A reverse conversion function exists to transform a bytes object into its " "hexadecimal representation." @@ -4075,7 +4076,7 @@ msgstr "" "Une fonction de conversion inverse existe pour transformer un objet *bytes* " "en sa représentation hexadécimale." -#: ../Doc/library/stdtypes.rst:2379 ../Doc/library/stdtypes.rst:2455 +#: ../Doc/library/stdtypes.rst:2377 ../Doc/library/stdtypes.rst:2453 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the instance." @@ -4083,7 +4084,7 @@ msgstr "" "Renvoie une chaîne contenant deux chiffres hexadécimaux pour chaque octet du " "*byte*." -#: ../Doc/library/stdtypes.rst:2387 +#: ../Doc/library/stdtypes.rst:2385 msgid "" "Since bytes objects are sequences of integers (akin to a tuple), for a bytes " "object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be a bytes " @@ -4095,7 +4096,7 @@ msgstr "" "que``b[0:1]`` sera un objet *bytes* de longueur 1. (Cela contraste avec les " "chaînes, où l'indexation et le *slicing* donne une chaîne de longueur 1)" -#: ../Doc/library/stdtypes.rst:2392 +#: ../Doc/library/stdtypes.rst:2390 msgid "" "The representation of bytes objects uses the literal format (``b'...'``) " "since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can " @@ -4105,7 +4106,7 @@ msgstr "" "est souvent plus utile que par exemple ``bytes([46, 46, 46])``. Vous pouvez " "toujours convertir un *bytes* en liste d'entiers en utilisant ``list(b)``." -#: ../Doc/library/stdtypes.rst:2397 +#: ../Doc/library/stdtypes.rst:2395 msgid "" "For Python 2.x users: In the Python 2.x series, a variety of implicit " "conversions between 8-bit strings (the closest thing 2.x offers to a built-" @@ -4126,11 +4127,11 @@ msgstr "" "conversions entre les données binaires et texte Unicode doivent être " "explicites, et les *bytes* sont toujours différents des chaînes." -#: ../Doc/library/stdtypes.rst:2410 +#: ../Doc/library/stdtypes.rst:2408 msgid "Bytearray Objects" msgstr "Objets *bytearray*" -#: ../Doc/library/stdtypes.rst:2414 +#: ../Doc/library/stdtypes.rst:2412 msgid "" ":class:`bytearray` objects are a mutable counterpart to :class:`bytes` " "objects." @@ -4138,7 +4139,7 @@ msgstr "" "Les objets :class:`bytearray` sont l'équivalent muable des objets :class:" "`bytes`." -#: ../Doc/library/stdtypes.rst:2419 +#: ../Doc/library/stdtypes.rst:2417 msgid "" "There is no dedicated literal syntax for bytearray objects, instead they are " "always created by calling the constructor:" @@ -4146,27 +4147,27 @@ msgstr "" "Il n'y a pas de syntaxe littérale dédiée aux *bytearray*, ils sont toujours " "créés en appelant le constructeur :" -#: ../Doc/library/stdtypes.rst:2422 +#: ../Doc/library/stdtypes.rst:2420 msgid "Creating an empty instance: ``bytearray()``" msgstr "Créer une instance vide: ``bytearray()``" -#: ../Doc/library/stdtypes.rst:2423 +#: ../Doc/library/stdtypes.rst:2421 msgid "Creating a zero-filled instance with a given length: ``bytearray(10)``" msgstr "" "Créer une instance remplie de zéros d'une longueur donnée : ``bytearray(10)``" -#: ../Doc/library/stdtypes.rst:2424 +#: ../Doc/library/stdtypes.rst:2422 msgid "From an iterable of integers: ``bytearray(range(20))``" msgstr "À partir d'un itérable d'entiers : ``bytearray(range(20))``" -#: ../Doc/library/stdtypes.rst:2425 +#: ../Doc/library/stdtypes.rst:2423 msgid "" "Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``" msgstr "" "Copie des données binaires existantes via le *buffer protocol* : " "``bytearray(b'Hi!')``" -#: ../Doc/library/stdtypes.rst:2427 +#: ../Doc/library/stdtypes.rst:2425 msgid "" "As bytearray objects are mutable, they support the :ref:`mutable ` sequence operations in addition to the common bytes and bytearray " @@ -4176,11 +4177,11 @@ msgstr "" "séquence :ref:`muables ` en plus des opérations communes " "de *bytes* et *bytearray* décrites dans :ref:`bytes-methods`." -#: ../Doc/library/stdtypes.rst:2431 +#: ../Doc/library/stdtypes.rst:2429 msgid "Also see the :ref:`bytearray ` built-in." msgstr "Voir aussi la fonction native :ref:`bytearray `." -#: ../Doc/library/stdtypes.rst:2433 +#: ../Doc/library/stdtypes.rst:2431 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " @@ -4192,7 +4193,7 @@ msgstr "" "données binaires. Par conséquent, le type *bytearray* a une méthode de " "classe pour lire les données dans ce format :" -#: ../Doc/library/stdtypes.rst:2439 +#: ../Doc/library/stdtypes.rst:2437 msgid "" "This :class:`bytearray` class method returns bytearray object, decoding the " "given string object. The string must contain two hexadecimal digits per " @@ -4202,7 +4203,7 @@ msgstr "" "décodant la chaîne donnée. La chaîne doit contenir deux chiffres " "hexadécimaux par octet, les espaces ASCII sont ignorés." -#: ../Doc/library/stdtypes.rst:2446 +#: ../Doc/library/stdtypes.rst:2444 msgid "" ":meth:`bytearray.fromhex` now skips all ASCII whitespace in the string, not " "just spaces." @@ -4210,7 +4211,7 @@ msgstr "" ":meth:`bytearray.fromhex` saute maintenant tous les caractères \"blancs\" " "ASCII dans la chaîne, pas seulement les espaces." -#: ../Doc/library/stdtypes.rst:2450 +#: ../Doc/library/stdtypes.rst:2448 msgid "" "A reverse conversion function exists to transform a bytearray object into " "its hexadecimal representation." @@ -4218,7 +4219,7 @@ msgstr "" "Une fonction de conversion inverse existe pour transformer un objet " "*bytearray* en sa représentation hexadécimale." -#: ../Doc/library/stdtypes.rst:2463 +#: ../Doc/library/stdtypes.rst:2461 msgid "" "Since bytearray objects are sequences of integers (akin to a list), for a " "bytearray object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be " @@ -4231,7 +4232,7 @@ msgstr "" "chaînes de texte, où l'indexation et le *slicing* produit une chaîne de " "longueur 1)" -#: ../Doc/library/stdtypes.rst:2468 +#: ../Doc/library/stdtypes.rst:2466 msgid "" "The representation of bytearray objects uses the bytes literal format " "(``bytearray(b'...')``) since it is often more useful than e.g. " @@ -4243,11 +4244,11 @@ msgstr "" "exemple ``bytearray([46, 46, 46])``. Vous pouvez toujours convertir un objet " "*bytearray* en une liste de nombres entiers en utilisant ``list(b)``." -#: ../Doc/library/stdtypes.rst:2477 +#: ../Doc/library/stdtypes.rst:2475 msgid "Bytes and Bytearray Operations" msgstr "Opérations sur les *bytes* et *bytearray*" -#: ../Doc/library/stdtypes.rst:2482 +#: ../Doc/library/stdtypes.rst:2480 msgid "" "Both bytes and bytearray objects support the :ref:`common ` " "sequence operations. They interoperate not just with operands of the same " @@ -4262,7 +4263,7 @@ msgstr "" "opérations sans provoquer d'erreurs. Cependant, le type du résultat peut " "dépendre de l'ordre des opérandes." -#: ../Doc/library/stdtypes.rst:2490 +#: ../Doc/library/stdtypes.rst:2488 msgid "" "The methods on bytes and bytearray objects don't accept strings as their " "arguments, just as the methods on strings don't accept bytes as their " @@ -4272,11 +4273,11 @@ msgstr "" "comme arguments, tout comme les méthodes sur les chaînes n'acceptent pas les " "*bytes* comme arguments. Par exemple, vous devez écrire ::" -#: ../Doc/library/stdtypes.rst:2497 +#: ../Doc/library/stdtypes.rst:2495 msgid "and::" msgstr "et  : ::" -#: ../Doc/library/stdtypes.rst:2502 +#: ../Doc/library/stdtypes.rst:2500 msgid "" "Some bytes and bytearray operations assume the use of ASCII compatible " "binary formats, and hence should be avoided when working with arbitrary " @@ -4287,7 +4288,7 @@ msgstr "" "travaillez avec des données binaires arbitraires. Ces restrictions sont " "couvertes ci-dessous." -#: ../Doc/library/stdtypes.rst:2507 +#: ../Doc/library/stdtypes.rst:2505 msgid "" "Using these ASCII based operations to manipulate binary data that is not " "stored in an ASCII based format may lead to data corruption." @@ -4295,7 +4296,7 @@ msgstr "" "Utiliser ces opérations basées sur l'ASCII pour manipuler des données " "binaires qui ne sont pas au format ASCII peut les corrompre." -#: ../Doc/library/stdtypes.rst:2510 +#: ../Doc/library/stdtypes.rst:2508 msgid "" "The following methods on bytes and bytearray objects can be used with " "arbitrary binary data." @@ -4303,7 +4304,7 @@ msgstr "" "Les méthodes suivantes sur les *bytes* et *bytearray* peuvent être utilisées " "avec des données binaires arbitraires." -#: ../Doc/library/stdtypes.rst:2516 +#: ../Doc/library/stdtypes.rst:2514 msgid "" "Return the number of non-overlapping occurrences of subsequence *sub* in the " "range [*start*, *end*]. Optional arguments *start* and *end* are " @@ -4313,9 +4314,9 @@ msgstr "" "séquence *sub* dans l'intervalle [*start*, *end*]. Les arguments facultatifs " "*start* et *end* sont interprétés comme pour un *slice*." -#: ../Doc/library/stdtypes.rst:2520 ../Doc/library/stdtypes.rst:2567 -#: ../Doc/library/stdtypes.rst:2589 ../Doc/library/stdtypes.rst:2655 -#: ../Doc/library/stdtypes.rst:2668 +#: ../Doc/library/stdtypes.rst:2518 ../Doc/library/stdtypes.rst:2565 +#: ../Doc/library/stdtypes.rst:2587 ../Doc/library/stdtypes.rst:2653 +#: ../Doc/library/stdtypes.rst:2666 msgid "" "The subsequence to search for may be any :term:`bytes-like object` or an " "integer in the range 0 to 255." @@ -4323,14 +4324,14 @@ msgstr "" "La sous-séquence à rechercher peut être un quelconque :term:`bytes-like " "object` ou un nombre entier compris entre 0 et 255." -#: ../Doc/library/stdtypes.rst:2523 ../Doc/library/stdtypes.rst:2579 -#: ../Doc/library/stdtypes.rst:2592 ../Doc/library/stdtypes.rst:2658 -#: ../Doc/library/stdtypes.rst:2671 +#: ../Doc/library/stdtypes.rst:2521 ../Doc/library/stdtypes.rst:2577 +#: ../Doc/library/stdtypes.rst:2590 ../Doc/library/stdtypes.rst:2656 +#: ../Doc/library/stdtypes.rst:2669 msgid "Also accept an integer in the range 0 to 255 as the subsequence." msgstr "" "Accepte aussi un nombre entier compris entre 0 et 255 comme sous-séquence." -#: ../Doc/library/stdtypes.rst:2530 +#: ../Doc/library/stdtypes.rst:2528 msgid "" "Return a string decoded from the given bytes. Default encoding is " "``'utf-8'``. *errors* may be given to set a different error handling " @@ -4349,7 +4350,7 @@ msgstr "" "register_error`, voir la section :ref:`error-handlers`. Pour une liste des " "encodages possibles, voir la section :ref:`standard-encodings`." -#: ../Doc/library/stdtypes.rst:2540 +#: ../Doc/library/stdtypes.rst:2538 msgid "" "Passing the *encoding* argument to :class:`str` allows decoding any :term:" "`bytes-like object` directly, without needing to make a temporary bytes or " @@ -4359,11 +4360,11 @@ msgstr "" "`bytes-like object` directement, sans avoir besoin d'utiliser un *bytes* ou " "*bytearray* temporaire." -#: ../Doc/library/stdtypes.rst:2544 +#: ../Doc/library/stdtypes.rst:2542 msgid "Added support for keyword arguments." msgstr "Gère les arguments nommés." -#: ../Doc/library/stdtypes.rst:2551 +#: ../Doc/library/stdtypes.rst:2549 msgid "" "Return ``True`` if the binary data ends with the specified *suffix*, " "otherwise return ``False``. *suffix* can also be a tuple of suffixes to " @@ -4375,13 +4376,13 @@ msgstr "" "optionnel *start*, la recherche se fait à partir de cette position. Avec " "l'argument optionnel *end*, la comparaison s'arrête à cette position." -#: ../Doc/library/stdtypes.rst:2556 +#: ../Doc/library/stdtypes.rst:2554 msgid "The suffix(es) to search for may be any :term:`bytes-like object`." msgstr "" "Les suffixes à rechercher peuvent être n'importe quel :term:`bytes-like " "object`." -#: ../Doc/library/stdtypes.rst:2562 +#: ../Doc/library/stdtypes.rst:2560 msgid "" "Return the lowest index in the data where the subsequence *sub* is found, " "such that *sub* is contained in the slice ``s[start:end]``. Optional " @@ -4393,7 +4394,7 @@ msgstr "" "facultatifs *start* et *end* sont interprétés comme dans la notation des " "*slices*. Donne ``-1`` si *sub* n'est pas trouvé." -#: ../Doc/library/stdtypes.rst:2572 +#: ../Doc/library/stdtypes.rst:2570 msgid "" "The :meth:`~bytes.find` method should be used only if you need to know the " "position of *sub*. To check if *sub* is a substring or not, use the :" @@ -4403,7 +4404,7 @@ msgstr "" "de connaître la position de *sub*. Pour vérifier si *sub* est présent ou " "non, utilisez l'opérateur :keyword:`in` ::" -#: ../Doc/library/stdtypes.rst:2586 +#: ../Doc/library/stdtypes.rst:2584 msgid "" "Like :meth:`~bytes.find`, but raise :exc:`ValueError` when the subsequence " "is not found." @@ -4411,7 +4412,7 @@ msgstr "" "Comme :meth:`~bytes.find`, mais lève une :exc:`ValueError` lorsque la " "séquence est introuvable." -#: ../Doc/library/stdtypes.rst:2599 +#: ../Doc/library/stdtypes.rst:2597 msgid "" "Return a bytes or bytearray object which is the concatenation of the binary " "data sequences in *iterable*. A :exc:`TypeError` will be raised if there " @@ -4427,7 +4428,7 @@ msgstr "" "éléments est le contenu du *bytes* ou du *bytearray* depuis lequel cette " "méthode est appelée." -#: ../Doc/library/stdtypes.rst:2610 +#: ../Doc/library/stdtypes.rst:2608 msgid "" "This static method returns a translation table usable for :meth:`bytes." "translate` that will map each character in *from* into the character at the " @@ -4440,7 +4441,7 @@ msgstr "" "être des :term:`bytes-like objects ` et avoir la même " "longueur." -#: ../Doc/library/stdtypes.rst:2621 +#: ../Doc/library/stdtypes.rst:2619 msgid "" "Split the sequence at the first occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself or its " @@ -4454,11 +4455,11 @@ msgstr "" "est pas trouvé, le 3-tuple renvoyé contiendra une copie de la séquence " "d'origine, suivi de deux *bytes* ou *bytearray* vides." -#: ../Doc/library/stdtypes.rst:2628 ../Doc/library/stdtypes.rst:2685 +#: ../Doc/library/stdtypes.rst:2626 ../Doc/library/stdtypes.rst:2683 msgid "The separator to search for may be any :term:`bytes-like object`." msgstr "Le séparateur à rechercher peut être tout :term:`bytes-like object`." -#: ../Doc/library/stdtypes.rst:2634 +#: ../Doc/library/stdtypes.rst:2632 msgid "" "Return a copy of the sequence with all occurrences of subsequence *old* " "replaced by *new*. If the optional argument *count* is given, only the " @@ -4468,7 +4469,7 @@ msgstr "" "séquence *old* sont remplacées par *new*. Si l'argument optionnel *count* " "est donné, seules les *count* premières occurrences de sont remplacés." -#: ../Doc/library/stdtypes.rst:2638 +#: ../Doc/library/stdtypes.rst:2636 msgid "" "The subsequence to search for and its replacement may be any :term:`bytes-" "like object`." @@ -4476,14 +4477,14 @@ msgstr "" "La sous-séquence à rechercher et son remplacement peuvent être n'importe " "quel :term:`bytes-like object`." -#: ../Doc/library/stdtypes.rst:2643 ../Doc/library/stdtypes.rst:2736 -#: ../Doc/library/stdtypes.rst:2750 ../Doc/library/stdtypes.rst:2774 -#: ../Doc/library/stdtypes.rst:2788 ../Doc/library/stdtypes.rst:2823 -#: ../Doc/library/stdtypes.rst:2893 ../Doc/library/stdtypes.rst:2911 -#: ../Doc/library/stdtypes.rst:2939 ../Doc/library/stdtypes.rst:3078 -#: ../Doc/library/stdtypes.rst:3133 ../Doc/library/stdtypes.rst:3176 -#: ../Doc/library/stdtypes.rst:3197 ../Doc/library/stdtypes.rst:3219 -#: ../Doc/library/stdtypes.rst:3423 +#: ../Doc/library/stdtypes.rst:2641 ../Doc/library/stdtypes.rst:2734 +#: ../Doc/library/stdtypes.rst:2748 ../Doc/library/stdtypes.rst:2772 +#: ../Doc/library/stdtypes.rst:2786 ../Doc/library/stdtypes.rst:2821 +#: ../Doc/library/stdtypes.rst:2891 ../Doc/library/stdtypes.rst:2909 +#: ../Doc/library/stdtypes.rst:2937 ../Doc/library/stdtypes.rst:3076 +#: ../Doc/library/stdtypes.rst:3131 ../Doc/library/stdtypes.rst:3174 +#: ../Doc/library/stdtypes.rst:3195 ../Doc/library/stdtypes.rst:3217 +#: ../Doc/library/stdtypes.rst:3419 msgid "" "The bytearray version of this method does *not* operate in place - it always " "produces a new object, even if no changes were made." @@ -4492,7 +4493,7 @@ msgstr "" "produit toujours un nouvel objet, même si aucune modification n'a été " "effectuée." -#: ../Doc/library/stdtypes.rst:2650 +#: ../Doc/library/stdtypes.rst:2648 msgid "" "Return the highest index in the sequence where the subsequence *sub* is " "found, such that *sub* is contained within ``s[start:end]``. Optional " @@ -4504,7 +4505,7 @@ msgstr "" "sont interprétés comme dans la notation des *slices*. Donne ``-1`` si *sub* " "n'est pas trouvable." -#: ../Doc/library/stdtypes.rst:2665 +#: ../Doc/library/stdtypes.rst:2663 msgid "" "Like :meth:`~bytes.rfind` but raises :exc:`ValueError` when the subsequence " "*sub* is not found." @@ -4512,7 +4513,7 @@ msgstr "" "Semblable à :meth:`~bytes.rfind` mais lève une :exc:`ValueError` lorsque " "*sub* est introuvable." -#: ../Doc/library/stdtypes.rst:2678 +#: ../Doc/library/stdtypes.rst:2676 msgid "" "Split the sequence at the last occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself or its " @@ -4526,7 +4527,7 @@ msgstr "" "Si le séparateur n'est pas trouvé, le tuple contiendra une copie de la " "séquence d'origine, suivi de deux *bytes* ou *bytesarray* vides." -#: ../Doc/library/stdtypes.rst:2691 +#: ../Doc/library/stdtypes.rst:2689 msgid "" "Return ``True`` if the binary data starts with the specified *prefix*, " "otherwise return ``False``. *prefix* can also be a tuple of prefixes to " @@ -4538,13 +4539,13 @@ msgstr "" "Avec l'argument *start* la recherche commence à cette position. Avec " "l'argument *end* option, la recherche s'arrête à cette position." -#: ../Doc/library/stdtypes.rst:2696 +#: ../Doc/library/stdtypes.rst:2694 msgid "The prefix(es) to search for may be any :term:`bytes-like object`." msgstr "" "Le préfixe(s) à rechercher peuvent être n'importe quel :term:`bytes-like " "object`." -#: ../Doc/library/stdtypes.rst:2702 +#: ../Doc/library/stdtypes.rst:2700 msgid "" "Return a copy of the bytes or bytearray object where all bytes occurring in " "the optional argument *delete* are removed, and the remaining bytes have " @@ -4555,25 +4556,25 @@ msgstr "" "*delete* sont supprimés, et les octets restants changés par la table de " "correspondance donnée, qui doit être un objet *bytes* d'une longueur de 256." -#: ../Doc/library/stdtypes.rst:2707 +#: ../Doc/library/stdtypes.rst:2705 msgid "" "You can use the :func:`bytes.maketrans` method to create a translation table." msgstr "" "Vous pouvez utiliser la méthode :func:`bytes.maketrans` pour créer une table " "de correspondance." -#: ../Doc/library/stdtypes.rst:2710 +#: ../Doc/library/stdtypes.rst:2708 msgid "" "Set the *table* argument to ``None`` for translations that only delete " "characters::" msgstr "" "Donnez ``None`` comme *table* pour seulement supprimer des caractères : ::" -#: ../Doc/library/stdtypes.rst:2716 +#: ../Doc/library/stdtypes.rst:2714 msgid "*delete* is now supported as a keyword argument." msgstr "*delete* est maintenant accepté comme argument nommé." -#: ../Doc/library/stdtypes.rst:2720 +#: ../Doc/library/stdtypes.rst:2718 msgid "" "The following methods on bytes and bytearray objects have default behaviours " "that assume the use of ASCII compatible binary formats, but can still be " @@ -4587,7 +4588,7 @@ msgstr "" "appropriés. Notez que toutes les méthodes de *bytearray* de cette section " "ne travaillent jamais sur l'objet lui même, mais renvoient un nouvel objet." -#: ../Doc/library/stdtypes.rst:2729 +#: ../Doc/library/stdtypes.rst:2727 msgid "" "Return a copy of the object centered in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " @@ -4599,7 +4600,7 @@ msgstr "" "espace ASCII). Pour les objets :class:`bytes`, la séquence initiale est " "renvoyée si *width* est inférieur ou égal à ``len(s)``." -#: ../Doc/library/stdtypes.rst:2743 +#: ../Doc/library/stdtypes.rst:2741 msgid "" "Return a copy of the object left justified in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " @@ -4611,7 +4612,7 @@ msgstr "" "espace ASCII). Pour les objets :class:`bytes`, la séquence initiale est " "renvoyée si *width* est inférieure ou égale à ``len(s)``." -#: ../Doc/library/stdtypes.rst:2757 +#: ../Doc/library/stdtypes.rst:2755 msgid "" "Return a copy of the sequence with specified leading bytes removed. The " "*chars* argument is a binary sequence specifying the set of byte values to " @@ -4628,15 +4629,15 @@ msgstr "" "*chars* n’est pas un préfixe, toutes les combinaisons de ses valeurs sont " "supprimées ::" -#: ../Doc/library/stdtypes.rst:2769 ../Doc/library/stdtypes.rst:2818 -#: ../Doc/library/stdtypes.rst:2888 +#: ../Doc/library/stdtypes.rst:2767 ../Doc/library/stdtypes.rst:2816 +#: ../Doc/library/stdtypes.rst:2886 msgid "" "The binary sequence of byte values to remove may be any :term:`bytes-like " "object`." msgstr "" "La séquence de valeurs à supprimer peut être tout :term:`bytes-like object`." -#: ../Doc/library/stdtypes.rst:2781 +#: ../Doc/library/stdtypes.rst:2779 msgid "" "Return a copy of the object right justified in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " @@ -4648,7 +4649,7 @@ msgstr "" "défaut est un espace ASCII). Pour les objets :class:`bytes`, la séquence " "d'origine est renvoyée si *width* est inférieure ou égale à ``len(s)``." -#: ../Doc/library/stdtypes.rst:2795 +#: ../Doc/library/stdtypes.rst:2793 msgid "" "Split the binary sequence into subsequences of the same type, using *sep* as " "the delimiter string. If *maxsplit* is given, at most *maxsplit* splits are " @@ -4665,7 +4666,7 @@ msgstr "" "meth:`rsplit` se comporte comme :meth:`split` qui est décrit en détail ci-" "dessous." -#: ../Doc/library/stdtypes.rst:2806 +#: ../Doc/library/stdtypes.rst:2804 msgid "" "Return a copy of the sequence with specified trailing bytes removed. The " "*chars* argument is a binary sequence specifying the set of byte values to " @@ -4680,7 +4681,7 @@ msgstr "" "supprimés. L'argument *chars* n'est pas un suffixe : toutes les combinaisons " "de ses valeurs sont retirées ::" -#: ../Doc/library/stdtypes.rst:2830 +#: ../Doc/library/stdtypes.rst:2828 msgid "" "Split the binary sequence into subsequences of the same type, using *sep* as " "the delimiter string. If *maxsplit* is given and non-negative, at most " @@ -4694,7 +4695,7 @@ msgstr "" "éléments), Si *maxsplit* n'est pas spécifié ou faut ``-1``, il n'y a aucune " "limite au nombre de découpes (elles sont toutes effectuées)." -#: ../Doc/library/stdtypes.rst:2836 +#: ../Doc/library/stdtypes.rst:2834 msgid "" "If *sep* is given, consecutive delimiters are not grouped together and are " "deemed to delimit empty subsequences (for example, ``b'1,,2'.split(b',')`` " @@ -4712,7 +4713,7 @@ msgstr "" "``[b'']`` ou ``[bytearray(b'')]`` en fonction du type de l'objet découpé. " "L'argument *sep* peut être n'importe quel :term:`bytes-like object`." -#: ../Doc/library/stdtypes.rst:2854 +#: ../Doc/library/stdtypes.rst:2852 msgid "" "If *sep* is not specified or is ``None``, a different splitting algorithm is " "applied: runs of consecutive ASCII whitespace are regarded as a single " @@ -4728,7 +4729,7 @@ msgstr "" "diviser une séquence vide ou une séquence composée d'espaces ASCII avec un " "séparateur ``None`` renvoie ``[]``." -#: ../Doc/library/stdtypes.rst:2875 +#: ../Doc/library/stdtypes.rst:2873 msgid "" "Return a copy of the sequence with specified leading and trailing bytes " "removed. The *chars* argument is a binary sequence specifying the set of " @@ -4744,7 +4745,7 @@ msgstr "" "espaces ASCII sont supprimés. L'argument *chars* n'est ni un préfixe ni un " "suffixe, toutes les combinaisons de ses valeurs sont supprimées : ::" -#: ../Doc/library/stdtypes.rst:2897 +#: ../Doc/library/stdtypes.rst:2895 msgid "" "The following methods on bytes and bytearray objects assume the use of ASCII " "compatible binary formats and should not be applied to arbitrary binary " @@ -4757,7 +4758,7 @@ msgstr "" "que toutes les méthodes de *bytearray* de cette section *ne modifient pas* " "les octets, ils produisent de nouveaux objets." -#: ../Doc/library/stdtypes.rst:2905 +#: ../Doc/library/stdtypes.rst:2903 msgid "" "Return a copy of the sequence with each byte interpreted as an ASCII " "character, and the first byte capitalized and the rest lowercased. Non-ASCII " @@ -4767,7 +4768,7 @@ msgstr "" "caractère ASCII, le premier octet en capitale et le reste en minuscules. Les " "octets non ASCII ne sont pas modifiés." -#: ../Doc/library/stdtypes.rst:2918 +#: ../Doc/library/stdtypes.rst:2916 msgid "" "Return a copy of the sequence where all ASCII tab characters are replaced by " "one or more ASCII spaces, depending on the current column and the given tab " @@ -4798,7 +4799,7 @@ msgstr "" "cours est incrémentée de un indépendamment de la façon dont l'octet est " "représenté lors de l’affichage : ::" -#: ../Doc/library/stdtypes.rst:2946 +#: ../Doc/library/stdtypes.rst:2944 msgid "" "Return true if all bytes in the sequence are alphabetical ASCII characters " "or ASCII decimal digits and the sequence is not empty, false otherwise. " @@ -4812,7 +4813,7 @@ msgstr "" "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'`` et les " "chiffres : ``b'0123456789'``." -#: ../Doc/library/stdtypes.rst:2963 +#: ../Doc/library/stdtypes.rst:2961 msgid "" "Return true if all bytes in the sequence are alphabetic ASCII characters and " "the sequence is not empty, false otherwise. Alphabetic ASCII characters are " @@ -4824,7 +4825,7 @@ msgstr "" "Les caractères ASCIIalphabétiques sont : " "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'``." -#: ../Doc/library/stdtypes.rst:2979 +#: ../Doc/library/stdtypes.rst:2977 msgid "" "Return true if the sequence is empty or all bytes in the sequence are ASCII, " "false otherwise. ASCII bytes are in the range 0-0x7F." @@ -4833,7 +4834,7 @@ msgstr "" "octets ASCII, renvoie faux dans le cas contraire. Les octets ASCII dans " "l'intervalle ``0``---``0x7F``." -#: ../Doc/library/stdtypes.rst:2989 +#: ../Doc/library/stdtypes.rst:2987 msgid "" "Return true if all bytes in the sequence are ASCII decimal digits and the " "sequence is not empty, false otherwise. ASCII decimal digits are those byte " @@ -4843,7 +4844,7 @@ msgstr "" "que la séquence n'est pas vide, sinon ``False``. Les chiffres ASCII sont " "``b'0123456789'``." -#: ../Doc/library/stdtypes.rst:3004 +#: ../Doc/library/stdtypes.rst:3002 msgid "" "Return true if there is at least one lowercase ASCII character in the " "sequence and no uppercase ASCII characters, false otherwise." @@ -4851,9 +4852,9 @@ msgstr "" "Donne ``True`` s'il y a au moins un caractère ASCII minuscule dans la " "séquence et aucune capitale, sinon ``False``." -#: ../Doc/library/stdtypes.rst:3014 ../Doc/library/stdtypes.rst:3056 -#: ../Doc/library/stdtypes.rst:3072 ../Doc/library/stdtypes.rst:3122 -#: ../Doc/library/stdtypes.rst:3191 +#: ../Doc/library/stdtypes.rst:3012 ../Doc/library/stdtypes.rst:3054 +#: ../Doc/library/stdtypes.rst:3070 ../Doc/library/stdtypes.rst:3120 +#: ../Doc/library/stdtypes.rst:3189 msgid "" "Lowercase ASCII characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " @@ -4862,7 +4863,7 @@ msgstr "" "Les caractères ASCII minuscules sont ``b'abcdefghijklmnopqrstuvwxyz'``. Les " "capitales ASCII sont ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``." -#: ../Doc/library/stdtypes.rst:3022 +#: ../Doc/library/stdtypes.rst:3020 msgid "" "Return true if all bytes in the sequence are ASCII whitespace and the " "sequence is not empty, false otherwise. ASCII whitespace characters are " @@ -4874,7 +4875,7 @@ msgstr "" "\\t\\n\\r\\x0b\\f'`` (espace, tabulation,saut de ligne, retour chariot, " "tabulation verticale, *form feed*)." -#: ../Doc/library/stdtypes.rst:3031 +#: ../Doc/library/stdtypes.rst:3029 msgid "" "Return true if the sequence is ASCII titlecase and the sequence is not " "empty, false otherwise. See :meth:`bytes.title` for more details on the " @@ -4884,7 +4885,7 @@ msgstr "" "vide, sinon ``False``. Voir :meth:`bytes.title` pour plus de détails sur la " "définition de *titlecase*." -#: ../Doc/library/stdtypes.rst:3046 +#: ../Doc/library/stdtypes.rst:3044 msgid "" "Return true if there is at least one uppercase alphabetic ASCII character in " "the sequence and no lowercase ASCII characters, false otherwise." @@ -4892,7 +4893,7 @@ msgstr "" "Donne ``True`` s'il y a au moins un caractère alphabétique majuscule ASCII " "dans la séquence et aucun caractères ASCII minuscules, sinon ``False``." -#: ../Doc/library/stdtypes.rst:3064 +#: ../Doc/library/stdtypes.rst:3062 msgid "" "Return a copy of the sequence with all the uppercase ASCII characters " "converted to their corresponding lowercase counterpart." @@ -4900,7 +4901,7 @@ msgstr "" "Renvoie une copie de la séquence dont tous les caractères ASCII en " "majuscules sont convertis en leur équivalent en minuscules." -#: ../Doc/library/stdtypes.rst:3089 +#: ../Doc/library/stdtypes.rst:3087 msgid "" "Return a list of the lines in the binary sequence, breaking at ASCII line " "boundaries. This method uses the :term:`universal newlines` approach to " @@ -4912,7 +4913,7 @@ msgstr "" "newlines` pour découper les lignes. Les fins de ligne ne sont pas inclus " "dans la liste des résultats, sauf si *keepends* est donné et vrai." -#: ../Doc/library/stdtypes.rst:3101 +#: ../Doc/library/stdtypes.rst:3099 msgid "" "Unlike :meth:`~bytes.split` when a delimiter string *sep* is given, this " "method returns an empty list for the empty string, and a terminal line break " @@ -4922,7 +4923,7 @@ msgstr "" "cette méthode renvoie une liste vide pour la chaîne vide, et un saut de " "ligne à la fin ne se traduit pas par une ligne supplémentaire : ::" -#: ../Doc/library/stdtypes.rst:3114 +#: ../Doc/library/stdtypes.rst:3112 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart and vice-versa." @@ -4930,7 +4931,7 @@ msgstr "" "Renvoie une copie de la séquence dont tous les caractères ASCII minuscules " "sont convertis en majuscules et vice-versa." -#: ../Doc/library/stdtypes.rst:3126 +#: ../Doc/library/stdtypes.rst:3124 msgid "" "Unlike :func:`str.swapcase()`, it is always the case that ``bin.swapcase()." "swapcase() == bin`` for the binary versions. Case conversions are " @@ -4941,7 +4942,7 @@ msgstr "" "bin`` est toujours vrai. Les conversions majuscule/minuscule en ASCII étant " "toujours symétrique, ce qui n'est pas toujours vrai avec Unicode." -#: ../Doc/library/stdtypes.rst:3140 +#: ../Doc/library/stdtypes.rst:3138 msgid "" "Return a titlecased version of the binary sequence where words start with an " "uppercase ASCII character and the remaining characters are lowercase. " @@ -4951,7 +4952,7 @@ msgstr "" "commencent par un caractère ASCII majuscule et les caractères restants sont " "en minuscules. Les octets non capitalisables ne sont pas modifiés." -#: ../Doc/library/stdtypes.rst:3149 +#: ../Doc/library/stdtypes.rst:3147 msgid "" "Lowercase ASCII characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " @@ -4962,7 +4963,7 @@ msgstr "" "caractères ASCII majuscules sont ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``. Aucun " "autre octet n'est capitalisable." -#: ../Doc/library/stdtypes.rst:3183 +#: ../Doc/library/stdtypes.rst:3181 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart." @@ -4970,10 +4971,10 @@ msgstr "" "Renvoie une copie de la séquence dont tous les caractères ASCII minuscules " "sont convertis en leur équivalent majuscule." -#: ../Doc/library/stdtypes.rst:3204 +#: ../Doc/library/stdtypes.rst:3202 msgid "" "Return a copy of the sequence left filled with ASCII ``b'0'`` digits to make " -"a sequence of length *width*. A leading sign prefix (``b'+'``/ ``b'-'`` is " +"a sequence of length *width*. A leading sign prefix (``b'+'``/ ``b'-'``) is " "handled by inserting the padding *after* the sign character rather than " "before. For :class:`bytes` objects, the original sequence is returned if " "*width* is less than or equal to ``len(seq)``." @@ -4985,11 +4986,11 @@ msgstr "" "séquence d'origine est renvoyée si *width* est inférieur ou égale à " "``len(seq)``." -#: ../Doc/library/stdtypes.rst:3226 +#: ../Doc/library/stdtypes.rst:3224 msgid "``printf``-style Bytes Formatting" msgstr "Formatage de *bytes* a la ``printf``" -#: ../Doc/library/stdtypes.rst:3243 +#: ../Doc/library/stdtypes.rst:3241 msgid "" "The formatting operations described here exhibit a variety of quirks that " "lead to a number of common errors (such as failing to display tuples and " @@ -5002,7 +5003,7 @@ msgstr "" "correctement). Si la valeur à afficher peut être un tuple ou un " "dictionnaire, mettez le a l'intérieur d'un autre tuple." -#: ../Doc/library/stdtypes.rst:3248 +#: ../Doc/library/stdtypes.rst:3246 msgid "" "Bytes objects (``bytes``/``bytearray``) have one unique built-in operation: " "the ``%`` operator (modulo). This is also known as the bytes *formatting* or " @@ -5018,7 +5019,7 @@ msgstr "" "plus de *values*. L'effet est similaire à la fonction :c:func:`sprintf` du " "langage C." -#: ../Doc/library/stdtypes.rst:3255 +#: ../Doc/library/stdtypes.rst:3253 msgid "" "If *format* requires a single argument, *values* may be a single non-tuple " "object. [5]_ Otherwise, *values* must be a tuple with exactly the number of " @@ -5030,7 +5031,7 @@ msgstr "" "d'éléments spécifiés dans le format en *bytes*, ou un seul objet de " "correspondances ( *mapping object*, par exemple, un dictionnaire)." -#: ../Doc/library/stdtypes.rst:3291 +#: ../Doc/library/stdtypes.rst:3287 msgid "" "When the right argument is a dictionary (or other mapping type), then the " "formats in the bytes object *must* include a parenthesised mapping key into " @@ -5043,15 +5044,15 @@ msgstr "" "caractère ``'%'``. La clé indique quelle valeur du dictionnaire doit être " "formatée. Par exemple :" -#: ../Doc/library/stdtypes.rst:3365 +#: ../Doc/library/stdtypes.rst:3361 msgid "Single byte (accepts integer or single byte objects)." msgstr "Octet simple (Accepte un nombre entier ou un seul objet *byte*)." -#: ../Doc/library/stdtypes.rst:3368 +#: ../Doc/library/stdtypes.rst:3364 msgid "``'b'``" msgstr "``'b'``" -#: ../Doc/library/stdtypes.rst:3368 +#: ../Doc/library/stdtypes.rst:3364 msgid "" "Bytes (any object that follows the :ref:`buffer protocol ` or " "has :meth:`__bytes__`)." @@ -5059,7 +5060,7 @@ msgstr "" "*Bytes* (tout objet respectant le :ref:`buffer protocol ` ou " "ayant la méthode :meth:`__bytes__`)." -#: ../Doc/library/stdtypes.rst:3372 +#: ../Doc/library/stdtypes.rst:3368 msgid "" "``'s'`` is an alias for ``'b'`` and should only be used for Python2/3 code " "bases." @@ -5067,7 +5068,7 @@ msgstr "" "``'s'`` est un alias de ``'b'`` et ne devrait être utilisé que pour du code " "Python2/3." -#: ../Doc/library/stdtypes.rst:3375 +#: ../Doc/library/stdtypes.rst:3371 msgid "" "Bytes (converts any Python object using ``repr(obj)." "encode('ascii','backslashreplace)``)." @@ -5075,7 +5076,7 @@ msgstr "" "*Bytes* (convertis n'importe quel objet Python en utilisant ``repr(obj)." "encode('ascii', 'backslashreplace)``)." -#: ../Doc/library/stdtypes.rst:3378 +#: ../Doc/library/stdtypes.rst:3374 msgid "" "``'r'`` is an alias for ``'a'`` and should only be used for Python2/3 code " "bases." @@ -5083,27 +5084,27 @@ msgstr "" "``'r'`` est un alias de ``'a'`` et ne devrait être utilise que dans du code " "Python2/3." -#: ../Doc/library/stdtypes.rst:3378 +#: ../Doc/library/stdtypes.rst:3374 msgid "\\(7)" msgstr "\\(7)" -#: ../Doc/library/stdtypes.rst:3413 +#: ../Doc/library/stdtypes.rst:3409 msgid "``b'%s'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%s'`` est obsolète, mais ne sera pas retiré des version 3.x." -#: ../Doc/library/stdtypes.rst:3416 +#: ../Doc/library/stdtypes.rst:3412 msgid "``b'%r'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%r'`` est obsolète mais ne sera pas retiré dans Python 3.x." -#: ../Doc/library/stdtypes.rst:3428 +#: ../Doc/library/stdtypes.rst:3424 msgid ":pep:`461` - Adding % formatting to bytes and bytearray" msgstr ":pep:`461` -- Ajout du formatage via % aux *bytes* et *bytesarray*" -#: ../Doc/library/stdtypes.rst:3435 +#: ../Doc/library/stdtypes.rst:3431 msgid "Memory Views" msgstr "Vues de mémoires" -#: ../Doc/library/stdtypes.rst:3437 +#: ../Doc/library/stdtypes.rst:3433 msgid "" ":class:`memoryview` objects allow Python code to access the internal data of " "an object that supports the :ref:`buffer protocol ` without " @@ -5113,7 +5114,7 @@ msgstr "" "données internes d'un objet pendant en charge le :ref:`buffer protocol " "`." -#: ../Doc/library/stdtypes.rst:3443 +#: ../Doc/library/stdtypes.rst:3439 msgid "" "Create a :class:`memoryview` that references *obj*. *obj* must support the " "buffer protocol. Built-in objects that support the buffer protocol include :" @@ -5123,7 +5124,7 @@ msgstr "" "le *buffer protocol*. Les objets natifs pendant en charge le *buffer " "protocol* sont :class:`bytes` et :class:`bytearray`." -#: ../Doc/library/stdtypes.rst:3447 +#: ../Doc/library/stdtypes.rst:3443 msgid "" "A :class:`memoryview` has the notion of an *element*, which is the atomic " "memory unit handled by the originating object *obj*. For many simple types " @@ -5136,7 +5137,7 @@ msgstr "" "d'autres types tels que :class:`array.array` les éléments peuvent être plus " "grands." -#: ../Doc/library/stdtypes.rst:3453 +#: ../Doc/library/stdtypes.rst:3449 msgid "" "``len(view)`` is equal to the length of :class:`~memoryview.tolist`. If " "``view.ndim = 0``, the length is 1. If ``view.ndim = 1``, the length is " @@ -5152,7 +5153,7 @@ msgstr "" "L'attribut :class:`~memoryview.itemsize` vous donnera la taille en octets " "d'un élément." -#: ../Doc/library/stdtypes.rst:3460 +#: ../Doc/library/stdtypes.rst:3456 msgid "" "A :class:`memoryview` supports slicing and indexing to expose its data. One-" "dimensional slicing will result in a subview::" @@ -5160,7 +5161,7 @@ msgstr "" "Une :class:`memoryview` autorise le découpage et l'indiçage de ses données. " "Découper sur une dimension donnera une sous-vue ::" -#: ../Doc/library/stdtypes.rst:3473 +#: ../Doc/library/stdtypes.rst:3469 msgid "" "If :class:`~memoryview.format` is one of the native format specifiers from " "the :mod:`struct` module, indexing with an integer or a tuple of integers is " @@ -5179,11 +5180,11 @@ msgstr "" "dimensions. Les *memoryviews* à zéro dimension peuvent être indexées avec " "un *tuple* vide." -#: ../Doc/library/stdtypes.rst:3482 +#: ../Doc/library/stdtypes.rst:3478 msgid "Here is an example with a non-byte format::" msgstr "Voici un exemple avec un autre format que *byte* ::" -#: ../Doc/library/stdtypes.rst:3494 +#: ../Doc/library/stdtypes.rst:3490 msgid "" "If the underlying object is writable, the memoryview supports one-" "dimensional slice assignment. Resizing is not allowed::" @@ -5192,7 +5193,7 @@ msgstr "" "autorisera les assignations de tranches à une dimension. Redimensionner " "n'est cependant pas autorisé ::" -#: ../Doc/library/stdtypes.rst:3515 +#: ../Doc/library/stdtypes.rst:3511 msgid "" "One-dimensional memoryviews of hashable (read-only) types with formats 'B', " "'b' or 'c' are also hashable. The hash is defined as ``hash(m) == hash(m." @@ -5202,7 +5203,7 @@ msgstr "" "les formats 'B', 'b', ou 'c' sont aussi hachables. La fonction de hachage " "est définie tel que ``hash(m) == hash(m.tobytes())`` ::" -#: ../Doc/library/stdtypes.rst:3527 +#: ../Doc/library/stdtypes.rst:3523 msgid "" "One-dimensional memoryviews can now be sliced. One-dimensional memoryviews " "with formats 'B', 'b' or 'c' are now hashable." @@ -5211,7 +5212,7 @@ msgstr "" "*memoryviews* à une dimension avec les formats 'B', 'b', ou 'c' sont " "maintenant hachables." -#: ../Doc/library/stdtypes.rst:3531 +#: ../Doc/library/stdtypes.rst:3527 msgid "" "memoryview is now registered automatically with :class:`collections.abc." "Sequence`" @@ -5219,16 +5220,16 @@ msgstr "" "*memoryview* est maintenant enregistrée automatiquement avec :class:" "`collections.abc.Sequence`" -#: ../Doc/library/stdtypes.rst:3535 +#: ../Doc/library/stdtypes.rst:3531 msgid "memoryviews can now be indexed with tuple of integers." msgstr "" "Les *memoryviews* peut maintenant être indexées par un tuple d'entiers." -#: ../Doc/library/stdtypes.rst:3538 +#: ../Doc/library/stdtypes.rst:3534 msgid ":class:`memoryview` has several methods:" msgstr "La :class:`memoryview` dispose de plusieurs méthodes :" -#: ../Doc/library/stdtypes.rst:3542 +#: ../Doc/library/stdtypes.rst:3538 msgid "" "A memoryview and a :pep:`3118` exporter are equal if their shapes are " "equivalent and if all corresponding values are equal when the operands' " @@ -5239,7 +5240,7 @@ msgstr "" "égales, le format respectifs des opérandes étant interprétés en utilisant la " "syntaxe de :mod:`struct`." -#: ../Doc/library/stdtypes.rst:3546 +#: ../Doc/library/stdtypes.rst:3542 msgid "" "For the subset of :mod:`struct` format strings currently supported by :meth:" "`tolist`, ``v`` and ``w`` are equal if ``v.tolist() == w.tolist()``::" @@ -5247,7 +5248,7 @@ msgstr "" "Pour le sous-ensemble des formats de :mod:`struct` supportés par :meth:" "`tolist`, ``v`` et ``w`` sont égaux si ``v.tolist() ==w.tolist()`` ::" -#: ../Doc/library/stdtypes.rst:3565 +#: ../Doc/library/stdtypes.rst:3561 msgid "" "If either format string is not supported by the :mod:`struct` module, then " "the objects will always compare as unequal (even if the format strings and " @@ -5257,7 +5258,7 @@ msgstr "" "objets seront toujours considérés différents (même si les formats et les " "valeurs contenues sont identiques) : ::" -#: ../Doc/library/stdtypes.rst:3581 +#: ../Doc/library/stdtypes.rst:3577 msgid "" "Note that, as with floating point numbers, ``v is w`` does *not* imply ``v " "== w`` for memoryview objects." @@ -5265,7 +5266,7 @@ msgstr "" "Notez que pour les *memoryview*, comme pour les nombres à virgule flottante, " "``v is w`` *n'implique pas* ``v == w``." -#: ../Doc/library/stdtypes.rst:3584 +#: ../Doc/library/stdtypes.rst:3580 msgid "" "Previous versions compared the raw memory disregarding the item format and " "the logical array structure." @@ -5273,7 +5274,7 @@ msgstr "" "Les versions précédentes comparaient la mémoire brute sans tenir compte du " "format de l'objet ni de sa structure logique." -#: ../Doc/library/stdtypes.rst:3590 +#: ../Doc/library/stdtypes.rst:3586 msgid "" "Return the data in the buffer as a bytestring. This is equivalent to " "calling the :class:`bytes` constructor on the memoryview. ::" @@ -5281,7 +5282,7 @@ msgstr "" "Renvoie les données du *buffer* sous forme de *bytes*. Cela équivaut à " "appeler le constructeur :class:`bytes` sur le *memoryview*. ::" -#: ../Doc/library/stdtypes.rst:3599 +#: ../Doc/library/stdtypes.rst:3595 msgid "" "For non-contiguous arrays the result is equal to the flattened list " "representation with all elements converted to bytes. :meth:`tobytes` " @@ -5293,7 +5294,7 @@ msgstr "" "`tobytes` supporte toutes les chaînes de format, y compris celles qui ne " "sont pas connues du module :mod:`struct`." -#: ../Doc/library/stdtypes.rst:3606 +#: ../Doc/library/stdtypes.rst:3602 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the buffer. ::" @@ -5301,12 +5302,12 @@ msgstr "" "Renvoie une chaîne contenant deux chiffres hexadécimaux pour chaque octet de " "la mémoire. ::" -#: ../Doc/library/stdtypes.rst:3617 +#: ../Doc/library/stdtypes.rst:3613 msgid "Return the data in the buffer as a list of elements. ::" msgstr "" "Renvoie les données de la mémoire sous la forme d'une liste d'éléments. ::" -#: ../Doc/library/stdtypes.rst:3627 +#: ../Doc/library/stdtypes.rst:3623 msgid "" ":meth:`tolist` now supports all single character native formats in :mod:" "`struct` module syntax as well as multi-dimensional representations." @@ -5314,7 +5315,7 @@ msgstr "" ":meth:`tolist` prend désormais en charge tous les formats d'un caractère du " "module :mod:`struct` ainsi que des représentations multidimensionnelles." -#: ../Doc/library/stdtypes.rst:3634 +#: ../Doc/library/stdtypes.rst:3630 msgid "" "Release the underlying buffer exposed by the memoryview object. Many " "objects take special actions when a view is held on them (for example, a :" @@ -5329,7 +5330,7 @@ msgstr "" "lever ces restrictions (et en libérer les ressources liées) aussi tôt que " "possible." -#: ../Doc/library/stdtypes.rst:3640 +#: ../Doc/library/stdtypes.rst:3636 msgid "" "After this method has been called, any further operation on the view raises " "a :class:`ValueError` (except :meth:`release()` itself which can be called " @@ -5339,7 +5340,7 @@ msgstr "" "*view* lève une :class:`ValueError` (sauf :meth:`release()` elle-même qui " "peut être appelée plusieurs fois) : ::" -#: ../Doc/library/stdtypes.rst:3651 +#: ../Doc/library/stdtypes.rst:3647 msgid "" "The context management protocol can be used for a similar effect, using the " "``with`` statement::" @@ -5347,7 +5348,7 @@ msgstr "" "Le protocole de gestion de contexte peut être utilisé pour obtenir un effet " "similaire, via l'instruction ``with`` : ::" -#: ../Doc/library/stdtypes.rst:3667 +#: ../Doc/library/stdtypes.rst:3663 msgid "" "Cast a memoryview to a new format or shape. *shape* defaults to " "``[byte_length//new_itemsize]``, which means that the result view will be " @@ -5361,7 +5362,7 @@ msgstr "" "mais la mémoire elle-même n'est pas copiée. Les changements supportés sont " "une dimension vers C-:term:`contiguous` et *C-contiguous* vers une dimension." -#: ../Doc/library/stdtypes.rst:3673 +#: ../Doc/library/stdtypes.rst:3669 msgid "" "The destination format is restricted to a single element native format in :" "mod:`struct` syntax. One of the formats must be a byte format ('B', 'b' or " @@ -5372,37 +5373,37 @@ msgstr "" "'c'). La longueur du résultat en octets doit être la même que la longueur " "initiale." -#: ../Doc/library/stdtypes.rst:3678 +#: ../Doc/library/stdtypes.rst:3674 msgid "Cast 1D/long to 1D/unsigned bytes::" msgstr "Transforme *1D/long* en *1D/unsigned bytes* : ::" -#: ../Doc/library/stdtypes.rst:3701 +#: ../Doc/library/stdtypes.rst:3697 msgid "Cast 1D/unsigned bytes to 1D/char::" msgstr "Transforme *1D/unsigned bytes* en *1D/char* : ::" -#: ../Doc/library/stdtypes.rst:3714 +#: ../Doc/library/stdtypes.rst:3710 msgid "Cast 1D/bytes to 3D/ints to 1D/signed char::" msgstr "Transforme *1D/bytes* en *3D/ints* en *1D/signed char* : ::" -#: ../Doc/library/stdtypes.rst:3740 +#: ../Doc/library/stdtypes.rst:3736 msgid "Cast 1D/unsigned char to 2D/unsigned long::" msgstr "Transforme *1D/unsigned char* en *2D/unsigned long* : ::" -#: ../Doc/library/stdtypes.rst:3754 +#: ../Doc/library/stdtypes.rst:3750 msgid "The source format is no longer restricted when casting to a byte view." msgstr "" "Le format de la source n'est plus restreint lors de la transformation vers " "une vue d'octets." -#: ../Doc/library/stdtypes.rst:3757 +#: ../Doc/library/stdtypes.rst:3753 msgid "There are also several readonly attributes available:" msgstr "Plusieurs attributs en lecture seule sont également disponibles :" -#: ../Doc/library/stdtypes.rst:3761 +#: ../Doc/library/stdtypes.rst:3757 msgid "The underlying object of the memoryview::" msgstr "L'objet sous-jacent de la *memoryview* : ::" -#: ../Doc/library/stdtypes.rst:3772 +#: ../Doc/library/stdtypes.rst:3768 #, fuzzy msgid "" "``nbytes == product(shape) * itemsize == len(m.tobytes())``. This is the " @@ -5413,15 +5414,15 @@ msgstr "" "l'espace que la liste utiliserait en octets, dans une représentation " "contiguë. Ce n'est pas nécessairement égale à ``len(m)`` : ::" -#: ../Doc/library/stdtypes.rst:3791 +#: ../Doc/library/stdtypes.rst:3787 msgid "Multi-dimensional arrays::" msgstr "Tableaux multidimensionnels : ::" -#: ../Doc/library/stdtypes.rst:3808 +#: ../Doc/library/stdtypes.rst:3804 msgid "A bool indicating whether the memory is read only." msgstr "Un booléen indiquant si la mémoire est en lecture seule." -#: ../Doc/library/stdtypes.rst:3812 +#: ../Doc/library/stdtypes.rst:3808 msgid "" "A string containing the format (in :mod:`struct` module style) for each " "element in the view. A memoryview can be created from exporters with " @@ -5433,7 +5434,7 @@ msgstr "" "de formats arbitraires, mais certaines méthodes (comme :meth:`tolist`) sont " "limitées aux formats natifs à un seul élément." -#: ../Doc/library/stdtypes.rst:3817 +#: ../Doc/library/stdtypes.rst:3813 msgid "" "format ``'B'`` is now handled according to the struct module syntax. This " "means that ``memoryview(b'abc')[0] == b'abc'[0] == 97``." @@ -5441,11 +5442,11 @@ msgstr "" "Le format ``'B'`` est maintenant traité selon la syntaxe du module *struct*. " "Cela signifie que ``memoryview(b'abc')[0] == b'abc'[0] == 97``." -#: ../Doc/library/stdtypes.rst:3823 +#: ../Doc/library/stdtypes.rst:3819 msgid "The size in bytes of each element of the memoryview::" msgstr "La taille en octets de chaque élément d'une *memoryview* ::" -#: ../Doc/library/stdtypes.rst:3836 +#: ../Doc/library/stdtypes.rst:3832 msgid "" "An integer indicating how many dimensions of a multi-dimensional array the " "memory represents." @@ -5453,7 +5454,7 @@ msgstr "" "Un nombre entier indiquant le nombre de dimensions d'un tableau multi-" "dimensionnel représenté par la *memoryview*." -#: ../Doc/library/stdtypes.rst:3841 +#: ../Doc/library/stdtypes.rst:3837 msgid "" "A tuple of integers the length of :attr:`ndim` giving the shape of the " "memory as an N-dimensional array." @@ -5461,11 +5462,11 @@ msgstr "" "Un *tuple* d'entiers de longueur :attr:`ndim` donnant la forme de la " "*memoryview* sous forme d'un tableau à N dimensions." -#: ../Doc/library/stdtypes.rst:3844 ../Doc/library/stdtypes.rst:3852 +#: ../Doc/library/stdtypes.rst:3840 ../Doc/library/stdtypes.rst:3848 msgid "An empty tuple instead of ``None`` when ndim = 0." msgstr "Un *tuple* vide au lieu de ``None`` lorsque *ndim = 0*." -#: ../Doc/library/stdtypes.rst:3849 +#: ../Doc/library/stdtypes.rst:3845 msgid "" "A tuple of integers the length of :attr:`ndim` giving the size in bytes to " "access each element for each dimension of the array." @@ -5473,29 +5474,29 @@ msgstr "" "Un *tuple* d'entiers de longueur :attr:`ndim` donnant la taille en octets " "permettant d'accéder à chaque dimensions du tableau." -#: ../Doc/library/stdtypes.rst:3857 +#: ../Doc/library/stdtypes.rst:3853 msgid "Used internally for PIL-style arrays. The value is informational only." msgstr "" "Détail de l'implémentation des *PIL-style arrays*. La valeur n'est donné " "qu'a titre d'information." -#: ../Doc/library/stdtypes.rst:3861 +#: ../Doc/library/stdtypes.rst:3857 msgid "A bool indicating whether the memory is C-:term:`contiguous`." msgstr "Un booléen indiquant si la mémoire est C-:term:`contiguous`." -#: ../Doc/library/stdtypes.rst:3867 +#: ../Doc/library/stdtypes.rst:3863 msgid "A bool indicating whether the memory is Fortran :term:`contiguous`." msgstr "Un booléen indiquant si la mémoire est Fortran :term:`contiguous`." -#: ../Doc/library/stdtypes.rst:3873 +#: ../Doc/library/stdtypes.rst:3869 msgid "A bool indicating whether the memory is :term:`contiguous`." msgstr "Un booléen indiquant si la mémoire est :term:`contiguous`." -#: ../Doc/library/stdtypes.rst:3881 +#: ../Doc/library/stdtypes.rst:3877 msgid "Set Types --- :class:`set`, :class:`frozenset`" msgstr "Types d'ensembles --- :class:`set`, :class:`frozenset`" -#: ../Doc/library/stdtypes.rst:3885 +#: ../Doc/library/stdtypes.rst:3881 msgid "" "A :dfn:`set` object is an unordered collection of distinct :term:`hashable` " "objects. Common uses include membership testing, removing duplicates from a " @@ -5511,7 +5512,7 @@ msgstr "" "(Pour les autres conteneurs, voir les classes natives :class:`dict`, :class:" "`list`, et :class:`tuple`, ainsi que le module :mod:`collections`.)" -#: ../Doc/library/stdtypes.rst:3892 +#: ../Doc/library/stdtypes.rst:3888 msgid "" "Like other collections, sets support ``x in set``, ``len(set)``, and ``for x " "in set``. Being an unordered collection, sets do not record element " @@ -5524,7 +5525,7 @@ msgstr "" "d'insertion. En conséquence, les *sets* n'autorisent ni l'indexation, ni le " "découpage, ou tout autre comportement de séquence." -#: ../Doc/library/stdtypes.rst:3897 +#: ../Doc/library/stdtypes.rst:3893 msgid "" "There are currently two built-in set types, :class:`set` and :class:" "`frozenset`. The :class:`set` type is mutable --- the contents can be " @@ -5544,7 +5545,7 @@ msgstr "" "--- son contenu ne peut être modifié après sa création, il peut ainsi être " "utilisé comme clef de dictionnaire ou élément d'un autre *set*." -#: ../Doc/library/stdtypes.rst:3905 +#: ../Doc/library/stdtypes.rst:3901 msgid "" "Non-empty sets (not frozensets) can be created by placing a comma-separated " "list of elements within braces, for example: ``{'jack', 'sjoerd'}``, in " @@ -5554,11 +5555,11 @@ msgstr "" "d'éléments séparés par des virgules et entre accolades, par exemple : " "``{'jack', 'sjoerd'}``, en plus du constructeur de la classe :class:`set`." -#: ../Doc/library/stdtypes.rst:3909 +#: ../Doc/library/stdtypes.rst:3905 msgid "The constructors for both classes work the same:" msgstr "Les constructeurs des deux classes fonctionnent pareil :" -#: ../Doc/library/stdtypes.rst:3914 +#: ../Doc/library/stdtypes.rst:3910 msgid "" "Return a new set or frozenset object whose elements are taken from " "*iterable*. The elements of a set must be :term:`hashable`. To represent " @@ -5571,7 +5572,7 @@ msgstr "" "class:`frozenset`. Si *iterable* n'est pas spécifié, un nouveau *set* vide " "est renvoyé." -#: ../Doc/library/stdtypes.rst:3920 +#: ../Doc/library/stdtypes.rst:3916 msgid "" "Instances of :class:`set` and :class:`frozenset` provide the following " "operations:" @@ -5579,19 +5580,19 @@ msgstr "" "Les instances de :class:`set` et :class:`frozenset` fournissent les " "opérations suivantes :" -#: ../Doc/library/stdtypes.rst:3925 +#: ../Doc/library/stdtypes.rst:3921 msgid "Return the number of elements in set *s* (cardinality of *s*)." msgstr "Donne le nombre d'éléments dans le *set* *s* (cardinalité de *s*)." -#: ../Doc/library/stdtypes.rst:3929 +#: ../Doc/library/stdtypes.rst:3925 msgid "Test *x* for membership in *s*." msgstr "Test d'appartenance de *x* dans *s*." -#: ../Doc/library/stdtypes.rst:3933 +#: ../Doc/library/stdtypes.rst:3929 msgid "Test *x* for non-membership in *s*." msgstr "Test de non-appartenance de *x* dans *s*." -#: ../Doc/library/stdtypes.rst:3937 +#: ../Doc/library/stdtypes.rst:3933 msgid "" "Return ``True`` if the set has no elements in common with *other*. Sets are " "disjoint if and only if their intersection is the empty set." @@ -5600,11 +5601,11 @@ msgstr "" "Les ensembles sont disjoints si et seulement si leurs intersection est un " "ensemble vide." -#: ../Doc/library/stdtypes.rst:3943 +#: ../Doc/library/stdtypes.rst:3939 msgid "Test whether every element in the set is in *other*." msgstr "Teste si tous les éléments du set sont dans *other*." -#: ../Doc/library/stdtypes.rst:3947 +#: ../Doc/library/stdtypes.rst:3943 msgid "" "Test whether the set is a proper subset of *other*, that is, ``set <= other " "and set != other``." @@ -5612,11 +5613,11 @@ msgstr "" "Teste si l'ensemble est un sous-ensemble de *other*, c'est-à-dire, ``set <= " "other and set != other``." -#: ../Doc/library/stdtypes.rst:3953 +#: ../Doc/library/stdtypes.rst:3949 msgid "Test whether every element in *other* is in the set." msgstr "Teste si tous les éléments de *other* sont dans l'ensemble." -#: ../Doc/library/stdtypes.rst:3957 +#: ../Doc/library/stdtypes.rst:3953 msgid "" "Test whether the set is a proper superset of *other*, that is, ``set >= " "other and set != other``." @@ -5624,36 +5625,36 @@ msgstr "" "Teste si l'ensemble est un sur-ensemble de *other*, c'est-à-dire, ``set >= " "other and set != other``." -#: ../Doc/library/stdtypes.rst:3963 +#: ../Doc/library/stdtypes.rst:3959 msgid "Return a new set with elements from the set and all others." msgstr "" "Renvoie un nouvel ensemble dont les éléments viennent de l'ensemble et de " "tous les autres." -#: ../Doc/library/stdtypes.rst:3968 +#: ../Doc/library/stdtypes.rst:3964 msgid "Return a new set with elements common to the set and all others." msgstr "" "Renvoie un nouvel ensemble dont les éléments sont commun à l'ensemble et à " "tous les autres." -#: ../Doc/library/stdtypes.rst:3973 +#: ../Doc/library/stdtypes.rst:3969 msgid "Return a new set with elements in the set that are not in the others." msgstr "" "Renvoie un nouvel ensemble dont les éléments sont dans l'ensemble mais ne " "sont dans aucun des autres." -#: ../Doc/library/stdtypes.rst:3978 +#: ../Doc/library/stdtypes.rst:3974 msgid "" "Return a new set with elements in either the set or *other* but not both." msgstr "" "Renvoie un nouvel ensemble dont les éléments sont soit dans l'ensemble, soit " "dans les autres, mais pas dans les deux." -#: ../Doc/library/stdtypes.rst:3982 +#: ../Doc/library/stdtypes.rst:3978 msgid "Return a new set with a shallow copy of *s*." msgstr "Renvoie un nouvel ensemble, copie de surface de *s*." -#: ../Doc/library/stdtypes.rst:3985 +#: ../Doc/library/stdtypes.rst:3981 msgid "" "Note, the non-operator versions of :meth:`union`, :meth:`intersection`, :" "meth:`difference`, and :meth:`symmetric_difference`, :meth:`issubset`, and :" @@ -5670,7 +5671,7 @@ msgstr "" "typiques d'erreurs, en faveur d'une construction plus lisible : ``set('abc')." "intersection('cbs')``." -#: ../Doc/library/stdtypes.rst:3992 +#: ../Doc/library/stdtypes.rst:3988 msgid "" "Both :class:`set` and :class:`frozenset` support set to set comparisons. Two " "sets are equal if and only if every element of each set is contained in the " @@ -5688,7 +5689,7 @@ msgstr "" "autre ensemble si et seulement si le premier est un sur-ensemble du second " "(est un sur-ensemble mais n'est pas égal)." -#: ../Doc/library/stdtypes.rst:3999 +#: ../Doc/library/stdtypes.rst:3995 msgid "" "Instances of :class:`set` are compared to instances of :class:`frozenset` " "based on their members. For example, ``set('abc') == frozenset('abc')`` " @@ -5699,7 +5700,7 @@ msgstr "" "frozenset('abc')`` envoie ``True``, ainsi que ``set('abc') in " "set([frozenset('abc')])``." -#: ../Doc/library/stdtypes.rst:4003 +#: ../Doc/library/stdtypes.rst:3999 msgid "" "The subset and equality comparisons do not generalize to a total ordering " "function. For example, any two nonempty disjoint sets are not equal and are " @@ -5711,7 +5712,7 @@ msgstr "" "vides ne sont ni égaux et ni des sous-ensembles l'un de l'autre, donc toutes " "ces comparaisons donnent ``False`` : ``ab``." -#: ../Doc/library/stdtypes.rst:4008 +#: ../Doc/library/stdtypes.rst:4004 msgid "" "Since sets only define partial ordering (subset relationships), the output " "of the :meth:`list.sort` method is undefined for lists of sets." @@ -5720,13 +5721,13 @@ msgstr "" "de sous-ensembles), la sortie de la méthode :meth:`list.sort` n'est pas " "définie pour des listes d'ensembles." -#: ../Doc/library/stdtypes.rst:4011 +#: ../Doc/library/stdtypes.rst:4007 msgid "Set elements, like dictionary keys, must be :term:`hashable`." msgstr "" "Les éléments des *sets*, comme les clefs de dictionnaires, doivent être :" "term:`hashable`." -#: ../Doc/library/stdtypes.rst:4013 +#: ../Doc/library/stdtypes.rst:4009 msgid "" "Binary operations that mix :class:`set` instances with :class:`frozenset` " "return the type of the first operand. For example: ``frozenset('ab') | " @@ -5736,7 +5737,7 @@ msgstr "" "`frozenset` renvoient le type de la première opérande. Par exemple : " "``frozenset('ab') | set('bc')`` renvoie une instance de :class:`frozenset`." -#: ../Doc/library/stdtypes.rst:4017 +#: ../Doc/library/stdtypes.rst:4013 msgid "" "The following table lists operations available for :class:`set` that do not " "apply to immutable instances of :class:`frozenset`:" @@ -5744,32 +5745,32 @@ msgstr "" "La table suivante liste les opérations disponibles pour les :class:`set` " "mais qui ne s'appliquent pas aux instances de :class:`frozenset` :" -#: ../Doc/library/stdtypes.rst:4023 +#: ../Doc/library/stdtypes.rst:4019 msgid "Update the set, adding elements from all others." msgstr "Met à jour l'ensemble, ajoutant les éléments de tous les autres." -#: ../Doc/library/stdtypes.rst:4028 +#: ../Doc/library/stdtypes.rst:4024 msgid "Update the set, keeping only elements found in it and all others." msgstr "" "Met à jour l'ensemble, ne gardant que les éléments trouvés dans tous les " "autres." -#: ../Doc/library/stdtypes.rst:4033 +#: ../Doc/library/stdtypes.rst:4029 msgid "Update the set, removing elements found in others." msgstr "Met à jour l'ensemble, retirant les éléments trouvés dans les autres." -#: ../Doc/library/stdtypes.rst:4038 +#: ../Doc/library/stdtypes.rst:4034 msgid "" "Update the set, keeping only elements found in either set, but not in both." msgstr "" "Met à jour le set, ne gardant que les éléments trouvés dans un des ensembles " "mais pas dans les deux." -#: ../Doc/library/stdtypes.rst:4042 +#: ../Doc/library/stdtypes.rst:4038 msgid "Add element *elem* to the set." msgstr "Ajoute l'élément *elem* au set." -#: ../Doc/library/stdtypes.rst:4046 +#: ../Doc/library/stdtypes.rst:4042 msgid "" "Remove element *elem* from the set. Raises :exc:`KeyError` if *elem* is not " "contained in the set." @@ -5777,11 +5778,11 @@ msgstr "" "Retire l'élément *elem* de l'ensemble. Lève une exception :exc:`KeyError` si " "*elem* n'est pas dans l'ensemble." -#: ../Doc/library/stdtypes.rst:4051 +#: ../Doc/library/stdtypes.rst:4047 msgid "Remove element *elem* from the set if it is present." msgstr "Retire l'élément *elem* de l'ensemble s'il y est." -#: ../Doc/library/stdtypes.rst:4055 +#: ../Doc/library/stdtypes.rst:4051 msgid "" "Remove and return an arbitrary element from the set. Raises :exc:`KeyError` " "if the set is empty." @@ -5789,11 +5790,11 @@ msgstr "" "Retire et renvoie un élément arbitraire de l'ensemble. Lève une exception :" "exc:`KeyError` si l'ensemble est vide." -#: ../Doc/library/stdtypes.rst:4060 +#: ../Doc/library/stdtypes.rst:4056 msgid "Remove all elements from the set." msgstr "Supprime tous les éléments du *set*." -#: ../Doc/library/stdtypes.rst:4063 +#: ../Doc/library/stdtypes.rst:4059 msgid "" "Note, the non-operator versions of the :meth:`update`, :meth:" "`intersection_update`, :meth:`difference_update`, and :meth:" @@ -5805,7 +5806,7 @@ msgstr "" "`symmetric_difference_update` acceptent n'importe quel itérable comme " "argument." -#: ../Doc/library/stdtypes.rst:4068 +#: ../Doc/library/stdtypes.rst:4064 msgid "" "Note, the *elem* argument to the :meth:`__contains__`, :meth:`remove`, and :" "meth:`discard` methods may be a set. To support searching for an equivalent " @@ -5816,11 +5817,11 @@ msgstr "" "recherche d'un *frozenset* équivalent, un *frozenset* temporaire est crée " "depuis *elem*." -#: ../Doc/library/stdtypes.rst:4076 +#: ../Doc/library/stdtypes.rst:4072 msgid "Mapping Types --- :class:`dict`" msgstr "Les types de correspondances --- :class:`dict`" -#: ../Doc/library/stdtypes.rst:4086 +#: ../Doc/library/stdtypes.rst:4082 msgid "" "A :term:`mapping` object maps :term:`hashable` values to arbitrary objects. " "Mappings are mutable objects. There is currently only one standard mapping " @@ -5834,7 +5835,7 @@ msgstr "" "(Pour les autres conteneurs, voir les types natifs :class:`list`, :class:" "`set`, et :class:`tuple`, ainsi que le module :mod:`collections`.)" -#: ../Doc/library/stdtypes.rst:4092 +#: ../Doc/library/stdtypes.rst:4088 msgid "" "A dictionary's keys are *almost* arbitrary values. Values that are not :" "term:`hashable`, that is, values containing lists, dictionaries or other " @@ -5857,7 +5858,7 @@ msgstr "" "d'approximations, il est généralement imprudent de les utiliser comme clefs " "de dictionnaires.)" -#: ../Doc/library/stdtypes.rst:4101 +#: ../Doc/library/stdtypes.rst:4097 msgid "" "Dictionaries can be created by placing a comma-separated list of ``key: " "value`` pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` " @@ -5868,7 +5869,7 @@ msgstr "" "``{'jack': 4098, 'sjoerd': 4127}`` ou ``{4098: 'jack', 4127: 'sjoerd'}``, ou " "en utilisant le constructeur de :class:`dict`." -#: ../Doc/library/stdtypes.rst:4109 +#: ../Doc/library/stdtypes.rst:4105 msgid "" "Return a new dictionary initialized from an optional positional argument and " "a possibly empty set of keyword arguments." @@ -5876,7 +5877,7 @@ msgstr "" "Renvoie un nouveau dictionnaire initialisé depuis un argument positionnel " "optionnel, et un ensemble (vide ou non) d'arguments par mot clef." -#: ../Doc/library/stdtypes.rst:4112 +#: ../Doc/library/stdtypes.rst:4108 msgid "" "If no positional argument is given, an empty dictionary is created. If a " "positional argument is given and it is a mapping object, a dictionary is " @@ -5898,7 +5899,7 @@ msgstr "" "pour cette clef devient la valeur correspondante à cette clef dans le " "nouveau dictionnaire." -#: ../Doc/library/stdtypes.rst:4122 +#: ../Doc/library/stdtypes.rst:4118 msgid "" "If keyword arguments are given, the keyword arguments and their values are " "added to the dictionary created from the positional argument. If a key " @@ -5909,7 +5910,7 @@ msgstr "" "depuis l'argument positionnel. Si une clef est déjà présente, la valeur de " "l'argument nommé remplace la valeur reçue par l'argument positionnel." -#: ../Doc/library/stdtypes.rst:4127 +#: ../Doc/library/stdtypes.rst:4123 msgid "" "To illustrate, the following examples all return a dictionary equal to " "``{\"one\": 1, \"two\": 2, \"three\": 3}``::" @@ -5917,7 +5918,7 @@ msgstr "" "Typiquement, les exemples suivants renvoient tous un dictionnaire valant " "``{\"one\": 1, \"two\": 2, \"three\": 3}`` : ::" -#: ../Doc/library/stdtypes.rst:4138 +#: ../Doc/library/stdtypes.rst:4134 msgid "" "Providing keyword arguments as in the first example only works for keys that " "are valid Python identifiers. Otherwise, any valid keys can be used." @@ -5926,7 +5927,7 @@ msgstr "" "pour des clefs qui sont des identifiants valide en Python. Dans les autres " "cas, toutes les clefs valides sont utilisables." -#: ../Doc/library/stdtypes.rst:4142 +#: ../Doc/library/stdtypes.rst:4138 msgid "" "These are the operations that dictionaries support (and therefore, custom " "mapping types should support too):" @@ -5934,11 +5935,11 @@ msgstr "" "Voici les opérations gérées par les dictionnaires, (par conséquent, d'autres " "types de *mapping* peuvent les gérer aussi) :" -#: ../Doc/library/stdtypes.rst:4147 +#: ../Doc/library/stdtypes.rst:4143 msgid "Return the number of items in the dictionary *d*." msgstr "Renvoie le nombre d'éléments dans le dictionnaire *d*." -#: ../Doc/library/stdtypes.rst:4151 +#: ../Doc/library/stdtypes.rst:4147 msgid "" "Return the item of *d* with key *key*. Raises a :exc:`KeyError` if *key* is " "not in the map." @@ -5946,7 +5947,7 @@ msgstr "" "Donne l'élément de *d* dont la clef est *key*. Lève une exception :exc:" "`KeyError` si *key* n'est pas dans le dictionnaire." -#: ../Doc/library/stdtypes.rst:4156 +#: ../Doc/library/stdtypes.rst:4152 msgid "" "If a subclass of dict defines a method :meth:`__missing__` and *key* is not " "present, the ``d[key]`` operation calls that method with the key *key* as " @@ -5965,7 +5966,7 @@ msgstr "" "meth:`__missing__` doit être une méthode; ça ne peut être une variable " "d'instance ::" -#: ../Doc/library/stdtypes.rst:4174 +#: ../Doc/library/stdtypes.rst:4170 msgid "" "The example above shows part of the implementation of :class:`collections." "Counter`. A different ``__missing__`` method is used by :class:`collections." @@ -5975,11 +5976,11 @@ msgstr "" "`collections.Counter`. :class:`collections.defaultdict` implémente aussi " "``__missing__``." -#: ../Doc/library/stdtypes.rst:4180 +#: ../Doc/library/stdtypes.rst:4176 msgid "Set ``d[key]`` to *value*." msgstr "Assigne ``d[key]`` à *value*." -#: ../Doc/library/stdtypes.rst:4184 +#: ../Doc/library/stdtypes.rst:4180 msgid "" "Remove ``d[key]`` from *d*. Raises a :exc:`KeyError` if *key* is not in the " "map." @@ -5987,15 +5988,15 @@ msgstr "" "Supprime ``d[key]`` de *d*. Lève une exception :exc:`KeyError` si *key* " "n'est pas dans le dictionnaire." -#: ../Doc/library/stdtypes.rst:4189 +#: ../Doc/library/stdtypes.rst:4185 msgid "Return ``True`` if *d* has a key *key*, else ``False``." msgstr "Renvoie ``True`` si *d* a la clef *key*, sinon ``False``." -#: ../Doc/library/stdtypes.rst:4193 +#: ../Doc/library/stdtypes.rst:4189 msgid "Equivalent to ``not key in d``." msgstr "Équivalent à ``not key in d``." -#: ../Doc/library/stdtypes.rst:4197 +#: ../Doc/library/stdtypes.rst:4193 msgid "" "Return an iterator over the keys of the dictionary. This is a shortcut for " "``iter(d.keys())``." @@ -6003,21 +6004,21 @@ msgstr "" "Renvoie un itérateur sur les clefs du dictionnaire. C'est un raccourci pour " "``iter(d.keys())``." -#: ../Doc/library/stdtypes.rst:4202 +#: ../Doc/library/stdtypes.rst:4198 msgid "Remove all items from the dictionary." msgstr "Supprime tous les éléments du dictionnaire." -#: ../Doc/library/stdtypes.rst:4206 +#: ../Doc/library/stdtypes.rst:4202 msgid "Return a shallow copy of the dictionary." msgstr "Renvoie une copie de surface du dictionnaire." -#: ../Doc/library/stdtypes.rst:4210 +#: ../Doc/library/stdtypes.rst:4206 msgid "Create a new dictionary with keys from *seq* and values set to *value*." msgstr "" "Crée un nouveau dictionnaire avec les clefs de *seq* et les valeurs à " "*value*." -#: ../Doc/library/stdtypes.rst:4212 +#: ../Doc/library/stdtypes.rst:4208 msgid "" ":meth:`fromkeys` is a class method that returns a new dictionary. *value* " "defaults to ``None``." @@ -6025,7 +6026,7 @@ msgstr "" ":meth:`fromkeys` est une *class method* qui renvoie un nouveau dictionnaire. " "*value* vaut ``None`` par défaut." -#: ../Doc/library/stdtypes.rst:4217 +#: ../Doc/library/stdtypes.rst:4213 msgid "" "Return the value for *key* if *key* is in the dictionary, else *default*. If " "*default* is not given, it defaults to ``None``, so that this method never " @@ -6035,7 +6036,7 @@ msgstr "" "*default*. Si *default* n'est pas donné, il vaut ``None`` par défaut, de " "manière à ce que cette méthode ne lève jamais :exc:`KeyError`." -#: ../Doc/library/stdtypes.rst:4223 +#: ../Doc/library/stdtypes.rst:4219 msgid "" "Return a new view of the dictionary's items (``(key, value)`` pairs). See " "the :ref:`documentation of view objects `." @@ -6043,7 +6044,7 @@ msgstr "" "Renvoie une nouvelle vue des éléments du dictionnaire (paires de ``(key, " "value)``). Voir la :ref:`documentation des vues `." -#: ../Doc/library/stdtypes.rst:4228 +#: ../Doc/library/stdtypes.rst:4224 msgid "" "Return a new view of the dictionary's keys. See the :ref:`documentation of " "view objects `." @@ -6051,7 +6052,7 @@ msgstr "" "Renvoie une nouvelle vue des clefs du dictionnaire. Voir la :ref:" "`documentation des vues `." -#: ../Doc/library/stdtypes.rst:4233 +#: ../Doc/library/stdtypes.rst:4229 msgid "" "If *key* is in the dictionary, remove it and return its value, else return " "*default*. If *default* is not given and *key* is not in the dictionary, a :" @@ -6061,7 +6062,7 @@ msgstr "" "renvoyée, sinon renvoie *default*. Si *default* n'est pas donné et que " "*key* n'est pas dans le dictionnaire, une :exc:`KeyError` est levée." -#: ../Doc/library/stdtypes.rst:4239 +#: ../Doc/library/stdtypes.rst:4235 msgid "" "Remove and return a ``(key, value)`` pair from the dictionary. Pairs are " "returned in :abbr:`LIFO (last-in, first-out)` order." @@ -6069,7 +6070,7 @@ msgstr "" "Supprime et renvoie une paire ``(key, value)`` du dictionnaire. Les paires " "sont renvoyées dans un ordre :abbr:`LIFO (dernière entrée, prenière sortie)`." -#: ../Doc/library/stdtypes.rst:4242 +#: ../Doc/library/stdtypes.rst:4238 msgid "" ":meth:`popitem` is useful to destructively iterate over a dictionary, as " "often used in set algorithms. If the dictionary is empty, calling :meth:" @@ -6079,7 +6080,7 @@ msgstr "" "destructive, comme souvent dans les algorithmes sur les ensembles. Si le " "dictionnaire est vide, appeler :meth:`popitem` lève une :exc:`KeyError`." -#: ../Doc/library/stdtypes.rst:4246 +#: ../Doc/library/stdtypes.rst:4242 msgid "" "LIFO order is now guaranteed. In prior versions, :meth:`popitem` would " "return an arbitrary key/value pair." @@ -6088,7 +6089,7 @@ msgstr "" "les versions précédentes, :meth:`popitem` renvoyait une paire clé/valeur " "arbitraire." -#: ../Doc/library/stdtypes.rst:4252 +#: ../Doc/library/stdtypes.rst:4248 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``." @@ -6097,7 +6098,7 @@ msgstr "" "*key* avec comme valeur *default* et renvoie *default*. *default* vaut " "``None`` par défaut." -#: ../Doc/library/stdtypes.rst:4258 +#: ../Doc/library/stdtypes.rst:4254 msgid "" "Update the dictionary with the key/value pairs from *other*, overwriting " "existing keys. Return ``None``." @@ -6105,7 +6106,7 @@ msgstr "" "Met à jour le dictionnaire avec les paires de clef/valeur d'*other*, " "écrasant les clefs existantes. Renvoie ``None``." -#: ../Doc/library/stdtypes.rst:4261 +#: ../Doc/library/stdtypes.rst:4257 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 " @@ -6117,7 +6118,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:4268 +#: ../Doc/library/stdtypes.rst:4264 msgid "" "Return a new view of the dictionary's values. See the :ref:`documentation " "of view objects `." @@ -6125,7 +6126,7 @@ msgstr "" "Renvoie une nouvelle vue des valeurs du dictionnaire. Voir la :ref:" "`documentation des vues `." -#: ../Doc/library/stdtypes.rst:4271 +#: ../Doc/library/stdtypes.rst:4267 msgid "" "Dictionaries compare equal if and only if they have the same ``(key, " "value)`` pairs. Order comparisons ('<', '<=', '>=', '>') raise :exc:" @@ -6135,7 +6136,7 @@ msgstr "" "clef-valeur. Les comparaisons d'ordre (``<``, ``<=``, ``>=``, ``>``) lèvent " "une :exc:`TypeError`." -#: ../Doc/library/stdtypes.rst:4275 +#: ../Doc/library/stdtypes.rst:4271 msgid "" "Dictionaries preserve insertion order. Note that updating a key does not " "affect the order. Keys added after deletion are inserted at the end. ::" @@ -6144,7 +6145,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:4293 +#: ../Doc/library/stdtypes.rst:4289 #, fuzzy msgid "" "Dictionary order is guaranteed to be insertion order. This behavior was an " @@ -6154,7 +6155,7 @@ msgstr "" "comportement était un détail d'implémentation de CPython depuis la version " "3.6." -#: ../Doc/library/stdtypes.rst:4298 +#: ../Doc/library/stdtypes.rst:4294 msgid "" ":class:`types.MappingProxyType` can be used to create a read-only view of a :" "class:`dict`." @@ -6162,11 +6163,11 @@ msgstr "" ":class:`types.MappingProxyType` peut être utilisé pour créer une vue en " "lecture seule d'un :class:`dict`." -#: ../Doc/library/stdtypes.rst:4305 +#: ../Doc/library/stdtypes.rst:4301 msgid "Dictionary view objects" msgstr "Les vues de dictionnaires" -#: ../Doc/library/stdtypes.rst:4307 +#: ../Doc/library/stdtypes.rst:4303 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 " @@ -6178,7 +6179,7 @@ msgstr "" "éléments du dictionnaire, ce qui signifie que si le dictionnaire change, la " "vue reflète ces changements." -#: ../Doc/library/stdtypes.rst:4312 +#: ../Doc/library/stdtypes.rst:4308 msgid "" "Dictionary views can be iterated over to yield their respective data, and " "support membership tests:" @@ -6186,11 +6187,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:4317 +#: ../Doc/library/stdtypes.rst:4313 msgid "Return the number of entries in the dictionary." msgstr "Renvoie le nombre d'entrées du dictionnaire." -#: ../Doc/library/stdtypes.rst:4321 +#: ../Doc/library/stdtypes.rst:4317 msgid "" "Return an iterator over the keys, values or items (represented as tuples of " "``(key, value)``) in the dictionary." @@ -6198,7 +6199,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:4324 +#: ../Doc/library/stdtypes.rst:4320 msgid "" "Keys and values are iterated over in insertion order. This allows the " "creation of ``(value, key)`` pairs using :func:`zip`: ``pairs = zip(d." @@ -6210,7 +6211,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:4329 +#: ../Doc/library/stdtypes.rst:4325 msgid "" "Iterating views while adding or deleting entries in the dictionary may raise " "a :exc:`RuntimeError` or fail to iterate over all entries." @@ -6219,11 +6220,11 @@ msgstr "" "dictionnaire peut lever une :exc:`RuntimeError` ou ne pas fournir toutes les " "entrées." -#: ../Doc/library/stdtypes.rst:4332 +#: ../Doc/library/stdtypes.rst:4328 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:4337 +#: ../Doc/library/stdtypes.rst:4333 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)." @@ -6232,7 +6233,7 @@ msgstr "" "dictionnaire sous-jacent (dans le dernier cas, *x* doit être un *tuple* " "``(key, value)``)." -#: ../Doc/library/stdtypes.rst:4341 +#: ../Doc/library/stdtypes.rst:4337 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, " @@ -6251,15 +6252,15 @@ msgstr "" "abstraite :class:`collections.abc.Set` sont disponibles (comme ``==``, " "``<``, ou ``^``)." -#: ../Doc/library/stdtypes.rst:4348 +#: ../Doc/library/stdtypes.rst:4344 msgid "An example of dictionary view usage::" msgstr "Exemple d'utilisation de vue de dictionnaire : ::" -#: ../Doc/library/stdtypes.rst:4383 +#: ../Doc/library/stdtypes.rst:4379 msgid "Context Manager Types" msgstr "Le type gestionnaire de contexte" -#: ../Doc/library/stdtypes.rst:4390 +#: ../Doc/library/stdtypes.rst:4386 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 " @@ -6272,11 +6273,12 @@ msgstr "" "entré avant l'exécution du corps de l'instruction, et qui est quitté lorsque " "l'instruction se termine :" -#: ../Doc/library/stdtypes.rst:4398 +#: ../Doc/library/stdtypes.rst:4394 +#, fuzzy 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 " -"to the identifier in the :keyword:`as` clause of :keyword:`with` statements " +"to the identifier in the :keyword:`!as` clause of :keyword:`with` statements " "using this context manager." msgstr "" "Entre dans le contexte à l'exécution, soit se renvoyant lui-même, soit en " @@ -6284,7 +6286,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:4403 +#: ../Doc/library/stdtypes.rst:4399 msgid "" "An example of a context manager that returns itself is a :term:`file " "object`. File objects return themselves from __enter__() to allow :func:" @@ -6295,14 +6297,15 @@ msgstr "" "autorisent :func:`open` à être utilisé comme contexte à une instruction :" "keyword:`with`." -#: ../Doc/library/stdtypes.rst:4407 +#: ../Doc/library/stdtypes.rst:4403 +#, fuzzy 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 " "decimal context to a copy of the original decimal context and then return " "the copy. This allows changes to be made to the current decimal context in " "the body of the :keyword:`with` statement without affecting code outside " -"the :keyword:`with` statement." +"the :keyword:`!with` statement." msgstr "" "Un exemple de gestionnaire de contexte renvoyant un objet connexe est celui " "renvoyé par :func:`decimal.localcontext`. Ces gestionnaires remplacent le " @@ -6310,7 +6313,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:4417 +#: ../Doc/library/stdtypes.rst:4413 msgid "" "Exit the runtime context and return a Boolean flag indicating if any " "exception that occurred should be suppressed. If an exception occurred while " @@ -6324,14 +6327,16 @@ msgstr "" "l'exception, sa valeur, et la trace de la pile (*traceback*). Sinon les " "trois arguments valent ``None``." -#: ../Doc/library/stdtypes.rst:4422 +#: ../Doc/library/stdtypes.rst:4418 +#, fuzzy msgid "" "Returning a true value from this method will cause the :keyword:`with` " "statement to suppress the exception and continue execution with the " -"statement immediately following the :keyword:`with` statement. Otherwise the " -"exception continues propagating after this method has finished executing. " -"Exceptions that occur during execution of this method will replace any " -"exception that occurred in the body of the :keyword:`with` statement." +"statement immediately following the :keyword:`!with` statement. Otherwise " +"the exception continues propagating after this method has finished " +"executing. Exceptions that occur during execution of this method will " +"replace any exception that occurred in the body of the :keyword:`!with` " +"statement." msgstr "" "L'instruction :keyword:`with` inhibera l'exception si cette méthode renvoie " "une valeur vraie, l'exécution continuera ainsi à l'instruction suivant " @@ -6340,7 +6345,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:4429 +#: ../Doc/library/stdtypes.rst:4425 msgid "" "The exception passed in should never be reraised explicitly - instead, this " "method should return a false value to indicate that the method completed " @@ -6354,7 +6359,7 @@ msgstr "" "Ceci permet au code de gestion du contexte de comprendre si une méthode :" "meth:`__exit__` a échoué." -#: ../Doc/library/stdtypes.rst:4435 +#: ../Doc/library/stdtypes.rst:4431 msgid "" "Python defines several context managers to support easy thread " "synchronisation, prompt closure of files or other objects, and simpler " @@ -6369,7 +6374,7 @@ msgstr "" "protocole de gestion du contexte. Voir les exemples dans la documentation du " "module :mod:`contextlib`." -#: ../Doc/library/stdtypes.rst:4441 +#: ../Doc/library/stdtypes.rst:4437 msgid "" "Python's :term:`generator`\\s and the :class:`contextlib.contextmanager` " "decorator provide a convenient way to implement these protocols. If a " @@ -6385,7 +6390,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:4448 +#: ../Doc/library/stdtypes.rst:4444 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 " @@ -6400,11 +6405,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:4458 +#: ../Doc/library/stdtypes.rst:4454 msgid "Other Built-in Types" msgstr "Autres types natifs" -#: ../Doc/library/stdtypes.rst:4460 +#: ../Doc/library/stdtypes.rst:4456 msgid "" "The interpreter supports several other kinds of objects. Most of these " "support only one or two operations." @@ -6412,11 +6417,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:4467 +#: ../Doc/library/stdtypes.rst:4463 msgid "Modules" msgstr "Modules" -#: ../Doc/library/stdtypes.rst:4469 +#: ../Doc/library/stdtypes.rst:4465 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 " @@ -6434,7 +6439,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:4476 +#: ../Doc/library/stdtypes.rst:4472 msgid "" "A special attribute of every module is :attr:`~object.__dict__`. This is the " "dictionary containing the module's symbol table. Modifying this dictionary " @@ -6452,7 +6457,7 @@ msgstr "" "vous ne pouvez pas écrire ``m.__dict__ = {}``). Modifier :attr:`~object." "__dict__` directement n'est pas recommandé." -#: ../Doc/library/stdtypes.rst:4484 +#: ../Doc/library/stdtypes.rst:4480 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:4492 +#: ../Doc/library/stdtypes.rst:4488 msgid "Classes and Class Instances" msgstr "Les classes et instances de classes" -#: ../Doc/library/stdtypes.rst:4494 +#: ../Doc/library/stdtypes.rst:4490 msgid "See :ref:`objects` and :ref:`class` for these." msgstr "Voir :ref:`objects` et :ref:`class`." -#: ../Doc/library/stdtypes.rst:4500 +#: ../Doc/library/stdtypes.rst:4496 msgid "Functions" msgstr "Fonctions" -#: ../Doc/library/stdtypes.rst:4502 +#: ../Doc/library/stdtypes.rst:4498 msgid "" "Function objects are created by function definitions. The only operation on " "a function object is to call it: ``func(argument-list)``." @@ -6483,7 +6488,7 @@ msgstr "" "opération applicable à un objet fonction est de l'appeler : ``func(argument-" "list)``." -#: ../Doc/library/stdtypes.rst:4505 +#: ../Doc/library/stdtypes.rst:4501 msgid "" "There are really two flavors of function objects: built-in functions and " "user-defined functions. Both support the same operation (to call the " @@ -6495,15 +6500,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:4509 +#: ../Doc/library/stdtypes.rst:4505 msgid "See :ref:`function` for more information." msgstr "Voir :ref:`function` pour plus d'information." -#: ../Doc/library/stdtypes.rst:4515 +#: ../Doc/library/stdtypes.rst:4511 msgid "Methods" msgstr "Méthodes" -#: ../Doc/library/stdtypes.rst:4519 +#: ../Doc/library/stdtypes.rst:4515 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 " @@ -6515,7 +6520,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:4524 +#: ../Doc/library/stdtypes.rst:4520 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:" @@ -6536,7 +6541,7 @@ msgstr "" "n)`` est tout à fait équivalent à appeler ``m.__func__(m.__self__, arg-1, " "arg-2, …, arg-n)``." -#: ../Doc/library/stdtypes.rst:4533 +#: ../Doc/library/stdtypes.rst:4529 msgid "" "Like function objects, bound method objects support getting arbitrary " "attributes. However, since method attributes are actually stored on the " @@ -6553,15 +6558,15 @@ msgstr "" "`AttributeError`. Pour affecter l'attribut, vous devrez explicitement " "l'affecter à sa fonction sous-jacente ::" -#: ../Doc/library/stdtypes.rst:4553 ../Doc/library/stdtypes.rst:4581 +#: ../Doc/library/stdtypes.rst:4549 ../Doc/library/stdtypes.rst:4577 msgid "See :ref:`types` for more information." msgstr "Voir :ref:`types` pour plus d'information." -#: ../Doc/library/stdtypes.rst:4561 +#: ../Doc/library/stdtypes.rst:4557 msgid "Code Objects" msgstr "Objets code" -#: ../Doc/library/stdtypes.rst:4567 +#: ../Doc/library/stdtypes.rst:4563 msgid "" "Code objects are used by the implementation to represent \"pseudo-compiled\" " "executable Python code such as a function body. They differ from function " @@ -6577,7 +6582,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:4578 +#: ../Doc/library/stdtypes.rst:4574 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." @@ -6586,11 +6591,11 @@ msgstr "" "d'une chaîne contenant du code) aux fonction natives :func:`exec` ou :func:" "`eval`." -#: ../Doc/library/stdtypes.rst:4587 +#: ../Doc/library/stdtypes.rst:4583 msgid "Type Objects" msgstr "Objets type" -#: ../Doc/library/stdtypes.rst:4593 +#: ../Doc/library/stdtypes.rst:4589 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 " @@ -6602,15 +6607,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:4598 +#: ../Doc/library/stdtypes.rst:4594 msgid "Types are written like this: ````." msgstr "Les types sont représentés : ````." -#: ../Doc/library/stdtypes.rst:4604 +#: ../Doc/library/stdtypes.rst:4600 msgid "The Null Object" msgstr "L'objet Null" -#: ../Doc/library/stdtypes.rst:4606 +#: ../Doc/library/stdtypes.rst:4602 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 " @@ -6620,15 +6625,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:4610 +#: ../Doc/library/stdtypes.rst:4606 msgid "It is written as ``None``." msgstr "C'est écrit ``None``." -#: ../Doc/library/stdtypes.rst:4617 +#: ../Doc/library/stdtypes.rst:4613 msgid "The Ellipsis Object" msgstr "L'objet points de suspension" -#: ../Doc/library/stdtypes.rst:4619 +#: ../Doc/library/stdtypes.rst:4615 msgid "" "This object is commonly used by slicing (see :ref:`slicings`). It supports " "no special operations. There is exactly one ellipsis object, named :const:" @@ -6640,15 +6645,15 @@ msgstr "" "objet *ellipsis*, nommé :const:`Ellipsis` (un nom natif). ``type(Ellipsis)" "()`` produit le *singleton* :const:`Ellipsis`." -#: ../Doc/library/stdtypes.rst:4624 +#: ../Doc/library/stdtypes.rst:4620 msgid "It is written as ``Ellipsis`` or ``...``." msgstr "C'est écrit ``Ellipsis`` ou ``...``." -#: ../Doc/library/stdtypes.rst:4630 +#: ../Doc/library/stdtypes.rst:4626 msgid "The NotImplemented Object" msgstr "L'objet *NotImplemented*" -#: ../Doc/library/stdtypes.rst:4632 +#: ../Doc/library/stdtypes.rst:4628 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 " @@ -6660,15 +6665,15 @@ msgstr "" "pour plus d'informations. Il n'y a qu'un seul objet ``NotImplemented``. " "``type(NotImplemented)()`` renvoie un *singleton*." -#: ../Doc/library/stdtypes.rst:4637 +#: ../Doc/library/stdtypes.rst:4633 msgid "It is written as ``NotImplemented``." msgstr "C'est écrit ``NotImplemented``." -#: ../Doc/library/stdtypes.rst:4643 +#: ../Doc/library/stdtypes.rst:4639 msgid "Boolean Values" msgstr "Valeurs Booléennes" -#: ../Doc/library/stdtypes.rst:4645 +#: ../Doc/library/stdtypes.rst:4641 msgid "" "Boolean values are the two constant objects ``False`` and ``True``. They " "are used to represent truth values (although other values can also be " @@ -6687,15 +6692,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:4658 +#: ../Doc/library/stdtypes.rst:4654 msgid "They are written as ``False`` and ``True``, respectively." msgstr "Ils s'écrivent ``False`` et ``True``, respectivement." -#: ../Doc/library/stdtypes.rst:4664 +#: ../Doc/library/stdtypes.rst:4660 msgid "Internal Objects" msgstr "Objets Internes" -#: ../Doc/library/stdtypes.rst:4666 +#: ../Doc/library/stdtypes.rst:4662 msgid "" "See :ref:`types` for this information. It describes stack frame objects, " "traceback objects, and slice objects." @@ -6703,11 +6708,11 @@ msgstr "" "Voir :ref:`types`. Ils décrivent les objets *stack frame*, *traceback*, et " "*slice*." -#: ../Doc/library/stdtypes.rst:4673 +#: ../Doc/library/stdtypes.rst:4669 msgid "Special Attributes" msgstr "Attributs Spéciaux" -#: ../Doc/library/stdtypes.rst:4675 +#: ../Doc/library/stdtypes.rst:4671 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:" @@ -6717,7 +6722,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:4682 +#: ../Doc/library/stdtypes.rst:4678 msgid "" "A dictionary or other mapping object used to store an object's (writable) " "attributes." @@ -6725,20 +6730,20 @@ msgstr "" "Un dictionnaire ou un autre *mapping object* utilisé pour stocker les " "attributs (modifiables) de l'objet." -#: ../Doc/library/stdtypes.rst:4688 +#: ../Doc/library/stdtypes.rst:4684 msgid "The class to which a class instance belongs." msgstr "La classe de l'instance de classe." -#: ../Doc/library/stdtypes.rst:4693 +#: ../Doc/library/stdtypes.rst:4689 msgid "The tuple of base classes of a class object." msgstr "Le *tuple* des classes parentes d'un objet classe." -#: ../Doc/library/stdtypes.rst:4698 +#: ../Doc/library/stdtypes.rst:4694 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:4704 +#: ../Doc/library/stdtypes.rst:4700 msgid "" "The :term:`qualified name` of the class, function, method, descriptor, or " "generator instance." @@ -6746,7 +6751,7 @@ msgstr "" "Le :term:`qualified name` de la classe, fonction, méthode, descripteur, ou " "générateur." -#: ../Doc/library/stdtypes.rst:4712 +#: ../Doc/library/stdtypes.rst:4708 msgid "" "This attribute is a tuple of classes that are considered when looking for " "base classes during method resolution." @@ -6754,7 +6759,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:4718 +#: ../Doc/library/stdtypes.rst:4714 msgid "" "This method can be overridden by a metaclass to customize the method " "resolution order for its instances. It is called at class instantiation, " @@ -6765,7 +6770,7 @@ msgstr "" "la l'initialisation de la classe, et son résultat est stocké dans " "l'attribut :attr:`~class.__mro__`." -#: ../Doc/library/stdtypes.rst:4725 +#: ../Doc/library/stdtypes.rst:4721 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::" @@ -6774,11 +6779,11 @@ msgstr "" "immédiates. Cette méthode renvoie la liste de toutes ces références encore " "valables. Exemple : ::" -#: ../Doc/library/stdtypes.rst:4734 +#: ../Doc/library/stdtypes.rst:4730 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/stdtypes.rst:4735 +#: ../Doc/library/stdtypes.rst:4731 msgid "" "Additional information on these special methods may be found in the Python " "Reference Manual (:ref:`customization`)." @@ -6786,7 +6791,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:4738 +#: ../Doc/library/stdtypes.rst:4734 msgid "" "As a consequence, the list ``[1, 2]`` is considered equal to ``[1.0, 2.0]``, " "and similarly for tuples." @@ -6794,13 +6799,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:4741 +#: ../Doc/library/stdtypes.rst:4737 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:4743 +#: ../Doc/library/stdtypes.rst:4739 msgid "" "Cased characters are those with general category property being one of \"Lu" "\" (Letter, uppercase), \"Ll\" (Letter, lowercase), or \"Lt\" (Letter, " @@ -6810,7 +6815,7 @@ msgstr "" "category* est soit \"Lu\" (pour *Letter*, *uppercase*), soit \"Ll\" (pour " "*Letter*, *lowercase*), soit \"Lt\" (pour *Letter*, *titlecase*)." -#: ../Doc/library/stdtypes.rst:4746 +#: ../Doc/library/stdtypes.rst:4742 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 11521ae2..18cbcd42 100644 --- a/library/sys.po +++ b/library/sys.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-11-29 18:30+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -1272,7 +1272,7 @@ msgstr "" #: ../Doc/library/sys.rst:685 msgid "" -"Get the current coroutine origin tracking depth, as set by func:" +"Get the current coroutine origin tracking depth, as set by :func:" "`set_coroutine_origin_tracking_depth`." msgstr "" diff --git a/library/sysconfig.po b/library/sysconfig.po index 7c220755..d3f13c39 100644 --- a/library/sysconfig.po +++ b/library/sysconfig.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -306,7 +306,7 @@ msgid "Windows will return one of:" msgstr "" #: ../Doc/library/sysconfig.rst:188 -msgid "win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)" +msgid "win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T)" msgstr "" #: ../Doc/library/sysconfig.rst:189 diff --git a/library/telnetlib.po b/library/telnetlib.po index 86acb752..d8f2f989 100644 --- a/library/telnetlib.po +++ b/library/telnetlib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -68,7 +68,7 @@ msgstr "" #: ../Doc/library/telnetlib.rst:46 msgid "" "A :class:`Telnet` object is a context manager and can be used in a :keyword:" -"`with` statement. When the :keyword:`with` block ends, the :meth:`close` " +"`with` statement. When the :keyword:`!with` block ends, the :meth:`close` " "method is called::" msgstr "" diff --git a/library/tempfile.po b/library/tempfile.po index 920eafc0..674edc7b 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -153,7 +153,7 @@ msgstr "" msgid "" "The directory name can be retrieved from the :attr:`name` attribute of the " "returned object. When the returned object is used as a context manager, " -"the :attr:`name` will be assigned to the target of the :keyword:`as` clause " +"the :attr:`name` will be assigned to the target of the :keyword:`!as` clause " "in the :keyword:`with` statement, if there is one." msgstr "" diff --git a/library/textwrap.po b/library/textwrap.po index 44494b19..48d7b0fc 100644 --- a/library/textwrap.po +++ b/library/textwrap.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -285,19 +285,19 @@ msgid "" "*max_lines* lines, with *placeholder* appearing at the end of the output." msgstr "" -#: ../Doc/library/textwrap.rst:273 +#: ../Doc/library/textwrap.rst:275 msgid "" "(default: ``' [...]'``) String that will appear at the end of the output " "text if it has been truncated." msgstr "" -#: ../Doc/library/textwrap.rst:279 +#: ../Doc/library/textwrap.rst:281 msgid "" ":class:`TextWrapper` also provides some public methods, analogous to the " "module-level convenience functions:" msgstr "" -#: ../Doc/library/textwrap.rst:284 +#: ../Doc/library/textwrap.rst:286 msgid "" "Wraps the single paragraph in *text* (a string) so every line is at most :" "attr:`width` characters long. All wrapping options are taken from instance " @@ -306,7 +306,7 @@ msgid "" "returned list is empty." msgstr "" -#: ../Doc/library/textwrap.rst:293 +#: ../Doc/library/textwrap.rst:295 msgid "" "Wraps the single paragraph in *text*, and returns a single string containing " "the wrapped paragraph." diff --git a/library/threading.po b/library/threading.po index 972adbf8..6aadba3a 100644 --- a/library/threading.po +++ b/library/threading.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1196,7 +1196,7 @@ msgstr "" #: ../Doc/library/threading.rst:977 msgid "" -"Using locks, conditions, and semaphores in the :keyword:`with` statement" +"Using locks, conditions, and semaphores in the :keyword:`!with` statement" msgstr "" #: ../Doc/library/threading.rst:979 diff --git a/library/time.po b/library/time.po index c224e61b..72072efe 100644 --- a/library/time.po +++ b/library/time.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-11-29 18:26+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -249,9 +249,9 @@ msgstr "" #: ../Doc/library/time.rst:184 ../Doc/library/time.rst:194 #: ../Doc/library/time.rst:203 ../Doc/library/time.rst:213 -#: ../Doc/library/time.rst:222 ../Doc/library/time.rst:657 -#: ../Doc/library/time.rst:774 ../Doc/library/time.rst:793 -#: ../Doc/library/time.rst:835 +#: ../Doc/library/time.rst:222 ../Doc/library/time.rst:649 +#: ../Doc/library/time.rst:766 ../Doc/library/time.rst:785 +#: ../Doc/library/time.rst:827 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilité ` : Unix." @@ -377,26 +377,15 @@ msgid "" "only the difference between the results of consecutive calls is valid." msgstr "" -#: ../Doc/library/time.rst:296 -msgid "" -"On Windows versions older than Vista, :func:`monotonic` detects :c:func:" -"`GetTickCount` integer overflow (32 bits, roll-over after 49.7 days). It " -"increases an internal epoch (reference time) by 2\\ :sup:`32` each time that " -"an overflow is detected. The epoch is stored in the process-local state and " -"so the value of :func:`monotonic` may be different in two Python processes " -"running for more than 49 days. On more recent versions of Windows and on " -"other operating systems, :func:`monotonic` is system-wide." +#: ../Doc/library/time.rst:297 +msgid "The function is now always available and always system-wide." msgstr "" -#: ../Doc/library/time.rst:305 -msgid "The function is now always available." -msgstr "" - -#: ../Doc/library/time.rst:311 +#: ../Doc/library/time.rst:303 msgid "Similar to :func:`monotonic`, but return time as nanoseconds." msgstr "" -#: ../Doc/library/time.rst:320 +#: ../Doc/library/time.rst:312 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 " @@ -405,11 +394,11 @@ msgid "" "between the results of consecutive calls is valid." msgstr "" -#: ../Doc/library/time.rst:330 +#: ../Doc/library/time.rst:322 msgid "Similar to :func:`perf_counter`, but return time as nanoseconds." msgstr "" -#: ../Doc/library/time.rst:342 +#: ../Doc/library/time.rst:334 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 " @@ -418,11 +407,11 @@ msgid "" "of consecutive calls is valid." msgstr "" -#: ../Doc/library/time.rst:352 +#: ../Doc/library/time.rst:344 msgid "Similar to :func:`process_time` but return time as nanoseconds." msgstr "" -#: ../Doc/library/time.rst:358 +#: ../Doc/library/time.rst:350 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 " @@ -433,14 +422,14 @@ msgid "" "in the system." msgstr "" -#: ../Doc/library/time.rst:366 +#: ../Doc/library/time.rst:358 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` " "for the rationale)." msgstr "" -#: ../Doc/library/time.rst:377 +#: ../Doc/library/time.rst:369 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* " @@ -449,267 +438,267 @@ msgid "" "raised if any field in *t* is outside of the allowed range." msgstr "" -#: ../Doc/library/time.rst:383 +#: ../Doc/library/time.rst:375 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." msgstr "" -#: ../Doc/library/time.rst:386 +#: ../Doc/library/time.rst:378 msgid "" "The following directives can be embedded in the *format* string. They are " "shown without the optional field width and precision specification, and are " "replaced by the indicated characters in the :func:`strftime` result:" msgstr "" -#: ../Doc/library/time.rst:391 +#: ../Doc/library/time.rst:383 msgid "Directive" msgstr "Directive" -#: ../Doc/library/time.rst:391 +#: ../Doc/library/time.rst:383 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/time.rst:391 +#: ../Doc/library/time.rst:383 msgid "Notes" msgstr "Notes" -#: ../Doc/library/time.rst:393 +#: ../Doc/library/time.rst:385 msgid "``%a``" msgstr "``%a``" -#: ../Doc/library/time.rst:393 +#: ../Doc/library/time.rst:385 msgid "Locale's abbreviated weekday name." msgstr "" -#: ../Doc/library/time.rst:396 +#: ../Doc/library/time.rst:388 msgid "``%A``" msgstr "``%A``" -#: ../Doc/library/time.rst:396 +#: ../Doc/library/time.rst:388 msgid "Locale's full weekday name." msgstr "" -#: ../Doc/library/time.rst:398 +#: ../Doc/library/time.rst:390 msgid "``%b``" msgstr "``%b``" -#: ../Doc/library/time.rst:398 +#: ../Doc/library/time.rst:390 msgid "Locale's abbreviated month name." msgstr "" -#: ../Doc/library/time.rst:401 +#: ../Doc/library/time.rst:393 msgid "``%B``" msgstr "``%B``" -#: ../Doc/library/time.rst:401 +#: ../Doc/library/time.rst:393 msgid "Locale's full month name." msgstr "" -#: ../Doc/library/time.rst:403 +#: ../Doc/library/time.rst:395 msgid "``%c``" msgstr "``%c``" -#: ../Doc/library/time.rst:403 +#: ../Doc/library/time.rst:395 msgid "Locale's appropriate date and time representation." msgstr "Représentation locale de la date et de l'heure." -#: ../Doc/library/time.rst:406 +#: ../Doc/library/time.rst:398 msgid "``%d``" msgstr "``%d``" -#: ../Doc/library/time.rst:406 +#: ../Doc/library/time.rst:398 msgid "Day of the month as a decimal number [01,31]." msgstr "" -#: ../Doc/library/time.rst:409 +#: ../Doc/library/time.rst:401 msgid "``%H``" msgstr "``%H``" -#: ../Doc/library/time.rst:409 +#: ../Doc/library/time.rst:401 msgid "Hour (24-hour clock) as a decimal number [00,23]." msgstr "" -#: ../Doc/library/time.rst:412 +#: ../Doc/library/time.rst:404 msgid "``%I``" msgstr "``%I``" -#: ../Doc/library/time.rst:412 +#: ../Doc/library/time.rst:404 msgid "Hour (12-hour clock) as a decimal number [01,12]." msgstr "" -#: ../Doc/library/time.rst:415 +#: ../Doc/library/time.rst:407 msgid "``%j``" msgstr "``%j``" -#: ../Doc/library/time.rst:415 +#: ../Doc/library/time.rst:407 msgid "Day of the year as a decimal number [001,366]." msgstr "" -#: ../Doc/library/time.rst:418 +#: ../Doc/library/time.rst:410 msgid "``%m``" msgstr "``%m``" -#: ../Doc/library/time.rst:418 +#: ../Doc/library/time.rst:410 msgid "Month as a decimal number [01,12]." msgstr "" -#: ../Doc/library/time.rst:421 +#: ../Doc/library/time.rst:413 msgid "``%M``" msgstr "``%M``" -#: ../Doc/library/time.rst:421 +#: ../Doc/library/time.rst:413 msgid "Minute as a decimal number [00,59]." msgstr "" -#: ../Doc/library/time.rst:424 +#: ../Doc/library/time.rst:416 msgid "``%p``" msgstr "``%p``" -#: ../Doc/library/time.rst:424 +#: ../Doc/library/time.rst:416 msgid "Locale's equivalent of either AM or PM." msgstr "Équivalent local à AM/PM." -#: ../Doc/library/time.rst:424 +#: ../Doc/library/time.rst:416 msgid "\\(1)" msgstr "\\(1)" -#: ../Doc/library/time.rst:427 +#: ../Doc/library/time.rst:419 msgid "``%S``" msgstr "``%S``" -#: ../Doc/library/time.rst:427 +#: ../Doc/library/time.rst:419 msgid "Second as a decimal number [00,61]." msgstr "" -#: ../Doc/library/time.rst:427 +#: ../Doc/library/time.rst:419 msgid "\\(2)" msgstr "\\(2)" -#: ../Doc/library/time.rst:430 +#: ../Doc/library/time.rst:422 msgid "``%U``" msgstr "``%U``" -#: ../Doc/library/time.rst:430 +#: ../Doc/library/time.rst:422 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 " "considered to be in week 0." msgstr "" -#: ../Doc/library/time.rst:430 ../Doc/library/time.rst:441 +#: ../Doc/library/time.rst:422 ../Doc/library/time.rst:433 msgid "\\(3)" msgstr "\\(3)" -#: ../Doc/library/time.rst:438 +#: ../Doc/library/time.rst:430 msgid "``%w``" msgstr "``%w``" -#: ../Doc/library/time.rst:438 +#: ../Doc/library/time.rst:430 msgid "Weekday as a decimal number [0(Sunday),6]." msgstr "" -#: ../Doc/library/time.rst:441 +#: ../Doc/library/time.rst:433 msgid "``%W``" msgstr "``%W``" -#: ../Doc/library/time.rst:441 +#: ../Doc/library/time.rst:433 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 " "considered to be in week 0." msgstr "" -#: ../Doc/library/time.rst:449 +#: ../Doc/library/time.rst:441 msgid "``%x``" msgstr "``%x``" -#: ../Doc/library/time.rst:449 +#: ../Doc/library/time.rst:441 msgid "Locale's appropriate date representation." msgstr "Représentation locale de la date." -#: ../Doc/library/time.rst:452 +#: ../Doc/library/time.rst:444 msgid "``%X``" msgstr "``%X``" -#: ../Doc/library/time.rst:452 +#: ../Doc/library/time.rst:444 msgid "Locale's appropriate time representation." msgstr "Représentation locale de l'heure." -#: ../Doc/library/time.rst:455 +#: ../Doc/library/time.rst:447 msgid "``%y``" msgstr "``%y``" -#: ../Doc/library/time.rst:455 +#: ../Doc/library/time.rst:447 msgid "Year without century as a decimal number [00,99]." msgstr "" -#: ../Doc/library/time.rst:458 +#: ../Doc/library/time.rst:450 msgid "``%Y``" msgstr "``%Y``" -#: ../Doc/library/time.rst:458 +#: ../Doc/library/time.rst:450 msgid "Year with century as a decimal number." msgstr "Année complète sur quatre chiffres." -#: ../Doc/library/time.rst:461 +#: ../Doc/library/time.rst:453 msgid "``%z``" msgstr "``%z``" -#: ../Doc/library/time.rst:461 +#: ../Doc/library/time.rst:453 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 " "represents decimal minute digits [-23:59, +23:59]." msgstr "" -#: ../Doc/library/time.rst:467 +#: ../Doc/library/time.rst:459 msgid "``%Z``" msgstr "``%Z``" -#: ../Doc/library/time.rst:467 +#: ../Doc/library/time.rst:459 msgid "Time zone name (no characters if no time zone exists)." msgstr "" -#: ../Doc/library/time.rst:470 +#: ../Doc/library/time.rst:462 msgid "``%%``" msgstr "``%%``" -#: ../Doc/library/time.rst:470 +#: ../Doc/library/time.rst:462 msgid "A literal ``'%'`` character." msgstr "Un caractère ``'%'`` littéral." -#: ../Doc/library/time.rst:473 +#: ../Doc/library/time.rst:465 msgid "Notes:" msgstr "Notes :" -#: ../Doc/library/time.rst:476 +#: ../Doc/library/time.rst:468 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 " "hour." msgstr "" -#: ../Doc/library/time.rst:480 +#: ../Doc/library/time.rst:472 msgid "" "The range really is ``0`` to ``61``; value ``60`` is valid in timestamps " "representing `leap seconds`_ and value ``61`` is supported for historical " "reasons." msgstr "" -#: ../Doc/library/time.rst:485 +#: ../Doc/library/time.rst:477 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." msgstr "" -#: ../Doc/library/time.rst:488 +#: ../Doc/library/time.rst:480 msgid "" "Here is an example, a format for dates compatible with that specified in " "the :rfc:`2822` Internet email standard. [#]_ ::" msgstr "" -#: ../Doc/library/time.rst:495 +#: ../Doc/library/time.rst:487 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 " @@ -717,7 +706,7 @@ msgid "" "`strftime(3)` documentation." msgstr "" -#: ../Doc/library/time.rst:500 +#: ../Doc/library/time.rst:492 msgid "" "On some platforms, an optional field width and precision specification can " "immediately follow the initial ``'%'`` of a directive in the following " @@ -725,13 +714,13 @@ msgid "" "%j`` where it is 3." msgstr "" -#: ../Doc/library/time.rst:511 +#: ../Doc/library/time.rst:503 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`." msgstr "" -#: ../Doc/library/time.rst:515 +#: ../Doc/library/time.rst:507 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 " @@ -742,11 +731,11 @@ msgid "" "Both *string* and *format* must be strings." msgstr "" -#: ../Doc/library/time.rst:523 +#: ../Doc/library/time.rst:515 msgid "For example:" msgstr "Par exemple ::" -#: ../Doc/library/time.rst:530 +#: ../Doc/library/time.rst:522 msgid "" "Support for the ``%Z`` directive is based on the values contained in " "``tzname`` and whether ``daylight`` is true. Because of this, it is " @@ -754,7 +743,7 @@ msgid "" "(and are considered to be non-daylight savings timezones)." msgstr "" -#: ../Doc/library/time.rst:535 +#: ../Doc/library/time.rst:527 msgid "" "Only the directives specified in the documentation are supported. Because " "``strftime()`` is implemented per platform it can sometimes offer more " @@ -763,7 +752,7 @@ msgid "" "are not documented as supported." msgstr "" -#: ../Doc/library/time.rst:544 +#: ../Doc/library/time.rst:536 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 " @@ -771,153 +760,153 @@ msgid "" "The following values are present:" msgstr "" -#: ../Doc/library/time.rst:550 +#: ../Doc/library/time.rst:542 msgid "Index" msgstr "Index" -#: ../Doc/library/time.rst:550 +#: ../Doc/library/time.rst:542 msgid "Attribute" msgstr "Attribut" -#: ../Doc/library/time.rst:550 +#: ../Doc/library/time.rst:542 msgid "Values" msgstr "Valeurs" -#: ../Doc/library/time.rst:552 +#: ../Doc/library/time.rst:544 msgid "0" msgstr "0" -#: ../Doc/library/time.rst:552 +#: ../Doc/library/time.rst:544 msgid ":attr:`tm_year`" msgstr ":attr:`tm_year`" -#: ../Doc/library/time.rst:552 +#: ../Doc/library/time.rst:544 msgid "(for example, 1993)" msgstr "" -#: ../Doc/library/time.rst:554 +#: ../Doc/library/time.rst:546 msgid "1" msgstr "1" -#: ../Doc/library/time.rst:554 +#: ../Doc/library/time.rst:546 msgid ":attr:`tm_mon`" msgstr ":attr:`tm_mon`" -#: ../Doc/library/time.rst:554 +#: ../Doc/library/time.rst:546 msgid "range [1, 12]" msgstr "" -#: ../Doc/library/time.rst:556 +#: ../Doc/library/time.rst:548 msgid "2" msgstr "2" -#: ../Doc/library/time.rst:556 +#: ../Doc/library/time.rst:548 msgid ":attr:`tm_mday`" msgstr ":attr:`tm_mday`" -#: ../Doc/library/time.rst:556 +#: ../Doc/library/time.rst:548 msgid "range [1, 31]" msgstr "" -#: ../Doc/library/time.rst:558 +#: ../Doc/library/time.rst:550 msgid "3" msgstr "3" -#: ../Doc/library/time.rst:558 +#: ../Doc/library/time.rst:550 msgid ":attr:`tm_hour`" msgstr ":attr:`tm_hour`" -#: ../Doc/library/time.rst:558 +#: ../Doc/library/time.rst:550 msgid "range [0, 23]" msgstr "" -#: ../Doc/library/time.rst:560 +#: ../Doc/library/time.rst:552 msgid "4" msgstr "4" -#: ../Doc/library/time.rst:560 +#: ../Doc/library/time.rst:552 msgid ":attr:`tm_min`" msgstr ":attr:`tm_min`" -#: ../Doc/library/time.rst:560 +#: ../Doc/library/time.rst:552 msgid "range [0, 59]" msgstr "" -#: ../Doc/library/time.rst:562 +#: ../Doc/library/time.rst:554 msgid "5" msgstr "5" -#: ../Doc/library/time.rst:562 +#: ../Doc/library/time.rst:554 msgid ":attr:`tm_sec`" msgstr ":attr:`tm_sec`" -#: ../Doc/library/time.rst:562 +#: ../Doc/library/time.rst:554 msgid "range [0, 61]; see **(2)** in :func:`strftime` description" msgstr "" -#: ../Doc/library/time.rst:565 +#: ../Doc/library/time.rst:557 msgid "6" msgstr "6" -#: ../Doc/library/time.rst:565 +#: ../Doc/library/time.rst:557 msgid ":attr:`tm_wday`" msgstr ":attr:`tm_wday`" -#: ../Doc/library/time.rst:565 +#: ../Doc/library/time.rst:557 msgid "range [0, 6], Monday is 0" msgstr "" -#: ../Doc/library/time.rst:567 +#: ../Doc/library/time.rst:559 msgid "7" msgstr "7" -#: ../Doc/library/time.rst:567 +#: ../Doc/library/time.rst:559 msgid ":attr:`tm_yday`" msgstr ":attr:`tm_yday`" -#: ../Doc/library/time.rst:567 +#: ../Doc/library/time.rst:559 msgid "range [1, 366]" msgstr "" -#: ../Doc/library/time.rst:569 +#: ../Doc/library/time.rst:561 msgid "8" msgstr "8" -#: ../Doc/library/time.rst:569 +#: ../Doc/library/time.rst:561 msgid ":attr:`tm_isdst`" msgstr ":attr:`tm_isdst`" -#: ../Doc/library/time.rst:569 +#: ../Doc/library/time.rst:561 msgid "0, 1 or -1; see below" msgstr "" -#: ../Doc/library/time.rst:571 ../Doc/library/time.rst:573 +#: ../Doc/library/time.rst:563 ../Doc/library/time.rst:565 msgid "N/A" msgstr "N/A" -#: ../Doc/library/time.rst:571 +#: ../Doc/library/time.rst:563 msgid ":attr:`tm_zone`" msgstr ":attr:`tm_zone`" -#: ../Doc/library/time.rst:571 +#: ../Doc/library/time.rst:563 msgid "abbreviation of timezone name" msgstr "" -#: ../Doc/library/time.rst:573 +#: ../Doc/library/time.rst:565 msgid ":attr:`tm_gmtoff`" msgstr ":attr:`tm_gmtoff`" -#: ../Doc/library/time.rst:573 +#: ../Doc/library/time.rst:565 msgid "offset east of UTC in seconds" msgstr "" -#: ../Doc/library/time.rst:576 +#: ../Doc/library/time.rst:568 msgid "" "Note that unlike the C structure, the month value is a range of [1, 12], not " "[0, 11]." msgstr "" -#: ../Doc/library/time.rst:579 +#: ../Doc/library/time.rst:571 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 " @@ -925,14 +914,14 @@ msgid "" "filled in." msgstr "" -#: ../Doc/library/time.rst:583 +#: ../Doc/library/time.rst:575 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:" "`TypeError` is raised." msgstr "" -#: ../Doc/library/time.rst:589 +#: ../Doc/library/time.rst:581 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 " @@ -943,7 +932,7 @@ msgid "" "platform, look at ``gmtime(0)``." msgstr "" -#: ../Doc/library/time.rst:599 +#: ../Doc/library/time.rst:591 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. " @@ -952,7 +941,7 @@ msgid "" "between the two calls." msgstr "" -#: ../Doc/library/time.rst:605 +#: ../Doc/library/time.rst:597 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 :" @@ -962,7 +951,7 @@ msgid "" "attributes." msgstr "" -#: ../Doc/library/time.rst:620 +#: ../Doc/library/time.rst:612 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 " @@ -971,23 +960,23 @@ msgid "" "of consecutive calls in the same thread is valid." msgstr "" -#: ../Doc/library/time.rst:628 +#: ../Doc/library/time.rst:620 msgid "" ":ref:`Availability `: Windows, Linux, Unix systems supporting " "``CLOCK_THREAD_CPUTIME_ID``." msgstr "" -#: ../Doc/library/time.rst:634 +#: ../Doc/library/time.rst:626 msgid "Similar to :func:`thread_time` but return time as nanoseconds." msgstr "" -#: ../Doc/library/time.rst:641 +#: ../Doc/library/time.rst:633 msgid "" "Similar to :func:`time` but returns time as an integer number of nanoseconds " "since the epoch_." msgstr "" -#: ../Doc/library/time.rst:648 +#: ../Doc/library/time.rst:640 msgid "" "Reset the time conversion rules used by the library routines. The " "environment variable :envvar:`TZ` specifies how this is done. It will also " @@ -998,42 +987,42 @@ msgid "" "when daylight saving time applies)." msgstr "" -#: ../Doc/library/time.rst:660 +#: ../Doc/library/time.rst:652 msgid "" "Although in many cases, changing the :envvar:`TZ` environment variable may " "affect the output of functions like :func:`localtime` without calling :func:" "`tzset`, this behavior should not be relied on." msgstr "" -#: ../Doc/library/time.rst:664 +#: ../Doc/library/time.rst:656 msgid "The :envvar:`TZ` environment variable should contain no whitespace." msgstr "" -#: ../Doc/library/time.rst:666 +#: ../Doc/library/time.rst:658 msgid "" "The standard format of the :envvar:`TZ` environment variable is (whitespace " "added for clarity)::" msgstr "" -#: ../Doc/library/time.rst:671 +#: ../Doc/library/time.rst:663 msgid "Where the components are:" msgstr "" -#: ../Doc/library/time.rst:675 +#: ../Doc/library/time.rst:667 msgid "``std`` and ``dst``" msgstr "``std`` and ``dst``" -#: ../Doc/library/time.rst:674 +#: ../Doc/library/time.rst:666 msgid "" "Three or more alphanumerics giving the timezone abbreviations. These will be " "propagated into time.tzname" msgstr "" -#: ../Doc/library/time.rst:681 +#: ../Doc/library/time.rst:673 msgid "``offset``" msgstr "``offset``" -#: ../Doc/library/time.rst:678 +#: ../Doc/library/time.rst:670 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 " @@ -1041,41 +1030,41 @@ msgid "" "summer time is assumed to be one hour ahead of standard time." msgstr "" -#: ../Doc/library/time.rst:703 +#: ../Doc/library/time.rst:695 msgid "``start[/time], end[/time]``" msgstr "``start[/time], end[/time]``" -#: ../Doc/library/time.rst:684 +#: ../Doc/library/time.rst:676 msgid "" "Indicates when to change to and back from DST. The format of the start and " "end dates are one of the following:" msgstr "" -#: ../Doc/library/time.rst:689 +#: ../Doc/library/time.rst:681 msgid ":samp:`J{n}`" msgstr ":samp:`J{n}`" -#: ../Doc/library/time.rst:688 +#: ../Doc/library/time.rst:680 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." msgstr "" -#: ../Doc/library/time.rst:693 +#: ../Doc/library/time.rst:685 msgid ":samp:`{n}`" msgstr ":samp:`{n}`" -#: ../Doc/library/time.rst:692 +#: ../Doc/library/time.rst:684 msgid "" "The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it " "is possible to refer to February 29." msgstr "" -#: ../Doc/library/time.rst:700 +#: ../Doc/library/time.rst:692 msgid ":samp:`M{m}.{n}.{d}`" msgstr ":samp:`M{m}.{n}.{d}`" -#: ../Doc/library/time.rst:696 +#: ../Doc/library/time.rst:688 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*" @@ -1083,13 +1072,13 @@ msgid "" "first week in which the *d*'th day occurs. Day zero is a Sunday." msgstr "" -#: ../Doc/library/time.rst:702 +#: ../Doc/library/time.rst:694 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." msgstr "" -#: ../Doc/library/time.rst:716 +#: ../Doc/library/time.rst:708 msgid "" "On many Unix systems (including \\*BSD, Linux, Solaris, and Darwin), it is " "more convenient to use the system's zoneinfo (:manpage:`tzfile(5)`) " @@ -1100,23 +1089,23 @@ msgid "" "``'Australia/Melbourne'``, ``'Egypt'`` or ``'Europe/Amsterdam'``. ::" msgstr "" -#: ../Doc/library/time.rst:737 +#: ../Doc/library/time.rst:729 msgid "Clock ID Constants" msgstr "" -#: ../Doc/library/time.rst:739 +#: ../Doc/library/time.rst:731 msgid "" "These constants are used as parameters for :func:`clock_getres` and :func:" "`clock_gettime`." msgstr "" -#: ../Doc/library/time.rst:744 +#: ../Doc/library/time.rst:736 msgid "" "Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that " "the system is suspended." msgstr "" -#: ../Doc/library/time.rst:747 +#: ../Doc/library/time.rst:739 msgid "" "This allows applications to get a suspend-aware monotonic clock without " "having to deal with the complications of :data:`CLOCK_REALTIME`, which may " @@ -1124,81 +1113,81 @@ msgid "" "similar." msgstr "" -#: ../Doc/library/time.rst:753 +#: ../Doc/library/time.rst:745 msgid ":ref:`Availability `: Linux 2.6.39 or later." msgstr ":ref:`Disponibilité ` : Linux 2.6.39 et ultérieures." -#: ../Doc/library/time.rst:759 +#: ../Doc/library/time.rst:751 msgid "" "The Solaris OS has a ``CLOCK_HIGHRES`` timer that attempts to use an optimal " "hardware source, and may give close to nanosecond resolution. " "``CLOCK_HIGHRES`` is the nonadjustable, high-resolution clock." msgstr "" -#: ../Doc/library/time.rst:764 +#: ../Doc/library/time.rst:756 msgid ":ref:`Availability `: Solaris." msgstr "" -#: ../Doc/library/time.rst:770 +#: ../Doc/library/time.rst:762 msgid "" "Clock that cannot be set and represents monotonic time since some " "unspecified starting point." msgstr "" -#: ../Doc/library/time.rst:780 +#: ../Doc/library/time.rst:772 msgid "" "Similar to :data:`CLOCK_MONOTONIC`, but provides access to a raw hardware-" "based time that is not subject to NTP adjustments." msgstr "" -#: ../Doc/library/time.rst:783 +#: ../Doc/library/time.rst:775 msgid "Availability: Linux 2.6.28 or later." msgstr "" -#: ../Doc/library/time.rst:790 ../Doc/library/time.rst:799 +#: ../Doc/library/time.rst:782 ../Doc/library/time.rst:791 msgid "High-resolution per-process timer from the CPU." msgstr "" -#: ../Doc/library/time.rst:802 +#: ../Doc/library/time.rst:794 msgid "" ":ref:`Availability `: FreeBSD, NetBSD 7 or later, OpenBSD." msgstr "" -#: ../Doc/library/time.rst:808 +#: ../Doc/library/time.rst:800 msgid "Thread-specific CPU-time clock." msgstr "" -#: ../Doc/library/time.rst:810 +#: ../Doc/library/time.rst:802 msgid "Availability: Unix." msgstr "Disponibilité : Unix." -#: ../Doc/library/time.rst:817 +#: ../Doc/library/time.rst:809 msgid "" "Time whose absolute value is the time the system has been running and not " "suspended, providing accurate uptime measurement, both absolute and interval." msgstr "" -#: ../Doc/library/time.rst:822 +#: ../Doc/library/time.rst:814 msgid ":ref:`Availability `: FreeBSD, OpenBSD 5.5 or later." msgstr "" -#: ../Doc/library/time.rst:826 +#: ../Doc/library/time.rst:818 msgid "" "The following constant is the only parameter that can be sent to :func:" "`clock_settime`." msgstr "" -#: ../Doc/library/time.rst:831 +#: ../Doc/library/time.rst:823 msgid "" "System-wide real-time clock. Setting this clock requires appropriate " "privileges." msgstr "" -#: ../Doc/library/time.rst:842 +#: ../Doc/library/time.rst:834 msgid "Timezone Constants" msgstr "" -#: ../Doc/library/time.rst:846 +#: ../Doc/library/time.rst:838 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 " @@ -1206,25 +1195,25 @@ msgid "" "nonzero. See note below." msgstr "" -#: ../Doc/library/time.rst:852 +#: ../Doc/library/time.rst:844 msgid "Nonzero if a DST timezone is defined. See note below." msgstr "" -#: ../Doc/library/time.rst:856 +#: ../Doc/library/time.rst:848 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 " "below." msgstr "" -#: ../Doc/library/time.rst:861 +#: ../Doc/library/time.rst:853 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 " "defined, the second string should not be used. See note below." msgstr "" -#: ../Doc/library/time.rst:867 +#: ../Doc/library/time.rst:859 msgid "" "For the above Timezone constants (:data:`altzone`, :data:`daylight`, :data:" "`timezone`, and :data:`tzname`), the value is determined by the timezone " @@ -1234,40 +1223,40 @@ msgid "" "obtain timezone information." msgstr "" -#: ../Doc/library/time.rst:877 +#: ../Doc/library/time.rst:869 msgid "Module :mod:`datetime`" msgstr "Module :mod:`datetime`" -#: ../Doc/library/time.rst:877 +#: ../Doc/library/time.rst:869 msgid "More object-oriented interface to dates and times." msgstr "" -#: ../Doc/library/time.rst:881 +#: ../Doc/library/time.rst:873 msgid "Module :mod:`locale`" msgstr "Module :mod:`locale`" -#: ../Doc/library/time.rst:880 +#: ../Doc/library/time.rst:872 msgid "" "Internationalization services. The locale setting affects the " "interpretation of many format specifiers in :func:`strftime` and :func:" "`strptime`." msgstr "" -#: ../Doc/library/time.rst:884 +#: ../Doc/library/time.rst:876 msgid "Module :mod:`calendar`" msgstr "Module :mod:`calendar`" -#: ../Doc/library/time.rst:884 +#: ../Doc/library/time.rst:876 msgid "" "General calendar-related functions. :func:`~calendar.timegm` is the " "inverse of :func:`gmtime` from this module." msgstr "" -#: ../Doc/library/time.rst:888 +#: ../Doc/library/time.rst:880 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/time.rst:889 +#: ../Doc/library/time.rst:881 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. " diff --git a/library/typing.po b/library/typing.po index 9a95ad07..68d55f65 100644 --- a/library/typing.po +++ b/library/typing.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -325,7 +325,7 @@ msgstr "" msgid "Type variable." msgstr "" -#: ../Doc/library/typing.rst:404 ../Doc/library/typing.rst:805 +#: ../Doc/library/typing.rst:404 ../Doc/library/typing.rst:811 msgid "Usage::" msgstr "Utilisation ::" @@ -582,83 +582,87 @@ msgid "A generic version of :class:`collections.defaultdict`." msgstr "" #: ../Doc/library/typing.rst:694 -msgid "A generic version of :class:`collections.Counter`." +msgid "A generic version of :class:`collections.OrderedDict`." msgstr "" #: ../Doc/library/typing.rst:700 -msgid "A generic version of :class:`collections.ChainMap`." +msgid "A generic version of :class:`collections.Counter`." msgstr "" #: ../Doc/library/typing.rst:706 +msgid "A generic version of :class:`collections.ChainMap`." +msgstr "" + +#: ../Doc/library/typing.rst:712 msgid "" "A generator can be annotated by the generic type ``Generator[YieldType, " "SendType, ReturnType]``. For example::" msgstr "" -#: ../Doc/library/typing.rst:715 +#: ../Doc/library/typing.rst:721 msgid "" "Note that unlike many other generics in the typing module, the ``SendType`` " "of :class:`Generator` behaves contravariantly, not covariantly or " "invariantly." msgstr "" -#: ../Doc/library/typing.rst:719 +#: ../Doc/library/typing.rst:725 msgid "" "If your generator will only yield values, set the ``SendType`` and " "``ReturnType`` to ``None``::" msgstr "" -#: ../Doc/library/typing.rst:727 +#: ../Doc/library/typing.rst:733 msgid "" "Alternatively, annotate your generator as having a return type of either " "``Iterable[YieldType]`` or ``Iterator[YieldType]``::" msgstr "" -#: ../Doc/library/typing.rst:737 +#: ../Doc/library/typing.rst:743 msgid "" "An async generator can be annotated by the generic type " "``AsyncGenerator[YieldType, SendType]``. For example::" msgstr "" -#: ../Doc/library/typing.rst:746 +#: ../Doc/library/typing.rst:752 msgid "" "Unlike normal generators, async generators cannot return a value, so there " "is no ``ReturnType`` type parameter. As with :class:`Generator`, the " "``SendType`` behaves contravariantly." msgstr "" -#: ../Doc/library/typing.rst:750 +#: ../Doc/library/typing.rst:756 msgid "" "If your generator will only yield values, set the ``SendType`` to ``None``::" msgstr "" -#: ../Doc/library/typing.rst:758 +#: ../Doc/library/typing.rst:764 msgid "" "Alternatively, annotate your generator as having a return type of either " "``AsyncIterable[YieldType]`` or ``AsyncIterator[YieldType]``::" msgstr "" -#: ../Doc/library/typing.rst:770 +#: ../Doc/library/typing.rst:776 msgid "" "``Text`` is an alias for ``str``. It is provided to supply a forward " "compatible path for Python 2 code: in Python 2, ``Text`` is an alias for " "``unicode``." msgstr "" -#: ../Doc/library/typing.rst:774 +#: ../Doc/library/typing.rst:780 msgid "" "Use ``Text`` to indicate that a value must contain a unicode string in a " "manner that is compatible with both Python 2 and Python 3::" msgstr "" -#: ../Doc/library/typing.rst:786 +#: ../Doc/library/typing.rst:792 msgid "" "Generic type ``IO[AnyStr]`` and its subclasses ``TextIO(IO[str])`` and " "``BinaryIO(IO[bytes])`` represent the types of I/O streams such as returned " "by :func:`open`." msgstr "" -#: ../Doc/library/typing.rst:794 +#: ../Doc/library/typing.rst:800 msgid "" "These type aliases correspond to the return types from :func:`re.compile` " "and :func:`re.match`. These types (and the corresponding functions) are " @@ -666,25 +670,25 @@ msgid "" "``Pattern[bytes]``, ``Match[str]``, or ``Match[bytes]``." msgstr "" -#: ../Doc/library/typing.rst:803 +#: ../Doc/library/typing.rst:809 msgid "Typed version of namedtuple." msgstr "" -#: ../Doc/library/typing.rst:811 +#: ../Doc/library/typing.rst:817 msgid "This is equivalent to::" msgstr "C’est équivalent à ::" -#: ../Doc/library/typing.rst:815 +#: ../Doc/library/typing.rst:821 msgid "" "To give a field a default value, you can assign to it in the class body::" msgstr "" -#: ../Doc/library/typing.rst:824 +#: ../Doc/library/typing.rst:830 msgid "" "Fields with a default value must come after any fields without a default." msgstr "" -#: ../Doc/library/typing.rst:826 +#: ../Doc/library/typing.rst:832 msgid "" "The resulting class has two extra attributes: ``_field_types``, giving a " "dict mapping field names to types, and ``_field_defaults``, a dict mapping " @@ -692,47 +696,47 @@ msgid "" "attribute, which is part of the namedtuple API.)" msgstr "" -#: ../Doc/library/typing.rst:831 +#: ../Doc/library/typing.rst:837 msgid "``NamedTuple`` subclasses can also have docstrings and methods::" msgstr "" -#: ../Doc/library/typing.rst:841 +#: ../Doc/library/typing.rst:847 msgid "Backward-compatible usage::" msgstr "" -#: ../Doc/library/typing.rst:845 +#: ../Doc/library/typing.rst:851 msgid "Added support for :pep:`526` variable annotation syntax." msgstr "" -#: ../Doc/library/typing.rst:848 +#: ../Doc/library/typing.rst:854 msgid "Added support for default values, methods, and docstrings." msgstr "" -#: ../Doc/library/typing.rst:853 +#: ../Doc/library/typing.rst:859 msgid "" "A helper function to indicate a distinct types to a typechecker, see :ref:" "`distinct`. At runtime it returns a function that returns its argument. " "Usage::" msgstr "" -#: ../Doc/library/typing.rst:864 +#: ../Doc/library/typing.rst:870 msgid "Cast a value to a type." msgstr "" -#: ../Doc/library/typing.rst:866 +#: ../Doc/library/typing.rst:872 msgid "" "This returns the value unchanged. To the type checker this signals that the " "return value has the designated type, but at runtime we intentionally don't " "check anything (we want this to be as fast as possible)." msgstr "" -#: ../Doc/library/typing.rst:873 +#: ../Doc/library/typing.rst:879 msgid "" "Return a dictionary containing type hints for a function, method, module or " "class object." msgstr "" -#: ../Doc/library/typing.rst:876 +#: ../Doc/library/typing.rst:882 msgid "" "This is often the same as ``obj.__annotations__``. In addition, forward " "references encoded as string literals are handled by evaluating them in " @@ -742,7 +746,7 @@ msgid "" "merging all the ``__annotations__`` along ``C.__mro__`` in reverse order." msgstr "" -#: ../Doc/library/typing.rst:886 +#: ../Doc/library/typing.rst:892 msgid "" "The ``@overload`` decorator allows describing functions and methods that " "support multiple different combinations of argument types. A series of " @@ -757,104 +761,104 @@ msgid "" "variable::" msgstr "" -#: ../Doc/library/typing.rst:910 +#: ../Doc/library/typing.rst:916 msgid "See :pep:`484` for details and comparison with other typing semantics." msgstr "" -#: ../Doc/library/typing.rst:914 +#: ../Doc/library/typing.rst:920 msgid "Decorator to indicate that annotations are not type hints." msgstr "" -#: ../Doc/library/typing.rst:916 +#: ../Doc/library/typing.rst:922 msgid "" "This works as class or function :term:`decorator`. With a class, it applies " "recursively to all methods defined in that class (but not to methods defined " "in its superclasses or subclasses)." msgstr "" -#: ../Doc/library/typing.rst:920 +#: ../Doc/library/typing.rst:926 msgid "This mutates the function(s) in place." msgstr "" -#: ../Doc/library/typing.rst:924 +#: ../Doc/library/typing.rst:930 msgid "Decorator to give another decorator the :func:`no_type_check` effect." msgstr "" -#: ../Doc/library/typing.rst:926 +#: ../Doc/library/typing.rst:932 msgid "" "This wraps the decorator with something that wraps the decorated function " "in :func:`no_type_check`." msgstr "" -#: ../Doc/library/typing.rst:931 +#: ../Doc/library/typing.rst:937 msgid "Special type indicating an unconstrained type." msgstr "" -#: ../Doc/library/typing.rst:933 +#: ../Doc/library/typing.rst:939 msgid "Every type is compatible with :data:`Any`." msgstr "" -#: ../Doc/library/typing.rst:934 +#: ../Doc/library/typing.rst:940 msgid ":data:`Any` is compatible with every type." msgstr "" -#: ../Doc/library/typing.rst:938 +#: ../Doc/library/typing.rst:944 msgid "Special type indicating that a function never returns. For example::" msgstr "" -#: ../Doc/library/typing.rst:950 +#: ../Doc/library/typing.rst:956 msgid "Union type; ``Union[X, Y]`` means either X or Y." msgstr "" -#: ../Doc/library/typing.rst:952 +#: ../Doc/library/typing.rst:958 msgid "To define a union, use e.g. ``Union[int, str]``. Details:" msgstr "" -#: ../Doc/library/typing.rst:954 +#: ../Doc/library/typing.rst:960 msgid "The arguments must be types and there must be at least one." msgstr "" -#: ../Doc/library/typing.rst:956 +#: ../Doc/library/typing.rst:962 msgid "Unions of unions are flattened, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:960 +#: ../Doc/library/typing.rst:966 msgid "Unions of a single argument vanish, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:964 +#: ../Doc/library/typing.rst:970 msgid "Redundant arguments are skipped, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:968 +#: ../Doc/library/typing.rst:974 msgid "When comparing unions, the argument order is ignored, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:972 +#: ../Doc/library/typing.rst:978 msgid "You cannot subclass or instantiate a union." msgstr "" -#: ../Doc/library/typing.rst:974 +#: ../Doc/library/typing.rst:980 msgid "You cannot write ``Union[X][Y]``." msgstr "" -#: ../Doc/library/typing.rst:976 +#: ../Doc/library/typing.rst:982 msgid "You can use ``Optional[X]`` as a shorthand for ``Union[X, None]``." msgstr "" -#: ../Doc/library/typing.rst:978 +#: ../Doc/library/typing.rst:984 msgid "Don't remove explicit subclasses from unions at runtime." msgstr "" -#: ../Doc/library/typing.rst:983 +#: ../Doc/library/typing.rst:989 msgid "Optional type." msgstr "" -#: ../Doc/library/typing.rst:985 +#: ../Doc/library/typing.rst:991 msgid "``Optional[X]`` is equivalent to ``Union[X, None]``." msgstr "" -#: ../Doc/library/typing.rst:987 +#: ../Doc/library/typing.rst:993 msgid "" "Note that this is not the same concept as an optional argument, which is one " "that has a default. An optional argument with a default does not require " @@ -862,45 +866,45 @@ msgid "" "optional. For example::" msgstr "" -#: ../Doc/library/typing.rst:995 +#: ../Doc/library/typing.rst:1001 msgid "" "On the other hand, if an explicit value of ``None`` is allowed, the use of " "``Optional`` is appropriate, whether the argument is optional or not. For " "example::" msgstr "" -#: ../Doc/library/typing.rst:1004 +#: ../Doc/library/typing.rst:1010 msgid "" "Tuple type; ``Tuple[X, Y]`` is the type of a tuple of two items with the " "first item of type X and the second of type Y." msgstr "" -#: ../Doc/library/typing.rst:1007 +#: ../Doc/library/typing.rst:1013 msgid "" "Example: ``Tuple[T1, T2]`` is a tuple of two elements corresponding to type " "variables T1 and T2. ``Tuple[int, float, str]`` is a tuple of an int, a " "float and a string." msgstr "" -#: ../Doc/library/typing.rst:1011 +#: ../Doc/library/typing.rst:1017 msgid "" "To specify a variable-length tuple of homogeneous type, use literal " "ellipsis, e.g. ``Tuple[int, ...]``. A plain :data:`Tuple` is equivalent to " "``Tuple[Any, ...]``, and in turn to :class:`tuple`." msgstr "" -#: ../Doc/library/typing.rst:1017 +#: ../Doc/library/typing.rst:1023 msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str." msgstr "" -#: ../Doc/library/typing.rst:1019 +#: ../Doc/library/typing.rst:1025 msgid "" "The subscription syntax must always be used with exactly two values: the " "argument list and the return type. The argument list must be a list of " "types or an ellipsis; the return type must be a single type." msgstr "" -#: ../Doc/library/typing.rst:1024 +#: ../Doc/library/typing.rst:1030 msgid "" "There is no syntax to indicate optional or keyword arguments; such function " "types are rarely used as callback types. ``Callable[..., ReturnType]`` " @@ -910,22 +914,22 @@ msgid "" "Callable`." msgstr "" -#: ../Doc/library/typing.rst:1034 +#: ../Doc/library/typing.rst:1040 msgid "Special type construct to mark class variables." msgstr "" -#: ../Doc/library/typing.rst:1036 +#: ../Doc/library/typing.rst:1042 msgid "" "As introduced in :pep:`526`, a variable annotation wrapped in ClassVar " "indicates that a given attribute is intended to be used as a class variable " "and should not be set on instances of that class. Usage::" msgstr "" -#: ../Doc/library/typing.rst:1044 +#: ../Doc/library/typing.rst:1050 msgid ":data:`ClassVar` accepts only types and cannot be further subscribed." msgstr "" -#: ../Doc/library/typing.rst:1046 +#: ../Doc/library/typing.rst:1052 msgid "" ":data:`ClassVar` is not a class itself, and should not be used with :func:" "`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change Python " @@ -933,25 +937,25 @@ msgid "" "example, a type checker might flag the following code as an error::" msgstr "" -#: ../Doc/library/typing.rst:1060 +#: ../Doc/library/typing.rst:1066 msgid "" "``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, " "bytes)``." msgstr "" -#: ../Doc/library/typing.rst:1063 +#: ../Doc/library/typing.rst:1069 msgid "" "It is meant to be used for functions that may accept any kind of string " "without allowing different kinds of strings to mix. For example::" msgstr "" -#: ../Doc/library/typing.rst:1075 +#: ../Doc/library/typing.rst:1081 msgid "" "A special constant that is assumed to be ``True`` by 3rd party static type " "checkers. It is ``False`` at runtime. Usage::" msgstr "" -#: ../Doc/library/typing.rst:1084 +#: ../Doc/library/typing.rst:1090 msgid "" "Note that the first type annotation must be enclosed in quotes, making it a " "\"forward reference\", to hide the ``expensive_mod`` reference from the " diff --git a/library/unittest.mock-examples.po b/library/unittest.mock-examples.po index f67f582c..4d24a9f3 100644 --- a/library/unittest.mock-examples.po +++ b/library/unittest.mock-examples.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-09-15 21:52+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -159,61 +159,68 @@ msgid "" "``mock_calls``:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:158 -msgid "Setting Return Values and Attributes" -msgstr "" - -#: ../Doc/library/unittest.mock-examples.rst:160 -msgid "Setting the return values on a mock object is trivially easy:" +#: ../Doc/library/unittest.mock-examples.rst:156 +msgid "" +"However, parameters to calls that return mocks are not recorded, which means " +"it is not possible to track nested calls where the parameters used to create " +"ancestors are important:" msgstr "" #: ../Doc/library/unittest.mock-examples.rst:167 +msgid "Setting Return Values and Attributes" +msgstr "" + +#: ../Doc/library/unittest.mock-examples.rst:169 +msgid "Setting the return values on a mock object is trivially easy:" +msgstr "" + +#: ../Doc/library/unittest.mock-examples.rst:176 msgid "Of course you can do the same for methods on the mock:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:174 +#: ../Doc/library/unittest.mock-examples.rst:183 msgid "The return value can also be set in the constructor:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:180 +#: ../Doc/library/unittest.mock-examples.rst:189 msgid "If you need an attribute setting on your mock, just do it:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:187 +#: ../Doc/library/unittest.mock-examples.rst:196 msgid "" "Sometimes you want to mock up a more complex situation, like for example " "``mock.connection.cursor().execute(\"SELECT 1\")``. If we wanted this call " "to return a list, then we have to configure the result of the nested call." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:191 +#: ../Doc/library/unittest.mock-examples.rst:200 msgid "" "We can use :data:`call` to construct the set of calls in a \"chained call\" " "like this for easy assertion afterwards:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:205 +#: ../Doc/library/unittest.mock-examples.rst:214 msgid "" "It is the call to ``.call_list()`` that turns our call object into a list of " "calls representing the chained calls." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:210 +#: ../Doc/library/unittest.mock-examples.rst:219 msgid "Raising exceptions with mocks" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:212 +#: ../Doc/library/unittest.mock-examples.rst:221 msgid "" "A useful attribute is :attr:`~Mock.side_effect`. If you set this to an " "exception class or instance then the exception will be raised when the mock " "is called." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:224 +#: ../Doc/library/unittest.mock-examples.rst:233 msgid "Side effect functions and iterables" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:226 +#: ../Doc/library/unittest.mock-examples.rst:235 msgid "" "``side_effect`` can also be set to a function or an iterable. The use case " "for ``side_effect`` as an iterable is where your mock is going to be called " @@ -222,7 +229,7 @@ msgid "" "value from the iterable:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:241 +#: ../Doc/library/unittest.mock-examples.rst:250 msgid "" "For more advanced use cases, like dynamically varying the return values " "depending on what the mock is called with, ``side_effect`` can be a " @@ -230,11 +237,11 @@ msgid "" "Whatever the function returns is what the call returns:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:258 +#: ../Doc/library/unittest.mock-examples.rst:267 msgid "Creating a Mock from an Existing Object" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:260 +#: ../Doc/library/unittest.mock-examples.rst:269 msgid "" "One problem with over use of mocking is that it couples your tests to the " "implementation of your mocks rather than your real code. Suppose you have a " @@ -244,7 +251,7 @@ msgid "" "then your tests will continue to pass even though your code is now broken!" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:267 +#: ../Doc/library/unittest.mock-examples.rst:276 msgid "" ":class:`Mock` allows you to provide an object as a specification for the " "mock, using the *spec* keyword argument. Accessing methods / attributes on " @@ -254,38 +261,38 @@ msgid "" "without you having to instantiate the class in those tests." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:280 +#: ../Doc/library/unittest.mock-examples.rst:289 msgid "" "Using a specification also enables a smarter matching of calls made to the " "mock, regardless of whether some parameters were passed as positional or " "named arguments::" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:291 +#: ../Doc/library/unittest.mock-examples.rst:300 msgid "" "If you want this smarter matching to also work with method calls on the " "mock, you can use :ref:`auto-speccing `." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:294 +#: ../Doc/library/unittest.mock-examples.rst:303 msgid "" "If you want a stronger form of specification that prevents the setting of " "arbitrary attributes as well as the getting of them then you can use " "*spec_set* instead of *spec*." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:301 +#: ../Doc/library/unittest.mock-examples.rst:310 msgid "Patch Decorators" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:305 +#: ../Doc/library/unittest.mock-examples.rst:314 msgid "" "With :func:`patch` it matters that you patch objects in the namespace where " "they are looked up. This is normally straightforward, but for a quick guide " "read :ref:`where to patch `." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:310 +#: ../Doc/library/unittest.mock-examples.rst:319 msgid "" "A common need in tests is to patch a class attribute or a module attribute, " "for example patching a builtin or patching a class in a module to test that " @@ -294,7 +301,7 @@ msgid "" "tests and cause hard to diagnose problems." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:316 +#: ../Doc/library/unittest.mock-examples.rst:325 msgid "" "mock provides three convenient decorators for this: :func:`patch`, :func:" "`patch.object` and :func:`patch.dict`. ``patch`` takes a single string, of " @@ -305,37 +312,37 @@ msgid "" "to patch it with." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:324 +#: ../Doc/library/unittest.mock-examples.rst:333 msgid "``patch.object``:" msgstr "``patch.object``:" -#: ../Doc/library/unittest.mock-examples.rst:341 +#: ../Doc/library/unittest.mock-examples.rst:350 msgid "" "If you are patching a module (including :mod:`builtins`) then use :func:" "`patch` instead of :func:`patch.object`:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:351 +#: ../Doc/library/unittest.mock-examples.rst:360 msgid "" "The module name can be 'dotted', in the form ``package.module`` if needed:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:360 +#: ../Doc/library/unittest.mock-examples.rst:369 msgid "A nice pattern is to actually decorate test methods themselves:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:371 +#: ../Doc/library/unittest.mock-examples.rst:380 msgid "" "If you want to patch with a Mock, you can use :func:`patch` with only one " "argument (or :func:`patch.object` with two arguments). The mock will be " "created for you and passed into the test function / method:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:383 +#: ../Doc/library/unittest.mock-examples.rst:392 msgid "You can stack up multiple patch decorators using this pattern:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:394 +#: ../Doc/library/unittest.mock-examples.rst:403 msgid "" "When you nest patch decorators the mocks are passed in to the decorated " "function in the same order they applied (the normal *Python* order that " @@ -343,45 +350,45 @@ msgid "" "above the mock for ``test_module.ClassName2`` is passed in first." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:399 +#: ../Doc/library/unittest.mock-examples.rst:408 msgid "" "There is also :func:`patch.dict` for setting values in a dictionary just " "during a scope and restoring the dictionary to its original state when the " "test ends:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:410 +#: ../Doc/library/unittest.mock-examples.rst:419 msgid "" "``patch``, ``patch.object`` and ``patch.dict`` can all be used as context " "managers." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:412 +#: ../Doc/library/unittest.mock-examples.rst:421 msgid "" "Where you use :func:`patch` to create a mock for you, you can get a " "reference to the mock using the \"as\" form of the with statement:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:427 +#: ../Doc/library/unittest.mock-examples.rst:436 msgid "" "As an alternative ``patch``, ``patch.object`` and ``patch.dict`` can be used " "as class decorators. When used in this way it is the same as applying the " "decorator individually to every method whose name starts with \"test\"." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:435 +#: ../Doc/library/unittest.mock-examples.rst:444 msgid "Further Examples" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:438 +#: ../Doc/library/unittest.mock-examples.rst:447 msgid "Here are some more examples for some slightly more advanced scenarios." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:442 +#: ../Doc/library/unittest.mock-examples.rst:451 msgid "Mocking chained calls" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:444 +#: ../Doc/library/unittest.mock-examples.rst:453 msgid "" "Mocking chained calls is actually straightforward with mock once you " "understand the :attr:`~Mock.return_value` attribute. When a mock is called " @@ -389,31 +396,31 @@ msgid "" "called, a new :class:`Mock` is created." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:449 +#: ../Doc/library/unittest.mock-examples.rst:458 msgid "" "This means that you can see how the object returned from a call to a mocked " "object has been used by interrogating the ``return_value`` mock:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:457 +#: ../Doc/library/unittest.mock-examples.rst:466 msgid "" "From here it is a simple step to configure and then make assertions about " "chained calls. Of course another alternative is writing your code in a more " "testable way in the first place..." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:461 +#: ../Doc/library/unittest.mock-examples.rst:470 msgid "So, suppose we have some code that looks a little bit like this:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:470 +#: ../Doc/library/unittest.mock-examples.rst:479 msgid "" "Assuming that ``BackendProvider`` is already well tested, how do we test " "``method()``? Specifically, we want to test that the code section ``# more " "code`` uses the response object in the correct way." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:474 +#: ../Doc/library/unittest.mock-examples.rst:483 msgid "" "As this chain of calls is made from an instance attribute we can monkey " "patch the ``backend`` attribute on a ``Something`` instance. In this " @@ -423,26 +430,26 @@ msgid "" "response object uses the builtin :func:`open` as its ``spec``." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:481 +#: ../Doc/library/unittest.mock-examples.rst:490 msgid "" "To do this we create a mock instance as our mock backend and create a mock " "response object for it. To set the response as the return value for that " "final ``start_call`` we could do this::" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:487 +#: ../Doc/library/unittest.mock-examples.rst:496 msgid "" "We can do that in a slightly nicer way using the :meth:`~Mock." "configure_mock` method to directly set the return value for us:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:496 +#: ../Doc/library/unittest.mock-examples.rst:505 msgid "" "With these we monkey patch the \"mock backend\" in place and can make the " "real call:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:502 +#: ../Doc/library/unittest.mock-examples.rst:511 msgid "" "Using :attr:`~Mock.mock_calls` we can check the chained call with a single " "assert. A chained call is several calls in one line of code, so there will " @@ -450,11 +457,11 @@ msgid "" "create this list of calls for us:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:513 +#: ../Doc/library/unittest.mock-examples.rst:522 msgid "Partial mocking" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:515 +#: ../Doc/library/unittest.mock-examples.rst:524 msgid "" "In some tests I wanted to mock out a call to :meth:`datetime.date.today` to " "return a known date, but I didn't want to prevent the code under test from " @@ -463,14 +470,14 @@ msgid "" "method." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:520 +#: ../Doc/library/unittest.mock-examples.rst:529 msgid "" "I found a simple way of doing this that involved effectively wrapping the " "date class with a mock, but passing through calls to the constructor to the " "real class (and returning real instances)." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:524 +#: ../Doc/library/unittest.mock-examples.rst:533 msgid "" "The :func:`patch decorator ` is used here to mock out the ``date`` " "class in the module under test. The :attr:`side_effect` attribute on the " @@ -479,13 +486,13 @@ msgid "" "returned by ``side_effect``." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:539 +#: ../Doc/library/unittest.mock-examples.rst:548 msgid "" "Note that we don't patch :class:`datetime.date` globally, we patch ``date`` " "in the module that *uses* it. See :ref:`where to patch `." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:542 +#: ../Doc/library/unittest.mock-examples.rst:551 msgid "" "When ``date.today()`` is called a known date is returned, but calls to the " "``date(...)`` constructor still return normal dates. Without this you can " @@ -493,30 +500,30 @@ msgid "" "algorithm as the code under test, which is a classic testing anti-pattern." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:547 +#: ../Doc/library/unittest.mock-examples.rst:556 msgid "" "Calls to the date constructor are recorded in the ``mock_date`` attributes " "(``call_count`` and friends) which may also be useful for your tests." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:550 +#: ../Doc/library/unittest.mock-examples.rst:559 msgid "" "An alternative way of dealing with mocking dates, or other builtin classes, " "is discussed in `this blog entry `_." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:556 +#: ../Doc/library/unittest.mock-examples.rst:565 msgid "Mocking a Generator Method" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:558 +#: ../Doc/library/unittest.mock-examples.rst:567 msgid "" "A Python generator is a function or method that uses the :keyword:`yield` " "statement to return a series of values when iterated over [#]_." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:561 +#: ../Doc/library/unittest.mock-examples.rst:570 msgid "" "A generator method / function is called to return the generator object. It " "is the generator object that is then iterated over. The protocol method for " @@ -524,23 +531,23 @@ msgid "" "`MagicMock`." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:566 +#: ../Doc/library/unittest.mock-examples.rst:575 msgid "" "Here's an example class with an \"iter\" method implemented as a generator:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:578 +#: ../Doc/library/unittest.mock-examples.rst:587 msgid "How would we mock this class, and in particular its \"iter\" method?" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:580 +#: ../Doc/library/unittest.mock-examples.rst:589 msgid "" "To configure the values returned from the iteration (implicit in the call " "to :class:`list`), we need to configure the object returned by the call to " "``foo.iter()``." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:588 +#: ../Doc/library/unittest.mock-examples.rst:597 msgid "" "There are also generator expressions and more `advanced uses `_ of generators, but we aren't concerned " @@ -549,11 +556,11 @@ msgid "" "com/generators/>`_." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:596 +#: ../Doc/library/unittest.mock-examples.rst:605 msgid "Applying the same patch to every test method" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:598 +#: ../Doc/library/unittest.mock-examples.rst:607 msgid "" "If you want several patches in place for multiple test methods the obvious " "way is to apply the patch decorators to every method. This can feel like " @@ -563,14 +570,14 @@ msgid "" "methods whose names start with ``test``:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:622 +#: ../Doc/library/unittest.mock-examples.rst:631 msgid "" "An alternative way of managing patches is to use the :ref:`start-and-stop`. " "These allow you to move the patching into your ``setUp`` and ``tearDown`` " "methods." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:638 +#: ../Doc/library/unittest.mock-examples.rst:647 msgid "" "If you use this technique you must ensure that the patching is \"undone\" by " "calling ``stop``. This can be fiddlier than you might think, because if an " @@ -578,11 +585,11 @@ msgid "" "`unittest.TestCase.addCleanup` makes this easier:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:656 +#: ../Doc/library/unittest.mock-examples.rst:665 msgid "Mocking Unbound Methods" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:658 +#: ../Doc/library/unittest.mock-examples.rst:667 msgid "" "Whilst writing tests today I needed to patch an *unbound method* (patching " "the method on the class rather than on the instance). I needed self to be " @@ -596,7 +603,7 @@ msgid "" "becomes a nuisance." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:669 +#: ../Doc/library/unittest.mock-examples.rst:678 msgid "" "If you pass ``autospec=True`` to patch then it does the patching with a " "*real* function object. This function object has the same signature as the " @@ -608,30 +615,30 @@ msgid "" "exactly what I wanted:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:690 +#: ../Doc/library/unittest.mock-examples.rst:699 msgid "" "If we don't use ``autospec=True`` then the unbound method is patched out " "with a Mock instance instead, and isn't called with ``self``." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:695 +#: ../Doc/library/unittest.mock-examples.rst:704 msgid "Checking multiple calls with mock" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:697 +#: ../Doc/library/unittest.mock-examples.rst:706 msgid "" "mock has a nice API for making assertions about how your mock objects are " "used." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:704 +#: ../Doc/library/unittest.mock-examples.rst:713 msgid "" "If your mock is only being called once you can use the :meth:" "`assert_called_once_with` method that also asserts that the :attr:" "`call_count` is one." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:715 +#: ../Doc/library/unittest.mock-examples.rst:724 msgid "" "Both ``assert_called_with`` and ``assert_called_once_with`` make assertions " "about the *most recent* call. If your mock is going to be called several " @@ -639,7 +646,7 @@ msgid "" "attr:`~Mock.call_args_list`:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:727 +#: ../Doc/library/unittest.mock-examples.rst:736 msgid "" "The :data:`call` helper makes it easy to make assertions about these calls. " "You can build up a list of expected calls and compare it to " @@ -647,11 +654,11 @@ msgid "" "``call_args_list``:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:737 +#: ../Doc/library/unittest.mock-examples.rst:746 msgid "Coping with mutable arguments" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:739 +#: ../Doc/library/unittest.mock-examples.rst:748 msgid "" "Another situation is rare, but can bite you, is when your mock is called " "with mutable arguments. ``call_args`` and ``call_args_list`` store " @@ -660,26 +667,26 @@ msgid "" "when the mock was called." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:744 +#: ../Doc/library/unittest.mock-examples.rst:753 msgid "" "Here's some example code that shows the problem. Imagine the following " "functions defined in 'mymodule'::" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:755 +#: ../Doc/library/unittest.mock-examples.rst:764 msgid "" "When we try to test that ``grob`` calls ``frob`` with the correct argument " "look what happens:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:770 +#: ../Doc/library/unittest.mock-examples.rst:779 msgid "" "One possibility would be for mock to copy the arguments you pass in. This " "could then cause problems if you do assertions that rely on object identity " "for equality." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:774 +#: ../Doc/library/unittest.mock-examples.rst:783 msgid "" "Here's one solution that uses the :attr:`side_effect` functionality. If you " "provide a ``side_effect`` function for a mock then ``side_effect`` will be " @@ -689,28 +696,28 @@ msgid "" "doing the assertion. Again a helper function sets this up for me." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:803 +#: ../Doc/library/unittest.mock-examples.rst:812 msgid "" "``copy_call_args`` is called with the mock that will be called. It returns a " "new mock that we do the assertion on. The ``side_effect`` function makes a " "copy of the args and calls our ``new_mock`` with the copy." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:809 +#: ../Doc/library/unittest.mock-examples.rst:818 msgid "" "If your mock is only going to be used once there is an easier way of " "checking arguments at the point they are called. You can simply do the " "checking inside a ``side_effect`` function." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:823 +#: ../Doc/library/unittest.mock-examples.rst:832 msgid "" "An alternative approach is to create a subclass of :class:`Mock` or :class:" "`MagicMock` that copies (using :func:`copy.deepcopy`) the arguments. Here's " "an example implementation:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:847 +#: ../Doc/library/unittest.mock-examples.rst:856 msgid "" "When you subclass ``Mock`` or ``MagicMock`` all dynamically created " "attributes, and the ``return_value`` will use your subclass automatically. " @@ -718,18 +725,18 @@ msgid "" "``CopyingMock``." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:853 +#: ../Doc/library/unittest.mock-examples.rst:862 msgid "Nesting Patches" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:855 +#: ../Doc/library/unittest.mock-examples.rst:864 msgid "" "Using patch as a context manager is nice, but if you do multiple patches you " "can end up with nested with statements indenting further and further to the " "right:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:873 +#: ../Doc/library/unittest.mock-examples.rst:882 msgid "" "With unittest ``cleanup`` functions and the :ref:`start-and-stop` we can " "achieve the same effect without the nested indentation. A simple helper " @@ -737,24 +744,24 @@ msgid "" "mock for us:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:901 +#: ../Doc/library/unittest.mock-examples.rst:910 msgid "Mocking a dictionary with MagicMock" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:903 +#: ../Doc/library/unittest.mock-examples.rst:912 msgid "" "You may want to mock a dictionary, or other container object, recording all " "access to it whilst having it still behave like a dictionary." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:906 +#: ../Doc/library/unittest.mock-examples.rst:915 msgid "" "We can do this with :class:`MagicMock`, which will behave like a dictionary, " "and using :data:`~Mock.side_effect` to delegate dictionary access to a real " "underlying dictionary that is under our control." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:910 +#: ../Doc/library/unittest.mock-examples.rst:919 msgid "" "When the :meth:`__getitem__` and :meth:`__setitem__` methods of our " "``MagicMock`` are called (normal dictionary access) then ``side_effect`` is " @@ -762,49 +769,49 @@ msgid "" "can also control what is returned." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:914 +#: ../Doc/library/unittest.mock-examples.rst:923 msgid "" "After the ``MagicMock`` has been used we can use attributes like :data:" "`~Mock.call_args_list` to assert about how the dictionary was used:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:930 +#: ../Doc/library/unittest.mock-examples.rst:939 msgid "" "An alternative to using ``MagicMock`` is to use ``Mock`` and *only* provide " "the magic methods you specifically want:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:937 +#: ../Doc/library/unittest.mock-examples.rst:946 msgid "" "A *third* option is to use ``MagicMock`` but passing in ``dict`` as the " "*spec* (or *spec_set*) argument so that the ``MagicMock`` created only has " "dictionary magic methods available:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:945 +#: ../Doc/library/unittest.mock-examples.rst:954 msgid "" "With these side effect functions in place, the ``mock`` will behave like a " "normal dictionary but recording the access. It even raises a :exc:`KeyError` " "if you try to access a key that doesn't exist." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:964 +#: ../Doc/library/unittest.mock-examples.rst:973 msgid "" "After it has been used you can make assertions about the access using the " "normal mock methods and attributes:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:976 +#: ../Doc/library/unittest.mock-examples.rst:985 msgid "Mock subclasses and their attributes" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:978 +#: ../Doc/library/unittest.mock-examples.rst:987 msgid "" "There are various reasons why you might want to subclass :class:`Mock`. One " "reason might be to add helper methods. Here's a silly example:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:994 +#: ../Doc/library/unittest.mock-examples.rst:1003 msgid "" "The standard behaviour for ``Mock`` instances is that attributes and the " "return value mocks are of the same type as the mock they are accessed on. " @@ -814,7 +821,7 @@ msgid "" "mock of instances of your subclass." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1010 +#: ../Doc/library/unittest.mock-examples.rst:1019 msgid "" "Sometimes this is inconvenient. For example, `one user `_ is subclassing mock to created a `Twisted " @@ -823,7 +830,7 @@ msgid "" "errors." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1016 +#: ../Doc/library/unittest.mock-examples.rst:1025 msgid "" "``Mock`` (in all its flavours) uses a method called ``_get_child_mock`` to " "create these \"sub-mocks\" for attributes and return values. You can prevent " @@ -832,25 +839,25 @@ msgid "" "are then passed onto the mock constructor:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1033 +#: ../Doc/library/unittest.mock-examples.rst:1042 msgid "" "An exception to this rule are the non-callable mocks. Attributes use the " "callable variant because otherwise non-callable mocks couldn't have callable " "methods." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1039 +#: ../Doc/library/unittest.mock-examples.rst:1048 msgid "Mocking imports with patch.dict" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1041 +#: ../Doc/library/unittest.mock-examples.rst:1050 msgid "" "One situation where mocking can be hard is where you have a local import " "inside a function. These are harder to mock because they aren't using an " "object from the module namespace that we can patch out." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1045 +#: ../Doc/library/unittest.mock-examples.rst:1054 msgid "" "Generally local imports are to be avoided. They are sometimes done to " "prevent circular dependencies, for which there is *usually* a much better " @@ -860,7 +867,7 @@ msgid "" "and only do the import on first use)." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1052 +#: ../Doc/library/unittest.mock-examples.rst:1061 msgid "" "That aside there is a way to use ``mock`` to affect the results of an " "import. Importing fetches an *object* from the :data:`sys.modules` " @@ -870,7 +877,7 @@ msgid "" "back. This need not be the case however." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1059 +#: ../Doc/library/unittest.mock-examples.rst:1068 msgid "" "This means you can use :func:`patch.dict` to *temporarily* put a mock in " "place in :data:`sys.modules`. Any imports whilst this patch is active will " @@ -879,29 +886,29 @@ msgid "" "whatever was there previously will be restored safely." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1065 +#: ../Doc/library/unittest.mock-examples.rst:1074 msgid "Here's an example that mocks out the 'fooble' module." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1076 +#: ../Doc/library/unittest.mock-examples.rst:1085 msgid "" "As you can see the ``import fooble`` succeeds, but on exit there is no " "'fooble' left in :data:`sys.modules`." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1079 +#: ../Doc/library/unittest.mock-examples.rst:1088 msgid "This also works for the ``from module import name`` form:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1089 +#: ../Doc/library/unittest.mock-examples.rst:1098 msgid "With slightly more work you can also mock package imports:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1102 +#: ../Doc/library/unittest.mock-examples.rst:1111 msgid "Tracking order of calls and less verbose call assertions" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1104 +#: ../Doc/library/unittest.mock-examples.rst:1113 msgid "" "The :class:`Mock` class allows you to track the *order* of method calls on " "your mock objects through the :attr:`~Mock.method_calls` attribute. This " @@ -909,7 +916,7 @@ msgid "" "however we can use :attr:`~Mock.mock_calls` to achieve the same effect." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1109 +#: ../Doc/library/unittest.mock-examples.rst:1118 msgid "" "Because mocks track calls to child mocks in ``mock_calls``, and accessing an " "arbitrary attribute of a mock creates a child mock, we can create our " @@ -917,20 +924,20 @@ msgid "" "recorded, in order, in the ``mock_calls`` of the parent:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1126 +#: ../Doc/library/unittest.mock-examples.rst:1135 msgid "" "We can then assert about the calls, including the order, by comparing with " "the ``mock_calls`` attribute on the manager mock:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1133 +#: ../Doc/library/unittest.mock-examples.rst:1142 msgid "" "If ``patch`` is creating, and putting in place, your mocks then you can " "attach them to a manager mock using the :meth:`~Mock.attach_mock` method. " "After attaching calls will be recorded in ``mock_calls`` of the manager." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1153 +#: ../Doc/library/unittest.mock-examples.rst:1162 msgid "" "If many calls have been made, but you're only interested in a particular " "sequence of them then an alternative is to use the :meth:`~Mock." @@ -939,13 +946,13 @@ msgid "" "mock_calls` then the assert succeeds." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1167 +#: ../Doc/library/unittest.mock-examples.rst:1176 msgid "" "Even though the chained call ``m.one().two().three()`` aren't the only calls " "that have been made to the mock, the assert still succeeds." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1170 +#: ../Doc/library/unittest.mock-examples.rst:1179 msgid "" "Sometimes a mock may have several calls made to it, and you are only " "interested in asserting about *some* of those calls. You may not even care " @@ -953,17 +960,17 @@ msgid "" "``assert_has_calls``:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1182 +#: ../Doc/library/unittest.mock-examples.rst:1191 msgid "More complex argument matching" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1184 +#: ../Doc/library/unittest.mock-examples.rst:1193 msgid "" "Using the same basic concept as :data:`ANY` we can implement matchers to do " "more complex assertions on objects used as arguments to mocks." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1187 +#: ../Doc/library/unittest.mock-examples.rst:1196 msgid "" "Suppose we expect some object to be passed to a mock that by default " "compares equal based on object identity (which is the Python default for " @@ -973,28 +980,28 @@ msgid "" "attributes for us." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1194 +#: ../Doc/library/unittest.mock-examples.rst:1203 msgid "" "You can see in this example how a 'standard' call to ``assert_called_with`` " "isn't sufficient:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1209 +#: ../Doc/library/unittest.mock-examples.rst:1218 msgid "" "A comparison function for our ``Foo`` class might look something like this:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1221 +#: ../Doc/library/unittest.mock-examples.rst:1230 msgid "" "And a matcher object that can use comparison functions like this for its " "equality operation would look something like this:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1232 +#: ../Doc/library/unittest.mock-examples.rst:1241 msgid "Putting all this together:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1237 +#: ../Doc/library/unittest.mock-examples.rst:1246 msgid "" "The ``Matcher`` is instantiated with our compare function and the ``Foo`` " "object we want to compare against. In ``assert_called_with`` the ``Matcher`` " @@ -1004,13 +1011,13 @@ msgid "" "raised:" msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1250 +#: ../Doc/library/unittest.mock-examples.rst:1259 msgid "" "With a bit of tweaking you could have the comparison function raise the :exc:" "`AssertionError` directly and provide a more useful failure message." msgstr "" -#: ../Doc/library/unittest.mock-examples.rst:1253 +#: ../Doc/library/unittest.mock-examples.rst:1262 msgid "" "As of version 1.5, the Python testing library `PyHamcrest `_ provides similar functionality, that may be " diff --git a/library/unittest.mock.po b/library/unittest.mock.po index 6888c42e..ef71e380 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -560,7 +560,14 @@ msgid "" "tuples `." msgstr "" -#: ../Doc/library/unittest.mock.rst:686 +#: ../Doc/library/unittest.mock.rst:685 +msgid "" +"The way :attr:`mock_calls` are recorded means that where nested calls are " +"made, the parameters of ancestor calls are not recorded and so will always " +"compare equal:" +msgstr "" + +#: ../Doc/library/unittest.mock.rst:699 msgid "" "Normally the :attr:`__class__` attribute of an object will return its type. " "For a mock object with a :attr:`spec`, ``__class__`` returns the spec class " @@ -568,32 +575,32 @@ msgid "" "object they are replacing / masquerading as:" msgstr "" -#: ../Doc/library/unittest.mock.rst:695 +#: ../Doc/library/unittest.mock.rst:708 msgid "" ":attr:`__class__` is assignable to, this allows a mock to pass an :func:" "`isinstance` check without forcing you to use a spec:" msgstr "" -#: ../Doc/library/unittest.mock.rst:705 +#: ../Doc/library/unittest.mock.rst:718 msgid "" "A non-callable version of :class:`Mock`. The constructor parameters have the " "same meaning of :class:`Mock`, with the exception of *return_value* and " "*side_effect* which have no meaning on a non-callable mock." msgstr "" -#: ../Doc/library/unittest.mock.rst:709 +#: ../Doc/library/unittest.mock.rst:722 msgid "" "Mock objects that use a class or an instance as a :attr:`spec` or :attr:" "`spec_set` are able to pass :func:`isinstance` tests:" msgstr "" -#: ../Doc/library/unittest.mock.rst:719 +#: ../Doc/library/unittest.mock.rst:732 msgid "" "The :class:`Mock` classes have support for mocking magic methods. See :ref:" "`magic methods ` for the full details." msgstr "" -#: ../Doc/library/unittest.mock.rst:722 +#: ../Doc/library/unittest.mock.rst:735 msgid "" "The mock classes and the :func:`patch` decorators all take arbitrary keyword " "arguments for configuration. For the :func:`patch` decorators the keywords " @@ -601,14 +608,14 @@ msgid "" "arguments are for configuring attributes of the mock:" msgstr "" -#: ../Doc/library/unittest.mock.rst:733 +#: ../Doc/library/unittest.mock.rst:746 msgid "" "The return value and side effect of child mocks can be set in the same way, " "using dotted notation. As you can't use dotted names directly in a call you " "have to create a dictionary and unpack it using ``**``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:748 +#: ../Doc/library/unittest.mock.rst:761 msgid "" "A callable mock which was created with a *spec* (or a *spec_set*) will " "introspect the specification object's signature when matching calls to the " @@ -616,7 +623,7 @@ msgid "" "whether they were passed positionally or by name::" msgstr "" -#: ../Doc/library/unittest.mock.rst:761 +#: ../Doc/library/unittest.mock.rst:774 msgid "" "This applies to :meth:`~Mock.assert_called_with`, :meth:`~Mock." "assert_called_once_with`, :meth:`~Mock.assert_has_calls` and :meth:`~Mock." @@ -624,35 +631,35 @@ msgid "" "calls on the mock object." msgstr "" -#: ../Doc/library/unittest.mock.rst:766 +#: ../Doc/library/unittest.mock.rst:779 msgid "Added signature introspection on specced and autospecced mock objects." msgstr "" -#: ../Doc/library/unittest.mock.rst:772 +#: ../Doc/library/unittest.mock.rst:785 msgid "" "A mock intended to be used as a property, or other descriptor, on a class. :" "class:`PropertyMock` provides :meth:`__get__` and :meth:`__set__` methods so " "you can specify a return value when it is fetched." msgstr "" -#: ../Doc/library/unittest.mock.rst:776 +#: ../Doc/library/unittest.mock.rst:789 msgid "" "Fetching a :class:`PropertyMock` instance from an object calls the mock, " "with no args. Setting it calls the mock with the value being set." msgstr "" -#: ../Doc/library/unittest.mock.rst:797 +#: ../Doc/library/unittest.mock.rst:810 msgid "" "Because of the way mock attributes are stored you can't directly attach a :" "class:`PropertyMock` to a mock object. Instead you can attach it to the mock " "type object::" msgstr "" -#: ../Doc/library/unittest.mock.rst:810 +#: ../Doc/library/unittest.mock.rst:823 msgid "Calling" msgstr "" -#: ../Doc/library/unittest.mock.rst:812 +#: ../Doc/library/unittest.mock.rst:825 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 " @@ -661,26 +668,26 @@ msgid "" "returned each time." msgstr "" -#: ../Doc/library/unittest.mock.rst:818 +#: ../Doc/library/unittest.mock.rst:831 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:821 +#: ../Doc/library/unittest.mock.rst:834 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:825 +#: ../Doc/library/unittest.mock.rst:838 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:843 +#: ../Doc/library/unittest.mock.rst:856 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 " @@ -688,7 +695,7 @@ msgid "" "value of the call dynamically, based on the input:" msgstr "" -#: ../Doc/library/unittest.mock.rst:859 +#: ../Doc/library/unittest.mock.rst:872 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 " @@ -696,36 +703,36 @@ msgid "" "data:`DEFAULT`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:878 +#: ../Doc/library/unittest.mock.rst:891 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:892 +#: ../Doc/library/unittest.mock.rst:905 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:908 +#: ../Doc/library/unittest.mock.rst:921 msgid "" "If any members of the iterable are exceptions they will be raised instead of " "returned::" msgstr "" -#: ../Doc/library/unittest.mock.rst:926 +#: ../Doc/library/unittest.mock.rst:939 msgid "Deleting Attributes" msgstr "" -#: ../Doc/library/unittest.mock.rst:928 +#: ../Doc/library/unittest.mock.rst:941 msgid "" "Mock objects create attributes on demand. This allows them to pretend to be " "objects of any type." msgstr "" -#: ../Doc/library/unittest.mock.rst:931 +#: ../Doc/library/unittest.mock.rst:944 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 " @@ -733,17 +740,17 @@ msgid "" "convenient." msgstr "" -#: ../Doc/library/unittest.mock.rst:935 +#: ../Doc/library/unittest.mock.rst:948 msgid "" "You \"block\" attributes by deleting them. Once deleted, accessing an " "attribute will raise an :exc:`AttributeError`." msgstr "" -#: ../Doc/library/unittest.mock.rst:952 +#: ../Doc/library/unittest.mock.rst:965 msgid "Mock names and the name attribute" msgstr "" -#: ../Doc/library/unittest.mock.rst:954 +#: ../Doc/library/unittest.mock.rst:967 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 " @@ -751,17 +758,17 @@ msgid "" "configure_mock`::" msgstr "" -#: ../Doc/library/unittest.mock.rst:964 +#: ../Doc/library/unittest.mock.rst:977 msgid "" "A simpler option is to simply set the \"name\" attribute after mock " "creation::" msgstr "" -#: ../Doc/library/unittest.mock.rst:971 +#: ../Doc/library/unittest.mock.rst:984 msgid "Attaching Mocks as Attributes" msgstr "" -#: ../Doc/library/unittest.mock.rst:973 +#: ../Doc/library/unittest.mock.rst:986 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 " @@ -772,20 +779,20 @@ msgid "" "calls between mocks:" msgstr "" -#: ../Doc/library/unittest.mock.rst:991 +#: ../Doc/library/unittest.mock.rst:1004 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:1002 +#: ../Doc/library/unittest.mock.rst:1015 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:1020 +#: ../Doc/library/unittest.mock.rst:1033 msgid "" "The only exceptions are magic methods and attributes (those that have " "leading and trailing double underscores). Mock doesn't create these but " @@ -795,11 +802,11 @@ msgid "" "support see :ref:`magic methods `." msgstr "" -#: ../Doc/library/unittest.mock.rst:1029 +#: ../Doc/library/unittest.mock.rst:1042 msgid "The patchers" msgstr "" -#: ../Doc/library/unittest.mock.rst:1031 +#: ../Doc/library/unittest.mock.rst:1044 msgid "" "The patch decorators are used for patching objects only within the scope of " "the function they decorate. They automatically handle the unpatching for " @@ -807,17 +814,17 @@ msgid "" "in with statements or as class decorators." msgstr "" -#: ../Doc/library/unittest.mock.rst:1038 +#: ../Doc/library/unittest.mock.rst:1051 msgid "patch" msgstr "" -#: ../Doc/library/unittest.mock.rst:1042 +#: ../Doc/library/unittest.mock.rst:1055 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:1047 +#: ../Doc/library/unittest.mock.rst:1060 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 " @@ -825,7 +832,7 @@ msgid "" "patch is undone." msgstr "" -#: ../Doc/library/unittest.mock.rst:1052 +#: ../Doc/library/unittest.mock.rst:1065 msgid "" "If *new* is omitted, then the target is replaced with a :class:`MagicMock`. " "If :func:`patch` is used as a decorator and *new* is omitted, the created " @@ -834,7 +841,7 @@ msgid "" "context manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:1058 +#: ../Doc/library/unittest.mock.rst:1071 msgid "" "*target* should be a string in the form ``'package.module.ClassName'``. The " "*target* is imported and the specified object replaced with the *new* " @@ -843,26 +850,26 @@ msgid "" "function is executed, not at decoration time." msgstr "" -#: ../Doc/library/unittest.mock.rst:1064 +#: ../Doc/library/unittest.mock.rst:1077 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:1067 +#: ../Doc/library/unittest.mock.rst:1080 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:1070 +#: ../Doc/library/unittest.mock.rst:1083 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:" "`MagicMock` is used." msgstr "" -#: ../Doc/library/unittest.mock.rst:1074 +#: ../Doc/library/unittest.mock.rst:1087 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. " @@ -874,13 +881,13 @@ msgid "" "func:`create_autospec` function and :ref:`auto-speccing`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1084 +#: ../Doc/library/unittest.mock.rst:1097 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:1087 +#: ../Doc/library/unittest.mock.rst:1100 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 " @@ -891,13 +898,13 @@ msgid "" "APIs that don't actually exist!" msgstr "" -#: ../Doc/library/unittest.mock.rst:1097 +#: ../Doc/library/unittest.mock.rst:1110 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:1101 +#: ../Doc/library/unittest.mock.rst:1114 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 " @@ -908,7 +915,7 @@ msgid "" "TEST_PREFIX``." msgstr "" -#: ../Doc/library/unittest.mock.rst:1108 +#: ../Doc/library/unittest.mock.rst:1121 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 " @@ -916,64 +923,64 @@ msgid "" "very useful if :func:`patch` is creating a mock object for you." msgstr "" -#: ../Doc/library/unittest.mock.rst:1113 +#: ../Doc/library/unittest.mock.rst:1126 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:1116 +#: ../Doc/library/unittest.mock.rst:1129 msgid "" "``patch.dict(...)``, ``patch.multiple(...)`` and ``patch.object(...)`` are " "available for alternate use-cases." msgstr "" -#: ../Doc/library/unittest.mock.rst:1119 +#: ../Doc/library/unittest.mock.rst:1132 msgid "" ":func:`patch` as function decorator, creating the mock for you and passing " "it into the decorated function:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1129 +#: ../Doc/library/unittest.mock.rst:1142 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:1133 +#: ../Doc/library/unittest.mock.rst:1146 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:1137 +#: ../Doc/library/unittest.mock.rst:1150 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:1151 +#: ../Doc/library/unittest.mock.rst:1164 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:1161 +#: ../Doc/library/unittest.mock.rst:1174 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:1174 +#: ../Doc/library/unittest.mock.rst:1187 msgid "" "Another use case might be to replace an object with an :class:`io.StringIO` " "instance:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1187 +#: ../Doc/library/unittest.mock.rst:1200 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 " @@ -981,7 +988,7 @@ msgid "" "call will be used to set attributes on the created mock:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1199 +#: ../Doc/library/unittest.mock.rst:1212 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 " @@ -990,17 +997,17 @@ msgid "" "func:`patch` call using ``**``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1217 +#: ../Doc/library/unittest.mock.rst:1230 msgid "patch.object" msgstr "" -#: ../Doc/library/unittest.mock.rst:1221 +#: ../Doc/library/unittest.mock.rst:1234 msgid "" "patch the named member (*attribute*) on an object (*target*) with a mock " "object." msgstr "" -#: ../Doc/library/unittest.mock.rst:1224 +#: ../Doc/library/unittest.mock.rst:1237 msgid "" ":func:`patch.object` can be used as a decorator, class decorator or a " "context manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* " @@ -1009,94 +1016,94 @@ msgid "" "configuring the mock object it creates." msgstr "" -#: ../Doc/library/unittest.mock.rst:1230 +#: ../Doc/library/unittest.mock.rst:1243 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:1233 +#: ../Doc/library/unittest.mock.rst:1246 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:1237 +#: ../Doc/library/unittest.mock.rst:1250 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:1248 +#: ../Doc/library/unittest.mock.rst:1261 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:1253 +#: ../Doc/library/unittest.mock.rst:1266 msgid "patch.dict" msgstr "" -#: ../Doc/library/unittest.mock.rst:1257 +#: ../Doc/library/unittest.mock.rst:1270 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:1260 +#: ../Doc/library/unittest.mock.rst:1273 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:1264 +#: ../Doc/library/unittest.mock.rst:1277 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:1267 +#: ../Doc/library/unittest.mock.rst:1280 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:1270 +#: ../Doc/library/unittest.mock.rst:1283 msgid "" "If *clear* is true then the dictionary will be cleared before the new values " "are set." msgstr "" -#: ../Doc/library/unittest.mock.rst:1273 +#: ../Doc/library/unittest.mock.rst:1286 msgid "" ":func:`patch.dict` can also be called with arbitrary keyword arguments to " "set values in the dictionary." msgstr "" -#: ../Doc/library/unittest.mock.rst:1276 +#: ../Doc/library/unittest.mock.rst:1289 msgid "" ":func:`patch.dict` can be used as a context manager, decorator or class " "decorator. When used as a class decorator :func:`patch.dict` honours ``patch." "TEST_PREFIX`` for choosing which methods to wrap." msgstr "" -#: ../Doc/library/unittest.mock.rst:1280 +#: ../Doc/library/unittest.mock.rst:1293 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:1297 +#: ../Doc/library/unittest.mock.rst:1310 msgid "" "Keywords can be used in the :func:`patch.dict` call to set values in the " "dictionary:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1307 +#: ../Doc/library/unittest.mock.rst:1320 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, " @@ -1105,18 +1112,18 @@ msgid "" "`__delitem__` and either :meth:`__iter__` or :meth:`__contains__`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1336 +#: ../Doc/library/unittest.mock.rst:1349 msgid "patch.multiple" msgstr "" -#: ../Doc/library/unittest.mock.rst:1340 +#: ../Doc/library/unittest.mock.rst:1353 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:1347 +#: ../Doc/library/unittest.mock.rst:1360 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 " @@ -1124,7 +1131,7 @@ msgid "" "`patch.multiple` is used as a context manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:1352 +#: ../Doc/library/unittest.mock.rst:1365 msgid "" ":func:`patch.multiple` can be used as a decorator, class decorator or a " "context manager. The arguments *spec*, *spec_set*, *create*, *autospec* and " @@ -1132,13 +1139,13 @@ msgid "" "will be applied to *all* patches done by :func:`patch.multiple`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1357 +#: ../Doc/library/unittest.mock.rst:1370 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:1360 +#: ../Doc/library/unittest.mock.rst:1373 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 " @@ -1146,31 +1153,31 @@ msgid "" "keyword." msgstr "" -#: ../Doc/library/unittest.mock.rst:1374 +#: ../Doc/library/unittest.mock.rst:1387 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:1386 +#: ../Doc/library/unittest.mock.rst:1399 msgid "" "If :func:`patch.multiple` is used as a context manager, the value returned " "by the context manger is a dictionary where created mocks are keyed by name:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1400 +#: ../Doc/library/unittest.mock.rst:1413 msgid "patch methods: start and stop" msgstr "" -#: ../Doc/library/unittest.mock.rst:1402 +#: ../Doc/library/unittest.mock.rst:1415 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:1406 +#: ../Doc/library/unittest.mock.rst:1419 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 " @@ -1178,19 +1185,19 @@ msgid "" "it." msgstr "" -#: ../Doc/library/unittest.mock.rst:1410 +#: ../Doc/library/unittest.mock.rst:1423 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:1424 +#: ../Doc/library/unittest.mock.rst:1437 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:1446 +#: ../Doc/library/unittest.mock.rst:1459 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 " @@ -1198,37 +1205,37 @@ msgid "" "`unittest.TestCase.addCleanup` makes this easier:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1461 +#: ../Doc/library/unittest.mock.rst:1474 msgid "" "As an added bonus you no longer need to keep a reference to the ``patcher`` " "object." msgstr "" -#: ../Doc/library/unittest.mock.rst:1464 +#: ../Doc/library/unittest.mock.rst:1477 msgid "" "It is also possible to stop all patches which have been started by using :" "func:`patch.stopall`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1469 +#: ../Doc/library/unittest.mock.rst:1482 msgid "Stop all active patches. Only stops patches started with ``start``." msgstr "" -#: ../Doc/library/unittest.mock.rst:1475 +#: ../Doc/library/unittest.mock.rst:1488 msgid "patch builtins" msgstr "" -#: ../Doc/library/unittest.mock.rst:1476 +#: ../Doc/library/unittest.mock.rst:1489 msgid "" "You can patch any builtins within a module. The following example patches " "builtin :func:`ord`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1489 +#: ../Doc/library/unittest.mock.rst:1502 msgid "TEST_PREFIX" msgstr "" -#: ../Doc/library/unittest.mock.rst:1491 +#: ../Doc/library/unittest.mock.rst:1504 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 " @@ -1236,39 +1243,39 @@ msgid "" "the :class:`unittest.TestLoader` finds test methods by default." msgstr "" -#: ../Doc/library/unittest.mock.rst:1496 +#: ../Doc/library/unittest.mock.rst:1509 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:1519 +#: ../Doc/library/unittest.mock.rst:1532 msgid "Nesting Patch Decorators" msgstr "" -#: ../Doc/library/unittest.mock.rst:1521 +#: ../Doc/library/unittest.mock.rst:1534 msgid "" "If you want to perform multiple patches then you can simply stack up the " "decorators." msgstr "" -#: ../Doc/library/unittest.mock.rst:1524 +#: ../Doc/library/unittest.mock.rst:1537 msgid "You can stack up multiple patch decorators using this pattern:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1540 +#: ../Doc/library/unittest.mock.rst:1553 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:1548 +#: ../Doc/library/unittest.mock.rst:1561 msgid "Where to patch" msgstr "" -#: ../Doc/library/unittest.mock.rst:1550 +#: ../Doc/library/unittest.mock.rst:1563 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 " @@ -1276,19 +1283,19 @@ msgid "" "the name used by the system under test." msgstr "" -#: ../Doc/library/unittest.mock.rst:1555 +#: ../Doc/library/unittest.mock.rst:1568 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:1559 +#: ../Doc/library/unittest.mock.rst:1572 msgid "" "Imagine we have a project that we want to test with the following structure::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1568 +#: ../Doc/library/unittest.mock.rst:1581 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 " @@ -1298,7 +1305,7 @@ msgid "" "like our patching had no effect." msgstr "" -#: ../Doc/library/unittest.mock.rst:1575 +#: ../Doc/library/unittest.mock.rst:1588 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 " @@ -1306,7 +1313,7 @@ msgid "" "look like::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1581 +#: ../Doc/library/unittest.mock.rst:1594 msgid "" "However, consider the alternative scenario where instead of ``from a import " "SomeClass`` module b does ``import a`` and ``some_function`` uses ``a." @@ -1315,11 +1322,11 @@ msgid "" "``a.SomeClass`` instead::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1590 +#: ../Doc/library/unittest.mock.rst:1603 msgid "Patching Descriptors and Proxy Objects" msgstr "" -#: ../Doc/library/unittest.mock.rst:1592 +#: ../Doc/library/unittest.mock.rst:1605 msgid "" "Both patch_ and patch.object_ correctly patch and restore descriptors: class " "methods, static methods and properties. You should patch these on the " @@ -1328,22 +1335,22 @@ msgid "" "voidspace.org.uk/python/weblog/arch_d7_2010_12_04.shtml#e1198>`_." msgstr "" -#: ../Doc/library/unittest.mock.rst:1600 +#: ../Doc/library/unittest.mock.rst:1613 msgid "MagicMock and magic method support" msgstr "" -#: ../Doc/library/unittest.mock.rst:1605 +#: ../Doc/library/unittest.mock.rst:1618 msgid "Mocking Magic Methods" msgstr "" -#: ../Doc/library/unittest.mock.rst:1607 +#: ../Doc/library/unittest.mock.rst:1620 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:1611 +#: ../Doc/library/unittest.mock.rst:1624 msgid "" "Because magic methods are looked up differently from normal methods [#]_, " "this support has been specially implemented. This means that only specific " @@ -1351,70 +1358,70 @@ msgid "" "them. If there are any missing that you need please let us know." msgstr "" -#: ../Doc/library/unittest.mock.rst:1616 +#: ../Doc/library/unittest.mock.rst:1629 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:1639 +#: ../Doc/library/unittest.mock.rst:1652 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:1651 +#: ../Doc/library/unittest.mock.rst:1664 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:1656 +#: ../Doc/library/unittest.mock.rst:1669 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:1659 +#: ../Doc/library/unittest.mock.rst:1672 msgid "The full list of supported magic methods is:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1661 +#: ../Doc/library/unittest.mock.rst:1674 msgid "``__hash__``, ``__sizeof__``, ``__repr__`` and ``__str__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1662 +#: ../Doc/library/unittest.mock.rst:1675 msgid "``__dir__``, ``__format__`` and ``__subclasses__``" msgstr "``__dir__``, ``__format__`` et ``__subclasses__``" -#: ../Doc/library/unittest.mock.rst:1663 +#: ../Doc/library/unittest.mock.rst:1676 msgid "``__floor__``, ``__trunc__`` and ``__ceil__``" msgstr "``__floor__``, ``__trunc__`` et ``__ceil__``" -#: ../Doc/library/unittest.mock.rst:1664 +#: ../Doc/library/unittest.mock.rst:1677 msgid "" "Comparisons: ``__lt__``, ``__gt__``, ``__le__``, ``__ge__``, ``__eq__`` and " "``__ne__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1666 +#: ../Doc/library/unittest.mock.rst:1679 msgid "" "Container methods: ``__getitem__``, ``__setitem__``, ``__delitem__``, " "``__contains__``, ``__len__``, ``__iter__``, ``__reversed__`` and " "``__missing__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1669 +#: ../Doc/library/unittest.mock.rst:1682 msgid "Context manager: ``__enter__`` and ``__exit__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1670 +#: ../Doc/library/unittest.mock.rst:1683 msgid "Unary numeric methods: ``__neg__``, ``__pos__`` and ``__invert__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1671 +#: ../Doc/library/unittest.mock.rst:1684 msgid "" "The numeric methods (including right hand and in-place variants): " "``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__div__``, " @@ -1423,82 +1430,82 @@ msgid "" "``__pow__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1675 +#: ../Doc/library/unittest.mock.rst:1688 msgid "" "Numeric conversion methods: ``__complex__``, ``__int__``, ``__float__`` and " "``__index__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1677 +#: ../Doc/library/unittest.mock.rst:1690 msgid "Descriptor methods: ``__get__``, ``__set__`` and ``__delete__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1678 +#: ../Doc/library/unittest.mock.rst:1691 msgid "" "Pickling: ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, " "``__getnewargs__``, ``__getstate__`` and ``__setstate__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1682 +#: ../Doc/library/unittest.mock.rst:1695 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:1685 +#: ../Doc/library/unittest.mock.rst:1698 msgid "``__getattr__``, ``__setattr__``, ``__init__`` and ``__new__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1686 +#: ../Doc/library/unittest.mock.rst:1699 msgid "" "``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1691 +#: ../Doc/library/unittest.mock.rst:1704 msgid "Magic Mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1693 +#: ../Doc/library/unittest.mock.rst:1706 msgid "" "There are two ``MagicMock`` variants: :class:`MagicMock` and :class:" "`NonCallableMagicMock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1698 +#: ../Doc/library/unittest.mock.rst:1711 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:1702 +#: ../Doc/library/unittest.mock.rst:1715 msgid "The constructor parameters have the same meaning as for :class:`Mock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1704 +#: ../Doc/library/unittest.mock.rst:1717 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:1710 +#: ../Doc/library/unittest.mock.rst:1723 msgid "A non-callable version of :class:`MagicMock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1712 +#: ../Doc/library/unittest.mock.rst:1725 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:1716 +#: ../Doc/library/unittest.mock.rst:1729 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:1726 +#: ../Doc/library/unittest.mock.rst:1739 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, " @@ -1507,79 +1514,79 @@ msgid "" "manually if you want to change the default." msgstr "" -#: ../Doc/library/unittest.mock.rst:1732 +#: ../Doc/library/unittest.mock.rst:1745 msgid "Methods and their defaults:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1734 +#: ../Doc/library/unittest.mock.rst:1747 msgid "``__lt__``: NotImplemented" msgstr "``__lt__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1735 +#: ../Doc/library/unittest.mock.rst:1748 msgid "``__gt__``: NotImplemented" msgstr "``__gt__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1736 +#: ../Doc/library/unittest.mock.rst:1749 msgid "``__le__``: NotImplemented" msgstr "``__le__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1737 +#: ../Doc/library/unittest.mock.rst:1750 msgid "``__ge__``: NotImplemented" msgstr "``__ge__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1738 +#: ../Doc/library/unittest.mock.rst:1751 msgid "``__int__``: 1" msgstr "``__int__``: 1" -#: ../Doc/library/unittest.mock.rst:1739 +#: ../Doc/library/unittest.mock.rst:1752 msgid "``__contains__``: False" msgstr "``__contains__``: False" -#: ../Doc/library/unittest.mock.rst:1740 +#: ../Doc/library/unittest.mock.rst:1753 msgid "``__len__``: 0" msgstr "" -#: ../Doc/library/unittest.mock.rst:1741 +#: ../Doc/library/unittest.mock.rst:1754 msgid "``__iter__``: iter([])" msgstr "``__iter__``: iter([])" -#: ../Doc/library/unittest.mock.rst:1742 +#: ../Doc/library/unittest.mock.rst:1755 msgid "``__exit__``: False" msgstr "``__exit__``: False" -#: ../Doc/library/unittest.mock.rst:1743 +#: ../Doc/library/unittest.mock.rst:1756 msgid "``__complex__``: 1j" msgstr "``__complex__``: 1j" -#: ../Doc/library/unittest.mock.rst:1744 +#: ../Doc/library/unittest.mock.rst:1757 msgid "``__float__``: 1.0" msgstr "``__float__``: 1.0" -#: ../Doc/library/unittest.mock.rst:1745 +#: ../Doc/library/unittest.mock.rst:1758 msgid "``__bool__``: True" msgstr "``__bool__``: True" -#: ../Doc/library/unittest.mock.rst:1746 +#: ../Doc/library/unittest.mock.rst:1759 msgid "``__index__``: 1" msgstr "``__index__``: 1" -#: ../Doc/library/unittest.mock.rst:1747 +#: ../Doc/library/unittest.mock.rst:1760 msgid "``__hash__``: default hash for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1748 +#: ../Doc/library/unittest.mock.rst:1761 msgid "``__str__``: default str for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1749 +#: ../Doc/library/unittest.mock.rst:1762 msgid "``__sizeof__``: default sizeof for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1751 +#: ../Doc/library/unittest.mock.rst:1764 msgid "For example:" msgstr "Par exemple ::" -#: ../Doc/library/unittest.mock.rst:1763 +#: ../Doc/library/unittest.mock.rst:1776 msgid "" "The two equality methods, :meth:`__eq__` and :meth:`__ne__`, are special. " "They do the default equality comparison on identity, using the :attr:`~Mock." @@ -1587,102 +1594,102 @@ msgid "" "something else::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1777 +#: ../Doc/library/unittest.mock.rst:1790 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:1787 +#: ../Doc/library/unittest.mock.rst:1800 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:1796 +#: ../Doc/library/unittest.mock.rst:1809 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:1799 +#: ../Doc/library/unittest.mock.rst:1812 msgid "" "Magic methods that are supported but not setup by default in ``MagicMock`` " "are:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1801 +#: ../Doc/library/unittest.mock.rst:1814 msgid "``__subclasses__``" msgstr "``__subclasses__``" -#: ../Doc/library/unittest.mock.rst:1802 +#: ../Doc/library/unittest.mock.rst:1815 msgid "``__dir__``" msgstr "``__dir__``" -#: ../Doc/library/unittest.mock.rst:1803 +#: ../Doc/library/unittest.mock.rst:1816 msgid "``__format__``" msgstr "``__format__``" -#: ../Doc/library/unittest.mock.rst:1804 +#: ../Doc/library/unittest.mock.rst:1817 msgid "``__get__``, ``__set__`` and ``__delete__``" msgstr "``__get__``, ``__set__`` et ``__delete__``" -#: ../Doc/library/unittest.mock.rst:1805 +#: ../Doc/library/unittest.mock.rst:1818 msgid "``__reversed__`` and ``__missing__``" msgstr "``__reversed__`` et ``__missing__``" -#: ../Doc/library/unittest.mock.rst:1806 +#: ../Doc/library/unittest.mock.rst:1819 msgid "" "``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``, " "``__getstate__`` and ``__setstate__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1808 +#: ../Doc/library/unittest.mock.rst:1821 msgid "``__getformat__`` and ``__setformat__``" msgstr "``__getformat__`` et ``__setformat__``" -#: ../Doc/library/unittest.mock.rst:1812 +#: ../Doc/library/unittest.mock.rst:1825 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:1816 +#: ../Doc/library/unittest.mock.rst:1829 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:1821 +#: ../Doc/library/unittest.mock.rst:1834 msgid "Helpers" msgstr "" -#: ../Doc/library/unittest.mock.rst:1824 +#: ../Doc/library/unittest.mock.rst:1837 msgid "sentinel" msgstr "" -#: ../Doc/library/unittest.mock.rst:1828 +#: ../Doc/library/unittest.mock.rst:1841 msgid "" "The ``sentinel`` object provides a convenient way of providing unique " "objects for your tests." msgstr "" -#: ../Doc/library/unittest.mock.rst:1831 +#: ../Doc/library/unittest.mock.rst:1844 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:1835 +#: ../Doc/library/unittest.mock.rst:1848 msgid "" "The ``sentinel`` attributes now preserve their identity when they are :mod:" "`copied ` or :mod:`pickled `." msgstr "" -#: ../Doc/library/unittest.mock.rst:1839 +#: ../Doc/library/unittest.mock.rst:1852 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 " @@ -1690,28 +1697,28 @@ msgid "" "creating and testing the identity of objects like this." msgstr "" -#: ../Doc/library/unittest.mock.rst:1844 +#: ../Doc/library/unittest.mock.rst:1857 msgid "" "In this example we monkey patch ``method`` to return ``sentinel." "some_object``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1856 +#: ../Doc/library/unittest.mock.rst:1869 msgid "DEFAULT" msgstr "" -#: ../Doc/library/unittest.mock.rst:1861 +#: ../Doc/library/unittest.mock.rst:1874 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:1867 +#: ../Doc/library/unittest.mock.rst:1880 msgid "call" msgstr "" -#: ../Doc/library/unittest.mock.rst:1871 +#: ../Doc/library/unittest.mock.rst:1884 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." @@ -1719,13 +1726,13 @@ msgid "" "with :meth:`~Mock.assert_has_calls`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1884 +#: ../Doc/library/unittest.mock.rst:1897 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:1888 +#: ../Doc/library/unittest.mock.rst:1901 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 " @@ -1733,13 +1740,13 @@ msgid "" "constructing the sequence of calls can be tedious." msgstr "" -#: ../Doc/library/unittest.mock.rst:1893 +#: ../Doc/library/unittest.mock.rst:1906 msgid "" ":meth:`~call.call_list` can construct the sequence of calls from the same " "chained call:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1910 +#: ../Doc/library/unittest.mock.rst:1923 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. " @@ -1749,7 +1756,7 @@ msgid "" "to get at the individual arguments they contain." msgstr "" -#: ../Doc/library/unittest.mock.rst:1917 +#: ../Doc/library/unittest.mock.rst:1930 msgid "" "The ``call`` objects in :attr:`Mock.call_args` and :attr:`Mock." "call_args_list` are two-tuples of (positional args, keyword args) whereas " @@ -1758,7 +1765,7 @@ msgid "" "args)." msgstr "" -#: ../Doc/library/unittest.mock.rst:1922 +#: ../Doc/library/unittest.mock.rst:1935 msgid "" "You can use their \"tupleness\" to pull out the individual arguments for " "more complex introspection and assertions. The positional arguments are a " @@ -1766,29 +1773,29 @@ msgid "" "arguments are a dictionary:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1956 +#: ../Doc/library/unittest.mock.rst:1969 msgid "create_autospec" msgstr "" -#: ../Doc/library/unittest.mock.rst:1960 +#: ../Doc/library/unittest.mock.rst:1973 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:1964 +#: ../Doc/library/unittest.mock.rst:1977 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:1967 +#: ../Doc/library/unittest.mock.rst:1980 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:1970 +#: ../Doc/library/unittest.mock.rst:1983 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 " @@ -1796,23 +1803,23 @@ msgid "" "be callable if instances of the mock are callable." msgstr "" -#: ../Doc/library/unittest.mock.rst:1975 +#: ../Doc/library/unittest.mock.rst:1988 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:1978 +#: ../Doc/library/unittest.mock.rst:1991 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:1983 +#: ../Doc/library/unittest.mock.rst:1996 msgid "ANY" msgstr "" -#: ../Doc/library/unittest.mock.rst:1987 +#: ../Doc/library/unittest.mock.rst:2000 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 " @@ -1820,24 +1827,24 @@ msgid "" "assertions on them." msgstr "" -#: ../Doc/library/unittest.mock.rst:1992 +#: ../Doc/library/unittest.mock.rst:2005 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:2001 +#: ../Doc/library/unittest.mock.rst:2014 msgid "" ":data:`ANY` can also be used in comparisons with call lists like :attr:" "`~Mock.mock_calls`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2014 +#: ../Doc/library/unittest.mock.rst:2027 msgid "FILTER_DIR" msgstr "" -#: ../Doc/library/unittest.mock.rst:2018 +#: ../Doc/library/unittest.mock.rst:2031 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 " @@ -1846,7 +1853,7 @@ msgid "" "diagnostic purposes, then set ``mock.FILTER_DIR = False``." msgstr "" -#: ../Doc/library/unittest.mock.rst:2024 +#: ../Doc/library/unittest.mock.rst:2037 msgid "" "With filtering on, ``dir(some_mock)`` shows only useful attributes and will " "include any dynamically created attributes that wouldn't normally be shown. " @@ -1855,7 +1862,7 @@ msgid "" "yet:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2045 +#: ../Doc/library/unittest.mock.rst:2058 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 " @@ -1864,31 +1871,31 @@ msgid "" "switch :data:`FILTER_DIR`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2063 +#: ../Doc/library/unittest.mock.rst:2076 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:2069 +#: ../Doc/library/unittest.mock.rst:2082 msgid "mock_open" msgstr "" -#: ../Doc/library/unittest.mock.rst:2073 +#: ../Doc/library/unittest.mock.rst:2086 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:2076 +#: ../Doc/library/unittest.mock.rst:2089 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:2080 +#: ../Doc/library/unittest.mock.rst:2093 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 " @@ -1901,51 +1908,51 @@ msgid "" "realistic filesystem for testing." msgstr "" -#: ../Doc/library/unittest.mock.rst:2090 +#: ../Doc/library/unittest.mock.rst:2103 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:2095 +#: ../Doc/library/unittest.mock.rst:2108 msgid "*read_data* is now reset on each call to the *mock*." msgstr "" -#: ../Doc/library/unittest.mock.rst:2098 +#: ../Doc/library/unittest.mock.rst:2111 msgid "" "Added :meth:`__iter__` to implementation so that iteration (such as in for " "loops) correctly consumes *read_data*." msgstr "" -#: ../Doc/library/unittest.mock.rst:2102 +#: ../Doc/library/unittest.mock.rst:2115 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:2108 +#: ../Doc/library/unittest.mock.rst:2121 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:2112 +#: ../Doc/library/unittest.mock.rst:2125 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:2129 +#: ../Doc/library/unittest.mock.rst:2142 msgid "And for reading files:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2142 +#: ../Doc/library/unittest.mock.rst:2155 msgid "Autospeccing" msgstr "" -#: ../Doc/library/unittest.mock.rst:2144 +#: ../Doc/library/unittest.mock.rst:2157 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 " @@ -1955,11 +1962,11 @@ msgid "" "`TypeError` if they are called incorrectly." msgstr "" -#: ../Doc/library/unittest.mock.rst:2151 +#: ../Doc/library/unittest.mock.rst:2164 msgid "Before I explain how auto-speccing works, here's why it is needed." msgstr "" -#: ../Doc/library/unittest.mock.rst:2153 +#: ../Doc/library/unittest.mock.rst:2166 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 " @@ -1967,25 +1974,25 @@ msgid "" "general problem with using mock objects." msgstr "" -#: ../Doc/library/unittest.mock.rst:2158 +#: ../Doc/library/unittest.mock.rst:2171 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:2171 +#: ../Doc/library/unittest.mock.rst:2184 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:2181 +#: ../Doc/library/unittest.mock.rst:2194 msgid "Your tests can pass silently and incorrectly because of the typo." msgstr "" -#: ../Doc/library/unittest.mock.rst:2183 +#: ../Doc/library/unittest.mock.rst:2196 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 " @@ -1993,7 +2000,7 @@ msgid "" "means your tests can all pass even though your code is broken." msgstr "" -#: ../Doc/library/unittest.mock.rst:2188 +#: ../Doc/library/unittest.mock.rst:2201 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 " @@ -2001,20 +2008,20 @@ msgid "" "room for bugs that tests might have caught." msgstr "" -#: ../Doc/library/unittest.mock.rst:2193 +#: ../Doc/library/unittest.mock.rst:2206 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:2204 +#: ../Doc/library/unittest.mock.rst:2217 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:2213 +#: ../Doc/library/unittest.mock.rst:2226 msgid "" "Auto-speccing solves this problem. You can either pass ``autospec=True`` to :" "func:`patch` / :func:`patch.object` or use the :func:`create_autospec` " @@ -2026,24 +2033,24 @@ msgid "" "import modules) without a big performance hit." msgstr "" -#: ../Doc/library/unittest.mock.rst:2222 +#: ../Doc/library/unittest.mock.rst:2235 msgid "Here's an example of it in use:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2232 +#: ../Doc/library/unittest.mock.rst:2245 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:2241 +#: ../Doc/library/unittest.mock.rst:2254 msgid "" "The spec also applies to instantiated classes (i.e. the return value of " "specced mocks):" msgstr "" -#: ../Doc/library/unittest.mock.rst:2248 +#: ../Doc/library/unittest.mock.rst:2261 msgid "" ":class:`Request` objects are not callable, so the return value of " "instantiating our mocked out :class:`request.Request` is a non-callable " @@ -2051,20 +2058,20 @@ msgid "" "error:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2260 +#: ../Doc/library/unittest.mock.rst:2273 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:2264 +#: ../Doc/library/unittest.mock.rst:2277 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:2272 +#: ../Doc/library/unittest.mock.rst:2285 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 " @@ -2076,7 +2083,7 @@ msgid "" "objects so that introspection is safe [#]_." msgstr "" -#: ../Doc/library/unittest.mock.rst:2281 +#: ../Doc/library/unittest.mock.rst:2294 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. " @@ -2084,7 +2091,7 @@ msgid "" "the api to visible attributes." msgstr "" -#: ../Doc/library/unittest.mock.rst:2298 +#: ../Doc/library/unittest.mock.rst:2311 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 " @@ -2093,7 +2100,7 @@ msgid "" "setting them:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2309 +#: ../Doc/library/unittest.mock.rst:2322 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 " @@ -2101,7 +2108,7 @@ msgid "" "this particular scenario:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2322 +#: ../Doc/library/unittest.mock.rst:2335 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 " @@ -2110,7 +2117,7 @@ msgid "" "faster too. e.g." msgstr "" -#: ../Doc/library/unittest.mock.rst:2332 +#: ../Doc/library/unittest.mock.rst:2345 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 " @@ -2121,7 +2128,7 @@ msgid "" "These will just be ordinary mocks (well - MagicMocks):" msgstr "" -#: ../Doc/library/unittest.mock.rst:2347 +#: ../Doc/library/unittest.mock.rst:2360 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 " @@ -2132,25 +2139,25 @@ msgid "" "alternative object as the *autospec* argument:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2368 +#: ../Doc/library/unittest.mock.rst:2381 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:2373 +#: ../Doc/library/unittest.mock.rst:2386 msgid "Sealing mocks" msgstr "" -#: ../Doc/library/unittest.mock.rst:2377 +#: ../Doc/library/unittest.mock.rst:2390 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:2380 +#: ../Doc/library/unittest.mock.rst:2393 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/unittest.po b/library/unittest.po index 71c0021a..c26a5a0c 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-09-27 11:28+0200\n" "Last-Translator: Lowic Mangin \n" "Language-Team: FRENCH \n" @@ -765,8 +765,8 @@ msgstr "" #: ../Doc/library/unittest.rst:588 msgid "" -"Mark the test as an expected failure. If the test fails when run, the test " -"is not counted as a failure." +"Mark the test as an expected failure. If the test fails it will be " +"considered a success. If the test passes, it will be considered a failure." msgstr "" #: ../Doc/library/unittest.rst:593 diff --git a/library/venv.po b/library/venv.po index 2350866f..87e533ad 100644 --- a/library/venv.po +++ b/library/venv.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" -"PO-Revision-Date: 2018-12-14 10:39+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"PO-Revision-Date: 2018-12-17 21:52+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -76,27 +76,30 @@ msgstr "" "exécutant la commande ``venv`` ::" #: ../Doc/using/venv-create.inc:6 +#, fuzzy msgid "" "Running this command creates the target directory (creating any parent " "directories that don't exist already) and places a ``pyvenv.cfg`` file in it " "with a ``home`` key pointing to the Python installation from which the " "command was run. It also creates a ``bin`` (or ``Scripts`` on Windows) " -"subdirectory containing a copy of the ``python`` binary (or binaries, in the " -"case of Windows). It also creates an (initially empty) ``lib/pythonX.Y/site-" -"packages`` subdirectory (on Windows, this is ``Lib\\site-packages``). If an " -"existing directory is specified, it will be re-used." +"subdirectory containing a copy/symlink of the Python binary/binaries (as " +"appropriate for the platform or arguments used at environment creation " +"time). It also creates an (initially empty) ``lib/pythonX.Y/site-packages`` " +"subdirectory (on Windows, this is ``Lib\\site-packages``). If an existing " +"directory is specified, it will be re-used." msgstr "" "Lancer cette commande crée le dossier du **venv** (en créant tous les " "dossiers parents qui n'existent pas déjà) et crée un fichier ``pyenv.cfg`` à " "l’intérieur de ce dossier avec une clé ``home`` qui pointe sur " "l'installation Python depuis laquelle cette commande a été lancée. Il crée " "aussi un sous-dossier ``bin`` (ou ``Scripts`` sur Windows) contenant une " -"copie du binaire ``python`` (ou binaires, dans le cas de Windows). Il crée " -"aussi un sous-dossier (initialement vide) ``lib/pythonX.Y/site-packages`` " -"(Sur Windows, c'est ``Lib\\site-packages``). Si un dossier existant est " -"spécifié, il sera réutilisé." +"copie (ou un lien symbolique) du ou des binaire ``python`` (dépend de la " +"plateforme et des paramètres donnés à la création de l'environnement). Il " +"crée aussi un sous-dossier (initialement vide) ``lib/pythonX.Y/site-" +"packages`` (Sur Windows, c'est ``Lib\\site-packages``). Si un dossier " +"existant est spécifié, il sera réutilisé." -#: ../Doc/using/venv-create.inc:15 +#: ../Doc/using/venv-create.inc:16 msgid "" "``pyvenv`` was the recommended tool for creating virtual environments for " "Python 3.3 and 3.4, and is `deprecated in Python 3.6 `_." -#: ../Doc/using/venv-create.inc:20 +#: ../Doc/using/venv-create.inc:21 msgid "" "The use of ``venv`` is now recommended for creating virtual environments." msgstr "" "L'utilisation de ``venv`` est maintenant recommandée pour créer vos " "environnements virtuels." -#: ../Doc/using/venv-create.inc:25 +#: ../Doc/using/venv-create.inc:26 msgid "On Windows, invoke the ``venv`` command as follows::" msgstr "Sur Windows, appelez la commande ``venv`` comme suit ::" -#: ../Doc/using/venv-create.inc:29 +#: ../Doc/using/venv-create.inc:30 msgid "" "Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " "your :ref:`Python installation `::" @@ -125,19 +128,19 @@ msgstr "" "Alternativement, si vous avez configuré les variables ``PATH`` et " "``PATHEXT`` pour votre :ref:`installation Python ` ::" -#: ../Doc/using/venv-create.inc:34 +#: ../Doc/using/venv-create.inc:35 msgid "The command, if run with ``-h``, will show the available options::" msgstr "" "La commande, si lancée avec ``-h``, montrera les options disponibles ::" -#: ../Doc/using/venv-create.inc:64 +#: ../Doc/using/venv-create.inc:65 msgid "" "Installs pip by default, added the ``--without-pip`` and ``--copies`` " "options" msgstr "" "Installe pip par défaut, ajout des options ``--without-pip`` et ``--copies``" -#: ../Doc/using/venv-create.inc:68 +#: ../Doc/using/venv-create.inc:69 msgid "" "In earlier versions, if the target directory already existed, an error was " "raised, unless the ``--clear`` or ``--upgrade`` option was provided." @@ -146,7 +149,7 @@ msgstr "" "une erreur était levée, sauf si l'option ``--clear`` ou ``--upgrade`` était " "incluse." -#: ../Doc/using/venv-create.inc:72 +#: ../Doc/using/venv-create.inc:73 msgid "" "The created ``pyvenv.cfg`` file also includes the ``include-system-site-" "packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-" @@ -156,7 +159,7 @@ msgstr "" "packages``, dont la valeur est ``true`` si ``venv`` est lancé avec l'option " "``--system-site-packages``, sinon sa valeur est ``false``." -#: ../Doc/using/venv-create.inc:76 +#: ../Doc/using/venv-create.inc:77 msgid "" "Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " "invoked to bootstrap ``pip`` into the virtual environment." @@ -164,7 +167,7 @@ msgstr "" "Sauf si l'option ``--without-pip`` est incluse, :mod:`ensurepip` sera " "invoqué pour amorcer ``pip`` dans l'environnement virtuel." -#: ../Doc/using/venv-create.inc:79 +#: ../Doc/using/venv-create.inc:80 msgid "" "Multiple paths can be given to ``venv``, in which case an identical virtual " "environment will be created, according to the given options, at each " @@ -174,11 +177,13 @@ msgstr "" "environnement virtuel sera créé, en fonction des options incluses, à chaque " "chemin donné." -#: ../Doc/using/venv-create.inc:83 +#: ../Doc/using/venv-create.inc:84 +#, fuzzy msgid "" "Once a virtual environment has been created, it can be \"activated\" using a " "script in the virtual environment's binary directory. The invocation of the " -"script is platform-specific:" +"script is platform-specific (`` must be replaced by the path of the " +"directory containing the virtual environment):" msgstr "" "Une fois qu'un environnement virtuel est créé, il peut être \"activé\" en " "utilisant un script dans le dossier binaire de l'environnement virtuel. " @@ -186,67 +191,67 @@ msgstr "" "être remplacé par le chemin d'accès du répertoire contenant l'environnement " "virtuel) :" -#: ../Doc/using/venv-create.inc:88 +#: ../Doc/using/venv-create.inc:90 msgid "Platform" msgstr "Plateforme" -#: ../Doc/using/venv-create.inc:88 +#: ../Doc/using/venv-create.inc:90 msgid "Shell" msgstr "Invite de commande" -#: ../Doc/using/venv-create.inc:88 +#: ../Doc/using/venv-create.inc:90 msgid "Command to activate virtual environment" msgstr "Commande pour activer l'environnement virtuel" -#: ../Doc/using/venv-create.inc:90 +#: ../Doc/using/venv-create.inc:92 msgid "Posix" msgstr "Posix" -#: ../Doc/using/venv-create.inc:90 +#: ../Doc/using/venv-create.inc:92 msgid "bash/zsh" msgstr "bash/zsh" -#: ../Doc/using/venv-create.inc:90 +#: ../Doc/using/venv-create.inc:92 msgid "$ source /bin/activate" msgstr "``$ source /bin/activate``" -#: ../Doc/using/venv-create.inc:92 +#: ../Doc/using/venv-create.inc:94 msgid "fish" msgstr "fish" -#: ../Doc/using/venv-create.inc:92 +#: ../Doc/using/venv-create.inc:94 msgid "$ . /bin/activate.fish" msgstr "``$ . /bin/activate.fish``" -#: ../Doc/using/venv-create.inc:94 +#: ../Doc/using/venv-create.inc:96 msgid "csh/tcsh" msgstr "csh/tcsh" -#: ../Doc/using/venv-create.inc:94 +#: ../Doc/using/venv-create.inc:96 msgid "$ source /bin/activate.csh" msgstr "``$ source /bin/activate.csh``" -#: ../Doc/using/venv-create.inc:96 +#: ../Doc/using/venv-create.inc:98 msgid "Windows" msgstr "Windows" -#: ../Doc/using/venv-create.inc:96 +#: ../Doc/using/venv-create.inc:98 msgid "cmd.exe" msgstr "cmd.exe" -#: ../Doc/using/venv-create.inc:96 +#: ../Doc/using/venv-create.inc:98 msgid "C:\\\\> \\\\Scripts\\\\activate.bat" msgstr "``C:\\\\{venv}\\\\Scripts\\\\activate.bat``" -#: ../Doc/using/venv-create.inc:98 +#: ../Doc/using/venv-create.inc:100 msgid "PowerShell" msgstr "PowerShell" -#: ../Doc/using/venv-create.inc:98 +#: ../Doc/using/venv-create.inc:100 msgid "PS C:\\\\> \\\\Scripts\\\\Activate.ps1" msgstr "``PS C:\\\\> \\\\Scripts\\\\Activate.ps1``" -#: ../Doc/using/venv-create.inc:101 +#: ../Doc/using/venv-create.inc:103 msgid "" "You don't specifically *need* to activate an environment; activation just " "prepends the virtual environment's binary directory to your path, so that " @@ -263,7 +268,7 @@ msgstr "" "installés dans un environnement virtuel devraient être exécutables sans " "l'activer, et se lancer avec l'environnement virtuel Python automatiquement." -#: ../Doc/using/venv-create.inc:108 +#: ../Doc/using/venv-create.inc:110 msgid "" "You can deactivate a virtual environment by typing \"deactivate\" in your " "shell. The exact mechanism is platform-specific: for example, the Bash " @@ -278,7 +283,7 @@ msgstr "" "``deactivate.bat`` et ``Deactivate.ps1`` qui sont installés quand " "l'environnement virtuel est créé." -#: ../Doc/using/venv-create.inc:114 +#: ../Doc/using/venv-create.inc:116 msgid "``fish`` and ``csh`` activation scripts." msgstr "Les scripts d'activation pour ``fish`` et ``csh``." @@ -468,7 +473,7 @@ msgstr "" "activé (par défaut à ``None`` ce qui veux dire qu'il utilisera le nom du " "dossier de l'environnement)." -#: ../Doc/library/venv.rst:132 ../Doc/library/venv.rst:240 +#: ../Doc/library/venv.rst:132 ../Doc/library/venv.rst:243 msgid "Added the ``with_pip`` parameter" msgstr "Ajout du paramètre ``with_pip``" @@ -476,7 +481,7 @@ msgstr "Ajout du paramètre ``with_pip``" msgid "Added the ``prompt`` parameter" msgstr "Ajout du paramètre ``prompt``" -#: ../Doc/library/venv.rst:139 +#: ../Doc/library/venv.rst:138 msgid "" "Creators of third-party virtual environment tools will be free to use the " "provided ``EnvBuilder`` class as a base class." @@ -484,12 +489,12 @@ msgstr "" "Les créateurs des outils de création d'environnement virtuel externes seront " "libres d'utiliser la classe ``EnvBuilder`` en tant que classe de base." -#: ../Doc/library/venv.rst:142 +#: ../Doc/library/venv.rst:141 msgid "The returned env-builder is an object which has a method, ``create``:" msgstr "" "Le **env-builder** retourné est un objet qui a une méthode, ``create`` :" -#: ../Doc/library/venv.rst:146 +#: ../Doc/library/venv.rst:145 msgid "" "This method takes as required argument the path (absolute or relative to the " "current directory) of the target directory which is to contain the virtual " @@ -501,7 +506,7 @@ msgstr "" "l'environnement virtuel. La méthode ``create`` doit soit créer un " "environnement dans le dossier spécifié, soit lever une exception." -#: ../Doc/library/venv.rst:152 +#: ../Doc/library/venv.rst:151 msgid "" "The ``create`` method of the ``EnvBuilder`` class illustrates the hooks " "available for subclass customization::" @@ -509,7 +514,7 @@ msgstr "" "La méthode ``create`` de la classe ``EnvBuilder`` illustre les points " "d'entrées disponibles pour la personnalisation de sous-classes ::" -#: ../Doc/library/venv.rst:167 +#: ../Doc/library/venv.rst:166 msgid "" "Each of the methods :meth:`ensure_directories`, :meth:" "`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :" @@ -519,7 +524,7 @@ msgstr "" "`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` et :meth:" "`post_setup` peuvent être écrasés." -#: ../Doc/library/venv.rst:173 +#: ../Doc/library/venv.rst:172 msgid "" "Creates the environment directory and all necessary directories, and returns " "a context object. This is just a holder for attributes (such as paths), for " @@ -533,16 +538,17 @@ msgstr "" "peuvent déjà exister. tant que ``clear`` ou ``upgrade`` ont été spécifiés " "pour permettre de telles opérations dans un dossier d'environnement existant." -#: ../Doc/library/venv.rst:181 +#: ../Doc/library/venv.rst:180 msgid "Creates the ``pyvenv.cfg`` configuration file in the environment." msgstr "Crée le fichier de configuration ``pyenv.cfg`` dans l'environnement." -#: ../Doc/library/venv.rst:185 +#: ../Doc/library/venv.rst:184 +#, fuzzy msgid "" -"Creates a copy of the Python executable (and, under Windows, DLLs) in the " -"environment. On a POSIX system, if a specific executable ``python3.x`` was " -"used, symlinks to ``python`` and ``python3`` will be created pointing to " -"that executable, unless files with those names already exist." +"Creates a copy of the Python executable in the environment on POSIX systems. " +"If a specific executable ``python3.x`` was used, symlinks to ``python`` and " +"``python3`` will be created pointing to that executable, unless files with " +"those names already exist." msgstr "" "Crée une copie de l’exécutable Python (et, sous Windows, les DLLs) dans " "l'environnement. Sur un système POSIX, si un exécutable ``python3.x`` a été " @@ -550,15 +556,16 @@ msgstr "" "pointant vers cet exécutable, sauf si des fichiers avec ces noms existent " "déjà." -#: ../Doc/library/venv.rst:193 +#: ../Doc/library/venv.rst:191 +#, fuzzy msgid "" "Installs activation scripts appropriate to the platform into the virtual " -"environment." +"environment. On Windows, also installs the ``python[w].exe`` scripts." msgstr "" "Installe des scripts d'activation appropriés pour la plateforme dans " "l'environnement virtuel." -#: ../Doc/library/venv.rst:198 +#: ../Doc/library/venv.rst:196 msgid "" "A placeholder method which can be overridden in third party implementations " "to pre-install packages in the virtual environment or perform other post-" @@ -568,7 +575,14 @@ msgstr "" "implémentation externes pour pré installer des paquets dans l'environnement " "virtuel ou pour exécuter des étapes post-création." -#: ../Doc/library/venv.rst:202 +#: ../Doc/library/venv.rst:200 +msgid "" +"Windows now uses redirector scripts for ``python[w].exe`` instead of copying " +"the actual binaries, and so :meth:`setup_python` does nothing unless running " +"from a build in the source tree." +msgstr "" + +#: ../Doc/library/venv.rst:205 msgid "" "In addition, :class:`EnvBuilder` provides this utility method that can be " "called from :meth:`setup_scripts` or :meth:`post_setup` in subclasses to " @@ -579,7 +593,7 @@ msgstr "" "pour assister dans l'installation de scripts customs dans l'environnement " "virtuel." -#: ../Doc/library/venv.rst:208 +#: ../Doc/library/venv.rst:211 msgid "" "*path* is the path to a directory that should contain subdirectories \"common" "\", \"posix\", \"nt\", each containing scripts destined for the bin " @@ -593,7 +607,7 @@ msgstr "" "dossier \"**common**\" et le dossier correspondant à :data:`os.name` sont " "copiés après quelque remplacement de texte temporaires :" -#: ../Doc/library/venv.rst:214 +#: ../Doc/library/venv.rst:217 msgid "" "``__VENV_DIR__`` is replaced with the absolute path of the environment " "directory." @@ -601,7 +615,7 @@ msgstr "" "``__VENV_DIR__`` est remplacé avec le chemin absolu du dossier de " "l'environnement." -#: ../Doc/library/venv.rst:217 +#: ../Doc/library/venv.rst:220 msgid "" "``__VENV_NAME__`` is replaced with the environment name (final path segment " "of environment directory)." @@ -609,7 +623,7 @@ msgstr "" "``__VENV_NAME__`` est remplacé avec le nom de l'environnement (le dernier " "segment du chemin vers le dossier de l'environnement)." -#: ../Doc/library/venv.rst:220 +#: ../Doc/library/venv.rst:223 msgid "" "``__VENV_PROMPT__`` is replaced with the prompt (the environment name " "surrounded by parentheses and with a following space)" @@ -617,7 +631,7 @@ msgstr "" "``__VENV_PROMPT__`` est remplacé par le prompt (nom de l'environnement " "entouré de parenthèses et avec un espace le suivant)." -#: ../Doc/library/venv.rst:223 +#: ../Doc/library/venv.rst:226 msgid "" "``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either " "``bin`` or ``Scripts``)." @@ -625,7 +639,7 @@ msgstr "" "``__VENV_BIN_NAME__`` est remplacé par le nom du dossier **bin** (soit " "``bin`` soit ``Scripts``)." -#: ../Doc/library/venv.rst:226 +#: ../Doc/library/venv.rst:229 msgid "" "``__VENV_PYTHON__`` is replaced with the absolute path of the environment's " "executable." @@ -633,7 +647,7 @@ msgstr "" "``__VENV_PYTHON__`` est remplacé avec le chemin absolu de l’exécutable de " "l'environnement." -#: ../Doc/library/venv.rst:229 +#: ../Doc/library/venv.rst:232 msgid "" "The directories are allowed to exist (for when an existing environment is " "being upgraded)." @@ -641,11 +655,11 @@ msgstr "" "Les dossiers peuvent exister (pour quand un environnement existant est mis à " "jour)." -#: ../Doc/library/venv.rst:232 +#: ../Doc/library/venv.rst:235 msgid "There is also a module-level convenience function:" msgstr "Il y a aussi une fonction pratique au niveau du module :" -#: ../Doc/library/venv.rst:237 +#: ../Doc/library/venv.rst:240 msgid "" "Create an :class:`EnvBuilder` with the given keyword arguments, and call " "its :meth:`~EnvBuilder.create` method with the *env_dir* argument." @@ -653,11 +667,11 @@ msgstr "" "Crée une :class:`EnvBuilder` avec les arguments donnés, et appelle sa " "méthode :meth:`~EnvBuilder.create` avec l'argument *env_dir*." -#: ../Doc/library/venv.rst:244 +#: ../Doc/library/venv.rst:247 msgid "An example of extending ``EnvBuilder``" msgstr "Un exemple d'extension de ``EnvBuilder``" -#: ../Doc/library/venv.rst:246 +#: ../Doc/library/venv.rst:249 msgid "" "The following script shows how to extend :class:`EnvBuilder` by implementing " "a subclass which installs setuptools and pip into a created virtual " @@ -667,7 +681,7 @@ msgstr "" "implémentant une sous-classe qui installe **setuptools** et **pip** dans un " "environnement créé ::" -#: ../Doc/library/venv.rst:465 +#: ../Doc/library/venv.rst:468 msgid "" "This script is also available for download `online `_." diff --git a/library/wave.po b/library/wave.po index 9fd6d4ee..c8e032a8 100644 --- a/library/wave.po +++ b/library/wave.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2017-08-10 00:54+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -78,7 +78,7 @@ msgstr "" #: ../Doc/library/wave.rst:42 msgid "" "The :func:`.open` function may be used in a :keyword:`with` statement. When " -"the :keyword:`with` block completes, the :meth:`Wave_read.close() ` or :meth:`Wave_write.close() ` " "method is called." msgstr "" diff --git a/library/xml.dom.minidom.po b/library/xml.dom.minidom.po index 00c70f2e..04ee4f7c 100644 --- a/library/xml.dom.minidom.po +++ b/library/xml.dom.minidom.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-09-29 19:35+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -154,7 +154,7 @@ msgstr "" msgid "" "You can avoid calling this method explicitly by using the :keyword:`with` " "statement. The following code will automatically unlink *dom* when the :" -"keyword:`with` block is exited::" +"keyword:`!with` block is exited::" msgstr "" #: ../Doc/library/xml.dom.minidom.rst:137 diff --git a/library/xml.sax.utils.po b/library/xml.sax.utils.po index 5d26a99f..f6b51691 100644 --- a/library/xml.sax.utils.po +++ b/library/xml.sax.utils.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2018-10-18 10:21+0200\n" "PO-Revision-Date: 2018-11-30 14:07+0100\n" +"Last-Translator: Jules Lasne \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: Jules Lasne \n" "X-Generator: Poedit 2.2\n" #: ../Doc/library/xml.sax.utils.rst:2 diff --git a/library/zipfile.po b/library/zipfile.po index b70b04cc..573fef27 100644 --- a/library/zipfile.po +++ b/library/zipfile.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 23:36+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -283,9 +283,10 @@ msgstr "" "appropriée pour un fichier archive ZIP vide sera écrite dans le fichier." #: ../Doc/library/zipfile.rst:176 +#, fuzzy msgid "" "ZipFile is also a context manager and therefore supports the :keyword:`with` " -"statement. In the example, *myzip* is closed after the :keyword:`with` " +"statement. In the example, *myzip* is closed after the :keyword:`!with` " "statement's suite is finished---even if an exception occurs::" msgstr "" "*ZipFile* est aussi un gestionnaire de contexte et gère ainsi la " @@ -303,7 +304,7 @@ msgid "Added support for :mod:`bzip2 ` and :mod:`lzma` compression." msgstr "" "Ajout de la gestion de la compression :mod:`bzip2 ` et :mod:`lzma`." -#: ../Doc/library/zipfile.rst:189 ../Doc/library/zipfile.rst:469 +#: ../Doc/library/zipfile.rst:189 ../Doc/library/zipfile.rst:464 msgid "ZIP64 extensions are enabled by default." msgstr "Les extensions ZIP64 sont activées par défaut." @@ -623,26 +624,13 @@ msgstr "" #: ../Doc/library/zipfile.rst:383 msgid "" -"There is no official file name encoding for ZIP files. If you have unicode " -"file names, you must convert them to byte strings in your desired encoding " -"before passing them to :meth:`write`. WinZip interprets all file names as " -"encoded in CP437, also known as DOS Latin." -msgstr "" -"Il n'y a pas d'encodage de nom de fichier officiel pour les fichiers ZIP. Si " -"vous avez des noms de fichier *unicode*, vous devez les convertir en chaînes " -"d'octets dans l'encodage désiré avant de les passer à :meth:`write`. " -"*WinZip* interprète tous les noms de fichier comme encodés en CP437, aussi " -"connu sous le nom de DOS Latin." - -#: ../Doc/library/zipfile.rst:390 -msgid "" "Archive names should be relative to the archive root, that is, they should " "not start with a path separator." msgstr "" "Les noms d'archive doivent être relatifs à la racine de l'archive, c'est-à-" "dire qu'ils ne doivent pas commencer par un séparateur de chemin." -#: ../Doc/library/zipfile.rst:395 +#: ../Doc/library/zipfile.rst:388 msgid "" "If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a " "null byte, the name of the file in the archive will be truncated at the null " @@ -651,7 +639,7 @@ msgstr "" "Si ``arcname`` (ou ``filename`` si ``arcname`` n'est pas donné) contient un " "octet nul, le nom du fichier dans l'archive sera tronqué à l'octet nul." -#: ../Doc/library/zipfile.rst:398 +#: ../Doc/library/zipfile.rst:391 msgid "" "Calling :meth:`write` on a ZipFile created with mode ``'r'`` or a closed " "ZipFile will raise a :exc:`ValueError`. Previously, a :exc:`RuntimeError` " @@ -660,24 +648,27 @@ msgstr "" "Appeler :meth:`.write` sur un fichier ZipFile fermé lève une erreur :exc:" "`ValueError`. Précédemment, une erreur :exc:`RuntimeError` était levée." -#: ../Doc/library/zipfile.rst:407 +#: ../Doc/library/zipfile.rst:400 +#, fuzzy msgid "" -"Write the string *data* to the archive; *zinfo_or_arcname* is either the " -"file name it will be given in the archive, or a :class:`ZipInfo` instance. " -"If it's an instance, at least the filename, date, and time must be given. " -"If it's a name, the date and time is set to the current date and time. The " -"archive must be opened with mode ``'w'``, ``'x'`` or ``'a'``." +"Write a file into the archive. The contents is *data*, which may be either " +"a :class:`str` or a :class:`bytes` instance; if it is a :class:`str`, it is " +"encoded as UTF-8 first. *zinfo_or_arcname* is either the file name it will " +"be given in the archive, or a :class:`ZipInfo` instance. If it's an " +"instance, at least the filename, date, and time must be given. If it's a " +"name, the date and time is set to the current date and time. The archive " +"must be opened with mode ``'w'``, ``'x'`` or ``'a'``." msgstr "" "Écrit un fichier dans l'archive. Le contenu est *data*, qui peut être soit " "une instance de :class:`str` ou une instance de :class:`bytes` ; s'il s'agit " "d'une :class:`str`, il est encodé en UTF-8 au préalable. *zinfo_or_arcname* " "est soit le nom de fichier qu'il sera donné dans l'archive, soit une " -"instance de :class:`ZipInfo`. Si c'est une instance, au moins le " -"nom de fichier, la date et l'heure doivent être donnés. S'il s'agit d'un " -"nom, la date et l'heure sont définies sur la date et l'heure actuelles. " -"L'archive doit être ouverte avec le mode ``'w'``, ``'x'`` ou ``'a'``." +"instance de :class:`ZipInfo`. Si c'est une instance, au moins le nom de " +"fichier, la date et l'heure doivent être donnés. S'il s'agit d'un nom, la " +"date et l'heure sont définies sur la date et l'heure actuelles. L'archive " +"doit être ouverte avec le mode ``'w'``, ``'x'`` ou ``'a'``." -#: ../Doc/library/zipfile.rst:413 +#: ../Doc/library/zipfile.rst:408 msgid "" "If given, *compress_type* overrides the value given for the *compression* " "parameter to the constructor for the new entry, or in the *zinfo_or_arcname* " @@ -689,7 +680,7 @@ msgstr "" "*zinfo_or_arcname* (si c'est une instance de :class:`ZipInfo`). De la même " "manière, *compresslevel* le constructeur si donné." -#: ../Doc/library/zipfile.rst:420 +#: ../Doc/library/zipfile.rst:415 msgid "" "When passing a :class:`ZipInfo` instance as the *zinfo_or_arcname* " "parameter, the compression method used will be that specified in the " @@ -702,11 +693,11 @@ msgstr "" "défaut, le constructeur de la classe :class:`ZipInfo` définit ce membre à :" "const:`ZIP_STORED`." -#: ../Doc/library/zipfile.rst:425 +#: ../Doc/library/zipfile.rst:420 msgid "The *compress_type* argument." msgstr "L'argument *compress_type*." -#: ../Doc/library/zipfile.rst:428 +#: ../Doc/library/zipfile.rst:423 msgid "" "Calling :meth:`writestr` on a ZipFile created with mode ``'r'`` or a closed " "ZipFile will raise a :exc:`ValueError`. Previously, a :exc:`RuntimeError` " @@ -715,15 +706,15 @@ msgstr "" "Appeler :meth:`.writestr` sur un fichier ZipFile fermé lève une erreur :exc:" "`ValueError`. Précédemment, une erreur :exc:`RuntimeError` était levée." -#: ../Doc/library/zipfile.rst:434 +#: ../Doc/library/zipfile.rst:429 msgid "The following data attributes are also available:" msgstr "Les attributs suivants sont aussi disponibles :" -#: ../Doc/library/zipfile.rst:438 +#: ../Doc/library/zipfile.rst:433 msgid "Name of the ZIP file." msgstr "Nom du fichier ZIP." -#: ../Doc/library/zipfile.rst:442 +#: ../Doc/library/zipfile.rst:437 msgid "" "The level of debug output to use. This may be set from ``0`` (the default, " "no output) to ``3`` (the most output). Debugging information is written to " @@ -733,23 +724,24 @@ msgstr "" "défaut, pas d'affichage) à ``3`` (affichage le plus bavard). Les " "informations de débogage sont affichées sur ``sys.stdout``." -#: ../Doc/library/zipfile.rst:448 +#: ../Doc/library/zipfile.rst:443 +#, fuzzy msgid "" -"The comment text associated with the ZIP file. If assigning a comment to a :" -"class:`ZipFile` instance created with mode ``'w'``, ``'x'`` or ``'a'``, this " -"should be a string no longer than 65535 bytes. Comments longer than this " -"will be truncated in the written archive when :meth:`close` is called." +"The comment associated with the ZIP file as a :class:`bytes` object. If " +"assigning a comment to a :class:`ZipFile` instance created with mode " +"``'w'``, ``'x'`` or ``'a'``, it should be no longer than 65535 bytes. " +"Comments longer than this will be truncated." msgstr "" "Le commentaire associé au fichier ZIP en tant qu'objet :class:`bytes`. Si " "vous affectez un commentaire à une instance de :class:`ZipFile` créée avec " "le mode ``'w'``, ``'x'`` ou ``'a'``, elle ne doit pas dépasser 65535 octets. " "Les commentaires plus longs que cette taille seront tronqués." -#: ../Doc/library/zipfile.rst:458 +#: ../Doc/library/zipfile.rst:453 msgid "PyZipFile Objects" msgstr "Objets *PyZipFile*" -#: ../Doc/library/zipfile.rst:460 +#: ../Doc/library/zipfile.rst:455 msgid "" "The :class:`PyZipFile` constructor takes the same parameters as the :class:" "`ZipFile` constructor, and one additional parameter, *optimize*." @@ -757,18 +749,18 @@ msgstr "" "Le constructeur de :class:`PyZipFile` prend les mêmes paramètres que le " "constructeur de :class:`ZipFile` avec un paramètre additionnel *optimize*." -#: ../Doc/library/zipfile.rst:466 +#: ../Doc/library/zipfile.rst:461 msgid "The *optimize* parameter." msgstr "Le paramètre *optimize*." -#: ../Doc/library/zipfile.rst:472 +#: ../Doc/library/zipfile.rst:467 msgid "" "Instances have one method in addition to those of :class:`ZipFile` objects:" msgstr "" "Les instances ont une méthode supplémentaire par rapport aux objets :class:" "`ZipFile` :" -#: ../Doc/library/zipfile.rst:476 +#: ../Doc/library/zipfile.rst:471 msgid "" "Search for files :file:`\\*.py` and add the corresponding file to the " "archive." @@ -776,7 +768,7 @@ msgstr "" "Cherche les fichiers :file:`\\*.py` et ajoute le fichier correspondant à " "l'archive." -#: ../Doc/library/zipfile.rst:479 +#: ../Doc/library/zipfile.rst:474 msgid "" "If the *optimize* parameter to :class:`PyZipFile` was not given or ``-1``, " "the corresponding file is a :file:`\\*.pyc` file, compiling if necessary." @@ -785,7 +777,7 @@ msgstr "" "donné ou est à ``-1``, le fichier correspondant est un fichier :file:`\\*." "pyc`, à compiler si nécessaire." -#: ../Doc/library/zipfile.rst:482 +#: ../Doc/library/zipfile.rst:477 msgid "" "If the *optimize* parameter to :class:`PyZipFile` was ``0``, ``1`` or ``2``, " "only files with that optimization level (see :func:`compile`) are added to " @@ -795,7 +787,7 @@ msgstr "" "``0``, ``1`` ou ``2``, ne sont ajoutés dans l'archive que les fichiers avec " "ce niveau d'optimisation (voir :func:`compile`), à compiler si nécessaire." -#: ../Doc/library/zipfile.rst:486 +#: ../Doc/library/zipfile.rst:481 msgid "" "If *pathname* is a file, the filename must end with :file:`.py`, and just " "the (corresponding :file:`\\*.pyc`) file is added at the top level (no path " @@ -818,11 +810,11 @@ msgstr "" "s'il y a des sous-répertoires qui sont des répertoires de paquet, ils sont " "tous ajoutés récursivement dans un ordre trié." -#: ../Doc/library/zipfile.rst:496 +#: ../Doc/library/zipfile.rst:491 msgid "*basename* is intended for internal use only." msgstr "*basename* n'est sensé être utilisé qu'en interne." -#: ../Doc/library/zipfile.rst:498 +#: ../Doc/library/zipfile.rst:493 msgid "" "*filterfunc*, if given, must be a function taking a single string argument. " "It will be passed each path (including each individual full file path) " @@ -841,31 +833,31 @@ msgstr "" "``test_``, nous pouvons utiliser une fonction *filterfunc* pour les " "exclure : ::" -#: ../Doc/library/zipfile.rst:512 +#: ../Doc/library/zipfile.rst:507 msgid "The :meth:`writepy` method makes archives with file names like this::" msgstr "" "La méthode :meth:`writepy` crée des archives avec des noms de fichier comme " "suit : ::" -#: ../Doc/library/zipfile.rst:521 +#: ../Doc/library/zipfile.rst:516 msgid "The *filterfunc* parameter." msgstr "Le paramètre *filterfunc*." -#: ../Doc/library/zipfile.rst:524 +#: ../Doc/library/zipfile.rst:519 msgid "The *pathname* parameter accepts a :term:`path-like object`." msgstr "" "Le paramètre *pathname* accepte un objet chemin-compatible :term:`path-like " "object`." -#: ../Doc/library/zipfile.rst:527 +#: ../Doc/library/zipfile.rst:522 msgid "Recursion sorts directory entries." msgstr "La récursion trie les entrées de dossier." -#: ../Doc/library/zipfile.rst:534 +#: ../Doc/library/zipfile.rst:529 msgid "ZipInfo Objects" msgstr "Objets *ZipInfo*" -#: ../Doc/library/zipfile.rst:536 +#: ../Doc/library/zipfile.rst:531 msgid "" "Instances of the :class:`ZipInfo` class are returned by the :meth:`.getinfo` " "and :meth:`.infolist` methods of :class:`ZipFile` objects. Each object " @@ -875,7 +867,7 @@ msgstr "" "méthodes :meth:`.getinfo` et :meth:`.infolist` des objets :class:`ZipFile`. " "Chaque objet stocke des informations sur un seul membre de l'archive ZIP." -#: ../Doc/library/zipfile.rst:540 +#: ../Doc/library/zipfile.rst:535 msgid "" "There is one classmethod to make a :class:`ZipInfo` instance for a " "filesystem file:" @@ -883,7 +875,7 @@ msgstr "" "Il y a une méthode de classe pour créer une instance de :class:`ZipInfo` " "pour un fichier du système de fichiers :" -#: ../Doc/library/zipfile.rst:545 +#: ../Doc/library/zipfile.rst:540 msgid "" "Construct a :class:`ZipInfo` instance for a file on the filesystem, in " "preparation for adding it to a zip file." @@ -891,13 +883,13 @@ msgstr "" "Construit une instance de :class:`ZipInfo` pour le fichier du système de " "fichiers, en préparation de l'ajouter à un fichier ZIP." -#: ../Doc/library/zipfile.rst:548 +#: ../Doc/library/zipfile.rst:543 msgid "*filename* should be the path to a file or directory on the filesystem." msgstr "" "*filename* doit être un chemin vers un fichier ou un répertoire dans le " "système de fichiers." -#: ../Doc/library/zipfile.rst:550 +#: ../Doc/library/zipfile.rst:545 msgid "" "If *arcname* is specified, it is used as the name within the archive. If " "*arcname* is not specified, the name will be the same as *filename*, but " @@ -907,31 +899,31 @@ msgstr "" "*arcname* n'est pas spécifié, le nom sera le même que *filename* mais sans " "lettre de disque et sans séparateur de chemin en première position." -#: ../Doc/library/zipfile.rst:556 +#: ../Doc/library/zipfile.rst:551 msgid "The *filename* parameter accepts a :term:`path-like object`." msgstr "" "Le paramètre *filename* accepte un objet chemin-compatible :term:`path-like " "object`." -#: ../Doc/library/zipfile.rst:560 +#: ../Doc/library/zipfile.rst:555 msgid "Instances have the following methods and attributes:" msgstr "Les instances ont les méthodes et attributs suivants :" -#: ../Doc/library/zipfile.rst:564 +#: ../Doc/library/zipfile.rst:559 msgid "Return ``True`` if this archive member is a directory." msgstr "Retourne ``True`` si le membre d'archive est un répertoire." -#: ../Doc/library/zipfile.rst:566 +#: ../Doc/library/zipfile.rst:561 msgid "This uses the entry's name: directories should always end with ``/``." msgstr "" "Utilise le nom de l'entrée : les répertoires doivent toujours se terminer " "par ``/``." -#: ../Doc/library/zipfile.rst:573 +#: ../Doc/library/zipfile.rst:568 msgid "Name of the file in the archive." msgstr "Nom du fichier dans l'archive." -#: ../Doc/library/zipfile.rst:578 +#: ../Doc/library/zipfile.rst:573 msgid "" "The time and date of the last modification to the archive member. This is a " "tuple of six values:" @@ -939,138 +931,140 @@ msgstr "" "Date et heure de dernière modification pour le membre de l'archive. *Tuple* " "de six valeurs :" -#: ../Doc/library/zipfile.rst:582 +#: ../Doc/library/zipfile.rst:577 msgid "Index" msgstr "Index" -#: ../Doc/library/zipfile.rst:582 +#: ../Doc/library/zipfile.rst:577 msgid "Value" msgstr "Valeur" -#: ../Doc/library/zipfile.rst:584 +#: ../Doc/library/zipfile.rst:579 msgid "``0``" msgstr "``0``" -#: ../Doc/library/zipfile.rst:584 +#: ../Doc/library/zipfile.rst:579 msgid "Year (>= 1980)" msgstr "Année (>= 1980)" -#: ../Doc/library/zipfile.rst:586 +#: ../Doc/library/zipfile.rst:581 msgid "``1``" msgstr "``1``" -#: ../Doc/library/zipfile.rst:586 +#: ../Doc/library/zipfile.rst:581 msgid "Month (one-based)" msgstr "Mois (indexé à partir de 1)" -#: ../Doc/library/zipfile.rst:588 +#: ../Doc/library/zipfile.rst:583 msgid "``2``" msgstr "``2``" -#: ../Doc/library/zipfile.rst:588 +#: ../Doc/library/zipfile.rst:583 msgid "Day of month (one-based)" msgstr "Jour du mois (indexé à partir de 1)" -#: ../Doc/library/zipfile.rst:590 +#: ../Doc/library/zipfile.rst:585 msgid "``3``" msgstr "``3``" -#: ../Doc/library/zipfile.rst:590 +#: ../Doc/library/zipfile.rst:585 msgid "Hours (zero-based)" msgstr "Heures (indexées à partir de 0)" -#: ../Doc/library/zipfile.rst:592 +#: ../Doc/library/zipfile.rst:587 msgid "``4``" msgstr "``4``" -#: ../Doc/library/zipfile.rst:592 +#: ../Doc/library/zipfile.rst:587 msgid "Minutes (zero-based)" msgstr "Minutes (indexées à partir de 0)" -#: ../Doc/library/zipfile.rst:594 +#: ../Doc/library/zipfile.rst:589 msgid "``5``" msgstr "``5``" -#: ../Doc/library/zipfile.rst:594 +#: ../Doc/library/zipfile.rst:589 msgid "Seconds (zero-based)" msgstr "Secondes (indexées à partir de 0)" -#: ../Doc/library/zipfile.rst:599 +#: ../Doc/library/zipfile.rst:594 msgid "The ZIP file format does not support timestamps before 1980." msgstr "Le format de fichier ZIP ne gère pas les horodatages avant 1980." -#: ../Doc/library/zipfile.rst:604 +#: ../Doc/library/zipfile.rst:599 msgid "Type of compression for the archive member." msgstr "Type de compression du membre d'archive." -#: ../Doc/library/zipfile.rst:609 +#: ../Doc/library/zipfile.rst:604 msgid "Comment for the individual archive member as a :class:`bytes` object." msgstr "" "Commentaire pour le membre d'archive individuel en tant qu'objet :class:" "`bytes`." -#: ../Doc/library/zipfile.rst:614 +#: ../Doc/library/zipfile.rst:609 +#, fuzzy msgid "" "Expansion field data. The `PKZIP Application Note`_ contains some comments " -"on the internal structure of the data contained in this string." +"on the internal structure of the data contained in this :class:`bytes` " +"object." msgstr "" "Données du champ d'extension. La documentation `PKZIP Application Note`_ " "contient quelques commentaires sur la structure interne des données " "contenues dans cet objet :class:`bytes`." -#: ../Doc/library/zipfile.rst:620 +#: ../Doc/library/zipfile.rst:616 msgid "System which created ZIP archive." msgstr "Système ayant créé l'archive ZIP." -#: ../Doc/library/zipfile.rst:625 +#: ../Doc/library/zipfile.rst:621 msgid "PKZIP version which created ZIP archive." msgstr "Version de PKZIP ayant créé l'archive ZIP." -#: ../Doc/library/zipfile.rst:630 +#: ../Doc/library/zipfile.rst:626 msgid "PKZIP version needed to extract archive." msgstr "Version de PKZIP nécessaire à l'extraction de l'archive ZIP." -#: ../Doc/library/zipfile.rst:635 +#: ../Doc/library/zipfile.rst:631 msgid "Must be zero." msgstr "Doit être à zéro." -#: ../Doc/library/zipfile.rst:640 +#: ../Doc/library/zipfile.rst:636 msgid "ZIP flag bits." msgstr "Bits d'options ZIP." -#: ../Doc/library/zipfile.rst:645 +#: ../Doc/library/zipfile.rst:641 msgid "Volume number of file header." msgstr "Numéro de volume de l'entête du fichier." -#: ../Doc/library/zipfile.rst:650 +#: ../Doc/library/zipfile.rst:646 msgid "Internal attributes." msgstr "Attributs internes." -#: ../Doc/library/zipfile.rst:655 +#: ../Doc/library/zipfile.rst:651 msgid "External file attributes." msgstr "Attributs de fichier externes." -#: ../Doc/library/zipfile.rst:660 +#: ../Doc/library/zipfile.rst:656 msgid "Byte offset to the file header." msgstr "Longueur de l'entête du fichier en octets." -#: ../Doc/library/zipfile.rst:665 +#: ../Doc/library/zipfile.rst:661 msgid "CRC-32 of the uncompressed file." msgstr "CRC-32 du fichier décompressé." -#: ../Doc/library/zipfile.rst:670 +#: ../Doc/library/zipfile.rst:666 msgid "Size of the compressed data." msgstr "Taille des données décompressées." -#: ../Doc/library/zipfile.rst:675 +#: ../Doc/library/zipfile.rst:671 msgid "Size of the uncompressed file." msgstr "Taille du fichier décompressé." -#: ../Doc/library/zipfile.rst:682 +#: ../Doc/library/zipfile.rst:678 msgid "Command-Line Interface" msgstr "Interface en ligne de commande" -#: ../Doc/library/zipfile.rst:684 +#: ../Doc/library/zipfile.rst:680 msgid "" "The :mod:`zipfile` module provides a simple command-line interface to " "interact with ZIP archives." @@ -1078,7 +1072,7 @@ msgstr "" "Le module :mod:`zipfile` fournit une interface en ligne de commande simple " "pour interagir avec des archives ZIP." -#: ../Doc/library/zipfile.rst:687 +#: ../Doc/library/zipfile.rst:683 msgid "" "If you want to create a new ZIP archive, specify its name after the :option:" "`-c` option and then list the filename(s) that should be included:" @@ -1086,11 +1080,11 @@ msgstr "" "Si vous voulez créer une nouvelle archive ZIP, spécifiez son nom après " "l'option :option:`-c` et listez ensuite le(s) nom(s) de fichier à inclure :" -#: ../Doc/library/zipfile.rst:694 +#: ../Doc/library/zipfile.rst:690 msgid "Passing a directory is also acceptable:" msgstr "Passer un répertoire est aussi possible :" -#: ../Doc/library/zipfile.rst:700 +#: ../Doc/library/zipfile.rst:696 msgid "" "If you want to extract a ZIP archive into the specified directory, use the :" "option:`-e` option:" @@ -1098,29 +1092,41 @@ msgstr "" "Si vous voulez extraire une archive ZIP dans un répertoire donné, utilisez " "l'option :option:`-e` :" -#: ../Doc/library/zipfile.rst:707 +#: ../Doc/library/zipfile.rst:703 msgid "For a list of the files in a ZIP archive, use the :option:`-l` option:" msgstr "" "Pour une liste des fichiers dans une archive ZIP, utilisez l'option :option:" "`-l` :" -#: ../Doc/library/zipfile.rst:715 +#: ../Doc/library/zipfile.rst:711 msgid "Command-line options" msgstr "Options de la ligne de commande" -#: ../Doc/library/zipfile.rst:720 +#: ../Doc/library/zipfile.rst:716 msgid "List files in a zipfile." msgstr "Liste les fichiers dans un fichier ZIP *zipfile*." -#: ../Doc/library/zipfile.rst:725 +#: ../Doc/library/zipfile.rst:721 msgid "Create zipfile from source files." msgstr "Crée un fichier ZIP *zipfile* à partir des fichiers *source*." -#: ../Doc/library/zipfile.rst:730 +#: ../Doc/library/zipfile.rst:726 msgid "Extract zipfile into target directory." msgstr "" "Extrait le fichier ZIP *zipfile* vers le répertoire cible *output_dir*." -#: ../Doc/library/zipfile.rst:735 +#: ../Doc/library/zipfile.rst:731 msgid "Test whether the zipfile is valid or not." msgstr "Teste si le fichier zip est valide." + +#~ msgid "" +#~ "There is no official file name encoding for ZIP files. If you have " +#~ "unicode file names, you must convert them to byte strings in your desired " +#~ "encoding before passing them to :meth:`write`. WinZip interprets all file " +#~ "names as encoded in CP437, also known as DOS Latin." +#~ msgstr "" +#~ "Il n'y a pas d'encodage de nom de fichier officiel pour les fichiers ZIP. " +#~ "Si vous avez des noms de fichier *unicode*, vous devez les convertir en " +#~ "chaînes d'octets dans l'encodage désiré avant de les passer à :meth:" +#~ "`write`. *WinZip* interprète tous les noms de fichier comme encodés en " +#~ "CP437, aussi connu sous le nom de DOS Latin." diff --git a/reference/compound_stmts.po b/reference/compound_stmts.po index db7a213f..348d4c31 100644 --- a/reference/compound_stmts.po +++ b/reference/compound_stmts.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 23:27+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -116,7 +116,8 @@ msgstr "" "chaque clause sur une ligne séparée pour plus de clarté." #: ../Doc/reference/compound_stmts.rst:82 -msgid "The :keyword:`if` statement" +#, fuzzy +msgid "The :keyword:`!if` statement" msgstr "L'instruction :keyword:`if`" #: ../Doc/reference/compound_stmts.rst:90 @@ -142,10 +143,11 @@ msgstr "" "si elle existe, est exécutée." #: ../Doc/reference/compound_stmts.rst:107 -msgid "The :keyword:`while` statement" +#, fuzzy +msgid "The :keyword:`!while` statement" msgstr "L'instruction :keyword:`while`" -#: ../Doc/reference/compound_stmts.rst:116 +#: ../Doc/reference/compound_stmts.rst:115 msgid "" "The :keyword:`while` statement is used for repeated execution as long as an " "expression is true:" @@ -153,11 +155,12 @@ msgstr "" "L'instruction :keyword:`while` est utilisée pour exécuter des instructions " "de manière répétée tant qu'une expression est vraie :" -#: ../Doc/reference/compound_stmts.rst:123 +#: ../Doc/reference/compound_stmts.rst:122 +#, fuzzy msgid "" "This repeatedly tests the expression and, if it is true, executes the first " "suite; if the expression is false (which may be the first time it is tested) " -"the suite of the :keyword:`else` clause, if present, is executed and the " +"the suite of the :keyword:`!else` clause, if present, is executed and the " "loop terminates." msgstr "" "Python évalue l'expression de manière répétée et, tant qu'elle est vraie, " @@ -165,23 +168,25 @@ msgstr "" "même lors du premier test), la suite de la clause :keyword:`else`, si elle " "existe, est exécutée et la boucle se termine." -#: ../Doc/reference/compound_stmts.rst:132 +#: ../Doc/reference/compound_stmts.rst:131 +#, fuzzy msgid "" "A :keyword:`break` statement executed in the first suite terminates the loop " -"without executing the :keyword:`else` clause's suite. A :keyword:`continue` " -"statement executed in the first suite skips the rest of the suite and goes " -"back to testing the expression." +"without executing the :keyword:`!else` clause's suite. A :keyword:" +"`continue` statement executed in the first suite skips the rest of the suite " +"and goes back to testing the expression." msgstr "" "Une instruction :keyword:`break` exécutée dans la première suite termine la " "boucle sans exécuter la suite de la clause :keyword:`else`. Une instruction :" "keyword:`continue` exécutée dans la première suite saute le reste de la " "suite et retourne au test de l'expression." -#: ../Doc/reference/compound_stmts.rst:141 -msgid "The :keyword:`for` statement" +#: ../Doc/reference/compound_stmts.rst:140 +#, fuzzy +msgid "The :keyword:`!for` statement" msgstr "L'instruction :keyword:`for`" -#: ../Doc/reference/compound_stmts.rst:155 +#: ../Doc/reference/compound_stmts.rst:151 msgid "" "The :keyword:`for` statement is used to iterate over the elements of a " "sequence (such as a string, tuple or list) or other iterable object:" @@ -190,7 +195,8 @@ msgstr "" "séquence (par exemple une chaîne, un tuple ou une liste) ou un autre objet " "itérable :" -#: ../Doc/reference/compound_stmts.rst:162 +#: ../Doc/reference/compound_stmts.rst:158 +#, fuzzy msgid "" "The expression list is evaluated once; it should yield an iterable object. " "An iterator is created for the result of the ``expression_list``. The suite " @@ -199,7 +205,7 @@ msgid "" "using the standard rules for assignments (see :ref:`assignment`), and then " "the suite is executed. When the items are exhausted (which is immediately " "when the sequence is empty or an iterator raises a :exc:`StopIteration` " -"exception), the suite in the :keyword:`else` clause, if present, is " +"exception), the suite in the :keyword:`!else` clause, if present, is " "executed, and the loop terminates." msgstr "" "La liste des expressions (*expression_list* dans la grammaire ci-dessus) est " @@ -214,13 +220,14 @@ msgstr "" "`StopIteration`), la suite de la clause :keyword:`else`, si elle existe, est " "exécutée et la boucle se termine." -#: ../Doc/reference/compound_stmts.rst:175 +#: ../Doc/reference/compound_stmts.rst:171 +#, fuzzy msgid "" "A :keyword:`break` statement executed in the first suite terminates the loop " -"without executing the :keyword:`else` clause's suite. A :keyword:`continue` " -"statement executed in the first suite skips the rest of the suite and " -"continues with the next item, or with the :keyword:`else` clause if there is " -"no next item." +"without executing the :keyword:`!else` clause's suite. A :keyword:" +"`continue` statement executed in the first suite skips the rest of the suite " +"and continues with the next item, or with the :keyword:`!else` clause if " +"there is no next item." msgstr "" "Une instruction :keyword:`break` exécutée dans la première suite termine la " "boucle sans exécuter la suite de la clause :keyword:`else`. Une instruction :" @@ -228,7 +235,7 @@ msgstr "" "suite et continue avec l'élément suivant, ou avec la clause :keyword:`else` " "s'il n'y a pas d'élément suivant." -#: ../Doc/reference/compound_stmts.rst:181 +#: ../Doc/reference/compound_stmts.rst:177 msgid "" "The for-loop makes assignments to the variables(s) in the target list. This " "overwrites all previous assignments to those variables including those made " @@ -238,7 +245,7 @@ msgstr "" "ce qui écrase toutes les affectations antérieures de ces variables, y " "compris celles effectuées dans la suite de la boucle ``for`` ::" -#: ../Doc/reference/compound_stmts.rst:195 +#: ../Doc/reference/compound_stmts.rst:191 msgid "" "Names in the target list are not deleted when the loop is finished, but if " "the sequence is empty, they will not have been assigned to at all by the " @@ -253,7 +260,7 @@ msgstr "" "classique en Pascal sur des entiers ``for i := a to b do`` ; par exemple, " "``list(range(3))`` renvoie la liste ``[0, 1, 2]``." -#: ../Doc/reference/compound_stmts.rst:207 +#: ../Doc/reference/compound_stmts.rst:203 msgid "" "There is a subtlety when the sequence is being modified by the loop (this " "can only occur for mutable sequences, e.g. lists). An internal counter is " @@ -280,11 +287,12 @@ msgstr "" "éviter en effectuant une copie temporaire d'une tranche ou de la séquence " "complète, par exemple ::" -#: ../Doc/reference/compound_stmts.rst:228 -msgid "The :keyword:`try` statement" +#: ../Doc/reference/compound_stmts.rst:224 +#, fuzzy +msgid "The :keyword:`!try` statement" msgstr "L'instruction :keyword:`try`" -#: ../Doc/reference/compound_stmts.rst:238 +#: ../Doc/reference/compound_stmts.rst:234 msgid "" "The :keyword:`try` statement specifies exception handlers and/or cleanup " "code for a group of statements:" @@ -292,19 +300,20 @@ msgstr "" "L'instruction :keyword:`try` spécifie les gestionnaires d'exception ou le " "code de nettoyage pour un groupe d'instructions :" -#: ../Doc/reference/compound_stmts.rst:251 +#: ../Doc/reference/compound_stmts.rst:247 +#, fuzzy msgid "" "The :keyword:`except` clause(s) specify one or more exception handlers. When " "no exception occurs in the :keyword:`try` clause, no exception handler is " -"executed. When an exception occurs in the :keyword:`try` suite, a search for " -"an exception handler is started. This search inspects the except clauses in " -"turn until one is found that matches the exception. An expression-less " -"except clause, if present, must be last; it matches any exception. For an " -"except clause with an expression, that expression is evaluated, and the " -"clause matches the exception if the resulting object is \"compatible\" with " -"the exception. An object is compatible with an exception if it is the class " -"or a base class of the exception object or a tuple containing an item " -"compatible with the exception." +"executed. When an exception occurs in the :keyword:`!try` suite, a search " +"for an exception handler is started. This search inspects the except " +"clauses in turn until one is found that matches the exception. An " +"expression-less except clause, if present, must be last; it matches any " +"exception. For an except clause with an expression, that expression is " +"evaluated, and the clause matches the exception if the resulting object is " +"\"compatible\" with the exception. An object is compatible with an " +"exception if it is the class or a base class of the exception object or a " +"tuple containing an item compatible with the exception." msgstr "" "La ou les clauses :keyword:`except` spécifient un ou plusieurs gestionnaires " "d'exceptions. Si aucune exception ne se produit dans la clause :keyword:" @@ -320,7 +329,7 @@ msgstr "" "l'objet exception ou si c'est un tuple contenant un élément qui est " "compatible avec l'exception." -#: ../Doc/reference/compound_stmts.rst:262 +#: ../Doc/reference/compound_stmts.rst:258 msgid "" "If no except clause matches the exception, the search for an exception " "handler continues in the surrounding code and on the invocation stack. [#]_" @@ -329,7 +338,7 @@ msgstr "" "gestionnaire d'exception se poursuit dans le code englobant et dans la pile " "d'appels. [#]_" -#: ../Doc/reference/compound_stmts.rst:265 +#: ../Doc/reference/compound_stmts.rst:261 msgid "" "If the evaluation of an expression in the header of an except clause raises " "an exception, the original search for a handler is canceled and a search " @@ -343,10 +352,11 @@ msgstr "" "la pile d'appels (c'est traité comme si l'instruction :keyword:`try` avait " "levé l'exception)." -#: ../Doc/reference/compound_stmts.rst:272 +#: ../Doc/reference/compound_stmts.rst:268 +#, fuzzy msgid "" "When a matching except clause is found, the exception is assigned to the " -"target specified after the :keyword:`as` keyword in that except clause, if " +"target specified after the :keyword:`!as` keyword in that except clause, if " "present, and the except clause's suite is executed. All except clauses must " "have an executable block. When the end of this block is reached, execution " "continues normally after the entire try statement. (This means that if two " @@ -364,7 +374,7 @@ msgstr "" "dans la clause ``try`` du gestionnaire interne, le gestionnaire externe ne " "gère pas l'exception)." -#: ../Doc/reference/compound_stmts.rst:280 +#: ../Doc/reference/compound_stmts.rst:276 msgid "" "When an exception has been assigned using ``as target``, it is cleared at " "the end of the except clause. This is as if ::" @@ -372,11 +382,11 @@ msgstr "" "Lorsqu'une exception a été assignée en utilisant ``as cible``, elle est " "effacée à la fin de la clause ``except``. C'est comme si ::" -#: ../Doc/reference/compound_stmts.rst:286 +#: ../Doc/reference/compound_stmts.rst:282 msgid "was translated to ::" msgstr "avait été traduit en ::" -#: ../Doc/reference/compound_stmts.rst:294 +#: ../Doc/reference/compound_stmts.rst:290 msgid "" "This means the exception must be assigned to a different name to be able to " "refer to it after the except clause. Exceptions are cleared because with " @@ -391,7 +401,7 @@ msgstr "" "ce qui conduit à conserver tous les noms locaux de ce cadre en mémoire " "jusqu'au passage du ramasse-miettes." -#: ../Doc/reference/compound_stmts.rst:303 +#: ../Doc/reference/compound_stmts.rst:299 msgid "" "Before an except clause's suite is executed, details about the exception are " "stored in the :mod:`sys` module and can be accessed via :func:`sys." @@ -410,12 +420,13 @@ msgstr "" "leurs anciennes valeurs (celles d'avant l'appel) au retour d'une fonction " "qui a géré une exception." -#: ../Doc/reference/compound_stmts.rst:317 +#: ../Doc/reference/compound_stmts.rst:313 +#, fuzzy msgid "" -"The optional :keyword:`else` clause is executed if the control flow leaves " +"The optional :keyword:`!else` clause is executed if the control flow leaves " "the :keyword:`try` suite, no exception was raised, and no :keyword:" "`return`, :keyword:`continue`, or :keyword:`break` statement was executed. " -"Exceptions in the :keyword:`else` clause are not handled by the preceding :" +"Exceptions in the :keyword:`!else` clause are not handled by the preceding :" "keyword:`except` clauses." msgstr "" "La clause optionnelle :keyword:`else` n'est exécutée que si l'exécution " @@ -424,17 +435,18 @@ msgstr "" "étés exécutés. Les exceptions dans la clause :keyword:`else` ne sont pas " "gérées par les clauses :keyword:`except` précédentes." -#: ../Doc/reference/compound_stmts.rst:325 +#: ../Doc/reference/compound_stmts.rst:321 +#, fuzzy msgid "" "If :keyword:`finally` is present, it specifies a 'cleanup' handler. The :" "keyword:`try` clause is executed, including any :keyword:`except` and :" -"keyword:`else` clauses. If an exception occurs in any of the clauses and is " -"not handled, the exception is temporarily saved. The :keyword:`finally` " +"keyword:`!else` clauses. If an exception occurs in any of the clauses and " +"is not handled, the exception is temporarily saved. The :keyword:`!finally` " "clause is executed. If there is a saved exception it is re-raised at the " -"end of the :keyword:`finally` clause. If the :keyword:`finally` clause " +"end of the :keyword:`!finally` clause. If the :keyword:`!finally` clause " "raises another exception, the saved exception is set as the context of the " -"new exception. If the :keyword:`finally` clause executes a :keyword:`return` " -"or :keyword:`break` statement, the saved exception is discarded::" +"new exception. If the :keyword:`!finally` clause executes a :keyword:" +"`return` or :keyword:`break` statement, the saved exception is discarded::" msgstr "" "Si :keyword:`finally` est présente, elle spécifie un gestionnaire de " "\"nettoyage\". La clause :keyword:`try` est exécutée, y compris les clauses :" @@ -447,7 +459,7 @@ msgstr "" "exception. Si la clause :keyword:`finally` exécute une instruction :keyword:" "`return` ou :keyword:`break`, l'exception sauvegardée est jetée ::" -#: ../Doc/reference/compound_stmts.rst:344 +#: ../Doc/reference/compound_stmts.rst:340 msgid "" "The exception information is not available to the program during execution " "of the :keyword:`finally` clause." @@ -455,13 +467,14 @@ msgstr "" "L'information relative à l'exception n'est pas disponible pour le programme " "pendant l'exécution de la clause :keyword:`finally`." -#: ../Doc/reference/compound_stmts.rst:352 +#: ../Doc/reference/compound_stmts.rst:348 +#, fuzzy msgid "" "When a :keyword:`return`, :keyword:`break` or :keyword:`continue` statement " -"is executed in the :keyword:`try` suite of a :keyword:`try`...\\ :keyword:" -"`finally` statement, the :keyword:`finally` clause is also executed 'on the " -"way out.' A :keyword:`continue` statement is illegal in the :keyword:" -"`finally` clause. (The reason is a problem with the current implementation " +"is executed in the :keyword:`try` suite of a :keyword:`!try`...\\ :keyword:`!" +"finally` statement, the :keyword:`finally` clause is also executed 'on the " +"way out.' A :keyword:`continue` statement is illegal in the :keyword:`!" +"finally` clause. (The reason is a problem with the current implementation " "--- this restriction may be lifted in the future)." msgstr "" "Lorsqu'une instruction :keyword:`return`, :keyword:`break` ou :keyword:" @@ -472,11 +485,12 @@ msgstr "" "que l'implémentation actuelle pose problème --- il est possible que cette " "restriction soit levée dans le futur)." -#: ../Doc/reference/compound_stmts.rst:359 +#: ../Doc/reference/compound_stmts.rst:355 +#, fuzzy msgid "" "The return value of a function is determined by the last :keyword:`return` " "statement executed. Since the :keyword:`finally` clause always executes, a :" -"keyword:`return` statement executed in the :keyword:`finally` clause will " +"keyword:`!return` statement executed in the :keyword:`!finally` clause will " "always be the last one executed::" msgstr "" "La valeur de retour d'une fonction est déterminée par la dernière " @@ -484,7 +498,7 @@ msgstr "" "`finally` s'exécute toujours, une instruction :keyword:`return` exécutée " "dans le :keyword:`finally` sera toujours la dernière clause exécutée ::" -#: ../Doc/reference/compound_stmts.rst:373 +#: ../Doc/reference/compound_stmts.rst:369 msgid "" "Additional information on exceptions can be found in section :ref:" "`exceptions`, and information on using the :keyword:`raise` statement to " @@ -495,11 +509,12 @@ msgstr "" "informations relatives à l'utilisation de l'instruction :keyword:`raise` " "pour produire des exceptions." -#: ../Doc/reference/compound_stmts.rst:382 -msgid "The :keyword:`with` statement" +#: ../Doc/reference/compound_stmts.rst:378 +#, fuzzy +msgid "The :keyword:`!with` statement" msgstr "L'instruction :keyword:`with`" -#: ../Doc/reference/compound_stmts.rst:391 +#: ../Doc/reference/compound_stmts.rst:387 msgid "" "The :keyword:`with` statement is used to wrap the execution of a block with " "methods defined by a context manager (see section :ref:`context-managers`). " @@ -512,7 +527,7 @@ msgstr "" "le patron de conception classique :keyword:`try`....\\ :keyword:`except`..." "\\ \\ :keyword:`finally`." -#: ../Doc/reference/compound_stmts.rst:400 +#: ../Doc/reference/compound_stmts.rst:396 msgid "" "The execution of the :keyword:`with` statement with one \"item\" proceeds as " "follows:" @@ -520,7 +535,7 @@ msgstr "" "L'exécution de l'instruction :keyword:`with` avec un seul \"élément" "\" (*item* dans la grammaire) se déroule comme suit :" -#: ../Doc/reference/compound_stmts.rst:402 +#: ../Doc/reference/compound_stmts.rst:398 msgid "" "The context expression (the expression given in the :token:`with_item`) is " "evaluated to obtain a context manager." @@ -528,17 +543,17 @@ msgstr "" "L'expression de contexte (l'expression donnée dans le :token:`with_item`) " "est évaluée pour obtenir un gestionnaire de contexte." -#: ../Doc/reference/compound_stmts.rst:405 +#: ../Doc/reference/compound_stmts.rst:401 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:407 +#: ../Doc/reference/compound_stmts.rst:403 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:409 +#: ../Doc/reference/compound_stmts.rst:405 msgid "" "If a target was included in the :keyword:`with` statement, the return value " "from :meth:`__enter__` is assigned to it." @@ -547,7 +562,7 @@ msgstr "" "l'instruction :keyword:`with`, la valeur de retour de :meth:`__enter__` lui " "est assignée." -#: ../Doc/reference/compound_stmts.rst:414 +#: ../Doc/reference/compound_stmts.rst:410 msgid "" "The :keyword:`with` statement guarantees that if the :meth:`__enter__` " "method returns without an error, then :meth:`__exit__` will always be " @@ -561,11 +576,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:420 +#: ../Doc/reference/compound_stmts.rst:416 msgid "The suite is executed." msgstr "La suite est exécutée." -#: ../Doc/reference/compound_stmts.rst:422 +#: ../Doc/reference/compound_stmts.rst:418 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 " @@ -577,7 +592,7 @@ msgstr "" "d'appels sont passés en arguments à :meth:`__exit__`. Sinon, trois " "arguments :const:`None` sont fournis." -#: ../Doc/reference/compound_stmts.rst:427 +#: ../Doc/reference/compound_stmts.rst:423 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 " @@ -590,7 +605,7 @@ msgstr "" "l'exécution continue avec l'instruction qui suit l'instruction :keyword:" "`with`." -#: ../Doc/reference/compound_stmts.rst:432 +#: ../Doc/reference/compound_stmts.rst:428 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 " @@ -600,7 +615,7 @@ 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:436 +#: ../Doc/reference/compound_stmts.rst:432 msgid "" "With more than one item, the context managers are processed as if multiple :" "keyword:`with` statements were nested::" @@ -608,20 +623,20 @@ 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:442 -#: ../Doc/reference/compound_stmts.rst:657 +#: ../Doc/reference/compound_stmts.rst:438 +#: ../Doc/reference/compound_stmts.rst:653 msgid "is equivalent to ::" msgstr "est équivalente à : ::" -#: ../Doc/reference/compound_stmts.rst:448 +#: ../Doc/reference/compound_stmts.rst:444 msgid "Support for multiple context expressions." msgstr "Prise en charge de multiples expressions de contexte." -#: ../Doc/reference/compound_stmts.rst:454 +#: ../Doc/reference/compound_stmts.rst:450 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` - The \"with\" statement" -#: ../Doc/reference/compound_stmts.rst:454 +#: ../Doc/reference/compound_stmts.rst:450 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." @@ -629,11 +644,11 @@ msgstr "" "La spécification, les motivations et des exemples de l'instruction :keyword:" "`with` en Python." -#: ../Doc/reference/compound_stmts.rst:465 +#: ../Doc/reference/compound_stmts.rst:461 msgid "Function definitions" msgstr "Définition de fonctions" -#: ../Doc/reference/compound_stmts.rst:480 +#: ../Doc/reference/compound_stmts.rst:476 msgid "" "A function definition defines a user-defined function object (see section :" "ref:`types`):" @@ -641,7 +656,7 @@ msgstr "" "Une définition de fonction définit un objet fonction allogène (voir la " "section :ref:`types`) :" -#: ../Doc/reference/compound_stmts.rst:498 +#: ../Doc/reference/compound_stmts.rst:494 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 " @@ -656,7 +671,7 @@ msgstr "" "globaux courant comme espace des noms globaux à utiliser lorsque la fonction " "est appelée." -#: ../Doc/reference/compound_stmts.rst:504 +#: ../Doc/reference/compound_stmts.rst:500 msgid "" "The function definition does not execute the function body; this gets " "executed only when the function is called. [#]_" @@ -664,7 +679,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:510 +#: ../Doc/reference/compound_stmts.rst:506 msgid "" "A function definition may be wrapped by one or more :term:`decorator` " "expressions. Decorator expressions are evaluated when the function is " @@ -683,19 +698,19 @@ msgstr "" "décorateurs, ils sont appliqués par imbrication ; par exemple, le code " "suivant ::" -#: ../Doc/reference/compound_stmts.rst:521 -#: ../Doc/reference/compound_stmts.rst:687 +#: ../Doc/reference/compound_stmts.rst:517 +#: ../Doc/reference/compound_stmts.rst:683 msgid "is roughly equivalent to ::" msgstr "est à peu près équivalent à ::" -#: ../Doc/reference/compound_stmts.rst:526 +#: ../Doc/reference/compound_stmts.rst:522 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:533 +#: ../Doc/reference/compound_stmts.rst:529 msgid "" "When one or more :term:`parameters ` have the form *parameter* " "``=`` *expression*, the function is said to have \"default parameter values." @@ -714,7 +729,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:541 +#: ../Doc/reference/compound_stmts.rst:537 msgid "" "**Default parameter values are evaluated from left to right when the " "function definition is executed.** This means that the expression is " @@ -737,7 +752,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:561 +#: ../Doc/reference/compound_stmts.rst:557 msgid "" "Function call semantics are described in more detail in section :ref:" "`calls`. A function call always assigns values to all parameters mentioned " @@ -763,7 +778,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:577 +#: ../Doc/reference/compound_stmts.rst:573 msgid "" "Parameters may have annotations of the form \"``: expression``\" following " "the parameter name. Any parameter may have an annotation even those of the " @@ -798,7 +813,8 @@ msgstr "" "dans un ordre différent de celui dans lequel elles apparaissent dans le code " "source." -#: ../Doc/reference/compound_stmts.rst:592 +#: ../Doc/reference/compound_stmts.rst:588 +#, fuzzy msgid "" "It is also possible to create anonymous functions (functions not bound to a " "name), for immediate use in expressions. This uses lambda expressions, " @@ -806,8 +822,8 @@ msgid "" "merely a shorthand for a simplified function definition; a function defined " "in a \":keyword:`def`\" statement can be passed around or assigned to " "another name just like a function defined by a lambda expression. The \":" -"keyword:`def`\" form is actually more powerful since it allows the execution " -"of multiple statements and annotations." +"keyword:`!def`\" form is actually more powerful since it allows the " +"execution of multiple statements and annotations." msgstr "" "Il est aussi possible de créer des fonctions anonymes (fonctions non liées à " "un nom), pour une utilisation immédiate dans des expressions. Utilisez alors " @@ -819,7 +835,7 @@ msgstr "" "en fait plus puissante puisqu'elle permet l'exécution de plusieurs " "instructions et les annotations." -#: ../Doc/reference/compound_stmts.rst:600 +#: ../Doc/reference/compound_stmts.rst:596 msgid "" "**Programmer's note:** Functions are first-class objects. A \"``def``\" " "statement executed inside a function definition defines a local function " @@ -834,29 +850,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:609 +#: ../Doc/reference/compound_stmts.rst:605 msgid ":pep:`3107` - Function Annotations" msgstr ":pep:`3107` -- Annotations de fonctions" -#: ../Doc/reference/compound_stmts.rst:609 +#: ../Doc/reference/compound_stmts.rst:605 msgid "The original specification for function annotations." msgstr "La spécification originale pour les annotations de fonctions." -#: ../Doc/reference/compound_stmts.rst:612 +#: ../Doc/reference/compound_stmts.rst:608 msgid ":pep:`484` - Type Hints" msgstr ":pep:`484` -- Indications de types" -#: ../Doc/reference/compound_stmts.rst:612 +#: ../Doc/reference/compound_stmts.rst:608 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:616 +#: ../Doc/reference/compound_stmts.rst:612 msgid ":pep:`526` - Syntax for Variable Annotations" msgstr ":pep:`526` -- Syntaxe pour les annotations de variables" -#: ../Doc/reference/compound_stmts.rst:615 +#: ../Doc/reference/compound_stmts.rst:611 msgid "" "Ability to type hint variable declarations, including class variables and " "instance variables" @@ -864,11 +880,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:619 +#: ../Doc/reference/compound_stmts.rst:615 msgid ":pep:`563` - Postponed Evaluation of Annotations" msgstr ":pep:`563` -- Évaluation différée des annotations" -#: ../Doc/reference/compound_stmts.rst:619 +#: ../Doc/reference/compound_stmts.rst:615 msgid "" "Support for forward references within annotations by preserving annotations " "in a string form at runtime instead of eager evaluation." @@ -877,17 +893,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:626 +#: ../Doc/reference/compound_stmts.rst:622 msgid "Class definitions" msgstr "Définition de classes" -#: ../Doc/reference/compound_stmts.rst:641 +#: ../Doc/reference/compound_stmts.rst:637 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:648 +#: ../Doc/reference/compound_stmts.rst:644 msgid "" "A class definition is an executable statement. The inheritance list usually " "gives a list of base classes (see :ref:`metaclasses` for more advanced " @@ -903,7 +919,7 @@ msgstr "" "Les 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:662 +#: ../Doc/reference/compound_stmts.rst:658 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 " @@ -924,7 +940,7 @@ msgstr "" "sauvegardé comme dictionnaire des attributs. Le nom de classe est lié à " "l'objet classe dans l'espace de noms local original." -#: ../Doc/reference/compound_stmts.rst:671 +#: ../Doc/reference/compound_stmts.rst:667 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 " @@ -936,7 +952,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:676 +#: ../Doc/reference/compound_stmts.rst:672 msgid "" "Class creation can be customized heavily using :ref:`metaclasses " "`." @@ -944,13 +960,13 @@ msgstr "" "La création de classes peut être fortement personnalisée en utilisant les :" "ref:`métaclasses `." -#: ../Doc/reference/compound_stmts.rst:681 +#: ../Doc/reference/compound_stmts.rst:677 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:692 +#: ../Doc/reference/compound_stmts.rst:688 msgid "" "The evaluation rules for the decorator expressions are the same as for " "function decorators. The result is then bound to the class name." @@ -959,7 +975,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:695 +#: ../Doc/reference/compound_stmts.rst:691 msgid "" "**Programmer's note:** Variables defined in the class definition are class " "attributes; they are shared by instances. Instance attributes can be set in " @@ -983,11 +999,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:710 +#: ../Doc/reference/compound_stmts.rst:706 msgid ":pep:`3115` - Metaclasses in Python 3000" msgstr ":pep:`3115` -- Métaclasses dans Python 3000" -#: ../Doc/reference/compound_stmts.rst:708 +#: ../Doc/reference/compound_stmts.rst:704 msgid "" "The proposal that changed the declaration of metaclasses to the current " "syntax, and the semantics for how classes with metaclasses are constructed." @@ -996,11 +1012,11 @@ msgstr "" "actuelle, et la sémantique pour la façon dont les classes avec métaclasses " "sont construites." -#: ../Doc/reference/compound_stmts.rst:713 +#: ../Doc/reference/compound_stmts.rst:709 msgid ":pep:`3129` - Class Decorators" msgstr ":pep:`3129` -- Décorateurs de classes" -#: ../Doc/reference/compound_stmts.rst:713 +#: ../Doc/reference/compound_stmts.rst:709 msgid "" "The proposal that added class decorators. Function and method decorators " "were introduced in :pep:`318`." @@ -1008,15 +1024,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:720 +#: ../Doc/reference/compound_stmts.rst:716 msgid "Coroutines" msgstr "Coroutines" -#: ../Doc/reference/compound_stmts.rst:728 +#: ../Doc/reference/compound_stmts.rst:724 msgid "Coroutine function definition" msgstr "Définition de fonctions coroutines" -#: ../Doc/reference/compound_stmts.rst:738 +#: ../Doc/reference/compound_stmts.rst:734 msgid "" "Execution of Python coroutines can be suspended and resumed at many points " "(see :term:`coroutine`). Inside the body of a coroutine function, ``await`` " @@ -1030,7 +1046,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:744 +#: ../Doc/reference/compound_stmts.rst:740 msgid "" "Functions defined with ``async def`` syntax are always coroutine functions, " "even if they do not contain ``await`` or ``async`` keywords." @@ -1039,7 +1055,7 @@ msgstr "" "fonctions coroutines, même si elles ne contiennent aucun mot-clé ``await`` " "ou ``async``." -#: ../Doc/reference/compound_stmts.rst:747 +#: ../Doc/reference/compound_stmts.rst:743 msgid "" "It is a :exc:`SyntaxError` to use a ``yield from`` expression inside the " "body of a coroutine function." @@ -1047,15 +1063,16 @@ msgstr "" "C'est une :exc:`SyntaxError` d'utiliser une expression ``yield from`` dans " "une coroutine." -#: ../Doc/reference/compound_stmts.rst:750 +#: ../Doc/reference/compound_stmts.rst:746 msgid "An example of a coroutine function::" msgstr "Un exemple de fonction coroutine ::" -#: ../Doc/reference/compound_stmts.rst:761 -msgid "The :keyword:`async for` statement" +#: ../Doc/reference/compound_stmts.rst:757 +#, fuzzy +msgid "The :keyword:`!async for` statement" msgstr "L'instruction :keyword:`async for`" -#: ../Doc/reference/compound_stmts.rst:766 +#: ../Doc/reference/compound_stmts.rst:762 msgid "" "An :term:`asynchronous iterable` is able to call asynchronous code in its " "*iter* implementation, and :term:`asynchronous iterator` can call " @@ -1066,7 +1083,7 @@ msgstr "" "`itérateur asynchrone ` peut appeler du code " "asynchrone dans sa méthode *next*." -#: ../Doc/reference/compound_stmts.rst:770 +#: ../Doc/reference/compound_stmts.rst:766 msgid "" "The ``async for`` statement allows convenient iteration over asynchronous " "iterators." @@ -1074,22 +1091,22 @@ msgstr "" "L'instruction ``async for`` permet d'itérer facilement sur des itérateurs " "asynchrones." -#: ../Doc/reference/compound_stmts.rst:773 -#: ../Doc/reference/compound_stmts.rst:813 +#: ../Doc/reference/compound_stmts.rst:769 +#: ../Doc/reference/compound_stmts.rst:809 msgid "The following code::" msgstr "Le code suivant ::" -#: ../Doc/reference/compound_stmts.rst:780 -#: ../Doc/reference/compound_stmts.rst:818 +#: ../Doc/reference/compound_stmts.rst:776 +#: ../Doc/reference/compound_stmts.rst:814 msgid "Is semantically equivalent to::" msgstr "Est sémantiquement équivalent à ::" -#: ../Doc/reference/compound_stmts.rst:795 +#: ../Doc/reference/compound_stmts.rst:791 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:797 +#: ../Doc/reference/compound_stmts.rst:793 msgid "" "It is a :exc:`SyntaxError` to use an ``async for`` statement outside the " "body of a coroutine function." @@ -1097,11 +1114,12 @@ msgstr "" "C'est une :exc:`SyntaxError` d'utiliser une instruction ``async for`` en " "dehors d'une fonction coroutine." -#: ../Doc/reference/compound_stmts.rst:805 -msgid "The :keyword:`async with` statement" +#: ../Doc/reference/compound_stmts.rst:801 +#, fuzzy +msgid "The :keyword:`!async with` statement" msgstr "L'instruction :keyword:`async with`" -#: ../Doc/reference/compound_stmts.rst:810 +#: ../Doc/reference/compound_stmts.rst:806 msgid "" "An :term:`asynchronous context manager` is a :term:`context manager` that is " "able to suspend execution in its *enter* and *exit* methods." @@ -1110,12 +1128,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:833 +#: ../Doc/reference/compound_stmts.rst:829 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:835 +#: ../Doc/reference/compound_stmts.rst:831 msgid "" "It is a :exc:`SyntaxError` to use an ``async with`` statement outside the " "body of a coroutine function." @@ -1123,11 +1141,11 @@ msgstr "" "C'est une :exc:`SyntaxError` d'utiliser l'instruction ``async with`` en " "dehors d'une fonction coroutine." -#: ../Doc/reference/compound_stmts.rst:841 +#: ../Doc/reference/compound_stmts.rst:837 msgid ":pep:`492` - Coroutines with async and await syntax" msgstr ":pep:`492` -- Coroutines avec les syntaxes *async* et *await*" -#: ../Doc/reference/compound_stmts.rst:841 +#: ../Doc/reference/compound_stmts.rst:837 msgid "" "The proposal that made coroutines a proper standalone concept in Python, and " "added supporting syntax." @@ -1135,11 +1153,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:846 +#: ../Doc/reference/compound_stmts.rst:842 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/compound_stmts.rst:847 +#: ../Doc/reference/compound_stmts.rst:843 msgid "" "The exception is propagated to the invocation stack unless there is a :" "keyword:`finally` clause which happens to raise another exception. That new " @@ -1150,7 +1168,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:851 +#: ../Doc/reference/compound_stmts.rst:847 msgid "" "A string literal appearing as the first statement in the function body is " "transformed into the function's ``__doc__`` attribute and therefore the " @@ -1160,7 +1178,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:855 +#: ../Doc/reference/compound_stmts.rst:851 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 0fd61752..54608c08 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-12 22:58+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-10-05 09:33+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -1113,13 +1113,14 @@ msgid "Generator functions" msgstr "Fonctions générateurs" #: ../Doc/reference/datamodel.rst:618 +#, fuzzy msgid "" "A function or method which uses the :keyword:`yield` statement (see section :" "ref:`yield`) is called a :dfn:`generator function`. Such a function, when " "called, always returns an iterator object which can be used to execute the " "body of the function: calling the iterator's :meth:`iterator.__next__` " "method will cause the function to execute until it provides a value using " -"the :keyword:`yield` statement. When the function executes a :keyword:" +"the :keyword:`!yield` statement. When the function executes a :keyword:" "`return` statement or falls off the end, a :exc:`StopIteration` exception is " "raised and the iterator will have reached the end of the set of values to be " "returned." @@ -1265,17 +1266,18 @@ msgid "Modules" msgstr "Modules" #: ../Doc/reference/datamodel.rst:701 +#, fuzzy msgid "" "Modules are a basic organizational unit of Python code, and are created by " "the :ref:`import system ` as invoked either by the :keyword:" -"`import` statement (see :keyword:`import`), or by calling functions such as :" -"func:`importlib.import_module` and built-in :func:`__import__`. A module " -"object has a namespace implemented by a dictionary object (this is the " -"dictionary referenced by the ``__globals__`` attribute of functions defined " -"in the module). Attribute references are translated to lookups in this " -"dictionary, e.g., ``m.x`` is equivalent to ``m.__dict__[\"x\"]``. A module " -"object does not contain the code object used to initialize the module (since " -"it isn't needed once the initialization is done)." +"`import` statement, or by calling functions such as :func:`importlib." +"import_module` and built-in :func:`__import__`. A module object has a " +"namespace implemented by a dictionary object (this is the dictionary " +"referenced by the ``__globals__`` attribute of functions defined in the " +"module). Attribute references are translated to lookups in this dictionary, " +"e.g., ``m.x`` is equivalent to ``m.__dict__[\"x\"]``. A module object does " +"not contain the code object used to initialize the module (since it isn't " +"needed once the initialization is done)." msgstr "" "Les modules constituent l'organisation de base du code Python et sont créés " "par le :ref:`mécanisme d'import ` soit avec l'instruction :" @@ -2510,9 +2512,9 @@ msgstr "" #: ../Doc/reference/datamodel.rst:1455 #, fuzzy msgid "" -"Changing hash values affects the iteration order of dicts, sets and other " -"mappings. Python has never made guarantees about this ordering (and it " -"typically varies between 32-bit and 64-bit builds)." +"Changing hash values affects the iteration order of sets. Python has never " +"made guarantees about this ordering (and it typically varies between 32-bit " +"and 64-bit builds)." msgstr "" "Modifier les empreintes obtenues par hachage modifie l'ordre d'itération sur " "les dictionnaires, les ensembles et les autres tableaux de correspondances. " @@ -3274,7 +3276,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:1881 ../Doc/reference/datamodel.rst:2101 +#: ../Doc/reference/datamodel.rst:1881 ../Doc/reference/datamodel.rst:2069 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" @@ -3519,8 +3521,9 @@ msgstr "" "``__class__`` implicite" #: ../Doc/reference/datamodel.rst:2003 -msgid "Metaclass example" -msgstr "Exemple de méta-classe" +#, fuzzy +msgid "Uses for metaclasses" +msgstr "Méta-classes" #: ../Doc/reference/datamodel.rst:2005 msgid "" @@ -3535,41 +3538,11 @@ msgstr "" "de propriétés, les mandataires, les *frameworks* ainsi que le verrouillage " "ou la synchronisation automatique de ressources." -#: ../Doc/reference/datamodel.rst:2010 -msgid "" -"Here is an example of a metaclass that uses an :class:`collections." -"OrderedDict` to remember the order that class variables are defined::" -msgstr "" -"Voici un exemple de méta-classe qui utilise une :class:`collections." -"OrderedDict` pour mémoriser l'ordre dans lequel les variables de classe sont " -"définies ::" - -#: ../Doc/reference/datamodel.rst:2033 -msgid "" -"When the class definition for *A* gets executed, the process begins with " -"calling the metaclass's :meth:`__prepare__` method which returns an empty :" -"class:`collections.OrderedDict`. That mapping records the methods and " -"attributes of *A* as they are defined within the body of the class " -"statement. Once those definitions are executed, the ordered dictionary is " -"fully populated and the metaclass's :meth:`__new__` method gets invoked. " -"That method builds the new type and it saves the ordered dictionary keys in " -"an attribute called ``members``." -msgstr "" -"Quand la définition de la classe *A* s'exécute, le processus commence par " -"appeler la méthode :meth:`__prepare__` de la méta-classe qui renvoie un :" -"class:`collections.OrderedDict` vide. Ce tableau de correspondances " -"enregistre les méthodes et attributs de *A* au fur et à mesure de leurs " -"définitions dans les instructions du corps de la classe. Une fois que ces " -"définitions ont été exécutées, le dictionnaire ordonné est complètement " -"peuplé et la méthode :meth:`__new__` de la méta-classe est appelée. Cette " -"méthode construit un nouveau type et sauve les clés du dictionnaire ordonné " -"dans un attribut appelé ``members``." - -#: ../Doc/reference/datamodel.rst:2044 +#: ../Doc/reference/datamodel.rst:2012 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:2014 msgid "" "The following methods are used to override the default behavior of the :func:" "`isinstance` and :func:`issubclass` built-in functions." @@ -3577,7 +3550,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:2017 msgid "" "In particular, the metaclass :class:`abc.ABCMeta` implements these methods " "in order to allow the addition of Abstract Base Classes (ABCs) as \"virtual " @@ -3589,7 +3562,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:2024 msgid "" "Return true if *instance* should be considered a (direct or indirect) " "instance of *class*. If defined, called to implement ``isinstance(instance, " @@ -3599,7 +3572,7 @@ msgstr "" "(directe ou indirecte) de *class*. Si elle est définie, est elle appelée " "pour implémenter ``isinstance(instance, class)``." -#: ../Doc/reference/datamodel.rst:2063 +#: ../Doc/reference/datamodel.rst:2031 msgid "" "Return true if *subclass* should be considered a (direct or indirect) " "subclass of *class*. If defined, called to implement ``issubclass(subclass, " @@ -3609,7 +3582,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:2036 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 " @@ -3622,11 +3595,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:2047 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:2044 msgid "" "Includes the specification for customizing :func:`isinstance` and :func:" "`issubclass` behavior through :meth:`~class.__instancecheck__` and :meth:" @@ -3640,11 +3613,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:2052 msgid "Emulating generic types" msgstr "Émulation de types génériques" -#: ../Doc/reference/datamodel.rst:2086 +#: ../Doc/reference/datamodel.rst:2054 msgid "" "One can implement the generic class syntax as specified by :pep:`484` (for " "example ``List[int]``) by defining a special method" @@ -3653,7 +3626,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:2059 msgid "" "Return an object representing the specialization of a generic class by type " "arguments found in *key*." @@ -3661,7 +3634,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:2062 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 " @@ -3674,11 +3647,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:2075 msgid "Emulating callable objects" msgstr "Émulation d'objets appelables" -#: ../Doc/reference/datamodel.rst:2114 +#: ../Doc/reference/datamodel.rst:2082 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, " @@ -3688,11 +3661,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:2089 msgid "Emulating container types" msgstr "Émulation de types conteneurs" -#: ../Doc/reference/datamodel.rst:2123 +#: ../Doc/reference/datamodel.rst:2091 msgid "" "The following methods can be defined to implement container objects. " "Containers usually are sequences (such as lists or tuples) or mappings (like " @@ -3759,7 +3732,7 @@ msgstr "" "de correspondances, :meth:`__iter__` doit être la même que :meth:`keys` ; " "pour les séquences, elle doit itérer sur les valeurs." -#: ../Doc/reference/datamodel.rst:2158 +#: ../Doc/reference/datamodel.rst:2126 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 " @@ -3771,7 +3744,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:2133 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:" @@ -3785,7 +3758,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:2142 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). " @@ -3798,22 +3771,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:2184 +#: ../Doc/reference/datamodel.rst:2154 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:2188 +#: ../Doc/reference/datamodel.rst:2158 msgid "is translated to ::" msgstr "est traduit en ::" -#: ../Doc/reference/datamodel.rst:2192 +#: ../Doc/reference/datamodel.rst:2162 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:2199 +#: ../Doc/reference/datamodel.rst:2167 msgid "" "Called to implement evaluation of ``self[key]``. For sequence types, the " "accepted keys should be integers and slice objects. Note that the special " @@ -3834,7 +3807,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:2210 +#: ../Doc/reference/datamodel.rst:2178 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." @@ -3842,16 +3815,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:2216 -msgid "" -"Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]`` " -"for dict subclasses when key is not in the dictionary." -msgstr "" -"Appelée par :class:`dict`\\ .\\ :meth:`__getitem__` pour implémenter " -"``self[key]`` dans les sous-classes de dictionnaires lorsque la clé n'est " -"pas dans le dictionnaire." - -#: ../Doc/reference/datamodel.rst:2222 +#: ../Doc/reference/datamodel.rst:2184 msgid "" "Called to implement assignment to ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -3867,7 +3831,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:2231 +#: ../Doc/reference/datamodel.rst:2193 msgid "" "Called to implement deletion of ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -3882,7 +3846,16 @@ 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:2240 +#: ../Doc/reference/datamodel.rst:2202 +msgid "" +"Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]`` " +"for dict subclasses when key is not in the dictionary." +msgstr "" +"Appelée par :class:`dict`\\ .\\ :meth:`__getitem__` pour implémenter " +"``self[key]`` dans les sous-classes de dictionnaires lorsque la clé n'est " +"pas dans le dictionnaire." + +#: ../Doc/reference/datamodel.rst:2208 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 " @@ -3894,7 +3867,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:2244 +#: ../Doc/reference/datamodel.rst:2212 msgid "" "Iterator objects also need to implement this method; they are required to " "return themselves. For more information on iterator objects, see :ref:" @@ -3904,7 +3877,7 @@ msgstr "" "alors se renvoyer eux-mêmes. Pour plus d'information sur les objets " "itérateurs, lisez :ref:`typeiter`." -#: ../Doc/reference/datamodel.rst:2250 +#: ../Doc/reference/datamodel.rst:2218 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 " @@ -3914,7 +3887,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:2254 +#: ../Doc/reference/datamodel.rst:2222 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 :" @@ -3928,7 +3901,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:2261 +#: ../Doc/reference/datamodel.rst:2229 msgid "" "The membership test operators (:keyword:`in` and :keyword:`not in`) are " "normally implemented as an iteration through a sequence. However, container " @@ -3941,7 +3914,7 @@ msgstr "" "suivantes avec une implémentation plus efficace, qui ne requièrent " "d'ailleurs pas que l'objet soit une séquence. " -#: ../Doc/reference/datamodel.rst:2268 +#: ../Doc/reference/datamodel.rst:2236 msgid "" "Called to implement membership test operators. Should return true if *item* " "is in *self*, false otherwise. For mapping objects, this should consider " @@ -3952,7 +3925,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:2272 +#: ../Doc/reference/datamodel.rst:2240 msgid "" "For objects that don't define :meth:`__contains__`, the membership test " "first tries iteration via :meth:`__iter__`, then the old sequence iteration " @@ -3965,11 +3938,11 @@ msgstr "" "reportez-vous à :ref:`cette section dans la référence du langage `." -#: ../Doc/reference/datamodel.rst:2281 +#: ../Doc/reference/datamodel.rst:2249 msgid "Emulating numeric types" msgstr "Émulation de types numériques" -#: ../Doc/reference/datamodel.rst:2283 +#: ../Doc/reference/datamodel.rst:2251 msgid "" "The following methods can be defined to emulate numeric objects. Methods " "corresponding to operations that are not supported by the particular kind of " @@ -3982,7 +3955,7 @@ msgstr "" "opérations bit à bit pour les nombres qui ne sont pas entiers) doivent être " "laissées indéfinies." -#: ../Doc/reference/datamodel.rst:2309 +#: ../Doc/reference/datamodel.rst:2277 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -4005,7 +3978,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:2320 +#: ../Doc/reference/datamodel.rst:2288 msgid "" "If one of those methods does not support the operation with the supplied " "arguments, it should return ``NotImplemented``." @@ -4013,7 +3986,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:2343 +#: ../Doc/reference/datamodel.rst:2311 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -4034,7 +4007,7 @@ msgstr "" "`__rsub__`, ``y.__rsub__(x)`` est appelée si ``x.__sub__(y)`` renvoie " "*NotImplemented*." -#: ../Doc/reference/datamodel.rst:2354 +#: ../Doc/reference/datamodel.rst:2322 msgid "" "Note that ternary :func:`pow` will not try calling :meth:`__rpow__` (the " "coercion rules would become too complicated)." @@ -4042,7 +4015,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:2359 +#: ../Doc/reference/datamodel.rst:2327 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 " @@ -4055,7 +4028,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:2379 +#: ../Doc/reference/datamodel.rst:2347 msgid "" "These methods are called to implement the augmented arithmetic assignments " "(``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, ``**=``, ``<<=``, " @@ -4084,7 +4057,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:2400 +#: ../Doc/reference/datamodel.rst:2368 msgid "" "Called to implement the unary arithmetic operations (``-``, ``+``, :func:" "`abs` and ``~``)." @@ -4092,7 +4065,7 @@ msgstr "" "Appelée pour implémenter les opérations arithmétiques unaires (``-``, ``" "+``, :func:`abs` et ``~``)." -#: ../Doc/reference/datamodel.rst:2413 +#: ../Doc/reference/datamodel.rst:2381 msgid "" "Called to implement the built-in functions :func:`complex`, :func:`int` and :" "func:`float`. Should return a value of the appropriate type." @@ -4100,7 +4073,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:2420 +#: ../Doc/reference/datamodel.rst:2388 msgid "" "Called to implement :func:`operator.index`, and whenever Python needs to " "losslessly convert the numeric object to an integer object (such as in " @@ -4114,7 +4087,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:2396 msgid "" "In order to have a coherent integer type class, when :meth:`__index__` is " "defined :meth:`__int__` should also be defined, and both should return the " @@ -4124,7 +4097,7 @@ msgstr "" "est définie alors :meth:`__int__` doit aussi être définie et les deux " "doivent renvoyer la même valeur." -#: ../Doc/reference/datamodel.rst:2440 +#: ../Doc/reference/datamodel.rst:2408 msgid "" "Called to implement the built-in function :func:`round` and :mod:`math` " "functions :func:`~math.trunc`, :func:`~math.floor` and :func:`~math.ceil`. " @@ -4138,7 +4111,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:2414 msgid "" "If :meth:`__int__` is not defined then the built-in function :func:`int` " "falls back to :meth:`__trunc__`." @@ -4146,17 +4119,18 @@ 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:2421 msgid "With Statement Context Managers" msgstr "Gestionnaire de contexte With" -#: ../Doc/reference/datamodel.rst:2455 +#: ../Doc/reference/datamodel.rst:2423 +#, fuzzy 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 " "handles the entry into, and the exit from, the desired runtime context for " "the execution of the block of code. Context managers are normally invoked " -"using the :keyword:`with` statement (described in section :ref:`with`), but " +"using the :keyword:`!with` statement (described in section :ref:`with`), but " "can also be used by directly invoking their methods." msgstr "" "Un :dfn:`gestionnaire de contexte` est un objet qui met en place un contexte " @@ -4167,7 +4141,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:2434 msgid "" "Typical uses of context managers include saving and restoring various kinds " "of global state, locking and unlocking resources, closing opened files, etc." @@ -4176,25 +4150,26 @@ 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:2437 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:2442 +#, fuzzy 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 " -"the :keyword:`as` clause of the statement, if any." +"the :keyword:`!as` clause of the statement, if any." msgstr "" "Entre dans le contexte d'exécution relatif à cet objet. L'instruction :" "keyword:`with` lie la valeur de retour de cette méthode à une (ou plusieurs) " "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:2449 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 " @@ -4204,7 +4179,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:2453 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. " @@ -4216,7 +4191,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:2457 msgid "" "Note that :meth:`__exit__` methods should not reraise the passed-in " "exception; this is the caller's responsibility." @@ -4224,11 +4199,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:2464 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` -- L'instruction ``with``" -#: ../Doc/reference/datamodel.rst:2496 +#: ../Doc/reference/datamodel.rst:2464 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." @@ -4236,11 +4211,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:2471 msgid "Special method lookup" msgstr "Recherche des méthodes spéciales" -#: ../Doc/reference/datamodel.rst:2505 +#: ../Doc/reference/datamodel.rst:2473 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 " @@ -4252,7 +4227,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:2488 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 " @@ -4266,7 +4241,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:2501 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 " @@ -4276,7 +4251,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:2510 msgid "" "In addition to bypassing any instance attributes in the interest of " "correctness, implicit special method lookup generally also bypasses the :" @@ -4286,7 +4261,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:2536 msgid "" "Bypassing the :meth:`__getattribute__` machinery in this fashion provides " "significant scope for speed optimisations within the interpreter, at the " @@ -4300,15 +4275,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:2547 msgid "Coroutines" msgstr "Coroutines" -#: ../Doc/reference/datamodel.rst:2583 +#: ../Doc/reference/datamodel.rst:2551 msgid "Awaitable Objects" msgstr "Objets *awaitables*" -#: ../Doc/reference/datamodel.rst:2585 +#: ../Doc/reference/datamodel.rst:2553 msgid "" "An :term:`awaitable` object generally implements an :meth:`__await__` " "method. :term:`Coroutine` objects returned from :keyword:`async def` " @@ -4318,7 +4293,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:2559 msgid "" "The :term:`generator iterator` objects returned from generators decorated " "with :func:`types.coroutine` or :func:`asyncio.coroutine` are also " @@ -4328,7 +4303,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:2565 msgid "" "Must return an :term:`iterator`. Should be used to implement :term:" "`awaitable` objects. For instance, :class:`asyncio.Future` implements this " @@ -4338,15 +4313,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:2571 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:2577 msgid "Coroutine Objects" msgstr "Objets coroutines" -#: ../Doc/reference/datamodel.rst:2611 +#: ../Doc/reference/datamodel.rst:2579 msgid "" ":term:`Coroutine` objects are :term:`awaitable` objects. A coroutine's " "execution can be controlled by calling :meth:`__await__` and iterating over " @@ -4364,7 +4339,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:2587 msgid "" "Coroutines also have the methods listed below, which are analogous to those " "of generators (see :ref:`generator-methods`). However, unlike generators, " @@ -4375,13 +4350,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:2591 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:2597 msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " "is equivalent to advancing the iterator returned by :meth:`__await__`. If " @@ -4398,7 +4373,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:2607 msgid "" "Raises the specified exception in the coroutine. This method delegates to " "the :meth:`~generator.throw` method of the iterator that caused the " @@ -4416,7 +4391,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:2618 msgid "" "Causes the coroutine to clean itself up and exit. If the coroutine is " "suspended, this method first delegates to the :meth:`~generator.close` " @@ -4433,7 +4408,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:2626 msgid "" "Coroutine objects are automatically closed using the above process when they " "are about to be destroyed." @@ -4441,11 +4416,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:2632 msgid "Asynchronous Iterators" msgstr "Itérateurs asynchrones" -#: ../Doc/reference/datamodel.rst:2666 +#: ../Doc/reference/datamodel.rst:2634 msgid "" "An *asynchronous iterator* can call asynchronous code in its ``__anext__`` " "method." @@ -4453,18 +4428,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:2637 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:2641 msgid "Must return an *asynchronous iterator* object." msgstr "Doit renvoyer un objet *itérateur asynchrone*." -#: ../Doc/reference/datamodel.rst:2677 +#: ../Doc/reference/datamodel.rst:2645 msgid "" "Must return an *awaitable* resulting in a next value of the iterator. " "Should raise a :exc:`StopAsyncIteration` error when the iteration is over." @@ -4473,11 +4448,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:2648 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:2665 msgid "" "Prior to Python 3.7, ``__aiter__`` could return an *awaitable* that would " "resolve to an :term:`asynchronous iterator `." @@ -4486,7 +4461,7 @@ msgstr "" "résolvait potentiellement en un :term:`itérateur asynchrone `." -#: ../Doc/reference/datamodel.rst:2702 +#: ../Doc/reference/datamodel.rst:2670 msgid "" "Starting with Python 3.7, ``__aiter__`` must return an asynchronous iterator " "object. Returning anything else will result in a :exc:`TypeError` error." @@ -4494,11 +4469,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:2678 msgid "Asynchronous Context Managers" msgstr "Gestionnaires de contexte asynchrones" -#: ../Doc/reference/datamodel.rst:2712 +#: ../Doc/reference/datamodel.rst:2680 msgid "" "An *asynchronous context manager* is a *context manager* that is able to " "suspend execution in its ``__aenter__`` and ``__aexit__`` methods." @@ -4507,7 +4482,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:2683 msgid "" "Asynchronous context managers can be used in an :keyword:`async with` " "statement." @@ -4515,7 +4490,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:2687 msgid "" "This method is semantically similar to the :meth:`__enter__`, with only " "difference that it must return an *awaitable*." @@ -4523,7 +4498,7 @@ msgstr "" "Cette méthode est 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:2692 msgid "" "This method is semantically similar to the :meth:`__exit__`, with only " "difference that it must return an *awaitable*." @@ -4531,15 +4506,15 @@ msgstr "" "Cette méthode est 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:2695 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:2708 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/datamodel.rst:2741 +#: ../Doc/reference/datamodel.rst:2709 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 " @@ -4550,7 +4525,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:2713 msgid "" "The :meth:`__hash__`, :meth:`__iter__`, :meth:`__reversed__`, and :meth:" "`__contains__` methods have special handling for this; others will still " @@ -4562,7 +4537,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:2718 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 " @@ -4574,7 +4549,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:2724 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 " @@ -4584,6 +4559,33 @@ msgstr "" "(telle que :meth:`__add__`) échoue, l'opération n'est pas autorisée et donc " "la méthode symétrique n'est pas appelée." -#, fuzzy -#~ msgid "Uses for metaclasses" -#~ msgstr "Méta-classes" +#~ msgid "Metaclass example" +#~ msgstr "Exemple de méta-classe" + +#~ msgid "" +#~ "Here is an example of a metaclass that uses an :class:`collections." +#~ "OrderedDict` to remember the order that class variables are defined::" +#~ msgstr "" +#~ "Voici un exemple de méta-classe qui utilise une :class:`collections." +#~ "OrderedDict` pour mémoriser l'ordre dans lequel les variables de classe " +#~ "sont définies ::" + +#~ msgid "" +#~ "When the class definition for *A* gets executed, the process begins with " +#~ "calling the metaclass's :meth:`__prepare__` method which returns an " +#~ "empty :class:`collections.OrderedDict`. That mapping records the methods " +#~ "and attributes of *A* as they are defined within the body of the class " +#~ "statement. Once those definitions are executed, the ordered dictionary is " +#~ "fully populated and the metaclass's :meth:`__new__` method gets invoked. " +#~ "That method builds the new type and it saves the ordered dictionary keys " +#~ "in an attribute called ``members``." +#~ msgstr "" +#~ "Quand la définition de la classe *A* s'exécute, le processus commence par " +#~ "appeler la méthode :meth:`__prepare__` de la méta-classe qui renvoie un :" +#~ "class:`collections.OrderedDict` vide. Ce tableau de correspondances " +#~ "enregistre les méthodes et attributs de *A* au fur et à mesure de leurs " +#~ "définitions dans les instructions du corps de la classe. Une fois que ces " +#~ "définitions ont été exécutées, le dictionnaire ordonné est complètement " +#~ "peuplé et la méthode :meth:`__new__` de la méta-classe est appelée. Cette " +#~ "méthode construit un nouveau type et sauve les clés du dictionnaire " +#~ "ordonné dans un attribut appelé ``members``." diff --git a/reference/executionmodel.po b/reference/executionmodel.po index 6ad6dac5..0b28cf49 100644 --- a/reference/executionmodel.po +++ b/reference/executionmodel.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 22:21+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -43,8 +43,8 @@ msgstr "" "fichier donné en entrée standard à l'interpréteur ou spécifié en tant " "qu'argument de ligne de commande à l'interpréteur) est un bloc de code. Une " "commande de script (une commande spécifiée sur la ligne de commande de " -"l'interpréteur avec l'option :option:`-c`) est un bloc de code. " -"La chaîne passée en argument aux fonctions natives :func:`eval` et :func:`exec` est un " +"l'interpréteur avec l'option :option:`-c`) est un bloc de code. La chaîne " +"passée en argument aux fonctions natives :func:`eval` et :func:`exec` est un " "bloc de code." #: ../Doc/reference/executionmodel.rst:31 @@ -75,13 +75,14 @@ msgstr "" "opérations de liaisons de noms (*name binding* en anglais)." #: ../Doc/reference/executionmodel.rst:57 +#, fuzzy msgid "" "The following constructs bind names: formal parameters to functions, :" "keyword:`import` statements, class and function definitions (these bind the " "class or function name in the defining block), and targets that are " "identifiers if occurring in an assignment, :keyword:`for` loop header, or " -"after :keyword:`as` in a :keyword:`with` statement or :keyword:`except` " -"clause. The :keyword:`import` statement of the form ``from ... import *`` " +"after :keyword:`!as` in a :keyword:`with` statement or :keyword:`except` " +"clause. The :keyword:`!import` statement of the form ``from ... import *`` " "binds all names defined in the imported module, except those beginning with " "an underscore. This form may only be used at the module level." msgstr "" @@ -199,6 +200,7 @@ msgstr "" "recherche des opérations de liaisons." #: ../Doc/reference/executionmodel.rst:120 +#, fuzzy msgid "" "If the :keyword:`global` statement occurs within a block, all uses of the " "name specified in the statement refer to the binding of that name in the top-" @@ -206,7 +208,7 @@ msgid "" "the global namespace, i.e. the namespace of the module containing the code " "block, and the builtins namespace, the namespace of the module :mod:" "`builtins`. The global namespace is searched first. If the name is not " -"found there, the builtins namespace is searched. The :keyword:`global` " +"found there, the builtins namespace is searched. The :keyword:`!global` " "statement must precede all uses of the name." msgstr "" "Si l'instruction :keyword:`global` apparaît dans un bloc, toutes les " diff --git a/reference/expressions.po b/reference/expressions.po index dc313435..622d3b93 100644 --- a/reference/expressions.po +++ b/reference/expressions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 22:18+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -274,13 +274,14 @@ msgstr "" "suivants :" #: ../Doc/reference/expressions.rst:187 +#, fuzzy msgid "" "The comprehension consists of a single expression followed by at least one :" -"keyword:`for` clause and zero or more :keyword:`for` or :keyword:`if` " +"keyword:`!for` clause and zero or more :keyword:`!for` or :keyword:`!if` " "clauses. In this case, the elements of the new container are those that " -"would be produced by considering each of the :keyword:`for` or :keyword:`if` " -"clauses a block, nesting from left to right, and evaluating the expression " -"to produce an element each time the innermost block is reached." +"would be produced by considering each of the :keyword:`!for` or :keyword:`!" +"if` clauses a block, nesting from left to right, and evaluating the " +"expression to produce an element each time the innermost block is reached." msgstr "" "Une compréhension est constituée par une seule expression suivie par au " "moins une clause :keyword:`for` et zéro ou plus clauses :keyword:`for` ou :" @@ -291,8 +292,9 @@ msgstr "" "bloc le plus imbriqué était atteint." #: ../Doc/reference/expressions.rst:194 +#, fuzzy msgid "" -"However, aside from the iterable expression in the leftmost :keyword:`for` " +"However, aside from the iterable expression in the leftmost :keyword:`!for` " "clause, the comprehension is executed in a separate implicitly nested scope. " "This ensures that names assigned to in the target list don't \"leak\" into " "the enclosing scope." @@ -303,11 +305,12 @@ msgstr "" "cible ne \"fuient\" pas en dehors de cette portée." #: ../Doc/reference/expressions.rst:198 +#, fuzzy msgid "" -"The iterable expression in the leftmost :keyword:`for` clause is evaluated " +"The iterable expression in the leftmost :keyword:`!for` clause is evaluated " "directly in the enclosing scope and then passed as an argument to the " -"implictly nested scope. Subsequent :keyword:`for` clauses and any filter " -"condition in the leftmost :keyword:`for` clause cannot be evaluated in the " +"implictly nested scope. Subsequent :keyword:`!for` clauses and any filter " +"condition in the leftmost :keyword:`!for` clause cannot be evaluated in the " "enclosing scope as they may depend on the values obtained from the leftmost " "iterable. For example: ``[x*y for x in range(10) for y in range(x, x+10)]``." msgstr "" @@ -334,17 +337,18 @@ msgstr "" "elles lèveront une :exc:`SyntaxError`)." #: ../Doc/reference/expressions.rst:213 +#, fuzzy msgid "" -"Since Python 3.6, in an :keyword:`async def` function, an :keyword:`async " +"Since Python 3.6, in an :keyword:`async def` function, an :keyword:`!async " "for` clause may be used to iterate over a :term:`asynchronous iterator`. A " -"comprehension in an :keyword:`async def` function may consist of either a :" -"keyword:`for` or :keyword:`async for` clause following the leading " -"expression, may contain additional :keyword:`for` or :keyword:`async for` " +"comprehension in an :keyword:`!async def` function may consist of either a :" +"keyword:`!for` or :keyword:`!async for` clause following the leading " +"expression, may contain additional :keyword:`!for` or :keyword:`!async for` " "clauses, and may also use :keyword:`await` expressions. If a comprehension " -"contains either :keyword:`async for` clauses or :keyword:`await` expressions " -"it is called an :dfn:`asynchronous comprehension`. An asynchronous " -"comprehension may suspend the execution of the coroutine function in which " -"it appears. See also :pep:`530`." +"contains either :keyword:`!async for` clauses or :keyword:`!await` " +"expressions it is called an :dfn:`asynchronous comprehension`. An " +"asynchronous comprehension may suspend the execution of the coroutine " +"function in which it appears. See also :pep:`530`." msgstr "" "Depuis Python 3.6, dans une fonction :keyword:`async def`, une clause :" "keyword:`async for` peut être utilisée pour itérer sur un :term:`itérateur " @@ -535,15 +539,16 @@ msgstr "" "parenthèses au lieu de crochets ou d'accolades." #: ../Doc/reference/expressions.rst:361 +#, fuzzy msgid "" "Variables used in the generator expression are evaluated lazily when the :" "meth:`~generator.__next__` method is called for the generator object (in the " "same fashion as normal generators). However, the iterable expression in the " -"leftmost :keyword:`for` clause is immediately evaluated, so that an error " +"leftmost :keyword:`!for` clause is immediately evaluated, so that an error " "produced by it will be emitted at the point where the generator expression " "is defined, rather than at the point where the first value is retrieved. " -"Subsequent :keyword:`for` clauses and any filter condition in the leftmost :" -"keyword:`for` clause cannot be evaluated in the enclosing scope as they may " +"Subsequent :keyword:`!for` clauses and any filter condition in the leftmost :" +"keyword:`!for` clause cannot be evaluated in the enclosing scope as they may " "depend on the values obtained from the leftmost iterable. For example: " "``(x*y for x in range(10) for y in range(x, x+10))``." msgstr "" @@ -582,8 +587,9 @@ msgstr "" "compilation. En Python 3.8+ elles lèvent une :exc:`SyntaxError`)." #: ../Doc/reference/expressions.rst:381 +#, fuzzy msgid "" -"If a generator expression contains either :keyword:`async for` clauses or :" +"If a generator expression contains either :keyword:`!async for` clauses or :" "keyword:`await` expressions it is called an :dfn:`asynchronous generator " "expression`. An asynchronous generator expression returns a new " "asynchronous generator object, which is an asynchronous iterator (see :ref:" @@ -1014,17 +1020,18 @@ msgstr "" "a été utilisée, alors le résultat est la valeur transmise à cette méthode." #: ../Doc/reference/expressions.rst:642 +#, fuzzy msgid "" "In an asynchronous generator function, yield expressions are allowed " "anywhere in a :keyword:`try` construct. However, if an asynchronous " "generator is not resumed before it is finalized (by reaching a zero " "reference count or by being garbage collected), then a yield expression " -"within a :keyword:`try` construct could result in a failure to execute " +"within a :keyword:`!try` construct could result in a failure to execute " "pending :keyword:`finally` clauses. In this case, it is the responsibility " "of the event loop or scheduler running the asynchronous generator to call " "the asynchronous generator-iterator's :meth:`~agen.aclose` method and run " -"the resulting coroutine object, thus allowing any pending :keyword:`finally` " -"clauses to execute." +"the resulting coroutine object, thus allowing any pending :keyword:`!" +"finally` clauses to execute." msgstr "" "Dans une fonction générateur asynchrone, les expressions ``yield`` sont " "autorisées n'importe où dans une construction :keyword:`try`. Cependant, si " @@ -1650,7 +1657,7 @@ msgstr "" "la classe doit définir une méthode :meth:`__call__` ; l'effet est le même " "que si cette méthode était appelée." -#: ../Doc/reference/expressions.rst:1085 ../Doc/reference/expressions.rst:1828 +#: ../Doc/reference/expressions.rst:1085 ../Doc/reference/expressions.rst:1830 msgid "Await expression" msgstr "Expression ``await``" @@ -2411,12 +2418,13 @@ msgid "Membership test operations" msgstr "Opérations de tests d’appartenance à un ensemble" #: ../Doc/reference/expressions.rst:1553 +#, fuzzy msgid "" "The operators :keyword:`in` and :keyword:`not in` test for membership. ``x " "in s`` evaluates to ``True`` if *x* is a member of *s*, and ``False`` " "otherwise. ``x not in s`` returns the negation of ``x in s``. All built-in " "sequences and set types support this as well as dictionary, for which :" -"keyword:`in` tests whether the dictionary has a given key. For container " +"keyword:`!in` tests whether the dictionary has a given key. For container " "types such as list, tuple, set, frozenset, dict, or collections.deque, the " "expression ``x in y`` is equivalent to ``any(x is e or x == e for e in y)``." msgstr "" @@ -2555,8 +2563,9 @@ msgstr "" "renvoyée." #: ../Doc/reference/expressions.rst:1647 +#, fuzzy msgid "" -"(Note that neither :keyword:`and` nor :keyword:`or` restrict the value and " +"Note that neither :keyword:`and` nor :keyword:`or` restrict the value and " "type they return to ``False`` and ``True``, but rather return the last " "evaluated argument. This is sometimes useful, e.g., if ``s`` is a string " "that should be replaced by a default value if it is empty, the expression " @@ -2573,11 +2582,11 @@ msgstr "" "de son argument (par exemple, ``not 'truc'`` produit ``False`` plutôt que " "``''``." -#: ../Doc/reference/expressions.rst:1657 +#: ../Doc/reference/expressions.rst:1659 msgid "Conditional expressions" msgstr "Expressions conditionnelles" -#: ../Doc/reference/expressions.rst:1670 +#: ../Doc/reference/expressions.rst:1672 msgid "" "Conditional expressions (sometimes called a \"ternary operator\") have the " "lowest priority of all Python operations." @@ -2585,7 +2594,7 @@ msgstr "" "Les expressions conditionnelles (parfois appelées \"opérateur ternaire\") " "sont les moins prioritaires de toutes les opérations Python." -#: ../Doc/reference/expressions.rst:1673 +#: ../Doc/reference/expressions.rst:1675 msgid "" "The expression ``x if C else y`` first evaluates the condition, *C* rather " "than *x*. If *C* is true, *x* is evaluated and its value is returned; " @@ -2595,16 +2604,16 @@ msgstr "" "est vrai, alors *x* est évalué et sa valeur est renvoyée ; sinon, *y* est " "évalué et sa valeur est renvoyée." -#: ../Doc/reference/expressions.rst:1677 +#: ../Doc/reference/expressions.rst:1679 msgid "See :pep:`308` for more details about conditional expressions." msgstr "" "Voir la :pep:`308` pour plus de détails sur les expressions conditionnelles." -#: ../Doc/reference/expressions.rst:1684 +#: ../Doc/reference/expressions.rst:1686 msgid "Lambdas" msgstr "Expressions lambda" -#: ../Doc/reference/expressions.rst:1696 +#: ../Doc/reference/expressions.rst:1698 msgid "" "Lambda expressions (sometimes called lambda forms) are used to create " "anonymous functions. The expression ``lambda parameters: expression`` yields " @@ -2615,7 +2624,7 @@ msgstr "" "L'expression ``lambda parameters: expression`` produit un objet fonction. " "Cet objet anonyme se comporte comme un objet fonction défini par :" -#: ../Doc/reference/expressions.rst:1705 +#: ../Doc/reference/expressions.rst:1707 msgid "" "See section :ref:`function` for the syntax of parameter lists. Note that " "functions created with lambda expressions cannot contain statements or " @@ -2625,11 +2634,11 @@ msgstr "" "Notez que les fonctions créées par des expressions lambda ne peuvent pas " "contenir d'instructions ou d'annotations." -#: ../Doc/reference/expressions.rst:1713 +#: ../Doc/reference/expressions.rst:1715 msgid "Expression lists" msgstr "Listes d'expressions" -#: ../Doc/reference/expressions.rst:1727 +#: ../Doc/reference/expressions.rst:1729 msgid "" "Except when part of a list or set display, an expression list containing at " "least one comma yields a tuple. The length of the tuple is the number of " @@ -2640,7 +2649,7 @@ msgstr "" "(*tuple*). La longueur du n-uplet est le nombre d'expressions dans la liste. " "Les expressions sont évaluées de la gauche vers la droite." -#: ../Doc/reference/expressions.rst:1736 +#: ../Doc/reference/expressions.rst:1738 msgid "" "An asterisk ``*`` denotes :dfn:`iterable unpacking`. Its operand must be " "an :term:`iterable`. The iterable is expanded into a sequence of items, " @@ -2652,14 +2661,14 @@ msgstr "" "L'itérable est développé en une séquence d'éléments qui sont inclus dans un " "nouvel objet *tuple*, *list* ou *set* à l'emplacement du dépaquetage." -#: ../Doc/reference/expressions.rst:1741 +#: ../Doc/reference/expressions.rst:1743 msgid "" "Iterable unpacking in expression lists, originally proposed by :pep:`448`." msgstr "" "dépaquetage d'itérables dans les listes d'expressions, proposé à l'origine " "par la :pep:`448`." -#: ../Doc/reference/expressions.rst:1746 +#: ../Doc/reference/expressions.rst:1748 msgid "" "The trailing comma is required only to create a single tuple (a.k.a. a " "*singleton*); it is optional in all other cases. A single expression " @@ -2673,11 +2682,11 @@ msgstr "" "produit la valeur de cette expression (pour créer un *tuple* vide, utilisez " "une paire de parenthèses vide : ``()``)." -#: ../Doc/reference/expressions.rst:1756 +#: ../Doc/reference/expressions.rst:1758 msgid "Evaluation order" msgstr "Ordre d'évaluation" -#: ../Doc/reference/expressions.rst:1760 +#: ../Doc/reference/expressions.rst:1762 msgid "" "Python evaluates expressions from left to right. Notice that while " "evaluating an assignment, the right-hand side is evaluated before the left-" @@ -2687,7 +2696,7 @@ msgstr "" "lors de l'évaluation d'une assignation, la partie droite de l'assignation " "est évaluée avant la partie gauche." -#: ../Doc/reference/expressions.rst:1763 +#: ../Doc/reference/expressions.rst:1765 msgid "" "In the following lines, expressions will be evaluated in the arithmetic " "order of their suffixes::" @@ -2695,11 +2704,11 @@ msgstr "" "Dans les lignes qui suivent, les expressions sont évaluées suivant l'ordre " "arithmétique de leurs suffixes ::" -#: ../Doc/reference/expressions.rst:1777 +#: ../Doc/reference/expressions.rst:1779 msgid "Operator precedence" msgstr "Priorités des opérateurs" -#: ../Doc/reference/expressions.rst:1782 +#: ../Doc/reference/expressions.rst:1784 msgid "" "The following table summarizes the operator precedence in Python, from " "lowest precedence (least binding) to highest precedence (most binding). " @@ -2714,7 +2723,7 @@ msgstr "" "de la gauche vers la droite (sauf pour la puissance qui regroupe de la " "droite vers la gauche). " -#: ../Doc/reference/expressions.rst:1788 +#: ../Doc/reference/expressions.rst:1790 msgid "" "Note that comparisons, membership tests, and identity tests, all have the " "same precedence and have a left-to-right chaining feature as described in " @@ -2724,55 +2733,56 @@ msgstr "" "d'identifiants possèdent tous la même priorité et s'enchaînent de la gauche " "vers la droite comme décrit dans la section :ref:`comparisons`." -#: ../Doc/reference/expressions.rst:1794 +#: ../Doc/reference/expressions.rst:1796 msgid "Operator" msgstr "Opérateur" -#: ../Doc/reference/expressions.rst:1794 +#: ../Doc/reference/expressions.rst:1796 msgid "Description" msgstr "Description" -#: ../Doc/reference/expressions.rst:1796 +#: ../Doc/reference/expressions.rst:1798 msgid ":keyword:`lambda`" msgstr ":keyword:`lambda`" -#: ../Doc/reference/expressions.rst:1796 +#: ../Doc/reference/expressions.rst:1798 msgid "Lambda expression" msgstr "Expression lambda" -#: ../Doc/reference/expressions.rst:1798 -msgid ":keyword:`if` -- :keyword:`else`" +#: ../Doc/reference/expressions.rst:1800 +#, fuzzy +msgid ":keyword:`if ` -- :keyword:`!else`" msgstr ":keyword:`if` -- :keyword:`else`" -#: ../Doc/reference/expressions.rst:1798 +#: ../Doc/reference/expressions.rst:1800 msgid "Conditional expression" msgstr "Expressions conditionnelle" -#: ../Doc/reference/expressions.rst:1800 +#: ../Doc/reference/expressions.rst:1802 msgid ":keyword:`or`" msgstr ":keyword:`or`" -#: ../Doc/reference/expressions.rst:1800 +#: ../Doc/reference/expressions.rst:1802 msgid "Boolean OR" msgstr "OR (booléen)" -#: ../Doc/reference/expressions.rst:1802 +#: ../Doc/reference/expressions.rst:1804 msgid ":keyword:`and`" msgstr ":keyword:`and`" -#: ../Doc/reference/expressions.rst:1802 +#: ../Doc/reference/expressions.rst:1804 msgid "Boolean AND" msgstr "AND (booléen)" -#: ../Doc/reference/expressions.rst:1804 +#: ../Doc/reference/expressions.rst:1806 msgid ":keyword:`not` ``x``" msgstr ":keyword:`not` ``x``" -#: ../Doc/reference/expressions.rst:1804 +#: ../Doc/reference/expressions.rst:1806 msgid "Boolean NOT" msgstr "NOT (booléen)" -#: ../Doc/reference/expressions.rst:1806 +#: ../Doc/reference/expressions.rst:1808 msgid "" ":keyword:`in`, :keyword:`not in`, :keyword:`is`, :keyword:`is not`, ``<``, " "``<=``, ``>``, ``>=``, ``!=``, ``==``" @@ -2780,56 +2790,56 @@ msgstr "" ":keyword:`in`, :keyword:`not in`, :keyword:`is`, :keyword:`is not`, ``<``, " "``<=``, ``>``, ``>=``, ``!=``, ``==``" -#: ../Doc/reference/expressions.rst:1806 +#: ../Doc/reference/expressions.rst:1808 msgid "Comparisons, including membership tests and identity tests" msgstr "" "Comparaisons, y compris les tests d'appartenance et les tests d'identifiants" -#: ../Doc/reference/expressions.rst:1810 +#: ../Doc/reference/expressions.rst:1812 msgid "``|``" msgstr "``|``" -#: ../Doc/reference/expressions.rst:1810 +#: ../Doc/reference/expressions.rst:1812 msgid "Bitwise OR" msgstr "OR (bit à bit)" -#: ../Doc/reference/expressions.rst:1812 +#: ../Doc/reference/expressions.rst:1814 msgid "``^``" msgstr "``^``" -#: ../Doc/reference/expressions.rst:1812 +#: ../Doc/reference/expressions.rst:1814 msgid "Bitwise XOR" msgstr "XOR (bit à bit)" -#: ../Doc/reference/expressions.rst:1814 +#: ../Doc/reference/expressions.rst:1816 msgid "``&``" msgstr "``&``" -#: ../Doc/reference/expressions.rst:1814 +#: ../Doc/reference/expressions.rst:1816 msgid "Bitwise AND" msgstr "AND (bit à bit)" -#: ../Doc/reference/expressions.rst:1816 +#: ../Doc/reference/expressions.rst:1818 msgid "``<<``, ``>>``" msgstr "``<<``, ``>>``" -#: ../Doc/reference/expressions.rst:1816 +#: ../Doc/reference/expressions.rst:1818 msgid "Shifts" msgstr "décalages" -#: ../Doc/reference/expressions.rst:1818 +#: ../Doc/reference/expressions.rst:1820 msgid "``+``, ``-``" msgstr "``+``, ``-``" -#: ../Doc/reference/expressions.rst:1818 +#: ../Doc/reference/expressions.rst:1820 msgid "Addition and subtraction" msgstr "Addition et soustraction" -#: ../Doc/reference/expressions.rst:1820 +#: ../Doc/reference/expressions.rst:1822 msgid "``*``, ``@``, ``/``, ``//``, ``%``" msgstr "``*``, ``@``, ``/``, ``//``, ``%``" -#: ../Doc/reference/expressions.rst:1820 +#: ../Doc/reference/expressions.rst:1822 msgid "" "Multiplication, matrix multiplication, division, floor division, remainder " "[#]_" @@ -2837,36 +2847,36 @@ msgstr "" "Multiplication, multiplication de matrices, division, division entière, " "reste [#]_" -#: ../Doc/reference/expressions.rst:1824 +#: ../Doc/reference/expressions.rst:1826 msgid "``+x``, ``-x``, ``~x``" msgstr "``+x``, ``-x``, ``~x``" -#: ../Doc/reference/expressions.rst:1824 +#: ../Doc/reference/expressions.rst:1826 msgid "Positive, negative, bitwise NOT" msgstr "NOT (positif, négatif, bit à bit)" -#: ../Doc/reference/expressions.rst:1826 +#: ../Doc/reference/expressions.rst:1828 msgid "``**``" msgstr "``**``" -#: ../Doc/reference/expressions.rst:1826 +#: ../Doc/reference/expressions.rst:1828 msgid "Exponentiation [#]_" msgstr "Puissance [#]_" -#: ../Doc/reference/expressions.rst:1828 +#: ../Doc/reference/expressions.rst:1830 msgid ":keyword:`await` ``x``" msgstr ":keyword:`await` ``x``" -#: ../Doc/reference/expressions.rst:1830 +#: ../Doc/reference/expressions.rst:1832 msgid "``x[index]``, ``x[index:index]``, ``x(arguments...)``, ``x.attribute``" msgstr "" "``x[indice]``, ``x[indice:indice]``, ``x(arguments...)``, ``x.attribut``" -#: ../Doc/reference/expressions.rst:1830 +#: ../Doc/reference/expressions.rst:1832 msgid "Subscription, slicing, call, attribute reference" msgstr "indiçage, tranches, appel, référence à un attribut" -#: ../Doc/reference/expressions.rst:1833 +#: ../Doc/reference/expressions.rst:1835 msgid "" "``(expressions...)``, ``[expressions...]``, ``{key: value...}``, " "``{expressions...}``" @@ -2874,17 +2884,17 @@ msgstr "" "``(expressions...)``, ``[expressions...]``, ``{clé: valeur...}``, " "``{expressions...}``" -#: ../Doc/reference/expressions.rst:1833 +#: ../Doc/reference/expressions.rst:1835 msgid "Binding or tuple display, list display, dictionary display, set display" msgstr "" "liaison ou agencement de n-uplet, agencement de liste, agencement de " "dictionnaire, agencement d'ensemble" -#: ../Doc/reference/expressions.rst:1841 +#: ../Doc/reference/expressions.rst:1843 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/expressions.rst:1842 +#: ../Doc/reference/expressions.rst:1844 msgid "" "While ``abs(x%y) < abs(y)`` is true mathematically, for floats it may not be " "true numerically due to roundoff. For example, and assuming a platform on " @@ -2905,7 +2915,7 @@ msgstr "" "argument, c'est-à-dire ``-1e-100`` dans ce cas. La meilleure approche dépend " "de l'application." -#: ../Doc/reference/expressions.rst:1851 +#: ../Doc/reference/expressions.rst:1853 msgid "" "If x is very close to an exact integer multiple of y, it's possible for ``x//" "y`` to be one larger than ``(x-x%y)//y`` due to rounding. In such cases, " @@ -2917,7 +2927,7 @@ msgstr "" "Dans de tels cas, Python renvoie le second résultat afin d'avoir ``divmod(x," "y)[0] * y + x % y`` le plus proche de ``x``." -#: ../Doc/reference/expressions.rst:1856 +#: ../Doc/reference/expressions.rst:1858 msgid "" "The Unicode standard distinguishes between :dfn:`code points` (e.g. U+0041) " "and :dfn:`abstract characters` (e.g. \"LATIN CAPITAL LETTER A\"). While most " @@ -2942,7 +2952,7 @@ msgstr "" "*U+0043* (LATIN CAPITAL LETTER C) du code, suivi par un :dfn:`caractère " "combiné` à la position *U+0327* (*COMBINING CEDILLA*) du code." -#: ../Doc/reference/expressions.rst:1867 +#: ../Doc/reference/expressions.rst:1869 msgid "" "The comparison operators on strings compare at the level of Unicode code " "points. This may be counter-intuitive to humans. For example, ``\"\\u00C7\" " @@ -2955,7 +2965,7 @@ msgstr "" "chaînes représentent le même caractère abstrait \"LATIN CAPITAL LETTER C " "WITH CEDILLA\"." -#: ../Doc/reference/expressions.rst:1872 +#: ../Doc/reference/expressions.rst:1874 msgid "" "To compare strings at the level of abstract characters (that is, in a way " "intuitive to humans), use :func:`unicodedata.normalize`." @@ -2964,7 +2974,7 @@ msgstr "" "quelque chose d'intuitif pour les humains), utilisez :func:`unicodedata." "normalize`." -#: ../Doc/reference/expressions.rst:1875 +#: ../Doc/reference/expressions.rst:1877 msgid "" "Due to automatic garbage-collection, free lists, and the dynamic nature of " "descriptors, you may notice seemingly unusual behaviour in certain uses of " @@ -2977,7 +2987,7 @@ msgstr "" "cela implique des comparaisons entre des méthodes d'instances ou des " "constantes. Allez vérifier dans la documentation pour plus d'informations." -#: ../Doc/reference/expressions.rst:1880 +#: ../Doc/reference/expressions.rst:1882 msgid "" "The ``%`` operator is also used for string formatting; the same precedence " "applies." @@ -2985,7 +2995,7 @@ msgstr "" "L'opérateur ``%`` est aussi utilisé pour formater les chaînes de " "caractères ; il y possède la même priorité." -#: ../Doc/reference/expressions.rst:1883 +#: ../Doc/reference/expressions.rst:1885 msgid "" "The power operator ``**`` binds less tightly than an arithmetic or bitwise " "unary operator on its right, that is, ``2**-1`` is ``0.5``." diff --git a/reference/import.po b/reference/import.po index 84513bff..c8265bd1 100644 --- a/reference/import.po +++ b/reference/import.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 22:17+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -35,14 +35,16 @@ msgstr "" "utilisées pour mettre en œuvre le mécanisme d'importation." #: ../Doc/reference/import.rst:16 +#, fuzzy msgid "" "The :keyword:`import` statement combines two operations; it searches for the " "named module, then it binds the results of that search to a name in the " -"local scope. The search operation of the :keyword:`import` statement is " +"local scope. The search operation of the :keyword:`!import` statement is " "defined as a call to the :func:`__import__` function, with the appropriate " "arguments. The return value of :func:`__import__` is used to perform the " -"name binding operation of the :keyword:`import` statement. See the :keyword:" -"`import` statement for the exact details of that name binding operation." +"name binding operation of the :keyword:`!import` statement. See the :" +"keyword:`!import` statement for the exact details of that name binding " +"operation." msgstr "" "L'instruction :keyword:`import` effectue deux opérations ; elle cherche le " "module dont le nom a été donné puis elle lie le résultat de cette recherche " diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index 8f60eb20..ebb06ab3 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 23:22+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -548,7 +548,8 @@ msgstr "" "outils d'analyse statique et les EDIs." #: ../Doc/reference/simple_stmts.rst:373 -msgid "The :keyword:`assert` statement" +#, fuzzy +msgid "The :keyword:`!assert` statement" msgstr "L'instruction :keyword:`assert`" #: ../Doc/reference/simple_stmts.rst:380 @@ -599,7 +600,8 @@ msgstr "" "native est déterminée au moment où l'interpréteur démarre." #: ../Doc/reference/simple_stmts.rst:416 -msgid "The :keyword:`pass` statement" +#, fuzzy +msgid "The :keyword:`!pass` statement" msgstr "L'instruction :keyword:`pass`" #: ../Doc/reference/simple_stmts.rst:426 @@ -614,7 +616,8 @@ msgstr "" "exemple ::" #: ../Doc/reference/simple_stmts.rst:438 -msgid "The :keyword:`del` statement" +#, fuzzy +msgid "The :keyword:`!del` statement" msgstr "L'instruction :keyword:`del`" #: ../Doc/reference/simple_stmts.rst:448 @@ -667,7 +670,8 @@ msgstr "" "locaux si celui-ci apparaissait comme variable libre dans un bloc imbriqué." #: ../Doc/reference/simple_stmts.rst:477 -msgid "The :keyword:`return` statement" +#, fuzzy +msgid "The :keyword:`!return` statement" msgstr "L'instruction :keyword:`return`" #: ../Doc/reference/simple_stmts.rst:487 @@ -696,9 +700,10 @@ msgstr "" "d'expressions (ou ``None``) comme valeur de retour." #: ../Doc/reference/simple_stmts.rst:497 +#, fuzzy msgid "" "When :keyword:`return` passes control out of a :keyword:`try` statement with " -"a :keyword:`finally` clause, that :keyword:`finally` clause is executed " +"a :keyword:`finally` clause, that :keyword:`!finally` clause is executed " "before really leaving the function." msgstr "" "Quand :keyword:`return` fait sortir d'une instruction :keyword:`try` avec " @@ -719,10 +724,11 @@ msgstr "" "`StopIteration.value`." #: ../Doc/reference/simple_stmts.rst:506 +#, fuzzy msgid "" "In an asynchronous generator function, an empty :keyword:`return` statement " "indicates that the asynchronous generator is done and will cause :exc:" -"`StopAsyncIteration` to be raised. A non-empty :keyword:`return` statement " +"`StopAsyncIteration` to be raised. A non-empty :keyword:`!return` statement " "is a syntax error in an asynchronous generator function." msgstr "" "Dans une fonction générateur asynchrone, une instruction :keyword:`return` " @@ -731,7 +737,8 @@ msgstr "" "est une erreur de syntaxe dans une fonction générateur asynchrone." #: ../Doc/reference/simple_stmts.rst:514 -msgid "The :keyword:`yield` statement" +#, fuzzy +msgid "The :keyword:`!yield` statement" msgstr "L'instruction :keyword:`yield`" #: ../Doc/reference/simple_stmts.rst:526 @@ -773,7 +780,8 @@ msgstr "" "la section :ref:`yieldexpr`." #: ../Doc/reference/simple_stmts.rst:550 -msgid "The :keyword:`raise` statement" +#, fuzzy +msgid "The :keyword:`!raise` statement" msgstr "L'instruction :keyword:`raise`" #: ../Doc/reference/simple_stmts.rst:561 @@ -881,7 +889,8 @@ msgstr "" "du contexte de l'exception." #: ../Doc/reference/simple_stmts.rst:653 -msgid "The :keyword:`break` statement" +#, fuzzy +msgid "The :keyword:`!break` statement" msgstr "L'instruction :keyword:`break`" #: ../Doc/reference/simple_stmts.rst:664 @@ -895,9 +904,10 @@ msgstr "" "fonction ou de classe à l'intérieur de cette boucle." #: ../Doc/reference/simple_stmts.rst:671 +#, fuzzy msgid "" -"It terminates the nearest enclosing loop, skipping the optional :keyword:" -"`else` clause if the loop has one." +"It terminates the nearest enclosing loop, skipping the optional :keyword:`!" +"else` clause if the loop has one." msgstr "" "Elle termine la boucle la plus imbriquée, shuntant l'éventuelle clause :" "keyword:`else` de la boucle." @@ -911,9 +921,10 @@ msgstr "" "qui contrôle la boucle garde sa valeur." #: ../Doc/reference/simple_stmts.rst:679 +#, fuzzy msgid "" "When :keyword:`break` passes control out of a :keyword:`try` statement with " -"a :keyword:`finally` clause, that :keyword:`finally` clause is executed " +"a :keyword:`finally` clause, that :keyword:`!finally` clause is executed " "before really leaving the loop." msgstr "" "Quand :keyword:`break` passe le contrôle en dehors d'une instruction :" @@ -921,7 +932,8 @@ msgstr "" "keyword:`finally` est exécutée avant de quitter la boucle." #: ../Doc/reference/simple_stmts.rst:687 -msgid "The :keyword:`continue` statement" +#, fuzzy +msgid "The :keyword:`!continue` statement" msgstr "L'instruction :keyword:`continue`" #: ../Doc/reference/simple_stmts.rst:699 @@ -938,10 +950,11 @@ msgstr "" "de la boucle la plus imbriquée." #: ../Doc/reference/simple_stmts.rst:704 +#, fuzzy msgid "" "When :keyword:`continue` passes control out of a :keyword:`try` statement " -"with a :keyword:`finally` clause, that :keyword:`finally` clause is executed " -"before really starting the next loop cycle." +"with a :keyword:`finally` clause, that :keyword:`!finally` clause is " +"executed before really starting the next loop cycle." msgstr "" "Quand :keyword:`continue` passe le contrôle en dehors d'une instruction :" "keyword:`try` qui comporte une clause :keyword:`finally`, cette clause :" @@ -949,7 +962,8 @@ msgstr "" "boucle." #: ../Doc/reference/simple_stmts.rst:713 -msgid "The :keyword:`import` statement" +#, fuzzy +msgid "The :keyword:`!import` statement" msgstr "L'instruction :keyword:`import`" #: ../Doc/reference/simple_stmts.rst:734 @@ -1010,9 +1024,10 @@ msgstr "" "de noms locaux suivant l'une des trois façons suivantes :" #: ../Doc/reference/simple_stmts.rst:759 +#, fuzzy msgid "" -"If the module name is followed by :keyword:`as`, then the name following :" -"keyword:`as` is bound directly to the imported module." +"If the module name is followed by :keyword:`!as`, then the name following :" +"keyword:`!as` is bound directly to the imported module." msgstr "" "Si le nom du module est suivi par :keyword:`as`, alors le nom suivant :" "keyword:`as` est directement lié au module importé." @@ -1073,9 +1088,10 @@ msgid "if the attribute is not found, :exc:`ImportError` is raised." msgstr "si l'attribut n'est pas trouvé, une :exc:`ImportError` est levée." #: ../Doc/reference/simple_stmts.rst:784 +#, fuzzy msgid "" "otherwise, a reference to that value is stored in the local namespace, using " -"the name in the :keyword:`as` clause if it is present, otherwise using the " +"the name in the :keyword:`!as` clause if it is present, otherwise using the " "attribute name" msgstr "" "sinon, une référence à cette valeur est stockée dans l'espace des noms " @@ -1344,15 +1360,17 @@ msgid "The original proposal for the __future__ mechanism." msgstr "La proposition originale pour le mécanisme de __future__." #: ../Doc/reference/simple_stmts.rst:927 -msgid "The :keyword:`global` statement" +#, fuzzy +msgid "The :keyword:`!global` statement" msgstr "L'instruction :keyword:`global`" #: ../Doc/reference/simple_stmts.rst:937 +#, fuzzy msgid "" "The :keyword:`global` statement is a declaration which holds for the entire " "current code block. It means that the listed identifiers are to be " "interpreted as globals. It would be impossible to assign to a global " -"variable without :keyword:`global`, although free variables may refer to " +"variable without :keyword:`!global`, although free variables may refer to " "globals without being declared global." msgstr "" "L'instruction :keyword:`global` est une déclaration qui couvre l'ensemble du " @@ -1363,9 +1381,10 @@ msgstr "" "variables globales sans avoir été déclarées en tant que telles." #: ../Doc/reference/simple_stmts.rst:943 +#, fuzzy msgid "" "Names listed in a :keyword:`global` statement must not be used in the same " -"code block textually preceding that :keyword:`global` statement." +"code block textually preceding that :keyword:`!global` statement." msgstr "" "Les noms listés dans l'instruction :keyword:`global` ne doivent pas être " "utilisés, dans le même bloc de code, avant l'instruction :keyword:`global`." @@ -1394,13 +1413,14 @@ msgstr "" "avertir." #: ../Doc/reference/simple_stmts.rst:962 +#, fuzzy msgid "" "**Programmer's note:** :keyword:`global` is a directive to the parser. It " -"applies only to code parsed at the same time as the :keyword:`global` " -"statement. In particular, a :keyword:`global` statement contained in a " +"applies only to code parsed at the same time as the :keyword:`!global` " +"statement. In particular, a :keyword:`!global` statement contained in a " "string or code object supplied to the built-in :func:`exec` function does " "not affect the code block *containing* the function call, and code contained " -"in such a string is unaffected by :keyword:`global` statements in the code " +"in such a string is unaffected by :keyword:`!global` statements in the code " "containing the function call. The same applies to the :func:`eval` and :" "func:`compile` functions." msgstr "" @@ -1414,7 +1434,8 @@ msgstr "" "est de même pour les fonctions :func:`eval` et :func:`compile`." #: ../Doc/reference/simple_stmts.rst:974 -msgid "The :keyword:`nonlocal` statement" +#, fuzzy +msgid "The :keyword:`!nonlocal` statement" msgstr "L'instruction :keyword:`nonlocal`" #: ../Doc/reference/simple_stmts.rst:986 diff --git a/tutorial/classes.po b/tutorial/classes.po index 58640a50..295df904 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 22:00+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -1184,10 +1184,11 @@ msgid "" "the ``Mapping`` class and ``_MappingSubclass__update`` in the " "``MappingSubclass`` class respectively." msgstr "" -"L'exemple si dessus fonctionnerait même si ``MappingSubclass`` introduisait un " -"identifieur ``__update`` puisqu'il a été remplacé avec ``_Mapping__update`` " -"dans la classe ``Mapping`` et ``_MappingSubclass__update`` dans la classe " -"``MappingSubclass`` respectivement." +"L'exemple si dessus fonctionnerait même si ``MappingSubclass`` introduisait " +"un identifieur ``__update`` puisqu'il a été remplacé avec " +"``_Mapping__update`` dans la classe ``Mapping`` et " +"``_MappingSubclass__update`` dans la classe ``MappingSubclass`` " +"respectivement." #: ../Doc/tutorial/classes.rst:714 msgid "" @@ -1271,6 +1272,7 @@ msgstr "" "plupart des objets conteneurs en utilisant une instruction :keyword:`for` ::" #: ../Doc/tutorial/classes.rst:780 +#, fuzzy msgid "" "This style of access is clear, concise, and convenient. The use of " "iterators pervades and unifies Python. Behind the scenes, the :keyword:" @@ -1278,9 +1280,9 @@ msgid "" "returns an iterator object that defines the method :meth:`~iterator." "__next__` which accesses elements in the container one at a time. When " "there are no more elements, :meth:`~iterator.__next__` raises a :exc:" -"`StopIteration` exception which tells the :keyword:`for` loop to terminate. " -"You can call the :meth:`~iterator.__next__` method using the :func:`next` " -"built-in function; this example shows how it all works::" +"`StopIteration` exception which tells the :keyword:`!for` loop to " +"terminate. You can call the :meth:`~iterator.__next__` method using the :" +"func:`next` built-in function; this example shows how it all works::" msgstr "" "Ce style est simple, concis et pratique. L'utilisation d'itérateurs imprègne " "et unifie Python. En arrière plan, l'instruction :keyword:`for` appelle la " diff --git a/tutorial/controlflow.po b/tutorial/controlflow.po index ea0219f3..9328322b 100644 --- a/tutorial/controlflow.po +++ b/tutorial/controlflow.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-31 23:54+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -29,7 +29,8 @@ msgstr "" "d'autres langages, mais toujours avec ses propres tournures." #: ../Doc/tutorial/controlflow.rst:14 -msgid ":keyword:`if` Statements" +#, fuzzy +msgid ":keyword:`!if` Statements" msgstr "L'instruction :keyword:`if`" #: ../Doc/tutorial/controlflow.rst:16 @@ -40,12 +41,13 @@ msgstr "" "L'instruction :keyword:`if` est sans doute la plus connue. Par exemple ::" #: ../Doc/tutorial/controlflow.rst:33 +#, fuzzy msgid "" "There can be zero or more :keyword:`elif` parts, and the :keyword:`else` " -"part is optional. The keyword ':keyword:`elif`' is short for 'else if', and " -"is useful to avoid excessive indentation. An :keyword:`if` ... :keyword:" -"`elif` ... :keyword:`elif` ... sequence is a substitute for the ``switch`` " -"or ``case`` statements found in other languages." +"part is optional. The keyword ':keyword:`!elif`' is short for 'else if', " +"and is useful to avoid excessive indentation. An :keyword:`!if` ... :" +"keyword:`!elif` ... :keyword:`!elif` ... sequence is a substitute for the " +"``switch`` or ``case`` statements found in other languages." msgstr "" "Il peut y avoir un nombre quelconque de parties :keyword:`elif` et la " "partie :keyword:`else` est facultative. Le mot clé :keyword:`elif` est un " @@ -55,18 +57,20 @@ msgstr "" "dans d'autres langages." #: ../Doc/tutorial/controlflow.rst:43 -msgid ":keyword:`for` Statements" +#, fuzzy +msgid ":keyword:`!for` Statements" msgstr "L'instruction :keyword:`for`" #: ../Doc/tutorial/controlflow.rst:48 +#, fuzzy msgid "" "The :keyword:`for` statement in Python differs a bit from what you may be " "used to in C or Pascal. Rather than always iterating over an arithmetic " "progression of numbers (like in Pascal), or giving the user the ability to " "define both the iteration step and halting condition (as C), Python's :" -"keyword:`for` statement iterates over the items of any sequence (a list or a " -"string), in the order that they appear in the sequence. For example (no pun " -"intended):" +"keyword:`!for` statement iterates over the items of any sequence (a list or " +"a string), in the order that they appear in the sequence. For example (no " +"pun intended):" msgstr "" "L'instruction :keyword:`for` que propose Python est un peu différente de " "celle que l'on peut trouver en C ou en Pascal. Au lieu de toujours itérer " @@ -179,8 +183,9 @@ msgstr "" "prennent en paramètre." #: ../Doc/tutorial/controlflow.rst:158 +#, fuzzy msgid "" -":keyword:`break` and :keyword:`continue` Statements, and :keyword:`else` " +":keyword:`!break` and :keyword:`!continue` Statements, and :keyword:`!else` " "Clauses on Loops" msgstr "" "Les instructions :keyword:`break`, :keyword:`continue` et les clauses :" @@ -195,11 +200,12 @@ msgstr "" "`for` ou :keyword:`while` la plus profonde." #: ../Doc/tutorial/controlflow.rst:163 +#, fuzzy msgid "" -"Loop statements may have an ``else`` clause; it is executed when the loop " -"terminates through exhaustion of the list (with :keyword:`for`) or when the " -"condition becomes false (with :keyword:`while`), but not when the loop is " -"terminated by a :keyword:`break` statement. This is exemplified by the " +"Loop statements may have an :keyword:`!else` clause; it is executed when the " +"loop terminates through exhaustion of the list (with :keyword:`for`) or when " +"the condition becomes false (with :keyword:`while`), but not when the loop " +"is terminated by a :keyword:`break` statement. This is exemplified by the " "following loop, which searches for prime numbers::" msgstr "" "Les boucles peuvent également disposer d'une instruction ``else`` ; celle-ci " @@ -219,12 +225,13 @@ msgstr "" "keyword:`if`.)" #: ../Doc/tutorial/controlflow.rst:190 +#, fuzzy msgid "" "When used with a loop, the ``else`` clause has more in common with the " "``else`` clause of a :keyword:`try` statement than it does that of :keyword:" -"`if` statements: a :keyword:`try` statement's ``else`` clause runs when no " +"`if` statements: a :keyword:`!try` statement's ``else`` clause runs when no " "exception occurs, and a loop's ``else`` clause runs when no ``break`` " -"occurs. For more on the :keyword:`try` statement and exceptions, see :ref:" +"occurs. For more on the :keyword:`!try` statement and exceptions, see :ref:" "`tut-handling`." msgstr "" "Lorsqu'elle utilisée dans une boucle, la clause ``else`` est donc plus " @@ -244,7 +251,8 @@ msgstr "" "boucle à son itération suivante : ::" #: ../Doc/tutorial/controlflow.rst:217 -msgid ":keyword:`pass` Statements" +#, fuzzy +msgid ":keyword:`!pass` Statements" msgstr "L'instruction :keyword:`pass`" #: ../Doc/tutorial/controlflow.rst:219 @@ -262,10 +270,11 @@ msgstr "" "On utilise couramment cette instruction pour créer des classes minimales : ::" #: ../Doc/tutorial/controlflow.rst:232 +#, fuzzy msgid "" "Another place :keyword:`pass` can be used is as a place-holder for a " "function or conditional body when you are working on new code, allowing you " -"to keep thinking at a more abstract level. The :keyword:`pass` is silently " +"to keep thinking at a more abstract level. The :keyword:`!pass` is silently " "ignored::" msgstr "" "Un autre cas d'utilisation du :keyword:`pass` est de réserver un espace en " @@ -401,9 +410,10 @@ msgstr "" "Python :" #: ../Doc/tutorial/controlflow.rst:333 +#, fuzzy msgid "" "The :keyword:`return` statement returns with a value from a function. :" -"keyword:`return` without an expression argument returns ``None``. Falling " +"keyword:`!return` without an expression argument returns ``None``. Falling " "off the end of a function also returns ``None``." msgstr "" "L'instruction :keyword:`return` provoque la sortie de la fonction en " diff --git a/tutorial/datastructures.po b/tutorial/datastructures.po index 9a2c5a7c..1bea26c6 100644 --- a/tutorial/datastructures.po +++ b/tutorial/datastructures.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 22:05+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -69,8 +69,8 @@ msgid "" "Remove the first item from the list whose value is equal to *x*. It raises " "a :exc:`ValueError` if there is no such item." msgstr "" -"Supprime de la liste le premier élément dont la valeur est égale à *x*. Une " -":exc:`ValueError` est levée s'il n'existe aucun élément avec cette valeur." +"Supprime de la liste le premier élément dont la valeur est égale à *x*. Une :" +"exc:`ValueError` est levée s'il n'existe aucun élément avec cette valeur." #: ../Doc/tutorial/datastructures.rst:50 msgid "" @@ -238,11 +238,12 @@ msgid "which is more concise and readable." msgstr "qui est plus court et lisible." #: ../Doc/tutorial/datastructures.rst:218 +#, fuzzy msgid "" "A list comprehension consists of brackets containing an expression followed " -"by a :keyword:`for` clause, then zero or more :keyword:`for` or :keyword:" -"`if` clauses. The result will be a new list resulting from evaluating the " -"expression in the context of the :keyword:`for` and :keyword:`if` clauses " +"by a :keyword:`!for` clause, then zero or more :keyword:`!for` or :keyword:`!" +"if` clauses. The result will be a new list resulting from evaluating the " +"expression in the context of the :keyword:`!for` and :keyword:`!if` clauses " "which follow it. For example, this listcomp combines the elements of two " "lists if they are not equal::" msgstr "" @@ -335,16 +336,18 @@ msgstr "" "de cette ligne." #: ../Doc/tutorial/datastructures.rst:334 -msgid "The :keyword:`del` statement" +#, fuzzy +msgid "The :keyword:`!del` statement" msgstr "L'instruction :keyword:`del`" #: ../Doc/tutorial/datastructures.rst:336 +#, fuzzy msgid "" "There is a way to remove an item from a list given its index instead of its " "value: the :keyword:`del` statement. This differs from the :meth:`pop` " -"method which returns a value. The :keyword:`del` statement can also be used " -"to remove slices from a list or clear the entire list (which we did earlier " -"by assignment of an empty list to the slice). For example::" +"method which returns a value. The :keyword:`!del` statement can also be " +"used to remove slices from a list or clear the entire list (which we did " +"earlier by assignment of an empty list to the slice). For example::" msgstr "" "Il existe un moyen de retirer un élément d'une liste à partir de sa position " "au lieu de sa valeur : l'instruction :keyword:`del`. Elle diffère de la " diff --git a/tutorial/errors.po b/tutorial/errors.po index 788fc2ce..ff1ffcd9 100644 --- a/tutorial/errors.po +++ b/tutorial/errors.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-12-12 22:06+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -197,11 +197,12 @@ msgstr "" "comme indiqué ci-dessus." #: ../Doc/tutorial/errors.rst:114 +#, fuzzy msgid "" "A :keyword:`try` statement may have more than one except clause, to specify " "handlers for different exceptions. At most one handler will be executed. " "Handlers only handle exceptions that occur in the corresponding try clause, " -"not in other handlers of the same :keyword:`try` statement. An except " +"not in other handlers of the same :keyword:`!try` statement. An except " "clause may name multiple exceptions as a parenthesized tuple, for example::" msgstr "" "Une instruction :keyword:`try` peut comporter plusieurs clauses ``except`` " @@ -263,11 +264,12 @@ msgstr "" "Par exemple : ::" #: ../Doc/tutorial/errors.rst:183 +#, fuzzy msgid "" -"The use of the :keyword:`else` clause is better than adding additional code " +"The use of the :keyword:`!else` clause is better than adding additional code " "to the :keyword:`try` clause because it avoids accidentally catching an " -"exception that wasn't raised by the code being protected by the :keyword:" -"`try` ... :keyword:`except` statement." +"exception that wasn't raised by the code being protected by the :keyword:`!" +"try` ... :keyword:`!except` statement." msgstr "" "Il vaut mieux utiliser la clause :keyword:`else` plutôt que d'ajouter du " "code à la clause :keyword:`try` car cela évite de capturer accidentellement " @@ -425,14 +427,15 @@ msgstr "" "circonstances. Par exemple : ::" #: ../Doc/tutorial/errors.rst:344 +#, fuzzy msgid "" "A *finally clause* is always executed before leaving the :keyword:`try` " "statement, whether an exception has occurred or not. When an exception has " -"occurred in the :keyword:`try` clause and has not been handled by an :" -"keyword:`except` clause (or it has occurred in an :keyword:`except` or :" -"keyword:`else` clause), it is re-raised after the :keyword:`finally` clause " -"has been executed. The :keyword:`finally` clause is also executed \"on the " -"way out\" when any other clause of the :keyword:`try` statement is left via " +"occurred in the :keyword:`!try` clause and has not been handled by an :" +"keyword:`except` clause (or it has occurred in an :keyword:`!except` or :" +"keyword:`!else` clause), it is re-raised after the :keyword:`finally` clause " +"has been executed. The :keyword:`!finally` clause is also executed \"on the " +"way out\" when any other clause of the :keyword:`!try` statement is left via " "a :keyword:`break`, :keyword:`continue` or :keyword:`return` statement. A " "more complicated example::" msgstr "" @@ -448,11 +451,12 @@ msgstr "" "compliqué : ::" #: ../Doc/tutorial/errors.rst:377 +#, fuzzy msgid "" "As you can see, the :keyword:`finally` clause is executed in any event. " "The :exc:`TypeError` raised by dividing two strings is not handled by the :" -"keyword:`except` clause and therefore re-raised after the :keyword:`finally` " -"clause has been executed." +"keyword:`except` clause and therefore re-raised after the :keyword:`!" +"finally` clause has been executed." msgstr "" "Comme vous pouvez le voir, la clause :keyword:`finally` est exécutée dans " "tous les cas. L'exception de type :exc:`TypeError`, déclenchée en divisant " diff --git a/tutorial/inputoutput.po b/tutorial/inputoutput.po index 76ccaae9..fe1a7df9 100644 --- a/tutorial/inputoutput.po +++ b/tutorial/inputoutput.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-10-04 15:54+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -414,12 +414,13 @@ msgstr "" "mode binaire." #: ../Doc/tutorial/inputoutput.rst:317 +#, fuzzy msgid "" "It is good practice to use the :keyword:`with` keyword when dealing with " "file objects. The advantage is that the file is properly closed after its " "suite finishes, even if an exception is raised at some point. Using :" -"keyword:`with` is also much shorter than writing equivalent :keyword:`try`\\ " -"-\\ :keyword:`finally` blocks::" +"keyword:`!with` is also much shorter than writing equivalent :keyword:`try`" +"\\ -\\ :keyword:`finally` blocks::" msgstr "" "C'est une bonne pratique d'utiliser le mot-clé :keyword:`with` lorsque vous " "traitez des fichiers. Vous fermez ainsi toujours correctement le fichier, " diff --git a/tutorial/modules.po b/tutorial/modules.po index afabdf4d..672921ef 100644 --- a/tutorial/modules.po +++ b/tutorial/modules.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-31 23:47+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -187,9 +187,10 @@ msgstr "" "en mode interactif est acceptée pour gagner quelques secondes." #: ../Doc/tutorial/modules.rst:115 +#, fuzzy msgid "" -"If the module name is followed by :keyword:`as`, then the name following :" -"keyword:`as` is bound directly to the imported module." +"If the module name is followed by :keyword:`!as`, then the name following :" +"keyword:`!as` is bound directly to the imported module." msgstr "" "Si le nom du module est suivi par :keyword:`as`, alors le nom suivant :" "keyword:`as` est directement lié au module importé." diff --git a/using/unix.po b/using/unix.po index 77a4dc84..26b5c460 100644 --- a/using/unix.po +++ b/using/unix.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-12-14 10:10+0100\n" +"Last-Translator: Jules Lasne \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: Jules Lasne \n" "X-Generator: Poedit 2.2\n" #: ../Doc/using/unix.rst:7 diff --git a/using/windows.po b/using/windows.po index e94cd8b2..81b1261c 100644 --- a/using/windows.po +++ b/using/windows.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2018-12-17 21:38+0100\n" "PO-Revision-Date: 2018-06-10 15:28+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -24,11 +24,7 @@ msgid "" "should know about when using Python on Microsoft Windows." msgstr "" -#: ../Doc/using/windows.rst:16 -msgid "Installing Python" -msgstr "Installer Python" - -#: ../Doc/using/windows.rst:18 +#: ../Doc/using/windows.rst:15 msgid "" "Unlike most Unix systems and services, Windows does not include a system " "supported installation of Python. To make Python available, the CPython team " @@ -40,11 +36,7 @@ msgid "" "is available for application-local distributions." msgstr "" -#: ../Doc/using/windows.rst:28 -msgid "Supported Versions" -msgstr "Versions supportées" - -#: ../Doc/using/windows.rst:30 +#: ../Doc/using/windows.rst:24 msgid "" "As specified in :pep:`11`, a Python release only supports a Windows platform " "while Microsoft considers the platform under extended support. This means " @@ -52,11 +44,50 @@ msgid "" "Windows XP support then please install Python 3.4." msgstr "" -#: ../Doc/using/windows.rst:36 -msgid "Installation Steps" +#: ../Doc/using/windows.rst:29 +msgid "" +"There are a number of different installers available for Windows, each with " +"certain benefits and downsides." +msgstr "" + +#: ../Doc/using/windows.rst:32 +msgid "" +":ref:`windows-full` contains all components and is the best option for " +"developers using Python for any kind of project." +msgstr "" + +#: ../Doc/using/windows.rst:35 +msgid "" +":ref:`windows-store` is a simple installation of Python that is suitable for " +"running scripts and packages, and using IDLE or other development " +"environments. It requires Windows 10, but can be safely installed without " +"corrupting other programs. It also provides many convenient commands for " +"launching Python and its tools." +msgstr "" + +#: ../Doc/using/windows.rst:41 +msgid "" +":ref:`windows-nuget` are lightweight installations intended for continuous " +"integration systems. It can be used to build Python packages or run scripts, " +"but is not updateable and has no user interface tools." +msgstr "" + +#: ../Doc/using/windows.rst:45 +msgid "" +":ref:`windows-embeddable` is a minimal package of Python suitable for " +"embedding into a larger application." +msgstr "" + +#: ../Doc/using/windows.rst:52 +msgid "The full installer" +msgstr "" + +#: ../Doc/using/windows.rst:55 +#, fuzzy +msgid "Installation steps" msgstr "Étapes d'installation" -#: ../Doc/using/windows.rst:38 +#: ../Doc/using/windows.rst:57 msgid "" "Four Python |version| installers are available for download - two each for " "the 32-bit and 64-bit versions of the interpreter. The *web installer* is a " @@ -67,43 +98,43 @@ msgid "" "ways to avoid downloading during installation." msgstr "" -#: ../Doc/using/windows.rst:46 +#: ../Doc/using/windows.rst:65 msgid "After starting the installer, one of two options may be selected:" msgstr "" -#: ../Doc/using/windows.rst:50 +#: ../Doc/using/windows.rst:69 msgid "If you select \"Install Now\":" msgstr "" -#: ../Doc/using/windows.rst:52 +#: ../Doc/using/windows.rst:71 msgid "" "You will *not* need to be an administrator (unless a system update for the C " "Runtime Library is required or you install the :ref:`launcher` for all users)" msgstr "" -#: ../Doc/using/windows.rst:55 +#: ../Doc/using/windows.rst:74 msgid "Python will be installed into your user directory" msgstr "Python sera installé dans votre répertoire utilisateur" -#: ../Doc/using/windows.rst:56 +#: ../Doc/using/windows.rst:75 msgid "" "The :ref:`launcher` will be installed according to the option at the bottom " "of the first page" msgstr "" -#: ../Doc/using/windows.rst:58 +#: ../Doc/using/windows.rst:77 msgid "The standard library, test suite, launcher and pip will be installed" msgstr "" -#: ../Doc/using/windows.rst:59 +#: ../Doc/using/windows.rst:78 msgid "If selected, the install directory will be added to your :envvar:`PATH`" msgstr "" -#: ../Doc/using/windows.rst:60 +#: ../Doc/using/windows.rst:79 msgid "Shortcuts will only be visible for the current user" msgstr "" -#: ../Doc/using/windows.rst:62 +#: ../Doc/using/windows.rst:81 msgid "" "Selecting \"Customize installation\" will allow you to select the features " "to install, the installation location and other options or post-install " @@ -111,52 +142,52 @@ msgid "" "option." msgstr "" -#: ../Doc/using/windows.rst:66 +#: ../Doc/using/windows.rst:85 msgid "" "To perform an all-users installation, you should select \"Customize " "installation\". In this case:" msgstr "" -#: ../Doc/using/windows.rst:69 +#: ../Doc/using/windows.rst:88 msgid "You may be required to provide administrative credentials or approval" msgstr "" -#: ../Doc/using/windows.rst:70 +#: ../Doc/using/windows.rst:89 msgid "Python will be installed into the Program Files directory" msgstr "" -#: ../Doc/using/windows.rst:71 +#: ../Doc/using/windows.rst:90 msgid "The :ref:`launcher` will be installed into the Windows directory" msgstr "" -#: ../Doc/using/windows.rst:72 +#: ../Doc/using/windows.rst:91 msgid "Optional features may be selected during installation" msgstr "" -#: ../Doc/using/windows.rst:73 +#: ../Doc/using/windows.rst:92 msgid "The standard library can be pre-compiled to bytecode" msgstr "" -#: ../Doc/using/windows.rst:74 +#: ../Doc/using/windows.rst:93 msgid "" "If selected, the install directory will be added to the system :envvar:`PATH`" msgstr "" -#: ../Doc/using/windows.rst:75 +#: ../Doc/using/windows.rst:94 msgid "Shortcuts are available for all users" msgstr "" -#: ../Doc/using/windows.rst:80 +#: ../Doc/using/windows.rst:99 msgid "Removing the MAX_PATH Limitation" msgstr "" -#: ../Doc/using/windows.rst:82 +#: ../Doc/using/windows.rst:101 msgid "" "Windows historically has limited path lengths to 260 characters. This meant " "that paths longer than this would not resolve and errors would result." msgstr "" -#: ../Doc/using/windows.rst:85 +#: ../Doc/using/windows.rst:104 msgid "" "In the latest versions of Windows, this limitation can be expanded to " "approximately 32,000 characters. Your administrator will need to activate " @@ -165,7 +196,7 @@ msgid "" "\\FileSystem@LongPathsEnabled`` to ``1``." msgstr "" -#: ../Doc/using/windows.rst:91 +#: ../Doc/using/windows.rst:110 msgid "" "This allows the :func:`open` function, the :mod:`os` module and most other " "path functionality to accept and return paths longer than 260 characters " @@ -173,19 +204,19 @@ msgid "" "this feature is not available when using bytes.)" msgstr "" -#: ../Doc/using/windows.rst:96 +#: ../Doc/using/windows.rst:115 msgid "After changing the above option, no further configuration is required." msgstr "" -#: ../Doc/using/windows.rst:100 +#: ../Doc/using/windows.rst:119 msgid "Support for long paths was enabled in Python." msgstr "" -#: ../Doc/using/windows.rst:105 +#: ../Doc/using/windows.rst:124 msgid "Installing Without UI" msgstr "" -#: ../Doc/using/windows.rst:107 +#: ../Doc/using/windows.rst:126 msgid "" "All of the options available in the installer UI can also be specified from " "the command line, allowing scripted installers to replicate an installation " @@ -193,7 +224,7 @@ msgid "" "without suppressing the UI in order to change some of the defaults." msgstr "" -#: ../Doc/using/windows.rst:112 +#: ../Doc/using/windows.rst:131 msgid "" "To completely hide the installer UI and install Python silently, pass the ``/" "quiet`` option. To skip past the user interaction but still display progress " @@ -201,277 +232,277 @@ msgid "" "passed to immediately begin removing Python - no prompt will be displayed." msgstr "" -#: ../Doc/using/windows.rst:118 +#: ../Doc/using/windows.rst:137 msgid "" "All other options are passed as ``name=value``, where the value is usually " "``0`` to disable a feature, ``1`` to enable a feature, or a path. The full " "list of available options is shown below." msgstr "" -#: ../Doc/using/windows.rst:123 +#: ../Doc/using/windows.rst:142 msgid "Name" msgstr "Nom" -#: ../Doc/using/windows.rst:123 +#: ../Doc/using/windows.rst:142 msgid "Description" msgstr "Description" -#: ../Doc/using/windows.rst:123 +#: ../Doc/using/windows.rst:142 msgid "Default" msgstr "" -#: ../Doc/using/windows.rst:125 +#: ../Doc/using/windows.rst:144 msgid "InstallAllUsers" msgstr "" -#: ../Doc/using/windows.rst:125 +#: ../Doc/using/windows.rst:144 msgid "Perform a system-wide installation." msgstr "" -#: ../Doc/using/windows.rst:125 ../Doc/using/windows.rst:146 -#: ../Doc/using/windows.rst:149 ../Doc/using/windows.rst:158 -#: ../Doc/using/windows.rst:176 ../Doc/using/windows.rst:184 -#: ../Doc/using/windows.rst:187 +#: ../Doc/using/windows.rst:144 ../Doc/using/windows.rst:165 +#: ../Doc/using/windows.rst:168 ../Doc/using/windows.rst:177 +#: ../Doc/using/windows.rst:195 ../Doc/using/windows.rst:203 +#: ../Doc/using/windows.rst:206 msgid "0" msgstr "0" -#: ../Doc/using/windows.rst:127 +#: ../Doc/using/windows.rst:146 msgid "TargetDir" msgstr "" -#: ../Doc/using/windows.rst:127 +#: ../Doc/using/windows.rst:146 msgid "The installation directory" msgstr "" -#: ../Doc/using/windows.rst:127 +#: ../Doc/using/windows.rst:146 msgid "Selected based on InstallAllUsers" msgstr "" -#: ../Doc/using/windows.rst:130 +#: ../Doc/using/windows.rst:149 msgid "DefaultAllUsersTargetDir" msgstr "" -#: ../Doc/using/windows.rst:130 +#: ../Doc/using/windows.rst:149 msgid "The default installation directory for all-user installs" msgstr "" -#: ../Doc/using/windows.rst:130 +#: ../Doc/using/windows.rst:149 msgid "" ":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\" "\\ Python X.Y`" msgstr "" -#: ../Doc/using/windows.rst:135 +#: ../Doc/using/windows.rst:154 msgid "DefaultJustForMeTargetDir" msgstr "" -#: ../Doc/using/windows.rst:135 +#: ../Doc/using/windows.rst:154 msgid "The default install directory for just-for-me installs" msgstr "" -#: ../Doc/using/windows.rst:135 +#: ../Doc/using/windows.rst:154 msgid "" ":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` or :file:`%LocalAppData%\\" "\\\\ Programs\\\\PythonXY-32`" msgstr "" -#: ../Doc/using/windows.rst:140 +#: ../Doc/using/windows.rst:159 msgid "DefaultCustomTargetDir" msgstr "" -#: ../Doc/using/windows.rst:140 +#: ../Doc/using/windows.rst:159 msgid "The default custom install directory displayed in the UI" msgstr "" -#: ../Doc/using/windows.rst:140 ../Doc/using/windows.rst:189 +#: ../Doc/using/windows.rst:159 ../Doc/using/windows.rst:208 msgid "(empty)" msgstr "" -#: ../Doc/using/windows.rst:143 +#: ../Doc/using/windows.rst:162 msgid "AssociateFiles" msgstr "" -#: ../Doc/using/windows.rst:143 +#: ../Doc/using/windows.rst:162 msgid "Create file associations if the launcher is also installed." msgstr "" -#: ../Doc/using/windows.rst:143 ../Doc/using/windows.rst:153 -#: ../Doc/using/windows.rst:156 ../Doc/using/windows.rst:160 -#: ../Doc/using/windows.rst:163 ../Doc/using/windows.rst:166 -#: ../Doc/using/windows.rst:168 ../Doc/using/windows.rst:171 -#: ../Doc/using/windows.rst:174 ../Doc/using/windows.rst:178 -#: ../Doc/using/windows.rst:180 ../Doc/using/windows.rst:182 +#: ../Doc/using/windows.rst:162 ../Doc/using/windows.rst:172 +#: ../Doc/using/windows.rst:175 ../Doc/using/windows.rst:179 +#: ../Doc/using/windows.rst:182 ../Doc/using/windows.rst:185 +#: ../Doc/using/windows.rst:187 ../Doc/using/windows.rst:190 +#: ../Doc/using/windows.rst:193 ../Doc/using/windows.rst:197 +#: ../Doc/using/windows.rst:199 ../Doc/using/windows.rst:201 msgid "1" msgstr "1" -#: ../Doc/using/windows.rst:146 +#: ../Doc/using/windows.rst:165 msgid "CompileAll" msgstr "" -#: ../Doc/using/windows.rst:146 +#: ../Doc/using/windows.rst:165 msgid "Compile all ``.py`` files to ``.pyc``." msgstr "" -#: ../Doc/using/windows.rst:149 +#: ../Doc/using/windows.rst:168 msgid "PrependPath" msgstr "" -#: ../Doc/using/windows.rst:149 +#: ../Doc/using/windows.rst:168 msgid "" "Add install and Scripts directories to :envvar:`PATH` and ``.PY`` to :envvar:" "`PATHEXT`" msgstr "" -#: ../Doc/using/windows.rst:153 +#: ../Doc/using/windows.rst:172 msgid "Shortcuts" msgstr "" -#: ../Doc/using/windows.rst:153 +#: ../Doc/using/windows.rst:172 msgid "" "Create shortcuts for the interpreter, documentation and IDLE if installed." msgstr "" -#: ../Doc/using/windows.rst:156 +#: ../Doc/using/windows.rst:175 msgid "Include_doc" msgstr "" -#: ../Doc/using/windows.rst:156 +#: ../Doc/using/windows.rst:175 msgid "Install Python manual" msgstr "" -#: ../Doc/using/windows.rst:158 +#: ../Doc/using/windows.rst:177 msgid "Include_debug" msgstr "" -#: ../Doc/using/windows.rst:158 +#: ../Doc/using/windows.rst:177 msgid "Install debug binaries" msgstr "" -#: ../Doc/using/windows.rst:160 +#: ../Doc/using/windows.rst:179 msgid "Include_dev" msgstr "" -#: ../Doc/using/windows.rst:160 +#: ../Doc/using/windows.rst:179 msgid "Install developer headers and libraries" msgstr "" -#: ../Doc/using/windows.rst:163 +#: ../Doc/using/windows.rst:182 msgid "Include_exe" msgstr "" -#: ../Doc/using/windows.rst:163 +#: ../Doc/using/windows.rst:182 msgid "Install :file:`python.exe` and related files" msgstr "" -#: ../Doc/using/windows.rst:166 +#: ../Doc/using/windows.rst:185 msgid "Include_launcher" msgstr "" -#: ../Doc/using/windows.rst:166 +#: ../Doc/using/windows.rst:185 msgid "Install :ref:`launcher`." msgstr "" -#: ../Doc/using/windows.rst:168 +#: ../Doc/using/windows.rst:187 msgid "InstallLauncherAllUsers" msgstr "" -#: ../Doc/using/windows.rst:168 +#: ../Doc/using/windows.rst:187 msgid "Installs :ref:`launcher` for all users." msgstr "" -#: ../Doc/using/windows.rst:171 +#: ../Doc/using/windows.rst:190 msgid "Include_lib" msgstr "" -#: ../Doc/using/windows.rst:171 +#: ../Doc/using/windows.rst:190 msgid "Install standard library and extension modules" msgstr "" -#: ../Doc/using/windows.rst:174 +#: ../Doc/using/windows.rst:193 msgid "Include_pip" msgstr "" -#: ../Doc/using/windows.rst:174 +#: ../Doc/using/windows.rst:193 msgid "Install bundled pip and setuptools" msgstr "" -#: ../Doc/using/windows.rst:176 +#: ../Doc/using/windows.rst:195 msgid "Include_symbols" msgstr "" -#: ../Doc/using/windows.rst:176 +#: ../Doc/using/windows.rst:195 msgid "Install debugging symbols (`*`.pdb)" msgstr "" -#: ../Doc/using/windows.rst:178 +#: ../Doc/using/windows.rst:197 msgid "Include_tcltk" msgstr "" -#: ../Doc/using/windows.rst:178 +#: ../Doc/using/windows.rst:197 msgid "Install Tcl/Tk support and IDLE" msgstr "" -#: ../Doc/using/windows.rst:180 +#: ../Doc/using/windows.rst:199 msgid "Include_test" msgstr "" -#: ../Doc/using/windows.rst:180 +#: ../Doc/using/windows.rst:199 msgid "Install standard library test suite" msgstr "" -#: ../Doc/using/windows.rst:182 +#: ../Doc/using/windows.rst:201 msgid "Include_tools" msgstr "" -#: ../Doc/using/windows.rst:182 +#: ../Doc/using/windows.rst:201 msgid "Install utility scripts" msgstr "" -#: ../Doc/using/windows.rst:184 +#: ../Doc/using/windows.rst:203 msgid "LauncherOnly" msgstr "" -#: ../Doc/using/windows.rst:184 +#: ../Doc/using/windows.rst:203 msgid "Only installs the launcher. This will override most other options." msgstr "" -#: ../Doc/using/windows.rst:187 +#: ../Doc/using/windows.rst:206 msgid "SimpleInstall" msgstr "" -#: ../Doc/using/windows.rst:187 +#: ../Doc/using/windows.rst:206 msgid "Disable most install UI" msgstr "" -#: ../Doc/using/windows.rst:189 +#: ../Doc/using/windows.rst:208 msgid "SimpleInstallDescription" msgstr "" -#: ../Doc/using/windows.rst:189 +#: ../Doc/using/windows.rst:208 msgid "A custom message to display when the simplified install UI is used." msgstr "" -#: ../Doc/using/windows.rst:193 +#: ../Doc/using/windows.rst:212 msgid "" "For example, to silently install a default, system-wide Python installation, " "you could use the following command (from an elevated command prompt)::" msgstr "" -#: ../Doc/using/windows.rst:198 +#: ../Doc/using/windows.rst:217 msgid "" "To allow users to easily install a personal copy of Python without the test " "suite, you could provide a shortcut with the following command. This will " "display a simplified initial page and disallow customization::" msgstr "" -#: ../Doc/using/windows.rst:205 +#: ../Doc/using/windows.rst:224 msgid "" "(Note that omitting the launcher also omits file associations, and is only " "recommended for per-user installs when there is also a system-wide " "installation that included the launcher.)" msgstr "" -#: ../Doc/using/windows.rst:209 +#: ../Doc/using/windows.rst:228 msgid "" "The options listed above can also be provided in a file named ``unattend." "xml`` alongside the executable. This file specifies a list of options and " @@ -480,11 +511,11 @@ msgid "" "strings. This example file sets the same options as the previous example:" msgstr "" -#: ../Doc/using/windows.rst:228 +#: ../Doc/using/windows.rst:247 msgid "Installing Without Downloading" msgstr "" -#: ../Doc/using/windows.rst:230 +#: ../Doc/using/windows.rst:249 msgid "" "As some features of Python are not included in the initial installer " "download, selecting those features may require an internet connection. To " @@ -495,7 +526,7 @@ msgid "" "to be performed it is very useful to have a locally cached copy." msgstr "" -#: ../Doc/using/windows.rst:238 +#: ../Doc/using/windows.rst:257 msgid "" "Execute the following command from Command Prompt to download all possible " "required files. Remember to substitute ``python-3.7.0.exe`` for the actual " @@ -503,23 +534,23 @@ msgid "" "avoid collisions between files with the same name." msgstr "" -#: ../Doc/using/windows.rst:247 +#: ../Doc/using/windows.rst:266 msgid "" "You may also specify the ``/quiet`` option to hide the progress display." msgstr "" -#: ../Doc/using/windows.rst:250 +#: ../Doc/using/windows.rst:269 msgid "Modifying an install" msgstr "" -#: ../Doc/using/windows.rst:252 +#: ../Doc/using/windows.rst:271 msgid "" "Once Python has been installed, you can add or remove features through the " "Programs and Features tool that is part of Windows. Select the Python entry " "and choose \"Uninstall/Change\" to open the installer in maintenance mode." msgstr "" -#: ../Doc/using/windows.rst:256 +#: ../Doc/using/windows.rst:275 msgid "" "\"Modify\" allows you to add or remove features by modifying the checkboxes " "- unchanged checkboxes will not install or remove anything. Some options " @@ -527,141 +558,339 @@ msgid "" "these, you will need to remove and then reinstall Python completely." msgstr "" -#: ../Doc/using/windows.rst:261 +#: ../Doc/using/windows.rst:280 msgid "" "\"Repair\" will verify all the files that should be installed using the " "current settings and replace any that have been removed or modified." msgstr "" -#: ../Doc/using/windows.rst:264 +#: ../Doc/using/windows.rst:283 msgid "" "\"Uninstall\" will remove Python entirely, with the exception of the :ref:" "`launcher`, which has its own entry in Programs and Features." msgstr "" -#: ../Doc/using/windows.rst:268 -msgid "Other Platforms" +#: ../Doc/using/windows.rst:290 +msgid "The Microsoft Store package" msgstr "" -#: ../Doc/using/windows.rst:270 +#: ../Doc/using/windows.rst:295 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). " -"Check :pep:`11` for details on all unsupported platforms." +"The Microsoft Store package is currently considered unstable while its " +"interactions with other tools and other copies of Python are evaluated. " +"While Python itself is stable, this installation method may change its " +"behavior and capabilities during Python 3.7 releases." msgstr "" -#: ../Doc/using/windows.rst:274 -msgid "`Windows CE `_ is still supported." -msgstr "" - -#: ../Doc/using/windows.rst:275 +#: ../Doc/using/windows.rst:300 msgid "" -"The `Cygwin `_ installer offers to install the Python " -"interpreter as well (cf. `Cygwin package source `_, `Maintainer " -"releases `_)" -msgstr "" - -#: ../Doc/using/windows.rst:281 -msgid "" -"See `Python for Windows `_ for " -"detailed information about platforms with pre-compiled installers." -msgstr "" - -#: ../Doc/using/windows.rst:288 -msgid "" -"`Python on XP `_" -msgstr "" - -#: ../Doc/using/windows.rst:287 -msgid "\"7 Minutes to \"Hello World!\"\" by Richard Dooling, 2006" -msgstr "" - -#: ../Doc/using/windows.rst:294 -msgid "" -"`Installing on Windows `_" -msgstr "" - -#: ../Doc/using/windows.rst:291 -msgid "" -"in \"`Dive into Python: Python from novice to pro `_\" by Mark Pilgrim, 2004, ISBN 1-59059-356-1" -msgstr "" - -#: ../Doc/using/windows.rst:298 -msgid "" -"`For Windows users `_" -msgstr "" - -#: ../Doc/using/windows.rst:297 -msgid "" -"in \"Installing Python\" in \"`A Byte of Python `_\" by Swaroop C H, 2003" +"The Microsoft Store package is an easily installable Python interpreter that " +"is intended mainly for interactive use, for example, by students." msgstr "" #: ../Doc/using/windows.rst:303 +msgid "" +"To install the package, ensure you have the latest Windows 10 updates and " +"search the Microsoft Store app for \"Python |version|\". Ensure that the app " +"you select is published by the Python Software Foundation, and install it." +msgstr "" + +#: ../Doc/using/windows.rst:308 +msgid "" +"Python will always be available for free on the Microsoft Store. If you are " +"asked to pay for it, you have not selected the correct package." +msgstr "" + +#: ../Doc/using/windows.rst:311 +msgid "" +"After installation, Python may be launched by finding it in Start. " +"Alternatively, it will be available from any Command Prompt or PowerShell " +"session by typing ``python``. Further, pip and IDLE may be used by typing " +"``pip`` or ``idle``. IDLE can also be found in Start." +msgstr "" + +#: ../Doc/using/windows.rst:316 +msgid "" +"All three commands are also available with version number suffixes, for " +"example, as ``python3.exe`` and ``python3.x.exe`` as well as ``python.exe`` " +"(where ``3.x`` is the specific version you want to launch, such as |" +"version|)." +msgstr "" + +#: ../Doc/using/windows.rst:321 +msgid "" +"Virtual environments can be created with ``python -m venv`` and activated " +"and used as normal." +msgstr "" + +#: ../Doc/using/windows.rst:324 +msgid "" +"If you have installed another version of Python and added it to your " +"``PATH`` variable, it will be available as ``python.exe`` rather than the " +"one from the Microsoft Store. To access the new installation, use ``python3." +"exe`` or ``python3.x.exe``." +msgstr "" + +#: ../Doc/using/windows.rst:329 +msgid "" +"To remove Python, open Settings and use Apps and Features, or else find " +"Python in Start and right-click to select Uninstall. Uninstalling will " +"remove all packages you installed directly into this Python installation, " +"but will not remove any virtual environments" +msgstr "" + +#: ../Doc/using/windows.rst:335 +msgid "Known Issues" +msgstr "" + +#: ../Doc/using/windows.rst:337 +msgid "" +"Currently, the ``py.exe`` launcher cannot be used to start Python when it " +"has been installed from the Microsoft Store." +msgstr "" + +#: ../Doc/using/windows.rst:340 +msgid "" +"Because of restrictions on Microsoft Store apps, Python scripts may not have " +"full write access to shared locations such as ``TEMP`` and the registry. " +"Instead, it will write to a private copy. If your scripts must modify the " +"shared locations, you will need to install the full installer." +msgstr "" + +#: ../Doc/using/windows.rst:349 +msgid "The nuget.org packages" +msgstr "" + +#: ../Doc/using/windows.rst:353 +msgid "" +"The nuget.org package is a reduced size Python environment intended for use " +"on continuous integration and build systems that do not have a system-wide " +"install of Python. While nuget is \"the package manager for .NET\", it also " +"works perfectly fine for packages containing build-time tools." +msgstr "" + +#: ../Doc/using/windows.rst:358 +msgid "" +"Visit `nuget.org `_ for the most up-to-date " +"information on using nuget. What follows is a summary that is sufficient for " +"Python developers." +msgstr "" + +#: ../Doc/using/windows.rst:362 +msgid "" +"The ``nuget.exe`` command line tool may be downloaded directly from " +"``https://aka.ms/nugetclidl``, for example, using curl or PowerShell. With " +"the tool, the latest version of Python for 64-bit or 32-bit machines is " +"installed using::" +msgstr "" + +#: ../Doc/using/windows.rst:370 +msgid "" +"To select a particular version, add a ``-Version 3.x.y``. The output " +"directory may be changed from ``.``, and the package will be installed into " +"a subdirectory. By default, the subdirectory is named the same as the " +"package, and without the ``-ExcludeVersion`` option this name will include " +"the specific version installed. Inside the subdirectory is a ``tools`` " +"directory that contains the Python installation::" +msgstr "" + +#: ../Doc/using/windows.rst:385 +msgid "" +"In general, nuget packages are not upgradeable, and newer versions should be " +"installed side-by-side and referenced using the full path. Alternatively, " +"delete the package directory manually and install it again. Many CI systems " +"will do this automatically if they do not preserve files between builds." +msgstr "" + +#: ../Doc/using/windows.rst:390 +msgid "" +"Alongside the ``tools`` directory is a ``build\\native`` directory. This " +"contains a MSBuild properties file ``python.props`` that can be used in a C+" +"+ project to reference the Python install. Including the settings will " +"automatically use the headers and import libraries in your build." +msgstr "" + +#: ../Doc/using/windows.rst:395 +msgid "" +"The package information pages on nuget.org are `www.nuget.org/packages/" +"python `_ for the 64-bit version and " +"`www.nuget.org/packages/pythonx86 `_ for the 32-bit version." +msgstr "" + +#: ../Doc/using/windows.rst:404 +msgid "The embeddable package" +msgstr "" + +#: ../Doc/using/windows.rst:408 +msgid "" +"The embedded distribution is a ZIP file containing a minimal Python " +"environment. It is intended for acting as part of another application, " +"rather than being directly accessed by end-users." +msgstr "" + +#: ../Doc/using/windows.rst:412 +msgid "" +"When extracted, the embedded distribution is (almost) fully isolated from " +"the user's system, including environment variables, system registry " +"settings, and installed packages. The standard library is included as pre-" +"compiled and optimized ``.pyc`` files in a ZIP, and ``python3.dll``, " +"``python37.dll``, ``python.exe`` and ``pythonw.exe`` are all provided. Tcl/" +"tk (including all dependants, such as Idle), pip and the Python " +"documentation are not included." +msgstr "" + +#: ../Doc/using/windows.rst:421 +msgid "" +"The embedded distribution does not include the `Microsoft C Runtime `_ and it is the " +"responsibility of the application installer to provide this. The runtime may " +"have already been installed on a user's system previously or automatically " +"via Windows Update, and can be detected by finding ``ucrtbase.dll`` in the " +"system directory." +msgstr "" + +#: ../Doc/using/windows.rst:428 +msgid "" +"Third-party packages should be installed by the application installer " +"alongside the embedded distribution. Using pip to manage dependencies as for " +"a regular Python installation is not supported with this distribution, " +"though with some care it may be possible to include and use pip for " +"automatic updates. In general, third-party packages should be treated as " +"part of the application (\"vendoring\") so that the developer can ensure " +"compatibility with newer versions before providing updates to users." +msgstr "" + +#: ../Doc/using/windows.rst:436 +msgid "" +"The two recommended use cases for this distribution are described below." +msgstr "" + +#: ../Doc/using/windows.rst:439 +msgid "Python Application" +msgstr "" + +#: ../Doc/using/windows.rst:441 +msgid "" +"An application written in Python does not necessarily require users to be " +"aware of that fact. The embedded distribution may be used in this case to " +"include a private version of Python in an install package. Depending on how " +"transparent it should be (or conversely, how professional it should appear), " +"there are two options." +msgstr "" + +#: ../Doc/using/windows.rst:447 +msgid "" +"Using a specialized executable as a launcher requires some coding, but " +"provides the most transparent experience for users. With a customized " +"launcher, there are no obvious indications that the program is running on " +"Python: icons can be customized, company and version information can be " +"specified, and file associations behave properly. In most cases, a custom " +"launcher should simply be able to call ``Py_Main`` with a hard-coded command " +"line." +msgstr "" + +#: ../Doc/using/windows.rst:454 +msgid "" +"The simpler approach is to provide a batch file or generated shortcut that " +"directly calls the ``python.exe`` or ``pythonw.exe`` with the required " +"command-line arguments. In this case, the application will appear to be " +"Python and not its actual name, and users may have trouble distinguishing it " +"from other running Python processes or file associations." +msgstr "" + +#: ../Doc/using/windows.rst:460 +msgid "" +"With the latter approach, packages should be installed as directories " +"alongside the Python executable to ensure they are available on the path. " +"With the specialized launcher, packages can be located in other locations as " +"there is an opportunity to specify the search path before launching the " +"application." +msgstr "" + +#: ../Doc/using/windows.rst:466 +msgid "Embedding Python" +msgstr "" + +#: ../Doc/using/windows.rst:468 +msgid "" +"Applications written in native code often require some form of scripting " +"language, and the embedded Python distribution can be used for this purpose. " +"In general, the majority of the application is in native code, and some part " +"will either invoke ``python.exe`` or directly use ``python3.dll``. For " +"either case, extracting the embedded distribution to a subdirectory of the " +"application installation is sufficient to provide a loadable Python " +"interpreter." +msgstr "" + +#: ../Doc/using/windows.rst:475 +msgid "" +"As with the application use, packages can be installed to any location as " +"there is an opportunity to specify search paths before initializing the " +"interpreter. Otherwise, there is no fundamental differences between using " +"the embedded distribution and a regular installation." +msgstr "" + +#: ../Doc/using/windows.rst:482 msgid "Alternative bundles" msgstr "" -#: ../Doc/using/windows.rst:305 +#: ../Doc/using/windows.rst:484 msgid "" "Besides the standard CPython distribution, there are modified packages " "including additional functionality. The following is a list of popular " "versions and their key features:" msgstr "" -#: ../Doc/using/windows.rst:310 +#: ../Doc/using/windows.rst:489 msgid "`ActivePython `_" msgstr "" -#: ../Doc/using/windows.rst:310 +#: ../Doc/using/windows.rst:489 msgid "Installer with multi-platform compatibility, documentation, PyWin32" msgstr "" -#: ../Doc/using/windows.rst:314 +#: ../Doc/using/windows.rst:493 msgid "`Anaconda `_" msgstr "" -#: ../Doc/using/windows.rst:313 +#: ../Doc/using/windows.rst:492 msgid "" "Popular scientific modules (such as numpy, scipy and pandas) and the " "``conda`` package manager." msgstr "" -#: ../Doc/using/windows.rst:318 +#: ../Doc/using/windows.rst:497 msgid "`Canopy `_" msgstr "" -#: ../Doc/using/windows.rst:317 +#: ../Doc/using/windows.rst:496 msgid "" "A \"comprehensive Python analysis environment\" with editors and other " "development tools." msgstr "" -#: ../Doc/using/windows.rst:322 +#: ../Doc/using/windows.rst:501 msgid "`WinPython `_" msgstr "" -#: ../Doc/using/windows.rst:321 +#: ../Doc/using/windows.rst:500 msgid "" "Windows-specific distribution with prebuilt scientific packages and tools " "for building packages." msgstr "" -#: ../Doc/using/windows.rst:324 +#: ../Doc/using/windows.rst:503 msgid "" "Note that these packages may not include the latest versions of Python or " "other libraries, and are not maintained or supported by the core Python team." msgstr "" -#: ../Doc/using/windows.rst:330 +#: ../Doc/using/windows.rst:509 msgid "Configuring Python" msgstr "" -#: ../Doc/using/windows.rst:332 +#: ../Doc/using/windows.rst:511 msgid "" "To run Python conveniently from a command prompt, you might consider " "changing some default environment variables in Windows. While the installer " @@ -670,29 +899,29 @@ msgid "" "use multiple versions of Python, consider using the :ref:`launcher`." msgstr "" -#: ../Doc/using/windows.rst:342 +#: ../Doc/using/windows.rst:521 msgid "Excursus: Setting environment variables" msgstr "" -#: ../Doc/using/windows.rst:344 +#: ../Doc/using/windows.rst:523 msgid "" "Windows allows environment variables to be configured permanently at both " "the User level and the System level, or temporarily in a command prompt." msgstr "" -#: ../Doc/using/windows.rst:347 +#: ../Doc/using/windows.rst:526 msgid "" "To temporarily set environment variables, open Command Prompt and use the :" "command:`set` command:" msgstr "" -#: ../Doc/using/windows.rst:356 +#: ../Doc/using/windows.rst:535 msgid "" "These changes will apply to any further commands executed in that console, " "and will be inherited by any applications started from the console." msgstr "" -#: ../Doc/using/windows.rst:359 +#: ../Doc/using/windows.rst:538 msgid "" "Including the variable name within percent signs will expand to the existing " "value, allowing you to add your new value at either the start or the end. " @@ -701,7 +930,7 @@ msgid "" "launched." msgstr "" -#: ../Doc/using/windows.rst:365 +#: ../Doc/using/windows.rst:544 msgid "" "To permanently modify the default environment variables, click Start and " "search for 'edit environment variables', or open System properties, :" @@ -711,13 +940,13 @@ msgid "" "your machine (i.e. Administrator rights)." msgstr "" -#: ../Doc/using/windows.rst:374 +#: ../Doc/using/windows.rst:553 msgid "" "Windows will concatenate User variables *after* System variables, which may " "cause unexpected results when modifying :envvar:`PATH`." msgstr "" -#: ../Doc/using/windows.rst:377 +#: ../Doc/using/windows.rst:556 msgid "" "The :envvar:`PYTHONPATH` variable is used by all versions of Python 2 and " "Python 3, so you should not permanently configure this variable unless it " @@ -725,60 +954,60 @@ msgid "" "versions." msgstr "" -#: ../Doc/using/windows.rst:385 +#: ../Doc/using/windows.rst:564 msgid "https://www.microsoft.com/en-us/wdsi/help/folder-variables" msgstr "" -#: ../Doc/using/windows.rst:385 +#: ../Doc/using/windows.rst:564 msgid "Environment variables in Windows NT" msgstr "" -#: ../Doc/using/windows.rst:388 +#: ../Doc/using/windows.rst:567 msgid "https://technet.microsoft.com/en-us/library/cc754250.aspx" msgstr "" -#: ../Doc/using/windows.rst:388 +#: ../Doc/using/windows.rst:567 msgid "The SET command, for temporarily modifying environment variables" msgstr "" -#: ../Doc/using/windows.rst:391 +#: ../Doc/using/windows.rst:570 msgid "https://technet.microsoft.com/en-us/library/cc755104.aspx" msgstr "" -#: ../Doc/using/windows.rst:391 +#: ../Doc/using/windows.rst:570 msgid "The SETX command, for permanently modifying environment variables" msgstr "" -#: ../Doc/using/windows.rst:394 +#: ../Doc/using/windows.rst:573 msgid "" "https://support.microsoft.com/en-us/help/310519/how-to-manage-environment-" "variables-in-windows-xp" msgstr "" -#: ../Doc/using/windows.rst:394 +#: ../Doc/using/windows.rst:573 msgid "How To Manage Environment Variables in Windows XP" msgstr "Comment gérer les variables d'environnement sous Windows XP" -#: ../Doc/using/windows.rst:396 +#: ../Doc/using/windows.rst:575 msgid "https://www.chem.gla.ac.uk/~louis/software/faq/q1.html" msgstr "" -#: ../Doc/using/windows.rst:397 +#: ../Doc/using/windows.rst:576 msgid "Setting Environment variables, Louis J. Farrugia" msgstr "Définir les variables d'environnement, Louis J. Farrugia" -#: ../Doc/using/windows.rst:402 +#: ../Doc/using/windows.rst:581 msgid "Finding the Python executable" msgstr "Trouver l'exécutable Python" -#: ../Doc/using/windows.rst:406 +#: ../Doc/using/windows.rst:585 msgid "" "Besides using the automatically created start menu entry for the Python " "interpreter, you might want to start Python in the command prompt. The " "installer has an option to set that up for you." msgstr "" -#: ../Doc/using/windows.rst:410 +#: ../Doc/using/windows.rst:589 msgid "" "On the first page of the installer, an option labelled \"Add Python to PATH" "\" may be selected to have the installer add the install location into the :" @@ -789,7 +1018,7 @@ msgid "" "documentation." msgstr "" -#: ../Doc/using/windows.rst:417 +#: ../Doc/using/windows.rst:596 msgid "" "If you don't enable this option at install time, you can always re-run the " "installer, select Modify, and enable it. Alternatively, you can manually " @@ -800,11 +1029,11 @@ msgid "" "entries already existed)::" msgstr "" -#: ../Doc/using/windows.rst:430 +#: ../Doc/using/windows.rst:609 msgid "Python Launcher for Windows" msgstr "" -#: ../Doc/using/windows.rst:434 +#: ../Doc/using/windows.rst:613 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-" @@ -812,7 +1041,7 @@ msgid "" "locate and execute that version." msgstr "" -#: ../Doc/using/windows.rst:439 +#: ../Doc/using/windows.rst:618 msgid "" "Unlike the :envvar:`PATH` variable, the launcher will correctly select the " "most appropriate version of Python. It will prefer per-user installations " @@ -820,15 +1049,19 @@ msgid "" "most recently installed version." msgstr "" -#: ../Doc/using/windows.rst:445 +#: ../Doc/using/windows.rst:623 +msgid "The launcher was originally specified in :pep:`397`." +msgstr "" + +#: ../Doc/using/windows.rst:626 msgid "Getting started" msgstr "" -#: ../Doc/using/windows.rst:448 +#: ../Doc/using/windows.rst:629 msgid "From the command-line" msgstr "Depuis la ligne de commande" -#: ../Doc/using/windows.rst:452 +#: ../Doc/using/windows.rst:633 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 " @@ -836,45 +1069,45 @@ msgid "" "the launcher is available, execute the following command in Command Prompt:" msgstr "" -#: ../Doc/using/windows.rst:461 +#: ../Doc/using/windows.rst:642 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 " "arguments specified will be sent directly to Python." msgstr "" -#: ../Doc/using/windows.rst:465 +#: ../Doc/using/windows.rst:646 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 " "2.7, try the command:" msgstr "" -#: ../Doc/using/windows.rst:473 +#: ../Doc/using/windows.rst:654 msgid "" "If you want the latest version of Python 2.x you have installed, try the " "command:" msgstr "" -#: ../Doc/using/windows.rst:480 +#: ../Doc/using/windows.rst:661 msgid "You should find the latest version of Python 2.x starts." msgstr "" -#: ../Doc/using/windows.rst:482 +#: ../Doc/using/windows.rst:663 msgid "If you see the following error, you do not have the launcher installed:" msgstr "" -#: ../Doc/using/windows.rst:489 +#: ../Doc/using/windows.rst:670 msgid "" "Per-user installations of Python do not add the launcher to :envvar:`PATH` " "unless the option was selected on installation." msgstr "" -#: ../Doc/using/windows.rst:493 +#: ../Doc/using/windows.rst:674 msgid "Virtual environments" msgstr "" -#: ../Doc/using/windows.rst:497 +#: ../Doc/using/windows.rst:678 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 " @@ -884,27 +1117,27 @@ msgid "" "specify the global Python version." msgstr "" -#: ../Doc/using/windows.rst:505 +#: ../Doc/using/windows.rst:686 msgid "From a script" msgstr "" -#: ../Doc/using/windows.rst:507 +#: ../Doc/using/windows.rst:688 msgid "" "Let's create a test Python script - create a file called ``hello.py`` with " "the following contents" msgstr "" -#: ../Doc/using/windows.rst:516 +#: ../Doc/using/windows.rst:697 msgid "From the directory in which hello.py lives, execute the command:" msgstr "" -#: ../Doc/using/windows.rst:522 +#: ../Doc/using/windows.rst:703 msgid "" "You should notice the version number of your latest Python 2.x installation " "is printed. Now try changing the first line to be:" msgstr "" -#: ../Doc/using/windows.rst:529 +#: ../Doc/using/windows.rst:710 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 " @@ -913,7 +1146,7 @@ msgid "" "information printed." msgstr "" -#: ../Doc/using/windows.rst:535 +#: ../Doc/using/windows.rst:716 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 " @@ -921,11 +1154,11 @@ msgid "" "typically refers to Python 2." msgstr "" -#: ../Doc/using/windows.rst:541 +#: ../Doc/using/windows.rst:722 msgid "From file associations" msgstr "" -#: ../Doc/using/windows.rst:543 +#: ../Doc/using/windows.rst:724 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 " @@ -934,17 +1167,17 @@ msgid "" "have the script specify the version which should be used." msgstr "" -#: ../Doc/using/windows.rst:549 +#: ../Doc/using/windows.rst:730 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." msgstr "" -#: ../Doc/using/windows.rst:553 +#: ../Doc/using/windows.rst:734 msgid "Shebang Lines" msgstr "" -#: ../Doc/using/windows.rst:555 +#: ../Doc/using/windows.rst:736 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 " @@ -954,34 +1187,34 @@ msgid "" "demonstrate their use." msgstr "" -#: ../Doc/using/windows.rst:562 +#: ../Doc/using/windows.rst:743 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 " "which interpreter to use. The supported virtual commands are:" msgstr "" -#: ../Doc/using/windows.rst:566 +#: ../Doc/using/windows.rst:747 msgid "``/usr/bin/env python``" msgstr "" -#: ../Doc/using/windows.rst:567 +#: ../Doc/using/windows.rst:748 msgid "``/usr/bin/python``" msgstr "" -#: ../Doc/using/windows.rst:568 +#: ../Doc/using/windows.rst:749 msgid "``/usr/local/bin/python``" msgstr "" -#: ../Doc/using/windows.rst:569 +#: ../Doc/using/windows.rst:750 msgid "``python``" msgstr "" -#: ../Doc/using/windows.rst:571 +#: ../Doc/using/windows.rst:752 msgid "For example, if the first line of your script starts with" msgstr "" -#: ../Doc/using/windows.rst:577 +#: ../Doc/using/windows.rst:758 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 " @@ -990,7 +1223,7 @@ msgid "" "of the shebang lines starting with ``/usr``." msgstr "" -#: ../Doc/using/windows.rst:583 +#: ../Doc/using/windows.rst:764 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) - for " @@ -998,7 +1231,7 @@ msgid "" "be located and used." msgstr "" -#: ../Doc/using/windows.rst:588 +#: ../Doc/using/windows.rst:769 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 " @@ -1007,51 +1240,51 @@ msgid "" "search." msgstr "" -#: ../Doc/using/windows.rst:594 +#: ../Doc/using/windows.rst:775 msgid "Arguments in shebang lines" msgstr "" -#: ../Doc/using/windows.rst:596 +#: ../Doc/using/windows.rst:777 msgid "" "The shebang lines can also specify additional options to be passed to the " "Python interpreter. For example, if you have a shebang line:" msgstr "" -#: ../Doc/using/windows.rst:603 +#: ../Doc/using/windows.rst:784 msgid "Then Python will be started with the ``-v`` option" msgstr "" -#: ../Doc/using/windows.rst:606 +#: ../Doc/using/windows.rst:787 msgid "Customization" msgstr "" -#: ../Doc/using/windows.rst:609 +#: ../Doc/using/windows.rst:790 msgid "Customization via INI files" msgstr "" -#: ../Doc/using/windows.rst:611 +#: ../Doc/using/windows.rst:792 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 " "calling the Windows function ``SHGetFolderPath`` with " "``CSIDL_LOCAL_APPDATA``) and ``py.ini`` in the same directory as the " "launcher. The same .ini files are used for both the 'console' version of the " -"launcher (i.e. py.exe) and for the 'windows' version (i.e. pyw.exe)" +"launcher (i.e. py.exe) and for the 'windows' version (i.e. pyw.exe)." msgstr "" -#: ../Doc/using/windows.rst:618 +#: ../Doc/using/windows.rst:799 msgid "" "Customization specified in the \"application directory\" will have " "precedence over the one next to the executable, so a user, who may not have " "write access to the .ini file next to the launcher, can override commands in " -"that global .ini file)" +"that global .ini file." msgstr "" -#: ../Doc/using/windows.rst:623 +#: ../Doc/using/windows.rst:804 msgid "Customizing default Python versions" msgstr "" -#: ../Doc/using/windows.rst:625 +#: ../Doc/using/windows.rst:806 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 " @@ -1061,13 +1294,13 @@ msgid "" "implementation of that version be used." msgstr "" -#: ../Doc/using/windows.rst:632 +#: ../Doc/using/windows.rst:813 msgid "" "For example, a shebang line of ``#!python`` has no version qualifier, while " "``#!python3`` has a version qualifier which specifies only a major version." msgstr "" -#: ../Doc/using/windows.rst:635 +#: ../Doc/using/windows.rst:816 msgid "" "If no version qualifiers are found in a command, the environment variable " "``PY_PYTHON`` can be set to specify the default version qualifier - the " @@ -1076,7 +1309,7 @@ msgid "" "minor-32." msgstr "" -#: ../Doc/using/windows.rst:640 +#: ../Doc/using/windows.rst:821 msgid "" "If no minor version qualifiers are found, the environment variable " "``PY_PYTHON{major}`` (where ``{major}`` is the current major version " @@ -1087,7 +1320,7 @@ msgid "" "version in that family." msgstr "" -#: ../Doc/using/windows.rst:648 +#: ../Doc/using/windows.rst:829 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 " @@ -1101,30 +1334,30 @@ msgid "" "be used on a version specifier to change this behaviour." msgstr "" -#: ../Doc/using/windows.rst:659 +#: ../Doc/using/windows.rst:840 msgid "Examples:" msgstr "Exemples : ::" -#: ../Doc/using/windows.rst:661 +#: ../Doc/using/windows.rst:842 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 " "use the latest Python 3.x installed." msgstr "" -#: ../Doc/using/windows.rst:665 +#: ../Doc/using/windows.rst:846 msgid "" "The commands ``python3.1`` and ``python2.7`` will not consult any options at " "all as the versions are fully specified." msgstr "" -#: ../Doc/using/windows.rst:668 +#: ../Doc/using/windows.rst:849 msgid "" "If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use " "the latest installed Python 3 version." msgstr "" -#: ../Doc/using/windows.rst:671 +#: ../Doc/using/windows.rst:852 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 " @@ -1132,13 +1365,13 @@ msgid "" "specified.)" msgstr "" -#: ../Doc/using/windows.rst:676 +#: ../Doc/using/windows.rst:857 msgid "" "If ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1``, the commands ``python`` and " "``python3`` will both use specifically 3.1" msgstr "" -#: ../Doc/using/windows.rst:679 +#: ../Doc/using/windows.rst:860 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 " @@ -1148,25 +1381,25 @@ msgid "" "will override things specified in the INI file." msgstr "" -#: ../Doc/using/windows.rst:686 +#: ../Doc/using/windows.rst:867 msgid "For example:" msgstr "Par exemple ::" -#: ../Doc/using/windows.rst:688 +#: ../Doc/using/windows.rst:869 msgid "Setting ``PY_PYTHON=3.1`` is equivalent to the INI file containing:" msgstr "" -#: ../Doc/using/windows.rst:695 +#: ../Doc/using/windows.rst:876 msgid "" "Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1`` is equivalent to the INI file " "containing:" msgstr "" -#: ../Doc/using/windows.rst:705 +#: ../Doc/using/windows.rst:886 msgid "Diagnostics" msgstr "" -#: ../Doc/using/windows.rst:707 +#: ../Doc/using/windows.rst:888 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). " @@ -1176,11 +1409,11 @@ msgid "" "target Python." msgstr "" -#: ../Doc/using/windows.rst:719 +#: ../Doc/using/windows.rst:900 msgid "Finding modules" msgstr "" -#: ../Doc/using/windows.rst:721 +#: ../Doc/using/windows.rst:902 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:\\" @@ -1189,7 +1422,7 @@ msgid "" "\\\\site-packages\\\\`." msgstr "" -#: ../Doc/using/windows.rst:727 +#: ../Doc/using/windows.rst:908 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``) " @@ -1198,7 +1431,7 @@ msgid "" "allows paths to be restricted for any program loading the runtime if desired." msgstr "" -#: ../Doc/using/windows.rst:733 +#: ../Doc/using/windows.rst:914 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 " @@ -1208,25 +1441,25 @@ msgid "" "arbitrary code cannot be specified." msgstr "" -#: ../Doc/using/windows.rst:740 +#: ../Doc/using/windows.rst:921 msgid "" "Note that ``.pth`` files (without leading underscore) will be processed " "normally by the :mod:`site` module when ``import site`` has been specified." msgstr "" -#: ../Doc/using/windows.rst:743 +#: ../Doc/using/windows.rst:924 msgid "" "When no ``._pth`` file is found, this is how :data:`sys.path` is populated " "on Windows:" msgstr "" -#: ../Doc/using/windows.rst:746 +#: ../Doc/using/windows.rst:927 msgid "" "An empty entry is added at the start, which corresponds to the current " "directory." msgstr "" -#: ../Doc/using/windows.rst:749 +#: ../Doc/using/windows.rst:930 msgid "" "If the environment variable :envvar:`PYTHONPATH` exists, as described in :" "ref:`using-on-envvars`, its entries are added next. Note that on Windows, " @@ -1234,7 +1467,7 @@ msgid "" "from the colon used in drive identifiers (``C:\\`` etc.)." msgstr "" -#: ../Doc/using/windows.rst:754 +#: ../Doc/using/windows.rst:935 msgid "" "Additional \"application paths\" can be added in the registry as subkeys of :" "samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\\\PythonPath` under " @@ -1244,7 +1477,7 @@ msgid "" "installers only use HKLM, so HKCU is typically empty.)" msgstr "" -#: ../Doc/using/windows.rst:761 +#: ../Doc/using/windows.rst:942 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 " @@ -1255,31 +1488,31 @@ msgid "" "PythonPath stored in the registry." msgstr "" -#: ../Doc/using/windows.rst:769 +#: ../Doc/using/windows.rst:950 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 " "with relative entries is used (e.g. ``.\\Lib;.\\plat-win``, etc)." msgstr "" -#: ../Doc/using/windows.rst:773 +#: ../Doc/using/windows.rst:954 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:" msgstr "" -#: ../Doc/using/windows.rst:776 +#: ../Doc/using/windows.rst:957 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 " "home location." msgstr "" -#: ../Doc/using/windows.rst:780 +#: ../Doc/using/windows.rst:961 msgid "The end result of all this is:" msgstr "" -#: ../Doc/using/windows.rst:782 +#: ../Doc/using/windows.rst:963 msgid "" "When running :file:`python.exe`, or any other .exe in the main Python " "directory (either an installed version, or directly from the PCbuild " @@ -1287,7 +1520,7 @@ msgid "" "ignored. Other \"application paths\" in the registry are always read." msgstr "" -#: ../Doc/using/windows.rst:787 +#: ../Doc/using/windows.rst:968 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 " @@ -1295,20 +1528,20 @@ msgid "" "always read." msgstr "" -#: ../Doc/using/windows.rst:791 +#: ../Doc/using/windows.rst:972 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 " "relative, paths." msgstr "" -#: ../Doc/using/windows.rst:795 +#: ../Doc/using/windows.rst:976 msgid "" "For those who want to bundle Python into their application or distribution, " "the following advice will prevent conflicts with other installations:" msgstr "" -#: ../Doc/using/windows.rst:798 +#: ../Doc/using/windows.rst:979 msgid "" "Include a ``._pth`` file alongside your executable containing the " "directories to include. This will ignore paths listed in the registry and " @@ -1316,20 +1549,20 @@ msgid "" "listed." msgstr "" -#: ../Doc/using/windows.rst:803 +#: ../Doc/using/windows.rst:984 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:" "`Py_SetProgramName` before :c:func:`Py_Initialize`." msgstr "" -#: ../Doc/using/windows.rst:807 +#: ../Doc/using/windows.rst:988 msgid "" "Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` " "before launching :file:`python.exe` from your application." msgstr "" -#: ../Doc/using/windows.rst:810 +#: ../Doc/using/windows.rst:991 msgid "" "If you cannot use the previous suggestions (for example, you are a " "distribution that allows people to run :file:`python.exe` directly), ensure " @@ -1338,7 +1571,7 @@ msgid "" "correctly named ZIP file will be detected instead.)" msgstr "" -#: ../Doc/using/windows.rst:816 +#: ../Doc/using/windows.rst:997 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 " @@ -1348,19 +1581,19 @@ msgid "" "packages." msgstr "" -#: ../Doc/using/windows.rst:825 +#: ../Doc/using/windows.rst:1006 msgid "" "Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv." "cfg``." msgstr "" -#: ../Doc/using/windows.rst:827 +#: ../Doc/using/windows.rst:1008 msgid "" "Adds ``pythonXX.zip`` as a potential landmark when directly adjacent to the " "executable." msgstr "" -#: ../Doc/using/windows.rst:833 +#: ../Doc/using/windows.rst:1014 msgid "" "Modules specified in the registry under ``Modules`` (not ``PythonPath``) may " "be imported by :class:`importlib.machinery.WindowsRegistryFinder`. This " @@ -1368,28 +1601,28 @@ msgid "" "explicitly added to :attr:`sys.meta_path` in the future." msgstr "" -#: ../Doc/using/windows.rst:839 +#: ../Doc/using/windows.rst:1020 msgid "Additional modules" msgstr "" -#: ../Doc/using/windows.rst:841 +#: ../Doc/using/windows.rst:1022 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 " "standard library and external, and snippets exist to use these features." msgstr "" -#: ../Doc/using/windows.rst:845 +#: ../Doc/using/windows.rst:1026 msgid "" "The Windows-specific standard modules are documented in :ref:`mswin-specific-" "services`." msgstr "" -#: ../Doc/using/windows.rst:849 +#: ../Doc/using/windows.rst:1030 msgid "PyWin32" msgstr "PyWin32" -#: ../Doc/using/windows.rst:851 +#: ../Doc/using/windows.rst:1032 msgid "" "The `PyWin32 `_ module by Mark Hammond is " "a collection of modules for advanced Windows-specific support. This " @@ -1399,23 +1632,23 @@ msgstr "" "une collection de modules pour un support avancé spécifique à Windows. Cela " "inclut les services pour :" -#: ../Doc/using/windows.rst:855 +#: ../Doc/using/windows.rst:1036 msgid "`Component Object Model `_ (COM)" msgstr "`Component Object Model `_ (COM)" -#: ../Doc/using/windows.rst:856 +#: ../Doc/using/windows.rst:1037 msgid "Win32 API calls" msgstr "Appels à l'API Win32" -#: ../Doc/using/windows.rst:857 +#: ../Doc/using/windows.rst:1038 msgid "Registry" msgstr "Registre" -#: ../Doc/using/windows.rst:858 +#: ../Doc/using/windows.rst:1039 msgid "Event log" msgstr "journal d'événement" -#: ../Doc/using/windows.rst:859 +#: ../Doc/using/windows.rst:1040 msgid "" "`Microsoft Foundation Classes `_ (MFC) user interfaces" @@ -1423,7 +1656,7 @@ msgstr "" "`Microsoft Foundation Classes `_ (MFC) interfaces utilisateur" -#: ../Doc/using/windows.rst:862 +#: ../Doc/using/windows.rst:1043 msgid "" "`PythonWin `_ is a sample MFC application shipped with PyWin32. " @@ -1433,28 +1666,28 @@ msgstr "" "windows/pythonwin/>`_ est une exemple d'application MFC livrée avec PyWin32. " "Il s'agit d'un IDE embarqué avec débogueur intégré." -#: ../Doc/using/windows.rst:869 +#: ../Doc/using/windows.rst:1050 msgid "" "`Win32 How Do I...? `_" msgstr "" -#: ../Doc/using/windows.rst:869 +#: ../Doc/using/windows.rst:1050 msgid "by Tim Golden" msgstr "par Tim Golden" -#: ../Doc/using/windows.rst:871 +#: ../Doc/using/windows.rst:1052 msgid "`Python and COM `_" msgstr "" -#: ../Doc/using/windows.rst:872 +#: ../Doc/using/windows.rst:1053 msgid "by David and Paul Boddie" msgstr "par David et Paul Boddie" -#: ../Doc/using/windows.rst:876 +#: ../Doc/using/windows.rst:1057 msgid "cx_Freeze" msgstr "" -#: ../Doc/using/windows.rst:878 +#: ../Doc/using/windows.rst:1059 msgid "" "`cx_Freeze `_ is a :mod:" "`distutils` extension (see :ref:`extending-distutils`) which wraps Python " @@ -1463,28 +1696,28 @@ msgid "" "users to install Python." msgstr "" -#: ../Doc/using/windows.rst:886 +#: ../Doc/using/windows.rst:1067 msgid "WConio" msgstr "WConio" -#: ../Doc/using/windows.rst:888 +#: ../Doc/using/windows.rst:1069 msgid "" "Since Python's advanced terminal handling layer, :mod:`curses`, is " "restricted to Unix-like systems, there is a library exclusive to Windows as " "well: Windows Console I/O for Python." msgstr "" -#: ../Doc/using/windows.rst:892 +#: ../Doc/using/windows.rst:1073 msgid "" "`WConio `_ is a wrapper " "for Turbo-C's :file:`CONIO.H`, used to create text user interfaces." msgstr "" -#: ../Doc/using/windows.rst:898 +#: ../Doc/using/windows.rst:1079 msgid "Compiling Python on Windows" msgstr "Compiler Python sous Windows" -#: ../Doc/using/windows.rst:900 +#: ../Doc/using/windows.rst:1081 msgid "" "If you want to compile CPython yourself, first thing you should do is get " "the `source `_. You can download " @@ -1492,14 +1725,14 @@ msgid "" "devguide.python.org/setup/#getting-the-source-code>`_." msgstr "" -#: ../Doc/using/windows.rst:905 +#: ../Doc/using/windows.rst:1086 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 " "releases. These files are in the :file:`PCbuild` directory." msgstr "" -#: ../Doc/using/windows.rst:909 +#: ../Doc/using/windows.rst:1090 msgid "" "Check :file:`PCbuild/readme.txt` for general information on the build " "process." @@ -1507,182 +1740,80 @@ msgstr "" "Consultez :file:`PC/readme.txt` pour des informations générales sur le " "processus de construction." -#: ../Doc/using/windows.rst:912 +#: ../Doc/using/windows.rst:1093 msgid "For extension modules, consult :ref:`building-on-windows`." msgstr "" -#: ../Doc/using/windows.rst:919 +#: ../Doc/using/windows.rst:1100 msgid "" "`Python + Windows + distutils + SWIG + gcc MinGW `_" msgstr "" -#: ../Doc/using/windows.rst:917 +#: ../Doc/using/windows.rst:1098 msgid "" "or \"Creating Python extensions in C/C++ with SWIG and compiling them with " "MinGW gcc under Windows\" or \"Installing Python extension with distutils " "and without Microsoft Visual C++\" by Sébastien Sauvage, 2003" msgstr "" -#: ../Doc/using/windows.rst:921 +#: ../Doc/using/windows.rst:1102 msgid "" "`MingW -- Python extensions `_" msgstr "" -#: ../Doc/using/windows.rst:922 +#: ../Doc/using/windows.rst:1103 msgid "by Trent Apted et al, 2007" msgstr "par Trent Apted et al, 2007" -#: ../Doc/using/windows.rst:926 -msgid "Embedded Distribution" +#: ../Doc/using/windows.rst:1107 +msgid "Other Platforms" msgstr "" -#: ../Doc/using/windows.rst:930 +#: ../Doc/using/windows.rst:1109 msgid "" -"The embedded distribution is a ZIP file containing a minimal Python " -"environment. It is intended for acting as part of another application, " -"rather than being directly accessed by end-users." +"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). " +"Check :pep:`11` for details on all unsupported platforms." msgstr "" -#: ../Doc/using/windows.rst:934 +#: ../Doc/using/windows.rst:1113 +msgid "`Windows CE `_ is still supported." +msgstr "" + +#: ../Doc/using/windows.rst:1114 msgid "" -"When extracted, the embedded distribution is (almost) fully isolated from " -"the user's system, including environment variables, system registry " -"settings, and installed packages. The standard library is included as pre-" -"compiled and optimized ``.pyc`` files in a ZIP, and ``python3.dll``, " -"``python37.dll``, ``python.exe`` and ``pythonw.exe`` are all provided. Tcl/" -"tk (including all dependants, such as Idle), pip and the Python " -"documentation are not included." +"The `Cygwin `_ installer offers to install the Python " +"interpreter as well (cf. `Cygwin package source `_, `Maintainer " +"releases `_)" msgstr "" -#: ../Doc/using/windows.rst:943 +#: ../Doc/using/windows.rst:1120 msgid "" -"The embedded distribution does not include the `Microsoft C Runtime `_ and it is the " -"responsibility of the application installer to provide this. The runtime may " -"have already been installed on a user's system previously or automatically " -"via Windows Update, and can be detected by finding ``ucrtbase.dll`` in the " -"system directory." +"See `Python for Windows `_ for " +"detailed information about platforms with pre-compiled installers." msgstr "" -#: ../Doc/using/windows.rst:950 -msgid "" -"Third-party packages should be installed by the application installer " -"alongside the embedded distribution. Using pip to manage dependencies as for " -"a regular Python installation is not supported with this distribution, " -"though with some care it may be possible to include and use pip for " -"automatic updates. In general, third-party packages should be treated as " -"part of the application (\"vendoring\") so that the developer can ensure " -"compatibility with newer versions before providing updates to users." -msgstr "" +#~ msgid "Installing Python" +#~ msgstr "Installer Python" -#: ../Doc/using/windows.rst:958 -msgid "" -"The two recommended use cases for this distribution are described below." -msgstr "" +#~ msgid "Supported Versions" +#~ msgstr "Versions supportées" -#: ../Doc/using/windows.rst:961 -msgid "Python Application" -msgstr "" +#~ msgid "Other resources" +#~ msgstr "Autres ressources" -#: ../Doc/using/windows.rst:963 -msgid "" -"An application written in Python does not necessarily require users to be " -"aware of that fact. The embedded distribution may be used in this case to " -"include a private version of Python in an install package. Depending on how " -"transparent it should be (or conversely, how professional it should appear), " -"there are two options." -msgstr "" +#~ msgid "" +#~ "\"Help for Windows Programmers\" by Mark Hammond and Andy Robinson, " +#~ "O'Reilly Media, 2000, ISBN 1-56592-621-8" +#~ msgstr "" +#~ "\"Help for Windows Programmers\" de Mark Hammond et Andy Robinson, " +#~ "O'Reilly Media, 2000, ISBN 1-56592-621-8" -#: ../Doc/using/windows.rst:969 -msgid "" -"Using a specialized executable as a launcher requires some coding, but " -"provides the most transparent experience for users. With a customized " -"launcher, there are no obvious indications that the program is running on " -"Python: icons can be customized, company and version information can be " -"specified, and file associations behave properly. In most cases, a custom " -"launcher should simply be able to call ``Py_Main`` with a hard-coded command " -"line." -msgstr "" - -#: ../Doc/using/windows.rst:976 -msgid "" -"The simpler approach is to provide a batch file or generated shortcut that " -"directly calls the ``python.exe`` or ``pythonw.exe`` with the required " -"command-line arguments. In this case, the application will appear to be " -"Python and not its actual name, and users may have trouble distinguishing it " -"from other running Python processes or file associations." -msgstr "" - -#: ../Doc/using/windows.rst:982 -msgid "" -"With the latter approach, packages should be installed as directories " -"alongside the Python executable to ensure they are available on the path. " -"With the specialized launcher, packages can be located in other locations as " -"there is an opportunity to specify the search path before launching the " -"application." -msgstr "" - -#: ../Doc/using/windows.rst:988 -msgid "Embedding Python" -msgstr "" - -#: ../Doc/using/windows.rst:990 -msgid "" -"Applications written in native code often require some form of scripting " -"language, and the embedded Python distribution can be used for this purpose. " -"In general, the majority of the application is in native code, and some part " -"will either invoke ``python.exe`` or directly use ``python3.dll``. For " -"either case, extracting the embedded distribution to a subdirectory of the " -"application installation is sufficient to provide a loadable Python " -"interpreter." -msgstr "" - -#: ../Doc/using/windows.rst:997 -msgid "" -"As with the application use, packages can be installed to any location as " -"there is an opportunity to specify search paths before initializing the " -"interpreter. Otherwise, there is no fundamental differences between using " -"the embedded distribution and a regular installation." -msgstr "" - -#: ../Doc/using/windows.rst:1003 -msgid "Other resources" -msgstr "Autres ressources" - -#: ../Doc/using/windows.rst:1010 -msgid "" -"`Python Programming On Win32 `_" -msgstr "" - -#: ../Doc/using/windows.rst:1008 -msgid "" -"\"Help for Windows Programmers\" by Mark Hammond and Andy Robinson, O'Reilly " -"Media, 2000, ISBN 1-56592-621-8" -msgstr "" -"\"Help for Windows Programmers\" de Mark Hammond et Andy Robinson, O'Reilly " -"Media, 2000, ISBN 1-56592-621-8" - -#: ../Doc/using/windows.rst:1013 -msgid "" -"`A Python for Windows Tutorial `_" -msgstr "" - -#: ../Doc/using/windows.rst:1013 -msgid "by Amanda Birmingham, 2004" -msgstr "par Amanda Birmingham, 2004" - -#: ../Doc/using/windows.rst:1015 -msgid ":pep:`397` - Python launcher for Windows" -msgstr "" - -#: ../Doc/using/windows.rst:1016 -msgid "" -"The proposal for the launcher to be included in the Python distribution." -msgstr "" +#~ msgid "by Amanda Birmingham, 2004" +#~ msgstr "par Amanda Birmingham, 2004" #, fuzzy #~ msgid "Installing on Windows" diff --git a/whatsnew/2.0.po b/whatsnew/2.0.po index 4919c5c4..3297428f 100644 --- a/whatsnew/2.0.po +++ b/whatsnew/2.0.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-05-02 00:10+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-31 23:43+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -421,7 +421,7 @@ msgstr "" #: ../Doc/whatsnew/2.0.rst:286 msgid "" "Because of Python's scoping rules, a default argument is used so that the " -"anonymous function created by the :keyword:`lambda` statement knows what " +"anonymous function created by the :keyword:`lambda` expression knows what " "substring is being searched for. List comprehensions make this cleaner::" msgstr "" @@ -431,12 +431,12 @@ msgstr "Les compréhensions de liste sont de la forme suivante ::" #: ../Doc/whatsnew/2.0.rst:299 msgid "" -"The :keyword:`for`...\\ :keyword:`in` clauses contain the sequences to be " +"The :keyword:`!for`...\\ :keyword:`!in` clauses contain the sequences to be " "iterated over. The sequences do not have to be the same length, because " "they are *not* iterated over in parallel, but from left to right; this is " "explained more clearly in the following paragraphs. The elements of the " "generated list will be the successive values of *expression*. The final :" -"keyword:`if` clause is optional; if present, *expression* is only evaluated " +"keyword:`!if` clause is optional; if present, *expression* is only evaluated " "and added to the result if *condition* is true." msgstr "" @@ -450,7 +450,7 @@ msgstr "" #: ../Doc/whatsnew/2.0.rst:319 msgid "" -"This means that when there are multiple :keyword:`for`...\\ :keyword:`in` " +"This means that when there are multiple :keyword:`!for`...\\ :keyword:`!in` " "clauses, the resulting list will be equal to the product of the lengths of " "all the sequences. If you have two lists of length 3, the output list is 9 " "elements long::" @@ -709,9 +709,9 @@ msgid "" "computes this by simply trying every index of the sequence until either " "*obj* is found or an :exc:`IndexError` is encountered. Moshe Zadka " "contributed a patch which adds a :meth:`__contains__` magic method for " -"providing a custom implementation for :keyword:`in`. Additionally, new built-" -"in objects written in C can define what :keyword:`in` means for them via a " -"new slot in the sequence protocol." +"providing a custom implementation for :keyword:`!in`. Additionally, new " +"built-in objects written in C can define what :keyword:`!in` means for them " +"via a new slot in the sequence protocol." msgstr "" #: ../Doc/whatsnew/2.0.rst:547 diff --git a/whatsnew/2.1.po b/whatsnew/2.1.po index c9eda8b5..e2350111 100644 --- a/whatsnew/2.1.po +++ b/whatsnew/2.1.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-05-02 00:10+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-31 23:42+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -76,7 +76,7 @@ msgid "" "because the binding of the name ``g`` isn't in either its local namespace or " "in the module-level namespace. This isn't much of a problem in practice " "(how often do you recursively define interior functions like this?), but " -"this also made using the :keyword:`lambda` statement clumsier, and this was " +"this also made using the :keyword:`lambda` expression clumsier, and this was " "a problem in practice. In code which uses :keyword:`lambda` you can often " "find local variables being copied by passing them as the default values of " "arguments. ::" @@ -187,8 +187,8 @@ msgid "" "While it looks like a normal :keyword:`import` statement, it's not; there " "are strict rules on where such a future statement can be put. They can only " "be at the top of a module, and must precede any Python code or regular :" -"keyword:`import` statements. This is because such statements can affect how " -"the Python bytecode compiler parses code and generates bytecode, so they " +"keyword:`!import` statements. This is because such statements can affect " +"how the Python bytecode compiler parses code and generates bytecode, so they " "must precede any statement that will result in bytecodes being produced." msgstr "" diff --git a/whatsnew/2.2.po b/whatsnew/2.2.po index dd9819b0..db201a2c 100644 --- a/whatsnew/2.2.po +++ b/whatsnew/2.2.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-08-01 00:07+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -176,7 +176,7 @@ msgid "" "This means that :keyword:`class` statements that don't have any base classes " "are always classic classes in Python 2.2. (Actually you can also change " "this by setting a module-level variable named :attr:`__metaclass__` --- see :" -"pep:`253` for the details --- but it's easier to just subclass :keyword:" +"pep:`253` for the details --- but it's easier to just subclass :class:" "`object`.)" msgstr "" @@ -632,7 +632,7 @@ msgstr "" #: ../Doc/whatsnew/2.2.rst:562 msgid "" "A new keyword, :keyword:`yield`, was introduced for generators. Any " -"function containing a :keyword:`yield` statement is a generator function; " +"function containing a :keyword:`!yield` statement is a generator function; " "this is detected by Python's bytecode compiler which compiles the function " "specially as a result. Because a new keyword was introduced, generators " "must be explicitly enabled in a module by including a ``from __future__ " @@ -646,14 +646,14 @@ msgid "" "instead it returns a generator object that supports the iterator protocol. " "On executing the :keyword:`yield` statement, the generator outputs the value " "of ``i``, similar to a :keyword:`return` statement. The big difference " -"between :keyword:`yield` and a :keyword:`return` statement is that on " -"reaching a :keyword:`yield` the generator's state of execution is suspended " +"between :keyword:`!yield` and a :keyword:`!return` statement is that on " +"reaching a :keyword:`!yield` the generator's state of execution is suspended " "and local variables are preserved. On the next call to the generator's " "``next()`` method, the function will resume executing immediately after the :" -"keyword:`yield` statement. (For complicated reasons, the :keyword:`yield` " -"statement isn't allowed inside the :keyword:`try` block of a :keyword:" +"keyword:`!yield` statement. (For complicated reasons, the :keyword:`!yield` " +"statement isn't allowed inside the :keyword:`!try` block of a :keyword:" "`try`...\\ :keyword:`finally` statement; read :pep:`255` for a full " -"explanation of the interaction between :keyword:`yield` and exceptions.)" +"explanation of the interaction between :keyword:`!yield` and exceptions.)" msgstr "" #: ../Doc/whatsnew/2.2.rst:583 @@ -670,11 +670,11 @@ msgstr "" msgid "" "Inside a generator function, the :keyword:`return` statement can only be " "used without a value, and signals the end of the procession of values; " -"afterwards the generator cannot return any further values. :keyword:`return` " -"with a value, such as ``return 5``, is a syntax error inside a generator " -"function. The end of the generator's results can also be indicated by " -"raising :exc:`StopIteration` manually, or by just letting the flow of " -"execution fall off the bottom of the function." +"afterwards the generator cannot return any further values. :keyword:`!" +"return` with a value, such as ``return 5``, is a syntax error inside a " +"generator function. The end of the generator's results can also be " +"indicated by raising :exc:`StopIteration` manually, or by just letting the " +"flow of execution fall off the bottom of the function." msgstr "" #: ../Doc/whatsnew/2.2.rst:611 @@ -979,8 +979,8 @@ msgid "" "because the binding of the name ``g`` isn't in either its local namespace or " "in the module-level namespace. This isn't much of a problem in practice " "(how often do you recursively define interior functions like this?), but " -"this also made using the :keyword:`lambda` statement clumsier, and this was " -"a problem in practice. In code which uses :keyword:`lambda` you can often " +"this also made using the :keyword:`lambda` expression clumsier, and this was " +"a problem in practice. In code which uses :keyword:`!lambda` you can often " "find local variables being copied by passing them as the default values of " "arguments. ::" msgstr "" diff --git a/whatsnew/2.3.po b/whatsnew/2.3.po index 73fe90e6..5a5d6589 100644 --- a/whatsnew/2.3.po +++ b/whatsnew/2.3.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-31 23:42+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -152,7 +152,7 @@ msgstr "" #: ../Doc/whatsnew/2.3.rst:151 msgid "" "A new keyword, :keyword:`yield`, was introduced for generators. Any " -"function containing a :keyword:`yield` statement is a generator function; " +"function containing a :keyword:`!yield` statement is a generator function; " "this is detected by Python's bytecode compiler which compiles the function " "specially as a result." msgstr "" @@ -163,14 +163,14 @@ msgid "" "instead it returns a generator object that supports the iterator protocol. " "On executing the :keyword:`yield` statement, the generator outputs the value " "of ``i``, similar to a :keyword:`return` statement. The big difference " -"between :keyword:`yield` and a :keyword:`return` statement is that on " -"reaching a :keyword:`yield` the generator's state of execution is suspended " +"between :keyword:`!yield` and a :keyword:`!return` statement is that on " +"reaching a :keyword:`!yield` the generator's state of execution is suspended " "and local variables are preserved. On the next call to the generator's ``." "next()`` method, the function will resume executing immediately after the :" -"keyword:`yield` statement. (For complicated reasons, the :keyword:`yield` " -"statement isn't allowed inside the :keyword:`try` block of a :keyword:" -"`try`...\\ :keyword:`finally` statement; read :pep:`255` for a full " -"explanation of the interaction between :keyword:`yield` and exceptions.)" +"keyword:`!yield` statement. (For complicated reasons, the :keyword:`!yield` " +"statement isn't allowed inside the :keyword:`try` block of a :keyword:`!" +"try`...\\ :keyword:`!finally` statement; read :pep:`255` for a full " +"explanation of the interaction between :keyword:`!yield` and exceptions.)" msgstr "" #: ../Doc/whatsnew/2.3.rst:169 @@ -187,11 +187,11 @@ msgstr "" msgid "" "Inside a generator function, the :keyword:`return` statement can only be " "used without a value, and signals the end of the procession of values; " -"afterwards the generator cannot return any further values. :keyword:`return` " -"with a value, such as ``return 5``, is a syntax error inside a generator " -"function. The end of the generator's results can also be indicated by " -"raising :exc:`StopIteration` manually, or by just letting the flow of " -"execution fall off the bottom of the function." +"afterwards the generator cannot return any further values. :keyword:`!" +"return` with a value, such as ``return 5``, is a syntax error inside a " +"generator function. The end of the generator's results can also be " +"indicated by raising :exc:`StopIteration` manually, or by just letting the " +"flow of execution fall off the bottom of the function." msgstr "" #: ../Doc/whatsnew/2.3.rst:197 @@ -614,7 +614,7 @@ msgid "" "arithmetic with Booleans, and would require that the expression in an :" "keyword:`if` statement always evaluate to a Boolean result. Python is not " "this strict and never will be, as :pep:`285` explicitly says. This means " -"you can still use any expression in an :keyword:`if` statement, even ones " +"you can still use any expression in an :keyword:`!if` statement, even ones " "that evaluate to a list or tuple or some random object. The Boolean type is " "a subclass of the :class:`int` class so that arithmetic using a Boolean " "still works. ::" diff --git a/whatsnew/2.5.po b/whatsnew/2.5.po index 48dc52ec..252b10c6 100644 --- a/whatsnew/2.5.po +++ b/whatsnew/2.5.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-31 23:32+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -440,7 +440,7 @@ msgid "" "Until Python 2.5, the :keyword:`try` statement came in two flavours. You " "could use a :keyword:`finally` block to ensure that code is always executed, " "or one or more :keyword:`except` blocks to catch specific exceptions. You " -"couldn't combine both :keyword:`except` blocks and a :keyword:`finally` " +"couldn't combine both :keyword:`!except` blocks and a :keyword:`!finally` " "block, because generating the right bytecode for the combined version was " "complicated and it wasn't clear what the semantics of the combined statement " "should be." @@ -505,14 +505,14 @@ msgid "" "values from 0 up to 9. On encountering the :keyword:`yield` statement, the " "iterator returns the provided value and suspends the function's execution, " "preserving the local variables. Execution resumes on the following call to " -"the iterator's :meth:`next` method, picking up after the :keyword:`yield` " +"the iterator's :meth:`next` method, picking up after the :keyword:`!yield` " "statement." msgstr "" #: ../Doc/whatsnew/2.5.rst:440 msgid "" "In Python 2.3, :keyword:`yield` was a statement; it didn't return any " -"value. In 2.5, :keyword:`yield` is now an expression, returning a value " +"value. In 2.5, :keyword:`!yield` is now an expression, returning a value " "that can be assigned to a variable or otherwise operated on::" msgstr "" @@ -538,7 +538,7 @@ msgid "" "Values are sent into a generator by calling its ``send(value)`` method. The " "generator's code is then resumed and the :keyword:`yield` expression returns " "the specified *value*. If the regular :meth:`next` method is called, the :" -"keyword:`yield` returns :const:`None`." +"keyword:`!yield` returns :const:`None`." msgstr "" #: ../Doc/whatsnew/2.5.rst:463 @@ -760,7 +760,7 @@ msgstr "Écrire des gestionnaires de contexte" #: ../Doc/whatsnew/2.5.rst:646 msgid "" "Under the hood, the ':keyword:`with`' statement is fairly complicated. Most " -"people will only use ':keyword:`with`' in company with existing objects and " +"people will only use ':keyword:`!with`' in company with existing objects and " "don't need to know these details, so you can skip the rest of this section " "if you like. Authors of new objects will need to understand the details of " "the underlying implementation and should keep reading." @@ -876,9 +876,9 @@ msgid "" "yield exactly one value. The code up to the :keyword:`yield` will be " "executed as the :meth:`__enter__` method, and the value yielded will be the " "method's return value that will get bound to the variable in the ':keyword:" -"`with`' statement's :keyword:`as` clause, if any. The code after the :" +"`with`' statement's :keyword:`!as` clause, if any. The code after the :" "keyword:`yield` will be executed in the :meth:`__exit__` method. Any " -"exception raised in the block will be raised by the :keyword:`yield` " +"exception raised in the block will be raised by the :keyword:`!yield` " "statement." msgstr "" @@ -892,8 +892,9 @@ msgstr "" msgid "" "The :mod:`contextlib` module also has a ``nested(mgr1, mgr2, ...)`` function " "that combines a number of context managers so you don't need to write nested " -"':keyword:`with`' statements. In this example, the single ':keyword:`with`' " -"statement both starts a database transaction and acquires a thread lock::" +"':keyword:`with`' statements. In this example, the single ':keyword:`!" +"with`' statement both starts a database transaction and acquires a thread " +"lock::" msgstr "" #: ../Doc/whatsnew/2.5.rst:786 diff --git a/whatsnew/2.6.po b/whatsnew/2.6.po index 6d5c1caa..78b56912 100644 --- a/whatsnew/2.6.po +++ b/whatsnew/2.6.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-07-31 23:37+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -304,10 +304,10 @@ msgid "" "The previous version, Python 2.5, added the ':keyword:`with`' statement as " "an optional feature, to be enabled by a ``from __future__ import " "with_statement`` directive. In 2.6 the statement no longer needs to be " -"specially enabled; this means that :keyword:`with` is now always a keyword. " -"The rest of this section is a copy of the corresponding section from the " -"\"What's New in Python 2.5\" document; if you're familiar with the ':keyword:" -"`with`' statement from Python 2.5, you can skip this section." +"specially enabled; this means that :keyword:`!with` is now always a " +"keyword. The rest of this section is a copy of the corresponding section " +"from the \"What's New in Python 2.5\" document; if you're familiar with the " +"':keyword:`!with`' statement from Python 2.5, you can skip this section." msgstr "" #: ../Doc/whatsnew/2.6.rst:259 @@ -393,7 +393,7 @@ msgstr "Écrire des gestionnaires de contexte" #: ../Doc/whatsnew/2.6.rst:333 msgid "" "Under the hood, the ':keyword:`with`' statement is fairly complicated. Most " -"people will only use ':keyword:`with`' in company with existing objects and " +"people will only use ':keyword:`!with`' in company with existing objects and " "don't need to know these details, so you can skip the rest of this section " "if you like. Authors of new objects will need to understand the details of " "the underlying implementation and should keep reading." @@ -510,9 +510,9 @@ msgid "" "yield exactly one value. The code up to the :keyword:`yield` will be " "executed as the :meth:`__enter__` method, and the value yielded will be the " "method's return value that will get bound to the variable in the ':keyword:" -"`with`' statement's :keyword:`as` clause, if any. The code after the :" -"keyword:`yield` will be executed in the :meth:`__exit__` method. Any " -"exception raised in the block will be raised by the :keyword:`yield` " +"`with`' statement's :keyword:`!as` clause, if any. The code after the :" +"keyword:`!yield` will be executed in the :meth:`__exit__` method. Any " +"exception raised in the block will be raised by the :keyword:`!yield` " "statement." msgstr "" @@ -526,8 +526,9 @@ msgstr "" msgid "" "The :mod:`contextlib` module also has a ``nested(mgr1, mgr2, ...)`` function " "that combines a number of context managers so you don't need to write nested " -"':keyword:`with`' statements. In this example, the single ':keyword:`with`' " -"statement both starts a database transaction and acquires a thread lock::" +"':keyword:`with`' statements. In this example, the single ':keyword:`!" +"with`' statement both starts a database transaction and acquires a thread " +"lock::" msgstr "" #: ../Doc/whatsnew/2.6.rst:474 @@ -1821,7 +1822,7 @@ msgid "" "An obscure change: when you use the :func:`locals` function inside a :" "keyword:`class` statement, the resulting dictionary no longer returns free " "variables. (Free variables, in this case, are variables referenced in the :" -"keyword:`class` statement that aren't attributes of the class.)" +"keyword:`!class` statement that aren't attributes of the class.)" msgstr "" #: ../Doc/whatsnew/2.6.rst:1693 diff --git a/whatsnew/2.7.po b/whatsnew/2.7.po index 9d85458e..7cee509a 100644 --- a/whatsnew/2.7.po +++ b/whatsnew/2.7.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-17 10:39+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2017-08-10 00:52+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -703,7 +703,7 @@ msgstr "" msgid "" "The :keyword:`with` statement can now use multiple context managers in one " "statement. Context managers are processed from left to right and each one " -"is treated as beginning a new :keyword:`with` statement. This means that::" +"is treated as beginning a new :keyword:`!with` statement. This means that::" msgstr "" #: ../Doc/whatsnew/2.7.rst:717 @@ -849,7 +849,7 @@ msgstr "" msgid "" "The :keyword:`import` statement will no longer try an absolute import if a " "relative import (e.g. ``from .os import sep``) fails. This fixes a bug, but " -"could possibly break certain :keyword:`import` statements that were only " +"could possibly break certain :keyword:`!import` statements that were only " "working by accident. (Fixed by Meador Inge; :issue:`7902`.)" msgstr "" @@ -1195,7 +1195,7 @@ msgstr "" msgid "" "Deprecated function: :func:`contextlib.nested`, which allows handling more " "than one context manager with a single :keyword:`with` statement, has been " -"deprecated, because the :keyword:`with` statement now supports multiple " +"deprecated, because the :keyword:`!with` statement now supports multiple " "context managers." msgstr "" diff --git a/whatsnew/3.0.po b/whatsnew/3.0.po index ffcd955d..b2018ef9 100644 --- a/whatsnew/3.0.po +++ b/whatsnew/3.0.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-05-02 00:10+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2017-09-22 10:11+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -440,7 +440,7 @@ msgstr "" msgid "" ":pep:`3104`: :keyword:`nonlocal` statement. Using ``nonlocal x`` you can " "now assign directly to a variable in an outer (but non-global) scope. :" -"keyword:`nonlocal` is a new reserved word." +"keyword:`!nonlocal` is a new reserved word." msgstr "" #: ../Doc/whatsnew/3.0.rst:378 @@ -499,7 +499,7 @@ msgstr "" #: ../Doc/whatsnew/3.0.rst:411 msgid "" -":keyword:`as` and :keyword:`with` are now reserved words. (Since 2.6, " +":keyword:`!as` and :keyword:`with` are now reserved words. (Since 2.6, " "actually.)" msgstr "" @@ -511,8 +511,8 @@ msgstr "" #: ../Doc/whatsnew/3.0.rst:417 msgid "" -"Change from :keyword:`except` *exc*, *var* to :keyword:`except` *exc* :" -"keyword:`as` *var*. See :pep:`3110`." +"Change from :keyword:`except` *exc*, *var* to :keyword:`!except` *exc* :" +"keyword:`!as` *var*. See :pep:`3110`." msgstr "" #: ../Doc/whatsnew/3.0.rst:420 @@ -650,9 +650,9 @@ msgstr "" #: ../Doc/whatsnew/3.0.rst:510 msgid "" -":ref:`pep-3110`. The :keyword:`except` *exc* :keyword:`as` *var* syntax is " -"now standard and :keyword:`except` *exc*, *var* is no longer supported. (Of " -"course, the :keyword:`as` *var* part is still optional.)" +":ref:`pep-3110`. The :keyword:`except` *exc* :keyword:`!as` *var* syntax is " +"now standard and :keyword:`!except` *exc*, *var* is no longer supported. " +"(Of course, the :keyword:`!as` *var* part is still optional.)" msgstr "" #: ../Doc/whatsnew/3.0.rst:515 diff --git a/whatsnew/3.4.po b/whatsnew/3.4.po index 51faf32a..34ecbb58 100644 --- a/whatsnew/3.4.po +++ b/whatsnew/3.4.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-05-02 00:10+0200\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1827,8 +1827,8 @@ msgstr "" #: ../Doc/whatsnew/3.4.rst:1354 msgid "" ":class:`~shelve.Shelf` instances may now be used in :keyword:`with` " -"statements, and will be automatically closed at the end of the :keyword:" -"`with` block. (Contributed by Filip Gruszczyński in :issue:`13896`.)" +"statements, and will be automatically closed at the end of the :keyword:`!" +"with` block. (Contributed by Filip Gruszczyński in :issue:`13896`.)" msgstr "" #: ../Doc/whatsnew/3.4.rst:1360 diff --git a/whatsnew/3.7.po b/whatsnew/3.7.po index f67592b2..29ecea22 100644 --- a/whatsnew/3.7.po +++ b/whatsnew/3.7.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2018-12-21 09:48+0100\n" "PO-Revision-Date: 2018-08-03 23:47+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -2724,7 +2724,7 @@ msgstr "" msgid "" "Yield expressions (both ``yield`` and ``yield from`` clauses) are now " "deprecated in comprehensions and generator expressions (aside from the " -"iterable expression in the leftmost :keyword:`for` clause). This ensures " +"iterable expression in the leftmost :keyword:`!for` clause). This ensures " "that comprehensions always immediately return a container of the appropriate " "type (rather than potentially returning a :term:`generator iterator` " "object), while generator expressions won't attempt to interleave their " @@ -3552,3 +3552,17 @@ msgid "" "behavior now matches what the C tokenizer does internally. (Contributed by " "Ammar Askar in :issue:`33899`.)" msgstr "" + +#: ../Doc/whatsnew/3.7.rst:2533 +msgid "Notable changes in Python 3.7.2" +msgstr "" + +#: ../Doc/whatsnew/3.7.rst:2535 +msgid "" +"In 3.7.2, :mod:`venv` on Windows no longer copies the original binaries, but " +"creates redirector scripts named ``python.exe`` and ``pythonw.exe`` instead. " +"This resolves a long standing issue where all virtual environments would " +"have to be upgraded or recreated with each Python update. However, note that " +"this release will still require recreation of virtual environments in order " +"to get the new scripts." +msgstr ""