diff --git a/.travis.yml b/.travis.yml index 0376683f..9a3d9d83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ install: script: - powrap --check --quiet **/*.po - pospell -p dict -l fr_FR **/*.po - - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=d561f848b235f2011a43b705d112055b92fa2366 + - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=15e7d2432294ec46f1ad84ce958fdeb9d4ca78b1 diff --git a/c-api/object.po b/c-api/object.po index d4ee70b6..1533df50 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-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: 2019-06-08 15:22+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -392,21 +392,24 @@ msgstr "" "argument n'est nécessaire. Si aucun argument nommé n'est nécessaire, " "*kwargs* peut être égal à *NULL*." -#: ../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." +#: ../Doc/c-api/object.rst:264 ../Doc/c-api/object.rst:276 +#: ../Doc/c-api/object.rst:288 ../Doc/c-api/object.rst:308 +#: ../Doc/c-api/object.rst:327 ../Doc/c-api/object.rst:341 +#, fuzzy +msgid "" +"Return the result of the call on success, or raise an exception and return " +"*NULL* on failure." msgstr "" "Renvoie le résultat de l'appel en cas de succès, ou *NULL* en cas d'échec." -#: ../Doc/c-api/object.rst:266 +#: ../Doc/c-api/object.rst:267 msgid "" "This is the equivalent of the Python expression: ``callable(*args, " "**kwargs)``." msgstr "" "Ceci est l'équivalent de l'expression Python : ``callable(*args, **kwargs)``." -#: ../Doc/c-api/object.rst:272 +#: ../Doc/c-api/object.rst:273 msgid "" "Call a callable Python object *callable*, with arguments given by the tuple " "*args*. If no arguments are needed, then *args* can be *NULL*." @@ -415,11 +418,11 @@ msgstr "" "le tuple *args*. Si aucun argument n'est nécessaire, alors *args* peut être " "égal à *NULL*." -#: ../Doc/c-api/object.rst:277 ../Doc/c-api/object.rst:288 +#: ../Doc/c-api/object.rst:279 ../Doc/c-api/object.rst:291 msgid "This is the equivalent of the Python expression: ``callable(*args)``." msgstr "Ceci est l'équivalent de l'expression Python : ``callable(*args)``." -#: ../Doc/c-api/object.rst:282 +#: ../Doc/c-api/object.rst:284 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` " @@ -431,78 +434,77 @@ msgstr "" "c:func:`Py_BuildValue`. Le format peut être *NULL*, indiquant qu'aucun " "argument n'est donné." -#: ../Doc/c-api/object.rst:290 +#: ../Doc/c-api/object.rst:293 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:293 +#: ../Doc/c-api/object.rst:296 msgid "The type of *format* was changed from ``char *``." msgstr "" -#: ../Doc/c-api/object.rst:299 +#: ../Doc/c-api/object.rst:302 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:303 +#: ../Doc/c-api/object.rst:306 msgid "The format can be *NULL*, indicating that no arguments are provided." msgstr "" -#: ../Doc/c-api/object.rst:307 +#: ../Doc/c-api/object.rst:311 msgid "" "This is the equivalent of the Python expression: ``obj.name(arg1, " "arg2, ...)``." msgstr "" -#: ../Doc/c-api/object.rst:310 +#: ../Doc/c-api/object.rst:314 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:313 +#: ../Doc/c-api/object.rst:317 msgid "The types of *name* and *format* were changed from ``char *``." msgstr "" -#: ../Doc/c-api/object.rst:319 +#: ../Doc/c-api/object.rst:323 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:325 +#: ../Doc/c-api/object.rst:330 msgid "" "This is the equivalent of the Python expression: ``callable(arg1, " "arg2, ...)``." msgstr "" -#: ../Doc/c-api/object.rst:331 +#: ../Doc/c-api/object.rst:336 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 " "number of :c:type:`PyObject\\*` arguments. The arguments are provided as a " -"variable number of parameters followed by *NULL*. Returns the result of the " -"call on success, or *NULL* on failure." +"variable number of parameters followed by *NULL*." msgstr "" -#: ../Doc/c-api/object.rst:342 +#: ../Doc/c-api/object.rst:349 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:345 +#: ../Doc/c-api/object.rst:352 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:352 +#: ../Doc/c-api/object.rst:359 msgid "" "Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and " "return ``-1``. This function receives special treatment when stored in a " @@ -510,21 +512,21 @@ msgid "" "that it is not hashable." msgstr "" -#: ../Doc/c-api/object.rst:360 +#: ../Doc/c-api/object.rst:367 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:367 +#: ../Doc/c-api/object.rst:374 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:376 +#: ../Doc/c-api/object.rst:383 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 " @@ -535,13 +537,13 @@ msgid "" "except when the incremented reference count is needed." msgstr "" -#: ../Doc/c-api/object.rst:387 +#: ../Doc/c-api/object.rst:394 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:396 +#: ../Doc/c-api/object.rst:403 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, " @@ -549,7 +551,7 @@ msgid "" "``len(o)``." msgstr "" -#: ../Doc/c-api/object.rst:403 +#: ../Doc/c-api/object.rst:410 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 " @@ -557,26 +559,26 @@ msgid "" "equivalent to the Python expression ``operator.length_hint(o, default)``." msgstr "" -#: ../Doc/c-api/object.rst:413 +#: ../Doc/c-api/object.rst:420 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:419 +#: ../Doc/c-api/object.rst:426 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:426 +#: ../Doc/c-api/object.rst:433 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:432 +#: ../Doc/c-api/object.rst:439 msgid "" "This is equivalent to the Python expression ``dir(o)``, returning a " "(possibly empty) list of strings appropriate for the object argument, or " @@ -586,7 +588,7 @@ msgid "" "`PyErr_Occurred` will return false." msgstr "" -#: ../Doc/c-api/object.rst:441 +#: ../Doc/c-api/object.rst:448 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 4422d372..5fc5248d 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-17 21:38+0100\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -117,82 +117,92 @@ msgstr "" #: ../Doc/c-api/structures.rst:117 msgid "" -"Type of the functions used to implement Python callables in C that take " -"keyword arguments: they take three :c:type:`PyObject\\*` parameters and " -"return one such value. See :c:type:`PyCFunction` above for the meaning of " -"the return value." +"Type of the functions used to implement Python callables in C with " +"signature :const:`METH_VARARGS | METH_KEYWORDS`." msgstr "" -#: ../Doc/c-api/structures.rst:125 +#: ../Doc/c-api/structures.rst:123 +msgid "" +"Type of the functions used to implement Python callables in C with " +"signature :const:`METH_FASTCALL`." +msgstr "" + +#: ../Doc/c-api/structures.rst:129 +msgid "" +"Type of the functions used to implement Python callables in C with " +"signature :const:`METH_FASTCALL | METH_KEYWORDS`." +msgstr "" + +#: ../Doc/c-api/structures.rst:135 msgid "" "Structure used to describe a method of an extension type. This structure " "has four fields:" msgstr "" -#: ../Doc/c-api/structures.rst:129 ../Doc/c-api/structures.rst:240 -#: ../Doc/c-api/structures.rst:306 +#: ../Doc/c-api/structures.rst:139 ../Doc/c-api/structures.rst:279 +#: ../Doc/c-api/structures.rst:345 msgid "Field" msgstr "" -#: ../Doc/c-api/structures.rst:129 ../Doc/c-api/structures.rst:240 -#: ../Doc/c-api/structures.rst:306 +#: ../Doc/c-api/structures.rst:139 ../Doc/c-api/structures.rst:279 +#: ../Doc/c-api/structures.rst:345 msgid "C Type" msgstr "Type C" -#: ../Doc/c-api/structures.rst:129 ../Doc/c-api/structures.rst:240 -#: ../Doc/c-api/structures.rst:306 +#: ../Doc/c-api/structures.rst:139 ../Doc/c-api/structures.rst:279 +#: ../Doc/c-api/structures.rst:345 msgid "Meaning" msgstr "Signification" -#: ../Doc/c-api/structures.rst:131 +#: ../Doc/c-api/structures.rst:141 msgid ":attr:`ml_name`" 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:308 -#: ../Doc/c-api/structures.rst:316 +#: ../Doc/c-api/structures.rst:141 ../Doc/c-api/structures.rst:149 +#: ../Doc/c-api/structures.rst:281 ../Doc/c-api/structures.rst:294 +#: ../Doc/c-api/structures.rst:310 ../Doc/c-api/structures.rst:347 +#: ../Doc/c-api/structures.rst:355 msgid "const char \\*" msgstr "" -#: ../Doc/c-api/structures.rst:131 +#: ../Doc/c-api/structures.rst:141 msgid "name of the method" msgstr "" -#: ../Doc/c-api/structures.rst:133 +#: ../Doc/c-api/structures.rst:143 msgid ":attr:`ml_meth`" msgstr "" -#: ../Doc/c-api/structures.rst:133 +#: ../Doc/c-api/structures.rst:143 msgid "PyCFunction" msgstr "PyCFunction" -#: ../Doc/c-api/structures.rst:133 +#: ../Doc/c-api/structures.rst:143 msgid "pointer to the C implementation" msgstr "" -#: ../Doc/c-api/structures.rst:136 +#: ../Doc/c-api/structures.rst:146 msgid ":attr:`ml_flags`" msgstr "" -#: ../Doc/c-api/structures.rst:136 ../Doc/c-api/structures.rst:244 -#: ../Doc/c-api/structures.rst:251 ../Doc/c-api/structures.rst:267 +#: ../Doc/c-api/structures.rst:146 ../Doc/c-api/structures.rst:283 +#: ../Doc/c-api/structures.rst:290 ../Doc/c-api/structures.rst:306 msgid "int" msgstr "*int*" -#: ../Doc/c-api/structures.rst:136 +#: ../Doc/c-api/structures.rst:146 msgid "flag bits indicating how the call should be constructed" msgstr "" -#: ../Doc/c-api/structures.rst:139 +#: ../Doc/c-api/structures.rst:149 msgid ":attr:`ml_doc`" msgstr "" -#: ../Doc/c-api/structures.rst:139 ../Doc/c-api/structures.rst:255 +#: ../Doc/c-api/structures.rst:149 ../Doc/c-api/structures.rst:294 msgid "points to the contents of the docstring" msgstr "" -#: ../Doc/c-api/structures.rst:143 +#: ../Doc/c-api/structures.rst:153 msgid "" "The :attr:`ml_meth` is a C function pointer. The functions may be of " "different types, but they always return :c:type:`PyObject\\*`. If the " @@ -202,16 +212,21 @@ msgid "" "implementation uses the specific C type of the *self* object." msgstr "" -#: ../Doc/c-api/structures.rst:150 +#: ../Doc/c-api/structures.rst:160 msgid "" "The :attr:`ml_flags` field is a bitfield which can include the following " "flags. The individual flags indicate either a calling convention or a " -"binding convention. Of the calling convention flags, only :const:" -"`METH_VARARGS` and :const:`METH_KEYWORDS` can be combined. Any of the " -"calling convention flags can be combined with a binding flag." +"binding convention." msgstr "" -#: ../Doc/c-api/structures.rst:159 +#: ../Doc/c-api/structures.rst:164 +msgid "" +"There are four basic calling conventions for positional arguments and two of " +"them can be combined with :const:`METH_KEYWORDS` to support also keyword " +"arguments. So there are a total of 6 calling conventions:" +msgstr "" + +#: ../Doc/c-api/structures.rst:170 msgid "" "This is the typical calling convention, where the methods have the type :c:" "type:`PyCFunction`. The function expects two :c:type:`PyObject\\*` values. " @@ -221,16 +236,40 @@ msgid "" "using :c:func:`PyArg_ParseTuple` or :c:func:`PyArg_UnpackTuple`." msgstr "" -#: ../Doc/c-api/structures.rst:169 +#: ../Doc/c-api/structures.rst:180 msgid "" "Methods with these flags must be of type :c:type:`PyCFunctionWithKeywords`. " -"The function expects three parameters: *self*, *args*, and a dictionary of " -"all the keyword arguments. The flag must be combined with :const:" -"`METH_VARARGS`, and the parameters are typically processed using :c:func:" -"`PyArg_ParseTupleAndKeywords`." +"The function expects three parameters: *self*, *args*, *kwargs* where " +"*kwargs* is a dictionary of all the keyword arguments or possibly *NULL* if " +"there are no keyword arguments. The parameters are typically processed " +"using :c:func:`PyArg_ParseTupleAndKeywords`." msgstr "" -#: ../Doc/c-api/structures.rst:178 +#: ../Doc/c-api/structures.rst:189 +msgid "" +"Fast calling convention supporting only positional arguments. The methods " +"have the type :c:type:`_PyCFunctionFast`. The first parameter is *self*, the " +"second parameter is a C array of :c:type:`PyObject\\*` values indicating the " +"arguments and the third parameter is the number of arguments (the length of " +"the array)." +msgstr "" + +#: ../Doc/c-api/structures.rst:195 ../Doc/c-api/structures.rst:210 +msgid "This is not part of the :ref:`limited API `." +msgstr "" + +#: ../Doc/c-api/structures.rst:202 +msgid "" +"Extension of :const:`METH_FASTCALL` supporting also keyword arguments, with " +"methods of type :c:type:`_PyCFunctionFastWithKeywords`. Keyword arguments " +"are passed the same way as in the vectorcall protocol: there is an " +"additional fourth :c:type:`PyObject\\*` parameter which is a tuple " +"representing the names of the keyword arguments or possibly *NULL* if there " +"are no keywords. The values of the keyword arguments are stored in the " +"*args* array, after the positional arguments." +msgstr "" + +#: ../Doc/c-api/structures.rst:217 msgid "" "Methods without parameters don't need to check whether arguments are given " "if they are listed with the :const:`METH_NOARGS` flag. They need to be of " @@ -239,7 +278,7 @@ msgid "" "the second parameter will be *NULL*." msgstr "" -#: ../Doc/c-api/structures.rst:187 +#: ../Doc/c-api/structures.rst:226 msgid "" "Methods with a single object argument can be listed with the :const:`METH_O` " "flag, instead of invoking :c:func:`PyArg_ParseTuple` with a ``\"O\"`` " @@ -248,7 +287,7 @@ msgid "" "argument." msgstr "" -#: ../Doc/c-api/structures.rst:193 +#: ../Doc/c-api/structures.rst:232 msgid "" "These two constants are not used to indicate the calling convention but the " "binding when use with methods of classes. These may not be used for " @@ -256,27 +295,27 @@ msgid "" "any given method." msgstr "" -#: ../Doc/c-api/structures.rst:203 +#: ../Doc/c-api/structures.rst:242 msgid "" "The method will be passed the type object as the first parameter rather than " "an instance of the type. This is used to create *class methods*, similar to " "what is created when using the :func:`classmethod` built-in function." msgstr "" -#: ../Doc/c-api/structures.rst:213 +#: ../Doc/c-api/structures.rst:252 msgid "" "The method will be passed *NULL* as the first parameter rather than an " "instance of the type. This is used to create *static methods*, similar to " "what is created when using the :func:`staticmethod` built-in function." msgstr "" -#: ../Doc/c-api/structures.rst:217 +#: ../Doc/c-api/structures.rst:256 msgid "" "One other constant controls whether a method is loaded in place of another " "definition with the same method name." msgstr "" -#: ../Doc/c-api/structures.rst:223 +#: ../Doc/c-api/structures.rst:262 msgid "" "The method will be loaded in place of existing definitions. Without " "*METH_COEXIST*, the default is to skip repeated definitions. Since slot " @@ -289,190 +328,190 @@ msgid "" "calls." msgstr "" -#: ../Doc/c-api/structures.rst:236 +#: ../Doc/c-api/structures.rst:275 msgid "" "Structure which describes an attribute of a type which corresponds to a C " "struct member. Its fields are:" msgstr "" -#: ../Doc/c-api/structures.rst:242 +#: ../Doc/c-api/structures.rst:281 msgid ":attr:`name`" msgstr "" -#: ../Doc/c-api/structures.rst:242 +#: ../Doc/c-api/structures.rst:281 msgid "name of the member" msgstr "" -#: ../Doc/c-api/structures.rst:244 +#: ../Doc/c-api/structures.rst:283 msgid ":attr:`!type`" msgstr "" -#: ../Doc/c-api/structures.rst:244 +#: ../Doc/c-api/structures.rst:283 msgid "the type of the member in the C struct" msgstr "" -#: ../Doc/c-api/structures.rst:247 +#: ../Doc/c-api/structures.rst:286 msgid ":attr:`offset`" msgstr "" -#: ../Doc/c-api/structures.rst:247 ../Doc/c-api/structures.rst:283 +#: ../Doc/c-api/structures.rst:286 ../Doc/c-api/structures.rst:322 msgid "Py_ssize_t" msgstr "" -#: ../Doc/c-api/structures.rst:247 +#: ../Doc/c-api/structures.rst:286 msgid "" "the offset in bytes that the member is located on the type's object struct" msgstr "" -#: ../Doc/c-api/structures.rst:251 +#: ../Doc/c-api/structures.rst:290 msgid ":attr:`flags`" msgstr "" -#: ../Doc/c-api/structures.rst:251 +#: ../Doc/c-api/structures.rst:290 msgid "flag bits indicating if the field should be read-only or writable" msgstr "" -#: ../Doc/c-api/structures.rst:255 +#: ../Doc/c-api/structures.rst:294 msgid ":attr:`doc`" msgstr "" -#: ../Doc/c-api/structures.rst:259 +#: ../Doc/c-api/structures.rst:298 msgid "" ":attr:`!type` can be one of many ``T_`` macros corresponding to various C " "types. When the member is accessed in Python, it will be converted to the " "equivalent Python type." msgstr "" -#: ../Doc/c-api/structures.rst:264 +#: ../Doc/c-api/structures.rst:303 msgid "Macro name" msgstr "" -#: ../Doc/c-api/structures.rst:264 +#: ../Doc/c-api/structures.rst:303 msgid "C type" msgstr "Type C" -#: ../Doc/c-api/structures.rst:266 +#: ../Doc/c-api/structures.rst:305 msgid "T_SHORT" msgstr "" -#: ../Doc/c-api/structures.rst:266 +#: ../Doc/c-api/structures.rst:305 msgid "short" msgstr "" -#: ../Doc/c-api/structures.rst:267 +#: ../Doc/c-api/structures.rst:306 msgid "T_INT" msgstr "" -#: ../Doc/c-api/structures.rst:268 +#: ../Doc/c-api/structures.rst:307 msgid "T_LONG" msgstr "" -#: ../Doc/c-api/structures.rst:268 +#: ../Doc/c-api/structures.rst:307 msgid "long" msgstr "" -#: ../Doc/c-api/structures.rst:269 +#: ../Doc/c-api/structures.rst:308 msgid "T_FLOAT" msgstr "" -#: ../Doc/c-api/structures.rst:269 +#: ../Doc/c-api/structures.rst:308 msgid "float" msgstr "*float*" -#: ../Doc/c-api/structures.rst:270 +#: ../Doc/c-api/structures.rst:309 msgid "T_DOUBLE" msgstr "" -#: ../Doc/c-api/structures.rst:270 +#: ../Doc/c-api/structures.rst:309 msgid "double" msgstr "double" -#: ../Doc/c-api/structures.rst:271 +#: ../Doc/c-api/structures.rst:310 msgid "T_STRING" msgstr "" -#: ../Doc/c-api/structures.rst:272 +#: ../Doc/c-api/structures.rst:311 msgid "T_OBJECT" msgstr "" -#: ../Doc/c-api/structures.rst:272 ../Doc/c-api/structures.rst:273 +#: ../Doc/c-api/structures.rst:311 ../Doc/c-api/structures.rst:312 msgid "PyObject \\*" msgstr "PyObject \\*" -#: ../Doc/c-api/structures.rst:273 +#: ../Doc/c-api/structures.rst:312 msgid "T_OBJECT_EX" msgstr "" -#: ../Doc/c-api/structures.rst:274 +#: ../Doc/c-api/structures.rst:313 msgid "T_CHAR" msgstr "" -#: ../Doc/c-api/structures.rst:274 ../Doc/c-api/structures.rst:275 -#: ../Doc/c-api/structures.rst:280 +#: ../Doc/c-api/structures.rst:313 ../Doc/c-api/structures.rst:314 +#: ../Doc/c-api/structures.rst:319 msgid "char" msgstr "char" -#: ../Doc/c-api/structures.rst:275 +#: ../Doc/c-api/structures.rst:314 msgid "T_BYTE" msgstr "" -#: ../Doc/c-api/structures.rst:276 +#: ../Doc/c-api/structures.rst:315 msgid "T_UBYTE" msgstr "" -#: ../Doc/c-api/structures.rst:276 +#: ../Doc/c-api/structures.rst:315 msgid "unsigned char" msgstr "``unsigned char``" -#: ../Doc/c-api/structures.rst:277 +#: ../Doc/c-api/structures.rst:316 msgid "T_UINT" msgstr "" -#: ../Doc/c-api/structures.rst:277 +#: ../Doc/c-api/structures.rst:316 msgid "unsigned int" msgstr "``unsigned int``" -#: ../Doc/c-api/structures.rst:278 +#: ../Doc/c-api/structures.rst:317 msgid "T_USHORT" msgstr "" -#: ../Doc/c-api/structures.rst:278 +#: ../Doc/c-api/structures.rst:317 msgid "unsigned short" msgstr "``unsigned short``" -#: ../Doc/c-api/structures.rst:279 +#: ../Doc/c-api/structures.rst:318 msgid "T_ULONG" msgstr "" -#: ../Doc/c-api/structures.rst:279 +#: ../Doc/c-api/structures.rst:318 msgid "unsigned long" msgstr "``unsigned long``" -#: ../Doc/c-api/structures.rst:280 +#: ../Doc/c-api/structures.rst:319 msgid "T_BOOL" msgstr "" -#: ../Doc/c-api/structures.rst:281 +#: ../Doc/c-api/structures.rst:320 msgid "T_LONGLONG" msgstr "" -#: ../Doc/c-api/structures.rst:281 +#: ../Doc/c-api/structures.rst:320 msgid "long long" msgstr "" -#: ../Doc/c-api/structures.rst:282 +#: ../Doc/c-api/structures.rst:321 msgid "T_ULONGLONG" msgstr "" -#: ../Doc/c-api/structures.rst:282 +#: ../Doc/c-api/structures.rst:321 msgid "unsigned long long" msgstr "``unsigned long long``" -#: ../Doc/c-api/structures.rst:283 +#: ../Doc/c-api/structures.rst:322 msgid "T_PYSSIZET" msgstr "" -#: ../Doc/c-api/structures.rst:286 +#: ../Doc/c-api/structures.rst:325 msgid "" ":c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` differ in that :c:macro:" "`T_OBJECT` returns ``None`` if the member is *NULL* and :c:macro:" @@ -482,7 +521,7 @@ msgid "" "than :c:macro:`T_OBJECT`." msgstr "" -#: ../Doc/c-api/structures.rst:293 +#: ../Doc/c-api/structures.rst:332 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:" @@ -491,87 +530,87 @@ msgid "" "are set to *NULL*)." msgstr "" -#: ../Doc/c-api/structures.rst:302 +#: ../Doc/c-api/structures.rst:341 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:308 +#: ../Doc/c-api/structures.rst:347 msgid "name" msgstr "" -#: ../Doc/c-api/structures.rst:308 +#: ../Doc/c-api/structures.rst:347 msgid "attribute name" msgstr "" -#: ../Doc/c-api/structures.rst:310 +#: ../Doc/c-api/structures.rst:349 msgid "get" msgstr "" -#: ../Doc/c-api/structures.rst:310 +#: ../Doc/c-api/structures.rst:349 msgid "getter" msgstr "" -#: ../Doc/c-api/structures.rst:310 +#: ../Doc/c-api/structures.rst:349 msgid "C Function to get the attribute" msgstr "" -#: ../Doc/c-api/structures.rst:312 +#: ../Doc/c-api/structures.rst:351 msgid "set" msgstr "" -#: ../Doc/c-api/structures.rst:312 +#: ../Doc/c-api/structures.rst:351 msgid "setter" msgstr "" -#: ../Doc/c-api/structures.rst:312 +#: ../Doc/c-api/structures.rst:351 msgid "" "optional C function to set or delete the attribute, if omitted the attribute " "is readonly" msgstr "" -#: ../Doc/c-api/structures.rst:316 +#: ../Doc/c-api/structures.rst:355 msgid "doc" msgstr "" -#: ../Doc/c-api/structures.rst:316 +#: ../Doc/c-api/structures.rst:355 msgid "optional docstring" msgstr "" -#: ../Doc/c-api/structures.rst:318 +#: ../Doc/c-api/structures.rst:357 msgid "closure" msgstr "" -#: ../Doc/c-api/structures.rst:318 +#: ../Doc/c-api/structures.rst:357 msgid "void \\*" msgstr "" -#: ../Doc/c-api/structures.rst:318 +#: ../Doc/c-api/structures.rst:357 msgid "" "optional function pointer, providing additional data for getter and setter" msgstr "" -#: ../Doc/c-api/structures.rst:323 +#: ../Doc/c-api/structures.rst:362 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:328 +#: ../Doc/c-api/structures.rst:367 msgid "" "It should return a new reference on success or *NULL* with a set exception " "on failure." msgstr "" -#: ../Doc/c-api/structures.rst:331 +#: ../Doc/c-api/structures.rst:370 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:336 +#: ../Doc/c-api/structures.rst:375 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/library/concurrent.futures.po b/library/concurrent.futures.po index 6161b8e3..df8fcbb7 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: 2019-06-03 22:10+0200\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -270,27 +270,28 @@ msgstr "" #: ../Doc/library/concurrent.futures.rst:296 msgid "" -"Attempt to cancel the call. If the call is currently being executed and " -"cannot be cancelled then the method will return ``False``, otherwise the " -"call will be cancelled and the method will return ``True``." +"Attempt to cancel the call. If the call is currently being executed or " +"finished running and cannot be cancelled then the method will return " +"``False``, otherwise the call will be cancelled and the method will return " +"``True``." msgstr "" -#: ../Doc/library/concurrent.futures.rst:302 +#: ../Doc/library/concurrent.futures.rst:303 msgid "Return ``True`` if the call was successfully cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:306 +#: ../Doc/library/concurrent.futures.rst:307 msgid "" "Return ``True`` if the call is currently being executed and cannot be " "cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:311 +#: ../Doc/library/concurrent.futures.rst:312 msgid "" "Return ``True`` if the call was successfully cancelled or finished running." msgstr "" -#: ../Doc/library/concurrent.futures.rst:316 +#: ../Doc/library/concurrent.futures.rst:317 msgid "" "Return the value returned by the call. If the call hasn't yet completed then " "this method will wait up to *timeout* seconds. If the call hasn't completed " @@ -299,18 +300,18 @@ msgid "" "``None``, there is no limit to the wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:323 -#: ../Doc/library/concurrent.futures.rst:337 +#: ../Doc/library/concurrent.futures.rst:324 +#: ../Doc/library/concurrent.futures.rst:338 msgid "" "If the future is cancelled before completing then :exc:`.CancelledError` " "will be raised." msgstr "" -#: ../Doc/library/concurrent.futures.rst:326 +#: ../Doc/library/concurrent.futures.rst:327 msgid "If the call raised, this method will raise the same exception." msgstr "" -#: ../Doc/library/concurrent.futures.rst:330 +#: ../Doc/library/concurrent.futures.rst:331 msgid "" "Return the exception raised by the call. If the call hasn't yet completed " "then this method will wait up to *timeout* seconds. If the call hasn't " @@ -319,18 +320,18 @@ msgid "" "*timeout* is not specified or ``None``, there is no limit to the wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:340 +#: ../Doc/library/concurrent.futures.rst:341 msgid "If the call completed without raising, ``None`` is returned." msgstr "" -#: ../Doc/library/concurrent.futures.rst:344 +#: ../Doc/library/concurrent.futures.rst:345 msgid "" "Attaches the callable *fn* to the future. *fn* will be called, with the " "future as its only argument, when the future is cancelled or finishes " "running." msgstr "" -#: ../Doc/library/concurrent.futures.rst:348 +#: ../Doc/library/concurrent.futures.rst:349 msgid "" "Added callables are called in the order that they were added and are always " "called in a thread belonging to the process that added them. If the " @@ -339,26 +340,26 @@ msgid "" "behavior is undefined." msgstr "" -#: ../Doc/library/concurrent.futures.rst:354 +#: ../Doc/library/concurrent.futures.rst:355 msgid "" "If the future has already completed or been cancelled, *fn* will be called " "immediately." msgstr "" -#: ../Doc/library/concurrent.futures.rst:357 +#: ../Doc/library/concurrent.futures.rst:358 msgid "" "The following :class:`Future` methods are meant for use in unit tests and :" "class:`Executor` implementations." msgstr "" -#: ../Doc/library/concurrent.futures.rst:362 +#: ../Doc/library/concurrent.futures.rst:363 msgid "" "This method should only be called by :class:`Executor` implementations " "before executing the work associated with the :class:`Future` and by unit " "tests." msgstr "" -#: ../Doc/library/concurrent.futures.rst:366 +#: ../Doc/library/concurrent.futures.rst:367 msgid "" "If the method returns ``False`` then the :class:`Future` was cancelled, i." "e. :meth:`Future.cancel` was called and returned `True`. Any threads " @@ -366,58 +367,59 @@ msgid "" "or :func:`wait`) will be woken up." msgstr "" -#: ../Doc/library/concurrent.futures.rst:371 +#: ../Doc/library/concurrent.futures.rst:372 msgid "" "If the method returns ``True`` then the :class:`Future` was not cancelled " "and has been put in the running state, i.e. calls to :meth:`Future.running` " "will return `True`." msgstr "" -#: ../Doc/library/concurrent.futures.rst:375 +#: ../Doc/library/concurrent.futures.rst:376 msgid "" "This method can only be called once and cannot be called after :meth:`Future." "set_result` or :meth:`Future.set_exception` have been called." msgstr "" -#: ../Doc/library/concurrent.futures.rst:381 +#: ../Doc/library/concurrent.futures.rst:382 msgid "" "Sets the result of the work associated with the :class:`Future` to *result*." msgstr "" -#: ../Doc/library/concurrent.futures.rst:384 -#: ../Doc/library/concurrent.futures.rst:392 +#: ../Doc/library/concurrent.futures.rst:385 +#: ../Doc/library/concurrent.futures.rst:393 msgid "" "This method should only be used by :class:`Executor` implementations and " "unit tests." msgstr "" -#: ../Doc/library/concurrent.futures.rst:389 +#: ../Doc/library/concurrent.futures.rst:390 msgid "" "Sets the result of the work associated with the :class:`Future` to the :" "class:`Exception` *exception*." msgstr "" -#: ../Doc/library/concurrent.futures.rst:397 +#: ../Doc/library/concurrent.futures.rst:398 msgid "Module Functions" msgstr "" -#: ../Doc/library/concurrent.futures.rst:401 +#: ../Doc/library/concurrent.futures.rst:402 msgid "" "Wait for the :class:`Future` instances (possibly created by different :class:" "`Executor` instances) given by *fs* to complete. Returns a named 2-tuple of " "sets. The first set, named ``done``, contains the futures that completed " -"(finished or were cancelled) before the wait completed. The second set, " -"named ``not_done``, contains uncompleted futures." +"(finished or cancelled futures) before the wait completed. The second set, " +"named ``not_done``, contains the futures that did not complete (pending or " +"running futures)." msgstr "" -#: ../Doc/library/concurrent.futures.rst:407 +#: ../Doc/library/concurrent.futures.rst:409 msgid "" "*timeout* can be used to control the maximum number of seconds to wait " "before returning. *timeout* can be an int or float. If *timeout* is not " "specified or ``None``, there is no limit to the wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:411 +#: ../Doc/library/concurrent.futures.rst:413 msgid "" "*return_when* indicates when this function should return. It must be one of " "the following constants:" @@ -425,28 +427,28 @@ msgstr "" "*return_when* indique quand la fonction doit se terminer. Il peut prendre " "les valeurs suivantes :" -#: ../Doc/library/concurrent.futures.rst:417 +#: ../Doc/library/concurrent.futures.rst:419 msgid "Constant" msgstr "Constante" -#: ../Doc/library/concurrent.futures.rst:417 +#: ../Doc/library/concurrent.futures.rst:419 msgid "Description" msgstr "Description" -#: ../Doc/library/concurrent.futures.rst:419 +#: ../Doc/library/concurrent.futures.rst:421 msgid ":const:`FIRST_COMPLETED`" msgstr ":const:`FIRST_COMPLETED`" -#: ../Doc/library/concurrent.futures.rst:419 +#: ../Doc/library/concurrent.futures.rst:421 msgid "The function will return when any future finishes or is cancelled." msgstr "" "La fonction se termine lorsque n'importe quel futur se termine ou est annulé." -#: ../Doc/library/concurrent.futures.rst:422 +#: ../Doc/library/concurrent.futures.rst:424 msgid ":const:`FIRST_EXCEPTION`" msgstr ":const:`FIRST_EXCEPTION`" -#: ../Doc/library/concurrent.futures.rst:422 +#: ../Doc/library/concurrent.futures.rst:424 msgid "" "The function will return when any future finishes by raising an exception. " "If no future raises an exception then it is equivalent to :const:" @@ -456,66 +458,66 @@ msgstr "" "exception. Si aucun *futur* ne lève d'exception, équivaut à :const:" "`ALL_COMPLETED`." -#: ../Doc/library/concurrent.futures.rst:428 +#: ../Doc/library/concurrent.futures.rst:430 msgid ":const:`ALL_COMPLETED`" msgstr ":const:`ALL_COMPLETED`" -#: ../Doc/library/concurrent.futures.rst:428 +#: ../Doc/library/concurrent.futures.rst:430 msgid "The function will return when all futures finish or are cancelled." msgstr "" "La fonction se termine lorsque les *futurs* sont tous finis ou annulés." -#: ../Doc/library/concurrent.futures.rst:434 +#: ../Doc/library/concurrent.futures.rst:436 msgid "" "Returns an iterator over the :class:`Future` instances (possibly created by " "different :class:`Executor` instances) given by *fs* that yields futures as " -"they complete (finished or were cancelled). Any futures given by *fs* that " -"are duplicated will be returned once. Any futures that completed before :" -"func:`as_completed` is called will be yielded first. The returned iterator " -"raises a :exc:`concurrent.futures.TimeoutError` if :meth:`~iterator." +"they complete (finished or cancelled futures). Any futures given by *fs* " +"that are duplicated will be returned once. Any futures that completed " +"before :func:`as_completed` is called will be yielded first. The returned " +"iterator raises a :exc:`concurrent.futures.TimeoutError` if :meth:`~iterator." "__next__` is called and the result isn't available after *timeout* seconds " "from the original call to :func:`as_completed`. *timeout* can be an int or " "float. If *timeout* is not specified or ``None``, there is no limit to the " "wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:448 +#: ../Doc/library/concurrent.futures.rst:450 msgid ":pep:`3148` -- futures - execute computations asynchronously" msgstr "" -#: ../Doc/library/concurrent.futures.rst:448 +#: ../Doc/library/concurrent.futures.rst:450 msgid "" "The proposal which described this feature for inclusion in the Python " "standard library." msgstr "" -#: ../Doc/library/concurrent.futures.rst:453 +#: ../Doc/library/concurrent.futures.rst:455 msgid "Exception classes" msgstr "" -#: ../Doc/library/concurrent.futures.rst:459 +#: ../Doc/library/concurrent.futures.rst:461 msgid "Raised when a future is cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:463 +#: ../Doc/library/concurrent.futures.rst:465 msgid "Raised when a future operation exceeds the given timeout." msgstr "" -#: ../Doc/library/concurrent.futures.rst:467 +#: ../Doc/library/concurrent.futures.rst:469 msgid "" "Derived from :exc:`RuntimeError`, this exception class is raised when an " "executor is broken for some reason, and cannot be used to submit or execute " "new tasks." msgstr "" -#: ../Doc/library/concurrent.futures.rst:477 +#: ../Doc/library/concurrent.futures.rst:479 msgid "" "Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class " "is raised when one of the workers of a :class:`ThreadPoolExecutor` has " "failed initializing." msgstr "" -#: ../Doc/library/concurrent.futures.rst:487 +#: ../Doc/library/concurrent.futures.rst:489 msgid "" "Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly :exc:" "`RuntimeError`), this exception class is raised when one of the workers of " diff --git a/library/datetime.po b/library/datetime.po index 1b0afd8e..bf913e7e 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-10 10:50+0200\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: 2019-05-23 20:04+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -3101,6 +3101,13 @@ msgstr "Jour du mois sur deux chiffres." msgid "01, 02, ..., 31" msgstr "01, 02, ..., 31" +#: ../Doc/library/datetime.rst:2079 ../Doc/library/datetime.rst:2092 +#: ../Doc/library/datetime.rst:2095 ../Doc/library/datetime.rst:2101 +#: ../Doc/library/datetime.rst:2104 ../Doc/library/datetime.rst:2110 +#: ../Doc/library/datetime.rst:2128 +msgid "\\(9)" +msgstr "" + #: ../Doc/library/datetime.rst:2082 msgid "``%b``" msgstr "``%b``" @@ -3230,8 +3237,9 @@ msgid "Second as a zero-padded decimal number." msgstr "Secondes sur deux chiffres." #: ../Doc/library/datetime.rst:2113 -msgid "\\(4)" -msgstr "\\(4)" +#, fuzzy +msgid "\\(4), \\(9)" +msgstr "\\(1), \\(3)" #: ../Doc/library/datetime.rst:2116 msgid "``%f``" @@ -3312,8 +3320,9 @@ msgid "00, 01, ..., 53" msgstr "00, 01, ..., 53" #: ../Doc/library/datetime.rst:2131 ../Doc/library/datetime.rst:2139 -msgid "\\(7)" -msgstr "\\(7)" +#, fuzzy +msgid "\\(7), \\(9)" +msgstr "\\(1), \\(3)" #: ../Doc/library/datetime.rst:2139 msgid "``%W``" @@ -3423,7 +3432,7 @@ msgstr "" "Année complète ISO 8601 représentant l'année contenant la plus grande partie " "de la semaine ISO (``%V``)." -#: ../Doc/library/datetime.rst:2172 ../Doc/library/datetime.rst:2180 +#: ../Doc/library/datetime.rst:2172 msgid "\\(8)" msgstr "\\(8)" @@ -3455,6 +3464,11 @@ msgstr "" msgid "01, 02, ..., 53" msgstr "01, 02, ..., 53" +#: ../Doc/library/datetime.rst:2180 +#, fuzzy +msgid "\\(8), \\(9)" +msgstr "\\(1), \\(3)" + #: ../Doc/library/datetime.rst:2187 msgid "``%G``, ``%u`` and ``%V`` were added." msgstr "``%G``, ``%u`` et ``%V`` ont été ajoutés." @@ -3620,17 +3634,30 @@ msgstr "" "%Y`` ne sont pas interchangeables." #: ../Doc/library/datetime.rst:2278 +msgid "" +"When used with the :meth:`strptime` method, the leading zero is optional " +"for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%J``, ``%U``, " +"``%W``, and ``%V``. Format ``%y`` does require a leading zero." +msgstr "" + +#: ../Doc/library/datetime.rst:2283 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/datetime.rst:2279 +#: ../Doc/library/datetime.rst:2284 msgid "If, that is, we ignore the effects of Relativity" msgstr "Si on ignore les effets de la Relativité" -#: ../Doc/library/datetime.rst:2280 +#: ../Doc/library/datetime.rst:2285 msgid "" "Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since ``1900`` is " "not a leap year." msgstr "" "Passer ``datetime.strptime(‘Feb 29’, ‘%b %d’)`` ne marchera pas car ``1900`` " "n’est pas une année bissextile." + +#~ msgid "\\(4)" +#~ msgstr "\\(4)" + +#~ msgid "\\(7)" +#~ msgstr "\\(7)" diff --git a/library/idle.po b/library/idle.po index 3bff3d67..f58a438f 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: 2019-06-03 22:10+0200\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -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:336 +#: ../Doc/library/idle.rst:116 ../Doc/library/idle.rst:353 msgid "Cut" msgstr "" -#: ../Doc/library/idle.rst:116 ../Doc/library/idle.rst:336 +#: ../Doc/library/idle.rst:116 ../Doc/library/idle.rst:353 msgid "" "Copy selection into the system-wide clipboard; then delete the selection." msgstr "" -#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:339 +#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:356 msgid "Copy" msgstr "" -#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:339 +#: ../Doc/library/idle.rst:119 ../Doc/library/idle.rst:356 msgid "Copy selection into the system-wide clipboard." msgstr "" -#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:342 +#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:359 msgid "Paste" msgstr "" -#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:342 +#: ../Doc/library/idle.rst:122 ../Doc/library/idle.rst:359 msgid "Insert contents of the system-wide clipboard into the current window." msgstr "" @@ -448,19 +448,19 @@ msgstr "" msgid "Run menu (Editor window only)" msgstr "" -#: ../Doc/library/idle.rst:211 +#: ../Doc/library/idle.rst:213 msgid "Python Shell" msgstr "" -#: ../Doc/library/idle.rst:211 +#: ../Doc/library/idle.rst:213 msgid "Open or wake up the Python Shell window." msgstr "" -#: ../Doc/library/idle.rst:218 +#: ../Doc/library/idle.rst:222 msgid "Check Module" msgstr "" -#: ../Doc/library/idle.rst:214 +#: ../Doc/library/idle.rst:218 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 " @@ -469,74 +469,85 @@ msgid "" "window." msgstr "" -#: ../Doc/library/idle.rst:227 +#: ../Doc/library/idle.rst:233 msgid "Run Module" msgstr "" -#: ../Doc/library/idle.rst:221 +#: ../Doc/library/idle.rst:227 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 " -"window. Note that output requires use of ``print`` or ``write``. When " +"Do :ref:`Check Module `. If no error, restart the shell to " +"clean the environment, then execute the module. Output is displayed in the " +"Shell window. Note that output requires use of ``print`` or ``write``. When " "execution is complete, the Shell retains focus and displays a prompt. At " "this point, one may interactively explore the result of execution. This is " "similar to executing a file with ``python -i file`` at a command line." msgstr "" -#: ../Doc/library/idle.rst:230 +#: ../Doc/library/idle.rst:241 +msgid "Run... Customized" +msgstr "" + +#: ../Doc/library/idle.rst:238 +msgid "" +"Same as :ref:`Run Module `, but run the module with customized " +"settings. *Command Line Arguments* extend :data:`sys.argv` as if passed on " +"a command line. The module can be run in the Shell without restarting." +msgstr "" + +#: ../Doc/library/idle.rst:244 msgid "Shell menu (Shell window only)" msgstr "" -#: ../Doc/library/idle.rst:233 +#: ../Doc/library/idle.rst:247 msgid "View Last Restart" msgstr "" -#: ../Doc/library/idle.rst:233 +#: ../Doc/library/idle.rst:247 msgid "Scroll the shell window to the last Shell restart." msgstr "" -#: ../Doc/library/idle.rst:236 +#: ../Doc/library/idle.rst:250 msgid "Restart Shell" msgstr "" -#: ../Doc/library/idle.rst:236 +#: ../Doc/library/idle.rst:250 msgid "Restart the shell to clean the environment." msgstr "" -#: ../Doc/library/idle.rst:239 +#: ../Doc/library/idle.rst:253 msgid "Previous History" msgstr "" -#: ../Doc/library/idle.rst:239 +#: ../Doc/library/idle.rst:253 msgid "" "Cycle through earlier commands in history which match the current entry." msgstr "" -#: ../Doc/library/idle.rst:242 +#: ../Doc/library/idle.rst:256 msgid "Next History" msgstr "" -#: ../Doc/library/idle.rst:242 +#: ../Doc/library/idle.rst:256 msgid "Cycle through later commands in history which match the current entry." msgstr "" -#: ../Doc/library/idle.rst:245 +#: ../Doc/library/idle.rst:259 msgid "Interrupt Execution" msgstr "" -#: ../Doc/library/idle.rst:245 +#: ../Doc/library/idle.rst:259 msgid "Stop a running program." msgstr "" -#: ../Doc/library/idle.rst:248 +#: ../Doc/library/idle.rst:262 msgid "Debug menu (Shell window only)" msgstr "" -#: ../Doc/library/idle.rst:255 +#: ../Doc/library/idle.rst:269 msgid "Go to File/Line" msgstr "" -#: ../Doc/library/idle.rst:251 +#: ../Doc/library/idle.rst:265 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 " @@ -545,45 +556,45 @@ msgid "" "Shell window and Output windows." msgstr "" -#: ../Doc/library/idle.rst:264 +#: ../Doc/library/idle.rst:278 msgid "Debugger (toggle)" msgstr "" -#: ../Doc/library/idle.rst:262 +#: ../Doc/library/idle.rst:276 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:268 +#: ../Doc/library/idle.rst:282 msgid "Stack Viewer" msgstr "" -#: ../Doc/library/idle.rst:267 +#: ../Doc/library/idle.rst:281 msgid "" "Show the stack traceback of the last exception in a tree widget, with access " "to locals and globals." msgstr "" -#: ../Doc/library/idle.rst:271 +#: ../Doc/library/idle.rst:285 msgid "Auto-open Stack Viewer" msgstr "" -#: ../Doc/library/idle.rst:271 +#: ../Doc/library/idle.rst:285 msgid "" "Toggle automatically opening the stack viewer on an unhandled exception." msgstr "" -#: ../Doc/library/idle.rst:274 +#: ../Doc/library/idle.rst:288 msgid "Options menu (Shell and Editor)" msgstr "" -#: ../Doc/library/idle.rst:282 +#: ../Doc/library/idle.rst:296 msgid "Configure IDLE" msgstr "" -#: ../Doc/library/idle.rst:277 +#: ../Doc/library/idle.rst:291 msgid "" "Open a configuration dialog and change preferences for the following: fonts, " "indentation, keybindings, text color themes, startup windows and size, " @@ -592,96 +603,99 @@ msgid "" "`Setting preferences ` under Help and preferences." msgstr "" -#: ../Doc/library/idle.rst:287 +#: ../Doc/library/idle.rst:301 msgid "Show/Hide Code Context (Editor Window only)" msgstr "" -#: ../Doc/library/idle.rst:285 +#: ../Doc/library/idle.rst:299 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. See :ref:`Code " "Context ` in the Editing and Navigation section below." msgstr "" -#: ../Doc/library/idle.rst:292 +#: ../Doc/library/idle.rst:309 msgid "Zoom/Restore Height" msgstr "" -#: ../Doc/library/idle.rst:290 +#: ../Doc/library/idle.rst:304 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." +"Configure IDLE dialog. The maximum height for a screen is determined by " +"momentarily maximizing a window the first time one is zoomed on the screen. " +"Changing screen settings may invalidate the saved height. This toogle has " +"no effect when a window is maximized." msgstr "" -#: ../Doc/library/idle.rst:295 +#: ../Doc/library/idle.rst:312 msgid "Window menu (Shell and Editor)" msgstr "" -#: ../Doc/library/idle.rst:297 +#: ../Doc/library/idle.rst:314 msgid "" "Lists the names of all open windows; select one to bring it to the " "foreground (deiconifying it if necessary)." msgstr "" -#: ../Doc/library/idle.rst:301 +#: ../Doc/library/idle.rst:318 msgid "Help menu (Shell and Editor)" msgstr "" -#: ../Doc/library/idle.rst:304 +#: ../Doc/library/idle.rst:321 msgid "About IDLE" msgstr "" -#: ../Doc/library/idle.rst:304 +#: ../Doc/library/idle.rst:321 msgid "Display version, copyright, license, credits, and more." msgstr "" -#: ../Doc/library/idle.rst:308 +#: ../Doc/library/idle.rst:325 msgid "IDLE Help" msgstr "" -#: ../Doc/library/idle.rst:307 +#: ../Doc/library/idle.rst:324 msgid "" "Display this IDLE document, detailing the menu options, basic editing and " "navigation, and other tips." msgstr "" -#: ../Doc/library/idle.rst:312 +#: ../Doc/library/idle.rst:329 msgid "Python Docs" msgstr "" -#: ../Doc/library/idle.rst:311 +#: ../Doc/library/idle.rst:328 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:315 +#: ../Doc/library/idle.rst:332 msgid "Turtle Demo" msgstr "" -#: ../Doc/library/idle.rst:315 +#: ../Doc/library/idle.rst:332 msgid "Run the turtledemo module with example Python code and turtle drawings." msgstr "" -#: ../Doc/library/idle.rst:317 +#: ../Doc/library/idle.rst:334 msgid "" "Additional help sources may be added here with the Configure IDLE dialog " "under the General tab. See the :ref:`Help sources ` subsection " "below for more on Help menu choices." msgstr "" -#: ../Doc/library/idle.rst:330 +#: ../Doc/library/idle.rst:347 msgid "Context Menus" msgstr "" -#: ../Doc/library/idle.rst:332 +#: ../Doc/library/idle.rst:349 msgid "" "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:344 +#: ../Doc/library/idle.rst:361 msgid "" "Editor windows also have breakpoint functions. Lines with a breakpoint set " "are specially marked. Breakpoints only have an effect when running under " @@ -689,66 +703,66 @@ msgid "" "directory." msgstr "" -#: ../Doc/library/idle.rst:349 +#: ../Doc/library/idle.rst:366 msgid "Set Breakpoint" msgstr "" -#: ../Doc/library/idle.rst:349 +#: ../Doc/library/idle.rst:366 msgid "Set a breakpoint on the current line." msgstr "" -#: ../Doc/library/idle.rst:352 +#: ../Doc/library/idle.rst:369 msgid "Clear Breakpoint" msgstr "" -#: ../Doc/library/idle.rst:352 +#: ../Doc/library/idle.rst:369 msgid "Clear the breakpoint on that line." msgstr "" -#: ../Doc/library/idle.rst:354 +#: ../Doc/library/idle.rst:371 msgid "Shell and Output windows also have the following." msgstr "" -#: ../Doc/library/idle.rst:357 +#: ../Doc/library/idle.rst:374 msgid "Go to file/line" msgstr "" -#: ../Doc/library/idle.rst:357 +#: ../Doc/library/idle.rst:374 msgid "Same as in Debug menu." msgstr "" -#: ../Doc/library/idle.rst:359 +#: ../Doc/library/idle.rst:376 msgid "" "The Shell window also has an output squeezing facility explained in the " "*Python Shell window* subsection below." msgstr "" -#: ../Doc/library/idle.rst:365 +#: ../Doc/library/idle.rst:382 msgid "Squeeze" msgstr "" -#: ../Doc/library/idle.rst:363 +#: ../Doc/library/idle.rst:380 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:370 +#: ../Doc/library/idle.rst:387 msgid "Editing and navigation" msgstr "" -#: ../Doc/library/idle.rst:373 +#: ../Doc/library/idle.rst:390 msgid "Editor windows" msgstr "" -#: ../Doc/library/idle.rst:375 +#: ../Doc/library/idle.rst:392 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:379 +#: ../Doc/library/idle.rst:396 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 " @@ -756,99 +770,99 @@ msgid "" "numbers with 0." msgstr "" -#: ../Doc/library/idle.rst:384 +#: ../Doc/library/idle.rst:401 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:388 +#: ../Doc/library/idle.rst:405 msgid "Key bindings" msgstr "" -#: ../Doc/library/idle.rst:390 +#: ../Doc/library/idle.rst:407 msgid "" "In this section, 'C' refers to the :kbd:`Control` key on Windows and Unix " "and the :kbd:`Command` key on macOS." msgstr "" -#: ../Doc/library/idle.rst:393 +#: ../Doc/library/idle.rst:410 msgid ":kbd:`Backspace` deletes to the left; :kbd:`Del` deletes to the right" msgstr "" -#: ../Doc/library/idle.rst:395 +#: ../Doc/library/idle.rst:412 msgid "" ":kbd:`C-Backspace` delete word left; :kbd:`C-Del` delete word to the right" msgstr "" -#: ../Doc/library/idle.rst:397 +#: ../Doc/library/idle.rst:414 msgid "Arrow keys and :kbd:`Page Up`/:kbd:`Page Down` to move around" msgstr "" -#: ../Doc/library/idle.rst:399 +#: ../Doc/library/idle.rst:416 msgid ":kbd:`C-LeftArrow` and :kbd:`C-RightArrow` moves by words" msgstr "" -#: ../Doc/library/idle.rst:401 +#: ../Doc/library/idle.rst:418 msgid ":kbd:`Home`/:kbd:`End` go to begin/end of line" msgstr "" -#: ../Doc/library/idle.rst:403 +#: ../Doc/library/idle.rst:420 msgid ":kbd:`C-Home`/:kbd:`C-End` go to begin/end of file" msgstr "" -#: ../Doc/library/idle.rst:405 +#: ../Doc/library/idle.rst:422 msgid "Some useful Emacs bindings are inherited from Tcl/Tk:" msgstr "" -#: ../Doc/library/idle.rst:407 +#: ../Doc/library/idle.rst:424 msgid ":kbd:`C-a` beginning of line" msgstr "" -#: ../Doc/library/idle.rst:409 +#: ../Doc/library/idle.rst:426 msgid ":kbd:`C-e` end of line" msgstr "" -#: ../Doc/library/idle.rst:411 +#: ../Doc/library/idle.rst:428 msgid ":kbd:`C-k` kill line (but doesn't put it in clipboard)" msgstr "" -#: ../Doc/library/idle.rst:413 +#: ../Doc/library/idle.rst:430 msgid ":kbd:`C-l` center window around the insertion point" msgstr "" -#: ../Doc/library/idle.rst:415 +#: ../Doc/library/idle.rst:432 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:418 +#: ../Doc/library/idle.rst:435 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:421 +#: ../Doc/library/idle.rst:438 msgid "" ":kbd:`C-p` go up one line (usually you can also use the cursor key for this)" msgstr "" -#: ../Doc/library/idle.rst:424 +#: ../Doc/library/idle.rst:441 msgid ":kbd:`C-d` delete next character" msgstr "" -#: ../Doc/library/idle.rst:426 +#: ../Doc/library/idle.rst:443 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:430 +#: ../Doc/library/idle.rst:447 msgid "Automatic indentation" msgstr "" -#: ../Doc/library/idle.rst:432 +#: ../Doc/library/idle.rst:449 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 " @@ -858,23 +872,23 @@ msgid "" "tabs are restricted to four spaces due to Tcl/Tk limitations." msgstr "" -#: ../Doc/library/idle.rst:439 +#: ../Doc/library/idle.rst:456 msgid "" "See also the indent/dedent region commands on the :ref:`Format menu `." msgstr "" -#: ../Doc/library/idle.rst:446 +#: ../Doc/library/idle.rst:463 msgid "Completions" msgstr "" -#: ../Doc/library/idle.rst:448 +#: ../Doc/library/idle.rst:465 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:452 +#: ../Doc/library/idle.rst:469 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 " @@ -882,13 +896,13 @@ msgid "" "ACW will open immediately if a possible continuation is found." msgstr "" -#: ../Doc/library/idle.rst:457 +#: ../Doc/library/idle.rst:474 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:460 +#: ../Doc/library/idle.rst:477 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 " @@ -898,7 +912,7 @@ msgid "" "the ACW will attempt to be more specific." msgstr "" -#: ../Doc/library/idle.rst:467 +#: ../Doc/library/idle.rst:484 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 " @@ -908,18 +922,18 @@ msgid "" "and the scroll wheel all operate on the ACW." msgstr "" -#: ../Doc/library/idle.rst:474 +#: ../Doc/library/idle.rst:491 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:478 +#: ../Doc/library/idle.rst:495 msgid "Completions and the 'Expand Word' facility can save a lot of typing!" msgstr "" -#: ../Doc/library/idle.rst:480 +#: ../Doc/library/idle.rst:497 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 " @@ -928,17 +942,17 @@ msgid "" "so much can be found by default, e.g. the re module." msgstr "" -#: ../Doc/library/idle.rst:486 +#: ../Doc/library/idle.rst:503 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:492 +#: ../Doc/library/idle.rst:509 msgid "Calltips" msgstr "" -#: ../Doc/library/idle.rst:494 +#: ../Doc/library/idle.rst:511 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 " @@ -947,7 +961,7 @@ msgid "" "definition, the menu or shortcut display a calltip." msgstr "" -#: ../Doc/library/idle.rst:500 +#: ../Doc/library/idle.rst:517 msgid "" "A calltip consists of the function signature and the first line of the " "docstring. For builtins without an accessible signature, the calltip " @@ -955,14 +969,14 @@ msgid "" "details may change." msgstr "" -#: ../Doc/library/idle.rst:505 +#: ../Doc/library/idle.rst:522 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:509 +#: ../Doc/library/idle.rst:526 msgid "" "For example, restart the Shell and enter ``itertools.count(``. A calltip " "appears because Idle imports itertools into the user process for its own " @@ -971,18 +985,18 @@ msgid "" "``import turtle`` and then ``turtle.write(`` will work." msgstr "" -#: ../Doc/library/idle.rst:515 +#: ../Doc/library/idle.rst:532 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:522 +#: ../Doc/library/idle.rst:539 msgid "Code Context" msgstr "" -#: ../Doc/library/idle.rst:524 +#: ../Doc/library/idle.rst:541 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 " @@ -996,23 +1010,23 @@ msgid "" "the top of the editor." msgstr "" -#: ../Doc/library/idle.rst:535 +#: ../Doc/library/idle.rst:552 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:539 +#: ../Doc/library/idle.rst:556 msgid "Python Shell window" msgstr "" -#: ../Doc/library/idle.rst:541 +#: ../Doc/library/idle.rst:558 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:544 +#: ../Doc/library/idle.rst:561 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 " @@ -1020,48 +1034,48 @@ msgid "" "when multiple statements are compiled as if they were one." msgstr "" -#: ../Doc/library/idle.rst:549 +#: ../Doc/library/idle.rst:566 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:552 +#: ../Doc/library/idle.rst:569 msgid ":kbd:`C-c` interrupts executing command" msgstr "" -#: ../Doc/library/idle.rst:554 +#: ../Doc/library/idle.rst:571 msgid "" ":kbd:`C-d` sends end-of-file; closes window if typed at a ``>>>`` prompt" msgstr "" -#: ../Doc/library/idle.rst:556 +#: ../Doc/library/idle.rst:573 msgid ":kbd:`Alt-/` (Expand word) is also useful to reduce typing" msgstr "" -#: ../Doc/library/idle.rst:558 +#: ../Doc/library/idle.rst:575 msgid "Command history" msgstr "" -#: ../Doc/library/idle.rst:560 +#: ../Doc/library/idle.rst:577 msgid "" ":kbd:`Alt-p` retrieves previous command matching what you have typed. On " "macOS use :kbd:`C-p`." msgstr "" -#: ../Doc/library/idle.rst:563 +#: ../Doc/library/idle.rst:580 msgid ":kbd:`Alt-n` retrieves next. On macOS use :kbd:`C-n`." msgstr "" -#: ../Doc/library/idle.rst:565 +#: ../Doc/library/idle.rst:582 msgid ":kbd:`Return` while on any previous command retrieves that command" msgstr "" -#: ../Doc/library/idle.rst:568 +#: ../Doc/library/idle.rst:585 msgid "Text colors" msgstr "" -#: ../Doc/library/idle.rst:570 +#: ../Doc/library/idle.rst:587 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 " @@ -1071,7 +1085,7 @@ msgid "" "(when present), found text (when possible), and selected text." msgstr "" -#: ../Doc/library/idle.rst:577 +#: ../Doc/library/idle.rst:594 msgid "" "Text coloring is done in the background, so uncolorized text is occasionally " "visible. To change the color scheme, use the Configure IDLE dialog " @@ -1079,11 +1093,11 @@ msgid "" "and text in popups and dialogs is not user-configurable." msgstr "" -#: ../Doc/library/idle.rst:584 +#: ../Doc/library/idle.rst:601 msgid "Startup and code execution" msgstr "" -#: ../Doc/library/idle.rst:586 +#: ../Doc/library/idle.rst:603 msgid "" "Upon startup with the ``-s`` option, IDLE will execute the file referenced " "by the environment variables :envvar:`IDLESTARTUP` or :envvar:" @@ -1095,7 +1109,7 @@ msgid "" "modules." msgstr "" -#: ../Doc/library/idle.rst:594 +#: ../Doc/library/idle.rst:611 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`` " @@ -1104,15 +1118,15 @@ msgid "" "importing functions to be used from IDLE's Python shell." msgstr "" -#: ../Doc/library/idle.rst:601 +#: ../Doc/library/idle.rst:618 msgid "Command line usage" msgstr "" -#: ../Doc/library/idle.rst:617 +#: ../Doc/library/idle.rst:634 msgid "If there are arguments:" msgstr "" -#: ../Doc/library/idle.rst:619 +#: ../Doc/library/idle.rst:636 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'``. " @@ -1120,17 +1134,17 @@ msgid "" "dialog." msgstr "" -#: ../Doc/library/idle.rst:624 +#: ../Doc/library/idle.rst:641 msgid "" "Otherwise, arguments are files opened for editing and ``sys.argv`` reflects " "the arguments passed to IDLE itself." msgstr "" -#: ../Doc/library/idle.rst:628 +#: ../Doc/library/idle.rst:645 msgid "Startup failure" msgstr "" -#: ../Doc/library/idle.rst:630 +#: ../Doc/library/idle.rst:647 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 " @@ -1140,7 +1154,7 @@ msgid "" "user here. It then exits." msgstr "" -#: ../Doc/library/idle.rst:637 +#: ../Doc/library/idle.rst:654 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 " @@ -1149,7 +1163,7 @@ msgid "" "file." msgstr "" -#: ../Doc/library/idle.rst:643 +#: ../Doc/library/idle.rst:660 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 " @@ -1159,7 +1173,7 @@ msgid "" "connections." msgstr "" -#: ../Doc/library/idle.rst:650 +#: ../Doc/library/idle.rst:667 msgid "" "Python installation issues occasionally stop IDLE: multiple versions can " "clash, or a single installation might need admin access. If one undo the " @@ -1167,7 +1181,7 @@ msgid "" "completely remove Python and start over." msgstr "" -#: ../Doc/library/idle.rst:655 +#: ../Doc/library/idle.rst:672 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 " @@ -1175,7 +1189,7 @@ msgid "" "error box or Restart Shell on the Shell menu may fix a temporary problem." msgstr "" -#: ../Doc/library/idle.rst:660 +#: ../Doc/library/idle.rst:677 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 " @@ -1185,17 +1199,17 @@ msgid "" "be to delete one or more of the configuration files." msgstr "" -#: ../Doc/library/idle.rst:667 +#: ../Doc/library/idle.rst:684 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:671 +#: ../Doc/library/idle.rst:688 msgid "Running user code" msgstr "" -#: ../Doc/library/idle.rst:673 +#: ../Doc/library/idle.rst:690 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, " @@ -1205,7 +1219,7 @@ msgid "" "``threading.activeCount()`` returns 2 instead of 1." msgstr "" -#: ../Doc/library/idle.rst:680 +#: ../Doc/library/idle.rst:697 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 " @@ -1215,7 +1229,7 @@ msgid "" "__stderr__`` are not touched, but may be ``None``." msgstr "" -#: ../Doc/library/idle.rst:687 +#: ../Doc/library/idle.rst:704 msgid "" "When Shell has the focus, it controls the keyboard and screen. This is " "normally transparent, but functions that directly access the keyboard and " @@ -1223,7 +1237,7 @@ msgid "" "determine whether a key has been pressed and if so, which." msgstr "" -#: ../Doc/library/idle.rst:692 +#: ../Doc/library/idle.rst:709 msgid "" "IDLE's standard stream replacements are not inherited by subprocesses " "created in the execution process, whether directly by user code or by " @@ -1233,24 +1247,24 @@ msgid "" "attached to that window for input and output." msgstr "" -#: ../Doc/library/idle.rst:699 +#: ../Doc/library/idle.rst:716 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:703 +#: ../Doc/library/idle.rst:720 msgid "" "When user code raises SystemExit either directly or by calling sys.exit, " "IDLE returns to a Shell prompt instead of exiting." msgstr "" -#: ../Doc/library/idle.rst:707 +#: ../Doc/library/idle.rst:724 msgid "User output in Shell" msgstr "" -#: ../Doc/library/idle.rst:709 +#: ../Doc/library/idle.rst:726 msgid "" "When a program outputs text, the result is determined by the corresponding " "output device. When IDLE executes user code, ``sys.stdout`` and ``sys." @@ -1260,7 +1274,7 @@ msgid "" "rather than production runs." msgstr "" -#: ../Doc/library/idle.rst:716 +#: ../Doc/library/idle.rst:733 msgid "" "For instance, Shell never throws away output. A program that sends " "unlimited output to Shell will eventually fill memory, resulting in a memory " @@ -1269,7 +1283,7 @@ msgid "" "lines, with 300 the default." msgstr "" -#: ../Doc/library/idle.rst:722 +#: ../Doc/library/idle.rst:739 msgid "" "A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) " "in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters " @@ -1283,7 +1297,7 @@ msgid "" "spacing behavior.) ::" msgstr "" -#: ../Doc/library/idle.rst:740 +#: ../Doc/library/idle.rst:757 msgid "" "The ``repr`` function is used for interactive echo of expression values. It " "returns an altered version of the input string in which control codes, some " @@ -1292,13 +1306,13 @@ msgid "" "regardless of how they are displayed." msgstr "" -#: ../Doc/library/idle.rst:746 +#: ../Doc/library/idle.rst:763 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:749 +#: ../Doc/library/idle.rst:766 msgid "" "For SyntaxError tracebacks, the normal '^' marking where the error was " "detected is replaced by coloring the text with an error highlight. When code " @@ -1307,7 +1321,7 @@ msgid "" "opened if necessary." msgstr "" -#: ../Doc/library/idle.rst:755 +#: ../Doc/library/idle.rst:772 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 " @@ -1316,18 +1330,18 @@ msgid "" "on the output. This can be useful lines long enough to slow down scrolling." msgstr "" -#: ../Doc/library/idle.rst:763 +#: ../Doc/library/idle.rst:780 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:768 +#: ../Doc/library/idle.rst:785 msgid "Developing tkinter applications" msgstr "" -#: ../Doc/library/idle.rst:770 +#: ../Doc/library/idle.rst:787 msgid "" "IDLE is intentionally different from standard Python in order to facilitate " "development of tkinter programs. Enter ``import tkinter as tk; root = tk." @@ -1339,7 +1353,7 @@ msgid "" "changes in standard Python until one enters ``root.update()``." msgstr "" -#: ../Doc/library/idle.rst:779 +#: ../Doc/library/idle.rst:796 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 " @@ -1347,7 +1361,7 @@ msgid "" "``mainloop()`` returns, at which time there is nothing left to interact with." msgstr "" -#: ../Doc/library/idle.rst:785 +#: ../Doc/library/idle.rst:802 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 " @@ -1355,11 +1369,11 @@ msgid "" "mainloop call when running in standard Python." msgstr "" -#: ../Doc/library/idle.rst:791 +#: ../Doc/library/idle.rst:808 msgid "Running without a subprocess" msgstr "" -#: ../Doc/library/idle.rst:793 +#: ../Doc/library/idle.rst:810 msgid "" "By default, IDLE executes user code in a separate subprocess via a socket, " "which uses the internal loopback interface. This connection is not " @@ -1367,7 +1381,7 @@ msgid "" "firewall software complains anyway, you can ignore it." msgstr "" -#: ../Doc/library/idle.rst:798 +#: ../Doc/library/idle.rst:815 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 " @@ -1376,7 +1390,7 @@ msgid "" "command line switch." msgstr "" -#: ../Doc/library/idle.rst:804 +#: ../Doc/library/idle.rst:821 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 " @@ -1390,15 +1404,15 @@ msgid "" "at all possible." msgstr "" -#: ../Doc/library/idle.rst:819 +#: ../Doc/library/idle.rst:836 msgid "Help and preferences" msgstr "" -#: ../Doc/library/idle.rst:824 +#: ../Doc/library/idle.rst:841 msgid "Help sources" msgstr "" -#: ../Doc/library/idle.rst:826 +#: ../Doc/library/idle.rst:843 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 " @@ -1408,7 +1422,7 @@ msgid "" "the opened box." msgstr "" -#: ../Doc/library/idle.rst:834 +#: ../Doc/library/idle.rst:851 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 " @@ -1416,17 +1430,17 @@ msgid "" "the docs (this may be an installation option), that will be opened instead." msgstr "" -#: ../Doc/library/idle.rst:840 +#: ../Doc/library/idle.rst:857 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:846 +#: ../Doc/library/idle.rst:863 msgid "Setting preferences" msgstr "" -#: ../Doc/library/idle.rst:848 +#: ../Doc/library/idle.rst:865 msgid "" "The font preferences, highlighting, keys, and general preferences can be " "changed via Configure IDLE on the Option menu. Non-default user settings are " @@ -1435,7 +1449,7 @@ msgid "" "more of the files in .idlerc." msgstr "" -#: ../Doc/library/idle.rst:854 +#: ../Doc/library/idle.rst:871 msgid "" "On the Font tab, see the text sample for the effect of font face and size on " "multiple characters in multiple languages. Edit the sample to add other " @@ -1444,7 +1458,7 @@ msgid "" "them to the top of the sample and try changing first size and then font." msgstr "" -#: ../Doc/library/idle.rst:861 +#: ../Doc/library/idle.rst:878 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, " @@ -1452,22 +1466,22 @@ msgid "" "IDLEs." msgstr "" -#: ../Doc/library/idle.rst:867 +#: ../Doc/library/idle.rst:884 msgid "IDLE on macOS" msgstr "" -#: ../Doc/library/idle.rst:869 +#: ../Doc/library/idle.rst:886 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:874 +#: ../Doc/library/idle.rst:891 msgid "Extensions" msgstr "" -#: ../Doc/library/idle.rst:876 +#: ../Doc/library/idle.rst:893 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/logging.handlers.po b/library/logging.handlers.po index 785faa87..1bf114be 100644 --- a/library/logging.handlers.po +++ b/library/logging.handlers.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: 2019-06-19 22:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -612,10 +612,11 @@ msgstr "" #: ../Doc/library/logging.handlers.rst:472 msgid "" "Pickles the record's attribute dictionary in binary format with a length " -"prefix, and returns it ready for transmission across the socket." +"prefix, and returns it ready for transmission across the socket. The details " +"of this operation are equivalent to::" msgstr "" -#: ../Doc/library/logging.handlers.rst:475 +#: ../Doc/library/logging.handlers.rst:480 msgid "" "Note that pickles aren't completely secure. If you are concerned about " "security, you may want to override this method to implement a more secure " @@ -624,13 +625,20 @@ msgid "" "objects on the receiving end." msgstr "" -#: ../Doc/library/logging.handlers.rst:484 +#: ../Doc/library/logging.handlers.rst:489 msgid "" -"Send a pickled string *packet* to the socket. This function allows for " -"partial sends which can happen when the network is busy." +"Send a pickled byte-string *packet* to the socket. The format of the sent " +"byte-string is as described in the documentation for :meth:`~SocketHandler." +"makePickle`." msgstr "" -#: ../Doc/library/logging.handlers.rst:490 +#: ../Doc/library/logging.handlers.rst:493 +msgid "" +"This function allows for partial sends, which can happen when the network is " +"busy." +msgstr "" + +#: ../Doc/library/logging.handlers.rst:499 msgid "" "Tries to create a socket; on failure, uses an exponential back-off " "algorithm. On initial failure, the handler will drop the message it was " @@ -641,23 +649,23 @@ msgid "" "each time up to a maximum of 30 seconds." msgstr "" -#: ../Doc/library/logging.handlers.rst:498 +#: ../Doc/library/logging.handlers.rst:507 msgid "This behaviour is controlled by the following handler attributes:" msgstr "" -#: ../Doc/library/logging.handlers.rst:500 +#: ../Doc/library/logging.handlers.rst:509 msgid "``retryStart`` (initial delay, defaulting to 1.0 seconds)." msgstr "" -#: ../Doc/library/logging.handlers.rst:501 +#: ../Doc/library/logging.handlers.rst:510 msgid "``retryFactor`` (multiplier, defaulting to 2.0)." msgstr "" -#: ../Doc/library/logging.handlers.rst:502 +#: ../Doc/library/logging.handlers.rst:511 msgid "``retryMax`` (maximum delay, defaulting to 30.0 seconds)." msgstr "" -#: ../Doc/library/logging.handlers.rst:504 +#: ../Doc/library/logging.handlers.rst:513 msgid "" "This means that if the remote listener starts up *after* the handler has " "been used, you could lose messages (since the handler won't even attempt a " @@ -665,31 +673,31 @@ msgid "" "during the delay period)." msgstr "" -#: ../Doc/library/logging.handlers.rst:513 +#: ../Doc/library/logging.handlers.rst:522 msgid "DatagramHandler" msgstr "" -#: ../Doc/library/logging.handlers.rst:515 +#: ../Doc/library/logging.handlers.rst:524 msgid "" "The :class:`DatagramHandler` class, located in the :mod:`logging.handlers` " "module, inherits from :class:`SocketHandler` to support sending logging " "messages over UDP sockets." msgstr "" -#: ../Doc/library/logging.handlers.rst:522 +#: ../Doc/library/logging.handlers.rst:531 msgid "" "Returns a new instance of the :class:`DatagramHandler` class intended to " "communicate with a remote machine whose address is given by *host* and " "*port*." msgstr "" -#: ../Doc/library/logging.handlers.rst:525 +#: ../Doc/library/logging.handlers.rst:534 msgid "" "If ``port`` is specified as ``None``, a Unix domain socket is created using " "the value in ``host`` - otherwise, a UDP socket is created." msgstr "" -#: ../Doc/library/logging.handlers.rst:531 +#: ../Doc/library/logging.handlers.rst:540 msgid "" "Pickles the record's attribute dictionary and writes it to the socket in " "binary format. If there is an error with the socket, silently drops the " @@ -697,27 +705,29 @@ msgid "" "LogRecord`, use the :func:`~logging.makeLogRecord` function." msgstr "" -#: ../Doc/library/logging.handlers.rst:540 +#: ../Doc/library/logging.handlers.rst:549 msgid "" "The factory method of :class:`SocketHandler` is here overridden to create a " "UDP socket (:const:`socket.SOCK_DGRAM`)." msgstr "" -#: ../Doc/library/logging.handlers.rst:546 -msgid "Send a pickled string to a socket." +#: ../Doc/library/logging.handlers.rst:555 +msgid "" +"Send a pickled byte-string to a socket. The format of the sent byte-string " +"is as described in the documentation for :meth:`SocketHandler.makePickle`." msgstr "" -#: ../Doc/library/logging.handlers.rst:552 +#: ../Doc/library/logging.handlers.rst:562 msgid "SysLogHandler" msgstr "" -#: ../Doc/library/logging.handlers.rst:554 +#: ../Doc/library/logging.handlers.rst:564 msgid "" "The :class:`SysLogHandler` class, located in the :mod:`logging.handlers` " "module, supports sending logging messages to a remote or local Unix syslog." msgstr "" -#: ../Doc/library/logging.handlers.rst:560 +#: ../Doc/library/logging.handlers.rst:570 msgid "" "Returns a new instance of the :class:`SysLogHandler` class intended to " "communicate with a remote Unix machine whose address is given by *address* " @@ -732,7 +742,7 @@ msgid "" "rsyslog), specify a value of :const:`socket.SOCK_STREAM`." msgstr "" -#: ../Doc/library/logging.handlers.rst:572 +#: ../Doc/library/logging.handlers.rst:582 msgid "" "Note that if your server is not listening on UDP port 514, :class:" "`SysLogHandler` may appear not to work. In that case, check what address you " @@ -743,21 +753,21 @@ msgid "" "platforms). On Windows, you pretty much have to use the UDP option." msgstr "" -#: ../Doc/library/logging.handlers.rst:581 +#: ../Doc/library/logging.handlers.rst:591 msgid "*socktype* was added." msgstr "" -#: ../Doc/library/logging.handlers.rst:587 +#: ../Doc/library/logging.handlers.rst:597 msgid "Closes the socket to the remote host." msgstr "" -#: ../Doc/library/logging.handlers.rst:592 +#: ../Doc/library/logging.handlers.rst:602 msgid "" "The record is formatted, and then sent to the syslog server. If exception " "information is present, it is *not* sent to the server." msgstr "" -#: ../Doc/library/logging.handlers.rst:595 +#: ../Doc/library/logging.handlers.rst:605 msgid "" "(See: :issue:`12168`.) In earlier versions, the message sent to the syslog " "daemons was always terminated with a NUL byte, because early versions of " @@ -768,7 +778,7 @@ msgid "" "byte on as part of the message." msgstr "" -#: ../Doc/library/logging.handlers.rst:604 +#: ../Doc/library/logging.handlers.rst:614 msgid "" "To enable easier handling of syslog messages in the face of all these " "differing daemon behaviours, the appending of the NUL byte has been made " @@ -778,7 +788,7 @@ msgid "" "*not* append the NUL terminator." msgstr "" -#: ../Doc/library/logging.handlers.rst:611 +#: ../Doc/library/logging.handlers.rst:621 msgid "" "(See: :issue:`12419`.) In earlier versions, there was no facility for an " "\"ident\" or \"tag\" prefix to identify the source of the message. This can " @@ -789,262 +799,262 @@ msgid "" "bytes, and is prepended to the message exactly as is." msgstr "" -#: ../Doc/library/logging.handlers.rst:622 +#: ../Doc/library/logging.handlers.rst:632 msgid "" "Encodes the facility and priority into an integer. You can pass in strings " "or integers - if strings are passed, internal mapping dictionaries are used " "to convert them to integers." msgstr "" -#: ../Doc/library/logging.handlers.rst:626 +#: ../Doc/library/logging.handlers.rst:636 msgid "" "The symbolic ``LOG_`` values are defined in :class:`SysLogHandler` and " "mirror the values defined in the ``sys/syslog.h`` header file." msgstr "" -#: ../Doc/library/logging.handlers.rst:629 +#: ../Doc/library/logging.handlers.rst:639 msgid "**Priorities**" msgstr "" -#: ../Doc/library/logging.handlers.rst:632 -#: ../Doc/library/logging.handlers.rst:654 +#: ../Doc/library/logging.handlers.rst:642 +#: ../Doc/library/logging.handlers.rst:664 msgid "Name (string)" msgstr "" -#: ../Doc/library/logging.handlers.rst:632 -#: ../Doc/library/logging.handlers.rst:654 +#: ../Doc/library/logging.handlers.rst:642 +#: ../Doc/library/logging.handlers.rst:664 msgid "Symbolic value" msgstr "" -#: ../Doc/library/logging.handlers.rst:634 +#: ../Doc/library/logging.handlers.rst:644 msgid "``alert``" msgstr "``alert``" -#: ../Doc/library/logging.handlers.rst:634 +#: ../Doc/library/logging.handlers.rst:644 msgid "LOG_ALERT" msgstr "LOG_ALERT" -#: ../Doc/library/logging.handlers.rst:636 +#: ../Doc/library/logging.handlers.rst:646 msgid "``crit`` or ``critical``" msgstr "``crit`` ou ``critical``" -#: ../Doc/library/logging.handlers.rst:636 +#: ../Doc/library/logging.handlers.rst:646 msgid "LOG_CRIT" msgstr "LOG_CRIT" -#: ../Doc/library/logging.handlers.rst:638 +#: ../Doc/library/logging.handlers.rst:648 msgid "``debug``" msgstr "``debug``" -#: ../Doc/library/logging.handlers.rst:638 +#: ../Doc/library/logging.handlers.rst:648 msgid "LOG_DEBUG" msgstr "LOG_DEBUG" -#: ../Doc/library/logging.handlers.rst:640 +#: ../Doc/library/logging.handlers.rst:650 msgid "``emerg`` or ``panic``" msgstr "``emerg`` ou ``panic``" -#: ../Doc/library/logging.handlers.rst:640 +#: ../Doc/library/logging.handlers.rst:650 msgid "LOG_EMERG" msgstr "LOG_EMERG" -#: ../Doc/library/logging.handlers.rst:642 +#: ../Doc/library/logging.handlers.rst:652 msgid "``err`` or ``error``" msgstr "``err`` ou ``error``" -#: ../Doc/library/logging.handlers.rst:642 +#: ../Doc/library/logging.handlers.rst:652 msgid "LOG_ERR" msgstr "LOG_ERR" -#: ../Doc/library/logging.handlers.rst:644 +#: ../Doc/library/logging.handlers.rst:654 msgid "``info``" msgstr "``info``" -#: ../Doc/library/logging.handlers.rst:644 +#: ../Doc/library/logging.handlers.rst:654 msgid "LOG_INFO" msgstr "LOG_INFO" -#: ../Doc/library/logging.handlers.rst:646 +#: ../Doc/library/logging.handlers.rst:656 msgid "``notice``" msgstr "``notice``" -#: ../Doc/library/logging.handlers.rst:646 +#: ../Doc/library/logging.handlers.rst:656 msgid "LOG_NOTICE" msgstr "LOG_NOTICE" -#: ../Doc/library/logging.handlers.rst:648 +#: ../Doc/library/logging.handlers.rst:658 msgid "``warn`` or ``warning``" msgstr "``warn`` ou ``warning``" -#: ../Doc/library/logging.handlers.rst:648 +#: ../Doc/library/logging.handlers.rst:658 msgid "LOG_WARNING" msgstr "LOG_WARNING" -#: ../Doc/library/logging.handlers.rst:651 +#: ../Doc/library/logging.handlers.rst:661 msgid "**Facilities**" msgstr "" -#: ../Doc/library/logging.handlers.rst:656 +#: ../Doc/library/logging.handlers.rst:666 msgid "``auth``" msgstr "``auth``" -#: ../Doc/library/logging.handlers.rst:656 +#: ../Doc/library/logging.handlers.rst:666 msgid "LOG_AUTH" msgstr "LOG_AUTH" -#: ../Doc/library/logging.handlers.rst:658 +#: ../Doc/library/logging.handlers.rst:668 msgid "``authpriv``" msgstr "``authpriv``" -#: ../Doc/library/logging.handlers.rst:658 +#: ../Doc/library/logging.handlers.rst:668 msgid "LOG_AUTHPRIV" msgstr "LOG_AUTHPRIV" -#: ../Doc/library/logging.handlers.rst:660 +#: ../Doc/library/logging.handlers.rst:670 msgid "``cron``" msgstr "``cron``" -#: ../Doc/library/logging.handlers.rst:660 +#: ../Doc/library/logging.handlers.rst:670 msgid "LOG_CRON" msgstr "LOG_CRON" -#: ../Doc/library/logging.handlers.rst:662 +#: ../Doc/library/logging.handlers.rst:672 msgid "``daemon``" msgstr "``daemon``" -#: ../Doc/library/logging.handlers.rst:662 +#: ../Doc/library/logging.handlers.rst:672 msgid "LOG_DAEMON" msgstr "LOG_DAEMON" -#: ../Doc/library/logging.handlers.rst:664 +#: ../Doc/library/logging.handlers.rst:674 msgid "``ftp``" msgstr "``ftp``" -#: ../Doc/library/logging.handlers.rst:664 +#: ../Doc/library/logging.handlers.rst:674 msgid "LOG_FTP" msgstr "LOG_FTP" -#: ../Doc/library/logging.handlers.rst:666 +#: ../Doc/library/logging.handlers.rst:676 msgid "``kern``" msgstr "``kern``" -#: ../Doc/library/logging.handlers.rst:666 +#: ../Doc/library/logging.handlers.rst:676 msgid "LOG_KERN" msgstr "LOG_KERN" -#: ../Doc/library/logging.handlers.rst:668 +#: ../Doc/library/logging.handlers.rst:678 msgid "``lpr``" msgstr "``lpr``" -#: ../Doc/library/logging.handlers.rst:668 +#: ../Doc/library/logging.handlers.rst:678 msgid "LOG_LPR" msgstr "LOG_LPR" -#: ../Doc/library/logging.handlers.rst:670 +#: ../Doc/library/logging.handlers.rst:680 msgid "``mail``" msgstr "``mail``" -#: ../Doc/library/logging.handlers.rst:670 +#: ../Doc/library/logging.handlers.rst:680 msgid "LOG_MAIL" msgstr "LOG_MAIL" -#: ../Doc/library/logging.handlers.rst:672 +#: ../Doc/library/logging.handlers.rst:682 msgid "``news``" msgstr "``news``" -#: ../Doc/library/logging.handlers.rst:672 +#: ../Doc/library/logging.handlers.rst:682 msgid "LOG_NEWS" msgstr "LOG_NEWS" -#: ../Doc/library/logging.handlers.rst:674 +#: ../Doc/library/logging.handlers.rst:684 msgid "``syslog``" msgstr "``syslog``" -#: ../Doc/library/logging.handlers.rst:674 +#: ../Doc/library/logging.handlers.rst:684 msgid "LOG_SYSLOG" msgstr "LOG_SYSLOG" -#: ../Doc/library/logging.handlers.rst:676 +#: ../Doc/library/logging.handlers.rst:686 msgid "``user``" msgstr "``user``" -#: ../Doc/library/logging.handlers.rst:676 +#: ../Doc/library/logging.handlers.rst:686 msgid "LOG_USER" msgstr "LOG_USER" -#: ../Doc/library/logging.handlers.rst:678 +#: ../Doc/library/logging.handlers.rst:688 msgid "``uucp``" msgstr "``uucp``" -#: ../Doc/library/logging.handlers.rst:678 +#: ../Doc/library/logging.handlers.rst:688 msgid "LOG_UUCP" msgstr "LOG_UUCP" -#: ../Doc/library/logging.handlers.rst:680 +#: ../Doc/library/logging.handlers.rst:690 msgid "``local0``" msgstr "``local0``" -#: ../Doc/library/logging.handlers.rst:680 +#: ../Doc/library/logging.handlers.rst:690 msgid "LOG_LOCAL0" msgstr "LOG_LOCAL0" -#: ../Doc/library/logging.handlers.rst:682 +#: ../Doc/library/logging.handlers.rst:692 msgid "``local1``" msgstr "``local1``" -#: ../Doc/library/logging.handlers.rst:682 +#: ../Doc/library/logging.handlers.rst:692 msgid "LOG_LOCAL1" msgstr "LOG_LOCAL1" -#: ../Doc/library/logging.handlers.rst:684 +#: ../Doc/library/logging.handlers.rst:694 msgid "``local2``" msgstr "``local2``" -#: ../Doc/library/logging.handlers.rst:684 +#: ../Doc/library/logging.handlers.rst:694 msgid "LOG_LOCAL2" msgstr "LOG_LOCAL2" -#: ../Doc/library/logging.handlers.rst:686 +#: ../Doc/library/logging.handlers.rst:696 msgid "``local3``" msgstr "``local3``" -#: ../Doc/library/logging.handlers.rst:686 +#: ../Doc/library/logging.handlers.rst:696 msgid "LOG_LOCAL3" msgstr "LOG_LOCAL3" -#: ../Doc/library/logging.handlers.rst:688 +#: ../Doc/library/logging.handlers.rst:698 msgid "``local4``" msgstr "``local4``" -#: ../Doc/library/logging.handlers.rst:688 +#: ../Doc/library/logging.handlers.rst:698 msgid "LOG_LOCAL4" msgstr "LOG_LOCAL4" -#: ../Doc/library/logging.handlers.rst:690 +#: ../Doc/library/logging.handlers.rst:700 msgid "``local5``" msgstr "``local5``" -#: ../Doc/library/logging.handlers.rst:690 +#: ../Doc/library/logging.handlers.rst:700 msgid "LOG_LOCAL5" msgstr "LOG_LOCAL5" -#: ../Doc/library/logging.handlers.rst:692 +#: ../Doc/library/logging.handlers.rst:702 msgid "``local6``" msgstr "``local6``" -#: ../Doc/library/logging.handlers.rst:692 +#: ../Doc/library/logging.handlers.rst:702 msgid "LOG_LOCAL6" msgstr "LOG_LOCAL6" -#: ../Doc/library/logging.handlers.rst:694 +#: ../Doc/library/logging.handlers.rst:704 msgid "``local7``" msgstr "``local7``" -#: ../Doc/library/logging.handlers.rst:694 +#: ../Doc/library/logging.handlers.rst:704 msgid "LOG_LOCAL7" msgstr "LOG_LOCAL7" -#: ../Doc/library/logging.handlers.rst:699 +#: ../Doc/library/logging.handlers.rst:709 msgid "" "Maps a logging level name to a syslog priority name. You may need to " "override this if you are using custom levels, or if the default algorithm is " @@ -1053,11 +1063,11 @@ msgid "" "all other level names to 'warning'." msgstr "" -#: ../Doc/library/logging.handlers.rst:709 +#: ../Doc/library/logging.handlers.rst:719 msgid "NTEventLogHandler" msgstr "" -#: ../Doc/library/logging.handlers.rst:711 +#: ../Doc/library/logging.handlers.rst:721 msgid "" "The :class:`NTEventLogHandler` class, located in the :mod:`logging.handlers` " "module, supports sending logging messages to a local Windows NT, Windows " @@ -1065,7 +1075,7 @@ msgid "" "Win32 extensions for Python installed." msgstr "" -#: ../Doc/library/logging.handlers.rst:719 +#: ../Doc/library/logging.handlers.rst:729 msgid "" "Returns a new instance of the :class:`NTEventLogHandler` class. The " "*appname* is used to define the application name as it appears in the event " @@ -1081,7 +1091,7 @@ msgid "" "or ``'Security'``, and defaults to ``'Application'``." msgstr "" -#: ../Doc/library/logging.handlers.rst:735 +#: ../Doc/library/logging.handlers.rst:745 msgid "" "At this point, you can remove the application name from the registry as a " "source of event log entries. However, if you do this, you will not be able " @@ -1090,19 +1100,19 @@ msgid "" "not do this." msgstr "" -#: ../Doc/library/logging.handlers.rst:744 +#: ../Doc/library/logging.handlers.rst:754 msgid "" "Determines the message ID, event category and event type, and then logs the " "message in the NT event log." msgstr "" -#: ../Doc/library/logging.handlers.rst:750 +#: ../Doc/library/logging.handlers.rst:760 msgid "" "Returns the event category for the record. Override this if you want to " "specify your own categories. This version returns 0." msgstr "" -#: ../Doc/library/logging.handlers.rst:756 +#: ../Doc/library/logging.handlers.rst:766 msgid "" "Returns the event type for the record. Override this if you want to specify " "your own types. This version does a mapping using the handler's typemap " @@ -1113,7 +1123,7 @@ msgid "" "the handler's *typemap* attribute." msgstr "" -#: ../Doc/library/logging.handlers.rst:767 +#: ../Doc/library/logging.handlers.rst:777 msgid "" "Returns the message ID for the record. If you are using your own messages, " "you could do this by having the *msg* passed to the logger being an ID " @@ -1122,17 +1132,17 @@ msgid "" "message ID in :file:`win32service.pyd`." msgstr "" -#: ../Doc/library/logging.handlers.rst:776 +#: ../Doc/library/logging.handlers.rst:786 msgid "SMTPHandler" msgstr "" -#: ../Doc/library/logging.handlers.rst:778 +#: ../Doc/library/logging.handlers.rst:788 msgid "" "The :class:`SMTPHandler` class, located in the :mod:`logging.handlers` " "module, supports sending logging messages to an email address via SMTP." msgstr "" -#: ../Doc/library/logging.handlers.rst:784 +#: ../Doc/library/logging.handlers.rst:794 msgid "" "Returns a new instance of the :class:`SMTPHandler` class. The instance is " "initialized with the from and to addresses and subject line of the email. " @@ -1143,7 +1153,7 @@ msgid "" "*credentials* argument." msgstr "" -#: ../Doc/library/logging.handlers.rst:791 +#: ../Doc/library/logging.handlers.rst:801 msgid "" "To specify the use of a secure protocol (TLS), pass in a tuple to the " "*secure* argument. This will only be used when authentication credentials " @@ -1153,31 +1163,31 @@ msgid "" "SMTP.starttls` method.)" msgstr "" -#: ../Doc/library/logging.handlers.rst:798 +#: ../Doc/library/logging.handlers.rst:808 msgid "" "A timeout can be specified for communication with the SMTP server using the " "*timeout* argument." msgstr "" -#: ../Doc/library/logging.handlers.rst:801 +#: ../Doc/library/logging.handlers.rst:811 msgid "The *timeout* argument was added." msgstr "" -#: ../Doc/library/logging.handlers.rst:806 +#: ../Doc/library/logging.handlers.rst:816 msgid "Formats the record and sends it to the specified addressees." msgstr "" -#: ../Doc/library/logging.handlers.rst:811 +#: ../Doc/library/logging.handlers.rst:821 msgid "" "If you want to specify a subject line which is record-dependent, override " "this method." msgstr "" -#: ../Doc/library/logging.handlers.rst:817 +#: ../Doc/library/logging.handlers.rst:827 msgid "MemoryHandler" msgstr "" -#: ../Doc/library/logging.handlers.rst:819 +#: ../Doc/library/logging.handlers.rst:829 msgid "" "The :class:`MemoryHandler` class, located in the :mod:`logging.handlers` " "module, supports buffering of logging records in memory, periodically " @@ -1185,7 +1195,7 @@ msgid "" "buffer is full, or when an event of a certain severity or greater is seen." msgstr "" -#: ../Doc/library/logging.handlers.rst:824 +#: ../Doc/library/logging.handlers.rst:834 msgid "" ":class:`MemoryHandler` is a subclass of the more general :class:" "`BufferingHandler`, which is an abstract class. This buffers logging records " @@ -1194,29 +1204,29 @@ msgid "" "should, then :meth:`flush` is expected to do the flushing." msgstr "" -#: ../Doc/library/logging.handlers.rst:833 +#: ../Doc/library/logging.handlers.rst:843 msgid "Initializes the handler with a buffer of the specified capacity." msgstr "" -#: ../Doc/library/logging.handlers.rst:838 +#: ../Doc/library/logging.handlers.rst:848 msgid "" "Appends the record to the buffer. If :meth:`shouldFlush` returns true, " "calls :meth:`flush` to process the buffer." msgstr "" -#: ../Doc/library/logging.handlers.rst:844 +#: ../Doc/library/logging.handlers.rst:854 msgid "" "You can override this to implement custom flushing behavior. This version " "just zaps the buffer to empty." msgstr "" -#: ../Doc/library/logging.handlers.rst:850 +#: ../Doc/library/logging.handlers.rst:860 msgid "" "Returns true if the buffer is up to capacity. This method can be overridden " "to implement custom flushing strategies." msgstr "" -#: ../Doc/library/logging.handlers.rst:856 +#: ../Doc/library/logging.handlers.rst:866 msgid "" "Returns a new instance of the :class:`MemoryHandler` class. The instance is " "initialized with a buffer size of *capacity*. If *flushLevel* is not " @@ -1228,41 +1238,41 @@ msgid "" "occur when the handler is closed." msgstr "" -#: ../Doc/library/logging.handlers.rst:864 +#: ../Doc/library/logging.handlers.rst:874 msgid "The *flushOnClose* parameter was added." msgstr "" -#: ../Doc/library/logging.handlers.rst:870 +#: ../Doc/library/logging.handlers.rst:880 msgid "Calls :meth:`flush`, sets the target to ``None`` and clears the buffer." msgstr "" -#: ../Doc/library/logging.handlers.rst:876 +#: ../Doc/library/logging.handlers.rst:886 msgid "" "For a :class:`MemoryHandler`, flushing means just sending the buffered " "records to the target, if there is one. The buffer is also cleared when this " "happens. Override if you want different behavior." msgstr "" -#: ../Doc/library/logging.handlers.rst:883 +#: ../Doc/library/logging.handlers.rst:893 msgid "Sets the target handler for this handler." msgstr "" -#: ../Doc/library/logging.handlers.rst:888 +#: ../Doc/library/logging.handlers.rst:898 msgid "Checks for buffer full or a record at the *flushLevel* or higher." msgstr "" -#: ../Doc/library/logging.handlers.rst:894 +#: ../Doc/library/logging.handlers.rst:904 msgid "HTTPHandler" msgstr "" -#: ../Doc/library/logging.handlers.rst:896 +#: ../Doc/library/logging.handlers.rst:906 msgid "" "The :class:`HTTPHandler` class, located in the :mod:`logging.handlers` " "module, supports sending logging messages to a Web server, using either " "``GET`` or ``POST`` semantics." msgstr "" -#: ../Doc/library/logging.handlers.rst:903 +#: ../Doc/library/logging.handlers.rst:913 msgid "" "Returns a new instance of the :class:`HTTPHandler` class. The *host* can be " "of the form ``host:port``, should you need to use a specific port number. " @@ -1276,11 +1286,11 @@ msgid "" "cleartext across the wire." msgstr "" -#: ../Doc/library/logging.handlers.rst:914 +#: ../Doc/library/logging.handlers.rst:924 msgid "The *context* parameter was added." msgstr "" -#: ../Doc/library/logging.handlers.rst:919 +#: ../Doc/library/logging.handlers.rst:929 msgid "" "Provides a dictionary, based on ``record``, which is to be URL-encoded and " "sent to the web server. The default implementation just returns ``record." @@ -1289,14 +1299,14 @@ msgid "" "customization of what's sent to the server is required." msgstr "" -#: ../Doc/library/logging.handlers.rst:927 +#: ../Doc/library/logging.handlers.rst:937 msgid "" "Sends the record to the Web server as a URL-encoded dictionary. The :meth:" "`mapLogRecord` method is used to convert the record to the dictionary to be " "sent." msgstr "" -#: ../Doc/library/logging.handlers.rst:931 +#: ../Doc/library/logging.handlers.rst:941 msgid "" "Since preparing a record for sending it to a Web server is not the same as a " "generic formatting operation, using :meth:`~logging.Handler.setFormatter` to " @@ -1306,18 +1316,18 @@ msgid "" "the dictionary in a form suitable for sending to a Web server." msgstr "" -#: ../Doc/library/logging.handlers.rst:944 +#: ../Doc/library/logging.handlers.rst:954 msgid "QueueHandler" msgstr "" -#: ../Doc/library/logging.handlers.rst:948 +#: ../Doc/library/logging.handlers.rst:958 msgid "" "The :class:`QueueHandler` class, located in the :mod:`logging.handlers` " "module, supports sending logging messages to a queue, such as those " "implemented in the :mod:`queue` or :mod:`multiprocessing` modules." msgstr "" -#: ../Doc/library/logging.handlers.rst:952 +#: ../Doc/library/logging.handlers.rst:962 msgid "" "Along with the :class:`QueueListener` class, :class:`QueueHandler` can be " "used to let handlers do their work on a separate thread from the one which " @@ -1327,7 +1337,7 @@ msgid "" "an email via :class:`SMTPHandler`) are done on a separate thread." msgstr "" -#: ../Doc/library/logging.handlers.rst:961 +#: ../Doc/library/logging.handlers.rst:971 msgid "" "Returns a new instance of the :class:`QueueHandler` class. The instance is " "initialized with the queue to send messages to. The queue can be any queue-" @@ -1335,42 +1345,42 @@ msgid "" "know how to send messages to it." msgstr "" -#: ../Doc/library/logging.handlers.rst:969 +#: ../Doc/library/logging.handlers.rst:979 msgid "Enqueues the result of preparing the LogRecord." msgstr "" -#: ../Doc/library/logging.handlers.rst:973 +#: ../Doc/library/logging.handlers.rst:983 msgid "" "Prepares a record for queuing. The object returned by this method is " "enqueued." msgstr "" -#: ../Doc/library/logging.handlers.rst:976 +#: ../Doc/library/logging.handlers.rst:986 msgid "" "The base implementation formats the record to merge the message, arguments, " "and exception information, if present. It also removes unpickleable items " "from the record in-place." msgstr "" -#: ../Doc/library/logging.handlers.rst:980 +#: ../Doc/library/logging.handlers.rst:990 msgid "" "You might want to override this method if you want to convert the record to " "a dict or JSON string, or send a modified copy of the record while leaving " "the original intact." msgstr "" -#: ../Doc/library/logging.handlers.rst:986 +#: ../Doc/library/logging.handlers.rst:996 msgid "" "Enqueues the record on the queue using ``put_nowait()``; you may want to " "override this if you want to use blocking behaviour, or a timeout, or a " "customized queue implementation." msgstr "" -#: ../Doc/library/logging.handlers.rst:995 +#: ../Doc/library/logging.handlers.rst:1005 msgid "QueueListener" msgstr "" -#: ../Doc/library/logging.handlers.rst:999 +#: ../Doc/library/logging.handlers.rst:1009 msgid "" "The :class:`QueueListener` class, located in the :mod:`logging.handlers` " "module, supports receiving logging messages from a queue, such as those " @@ -1381,7 +1391,7 @@ msgid "" "works hand-in-hand with :class:`QueueHandler`." msgstr "" -#: ../Doc/library/logging.handlers.rst:1007 +#: ../Doc/library/logging.handlers.rst:1017 msgid "" "Along with the :class:`QueueHandler` class, :class:`QueueListener` can be " "used to let handlers do their work on a separate thread from the one which " @@ -1391,7 +1401,7 @@ msgid "" "an email via :class:`SMTPHandler`) are done on a separate thread." msgstr "" -#: ../Doc/library/logging.handlers.rst:1016 +#: ../Doc/library/logging.handlers.rst:1026 msgid "" "Returns a new instance of the :class:`QueueListener` class. The instance is " "initialized with the queue to send messages to and a list of handlers which " @@ -1404,82 +1414,82 @@ msgid "" "handler." msgstr "" -#: ../Doc/library/logging.handlers.rst:1026 +#: ../Doc/library/logging.handlers.rst:1036 msgid "The ``respect_handler_levels`` argument was added." msgstr "" -#: ../Doc/library/logging.handlers.rst:1031 +#: ../Doc/library/logging.handlers.rst:1041 msgid "Dequeues a record and return it, optionally blocking." msgstr "" -#: ../Doc/library/logging.handlers.rst:1033 +#: ../Doc/library/logging.handlers.rst:1043 msgid "" "The base implementation uses ``get()``. You may want to override this method " "if you want to use timeouts or work with custom queue implementations." msgstr "" -#: ../Doc/library/logging.handlers.rst:1039 +#: ../Doc/library/logging.handlers.rst:1049 msgid "Prepare a record for handling." msgstr "" -#: ../Doc/library/logging.handlers.rst:1041 +#: ../Doc/library/logging.handlers.rst:1051 msgid "" "This implementation just returns the passed-in record. You may want to " "override this method if you need to do any custom marshalling or " "manipulation of the record before passing it to the handlers." msgstr "" -#: ../Doc/library/logging.handlers.rst:1047 +#: ../Doc/library/logging.handlers.rst:1057 msgid "Handle a record." msgstr "" -#: ../Doc/library/logging.handlers.rst:1049 +#: ../Doc/library/logging.handlers.rst:1059 msgid "" "This just loops through the handlers offering them the record to handle. The " "actual object passed to the handlers is that which is returned from :meth:" "`prepare`." msgstr "" -#: ../Doc/library/logging.handlers.rst:1055 +#: ../Doc/library/logging.handlers.rst:1065 msgid "Starts the listener." msgstr "" -#: ../Doc/library/logging.handlers.rst:1057 +#: ../Doc/library/logging.handlers.rst:1067 msgid "" "This starts up a background thread to monitor the queue for LogRecords to " "process." msgstr "" -#: ../Doc/library/logging.handlers.rst:1062 +#: ../Doc/library/logging.handlers.rst:1072 msgid "Stops the listener." msgstr "" -#: ../Doc/library/logging.handlers.rst:1064 +#: ../Doc/library/logging.handlers.rst:1074 msgid "" "This asks the thread to terminate, and then waits for it to do so. Note that " "if you don't call this before your application exits, there may be some " "records still left on the queue, which won't be processed." msgstr "" -#: ../Doc/library/logging.handlers.rst:1070 +#: ../Doc/library/logging.handlers.rst:1080 msgid "" "Writes a sentinel to the queue to tell the listener to quit. This " "implementation uses ``put_nowait()``. You may want to override this method " "if you want to use timeouts or work with custom queue implementations." msgstr "" -#: ../Doc/library/logging.handlers.rst:1081 +#: ../Doc/library/logging.handlers.rst:1091 msgid "Module :mod:`logging`" msgstr "Module :mod:`logging`" -#: ../Doc/library/logging.handlers.rst:1081 +#: ../Doc/library/logging.handlers.rst:1091 msgid "API reference for the logging module." msgstr "Référence d'API pour le module de journalisation." -#: ../Doc/library/logging.handlers.rst:1083 +#: ../Doc/library/logging.handlers.rst:1093 msgid "Module :mod:`logging.config`" msgstr "Module :mod:`logging.config`" -#: ../Doc/library/logging.handlers.rst:1084 +#: ../Doc/library/logging.handlers.rst:1094 msgid "Configuration API for the logging module." msgstr "API de configuration pour le module de journalisation." diff --git a/library/logging.po b/library/logging.po index cb1ff264..726130c4 100644 --- a/library/logging.po +++ b/library/logging.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: 2019-06-19 22:32+0200\n" "PO-Revision-Date: 2018-07-05 11:54+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -102,10 +102,10 @@ msgstr "" #: ../Doc/library/logging.rst:53 msgid "" -"Loggers have the following attributes and methods. Note that Loggers are " -"never instantiated directly, but always through the module-level function " -"``logging.getLogger(name)``. Multiple calls to :func:`getLogger` with the " -"same name will always return a reference to the same Logger object." +"Loggers have the following attributes and methods. Note that Loggers should " +"*NEVER* be instantiated directly, but always through the module-level " +"function ``logging.getLogger(name)``. Multiple calls to :func:`getLogger` " +"with the same name will always return a reference to the same Logger object." msgstr "" #: ../Doc/library/logging.rst:58 @@ -1667,29 +1667,32 @@ msgid "" "logger. The class should define :meth:`__init__` such that only a name " "argument is required, and the :meth:`__init__` should call :meth:`Logger." "__init__`. This function is typically called before any loggers are " -"instantiated by applications which need to use custom logger behavior." -msgstr "" - -#: ../Doc/library/logging.rst:1199 -msgid "Set a callable which is used to create a :class:`LogRecord`." +"instantiated by applications which need to use custom logger behavior. After " +"this call, as at any other time, do not instantiate loggers directly using " +"the subclass: continue to use the :func:`logging.getLogger` API to get your " +"loggers." msgstr "" #: ../Doc/library/logging.rst:1201 -msgid "The factory callable to be used to instantiate a log record." +msgid "Set a callable which is used to create a :class:`LogRecord`." msgstr "" #: ../Doc/library/logging.rst:1203 +msgid "The factory callable to be used to instantiate a log record." +msgstr "" + +#: ../Doc/library/logging.rst:1205 msgid "" "This function has been provided, along with :func:`getLogRecordFactory`, to " "allow developers more control over how the :class:`LogRecord` representing a " "logging event is constructed." msgstr "" -#: ../Doc/library/logging.rst:1208 +#: ../Doc/library/logging.rst:1210 msgid "The factory has the following signature:" msgstr "" -#: ../Doc/library/logging.rst:1210 +#: ../Doc/library/logging.rst:1212 msgid "" "``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " "**kwargs)``" @@ -1697,7 +1700,7 @@ msgstr "" "``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " "**kwargs)``" -#: ../Doc/library/logging.rst:1212 +#: ../Doc/library/logging.rst:1214 msgid "The logger name." msgstr "" @@ -1705,7 +1708,7 @@ msgstr "" msgid "level" msgstr "level" -#: ../Doc/library/logging.rst:1213 +#: ../Doc/library/logging.rst:1215 msgid "The logging level (numeric)." msgstr "" @@ -1713,7 +1716,7 @@ msgstr "" msgid "fn" msgstr "fn" -#: ../Doc/library/logging.rst:1214 +#: ../Doc/library/logging.rst:1216 msgid "The full pathname of the file where the logging call was made." msgstr "" @@ -1721,19 +1724,19 @@ msgstr "" msgid "lno" msgstr "lno" -#: ../Doc/library/logging.rst:1215 +#: ../Doc/library/logging.rst:1217 msgid "The line number in the file where the logging call was made." msgstr "" -#: ../Doc/library/logging.rst:1216 +#: ../Doc/library/logging.rst:1218 msgid "The logging message." msgstr "" -#: ../Doc/library/logging.rst:1217 +#: ../Doc/library/logging.rst:1219 msgid "The arguments for the logging message." msgstr "" -#: ../Doc/library/logging.rst:1218 +#: ../Doc/library/logging.rst:1220 msgid "An exception tuple, or ``None``." msgstr "" @@ -1741,7 +1744,7 @@ msgstr "" msgid "func" msgstr "func" -#: ../Doc/library/logging.rst:1219 +#: ../Doc/library/logging.rst:1221 msgid "The name of the function or method which invoked the logging call." msgstr "" @@ -1749,7 +1752,7 @@ msgstr "" msgid "sinfo" msgstr "sinfo" -#: ../Doc/library/logging.rst:1221 +#: ../Doc/library/logging.rst:1223 msgid "" "A stack traceback such as is provided by :func:`traceback.print_stack`, " "showing the call hierarchy." @@ -1759,15 +1762,15 @@ msgstr "" msgid "kwargs" msgstr "" -#: ../Doc/library/logging.rst:1223 +#: ../Doc/library/logging.rst:1225 msgid "Additional keyword arguments." msgstr "" -#: ../Doc/library/logging.rst:1227 +#: ../Doc/library/logging.rst:1229 msgid "Module-Level Attributes" msgstr "" -#: ../Doc/library/logging.rst:1231 +#: ../Doc/library/logging.rst:1233 msgid "" "A \"handler of last resort\" is available through this attribute. This is a :" "class:`StreamHandler` writing to ``sys.stderr`` with a level of ``WARNING``, " @@ -1778,22 +1781,22 @@ msgid "" "reason, ``lastResort`` can be set to ``None``." msgstr "" -#: ../Doc/library/logging.rst:1242 +#: ../Doc/library/logging.rst:1244 msgid "Integration with the warnings module" msgstr "" -#: ../Doc/library/logging.rst:1244 +#: ../Doc/library/logging.rst:1246 msgid "" "The :func:`captureWarnings` function can be used to integrate :mod:`logging` " "with the :mod:`warnings` module." msgstr "" -#: ../Doc/library/logging.rst:1249 +#: ../Doc/library/logging.rst:1251 msgid "" "This function is used to turn the capture of warnings by logging on and off." msgstr "" -#: ../Doc/library/logging.rst:1252 +#: ../Doc/library/logging.rst:1254 msgid "" "If *capture* is ``True``, warnings issued by the :mod:`warnings` module will " "be redirected to the logging system. Specifically, a warning will be " @@ -1802,46 +1805,46 @@ msgid "" "`WARNING`." msgstr "" -#: ../Doc/library/logging.rst:1257 +#: ../Doc/library/logging.rst:1259 msgid "" "If *capture* is ``False``, the redirection of warnings to the logging system " "will stop, and warnings will be redirected to their original destinations (i." "e. those in effect before ``captureWarnings(True)`` was called)." msgstr "" -#: ../Doc/library/logging.rst:1265 +#: ../Doc/library/logging.rst:1267 msgid "Module :mod:`logging.config`" msgstr "Module :mod:`logging.config`" -#: ../Doc/library/logging.rst:1265 +#: ../Doc/library/logging.rst:1267 msgid "Configuration API for the logging module." msgstr "API de configuration pour le module de journalisation." -#: ../Doc/library/logging.rst:1268 +#: ../Doc/library/logging.rst:1270 msgid "Module :mod:`logging.handlers`" msgstr "Module :mod:`logging.handlers`" -#: ../Doc/library/logging.rst:1268 +#: ../Doc/library/logging.rst:1270 msgid "Useful handlers included with the logging module." msgstr "Gestionnaires utiles inclus avec le module de journalisation." -#: ../Doc/library/logging.rst:1272 +#: ../Doc/library/logging.rst:1274 msgid ":pep:`282` - A Logging System" msgstr "" -#: ../Doc/library/logging.rst:1271 +#: ../Doc/library/logging.rst:1273 msgid "" "The proposal which described this feature for inclusion in the Python " "standard library." msgstr "" -#: ../Doc/library/logging.rst:1277 +#: ../Doc/library/logging.rst:1279 msgid "" "`Original Python logging package `_" msgstr "" -#: ../Doc/library/logging.rst:1275 +#: ../Doc/library/logging.rst:1277 msgid "" "This is the original source for the :mod:`logging` package. The version of " "the package available from this site is suitable for use with Python 1.5.2, " diff --git a/library/typing.po b/library/typing.po index 12944175..8457b748 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: 2019-06-03 22:10+0200\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -725,29 +725,37 @@ msgstr "" #: ../Doc/library/typing.rst:881 msgid "" +"A class used for internal typing representation of string forward " +"references. For example, ``List[\"SomeClass\"]`` is implicitly transformed " +"into ``List[ForwardRef(\"SomeClass\")]``. This class should not be " +"instantiated by a user, but may be used by introspection tools." +msgstr "" + +#: ../Doc/library/typing.rst:888 +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:892 +#: ../Doc/library/typing.rst:899 msgid "Cast a value to a type." msgstr "" -#: ../Doc/library/typing.rst:894 +#: ../Doc/library/typing.rst:901 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:901 +#: ../Doc/library/typing.rst:908 msgid "" "Return a dictionary containing type hints for a function, method, module or " "class object." msgstr "" -#: ../Doc/library/typing.rst:904 +#: ../Doc/library/typing.rst:911 msgid "" "This is often the same as ``obj.__annotations__``. In addition, forward " "references encoded as string literals are handled by evaluating them in " @@ -757,7 +765,7 @@ msgid "" "merging all the ``__annotations__`` along ``C.__mro__`` in reverse order." msgstr "" -#: ../Doc/library/typing.rst:914 +#: ../Doc/library/typing.rst:921 msgid "" "The ``@overload`` decorator allows describing functions and methods that " "support multiple different combinations of argument types. A series of " @@ -772,121 +780,121 @@ msgid "" "variable::" msgstr "" -#: ../Doc/library/typing.rst:938 +#: ../Doc/library/typing.rst:945 msgid "See :pep:`484` for details and comparison with other typing semantics." msgstr "" -#: ../Doc/library/typing.rst:942 +#: ../Doc/library/typing.rst:949 msgid "Decorator to indicate that annotations are not type hints." msgstr "" -#: ../Doc/library/typing.rst:944 +#: ../Doc/library/typing.rst:951 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:948 +#: ../Doc/library/typing.rst:955 msgid "This mutates the function(s) in place." msgstr "" -#: ../Doc/library/typing.rst:952 +#: ../Doc/library/typing.rst:959 msgid "Decorator to give another decorator the :func:`no_type_check` effect." msgstr "" -#: ../Doc/library/typing.rst:954 +#: ../Doc/library/typing.rst:961 msgid "" "This wraps the decorator with something that wraps the decorated function " "in :func:`no_type_check`." msgstr "" -#: ../Doc/library/typing.rst:959 +#: ../Doc/library/typing.rst:966 msgid "Decorator to mark a class or function to be unavailable at runtime." msgstr "" -#: ../Doc/library/typing.rst:961 +#: ../Doc/library/typing.rst:968 msgid "" "This decorator is itself not available at runtime. It is mainly intended to " "mark classes that are defined in type stub files if an implementation " "returns an instance of a private class::" msgstr "" -#: ../Doc/library/typing.rst:972 +#: ../Doc/library/typing.rst:979 msgid "" "Note that returning instances of private classes is not recommended. It is " "usually preferable to make such classes public." msgstr "" -#: ../Doc/library/typing.rst:977 +#: ../Doc/library/typing.rst:984 msgid "Special type indicating an unconstrained type." msgstr "" -#: ../Doc/library/typing.rst:979 +#: ../Doc/library/typing.rst:986 msgid "Every type is compatible with :data:`Any`." msgstr "" -#: ../Doc/library/typing.rst:980 +#: ../Doc/library/typing.rst:987 msgid ":data:`Any` is compatible with every type." msgstr "" -#: ../Doc/library/typing.rst:984 +#: ../Doc/library/typing.rst:991 msgid "Special type indicating that a function never returns. For example::" msgstr "" -#: ../Doc/library/typing.rst:997 +#: ../Doc/library/typing.rst:1004 msgid "Union type; ``Union[X, Y]`` means either X or Y." msgstr "" -#: ../Doc/library/typing.rst:999 +#: ../Doc/library/typing.rst:1006 msgid "To define a union, use e.g. ``Union[int, str]``. Details:" msgstr "" -#: ../Doc/library/typing.rst:1001 +#: ../Doc/library/typing.rst:1008 msgid "The arguments must be types and there must be at least one." msgstr "" -#: ../Doc/library/typing.rst:1003 +#: ../Doc/library/typing.rst:1010 msgid "Unions of unions are flattened, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:1007 +#: ../Doc/library/typing.rst:1014 msgid "Unions of a single argument vanish, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:1011 +#: ../Doc/library/typing.rst:1018 msgid "Redundant arguments are skipped, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:1015 +#: ../Doc/library/typing.rst:1022 msgid "When comparing unions, the argument order is ignored, e.g.::" msgstr "" -#: ../Doc/library/typing.rst:1019 +#: ../Doc/library/typing.rst:1026 msgid "You cannot subclass or instantiate a union." msgstr "" -#: ../Doc/library/typing.rst:1021 +#: ../Doc/library/typing.rst:1028 msgid "You cannot write ``Union[X][Y]``." msgstr "" -#: ../Doc/library/typing.rst:1023 +#: ../Doc/library/typing.rst:1030 msgid "You can use ``Optional[X]`` as a shorthand for ``Union[X, None]``." msgstr "" -#: ../Doc/library/typing.rst:1025 +#: ../Doc/library/typing.rst:1032 msgid "Don't remove explicit subclasses from unions at runtime." msgstr "" -#: ../Doc/library/typing.rst:1030 +#: ../Doc/library/typing.rst:1037 msgid "Optional type." msgstr "" -#: ../Doc/library/typing.rst:1032 +#: ../Doc/library/typing.rst:1039 msgid "``Optional[X]`` is equivalent to ``Union[X, None]``." msgstr "" -#: ../Doc/library/typing.rst:1034 +#: ../Doc/library/typing.rst:1041 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 " @@ -894,45 +902,45 @@ msgid "" "optional. For example::" msgstr "" -#: ../Doc/library/typing.rst:1042 +#: ../Doc/library/typing.rst:1049 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:1051 +#: ../Doc/library/typing.rst:1058 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:1054 +#: ../Doc/library/typing.rst:1061 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:1058 +#: ../Doc/library/typing.rst:1065 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:1064 +#: ../Doc/library/typing.rst:1071 msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str." msgstr "" -#: ../Doc/library/typing.rst:1066 +#: ../Doc/library/typing.rst:1073 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:1071 +#: ../Doc/library/typing.rst:1078 msgid "" "There is no syntax to indicate optional or keyword arguments; such function " "types are rarely used as callback types. ``Callable[..., ReturnType]`` " @@ -942,22 +950,22 @@ msgid "" "Callable`." msgstr "" -#: ../Doc/library/typing.rst:1081 +#: ../Doc/library/typing.rst:1088 msgid "Special type construct to mark class variables." msgstr "" -#: ../Doc/library/typing.rst:1083 +#: ../Doc/library/typing.rst:1090 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:1091 +#: ../Doc/library/typing.rst:1098 msgid ":data:`ClassVar` accepts only types and cannot be further subscribed." msgstr "" -#: ../Doc/library/typing.rst:1093 +#: ../Doc/library/typing.rst:1100 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 " @@ -965,25 +973,25 @@ msgid "" "example, a type checker might flag the following code as an error::" msgstr "" -#: ../Doc/library/typing.rst:1107 +#: ../Doc/library/typing.rst:1114 msgid "" "``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, " "bytes)``." msgstr "" -#: ../Doc/library/typing.rst:1110 +#: ../Doc/library/typing.rst:1117 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:1122 +#: ../Doc/library/typing.rst:1129 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:1131 +#: ../Doc/library/typing.rst:1138 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/weakref.po b/library/weakref.po index e1b7ac1b..82e2bda1 100644 --- a/library/weakref.po +++ b/library/weakref.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-23 16:48+0200\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -99,8 +99,8 @@ msgid "" "Not all objects can be weakly referenced; those objects which can include " "class instances, functions written in Python (but not in C), instance " "methods, sets, frozensets, some :term:`file objects `, :term:" -"`generator`\\s, type objects, sockets, arrays, deques, regular expression " -"pattern objects, and code objects." +"`generators `, type objects, sockets, arrays, deques, regular " +"expression pattern objects, and code objects." msgstr "" #: ../Doc/library/weakref.rst:72 @@ -113,20 +113,19 @@ msgid "" "directly support weak references but can add support through subclassing::" msgstr "" -#: ../Doc/library/weakref.rst:83 +#: ../Doc/library/weakref.rst:85 msgid "" "Other built-in types such as :class:`tuple` and :class:`int` do not support " -"weak references even when subclassed (This is an implementation detail and " -"may be different across various Python implementations.)." +"weak references even when subclassed." msgstr "" -#: ../Doc/library/weakref.rst:87 +#: ../Doc/library/weakref.rst:88 msgid "" "Extension types can easily be made to support weak references; see :ref:" "`weakref-support`." msgstr "" -#: ../Doc/library/weakref.rst:93 +#: ../Doc/library/weakref.rst:94 msgid "" "Return a weak reference to *object*. The original object can be retrieved " "by calling the reference object if the referent is still alive; if the " @@ -138,21 +137,21 @@ msgid "" "available." msgstr "" -#: ../Doc/library/weakref.rst:101 +#: ../Doc/library/weakref.rst:102 msgid "" "It is allowable for many weak references to be constructed for the same " "object. Callbacks registered for each weak reference will be called from the " "most recently registered callback to the oldest registered callback." msgstr "" -#: ../Doc/library/weakref.rst:105 +#: ../Doc/library/weakref.rst:106 msgid "" "Exceptions raised by the callback will be noted on the standard error " "output, but cannot be propagated; they are handled in exactly the same way " "as exceptions raised from an object's :meth:`__del__` method." msgstr "" -#: ../Doc/library/weakref.rst:109 +#: ../Doc/library/weakref.rst:110 msgid "" "Weak references are :term:`hashable` if the *object* is hashable. They will " "maintain their hash value even after the *object* was deleted. If :func:" @@ -160,7 +159,7 @@ msgid "" "call will raise :exc:`TypeError`." msgstr "" -#: ../Doc/library/weakref.rst:114 +#: ../Doc/library/weakref.rst:115 msgid "" "Weak references support tests for equality, but not ordering. If the " "referents are still alive, two references have the same equality " @@ -169,22 +168,22 @@ msgid "" "objects are the same object." msgstr "" -#: ../Doc/library/weakref.rst:119 +#: ../Doc/library/weakref.rst:120 msgid "This is a subclassable type rather than a factory function." msgstr "" -#: ../Doc/library/weakref.rst:123 +#: ../Doc/library/weakref.rst:124 msgid "" "This read-only attribute returns the callback currently associated to the " "weakref. If there is no callback or if the referent of the weakref is no " "longer alive then this attribute will have value ``None``." msgstr "" -#: ../Doc/library/weakref.rst:127 +#: ../Doc/library/weakref.rst:128 msgid "Added the :attr:`__callback__` attribute." msgstr "" -#: ../Doc/library/weakref.rst:133 +#: ../Doc/library/weakref.rst:134 msgid "" "Return a proxy to *object* which uses a weak reference. This supports use " "of the proxy in most contexts instead of requiring the explicit " @@ -197,18 +196,18 @@ msgid "" "`ref` function." msgstr "" -#: ../Doc/library/weakref.rst:145 +#: ../Doc/library/weakref.rst:146 msgid "" "Return the number of weak references and proxies which refer to *object*." msgstr "" -#: ../Doc/library/weakref.rst:150 +#: ../Doc/library/weakref.rst:151 msgid "" "Return a list of all weak reference and proxy objects which refer to " "*object*." msgstr "" -#: ../Doc/library/weakref.rst:155 +#: ../Doc/library/weakref.rst:156 msgid "" "Mapping class that references keys weakly. Entries in the dictionary will " "be discarded when there is no longer a strong reference to the key. This " @@ -217,7 +216,7 @@ msgid "" "especially useful with objects that override attribute accesses." msgstr "" -#: ../Doc/library/weakref.rst:163 +#: ../Doc/library/weakref.rst:164 msgid "" "Caution: Because a :class:`WeakKeyDictionary` is built on top of a Python " "dictionary, it must not change size when iterating over it. This can be " @@ -226,7 +225,7 @@ msgid "" "to vanish \"by magic\" (as a side effect of garbage collection)." msgstr "" -#: ../Doc/library/weakref.rst:169 +#: ../Doc/library/weakref.rst:170 msgid "" ":class:`WeakKeyDictionary` objects have an additional method that exposes " "the internal references directly. The references are not guaranteed to be " @@ -236,17 +235,17 @@ msgid "" "longer than needed." msgstr "" -#: ../Doc/library/weakref.rst:179 +#: ../Doc/library/weakref.rst:180 msgid "Return an iterable of the weak references to the keys." msgstr "" -#: ../Doc/library/weakref.rst:184 +#: ../Doc/library/weakref.rst:185 msgid "" "Mapping class that references values weakly. Entries in the dictionary will " "be discarded when no strong reference to the value exists any more." msgstr "" -#: ../Doc/library/weakref.rst:189 +#: ../Doc/library/weakref.rst:190 msgid "" "Caution: Because a :class:`WeakValueDictionary` is built on top of a Python " "dictionary, it must not change size when iterating over it. This can be " @@ -255,24 +254,24 @@ msgid "" "to vanish \"by magic\" (as a side effect of garbage collection)." msgstr "" -#: ../Doc/library/weakref.rst:195 +#: ../Doc/library/weakref.rst:196 msgid "" ":class:`WeakValueDictionary` objects have an additional method that has the " "same issues as the :meth:`keyrefs` method of :class:`WeakKeyDictionary` " "objects." msgstr "" -#: ../Doc/library/weakref.rst:202 +#: ../Doc/library/weakref.rst:203 msgid "Return an iterable of the weak references to the values." msgstr "" -#: ../Doc/library/weakref.rst:207 +#: ../Doc/library/weakref.rst:208 msgid "" "Set class that keeps weak references to its elements. An element will be " "discarded when no strong reference to it exists any more." msgstr "" -#: ../Doc/library/weakref.rst:213 +#: ../Doc/library/weakref.rst:214 msgid "" "A custom :class:`ref` subclass which simulates a weak reference to a bound " "method (i.e., a method defined on a class and looked up on an instance). " @@ -281,7 +280,7 @@ msgid "" "method until either the object or the original function dies::" msgstr "" -#: ../Doc/library/weakref.rst:241 +#: ../Doc/library/weakref.rst:242 msgid "" "Return a callable finalizer object which will be called when *obj* is " "garbage collected. Unlike an ordinary weak reference, a finalizer will " @@ -289,7 +288,7 @@ msgid "" "lifecycle management." msgstr "" -#: ../Doc/library/weakref.rst:246 +#: ../Doc/library/weakref.rst:247 msgid "" "A finalizer is considered *alive* until it is called (either explicitly or " "at garbage collection), and after that it is *dead*. Calling a live " @@ -297,7 +296,7 @@ msgid "" "calling a dead finalizer returns :const:`None`." msgstr "" -#: ../Doc/library/weakref.rst:251 +#: ../Doc/library/weakref.rst:252 msgid "" "Exceptions raised by finalizer callbacks during garbage collection will be " "shown on the standard error output, but cannot be propagated. They are " @@ -305,50 +304,50 @@ msgid "" "`__del__` method or a weak reference's callback." msgstr "" -#: ../Doc/library/weakref.rst:257 +#: ../Doc/library/weakref.rst:258 msgid "" "When the program exits, each remaining live finalizer is called unless its :" "attr:`atexit` attribute has been set to false. They are called in reverse " "order of creation." msgstr "" -#: ../Doc/library/weakref.rst:261 +#: ../Doc/library/weakref.rst:262 msgid "" "A finalizer will never invoke its callback during the later part of the :" "term:`interpreter shutdown` when module globals are liable to have been " "replaced by :const:`None`." msgstr "" -#: ../Doc/library/weakref.rst:267 +#: ../Doc/library/weakref.rst:268 msgid "" "If *self* is alive then mark it as dead and return the result of calling " "``func(*args, **kwargs)``. If *self* is dead then return :const:`None`." msgstr "" -#: ../Doc/library/weakref.rst:273 +#: ../Doc/library/weakref.rst:274 msgid "" "If *self* is alive then mark it as dead and return the tuple ``(obj, func, " "args, kwargs)``. If *self* is dead then return :const:`None`." msgstr "" -#: ../Doc/library/weakref.rst:279 +#: ../Doc/library/weakref.rst:280 msgid "" "If *self* is alive then return the tuple ``(obj, func, args, kwargs)``. If " "*self* is dead then return :const:`None`." msgstr "" -#: ../Doc/library/weakref.rst:284 +#: ../Doc/library/weakref.rst:285 msgid "Property which is true if the finalizer is alive, false otherwise." msgstr "" -#: ../Doc/library/weakref.rst:288 +#: ../Doc/library/weakref.rst:289 msgid "" "A writable boolean property which by default is true. When the program " "exits, it calls all remaining live finalizers for which :attr:`.atexit` is " "true. They are called in reverse order of creation." msgstr "" -#: ../Doc/library/weakref.rst:295 +#: ../Doc/library/weakref.rst:296 msgid "" "It is important to ensure that *func*, *args* and *kwargs* do not own any " "references to *obj*, either directly or indirectly, since otherwise *obj* " @@ -356,67 +355,67 @@ msgid "" "bound method of *obj*." msgstr "" -#: ../Doc/library/weakref.rst:305 +#: ../Doc/library/weakref.rst:306 msgid "The type object for weak references objects." msgstr "" -#: ../Doc/library/weakref.rst:310 +#: ../Doc/library/weakref.rst:311 msgid "The type object for proxies of objects which are not callable." msgstr "" -#: ../Doc/library/weakref.rst:315 +#: ../Doc/library/weakref.rst:316 msgid "The type object for proxies of callable objects." msgstr "" -#: ../Doc/library/weakref.rst:320 +#: ../Doc/library/weakref.rst:321 msgid "" "Sequence containing all the type objects for proxies. This can make it " "simpler to test if an object is a proxy without being dependent on naming " "both proxy types." msgstr "" -#: ../Doc/library/weakref.rst:327 +#: ../Doc/library/weakref.rst:328 msgid "" "Exception raised when a proxy object is used but the underlying object has " "been collected. This is the same as the standard :exc:`ReferenceError` " "exception." msgstr "" -#: ../Doc/library/weakref.rst:334 +#: ../Doc/library/weakref.rst:335 msgid ":pep:`205` - Weak References" msgstr "" -#: ../Doc/library/weakref.rst:334 +#: ../Doc/library/weakref.rst:335 msgid "" "The proposal and rationale for this feature, including links to earlier " "implementations and information about similar features in other languages." msgstr "" -#: ../Doc/library/weakref.rst:341 +#: ../Doc/library/weakref.rst:342 msgid "Weak Reference Objects" msgstr "Objets à références faibles" -#: ../Doc/library/weakref.rst:343 +#: ../Doc/library/weakref.rst:344 msgid "" "Weak reference objects have no methods and no attributes besides :attr:`ref." "__callback__`. A weak reference object allows the referent to be obtained, " "if it still exists, by calling it:" msgstr "" -#: ../Doc/library/weakref.rst:357 +#: ../Doc/library/weakref.rst:358 msgid "" "If the referent no longer exists, calling the reference object returns :" "const:`None`:" msgstr "" -#: ../Doc/library/weakref.rst:364 +#: ../Doc/library/weakref.rst:365 msgid "" "Testing that a weak reference object is still live should be done using the " "expression ``ref() is not None``. Normally, application code that needs to " "use a reference object should follow this pattern::" msgstr "" -#: ../Doc/library/weakref.rst:377 +#: ../Doc/library/weakref.rst:378 msgid "" "Using a separate test for \"liveness\" creates race conditions in threaded " "applications; another thread can cause a weak reference to become " @@ -424,7 +423,7 @@ msgid "" "safe in threaded applications as well as single-threaded applications." msgstr "" -#: ../Doc/library/weakref.rst:382 +#: ../Doc/library/weakref.rst:383 msgid "" "Specialized versions of :class:`ref` objects can be created through " "subclassing. This is used in the implementation of the :class:" @@ -434,18 +433,18 @@ msgid "" "to retrieve the referent." msgstr "" -#: ../Doc/library/weakref.rst:388 +#: ../Doc/library/weakref.rst:389 msgid "" "This example shows how a subclass of :class:`ref` can be used to store " "additional information about an object and affect the value that's returned " "when the referent is accessed::" msgstr "" -#: ../Doc/library/weakref.rst:415 +#: ../Doc/library/weakref.rst:416 msgid "Example" msgstr "Exemple" -#: ../Doc/library/weakref.rst:417 +#: ../Doc/library/weakref.rst:418 msgid "" "This simple example shows how an application can use object IDs to retrieve " "objects that it has seen before. The IDs of the objects can then be used in " @@ -453,67 +452,67 @@ msgid "" "objects can still be retrieved by ID if they do." msgstr "" -#: ../Doc/library/weakref.rst:442 +#: ../Doc/library/weakref.rst:443 msgid "Finalizer Objects" msgstr "" -#: ../Doc/library/weakref.rst:444 +#: ../Doc/library/weakref.rst:445 msgid "" "The main benefit of using :class:`finalize` is that it makes it simple to " "register a callback without needing to preserve the returned finalizer " "object. For instance" msgstr "" -#: ../Doc/library/weakref.rst:458 +#: ../Doc/library/weakref.rst:459 msgid "" "The finalizer can be called directly as well. However the finalizer will " "invoke the callback at most once." msgstr "" -#: ../Doc/library/weakref.rst:474 +#: ../Doc/library/weakref.rst:475 msgid "" "You can unregister a finalizer using its :meth:`~finalize.detach` method. " "This kills the finalizer and returns the arguments passed to the constructor " "when it was created." msgstr "" -#: ../Doc/library/weakref.rst:488 +#: ../Doc/library/weakref.rst:489 msgid "" "Unless you set the :attr:`~finalize.atexit` attribute to :const:`False`, a " "finalizer will be called when the program exits if it is still alive. For " "instance" msgstr "" -#: ../Doc/library/weakref.rst:503 +#: ../Doc/library/weakref.rst:504 msgid "Comparing finalizers with :meth:`__del__` methods" msgstr "" -#: ../Doc/library/weakref.rst:505 +#: ../Doc/library/weakref.rst:506 msgid "" "Suppose we want to create a class whose instances represent temporary " "directories. The directories should be deleted with their contents when the " "first of the following events occurs:" msgstr "" -#: ../Doc/library/weakref.rst:509 +#: ../Doc/library/weakref.rst:510 msgid "the object is garbage collected," msgstr "" -#: ../Doc/library/weakref.rst:510 +#: ../Doc/library/weakref.rst:511 msgid "the object's :meth:`remove` method is called, or" msgstr "" -#: ../Doc/library/weakref.rst:511 +#: ../Doc/library/weakref.rst:512 msgid "the program exits." msgstr "" -#: ../Doc/library/weakref.rst:513 +#: ../Doc/library/weakref.rst:514 msgid "" "We might try to implement the class using a :meth:`__del__` method as " "follows::" msgstr "" -#: ../Doc/library/weakref.rst:532 +#: ../Doc/library/weakref.rst:533 msgid "" "Starting with Python 3.4, :meth:`__del__` methods no longer prevent " "reference cycles from being garbage collected, and module globals are no " @@ -521,35 +520,35 @@ msgid "" "code should work without any issues on CPython." msgstr "" -#: ../Doc/library/weakref.rst:537 +#: ../Doc/library/weakref.rst:538 msgid "" "However, handling of :meth:`__del__` methods is notoriously implementation " "specific, since it depends on internal details of the interpreter's garbage " "collector implementation." msgstr "" -#: ../Doc/library/weakref.rst:541 +#: ../Doc/library/weakref.rst:542 msgid "" "A more robust alternative can be to define a finalizer which only references " "the specific functions and objects that it needs, rather than having access " "to the full state of the object::" msgstr "" -#: ../Doc/library/weakref.rst:557 +#: ../Doc/library/weakref.rst:558 msgid "" "Defined like this, our finalizer only receives a reference to the details it " "needs to clean up the directory appropriately. If the object never gets " "garbage collected the finalizer will still be called at exit." msgstr "" -#: ../Doc/library/weakref.rst:561 +#: ../Doc/library/weakref.rst:562 msgid "" "The other advantage of weakref based finalizers is that they can be used to " "register finalizers for classes where the definition is controlled by a " "third party, such as running code when a module is unloaded::" msgstr "" -#: ../Doc/library/weakref.rst:573 +#: ../Doc/library/weakref.rst:574 msgid "" "If you create a finalizer object in a daemonic thread just as the program " "exits then there is the possibility that the finalizer does not get called " diff --git a/sphinx.po b/sphinx.po index 74cba3fd..3eb92a95 100644 --- a/sphinx.po +++ b/sphinx.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-10 10:50+0200\n" +"POT-Creation-Date: 2019-06-19 22:32+0200\n" "PO-Revision-Date: 2018-12-14 15:01+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -197,7 +197,7 @@ msgid "History and License of Python" msgstr "Histoire et licence de Python" #: ../Doc/tools/templates/indexcontent.html:63 -#: ../Doc/tools/templates/layout.html:116 +#: ../Doc/tools/templates/layout.html:127 msgid "Copyright" msgstr "Copyright" @@ -263,35 +263,46 @@ msgstr "Liste de livres" msgid "Audio/Visual Talks" msgstr "Documents multimédia" -#: ../Doc/tools/templates/layout.html:10 +#: ../Doc/tools/templates/layout.html:6 +msgid "" +"This document is for an old version of Python that is no longer supported.\n" +" You should upgrade, and read the " +msgstr "" + +#: ../Doc/tools/templates/layout.html:8 +#, fuzzy +msgid " Python documentation for the current stable release" +msgstr "Bienvenue sur la documentation de Python %(release)s." + +#: ../Doc/tools/templates/layout.html:21 msgid "Documentation " msgstr "Documentation" -#: ../Doc/tools/templates/layout.html:21 +#: ../Doc/tools/templates/layout.html:32 msgid "Quick search" msgstr "Recherche rapide" -#: ../Doc/tools/templates/layout.html:22 +#: ../Doc/tools/templates/layout.html:33 msgid "Go" msgstr "Go" -#: ../Doc/tools/templates/layout.html:118 +#: ../Doc/tools/templates/layout.html:129 msgid "The Python Software Foundation is a non-profit corporation." msgstr "La Python Software Foundation est une organisation à but non lucratif." -#: ../Doc/tools/templates/layout.html:119 +#: ../Doc/tools/templates/layout.html:130 msgid "Please donate." msgstr "Les dons sont bienvenus." -#: ../Doc/tools/templates/layout.html:121 +#: ../Doc/tools/templates/layout.html:132 msgid "Last updated on %(last_updated)s." msgstr "Dernière mise-à-jour le %(last_updated)s." -#: ../Doc/tools/templates/layout.html:122 +#: ../Doc/tools/templates/layout.html:133 msgid "Found a bug?" msgstr "Vous avez trouvé un bug ?" -#: ../Doc/tools/templates/layout.html:124 +#: ../Doc/tools/templates/layout.html:135 msgid "" "Created using Sphinx " "%(sphinx_version)s."