diff --git a/Makefile b/Makefile index 8340dcde..1e5f1c60 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ # from which we generated our po files. We use it here so when we # test build, we're building with the .rst files that generated our # .po files. -CPYTHON_CURRENT_COMMIT := 895591c1f0bdec5ad357fe6a5fd0875990061357 +CPYTHON_CURRENT_COMMIT := eec8e61992fb654d4cf58de4d727c18622b8303e CPYTHON_PATH := ../cpython/ @@ -160,11 +160,10 @@ merge: ensure_prerequisites fi \ done rm -fr $(CPYTHON_PATH)/pot/ - @echo "Replacing CPYTHON_CURRENT_COMMIT in Makefile by: " $(shell git -C $(CPYTHON_PATH) rev-parse HEAD) - sed -i 's/^CPYTHON_CURRENT_COMMIT :=.*/CPYTHON_CURRENT_COMMIT := $(shell git -C $(CPYTHON_PATH) rev-parse HEAD)/' Makefile sed -i 's|^#: .*Doc/|#: |' *.po */*.po powrap -m - @printf 'To add, you can use:\n git status -s | grep "^ M .*\.po" | cut -d" " -f3 | while read -r file; do if [ $$(git diff "$$file" | wc -l) -gt 13 ]; then git add "$$file"; fi ; done' + @printf "\n%s %s\n" "Replace CPYTHON_CURRENT_COMMIT in Makefile by: " $(shell git -C $(CPYTHON_PATH) rev-parse HEAD) + @printf 'To add, you can use:\n git status -s | grep "^ M .*\.po" | cut -d" " -f3 | while read -r file; do if [ $$(git diff "$$file" | wc -l) -gt 13 ]; then git add "$$file"; fi ; done\n' .PHONY: clean clean: diff --git a/c-api/decimal.po b/c-api/decimal.po new file mode 100644 index 00000000..934a32d5 --- /dev/null +++ b/c-api/decimal.po @@ -0,0 +1,212 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2021, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-03-18 17:40+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: c-api/decimal.rst:7 +msgid "Decimal capsule API" +msgstr "" + +#: c-api/decimal.rst:9 +msgid "" +"Capsule API functions can be used in the same manner as regular library " +"functions, provided that the API has been initialized." +msgstr "" + +#: c-api/decimal.rst:14 +msgid "Initialize" +msgstr "" + +#: c-api/decimal.rst:16 +msgid "" +"Typically, a C extension module that uses the decimal API will do these " +"steps in its init function:" +msgstr "" + +#: c-api/decimal.rst:34 +msgid "Type checking, predicates, accessors" +msgstr "" + +#: c-api/decimal.rst:38 +msgid "" +"Return 1 if ``dec`` is a Decimal, 0 otherwise. This function does not set " +"any exceptions." +msgstr "" + +#: c-api/decimal.rst:44 +msgid "Return 1 if ``dec`` is ``NaN``, ``sNaN`` or ``Infinity``, 0 otherwise." +msgstr "" + +#: c-api/decimal.rst:55 c-api/decimal.rst:64 +msgid "" +"Set TypeError and return -1 if ``dec`` is not a Decimal. It is guaranteed " +"that this is the only failure mode, so if ``dec`` has already been type-" +"checked, no errors can occur and the function can be treated as a simple " +"predicate." +msgstr "" + +#: c-api/decimal.rst:53 +msgid "Return 1 if ``dec`` is ``NaN`` or ``sNaN``, 0 otherwise." +msgstr "" + +#: c-api/decimal.rst:62 +msgid "Return 1 if ``dec`` is ``Infinity``, 0 otherwise." +msgstr "" + +#: c-api/decimal.rst:71 +msgid "" +"Return the number of digits in the coefficient. For ``Infinity``, the " +"number of digits is always zero. Typically, the same applies to ``NaN`` and " +"``sNaN``, but both of these can have a payload that is equivalent to a " +"coefficient. Therefore, ``NaNs`` can have a nonzero return value." +msgstr "" + +#: c-api/decimal.rst:76 +msgid "" +"Set TypeError and return -1 if ``dec`` is not a Decimal. It is guaranteed " +"that this is the only failure mode, so if ``dec`` has already been type-" +"checked, no errors can occur and the function can be treated as a simple " +"accessor." +msgstr "" + +#: c-api/decimal.rst:82 +msgid "Exact conversions between decimals and primitive C types" +msgstr "" + +#: c-api/decimal.rst:84 +msgid "" +"This API supports conversions for decimals with a coefficient up to 38 " +"digits." +msgstr "" + +#: c-api/decimal.rst:87 +msgid "Data structures" +msgstr "" + +#: c-api/decimal.rst:89 +msgid "" +"The conversion functions use the following status codes and data structures:" +msgstr "" + +#: c-api/decimal.rst:110 +msgid "" +"The status cases are explained below. ``sign`` is 0 for positive and 1 for " +"negative. ``((uint128_t)hi << 64) + lo`` is the coefficient, ``exp`` is the " +"exponent." +msgstr "" + +#: c-api/decimal.rst:113 +msgid "" +"The data structure is called \"triple\" because the decimal triple (sign, " +"coeff, exp) is an established term and (``hi``, ``lo``) represents a single " +"``uint128_t`` coefficient." +msgstr "" + +#: c-api/decimal.rst:216 +msgid "Functions" +msgstr "" + +#: c-api/decimal.rst:122 +msgid "" +"Convert a decimal to a triple. As above, it is guaranteed that the only " +"Python failure mode is a TypeError, checks can be omitted if the type is " +"known." +msgstr "" + +#: c-api/decimal.rst:126 +msgid "" +"For simplicity, the usage of the function and all special cases are " +"explained in code form and comments:" +msgstr "" + +#: c-api/decimal.rst:180 +msgid "" +"Create a decimal from a triple. The following rules must be observed for " +"initializing the triple:" +msgstr "" + +#: c-api/decimal.rst:183 +msgid "``triple.sign`` must always be 0 (for positive) or 1 (for negative)." +msgstr "" + +#: c-api/decimal.rst:185 +msgid "" +"``MPD_TRIPLE_QNAN``: ``triple.exp`` must be 0. If ``triple.hi`` or ``triple." +"lo`` are nonzero, create a ``NaN`` with a payload." +msgstr "" + +#: c-api/decimal.rst:188 +msgid "" +"``MPD_TRIPLE_SNAN``: ``triple.exp`` must be 0. If ``triple.hi`` or ``triple." +"lo`` are nonzero, create an ``sNaN`` with a payload." +msgstr "" + +#: c-api/decimal.rst:191 +msgid "" +"``MPD_TRIPLE_INF``: ``triple.exp``, ``triple.hi`` and ``triple.lo`` must be " +"zero." +msgstr "" + +#: c-api/decimal.rst:193 +msgid "" +"``MPD_TRIPLE_NORMAL``: ``MPD_MIN_ETINY + 38 < triple.exp < MPD_MAX_EMAX - " +"38``. ``triple.hi`` and ``triple.lo`` can be chosen freely." +msgstr "" + +#: c-api/decimal.rst:196 +msgid "``MPD_TRIPLE_ERROR``: It is always an error to set this tag." +msgstr "" + +#: c-api/decimal.rst:199 +msgid "" +"If one of the above conditions is not met, the function returns ``NaN`` if " +"the ``InvalidOperation`` trap is not set in the thread local context. " +"Otherwise, it sets the ``InvalidOperation`` exception and returns NULL." +msgstr "" + +#: c-api/decimal.rst:203 +msgid "" +"Additionally, though extremely unlikely give the small allocation sizes, the " +"function can set ``MemoryError`` and return ``NULL``." +msgstr "" + +#: c-api/decimal.rst:208 +msgid "Advanced API" +msgstr "" + +#: c-api/decimal.rst:210 +msgid "" +"This API enables the use of ``libmpdec`` functions. Since Python is " +"compiled with hidden symbols, the API requires an external libmpdec and the " +"``mpdecimal.h`` header." +msgstr "" + +#: c-api/decimal.rst:220 +msgid "" +"Return a new decimal that can be used in the ``result`` position of " +"``libmpdec`` functions." +msgstr "" + +#: c-api/decimal.rst:225 +msgid "" +"Get a pointer to the internal ``mpd_t`` of the decimal. Decimals are " +"immutable, so this function must only be used on a new Decimal that has been " +"created by PyDec_Alloc()." +msgstr "" + +#: c-api/decimal.rst:231 +msgid "Get a pointer to the constant internal ``mpd_t`` of the decimal." +msgstr "" diff --git a/c-api/file.po b/c-api/file.po index 06970374..02cf0b7a 100644 --- a/c-api/file.po +++ b/c-api/file.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-10-18 09:48+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -149,7 +149,7 @@ msgstr "" msgid "This function is safe to call before :c:func:`Py_Initialize`." msgstr "" -#: c-api/file.rst:86 +#: c-api/file.rst:85 msgid "" "Raises an :ref:`auditing event ` ``setopencodehook`` with no " "arguments." diff --git a/c-api/init.po b/c-api/init.po index 6025e7dc..5da8f220 100644 --- a/c-api/init.po +++ b/c-api/init.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-11-29 18:22+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -472,7 +472,7 @@ msgid "" "than once." msgstr "" -#: c-api/init.rst:305 +#: c-api/init.rst:304 msgid "" "Raises an :ref:`auditing event ` ``cpython." "_PySys_ClearAuditHooks`` with no arguments." diff --git a/c-api/memory.po b/c-api/memory.po index 146a13f5..673614bc 100644 --- a/c-api/memory.po +++ b/c-api/memory.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -750,8 +750,9 @@ msgid "allocate an arena of size bytes" msgstr "" #: c-api/memory.rst:519 -msgid "``void free(void *ctx, size_t size, void *ptr)``" -msgstr "``void free(void *ctx, size_t size, void *ptr)``" +#, fuzzy +msgid "``void free(void *ctx, void *ptr, size_t size)``" +msgstr "``void free(void *ctx, void *ptr)``" #: c-api/memory.rst:519 msgid "free an arena" @@ -830,3 +831,6 @@ msgid "" "These will be explained in the next chapter on defining and implementing new " "object types in C." msgstr "" + +#~ msgid "``void free(void *ctx, size_t size, void *ptr)``" +#~ msgstr "``void free(void *ctx, size_t size, void *ptr)``" diff --git a/c-api/sys.po b/c-api/sys.po index 8e552516..fb2d949c 100644 --- a/c-api/sys.po +++ b/c-api/sys.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -426,7 +426,7 @@ msgid "" "events table `. Details are in each function's documentation." msgstr "" -#: c-api/sys.rst:None +#: c-api/sys.rst:363 msgid "" "Raises an :ref:`auditing event ` ``sys.addaudithook`` with no " "arguments." diff --git a/c-api/unicode.po b/c-api/unicode.po index e2c2f154..3093ad98 100644 --- a/c-api/unicode.po +++ b/c-api/unicode.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-10-04 12:27+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -217,7 +217,7 @@ msgid "" "Unicode object (not checked)." msgstr "" -#: c-api/unicode.rst:228 c-api/unicode.rst:768 +#: c-api/unicode.rst:228 c-api/unicode.rst:772 msgid "" "Part of the old-style Unicode API, please migrate to using :c:func:" "`PyUnicode_GET_LENGTH`." @@ -895,7 +895,7 @@ msgid "" "functions." msgstr "" -#: c-api/unicode.rst:744 +#: c-api/unicode.rst:748 msgid "" "Part of the old-style Unicode API, please migrate to using :c:func:" "`PyUnicode_AsUCS4`, :c:func:`PyUnicode_AsWideChar`, :c:func:" @@ -909,7 +909,13 @@ msgid "" "their decimal value. Return ``NULL`` if an exception occurs." msgstr "" -#: c-api/unicode.rst:733 +#: c-api/unicode.rst:732 +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`Py_UNICODE_TODECIMAL`." +msgstr "" + +#: c-api/unicode.rst:737 msgid "" "Like :c:func:`PyUnicode_AsUnicode`, but also saves the :c:func:`Py_UNICODE` " "array length (excluding the extra null terminator) in *size*. Note that the " @@ -918,7 +924,7 @@ msgid "" "functions." msgstr "" -#: c-api/unicode.rst:749 +#: c-api/unicode.rst:753 msgid "" "Create a copy of a Unicode string ending with a null code point. Return " "``NULL`` and raise a :exc:`MemoryError` exception on memory allocation " @@ -928,40 +934,40 @@ msgid "" "truncated when used in most C functions." msgstr "" -#: c-api/unicode.rst:758 +#: c-api/unicode.rst:762 msgid "" "Please migrate to using :c:func:`PyUnicode_AsUCS4Copy` or similar new APIs." msgstr "" -#: c-api/unicode.rst:763 +#: c-api/unicode.rst:767 msgid "" "Return the size of the deprecated :c:type:`Py_UNICODE` representation, in " "code units (this includes surrogate pairs as 2 units)." msgstr "" -#: c-api/unicode.rst:773 +#: c-api/unicode.rst:777 msgid "" "Copy an instance of a Unicode subtype to a new true Unicode object if " "necessary. If *obj* is already a true Unicode object (not a subtype), return " "the reference with incremented refcount." msgstr "" -#: c-api/unicode.rst:777 +#: c-api/unicode.rst:781 msgid "" "Objects other than Unicode or its subtypes will cause a :exc:`TypeError`." msgstr "" -#: c-api/unicode.rst:781 +#: c-api/unicode.rst:785 msgid "Locale Encoding" msgstr "" -#: c-api/unicode.rst:783 +#: c-api/unicode.rst:787 msgid "" "The current locale encoding can be used to decode text from the operating " "system." msgstr "" -#: c-api/unicode.rst:790 +#: c-api/unicode.rst:794 msgid "" "Decode a string from UTF-8 on Android and VxWorks, or from the current " "locale encoding on other platforms. The supported error handlers are ``" @@ -970,22 +976,22 @@ msgid "" "null character but cannot contain embedded null characters." msgstr "" -#: c-api/unicode.rst:797 +#: c-api/unicode.rst:801 msgid "" "Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` to decode a string from :c:" "data:`Py_FileSystemDefaultEncoding` (the locale encoding read at Python " "startup)." msgstr "" -#: c-api/unicode.rst:837 +#: c-api/unicode.rst:841 msgid "This function ignores the Python UTF-8 mode." msgstr "" -#: c-api/unicode.rst:909 +#: c-api/unicode.rst:913 msgid "The :c:func:`Py_DecodeLocale` function." msgstr "" -#: c-api/unicode.rst:809 +#: c-api/unicode.rst:813 msgid "" "The function now also uses the current locale encoding for the " "``surrogateescape`` error handler, except on Android. Previously, :c:func:" @@ -993,13 +999,13 @@ msgid "" "locale encoding was used for ``strict``." msgstr "" -#: c-api/unicode.rst:818 +#: c-api/unicode.rst:822 msgid "" "Similar to :c:func:`PyUnicode_DecodeLocaleAndSize`, but compute the string " "length using :c:func:`strlen`." msgstr "" -#: c-api/unicode.rst:826 +#: c-api/unicode.rst:830 msgid "" "Encode a Unicode object to UTF-8 on Android and VxWorks, or to the current " "locale encoding on other platforms. The supported error handlers are ``" @@ -1008,17 +1014,17 @@ msgid "" "object. *unicode* cannot contain embedded null characters." msgstr "" -#: c-api/unicode.rst:833 +#: c-api/unicode.rst:837 msgid "" "Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to :c:data:" "`Py_FileSystemDefaultEncoding` (the locale encoding read at Python startup)." msgstr "" -#: c-api/unicode.rst:945 +#: c-api/unicode.rst:949 msgid "The :c:func:`Py_EncodeLocale` function." msgstr "" -#: c-api/unicode.rst:845 +#: c-api/unicode.rst:849 msgid "" "The function now also uses the current locale encoding for the " "``surrogateescape`` error handler, except on Android. Previously, :c:func:" @@ -1026,11 +1032,11 @@ msgid "" "locale encoding was used for ``strict``." msgstr "" -#: c-api/unicode.rst:854 +#: c-api/unicode.rst:858 msgid "File System Encoding" msgstr "" -#: c-api/unicode.rst:856 +#: c-api/unicode.rst:860 msgid "" "To encode and decode file names and other environment strings, :c:data:" "`Py_FileSystemDefaultEncoding` should be used as the encoding, and :c:data:" @@ -1040,7 +1046,7 @@ msgid "" "`PyUnicode_FSConverter` as the conversion function:" msgstr "" -#: c-api/unicode.rst:865 +#: c-api/unicode.rst:869 msgid "" "ParseTuple converter: encode :class:`str` objects -- obtained directly or " "through the :class:`os.PathLike` interface -- to :class:`bytes` using :c:" @@ -1049,18 +1055,18 @@ msgid "" "is no longer used." msgstr "" -#: c-api/unicode.rst:890 +#: c-api/unicode.rst:894 msgid "Accepts a :term:`path-like object`." msgstr "Accepte un :term:`path-like object`." -#: c-api/unicode.rst:876 +#: c-api/unicode.rst:880 msgid "" "To decode file names to :class:`str` during argument parsing, the ``\"O&\"`` " "converter should be used, passing :c:func:`PyUnicode_FSDecoder` as the " "conversion function:" msgstr "" -#: c-api/unicode.rst:882 +#: c-api/unicode.rst:886 msgid "" "ParseTuple converter: decode :class:`bytes` objects -- obtained either " "directly or indirectly through the :class:`os.PathLike` interface -- to :" @@ -1069,19 +1075,19 @@ msgid "" "which must be released when it is no longer used." msgstr "" -#: c-api/unicode.rst:896 +#: c-api/unicode.rst:900 msgid "" "Decode a string using :c:data:`Py_FileSystemDefaultEncoding` and the :c:data:" "`Py_FileSystemDefaultEncodeErrors` error handler." msgstr "" -#: c-api/unicode.rst:920 c-api/unicode.rst:936 +#: c-api/unicode.rst:924 c-api/unicode.rst:940 msgid "" "If :c:data:`Py_FileSystemDefaultEncoding` is not set, fall back to the " "locale encoding." msgstr "" -#: c-api/unicode.rst:902 +#: c-api/unicode.rst:906 msgid "" ":c:data:`Py_FileSystemDefaultEncoding` is initialized at startup from the " "locale encoding and cannot be modified later. If you need to decode a string " @@ -1089,22 +1095,22 @@ msgid "" "`PyUnicode_DecodeLocaleAndSize`." msgstr "" -#: c-api/unicode.rst:925 c-api/unicode.rst:949 +#: c-api/unicode.rst:929 c-api/unicode.rst:953 msgid "Use :c:data:`Py_FileSystemDefaultEncodeErrors` error handler." msgstr "" -#: c-api/unicode.rst:917 +#: c-api/unicode.rst:921 msgid "" "Decode a null-terminated string using :c:data:`Py_FileSystemDefaultEncoding` " "and the :c:data:`Py_FileSystemDefaultEncodeErrors` error handler." msgstr "" -#: c-api/unicode.rst:923 +#: c-api/unicode.rst:927 msgid "" "Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` if you know the string length." msgstr "" -#: c-api/unicode.rst:931 +#: c-api/unicode.rst:935 msgid "" "Encode a Unicode object to :c:data:`Py_FileSystemDefaultEncoding` with the :" "c:data:`Py_FileSystemDefaultEncodeErrors` error handler, and return :class:" @@ -1112,29 +1118,29 @@ msgid "" "bytes." msgstr "" -#: c-api/unicode.rst:939 +#: c-api/unicode.rst:943 msgid "" ":c:data:`Py_FileSystemDefaultEncoding` is initialized at startup from the " "locale encoding and cannot be modified later. If you need to encode a string " "to the current locale encoding, use :c:func:`PyUnicode_EncodeLocale`." msgstr "" -#: c-api/unicode.rst:953 +#: c-api/unicode.rst:957 msgid "wchar_t Support" msgstr "" -#: c-api/unicode.rst:955 +#: c-api/unicode.rst:959 msgid ":c:type:`wchar_t` support for platforms which support it:" msgstr "" -#: c-api/unicode.rst:959 +#: c-api/unicode.rst:963 msgid "" "Create a Unicode object from the :c:type:`wchar_t` buffer *w* of the given " "*size*. Passing ``-1`` as the *size* indicates that the function must itself " "compute the length, using wcslen. Return ``NULL`` on failure." msgstr "" -#: c-api/unicode.rst:967 +#: c-api/unicode.rst:971 msgid "" "Copy the Unicode object contents into the :c:type:`wchar_t` buffer *w*. At " "most *size* :c:type:`wchar_t` characters are copied (excluding a possibly " @@ -1147,7 +1153,7 @@ msgid "" "would cause the string to be truncated when used with most C functions." msgstr "" -#: c-api/unicode.rst:980 +#: c-api/unicode.rst:984 msgid "" "Convert the Unicode object to a wide character string. The output string " "always ends with a null character. If *size* is not ``NULL``, write the " @@ -1158,7 +1164,7 @@ msgid "" "`wchar_t*` string contains null characters a :exc:`ValueError` is raised." msgstr "" -#: c-api/unicode.rst:988 +#: c-api/unicode.rst:992 msgid "" "Returns a buffer allocated by :c:func:`PyMem_Alloc` (use :c:func:" "`PyMem_Free` to free it) on success. On error, returns ``NULL`` and *" @@ -1166,30 +1172,30 @@ msgid "" "failed." msgstr "" -#: c-api/unicode.rst:995 +#: c-api/unicode.rst:999 msgid "" "Raises a :exc:`ValueError` if *size* is ``NULL`` and the :c:type:`wchar_t*` " "string contains null characters." msgstr "" -#: c-api/unicode.rst:1003 +#: c-api/unicode.rst:1007 msgid "Built-in Codecs" msgstr "" -#: c-api/unicode.rst:1005 +#: c-api/unicode.rst:1009 msgid "" "Python provides a set of built-in codecs which are written in C for speed. " "All of these codecs are directly usable via the following functions." msgstr "" -#: c-api/unicode.rst:1008 +#: c-api/unicode.rst:1012 msgid "" "Many of the following APIs take two arguments encoding and errors, and they " "have the same semantics as the ones of the built-in :func:`str` string " "object constructor." msgstr "" -#: c-api/unicode.rst:1012 +#: c-api/unicode.rst:1016 msgid "" "Setting encoding to ``NULL`` causes the default encoding to be used which is " "UTF-8. The file system calls should use :c:func:`PyUnicode_FSConverter` for " @@ -1200,28 +1206,28 @@ msgid "" "setlocale)." msgstr "" -#: c-api/unicode.rst:1020 +#: c-api/unicode.rst:1024 msgid "" "Error handling is set by errors which may also be set to ``NULL`` meaning to " "use the default handling defined for the codec. Default error handling for " "all built-in codecs is \"strict\" (:exc:`ValueError` is raised)." msgstr "" -#: c-api/unicode.rst:1024 +#: c-api/unicode.rst:1028 msgid "" "The codecs all use a similar interface. Only deviation from the following " "generic ones are documented for simplicity." msgstr "" -#: c-api/unicode.rst:1029 +#: c-api/unicode.rst:1033 msgid "Generic Codecs" msgstr "" -#: c-api/unicode.rst:1031 +#: c-api/unicode.rst:1035 msgid "These are the generic codec APIs:" msgstr "" -#: c-api/unicode.rst:1037 +#: c-api/unicode.rst:1041 msgid "" "Create a Unicode object by decoding *size* bytes of the encoded string *s*. " "*encoding* and *errors* have the same meaning as the parameters of the same " @@ -1230,7 +1236,7 @@ msgid "" "raised by the codec." msgstr "" -#: c-api/unicode.rst:1047 +#: c-api/unicode.rst:1051 msgid "" "Encode a Unicode object and return the result as Python bytes object. " "*encoding* and *errors* have the same meaning as the parameters of the same " @@ -1239,7 +1245,7 @@ msgid "" "was raised by the codec." msgstr "" -#: c-api/unicode.rst:1057 +#: c-api/unicode.rst:1061 msgid "" "Encode the :c:type:`Py_UNICODE` buffer *s* of the given *size* and return a " "Python bytes object. *encoding* and *errors* have the same meaning as the " @@ -1248,27 +1254,27 @@ msgid "" "``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1322 +#: c-api/unicode.rst:1326 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1069 +#: c-api/unicode.rst:1073 msgid "UTF-8 Codecs" msgstr "" -#: c-api/unicode.rst:1071 +#: c-api/unicode.rst:1075 msgid "These are the UTF-8 codec APIs:" msgstr "" -#: c-api/unicode.rst:1076 +#: c-api/unicode.rst:1080 msgid "" "Create a Unicode object by decoding *size* bytes of the UTF-8 encoded string " "*s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1083 +#: c-api/unicode.rst:1087 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF8`. If " "*consumed* is not ``NULL``, trailing incomplete UTF-8 byte sequences will " @@ -1276,14 +1282,14 @@ msgid "" "of bytes that have been decoded will be stored in *consumed*." msgstr "" -#: c-api/unicode.rst:1091 +#: c-api/unicode.rst:1095 msgid "" "Encode a Unicode object using UTF-8 and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1098 +#: c-api/unicode.rst:1102 msgid "" "Return a pointer to the UTF-8 encoding of the Unicode object, and store the " "size of the encoded representation (in bytes) in *size*. The *size* " @@ -1292,63 +1298,63 @@ msgid "" "regardless of whether there are any other null code points." msgstr "" -#: c-api/unicode.rst:1104 +#: c-api/unicode.rst:1108 msgid "" "In the case of an error, ``NULL`` is returned with an exception set and no " "*size* is stored." msgstr "" -#: c-api/unicode.rst:1107 +#: c-api/unicode.rst:1111 msgid "" "This caches the UTF-8 representation of the string in the Unicode object, " "and subsequent calls will return a pointer to the same buffer. The caller " "is not responsible for deallocating the buffer." msgstr "" -#: c-api/unicode.rst:1123 +#: c-api/unicode.rst:1127 msgid "The return type is now ``const char *`` rather of ``char *``." msgstr "" -#: c-api/unicode.rst:1119 +#: c-api/unicode.rst:1123 msgid "As :c:func:`PyUnicode_AsUTF8AndSize`, but does not store the size." msgstr "" -#: c-api/unicode.rst:1129 +#: c-api/unicode.rst:1133 msgid "" "Encode the :c:type:`Py_UNICODE` buffer *s* of the given *size* using UTF-8 " "and return a Python bytes object. Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1136 +#: c-api/unicode.rst:1140 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsUTF8String`, :c:func:`PyUnicode_AsUTF8AndSize` or :c:func:" "`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1140 +#: c-api/unicode.rst:1144 msgid "UTF-32 Codecs" msgstr "" -#: c-api/unicode.rst:1142 +#: c-api/unicode.rst:1146 msgid "These are the UTF-32 codec APIs:" msgstr "" -#: c-api/unicode.rst:1148 +#: c-api/unicode.rst:1152 msgid "" "Decode *size* bytes from a UTF-32 encoded buffer string and return the " "corresponding Unicode object. *errors* (if non-``NULL``) defines the error " "handling. It defaults to \"strict\"." msgstr "" -#: c-api/unicode.rst:1225 +#: c-api/unicode.rst:1229 msgid "" "If *byteorder* is non-``NULL``, the decoder starts decoding using the given " "byte order::" msgstr "" -#: c-api/unicode.rst:1159 +#: c-api/unicode.rst:1163 msgid "" "If ``*byteorder`` is zero, and the first four bytes of the input data are a " "byte order mark (BOM), the decoder switches to this byte order and the BOM " @@ -1356,21 +1362,21 @@ msgid "" "``-1`` or ``1``, any byte order mark is copied to the output." msgstr "" -#: c-api/unicode.rst:1238 +#: c-api/unicode.rst:1242 msgid "" "After completion, *\\*byteorder* is set to the current byte order at the end " "of input data." msgstr "" -#: c-api/unicode.rst:1241 +#: c-api/unicode.rst:1245 msgid "If *byteorder* is ``NULL``, the codec starts in native order mode." msgstr "" -#: c-api/unicode.rst:1205 c-api/unicode.rst:1280 +#: c-api/unicode.rst:1209 c-api/unicode.rst:1284 msgid "Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1175 +#: c-api/unicode.rst:1179 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF32`. If " "*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF32Stateful` will not " @@ -1379,53 +1385,53 @@ msgid "" "number of bytes that have been decoded will be stored in *consumed*." msgstr "" -#: c-api/unicode.rst:1184 +#: c-api/unicode.rst:1188 msgid "" "Return a Python byte string using the UTF-32 encoding in native byte order. " "The string always starts with a BOM mark. Error handling is \"strict\". " "Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1192 +#: c-api/unicode.rst:1196 msgid "" "Return a Python bytes object holding the UTF-32 encoded value of the Unicode " "data in *s*. Output is written according to the following byte order::" msgstr "" -#: c-api/unicode.rst:1273 +#: c-api/unicode.rst:1277 msgid "" "If byteorder is ``0``, the output string will always start with the Unicode " "BOM mark (U+FEFF). In the other two modes, no BOM mark is prepended." msgstr "" -#: c-api/unicode.rst:1202 +#: c-api/unicode.rst:1206 msgid "" "If ``Py_UNICODE_WIDE`` is not defined, surrogate pairs will be output as a " "single code point." msgstr "" -#: c-api/unicode.rst:1209 +#: c-api/unicode.rst:1213 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsUTF32String` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1213 +#: c-api/unicode.rst:1217 msgid "UTF-16 Codecs" msgstr "" -#: c-api/unicode.rst:1215 +#: c-api/unicode.rst:1219 msgid "These are the UTF-16 codec APIs:" msgstr "" -#: c-api/unicode.rst:1221 +#: c-api/unicode.rst:1225 msgid "" "Decode *size* bytes from a UTF-16 encoded buffer string and return the " "corresponding Unicode object. *errors* (if non-``NULL``) defines the error " "handling. It defaults to \"strict\"." msgstr "" -#: c-api/unicode.rst:1232 +#: c-api/unicode.rst:1236 msgid "" "If ``*byteorder`` is zero, and the first two bytes of the input data are a " "byte order mark (BOM), the decoder switches to this byte order and the BOM " @@ -1434,7 +1440,7 @@ msgid "" "result in either a ``\\ufeff`` or a ``\\ufffe`` character)." msgstr "" -#: c-api/unicode.rst:1249 +#: c-api/unicode.rst:1253 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF16`. If " "*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF16Stateful` will not " @@ -1444,47 +1450,47 @@ msgid "" "*consumed*." msgstr "" -#: c-api/unicode.rst:1258 +#: c-api/unicode.rst:1262 msgid "" "Return a Python byte string using the UTF-16 encoding in native byte order. " "The string always starts with a BOM mark. Error handling is \"strict\". " "Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1266 +#: c-api/unicode.rst:1270 msgid "" "Return a Python bytes object holding the UTF-16 encoded value of the Unicode " "data in *s*. Output is written according to the following byte order::" msgstr "" -#: c-api/unicode.rst:1276 +#: c-api/unicode.rst:1280 msgid "" "If ``Py_UNICODE_WIDE`` is defined, a single :c:type:`Py_UNICODE` value may " "get represented as a surrogate pair. If it is not defined, each :c:type:" "`Py_UNICODE` values is interpreted as a UCS-2 character." msgstr "" -#: c-api/unicode.rst:1284 +#: c-api/unicode.rst:1288 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsUTF16String` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1288 +#: c-api/unicode.rst:1292 msgid "UTF-7 Codecs" msgstr "" -#: c-api/unicode.rst:1290 +#: c-api/unicode.rst:1294 msgid "These are the UTF-7 codec APIs:" msgstr "" -#: c-api/unicode.rst:1295 +#: c-api/unicode.rst:1299 msgid "" "Create a Unicode object by decoding *size* bytes of the UTF-7 encoded string " "*s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1302 +#: c-api/unicode.rst:1306 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF7`. If " "*consumed* is not ``NULL``, trailing incomplete UTF-7 base-64 sections will " @@ -1492,14 +1498,14 @@ msgid "" "of bytes that have been decoded will be stored in *consumed*." msgstr "" -#: c-api/unicode.rst:1311 +#: c-api/unicode.rst:1315 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given size using UTF-7 and " "return a Python bytes object. Return ``NULL`` if an exception was raised by " "the codec." msgstr "" -#: c-api/unicode.rst:1315 +#: c-api/unicode.rst:1319 msgid "" "If *base64SetO* is nonzero, \"Set O\" (punctuation that has no otherwise " "special meaning) will be encoded in base-64. If *base64WhiteSpace* is " @@ -1507,152 +1513,152 @@ msgid "" "the Python \"utf-7\" codec." msgstr "" -#: c-api/unicode.rst:1326 +#: c-api/unicode.rst:1330 msgid "Unicode-Escape Codecs" msgstr "" -#: c-api/unicode.rst:1328 +#: c-api/unicode.rst:1332 msgid "These are the \"Unicode Escape\" codec APIs:" msgstr "" -#: c-api/unicode.rst:1334 +#: c-api/unicode.rst:1338 msgid "" "Create a Unicode object by decoding *size* bytes of the Unicode-Escape " "encoded string *s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1340 +#: c-api/unicode.rst:1344 msgid "" "Encode a Unicode object using Unicode-Escape and return the result as a " "bytes object. Error handling is \"strict\". Return ``NULL`` if an " "exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1347 +#: c-api/unicode.rst:1351 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Unicode-" "Escape and return a bytes object. Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1352 +#: c-api/unicode.rst:1356 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsUnicodeEscapeString`." msgstr "" -#: c-api/unicode.rst:1356 +#: c-api/unicode.rst:1360 msgid "Raw-Unicode-Escape Codecs" msgstr "" -#: c-api/unicode.rst:1358 +#: c-api/unicode.rst:1362 msgid "These are the \"Raw Unicode Escape\" codec APIs:" msgstr "" -#: c-api/unicode.rst:1364 +#: c-api/unicode.rst:1368 msgid "" "Create a Unicode object by decoding *size* bytes of the Raw-Unicode-Escape " "encoded string *s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1370 +#: c-api/unicode.rst:1374 msgid "" "Encode a Unicode object using Raw-Unicode-Escape and return the result as a " "bytes object. Error handling is \"strict\". Return ``NULL`` if an " "exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1378 +#: c-api/unicode.rst:1382 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Raw-Unicode-" "Escape and return a bytes object. Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1384 +#: c-api/unicode.rst:1388 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsRawUnicodeEscapeString` or :c:func:" "`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1388 +#: c-api/unicode.rst:1392 msgid "Latin-1 Codecs" msgstr "" -#: c-api/unicode.rst:1390 +#: c-api/unicode.rst:1394 msgid "" "These are the Latin-1 codec APIs: Latin-1 corresponds to the first 256 " "Unicode ordinals and only these are accepted by the codecs during encoding." msgstr "" -#: c-api/unicode.rst:1396 +#: c-api/unicode.rst:1400 msgid "" "Create a Unicode object by decoding *size* bytes of the Latin-1 encoded " "string *s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1402 +#: c-api/unicode.rst:1406 msgid "" "Encode a Unicode object using Latin-1 and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1409 +#: c-api/unicode.rst:1413 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Latin-1 and " "return a Python bytes object. Return ``NULL`` if an exception was raised by " "the codec." msgstr "" -#: c-api/unicode.rst:1416 +#: c-api/unicode.rst:1420 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsLatin1String` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1420 +#: c-api/unicode.rst:1424 msgid "ASCII Codecs" msgstr "" -#: c-api/unicode.rst:1422 +#: c-api/unicode.rst:1426 msgid "" "These are the ASCII codec APIs. Only 7-bit ASCII data is accepted. All " "other codes generate errors." msgstr "" -#: c-api/unicode.rst:1428 +#: c-api/unicode.rst:1432 msgid "" "Create a Unicode object by decoding *size* bytes of the ASCII encoded string " "*s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1434 +#: c-api/unicode.rst:1438 msgid "" "Encode a Unicode object using ASCII and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1441 +#: c-api/unicode.rst:1445 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using ASCII and " "return a Python bytes object. Return ``NULL`` if an exception was raised by " "the codec." msgstr "" -#: c-api/unicode.rst:1448 +#: c-api/unicode.rst:1452 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsASCIIString` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1452 +#: c-api/unicode.rst:1456 msgid "Character Map Codecs" msgstr "" -#: c-api/unicode.rst:1454 +#: c-api/unicode.rst:1458 msgid "" "This codec is special in that it can be used to implement many different " "codecs (and this is in fact what was done to obtain most of the standard " @@ -1662,18 +1668,18 @@ msgid "" "well." msgstr "" -#: c-api/unicode.rst:1460 +#: c-api/unicode.rst:1464 msgid "These are the mapping codec APIs:" msgstr "" -#: c-api/unicode.rst:1465 +#: c-api/unicode.rst:1469 msgid "" "Create a Unicode object by decoding *size* bytes of the encoded string *s* " "using the given *mapping* object. Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1469 +#: c-api/unicode.rst:1473 msgid "" "If *mapping* is ``NULL``, Latin-1 decoding will be applied. Else *mapping* " "must map bytes ordinals (integers in the range from 0 to 255) to Unicode " @@ -1683,14 +1689,14 @@ msgid "" "treated as undefined mappings and cause an error." msgstr "" -#: c-api/unicode.rst:1480 +#: c-api/unicode.rst:1484 msgid "" "Encode a Unicode object using the given *mapping* object and return the " "result as a bytes object. Error handling is \"strict\". Return ``NULL`` if " "an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1484 +#: c-api/unicode.rst:1488 msgid "" "The *mapping* object must map Unicode ordinal integers to bytes objects, " "integers in the range from 0 to 255 or ``None``. Unmapped character " @@ -1698,68 +1704,68 @@ msgid "" "``None`` are treated as \"undefined mapping\" and cause an error." msgstr "" -#: c-api/unicode.rst:1493 +#: c-api/unicode.rst:1497 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using the given " "*mapping* object and return the result as a bytes object. Return ``NULL`` " "if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1500 +#: c-api/unicode.rst:1504 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsCharmapString` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1503 +#: c-api/unicode.rst:1507 msgid "The following codec API is special in that maps Unicode to Unicode." msgstr "" -#: c-api/unicode.rst:1507 +#: c-api/unicode.rst:1511 msgid "" "Translate a string by applying a character mapping table to it and return " "the resulting Unicode object. Return ``NULL`` if an exception was raised by " "the codec." msgstr "" -#: c-api/unicode.rst:1511 +#: c-api/unicode.rst:1515 msgid "" "The mapping table must map Unicode ordinal integers to Unicode ordinal " "integers or ``None`` (causing deletion of the character)." msgstr "" -#: c-api/unicode.rst:1514 +#: c-api/unicode.rst:1518 msgid "" "Mapping tables need only provide the :meth:`__getitem__` interface; " "dictionaries and sequences work well. Unmapped character ordinals (ones " "which cause a :exc:`LookupError`) are left untouched and are copied as-is." msgstr "" -#: c-api/unicode.rst:1518 +#: c-api/unicode.rst:1522 msgid "" "*errors* has the usual meaning for codecs. It may be ``NULL`` which " "indicates to use the default error handling." msgstr "" -#: c-api/unicode.rst:1525 +#: c-api/unicode.rst:1529 msgid "" "Translate a :c:type:`Py_UNICODE` buffer of the given *size* by applying a " "character *mapping* table to it and return the resulting Unicode object. " "Return ``NULL`` when an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1532 +#: c-api/unicode.rst:1536 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_Translate`. or :ref:`generic codec based API `" msgstr "" -#: c-api/unicode.rst:1536 +#: c-api/unicode.rst:1540 msgid "MBCS codecs for Windows" msgstr "" -#: c-api/unicode.rst:1538 +#: c-api/unicode.rst:1542 msgid "" "These are the MBCS codec APIs. They are currently only available on Windows " "and use the Win32 MBCS converters to implement the conversions. Note that " @@ -1767,13 +1773,13 @@ msgid "" "is defined by the user settings on the machine running the codec." msgstr "" -#: c-api/unicode.rst:1545 +#: c-api/unicode.rst:1549 msgid "" "Create a Unicode object by decoding *size* bytes of the MBCS encoded string " "*s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" -#: c-api/unicode.rst:1552 +#: c-api/unicode.rst:1556 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeMBCS`. If " "*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeMBCSStateful` will not " @@ -1781,58 +1787,58 @@ msgid "" "will be stored in *consumed*." msgstr "" -#: c-api/unicode.rst:1560 +#: c-api/unicode.rst:1564 msgid "" "Encode a Unicode object using MBCS and return the result as Python bytes " "object. Error handling is \"strict\". Return ``NULL`` if an exception was " "raised by the codec." msgstr "" -#: c-api/unicode.rst:1567 +#: c-api/unicode.rst:1571 msgid "" "Encode the Unicode object using the specified code page and return a Python " "bytes object. Return ``NULL`` if an exception was raised by the codec. Use :" "c:data:`CP_ACP` code page to get the MBCS encoder." msgstr "" -#: c-api/unicode.rst:1576 +#: c-api/unicode.rst:1580 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using MBCS and " "return a Python bytes object. Return ``NULL`` if an exception was raised by " "the codec." msgstr "" -#: c-api/unicode.rst:1583 +#: c-api/unicode.rst:1587 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyUnicode_AsMBCSString`, :c:func:`PyUnicode_EncodeCodePage` or :c:func:" "`PyUnicode_AsEncodedString`." msgstr "" -#: c-api/unicode.rst:1587 +#: c-api/unicode.rst:1591 msgid "Methods & Slots" msgstr "" -#: c-api/unicode.rst:1593 +#: c-api/unicode.rst:1597 msgid "Methods and Slot Functions" msgstr "" -#: c-api/unicode.rst:1595 +#: c-api/unicode.rst:1599 msgid "" "The following APIs are capable of handling Unicode objects and strings on " "input (we refer to them as strings in the descriptions) and return Unicode " "objects or integers as appropriate." msgstr "" -#: c-api/unicode.rst:1599 +#: c-api/unicode.rst:1603 msgid "They all return ``NULL`` or ``-1`` if an exception occurs." msgstr "" -#: c-api/unicode.rst:1604 +#: c-api/unicode.rst:1608 msgid "Concat two strings giving a new Unicode string." msgstr "" -#: c-api/unicode.rst:1609 +#: c-api/unicode.rst:1613 msgid "" "Split a string giving a list of Unicode strings. If *sep* is ``NULL``, " "splitting will be done at all whitespace substrings. Otherwise, splits " @@ -1841,27 +1847,27 @@ msgid "" "list." msgstr "" -#: c-api/unicode.rst:1617 +#: c-api/unicode.rst:1621 msgid "" "Split a Unicode string at line breaks, returning a list of Unicode strings. " "CRLF is considered to be one line break. If *keepend* is ``0``, the Line " "break characters are not included in the resulting strings." msgstr "" -#: c-api/unicode.rst:1624 +#: c-api/unicode.rst:1628 msgid "" "Join a sequence of strings using the given *separator* and return the " "resulting Unicode string." msgstr "" -#: c-api/unicode.rst:1631 +#: c-api/unicode.rst:1635 msgid "" "Return ``1`` if *substr* matches ``str[start:end]`` at the given tail end " "(*direction* == ``-1`` means to do a prefix match, *direction* == ``1`` a " "suffix match), ``0`` otherwise. Return ``-1`` if an error occurred." msgstr "" -#: c-api/unicode.rst:1639 +#: c-api/unicode.rst:1643 msgid "" "Return the first position of *substr* in ``str[start:end]`` using the given " "*direction* (*direction* == ``1`` means to do a forward search, *direction* " @@ -1870,7 +1876,7 @@ msgid "" "indicates that an error occurred and an exception has been set." msgstr "" -#: c-api/unicode.rst:1649 +#: c-api/unicode.rst:1653 msgid "" "Return the first position of the character *ch* in ``str[start:end]`` using " "the given *direction* (*direction* == ``1`` means to do a forward search, " @@ -1879,36 +1885,36 @@ msgid "" "``-2`` indicates that an error occurred and an exception has been set." msgstr "" -#: c-api/unicode.rst:1657 +#: c-api/unicode.rst:1661 msgid "*start* and *end* are now adjusted to behave like ``str[start:end]``." msgstr "" -#: c-api/unicode.rst:1664 +#: c-api/unicode.rst:1668 msgid "" "Return the number of non-overlapping occurrences of *substr* in ``str[start:" "end]``. Return ``-1`` if an error occurred." msgstr "" -#: c-api/unicode.rst:1671 +#: c-api/unicode.rst:1675 msgid "" "Replace at most *maxcount* occurrences of *substr* in *str* with *replstr* " "and return the resulting Unicode object. *maxcount* == ``-1`` means replace " "all occurrences." msgstr "" -#: c-api/unicode.rst:1678 +#: c-api/unicode.rst:1682 msgid "" "Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, " "and greater than, respectively." msgstr "" -#: c-api/unicode.rst:1681 +#: c-api/unicode.rst:1685 msgid "" "This function returns ``-1`` upon failure, so one should call :c:func:" "`PyErr_Occurred` to check for errors." msgstr "" -#: c-api/unicode.rst:1687 +#: c-api/unicode.rst:1691 msgid "" "Compare a Unicode object, *uni*, with *string* and return ``-1``, ``0``, " "``1`` for less than, equal, and greater than, respectively. It is best to " @@ -1916,51 +1922,51 @@ msgid "" "string as ISO-8859-1 if it contains non-ASCII characters." msgstr "" -#: c-api/unicode.rst:1692 +#: c-api/unicode.rst:1696 msgid "This function does not raise exceptions." msgstr "" -#: c-api/unicode.rst:1697 +#: c-api/unicode.rst:1701 msgid "Rich compare two Unicode strings and return one of the following:" msgstr "" -#: c-api/unicode.rst:1699 +#: c-api/unicode.rst:1703 msgid "``NULL`` in case an exception was raised" msgstr "" -#: c-api/unicode.rst:1700 +#: c-api/unicode.rst:1704 msgid ":const:`Py_True` or :const:`Py_False` for successful comparisons" msgstr "" -#: c-api/unicode.rst:1701 +#: c-api/unicode.rst:1705 msgid ":const:`Py_NotImplemented` in case the type combination is unknown" msgstr "" -#: c-api/unicode.rst:1703 +#: c-api/unicode.rst:1707 msgid "" "Possible values for *op* are :const:`Py_GT`, :const:`Py_GE`, :const:" "`Py_EQ`, :const:`Py_NE`, :const:`Py_LT`, and :const:`Py_LE`." msgstr "" -#: c-api/unicode.rst:1709 +#: c-api/unicode.rst:1713 msgid "" "Return a new string object from *format* and *args*; this is analogous to " "``format % args``." msgstr "" -#: c-api/unicode.rst:1715 +#: c-api/unicode.rst:1719 msgid "" "Check whether *element* is contained in *container* and return true or false " "accordingly." msgstr "" -#: c-api/unicode.rst:1718 +#: c-api/unicode.rst:1722 msgid "" "*element* has to coerce to a one element Unicode string. ``-1`` is returned " "if there was an error." msgstr "" -#: c-api/unicode.rst:1724 +#: c-api/unicode.rst:1728 msgid "" "Intern the argument *\\*string* in place. The argument must be the address " "of a pointer variable pointing to a Python Unicode string object. If there " @@ -1973,7 +1979,7 @@ msgid "" "the object after the call if and only if you owned it before the call.)" msgstr "" -#: c-api/unicode.rst:1737 +#: c-api/unicode.rst:1741 msgid "" "A combination of :c:func:`PyUnicode_FromString` and :c:func:" "`PyUnicode_InternInPlace`, returning either a new Unicode string object that " diff --git a/faq/design.po b/faq/design.po index 46b1ce74..d2f1c373 100644 --- a/faq/design.po +++ b/faq/design.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-11-07 16:24+0100\n" "Last-Translator: Mindiell \n" "Language-Team: FRENCH \n" @@ -1198,7 +1198,18 @@ msgstr "Pourquoi n'y a-t-il pas de ``goto`` en Python ?" #: faq/design.rst:604 msgid "" -"You can use exceptions to provide a \"structured goto\" that even works " +"In the 1970s people realized that unrestricted goto could lead to messy " +"\"spaghetti\" code that was hard to understand and revise. In a high-level " +"language, it is also unneeded as long as there are ways to branch (in " +"Python, with ``if`` statements and ``or``, ``and``, and ``if-else`` " +"expressions) and loop (with ``while`` and ``for`` statements, possibly " +"containing ``continue`` and ``break``)." +msgstr "" + +#: faq/design.rst:611 +#, fuzzy +msgid "" +"One can also use exceptions to provide a \"structured goto\" that works even " "across function calls. Many feel that exceptions can conveniently emulate " "all reasonable uses of the \"go\" or \"goto\" constructs of C, Fortran, and " "other languages. For example::" @@ -1209,7 +1220,7 @@ msgstr "" "utilisation raisonnable des constructions ``go`` ou ``goto`` en C, en " "Fortran ou autres langages de programmation. Par exemple ::" -#: faq/design.rst:619 +#: faq/design.rst:627 msgid "" "This doesn't allow you to jump into the middle of a loop, but that's usually " "considered an abuse of goto anyway. Use sparingly." @@ -1218,13 +1229,13 @@ msgstr "" "tous les cas cela est généralement considéré comme un abus de ``goto``. À " "Utiliser avec parcimonie." -#: faq/design.rst:624 +#: faq/design.rst:632 msgid "Why can't raw strings (r-strings) end with a backslash?" msgstr "" "Pourquoi les chaînes de caractères brutes (r-strings) ne peuvent-elles pas " "se terminer par un *backslash* ?" -#: faq/design.rst:626 +#: faq/design.rst:634 msgid "" "More precisely, they can't end with an odd number of backslashes: the " "unpaired backslash at the end escapes the closing quote character, leaving " @@ -1234,7 +1245,7 @@ msgstr "" "*backslashes* : le *backslash* non appairé à la fin échappe le caractère de " "guillemet final, laissant une chaîne non terminée." -#: faq/design.rst:630 +#: faq/design.rst:638 msgid "" "Raw strings were designed to ease creating input for processors (chiefly " "regular expression engines) that want to do their own backslash escape " @@ -1252,7 +1263,7 @@ msgstr "" "chaîne en l'échappant avec un *antislash*. Ces règles fonctionnent bien " "lorsque les chaînes brutes sont utilisées pour leur but premier." -#: faq/design.rst:637 +#: faq/design.rst:645 msgid "" "If you're trying to build Windows pathnames, note that all Windows system " "calls accept forward slashes too::" @@ -1261,20 +1272,20 @@ msgstr "" "les appels système Windows acceptent également les *slashes* \"classiques" "\" ::" -#: faq/design.rst:642 +#: faq/design.rst:650 msgid "" "If you're trying to build a pathname for a DOS command, try e.g. one of ::" msgstr "" "Si vous essayez de construire un chemin d'accès pour une commande DOS, " "essayez par exemple l'un de ceux-là ::" -#: faq/design.rst:650 +#: faq/design.rst:658 msgid "Why doesn't Python have a \"with\" statement for attribute assignments?" msgstr "" "Pourquoi la déclaration ``with`` pour les assignations d'attributs n'existe " "pas en Python ?" -#: faq/design.rst:652 +#: faq/design.rst:660 msgid "" "Python has a 'with' statement that wraps the execution of a block, calling " "code on the entrance and exit from the block. Some languages have a " @@ -1284,11 +1295,11 @@ msgstr "" "appelant le code sur l'entrée et la sortie du bloc. Certains langages " "possèdent une construction qui ressemble à ceci ::" -#: faq/design.rst:660 +#: faq/design.rst:668 msgid "In Python, such a construct would be ambiguous." msgstr "En Python, une telle construction serait ambiguë." -#: faq/design.rst:662 +#: faq/design.rst:670 msgid "" "Other languages, such as Object Pascal, Delphi, and C++, use static types, " "so it's possible to know, in an unambiguous way, what member is being " @@ -1301,7 +1312,7 @@ msgstr "" "statique --le compilateur connaît *toujours* la portée de toutes les " "variables au moment de la compilation." -#: faq/design.rst:667 +#: faq/design.rst:675 msgid "" "Python uses dynamic types. It is impossible to know in advance which " "attribute will be referenced at runtime. Member attributes may be added or " @@ -1315,11 +1326,11 @@ msgstr "" "impossible de savoir, d'une simple lecture, quel attribut est référencé : " "s'il est local, global ou un attribut membre?" -#: faq/design.rst:673 +#: faq/design.rst:681 msgid "For instance, take the following incomplete snippet::" msgstr "Prenons par exemple l'extrait incomplet suivant ::" -#: faq/design.rst:679 +#: faq/design.rst:687 msgid "" "The snippet assumes that \"a\" must have a member attribute called \"x\". " "However, there is nothing in Python that tells the interpreter this. What " @@ -1333,7 +1344,7 @@ msgstr "" "\"x\" existe, sera-t-elle utilisée dans le bloc ``with`` ? Comme vous " "voyez, la nature dynamique du Python rend ces choix beaucoup plus difficiles." -#: faq/design.rst:685 +#: faq/design.rst:693 msgid "" "The primary benefit of \"with\" and similar language features (reduction of " "code volume) can, however, easily be achieved in Python by assignment. " @@ -1343,11 +1354,11 @@ msgstr "" "similaires (réduction du volume de code) peut, cependant, être facilement " "réalisé en Python par assignation. Au lieu de ::" -#: faq/design.rst:692 +#: faq/design.rst:700 msgid "write this::" msgstr "écrivez ceci ::" -#: faq/design.rst:699 +#: faq/design.rst:707 msgid "" "This also has the side-effect of increasing execution speed because name " "bindings are resolved at run-time in Python, and the second version only " @@ -1357,13 +1368,13 @@ msgstr "" "car les liaisons de noms sont résolues au moment de l'exécution en Python, " "et la deuxième version n'a besoin d'exécuter la résolution qu'une seule fois." -#: faq/design.rst:705 +#: faq/design.rst:713 msgid "Why are colons required for the if/while/def/class statements?" msgstr "" "Pourquoi les deux-points sont-ils nécessaires pour les déclarations ``if/" "while/def/class`` ?" -#: faq/design.rst:707 +#: faq/design.rst:715 msgid "" "The colon is required primarily to enhance readability (one of the results " "of the experimental ABC language). Consider this::" @@ -1371,11 +1382,11 @@ msgstr "" "Le deux-points est principalement nécessaires pour améliorer la lisibilité " "(l'un des résultats du langage expérimental ABC). Considérez ceci ::" -#: faq/design.rst:713 +#: faq/design.rst:721 msgid "versus ::" msgstr "versus ::" -#: faq/design.rst:718 +#: faq/design.rst:726 msgid "" "Notice how the second one is slightly easier to read. Notice further how a " "colon sets off the example in this FAQ answer; it's a standard usage in " @@ -1385,7 +1396,7 @@ msgstr "" "aussi comment un deux-points introduit l'exemple dans cette réponse à la " "FAQ ; c'est un usage standard en anglais." -#: faq/design.rst:721 +#: faq/design.rst:729 msgid "" "Another minor reason is that the colon makes it easier for editors with " "syntax highlighting; they can look for colons to decide when indentation " @@ -1397,13 +1408,13 @@ msgstr "" "pour décider quand l'indentation doit être augmentée au lieu d'avoir à faire " "une analyse plus élaborée du texte du programme." -#: faq/design.rst:727 +#: faq/design.rst:735 msgid "Why does Python allow commas at the end of lists and tuples?" msgstr "" "Pourquoi Python permet-il les virgules à la fin des listes et des *n*-" "uplets ?" -#: faq/design.rst:729 +#: faq/design.rst:737 msgid "" "Python lets you add a trailing comma at the end of lists, tuples, and " "dictionaries::" @@ -1411,11 +1422,11 @@ msgstr "" "Python vous permet d'ajouter une virgule à la fin des listes, des *n*-uplets " "et des dictionnaires ::" -#: faq/design.rst:740 +#: faq/design.rst:748 msgid "There are several reasons to allow this." msgstr "Il y a plusieurs raisons d'accepter cela." -#: faq/design.rst:742 +#: faq/design.rst:750 msgid "" "When you have a literal value for a list, tuple, or dictionary spread across " "multiple lines, it's easier to add more elements because you don't have to " @@ -1428,7 +1439,7 @@ msgstr "" "virgule à la ligne précédente. Les lignes peuvent aussi être réorganisées " "sans créer une erreur de syntaxe." -#: faq/design.rst:747 +#: faq/design.rst:755 msgid "" "Accidentally omitting the comma can lead to errors that are hard to " "diagnose. For example::" @@ -1436,7 +1447,7 @@ msgstr "" "L'omission accidentelle de la virgule peut entraîner des erreurs difficiles " "à diagnostiquer, par exemple ::" -#: faq/design.rst:757 +#: faq/design.rst:765 msgid "" "This list looks like it has four elements, but it actually contains three: " "\"fee\", \"fiefoo\" and \"fum\". Always adding the comma avoids this source " @@ -1446,7 +1457,7 @@ msgstr "" "trois : \"*fee*\", \"*fiefoo*\" et \"*fum*\". Toujours ajouter la virgule " "permet d'éviter cette source d'erreur." -#: faq/design.rst:760 +#: faq/design.rst:768 msgid "" "Allowing the trailing comma may also make programmatic code generation " "easier." diff --git a/howto/descriptor.po b/howto/descriptor.po index 55f0792c..907073bb 100644 --- a/howto/descriptor.po +++ b/howto/descriptor.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-12-17 21:41+0100\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" @@ -955,8 +955,8 @@ msgstr "" #: howto/descriptor.rst:1133 #, fuzzy -msgid "Static methods" -msgstr "méthode statique" +msgid "Other kinds of methods" +msgstr "Fonctions et méthodes" #: howto/descriptor.rst:1135 msgid "" @@ -1027,7 +1027,12 @@ msgstr "f(type(obj), \\*args)" msgid "f(cls, \\*args)" msgstr "f(cls, \\*args)" -#: howto/descriptor.rst:1156 +#: howto/descriptor.rst:1158 +#, fuzzy +msgid "Static methods" +msgstr "méthode statique" + +#: howto/descriptor.rst:1160 msgid "" "Static methods return the underlying function without changes. Calling " "either ``c.f`` or ``C.f`` is the equivalent of a direct lookup into ``object." @@ -1041,7 +1046,7 @@ msgstr "" "__getattribute__(C, \"f\")``. Par conséquent, la fonction devient accessible " "de manière identique à partir d'un objet ou d'une classe." -#: howto/descriptor.rst:1162 +#: howto/descriptor.rst:1166 msgid "" "Good candidates for static methods are methods that do not reference the " "``self`` variable." @@ -1049,7 +1054,7 @@ msgstr "" "Les bonnes candidates pour être méthode statique sont des méthodes qui ne " "font pas référence à la variable ``self``." -#: howto/descriptor.rst:1165 +#: howto/descriptor.rst:1169 msgid "" "For instance, a statistics package may include a container class for " "experimental data. The class provides normal methods for computing the " @@ -1071,7 +1076,7 @@ msgstr "" "appelée à partir d'un objet ou de la classe : ``s.erf(1.5) --> .9332``` ou " "``Sample.erf(1.5) --> .9332``." -#: howto/descriptor.rst:1174 +#: howto/descriptor.rst:1178 #, fuzzy msgid "" "Since static methods return the underlying function with no changes, the " @@ -1080,7 +1085,7 @@ msgstr "" "Depuis que les méthodes statiques renvoient la fonction sous-jacente sans " "changement, les exemples d’appels ne sont pas excitants ::" -#: howto/descriptor.rst:1191 +#: howto/descriptor.rst:1195 #, fuzzy msgid "" "Using the non-data descriptor protocol, a pure Python version of :func:" @@ -1089,12 +1094,12 @@ msgstr "" "En utilisant le protocole de descripteur *non-data*, une version Python pure " "de :func:`staticmethod` ressemblerait à ceci ::" -#: howto/descriptor.rst:1207 +#: howto/descriptor.rst:1211 #, fuzzy msgid "Class methods" msgstr "méthode de classe" -#: howto/descriptor.rst:1209 +#: howto/descriptor.rst:1213 #, fuzzy msgid "" "Unlike static methods, class methods prepend the class reference to the " @@ -1105,7 +1110,7 @@ msgstr "" "référence de classe dans la liste d'arguments avant d'appeler la fonction. " "Ce format est le même que l'appelant soit un objet ou une classe ::" -#: howto/descriptor.rst:1227 +#: howto/descriptor.rst:1231 #, fuzzy msgid "" "This behavior is useful whenever the method only needs to have a class " @@ -1121,14 +1126,14 @@ msgstr "" "nouveau dictionnaire à partir d'une liste de clés. L'équivalent Python pur " "est ::" -#: howto/descriptor.rst:1244 +#: howto/descriptor.rst:1248 #, fuzzy msgid "Now a new dictionary of unique keys can be constructed like this:" msgstr "" "Maintenant un nouveau dictionnaire de clés uniques peut être construit comme " "ceci ::" -#: howto/descriptor.rst:1254 +#: howto/descriptor.rst:1258 #, fuzzy msgid "" "Using the non-data descriptor protocol, a pure Python version of :func:" @@ -1137,37 +1142,37 @@ msgstr "" "En utilisant le protocole de descripteur *non-data*, une version Python pure " "de :func:`classmethod` ressemblerait à ceci ::" -#: howto/descriptor.rst:1292 +#: howto/descriptor.rst:1296 msgid "" "The code path for ``hasattr(obj, '__get__')`` was added in Python 3.9 and " "makes it possible for :func:`classmethod` to support chained decorators. For " "example, a classmethod and property could be chained together:" msgstr "" -#: howto/descriptor.rst:1311 +#: howto/descriptor.rst:1315 msgid "Member objects and __slots__" msgstr "" -#: howto/descriptor.rst:1313 +#: howto/descriptor.rst:1317 msgid "" "When a class defines ``__slots__``, it replaces instance dictionaries with a " "fixed-length array of slot values. From a user point of view that has " "several effects:" msgstr "" -#: howto/descriptor.rst:1317 +#: howto/descriptor.rst:1321 msgid "" "1. Provides immediate detection of bugs due to misspelled attribute " "assignments. Only attribute names specified in ``__slots__`` are allowed:" msgstr "" -#: howto/descriptor.rst:1333 +#: howto/descriptor.rst:1337 msgid "" "2. Helps create immutable objects where descriptors manage access to private " "attributes stored in ``__slots__``:" msgstr "" -#: howto/descriptor.rst:1368 +#: howto/descriptor.rst:1372 msgid "" "3. Saves memory. On a 64-bit Linux build, an instance with two attributes " "takes 48 bytes with ``__slots__`` and 152 bytes without. This `flyweight " @@ -1175,13 +1180,13 @@ msgid "" "only matters when a large number of instances are going to be created." msgstr "" -#: howto/descriptor.rst:1373 +#: howto/descriptor.rst:1377 msgid "" "4. Blocks tools like :func:`functools.cached_property` which require an " "instance dictionary to function correctly:" msgstr "" -#: howto/descriptor.rst:1395 +#: howto/descriptor.rst:1399 msgid "" "It is not possible to create an exact drop-in pure Python version of " "``__slots__`` because it requires direct access to C structures and control " @@ -1191,37 +1196,37 @@ msgid "" "managed by member descriptors:" msgstr "" -#: howto/descriptor.rst:1438 +#: howto/descriptor.rst:1442 msgid "" "The :meth:`type.__new__` method takes care of adding member objects to class " "variables:" msgstr "" -#: howto/descriptor.rst:1454 +#: howto/descriptor.rst:1458 msgid "" "The :meth:`object.__new__` method takes care of creating instances that have " "slots instead of an instance dictionary. Here is a rough simulation in pure " "Python:" msgstr "" -#: howto/descriptor.rst:1489 +#: howto/descriptor.rst:1493 msgid "" "To use the simulation in a real class, just inherit from :class:`Object` and " "set the :term:`metaclass` to :class:`Type`:" msgstr "" -#: howto/descriptor.rst:1503 +#: howto/descriptor.rst:1507 msgid "" "At this point, the metaclass has loaded member objects for *x* and *y*::" msgstr "" -#: howto/descriptor.rst:1524 +#: howto/descriptor.rst:1528 msgid "" "When instances are created, they have a ``slot_values`` list where the " "attributes are stored:" msgstr "" -#: howto/descriptor.rst:1536 +#: howto/descriptor.rst:1540 msgid "Misspelled or unassigned attributes will raise an exception:" msgstr "" diff --git a/library/ast.po b/library/ast.po index 8f336305..49ec4d1f 100644 --- a/library/ast.po +++ b/library/ast.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-09-11 07:42+0200\n" "Last-Translator: Julien VITARD \n" "Language-Team: FRENCH \n" @@ -215,11 +215,18 @@ msgid "" "meantime, instantiating them will return an instance of a different class." msgstr "" -#: library/ast.rst:144 +#: library/ast.rst:143 +msgid "" +"The descriptions of the specific node classes displayed here were initially " +"adapted from the fantastic `Green Tree Snakes `__ project and all its contributors." +msgstr "" + +#: library/ast.rst:149 msgid "Literals" msgstr "" -#: library/ast.rst:148 +#: library/ast.rst:153 msgid "" "A constant value. The ``value`` attribute of the ``Constant`` literal " "contains the Python object it represents. The values represented can be " @@ -228,106 +235,106 @@ msgid "" "constant." msgstr "" -#: library/ast.rst:162 +#: library/ast.rst:167 msgid "" "Node representing a single formatting field in an f-string. If the string " "contains a single formatting field and nothing else the node can be isolated " "otherwise it appears in :class:`JoinedStr`." msgstr "" -#: library/ast.rst:166 +#: library/ast.rst:171 msgid "" "``value`` is any expression node (such as a literal, a variable, or a " "function call)." msgstr "" -#: library/ast.rst:168 +#: library/ast.rst:173 msgid "``conversion`` is an integer:" msgstr "" -#: library/ast.rst:170 +#: library/ast.rst:175 msgid "-1: no formatting" msgstr "" -#: library/ast.rst:171 +#: library/ast.rst:176 msgid "115: ``!s`` string formatting" msgstr "" -#: library/ast.rst:172 +#: library/ast.rst:177 msgid "114: ``!r`` repr formatting" msgstr "" -#: library/ast.rst:173 +#: library/ast.rst:178 msgid "97: ``!a`` ascii formatting" msgstr "" -#: library/ast.rst:175 +#: library/ast.rst:180 msgid "" "``format_spec`` is a :class:`JoinedStr` node representing the formatting of " "the value, or ``None`` if no format was specified. Both ``conversion`` and " "``format_spec`` can be set at the same time." msgstr "" -#: library/ast.rst:182 +#: library/ast.rst:187 msgid "" "An f-string, comprising a series of :class:`FormattedValue` and :class:" "`Constant` nodes." msgstr "" -#: library/ast.rst:211 +#: library/ast.rst:216 msgid "" "A list or tuple. ``elts`` holds a list of nodes representing the elements. " "``ctx`` is :class:`Store` if the container is an assignment target (i.e. " "``(x,y)=something``), and :class:`Load` otherwise." msgstr "" -#: library/ast.rst:237 +#: library/ast.rst:242 msgid "A set. ``elts`` holds a list of nodes representing the set's elements." msgstr "" -#: library/ast.rst:252 +#: library/ast.rst:257 msgid "" "A dictionary. ``keys`` and ``values`` hold lists of nodes representing the " "keys and the values respectively, in matching order (what would be returned " "when calling :code:`dictionary.keys()` and :code:`dictionary.values()`)." msgstr "" -#: library/ast.rst:256 +#: library/ast.rst:261 msgid "" "When doing dictionary unpacking using dictionary literals the expression to " "be expanded goes in the ``values`` list, with a ``None`` at the " "corresponding position in ``keys``." msgstr "" -#: library/ast.rst:274 +#: library/ast.rst:279 msgid "Variables" msgstr "" -#: library/ast.rst:278 +#: library/ast.rst:283 msgid "" "A variable name. ``id`` holds the name as a string, and ``ctx`` is one of " "the following types." msgstr "" -#: library/ast.rst:286 +#: library/ast.rst:291 msgid "" "Variable references can be used to load the value of a variable, to assign a " "new value to it, or to delete it. Variable references are given a context to " "distinguish these cases." msgstr "" -#: library/ast.rst:319 +#: library/ast.rst:324 msgid "" "A ``*var`` variable reference. ``value`` holds the variable, typically a :" "class:`Name` node. This type must be used when building a :class:`Call` node " "with ``*args``." msgstr "" -#: library/ast.rst:342 +#: library/ast.rst:347 msgid "Expressions" msgstr "" -#: library/ast.rst:346 +#: library/ast.rst:351 msgid "" "When an expression, such as a function call, appears as a statement by " "itself with its return value not used or stored, it is wrapped in this " @@ -336,29 +343,29 @@ msgid "" "`YieldFrom` node." msgstr "" -#: library/ast.rst:365 +#: library/ast.rst:370 msgid "" "A unary operation. ``op`` is the operator, and ``operand`` any expression " "node." msgstr "" -#: library/ast.rst:374 +#: library/ast.rst:379 msgid "" "Unary operator tokens. :class:`Not` is the ``not`` keyword, :class:`Invert` " "is the ``~`` operator." msgstr "" -#: library/ast.rst:388 +#: library/ast.rst:393 msgid "" "A binary operation (like addition or division). ``op`` is the operator, and " "``left`` and ``right`` are any expression nodes." msgstr "" -#: library/ast.rst:415 +#: library/ast.rst:420 msgid "Binary operator tokens." msgstr "" -#: library/ast.rst:420 +#: library/ast.rst:425 msgid "" "A boolean operation, 'or' or 'and'. ``op`` is :class:`Or` or :class:`And`. " "``values`` are the values involved. Consecutive operations with the same " @@ -366,60 +373,60 @@ msgid "" "values." msgstr "" -#: library/ast.rst:425 +#: library/ast.rst:430 msgid "This doesn't include ``not``, which is a :class:`UnaryOp`." msgstr "" -#: library/ast.rst:441 +#: library/ast.rst:446 msgid "Boolean operator tokens." msgstr "" -#: library/ast.rst:446 +#: library/ast.rst:451 msgid "" "A comparison of two or more values. ``left`` is the first value in the " "comparison, ``ops`` the list of operators, and ``comparators`` the list of " "values after the first element in the comparison." msgstr "" -#: library/ast.rst:475 +#: library/ast.rst:480 msgid "Comparison operator tokens." msgstr "" -#: library/ast.rst:480 +#: library/ast.rst:485 msgid "" "A function call. ``func`` is the function, which will often be a :class:" "`Name` or :class:`Attribute` object. Of the arguments:" msgstr "" -#: library/ast.rst:483 +#: library/ast.rst:488 msgid "``args`` holds a list of the arguments passed by position." msgstr "" -#: library/ast.rst:484 +#: library/ast.rst:489 msgid "" "``keywords`` holds a list of :class:`keyword` objects representing arguments " "passed by keyword." msgstr "" -#: library/ast.rst:487 +#: library/ast.rst:492 msgid "" "When creating a ``Call`` node, ``args`` and ``keywords`` are required, but " "they can be empty lists. ``starargs`` and ``kwargs`` are optional." msgstr "" -#: library/ast.rst:511 +#: library/ast.rst:516 msgid "" "A keyword argument to a function call or class definition. ``arg`` is a raw " "string of the parameter name, ``value`` is a node to pass in." msgstr "" -#: library/ast.rst:517 +#: library/ast.rst:522 msgid "" "An expression such as ``a if b else c``. Each field holds a single node, so " "in the following example, all three are :class:`Name` nodes." msgstr "" -#: library/ast.rst:532 +#: library/ast.rst:537 msgid "" "Attribute access, e.g. ``d.keys``. ``value`` is a node, typically a :class:" "`Name`. ``attr`` is a bare string giving the name of the attribute, and " @@ -427,7 +434,7 @@ msgid "" "the attribute is acted on." msgstr "" -#: library/ast.rst:549 +#: library/ast.rst:554 msgid "" "A named expression. This AST node is produced by the assignment expressions " "operator (also known as the walrus operator). As opposed to the :class:" @@ -435,11 +442,11 @@ msgid "" "case both ``target`` and ``value`` must be single nodes." msgstr "" -#: library/ast.rst:564 +#: library/ast.rst:569 msgid "Subscripting" msgstr "" -#: library/ast.rst:568 +#: library/ast.rst:573 msgid "" "A subscript, such as ``l[1]``. ``value`` is the subscripted object (usually " "sequence or mapping). ``slice`` is an index, slice or key. It can be a :" @@ -447,29 +454,29 @@ msgid "" "`Store` or :class:`Del` according to the action performed with the subscript." msgstr "" -#: library/ast.rst:592 +#: library/ast.rst:597 msgid "" "Regular slicing (on the form ``lower:upper`` or ``lower:upper:step``). Can " "occur only inside the *slice* field of :class:`Subscript`, either directly " "or as an element of :class:`Tuple`." msgstr "" -#: library/ast.rst:609 +#: library/ast.rst:614 msgid "Comprehensions" msgstr "" -#: library/ast.rst:616 +#: library/ast.rst:621 msgid "" "List and set comprehensions, generator expressions, and dictionary " "comprehensions. ``elt`` (or ``key`` and ``value``) is a single node " "representing the part that will be evaluated for each item." msgstr "" -#: library/ast.rst:620 +#: library/ast.rst:625 msgid "``generators`` is a list of :class:`comprehension` nodes." msgstr "" -#: library/ast.rst:662 +#: library/ast.rst:667 msgid "" "One ``for`` clause in a comprehension. ``target`` is the reference to use " "for each element - typically a :class:`Name` or :class:`Tuple` node. " @@ -477,35 +484,35 @@ msgid "" "expressions: each ``for`` clause can have multiple ``ifs``." msgstr "" -#: library/ast.rst:667 +#: library/ast.rst:672 msgid "" "``is_async`` indicates a comprehension is asynchronous (using an ``async " "for`` instead of ``for``). The value is an integer (0 or 1)." msgstr "" -#: library/ast.rst:733 +#: library/ast.rst:738 msgid "Statements" msgstr "" -#: library/ast.rst:737 +#: library/ast.rst:742 msgid "" "An assignment. ``targets`` is a list of nodes, and ``value`` is a single " "node." msgstr "" -#: library/ast.rst:739 +#: library/ast.rst:744 msgid "" "Multiple nodes in ``targets`` represents assigning the same value to each. " "Unpacking is represented by putting a :class:`Tuple` or :class:`List` within " "``targets``." msgstr "" -#: library/ast.rst:1032 library/ast.rst:1258 +#: library/ast.rst:1037 library/ast.rst:1263 msgid "" "``type_comment`` is an optional string with the type annotation as a comment." msgstr "" -#: library/ast.rst:775 +#: library/ast.rst:780 msgid "" "An assignment with a type annotation. ``target`` is a single node and can be " "a :class:`Name`, a :class:`Attribute` or a :class:`Subscript`. " @@ -515,7 +522,7 @@ msgid "" "appear in between parenthesis and are hence pure names and not expressions." msgstr "" -#: library/ast.rst:830 +#: library/ast.rst:835 msgid "" "Augmented assignment, such as ``a += 1``. In the following example, " "``target`` is a :class:`Name` node for ``x`` (with the :class:`Store` " @@ -523,50 +530,50 @@ msgid "" "value for 1." msgstr "" -#: library/ast.rst:835 +#: library/ast.rst:840 msgid "" "The ``target`` attribute connot be of class :class:`Tuple` or :class:`List`, " "unlike the targets of :class:`Assign`." msgstr "" -#: library/ast.rst:852 +#: library/ast.rst:857 msgid "" "A ``raise`` statement. ``exc`` is the exception object to be raised, " "normally a :class:`Call` or :class:`Name`, or ``None`` for a standalone " "``raise``. ``cause`` is the optional part for ``y`` in ``raise x from y``." msgstr "" -#: library/ast.rst:869 +#: library/ast.rst:874 msgid "" "An assertion. ``test`` holds the condition, such as a :class:`Compare` node. " "``msg`` holds the failure message." msgstr "" -#: library/ast.rst:885 +#: library/ast.rst:890 msgid "" "Represents a ``del`` statement. ``targets`` is a list of nodes, such as :" "class:`Name`, :class:`Attribute` or :class:`Subscript` nodes." msgstr "" -#: library/ast.rst:903 +#: library/ast.rst:908 msgid "A ``pass`` statement." msgstr "" -#: library/ast.rst:914 +#: library/ast.rst:919 msgid "" "Other statements which are only applicable inside functions or loops are " "described in other sections." msgstr "" -#: library/ast.rst:918 +#: library/ast.rst:923 msgid "Imports" msgstr "" -#: library/ast.rst:922 +#: library/ast.rst:927 msgid "An import statement. ``names`` is a list of :class:`alias` nodes." msgstr "" -#: library/ast.rst:939 +#: library/ast.rst:944 msgid "" "Represents ``from x import y``. ``module`` is a raw string of the 'from' " "name, without any leading dots, or ``None`` for statements such as ``from . " @@ -574,36 +581,36 @@ msgid "" "import (0 means absolute import)." msgstr "" -#: library/ast.rst:961 +#: library/ast.rst:966 msgid "" "Both parameters are raw strings of the names. ``asname`` can be ``None`` if " "the regular name is to be used." msgstr "" -#: library/ast.rst:978 +#: library/ast.rst:983 msgid "Control flow" msgstr "" -#: library/ast.rst:981 +#: library/ast.rst:986 msgid "" "Optional clauses such as ``else`` are stored as an empty list if they're not " "present." msgstr "" -#: library/ast.rst:986 +#: library/ast.rst:991 msgid "" "An ``if`` statement. ``test`` holds a single node, such as a :class:" "`Compare` node. ``body`` and ``orelse`` each hold a list of nodes." msgstr "" -#: library/ast.rst:989 +#: library/ast.rst:994 msgid "" "``elif`` clauses don't have a special representation in the AST, but rather " "appear as extra :class:`If` nodes within the ``orelse`` section of the " "previous one." msgstr "" -#: library/ast.rst:1024 +#: library/ast.rst:1029 msgid "" "A ``for`` loop. ``target`` holds the variable(s) the loop assigns to, as a " "single :class:`Name`, :class:`Tuple` or :class:`List` node. ``iter`` holds " @@ -612,23 +619,23 @@ msgid "" "loop finishes normally, rather than via a ``break`` statement." msgstr "" -#: library/ast.rst:1058 +#: library/ast.rst:1063 msgid "" "A ``while`` loop. ``test`` holds the condition, such as a :class:`Compare` " "node." msgstr "" -#: library/ast.rst:1085 +#: library/ast.rst:1090 msgid "The ``break`` and ``continue`` statements." msgstr "" -#: library/ast.rst:1120 +#: library/ast.rst:1125 msgid "" "``try`` blocks. All attributes are list of nodes to execute, except for " "``handlers``, which is a list of :class:`ExceptHandler` nodes." msgstr "" -#: library/ast.rst:1166 +#: library/ast.rst:1171 msgid "" "A single ``except`` clause. ``type`` is the exception type it will match, " "typically a :class:`Name` node (or ``None`` for a catch-all ``except:`` " @@ -636,14 +643,14 @@ msgid "" "``None`` if the clause doesn't have ``as foo``. ``body`` is a list of nodes." msgstr "" -#: library/ast.rst:1200 +#: library/ast.rst:1205 msgid "" "A ``with`` block. ``items`` is a list of :class:`withitem` nodes " "representing the context managers, and ``body`` is the indented block inside " "the context." msgstr "" -#: library/ast.rst:1210 +#: library/ast.rst:1215 msgid "" "A single context manager in a ``with`` block. ``context_expr`` is the " "context manager, often a :class:`Call` node. ``optional_vars`` is a :class:" @@ -651,158 +658,158 @@ msgid "" "if that isn't used." msgstr "" -#: library/ast.rst:1243 +#: library/ast.rst:1248 msgid "Function and class definitions" msgstr "" -#: library/ast.rst:1247 +#: library/ast.rst:1252 msgid "A function definition." msgstr "" -#: library/ast.rst:1249 +#: library/ast.rst:1254 msgid "``name`` is a raw string of the function name." msgstr "" -#: library/ast.rst:1250 +#: library/ast.rst:1255 msgid "``args`` is a :class:`arguments` node." msgstr "" -#: library/ast.rst:1251 +#: library/ast.rst:1256 msgid "``body`` is the list of nodes inside the function." msgstr "" -#: library/ast.rst:1252 +#: library/ast.rst:1257 msgid "" "``decorator_list`` is the list of decorators to be applied, stored outermost " "first (i.e. the first in the list will be applied last)." msgstr "" -#: library/ast.rst:1254 +#: library/ast.rst:1259 msgid "``returns`` is the return annotation." msgstr "" -#: library/ast.rst:1263 +#: library/ast.rst:1268 msgid "" "``lambda`` is a minimal function definition that can be used inside an " "expression. Unlike :class:`FunctionDef`, ``body`` holds a single node." msgstr "" -#: library/ast.rst:1287 +#: library/ast.rst:1292 msgid "The arguments for a function." msgstr "" -#: library/ast.rst:1289 +#: library/ast.rst:1294 msgid "" "``posonlyargs``, ``args`` and ``kwonlyargs`` are lists of :class:`arg` nodes." msgstr "" -#: library/ast.rst:1290 +#: library/ast.rst:1295 msgid "" "``vararg`` and ``kwarg`` are single :class:`arg` nodes, referring to the " "``*args, **kwargs`` parameters." msgstr "" -#: library/ast.rst:1292 +#: library/ast.rst:1297 msgid "" "``kw_defaults`` is a list of default values for keyword-only arguments. If " "one is ``None``, the corresponding argument is required." msgstr "" -#: library/ast.rst:1294 +#: library/ast.rst:1299 msgid "" "``defaults`` is a list of default values for arguments that can be passed " "positionally. If there are fewer defaults, they correspond to the last n " "arguments." msgstr "" -#: library/ast.rst:1301 +#: library/ast.rst:1306 msgid "" "A single argument in a list. ``arg`` is a raw string of the argument name, " "``annotation`` is its annotation, such as a :class:`Str` or :class:`Name` " "node." msgstr "" -#: library/ast.rst:1307 +#: library/ast.rst:1312 msgid "" "``type_comment`` is an optional string with the type annotation as a comment" msgstr "" -#: library/ast.rst:1351 +#: library/ast.rst:1356 msgid "A ``return`` statement." msgstr "" -#: library/ast.rst:1366 +#: library/ast.rst:1371 msgid "" "A ``yield`` or ``yield from`` expression. Because these are expressions, " "they must be wrapped in a :class:`Expr` node if the value sent back is not " "used." msgstr "" -#: library/ast.rst:1391 +#: library/ast.rst:1396 msgid "" "``global`` and ``nonlocal`` statements. ``names`` is a list of raw strings." msgstr "" -#: library/ast.rst:1418 +#: library/ast.rst:1423 msgid "A class definition." msgstr "" -#: library/ast.rst:1420 +#: library/ast.rst:1425 msgid "``name`` is a raw string for the class name" msgstr "" -#: library/ast.rst:1421 +#: library/ast.rst:1426 msgid "``bases`` is a list of nodes for explicitly specified base classes." msgstr "" -#: library/ast.rst:1422 +#: library/ast.rst:1427 msgid "" "``keywords`` is a list of :class:`keyword` nodes, principally for " "'metaclass'. Other keywords will be passed to the metaclass, as per " "`PEP-3115 `_." msgstr "" -#: library/ast.rst:1425 +#: library/ast.rst:1430 msgid "" "``starargs`` and ``kwargs`` are each a single node, as in a function call. " "starargs will be expanded to join the list of base classes, and kwargs will " "be passed to the metaclass." msgstr "" -#: library/ast.rst:1428 +#: library/ast.rst:1433 msgid "" "``body`` is a list of nodes representing the code within the class " "definition." msgstr "" -#: library/ast.rst:1430 +#: library/ast.rst:1435 msgid "``decorator_list`` is a list of nodes, as in :class:`FunctionDef`." msgstr "" -#: library/ast.rst:1459 +#: library/ast.rst:1464 msgid "Async and await" msgstr "" -#: library/ast.rst:1463 +#: library/ast.rst:1468 msgid "" "An ``async def`` function definition. Has the same fields as :class:" "`FunctionDef`." msgstr "" -#: library/ast.rst:1469 +#: library/ast.rst:1474 msgid "" "An ``await`` expression. ``value`` is what it waits for. Only valid in the " "body of an :class:`AsyncFunctionDef`." msgstr "" -#: library/ast.rst:1502 +#: library/ast.rst:1507 msgid "" "``async for`` loops and ``async with`` context managers. They have the same " "fields as :class:`For` and :class:`With`, respectively. Only valid in the " "body of an :class:`AsyncFunctionDef`." msgstr "" -#: library/ast.rst:1507 +#: library/ast.rst:1512 msgid "" "When a string is parsed by :func:`ast.parse`, operator nodes (subclasses of :" "class:`ast.operator`, :class:`ast.unaryop`, :class:`ast.cmpop`, :class:`ast." @@ -811,11 +818,11 @@ msgid "" "same value (e.g. :class:`ast.Add`)." msgstr "" -#: library/ast.rst:1515 +#: library/ast.rst:1520 msgid ":mod:`ast` Helpers" msgstr "Outils du module :mod:`ast`" -#: library/ast.rst:1517 +#: library/ast.rst:1522 msgid "" "Apart from the node classes, the :mod:`ast` module defines these utility " "functions and classes for traversing abstract syntax trees:" @@ -823,7 +830,7 @@ msgstr "" "À part la classe nœud, le module :mod:`ast` définit ces fonctions et classes " "utilitaires pour traverser les arbres syntaxiques abstraits :" -#: library/ast.rst:1522 +#: library/ast.rst:1527 msgid "" "Parse the source into an AST node. Equivalent to ``compile(source, " "filename, mode, ast.PyCF_ONLY_AST)``." @@ -831,7 +838,7 @@ msgstr "" "Analyse le code source en un nœud AST. Équivalent à ``compile(source, " "filename, mode, ast.PyCF_ONLY_AST)``." -#: library/ast.rst:1525 +#: library/ast.rst:1530 msgid "" "If ``type_comments=True`` is given, the parser is modified to check and " "return type comments as specified by :pep:`484` and :pep:`526`. This is " @@ -844,14 +851,14 @@ msgid "" "empty list)." msgstr "" -#: library/ast.rst:1535 +#: library/ast.rst:1540 msgid "" "In addition, if ``mode`` is ``'func_type'``, the input syntax is modified to " "correspond to :pep:`484` \"signature type comments\", e.g. ``(str, int) -> " "List[str]``." msgstr "" -#: library/ast.rst:1539 +#: library/ast.rst:1544 msgid "" "Also, setting ``feature_version`` to a tuple ``(major, minor)`` will attempt " "to parse using that Python version's grammar. Currently ``major`` must equal " @@ -860,7 +867,7 @@ msgid "" "version is ``(3, 4)``; the highest is ``sys.version_info[0:2]``." msgstr "" -#: library/ast.rst:1586 +#: library/ast.rst:1591 msgid "" "It is possible to crash the Python interpreter with a sufficiently large/" "complex string due to stack depth limitations in Python's AST compiler." @@ -869,31 +876,31 @@ msgstr "" "suffisamment grandes ou complexes lors de la compilation d'un objet AST dû à " "la limitation de la profondeur de la pile d'appels." -#: library/ast.rst:1551 +#: library/ast.rst:1556 msgid "Added ``type_comments``, ``mode='func_type'`` and ``feature_version``." msgstr "" -#: library/ast.rst:1557 +#: library/ast.rst:1562 msgid "" "Unparse an :class:`ast.AST` object and generate a string with code that " "would produce an equivalent :class:`ast.AST` object if parsed back with :" "func:`ast.parse`." msgstr "" -#: library/ast.rst:1562 +#: library/ast.rst:1567 msgid "" "The produced code string will not necessarily be equal to the original code " "that generated the :class:`ast.AST` object (without any compiler " "optimizations, such as constant tuples/frozensets)." msgstr "" -#: library/ast.rst:1567 +#: library/ast.rst:1572 msgid "" "Trying to unparse a highly complex expression would result with :exc:" "`RecursionError`." msgstr "" -#: library/ast.rst:1575 +#: library/ast.rst:1580 msgid "" "Safely evaluate an expression node or a string containing a Python literal " "or container display. The string or node provided may only consist of the " @@ -906,7 +913,7 @@ msgstr "" "Python suivants : chaînes de caractères, bytes, nombres, *n*-uplets, listes, " "dictionnaires, ensembles, booléens, et ``None``." -#: library/ast.rst:1580 +#: library/ast.rst:1585 msgid "" "This can be used for safely evaluating strings containing Python values from " "untrusted sources without the need to parse the values oneself. It is not " @@ -919,15 +926,15 @@ msgstr "" "d'évaluer des expressions complexes arbitraires, par exemple impliquant des " "opérateurs ou de l'indexation." -#: library/ast.rst:1590 +#: library/ast.rst:1595 msgid "Now allows bytes and set literals." msgstr "Accepte maintenant les littéraux suivants *bytes* et *sets*." -#: library/ast.rst:1593 +#: library/ast.rst:1598 msgid "Now supports creating empty sets with ``'set()'``." msgstr "" -#: library/ast.rst:1599 +#: library/ast.rst:1604 msgid "" "Return the docstring of the given *node* (which must be a :class:" "`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`, or :class:" @@ -940,24 +947,24 @@ msgstr "" "cette fonction nettoie l'indentation de la *docstring* avec :func:`inspect." "cleandoc`." -#: library/ast.rst:1605 +#: library/ast.rst:1610 msgid ":class:`AsyncFunctionDef` is now supported." msgstr ":class:`AsyncFunctionDef` est maintenant gérée" -#: library/ast.rst:1611 +#: library/ast.rst:1616 msgid "" "Get source code segment of the *source* that generated *node*. If some " "location information (:attr:`lineno`, :attr:`end_lineno`, :attr:" "`col_offset`, or :attr:`end_col_offset`) is missing, return ``None``." msgstr "" -#: library/ast.rst:1615 +#: library/ast.rst:1620 msgid "" "If *padded* is ``True``, the first line of a multi-line statement will be " "padded with spaces to match its original position." msgstr "" -#: library/ast.rst:1623 +#: library/ast.rst:1628 msgid "" "When you compile a node tree with :func:`compile`, the compiler expects :" "attr:`lineno` and :attr:`col_offset` attributes for every node that supports " @@ -972,7 +979,7 @@ msgstr "" "ils ne sont pas déjà définis, en les définissant comme les valeurs du nœud " "parent. Elle fonctionne récursivement en démarrant de *node*." -#: library/ast.rst:1632 +#: library/ast.rst:1637 #, fuzzy msgid "" "Increment the line number and end line number of each node in the tree " @@ -983,7 +990,7 @@ msgstr "" "commençant par le nœud *node*. C'est utile pour \"déplacer du code\" à un " "endroit différent dans un fichier." -#: library/ast.rst:1639 +#: library/ast.rst:1644 #, fuzzy msgid "" "Copy source location (:attr:`lineno`, :attr:`col_offset`, :attr:" @@ -994,7 +1001,7 @@ msgstr "" "*old_node* vers le nouveau nœud *new_node* si possible, et renvoie " "*new_node*." -#: library/ast.rst:1646 +#: library/ast.rst:1651 msgid "" "Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` " "that is present on *node*." @@ -1002,7 +1009,7 @@ msgstr "" "Produit un *n*-uplet de ``(fieldname, value)`` pour chaque champ de ``node." "_fields`` qui est présent dans *node*." -#: library/ast.rst:1652 +#: library/ast.rst:1657 msgid "" "Yield all direct child nodes of *node*, that is, all fields that are nodes " "and all items of fields that are lists of nodes." @@ -1011,7 +1018,7 @@ msgstr "" "champs qui sont des nœuds et tous les éléments des champs qui sont des " "listes de nœuds." -#: library/ast.rst:1658 +#: library/ast.rst:1663 msgid "" "Recursively yield all descendant nodes in the tree starting at *node* " "(including *node* itself), in no specified order. This is useful if you " @@ -1022,7 +1029,7 @@ msgstr "" "lorsque l'on souhaite modifier les nœuds sur place sans prêter attention au " "contexte." -#: library/ast.rst:1665 +#: library/ast.rst:1670 msgid "" "A node visitor base class that walks the abstract syntax tree and calls a " "visitor function for every node found. This function may return a value " @@ -1033,7 +1040,7 @@ msgstr "" "Cette fonction peut renvoyer une valeur qui est transmise par la méthode :" "meth:`visit`." -#: library/ast.rst:1669 +#: library/ast.rst:1674 msgid "" "This class is meant to be subclassed, with the subclass adding visitor " "methods." @@ -1041,7 +1048,7 @@ msgstr "" "Cette classe est faite pour être dérivée, en ajoutant des méthodes de visite " "à la sous-classe." -#: library/ast.rst:1674 +#: library/ast.rst:1679 msgid "" "Visit a node. The default implementation calls the method called :samp:" "`self.visit_{classname}` where *classname* is the name of the node class, " @@ -1051,12 +1058,12 @@ msgstr "" "visit_{classname}` où *classname* représente le nom de la classe du nœud, " "ou :meth:`generic_visit` si cette méthode n'existe pas." -#: library/ast.rst:1680 +#: library/ast.rst:1685 msgid "This visitor calls :meth:`visit` on all children of the node." msgstr "" "Le visiteur appelle la méthode :meth:`visit` de tous les enfants du nœud." -#: library/ast.rst:1682 +#: library/ast.rst:1687 msgid "" "Note that child nodes of nodes that have a custom visitor method won't be " "visited unless the visitor calls :meth:`generic_visit` or visits them itself." @@ -1065,7 +1072,7 @@ msgstr "" "seront pas visités à moins que le visiteur n'appelle la méthode :meth:" "`generic_visit` ou ne les visite lui-même." -#: library/ast.rst:1686 +#: library/ast.rst:1691 msgid "" "Don't use the :class:`NodeVisitor` if you want to apply changes to nodes " "during traversal. For this a special visitor exists (:class:" @@ -1075,7 +1082,7 @@ msgstr "" "changements sur les nœuds lors du parcours. Pour cela, un visiteur spécial " "existe (:class:`NodeTransformer`) qui permet les modifications." -#: library/ast.rst:1692 +#: library/ast.rst:1697 msgid "" "Methods :meth:`visit_Num`, :meth:`visit_Str`, :meth:`visit_Bytes`, :meth:" "`visit_NameConstant` and :meth:`visit_Ellipsis` are deprecated now and will " @@ -1083,7 +1090,7 @@ msgid "" "method to handle all constant nodes." msgstr "" -#: library/ast.rst:1700 +#: library/ast.rst:1705 msgid "" "A :class:`NodeVisitor` subclass that walks the abstract syntax tree and " "allows modification of nodes." @@ -1091,7 +1098,7 @@ msgstr "" "Une sous-classe :class:`NodeVisitor` qui traverse l'arbre syntaxique " "abstrait et permet les modifications des nœuds." -#: library/ast.rst:1703 +#: library/ast.rst:1708 msgid "" "The :class:`NodeTransformer` will walk the AST and use the return value of " "the visitor methods to replace or remove the old node. If the return value " @@ -1106,7 +1113,7 @@ msgstr "" "valeur de retour peut être le nœud original et dans ce cas, il n'y a pas de " "remplacement. " -#: library/ast.rst:1709 +#: library/ast.rst:1714 msgid "" "Here is an example transformer that rewrites all occurrences of name lookups " "(``foo``) to ``data['foo']``::" @@ -1114,7 +1121,7 @@ msgstr "" "Voici un exemple du *transformer* qui réécrit les occurrences du " "dictionnaire (``foo``) en ``data['foo']`` ::" -#: library/ast.rst:1721 +#: library/ast.rst:1726 msgid "" "Keep in mind that if the node you're operating on has child nodes you must " "either transform the child nodes yourself or call the :meth:`generic_visit` " @@ -1124,7 +1131,7 @@ msgstr "" "enfants, vous devez transformer également ces nœuds enfant vous-même ou " "appeler d'abord la méthode :meth:`generic_visit` sur le nœud." -#: library/ast.rst:1725 +#: library/ast.rst:1730 msgid "" "For nodes that were part of a collection of statements (that applies to all " "statement nodes), the visitor may also return a list of nodes rather than " @@ -1134,7 +1141,7 @@ msgstr "" "s'applique à tous les nœuds instruction), le visiteur peut aussi renvoyer la " "liste des nœuds plutôt qu'un seul nœud." -#: library/ast.rst:1729 +#: library/ast.rst:1734 msgid "" "If :class:`NodeTransformer` introduces new nodes (that weren't part of " "original tree) without giving them location information (such as :attr:" @@ -1142,11 +1149,11 @@ msgid "" "tree to recalculate the location information::" msgstr "" -#: library/ast.rst:1737 +#: library/ast.rst:1742 msgid "Usually you use the transformer like this::" msgstr "Utilisation typique du *transformer* ::" -#: library/ast.rst:1744 +#: library/ast.rst:1749 #, fuzzy msgid "" "Return a formatted dump of the tree in *node*. This is mainly useful for " @@ -1165,7 +1172,7 @@ msgstr "" "colonne ne sont pas récupérés par défaut. Si l'on souhaite les récupérer, " "l'option *include_attributes* peut être définie comme ``True``." -#: library/ast.rst:1752 +#: library/ast.rst:1757 msgid "" "If *indent* is a non-negative integer or string, then the tree will be " "pretty-printed with that indent level. An indent level of 0, negative, or ``" @@ -1175,81 +1182,81 @@ msgid "" "string is used to indent each level." msgstr "" -#: library/ast.rst:1759 +#: library/ast.rst:1764 msgid "Added the *indent* option." msgstr "" -#: library/ast.rst:1766 +#: library/ast.rst:1771 msgid "Compiler Flags" msgstr "" -#: library/ast.rst:1768 +#: library/ast.rst:1773 msgid "" "The following flags may be passed to :func:`compile` in order to change " "effects on the compilation of a program:" msgstr "" -#: library/ast.rst:1773 +#: library/ast.rst:1778 msgid "" "Enables support for top-level ``await``, ``async for``, ``async with`` and " "async comprehensions." msgstr "" -#: library/ast.rst:1780 +#: library/ast.rst:1785 msgid "" "Generates and returns an abstract syntax tree instead of returning a " "compiled code object." msgstr "" -#: library/ast.rst:1785 +#: library/ast.rst:1790 msgid "" "Enables support for :pep:`484` and :pep:`526` style type comments (``# type: " "``, ``# type: ignore ``)." msgstr "" -#: library/ast.rst:1794 +#: library/ast.rst:1799 msgid "Command-Line Usage" msgstr "" -#: library/ast.rst:1798 +#: library/ast.rst:1803 msgid "" "The :mod:`ast` module can be executed as a script from the command line. It " "is as simple as:" msgstr "" -#: library/ast.rst:1805 +#: library/ast.rst:1810 msgid "The following options are accepted:" msgstr "" -#: library/ast.rst:1811 +#: library/ast.rst:1816 msgid "Show the help message and exit." msgstr "" -#: library/ast.rst:1816 +#: library/ast.rst:1821 msgid "" "Specify what kind of code must be compiled, like the *mode* argument in :" "func:`parse`." msgstr "" -#: library/ast.rst:1821 +#: library/ast.rst:1826 msgid "Don't parse type comments." msgstr "" -#: library/ast.rst:1825 +#: library/ast.rst:1830 msgid "Include attributes such as line numbers and column offsets." msgstr "" -#: library/ast.rst:1830 +#: library/ast.rst:1835 msgid "Indentation of nodes in AST (number of spaces)." msgstr "" -#: library/ast.rst:1832 +#: library/ast.rst:1837 msgid "" "If :file:`infile` is specified its contents are parsed to AST and dumped to " "stdout. Otherwise, the content is read from stdin." msgstr "" -#: library/ast.rst:1838 +#: library/ast.rst:1843 msgid "" "`Green Tree Snakes `_, an external " "documentation resource, has good details on working with Python ASTs." @@ -1258,7 +1265,7 @@ msgstr "" "ressource documentaire externe, qui possède plus de détails pour travailler " "avec des ASTs Python." -#: library/ast.rst:1841 +#: library/ast.rst:1846 msgid "" "`ASTTokens `_ " "annotates Python ASTs with the positions of tokens and text in the source " @@ -1266,21 +1273,21 @@ msgid "" "transformations." msgstr "" -#: library/ast.rst:1846 +#: library/ast.rst:1851 msgid "" "`leoAst.py `_ unifies the " "token-based and parse-tree-based views of python programs by inserting two-" "way links between tokens and ast nodes." msgstr "" -#: library/ast.rst:1850 +#: library/ast.rst:1855 msgid "" "`LibCST `_ parses code as a Concrete Syntax " "Tree that looks like an ast tree and keeps all formatting details. It's " "useful for building automated refactoring (codemod) applications and linters." msgstr "" -#: library/ast.rst:1855 +#: library/ast.rst:1860 msgid "" "`Parso `_ is a Python parser that supports " "error recovery and round-trip parsing for different Python versions (in " diff --git a/library/collections.po b/library/collections.po index 9956d5dc..0b06f6e6 100644 --- a/library/collections.po +++ b/library/collections.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-09-25 19:17-0600\n" "Last-Translator: Yannick Gingras \n" "Language-Team: FRENCH \n" @@ -290,8 +290,9 @@ msgstr "" "l'écriture dans n'importe quel dictionnaire de la chaîne." #: library/collections.rst:130 +#, fuzzy msgid "" -"Django's `Context class `_ for templating is a read-only chain of mappings. It " "also features pushing and popping of contexts similar to the :meth:" "`~collections.ChainMap.new_child` method and the :attr:`~collections." diff --git a/library/concurrency.po b/library/concurrency.po index da9d74b4..739a00d3 100644 --- a/library/concurrency.po +++ b/library/concurrency.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-24 09:01+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2019-03-11 14:38+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -33,7 +33,7 @@ msgstr "" "(coopération gérée par des évènements ou multitâche préemptif). En voici un " "survol :" -#: library/concurrency.rst:26 +#: library/concurrency.rst:27 msgid "The following are support modules for some of the above services:" msgstr "" "Les modules suivants servent de fondation pour certains services cités ci-" diff --git a/library/ctypes.po b/library/ctypes.po index 93881789..374a3401 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-08-17 23:01+0200\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" @@ -1976,7 +1976,7 @@ msgstr "" "donc définir vous-même le bon attribut :attr:`restype` pour pouvoir les " "utiliser." -#: library/ctypes.rst:None +#: library/ctypes.rst:1525 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``ctypes.dlopen`` with argument " @@ -1996,7 +1996,7 @@ msgstr "" "``name``, le nom de la bibliothèque (une chaîne de caractères), lève un :ref:" "`évènement d'audit ` ``ctypes.dlopen``." -#: library/ctypes.rst:None +#: library/ctypes.rst:1531 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``ctypes.dlsym`` with arguments " @@ -2016,7 +2016,7 @@ msgstr "" "dlsym`` avec ``library`` (l'objet bibliothèque) et ``name`` (le nom du " "symbole — une chaîne de caractères ou un entier) comme arguments." -#: library/ctypes.rst:None +#: library/ctypes.rst:1537 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``ctypes.dlsym/handle`` with " @@ -2200,7 +2200,7 @@ msgstr "" "Exception levée quand un appel à la fonction externe ne peut pas convertir " "un des arguments qu'elle a reçus." -#: library/ctypes.rst:None +#: library/ctypes.rst:1628 msgid "" "Raises an :ref:`auditing event ` ``ctypes.seh_exception`` with " "argument ``code``." @@ -2221,7 +2221,7 @@ msgstr "" "permet à un point d'entrée (*hook* en anglais) d'audit de remplacer " "l'exception par une des siennes." -#: library/ctypes.rst:None +#: library/ctypes.rst:1636 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``ctypes.call_function`` with " @@ -2761,7 +2761,7 @@ msgid "" "*address* which must be an integer." msgstr "" -#: library/ctypes.rst:None +#: library/ctypes.rst:2095 msgid "" "Raises an :ref:`auditing event ` ``ctypes.cdata`` with argument " "``address``." diff --git a/library/dataclasses.po b/library/dataclasses.po index 09dd2ded..8af15d19 100644 --- a/library/dataclasses.po +++ b/library/dataclasses.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-12-24 14:53+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -239,8 +239,9 @@ msgstr "" "de :meth:`__hash__`." #: library/dataclasses.rst:139 +#, fuzzy msgid "" -"If :meth:`__hash__` is not explicit defined, or if it is set to ``None``, " +"If :meth:`__hash__` is not explicitly defined, or if it is set to ``None``, " "then :func:`dataclass` *may* add an implicit :meth:`__hash__` method. " "Although not recommended, you can force :func:`dataclass` to create a :meth:" "`__hash__` method with ``unsafe_hash=True``. This might be the case if your " diff --git a/library/ensurepip.po b/library/ensurepip.po index 62e3711f..f68d024b 100644 --- a/library/ensurepip.po +++ b/library/ensurepip.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-24 09:01+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2017-08-10 00:59+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -191,7 +191,7 @@ msgid "" "bootstrapping operation." msgstr "" -#: library/ensurepip.rst:123 +#: library/ensurepip.rst:122 msgid "" "Raises an :ref:`auditing event ` ``ensurepip.bootstrap`` with " "argument ``root``." diff --git a/library/enum.po b/library/enum.po index 1daed030..82b0d097 100644 --- a/library/enum.po +++ b/library/enum.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2019-12-11 11:26+0100\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" @@ -313,8 +313,9 @@ msgstr "" "être redéfinie ::" #: library/enum.rst:279 +#, fuzzy msgid "" -"The goal of the default :meth:`_generate_next_value_` methods is to provide " +"The goal of the default :meth:`_generate_next_value_` method is to provide " "the next :class:`int` in sequence with the last :class:`int` provided, but " "the way it does this is an implementation detail and may change." msgstr "" diff --git a/library/ftplib.po b/library/ftplib.po index 07acec73..4c992099 100644 --- a/library/ftplib.po +++ b/library/ftplib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -195,7 +195,7 @@ msgid "" "port)`` for the socket to bind to as its source address before connecting." msgstr "" -#: library/ftplib.rst:209 +#: library/ftplib.rst:208 msgid "" "Raises an :ref:`auditing event ` ``ftplib.connect`` with arguments " "``self``, ``host``, ``port``." diff --git a/library/functions.po b/library/functions.po index 7238d1ae..b3eb438d 100644 --- a/library/functions.po +++ b/library/functions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-08-30 23:21+0200\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: French \n" @@ -408,7 +408,7 @@ msgstr "" "`sys.breakpointhook`, que :func:`breakpoint` appellera automatiquement, vous " "permettant ainsi de basculer dans le débogueur de votre choix." -#: library/functions.rst:131 +#: library/functions.rst:130 msgid "" "Raises an :ref:`auditing event ` ``builtins.breakpoint`` with " "argument ``breakpointhook``." @@ -714,7 +714,7 @@ msgstr "" "Si vous voulez transformer du code Python en sa représentation AST, voyez :" "func:`ast.parse`." -#: library/functions.rst:None +#: library/functions.rst:279 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``compile`` with arguments " @@ -1081,7 +1081,7 @@ msgstr "" "peut évaluer en toute sécurité des chaînes avec des expressions ne contenant " "que des valeurs littérales." -#: library/functions.rst:None +#: library/functions.rst:532 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``exec`` with argument " @@ -1538,7 +1538,7 @@ msgstr "" "Si le module :mod:`readline` est chargé, :func:`input` l'utilisera pour " "fournir des fonctionnalités d'édition et d'historique élaborées." -#: library/functions.rst:None +#: library/functions.rst:788 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``builtins.input`` with argument " @@ -1555,7 +1555,7 @@ msgstr "" "Lève un :ref:`auditing event ` ``builtins.input`` avec l'argument " "``prompt`` avant de lire l'entrée." -#: library/functions.rst:None +#: library/functions.rst:793 #, fuzzy msgid "" "Raises an :ref:`auditing event ` ``builtins.input/result`` with " @@ -2334,7 +2334,7 @@ msgstr "" "`fileinput`, :mod:`io` (où :func:`open` est déclarée), :mod:`os`, :mod:`os." "path`, :mod:`tmpfile`, et :mod:`shutil`." -#: library/functions.rst:1238 +#: library/functions.rst:1237 msgid "" "Raises an :ref:`auditing event ` ``open`` with arguments ``file``, " "``mode``, ``flags``." diff --git a/library/gc.po b/library/gc.po index 4c87dca4..6d62e2a7 100644 --- a/library/gc.po +++ b/library/gc.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-24 09:01+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -87,37 +87,43 @@ msgstr "" msgid "New *generation* parameter." msgstr "" -#: library/gc.rst:77 +#: library/gc.rst:75 +msgid "" +"Raises an :ref:`auditing event ` ``gc.get_objects`` with argument " +"``generation``." +msgstr "" + +#: library/gc.rst:79 msgid "" "Return a list of three per-generation dictionaries containing collection " "statistics since interpreter start. The number of keys may change in the " "future, but currently each dictionary will contain the following items:" msgstr "" -#: library/gc.rst:82 +#: library/gc.rst:84 msgid "``collections`` is the number of times this generation was collected;" msgstr "" -#: library/gc.rst:84 +#: library/gc.rst:86 msgid "" "``collected`` is the total number of objects collected inside this " "generation;" msgstr "" -#: library/gc.rst:87 +#: library/gc.rst:89 msgid "" "``uncollectable`` is the total number of objects which were found to be " "uncollectable (and were therefore moved to the :data:`garbage` list) inside " "this generation." msgstr "" -#: library/gc.rst:96 +#: library/gc.rst:98 msgid "" "Set the garbage collection thresholds (the collection frequency). Setting " "*threshold0* to zero disables collection." msgstr "" -#: library/gc.rst:99 +#: library/gc.rst:101 msgid "" "The GC classifies objects into three generations depending on how many " "collection sweeps they have survived. New objects are placed in the " @@ -136,19 +142,19 @@ msgid "" "information." msgstr "" -#: library/gc.rst:116 +#: library/gc.rst:118 msgid "" "Return the current collection counts as a tuple of ``(count0, count1, " "count2)``." msgstr "" -#: library/gc.rst:122 +#: library/gc.rst:124 msgid "" "Return the current collection thresholds as a tuple of ``(threshold0, " "threshold1, threshold2)``." msgstr "" -#: library/gc.rst:128 +#: library/gc.rst:130 msgid "" "Return the list of objects that directly refer to any of objs. This function " "will only locate those containers which support garbage collection; " @@ -156,7 +162,7 @@ msgid "" "collection will not be found." msgstr "" -#: library/gc.rst:133 +#: library/gc.rst:135 msgid "" "Note that objects which have already been dereferenced, but which live in " "cycles and have not yet been collected by the garbage collector can be " @@ -164,7 +170,7 @@ msgid "" "call :func:`collect` before calling :func:`get_referrers`." msgstr "" -#: library/gc.rst:138 +#: library/gc.rst:141 msgid "" "Care must be taken when using objects returned by :func:`get_referrers` " "because some of them could still be under construction and hence in a " @@ -174,6 +180,12 @@ msgstr "" #: library/gc.rst:146 msgid "" +"Raises an :ref:`auditing event ` ``gc.get_referrers`` with " +"argument ``objs``." +msgstr "" + +#: library/gc.rst:151 +msgid "" "Return a list of objects directly referred to by any of the arguments. The " "referents returned are those objects visited by the arguments' C-level :c:" "member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all " @@ -184,7 +196,13 @@ msgid "" "object may or may not appear in the result list." msgstr "" -#: library/gc.rst:157 +#: library/gc.rst:159 +msgid "" +"Raises an :ref:`auditing event ` ``gc.get_referents`` with " +"argument ``objs``." +msgstr "" + +#: library/gc.rst:163 msgid "" "Returns ``True`` if the object is currently tracked by the garbage " "collector, ``False`` otherwise. As a general rule, instances of atomic " @@ -194,13 +212,13 @@ msgid "" "instances (e.g. dicts containing only atomic keys and values)::" msgstr "" -#: library/gc.rst:182 +#: library/gc.rst:188 msgid "" "Returns ``True`` if the given object has been finalized by the garbage " "collector, ``False`` otherwise. ::" msgstr "" -#: library/gc.rst:203 +#: library/gc.rst:209 msgid "" "Freeze all the objects tracked by gc - move them to a permanent generation " "and ignore all the future collections. This can be used before a POSIX " @@ -210,23 +228,23 @@ msgid "" "in parent process and freeze before fork and enable gc in child process." msgstr "" -#: library/gc.rst:215 +#: library/gc.rst:221 msgid "" "Unfreeze the objects in the permanent generation, put them back into the " "oldest generation." msgstr "" -#: library/gc.rst:223 +#: library/gc.rst:229 msgid "Return the number of objects in the permanent generation." msgstr "" -#: library/gc.rst:228 +#: library/gc.rst:234 msgid "" "The following variables are provided for read-only access (you can mutate " "the values but should not rebind them):" msgstr "" -#: library/gc.rst:233 +#: library/gc.rst:239 msgid "" "A list of objects which the collector found to be unreachable but could not " "be freed (uncollectable objects). Starting with Python 3.4, this list " @@ -234,13 +252,13 @@ msgid "" "types with a non-``NULL`` ``tp_del`` slot." msgstr "" -#: library/gc.rst:238 +#: library/gc.rst:244 msgid "" "If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added " "to this list rather than freed." msgstr "" -#: library/gc.rst:241 +#: library/gc.rst:247 msgid "" "If this list is non-empty at :term:`interpreter shutdown`, a :exc:" "`ResourceWarning` is emitted, which is silent by default. If :const:" @@ -248,105 +266,105 @@ msgid "" "printed." msgstr "" -#: library/gc.rst:247 +#: library/gc.rst:253 msgid "" "Following :pep:`442`, objects with a :meth:`__del__` method don't end up in :" "attr:`gc.garbage` anymore." msgstr "" -#: library/gc.rst:253 +#: library/gc.rst:259 msgid "" "A list of callbacks that will be invoked by the garbage collector before and " "after collection. The callbacks will be called with two arguments, *phase* " "and *info*." msgstr "" -#: library/gc.rst:257 +#: library/gc.rst:263 msgid "*phase* can be one of two values:" msgstr "" -#: library/gc.rst:259 +#: library/gc.rst:265 msgid "\"start\": The garbage collection is about to start." msgstr "" -#: library/gc.rst:261 +#: library/gc.rst:267 msgid "\"stop\": The garbage collection has finished." msgstr "" -#: library/gc.rst:263 +#: library/gc.rst:269 msgid "" "*info* is a dict providing more information for the callback. The following " "keys are currently defined:" msgstr "" -#: library/gc.rst:266 +#: library/gc.rst:272 msgid "\"generation\": The oldest generation being collected." msgstr "" -#: library/gc.rst:268 +#: library/gc.rst:274 msgid "" "\"collected\": When *phase* is \"stop\", the number of objects successfully " "collected." msgstr "" -#: library/gc.rst:271 +#: library/gc.rst:277 msgid "" "\"uncollectable\": When *phase* is \"stop\", the number of objects that " "could not be collected and were put in :data:`garbage`." msgstr "" -#: library/gc.rst:274 +#: library/gc.rst:280 msgid "" "Applications can add their own callbacks to this list. The primary use " "cases are:" msgstr "" -#: library/gc.rst:277 +#: library/gc.rst:283 msgid "" "Gathering statistics about garbage collection, such as how often various " "generations are collected, and how long the collection takes." msgstr "" -#: library/gc.rst:281 +#: library/gc.rst:287 msgid "" "Allowing applications to identify and clear their own uncollectable types " "when they appear in :data:`garbage`." msgstr "" -#: library/gc.rst:287 +#: library/gc.rst:293 msgid "The following constants are provided for use with :func:`set_debug`:" msgstr "" -#: library/gc.rst:292 +#: library/gc.rst:298 msgid "" "Print statistics during collection. This information can be useful when " "tuning the collection frequency." msgstr "" -#: library/gc.rst:298 +#: library/gc.rst:304 msgid "Print information on collectable objects found." msgstr "" -#: library/gc.rst:303 +#: library/gc.rst:309 msgid "" "Print information of uncollectable objects found (objects which are not " "reachable but cannot be freed by the collector). These objects will be " "added to the ``garbage`` list." msgstr "" -#: library/gc.rst:307 +#: library/gc.rst:313 msgid "" "Also print the contents of the :data:`garbage` list at :term:`interpreter " "shutdown`, if it isn't empty." msgstr "" -#: library/gc.rst:313 +#: library/gc.rst:319 msgid "" "When set, all unreachable objects found will be appended to *garbage* rather " "than being freed. This can be useful for debugging a leaking program." msgstr "" -#: library/gc.rst:319 +#: library/gc.rst:325 msgid "" "The debugging flags necessary for the collector to print information about a " "leaking program (equal to ``DEBUG_COLLECTABLE | DEBUG_UNCOLLECTABLE | " diff --git a/library/imaplib.po b/library/imaplib.po index 31fcaa42..c2524a75 100644 --- a/library/imaplib.po +++ b/library/imaplib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -414,7 +414,7 @@ msgid "" "method." msgstr "" -#: library/imaplib.rst:380 +#: library/imaplib.rst:379 msgid "" "Raises an :ref:`auditing event ` ``imaplib.open`` with arguments " "``self``, ``host``, ``port``." diff --git a/library/io.po b/library/io.po index ff784347..60ba1e24 100644 --- a/library/io.po +++ b/library/io.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-07-03 11:13+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -157,7 +157,7 @@ msgstr "" msgid "This is an alias for the builtin :func:`open` function." msgstr "" -#: library/io.rst:None +#: library/io.rst:123 msgid "" "Raises an :ref:`auditing event ` ``open`` with arguments ``path``, " "``mode``, ``flags``." diff --git a/library/json.po b/library/json.po index e2627e35..f0b4fe7a 100644 --- a/library/json.po +++ b/library/json.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-08-10 16:10+0200\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" @@ -152,7 +152,7 @@ msgstr "" "objets :class:`bytes`. ``fp.write()`` doit ainsi prendre en charge un objet :" "class:`str` en entrée." -#: library/json.rst:430 +#: library/json.rst:429 msgid "" "If *ensure_ascii* is true (the default), the output is guaranteed to have " "all incoming non-ASCII characters escaped. If *ensure_ascii* is false, " @@ -186,7 +186,7 @@ msgstr "" "JSON. Si *allow_nan* vaut ``True``, leurs équivalents JavaScript (``NaN``, " "``Infinity``, ``-Infinity``) sont utilisés." -#: library/json.rst:449 +#: library/json.rst:448 msgid "" "If *indent* is a non-negative integer or string, then JSON array elements " "and object members will be pretty-printed with that indent level. An indent " @@ -204,11 +204,11 @@ msgstr "" "(telle que ``\"\\t\"``), cette chaîne est utilisée pour indenter à chaque " "niveau." -#: library/json.rst:456 +#: library/json.rst:455 msgid "Allow strings for *indent* in addition to integers." msgstr "Autorise les chaînes en plus des nombres entiers pour *indent*." -#: library/json.rst:459 +#: library/json.rst:458 msgid "" "If specified, *separators* should be an ``(item_separator, key_separator)`` " "tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and ``(',', " @@ -221,11 +221,11 @@ msgstr "" "la plus compacte possible, passez ``(',', ':')`` pour éliminer les " "espacements." -#: library/json.rst:464 +#: library/json.rst:463 msgid "Use ``(',', ': ')`` as default if *indent* is not ``None``." msgstr "Utilise ``(',', ': ')`` par défaut si *indent* n'est pas ``None``." -#: library/json.rst:467 +#: library/json.rst:466 msgid "" "If specified, *default* should be a function that gets called for objects " "that can't otherwise be serialized. It should return a JSON encodable " @@ -532,11 +532,12 @@ msgstr "" "partie de la spécification JSON." #: library/json.rst:333 +#, fuzzy msgid "" "*object_hook*, if specified, will be called with the result of every JSON " "object decoded and its return value will be used in place of the given :" "class:`dict`. This can be used to provide custom deserializations (e.g. to " -"support JSON-RPC class hinting)." +"support `JSON-RPC `_ class hinting)." msgstr "" "Si *object_hook* est définie, elle sera appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" @@ -570,7 +571,7 @@ msgstr "" "contrôle dans ce contexte sont ceux dont les codes sont dans l'intervalle " "0--31, incluant ``'\\t'`` (tabulation), ``'\\n'``, ``'\\r'`` et ``'\\0'``." -#: library/json.rst:472 +#: library/json.rst:471 msgid "All parameters are now :ref:`keyword-only `." msgstr "" "Tous les paramètres sont maintenant des :ref:`keyword-only `_. This section " @@ -779,7 +782,7 @@ msgstr "" "`JSONDecoder`, et les paramètres autres que ceux explicitement mentionnés ne " "sont pas considérés." -#: library/json.rst:553 +#: library/json.rst:552 msgid "" "This module does not comply with the RFC in a strict fashion, implementing " "some extensions that are valid JavaScript but not valid JSON. In particular:" @@ -787,11 +790,11 @@ msgstr "" "Ce module ne se conforme pas strictement à la RFC, implémentant quelques " "extensions qui sont valides en JavaScript mais pas en JSON. En particulier :" -#: library/json.rst:556 +#: library/json.rst:555 msgid "Infinite and NaN number values are accepted and output;" msgstr "Les nombres infinis et *NaN* sont acceptés et retranscrits ;" -#: library/json.rst:557 +#: library/json.rst:556 msgid "" "Repeated names within an object are accepted, and only the value of the last " "name-value pair is used." @@ -799,7 +802,7 @@ msgstr "" "Les noms répétés au sein d'un objet sont acceptés, seule la valeur du " "dernier couple nom-valeur est utilisée." -#: library/json.rst:560 +#: library/json.rst:559 msgid "" "Since the RFC permits RFC-compliant parsers to accept input texts that are " "not RFC-compliant, this module's deserializer is technically RFC-compliant " @@ -809,11 +812,11 @@ msgstr "" "non conformes, le désérialiseur de ce module avec ses paramètres par défaut " "est techniquement conforme à la RFC." -#: library/json.rst:565 +#: library/json.rst:564 msgid "Character Encodings" msgstr "Encodage des caractères" -#: library/json.rst:567 +#: library/json.rst:566 msgid "" "The RFC requires that JSON be represented using either UTF-8, UTF-16, or " "UTF-32, with UTF-8 being the recommended default for maximum " @@ -823,7 +826,7 @@ msgstr "" "UTF-16 ou UTF-32, avec UTF-8 recommandé par défaut pour une interopérabilité " "maximale." -#: library/json.rst:570 +#: library/json.rst:569 msgid "" "As permitted, though not required, by the RFC, this module's serializer sets " "*ensure_ascii=True* by default, thus escaping the output so that the " @@ -834,7 +837,7 @@ msgstr "" "façon à ce que les chaînes résultants ne contiennent que des caractères " "ASCII." -#: library/json.rst:574 +#: library/json.rst:573 msgid "" "Other than the *ensure_ascii* parameter, this module is defined strictly in " "terms of conversion between Python objects and :class:`Unicode strings " @@ -845,7 +848,7 @@ msgstr "" "class:`chaînes Unicode ` de ce module sont strictement définies, et ne " "résolvent donc pas directement le problème de l'encodage des caractères." -#: library/json.rst:579 +#: library/json.rst:578 msgid "" "The RFC prohibits adding a byte order mark (BOM) to the start of a JSON " "text, and this module's serializer does not add a BOM to its output. The RFC " @@ -859,7 +862,7 @@ msgstr "" "ignorent ces BOM. Le désérialiseur de ce module lève une :exc:`ValueError` " "quand un BOM est présent au début du fichier." -#: library/json.rst:585 +#: library/json.rst:584 msgid "" "The RFC does not explicitly forbid JSON strings which contain byte sequences " "that don't correspond to valid Unicode characters (e.g. unpaired UTF-16 " @@ -874,11 +877,11 @@ msgstr "" "retranscrit (quand présents dans la :class:`str` originale) les *code " "points* de telles séquences." -#: library/json.rst:593 +#: library/json.rst:592 msgid "Infinite and NaN Number Values" msgstr "Valeurs numériques infinies et NaN" -#: library/json.rst:595 +#: library/json.rst:594 msgid "" "The RFC does not permit the representation of infinite or NaN number values. " "Despite that, by default, this module accepts and outputs ``Infinity``, ``-" @@ -889,7 +892,7 @@ msgstr "" "Infinity`` et ``NaN`` comme s'ils étaient des valeurs numériques littérales " "JSON valides ::" -#: library/json.rst:610 +#: library/json.rst:609 msgid "" "In the serializer, the *allow_nan* parameter can be used to alter this " "behavior. In the deserializer, the *parse_constant* parameter can be used " @@ -899,11 +902,11 @@ msgstr "" "ce comportement. Dans le désérialiseur, le paramètre *parse_constant* peut " "être utilisé pour changer ce comportement." -#: library/json.rst:616 +#: library/json.rst:615 msgid "Repeated Names Within an Object" msgstr "Noms répétés au sein d'un objet" -#: library/json.rst:618 +#: library/json.rst:617 msgid "" "The RFC specifies that the names within a JSON object should be unique, but " "does not mandate how repeated names in JSON objects should be handled. By " @@ -915,17 +918,17 @@ msgstr "" "ce module ne lève pas d'exception ; à la place, il ignore tous les couples " "nom-valeur sauf le dernier pour un nom donné ::" -#: library/json.rst:627 +#: library/json.rst:626 msgid "The *object_pairs_hook* parameter can be used to alter this behavior." msgstr "" "Le paramètre *object_pairs_hook* peut être utilisé pour modifier ce " "comportement." -#: library/json.rst:631 +#: library/json.rst:630 msgid "Top-level Non-Object, Non-Array Values" msgstr "Valeurs de plus haut niveau (hors objets ou tableaux)" -#: library/json.rst:633 +#: library/json.rst:632 msgid "" "The old version of JSON specified by the obsolete :rfc:`4627` required that " "the top-level value of a JSON text must be either a JSON object or array " @@ -941,7 +944,7 @@ msgstr "" "restriction, jamais implémentée par ce module, que ce soit dans le " "sérialiseur ou le désérialiseur." -#: library/json.rst:640 +#: library/json.rst:639 msgid "" "Regardless, for maximum interoperability, you may wish to voluntarily adhere " "to the restriction yourself." @@ -949,33 +952,33 @@ msgstr "" "Cependant, pour une interopérabilité maximale, vous pourriez volontairement " "souhaiter adhérer à cette restriction." -#: library/json.rst:645 +#: library/json.rst:644 msgid "Implementation Limitations" msgstr "Limitations de l'implémentation" -#: library/json.rst:647 +#: library/json.rst:646 msgid "Some JSON deserializer implementations may set limits on:" msgstr "" "Certaines implémentations de désérialiseurs JSON peuvent avoir des limites " "sur :" -#: library/json.rst:649 +#: library/json.rst:648 msgid "the size of accepted JSON texts" msgstr "la taille des textes JSON acceptés ;" -#: library/json.rst:650 +#: library/json.rst:649 msgid "the maximum level of nesting of JSON objects and arrays" msgstr "le niveau maximum d'objets et tableaux JSON imbriqués ;" -#: library/json.rst:651 +#: library/json.rst:650 msgid "the range and precision of JSON numbers" msgstr "l'intervalle et la précision des nombres JSON ;" -#: library/json.rst:652 +#: library/json.rst:651 msgid "the content and maximum length of JSON strings" msgstr "le contenu et la longueur maximale des chaînes JSON." -#: library/json.rst:654 +#: library/json.rst:653 msgid "" "This module does not impose any such limits beyond those of the relevant " "Python datatypes themselves or the Python interpreter itself." @@ -983,7 +986,7 @@ msgstr "" "Ce module n'impose pas de telles limites si ce n'est celles inhérentes aux " "types de données Python ou à l'interpréteur." -#: library/json.rst:657 +#: library/json.rst:656 msgid "" "When serializing to JSON, beware any such limitations in applications that " "may consume your JSON. In particular, it is common for JSON numbers to be " @@ -1001,15 +1004,15 @@ msgstr "" "sérialisation de grands :class:`int` Python, ou d'instances de types " "numériques « exotiques » comme :class:`decimal.Decimal`." -#: library/json.rst:670 +#: library/json.rst:669 msgid "Command Line Interface" msgstr "Interface en ligne de commande" -#: library/json.rst:675 +#: library/json.rst:674 msgid "**Source code:** :source:`Lib/json/tool.py`" msgstr "**Code source :** :source:`Lib/json/tool.py`" -#: library/json.rst:679 +#: library/json.rst:678 msgid "" "The :mod:`json.tool` module provides a simple command line interface to " "validate and pretty-print JSON objects." @@ -1017,7 +1020,7 @@ msgstr "" "Le module :mod:`json.tool` fournit une simple interface en ligne de commande " "pour valider et réécrire élégamment des objets JSON." -#: library/json.rst:682 +#: library/json.rst:681 msgid "" "If the optional ``infile`` and ``outfile`` arguments are not specified, :" "attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:" @@ -1026,7 +1029,7 @@ msgstr "" "spécifiés, :attr:`sys.stdin` et :attr:`sys.stdout` sont utilisés " "respectivement :" -#: library/json.rst:694 +#: library/json.rst:693 msgid "" "The output is now in the same order as the input. Use the :option:`--sort-" "keys` option to sort the output of dictionaries alphabetically by key." @@ -1035,20 +1038,20 @@ msgstr "" "l'option :option:`--sort-keys` pour sortir des dictionnaires triés " "alphabétiquement par clés." -#: library/json.rst:701 +#: library/json.rst:700 msgid "Command line options" msgstr "Options de la ligne de commande" -#: library/json.rst:705 +#: library/json.rst:704 msgid "The JSON file to be validated or pretty-printed:" msgstr "Le fichier JSON à valider ou réécrire élégamment :" -#: library/json.rst:721 +#: library/json.rst:720 msgid "If *infile* is not specified, read from :attr:`sys.stdin`." msgstr "" "Si *infile* n'est pas spécifié, lit le document depuis :attr:`sys.stdin`." -#: library/json.rst:725 +#: library/json.rst:724 msgid "" "Write the output of the *infile* to the given *outfile*. Otherwise, write it " "to :attr:`sys.stdout`." @@ -1056,11 +1059,11 @@ msgstr "" "Écrit la sortie générée par *infile* vers le fichier *outfile* donné. " "Autrement, écrit sur :attr:`sys.stdout`." -#: library/json.rst:730 +#: library/json.rst:729 msgid "Sort the output of dictionaries alphabetically by key." msgstr "Trie alphabétiquement les dictionnaires par clés." -#: library/json.rst:736 +#: library/json.rst:735 msgid "" "Disable escaping of non-ascii characters, see :func:`json.dumps` for more " "information." @@ -1068,26 +1071,26 @@ msgstr "" "Désactive l’échappement des caractères non ASCII, voir :func:`json.dumps` " "pour plus d'informations." -#: library/json.rst:742 +#: library/json.rst:741 msgid "Parse every input line as separate JSON object." msgstr "Transforme chaque ligne d'entrée en un objet JSON individuel." -#: library/json.rst:748 +#: library/json.rst:747 #, fuzzy msgid "Mutually exclusive options for whitespace control." msgstr "" "Options mutuellement exclusives pour le contrôle des caractères " "d’espacements (caractères « blancs »)." -#: library/json.rst:754 +#: library/json.rst:753 msgid "Show the help message." msgstr "Affiche le message d'aide." -#: library/json.rst:758 +#: library/json.rst:757 msgid "Footnotes" msgstr "Notes" -#: library/json.rst:759 +#: library/json.rst:758 msgid "" "As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE SEPARATOR) " diff --git a/library/logging.po b/library/logging.po index d7a3a2ae..d55498d1 100644 --- a/library/logging.po +++ b/library/logging.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-03-23 22:54+0100\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" @@ -1100,11 +1100,11 @@ msgstr "" msgid "Attribute name" msgstr "" -#: library/logging.rst:1159 +#: library/logging.rst:1168 msgid "Format" msgstr "Format" -#: library/logging.rst:1159 +#: library/logging.rst:1168 msgid "Description" msgstr "Description" @@ -1642,26 +1642,42 @@ msgid "" msgstr "" #: library/logging.rst:1109 -msgid "" -"Returns the textual representation of logging level *level*. If the level is " -"one of the predefined levels :const:`CRITICAL`, :const:`ERROR`, :const:" -"`WARNING`, :const:`INFO` or :const:`DEBUG` then you get the corresponding " -"string. If you have associated levels with names using :func:`addLevelName` " -"then the name you have associated with *level* is returned. If a numeric " -"value corresponding to one of the defined levels is passed in, the " -"corresponding string representation is returned. Otherwise, the string " -"'Level %s' % level is returned." +msgid "Returns the textual or numeric representation of logging level *level*." msgstr "" -#: library/logging.rst:1117 +#: library/logging.rst:1111 +msgid "" +"If *level* is one of the predefined levels :const:`CRITICAL`, :const:" +"`ERROR`, :const:`WARNING`, :const:`INFO` or :const:`DEBUG` then you get the " +"corresponding string. If you have associated levels with names using :func:" +"`addLevelName` then the name you have associated with *level* is returned. " +"If a numeric value corresponding to one of the defined levels is passed in, " +"the corresponding string representation is returned." +msgstr "" + +#: library/logging.rst:1118 +msgid "" +"The *level* parameter also accepts a string representation of the level such " +"as 'INFO'. In such cases, this functions returns the corresponding numeric " +"value of the level." +msgstr "" + +#: library/logging.rst:1122 +msgid "" +"If no matching numeric or string value is passed in, the string 'Level %s' % " +"level is returned." +msgstr "" + +#: library/logging.rst:1125 msgid "" "Levels are internally integers (as they need to be compared in the logging " "logic). This function is used to convert between an integer level and the " "level name displayed in the formatted log output by means of the ``" -"%(levelname)s`` format specifier (see :ref:`logrecord-attributes`)." +"%(levelname)s`` format specifier (see :ref:`logrecord-attributes`), and vice " +"versa." msgstr "" -#: library/logging.rst:1122 +#: library/logging.rst:1131 msgid "" "In Python versions earlier than 3.4, this function could also be passed a " "text level, and would return the corresponding numeric value of the level. " @@ -1669,7 +1685,7 @@ msgid "" "Python 3.4, but reinstated in 3.4.2 due to retain backward compatibility." msgstr "" -#: library/logging.rst:1130 +#: library/logging.rst:1139 msgid "" "Creates and returns a new :class:`LogRecord` instance whose attributes are " "defined by *attrdict*. This function is useful for taking a pickled :class:" @@ -1677,7 +1693,7 @@ msgid "" "as a :class:`LogRecord` instance at the receiving end." msgstr "" -#: library/logging.rst:1138 +#: library/logging.rst:1147 msgid "" "Does basic configuration for the logging system by creating a :class:" "`StreamHandler` with a default :class:`Formatter` and adding it to the root " @@ -1686,13 +1702,13 @@ msgid "" "no handlers are defined for the root logger." msgstr "" -#: library/logging.rst:1144 +#: library/logging.rst:1153 msgid "" "This function does nothing if the root logger already has handlers " "configured, unless the keyword argument *force* is set to ``True``." msgstr "" -#: library/logging.rst:1147 +#: library/logging.rst:1156 msgid "" "This function should be called from the main thread before other threads are " "started. In versions of Python prior to 2.7.1 and 3.2, if this function is " @@ -1701,52 +1717,54 @@ msgid "" "unexpected results such as messages being duplicated in the log." msgstr "" -#: library/logging.rst:1154 +#: library/logging.rst:1163 msgid "The following keyword arguments are supported." msgstr "" -#: library/logging.rst:1161 +#: library/logging.rst:1170 msgid "*filename*" msgstr "*filename*" -#: library/logging.rst:1161 +#: library/logging.rst:1170 msgid "" "Specifies that a FileHandler be created, using the specified filename, " "rather than a StreamHandler." msgstr "" -#: library/logging.rst:1165 +#: library/logging.rst:1174 msgid "*filemode*" msgstr "*filemode*" -#: library/logging.rst:1165 +#: library/logging.rst:1174 msgid "" "If *filename* is specified, open the file in this :ref:`mode `. " "Defaults to ``'a'``." msgstr "" -#: library/logging.rst:1169 +#: library/logging.rst:1178 msgid "*format*" msgstr "*format*" -#: library/logging.rst:1169 -msgid "Use the specified format string for the handler." +#: library/logging.rst:1178 +msgid "" +"Use the specified format string for the handler. Defaults to attributes " +"``levelname``, ``name`` and ``message`` separated by colons." msgstr "" -#: library/logging.rst:1172 +#: library/logging.rst:1183 msgid "*datefmt*" msgstr "*datefmt*" -#: library/logging.rst:1172 +#: library/logging.rst:1183 msgid "" "Use the specified date/time format, as accepted by :func:`time.strftime`." msgstr "" -#: library/logging.rst:1175 +#: library/logging.rst:1186 msgid "*style*" msgstr "*style*" -#: library/logging.rst:1175 +#: library/logging.rst:1186 msgid "" "If *format* is specified, use this style for the format string. One of " "``'%'``, ``'{'`` or ``'$'`` for :ref:`printf-style `." msgstr "" -#: library/logging.rst:1186 +#: library/logging.rst:1197 msgid "*stream*" msgstr "*stream*" -#: library/logging.rst:1186 +#: library/logging.rst:1197 msgid "" "Use the specified stream to initialize the StreamHandler. Note that this " "argument is incompatible with *filename* - if both are present, a " "``ValueError`` is raised." msgstr "" -#: library/logging.rst:1191 +#: library/logging.rst:1202 msgid "*handlers*" msgstr "*handlers*" -#: library/logging.rst:1191 +#: library/logging.rst:1202 msgid "" "If specified, this should be an iterable of already created handlers to add " "to the root logger. Any handlers which don't already have a formatter set " @@ -1786,34 +1804,34 @@ msgid "" "present, a ``ValueError`` is raised." msgstr "" -#: library/logging.rst:1200 +#: library/logging.rst:1211 #, fuzzy msgid "*force*" msgstr "*format*" -#: library/logging.rst:1200 +#: library/logging.rst:1211 msgid "" "If this keyword argument is specified as true, any existing handlers " "attached to the root logger are removed and closed, before carrying out the " "configuration as specified by the other arguments." msgstr "" -#: library/logging.rst:1206 +#: library/logging.rst:1217 msgid "*encoding*" msgstr "" -#: library/logging.rst:1206 +#: library/logging.rst:1217 msgid "" "If this keyword argument is specified along with *filename*, its value is " "used when the FileHandler is created, and thus used when opening the output " "file." msgstr "" -#: library/logging.rst:1211 +#: library/logging.rst:1222 msgid "*errors*" msgstr "" -#: library/logging.rst:1211 +#: library/logging.rst:1222 msgid "" "If this keyword argument is specified along with *filename*, its value is " "used when the FileHandler is created, and thus used when opening the output " @@ -1822,39 +1840,39 @@ msgid "" "that it will be treated the same as passing 'errors'." msgstr "" -#: library/logging.rst:1222 +#: library/logging.rst:1233 msgid "The *style* argument was added." msgstr "" -#: library/logging.rst:1225 +#: library/logging.rst:1236 msgid "" "The *handlers* argument was added. Additional checks were added to catch " "situations where incompatible arguments are specified (e.g. *handlers* " "together with *stream* or *filename*, or *stream* together with *filename*)." msgstr "" -#: library/logging.rst:1231 +#: library/logging.rst:1242 msgid "The *force* argument was added." msgstr "" -#: library/logging.rst:1234 +#: library/logging.rst:1245 msgid "The *encoding* and *errors* arguments were added." msgstr "" -#: library/logging.rst:1239 +#: library/logging.rst:1250 msgid "" "Informs the logging system to perform an orderly shutdown by flushing and " "closing all handlers. This should be called at application exit and no " "further use of the logging system should be made after this call." msgstr "" -#: library/logging.rst:1243 +#: library/logging.rst:1254 msgid "" "When the logging module is imported, it registers this function as an exit " "handler (see :mod:`atexit`), so normally there's no need to do that manually." msgstr "" -#: library/logging.rst:1250 +#: library/logging.rst:1261 msgid "" "Tells the logging system to use the class *klass* when instantiating a " "logger. The class should define :meth:`__init__` such that only a name " @@ -1866,26 +1884,26 @@ msgid "" "loggers." msgstr "" -#: library/logging.rst:1261 +#: library/logging.rst:1272 msgid "Set a callable which is used to create a :class:`LogRecord`." msgstr "" -#: library/logging.rst:1263 +#: library/logging.rst:1274 msgid "The factory callable to be used to instantiate a log record." msgstr "" -#: library/logging.rst:1265 +#: library/logging.rst:1276 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 "" -#: library/logging.rst:1270 +#: library/logging.rst:1281 msgid "The factory has the following signature:" msgstr "" -#: library/logging.rst:1272 +#: library/logging.rst:1283 msgid "" "``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " "**kwargs)``" @@ -1893,7 +1911,7 @@ msgstr "" "``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " "**kwargs)``" -#: library/logging.rst:1274 +#: library/logging.rst:1285 msgid "The logger name." msgstr "" @@ -1901,7 +1919,7 @@ msgstr "" msgid "level" msgstr "level" -#: library/logging.rst:1275 +#: library/logging.rst:1286 msgid "The logging level (numeric)." msgstr "" @@ -1909,7 +1927,7 @@ msgstr "" msgid "fn" msgstr "fn" -#: library/logging.rst:1276 +#: library/logging.rst:1287 msgid "The full pathname of the file where the logging call was made." msgstr "" @@ -1917,19 +1935,19 @@ msgstr "" msgid "lno" msgstr "lno" -#: library/logging.rst:1277 +#: library/logging.rst:1288 msgid "The line number in the file where the logging call was made." msgstr "" -#: library/logging.rst:1278 +#: library/logging.rst:1289 msgid "The logging message." msgstr "" -#: library/logging.rst:1279 +#: library/logging.rst:1290 msgid "The arguments for the logging message." msgstr "" -#: library/logging.rst:1280 +#: library/logging.rst:1291 msgid "An exception tuple, or ``None``." msgstr "" @@ -1937,7 +1955,7 @@ msgstr "" msgid "func" msgstr "func" -#: library/logging.rst:1281 +#: library/logging.rst:1292 msgid "The name of the function or method which invoked the logging call." msgstr "" @@ -1945,7 +1963,7 @@ msgstr "" msgid "sinfo" msgstr "sinfo" -#: library/logging.rst:1283 +#: library/logging.rst:1294 msgid "" "A stack traceback such as is provided by :func:`traceback.print_stack`, " "showing the call hierarchy." @@ -1955,15 +1973,15 @@ msgstr "" msgid "kwargs" msgstr "" -#: library/logging.rst:1285 +#: library/logging.rst:1296 msgid "Additional keyword arguments." msgstr "" -#: library/logging.rst:1289 +#: library/logging.rst:1300 msgid "Module-Level Attributes" msgstr "" -#: library/logging.rst:1293 +#: library/logging.rst:1304 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``, " @@ -1974,22 +1992,22 @@ msgid "" "reason, ``lastResort`` can be set to ``None``." msgstr "" -#: library/logging.rst:1304 +#: library/logging.rst:1315 msgid "Integration with the warnings module" msgstr "" -#: library/logging.rst:1306 +#: library/logging.rst:1317 msgid "" "The :func:`captureWarnings` function can be used to integrate :mod:`logging` " "with the :mod:`warnings` module." msgstr "" -#: library/logging.rst:1311 +#: library/logging.rst:1322 msgid "" "This function is used to turn the capture of warnings by logging on and off." msgstr "" -#: library/logging.rst:1314 +#: library/logging.rst:1325 msgid "" "If *capture* is ``True``, warnings issued by the :mod:`warnings` module will " "be redirected to the logging system. Specifically, a warning will be " @@ -1998,46 +2016,46 @@ msgid "" "`WARNING`." msgstr "" -#: library/logging.rst:1319 +#: library/logging.rst:1330 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 "" -#: library/logging.rst:1327 +#: library/logging.rst:1338 msgid "Module :mod:`logging.config`" msgstr "Module :mod:`logging.config`" -#: library/logging.rst:1327 +#: library/logging.rst:1338 msgid "Configuration API for the logging module." msgstr "API de configuration pour le module de journalisation." -#: library/logging.rst:1330 +#: library/logging.rst:1341 msgid "Module :mod:`logging.handlers`" msgstr "Module :mod:`logging.handlers`" -#: library/logging.rst:1330 +#: library/logging.rst:1341 msgid "Useful handlers included with the logging module." msgstr "Gestionnaires utiles inclus avec le module de journalisation." -#: library/logging.rst:1334 +#: library/logging.rst:1345 msgid ":pep:`282` - A Logging System" msgstr "" -#: library/logging.rst:1333 +#: library/logging.rst:1344 msgid "" "The proposal which described this feature for inclusion in the Python " "standard library." msgstr "" -#: library/logging.rst:1339 +#: library/logging.rst:1350 msgid "" "`Original Python logging package `_" msgstr "" -#: library/logging.rst:1337 +#: library/logging.rst:1348 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/mmap.po b/library/mmap.po index 17c87be2..0605d77a 100644 --- a/library/mmap.po +++ b/library/mmap.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -104,7 +104,7 @@ msgid "" "`ALLOCATIONGRANULARITY`." msgstr "" -#: library/mmap.rst:160 +#: library/mmap.rst:159 msgid "" "Raises an :ref:`auditing event ` ``mmap.__new__`` with arguments " "``fileno``, ``length``, ``access``, ``offset``." diff --git a/library/nntplib.po b/library/nntplib.po index 1acb12cb..83c469c5 100644 --- a/library/nntplib.po +++ b/library/nntplib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -64,13 +64,13 @@ msgid "" "close the NNTP connection when done, e.g.:" msgstr "" -#: library/nntplib.rst:115 +#: library/nntplib.rst:114 msgid "" "Raises an :ref:`auditing event ` ``nntplib.connect`` with " "arguments ``self``, ``host``, ``port``." msgstr "" -#: library/nntplib.rst:None +#: library/nntplib.rst:116 msgid "" "Raises an :ref:`auditing event ` ``nntplib.putline`` with " "arguments ``self``, ``line``." diff --git a/library/os.po b/library/os.po index 15c279f8..0cb6518e 100644 --- a/library/os.po +++ b/library/os.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-06-08 12:50+0200\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" @@ -655,7 +655,7 @@ msgstr "" "assignations sur ``environ`` peut causer des fuites de mémoire. Referez-vous " "à la documentation système de :func:`putenv`." -#: library/os.rst:455 +#: library/os.rst:454 msgid "" "Raises an :ref:`auditing event ` ``os.putenv`` with arguments " "``key``, ``value``." @@ -898,7 +898,7 @@ msgstr "" "`unsetenv`, mais les appels à :func:`unsetenv` ne mettent pas ``os.environ`` " "à jour. Donc il est préférable de supprimer les éléments de ``os.environ``." -#: library/os.rst:652 +#: library/os.rst:651 msgid "" "Raises an :ref:`auditing event ` ``os.unsetenv`` with argument " "``key``." @@ -1092,7 +1092,7 @@ msgstr "" "la documentation de :func:`chmod` pour les valeurs possibles de *mode*. " "Depuis Python 3.3, c'est équivalent à ``os.chmod(fd, mode)``." -#: library/os.rst:1702 library/os.rst:1793 +#: library/os.rst:1701 library/os.rst:1792 msgid "" "Raises an :ref:`auditing event ` ``os.chmod`` with arguments " "``path``, ``mode``, ``dir_fd``." @@ -1109,7 +1109,7 @@ msgstr "" "inchangés, mettez-le à ``-1``. Voir :func:`chown`. Depuis Python 3.3, c'est " "équivalent à ``os.chown(fd, uid, gid)``." -#: library/os.rst:1724 library/os.rst:1806 +#: library/os.rst:1723 library/os.rst:1805 msgid "" "Raises an :ref:`auditing event ` ``os.chown`` with arguments " "``path``, ``uid``, ``gid``, ``dir_fd``." @@ -1220,7 +1220,7 @@ msgstr "" "long de *length* *bytes*. Depuis Python 3.3, c'est équivalent à ``os." "truncate(fd, length)``." -#: library/os.rst:867 +#: library/os.rst:866 msgid "" "Raises an :ref:`auditing event ` ``os.truncate`` with arguments " "``fd``, ``length``." @@ -1265,7 +1265,7 @@ msgstr "" "`F_TLOCK`, :data:`F_ULOCK`, ou :data:`F_TEST`). *len* spécifie la section du " "fichier à verrouiller." -#: library/os.rst:901 +#: library/os.rst:900 msgid "" "Raises an :ref:`auditing event ` ``os.lockf`` with arguments " "``fd``, ``cmd``, ``len``." @@ -1341,7 +1341,7 @@ msgstr "" "Cette fonction prend en charge des :ref:`chemins relatifs à des descripteurs " "de répertoires ` avec le paramètre *dir_fd*." -#: library/os.rst:956 +#: library/os.rst:955 msgid "" "Raises an :ref:`auditing event ` ``open`` with arguments ``path``, " "``mode``, ``flags``." @@ -2228,7 +2228,7 @@ msgstr "" "Cette fonction peut lever :exc:`OSError` et des sous-classes telles que :exc:" "`FileNotFoundError`, :exc:`PermissionError` et :exc:`NotADirectoryError`." -#: library/os.rst:1752 +#: library/os.rst:1751 msgid "" "Raises an :ref:`auditing event ` ``os.chdir`` with argument " "``path``." @@ -2306,7 +2306,7 @@ msgstr "" "Cette fonction prend en charge :ref:`le suivi des liens symboliques " "`." -#: library/os.rst:1778 +#: library/os.rst:1777 msgid "" "Raises an :ref:`auditing event ` ``os.chflags`` with arguments " "``path``, ``flags``." @@ -2534,7 +2534,7 @@ msgstr "" "répertoires `, et :ref:`le non-suivi des liens symboliques " "`." -#: library/os.rst:1822 +#: library/os.rst:1821 msgid "" "Raises an :ref:`auditing event ` ``os.link`` with arguments " "``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd``." @@ -2586,7 +2586,7 @@ msgstr "" "Cette fonction peut également gérer :ref:`la spécification de descripteurs " "de fichiers`. Le descripteur doit référencer un répertoire." -#: library/os.rst:1852 +#: library/os.rst:1851 msgid "" "Raises an :ref:`auditing event ` ``os.listdir`` with argument " "``path``." @@ -2699,7 +2699,7 @@ msgstr "" "Il est également possible de créer des répertoires temporaires, voir la " "fonction :func:`tempfile.mkdtemp` du module :mod:`tempfile`." -#: library/os.rst:1962 +#: library/os.rst:1961 msgid "" "Raises an :ref:`auditing event ` ``os.mkdir`` with arguments " "``path``, ``mode``, ``dir_fd``." @@ -2964,7 +2964,7 @@ msgstr "" msgid "This function is semantically identical to :func:`unlink`." msgstr "La fonction est sémantiquement identique à :func:`unlink`." -#: library/os.rst:2151 library/os.rst:2935 +#: library/os.rst:2150 library/os.rst:2934 msgid "" "Raises an :ref:`auditing event ` ``os.remove`` with arguments " "``path``, ``dir_fd``." @@ -3041,7 +3041,7 @@ msgstr "" "Si cous désirez un écrasement multiplate-forme de la destination, utilisez " "la fonction :func:`replace`." -#: library/os.rst:2199 library/os.rst:2216 +#: library/os.rst:2198 library/os.rst:2215 msgid "" "Raises an :ref:`auditing event ` ``os.rename`` with arguments " "``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd``." @@ -3106,7 +3106,7 @@ msgstr "" "levée, selon le cas. Pour supprimer des arborescences de répertoires " "entières, utilisez :func:`shutil.rmtree`." -#: library/os.rst:2234 +#: library/os.rst:2233 msgid "" "Raises an :ref:`auditing event ` ``os.rmdir`` with arguments " "``path``, ``dir_fd``." @@ -3166,7 +3166,7 @@ msgstr "" "DirEntry.path` de chaque :class:`os.DirEntry` sera ``bytes`` ; dans toutes " "les autres circonstances, ils seront de type ``str``." -#: library/os.rst:2271 +#: library/os.rst:2270 msgid "" "Raises an :ref:`auditing event ` ``os.scandir`` with argument " "``path``." @@ -4183,7 +4183,7 @@ msgstr "" ":exc:`OSError` est levée quand la fonction est appelée par un utilisateur " "sans privilèges." -#: library/os.rst:2881 +#: library/os.rst:2880 msgid "" "Raises an :ref:`auditing event ` ``os.symlink`` with arguments " "``src``, ``dst``, ``dir_fd``." @@ -4213,7 +4213,7 @@ msgstr "" "Tronque le fichier correspondant à *path*, afin qu'il soit au maximum long " "de *length* bytes." -#: library/os.rst:2915 +#: library/os.rst:2914 msgid "" "Raises an :ref:`auditing event ` ``os.truncate`` with arguments " "``path``, ``length``." @@ -4294,7 +4294,7 @@ msgstr "" "*st_atime_ns* et *st_mtime_ns* de l'objet résultat de la fonction :func:`os." "stat` avec le paramètre *ns* valant `utime`." -#: library/os.rst:2974 +#: library/os.rst:2973 msgid "" "Raises an :ref:`auditing event ` ``os.utime`` with arguments " "``path``, ``times``, ``ns``, ``dir_fd``." @@ -4449,7 +4449,7 @@ msgstr "" "parcourir l'arbre de bas-en-haut est essentiel : :func:`rmdir` ne permet pas " "de supprimer un répertoire avant qu'un ne soit vide ::" -#: library/os.rst:3072 +#: library/os.rst:3071 msgid "" "Raises an :ref:`auditing event ` ``os.walk`` with arguments " "``top``, ``topdown``, ``onerror``, ``followlinks``." @@ -4513,7 +4513,7 @@ msgstr "" "func:`rmdir` ne permet pas de supprimer un répertoire avant qu'il ne soit " "vide ::" -#: library/os.rst:3133 +#: library/os.rst:3132 msgid "" "Raises an :ref:`auditing event ` ``os.fwalk`` with arguments " "``top``, ``topdown``, ``onerror``, ``follow_symlinks``, ``dir_fd``." @@ -4584,7 +4584,7 @@ msgstr "" "`PathLike`). Si c'est une chaîne de caractères, elle est encodée avec " "l'encodage du système de fichiers." -#: library/os.rst:3208 +#: library/os.rst:3207 msgid "" "Raises an :ref:`auditing event ` ``os.getxattr`` with arguments " "``path``, ``attribute``." @@ -4606,7 +4606,7 @@ msgstr "" "sont décodés avec l'encodage du système de fichier. Si *path* vaut " "``None``, :func:`listxattr` examinera le répertoire actuel." -#: library/os.rst:3224 +#: library/os.rst:3223 msgid "" "Raises an :ref:`auditing event ` ``os.listxattr`` with argument " "``path``." @@ -4625,7 +4625,7 @@ msgstr "" "c'est une chaîne de caractères, elle est encodée avec l'encodage du système " "de fichiers." -#: library/os.rst:3240 +#: library/os.rst:3239 msgid "" "Raises an :ref:`auditing event ` ``os.removexattr`` with arguments " "``path``, ``attribute``." @@ -4660,7 +4660,7 @@ msgstr "" "Un bogue des versions inférieures à 2.6.39 du noyau Linux faisait que les " "marqueurs de *flags* étaient ignorés sur certains systèmes." -#: library/os.rst:3265 +#: library/os.rst:3264 msgid "" "Raises an :ref:`auditing event ` ``os.setxattr`` with arguments " "``path``, ``attribute``, ``value``, ``flags``." @@ -4756,7 +4756,7 @@ msgid "" "DLLs are loaded." msgstr "" -#: library/os.rst:3329 +#: library/os.rst:3328 msgid "" "Raises an :ref:`auditing event ` ``os.add_dll_directory`` with " "argument ``path``." @@ -4879,7 +4879,7 @@ msgstr "" "disponible en utilisant :data:`os._supports_fd`. Si c'est indisponible, " "l'utiliser lèvera une :exc:`NotImplementedError`." -#: library/os.rst:3397 +#: library/os.rst:3396 msgid "" "Raises an :ref:`auditing event ` ``os.exec`` with arguments " "``path``, ``args``, ``env``." @@ -5058,7 +5058,7 @@ msgstr "" "Notez que certaines plate-formes (dont FreeBSD <= 6.3 et Cygwin) ont des " "problèmes connus lors d'utilisation de *fork()* depuis un fil d'exécution." -#: library/os.rst:3563 +#: library/os.rst:3562 msgid "" "Raises an :ref:`auditing event ` ``os.fork`` with no arguments." msgstr "" @@ -5090,7 +5090,7 @@ msgstr "" "approche plus portable, utilisez le module :mod:`pty`. Si une erreur " "apparaît, une :exc:`OSError` est levée." -#: library/os.rst:3584 +#: library/os.rst:3583 msgid "" "Raises an :ref:`auditing event ` ``os.forkpty`` with no arguments." msgstr "" @@ -5130,7 +5130,7 @@ msgstr "" msgid "See also :func:`signal.pthread_kill`." msgstr "Voir également :func:`signal.pthread_kill`." -#: library/os.rst:3612 +#: library/os.rst:3611 msgid "" "Raises an :ref:`auditing event ` ``os.kill`` with arguments " "``pid``, ``sig``." @@ -5144,7 +5144,7 @@ msgstr "Prise en charge de Windows." msgid "Send the signal *sig* to the process group *pgid*." msgstr "Envoie le signal *sig* au groupe de processus *pgid*." -#: library/os.rst:3626 +#: library/os.rst:3625 msgid "" "Raises an :ref:`auditing event ` ``os.killpg`` with arguments " "``pgid``, ``sig``." @@ -5352,7 +5352,7 @@ msgid "" "`POSIX_SPAWN_SETSCHEDULER` flags." msgstr "" -#: library/os.rst:3784 +#: library/os.rst:3783 msgid "" "Raises an :ref:`auditing event ` ``os.posix_spawn`` with arguments " "``path``, ``argv``, ``env``." @@ -5551,7 +5551,7 @@ msgstr "" "Par exemple, les appels suivants à :func:`spawnlp` et :func:`spawnvpe` sont " "équivalents ::" -#: library/os.rst:3886 +#: library/os.rst:3885 msgid "" "Raises an :ref:`auditing event ` ``os.spawn`` with arguments " "``mode``, ``path``, ``args``, ``env``." @@ -5674,7 +5674,7 @@ msgstr "" "fonction na pas été appelée. Si la fonction ne peut être interprétée, une :" "exc:`NotImplementedError` est levée." -#: library/os.rst:3957 +#: library/os.rst:3956 msgid "" "Raises an :ref:`auditing event ` ``os.startfile`` with arguments " "``path``, ``operation``." @@ -5742,7 +5742,7 @@ msgid "" "code." msgstr "" -#: library/os.rst:3990 +#: library/os.rst:3989 msgid "" "Raises an :ref:`auditing event ` ``os.system`` with argument " "``command``." diff --git a/library/pdb.po b/library/pdb.po index 6759d482..9e907d74 100644 --- a/library/pdb.po +++ b/library/pdb.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-24 09:01+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-02-04 19:59+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -288,7 +288,7 @@ msgstr "" msgid "Example call to enable tracing with *skip*::" msgstr "Exemple d'appel pour activer le traçage avec *skip* ::" -#: library/pdb.rst:185 +#: library/pdb.rst:184 msgid "" "Raises an :ref:`auditing event ` ``pdb.Pdb`` with no arguments." msgstr "Lève un :ref:`évènement d'audit ` ``pdb.Pdb`` sans argument." diff --git a/library/poplib.po b/library/poplib.po index 5f4815de..47209f17 100644 --- a/library/poplib.po +++ b/library/poplib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -60,13 +60,13 @@ msgid "" "timeout setting will be used)." msgstr "" -#: library/poplib.rst:69 +#: library/poplib.rst:68 msgid "" "Raises an :ref:`auditing event ` ``poplib.connect`` with arguments " "``self``, ``host``, ``port``." msgstr "" -#: library/poplib.rst:None +#: library/poplib.rst:70 msgid "" "Raises an :ref:`auditing event ` ``poplib.putline`` with arguments " "``self``, ``line``." diff --git a/library/pty.po b/library/pty.po index 261d193c..6ac942e1 100644 --- a/library/pty.po +++ b/library/pty.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-24 09:01+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-03-25 16:25+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -155,7 +155,7 @@ msgid "" "an exit code." msgstr "" -#: library/pty.rst:78 +#: library/pty.rst:77 msgid "" "Raises an :ref:`auditing event ` ``pty.spawn`` with argument " "``argv``." diff --git a/library/resource.po b/library/resource.po index 9611662a..3ecbabcb 100644 --- a/library/resource.po +++ b/library/resource.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-11-29 21:18+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -135,7 +135,7 @@ msgid "" "process." msgstr "" -#: library/resource.rst:101 +#: library/resource.rst:100 msgid "" "Raises an :ref:`auditing event ` ``resource.prlimit`` with " "arguments ``pid``, ``resource``, ``limits``." diff --git a/library/shutil.po b/library/shutil.po index 5b477464..cae0ec41 100644 --- a/library/shutil.po +++ b/library/shutil.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-11-29 18:26+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -120,7 +120,7 @@ msgstr "" "Si *follow_symlinks* est faux et *src* est un lien symbolique, un nouveau " "lien symbolique est créé au lieu de copier le fichier pointé par *src*." -#: library/shutil.rst:177 library/shutil.rst:208 +#: library/shutil.rst:176 library/shutil.rst:207 msgid "" "Raises an :ref:`auditing event ` ``shutil.copyfile`` with " "arguments ``src``, ``dst``." @@ -178,7 +178,7 @@ msgstr "" "plus d'informations. Si :func:`copymode` ne peut pas modifier les liens " "symboliques sur la plateforme cible alors que c'est demandé, il ne fait rien." -#: library/shutil.rst:179 +#: library/shutil.rst:178 msgid "" "Raises an :ref:`auditing event ` ``shutil.copymode`` with " "arguments ``src``, ``dst``." @@ -257,7 +257,7 @@ msgstr "" msgid "Please see :data:`os.supports_follow_symlinks` for more information." msgstr "" -#: library/shutil.rst:210 +#: library/shutil.rst:209 msgid "" "Raises an :ref:`auditing event ` ``shutil.copystat`` with " "arguments ``src``, ``dst``." @@ -391,7 +391,7 @@ msgid "" "that supports the same signature (like :func:`~shutil.copy`) can be used." msgstr "" -#: library/shutil.rst:270 +#: library/shutil.rst:269 msgid "" "Raises an :ref:`auditing event ` ``shutil.copytree`` with " "arguments ``src``, ``dst``." @@ -448,7 +448,7 @@ msgid "" "exc_info`. Exceptions raised by *onerror* will not be caught." msgstr "" -#: library/shutil.rst:319 +#: library/shutil.rst:318 msgid "" "Raises an :ref:`auditing event ` ``shutil.rmtree`` with argument " "``path``." @@ -505,7 +505,7 @@ msgid "" "the expense of not copying any of the metadata." msgstr "" -#: library/shutil.rst:360 +#: library/shutil.rst:359 msgid "" "Raises an :ref:`auditing event ` ``shutil.move`` with arguments " "``src``, ``dst``." @@ -554,7 +554,7 @@ msgstr "" msgid "See also :func:`os.chown`, the underlying function." msgstr "" -#: library/shutil.rst:401 +#: library/shutil.rst:400 msgid "" "Raises an :ref:`auditing event ` ``shutil.chown`` with arguments " "``path``, ``user``, ``group``." @@ -748,7 +748,7 @@ msgstr "" msgid "The *verbose* argument is unused and deprecated." msgstr "" -#: library/shutil.rst:597 +#: library/shutil.rst:596 msgid "" "Raises an :ref:`auditing event ` ``shutil.make_archive`` with " "arguments ``base_name``, ``format``, ``root_dir``, ``base_dir``." @@ -845,7 +845,7 @@ msgid "" "that extension. In case none is found, a :exc:`ValueError` is raised." msgstr "" -#: library/shutil.rst:657 +#: library/shutil.rst:656 msgid "" "Raises an :ref:`auditing event ` ``shutil.unpack_archive`` with " "arguments ``filename``, ``extract_dir``, ``format``." diff --git a/library/signal.po b/library/signal.po index 3a691f3c..8bd2524e 100644 --- a/library/signal.po +++ b/library/signal.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-11-29 18:27+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -423,7 +423,7 @@ msgid "" "performed; this can be used to check if the target thread is still running." msgstr "" -#: library/signal.rst:385 +#: library/signal.rst:384 msgid "" "Raises an :ref:`auditing event ` ``signal.pthread_kill`` with " "arguments ``thread_id``, ``signalnum``." diff --git a/library/smtplib.po b/library/smtplib.po index 4b6bc310..8d0a90b5 100644 --- a/library/smtplib.po +++ b/library/smtplib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2017-08-10 00:55+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -64,7 +64,7 @@ msgid "" "keyword:`!with` statement exits. E.g.::" msgstr "" -#: library/smtplib.rst:None +#: library/smtplib.rst:58 msgid "" "Raises an :ref:`auditing event ` ``smtplib.send`` with arguments " "``self``, ``data``." diff --git a/library/socket.po b/library/socket.po index 55dbe5a8..248e43d3 100644 --- a/library/socket.po +++ b/library/socket.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-11-25 20:35+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -696,7 +696,7 @@ msgstr "" "Il n'est :ref:`pas possible d'hériter ` du connecteur " "nouvellement créé." -#: library/socket.rst:575 +#: library/socket.rst:574 msgid "" "Raises an :ref:`auditing event ` ``socket.__new__`` with arguments " "``self``, ``family``, ``type``, ``protocol``." @@ -920,7 +920,7 @@ msgid "" "be passed to the :meth:`socket.connect` method." msgstr "" -#: library/socket.rst:774 +#: library/socket.rst:773 msgid "" "Raises an :ref:`auditing event ` ``socket.getaddrinfo`` with " "arguments ``host``, ``port``, ``family``, ``type``, ``protocol``." @@ -987,7 +987,7 @@ msgid "" "interpreter is currently executing." msgstr "" -#: library/socket.rst:833 +#: library/socket.rst:832 msgid "" "Raises an :ref:`auditing event ` ``socket.gethostname`` with no " "arguments." @@ -1256,7 +1256,7 @@ msgid "" "you don't have enough rights." msgstr "" -#: library/socket.rst:1075 +#: library/socket.rst:1074 msgid "" "Raises an :ref:`auditing event ` ``socket.sethostname`` with " "argument ``name``." @@ -1758,7 +1758,7 @@ msgid "" "address family --- see above.)" msgstr "" -#: library/socket.rst:1578 +#: library/socket.rst:1577 msgid "" "Raises an :ref:`auditing event ` ``socket.sendto`` with arguments " "``self``, ``address``." @@ -1791,7 +1791,7 @@ msgid "" "mechanism. See also :meth:`recvmsg`. ::" msgstr "" -#: library/socket.rst:1619 +#: library/socket.rst:1618 msgid "" "Raises an :ref:`auditing event ` ``socket.sendmsg`` with arguments " "``self``, ``address``." diff --git a/library/sqlite3.po b/library/sqlite3.po index 7a0a958c..c222c3c4 100644 --- a/library/sqlite3.po +++ b/library/sqlite3.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2019-03-26 15:55+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -326,7 +326,7 @@ msgid "" "html>`_." msgstr "" -#: library/sqlite3.rst:227 +#: library/sqlite3.rst:226 msgid "" "Raises an :ref:`auditing event ` ``sqlite3.connect`` with argument " "``database``." @@ -1320,7 +1320,7 @@ msgid "" "The sqlite3 module is not built with loadable extension support by default, " "because some platforms (notably Mac OS X) have SQLite libraries which are " "compiled without this feature. To get loadable extension support, you must " -"pass --enable-loadable-sqlite-extensions to configure." +"pass ``--enable-loadable-sqlite-extensions`` to configure." msgstr "" #~ msgid "https://github.com/ghaering/pysqlite" diff --git a/library/subprocess.po b/library/subprocess.po index f4e647d9..556b18c1 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-27 19:26+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-04-25 23:34+0200\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" @@ -1111,7 +1111,7 @@ msgstr "" "l'instruction :keyword:`with` : à la sortie, les descripteurs de fichiers " "standards sont fermés, et le processus est attendu ::" -#: library/subprocess.rst:None +#: library/subprocess.rst:635 msgid "" "Raises an :ref:`auditing event ` ``subprocess.Popen`` with " "arguments ``executable``, ``args``, ``cwd``, ``env``." diff --git a/library/sys.po b/library/sys.po index 544c46d1..f5fa867b 100644 --- a/library/sys.po +++ b/library/sys.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-12-03 10:17+0100\n" "Last-Translator: louisMaury \n" "Language-Team: FRENCH \n" @@ -70,7 +70,7 @@ msgstr "" "appelées les premières, suivi par les fonctions de rappel ajoutées dans " "l'interpréteur en cours d'exécution." -#: library/sys.rst:None +#: library/sys.rst:38 msgid "" "Raises an :ref:`auditing event ` ``sys.addaudithook`` with no " "arguments." @@ -531,7 +531,7 @@ msgstr "" "quitte. La gestion de ces exceptions peut être personnalisé en affectant une " "autre fonction de trois arguments à ``sys.excepthook``." -#: library/sys.rst:None +#: library/sys.rst:331 msgid "" "Raises an :ref:`auditing event ` ``sys.excepthook`` with arguments " "``hook``, ``type``, ``value``, ``traceback``." @@ -1354,7 +1354,7 @@ msgstr "" "exc:`ValueError` est levée. La profondeur par défaut est zéro, donnant ainsi " "la *frame* du dessus de la pile." -#: library/sys.rst:715 +#: library/sys.rst:714 msgid "" "Raises an :ref:`auditing event ` ``sys._getframe`` with no " "arguments." @@ -1777,7 +1777,7 @@ msgstr "" "`PYTHONSTARTUP` soit lu, afin que vous puissiez y configurer votre " "fonction. :ref:`Configuré ` par le module :mod:`site`." -#: library/sys.rst:None +#: library/sys.rst:953 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_interactivehook`` " "with argument ``hook``." @@ -2298,7 +2298,7 @@ msgstr "" "``'c_call'``, ``'c_return'`` ou ``'c_exception'``. *arg* dépend du type de " "l'évènement." -#: library/sys.rst:1247 +#: library/sys.rst:1246 msgid "" "Raises an :ref:`auditing event ` ``sys.setprofile`` with no " "arguments." @@ -2579,7 +2579,7 @@ msgstr "" "Pour plus d'informations sur les objets code et objets représentant une " "*frame* de la pile, consultez :ref:`types`." -#: library/sys.rst:1381 +#: library/sys.rst:1380 msgid "" "Raises an :ref:`auditing event ` ``sys.settrace`` with no " "arguments." @@ -2620,13 +2620,13 @@ msgstr "" "première fois, et l'appelable *finalizer* sera appelé lorsqu'un générateur " "asynchrone est sur le point d'être détruit." -#: library/sys.rst:1403 +#: library/sys.rst:1402 msgid "" "Raises an :ref:`auditing event ` ``sys." "set_asyncgen_hooks_firstiter`` with no arguments." msgstr "" -#: library/sys.rst:1405 +#: library/sys.rst:1404 msgid "" "Raises an :ref:`auditing event ` ``sys." "set_asyncgen_hooks_finalizer`` with no arguments." @@ -3020,7 +3020,7 @@ msgstr "" msgid "See also :func:`excepthook` which handles uncaught exceptions." msgstr "" -#: library/sys.rst:None +#: library/sys.rst:1609 msgid "" "Raises an :ref:`auditing event ` ``sys.unraisablehook`` with " "arguments ``hook``, ``unraisable``." diff --git a/library/syslog.po b/library/syslog.po index 610949ce..5439ed12 100644 --- a/library/syslog.po +++ b/library/syslog.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-24 09:01+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -75,7 +75,7 @@ msgid "" "for messages which do not have a facility explicitly encoded." msgstr "" -#: library/syslog.rst:51 +#: library/syslog.rst:50 msgid "" "Raises an :ref:`auditing event ` ``syslog.openlog`` with arguments " "``ident``, ``logoption``, ``facility``." diff --git a/library/telnetlib.po b/library/telnetlib.po index a7e1ace0..c4aeb67d 100644 --- a/library/telnetlib.po +++ b/library/telnetlib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -209,7 +209,7 @@ msgid "" "connection is closed." msgstr "" -#: library/telnetlib.rst:182 +#: library/telnetlib.rst:181 msgid "" "Raises an :ref:`auditing event ` ``telnetlib.Telnet.write`` with " "arguments ``self``, ``buffer``." diff --git a/library/tempfile.po b/library/tempfile.po index d8eb37af..87b650c7 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2019-12-11 11:19+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -136,7 +136,7 @@ msgstr "" "L'option :py:data:`os.O_TMPFILE` est utilisé s'il est disponible et " "fonctionne (Linux exclusivement, nécessite un noyau Linux 3.11 ou plus)." -#: library/tempfile.rst:91 library/tempfile.rst:186 +#: library/tempfile.rst:90 library/tempfile.rst:185 msgid "" "Raises an :ref:`auditing event ` ``tempfile.mkstemp`` with " "argument ``fullpath``." @@ -255,7 +255,7 @@ msgstr "" "Le répertoire peut être explicitement nettoyé en appelant la méthode :func:" "`cleanup`." -#: library/tempfile.rst:212 +#: library/tempfile.rst:211 msgid "" "Raises an :ref:`auditing event ` ``tempfile.mkdtemp`` with " "argument ``fullpath``." diff --git a/library/threading.po b/library/threading.po index 9263ae77..587f8359 100644 --- a/library/threading.po +++ b/library/threading.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-03-29 11:56+0200\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" @@ -48,11 +48,32 @@ msgstr "" "noms en ``camelCase`` utilisés pour certaines méthodes et fonctions de ce " "module dans la série Python 2.x." -#: library/threading.rst:24 +#: library/threading.rst:26 +#, fuzzy +msgid "" +"In CPython, due to the :term:`Global Interpreter Lock `, only one thread can execute Python code at once (even though certain " +"performance-oriented libraries might overcome this limitation). If you want " +"your application to make better use of the computational resources of multi-" +"core machines, you are advised to use :mod:`multiprocessing` or :class:" +"`concurrent.futures.ProcessPoolExecutor`. However, threading is still an " +"appropriate model if you want to run multiple I/O-bound tasks simultaneously." +msgstr "" +"En CPython, en raison du verrou global de l'interpréteur (:term:`Global " +"Interpreter Lock`), un seul fil d'exécution peut exécuter du code Python à " +"la fois (même si certaines bibliothèques orientées performance peuvent " +"surmonter cette limitation). Si vous voulez que votre application fasse un " +"meilleur usage des ressources de calcul des machines multi-cœurs, nous vous " +"conseillons d'utiliser :mod:`multiprocessing` ou :class:`concurrent.futures." +"ProcessPoolExecutor`. Néanmoins, les fils d'exécutions multiples restent un " +"modèle approprié si vous souhaitez exécuter simultanément plusieurs tâches " +"limitées par les performances des entrées-sorties." + +#: library/threading.rst:37 msgid "This module defines the following functions:" msgstr "Ce module définit les fonctions suivantes :" -#: library/threading.rst:29 +#: library/threading.rst:42 msgid "" "Return the number of :class:`Thread` objects currently alive. The returned " "count is equal to the length of the list returned by :func:`.enumerate`." @@ -60,7 +81,7 @@ msgstr "" "Renvoie le nombre d'objets :class:`Thread` actuellement vivants. Le compte " "renvoyé est égal à la longueur de la liste renvoyée par :func:`.enumerate`." -#: library/threading.rst:35 +#: library/threading.rst:48 msgid "" "Return the current :class:`Thread` object, corresponding to the caller's " "thread of control. If the caller's thread of control was not created " @@ -72,33 +93,33 @@ msgstr "" "module :mod:`Thread`, un objet *thread* factice aux fonctionnalités limitées " "est renvoyé." -#: library/threading.rst:43 +#: library/threading.rst:56 msgid "Handle uncaught exception raised by :func:`Thread.run`." msgstr "Gère les exceptions non-attrapées levées par :func:`Thread.run`." -#: library/threading.rst:45 +#: library/threading.rst:58 msgid "The *args* argument has the following attributes:" msgstr "L'argument *arg* a les attributs suivants :" -#: library/threading.rst:47 +#: library/threading.rst:60 msgid "*exc_type*: Exception type." msgstr "*exc_type* : le type de l'exception ;" -#: library/threading.rst:48 +#: library/threading.rst:61 msgid "*exc_value*: Exception value, can be ``None``." msgstr "*exc_value*: la valeur de l'exception, peut être ``None`` ;" -#: library/threading.rst:49 +#: library/threading.rst:62 msgid "*exc_traceback*: Exception traceback, can be ``None``." msgstr "" "*exc_traceback* : la pile d'appels pour cette exception, peut être ``None`` ;" -#: library/threading.rst:50 +#: library/threading.rst:63 msgid "*thread*: Thread which raised the exception, can be ``None``." msgstr "" "*thread*: le fil d'exécution ayant levé l'exception, peut être ``None``." -#: library/threading.rst:52 +#: library/threading.rst:65 msgid "" "If *exc_type* is :exc:`SystemExit`, the exception is silently ignored. " "Otherwise, the exception is printed out on :data:`sys.stderr`." @@ -106,7 +127,7 @@ msgstr "" "Si *exc_type* est :exc:`SystemExit`, l'exception est ignorée " "silencieusement. Toutes les autres sont affichées sur :data:`sys.stderr`." -#: library/threading.rst:55 +#: library/threading.rst:68 msgid "" "If this function raises an exception, :func:`sys.excepthook` is called to " "handle it." @@ -114,7 +135,7 @@ msgstr "" "Si cette fonction lève une exception, :func:`sys.excepthook` est appelée " "pour la gérer." -#: library/threading.rst:58 +#: library/threading.rst:71 msgid "" ":func:`threading.excepthook` can be overridden to control how uncaught " "exceptions raised by :func:`Thread.run` are handled." @@ -123,7 +144,7 @@ msgstr "" "contrôler comment les exceptions non-attrapées levées par :func:`Thread.run` " "sont gérées." -#: library/threading.rst:61 +#: library/threading.rst:74 msgid "" "Storing *exc_value* using a custom hook can create a reference cycle. It " "should be cleared explicitly to break the reference cycle when the exception " @@ -133,7 +154,7 @@ msgstr "" "créer un cycle de références. *exc_value* doit être nettoyée explicitement " "pour casser ce cycle lorsque l'exception n'est plus nécessaire." -#: library/threading.rst:65 +#: library/threading.rst:78 msgid "" "Storing *thread* using a custom hook can resurrect it if it is set to an " "object which is being finalized. Avoid storing *thread* after the custom " @@ -144,12 +165,12 @@ msgstr "" "*thread* après la fin de la fonction de rappel, pour éviter de ressusciter " "des objets." -#: library/threading.rst:70 +#: library/threading.rst:83 msgid ":func:`sys.excepthook` handles uncaught exceptions." msgstr "" ":func:`sys.excepthook` gère les exceptions qui n'ont pas été attrapées." -#: library/threading.rst:77 +#: library/threading.rst:90 msgid "" "Return the 'thread identifier' of the current thread. This is a nonzero " "integer. Its value has no direct meaning; it is intended as a magic cookie " @@ -163,7 +184,7 @@ msgstr "" "dictionnaire de données pour chaque fil. Les identificateurs de fils peuvent " "être recyclés lorsqu'un fil se termine et qu'un autre fil est créé." -#: library/threading.rst:88 +#: library/threading.rst:101 msgid "" "Return the native integral Thread ID of the current thread assigned by the " "kernel. This is a non-negative integer. Its value may be used to uniquely " @@ -176,7 +197,7 @@ msgstr "" "fil d'exécution se termine, après quoi la valeur peut être recyclée par le " "système d'exploitation)." -#: library/threading.rst:94 +#: library/threading.rst:107 msgid "" ":ref:`Availability `: Windows, FreeBSD, Linux, macOS, OpenBSD, " "NetBSD, AIX." @@ -184,7 +205,7 @@ msgstr "" ":ref:`Disponibilité ` : Windows, FreeBSD, Linux, macOS, " "OpenBSD, NetBSD, AIX." -#: library/threading.rst:100 +#: library/threading.rst:113 msgid "" "Return a list of all :class:`Thread` objects currently alive. The list " "includes daemonic threads, dummy thread objects created by :func:" @@ -196,7 +217,7 @@ msgstr "" "créés par :func:`current_thread` et le fil principal. Elle exclut les fils " "terminés et les fils qui n'ont pas encore été lancés." -#: library/threading.rst:108 +#: library/threading.rst:121 msgid "" "Return the main :class:`Thread` object. In normal conditions, the main " "thread is the thread from which the Python interpreter was started." @@ -205,7 +226,7 @@ msgstr "" "conditions normales, le fil principal est le fil à partir duquel " "l'interpréteur Python a été lancé." -#: library/threading.rst:119 +#: library/threading.rst:132 msgid "" "Set a trace function for all threads started from the :mod:`threading` " "module. The *func* will be passed to :func:`sys.settrace` for each thread, " @@ -216,7 +237,7 @@ msgstr "" "settrace` pour chaque fil, avant que sa méthode :meth:`~Thread.run` soit " "appelée." -#: library/threading.rst:128 +#: library/threading.rst:141 msgid "" "Set a profile function for all threads started from the :mod:`threading` " "module. The *func* will be passed to :func:`sys.setprofile` for each " @@ -227,7 +248,7 @@ msgstr "" "`sys.setprofile` pour chaque fil, avant que sa méthode :meth:`~Thread.run` " "soit appelée." -#: library/threading.rst:135 +#: library/threading.rst:148 msgid "" "Return the thread stack size used when creating new threads. The optional " "*size* argument specifies the stack size to be used for subsequently created " @@ -264,18 +285,18 @@ msgstr "" "spécifiques, l'approche proposée est l'utilisation de multiples de 4 096 " "pour la taille de la pile)." -#: library/threading.rst:150 +#: library/threading.rst:163 msgid "" ":ref:`Availability `: Windows, systems with POSIX threads." msgstr "" ":ref:`Disponibilité ` : Windows et systèmes gérant les fils " "d'exécution POSIX." -#: library/threading.rst:153 +#: library/threading.rst:166 msgid "This module also defines the following constant:" msgstr "Ce module définit également la constante suivante :" -#: library/threading.rst:157 +#: library/threading.rst:170 msgid "" "The maximum value allowed for the *timeout* parameter of blocking functions " "(:meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Condition.wait`, etc.). " @@ -287,7 +308,7 @@ msgstr "" "wait`, etc.). Spécifier un délai d'attente supérieur à cette valeur lève " "une :exc:`OverflowError`." -#: library/threading.rst:165 +#: library/threading.rst:178 msgid "" "This module defines a number of classes, which are detailed in the sections " "below." @@ -295,7 +316,7 @@ msgstr "" "Ce module définit un certain nombre de classes, qui sont détaillées dans les " "sections ci-dessous." -#: library/threading.rst:168 +#: library/threading.rst:181 msgid "" "The design of this module is loosely based on Java's threading model. " "However, where Java makes locks and condition variables basic behavior of " @@ -315,16 +336,16 @@ msgstr "" "méthodes statiques de la classe *Thread* de Java, lorsqu'elles sont " "implémentées, correspondent à des fonctions au niveau du module." -#: library/threading.rst:176 +#: library/threading.rst:189 msgid "All of the methods described below are executed atomically." msgstr "" "Toutes les méthodes décrites ci-dessous sont exécutées de manière atomique." -#: library/threading.rst:180 +#: library/threading.rst:193 msgid "Thread-Local Data" msgstr "Données locales au fil d'exécution" -#: library/threading.rst:182 +#: library/threading.rst:195 msgid "" "Thread-local data is data whose values are thread specific. To manage " "thread-local data, just create an instance of :class:`local` (or a subclass) " @@ -335,16 +356,16 @@ msgstr "" "locales au fil, il suffit de créer une instance de :class:`local` (ou une " "sous-classe) et d'y stocker des données ::" -#: library/threading.rst:189 +#: library/threading.rst:202 msgid "The instance's values will be different for separate threads." msgstr "" "Les valeurs dans l'instance sont différentes pour des *threads* différents." -#: library/threading.rst:194 +#: library/threading.rst:207 msgid "A class that represents thread-local data." msgstr "Classe qui représente les données locales au fil d'exécution." -#: library/threading.rst:196 +#: library/threading.rst:209 msgid "" "For more details and extensive examples, see the documentation string of " "the :mod:`_threading_local` module." @@ -352,11 +373,11 @@ msgstr "" "Pour plus de détails et de nombreux exemples, voir la chaîne de " "documentation du module :mod:`_threading_local`." -#: library/threading.rst:203 +#: library/threading.rst:216 msgid "Thread Objects" msgstr "Objets *Threads*" -#: library/threading.rst:205 +#: library/threading.rst:218 msgid "" "The :class:`Thread` class represents an activity that is run in a separate " "thread of control. There are two ways to specify the activity: by passing a " @@ -373,7 +394,7 @@ msgstr "" "une sous-classe. En d'autres termes, réimplémentez *seulement* les méthodes :" "meth:`~Thread.__init__` et :meth:`~Thread.run` de cette classe." -#: library/threading.rst:212 +#: library/threading.rst:225 msgid "" "Once a thread object is created, its activity must be started by calling the " "thread's :meth:`~Thread.start` method. This invokes the :meth:`~Thread.run` " @@ -383,7 +404,7 @@ msgstr "" "en appelant la méthode :meth:`~Thread.start` du fil. Ceci invoque la " "méthode :meth:`~Thread.run` dans un fil d'exécution séparé." -#: library/threading.rst:216 +#: library/threading.rst:229 msgid "" "Once the thread's activity is started, the thread is considered 'alive'. It " "stops being alive when its :meth:`~Thread.run` method terminates -- either " @@ -395,7 +416,7 @@ msgstr "" "run` se termine – soit normalement, soit en levant une exception non gérée. " "La méthode :meth:`~Thread.is_alive` teste si le fil est vivant." -#: library/threading.rst:221 +#: library/threading.rst:234 msgid "" "Other threads can call a thread's :meth:`~Thread.join` method. This blocks " "the calling thread until the thread whose :meth:`~Thread.join` method is " @@ -405,7 +426,7 @@ msgstr "" "d'un fil. Ceci bloque le fil appelant jusqu'à ce que le fil dont la méthode :" "meth:`~Thread.join` est appelée soit terminé." -#: library/threading.rst:225 +#: library/threading.rst:238 msgid "" "A thread has a name. The name can be passed to the constructor, and read or " "changed through the :attr:`~Thread.name` attribute." @@ -413,7 +434,7 @@ msgstr "" "Un fil d'exécution a un nom. Le nom peut être passé au constructeur, et lu " "ou modifié via l'attribut :attr:`~Thread.name`." -#: library/threading.rst:228 +#: library/threading.rst:241 msgid "" "If the :meth:`~Thread.run` method raises an exception, :func:`threading." "excepthook` is called to handle it. By default, :func:`threading.excepthook` " @@ -423,7 +444,7 @@ msgstr "" "excepthook` est appelée pour s'en occuper. Par défaut, :func:`threading." "excepthook` ignore silencieusement :exc:`SystemExit`." -#: library/threading.rst:232 +#: library/threading.rst:245 msgid "" "A thread can be flagged as a \"daemon thread\". The significance of this " "flag is that the entire Python program exits when only daemon threads are " @@ -437,7 +458,7 @@ msgstr "" "par la propriété :attr:`~Thread.daemon` ou par l'argument *daemon* du " "constructeur." -#: library/threading.rst:239 +#: library/threading.rst:252 msgid "" "Daemon threads are abruptly stopped at shutdown. Their resources (such as " "open files, database transactions, etc.) may not be released properly. If " @@ -451,7 +472,7 @@ msgstr "" "utilisez un mécanisme de signalisation approprié tel qu'un objet évènement :" "class:`Event`." -#: library/threading.rst:244 +#: library/threading.rst:257 msgid "" "There is a \"main thread\" object; this corresponds to the initial thread of " "control in the Python program. It is not a daemon thread." @@ -459,7 +480,7 @@ msgstr "" "Il y a un objet \"fil principal\", qui correspond au fil de contrôle initial " "dans le programme Python. Ce n'est pas un fil démon." -#: library/threading.rst:247 +#: library/threading.rst:260 msgid "" "There is the possibility that \"dummy thread objects\" are created. These " "are thread objects corresponding to \"alien threads\", which are threads of " @@ -477,7 +498,7 @@ msgstr "" "meth:`~Thread.join`. Ils ne sont jamais supprimés, car il est impossible de " "détecter la fin des fils d'exécution étrangers." -#: library/threading.rst:258 +#: library/threading.rst:271 msgid "" "This constructor should always be called with keyword arguments. Arguments " "are:" @@ -485,7 +506,7 @@ msgstr "" "Ce constructeur doit toujours être appelé avec des arguments nommés. Les " "arguments sont :" -#: library/threading.rst:261 +#: library/threading.rst:274 msgid "" "*group* should be ``None``; reserved for future extension when a :class:" "`ThreadGroup` class is implemented." @@ -493,7 +514,7 @@ msgstr "" "*group* doit être ``None`` ; cet argument est réservé pour une extension " "future lorsqu'une classe :class:`ThreadGroup` sera implémentée." -#: library/threading.rst:264 +#: library/threading.rst:277 msgid "" "*target* is the callable object to be invoked by the :meth:`run` method. " "Defaults to ``None``, meaning nothing is called." @@ -502,7 +523,7 @@ msgstr "" "`run`. La valeur par défaut est ``None``, ce qui signifie que rien n'est " "appelé." -#: library/threading.rst:267 +#: library/threading.rst:280 msgid "" "*name* is the thread name. By default, a unique name is constructed of the " "form \"Thread-*N*\" where *N* is a small decimal number." @@ -510,14 +531,14 @@ msgstr "" "*name* est le nom du fil d'exécution. Par défaut, un nom unique est " "construit de la forme « Thread–*N* » où *N* est un petit nombre décimal." -#: library/threading.rst:270 +#: library/threading.rst:283 msgid "" "*args* is the argument tuple for the target invocation. Defaults to ``()``." msgstr "" "*args* est le *n*-uplet d'arguments pour l'invocation de l'objet appelable. " "La valeur par défaut est ``()``." -#: library/threading.rst:272 +#: library/threading.rst:285 msgid "" "*kwargs* is a dictionary of keyword arguments for the target invocation. " "Defaults to ``{}``." @@ -525,7 +546,7 @@ msgstr "" "*kwargs* est un dictionnaire d'arguments nommés pour l'invocation de l'objet " "appelable. La valeur par défaut est ``{}``." -#: library/threading.rst:275 +#: library/threading.rst:288 msgid "" "If not ``None``, *daemon* explicitly sets whether the thread is daemonic. If " "``None`` (the default), the daemonic property is inherited from the current " @@ -535,7 +556,7 @@ msgstr "" "d'exécution est démonique ou pas. S'il vaut ``None`` (par défaut), la valeur " "est héritée du fil courant." -#: library/threading.rst:279 +#: library/threading.rst:292 msgid "" "If the subclass overrides the constructor, it must make sure to invoke the " "base class constructor (``Thread.__init__()``) before doing anything else to " @@ -545,15 +566,15 @@ msgstr "" "d'appeler le constructeur de la classe de base (``Thread.__init__()``) avant " "de faire autre chose au fil d'exécution." -#: library/threading.rst:283 +#: library/threading.rst:296 msgid "Added the *daemon* argument." msgstr "Ajout de l'argument *daemon*." -#: library/threading.rst:288 +#: library/threading.rst:301 msgid "Start the thread's activity." msgstr "Lance l'activité du fil d'exécution." -#: library/threading.rst:290 +#: library/threading.rst:303 msgid "" "It must be called at most once per thread object. It arranges for the " "object's :meth:`~Thread.run` method to be invoked in a separate thread of " @@ -563,7 +584,7 @@ msgstr "" "que la méthode :meth:`~Thread.run` de l'objet soit invoquée dans un fil " "d'exécution." -#: library/threading.rst:294 +#: library/threading.rst:307 msgid "" "This method will raise a :exc:`RuntimeError` if called more than once on the " "same thread object." @@ -571,11 +592,11 @@ msgstr "" "Cette méthode lève une :exc:`RuntimeError` si elle est appelée plus d'une " "fois sur le même objet fil d'exécution." -#: library/threading.rst:299 +#: library/threading.rst:312 msgid "Method representing the thread's activity." msgstr "Méthode représentant l'activité du fil d'exécution." -#: library/threading.rst:301 +#: library/threading.rst:314 msgid "" "You may override this method in a subclass. The standard :meth:`run` method " "invokes the callable object passed to the object's constructor as the " @@ -588,7 +609,7 @@ msgstr "" "positionnels et des arguments nommés tirés respectivement des arguments " "*args* et *kwargs*." -#: library/threading.rst:308 +#: library/threading.rst:321 msgid "" "Wait until the thread terminates. This blocks the calling thread until the " "thread whose :meth:`~Thread.join` method is called terminates -- either " @@ -600,7 +621,7 @@ msgstr "" "termine – soit normalement, soit par une exception non gérée – ou jusqu'à ce " "que le délai optionnel *timeout* soit atteint." -#: library/threading.rst:313 +#: library/threading.rst:326 msgid "" "When the *timeout* argument is present and not ``None``, it should be a " "floating point number specifying a timeout for the operation in seconds (or " @@ -616,7 +637,7 @@ msgstr "" "`~Thread.join` pour déterminer si le délai a expiré – si le fil d'exécution " "est toujours vivant, c'est que l'appel à :meth:`~Thread.join` a expiré." -#: library/threading.rst:320 +#: library/threading.rst:333 msgid "" "When the *timeout* argument is not present or ``None``, the operation will " "block until the thread terminates." @@ -624,13 +645,13 @@ msgstr "" "Lorsque l'argument *timeout* n'est pas présent ou vaut ``None``, l'opération " "se bloque jusqu'à ce que le fil d'exécution se termine." -#: library/threading.rst:323 +#: library/threading.rst:336 msgid "A thread can be :meth:`~Thread.join`\\ ed many times." msgstr "" "Un fil d'exécution peut être attendu via :meth:`~Thread.join` de nombreuses " "fois." -#: library/threading.rst:325 +#: library/threading.rst:338 msgid "" ":meth:`~Thread.join` raises a :exc:`RuntimeError` if an attempt is made to " "join the current thread as that would cause a deadlock. It is also an error " @@ -643,7 +664,7 @@ msgstr "" "fil d'exécution avant son lancement est aussi une erreur et, si vous tentez " "de le faire, lève la même exception." -#: library/threading.rst:332 +#: library/threading.rst:345 msgid "" "A string used for identification purposes only. It has no semantics. " "Multiple threads may be given the same name. The initial name is set by the " @@ -653,7 +674,7 @@ msgstr "" "Elle n'a pas de sémantique. Plusieurs fils d'exécution peuvent porter le " "même nom. Le nom initial est défini par le constructeur." -#: library/threading.rst:339 +#: library/threading.rst:352 msgid "" "Old getter/setter API for :attr:`~Thread.name`; use it directly as a " "property instead." @@ -661,7 +682,7 @@ msgstr "" "Anciens accesseur et mutateur pour :attr:`~Thread.name` ; utilisez plutôt ce " "dernier directement." -#: library/threading.rst:344 +#: library/threading.rst:357 msgid "" "The 'thread identifier' of this thread or ``None`` if the thread has not " "been started. This is a nonzero integer. See the :func:`get_ident` " @@ -675,7 +696,7 @@ msgstr "" "se termine et qu'un autre fil est créé. L'identifiant est disponible même " "après que le fil ait terminé." -#: library/threading.rst:352 +#: library/threading.rst:365 msgid "" "The native integral thread ID of this thread. This is a non-negative " "integer, or ``None`` if the thread has not been started. See the :func:" @@ -692,7 +713,7 @@ msgstr "" "tout le système (jusqu'à la fin de l'exécution de ce fil, après quoi le " "système d'exploitation peut recycler la valeur)." -#: library/threading.rst:362 +#: library/threading.rst:375 msgid "" "Similar to Process IDs, Thread IDs are only valid (guaranteed unique system-" "wide) from the time the thread is created until the thread has been " @@ -701,18 +722,18 @@ msgstr "" "Tout comme pour les *Process IDs*, les *Thread IDs* ne sont valides " "(garantis uniques sur le système) uniquement du démarrage du fil à sa fin." -#: library/threading.rst:367 +#: library/threading.rst:380 msgid "" ":ref:`Availability `: Requires :func:`get_native_id` function." msgstr "" ":ref:`Disponibilité ` : nécessite la fonction :func:" "`get_native_id`." -#: library/threading.rst:372 +#: library/threading.rst:385 msgid "Return whether the thread is alive." msgstr "Renvoie si le fil d'exécution est vivant ou pas." -#: library/threading.rst:374 +#: library/threading.rst:387 msgid "" "This method returns ``True`` just before the :meth:`~Thread.run` method " "starts until just after the :meth:`~Thread.run` method terminates. The " @@ -723,7 +744,7 @@ msgstr "" "méthode :meth:`~Thread.run`. La fonction :func:`.enumerate` du module " "renvoie une liste de tous les fils d'exécution vivants." -#: library/threading.rst:380 +#: library/threading.rst:393 msgid "" "A boolean value indicating whether this thread is a daemon thread (True) or " "not (False). This must be set before :meth:`~Thread.start` is called, " @@ -739,14 +760,14 @@ msgstr "" "démon et donc tous les fils créés dans ce fil principal ont par défaut la " "valeur :attr:`~Thread.daemon` = ``False``." -#: library/threading.rst:387 +#: library/threading.rst:400 msgid "" "The entire Python program exits when no alive non-daemon threads are left." msgstr "" "Le programme Python se termine lorsqu'il ne reste plus de fils d'exécution " "non-démons vivants." -#: library/threading.rst:392 +#: library/threading.rst:405 msgid "" "Old getter/setter API for :attr:`~Thread.daemon`; use it directly as a " "property instead." @@ -754,27 +775,6 @@ msgstr "" "Anciens accesseur et mutateur pour :attr:`~Thread.daemon` ; utilisez plutôt " "ce dernier directement." -#: library/threading.rst:398 -#, fuzzy -msgid "" -"In CPython, due to the :term:`Global Interpreter Lock `, only one thread can execute Python code at once (even though certain " -"performance-oriented libraries might overcome this limitation). If you want " -"your application to make better use of the computational resources of multi-" -"core machines, you are advised to use :mod:`multiprocessing` or :class:" -"`concurrent.futures.ProcessPoolExecutor`. However, threading is still an " -"appropriate model if you want to run multiple I/O-bound tasks simultaneously." -msgstr "" -"En CPython, en raison du verrou global de l'interpréteur (:term:`Global " -"Interpreter Lock`), un seul fil d'exécution peut exécuter du code Python à " -"la fois (même si certaines bibliothèques orientées performance peuvent " -"surmonter cette limitation). Si vous voulez que votre application fasse un " -"meilleur usage des ressources de calcul des machines multi-cœurs, nous vous " -"conseillons d'utiliser :mod:`multiprocessing` ou :class:`concurrent.futures." -"ProcessPoolExecutor`. Néanmoins, les fils d'exécutions multiples restent un " -"modèle approprié si vous souhaitez exécuter simultanément plusieurs tâches " -"limitées par les performances des entrées-sorties." - #: library/threading.rst:412 msgid "Lock Objects" msgstr "Verrous" diff --git a/library/time.po b/library/time.po index 0fd4ac10..3f11b8f4 100644 --- a/library/time.po +++ b/library/time.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-12-03 22:31+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -472,11 +472,12 @@ msgstr "" "plus proche pour laquelle il peut générer une heure dépend de la plate-forme." #: library/time.rst:271 +#, fuzzy msgid "" "Return the value (in fractional seconds) of a monotonic clock, i.e. a clock " "that cannot go backwards. The clock is not affected by system clock " "updates. The reference point of the returned value is undefined, so that " -"only the difference between the results of consecutive calls is valid." +"only the difference between the results of two calls is valid." msgstr "" "Renvoie la valeur (en quelques fractions de secondes) d’une horloge " "monotone, c’est-à-dire une horloge qui ne peut pas revenir en arrière. " @@ -497,12 +498,13 @@ msgstr "" "nanosecondes." #: library/time.rst:292 +#, fuzzy msgid "" "Return the value (in fractional seconds) of a performance counter, i.e. a " "clock with the highest available resolution to measure a short duration. It " "does include time elapsed during sleep and is system-wide. The reference " "point of the returned value is undefined, so that only the difference " -"between the results of consecutive calls is valid." +"between the results of two calls is valid." msgstr "" "Renvoie la valeur (en quelques fractions de secondes) d’un compteur de " "performance, c’est-à-dire une horloge avec la résolution disponible la plus " @@ -517,12 +519,13 @@ msgstr "" "Similaire à :func:`perf_counter`, mais renvoie le temps en nanosecondes." #: library/time.rst:314 +#, fuzzy msgid "" "Return the value (in fractional seconds) of the sum of the system and user " "CPU time of the current process. It does not include time elapsed during " "sleep. It is process-wide by definition. The reference point of the " "returned value is undefined, so that only the difference between the results " -"of consecutive calls is valid." +"of two calls is valid." msgstr "" "Renvoie la valeur (en quelques fractions de secondes) de la somme des temps " "système et utilisateur du processus en cours. Il ne comprend pas le temps " @@ -1188,12 +1191,13 @@ msgstr "" "être consultés en tant qu’attributs." #: library/time.rst:592 +#, fuzzy msgid "" "Return the value (in fractional seconds) of the sum of the system and user " "CPU time of the current thread. It does not include time elapsed during " "sleep. It is thread-specific by definition. The reference point of the " "returned value is undefined, so that only the difference between the results " -"of consecutive calls in the same thread is valid." +"of two calls in the same thread is valid." msgstr "" "Renvoie la valeur (en quelques fractions de secondes) de la somme des temps " "processeur système et utilisateur du fil d'exécution en cours. Il ne " diff --git a/library/types.po b/library/types.po index 2f2eefec..45993bbf 100644 --- a/library/types.po +++ b/library/types.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-27 19:26+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2018-09-28 10:04+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -165,7 +165,7 @@ msgid "" "`lambda` expressions." msgstr "" -#: library/types.rst:113 +#: library/types.rst:112 msgid "" "Raises an :ref:`auditing event ` ``function.__new__`` with " "argument ``code``." @@ -199,7 +199,7 @@ msgstr "" msgid "The type for code objects such as returned by :func:`compile`." msgstr "" -#: library/types.rst:147 +#: library/types.rst:146 msgid "" "Raises an :ref:`auditing event ` ``code.__new__`` with arguments " "``code``, ``filename``, ``name``, ``argcount``, ``posonlyargcount``, " diff --git a/library/typing.po b/library/typing.po index c56b6380..4b451a5d 100644 --- a/library/typing.po +++ b/library/typing.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2019-11-26 17:28-0500\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -2088,11 +2088,11 @@ msgstr "" "instanciée par un utilisateur, mais peut être utilisée par des outils " "d'introspection." -#: library/typing.rst:1718 +#: library/typing.rst:1720 msgid "Constant" msgstr "" -#: library/typing.rst:1722 +#: library/typing.rst:1724 msgid "" "A special constant that is assumed to be ``True`` by 3rd party static type " "checkers. It is ``False`` at runtime. Usage::" @@ -2100,7 +2100,7 @@ msgstr "" "Constante spéciale qui vaut ``True`` pour les vérificateurs de type " "statiques tiers et ``False`` à l'exécution. Utilisation ::" -#: library/typing.rst:1731 +#: library/typing.rst:1733 #, fuzzy msgid "" "The first type annotation must be enclosed in quotes, making it a \"forward " @@ -2115,7 +2115,7 @@ msgstr "" "sorte que la deuxième annotation n'a pas besoin d'être placée entre " "guillemets." -#: library/typing.rst:1738 +#: library/typing.rst:1740 msgid "" "If ``from __future__ import annotations`` is used in Python 3.7 or later, " "annotations are not evaluated at function definition time. Instead, they are " diff --git a/library/unittest.mock.po b/library/unittest.mock.po index 83e607ac..2f2f6e24 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-24 09:01+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2019-04-22 12:07+0200\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" @@ -63,10 +63,11 @@ msgstr "" "`MagicMock` et :func:`patch`." #: library/unittest.mock.rst:33 +#, fuzzy msgid "" -"Mock is very easy to use and is designed for use with :mod:`unittest`. Mock " -"is based on the 'action -> assertion' pattern instead of 'record -> replay' " -"used by many mocking frameworks." +"Mock is designed for use with :mod:`unittest` and is based on the 'action -> " +"assertion' pattern instead of 'record -> replay' used by many mocking " +"frameworks." msgstr "" "*Mock* est très facile à utiliser et est conçu pour être utilisé avec :mod:" "`unittest`. *Mock* est basé sur le modèle *action -> assertion* au lieu de " diff --git a/library/unittest.po b/library/unittest.po index 23404a67..bc48daeb 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-10-15 09:14+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -2320,22 +2320,24 @@ msgstr "" "après :meth:`setUpClass` si :meth:`setUpClass` lève une exception." #: library/unittest.rst:1481 +#, fuzzy msgid "" "It is responsible for calling all the cleanup functions added by :meth:" -"`addCleanupClass`. If you need cleanup functions to be called *prior* to :" -"meth:`tearDownClass` then you can call :meth:`doCleanupsClass` yourself." +"`addClassCleanup`. If you need cleanup functions to be called *prior* to :" +"meth:`tearDownClass` then you can call :meth:`doClassCleanups` yourself." msgstr "" "Cette méthode est chargée d'appeler toutes les fonctions de nettoyage " -"ajoutées par :meth:`addCleanupClass`. Si vous avez besoin de fonctions de " -"nettoyage à appeler *avant* l'appel à :meth:`tearDownClass` alors vous " -"pouvez appeler :meth:`doCleanupsClass` vous-même." +"ajoutées par :meth:`addCleanup`. Si vous avez besoin de fonctions de " +"nettoyage à appeler *avant* l'appel à :meth:`tearDown` alors vous pouvez " +"appeler :meth:`doCleanups` vous-même." #: library/unittest.rst:1486 +#, fuzzy msgid "" -":meth:`doCleanupsClass` pops methods off the stack of cleanup functions one " +":meth:`doClassCleanups` pops methods off the stack of cleanup functions one " "at a time, so it can be called at any time." msgstr "" -":meth:`doCleanupsClass` extrait les méthodes de la pile des fonctions de " +":meth:`doCleanups` extrait les méthodes de la pile des fonctions de " "nettoyage une à la fois, de sorte qu'elles peuvent être appelées à tout " "moment." @@ -4101,3 +4103,21 @@ msgstr "" "gestionnaire *contrôle-c* s'il a été installé. Cette fonction peut également " "être utilisée comme décorateur de test pour supprimer temporairement le " "gestionnaire pendant l'exécution du test ::" + +#~ msgid "" +#~ "It is responsible for calling all the cleanup functions added by :meth:" +#~ "`addCleanupClass`. If you need cleanup functions to be called *prior* to :" +#~ "meth:`tearDownClass` then you can call :meth:`doCleanupsClass` yourself." +#~ msgstr "" +#~ "Cette méthode est chargée d'appeler toutes les fonctions de nettoyage " +#~ "ajoutées par :meth:`addCleanupClass`. Si vous avez besoin de fonctions de " +#~ "nettoyage à appeler *avant* l'appel à :meth:`tearDownClass` alors vous " +#~ "pouvez appeler :meth:`doCleanupsClass` vous-même." + +#~ msgid "" +#~ ":meth:`doCleanupsClass` pops methods off the stack of cleanup functions " +#~ "one at a time, so it can be called at any time." +#~ msgstr "" +#~ ":meth:`doCleanupsClass` extrait les méthodes de la pile des fonctions de " +#~ "nettoyage une à la fois, de sorte qu'elles peuvent être appelées à tout " +#~ "moment." diff --git a/library/urllib.request.po b/library/urllib.request.po index 423c735d..b2854b3d 100644 --- a/library/urllib.request.po +++ b/library/urllib.request.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -139,7 +139,7 @@ msgid "" "`ProxyHandler` objects." msgstr "" -#: library/urllib.request.rst:None +#: library/urllib.request.rst:90 msgid "" "Raises an :ref:`auditing event ` ``urllib.Request`` with arguments " "``fullurl``, ``data``, ``headers``, ``method``." diff --git a/library/winreg.po b/library/winreg.po index b22d11db..3251ea47 100644 --- a/library/winreg.po +++ b/library/winreg.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -74,7 +74,7 @@ msgid "" "exc:`OSError` exception is raised." msgstr "" -#: library/winreg.rst:57 +#: library/winreg.rst:56 msgid "" "Raises an :ref:`auditing event ` ``winreg.ConnectRegistry`` with " "arguments ``computer_name``, ``key``." @@ -113,13 +113,13 @@ msgstr "" msgid "If the key already exists, this function opens the existing key." msgstr "" -#: library/winreg.rst:113 +#: library/winreg.rst:112 msgid "" "Raises an :ref:`auditing event ` ``winreg.CreateKey`` with " "arguments ``key``, ``sub_key``, ``access``." msgstr "" -#: library/winreg.rst:115 library/winreg.rst:330 +#: library/winreg.rst:114 library/winreg.rst:329 msgid "" "Raises an :ref:`auditing event ` ``winreg.OpenKey/result`` with " "argument ``key``." @@ -158,7 +158,7 @@ msgid "" "removed. If the method fails, an :exc:`OSError` exception is raised." msgstr "" -#: library/winreg.rst:174 +#: library/winreg.rst:173 msgid "" "Raises an :ref:`auditing event ` ``winreg.DeleteKey`` with " "arguments ``key``, ``sub_key``, ``access``." @@ -219,7 +219,7 @@ msgid "" "indicating, no more values are available." msgstr "" -#: library/winreg.rst:207 +#: library/winreg.rst:206 msgid "" "Raises an :ref:`auditing event ` ``winreg.EnumKey`` with arguments " "``key``, ``index``." @@ -281,7 +281,7 @@ msgid "" "for :meth:`SetValueEx`)" msgstr "" -#: library/winreg.rst:242 +#: library/winreg.rst:241 msgid "" "Raises an :ref:`auditing event ` ``winreg.EnumValue`` with " "arguments ``key``, ``index``." @@ -392,7 +392,7 @@ msgstr "" msgid "If the function fails, :exc:`OSError` is raised." msgstr "" -#: library/winreg.rst:328 +#: library/winreg.rst:327 msgid "" "Raises an :ref:`auditing event ` ``winreg.OpenKey`` with arguments " "``key``, ``sub_key``, ``access``." diff --git a/reference/datamodel.po b/reference/datamodel.po index 4f7f2abe..ddf286d5 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-27 19:26+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-06-01 16:54+0900\n" "Last-Translator: Samuel Giffard \n" "Language-Team: FRENCH \n" @@ -2690,7 +2690,7 @@ msgstr "" "spéciales en tant que résultat d'une invocation implicite *via* la syntaxe " "du langage ou les fonctions natives. Lisez :ref:`special-lookup`." -#: reference/datamodel.rst:None +#: reference/datamodel.rst:1562 msgid "" "Raises an :ref:`auditing event ` ``object.__getattr__`` with " "arguments ``obj``, ``name``." @@ -2723,7 +2723,7 @@ msgstr "" "appeler la méthode de la classe de base avec le même nom, par exemple " "``object.__setattr__(self, name, value)``." -#: reference/datamodel.rst:None +#: reference/datamodel.rst:1579 msgid "" "Raises an :ref:`auditing event ` ``object.__setattr__`` with " "arguments ``obj``, ``name``, ``value``." @@ -2746,7 +2746,7 @@ msgstr "" "l'assigner. Elle ne doit être implémentée que si ``del obj.name`` a du sens " "pour cet objet." -#: reference/datamodel.rst:None +#: reference/datamodel.rst:1591 msgid "" "Raises an :ref:`auditing event ` ``object.__delattr__`` with " "arguments ``obj``, ``name``." diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index 86ab7b35..9f9eedeb 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-12-17 16:05+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2019-12-13 16:57+0100\n" "Last-Translator: Antoine \n" "Language-Team: FRENCH \n" @@ -1182,7 +1182,7 @@ msgstr "" ":func:`importlib.import_module` est fournie pour gérer les applications qui " "déterminent dynamiquement les modules à charger." -#: reference/simple_stmts.rst:843 +#: reference/simple_stmts.rst:842 msgid "" "Raises an :ref:`auditing event ` ``import`` with arguments " "``module``, ``filename``, ``sys.path``, ``sys.meta_path``, ``sys." diff --git a/using/cmdline.po b/using/cmdline.po index ed44fda3..0c6d66fd 100644 --- a/using/cmdline.po +++ b/using/cmdline.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-01 16:00+0200\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-08-27 10:39+0200\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -242,7 +242,7 @@ msgstr "" "invoqué quand ils sont exécutés comme scripts. Un exemple est le module :mod:" "`timeit`\\ ::" -#: using/cmdline.rst:116 +#: using/cmdline.rst:115 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_module`` with " "argument ``module-name``." @@ -347,7 +347,7 @@ msgstr "" "``site-packages`` de l'utilisateur. Toutes les variables d'environnement :" "envvar:`PYTHON*` sont aussi ignorées." -#: using/cmdline.rst:168 +#: using/cmdline.rst:167 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_file`` with " "argument ``filename``." @@ -1002,7 +1002,7 @@ msgstr "" "`sys.ps2` ainsi que le point d'entrée (*hook* en anglais) :data:`sys." "__interactivehook__` dans ce fichier." -#: using/cmdline.rst:None +#: using/cmdline.rst:558 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_startup`` with " "argument ``filename``." diff --git a/whatsnew/3.10.po b/whatsnew/3.10.po new file mode 100644 index 00000000..bb142707 --- /dev/null +++ b/whatsnew/3.10.po @@ -0,0 +1,1755 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2021, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-03-18 17:40+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: whatsnew/3.10.rst:3 +msgid "What's New In Python 3.10" +msgstr "" + +#: whatsnew/3.10.rst:0 +msgid "Release" +msgstr "" + +#: whatsnew/3.10.rst:5 +msgid "|release|" +msgstr "" + +#: whatsnew/3.10.rst:0 +msgid "Date" +msgstr "" + +#: whatsnew/3.10.rst:6 +msgid "|today|" +msgstr "" + +#: whatsnew/3.10.rst:48 +msgid "This article explains the new features in Python 3.10, compared to 3.9." +msgstr "" + +#: whatsnew/3.10.rst:50 +msgid "For full details, see the :ref:`changelog `." +msgstr "" + +#: whatsnew/3.10.rst:54 +msgid "" +"Prerelease users should be aware that this document is currently in draft " +"form. It will be updated substantially as Python 3.10 moves towards release, " +"so it's worth checking back even after reading earlier versions." +msgstr "" + +#: whatsnew/3.10.rst:60 +msgid "Summary -- Release highlights" +msgstr "" + +#: whatsnew/3.10.rst:1189 +msgid "New Features" +msgstr "" + +#: whatsnew/3.10.rst:76 +msgid "Parenthesized context managers" +msgstr "" + +#: whatsnew/3.10.rst:78 +msgid "" +"Using enclosing parentheses for continuation across multiple lines in " +"context managers is now supported. This allows formatting a long collection " +"of context managers in multiple lines in a similar way as it was previously " +"possible with import statements. For instance, all these examples are now " +"valid:" +msgstr "" + +#: whatsnew/3.10.rst:109 +msgid "" +"it is also possible to use a trailing comma at the end of the enclosed group:" +msgstr "" + +#: whatsnew/3.10.rst:121 +msgid "" +"This new syntax uses the non LL(1) capacities of the new parser. Check :pep:" +"`617` for more details." +msgstr "" + +#: whatsnew/3.10.rst:124 +msgid "" +"(Contributed by Guido van Rossum, Pablo Galindo and Lysandros Nikolaou in :" +"issue:`12782` and :issue:`40334`.)" +msgstr "" + +#: whatsnew/3.10.rst:129 +msgid "Better error messages in the parser" +msgstr "" + +#: whatsnew/3.10.rst:131 +msgid "" +"When parsing code that contains unclosed parentheses or brackets the " +"interpreter now includes the location of the unclosed bracket of parentheses " +"instead of displaying *SyntaxError: unexpected EOF while parsing* or " +"pointing to some incorrect location. For instance, consider the following " +"code (notice the unclosed '{'):" +msgstr "" + +#: whatsnew/3.10.rst:142 +msgid "" +"previous versions of the interpreter reported confusing places as the " +"location of the syntax error:" +msgstr "" + +#: whatsnew/3.10.rst:152 +msgid "but in Python3.10 a more informative error is emitted:" +msgstr "" + +#: whatsnew/3.10.rst:162 +msgid "" +"In a similar way, errors involving unclosed string literals (single and " +"triple quoted) now point to the start of the string instead of reporting EOF/" +"EOL." +msgstr "" + +#: whatsnew/3.10.rst:165 +msgid "" +"These improvements are inspired by previous work in the PyPy interpreter." +msgstr "" + +#: whatsnew/3.10.rst:167 +msgid "" +"(Contributed by Pablo Galindo in :issue:`42864` and Batuhan Taskaya in :" +"issue:`40176`.)" +msgstr "" + +#: whatsnew/3.10.rst:171 +msgid "PEP 626: Precise line numbers for debugging and other tools" +msgstr "" + +#: whatsnew/3.10.rst:173 +msgid "" +"PEP 626 brings more precise and reliable line numbers for debugging, " +"profiling and coverage tools. Tracing events, with the correct line number, " +"are generated for all lines of code executed and only for lines of code that " +"are executed." +msgstr "" + +#: whatsnew/3.10.rst:176 +msgid "" +"The ``f_lineo`` attribute of frame objects will always contain the expected " +"line number." +msgstr "" + +#: whatsnew/3.10.rst:180 +msgid "PEP 634: Structural Pattern Matching" +msgstr "" + +#: whatsnew/3.10.rst:182 +msgid "" +"Structural pattern matching has been added in the form of a *match " +"statement* and *case statements* of patterns with associated actions. " +"Patterns consist of sequences, mappings, primitive data types as well as " +"class instances. Pattern matching enables programs to extract information " +"from complex data types, branch on the structure of data, and apply specific " +"actions based on different forms of data." +msgstr "" + +#: whatsnew/3.10.rst:190 +msgid "Syntax and operations" +msgstr "" + +#: whatsnew/3.10.rst:192 +msgid "The generic syntax of pattern matching is::" +msgstr "" + +#: whatsnew/3.10.rst:204 +msgid "" +"A match statement takes an expression and compares its value to successive " +"patterns given as one or more case blocks. Specifically, pattern matching " +"operates by:" +msgstr "" + +#: whatsnew/3.10.rst:208 +msgid "using data with type and shape (the ``subject``)" +msgstr "" + +#: whatsnew/3.10.rst:209 +msgid "evaluating the ``subject`` in the ``match`` statement" +msgstr "" + +#: whatsnew/3.10.rst:210 +msgid "" +"comparing the subject with each pattern in a ``case`` statement from top to " +"bottom until a match is confirmed." +msgstr "" + +#: whatsnew/3.10.rst:212 +msgid "executing the action associated with the pattern of the confirmed match" +msgstr "" + +#: whatsnew/3.10.rst:214 +msgid "" +"If an exact match is not confirmed, the last case, a wildcard ``_``, if " +"provided, will be used as the matching case. If an exact match is not " +"confirmed and a wildcard case does not exists, the entire match block is a " +"no-op." +msgstr "" + +#: whatsnew/3.10.rst:220 +msgid "Declarative approach" +msgstr "" + +#: whatsnew/3.10.rst:222 +msgid "" +"Readers may be aware of pattern matching through the simple example of " +"matching a subject (data object) to a literal (pattern) with the switch " +"statement found in C, Java or JavaScript (and many other languages). Often " +"the switch statement is used for comparison of an object/expression with " +"case statements containing literals." +msgstr "" + +#: whatsnew/3.10.rst:228 +msgid "" +"More powerful examples of pattern matching can be found in languages, such " +"as Scala and Elixir. With structural pattern matching, the approach is " +"\"declarative\" and explicitly states the conditions (the patterns) for data " +"to match." +msgstr "" + +#: whatsnew/3.10.rst:232 +msgid "" +"While an \"imperative\" series of instructions using nested \"if\" " +"statements could be used to accomplish something similar to structural " +"pattern matching, it is less clear than the \"declarative\" approach. " +"Instead the \"declarative\" approach states the conditions to meet for a " +"match and is more readable through its explicit patterns. While structural " +"pattern matching can be used in its simplest form comparing a variable to a " +"literal in a case statement, its true value for Python lies in its handling " +"of the subject's type and shape." +msgstr "" + +#: whatsnew/3.10.rst:241 +msgid "Simple pattern: match to a literal" +msgstr "" + +#: whatsnew/3.10.rst:243 +msgid "" +"Let's look at this example as pattern matching in its simplest form: a " +"value, the subject, being matched to several literals, the patterns. In the " +"example below, ``status`` is the subject of the match statement. The " +"patterns are each of the case statements, where literals represent request " +"status codes. The associated action to the case is executed after a match::" +msgstr "" + +#: whatsnew/3.10.rst:260 +msgid "" +"If the above function is passed a ``status`` of 418, \"I'm a teapot\" is " +"returned. If the above function is passed a ``status`` of 500, the case " +"statement with ``_`` will match as a wildcard, and \"Something's wrong with " +"the Internet\" is returned. Note the last block: the variable name, ``_``, " +"acts as a *wildcard* and insures the subject will always match. The use of " +"``_`` is optional." +msgstr "" + +#: whatsnew/3.10.rst:267 +msgid "" +"You can combine several literals in a single pattern using ``|`` (\"or\")::" +msgstr "" + +#: whatsnew/3.10.rst:273 +msgid "Behavior without the wildcard" +msgstr "" + +#: whatsnew/3.10.rst:275 +msgid "" +"If we modify the above example by removing the last case block, the example " +"becomes::" +msgstr "" + +#: whatsnew/3.10.rst:287 +msgid "" +"Without the use of ``_`` in a case statement, a match may not exist. If no " +"match exists, the behavior is a no-op. For example, if ``status`` of 500 is " +"passed, a no-op occurs." +msgstr "" + +#: whatsnew/3.10.rst:292 +msgid "Patterns with a literal and variable" +msgstr "" + +#: whatsnew/3.10.rst:294 +msgid "" +"Patterns can look like unpacking assignments, and a pattern may be used to " +"bind variables. In this example, a data point can be unpacked to its x-" +"coordinate and y-coordinate::" +msgstr "" + +#: whatsnew/3.10.rst:311 +msgid "" +"The first pattern has two literals, ``(0, 0)``, and may be thought of as an " +"extension of the literal pattern shown above. The next two patterns combine " +"a literal and a variable, and the variable *binds* a value from the subject " +"(``point``). The fourth pattern captures two values, which makes it " +"conceptually similar to the unpacking assignment ``(x, y) = point``." +msgstr "" + +#: whatsnew/3.10.rst:318 +msgid "Patterns and classes" +msgstr "" + +#: whatsnew/3.10.rst:320 +msgid "" +"If you are using classes to structure your data, you can use as a pattern " +"the class name followed by an argument list resembling a constructor. This " +"pattern has the ability to capture class attributes into variables::" +msgstr "" + +#: whatsnew/3.10.rst:342 +msgid "Patterns with positional parameters" +msgstr "" + +#: whatsnew/3.10.rst:344 +msgid "" +"You can use positional parameters with some builtin classes that provide an " +"ordering for their attributes (e.g. dataclasses). You can also define a " +"specific position for attributes in patterns by setting the " +"``__match_args__`` special attribute in your classes. If it's set to (\"x\", " +"\"y\"), the following patterns are all equivalent (and all bind the ``y`` " +"attribute to the ``var`` variable)::" +msgstr "" + +#: whatsnew/3.10.rst:356 +msgid "Nested patterns" +msgstr "" + +#: whatsnew/3.10.rst:358 +msgid "" +"Patterns can be arbitrarily nested. For example, if our data is a short " +"list of points, it could be matched like this::" +msgstr "" + +#: whatsnew/3.10.rst:374 +msgid "Complex patterns and the wildcard" +msgstr "" + +#: whatsnew/3.10.rst:376 +msgid "" +"To this point, the examples have used ``_`` alone in the last case " +"statement. A wildcard can be used in more complex patterns, such as " +"``('error', code, _)``. For example::" +msgstr "" + +#: whatsnew/3.10.rst:386 +msgid "" +"In the above case, ``test_variable`` will match for ('error', code, 100) and " +"('error', code, 800)." +msgstr "" + +#: whatsnew/3.10.rst:390 +msgid "Guard" +msgstr "" + +#: whatsnew/3.10.rst:392 +msgid "" +"We can add an ``if`` clause to a pattern, known as a \"guard\". If the " +"guard is false, ``match`` goes on to try the next case block. Note that " +"value capture happens before the guard is evaluated::" +msgstr "" + +#: whatsnew/3.10.rst:403 +msgid "Other Key Features" +msgstr "" + +#: whatsnew/3.10.rst:405 +msgid "Several other key features:" +msgstr "" + +#: whatsnew/3.10.rst:407 +msgid "" +"Like unpacking assignments, tuple and list patterns have exactly the same " +"meaning and actually match arbitrary sequences. Technically, the subject " +"must be an instance of ``collections.abc.Sequence``. Therefore, an important " +"exception is that patterns don't match iterators. Also, to prevent a common " +"mistake, sequence patterns don't match strings." +msgstr "" + +#: whatsnew/3.10.rst:413 +msgid "" +"Sequence patterns support wildcards: ``[x, y, *rest]`` and ``(x, y, *rest)`` " +"work similar to wildcards in unpacking assignments. The name after ``*`` " +"may also be ``_``, so ``(x, y, *_)`` matches a sequence of at least two " +"items without binding the remaining items." +msgstr "" + +#: whatsnew/3.10.rst:418 +msgid "" +"Mapping patterns: ``{\"bandwidth\": b, \"latency\": l}`` captures the ``" +"\"bandwidth\"`` and ``\"latency\"`` values from a dict. Unlike sequence " +"patterns, extra keys are ignored. A wildcard ``**rest`` is also supported. " +"(But ``**_`` would be redundant, so it not allowed.)" +msgstr "" + +#: whatsnew/3.10.rst:423 +msgid "Subpatterns may be captured using the ``as`` keyword::" +msgstr "" + +#: whatsnew/3.10.rst:427 +msgid "" +"This binds x1, y1, x2, y2 like you would expect without the ``as`` clause, " +"and p2 to the entire second item of the subject." +msgstr "" + +#: whatsnew/3.10.rst:430 +msgid "" +"Most literals are compared by equality. However, the singletons ``True``, " +"``False`` and ``None`` are compared by identity." +msgstr "" + +#: whatsnew/3.10.rst:433 +msgid "" +"Named constants may be used in patterns. These named constants must be " +"dotted names to prevent the constant from being interpreted as a capture " +"variable::" +msgstr "" + +#: whatsnew/3.10.rst:451 +msgid "" +"For the full specification see :pep:`634`. Motivation and rationale are in :" +"pep:`635`, and a longer tutorial is in :pep:`636`." +msgstr "" + +#: whatsnew/3.10.rst:456 +msgid "New Features Related to Type Annotations" +msgstr "" + +#: whatsnew/3.10.rst:458 +msgid "" +"This section covers major changes affecting :pep:`484` type annotations and " +"the :mod:`typing` module." +msgstr "" + +#: whatsnew/3.10.rst:463 +msgid "PEP 563: Postponed Evaluation of Annotations Becomes Default" +msgstr "" + +#: whatsnew/3.10.rst:465 +msgid "" +"In Python 3.7, postponed evaluation of annotations was added, to be enabled " +"with a ``from __future__ import annotations`` directive. In 3.10 this " +"became the default behavior, even without that future directive. With this " +"being default, all annotations stored in :attr:`__annotations__` will be " +"strings. If needed, annotations can be resolved at runtime using :func:" +"`typing.get_type_hints`. See :pep:`563` for a full description. Also, the :" +"func:`inspect.signature` will try to resolve types from now on, and when it " +"fails it will fall back to showing the string annotations. (Contributed by " +"Batuhan Taskaya in :issue:`38605`.)" +msgstr "" + +#: whatsnew/3.10.rst:479 +msgid "PEP 604: New Type Union Operator" +msgstr "" + +#: whatsnew/3.10.rst:481 +msgid "" +"A new type union operator was introduced which enables the syntax ``X | Y``. " +"This provides a cleaner way of expressing 'either type X or type Y' instead " +"of using :data:`typing.Union`, especially in type hints (annotations)." +msgstr "" + +#: whatsnew/3.10.rst:485 +msgid "" +"In previous versions of Python, to apply a type hint for functions accepting " +"arguments of multiple types, :data:`typing.Union` was used::" +msgstr "" + +#: whatsnew/3.10.rst:492 +msgid "Type hints can now be written in a more succinct manner::" +msgstr "" + +#: whatsnew/3.10.rst:498 +msgid "" +"This new syntax is also accepted as the second argument to :func:" +"`isinstance` and :func:`issubclass`::" +msgstr "" + +#: whatsnew/3.10.rst:504 +msgid "See :ref:`types-union` and :pep:`604` for more details." +msgstr "" + +#: whatsnew/3.10.rst:506 +msgid "(Contributed by Maggie Moss and Philippe Prados in :issue:`41428`.)" +msgstr "" + +#: whatsnew/3.10.rst:510 +msgid "PEP 612: Parameter Specification Variables" +msgstr "" + +#: whatsnew/3.10.rst:512 +msgid "" +"Two new options to improve the information provided to static type checkers " +"for :pep:`484`\\ 's ``Callable`` have been added to the :mod:`typing` module." +msgstr "" + +#: whatsnew/3.10.rst:515 +msgid "" +"The first is the parameter specification variable. They are used to forward " +"the parameter types of one callable to another callable -- a pattern " +"commonly found in higher order functions and decorators. Examples of usage " +"can be found in :class:`typing.ParamSpec`. Previously, there was no easy way " +"to type annotate dependency of parameter types in such a precise manner." +msgstr "" + +#: whatsnew/3.10.rst:521 +msgid "" +"The second option is the new ``Concatenate`` operator. It's used in " +"conjunction with parameter specification variables to type annotate a higher " +"order callable which adds or removes parameters of another callable. " +"Examples of usage can be found in :class:`typing.Concatenate`." +msgstr "" + +#: whatsnew/3.10.rst:526 +msgid "" +"See :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing." +"Concatenate` and :pep:`612` for more details." +msgstr "" + +#: whatsnew/3.10.rst:529 +msgid "(Contributed by Ken Jin in :issue:`41559`.)" +msgstr "" + +#: whatsnew/3.10.rst:533 +msgid "PEP 613: TypeAlias Annotation" +msgstr "" + +#: whatsnew/3.10.rst:535 +msgid "" +":pep:`484` introduced the concept of type aliases, only requiring them to be " +"top-level unannotated assignments. This simplicity sometimes made it " +"difficult for type checkers to distinguish between type aliases and ordinary " +"assignments, especially when forward references or invalid types were " +"involved. Compare::" +msgstr "" + +#: whatsnew/3.10.rst:543 +msgid "" +"Now the :mod:`typing` module has a special annotation :data:`TypeAlias` to " +"declare type aliases more explicitly::" +msgstr "" + +#: whatsnew/3.10.rst:549 +msgid "See :pep:`613` for more details." +msgstr "" + +#: whatsnew/3.10.rst:551 +msgid "(Contributed by Mikhail Golubev in :issue:`41923`.)" +msgstr "" + +#: whatsnew/3.10.rst:555 +msgid "Other Language Changes" +msgstr "" + +#: whatsnew/3.10.rst:557 +msgid "" +"The :class:`int` type has a new method :meth:`int.bit_count`, returning the " +"number of ones in the binary expansion of a given integer, also known as the " +"population count. (Contributed by Niklas Fiekas in :issue:`29882`.)" +msgstr "" + +#: whatsnew/3.10.rst:561 +msgid "" +"The views returned by :meth:`dict.keys`, :meth:`dict.values` and :meth:`dict." +"items` now all have a ``mapping`` attribute that gives a :class:`types." +"MappingProxyType` object wrapping the original dictionary. (Contributed by " +"Dennis Sweeney in :issue:`40890`.)" +msgstr "" + +#: whatsnew/3.10.rst:566 +msgid "" +":pep:`618`: The :func:`zip` function now has an optional ``strict`` flag, " +"used to require that all the iterables have an equal length." +msgstr "" + +#: whatsnew/3.10.rst:569 +msgid "" +"Builtin and extension functions that take integer arguments no longer " +"accept :class:`~decimal.Decimal`\\ s, :class:`~fractions.Fraction`\\ s and " +"other objects that can be converted to integers only with a loss (e.g. that " +"have the :meth:`~object.__int__` method but do not have the :meth:`~object." +"__index__` method). (Contributed by Serhiy Storchaka in :issue:`37999`.)" +msgstr "" + +#: whatsnew/3.10.rst:576 +msgid "" +"If :func:`object.__ipow__` returns :const:`NotImplemented`, the operator " +"will correctly fall back to :func:`object.__pow__` and :func:`object." +"__rpow__` as expected. (Contributed by Alex Shkop in :issue:`38302`.)" +msgstr "" + +#: whatsnew/3.10.rst:580 +msgid "" +"Assignment expressions can now be used unparenthesized within set literals " +"and set comprehensions, as well as in sequence indexes (but not slices)." +msgstr "" + +#: whatsnew/3.10.rst:583 +msgid "" +"Functions have a new ``__builtins__`` attribute which is used to look for " +"builtin symbols when a function is executed, instead of looking into " +"``__globals__['__builtins__']``. The attribute is initialized from " +"``__globals__[\"__builtins__\"]`` if it exists, else from the current " +"builtins. (Contributed by Mark Shannon in :issue:`42990`.)" +msgstr "" + +#: whatsnew/3.10.rst:591 +msgid "New Modules" +msgstr "" + +#: whatsnew/3.10.rst:593 +msgid "None yet." +msgstr "" + +#: whatsnew/3.10.rst:597 +msgid "Improved Modules" +msgstr "" + +#: whatsnew/3.10.rst:600 +msgid "argparse" +msgstr "" + +#: whatsnew/3.10.rst:602 +msgid "" +"Misleading phrase \"optional arguments\" was replaced with \"options\" in " +"argparse help. Some tests might require adaptation if they rely on exact " +"output match. (Contributed by Raymond Hettinger in :issue:`9694`.)" +msgstr "" + +#: whatsnew/3.10.rst:606 +msgid "base64" +msgstr "" + +#: whatsnew/3.10.rst:608 +msgid "" +"Add :func:`base64.b32hexencode` and :func:`base64.b32hexdecode` to support " +"the Base32 Encoding with Extended Hex Alphabet." +msgstr "" + +#: whatsnew/3.10.rst:612 +msgid "codecs" +msgstr "" + +#: whatsnew/3.10.rst:614 +msgid "" +"Add a :func:`codecs.unregister` function to unregister a codec search " +"function. (Contributed by Hai Shi in :issue:`41842`.)" +msgstr "" + +#: whatsnew/3.10.rst:618 +msgid "collections.abc" +msgstr "" + +#: whatsnew/3.10.rst:620 +msgid "" +"The ``__args__`` of the :ref:`parameterized generic ` " +"for :class:`collections.abc.Callable` are now consistent with :data:`typing." +"Callable`. :class:`collections.abc.Callable` generic now flattens type " +"parameters, similar to what :data:`typing.Callable` currently does. This " +"means that ``collections.abc.Callable[[int, str], str]`` will have " +"``__args__`` of ``(int, str, str)``; previously this was ``([int, str], " +"str)``. To allow this change, :class:`types.GenericAlias` can now be " +"subclassed, and a subclass will be returned when subscripting the :class:" +"`collections.abc.Callable` type. Note that a :exc:`TypeError` may be raised " +"for invalid forms of parameterizing :class:`collections.abc.Callable` which " +"may have passed silently in Python 3.9. (Contributed by Ken Jin in :issue:" +"`42195`.)" +msgstr "" + +#: whatsnew/3.10.rst:633 +msgid "contextlib" +msgstr "" + +#: whatsnew/3.10.rst:635 +msgid "" +"Add a :func:`contextlib.aclosing` context manager to safely close async " +"generators and objects representing asynchronously released resources. " +"(Contributed by Joongi Kim and John Belmonte in :issue:`41229`.)" +msgstr "" + +#: whatsnew/3.10.rst:639 +msgid "" +"Add asynchronous context manager support to :func:`contextlib.nullcontext`. " +"(Contributed by Tom Gringauz in :issue:`41543`.)" +msgstr "" + +#: whatsnew/3.10.rst:643 +msgid "curses" +msgstr "" + +#: whatsnew/3.10.rst:645 +msgid "" +"The extended color functions added in ncurses 6.1 will be used transparently " +"by :func:`curses.color_content`, :func:`curses.init_color`, :func:`curses." +"init_pair`, and :func:`curses.pair_content`. A new function, :func:`curses." +"has_extended_color_support`, indicates whether extended color support is " +"provided by the underlying ncurses library. (Contributed by Jeffrey " +"Kintscher and Hans Petter Jansson in :issue:`36982`.)" +msgstr "" + +#: whatsnew/3.10.rst:652 +msgid "" +"The ``BUTTON5_*`` constants are now exposed in the :mod:`curses` module if " +"they are provided by the underlying curses library. (Contributed by Zackery " +"Spytz in :issue:`39273`.)" +msgstr "" + +#: whatsnew/3.10.rst:659 +msgid "distutils" +msgstr "" + +#: whatsnew/3.10.rst:661 +msgid "" +"The entire ``distutils`` package is deprecated, to be removed in Python " +"3.12. Its functionality for specifying package builds has already been " +"completely replaced by third-party packages ``setuptools`` and " +"``packaging``, and most other commonly used APIs are available elsewhere in " +"the standard library (such as :mod:`platform`, :mod:`shutil`, :mod:" +"`subprocess` or :mod:`sysconfig`). There are no plans to migrate any other " +"functionality from ``distutils``, and applications that are using other " +"functions should plan to make private copies of the code. Refer to :pep:" +"`632` for discussion." +msgstr "" + +#: whatsnew/3.10.rst:671 +msgid "" +"The ``bdist_wininst`` command deprecated in Python 3.8 has been removed. The " +"``bdist_wheel`` command is now recommended to distribute binary packages on " +"Windows. (Contributed by Victor Stinner in :issue:`42802`.)" +msgstr "" + +#: whatsnew/3.10.rst:677 +msgid "doctest" +msgstr "" + +#: whatsnew/3.10.rst:717 whatsnew/3.10.rst:792 +msgid "" +"When a module does not define ``__loader__``, fall back to ``__spec__." +"loader``. (Contributed by Brett Cannon in :issue:`42133`.)" +msgstr "" + +#: whatsnew/3.10.rst:683 +msgid "encodings" +msgstr "" + +#: whatsnew/3.10.rst:685 +msgid "" +":func:`encodings.normalize_encoding` now ignores non-ASCII characters. " +"(Contributed by Hai Shi in :issue:`39337`.)" +msgstr "" + +#: whatsnew/3.10.rst:689 +msgid "gc" +msgstr "" + +#: whatsnew/3.10.rst:691 +msgid "" +"Added audit hooks for :func:`gc.get_objects`, :func:`gc.get_referrers` and :" +"func:`gc.get_referents`. (Contributed by Pablo Galindo in :issue:`43439`.)" +msgstr "" + +#: whatsnew/3.10.rst:695 +msgid "glob" +msgstr "" + +#: whatsnew/3.10.rst:697 +msgid "" +"Added the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and :func:" +"`~glob.iglob` which allow to specify the root directory for searching. " +"(Contributed by Serhiy Storchaka in :issue:`38144`.)" +msgstr "" + +#: whatsnew/3.10.rst:702 +msgid "importlib.metadata" +msgstr "" + +#: whatsnew/3.10.rst:704 +msgid "Feature parity with ``importlib_metadata`` 3.7." +msgstr "" + +#: whatsnew/3.10.rst:706 +msgid "" +":func:`importlib.metadata.entry_points` now provides a nicer experience for " +"selecting entry points by group and name through a new :class:`importlib." +"metadata.EntryPoints` class." +msgstr "" + +#: whatsnew/3.10.rst:710 +msgid "" +"Added :func:`importlib.metadata.packages_distributions` for resolving top-" +"level Python modules and packages to their :class:`importlib.metadata." +"Distribution`." +msgstr "" + +#: whatsnew/3.10.rst:715 +msgid "inspect" +msgstr "" + +#: whatsnew/3.10.rst:720 +msgid "" +"Added *globalns* and *localns* parameters in :func:`~inspect.signature` and :" +"meth:`inspect.Signature.from_callable` to retrieve the annotations in given " +"local and global namespaces. (Contributed by Batuhan Taskaya in :issue:" +"`41960`.)" +msgstr "" + +#: whatsnew/3.10.rst:726 +msgid "linecache" +msgstr "" + +#: whatsnew/3.10.rst:732 +msgid "os" +msgstr "" + +#: whatsnew/3.10.rst:734 +msgid "" +"Added :func:`os.cpu_count()` support for VxWorks RTOS. (Contributed by " +"Peixing Xin in :issue:`41440`.)" +msgstr "" + +#: whatsnew/3.10.rst:737 +msgid "" +"Added a new function :func:`os.eventfd` and related helpers to wrap the " +"``eventfd2`` syscall on Linux. (Contributed by Christian Heimes in :issue:" +"`41001`.)" +msgstr "" + +#: whatsnew/3.10.rst:741 +msgid "" +"Added :func:`os.splice()` that allows to move data between two file " +"descriptors without copying between kernel address space and user address " +"space, where one of the file descriptors must refer to a pipe. (Contributed " +"by Pablo Galindo in :issue:`41625`.)" +msgstr "" + +#: whatsnew/3.10.rst:746 +msgid "" +"Added :data:`~os.O_EVTONLY`, :data:`~os.O_FSYNC`, :data:`~os.O_SYMLINK` and :" +"data:`~os.O_NOFOLLOW_ANY` for macOS. (Contributed by Dong-hee Na in :issue:" +"`43106`.)" +msgstr "" + +#: whatsnew/3.10.rst:751 +msgid "pathlib" +msgstr "" + +#: whatsnew/3.10.rst:753 +msgid "" +"Added slice support to :attr:`PurePath.parents `. " +"(Contributed by Joshua Cannon in :issue:`35498`)" +msgstr "" + +#: whatsnew/3.10.rst:756 +msgid "" +"Added negative indexing support to :attr:`PurePath.parents `. (Contributed by Yaroslav Pankovych in :issue:`21041`)" +msgstr "" + +#: whatsnew/3.10.rst:761 +msgid "platform" +msgstr "" + +#: whatsnew/3.10.rst:763 +msgid "" +"Added :func:`platform.freedesktop_os_release()` to retrieve operation system " +"identification from `freedesktop.org os-release `_ standard file. (Contributed by " +"Christian Heimes in :issue:`28468`)" +msgstr "" + +#: whatsnew/3.10.rst:769 +msgid "py_compile" +msgstr "" + +#: whatsnew/3.10.rst:771 +msgid "" +"Added ``--quiet`` option to command-line interface of :mod:`py_compile`. " +"(Contributed by Gregory Schevchenko in :issue:`38731`.)" +msgstr "" + +#: whatsnew/3.10.rst:775 +msgid "pyclbr" +msgstr "" + +#: whatsnew/3.10.rst:777 +msgid "" +"Added an ``end_lineno`` attribute to the ``Function`` and ``Class`` objects " +"in the tree returned by :func:`pyclbr.readline` and :func:`pyclbr." +"readline_ex`. It matches the existing (start) ``lineno``. (Contributed by " +"Aviral Srivastava in :issue:`38307`.)" +msgstr "" + +#: whatsnew/3.10.rst:783 +msgid "shelve" +msgstr "" + +#: whatsnew/3.10.rst:785 +msgid "" +"The :mod:`shelve` module now uses :data:`pickle.DEFAULT_PROTOCOL` by default " +"instead of :mod:`pickle` protocol ``3`` when creating shelves. (Contributed " +"by Zackery Spytz in :issue:`34204`.)" +msgstr "" + +#: whatsnew/3.10.rst:790 +msgid "site" +msgstr "" + +#: whatsnew/3.10.rst:796 +msgid "socket" +msgstr "" + +#: whatsnew/3.10.rst:798 +msgid "" +"The exception :exc:`socket.timeout` is now an alias of :exc:`TimeoutError`. " +"(Contributed by Christian Heimes in :issue:`42413`.)" +msgstr "" + +#: whatsnew/3.10.rst:802 +msgid "sys" +msgstr "" + +#: whatsnew/3.10.rst:804 +msgid "" +"Add :data:`sys.orig_argv` attribute: the list of the original command line " +"arguments passed to the Python executable. (Contributed by Victor Stinner " +"in :issue:`23427`.)" +msgstr "" + +#: whatsnew/3.10.rst:808 +msgid "" +"Add :data:`sys.stdlib_module_names`, containing the list of the standard " +"library module names. (Contributed by Victor Stinner in :issue:`42955`.)" +msgstr "" + +#: whatsnew/3.10.rst:813 +msgid "_thread" +msgstr "" + +#: whatsnew/3.10.rst:815 +msgid "" +":func:`_thread.interrupt_main` now takes an optional signal number to " +"simulate (the default is still :data:`signal.SIGINT`). (Contributed by " +"Antoine Pitrou in :issue:`43356`.)" +msgstr "" + +#: whatsnew/3.10.rst:820 +msgid "threading" +msgstr "" + +#: whatsnew/3.10.rst:822 +msgid "" +"Added :func:`threading.gettrace` and :func:`threading.getprofile` to " +"retrieve the functions set by :func:`threading.settrace` and :func:" +"`threading.setprofile` respectively. (Contributed by Mario Corchero in :" +"issue:`42251`.)" +msgstr "" + +#: whatsnew/3.10.rst:827 +msgid "" +"Add :data:`threading.__excepthook__` to allow retrieving the original value " +"of :func:`threading.excepthook` in case it is set to a broken or a different " +"value. (Contributed by Mario Corchero in :issue:`42308`.)" +msgstr "" + +#: whatsnew/3.10.rst:833 +msgid "traceback" +msgstr "" + +#: whatsnew/3.10.rst:835 +msgid "" +"The :func:`~traceback.format_exception`, :func:`~traceback." +"format_exception_only`, and :func:`~traceback.print_exception` functions can " +"now take an exception object as a positional-only argument. (Contributed by " +"Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" +msgstr "" + +#: whatsnew/3.10.rst:842 +msgid "types" +msgstr "" + +#: whatsnew/3.10.rst:844 +msgid "" +"Reintroduced the :data:`types.EllipsisType`, :data:`types.NoneType` and :" +"data:`types.NotImplementedType` classes, providing a new set of types " +"readily interpretable by type checkers. (Contributed by Bas van Beek in :" +"issue:`41810`.)" +msgstr "" + +#: whatsnew/3.10.rst:850 +msgid "typing" +msgstr "" + +#: whatsnew/3.10.rst:852 +msgid "For major changes, see `New Features Related to Type Annotations`_." +msgstr "" + +#: whatsnew/3.10.rst:854 +msgid "" +"The behavior of :class:`typing.Literal` was changed to conform with :pep:" +"`586` and to match the behavior of static type checkers specified in the PEP." +msgstr "" + +#: whatsnew/3.10.rst:857 +msgid "``Literal`` now de-duplicates parameters." +msgstr "" + +#: whatsnew/3.10.rst:858 +msgid "" +"Equality comparisons between ``Literal`` objects are now order independent." +msgstr "" + +#: whatsnew/3.10.rst:859 +msgid "" +"``Literal`` comparisons now respects types. For example, ``Literal[0] == " +"Literal[False]`` previously evaluated to ``True``. It is now ``False``. To " +"support this change, the internally used type cache now supports " +"differentiating types." +msgstr "" + +#: whatsnew/3.10.rst:863 +msgid "" +"``Literal`` objects will now raise a :exc:`TypeError` exception during " +"equality comparisons if one of their parameters are not :term:`immutable`. " +"Note that declaring ``Literal`` with mutable parameters will not throw an " +"error::" +msgstr "" + +#: whatsnew/3.10.rst:875 +msgid "(Contributed by Yurii Karabas in :issue:`42345`.)" +msgstr "" + +#: whatsnew/3.10.rst:878 +msgid "unittest" +msgstr "" + +#: whatsnew/3.10.rst:880 +msgid "" +"Add new method :meth:`~unittest.TestCase.assertNoLogs` to complement the " +"existing :meth:`~unittest.TestCase.assertLogs`. (Contributed by Kit Yan Choi " +"in :issue:`39385`.)" +msgstr "" + +#: whatsnew/3.10.rst:885 +msgid "urllib.parse" +msgstr "" + +#: whatsnew/3.10.rst:887 +msgid "" +"Python versions earlier than Python 3.10 allowed using both ``;`` and ``&`` " +"as query parameter separators in :func:`urllib.parse.parse_qs` and :func:" +"`urllib.parse.parse_qsl`. Due to security concerns, and to conform with " +"newer W3C recommendations, this has been changed to allow only a single " +"separator key, with ``&`` as the default. This change also affects :func:" +"`cgi.parse` and :func:`cgi.parse_multipart` as they use the affected " +"functions internally. For more details, please see their respective " +"documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin " +"in :issue:`42967`.)" +msgstr "" + +#: whatsnew/3.10.rst:898 +msgid "xml" +msgstr "" + +#: whatsnew/3.10.rst:900 +msgid "" +"Add a :class:`~xml.sax.handler.LexicalHandler` class to the :mod:`xml.sax." +"handler` module. (Contributed by Jonathan Gossage and Zackery Spytz in :" +"issue:`35018`.)" +msgstr "" + +#: whatsnew/3.10.rst:905 +msgid "zipimport" +msgstr "" + +#: whatsnew/3.10.rst:906 +msgid "" +"Add methods related to :pep:`451`: :meth:`~zipimport.zipimporter." +"find_spec`, :meth:`zipimport.zipimporter.create_module`, and :meth:" +"`zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon in :issue:" +"`42131`." +msgstr "" + +#: whatsnew/3.10.rst:913 +msgid "Optimizations" +msgstr "" + +#: whatsnew/3.10.rst:915 +msgid "" +"Constructors :func:`str`, :func:`bytes` and :func:`bytearray` are now faster " +"(around 30--40% for small objects). (Contributed by Serhiy Storchaka in :" +"issue:`41334`.)" +msgstr "" + +#: whatsnew/3.10.rst:919 +msgid "" +"The :mod:`runpy` module now imports fewer modules. The ``python3 -m module-" +"name`` command startup time is 1.3x faster in average. (Contributed by " +"Victor Stinner in :issue:`41006`.)" +msgstr "" + +#: whatsnew/3.10.rst:924 +msgid "" +"The ``LOAD_ATTR`` instruction now uses new \"per opcode cache\" mechanism. " +"It is about 36% faster now for regular attributes and 44% faster for slots. " +"(Contributed by Pablo Galindo and Yury Selivanov in :issue:`42093` and Guido " +"van Rossum in :issue:`42927`, based on ideas implemented originally in PyPy " +"and MicroPython.)" +msgstr "" + +#: whatsnew/3.10.rst:930 +msgid "" +"When building Python with ``--enable-optimizations`` now ``-fno-semantic-" +"interposition`` is added to both the compile and link line. This speeds " +"builds of the Python interpreter created with ``--enable-shared`` with " +"``gcc`` by up to 30%. See `this article `_ for more details. (Contributed by Victor Stinner and Pablo " +"Galindo in :issue:`38980`.)" +msgstr "" + +#: whatsnew/3.10.rst:939 +msgid "" +"Function parameters and their annotations are no longer computed at runtime, " +"but rather at compilation time. They are stored as a tuple of strings at " +"the bytecode level. It is now around 2 times faster to create a function " +"with parameter annotations. (Contributed by Yurii Karabas and Inada Naoki " +"in :issue:`42202`)" +msgstr "" + +#: whatsnew/3.10.rst:945 +msgid "" +"Substring search functions such as ``str1 in str2`` and ``str2.find(str1)`` " +"now sometimes use Crochemore & Perrin's \"Two-Way\" string searching " +"algorithm to avoid quadratic behavior on long strings. (Contributed by " +"Dennis Sweeney in :issue:`41972`)" +msgstr "" + +#: whatsnew/3.10.rst:1304 +msgid "Deprecated" +msgstr "" + +#: whatsnew/3.10.rst:953 +msgid "" +"Starting in this release, there will be a concerted effort to begin cleaning " +"up old import semantics that were kept for Python 2.7 compatibility. " +"Specifically, :meth:`~importlib.abc.PathEntryFinder.find_loader`/:meth:" +"`~importlib.abc.Finder.find_module` (superseded by :meth:`~importlib.abc." +"Finder.find_spec`), :meth:`~importlib.abc.Loader.load_module` (superseded " +"by :meth:`~importlib.abc.Loader.exec_module`), :meth:`~importlib.abc.Loader." +"module_repr` (which the import system takes care of for you), the " +"``__package__`` attribute (superseded by ``__spec__.parent``), the " +"``__loader__`` attribute (superseded by ``__spec__.loader``), and the " +"``__cached__`` attribute (superseded by ``__spec__.cached``) will slowly be " +"removed (as well as other classes and methods in :mod:`importlib`). :exc:" +"`ImportWarning` and/or :exc:`DeprecationWarning` will be raised as " +"appropriate to help identify code which needs updating during this " +"transition." +msgstr "" + +#: whatsnew/3.10.rst:970 +msgid "" +"The entire ``distutils`` namespace is deprecated, to be removed in Python " +"3.12. Refer to the :ref:`module changes ` section for " +"more information." +msgstr "" + +#: whatsnew/3.10.rst:974 +msgid "" +"Non-integer arguments to :func:`random.randrange` are deprecated. The :exc:" +"`ValueError` is deprecated in favor of a :exc:`TypeError`. (Contributed by " +"Serhiy Storchaka and Raymond Hettinger in :issue:`37319`.)" +msgstr "" + +#: whatsnew/3.10.rst:978 +msgid "" +"The various ``load_module()`` methods of :mod:`importlib` have been " +"documented as deprecated since Python 3.6, but will now also trigger a :exc:" +"`DeprecationWarning`. Use :meth:`~importlib.abc.Loader.exec_module` instead. " +"(Contributed by Brett Cannon in :issue:`26131`.)" +msgstr "" + +#: whatsnew/3.10.rst:984 +msgid "" +":meth:`zimport.zipimporter.load_module` has been deprecated in preference " +"for :meth:`~zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon " +"in :issue:`26131`.)" +msgstr "" + +#: whatsnew/3.10.rst:988 +msgid "" +"The use of :meth:`~importlib.abc.Loader.load_module` by the import system " +"now triggers an :exc:`ImportWarning` as :meth:`~importlib.abc.Loader." +"exec_module` is preferred. (Contributed by Brett Cannon in :issue:`26131`.)" +msgstr "" + +#: whatsnew/3.10.rst:993 +msgid "" +"``sqlite3.OptimizedUnicode`` has been undocumented and obsolete since Python " +"3.3, when it was made an alias to :class:`str`. It is now deprecated, " +"scheduled for removal in Python 3.12. (Contributed by Erlend E. Aasland in :" +"issue:`42264`.)" +msgstr "" + +#: whatsnew/3.10.rst:998 +msgid "" +"The undocumented built-in function ``sqlite3.enable_shared_cache`` is now " +"deprecated, scheduled for removal in Python 3.12. Its use is strongly " +"discouraged by the SQLite3 documentation. See `the SQLite3 docs `_ for more details. If shared " +"cache must be used, open the database in URI mode using the ``cache=shared`` " +"query parameter. (Contributed by Erlend E. Aasland in :issue:`24464`.)" +msgstr "" + +#: whatsnew/3.10.rst:1312 +msgid "Removed" +msgstr "" + +#: whatsnew/3.10.rst:1010 +msgid "" +"Removed special methods ``__int__``, ``__float__``, ``__floordiv__``, " +"``__mod__``, ``__divmod__``, ``__rfloordiv__``, ``__rmod__`` and " +"``__rdivmod__`` of the :class:`complex` class. They always raised a :exc:" +"`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.)" +msgstr "" + +#: whatsnew/3.10.rst:1016 +msgid "" +"The ``ParserBase.error()`` method from the private and undocumented " +"``_markupbase`` module has been removed. :class:`html.parser.HTMLParser` is " +"the only subclass of ``ParserBase`` and its ``error()`` implementation has " +"already been removed in Python 3.5. (Contributed by Berker Peksag in :issue:" +"`31844`.)" +msgstr "" + +#: whatsnew/3.10.rst:1022 +msgid "" +"Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal " +"PyCapsule object. The related private ``_PyUnicode_Name_CAPI`` structure was " +"moved to the internal C API. (Contributed by Victor Stinner in :issue:" +"`42157`.)" +msgstr "" + +#: whatsnew/3.10.rst:1027 +msgid "" +"Removed the ``parser`` module, which was deprecated in 3.9 due to the switch " +"to the new PEG parser, as well as all the C source and header files that " +"were only being used by the old parser, including ``node.h``, ``parser.h``, " +"``graminit.h`` and ``grammar.h``." +msgstr "" + +#: whatsnew/3.10.rst:1032 +msgid "" +"Removed the Public C API functions :c:func:" +"`PyParser_SimpleParseStringFlags`, :c:func:" +"`PyParser_SimpleParseStringFlagsFilename`, :c:func:" +"`PyParser_SimpleParseFileFlags` and :c:func:`PyNode_Compile` that were " +"deprecated in 3.9 due to the switch to the new PEG parser." +msgstr "" + +#: whatsnew/3.10.rst:1037 +msgid "" +"Removed the ``formatter`` module, which was deprecated in Python 3.4. It is " +"somewhat obsolete, little used, and not tested. It was originally scheduled " +"to be removed in Python 3.6, but such removals were delayed until after " +"Python 2.7 EOL. Existing users should copy whatever classes they use into " +"their code. (Contributed by Dong-hee Na and Terry J. Reedy in :issue:" +"`42299`.)" +msgstr "" + +#: whatsnew/3.10.rst:1044 +msgid "" +"Removed the :c:func:`PyModule_GetWarningsModule` function that was useless " +"now due to the _warnings module was converted to a builtin module in 2.6. " +"(Contributed by Hai Shi in :issue:`42599`.)" +msgstr "" + +#: whatsnew/3.10.rst:1048 +msgid "" +"Remove deprecated aliases to :ref:`collections-abstract-base-classes` from " +"the :mod:`collections` module. (Contributed by Victor Stinner in :issue:" +"`37324`.)" +msgstr "" + +#: whatsnew/3.10.rst:1052 +msgid "" +"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" +"doc:`high-level API <../library/asyncio-api-index>` following deprecation in " +"Python 3.8. The motivation behind this change is multifold:" +msgstr "" + +#: whatsnew/3.10.rst:1056 +msgid "This simplifies the high-level API." +msgstr "" + +#: whatsnew/3.10.rst:1057 +msgid "" +"The functions in the high-level API have been implicitly getting the current " +"thread's running event loop since Python 3.7. There isn't a need to pass " +"the event loop to the API in most normal use cases." +msgstr "" + +#: whatsnew/3.10.rst:1060 +msgid "" +"Event loop passing is error-prone especially when dealing with loops running " +"in different threads." +msgstr "" + +#: whatsnew/3.10.rst:1063 +msgid "" +"Note that the low-level API will still accept ``loop``. See `Changes in the " +"Python API`_ for examples of how to replace existing code." +msgstr "" + +#: whatsnew/3.10.rst:1125 +msgid "" +"(Contributed by Yurii Karabas, Andrew Svetlov, Yury Selivanov and Kyle " +"Stanley in :issue:`42392`.)" +msgstr "" + +#: whatsnew/3.10.rst:1247 +msgid "Porting to Python 3.10" +msgstr "" + +#: whatsnew/3.10.rst:1073 +msgid "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code." +msgstr "" + +#: whatsnew/3.10.rst:1078 +msgid "Changes in the Python API" +msgstr "" + +#: whatsnew/3.10.rst:1080 +msgid "" +"The *etype* parameters of the :func:`~traceback.format_exception`, :func:" +"`~traceback.format_exception_only`, and :func:`~traceback.print_exception` " +"functions in the :mod:`traceback` module have been renamed to *exc*. " +"(Contributed by Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" +msgstr "" + +#: whatsnew/3.10.rst:1086 +msgid "" +":mod:`atexit`: At Python exit, if a callback registered with :func:`atexit." +"register` fails, its exception is now logged. Previously, only some " +"exceptions were logged, and the last exception was always silently ignored. " +"(Contributed by Victor Stinner in :issue:`42639`.)" +msgstr "" + +#: whatsnew/3.10.rst:1092 +msgid "" +":class:`collections.abc.Callable` generic now flattens type parameters, " +"similar to what :data:`typing.Callable` currently does. This means that " +"``collections.abc.Callable[[int, str], str]`` will have ``__args__`` of " +"``(int, str, str)``; previously this was ``([int, str], str)``. Code which " +"accesses the arguments via :func:`typing.get_args` or ``__args__`` need to " +"account for this change. Furthermore, :exc:`TypeError` may be raised for " +"invalid forms of parameterizing :class:`collections.abc.Callable` which may " +"have passed silently in Python 3.9. (Contributed by Ken Jin in :issue:" +"`42195`.)" +msgstr "" + +#: whatsnew/3.10.rst:1102 +msgid "" +":meth:`socket.htons` and :meth:`socket.ntohs` now raise :exc:`OverflowError` " +"instead of :exc:`DeprecationWarning` if the given parameter will not fit in " +"a 16-bit unsigned integer. (Contributed by Erlend E. Aasland in :issue:" +"`42393`.)" +msgstr "" + +#: whatsnew/3.10.rst:1107 +msgid "" +"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" +"doc:`high-level API <../library/asyncio-api-index>` following deprecation in " +"Python 3.8." +msgstr "" + +#: whatsnew/3.10.rst:1111 +msgid "A coroutine that currently look like this::" +msgstr "" + +#: whatsnew/3.10.rst:1116 +msgid "Should be replaced with this::" +msgstr "" + +#: whatsnew/3.10.rst:1121 +msgid "" +"If ``foo()`` was specifically designed *not* to run in the current thread's " +"running event loop (e.g. running in another thread's event loop), consider " +"using :func:`asyncio.run_coroutine_threadsafe` instead." +msgstr "" + +#: whatsnew/3.10.rst:1128 +msgid "" +"The :data:`types.FunctionType` constructor now inherits the current builtins " +"if the *globals* dictionary has no ``\"__builtins__\"`` key, rather than " +"using ``{\"None\": None}`` as builtins: same behavior as :func:`eval` and :" +"func:`exec` functions. Defining a function with ``def function(...): ...`` " +"in Python is not affected, globals cannot be overriden with this syntax: it " +"also inherits the current builtins. (Contributed by Victor Stinner in :issue:" +"`42990`.)" +msgstr "" + +#: whatsnew/3.10.rst:1137 +msgid "CPython bytecode changes" +msgstr "" + +#: whatsnew/3.10.rst:1139 +msgid "" +"The ``MAKE_FUNCTION`` instruction accepts tuple of strings as annotations " +"instead of dictionary. (Contributed by Yurii Karabas and Inada Naoki in :" +"issue:`42202`)" +msgstr "" + +#: whatsnew/3.10.rst:1144 +msgid "Build Changes" +msgstr "" + +#: whatsnew/3.10.rst:1146 +msgid "" +"The C99 functions :c:func:`snprintf` and :c:func:`vsnprintf` are now " +"required to build Python. (Contributed by Victor Stinner in :issue:`36020`.)" +msgstr "" + +#: whatsnew/3.10.rst:1150 +msgid "" +":mod:`sqlite3` requires SQLite 3.7.15 or higher. (Contributed by Sergey " +"Fedoseev and Erlend E. Aasland :issue:`40744` and :issue:`40810`.)" +msgstr "" + +#: whatsnew/3.10.rst:1153 +msgid "" +"The :mod:`atexit` module must now always be built as a built-in module. " +"(Contributed by Victor Stinner in :issue:`42639`.)" +msgstr "" + +#: whatsnew/3.10.rst:1156 +msgid "" +"Added ``--disable-test-modules`` option to the ``configure`` script: don't " +"build nor install test modules. (Contributed by Xavier de Gaye, Thomas " +"Petazzoni and Peixing Xin in :issue:`27640`.)" +msgstr "" + +#: whatsnew/3.10.rst:1160 +msgid "" +"Add ``--with-wheel-pkg-dir=PATH`` option to the ``./configure`` script. If " +"specified, the :mod:`ensurepip` module looks for ``setuptools`` and ``pip`` " +"wheel packages in this directory: if both are present, these wheel packages " +"are used instead of ensurepip bundled wheel packages." +msgstr "" + +#: whatsnew/3.10.rst:1165 +msgid "" +"Some Linux distribution packaging policies recommend against bundling " +"dependencies. For example, Fedora installs wheel packages in the ``/usr/" +"share/python-wheels/`` directory and don't install the ``ensurepip." +"_bundled`` package." +msgstr "" + +#: whatsnew/3.10.rst:1170 +msgid "(Contributed by Victor Stinner in :issue:`42856`.)" +msgstr "" + +#: whatsnew/3.10.rst:1172 +msgid "" +"Add a new configure ``--without-static-libpython`` option to not build the " +"``libpythonMAJOR.MINOR.a`` static library and not install the ``python.o`` " +"object file." +msgstr "" + +#: whatsnew/3.10.rst:1176 +msgid "(Contributed by Victor Stinner in :issue:`43103`.)" +msgstr "" + +#: whatsnew/3.10.rst:1178 +msgid "" +"The ``configure`` script now uses the ``pkg-config`` utility, if available, " +"to detect the location of Tcl/Tk headers and libraries. As before, those " +"locations can be explicitly specified with the ``--with-tcltk-includes`` and " +"``--with-tcltk-libs`` configuration options. (Contributed by Manolis " +"Stamatogiannakis in :issue:`42603`.)" +msgstr "" + +#: whatsnew/3.10.rst:1186 +msgid "C API Changes" +msgstr "" + +#: whatsnew/3.10.rst:1191 +msgid "" +"The result of :c:func:`PyNumber_Index` now always has exact type :class:" +"`int`. Previously, the result could have been an instance of a subclass of " +"``int``. (Contributed by Serhiy Storchaka in :issue:`40792`.)" +msgstr "" + +#: whatsnew/3.10.rst:1195 +msgid "" +"Add a new :c:member:`~PyConfig.orig_argv` member to the :c:type:`PyConfig` " +"structure: the list of the original command line arguments passed to the " +"Python executable. (Contributed by Victor Stinner in :issue:`23427`.)" +msgstr "" + +#: whatsnew/3.10.rst:1200 +msgid "" +"The :c:func:`PyDateTime_DATE_GET_TZINFO` and :c:func:" +"`PyDateTime_TIME_GET_TZINFO` macros have been added for accessing the " +"``tzinfo`` attributes of :class:`datetime.datetime` and :class:`datetime." +"time` objects. (Contributed by Zackery Spytz in :issue:`30155`.)" +msgstr "" + +#: whatsnew/3.10.rst:1206 +msgid "" +"Add a :c:func:`PyCodec_Unregister` function to unregister a codec search " +"function. (Contributed by Hai Shi in :issue:`41842`.)" +msgstr "" + +#: whatsnew/3.10.rst:1210 +msgid "" +"The :c:func:`PyIter_Send` function was added to allow sending value into " +"iterator without raising ``StopIteration`` exception. (Contributed by " +"Vladimir Matveev in :issue:`41756`.)" +msgstr "" + +#: whatsnew/3.10.rst:1214 +msgid "" +"Added :c:func:`PyUnicode_AsUTF8AndSize` to the limited C API. (Contributed " +"by Alex Gaynor in :issue:`41784`.)" +msgstr "" + +#: whatsnew/3.10.rst:1217 +msgid "" +"Added :c:func:`PyModule_AddObjectRef` function: similar to :c:func:" +"`PyModule_AddObject` but don't steal a reference to the value on success. " +"(Contributed by Victor Stinner in :issue:`1635741`.)" +msgstr "" + +#: whatsnew/3.10.rst:1222 +msgid "" +"Added :c:func:`Py_NewRef` and :c:func:`Py_XNewRef` functions to increment " +"the reference count of an object and return the object. (Contributed by " +"Victor Stinner in :issue:`42262`.)" +msgstr "" + +#: whatsnew/3.10.rst:1226 +msgid "" +"The :c:func:`PyType_FromSpecWithBases` and :c:func:" +"`PyType_FromModuleAndSpec` functions now accept a single class as the " +"*bases* argument. (Contributed by Serhiy Storchaka in :issue:`42423`.)" +msgstr "" + +#: whatsnew/3.10.rst:1230 +msgid "" +"The :c:func:`PyType_FromModuleAndSpec` function now accepts NULL ``tp_doc`` " +"slot. (Contributed by Hai Shi in :issue:`41832`.)" +msgstr "" + +#: whatsnew/3.10.rst:1234 +msgid "" +"The :c:func:`PyType_GetSlot` function can accept static types. (Contributed " +"by Hai Shi and Petr Viktorin in :issue:`41073`.)" +msgstr "" + +#: whatsnew/3.10.rst:1237 +msgid "" +"Add a new :c:func:`PySet_CheckExact` function to the C-API to check if an " +"object is an instance of :class:`set` but not an instance of a subtype. " +"(Contributed by Pablo Galindo in :issue:`43277`.)" +msgstr "" + +#: whatsnew/3.10.rst:1241 +msgid "" +"Added :c:func:`PyErr_SetInterruptEx` which allows passing a signal number to " +"simulate. (Contributed by Antoine Pitrou in :issue:`43356`.)" +msgstr "" + +#: whatsnew/3.10.rst:1249 +msgid "" +"The ``PY_SSIZE_T_CLEAN`` macro must now be defined to use :c:func:" +"`PyArg_ParseTuple` and :c:func:`Py_BuildValue` formats which use ``#``: " +"``es#``, ``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` and ``Z#``. See :" +"ref:`Parsing arguments and building values ` and the :pep:" +"`353`. (Contributed by Victor Stinner in :issue:`40943`.)" +msgstr "" + +#: whatsnew/3.10.rst:1256 +msgid "" +"Since :c:func:`Py_REFCNT()` is changed to the inline static function, " +"``Py_REFCNT(obj) = new_refcnt`` must be replaced with ``Py_SET_REFCNT(obj, " +"new_refcnt)``: see :c:func:`Py_SET_REFCNT()` (available since Python 3.9). " +"For backward compatibility, this macro can be used::" +msgstr "" + +#: whatsnew/3.10.rst:1265 +msgid "(Contributed by Victor Stinner in :issue:`39573`.)" +msgstr "" + +#: whatsnew/3.10.rst:1267 +msgid "" +"Calling :c:func:`PyDict_GetItem` without :term:`GIL` held had been allowed " +"for historical reason. It is no longer allowed. (Contributed by Victor " +"Stinner in :issue:`40839`.)" +msgstr "" + +#: whatsnew/3.10.rst:1271 +msgid "" +"``PyUnicode_FromUnicode(NULL, size)`` and " +"``PyUnicode_FromStringAndSize(NULL, size)`` raise ``DeprecationWarning`` " +"now. Use :c:func:`PyUnicode_New` to allocate Unicode object without initial " +"data. (Contributed by Inada Naoki in :issue:`36346`.)" +msgstr "" + +#: whatsnew/3.10.rst:1276 +msgid "" +"The private ``_PyUnicode_Name_CAPI`` structure of the PyCapsule API " +"``unicodedata.ucnhash_CAPI`` has been moved to the internal C API. " +"(Contributed by Victor Stinner in :issue:`42157`.)" +msgstr "" + +#: whatsnew/3.10.rst:1280 +msgid "" +":c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:" +"func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` and :c:func:" +"`Py_GetProgramName` functions now return ``NULL`` if called before :c:func:" +"`Py_Initialize` (before Python is initialized). Use the new :ref:`Python " +"Initialization Configuration API ` to get the :ref:`Python Path " +"Configuration. `. (Contributed by Victor Stinner in :" +"issue:`42260`.)" +msgstr "" + +#: whatsnew/3.10.rst:1288 +msgid "" +":c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` and :c:func:" +"`PyCell_SET` macros can no longer be used as l-value or r-value. For " +"example, ``x = PyList_SET_ITEM(a, b, c)`` and ``PyList_SET_ITEM(a, b, c) = " +"x`` now fail with a compiler error. It prevents bugs like ``if " +"(PyList_SET_ITEM (a, b, c) < 0) ...`` test. (Contributed by Zackery Spytz " +"and Victor Stinner in :issue:`30459`.)" +msgstr "" + +#: whatsnew/3.10.rst:1295 +msgid "" +"The non-limited API files ``odictobject.h``, ``parser_interface.h``, " +"``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, ``pyfpe." +"h``, and ``pytime.h`` have been moved to the ``Include/cpython`` directory. " +"These files must not be included directly, as they are already included in " +"``Python.h``: :ref:`Include Files `. If they have been " +"included directly, consider including ``Python.h`` instead. (Contributed by " +"Nicholas Sim in :issue:`35134`)" +msgstr "" + +#: whatsnew/3.10.rst:1306 +msgid "" +"The ``PyUnicode_InternImmortal()`` function is now deprecated and will be " +"removed in Python 3.12: use :c:func:`PyUnicode_InternInPlace` instead. " +"(Contributed by Victor Stinner in :issue:`41692`.)" +msgstr "" + +#: whatsnew/3.10.rst:1314 +msgid "" +"``PyObject_AsCharBuffer()``, ``PyObject_AsReadBuffer()``, " +"``PyObject_CheckReadBuffer()``, and ``PyObject_AsWriteBuffer()`` are " +"removed. Please migrate to new buffer protocol; :c:func:`PyObject_GetBuffer` " +"and :c:func:`PyBuffer_Release`. (Contributed by Inada Naoki in :issue:" +"`41103`.)" +msgstr "" + +#: whatsnew/3.10.rst:1319 +msgid "" +"Removed ``Py_UNICODE_str*`` functions manipulating ``Py_UNICODE*`` strings. " +"(Contributed by Inada Naoki in :issue:`41123`.)" +msgstr "" + +#: whatsnew/3.10.rst:1322 +msgid "" +"``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or :c:macro:" +"`PyUnicode_GET_LENGTH`" +msgstr "" + +#: whatsnew/3.10.rst:1324 +msgid "" +"``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or :c:func:" +"`PyUnicode_FromFormat`" +msgstr "" + +#: whatsnew/3.10.rst:1326 +msgid "" +"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use :c:func:" +"`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`" +msgstr "" + +#: whatsnew/3.10.rst:1328 +msgid "``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare`" +msgstr "" + +#: whatsnew/3.10.rst:1329 +msgid "``Py_UNICODE_strncmp``: use :c:func:`PyUnicode_Tailmatch`" +msgstr "" + +#: whatsnew/3.10.rst:1330 +msgid "" +"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use :c:func:" +"`PyUnicode_FindChar`" +msgstr "" + +#: whatsnew/3.10.rst:1333 +msgid "" +"Removed ``PyUnicode_GetMax()``. Please migrate to new (:pep:`393`) APIs. " +"(Contributed by Inada Naoki in :issue:`41103`.)" +msgstr "" + +#: whatsnew/3.10.rst:1336 +msgid "" +"Removed ``PyLong_FromUnicode()``. Please migrate to :c:func:" +"`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki in :issue:`41103`.)" +msgstr "" + +#: whatsnew/3.10.rst:1339 +msgid "" +"Removed ``PyUnicode_AsUnicodeCopy()``. Please use :c:func:" +"`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` (Contributed " +"by Inada Naoki in :issue:`41103`.)" +msgstr "" + +#: whatsnew/3.10.rst:1343 +msgid "" +"Removed ``_Py_CheckRecursionLimit`` variable: it has been replaced by " +"``ceval.recursion_limit`` of the :c:type:`PyInterpreterState` structure. " +"(Contributed by Victor Stinner in :issue:`41834`.)" +msgstr "" + +#: whatsnew/3.10.rst:1347 +msgid "" +"Removed undocumented macros ``Py_ALLOW_RECURSION`` and " +"``Py_END_ALLOW_RECURSION`` and the ``recursion_critical`` field of the :c:" +"type:`PyInterpreterState` structure. (Contributed by Serhiy Storchaka in :" +"issue:`41936`.)" +msgstr "" + +#: whatsnew/3.10.rst:1352 +msgid "" +"Removed the undocumented ``PyOS_InitInterrupts()`` function. Initializing " +"Python already implicitly installs signal handlers: see :c:member:`PyConfig." +"install_signal_handlers`. (Contributed by Victor Stinner in :issue:`41713`.)" +msgstr "" + +#: whatsnew/3.10.rst:1357 +msgid "" +"Remove the ``PyAST_Validate()`` function. It is no longer possible to build " +"a AST object (``mod_ty`` type) with the public C API. The function was " +"already excluded from the limited C API (:pep:`384`). (Contributed by Victor " +"Stinner in :issue:`43244`.)" +msgstr "" diff --git a/whatsnew/3.9.po b/whatsnew/3.9.po index 122775ee..9a853d24 100644 --- a/whatsnew/3.9.po +++ b/whatsnew/3.9.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-24 17:33+0100\n" +"POT-Creation-Date: 2021-03-19 16:59+0100\n" "PO-Revision-Date: 2020-08-06 00:39+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -2302,6 +2302,19 @@ msgid "" "Adam Goldschmidt, Senthil Kumaran and Ken Jin in :issue:`42967`.)" msgstr "" +#: whatsnew/3.9.rst:1534 +msgid "Notable changes in Python 3.9.3" +msgstr "" + +#: whatsnew/3.9.rst:1536 +msgid "" +"A security fix alters the :class:`ftplib.FTP` behavior to not trust the IPv4 " +"address sent from the remote server when setting up a passive data channel. " +"We reuse the ftp server IP address instead. For unusual code requiring the " +"old behavior, set a ``trust_server_pasv_ipv4_address`` attribute on your FTP " +"instance to ``True``. (See :issue:`43285`)" +msgstr "" + #~ msgid "" #~ "This article explains the new features in Python 3.9, compared to 3.8." #~ msgstr ""