From cce280974f6c83fb3cc8d0d2828f185339609b1a Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 4 Jan 2018 15:57:05 +0100 Subject: [PATCH] merge pot files. --- faq/extending.po | 6 +- glossary.po | 360 +++++++++--------- library/codecs.po | 680 +++++++++++++++++----------------- library/concurrent.futures.po | 169 +++++---- library/io.po | 263 ++++++------- library/itertools.po | 8 +- library/logging.po | 653 ++++++++++++++++---------------- library/mailbox.po | 5 +- library/pickle.po | 14 +- library/re.po | 265 ++++++------- library/ssl.po | 11 +- library/stdtypes.po | 15 +- library/threading.po | 35 +- library/tkinter.po | 4 +- library/typing.po | 8 +- reference/datamodel.po | 512 ++++++++++++------------- reference/lexical_analysis.po | 76 ++-- sphinx.po | 10 +- tutorial/classes.po | 13 +- 19 files changed, 1595 insertions(+), 1512 deletions(-) diff --git a/faq/extending.po b/faq/extending.po index ca93538f..59ac9779 100644 --- a/faq/extending.po +++ b/faq/extending.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,8 +81,8 @@ msgid "" "and functions with a tool such as `SWIG `_. `SIP " "`__, `CXX `_ `Boost `_, or `Weave `_ " -"are also alternatives for wrapping C++ libraries." +"html>`_, or `Weave `_ are also alternatives " +"for wrapping C++ libraries." msgstr "" #: ../Doc/faq/extending.rst:61 diff --git a/glossary.po b/glossary.po index f144d959..75772085 100644 --- a/glossary.po +++ b/glossary.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-13 22:28+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-12-01 08:51+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: \n" @@ -932,21 +932,23 @@ msgid "garbage collection" msgstr "ramasse-miettes" #: ../Doc/glossary.rst:392 +#, fuzzy msgid "" "The process of freeing memory when it is not used anymore. Python performs " "garbage collection via reference counting and a cyclic garbage collector " -"that is able to detect and break reference cycles." +"that is able to detect and break reference cycles. The garbage collector " +"can be controlled using the :mod:`gc` module." msgstr "" "(*garbage collection*) Le mécanisme permettant de libérer de la mémoire " "lorsqu'elle n'est plus utilisée. Python utilise un ramasse-miettes par " "comptage de référence, et un ramasse-miettes cyclique capable de détecter et " "casser les références circulaires." -#: ../Doc/glossary.rst:397 +#: ../Doc/glossary.rst:398 msgid "generator" msgstr "générateur" -#: ../Doc/glossary.rst:399 +#: ../Doc/glossary.rst:400 msgid "" "A function which returns a :term:`generator iterator`. It looks like a " "normal function except that it contains :keyword:`yield` expressions for " @@ -958,7 +960,7 @@ msgstr "" "expressions :keyword:`yield` pruduisant une série de valeurs utilisable dans " "une boucle *for*, ou récupérées une à une via la fonction :func:`next`." -#: ../Doc/glossary.rst:404 +#: ../Doc/glossary.rst:405 msgid "" "Usually refers to a generator function, but may refer to a *generator " "iterator* in some contexts. In cases where the intended meaning isn't " @@ -969,15 +971,15 @@ msgstr "" "cas où le sens voulu n'est pas clair, utiliser les termes complets évite " "l'ambiguité." -#: ../Doc/glossary.rst:407 +#: ../Doc/glossary.rst:408 msgid "generator iterator" msgstr "itérateur de générateur" -#: ../Doc/glossary.rst:409 +#: ../Doc/glossary.rst:410 msgid "An object created by a :term:`generator` function." msgstr "Un objet crée par une fonction :term:`générateur`." -#: ../Doc/glossary.rst:411 +#: ../Doc/glossary.rst:412 msgid "" "Each :keyword:`yield` temporarily suspends processing, remembering the " "location execution state (including local variables and pending try-" @@ -990,11 +992,11 @@ msgstr "" "en était (contrairement à une fonction qui prendrait un nouveau départ à " "chaque invocation)." -#: ../Doc/glossary.rst:418 +#: ../Doc/glossary.rst:419 msgid "generator expression" msgstr "expression génératrice" -#: ../Doc/glossary.rst:420 +#: ../Doc/glossary.rst:421 msgid "" "An expression that returns an iterator. It looks like a normal expression " "followed by a :keyword:`for` expression defining a loop variable, range, and " @@ -1006,11 +1008,11 @@ msgstr "" "boucle, d'un range, et d'une expression, optionnelle, :keyword:`if`. Cette " "expression combinée génère des valeurs pour la fonction qui l'entoure : ::" -#: ../Doc/glossary.rst:427 +#: ../Doc/glossary.rst:428 msgid "generic function" msgstr "fonction générique" -#: ../Doc/glossary.rst:429 +#: ../Doc/glossary.rst:430 msgid "" "A function composed of multiple functions implementing the same operation " "for different types. Which implementation should be used during a call is " @@ -1020,7 +1022,7 @@ msgstr "" "opérations pour différents types. L'implémentation à utiliser est déterminé " "lors de l'appel est déterminée par un algorithme de répartition." -#: ../Doc/glossary.rst:433 +#: ../Doc/glossary.rst:434 msgid "" "See also the :term:`single dispatch` glossary entry, the :func:`functools." "singledispatch` decorator, and :pep:`443`." @@ -1028,19 +1030,19 @@ msgstr "" "Voir aussi :term:`single dispatch`, le décorateur :func:`functools." "singledispatch`, et la :pep:`443`." -#: ../Doc/glossary.rst:436 +#: ../Doc/glossary.rst:437 msgid "GIL" msgstr "GIL" -#: ../Doc/glossary.rst:438 +#: ../Doc/glossary.rst:439 msgid "See :term:`global interpreter lock`." msgstr "Voir :term:`global interpreter lock`." -#: ../Doc/glossary.rst:439 +#: ../Doc/glossary.rst:440 msgid "global interpreter lock" msgstr "verrou global de l'interpréteur" -#: ../Doc/glossary.rst:441 +#: ../Doc/glossary.rst:442 msgid "" "The mechanism used by the :term:`CPython` interpreter to assure that only " "one thread executes Python :term:`bytecode` at a time. This simplifies the " @@ -1058,7 +1060,7 @@ msgstr "" "rendre multi-thread, en perdant malheureusement la majorité du parallélisme " "possible sur les machines ayant plusieurs processeurs." -#: ../Doc/glossary.rst:450 +#: ../Doc/glossary.rst:451 msgid "" "However, some extension modules, either standard or third-party, are " "designed so as to release the GIL when doing computationally-intensive tasks " @@ -1070,7 +1072,7 @@ msgstr "" "la compression ou le hachage. Aussi, le GIL est toujours libéré lors des " "lectures et écritures." -#: ../Doc/glossary.rst:455 +#: ../Doc/glossary.rst:456 msgid "" "Past efforts to create a \"free-threaded\" interpreter (one which locks " "shared data at a much finer granularity) have not been successful because " @@ -1084,11 +1086,11 @@ msgstr "" "problèmes de performance induits mènerai vers une implémentation compliquée " "et donc plus coûteuse à maintenir." -#: ../Doc/glossary.rst:460 +#: ../Doc/glossary.rst:461 msgid "hashable" msgstr "hachable" -#: ../Doc/glossary.rst:462 +#: ../Doc/glossary.rst:463 msgid "" "An object is *hashable* if it has a hash value which never changes during " "its lifetime (it needs a :meth:`__hash__` method), and can be compared to " @@ -1100,7 +1102,7 @@ msgstr "" "d'autres objets (avec la méthode :meth:`__eq__`). Les objets hachables dont " "``__eq__`` dit être équivalents, ont aussi la même empreinte." -#: ../Doc/glossary.rst:467 +#: ../Doc/glossary.rst:468 msgid "" "Hashability makes an object usable as a dictionary key and a set member, " "because these data structures use the hash value internally." @@ -1109,7 +1111,7 @@ msgstr "" "ou en temps que membre d'un *set*, car ces structures de données utilisent " "ce *hash*." -#: ../Doc/glossary.rst:470 +#: ../Doc/glossary.rst:471 msgid "" "All of Python's immutable built-in objects are hashable; mutable containers " "(such as lists or dictionaries) are not. Objects which are instances of " @@ -1123,11 +1125,11 @@ msgstr "" "par défaut. Elles sont toutes considérées différentes (sauf avec elles-" "mêmes), et leur clef de hachage est tiré de leur :func:`id`." -#: ../Doc/glossary.rst:475 +#: ../Doc/glossary.rst:476 msgid "IDLE" msgstr "IDLE" -#: ../Doc/glossary.rst:477 +#: ../Doc/glossary.rst:478 msgid "" "An Integrated Development Environment for Python. IDLE is a basic editor " "and interpreter environment which ships with the standard distribution of " @@ -1136,11 +1138,11 @@ msgstr "" "Un environnement de développement intégré pour Python. IDLE est un éditeur " "et interpréteur basique livré avec la distribution standard de Python." -#: ../Doc/glossary.rst:480 +#: ../Doc/glossary.rst:481 msgid "immutable" msgstr "immuable" -#: ../Doc/glossary.rst:482 +#: ../Doc/glossary.rst:483 msgid "" "An object with a fixed value. Immutable objects include numbers, strings " "and tuples. Such an object cannot be altered. A new object has to be " @@ -1154,11 +1156,11 @@ msgstr "" "important aux endroits où une valeur de *hash* constante est requise, " "typiquement en clef de dictionnaire." -#: ../Doc/glossary.rst:487 +#: ../Doc/glossary.rst:488 msgid "import path" msgstr "chemin d'import" -#: ../Doc/glossary.rst:489 +#: ../Doc/glossary.rst:490 msgid "" "A list of locations (or :term:`path entries `) that are searched " "by the :term:`path based finder` for modules to import. During import, this " @@ -1170,21 +1172,21 @@ msgstr "" "liste vient de :data:`sys.path`, mais pour les sous paquets, elle peut aussi " "venir de l'attribut ``__path__`` du paquet parent." -#: ../Doc/glossary.rst:494 +#: ../Doc/glossary.rst:495 msgid "importing" msgstr "importer" -#: ../Doc/glossary.rst:496 +#: ../Doc/glossary.rst:497 msgid "" "The process by which Python code in one module is made available to Python " "code in another module." msgstr "Le processus rendant le code d'un module disponible dans un autre." -#: ../Doc/glossary.rst:498 +#: ../Doc/glossary.rst:499 msgid "importer" msgstr "importateur" -#: ../Doc/glossary.rst:500 +#: ../Doc/glossary.rst:501 msgid "" "An object that both finds and loads a module; both a :term:`finder` and :" "term:`loader` object." @@ -1192,11 +1194,11 @@ msgstr "" "Un objet qui trouve et charge un module, en même temps un :term:`finder` et " "un :term:`loader`." -#: ../Doc/glossary.rst:502 +#: ../Doc/glossary.rst:503 msgid "interactive" msgstr "interactif" -#: ../Doc/glossary.rst:504 +#: ../Doc/glossary.rst:505 msgid "" "Python has an interactive interpreter which means you can enter statements " "and expressions at the interpreter prompt, immediately execute them and see " @@ -1211,11 +1213,11 @@ msgstr "" "puissant pour tester de nouvelles idées ou étudier de nouveaux modules " "(souvenez vous de ``help(x)``)." -#: ../Doc/glossary.rst:510 +#: ../Doc/glossary.rst:511 msgid "interpreted" msgstr "interprété" -#: ../Doc/glossary.rst:512 +#: ../Doc/glossary.rst:513 msgid "" "Python is an interpreted language, as opposed to a compiled one, though the " "distinction can be blurry because of the presence of the bytecode compiler. " @@ -1232,11 +1234,11 @@ msgstr "" "et ils s'exécutent généralement plus lentement. Voir aussi :term:" "`interactif`." -#: ../Doc/glossary.rst:519 +#: ../Doc/glossary.rst:520 msgid "interpreter shutdown" msgstr "arrêt de l'interpréteur" -#: ../Doc/glossary.rst:521 +#: ../Doc/glossary.rst:522 msgid "" "When asked to shut down, the Python interpreter enters a special phase where " "it gradually releases all allocated resources, such as modules and various " @@ -1257,7 +1259,7 @@ msgstr "" "fonctionner, (typiquement les modules de la bibliothèque ou le mécanisme de " "*warning*)." -#: ../Doc/glossary.rst:530 +#: ../Doc/glossary.rst:531 msgid "" "The main reason for interpreter shutdown is that the ``__main__`` module or " "the script being run has finished executing." @@ -1265,11 +1267,11 @@ msgstr "" "La principale raison qu'a l'interpréteur de s'arrêter est lorsque le module " "``__main__`` ou le script en cours d'exécution à terminé de s'exécuter." -#: ../Doc/glossary.rst:532 +#: ../Doc/glossary.rst:533 msgid "iterable" msgstr "itérable" -#: ../Doc/glossary.rst:534 +#: ../Doc/glossary.rst:535 msgid "" "An object capable of returning its members one at a time. Examples of " "iterables include all sequence types (such as :class:`list`, :class:`str`, " @@ -1285,7 +1287,7 @@ msgstr "" "toute classe ayant une méthode :meth:`__iter__` ou :meth:`__getitem__` " "implémentant la sémantique des :term:`Sequence`." -#: ../Doc/glossary.rst:541 +#: ../Doc/glossary.rst:542 msgid "" "Iterables can be used in a :keyword:`for` loop and in many other places " "where a sequence is needed (:func:`zip`, :func:`map`, ...). When an " @@ -1308,11 +1310,11 @@ msgstr "" "garder l'itérateur durant la boucle. Voir aussi :term:`itérateur`, :term:" "`séquence`, et :term:`générateur`." -#: ../Doc/glossary.rst:551 +#: ../Doc/glossary.rst:552 msgid "iterator" msgstr "itérateur" -#: ../Doc/glossary.rst:553 +#: ../Doc/glossary.rst:554 msgid "" "An object representing a stream of data. Repeated calls to the iterator's :" "meth:`~iterator.__next__` method (or passing it to the built-in function :" @@ -1345,15 +1347,15 @@ msgstr "" "un itérateur donnerai simplement le même objet itérateur épuisé utilisé dans " "son itération précédente, le faisant ressembler à un conteneur vide." -#: ../Doc/glossary.rst:568 +#: ../Doc/glossary.rst:569 msgid "More information can be found in :ref:`typeiter`." msgstr "Plus d'informations ici : :ref:`typeiter`." -#: ../Doc/glossary.rst:569 +#: ../Doc/glossary.rst:570 msgid "key function" msgstr "fonction clef" -#: ../Doc/glossary.rst:571 +#: ../Doc/glossary.rst:572 msgid "" "A key function or collation function is a callable that returns a value used " "for sorting or ordering. For example, :func:`locale.strxfrm` is used to " @@ -1364,7 +1366,7 @@ msgstr "" "à produire une fonction clef de tri prennant en compte les conventions de " "tri spécifiques aux paramètres régionaux courants." -#: ../Doc/glossary.rst:576 +#: ../Doc/glossary.rst:577 msgid "" "A number of tools in Python accept key functions to control how elements are " "ordered or grouped. They include :func:`min`, :func:`max`, :func:`sorted`, :" @@ -1376,7 +1378,7 @@ msgstr "" "`min`, :func:`max`, :func:`sorted`, :meth:`list.sort`, :func:`heapq.merge`, :" "func:`heapq.nsmallest`, :func:`heapq.nlargest`, et :func:`itertools.groupby`." -#: ../Doc/glossary.rst:582 +#: ../Doc/glossary.rst:583 msgid "" "There are several ways to create a key function. For example. the :meth:" "`str.lower` method can serve as a key function for case insensitive sorts. " @@ -1397,19 +1399,19 @@ msgstr "" "`Comment Trier ` pour avoir des exemple de création et " "d'utilisation de fonctions clés." -#: ../Doc/glossary.rst:590 +#: ../Doc/glossary.rst:591 msgid "keyword argument" msgstr "argument nommé" -#: ../Doc/glossary.rst:592 ../Doc/glossary.rst:836 +#: ../Doc/glossary.rst:593 ../Doc/glossary.rst:837 msgid "See :term:`argument`." msgstr "Voir :term:`argument`." -#: ../Doc/glossary.rst:593 +#: ../Doc/glossary.rst:594 msgid "lambda" msgstr "lambda" -#: ../Doc/glossary.rst:595 +#: ../Doc/glossary.rst:596 msgid "" "An anonymous inline function consisting of a single :term:`expression` which " "is evaluated when the function is called. The syntax to create a lambda " @@ -1419,11 +1421,11 @@ msgstr "" "qu'une expression, exécutée lorsqu'elle est appelée. La syntaxe pour créer " "des fonctions lambda est: ``lambda [arguments]: expression``" -#: ../Doc/glossary.rst:598 +#: ../Doc/glossary.rst:599 msgid "LBYL" msgstr "LBYL" -#: ../Doc/glossary.rst:600 +#: ../Doc/glossary.rst:601 msgid "" "Look before you leap. This coding style explicitly tests for pre-conditions " "before making calls or lookups. This style contrasts with the :term:`EAFP` " @@ -1435,7 +1437,7 @@ msgstr "" "appels ou des accès. Ce style contraste avec le style :term:`EAFP` et se " "caractérise par la présence de beaucoup d'instructions :keyword:`if`." -#: ../Doc/glossary.rst:605 +#: ../Doc/glossary.rst:606 msgid "" "In a multi-threaded environment, the LBYL approach can risk introducing a " "race condition between \"the looking\" and \"the leaping\". For example, " @@ -1450,11 +1452,11 @@ msgstr "" "mais avant l'accès. Ce problème peut être résolu avec des verrous (*locks*) " "ou avec l'approche EAFP." -#: ../Doc/glossary.rst:610 +#: ../Doc/glossary.rst:611 msgid "list" msgstr "*list*" -#: ../Doc/glossary.rst:612 +#: ../Doc/glossary.rst:613 msgid "" "A built-in Python :term:`sequence`. Despite its name it is more akin to an " "array in other languages than to a linked list since access to elements are " @@ -1464,11 +1466,11 @@ msgstr "" "``list`` ressemble plus à un *array* qu'à une liste chaînée puisque les " "accès se font en O(1)." -#: ../Doc/glossary.rst:615 +#: ../Doc/glossary.rst:616 msgid "list comprehension" msgstr "liste en compréhension" -#: ../Doc/glossary.rst:617 +#: ../Doc/glossary.rst:618 msgid "" "A compact way to process all or part of the elements in a sequence and " "return a list with the results. ``result = ['{:#04x}'.format(x) for x in " @@ -1483,11 +1485,11 @@ msgstr "" "clause :keyword:`if` est optionnelle. Si elle est omise, tous les éléments " "du ``range(256)`` seront utilisés." -#: ../Doc/glossary.rst:623 +#: ../Doc/glossary.rst:624 msgid "loader" msgstr "loader" -#: ../Doc/glossary.rst:625 +#: ../Doc/glossary.rst:626 msgid "" "An object that loads a module. It must define a method named :meth:" "`load_module`. A loader is typically returned by a :term:`finder`. See :pep:" @@ -1499,11 +1501,11 @@ msgstr "" "Voir :pep:`302` pour les détails et :class:`importlib.ABC.Loader` pour sa :" "term:`classe de base abstraite`." -#: ../Doc/glossary.rst:629 +#: ../Doc/glossary.rst:630 msgid "mapping" msgstr "mapping" -#: ../Doc/glossary.rst:631 +#: ../Doc/glossary.rst:632 msgid "" "A container object that supports arbitrary key lookups and implements the " "methods specified in the :class:`~collections.abc.Mapping` or :class:" @@ -1519,11 +1521,11 @@ msgstr "" "`dict`, :class:`collections.defaultdict`, :class:`collections.OrderedDict`, " "et :class:`collections.Counter`." -#: ../Doc/glossary.rst:637 +#: ../Doc/glossary.rst:638 msgid "meta path finder" msgstr "meta path finder" -#: ../Doc/glossary.rst:639 +#: ../Doc/glossary.rst:640 msgid "" "A :term:`finder` returned by a search of :data:`sys.meta_path`. Meta path " "finders are related to, but different from :term:`path entry finders `." -#: ../Doc/glossary.rst:643 +#: ../Doc/glossary.rst:644 msgid "" "See :class:`importlib.abc.MetaPathFinder` for the methods that meta path " "finders implement." @@ -1541,11 +1543,11 @@ msgstr "" "Voir :class:`importlib.abc.MetaPathFinder` pour les méthodes que les *meta " "path finders* doivent implémenter." -#: ../Doc/glossary.rst:645 +#: ../Doc/glossary.rst:646 msgid "metaclass" msgstr "metaclasse" -#: ../Doc/glossary.rst:647 +#: ../Doc/glossary.rst:648 msgid "" "The class of a class. Class definitions create a class name, a class " "dictionary, and a list of base classes. The metaclass is responsible for " @@ -1569,15 +1571,15 @@ msgstr "" "utilisation en environnement multi-thread, suivre la création d'objets, " "implémenter des singleton, et bien d'autres tâches." -#: ../Doc/glossary.rst:657 +#: ../Doc/glossary.rst:658 msgid "More information can be found in :ref:`metaclasses`." msgstr "Plus d'informations à ce sujet : :ref:`metaclasses`." -#: ../Doc/glossary.rst:658 +#: ../Doc/glossary.rst:659 msgid "method" msgstr "méthode" -#: ../Doc/glossary.rst:660 +#: ../Doc/glossary.rst:661 msgid "" "A function which is defined inside a class body. If called as an attribute " "of an instance of that class, the method will get the instance object as its " @@ -1589,11 +1591,11 @@ msgstr "" "`argument` (qui par convention est nommé ``self``). Voir :term:`function` " "et :term:`nested scope`." -#: ../Doc/glossary.rst:664 +#: ../Doc/glossary.rst:665 msgid "method resolution order" msgstr "ordre de résolution des méthodes" -#: ../Doc/glossary.rst:666 +#: ../Doc/glossary.rst:667 msgid "" "Method Resolution Order is the order in which base classes are searched for " "a member during lookup. See `The Python 2.3 Method Resolution Order `_ pour plus de détails sur l'algorithme utilisé " "par l'interpréteur Python depuis la version 2.3." -#: ../Doc/glossary.rst:670 +#: ../Doc/glossary.rst:671 msgid "module" msgstr "module" -#: ../Doc/glossary.rst:672 +#: ../Doc/glossary.rst:673 msgid "" "An object that serves as an organizational unit of Python code. Modules " "have a namespace containing arbitrary Python objects. Modules are loaded " @@ -1620,15 +1622,15 @@ msgstr "" "espace de noms pouvant contenir n'importe quel objet Python. Charger des " "modules est appelé :term:`importer`." -#: ../Doc/glossary.rst:676 +#: ../Doc/glossary.rst:677 msgid "See also :term:`package`." msgstr "Voir aussi :term:`paquet`." -#: ../Doc/glossary.rst:677 +#: ../Doc/glossary.rst:678 msgid "module spec" msgstr "module spec" -#: ../Doc/glossary.rst:679 +#: ../Doc/glossary.rst:680 msgid "" "A namespace containing the import-related information used to load a module. " "An instance of :class:`importlib.machinery.ModuleSpec`." @@ -1637,19 +1639,19 @@ msgstr "" "pour charger un module. C'est une instance de la classe :class:`importlib." "machinery.ModuleSpec`." -#: ../Doc/glossary.rst:681 +#: ../Doc/glossary.rst:682 msgid "MRO" msgstr "MRO" -#: ../Doc/glossary.rst:683 +#: ../Doc/glossary.rst:684 msgid "See :term:`method resolution order`." msgstr "Voir :term:`ordre de résolution des méthodes`." -#: ../Doc/glossary.rst:684 +#: ../Doc/glossary.rst:685 msgid "mutable" msgstr "muable" -#: ../Doc/glossary.rst:686 +#: ../Doc/glossary.rst:687 msgid "" "Mutable objects can change their value but keep their :func:`id`. See also :" "term:`immutable`." @@ -1657,11 +1659,11 @@ msgstr "" "Un objet muable peut changer de valeur tout en gardant le même :func:`id`. " "Voir aussi :term:`immuable`." -#: ../Doc/glossary.rst:688 +#: ../Doc/glossary.rst:689 msgid "named tuple" msgstr "named tuple" -#: ../Doc/glossary.rst:690 +#: ../Doc/glossary.rst:691 msgid "" "Any tuple-like class whose indexable elements are also accessible using " "named attributes (for example, :func:`time.localtime` returns a tuple-like " @@ -1673,7 +1675,7 @@ msgstr "" "donne un objet ressemblant à un *tuple*, dont *year* est accessible par son " "indice : ``t[0]`` ou par son nom : ``t.tm_year``)." -#: ../Doc/glossary.rst:695 +#: ../Doc/glossary.rst:696 msgid "" "A named tuple can be a built-in type such as :class:`time.struct_time`, or " "it can be created with a regular class definition. A full featured named " @@ -1689,11 +1691,11 @@ msgstr "" "supplémentaires, tel qu'une représentation lisible comme " "``Employee(name='jones', title='programmer')``." -#: ../Doc/glossary.rst:701 +#: ../Doc/glossary.rst:702 msgid "namespace" msgstr "espace de nom" -#: ../Doc/glossary.rst:703 +#: ../Doc/glossary.rst:704 msgid "" "The place where a variable is stored. Namespaces are implemented as " "dictionaries. There are the local, global and built-in namespaces as well " @@ -1716,11 +1718,11 @@ msgstr "" "que ces fonctions sont implémentées respectivement dans les modules :mod:" "`random` et :mod:`itertools`." -#: ../Doc/glossary.rst:713 +#: ../Doc/glossary.rst:714 msgid "namespace package" msgstr "paquet espace de nom" -#: ../Doc/glossary.rst:715 +#: ../Doc/glossary.rst:716 msgid "" "A :pep:`420` :term:`package` which serves only as a container for " "subpackages. Namespace packages may have no physical representation, and " @@ -1732,15 +1734,15 @@ msgstr "" "représentation physique, et plus spécifiquement ne sont pas comme un :term:" "`paquet classique` puisqu'ils n'ont pas de fichier ``__init__.py``." -#: ../Doc/glossary.rst:720 +#: ../Doc/glossary.rst:721 msgid "See also :term:`module`." msgstr "Voir aussi :term:`module`." -#: ../Doc/glossary.rst:721 +#: ../Doc/glossary.rst:722 msgid "nested scope" msgstr "portée imbriquée" -#: ../Doc/glossary.rst:723 +#: ../Doc/glossary.rst:724 msgid "" "The ability to refer to a variable in an enclosing definition. For " "instance, a function defined inside another function can refer to variables " @@ -1758,11 +1760,11 @@ msgstr "" "l'espace de noms global, le mot clef :keyword:`nonlocal` permet d'écrire " "dans l'espace de nom dans lequel est déclaré la variable." -#: ../Doc/glossary.rst:730 +#: ../Doc/glossary.rst:731 msgid "new-style class" msgstr "nouvelle classe" -#: ../Doc/glossary.rst:732 +#: ../Doc/glossary.rst:733 msgid "" "Old name for the flavor of classes now used for all class objects. In " "earlier Python versions, only new-style classes could use Python's newer, " @@ -1775,11 +1777,11 @@ msgstr "" "__slots__`, les descripteurs, les propriétés, :meth:`__getattribute__`, les " "méthodes de classe, et les méthodes statiques." -#: ../Doc/glossary.rst:736 +#: ../Doc/glossary.rst:737 msgid "object" msgstr "objet" -#: ../Doc/glossary.rst:738 +#: ../Doc/glossary.rst:739 msgid "" "Any data with state (attributes or value) and defined behavior (methods). " "Also the ultimate base class of any :term:`new-style class`." @@ -1789,11 +1791,11 @@ msgstr "" "l'ancêtre commun à absolument toutes les :term:`nouvelles classes `." -#: ../Doc/glossary.rst:741 +#: ../Doc/glossary.rst:742 msgid "package" msgstr "paquet" -#: ../Doc/glossary.rst:743 +#: ../Doc/glossary.rst:744 msgid "" "A Python :term:`module` which can contain submodules or recursively, " "subpackages. Technically, a package is a Python module with an ``__path__`` " @@ -1802,15 +1804,15 @@ msgstr "" "Un :term:`module` qui peut contenir des sous modules ou des sous paquets. " "Techniquement, un paquet est un module qui a un attribut ``__path__``." -#: ../Doc/glossary.rst:747 +#: ../Doc/glossary.rst:748 msgid "See also :term:`regular package` and :term:`namespace package`." msgstr "Voir aussi :term:`paquet classique` et :term:`paquet espace de nom`." -#: ../Doc/glossary.rst:748 +#: ../Doc/glossary.rst:749 msgid "parameter" msgstr "paramètre" -#: ../Doc/glossary.rst:750 +#: ../Doc/glossary.rst:751 msgid "" "A named entity in a :term:`function` (or method) definition that specifies " "an :term:`argument` (or in some cases, arguments) that the function can " @@ -1820,7 +1822,7 @@ msgstr "" "décrivant un :term:`argument` (ou dans certains cas des arguments) que la " "fonction accepte. Il existe cinq sorte de paramètres :" -#: ../Doc/glossary.rst:754 +#: ../Doc/glossary.rst:755 msgid "" ":dfn:`positional-or-keyword`: specifies an argument that can be passed " "either :term:`positionally ` or as a :term:`keyword argument " @@ -1832,7 +1834,7 @@ msgstr "" "`. C'est le type de paramètre par défaut, par exemple, *foo* et " "*bar* dans l'exemple suivant : ::" -#: ../Doc/glossary.rst:763 +#: ../Doc/glossary.rst:764 msgid "" ":dfn:`positional-only`: specifies an argument that can be supplied only by " "position. Python has no syntax for defining positional-only parameters. " @@ -1843,7 +1845,7 @@ msgstr "" "position. Python n'a pas de syntaxe pour déclarer de tels paramètre, " "cependant des fonctions natives, comme :func:`abs` en utilisent." -#: ../Doc/glossary.rst:770 +#: ../Doc/glossary.rst:771 msgid "" ":dfn:`keyword-only`: specifies an argument that can be supplied only by " "keyword. Keyword-only parameters can be defined by including a single var-" @@ -1856,7 +1858,7 @@ msgstr "" "paramètre *var-positional*, ou en ajoutant une étoire (*) seule dans la " "liste des paramètres avant avant eux. Comme kw_only1 et kw_only2 ici : ::" -#: ../Doc/glossary.rst:778 +#: ../Doc/glossary.rst:779 msgid "" ":dfn:`var-positional`: specifies that an arbitrary sequence of positional " "arguments can be provided (in addition to any positional arguments already " @@ -1869,7 +1871,7 @@ msgstr "" "d'autres paramètres). Un tel paramètre peut être définit en préfixant son " "nom par une ``*``, par exemple *args* ici : ::" -#: ../Doc/glossary.rst:786 +#: ../Doc/glossary.rst:787 msgid "" ":dfn:`var-keyword`: specifies that arbitrarily many keyword arguments can be " "provided (in addition to any keyword arguments already accepted by other " @@ -1881,7 +1883,7 @@ msgstr "" "d'autres paramètres). Un tel paramètre est définit en préfixant le nom du " "paramètre par ``**``, par exemple, *kwargs* ci-dessus." -#: ../Doc/glossary.rst:792 +#: ../Doc/glossary.rst:793 msgid "" "Parameters can specify both optional and required arguments, as well as " "default values for some optional arguments." @@ -1890,7 +1892,7 @@ msgstr "" "obligatoires, aussi que des valeurs par défaut pour les paramètres " "optionnels." -#: ../Doc/glossary.rst:795 +#: ../Doc/glossary.rst:796 msgid "" "See also the :term:`argument` glossary entry, the FAQ question on :ref:`the " "difference between arguments and parameters `, " @@ -1902,11 +1904,11 @@ msgstr "" "dans la FAQ, la classe :class:`inspect.Parameter`, la section :ref:" "`function`, et la :pep:`362`." -#: ../Doc/glossary.rst:799 +#: ../Doc/glossary.rst:800 msgid "path entry" msgstr "chemin" -#: ../Doc/glossary.rst:801 +#: ../Doc/glossary.rst:802 msgid "" "A single location on the :term:`import path` which the :term:`path based " "finder` consults to find modules for importing." @@ -1914,11 +1916,11 @@ msgstr "" "Un seul emplacement dans l':term:`import path` que le :term:`path based " "finder` consulte pour trouver des modules à importer." -#: ../Doc/glossary.rst:803 +#: ../Doc/glossary.rst:804 msgid "path entry finder" msgstr "path entry finder" -#: ../Doc/glossary.rst:805 +#: ../Doc/glossary.rst:806 msgid "" "A :term:`finder` returned by a callable on :data:`sys.path_hooks` (i.e. a :" "term:`path entry hook`) which knows how to locate modules given a :term:" @@ -1928,7 +1930,7 @@ msgstr "" "un :term:`path entry hook`) qui sait où trouver des modules lorsqu'on lui " "donne un :term:`path entry`." -#: ../Doc/glossary.rst:809 +#: ../Doc/glossary.rst:810 msgid "" "See :class:`importlib.abc.PathEntryFinder` for the methods that path entry " "finders implement." @@ -1936,11 +1938,11 @@ msgstr "" "Voir :class:`importlib.abc.PathEntryFinder` pour les méthodes qu'un *path " "entry finder* doit implémenter." -#: ../Doc/glossary.rst:811 +#: ../Doc/glossary.rst:812 msgid "path entry hook" msgstr "path entry hook" -#: ../Doc/glossary.rst:813 +#: ../Doc/glossary.rst:814 msgid "" "A callable on the :data:`sys.path_hook` list which returns a :term:`path " "entry finder` if it knows how to find modules on a specific :term:`path " @@ -1950,11 +1952,11 @@ msgstr "" "entry finder` s'il sait où trouver des modules pour un :term:`path entry` " "donné." -#: ../Doc/glossary.rst:816 +#: ../Doc/glossary.rst:817 msgid "path based finder" msgstr "path based finder" -#: ../Doc/glossary.rst:818 +#: ../Doc/glossary.rst:819 msgid "" "One of the default :term:`meta path finders ` which " "searches an :term:`import path` for modules." @@ -1962,11 +1964,11 @@ msgstr "" "L'un des :term:`meta path finders ` par défaut qui cherche " "des modules dans un :term:`import path`." -#: ../Doc/glossary.rst:820 +#: ../Doc/glossary.rst:821 msgid "path-like object" msgstr "objet simili-chemin" -#: ../Doc/glossary.rst:822 +#: ../Doc/glossary.rst:823 msgid "" "An object representing a file system path. A path-like object is either a :" "class:`str` or :class:`bytes` object representing a path, or an object " @@ -1987,11 +1989,11 @@ msgstr "" "de type :class:`str` ou :class:`bytes` à la place. Introduit dans la :pep:" "`519`." -#: ../Doc/glossary.rst:830 +#: ../Doc/glossary.rst:831 msgid "portion" msgstr "portion" -#: ../Doc/glossary.rst:832 +#: ../Doc/glossary.rst:833 msgid "" "A set of files in a single directory (possibly stored in a zip file) that " "contribute to a namespace package, as defined in :pep:`420`." @@ -2000,15 +2002,15 @@ msgstr "" "fichier zip) qui contribuent à l'espace de nom d'un paquet, tel que définit " "dans la :pep:`420`." -#: ../Doc/glossary.rst:834 +#: ../Doc/glossary.rst:835 msgid "positional argument" msgstr "augment positionnel" -#: ../Doc/glossary.rst:837 +#: ../Doc/glossary.rst:838 msgid "provisional API" msgstr "API provisoire" -#: ../Doc/glossary.rst:839 +#: ../Doc/glossary.rst:840 msgid "" "A provisional API is one which has been deliberately excluded from the " "standard library's backwards compatibility guarantees. While major changes " @@ -2027,7 +2029,7 @@ msgstr "" "seulement si de sérieux problèmes sont découvert, qui n'avaient pas étés " "repérés avant l'ajout de l'API." -#: ../Doc/glossary.rst:848 +#: ../Doc/glossary.rst:849 msgid "" "Even for provisional APIs, backwards incompatible changes are seen as a " "\"solution of last resort\" - every attempt will still be made to find a " @@ -2038,7 +2040,7 @@ msgstr "" "fait pour tenter de résoudre les problème en conservant la " "rétrocompatibilité." -#: ../Doc/glossary.rst:852 +#: ../Doc/glossary.rst:853 msgid "" "This process allows the standard library to continue to evolve over time, " "without locking in problematic design errors for extended periods of time. " @@ -2048,19 +2050,19 @@ msgstr "" "le temps, sans se bloquer longtemps sur des erreurs d'architecture. Voir la :" "pep:`411` pour plus de détails." -#: ../Doc/glossary.rst:855 +#: ../Doc/glossary.rst:856 msgid "provisional package" msgstr "paquet provisoire" -#: ../Doc/glossary.rst:857 +#: ../Doc/glossary.rst:858 msgid "See :term:`provisional API`." msgstr "Voir :term:`provisional API`." -#: ../Doc/glossary.rst:858 +#: ../Doc/glossary.rst:859 msgid "Python 3000" msgstr "Python 3000" -#: ../Doc/glossary.rst:860 +#: ../Doc/glossary.rst:861 msgid "" "Nickname for the Python 3.x release line (coined long ago when the release " "of version 3 was something in the distant future.) This is also abbreviated " @@ -2069,11 +2071,11 @@ msgstr "" "Surnom de la série des Python 3.x (très vieux surnom donné à l'époque pour " "Python 3 n'était qu'un futur lointain). Aussi abrégé \"Py3k\"." -#: ../Doc/glossary.rst:863 +#: ../Doc/glossary.rst:864 msgid "Pythonic" msgstr "Pythonique" -#: ../Doc/glossary.rst:865 +#: ../Doc/glossary.rst:866 msgid "" "An idea or piece of code which closely follows the most common idioms of the " "Python language, rather than implementing code using concepts common to " @@ -2089,16 +2091,16 @@ msgstr "" "possibilité, donc les gens qui ne sont pas habitués à Python pourraient " "parfois utiliser un compteur à la place : ::" -#: ../Doc/glossary.rst:875 +#: ../Doc/glossary.rst:876 msgid "As opposed to the cleaner, Pythonic method::" msgstr "" "Plutôt qu'utiliser la méthode, plus propre et élégante, donc Pythonique : ::" -#: ../Doc/glossary.rst:879 +#: ../Doc/glossary.rst:880 msgid "qualified name" msgstr "nom qualifié" -#: ../Doc/glossary.rst:881 +#: ../Doc/glossary.rst:882 msgid "" "A dotted name showing the \"path\" from a module's global scope to a class, " "function or method defined in that module, as defined in :pep:`3155`. For " @@ -2110,7 +2112,7 @@ msgstr "" "module, tel que défini dans la :pep:`3155`. Pour les fonctions et classes de " "premier niveau, le nom qualifié est le même que le nom de l'objet : ::" -#: ../Doc/glossary.rst:898 +#: ../Doc/glossary.rst:899 msgid "" "When used to refer to modules, the *fully qualified name* means the entire " "dotted path to the module, including any parent packages, e.g. ``email.mime." @@ -2120,11 +2122,11 @@ msgstr "" "signifie le chemin complet (séparé par des points) vers le module, incluant " "tous les paquet parents, typiquement: ``email.mime.text`` ::" -#: ../Doc/glossary.rst:905 +#: ../Doc/glossary.rst:906 msgid "reference count" msgstr "nombre de références" -#: ../Doc/glossary.rst:907 +#: ../Doc/glossary.rst:908 msgid "" "The number of references to an object. When the reference count of an " "object drops to zero, it is deallocated. Reference counting is generally " @@ -2140,11 +2142,11 @@ msgstr "" "func:`~sys.getrefcount` que les développeurs peuvent utiliser pour obtenir " "le nombre de référence d'un objet donné." -#: ../Doc/glossary.rst:913 +#: ../Doc/glossary.rst:914 msgid "regular package" msgstr "paquet classique" -#: ../Doc/glossary.rst:915 +#: ../Doc/glossary.rst:916 msgid "" "A traditional :term:`package`, such as a directory containing an ``__init__." "py`` file." @@ -2152,15 +2154,15 @@ msgstr "" "Un :term:`paquet` traditionnel, tel qu'un dossier contenant un fichier " "``__init__.py``." -#: ../Doc/glossary.rst:918 +#: ../Doc/glossary.rst:919 msgid "See also :term:`namespace package`." msgstr "Voir aussi :term:`paquet espace de nom`." -#: ../Doc/glossary.rst:919 +#: ../Doc/glossary.rst:920 msgid "__slots__" msgstr "__slots__" -#: ../Doc/glossary.rst:921 +#: ../Doc/glossary.rst:922 msgid "" "A declaration inside a class that saves memory by pre-declaring space for " "instance attributes and eliminating instance dictionaries. Though popular, " @@ -2174,11 +2176,11 @@ msgstr "" "devrait être réservée à de rares cas avec un grand nombre d'instances dans " "une application où la mémoire est un sujet critique." -#: ../Doc/glossary.rst:926 +#: ../Doc/glossary.rst:927 msgid "sequence" msgstr "séquence" -#: ../Doc/glossary.rst:928 +#: ../Doc/glossary.rst:929 msgid "" "An :term:`iterable` which supports efficient element access using integer " "indices via the :meth:`__getitem__` special method and defines a :meth:" @@ -2197,7 +2199,7 @@ msgstr "" "qu'une séquence, car ses accès se font par une clef arbitraire :term:" "`immuable` plutôt qu'un nombre entier." -#: ../Doc/glossary.rst:937 +#: ../Doc/glossary.rst:938 msgid "" "The :class:`collections.abc.Sequence` abstract base class defines a much " "richer interface that goes beyond just :meth:`__getitem__` and :meth:" @@ -2211,11 +2213,11 @@ msgstr "" "et :meth:`__reversed__`. Les types qui implémentent cette interface étendue " "peuvent s'enregistrer explicitement en utilisant :func:`~abc.register`." -#: ../Doc/glossary.rst:944 +#: ../Doc/glossary.rst:945 msgid "single dispatch" msgstr "distribution simple" -#: ../Doc/glossary.rst:946 +#: ../Doc/glossary.rst:947 msgid "" "A form of :term:`generic function` dispatch where the implementation is " "chosen based on the type of a single argument." @@ -2224,11 +2226,11 @@ msgstr "" "générique>`, où l'implémentation est choisie en fonction du type d'un seul " "argument." -#: ../Doc/glossary.rst:948 +#: ../Doc/glossary.rst:949 msgid "slice" msgstr "tranche" -#: ../Doc/glossary.rst:950 +#: ../Doc/glossary.rst:951 msgid "" "An object usually containing a portion of a :term:`sequence`. A slice is " "created using the subscript notation, ``[]`` with colons between numbers " @@ -2241,11 +2243,11 @@ msgstr "" "``variable_name[1:3:5]``. Cette notation utilise des objets :class:`slice` " "en interne." -#: ../Doc/glossary.rst:954 +#: ../Doc/glossary.rst:955 msgid "special method" msgstr "méthode spéciale" -#: ../Doc/glossary.rst:956 +#: ../Doc/glossary.rst:957 msgid "" "A method that is called implicitly by Python to execute a certain operation " "on a type, such as addition. Such methods have names starting and ending " @@ -2257,11 +2259,11 @@ msgstr "" "noms commençant et terminant par des doubles tirets bas. Les méthodes " "spéciales sont documentées dans :ref:`specialnames`." -#: ../Doc/glossary.rst:960 +#: ../Doc/glossary.rst:961 msgid "statement" msgstr "instruction" -#: ../Doc/glossary.rst:962 +#: ../Doc/glossary.rst:963 msgid "" "A statement is part of a suite (a \"block\" of code). A statement is either " "an :term:`expression` or one of several constructs with a keyword, such as :" @@ -2272,11 +2274,11 @@ msgstr "" "constructions basées sur un mot-clef, tel qu'un :keyword:`if`, :keyword:" "`while`, ou :keyword:`for`." -#: ../Doc/glossary.rst:965 +#: ../Doc/glossary.rst:966 msgid "struct sequence" msgstr "struct sequence" -#: ../Doc/glossary.rst:967 +#: ../Doc/glossary.rst:968 msgid "" "A tuple with named elements. Struct sequences expose an interface similar " "to :term:`named tuple` in that elements can either be accessed either by " @@ -2293,19 +2295,19 @@ msgstr "" "_asdict`. Par exemple :data:`sys.float_info`, ou les valeurs données par :" "func:`os.stat` sont des *struct sequence*." -#: ../Doc/glossary.rst:973 +#: ../Doc/glossary.rst:974 msgid "text encoding" msgstr "encodage de texte" -#: ../Doc/glossary.rst:975 +#: ../Doc/glossary.rst:976 msgid "A codec which encodes Unicode strings to bytes." msgstr "Un codec qui convertit des chaînes de caractères Unicode en octets." -#: ../Doc/glossary.rst:976 +#: ../Doc/glossary.rst:977 msgid "text file" msgstr "fichier texte" -#: ../Doc/glossary.rst:978 +#: ../Doc/glossary.rst:979 msgid "" "A :term:`file object` able to read and write :class:`str` objects. Often, a " "text file actually accesses a byte-oriented datastream and handles the :term:" @@ -2319,15 +2321,15 @@ msgstr "" "fichiers texte ouverts en mode texte (``'r'`` ou ``'w'``), :data:`sys." "stdin`, :data:`sys.stdout`, et les instances de :class:`io.StringIO`." -#: ../Doc/glossary.rst:986 +#: ../Doc/glossary.rst:987 msgid "A :term:`binary file` reads and write :class:`bytes` objects." msgstr "Un :term:`fichier binaire` lit et écrit des objets :class:`bytes`." -#: ../Doc/glossary.rst:987 +#: ../Doc/glossary.rst:988 msgid "triple-quoted string" msgstr "chaîne entre triple guillemets" -#: ../Doc/glossary.rst:989 +#: ../Doc/glossary.rst:990 msgid "" "A string which is bound by three instances of either a quotation mark (\") " "or an apostrophe ('). While they don't provide any functionality not " @@ -2346,11 +2348,11 @@ msgstr "" "terminer par un ``\\``, les rendant ainsi particulièrement utile pour les " "chaînes de documentation (*docstrings*)." -#: ../Doc/glossary.rst:996 +#: ../Doc/glossary.rst:997 msgid "type" msgstr "type" -#: ../Doc/glossary.rst:998 +#: ../Doc/glossary.rst:999 msgid "" "The type of a Python object determines what kind of object it is; every " "object has a type. An object's type is accessible as its :attr:`~instance." @@ -2360,11 +2362,11 @@ msgstr "" "objets ont un type. Le type d'un objet peut être obtenu via son attribut :" "attr:`~instance.__class__` ou via ``type(obj)``." -#: ../Doc/glossary.rst:1002 +#: ../Doc/glossary.rst:1003 msgid "universal newlines" msgstr "retours à la ligne universels" -#: ../Doc/glossary.rst:1004 +#: ../Doc/glossary.rst:1005 msgid "" "A manner of interpreting text streams in which all of the following are " "recognized as ending a line: the Unix end-of-line convention ``'\\n'``, the " @@ -2378,11 +2380,11 @@ msgstr "" "pep:`278` et la :pep:`3116`, ainsi que la fonction :func:`bytes.splitlines` " "pour d'autres usages." -#: ../Doc/glossary.rst:1009 +#: ../Doc/glossary.rst:1010 msgid "variable annotation" msgstr "annotation de variable" -#: ../Doc/glossary.rst:1011 +#: ../Doc/glossary.rst:1012 msgid "" "A type metadata value associated with a module global variable or a class " "attribute. Its syntax is explained in section :ref:`annassign`. Annotations " @@ -2395,7 +2397,7 @@ msgstr "" "`__annotations__` spécial de classe ou de module et est accessible en " "utilisant :func:`typing.get_type_hints`." -#: ../Doc/glossary.rst:1017 +#: ../Doc/glossary.rst:1018 msgid "" "Python itself does not assign any particular meaning to variable " "annotations. They are intended to be interpreted by third-party libraries or " @@ -2407,11 +2409,11 @@ msgstr "" "tierces ou des outils de contrôle de type. Voir :pep:`526` et :pep:`484` qui " "décrivent certaines de leurs utilisations potentielles." -#: ../Doc/glossary.rst:1021 +#: ../Doc/glossary.rst:1022 msgid "virtual environment" msgstr "environnement virtuel" -#: ../Doc/glossary.rst:1023 +#: ../Doc/glossary.rst:1024 msgid "" "A cooperatively isolated runtime environment that allows Python users and " "applications to install and upgrade Python distribution packages without " @@ -2423,15 +2425,15 @@ msgstr "" "jour des paquets sans interférer avec d'autres applications Python " "fonctionnant sur le même système." -#: ../Doc/glossary.rst:1028 +#: ../Doc/glossary.rst:1029 msgid "See also :mod:`venv`." msgstr "Voir aussi :mod:`venv`." -#: ../Doc/glossary.rst:1029 +#: ../Doc/glossary.rst:1030 msgid "virtual machine" msgstr "machine virtuelle" -#: ../Doc/glossary.rst:1031 +#: ../Doc/glossary.rst:1032 msgid "" "A computer defined entirely in software. Python's virtual machine executes " "the :term:`bytecode` emitted by the bytecode compiler." @@ -2440,11 +2442,11 @@ msgstr "" "(*virtual machine*) de Python exécute le :term:`bytecode` donné par le " "compilateur de *bytecode*." -#: ../Doc/glossary.rst:1033 +#: ../Doc/glossary.rst:1034 msgid "Zen of Python" msgstr "Le Zen de Python" -#: ../Doc/glossary.rst:1035 +#: ../Doc/glossary.rst:1036 msgid "" "Listing of Python design principles and philosophies that are helpful in " "understanding and using the language. The listing can be found by typing " diff --git a/library/codecs.po b/library/codecs.po index 679a3701..0620ce97 100644 --- a/library/codecs.po +++ b/library/codecs.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1287,12 +1287,18 @@ msgstr "" msgid "" "Some common encodings can bypass the codecs lookup machinery to improve " "performance. These optimization opportunities are only recognized by " -"CPython for a limited set of aliases: utf-8, utf8, latin-1, latin1, " -"iso-8859-1, mbcs (Windows only), ascii, utf-16, and utf-32. Using " -"alternative spellings for these encodings may result in slower execution." +"CPython for a limited set of (case insensitive) aliases: utf-8, utf8, " +"latin-1, latin1, iso-8859-1, iso8859-1, mbcs (Windows only), ascii, us-" +"ascii, utf-16, utf16, utf-32, utf32, and the same using underscores instead " +"of dashes. Using alternative aliases for these encodings may result in " +"slower execution." msgstr "" -#: ../Doc/library/codecs.rst:985 +#: ../Doc/library/codecs.rst:986 +msgid "Optimization opportunity recognized for us-ascii." +msgstr "" + +#: ../Doc/library/codecs.rst:989 msgid "" "Many of the character sets support the same languages. They vary in " "individual characters (e.g. whether the EURO SIGN is supported or not), and " @@ -1300,512 +1306,512 @@ msgid "" "languages in particular, the following variants typically exist:" msgstr "" -#: ../Doc/library/codecs.rst:990 +#: ../Doc/library/codecs.rst:994 msgid "an ISO 8859 codeset" msgstr "" -#: ../Doc/library/codecs.rst:992 +#: ../Doc/library/codecs.rst:996 msgid "" "a Microsoft Windows code page, which is typically derived from an 8859 " "codeset, but replaces control characters with additional graphic characters" msgstr "" -#: ../Doc/library/codecs.rst:995 +#: ../Doc/library/codecs.rst:999 msgid "an IBM EBCDIC code page" msgstr "" -#: ../Doc/library/codecs.rst:997 +#: ../Doc/library/codecs.rst:1001 msgid "an IBM PC code page, which is ASCII compatible" msgstr "" -#: ../Doc/library/codecs.rst:1002 ../Doc/library/codecs.rst:1258 -#: ../Doc/library/codecs.rst:1331 ../Doc/library/codecs.rst:1386 +#: ../Doc/library/codecs.rst:1006 ../Doc/library/codecs.rst:1262 +#: ../Doc/library/codecs.rst:1335 ../Doc/library/codecs.rst:1390 msgid "Codec" msgstr "" -#: ../Doc/library/codecs.rst:1002 ../Doc/library/codecs.rst:1258 -#: ../Doc/library/codecs.rst:1331 ../Doc/library/codecs.rst:1386 +#: ../Doc/library/codecs.rst:1006 ../Doc/library/codecs.rst:1262 +#: ../Doc/library/codecs.rst:1335 ../Doc/library/codecs.rst:1390 msgid "Aliases" msgstr "" -#: ../Doc/library/codecs.rst:1002 +#: ../Doc/library/codecs.rst:1006 msgid "Languages" msgstr "" -#: ../Doc/library/codecs.rst:1004 +#: ../Doc/library/codecs.rst:1008 msgid "ascii" msgstr "ascii" -#: ../Doc/library/codecs.rst:1004 +#: ../Doc/library/codecs.rst:1008 msgid "646, us-ascii" msgstr "646, us-ascii" -#: ../Doc/library/codecs.rst:1004 ../Doc/library/codecs.rst:1010 -#: ../Doc/library/codecs.rst:1018 +#: ../Doc/library/codecs.rst:1008 ../Doc/library/codecs.rst:1014 +#: ../Doc/library/codecs.rst:1022 msgid "English" msgstr "Anglais" -#: ../Doc/library/codecs.rst:1006 +#: ../Doc/library/codecs.rst:1010 msgid "big5" msgstr "big5" -#: ../Doc/library/codecs.rst:1006 +#: ../Doc/library/codecs.rst:1010 msgid "big5-tw, csbig5" msgstr "big5-tw, csbig5" -#: ../Doc/library/codecs.rst:1006 ../Doc/library/codecs.rst:1008 -#: ../Doc/library/codecs.rst:1066 +#: ../Doc/library/codecs.rst:1010 ../Doc/library/codecs.rst:1012 +#: ../Doc/library/codecs.rst:1070 msgid "Traditional Chinese" msgstr "Chinois Traditionnel" -#: ../Doc/library/codecs.rst:1008 +#: ../Doc/library/codecs.rst:1012 msgid "big5hkscs" msgstr "big5hkscs" -#: ../Doc/library/codecs.rst:1008 +#: ../Doc/library/codecs.rst:1012 msgid "big5-hkscs, hkscs" msgstr "big5-hkscs, hkscs" -#: ../Doc/library/codecs.rst:1010 +#: ../Doc/library/codecs.rst:1014 msgid "cp037" msgstr "cp037" -#: ../Doc/library/codecs.rst:1010 +#: ../Doc/library/codecs.rst:1014 msgid "IBM037, IBM039" msgstr "IBM037, IBM039" -#: ../Doc/library/codecs.rst:1012 +#: ../Doc/library/codecs.rst:1016 msgid "cp273" msgstr "cp273" -#: ../Doc/library/codecs.rst:1012 +#: ../Doc/library/codecs.rst:1016 msgid "273, IBM273, csIBM273" msgstr "273, IBM273, csIBM273" -#: ../Doc/library/codecs.rst:1012 +#: ../Doc/library/codecs.rst:1016 msgid "German" msgstr "Allemand" -#: ../Doc/library/codecs.rst:1016 +#: ../Doc/library/codecs.rst:1020 msgid "cp424" msgstr "cp424" -#: ../Doc/library/codecs.rst:1016 +#: ../Doc/library/codecs.rst:1020 msgid "EBCDIC-CP-HE, IBM424" msgstr "EBCDIC-CP-HE, IBM424" -#: ../Doc/library/codecs.rst:1016 ../Doc/library/codecs.rst:1036 -#: ../Doc/library/codecs.rst:1046 ../Doc/library/codecs.rst:1089 -#: ../Doc/library/codecs.rst:1157 +#: ../Doc/library/codecs.rst:1020 ../Doc/library/codecs.rst:1040 +#: ../Doc/library/codecs.rst:1050 ../Doc/library/codecs.rst:1093 +#: ../Doc/library/codecs.rst:1161 msgid "Hebrew" msgstr "Hebreux" -#: ../Doc/library/codecs.rst:1018 +#: ../Doc/library/codecs.rst:1022 msgid "cp437" msgstr "cp437" -#: ../Doc/library/codecs.rst:1018 +#: ../Doc/library/codecs.rst:1022 msgid "437, IBM437" msgstr "437, IBM437" -#: ../Doc/library/codecs.rst:1020 +#: ../Doc/library/codecs.rst:1024 msgid "cp500" msgstr "cp500" -#: ../Doc/library/codecs.rst:1020 +#: ../Doc/library/codecs.rst:1024 msgid "EBCDIC-CP-BE, EBCDIC-CP-CH, IBM500" msgstr "EBCDIC-CP-BE, EBCDIC-CP-CH, IBM500" -#: ../Doc/library/codecs.rst:1020 ../Doc/library/codecs.rst:1029 -#: ../Doc/library/codecs.rst:1040 ../Doc/library/codecs.rst:1076 -#: ../Doc/library/codecs.rst:1083 ../Doc/library/codecs.rst:1169 -#: ../Doc/library/codecs.rst:1196 +#: ../Doc/library/codecs.rst:1024 ../Doc/library/codecs.rst:1033 +#: ../Doc/library/codecs.rst:1044 ../Doc/library/codecs.rst:1080 +#: ../Doc/library/codecs.rst:1087 ../Doc/library/codecs.rst:1173 +#: ../Doc/library/codecs.rst:1200 msgid "Western Europe" msgstr "Europe de l'ouest" -#: ../Doc/library/codecs.rst:1023 +#: ../Doc/library/codecs.rst:1027 msgid "cp720" msgstr "cp720" -#: ../Doc/library/codecs.rst:1023 ../Doc/library/codecs.rst:1050 -#: ../Doc/library/codecs.rst:1091 ../Doc/library/codecs.rst:1153 +#: ../Doc/library/codecs.rst:1027 ../Doc/library/codecs.rst:1054 +#: ../Doc/library/codecs.rst:1095 ../Doc/library/codecs.rst:1157 msgid "Arabic" msgstr "Arabe" -#: ../Doc/library/codecs.rst:1025 +#: ../Doc/library/codecs.rst:1029 msgid "cp737" msgstr "cp737" -#: ../Doc/library/codecs.rst:1025 ../Doc/library/codecs.rst:1056 -#: ../Doc/library/codecs.rst:1060 ../Doc/library/codecs.rst:1085 -#: ../Doc/library/codecs.rst:1155 ../Doc/library/codecs.rst:1190 +#: ../Doc/library/codecs.rst:1029 ../Doc/library/codecs.rst:1060 +#: ../Doc/library/codecs.rst:1064 ../Doc/library/codecs.rst:1089 +#: ../Doc/library/codecs.rst:1159 ../Doc/library/codecs.rst:1194 msgid "Greek" msgstr "Grec" -#: ../Doc/library/codecs.rst:1027 +#: ../Doc/library/codecs.rst:1031 msgid "cp775" msgstr "cp775" -#: ../Doc/library/codecs.rst:1027 +#: ../Doc/library/codecs.rst:1031 msgid "IBM775" msgstr "IBM775" -#: ../Doc/library/codecs.rst:1027 ../Doc/library/codecs.rst:1093 -#: ../Doc/library/codecs.rst:1148 ../Doc/library/codecs.rst:1165 +#: ../Doc/library/codecs.rst:1031 ../Doc/library/codecs.rst:1097 +#: ../Doc/library/codecs.rst:1152 ../Doc/library/codecs.rst:1169 msgid "Baltic languages" msgstr "Langues Baltiques" -#: ../Doc/library/codecs.rst:1029 +#: ../Doc/library/codecs.rst:1033 msgid "cp850" msgstr "cp850" -#: ../Doc/library/codecs.rst:1029 +#: ../Doc/library/codecs.rst:1033 msgid "850, IBM850" msgstr "850, IBM850" -#: ../Doc/library/codecs.rst:1031 +#: ../Doc/library/codecs.rst:1035 msgid "cp852" msgstr "cp852" -#: ../Doc/library/codecs.rst:1031 +#: ../Doc/library/codecs.rst:1035 msgid "852, IBM852" msgstr "852, IBM852" -#: ../Doc/library/codecs.rst:1031 ../Doc/library/codecs.rst:1078 -#: ../Doc/library/codecs.rst:1144 ../Doc/library/codecs.rst:1194 +#: ../Doc/library/codecs.rst:1035 ../Doc/library/codecs.rst:1082 +#: ../Doc/library/codecs.rst:1148 ../Doc/library/codecs.rst:1198 msgid "Central and Eastern Europe" msgstr "Europe centrale et Europe de l'Est" -#: ../Doc/library/codecs.rst:1033 +#: ../Doc/library/codecs.rst:1037 msgid "cp855" msgstr "cp855" -#: ../Doc/library/codecs.rst:1033 +#: ../Doc/library/codecs.rst:1037 msgid "855, IBM855" msgstr "855, IBM855" -#: ../Doc/library/codecs.rst:1033 ../Doc/library/codecs.rst:1080 -#: ../Doc/library/codecs.rst:1150 ../Doc/library/codecs.rst:1187 +#: ../Doc/library/codecs.rst:1037 ../Doc/library/codecs.rst:1084 +#: ../Doc/library/codecs.rst:1154 ../Doc/library/codecs.rst:1191 msgid "Bulgarian, Byelorussian, Macedonian, Russian, Serbian" msgstr "Bulgare, Biélorusse, Macédonien, Russe, Serbe" -#: ../Doc/library/codecs.rst:1036 +#: ../Doc/library/codecs.rst:1040 msgid "cp856" msgstr "cp856" -#: ../Doc/library/codecs.rst:1038 +#: ../Doc/library/codecs.rst:1042 msgid "cp857" msgstr "cp857" -#: ../Doc/library/codecs.rst:1038 +#: ../Doc/library/codecs.rst:1042 msgid "857, IBM857" msgstr "857, IBM857" -#: ../Doc/library/codecs.rst:1038 ../Doc/library/codecs.rst:1070 -#: ../Doc/library/codecs.rst:1087 ../Doc/library/codecs.rst:1159 -#: ../Doc/library/codecs.rst:1198 +#: ../Doc/library/codecs.rst:1042 ../Doc/library/codecs.rst:1074 +#: ../Doc/library/codecs.rst:1091 ../Doc/library/codecs.rst:1163 +#: ../Doc/library/codecs.rst:1202 msgid "Turkish" msgstr "Turc" -#: ../Doc/library/codecs.rst:1040 +#: ../Doc/library/codecs.rst:1044 msgid "cp858" msgstr "cp858" -#: ../Doc/library/codecs.rst:1040 +#: ../Doc/library/codecs.rst:1044 msgid "858, IBM858" msgstr "858, IBM858" -#: ../Doc/library/codecs.rst:1042 +#: ../Doc/library/codecs.rst:1046 msgid "cp860" msgstr "cp860" -#: ../Doc/library/codecs.rst:1042 +#: ../Doc/library/codecs.rst:1046 msgid "860, IBM860" msgstr "860, IBM860" -#: ../Doc/library/codecs.rst:1042 +#: ../Doc/library/codecs.rst:1046 msgid "Portuguese" msgstr "Portugais" -#: ../Doc/library/codecs.rst:1044 +#: ../Doc/library/codecs.rst:1048 msgid "cp861" msgstr "cp861" -#: ../Doc/library/codecs.rst:1044 +#: ../Doc/library/codecs.rst:1048 msgid "861, CP-IS, IBM861" msgstr "861, CP-IS, IBM861" -#: ../Doc/library/codecs.rst:1044 ../Doc/library/codecs.rst:1192 +#: ../Doc/library/codecs.rst:1048 ../Doc/library/codecs.rst:1196 msgid "Icelandic" msgstr "Islandais" -#: ../Doc/library/codecs.rst:1046 +#: ../Doc/library/codecs.rst:1050 msgid "cp862" msgstr "cp862" -#: ../Doc/library/codecs.rst:1046 +#: ../Doc/library/codecs.rst:1050 msgid "862, IBM862" msgstr "862, IBM862" -#: ../Doc/library/codecs.rst:1048 +#: ../Doc/library/codecs.rst:1052 msgid "cp863" msgstr "cp863" -#: ../Doc/library/codecs.rst:1048 +#: ../Doc/library/codecs.rst:1052 msgid "863, IBM863" msgstr "863, IBM863" -#: ../Doc/library/codecs.rst:1048 +#: ../Doc/library/codecs.rst:1052 msgid "Canadian" msgstr "Canadien" -#: ../Doc/library/codecs.rst:1050 +#: ../Doc/library/codecs.rst:1054 msgid "cp864" msgstr "cp864" -#: ../Doc/library/codecs.rst:1050 +#: ../Doc/library/codecs.rst:1054 msgid "IBM864" msgstr "IBM864" -#: ../Doc/library/codecs.rst:1052 +#: ../Doc/library/codecs.rst:1056 msgid "cp865" msgstr "cp865" -#: ../Doc/library/codecs.rst:1052 +#: ../Doc/library/codecs.rst:1056 msgid "865, IBM865" msgstr "865, IBM865" -#: ../Doc/library/codecs.rst:1052 +#: ../Doc/library/codecs.rst:1056 msgid "Danish, Norwegian" msgstr "" -#: ../Doc/library/codecs.rst:1054 +#: ../Doc/library/codecs.rst:1058 msgid "cp866" msgstr "cp866" -#: ../Doc/library/codecs.rst:1054 +#: ../Doc/library/codecs.rst:1058 msgid "866, IBM866" msgstr "866, IBM866" -#: ../Doc/library/codecs.rst:1054 ../Doc/library/codecs.rst:1175 +#: ../Doc/library/codecs.rst:1058 ../Doc/library/codecs.rst:1179 msgid "Russian" msgstr "Russe" -#: ../Doc/library/codecs.rst:1056 +#: ../Doc/library/codecs.rst:1060 msgid "cp869" msgstr "cp869" -#: ../Doc/library/codecs.rst:1056 +#: ../Doc/library/codecs.rst:1060 msgid "869, CP-GR, IBM869" msgstr "869, CP-GR, IBM869" -#: ../Doc/library/codecs.rst:1058 +#: ../Doc/library/codecs.rst:1062 msgid "cp874" msgstr "cp874" -#: ../Doc/library/codecs.rst:1058 +#: ../Doc/library/codecs.rst:1062 msgid "Thai" msgstr "" -#: ../Doc/library/codecs.rst:1060 +#: ../Doc/library/codecs.rst:1064 msgid "cp875" msgstr "cp875" -#: ../Doc/library/codecs.rst:1062 +#: ../Doc/library/codecs.rst:1066 msgid "cp932" msgstr "cp932" -#: ../Doc/library/codecs.rst:1062 +#: ../Doc/library/codecs.rst:1066 msgid "932, ms932, mskanji, ms-kanji" msgstr "932, ms932, mskanji, ms-kanji" -#: ../Doc/library/codecs.rst:1062 ../Doc/library/codecs.rst:1102 -#: ../Doc/library/codecs.rst:1104 ../Doc/library/codecs.rst:1106 -#: ../Doc/library/codecs.rst:1123 ../Doc/library/codecs.rst:1126 -#: ../Doc/library/codecs.rst:1131 ../Doc/library/codecs.rst:1134 -#: ../Doc/library/codecs.rst:1136 ../Doc/library/codecs.rst:1203 -#: ../Doc/library/codecs.rst:1206 ../Doc/library/codecs.rst:1209 +#: ../Doc/library/codecs.rst:1066 ../Doc/library/codecs.rst:1106 +#: ../Doc/library/codecs.rst:1108 ../Doc/library/codecs.rst:1110 +#: ../Doc/library/codecs.rst:1127 ../Doc/library/codecs.rst:1130 +#: ../Doc/library/codecs.rst:1135 ../Doc/library/codecs.rst:1138 +#: ../Doc/library/codecs.rst:1140 ../Doc/library/codecs.rst:1207 +#: ../Doc/library/codecs.rst:1210 ../Doc/library/codecs.rst:1213 msgid "Japanese" msgstr "" -#: ../Doc/library/codecs.rst:1064 +#: ../Doc/library/codecs.rst:1068 msgid "cp949" msgstr "cp949" -#: ../Doc/library/codecs.rst:1064 +#: ../Doc/library/codecs.rst:1068 msgid "949, ms949, uhc" msgstr "949, ms949, uhc" -#: ../Doc/library/codecs.rst:1064 ../Doc/library/codecs.rst:1108 -#: ../Doc/library/codecs.rst:1138 ../Doc/library/codecs.rst:1173 +#: ../Doc/library/codecs.rst:1068 ../Doc/library/codecs.rst:1112 +#: ../Doc/library/codecs.rst:1142 ../Doc/library/codecs.rst:1177 msgid "Korean" msgstr "" -#: ../Doc/library/codecs.rst:1066 +#: ../Doc/library/codecs.rst:1070 msgid "cp950" msgstr "cp950" -#: ../Doc/library/codecs.rst:1066 +#: ../Doc/library/codecs.rst:1070 msgid "950, ms950" msgstr "950, ms950" -#: ../Doc/library/codecs.rst:1068 +#: ../Doc/library/codecs.rst:1072 msgid "cp1006" msgstr "cp1006" -#: ../Doc/library/codecs.rst:1068 +#: ../Doc/library/codecs.rst:1072 msgid "Urdu" msgstr "" -#: ../Doc/library/codecs.rst:1070 +#: ../Doc/library/codecs.rst:1074 msgid "cp1026" msgstr "cp1026" -#: ../Doc/library/codecs.rst:1070 +#: ../Doc/library/codecs.rst:1074 msgid "ibm1026" msgstr "ibm1026" -#: ../Doc/library/codecs.rst:1072 +#: ../Doc/library/codecs.rst:1076 msgid "cp1125" msgstr "cp1125" -#: ../Doc/library/codecs.rst:1072 +#: ../Doc/library/codecs.rst:1076 msgid "1125, ibm1125, cp866u, ruscii" msgstr "1125, ibm1125, cp866u, ruscii" -#: ../Doc/library/codecs.rst:1072 ../Doc/library/codecs.rst:1181 +#: ../Doc/library/codecs.rst:1076 ../Doc/library/codecs.rst:1185 msgid "Ukrainian" msgstr "" -#: ../Doc/library/codecs.rst:1076 +#: ../Doc/library/codecs.rst:1080 msgid "cp1140" msgstr "cp1140" -#: ../Doc/library/codecs.rst:1076 +#: ../Doc/library/codecs.rst:1080 msgid "ibm1140" msgstr "ibm1140" -#: ../Doc/library/codecs.rst:1078 +#: ../Doc/library/codecs.rst:1082 msgid "cp1250" msgstr "cp1250" -#: ../Doc/library/codecs.rst:1078 +#: ../Doc/library/codecs.rst:1082 msgid "windows-1250" msgstr "windows-1250" -#: ../Doc/library/codecs.rst:1080 +#: ../Doc/library/codecs.rst:1084 msgid "cp1251" msgstr "cp1251" -#: ../Doc/library/codecs.rst:1080 +#: ../Doc/library/codecs.rst:1084 msgid "windows-1251" msgstr "windows-1251" -#: ../Doc/library/codecs.rst:1083 +#: ../Doc/library/codecs.rst:1087 msgid "cp1252" msgstr "cp1252" -#: ../Doc/library/codecs.rst:1083 +#: ../Doc/library/codecs.rst:1087 msgid "windows-1252" msgstr "windows-1252" -#: ../Doc/library/codecs.rst:1085 +#: ../Doc/library/codecs.rst:1089 msgid "cp1253" msgstr "cp1253" -#: ../Doc/library/codecs.rst:1085 +#: ../Doc/library/codecs.rst:1089 msgid "windows-1253" msgstr "windows-1253" -#: ../Doc/library/codecs.rst:1087 +#: ../Doc/library/codecs.rst:1091 msgid "cp1254" msgstr "cp1254" -#: ../Doc/library/codecs.rst:1087 +#: ../Doc/library/codecs.rst:1091 msgid "windows-1254" msgstr "windows-1254" -#: ../Doc/library/codecs.rst:1089 +#: ../Doc/library/codecs.rst:1093 msgid "cp1255" msgstr "cp1255" -#: ../Doc/library/codecs.rst:1089 +#: ../Doc/library/codecs.rst:1093 msgid "windows-1255" msgstr "windows-1255" -#: ../Doc/library/codecs.rst:1091 +#: ../Doc/library/codecs.rst:1095 msgid "cp1256" msgstr "cp1256" -#: ../Doc/library/codecs.rst:1091 +#: ../Doc/library/codecs.rst:1095 msgid "windows-1256" msgstr "windows-1256" -#: ../Doc/library/codecs.rst:1093 +#: ../Doc/library/codecs.rst:1097 msgid "cp1257" msgstr "cp1257" -#: ../Doc/library/codecs.rst:1093 +#: ../Doc/library/codecs.rst:1097 msgid "windows-1257" msgstr "windows-1257" -#: ../Doc/library/codecs.rst:1095 +#: ../Doc/library/codecs.rst:1099 msgid "cp1258" msgstr "cp1258" -#: ../Doc/library/codecs.rst:1095 +#: ../Doc/library/codecs.rst:1099 msgid "windows-1258" msgstr "windows-1258" -#: ../Doc/library/codecs.rst:1095 +#: ../Doc/library/codecs.rst:1099 msgid "Vietnamese" msgstr "" -#: ../Doc/library/codecs.rst:1097 +#: ../Doc/library/codecs.rst:1101 msgid "cp65001" msgstr "cp65001" -#: ../Doc/library/codecs.rst:1097 +#: ../Doc/library/codecs.rst:1101 msgid "Windows only: Windows UTF-8 (``CP_UTF8``)" msgstr "Windows only: Windows UTF-8 (``CP_UTF8``)" -#: ../Doc/library/codecs.rst:1102 +#: ../Doc/library/codecs.rst:1106 msgid "euc_jp" msgstr "euc_jp" -#: ../Doc/library/codecs.rst:1102 +#: ../Doc/library/codecs.rst:1106 msgid "eucjp, ujis, u-jis" msgstr "eucjp, ujis, u-jis" -#: ../Doc/library/codecs.rst:1104 +#: ../Doc/library/codecs.rst:1108 msgid "euc_jis_2004" msgstr "euc_jis_2004" -#: ../Doc/library/codecs.rst:1104 +#: ../Doc/library/codecs.rst:1108 msgid "jisx0213, eucjis2004" msgstr "jisx0213, eucjis2004" -#: ../Doc/library/codecs.rst:1106 +#: ../Doc/library/codecs.rst:1110 msgid "euc_jisx0213" msgstr "euc_jisx0213" -#: ../Doc/library/codecs.rst:1106 +#: ../Doc/library/codecs.rst:1110 msgid "eucjisx0213" msgstr "eucjisx0213" -#: ../Doc/library/codecs.rst:1108 +#: ../Doc/library/codecs.rst:1112 msgid "euc_kr" msgstr "euc_kr" -#: ../Doc/library/codecs.rst:1108 +#: ../Doc/library/codecs.rst:1112 msgid "euckr, korean, ksc5601, ks_c-5601, ks_c-5601-1987, ksx1001, ks_x-1001" msgstr "euckr, korean, ksc5601, ks_c-5601, ks_c-5601-1987, ksx1001, ks_x-1001" -#: ../Doc/library/codecs.rst:1112 +#: ../Doc/library/codecs.rst:1116 msgid "gb2312" msgstr "gb2312" -#: ../Doc/library/codecs.rst:1112 +#: ../Doc/library/codecs.rst:1116 msgid "" "chinese, csiso58gb231280, euc- cn, euccn, eucgb2312-cn, gb2312-1980, " "gb2312-80, iso- ir-58" @@ -1813,446 +1819,446 @@ msgstr "" "chinese, csiso58gb231280, euc- cn, euccn, eucgb2312-cn, gb2312-1980, " "gb2312-80, iso- ir-58" -#: ../Doc/library/codecs.rst:1112 ../Doc/library/codecs.rst:1121 +#: ../Doc/library/codecs.rst:1116 ../Doc/library/codecs.rst:1125 msgid "Simplified Chinese" msgstr "" -#: ../Doc/library/codecs.rst:1117 +#: ../Doc/library/codecs.rst:1121 msgid "gbk" msgstr "gbk" -#: ../Doc/library/codecs.rst:1117 +#: ../Doc/library/codecs.rst:1121 msgid "936, cp936, ms936" msgstr "936, cp936, ms936" -#: ../Doc/library/codecs.rst:1117 ../Doc/library/codecs.rst:1119 +#: ../Doc/library/codecs.rst:1121 ../Doc/library/codecs.rst:1123 msgid "Unified Chinese" msgstr "" -#: ../Doc/library/codecs.rst:1119 +#: ../Doc/library/codecs.rst:1123 msgid "gb18030" msgstr "gb18030" -#: ../Doc/library/codecs.rst:1119 +#: ../Doc/library/codecs.rst:1123 msgid "gb18030-2000" msgstr "gb18030-2000" -#: ../Doc/library/codecs.rst:1121 +#: ../Doc/library/codecs.rst:1125 msgid "hz" msgstr "hz" -#: ../Doc/library/codecs.rst:1121 +#: ../Doc/library/codecs.rst:1125 msgid "hzgb, hz-gb, hz-gb-2312" msgstr "hzgb, hz-gb, hz-gb-2312" -#: ../Doc/library/codecs.rst:1123 +#: ../Doc/library/codecs.rst:1127 msgid "iso2022_jp" msgstr "iso2022_jp" -#: ../Doc/library/codecs.rst:1123 +#: ../Doc/library/codecs.rst:1127 msgid "csiso2022jp, iso2022jp, iso-2022-jp" msgstr "csiso2022jp, iso2022jp, iso-2022-jp" -#: ../Doc/library/codecs.rst:1126 +#: ../Doc/library/codecs.rst:1130 msgid "iso2022_jp_1" msgstr "iso2022_jp_1" -#: ../Doc/library/codecs.rst:1126 +#: ../Doc/library/codecs.rst:1130 msgid "iso2022jp-1, iso-2022-jp-1" msgstr "iso2022jp-1, iso-2022-jp-1" -#: ../Doc/library/codecs.rst:1128 +#: ../Doc/library/codecs.rst:1132 msgid "iso2022_jp_2" msgstr "iso2022_jp_2" -#: ../Doc/library/codecs.rst:1128 +#: ../Doc/library/codecs.rst:1132 msgid "iso2022jp-2, iso-2022-jp-2" msgstr "iso2022jp-2, iso-2022-jp-2" -#: ../Doc/library/codecs.rst:1128 +#: ../Doc/library/codecs.rst:1132 msgid "Japanese, Korean, Simplified Chinese, Western Europe, Greek" msgstr "" -#: ../Doc/library/codecs.rst:1131 +#: ../Doc/library/codecs.rst:1135 msgid "iso2022_jp_2004" msgstr "iso2022_jp_2004" -#: ../Doc/library/codecs.rst:1131 +#: ../Doc/library/codecs.rst:1135 msgid "iso2022jp-2004, iso-2022-jp-2004" msgstr "iso2022jp-2004, iso-2022-jp-2004" -#: ../Doc/library/codecs.rst:1134 +#: ../Doc/library/codecs.rst:1138 msgid "iso2022_jp_3" msgstr "iso2022_jp_3" -#: ../Doc/library/codecs.rst:1134 +#: ../Doc/library/codecs.rst:1138 msgid "iso2022jp-3, iso-2022-jp-3" msgstr "iso2022jp-3, iso-2022-jp-3" -#: ../Doc/library/codecs.rst:1136 +#: ../Doc/library/codecs.rst:1140 msgid "iso2022_jp_ext" msgstr "iso2022_jp_ext" -#: ../Doc/library/codecs.rst:1136 +#: ../Doc/library/codecs.rst:1140 msgid "iso2022jp-ext, iso-2022-jp-ext" msgstr "iso2022jp-ext, iso-2022-jp-ext" -#: ../Doc/library/codecs.rst:1138 +#: ../Doc/library/codecs.rst:1142 msgid "iso2022_kr" msgstr "iso2022_kr" -#: ../Doc/library/codecs.rst:1138 +#: ../Doc/library/codecs.rst:1142 msgid "csiso2022kr, iso2022kr, iso-2022-kr" msgstr "csiso2022kr, iso2022kr, iso-2022-kr" -#: ../Doc/library/codecs.rst:1141 +#: ../Doc/library/codecs.rst:1145 msgid "latin_1" msgstr "latin_1" -#: ../Doc/library/codecs.rst:1141 +#: ../Doc/library/codecs.rst:1145 msgid "iso-8859-1, iso8859-1, 8859, cp819, latin, latin1, L1" msgstr "iso-8859-1, iso8859-1, 8859, cp819, latin, latin1, L1" -#: ../Doc/library/codecs.rst:1141 +#: ../Doc/library/codecs.rst:1145 msgid "West Europe" msgstr "Europe de l'Ouest" -#: ../Doc/library/codecs.rst:1144 +#: ../Doc/library/codecs.rst:1148 msgid "iso8859_2" msgstr "iso8859_2" -#: ../Doc/library/codecs.rst:1144 +#: ../Doc/library/codecs.rst:1148 msgid "iso-8859-2, latin2, L2" msgstr "iso-8859-2, latin2, L2" -#: ../Doc/library/codecs.rst:1146 +#: ../Doc/library/codecs.rst:1150 msgid "iso8859_3" msgstr "iso8859_3" -#: ../Doc/library/codecs.rst:1146 +#: ../Doc/library/codecs.rst:1150 msgid "iso-8859-3, latin3, L3" msgstr "iso-8859-3, latin3, L3" -#: ../Doc/library/codecs.rst:1146 +#: ../Doc/library/codecs.rst:1150 msgid "Esperanto, Maltese" msgstr "" -#: ../Doc/library/codecs.rst:1148 +#: ../Doc/library/codecs.rst:1152 msgid "iso8859_4" msgstr "iso8859_4" -#: ../Doc/library/codecs.rst:1148 +#: ../Doc/library/codecs.rst:1152 msgid "iso-8859-4, latin4, L4" msgstr "iso-8859-4, latin4, L4" -#: ../Doc/library/codecs.rst:1150 +#: ../Doc/library/codecs.rst:1154 msgid "iso8859_5" msgstr "iso8859_5" -#: ../Doc/library/codecs.rst:1150 +#: ../Doc/library/codecs.rst:1154 msgid "iso-8859-5, cyrillic" msgstr "iso-8859-5, cyrillic" -#: ../Doc/library/codecs.rst:1153 +#: ../Doc/library/codecs.rst:1157 msgid "iso8859_6" msgstr "iso8859_6" -#: ../Doc/library/codecs.rst:1153 +#: ../Doc/library/codecs.rst:1157 msgid "iso-8859-6, arabic" msgstr "iso-8859-6, arabic" -#: ../Doc/library/codecs.rst:1155 +#: ../Doc/library/codecs.rst:1159 msgid "iso8859_7" msgstr "iso8859_7" -#: ../Doc/library/codecs.rst:1155 +#: ../Doc/library/codecs.rst:1159 msgid "iso-8859-7, greek, greek8" msgstr "iso-8859-7, greek, greek8" -#: ../Doc/library/codecs.rst:1157 +#: ../Doc/library/codecs.rst:1161 msgid "iso8859_8" msgstr "iso8859_8" -#: ../Doc/library/codecs.rst:1157 +#: ../Doc/library/codecs.rst:1161 msgid "iso-8859-8, hebrew" msgstr "iso-8859-8, hebrew" -#: ../Doc/library/codecs.rst:1159 +#: ../Doc/library/codecs.rst:1163 msgid "iso8859_9" msgstr "iso8859_9" -#: ../Doc/library/codecs.rst:1159 +#: ../Doc/library/codecs.rst:1163 msgid "iso-8859-9, latin5, L5" msgstr "iso-8859-9, latin5, L5" -#: ../Doc/library/codecs.rst:1161 +#: ../Doc/library/codecs.rst:1165 msgid "iso8859_10" msgstr "iso8859_10" -#: ../Doc/library/codecs.rst:1161 +#: ../Doc/library/codecs.rst:1165 msgid "iso-8859-10, latin6, L6" msgstr "iso-8859-10, latin6, L6" -#: ../Doc/library/codecs.rst:1161 +#: ../Doc/library/codecs.rst:1165 msgid "Nordic languages" msgstr "" -#: ../Doc/library/codecs.rst:1163 +#: ../Doc/library/codecs.rst:1167 msgid "iso8859_11" msgstr "iso8859_11" -#: ../Doc/library/codecs.rst:1163 +#: ../Doc/library/codecs.rst:1167 msgid "iso-8859-11, thai" msgstr "iso-8859-11, thai" -#: ../Doc/library/codecs.rst:1163 +#: ../Doc/library/codecs.rst:1167 msgid "Thai languages" msgstr "" -#: ../Doc/library/codecs.rst:1165 +#: ../Doc/library/codecs.rst:1169 msgid "iso8859_13" msgstr "iso8859_13" -#: ../Doc/library/codecs.rst:1165 +#: ../Doc/library/codecs.rst:1169 msgid "iso-8859-13, latin7, L7" msgstr "iso-8859-13, latin7, L7" -#: ../Doc/library/codecs.rst:1167 +#: ../Doc/library/codecs.rst:1171 msgid "iso8859_14" msgstr "iso8859_14" -#: ../Doc/library/codecs.rst:1167 +#: ../Doc/library/codecs.rst:1171 msgid "iso-8859-14, latin8, L8" msgstr "iso-8859-14, latin8, L8" -#: ../Doc/library/codecs.rst:1167 +#: ../Doc/library/codecs.rst:1171 msgid "Celtic languages" msgstr "" -#: ../Doc/library/codecs.rst:1169 +#: ../Doc/library/codecs.rst:1173 msgid "iso8859_15" msgstr "iso8859_15" -#: ../Doc/library/codecs.rst:1169 +#: ../Doc/library/codecs.rst:1173 msgid "iso-8859-15, latin9, L9" msgstr "iso-8859-15, latin9, L9" -#: ../Doc/library/codecs.rst:1171 +#: ../Doc/library/codecs.rst:1175 msgid "iso8859_16" msgstr "iso8859_16" -#: ../Doc/library/codecs.rst:1171 +#: ../Doc/library/codecs.rst:1175 msgid "iso-8859-16, latin10, L10" msgstr "iso-8859-16, latin10, L10" -#: ../Doc/library/codecs.rst:1171 +#: ../Doc/library/codecs.rst:1175 msgid "South-Eastern Europe" msgstr "" -#: ../Doc/library/codecs.rst:1173 +#: ../Doc/library/codecs.rst:1177 msgid "johab" msgstr "johab" -#: ../Doc/library/codecs.rst:1173 +#: ../Doc/library/codecs.rst:1177 msgid "cp1361, ms1361" msgstr "cp1361, ms1361" -#: ../Doc/library/codecs.rst:1175 +#: ../Doc/library/codecs.rst:1179 msgid "koi8_r" msgstr "koi8_r" -#: ../Doc/library/codecs.rst:1177 +#: ../Doc/library/codecs.rst:1181 msgid "koi8_t" msgstr "koi8_t" -#: ../Doc/library/codecs.rst:1177 +#: ../Doc/library/codecs.rst:1181 msgid "Tajik" msgstr "" -#: ../Doc/library/codecs.rst:1181 +#: ../Doc/library/codecs.rst:1185 msgid "koi8_u" msgstr "koi8_u" -#: ../Doc/library/codecs.rst:1183 +#: ../Doc/library/codecs.rst:1187 msgid "kz1048" msgstr "kz1048" -#: ../Doc/library/codecs.rst:1183 +#: ../Doc/library/codecs.rst:1187 msgid "kz_1048, strk1048_2002, rk1048" msgstr "kz_1048, strk1048_2002, rk1048" -#: ../Doc/library/codecs.rst:1183 ../Doc/library/codecs.rst:1200 +#: ../Doc/library/codecs.rst:1187 ../Doc/library/codecs.rst:1204 msgid "Kazakh" msgstr "" -#: ../Doc/library/codecs.rst:1187 +#: ../Doc/library/codecs.rst:1191 msgid "mac_cyrillic" msgstr "mac_cyrillic" -#: ../Doc/library/codecs.rst:1187 +#: ../Doc/library/codecs.rst:1191 msgid "maccyrillic" msgstr "maccyrillic" -#: ../Doc/library/codecs.rst:1190 +#: ../Doc/library/codecs.rst:1194 msgid "mac_greek" msgstr "mac_greek" -#: ../Doc/library/codecs.rst:1190 +#: ../Doc/library/codecs.rst:1194 msgid "macgreek" msgstr "macgreek" -#: ../Doc/library/codecs.rst:1192 +#: ../Doc/library/codecs.rst:1196 msgid "mac_iceland" msgstr "mac_iceland" -#: ../Doc/library/codecs.rst:1192 +#: ../Doc/library/codecs.rst:1196 msgid "maciceland" msgstr "maciceland" -#: ../Doc/library/codecs.rst:1194 +#: ../Doc/library/codecs.rst:1198 msgid "mac_latin2" msgstr "mac_latin2" -#: ../Doc/library/codecs.rst:1194 +#: ../Doc/library/codecs.rst:1198 msgid "maclatin2, maccentraleurope" msgstr "maclatin2, maccentraleurope" -#: ../Doc/library/codecs.rst:1196 +#: ../Doc/library/codecs.rst:1200 msgid "mac_roman" msgstr "mac_roman" -#: ../Doc/library/codecs.rst:1196 +#: ../Doc/library/codecs.rst:1200 msgid "macroman, macintosh" msgstr "macroman, macintosh" -#: ../Doc/library/codecs.rst:1198 +#: ../Doc/library/codecs.rst:1202 msgid "mac_turkish" msgstr "mac_turkish" -#: ../Doc/library/codecs.rst:1198 +#: ../Doc/library/codecs.rst:1202 msgid "macturkish" msgstr "macturkish" -#: ../Doc/library/codecs.rst:1200 +#: ../Doc/library/codecs.rst:1204 msgid "ptcp154" msgstr "ptcp154" -#: ../Doc/library/codecs.rst:1200 +#: ../Doc/library/codecs.rst:1204 msgid "csptcp154, pt154, cp154, cyrillic-asian" msgstr "csptcp154, pt154, cp154, cyrillic-asian" -#: ../Doc/library/codecs.rst:1203 +#: ../Doc/library/codecs.rst:1207 msgid "shift_jis" msgstr "shift_jis" -#: ../Doc/library/codecs.rst:1203 +#: ../Doc/library/codecs.rst:1207 msgid "csshiftjis, shiftjis, sjis, s_jis" msgstr "csshiftjis, shiftjis, sjis, s_jis" -#: ../Doc/library/codecs.rst:1206 +#: ../Doc/library/codecs.rst:1210 msgid "shift_jis_2004" msgstr "shift_jis_2004" -#: ../Doc/library/codecs.rst:1206 +#: ../Doc/library/codecs.rst:1210 msgid "shiftjis2004, sjis_2004, sjis2004" msgstr "shiftjis2004, sjis_2004, sjis2004" -#: ../Doc/library/codecs.rst:1209 +#: ../Doc/library/codecs.rst:1213 msgid "shift_jisx0213" msgstr "shift_jisx0213" -#: ../Doc/library/codecs.rst:1209 +#: ../Doc/library/codecs.rst:1213 msgid "shiftjisx0213, sjisx0213, s_jisx0213" msgstr "shiftjisx0213, sjisx0213, s_jisx0213" -#: ../Doc/library/codecs.rst:1212 +#: ../Doc/library/codecs.rst:1216 msgid "utf_32" msgstr "utf_32" -#: ../Doc/library/codecs.rst:1212 +#: ../Doc/library/codecs.rst:1216 msgid "U32, utf32" msgstr "U32, utf32" -#: ../Doc/library/codecs.rst:1212 ../Doc/library/codecs.rst:1214 #: ../Doc/library/codecs.rst:1216 ../Doc/library/codecs.rst:1218 #: ../Doc/library/codecs.rst:1220 ../Doc/library/codecs.rst:1222 #: ../Doc/library/codecs.rst:1224 ../Doc/library/codecs.rst:1226 -#: ../Doc/library/codecs.rst:1228 +#: ../Doc/library/codecs.rst:1228 ../Doc/library/codecs.rst:1230 +#: ../Doc/library/codecs.rst:1232 msgid "all languages" msgstr "" -#: ../Doc/library/codecs.rst:1214 +#: ../Doc/library/codecs.rst:1218 msgid "utf_32_be" msgstr "utf_32_be" -#: ../Doc/library/codecs.rst:1214 +#: ../Doc/library/codecs.rst:1218 msgid "UTF-32BE" msgstr "UTF-32BE" -#: ../Doc/library/codecs.rst:1216 +#: ../Doc/library/codecs.rst:1220 msgid "utf_32_le" msgstr "utf_32_le" -#: ../Doc/library/codecs.rst:1216 +#: ../Doc/library/codecs.rst:1220 msgid "UTF-32LE" msgstr "UTF-32LE" -#: ../Doc/library/codecs.rst:1218 +#: ../Doc/library/codecs.rst:1222 msgid "utf_16" msgstr "utf_16" -#: ../Doc/library/codecs.rst:1218 +#: ../Doc/library/codecs.rst:1222 msgid "U16, utf16" msgstr "U16, utf16" -#: ../Doc/library/codecs.rst:1220 +#: ../Doc/library/codecs.rst:1224 msgid "utf_16_be" msgstr "utf_16_be" -#: ../Doc/library/codecs.rst:1220 +#: ../Doc/library/codecs.rst:1224 msgid "UTF-16BE" msgstr "UTF-16BE" -#: ../Doc/library/codecs.rst:1222 +#: ../Doc/library/codecs.rst:1226 msgid "utf_16_le" msgstr "utf_16_le" -#: ../Doc/library/codecs.rst:1222 +#: ../Doc/library/codecs.rst:1226 msgid "UTF-16LE" msgstr "UTF-16LE" -#: ../Doc/library/codecs.rst:1224 +#: ../Doc/library/codecs.rst:1228 msgid "utf_7" msgstr "utf_7" -#: ../Doc/library/codecs.rst:1224 +#: ../Doc/library/codecs.rst:1228 msgid "U7, unicode-1-1-utf-7" msgstr "U7, unicode-1-1-utf-7" -#: ../Doc/library/codecs.rst:1226 +#: ../Doc/library/codecs.rst:1230 msgid "utf_8" msgstr "utf_8" -#: ../Doc/library/codecs.rst:1226 +#: ../Doc/library/codecs.rst:1230 msgid "U8, UTF, utf8" msgstr "U8, UTF, utf8" -#: ../Doc/library/codecs.rst:1228 +#: ../Doc/library/codecs.rst:1232 msgid "utf_8_sig" msgstr "utf_8_sig" -#: ../Doc/library/codecs.rst:1231 +#: ../Doc/library/codecs.rst:1235 msgid "" "The utf-16\\* and utf-32\\* encoders no longer allow surrogate code points " "(``U+D800``--``U+DFFF``) to be encoded. The utf-32\\* decoders no longer " "decode byte sequences that correspond to surrogate code points." msgstr "" -#: ../Doc/library/codecs.rst:1239 +#: ../Doc/library/codecs.rst:1243 msgid "Python Specific Encodings" msgstr "" -#: ../Doc/library/codecs.rst:1241 +#: ../Doc/library/codecs.rst:1245 msgid "" "A number of predefined codecs are specific to Python, so their codec names " "have no meaning outside Python. These are listed in the tables below based " @@ -2262,284 +2268,284 @@ msgid "" "asymmetric codecs, the stated purpose describes the encoding direction." msgstr "" -#: ../Doc/library/codecs.rst:1249 +#: ../Doc/library/codecs.rst:1253 msgid "Text Encodings" msgstr "" -#: ../Doc/library/codecs.rst:1251 +#: ../Doc/library/codecs.rst:1255 msgid "" "The following codecs provide :class:`str` to :class:`bytes` encoding and :" "term:`bytes-like object` to :class:`str` decoding, similar to the Unicode " "text encodings." msgstr "" -#: ../Doc/library/codecs.rst:1258 ../Doc/library/codecs.rst:1331 -#: ../Doc/library/codecs.rst:1386 +#: ../Doc/library/codecs.rst:1262 ../Doc/library/codecs.rst:1335 +#: ../Doc/library/codecs.rst:1390 msgid "Purpose" msgstr "Objectif" -#: ../Doc/library/codecs.rst:1260 +#: ../Doc/library/codecs.rst:1264 msgid "idna" msgstr "idna" -#: ../Doc/library/codecs.rst:1260 +#: ../Doc/library/codecs.rst:1264 msgid "" "Implements :rfc:`3490`, see also :mod:`encodings.idna`. Only " "``errors='strict'`` is supported." msgstr "" -#: ../Doc/library/codecs.rst:1266 +#: ../Doc/library/codecs.rst:1270 msgid "mbcs" msgstr "mbcs" -#: ../Doc/library/codecs.rst:1266 +#: ../Doc/library/codecs.rst:1270 msgid "ansi, dbcs" msgstr "" -#: ../Doc/library/codecs.rst:1266 +#: ../Doc/library/codecs.rst:1270 msgid "Windows only: Encode operand according to the ANSI codepage (CP_ACP)" msgstr "" -#: ../Doc/library/codecs.rst:1270 +#: ../Doc/library/codecs.rst:1274 msgid "oem" msgstr "" -#: ../Doc/library/codecs.rst:1270 +#: ../Doc/library/codecs.rst:1274 msgid "Windows only: Encode operand according to the OEM codepage (CP_OEMCP)" msgstr "" -#: ../Doc/library/codecs.rst:1276 +#: ../Doc/library/codecs.rst:1280 msgid "palmos" msgstr "palmos" -#: ../Doc/library/codecs.rst:1276 +#: ../Doc/library/codecs.rst:1280 msgid "Encoding of PalmOS 3.5" msgstr "" -#: ../Doc/library/codecs.rst:1278 +#: ../Doc/library/codecs.rst:1282 msgid "punycode" msgstr "punycode" -#: ../Doc/library/codecs.rst:1278 +#: ../Doc/library/codecs.rst:1282 msgid "Implements :rfc:`3492`. Stateful codecs are not supported." msgstr "" -#: ../Doc/library/codecs.rst:1282 +#: ../Doc/library/codecs.rst:1286 msgid "raw_unicode_escape" msgstr "raw_unicode_escape" -#: ../Doc/library/codecs.rst:1282 +#: ../Doc/library/codecs.rst:1286 msgid "" "Latin-1 encoding with ``\\uXXXX`` and ``\\UXXXXXXXX`` for other code points. " "Existing backslashes are not escaped in any way. It is used in the Python " "pickle protocol." msgstr "" -#: ../Doc/library/codecs.rst:1291 +#: ../Doc/library/codecs.rst:1295 msgid "undefined" msgstr "undefined" -#: ../Doc/library/codecs.rst:1291 +#: ../Doc/library/codecs.rst:1295 msgid "" "Raise an exception for all conversions, even empty strings. The error " "handler is ignored." msgstr "" -#: ../Doc/library/codecs.rst:1296 +#: ../Doc/library/codecs.rst:1300 msgid "unicode_escape" msgstr "unicode_escape" -#: ../Doc/library/codecs.rst:1296 +#: ../Doc/library/codecs.rst:1300 msgid "" "Encoding suitable as the contents of a Unicode literal in ASCII-encoded " "Python source code, except that quotes are not escaped. Decodes from Latin-1 " "source code. Beware that Python source code actually uses UTF-8 by default." msgstr "" -#: ../Doc/library/codecs.rst:1307 +#: ../Doc/library/codecs.rst:1311 msgid "unicode_internal" msgstr "unicode_internal" -#: ../Doc/library/codecs.rst:1307 +#: ../Doc/library/codecs.rst:1311 msgid "" "Return the internal representation of the operand. Stateful codecs are not " "supported." msgstr "" -#: ../Doc/library/codecs.rst:1312 +#: ../Doc/library/codecs.rst:1316 msgid "This representation is obsoleted by :pep:`393`." msgstr "" -#: ../Doc/library/codecs.rst:1321 +#: ../Doc/library/codecs.rst:1325 msgid "Binary Transforms" msgstr "" -#: ../Doc/library/codecs.rst:1323 +#: ../Doc/library/codecs.rst:1327 msgid "" "The following codecs provide binary transforms: :term:`bytes-like object` " "to :class:`bytes` mappings. They are not supported by :meth:`bytes.decode` " "(which only produces :class:`str` output)." msgstr "" -#: ../Doc/library/codecs.rst:1331 +#: ../Doc/library/codecs.rst:1335 msgid "Encoder / decoder" msgstr "" -#: ../Doc/library/codecs.rst:1333 +#: ../Doc/library/codecs.rst:1337 msgid "base64_codec [#b64]_" msgstr "base64_codec [#b64]_" -#: ../Doc/library/codecs.rst:1333 +#: ../Doc/library/codecs.rst:1337 msgid "base64, base_64" msgstr "base64, base_64" -#: ../Doc/library/codecs.rst:1333 +#: ../Doc/library/codecs.rst:1337 msgid "" "Convert operand to multiline MIME base64 (the result always includes a " "trailing ``'\\n'``)" msgstr "" -#: ../Doc/library/codecs.rst:1338 +#: ../Doc/library/codecs.rst:1342 msgid "" "accepts any :term:`bytes-like object` as input for encoding and decoding" msgstr "" -#: ../Doc/library/codecs.rst:1333 +#: ../Doc/library/codecs.rst:1337 msgid ":meth:`base64.encodebytes` / :meth:`base64.decodebytes`" msgstr "" -#: ../Doc/library/codecs.rst:1344 +#: ../Doc/library/codecs.rst:1348 msgid "bz2_codec" msgstr "bz2_codec" -#: ../Doc/library/codecs.rst:1344 +#: ../Doc/library/codecs.rst:1348 msgid "bz2" msgstr "bz2" -#: ../Doc/library/codecs.rst:1344 +#: ../Doc/library/codecs.rst:1348 msgid "Compress the operand using bz2" msgstr "" -#: ../Doc/library/codecs.rst:1344 +#: ../Doc/library/codecs.rst:1348 msgid ":meth:`bz2.compress` / :meth:`bz2.decompress`" msgstr "" -#: ../Doc/library/codecs.rst:1347 +#: ../Doc/library/codecs.rst:1351 msgid "hex_codec" msgstr "hex_codec" -#: ../Doc/library/codecs.rst:1347 +#: ../Doc/library/codecs.rst:1351 msgid "hex" msgstr "hex" -#: ../Doc/library/codecs.rst:1347 +#: ../Doc/library/codecs.rst:1351 msgid "Convert operand to hexadecimal representation, with two digits per byte" msgstr "" -#: ../Doc/library/codecs.rst:1347 +#: ../Doc/library/codecs.rst:1351 msgid ":meth:`binascii.b2a_hex` / :meth:`binascii.a2b_hex`" msgstr "" -#: ../Doc/library/codecs.rst:1352 +#: ../Doc/library/codecs.rst:1356 msgid "quopri_codec" msgstr "quopri_codec" -#: ../Doc/library/codecs.rst:1352 +#: ../Doc/library/codecs.rst:1356 msgid "quopri, quotedprintable, quoted_printable" msgstr "" -#: ../Doc/library/codecs.rst:1352 +#: ../Doc/library/codecs.rst:1356 msgid "Convert operand to MIME quoted printable" msgstr "" -#: ../Doc/library/codecs.rst:1352 +#: ../Doc/library/codecs.rst:1356 msgid ":meth:`quopri.encode` with ``quotetabs=True`` / :meth:`quopri.decode`" msgstr "" -#: ../Doc/library/codecs.rst:1356 +#: ../Doc/library/codecs.rst:1360 msgid "uu_codec" msgstr "uu_codec" -#: ../Doc/library/codecs.rst:1356 +#: ../Doc/library/codecs.rst:1360 msgid "uu" msgstr "uu" -#: ../Doc/library/codecs.rst:1356 +#: ../Doc/library/codecs.rst:1360 msgid "Convert the operand using uuencode" msgstr "" -#: ../Doc/library/codecs.rst:1356 +#: ../Doc/library/codecs.rst:1360 msgid ":meth:`uu.encode` / :meth:`uu.decode`" msgstr "" -#: ../Doc/library/codecs.rst:1359 +#: ../Doc/library/codecs.rst:1363 msgid "zlib_codec" msgstr "zlib_codec" -#: ../Doc/library/codecs.rst:1359 +#: ../Doc/library/codecs.rst:1363 msgid "zip, zlib" msgstr "zip, zlib" -#: ../Doc/library/codecs.rst:1359 +#: ../Doc/library/codecs.rst:1363 msgid "Compress the operand using gzip" msgstr "" -#: ../Doc/library/codecs.rst:1359 +#: ../Doc/library/codecs.rst:1363 msgid ":meth:`zlib.compress` / :meth:`zlib.decompress`" msgstr ":meth:`zlib.compress` / :meth:`zlib.decompress`" -#: ../Doc/library/codecs.rst:1363 +#: ../Doc/library/codecs.rst:1367 msgid "" "In addition to :term:`bytes-like objects `, " "``'base64_codec'`` also accepts ASCII-only instances of :class:`str` for " "decoding" msgstr "" -#: ../Doc/library/codecs.rst:1367 +#: ../Doc/library/codecs.rst:1371 msgid "Restoration of the binary transforms." msgstr "" -#: ../Doc/library/codecs.rst:1370 +#: ../Doc/library/codecs.rst:1374 msgid "Restoration of the aliases for the binary transforms." msgstr "" -#: ../Doc/library/codecs.rst:1377 +#: ../Doc/library/codecs.rst:1381 msgid "Text Transforms" msgstr "" -#: ../Doc/library/codecs.rst:1379 +#: ../Doc/library/codecs.rst:1383 msgid "" "The following codec provides a text transform: a :class:`str` to :class:" "`str` mapping. It is not supported by :meth:`str.encode` (which only " "produces :class:`bytes` output)." msgstr "" -#: ../Doc/library/codecs.rst:1388 +#: ../Doc/library/codecs.rst:1392 msgid "rot_13" msgstr "rot_13" -#: ../Doc/library/codecs.rst:1388 +#: ../Doc/library/codecs.rst:1392 msgid "rot13" msgstr "rot13" -#: ../Doc/library/codecs.rst:1388 +#: ../Doc/library/codecs.rst:1392 msgid "Returns the Caesar-cypher encryption of the operand" msgstr "" -#: ../Doc/library/codecs.rst:1392 +#: ../Doc/library/codecs.rst:1396 msgid "Restoration of the ``rot_13`` text transform." msgstr "" -#: ../Doc/library/codecs.rst:1395 +#: ../Doc/library/codecs.rst:1399 msgid "Restoration of the ``rot13`` alias." msgstr "" -#: ../Doc/library/codecs.rst:1400 +#: ../Doc/library/codecs.rst:1404 msgid "" ":mod:`encodings.idna` --- Internationalized Domain Names in Applications" msgstr "" -#: ../Doc/library/codecs.rst:1406 +#: ../Doc/library/codecs.rst:1410 msgid "" "This module implements :rfc:`3490` (Internationalized Domain Names in " "Applications) and :rfc:`3492` (Nameprep: A Stringprep Profile for " @@ -2547,7 +2553,7 @@ msgid "" "encoding and :mod:`stringprep`." msgstr "" -#: ../Doc/library/codecs.rst:1411 +#: ../Doc/library/codecs.rst:1415 msgid "" "These RFCs together define a protocol to support non-ASCII characters in " "domain names. A domain name containing non-ASCII characters (such as ``www." @@ -2561,7 +2567,7 @@ msgid "" "presenting them to the user." msgstr "" -#: ../Doc/library/codecs.rst:1422 +#: ../Doc/library/codecs.rst:1426 msgid "" "Python supports this conversion in several ways: the ``idna`` codec " "performs conversion between Unicode and ACE, separating an input string into " @@ -2578,14 +2584,14 @@ msgid "" "sends that field at all)." msgstr "" -#: ../Doc/library/codecs.rst:1437 +#: ../Doc/library/codecs.rst:1441 msgid "" "When receiving host names from the wire (such as in reverse name lookup), no " "automatic conversion to Unicode is performed: Applications wishing to " "present such host names to the user should decode them to Unicode." msgstr "" -#: ../Doc/library/codecs.rst:1441 +#: ../Doc/library/codecs.rst:1445 msgid "" "The module :mod:`encodings.idna` also implements the nameprep procedure, " "which performs certain normalizations on host names, to achieve case-" @@ -2593,49 +2599,49 @@ msgid "" "characters. The nameprep functions can be used directly if desired." msgstr "" -#: ../Doc/library/codecs.rst:1449 +#: ../Doc/library/codecs.rst:1453 msgid "" "Return the nameprepped version of *label*. The implementation currently " "assumes query strings, so ``AllowUnassigned`` is true." msgstr "" -#: ../Doc/library/codecs.rst:1455 +#: ../Doc/library/codecs.rst:1459 msgid "" "Convert a label to ASCII, as specified in :rfc:`3490`. ``UseSTD3ASCIIRules`` " "is assumed to be false." msgstr "" -#: ../Doc/library/codecs.rst:1461 +#: ../Doc/library/codecs.rst:1465 msgid "Convert a label to Unicode, as specified in :rfc:`3490`." msgstr "" -#: ../Doc/library/codecs.rst:1465 +#: ../Doc/library/codecs.rst:1469 msgid ":mod:`encodings.mbcs` --- Windows ANSI codepage" msgstr "" -#: ../Doc/library/codecs.rst:1470 +#: ../Doc/library/codecs.rst:1474 msgid "Encode operand according to the ANSI codepage (CP_ACP)." msgstr "" -#: ../Doc/library/codecs.rst:1472 +#: ../Doc/library/codecs.rst:1476 msgid "Availability: Windows only." msgstr "" -#: ../Doc/library/codecs.rst:1474 +#: ../Doc/library/codecs.rst:1478 msgid "Support any error handler." msgstr "" -#: ../Doc/library/codecs.rst:1477 +#: ../Doc/library/codecs.rst:1481 msgid "" "Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used " "to encode, and ``'ignore'`` to decode." msgstr "" -#: ../Doc/library/codecs.rst:1483 +#: ../Doc/library/codecs.rst:1487 msgid ":mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature" msgstr "" -#: ../Doc/library/codecs.rst:1489 +#: ../Doc/library/codecs.rst:1493 msgid "" "This module implements a variant of the UTF-8 codec: On encoding a UTF-8 " "encoded BOM will be prepended to the UTF-8 encoded bytes. For the stateful " diff --git a/library/concurrent.futures.po b/library/concurrent.futures.po index 9c8e672c..ada69ed0 100644 --- a/library/concurrent.futures.po +++ b/library/concurrent.futures.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -59,28 +59,49 @@ msgid "" msgstr "" #: ../Doc/library/concurrent.futures.rst:43 +msgid "Similar to :func:`map(func, *iterables) ` except:" +msgstr "" + +#: ../Doc/library/concurrent.futures.rst:45 +msgid "the *iterables* are collected immediately rather than lazily;" +msgstr "" + +#: ../Doc/library/concurrent.futures.rst:47 msgid "" -"Equivalent to :func:`map(func, *iterables) ` except *func* is executed " -"asynchronously and several calls to *func* may be made concurrently. The " -"returned iterator raises a :exc:`concurrent.futures.TimeoutError` if :meth:" -"`~iterator.__next__` is called and the result isn't available after " +"*func* is executed asynchronously and several calls to *func* may be made " +"concurrently." +msgstr "" + +#: ../Doc/library/concurrent.futures.rst:50 +msgid "" +"The returned iterator raises a :exc:`concurrent.futures.TimeoutError` if :" +"meth:`~iterator.__next__` is called and the result isn't available after " "*timeout* seconds from the original call to :meth:`Executor.map`. *timeout* " "can be an int or a float. If *timeout* is not specified or ``None``, there " -"is no limit to the wait time. If a call raises an exception, then that " -"exception will be raised when its value is retrieved from the iterator. When " -"using :class:`ProcessPoolExecutor`, this method chops *iterables* into a " -"number of chunks which it submits to the pool as separate tasks. The " -"(approximate) size of these chunks can be specified by setting *chunksize* " -"to a positive integer. For very long iterables, using a large value for " -"*chunksize* can significantly improve performance compared to the default " -"size of 1. With :class:`ThreadPoolExecutor`, *chunksize* has no effect." +"is no limit to the wait time." +msgstr "" + +#: ../Doc/library/concurrent.futures.rst:56 +msgid "" +"If a *func* call raises an exception, then that exception will be raised " +"when its value is retrieved from the iterator." msgstr "" #: ../Doc/library/concurrent.futures.rst:59 +msgid "" +"When using :class:`ProcessPoolExecutor`, this method chops *iterables* into " +"a number of chunks which it submits to the pool as separate tasks. The " +"(approximate) size of these chunks can be specified by setting *chunksize* " +"to a positive integer. For very long iterables, using a large value for " +"*chunksize* can significantly improve performance compared to the default " +"size of 1. With :class:`ThreadPoolExecutor`, *chunksize* has no effect." +msgstr "" + +#: ../Doc/library/concurrent.futures.rst:67 msgid "Added the *chunksize* argument." msgstr "" -#: ../Doc/library/concurrent.futures.rst:64 +#: ../Doc/library/concurrent.futures.rst:72 msgid "" "Signal the executor that it should free any resources that it is using when " "the currently pending futures are done executing. Calls to :meth:`Executor." @@ -88,7 +109,7 @@ msgid "" "`RuntimeError`." msgstr "" -#: ../Doc/library/concurrent.futures.rst:69 +#: ../Doc/library/concurrent.futures.rst:77 msgid "" "If *wait* is ``True`` then this method will not return until all the pending " "futures are done executing and the resources associated with the executor " @@ -99,40 +120,40 @@ msgid "" "are done executing." msgstr "" -#: ../Doc/library/concurrent.futures.rst:77 +#: ../Doc/library/concurrent.futures.rst:85 msgid "" "You can avoid having to call this method explicitly if you use the :keyword:" "`with` statement, which will shutdown the :class:`Executor` (waiting as if :" "meth:`Executor.shutdown` were called with *wait* set to ``True``)::" msgstr "" -#: ../Doc/library/concurrent.futures.rst:91 +#: ../Doc/library/concurrent.futures.rst:99 msgid "ThreadPoolExecutor" msgstr "ThreadPoolExecutor" -#: ../Doc/library/concurrent.futures.rst:93 +#: ../Doc/library/concurrent.futures.rst:101 msgid "" ":class:`ThreadPoolExecutor` is an :class:`Executor` subclass that uses a " "pool of threads to execute calls asynchronously." msgstr "" -#: ../Doc/library/concurrent.futures.rst:96 +#: ../Doc/library/concurrent.futures.rst:104 msgid "" "Deadlocks can occur when the callable associated with a :class:`Future` " "waits on the results of another :class:`Future`. For example::" msgstr "" -#: ../Doc/library/concurrent.futures.rst:115 +#: ../Doc/library/concurrent.futures.rst:123 msgid "And::" msgstr "Et : ::" -#: ../Doc/library/concurrent.futures.rst:129 +#: ../Doc/library/concurrent.futures.rst:137 msgid "" "An :class:`Executor` subclass that uses a pool of at most *max_workers* " "threads to execute calls asynchronously." msgstr "" -#: ../Doc/library/concurrent.futures.rst:132 +#: ../Doc/library/concurrent.futures.rst:140 msgid "" "If *max_workers* is ``None`` or not given, it will default to the number of " "processors on the machine, multiplied by ``5``, assuming that :class:" @@ -141,22 +162,22 @@ msgid "" "`ProcessPoolExecutor`." msgstr "" -#: ../Doc/library/concurrent.futures.rst:140 +#: ../Doc/library/concurrent.futures.rst:148 msgid "" "The *thread_name_prefix* argument was added to allow users to control the " "threading.Thread names for worker threads created by the pool for easier " "debugging." msgstr "" -#: ../Doc/library/concurrent.futures.rst:148 +#: ../Doc/library/concurrent.futures.rst:156 msgid "ThreadPoolExecutor Example" msgstr "" -#: ../Doc/library/concurrent.futures.rst:180 +#: ../Doc/library/concurrent.futures.rst:188 msgid "ProcessPoolExecutor" msgstr "ProcessPoolExecutor" -#: ../Doc/library/concurrent.futures.rst:182 +#: ../Doc/library/concurrent.futures.rst:190 msgid "" "The :class:`ProcessPoolExecutor` class is an :class:`Executor` subclass that " "uses a pool of processes to execute calls asynchronously. :class:" @@ -165,20 +186,20 @@ msgid "" "picklable objects can be executed and returned." msgstr "" -#: ../Doc/library/concurrent.futures.rst:188 +#: ../Doc/library/concurrent.futures.rst:196 msgid "" "The ``__main__`` module must be importable by worker subprocesses. This " "means that :class:`ProcessPoolExecutor` will not work in the interactive " "interpreter." msgstr "" -#: ../Doc/library/concurrent.futures.rst:191 +#: ../Doc/library/concurrent.futures.rst:199 msgid "" "Calling :class:`Executor` or :class:`Future` methods from a callable " "submitted to a :class:`ProcessPoolExecutor` will result in deadlock." msgstr "" -#: ../Doc/library/concurrent.futures.rst:196 +#: ../Doc/library/concurrent.futures.rst:204 msgid "" "An :class:`Executor` subclass that executes calls asynchronously using a " "pool of at most *max_workers* processes. If *max_workers* is ``None`` or " @@ -187,7 +208,7 @@ msgid "" "raised." msgstr "" -#: ../Doc/library/concurrent.futures.rst:202 +#: ../Doc/library/concurrent.futures.rst:210 msgid "" "When one of the worker processes terminates abruptly, a :exc:" "`BrokenProcessPool` error is now raised. Previously, behaviour was " @@ -195,50 +216,50 @@ msgid "" "or deadlock." msgstr "" -#: ../Doc/library/concurrent.futures.rst:212 +#: ../Doc/library/concurrent.futures.rst:220 msgid "ProcessPoolExecutor Example" msgstr "" -#: ../Doc/library/concurrent.futures.rst:246 +#: ../Doc/library/concurrent.futures.rst:254 msgid "Future Objects" msgstr "" -#: ../Doc/library/concurrent.futures.rst:248 +#: ../Doc/library/concurrent.futures.rst:256 msgid "" "The :class:`Future` class encapsulates the asynchronous execution of a " "callable. :class:`Future` instances are created by :meth:`Executor.submit`." msgstr "" -#: ../Doc/library/concurrent.futures.rst:253 +#: ../Doc/library/concurrent.futures.rst:261 msgid "" "Encapsulates the asynchronous execution of a callable. :class:`Future` " "instances are created by :meth:`Executor.submit` and should not be created " "directly except for testing." msgstr "" -#: ../Doc/library/concurrent.futures.rst:259 +#: ../Doc/library/concurrent.futures.rst:267 msgid "" "Attempt to cancel the call. If the call is currently being executed and " "cannot be cancelled then the method will return ``False``, otherwise the " "call will be cancelled and the method will return ``True``." msgstr "" -#: ../Doc/library/concurrent.futures.rst:265 +#: ../Doc/library/concurrent.futures.rst:273 msgid "Return ``True`` if the call was successfully cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:269 +#: ../Doc/library/concurrent.futures.rst:277 msgid "" "Return ``True`` if the call is currently being executed and cannot be " "cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:274 +#: ../Doc/library/concurrent.futures.rst:282 msgid "" "Return ``True`` if the call was successfully cancelled or finished running." msgstr "" -#: ../Doc/library/concurrent.futures.rst:279 +#: ../Doc/library/concurrent.futures.rst:287 msgid "" "Return the value returned by the call. If the call hasn't yet completed then " "this method will wait up to *timeout* seconds. If the call hasn't completed " @@ -247,18 +268,18 @@ msgid "" "``None``, there is no limit to the wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:286 -#: ../Doc/library/concurrent.futures.rst:300 +#: ../Doc/library/concurrent.futures.rst:294 +#: ../Doc/library/concurrent.futures.rst:308 msgid "" "If the future is cancelled before completing then :exc:`.CancelledError` " "will be raised." msgstr "" -#: ../Doc/library/concurrent.futures.rst:289 +#: ../Doc/library/concurrent.futures.rst:297 msgid "If the call raised, this method will raise the same exception." msgstr "" -#: ../Doc/library/concurrent.futures.rst:293 +#: ../Doc/library/concurrent.futures.rst:301 msgid "" "Return the exception raised by the call. If the call hasn't yet completed " "then this method will wait up to *timeout* seconds. If the call hasn't " @@ -267,18 +288,18 @@ msgid "" "*timeout* is not specified or ``None``, there is no limit to the wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:303 +#: ../Doc/library/concurrent.futures.rst:311 msgid "If the call completed without raising, ``None`` is returned." msgstr "" -#: ../Doc/library/concurrent.futures.rst:307 +#: ../Doc/library/concurrent.futures.rst:315 msgid "" "Attaches the callable *fn* to the future. *fn* will be called, with the " "future as its only argument, when the future is cancelled or finishes " "running." msgstr "" -#: ../Doc/library/concurrent.futures.rst:311 +#: ../Doc/library/concurrent.futures.rst:319 msgid "" "Added callables are called in the order that they were added and are always " "called in a thread belonging to the process that added them. If the " @@ -287,26 +308,26 @@ msgid "" "behavior is undefined." msgstr "" -#: ../Doc/library/concurrent.futures.rst:317 +#: ../Doc/library/concurrent.futures.rst:325 msgid "" "If the future has already completed or been cancelled, *fn* will be called " "immediately." msgstr "" -#: ../Doc/library/concurrent.futures.rst:320 +#: ../Doc/library/concurrent.futures.rst:328 msgid "" "The following :class:`Future` methods are meant for use in unit tests and :" "class:`Executor` implementations." msgstr "" -#: ../Doc/library/concurrent.futures.rst:325 +#: ../Doc/library/concurrent.futures.rst:333 msgid "" "This method should only be called by :class:`Executor` implementations " "before executing the work associated with the :class:`Future` and by unit " "tests." msgstr "" -#: ../Doc/library/concurrent.futures.rst:329 +#: ../Doc/library/concurrent.futures.rst:337 msgid "" "If the method returns ``False`` then the :class:`Future` was cancelled, i." "e. :meth:`Future.cancel` was called and returned `True`. Any threads " @@ -314,42 +335,42 @@ msgid "" "or :func:`wait`) will be woken up." msgstr "" -#: ../Doc/library/concurrent.futures.rst:334 +#: ../Doc/library/concurrent.futures.rst:342 msgid "" "If the method returns ``True`` then the :class:`Future` was not cancelled " "and has been put in the running state, i.e. calls to :meth:`Future.running` " "will return `True`." msgstr "" -#: ../Doc/library/concurrent.futures.rst:338 +#: ../Doc/library/concurrent.futures.rst:346 msgid "" "This method can only be called once and cannot be called after :meth:`Future." "set_result` or :meth:`Future.set_exception` have been called." msgstr "" -#: ../Doc/library/concurrent.futures.rst:344 +#: ../Doc/library/concurrent.futures.rst:352 msgid "" "Sets the result of the work associated with the :class:`Future` to *result*." msgstr "" -#: ../Doc/library/concurrent.futures.rst:347 #: ../Doc/library/concurrent.futures.rst:355 +#: ../Doc/library/concurrent.futures.rst:363 msgid "" "This method should only be used by :class:`Executor` implementations and " "unit tests." msgstr "" -#: ../Doc/library/concurrent.futures.rst:352 +#: ../Doc/library/concurrent.futures.rst:360 msgid "" "Sets the result of the work associated with the :class:`Future` to the :" "class:`Exception` *exception*." msgstr "" -#: ../Doc/library/concurrent.futures.rst:360 +#: ../Doc/library/concurrent.futures.rst:368 msgid "Module Functions" msgstr "" -#: ../Doc/library/concurrent.futures.rst:364 +#: ../Doc/library/concurrent.futures.rst:372 msgid "" "Wait for the :class:`Future` instances (possibly created by different :class:" "`Executor` instances) given by *fs* to complete. Returns a named 2-tuple of " @@ -358,55 +379,55 @@ msgid "" "named ``not_done``, contains uncompleted futures." msgstr "" -#: ../Doc/library/concurrent.futures.rst:370 +#: ../Doc/library/concurrent.futures.rst:378 msgid "" "*timeout* can be used to control the maximum number of seconds to wait " "before returning. *timeout* can be an int or float. If *timeout* is not " "specified or ``None``, there is no limit to the wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:374 +#: ../Doc/library/concurrent.futures.rst:382 msgid "" "*return_when* indicates when this function should return. It must be one of " "the following constants:" msgstr "" -#: ../Doc/library/concurrent.futures.rst:380 +#: ../Doc/library/concurrent.futures.rst:388 msgid "Constant" msgstr "Constante" -#: ../Doc/library/concurrent.futures.rst:380 +#: ../Doc/library/concurrent.futures.rst:388 msgid "Description" msgstr "Description" -#: ../Doc/library/concurrent.futures.rst:382 +#: ../Doc/library/concurrent.futures.rst:390 msgid ":const:`FIRST_COMPLETED`" msgstr ":const:`FIRST_COMPLETED`" -#: ../Doc/library/concurrent.futures.rst:382 +#: ../Doc/library/concurrent.futures.rst:390 msgid "The function will return when any future finishes or is cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:385 +#: ../Doc/library/concurrent.futures.rst:393 msgid ":const:`FIRST_EXCEPTION`" msgstr ":const:`FIRST_EXCEPTION`" -#: ../Doc/library/concurrent.futures.rst:385 +#: ../Doc/library/concurrent.futures.rst:393 msgid "" "The function will return when any future finishes by raising an exception. " "If no future raises an exception then it is equivalent to :const:" "`ALL_COMPLETED`." msgstr "" -#: ../Doc/library/concurrent.futures.rst:391 +#: ../Doc/library/concurrent.futures.rst:399 msgid ":const:`ALL_COMPLETED`" msgstr ":const:`ALL_COMPLETED`" -#: ../Doc/library/concurrent.futures.rst:391 +#: ../Doc/library/concurrent.futures.rst:399 msgid "The function will return when all futures finish or are cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:397 +#: ../Doc/library/concurrent.futures.rst:405 msgid "" "Returns an iterator over the :class:`Future` instances (possibly created by " "different :class:`Executor` instances) given by *fs* that yields futures as " @@ -420,29 +441,29 @@ msgid "" "wait time." msgstr "" -#: ../Doc/library/concurrent.futures.rst:411 +#: ../Doc/library/concurrent.futures.rst:419 msgid ":pep:`3148` -- futures - execute computations asynchronously" msgstr "" -#: ../Doc/library/concurrent.futures.rst:411 +#: ../Doc/library/concurrent.futures.rst:419 msgid "" "The proposal which described this feature for inclusion in the Python " "standard library." msgstr "" -#: ../Doc/library/concurrent.futures.rst:416 +#: ../Doc/library/concurrent.futures.rst:424 msgid "Exception classes" msgstr "" -#: ../Doc/library/concurrent.futures.rst:422 +#: ../Doc/library/concurrent.futures.rst:430 msgid "Raised when a future is cancelled." msgstr "" -#: ../Doc/library/concurrent.futures.rst:426 +#: ../Doc/library/concurrent.futures.rst:434 msgid "Raised when a future operation exceeds the given timeout." msgstr "" -#: ../Doc/library/concurrent.futures.rst:432 +#: ../Doc/library/concurrent.futures.rst:440 msgid "" "Derived from :exc:`RuntimeError`, this exception class is raised when one of " "the workers of a :class:`ProcessPoolExecutor` has terminated in a non-clean " diff --git a/library/io.po b/library/io.po index 9b4e54b8..2a798745 100644 --- a/library/io.po +++ b/library/io.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,7 +62,7 @@ msgid "" "since :exc:`IOError` is now an alias of :exc:`OSError`." msgstr "" -#: ../Doc/library/io.rst:51 ../Doc/library/io.rst:743 ../Doc/library/io.rst:973 +#: ../Doc/library/io.rst:51 ../Doc/library/io.rst:746 ../Doc/library/io.rst:976 msgid "Text I/O" msgstr "" @@ -91,7 +91,7 @@ msgid "" "`TextIOBase`." msgstr "" -#: ../Doc/library/io.rst:72 ../Doc/library/io.rst:961 +#: ../Doc/library/io.rst:72 ../Doc/library/io.rst:964 msgid "Binary I/O" msgstr "" @@ -313,7 +313,7 @@ msgid "``detach``, ``read``, ``read1``, and ``write``" msgstr "``detach``, ``read``, ``read1``, et ``write``" #: ../Doc/library/io.rst:208 -msgid "Inherited :class:`IOBase` methods, ``readinto``" +msgid "Inherited :class:`IOBase` methods, ``readinto``, and ``readinto1``" msgstr "" #: ../Doc/library/io.rst:210 @@ -486,7 +486,7 @@ msgstr "" msgid "Return the new absolute position." msgstr "" -#: ../Doc/library/io.rst:326 ../Doc/library/io.rst:820 +#: ../Doc/library/io.rst:326 ../Doc/library/io.rst:823 msgid "The ``SEEK_*`` constants." msgstr "" @@ -561,9 +561,9 @@ msgstr "" #: ../Doc/library/io.rst:387 msgid "" "Read up to *size* bytes from the object and return them. As a convenience, " -"if *size* is unspecified or -1, :meth:`readall` is called. Otherwise, only " -"one system call is ever made. Fewer than *size* bytes may be returned if " -"the operating system call returns fewer than *size* bytes." +"if *size* is unspecified or -1, all bytes until EOF are returned. Otherwise, " +"only one system call is ever made. Fewer than *size* bytes may be returned " +"if the operating system call returns fewer than *size* bytes." msgstr "" #: ../Doc/library/io.rst:392 @@ -573,20 +573,25 @@ msgid "" "is returned." msgstr "" -#: ../Doc/library/io.rst:398 +#: ../Doc/library/io.rst:396 +msgid "" +"The default implementation defers to :meth:`readall` and :meth:`readinto`." +msgstr "" + +#: ../Doc/library/io.rst:401 msgid "" "Read and return all the bytes from the stream until EOF, using multiple " "calls to the stream if necessary." msgstr "" -#: ../Doc/library/io.rst:403 +#: ../Doc/library/io.rst:406 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b*, and " "return the number of bytes read. If the object is in non-blocking mode and " "no bytes are available, ``None`` is returned." msgstr "" -#: ../Doc/library/io.rst:410 +#: ../Doc/library/io.rst:413 msgid "" "Write the given :term:`bytes-like object`, *b*, to the underlying raw " "stream, and return the number of bytes written. This can be less than the " @@ -597,13 +602,13 @@ msgid "" "the implementation should only access *b* during the method call." msgstr "" -#: ../Doc/library/io.rst:423 +#: ../Doc/library/io.rst:426 msgid "" "Base class for binary streams that support some kind of buffering. It " "inherits :class:`IOBase`. There is no public constructor." msgstr "" -#: ../Doc/library/io.rst:426 +#: ../Doc/library/io.rst:429 msgid "" "The main difference with :class:`RawIOBase` is that methods :meth:`read`, :" "meth:`readinto` and :meth:`write` will try (respectively) to read as much " @@ -611,7 +616,7 @@ msgid "" "perhaps more than one system call." msgstr "" -#: ../Doc/library/io.rst:431 +#: ../Doc/library/io.rst:434 msgid "" "In addition, those methods can raise :exc:`BlockingIOError` if the " "underlying raw stream is in non-blocking mode and cannot take or give enough " @@ -619,55 +624,55 @@ msgid "" "``None``." msgstr "" -#: ../Doc/library/io.rst:436 +#: ../Doc/library/io.rst:439 msgid "" "Besides, the :meth:`read` method does not have a default implementation that " "defers to :meth:`readinto`." msgstr "" -#: ../Doc/library/io.rst:439 +#: ../Doc/library/io.rst:442 msgid "" "A typical :class:`BufferedIOBase` implementation should not inherit from a :" "class:`RawIOBase` implementation, but wrap one, like :class:`BufferedWriter` " "and :class:`BufferedReader` do." msgstr "" -#: ../Doc/library/io.rst:443 +#: ../Doc/library/io.rst:446 msgid "" ":class:`BufferedIOBase` provides or overrides these methods and attribute in " "addition to those from :class:`IOBase`:" msgstr "" -#: ../Doc/library/io.rst:448 +#: ../Doc/library/io.rst:451 msgid "" "The underlying raw stream (a :class:`RawIOBase` instance) that :class:" "`BufferedIOBase` deals with. This is not part of the :class:" "`BufferedIOBase` API and may not exist on some implementations." msgstr "" -#: ../Doc/library/io.rst:454 +#: ../Doc/library/io.rst:457 msgid "Separate the underlying raw stream from the buffer and return it." msgstr "" -#: ../Doc/library/io.rst:456 +#: ../Doc/library/io.rst:459 msgid "" "After the raw stream has been detached, the buffer is in an unusable state." msgstr "" -#: ../Doc/library/io.rst:459 +#: ../Doc/library/io.rst:462 msgid "" "Some buffers, like :class:`BytesIO`, do not have the concept of a single raw " "stream to return from this method. They raise :exc:`UnsupportedOperation`." msgstr "" -#: ../Doc/library/io.rst:467 +#: ../Doc/library/io.rst:470 msgid "" "Read and return up to *size* bytes. If the argument is omitted, ``None``, " "or negative, data is read and returned until EOF is reached. An empty :" "class:`bytes` object is returned if the stream is already at EOF." msgstr "" -#: ../Doc/library/io.rst:471 +#: ../Doc/library/io.rst:474 msgid "" "If the argument is positive, and the underlying raw stream is not " "interactive, multiple raw reads may be issued to satisfy the byte count " @@ -676,14 +681,14 @@ msgid "" "imminent." msgstr "" -#: ../Doc/library/io.rst:477 ../Doc/library/io.rst:496 -#: ../Doc/library/io.rst:506 +#: ../Doc/library/io.rst:480 ../Doc/library/io.rst:499 +#: ../Doc/library/io.rst:509 msgid "" "A :exc:`BlockingIOError` is raised if the underlying raw stream is in non " "blocking-mode, and has no data available at the moment." msgstr "" -#: ../Doc/library/io.rst:482 +#: ../Doc/library/io.rst:485 msgid "" "Read and return up to *size* bytes, with at most one call to the underlying " "raw stream's :meth:`~RawIOBase.read` (or :meth:`~RawIOBase.readinto`) " @@ -691,19 +696,19 @@ msgid "" "top of a :class:`BufferedIOBase` object." msgstr "" -#: ../Doc/library/io.rst:490 +#: ../Doc/library/io.rst:493 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b* and " "return the number of bytes read." msgstr "" -#: ../Doc/library/io.rst:493 +#: ../Doc/library/io.rst:496 msgid "" "Like :meth:`read`, multiple reads may be issued to the underlying raw " "stream, unless the latter is interactive." msgstr "" -#: ../Doc/library/io.rst:501 +#: ../Doc/library/io.rst:504 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b*, " "using at most one call to the underlying raw stream's :meth:`~RawIOBase." @@ -711,7 +716,7 @@ msgid "" "read." msgstr "" -#: ../Doc/library/io.rst:513 +#: ../Doc/library/io.rst:516 msgid "" "Write the given :term:`bytes-like object`, *b*, and return the number of " "bytes written (always equal to the length of *b* in bytes, since if the " @@ -720,42 +725,42 @@ msgid "" "or held in a buffer for performance and latency reasons." msgstr "" -#: ../Doc/library/io.rst:520 +#: ../Doc/library/io.rst:523 msgid "" "When in non-blocking mode, a :exc:`BlockingIOError` is raised if the data " "needed to be written to the raw stream but it couldn't accept all the data " "without blocking." msgstr "" -#: ../Doc/library/io.rst:524 +#: ../Doc/library/io.rst:527 msgid "" "The caller may release or mutate *b* after this method returns, so the " "implementation should only access *b* during the method call." msgstr "" -#: ../Doc/library/io.rst:529 +#: ../Doc/library/io.rst:532 msgid "Raw File I/O" msgstr "" -#: ../Doc/library/io.rst:533 +#: ../Doc/library/io.rst:536 msgid "" ":class:`FileIO` represents an OS-level file containing bytes data. It " "implements the :class:`RawIOBase` interface (and therefore the :class:" "`IOBase` interface, too)." msgstr "" -#: ../Doc/library/io.rst:537 +#: ../Doc/library/io.rst:540 msgid "The *name* can be one of two things:" msgstr "" -#: ../Doc/library/io.rst:539 +#: ../Doc/library/io.rst:542 msgid "" "a character string or :class:`bytes` object representing the path to the " "file which will be opened. In this case closefd must be ``True`` (the " "default) otherwise an error will be raised." msgstr "" -#: ../Doc/library/io.rst:542 +#: ../Doc/library/io.rst:545 msgid "" "an integer representing the number of an existing OS-level file descriptor " "to which the resulting :class:`FileIO` object will give access. When the " @@ -763,7 +768,7 @@ msgid "" "set to ``False``." msgstr "" -#: ../Doc/library/io.rst:547 +#: ../Doc/library/io.rst:550 msgid "" "The *mode* can be ``'r'``, ``'w'``, ``'x'`` or ``'a'`` for reading " "(default), writing, exclusive creation or appending. The file will be " @@ -774,13 +779,13 @@ msgid "" "``'+'`` to the mode to allow simultaneous reading and writing." msgstr "" -#: ../Doc/library/io.rst:555 +#: ../Doc/library/io.rst:558 msgid "" "The :meth:`read` (when called with a positive argument), :meth:`readinto` " "and :meth:`write` methods on this class will only make one system call." msgstr "" -#: ../Doc/library/io.rst:558 +#: ../Doc/library/io.rst:561 msgid "" "A custom opener can be used by passing a callable as *opener*. The " "underlying file descriptor for the file object is then obtained by calling " @@ -794,97 +799,97 @@ msgstr "" "descripteur de fichier ouvert (fournir :mod:`os.open` en temps qu'*opener* " "aura le même effet que donner ``None``)." -#: ../Doc/library/io.rst:564 +#: ../Doc/library/io.rst:567 msgid "The newly created file is :ref:`non-inheritable `." msgstr "" "Il n'est :ref:`pas possible d'hériter du fichier ` " "nouvellement créé." -#: ../Doc/library/io.rst:566 +#: ../Doc/library/io.rst:569 msgid "" "See the :func:`open` built-in function for examples on using the *opener* " "parameter." msgstr "" -#: ../Doc/library/io.rst:569 +#: ../Doc/library/io.rst:572 msgid "The *opener* parameter was added. The ``'x'`` mode was added." msgstr "" -#: ../Doc/library/io.rst:573 +#: ../Doc/library/io.rst:576 msgid "The file is now non-inheritable." msgstr "Il n'est plus possible d'hériter de *file*." -#: ../Doc/library/io.rst:576 +#: ../Doc/library/io.rst:579 msgid "" "In addition to the attributes and methods from :class:`IOBase` and :class:" "`RawIOBase`, :class:`FileIO` provides the following data attributes:" msgstr "" -#: ../Doc/library/io.rst:582 +#: ../Doc/library/io.rst:585 msgid "The mode as given in the constructor." msgstr "" -#: ../Doc/library/io.rst:586 +#: ../Doc/library/io.rst:589 msgid "" "The file name. This is the file descriptor of the file when no name is " "given in the constructor." msgstr "" -#: ../Doc/library/io.rst:591 +#: ../Doc/library/io.rst:594 msgid "Buffered Streams" msgstr "" -#: ../Doc/library/io.rst:593 +#: ../Doc/library/io.rst:596 msgid "" "Buffered I/O streams provide a higher-level interface to an I/O device than " "raw I/O does." msgstr "" -#: ../Doc/library/io.rst:598 +#: ../Doc/library/io.rst:601 msgid "" "A stream implementation using an in-memory bytes buffer. It inherits :class:" "`BufferedIOBase`. The buffer is discarded when the :meth:`~IOBase.close` " "method is called." msgstr "" -#: ../Doc/library/io.rst:602 +#: ../Doc/library/io.rst:605 msgid "" "The optional argument *initial_bytes* is a :term:`bytes-like object` that " "contains initial data." msgstr "" -#: ../Doc/library/io.rst:605 +#: ../Doc/library/io.rst:608 msgid "" ":class:`BytesIO` provides or overrides these methods in addition to those " "from :class:`BufferedIOBase` and :class:`IOBase`:" msgstr "" -#: ../Doc/library/io.rst:610 +#: ../Doc/library/io.rst:613 msgid "" "Return a readable and writable view over the contents of the buffer without " "copying them. Also, mutating the view will transparently update the " "contents of the buffer::" msgstr "" -#: ../Doc/library/io.rst:621 +#: ../Doc/library/io.rst:624 msgid "" "As long as the view exists, the :class:`BytesIO` object cannot be resized or " "closed." msgstr "" -#: ../Doc/library/io.rst:628 +#: ../Doc/library/io.rst:631 msgid "Return :class:`bytes` containing the entire contents of the buffer." msgstr "" -#: ../Doc/library/io.rst:633 +#: ../Doc/library/io.rst:636 msgid "In :class:`BytesIO`, this is the same as :meth:`read`." msgstr "" -#: ../Doc/library/io.rst:637 +#: ../Doc/library/io.rst:640 msgid "In :class:`BytesIO`, this is the same as :meth:`readinto`." msgstr "" -#: ../Doc/library/io.rst:643 +#: ../Doc/library/io.rst:646 msgid "" "A buffer providing higher-level access to a readable, sequential :class:" "`RawIOBase` object. It inherits :class:`BufferedIOBase`. When reading data " @@ -893,40 +898,40 @@ msgid "" "then be returned directly on subsequent reads." msgstr "" -#: ../Doc/library/io.rst:649 +#: ../Doc/library/io.rst:652 msgid "" "The constructor creates a :class:`BufferedReader` for the given readable " "*raw* stream and *buffer_size*. If *buffer_size* is omitted, :data:" "`DEFAULT_BUFFER_SIZE` is used." msgstr "" -#: ../Doc/library/io.rst:653 +#: ../Doc/library/io.rst:656 msgid "" ":class:`BufferedReader` provides or overrides these methods in addition to " "those from :class:`BufferedIOBase` and :class:`IOBase`:" msgstr "" -#: ../Doc/library/io.rst:658 +#: ../Doc/library/io.rst:661 msgid "" "Return bytes from the stream without advancing the position. At most one " "single read on the raw stream is done to satisfy the call. The number of " "bytes returned may be less or more than requested." msgstr "" -#: ../Doc/library/io.rst:664 +#: ../Doc/library/io.rst:667 msgid "" "Read and return *size* bytes, or if *size* is not given or negative, until " "EOF or if the read call would block in non-blocking mode." msgstr "" -#: ../Doc/library/io.rst:669 +#: ../Doc/library/io.rst:672 msgid "" "Read and return up to *size* bytes with only one call on the raw stream. If " "at least one byte is buffered, only buffered bytes are returned. Otherwise, " "one raw stream read call is made." msgstr "" -#: ../Doc/library/io.rst:676 +#: ../Doc/library/io.rst:679 msgid "" "A buffer providing higher-level access to a writeable, sequential :class:" "`RawIOBase` object. It inherits :class:`BufferedIOBase`. When writing to " @@ -935,98 +940,98 @@ msgid "" "various conditions, including:" msgstr "" -#: ../Doc/library/io.rst:682 +#: ../Doc/library/io.rst:685 msgid "when the buffer gets too small for all pending data;" msgstr "" -#: ../Doc/library/io.rst:683 +#: ../Doc/library/io.rst:686 msgid "when :meth:`flush()` is called;" msgstr "" -#: ../Doc/library/io.rst:684 +#: ../Doc/library/io.rst:687 msgid "" "when a :meth:`seek()` is requested (for :class:`BufferedRandom` objects);" msgstr "" -#: ../Doc/library/io.rst:685 +#: ../Doc/library/io.rst:688 msgid "when the :class:`BufferedWriter` object is closed or destroyed." msgstr "" -#: ../Doc/library/io.rst:687 +#: ../Doc/library/io.rst:690 msgid "" "The constructor creates a :class:`BufferedWriter` for the given writeable " "*raw* stream. If the *buffer_size* is not given, it defaults to :data:" "`DEFAULT_BUFFER_SIZE`." msgstr "" -#: ../Doc/library/io.rst:691 +#: ../Doc/library/io.rst:694 msgid "" ":class:`BufferedWriter` provides or overrides these methods in addition to " "those from :class:`BufferedIOBase` and :class:`IOBase`:" msgstr "" -#: ../Doc/library/io.rst:696 +#: ../Doc/library/io.rst:699 msgid "" "Force bytes held in the buffer into the raw stream. A :exc:" "`BlockingIOError` should be raised if the raw stream blocks." msgstr "" -#: ../Doc/library/io.rst:701 +#: ../Doc/library/io.rst:704 msgid "" "Write the :term:`bytes-like object`, *b*, and return the number of bytes " "written. When in non-blocking mode, a :exc:`BlockingIOError` is raised if " "the buffer needs to be written out but the raw stream blocks." msgstr "" -#: ../Doc/library/io.rst:709 +#: ../Doc/library/io.rst:712 msgid "" "A buffered interface to random access streams. It inherits :class:" "`BufferedReader` and :class:`BufferedWriter`, and further supports :meth:" "`seek` and :meth:`tell` functionality." msgstr "" -#: ../Doc/library/io.rst:713 +#: ../Doc/library/io.rst:716 msgid "" "The constructor creates a reader and writer for a seekable raw stream, given " "in the first argument. If the *buffer_size* is omitted it defaults to :data:" "`DEFAULT_BUFFER_SIZE`." msgstr "" -#: ../Doc/library/io.rst:717 +#: ../Doc/library/io.rst:720 msgid "" ":class:`BufferedRandom` is capable of anything :class:`BufferedReader` or :" "class:`BufferedWriter` can do." msgstr "" -#: ../Doc/library/io.rst:723 +#: ../Doc/library/io.rst:726 msgid "" "A buffered I/O object combining two unidirectional :class:`RawIOBase` " "objects -- one readable, the other writeable -- into a single bidirectional " "endpoint. It inherits :class:`BufferedIOBase`." msgstr "" -#: ../Doc/library/io.rst:727 +#: ../Doc/library/io.rst:730 msgid "" "*reader* and *writer* are :class:`RawIOBase` objects that are readable and " "writeable respectively. If the *buffer_size* is omitted it defaults to :" "data:`DEFAULT_BUFFER_SIZE`." msgstr "" -#: ../Doc/library/io.rst:731 +#: ../Doc/library/io.rst:734 msgid "" ":class:`BufferedRWPair` implements all of :class:`BufferedIOBase`\\'s " "methods except for :meth:`~BufferedIOBase.detach`, which raises :exc:" "`UnsupportedOperation`." msgstr "" -#: ../Doc/library/io.rst:737 +#: ../Doc/library/io.rst:740 msgid "" ":class:`BufferedRWPair` does not attempt to synchronize accesses to its " "underlying raw streams. You should not pass it the same object as reader " "and writer; use :class:`BufferedRandom` instead." msgstr "" -#: ../Doc/library/io.rst:747 +#: ../Doc/library/io.rst:750 msgid "" "Base class for text streams. This class provides a character and line based " "interface to stream I/O. There is no :meth:`readinto` method because " @@ -1034,126 +1039,126 @@ msgid "" "There is no public constructor." msgstr "" -#: ../Doc/library/io.rst:752 +#: ../Doc/library/io.rst:755 msgid "" ":class:`TextIOBase` provides or overrides these data attributes and methods " "in addition to those from :class:`IOBase`:" msgstr "" -#: ../Doc/library/io.rst:757 +#: ../Doc/library/io.rst:760 msgid "" "The name of the encoding used to decode the stream's bytes into strings, and " "to encode strings into bytes." msgstr "" -#: ../Doc/library/io.rst:762 +#: ../Doc/library/io.rst:765 msgid "The error setting of the decoder or encoder." msgstr "" -#: ../Doc/library/io.rst:766 +#: ../Doc/library/io.rst:769 msgid "" "A string, a tuple of strings, or ``None``, indicating the newlines " "translated so far. Depending on the implementation and the initial " "constructor flags, this may not be available." msgstr "" -#: ../Doc/library/io.rst:772 +#: ../Doc/library/io.rst:775 msgid "" "The underlying binary buffer (a :class:`BufferedIOBase` instance) that :" "class:`TextIOBase` deals with. This is not part of the :class:`TextIOBase` " "API and may not exist in some implementations." msgstr "" -#: ../Doc/library/io.rst:778 +#: ../Doc/library/io.rst:781 msgid "" "Separate the underlying binary buffer from the :class:`TextIOBase` and " "return it." msgstr "" -#: ../Doc/library/io.rst:781 +#: ../Doc/library/io.rst:784 msgid "" "After the underlying buffer has been detached, the :class:`TextIOBase` is in " "an unusable state." msgstr "" -#: ../Doc/library/io.rst:784 +#: ../Doc/library/io.rst:787 msgid "" "Some :class:`TextIOBase` implementations, like :class:`StringIO`, may not " "have the concept of an underlying buffer and calling this method will raise :" "exc:`UnsupportedOperation`." msgstr "" -#: ../Doc/library/io.rst:792 +#: ../Doc/library/io.rst:795 msgid "" "Read and return at most *size* characters from the stream as a single :class:" "`str`. If *size* is negative or ``None``, reads until EOF." msgstr "" -#: ../Doc/library/io.rst:797 +#: ../Doc/library/io.rst:800 msgid "" "Read until newline or EOF and return a single ``str``. If the stream is " "already at EOF, an empty string is returned." msgstr "" -#: ../Doc/library/io.rst:800 +#: ../Doc/library/io.rst:803 msgid "If *size* is specified, at most *size* characters will be read." msgstr "" -#: ../Doc/library/io.rst:804 +#: ../Doc/library/io.rst:807 msgid "" "Change the stream position to the given *offset*. Behaviour depends on the " "*whence* parameter. The default value for *whence* is :data:`SEEK_SET`." msgstr "" -#: ../Doc/library/io.rst:808 +#: ../Doc/library/io.rst:811 msgid "" ":data:`SEEK_SET` or ``0``: seek from the start of the stream (the default); " "*offset* must either be a number returned by :meth:`TextIOBase.tell`, or " "zero. Any other *offset* value produces undefined behaviour." msgstr "" -#: ../Doc/library/io.rst:812 +#: ../Doc/library/io.rst:815 msgid "" ":data:`SEEK_CUR` or ``1``: \"seek\" to the current position; *offset* must " "be zero, which is a no-operation (all other values are unsupported)." msgstr "" -#: ../Doc/library/io.rst:815 +#: ../Doc/library/io.rst:818 msgid "" ":data:`SEEK_END` or ``2``: seek to the end of the stream; *offset* must be " "zero (all other values are unsupported)." msgstr "" -#: ../Doc/library/io.rst:818 +#: ../Doc/library/io.rst:821 msgid "Return the new absolute position as an opaque number." msgstr "" -#: ../Doc/library/io.rst:825 +#: ../Doc/library/io.rst:828 msgid "" "Return the current stream position as an opaque number. The number does not " "usually represent a number of bytes in the underlying binary storage." msgstr "" -#: ../Doc/library/io.rst:831 +#: ../Doc/library/io.rst:834 msgid "" "Write the string *s* to the stream and return the number of characters " "written." msgstr "" -#: ../Doc/library/io.rst:838 +#: ../Doc/library/io.rst:841 msgid "" "A buffered text stream over a :class:`BufferedIOBase` binary stream. It " "inherits :class:`TextIOBase`." msgstr "" -#: ../Doc/library/io.rst:841 +#: ../Doc/library/io.rst:844 msgid "" "*encoding* gives the name of the encoding that the stream will be decoded or " "encoded with. It defaults to :func:`locale.getpreferredencoding(False) " "`." msgstr "" -#: ../Doc/library/io.rst:845 +#: ../Doc/library/io.rst:848 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled. Pass ``'strict'`` to raise a :exc:`ValueError` " @@ -1168,13 +1173,13 @@ msgid "" "that has been registered with :func:`codecs.register_error` is also valid." msgstr "" -#: ../Doc/library/io.rst:861 +#: ../Doc/library/io.rst:864 msgid "" "*newline* controls how line endings are handled. It can be ``None``, " "``''``, ``'\\n'``, ``'\\r'``, and ``'\\r\\n'``. It works as follows:" msgstr "" -#: ../Doc/library/io.rst:864 +#: ../Doc/library/io.rst:867 msgid "" "When reading input from the stream, if *newline* is ``None``, :term:" "`universal newlines` mode is enabled. Lines in the input can end in " @@ -1193,7 +1198,7 @@ msgstr "" "autre valeur autorisée, les lignes sont seulement terminées par la chaîne " "donnée, qui est rendue tel qu'elle." -#: ../Doc/library/io.rst:873 +#: ../Doc/library/io.rst:876 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -1207,24 +1212,24 @@ msgstr "" "*newline* est un autre caractère valide, chaque ``'\\n'`` sera remplacé par " "la chaîne donnée." -#: ../Doc/library/io.rst:879 +#: ../Doc/library/io.rst:882 msgid "" "If *line_buffering* is ``True``, :meth:`flush` is implied when a call to " "write contains a newline character." msgstr "" -#: ../Doc/library/io.rst:882 +#: ../Doc/library/io.rst:885 msgid "" "If *write_through* is ``True``, calls to :meth:`write` are guaranteed not to " "be buffered: any data written on the :class:`TextIOWrapper` object is " "immediately handled to its underlying binary *buffer*." msgstr "" -#: ../Doc/library/io.rst:886 +#: ../Doc/library/io.rst:889 msgid "The *write_through* argument has been added." msgstr "" -#: ../Doc/library/io.rst:889 +#: ../Doc/library/io.rst:892 msgid "" "The default *encoding* is now ``locale.getpreferredencoding(False)`` instead " "of ``locale.getpreferredencoding()``. Don't change temporary the locale " @@ -1232,30 +1237,30 @@ msgid "" "instead of the user preferred encoding." msgstr "" -#: ../Doc/library/io.rst:895 +#: ../Doc/library/io.rst:898 msgid "" ":class:`TextIOWrapper` provides one attribute in addition to those of :class:" "`TextIOBase` and its parents:" msgstr "" -#: ../Doc/library/io.rst:900 +#: ../Doc/library/io.rst:903 msgid "Whether line buffering is enabled." msgstr "" -#: ../Doc/library/io.rst:905 +#: ../Doc/library/io.rst:908 msgid "" "An in-memory stream for text I/O. The text buffer is discarded when the :" "meth:`~IOBase.close` method is called." msgstr "" -#: ../Doc/library/io.rst:908 +#: ../Doc/library/io.rst:911 msgid "" "The initial value of the buffer can be set by providing *initial_value*. If " "newline translation is enabled, newlines will be encoded as if by :meth:" "`~TextIOBase.write`. The stream is positioned at the start of the buffer." msgstr "" -#: ../Doc/library/io.rst:913 +#: ../Doc/library/io.rst:916 msgid "" "The *newline* argument works like that of :class:`TextIOWrapper`. The " "default is to consider only ``\\n`` characters as ends of lines and to do no " @@ -1264,40 +1269,40 @@ msgid "" "performed when reading." msgstr "" -#: ../Doc/library/io.rst:919 +#: ../Doc/library/io.rst:922 msgid "" ":class:`StringIO` provides this method in addition to those from :class:" "`TextIOBase` and its parents:" msgstr "" -#: ../Doc/library/io.rst:924 +#: ../Doc/library/io.rst:927 msgid "" "Return a ``str`` containing the entire contents of the buffer. Newlines are " "decoded as if by :meth:`~TextIOBase.read`, although the stream position is " "not changed." msgstr "" -#: ../Doc/library/io.rst:928 +#: ../Doc/library/io.rst:931 msgid "Example usage::" msgstr "" -#: ../Doc/library/io.rst:950 +#: ../Doc/library/io.rst:953 msgid "" "A helper codec that decodes newlines for :term:`universal newlines` mode. It " "inherits :class:`codecs.IncrementalDecoder`." msgstr "" -#: ../Doc/library/io.rst:955 +#: ../Doc/library/io.rst:958 msgid "Performance" msgstr "" -#: ../Doc/library/io.rst:957 +#: ../Doc/library/io.rst:960 msgid "" "This section discusses the performance of the provided concrete I/O " "implementations." msgstr "" -#: ../Doc/library/io.rst:963 +#: ../Doc/library/io.rst:966 msgid "" "By reading and writing only large chunks of data even when the user asks for " "a single byte, buffered I/O hides any inefficiency in calling and executing " @@ -1310,7 +1315,7 @@ msgid "" "data." msgstr "" -#: ../Doc/library/io.rst:975 +#: ../Doc/library/io.rst:978 msgid "" "Text I/O over a binary storage (such as a file) is significantly slower than " "binary I/O over the same storage, because it requires conversions between " @@ -1320,23 +1325,23 @@ msgid "" "to the reconstruction algorithm used." msgstr "" -#: ../Doc/library/io.rst:982 +#: ../Doc/library/io.rst:985 msgid "" ":class:`StringIO`, however, is a native in-memory unicode container and will " "exhibit similar speed to :class:`BytesIO`." msgstr "" -#: ../Doc/library/io.rst:986 +#: ../Doc/library/io.rst:989 msgid "Multi-threading" msgstr "Threads" -#: ../Doc/library/io.rst:988 +#: ../Doc/library/io.rst:991 msgid "" ":class:`FileIO` objects are thread-safe to the extent that the operating " "system calls (such as ``read(2)`` under Unix) they wrap are thread-safe too." msgstr "" -#: ../Doc/library/io.rst:991 +#: ../Doc/library/io.rst:994 msgid "" "Binary buffered objects (instances of :class:`BufferedReader`, :class:" "`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) " @@ -1344,15 +1349,15 @@ msgid "" "them from multiple threads at once." msgstr "" -#: ../Doc/library/io.rst:996 +#: ../Doc/library/io.rst:999 msgid ":class:`TextIOWrapper` objects are not thread-safe." msgstr "" -#: ../Doc/library/io.rst:999 +#: ../Doc/library/io.rst:1002 msgid "Reentrancy" msgstr "" -#: ../Doc/library/io.rst:1001 +#: ../Doc/library/io.rst:1004 msgid "" "Binary buffered objects (instances of :class:`BufferedReader`, :class:" "`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) are " @@ -1363,7 +1368,7 @@ msgid "" "from entering the buffered object." msgstr "" -#: ../Doc/library/io.rst:1009 +#: ../Doc/library/io.rst:1012 msgid "" "The above implicitly extends to text files, since the :func:`open()` " "function will wrap a buffered object inside a :class:`TextIOWrapper`. This " diff --git a/library/itertools.po b/library/itertools.po index 546a4a21..bf7e8a7e 100644 --- a/library/itertools.po +++ b/library/itertools.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-01 07:43+0100\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-12-02 11:08+0100\n" "Last-Translator: Raphaël Gomès \n" "Language-Team: \n" @@ -69,7 +69,8 @@ msgstr "" "un produit scalaire efficace ``sum(map(operator.mul, vecteur1, vecteur2))``." #: ../Doc/library/itertools.rst:35 -msgid "**Infinite Iterators:**" +#, fuzzy +msgid "**Infinite iterators:**" msgstr "**Itérateurs infinis :**" #: ../Doc/library/itertools.rst:38 ../Doc/library/itertools.rst:48 @@ -313,7 +314,8 @@ msgid "``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-``" msgstr "``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-``" #: ../Doc/library/itertools.rst:64 -msgid "**Combinatoric generators:**" +#, fuzzy +msgid "**Combinatoric iterators:**" msgstr "**Générateurs combinatoires :**" #: ../Doc/library/itertools.rst:69 diff --git a/library/logging.po b/library/logging.po index fbb449c1..098a50b2 100644 --- a/library/logging.po +++ b/library/logging.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-13 22:28+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-08-10 14:05+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: \n" @@ -118,11 +118,11 @@ msgstr "" #: ../Doc/library/logging.rst:74 msgid "" -"If this evaluates to true, events logged to this logger will be passed to " -"the handlers of higher level (ancestor) loggers, in addition to any handlers " -"attached to this logger. Messages are passed directly to the ancestor " -"loggers' handlers - neither the level nor filters of the ancestor loggers in " -"question are considered." +"If this attribute evaluates to true, events logged to this logger will be " +"passed to the handlers of higher level (ancestor) loggers, in addition to " +"any handlers attached to this logger. Messages are passed directly to the " +"ancestor loggers' handlers - neither the level nor filters of the ancestor " +"loggers in question are considered." msgstr "" #: ../Doc/library/logging.rst:80 @@ -149,49 +149,56 @@ msgstr "" #: ../Doc/library/logging.rst:96 msgid "" -"Sets the threshold for this logger to *lvl*. Logging messages which are less " -"severe than *lvl* will be ignored. When a logger is created, the level is " -"set to :const:`NOTSET` (which causes all messages to be processed when the " -"logger is the root logger, or delegation to the parent when the logger is a " -"non-root logger). Note that the root logger is created with level :const:" -"`WARNING`." +"Sets the threshold for this logger to *level*. Logging messages which are " +"less severe than *level* will be ignored; logging messages which have " +"severity *level* or higher will be emitted by whichever handler or handlers " +"service this logger, unless a handler's level has been set to a higher " +"severity level than *level*." msgstr "" -#: ../Doc/library/logging.rst:102 +#: ../Doc/library/logging.rst:101 +msgid "" +"When a logger is created, the level is set to :const:`NOTSET` (which causes " +"all messages to be processed when the logger is the root logger, or " +"delegation to the parent when the logger is a non-root logger). Note that " +"the root logger is created with level :const:`WARNING`." +msgstr "" + +#: ../Doc/library/logging.rst:106 msgid "" "The term 'delegation to the parent' means that if a logger has a level of " "NOTSET, its chain of ancestor loggers is traversed until either an ancestor " "with a level other than NOTSET is found, or the root is reached." msgstr "" -#: ../Doc/library/logging.rst:106 +#: ../Doc/library/logging.rst:110 msgid "" "If an ancestor is found with a level other than NOTSET, then that ancestor's " "level is treated as the effective level of the logger where the ancestor " "search began, and is used to determine how a logging event is handled." msgstr "" -#: ../Doc/library/logging.rst:110 +#: ../Doc/library/logging.rst:114 msgid "" "If the root is reached, and it has a level of NOTSET, then all messages will " "be processed. Otherwise, the root's level will be used as the effective " "level." msgstr "" -#: ../Doc/library/logging.rst:113 ../Doc/library/logging.rst:395 +#: ../Doc/library/logging.rst:117 ../Doc/library/logging.rst:403 msgid "See :ref:`levels` for a list of levels." msgstr "" -#: ../Doc/library/logging.rst:115 +#: ../Doc/library/logging.rst:119 msgid "" -"The *lvl* parameter now accepts a string representation of the level such as " -"'INFO' as an alternative to the integer constants such as :const:`INFO`. " +"The *level* parameter now accepts a string representation of the level such " +"as 'INFO' as an alternative to the integer constants such as :const:`INFO`. " "Note, however, that levels are internally stored as integers, and methods " "such as e.g. :meth:`getEffectiveLevel` and :meth:`isEnabledFor` will return/" "expect to be passed integers." msgstr "" -#: ../Doc/library/logging.rst:125 +#: ../Doc/library/logging.rst:129 msgid "" "Indicates if a message of severity *lvl* would be processed by this logger. " "This method checks first the module-level level set by ``logging." @@ -199,7 +206,7 @@ msgid "" "`getEffectiveLevel`." msgstr "" -#: ../Doc/library/logging.rst:133 +#: ../Doc/library/logging.rst:137 msgid "" "Indicates the effective level for this logger. If a value other than :const:" "`NOTSET` has been set using :meth:`setLevel`, it is returned. Otherwise, the " @@ -208,7 +215,7 @@ msgid "" "integer, typically one of :const:`logging.DEBUG`, :const:`logging.INFO` etc." msgstr "" -#: ../Doc/library/logging.rst:143 +#: ../Doc/library/logging.rst:147 msgid "" "Returns a logger which is a descendant to this logger, as determined by the " "suffix. Thus, ``logging.getLogger('abc').getChild('def.ghi')`` would return " @@ -217,7 +224,7 @@ msgid "" "named using e.g. ``__name__`` rather than a literal string." msgstr "" -#: ../Doc/library/logging.rst:154 +#: ../Doc/library/logging.rst:158 msgid "" "Logs a message with level :const:`DEBUG` on this logger. The *msg* is the " "message format string, and the *args* are the arguments which are merged " @@ -226,13 +233,13 @@ msgid "" "argument.)" msgstr "" -#: ../Doc/library/logging.rst:159 +#: ../Doc/library/logging.rst:163 msgid "" "There are three keyword arguments in *kwargs* which are inspected: " "*exc_info*, *stack_info*, and *extra*." msgstr "" -#: ../Doc/library/logging.rst:162 +#: ../Doc/library/logging.rst:166 msgid "" "If *exc_info* does not evaluate as false, it causes exception information to " "be added to the logging message. If an exception tuple (in the format " @@ -241,7 +248,7 @@ msgid "" "information." msgstr "" -#: ../Doc/library/logging.rst:167 ../Doc/library/logging.rst:923 +#: ../Doc/library/logging.rst:171 ../Doc/library/logging.rst:931 msgid "" "The second optional keyword argument is *stack_info*, which defaults to " "``False``. If true, stack information is added to the logging message, " @@ -253,20 +260,20 @@ msgid "" "handlers." msgstr "" -#: ../Doc/library/logging.rst:176 ../Doc/library/logging.rst:932 +#: ../Doc/library/logging.rst:180 ../Doc/library/logging.rst:940 msgid "" "You can specify *stack_info* independently of *exc_info*, e.g. to just show " "how you got to a certain point in your code, even when no exceptions were " "raised. The stack frames are printed following a header line which says::" msgstr "" -#: ../Doc/library/logging.rst:182 ../Doc/library/logging.rst:938 +#: ../Doc/library/logging.rst:186 ../Doc/library/logging.rst:946 msgid "" "This mimics the ``Traceback (most recent call last):`` which is used when " "displaying exception frames." msgstr "" -#: ../Doc/library/logging.rst:185 +#: ../Doc/library/logging.rst:189 msgid "" "The third keyword argument is *extra* which can be used to pass a dictionary " "which is used to populate the __dict__ of the LogRecord created for the " @@ -275,18 +282,18 @@ msgid "" "messages. For example::" msgstr "" -#: ../Doc/library/logging.rst:197 +#: ../Doc/library/logging.rst:201 msgid "would print something like ::" msgstr "" -#: ../Doc/library/logging.rst:201 ../Doc/library/logging.rst:956 +#: ../Doc/library/logging.rst:205 ../Doc/library/logging.rst:964 msgid "" "The keys in the dictionary passed in *extra* should not clash with the keys " "used by the logging system. (See the :class:`Formatter` documentation for " "more information on which keys are used by the logging system.)" msgstr "" -#: ../Doc/library/logging.rst:205 ../Doc/library/logging.rst:960 +#: ../Doc/library/logging.rst:209 ../Doc/library/logging.rst:968 msgid "" "If you choose to use these attributes in logged messages, you need to " "exercise some care. In the above example, for instance, the :class:" @@ -297,7 +304,7 @@ msgid "" "dictionary with these keys." msgstr "" -#: ../Doc/library/logging.rst:212 ../Doc/library/logging.rst:967 +#: ../Doc/library/logging.rst:216 ../Doc/library/logging.rst:975 msgid "" "While this might be annoying, this feature is intended for use in " "specialized circumstances, such as multi-threaded servers where the same " @@ -308,67 +315,67 @@ msgid "" "particular :class:`Handler`\\ s." msgstr "" -#: ../Doc/library/logging.rst:219 ../Doc/library/logging.rst:974 +#: ../Doc/library/logging.rst:223 ../Doc/library/logging.rst:982 msgid "The *stack_info* parameter was added." msgstr "" -#: ../Doc/library/logging.rst:222 +#: ../Doc/library/logging.rst:226 msgid "The *exc_info* parameter can now accept exception instances." msgstr "" -#: ../Doc/library/logging.rst:228 +#: ../Doc/library/logging.rst:232 msgid "" "Logs a message with level :const:`INFO` on this logger. The arguments are " "interpreted as for :meth:`debug`." msgstr "" -#: ../Doc/library/logging.rst:234 +#: ../Doc/library/logging.rst:238 msgid "" "Logs a message with level :const:`WARNING` on this logger. The arguments are " "interpreted as for :meth:`debug`." msgstr "" -#: ../Doc/library/logging.rst:237 +#: ../Doc/library/logging.rst:241 msgid "" "There is an obsolete method ``warn`` which is functionally identical to " "``warning``. As ``warn`` is deprecated, please do not use it - use " "``warning`` instead." msgstr "" -#: ../Doc/library/logging.rst:243 +#: ../Doc/library/logging.rst:247 msgid "" "Logs a message with level :const:`ERROR` on this logger. The arguments are " "interpreted as for :meth:`debug`." msgstr "" -#: ../Doc/library/logging.rst:249 +#: ../Doc/library/logging.rst:253 msgid "" "Logs a message with level :const:`CRITICAL` on this logger. The arguments " "are interpreted as for :meth:`debug`." msgstr "" -#: ../Doc/library/logging.rst:255 +#: ../Doc/library/logging.rst:259 msgid "" "Logs a message with integer level *lvl* on this logger. The other arguments " "are interpreted as for :meth:`debug`." msgstr "" -#: ../Doc/library/logging.rst:261 +#: ../Doc/library/logging.rst:265 msgid "" "Logs a message with level :const:`ERROR` on this logger. The arguments are " "interpreted as for :meth:`debug`. Exception info is added to the logging " "message. This method should only be called from an exception handler." msgstr "" -#: ../Doc/library/logging.rst:268 -msgid "Adds the specified filter *filt* to this logger." +#: ../Doc/library/logging.rst:272 +msgid "Adds the specified filter *filter* to this logger." msgstr "" -#: ../Doc/library/logging.rst:273 -msgid "Removes the specified filter *filt* from this logger." +#: ../Doc/library/logging.rst:277 +msgid "Removes the specified filter *filter* from this logger." msgstr "" -#: ../Doc/library/logging.rst:278 +#: ../Doc/library/logging.rst:282 msgid "" "Applies this logger's filters to the record and returns a true value if the " "record is to be processed. The filters are consulted in turn, until one of " @@ -377,22 +384,22 @@ msgid "" "further processing of the record occurs." msgstr "" -#: ../Doc/library/logging.rst:287 +#: ../Doc/library/logging.rst:291 msgid "Adds the specified handler *hdlr* to this logger." msgstr "" -#: ../Doc/library/logging.rst:292 +#: ../Doc/library/logging.rst:296 msgid "Removes the specified handler *hdlr* from this logger." msgstr "" -#: ../Doc/library/logging.rst:297 +#: ../Doc/library/logging.rst:301 msgid "" "Finds the caller's source filename and line number. Returns the filename, " "line number, function name and stack information as a 4-element tuple. The " "stack information is returned as ``None`` unless *stack_info* is ``True``." msgstr "" -#: ../Doc/library/logging.rst:304 +#: ../Doc/library/logging.rst:308 msgid "" "Handles a record by passing it to all handlers associated with this logger " "and its ancestors (until a false value of *propagate* is found). This method " @@ -401,13 +408,13 @@ msgid "" "filter`." msgstr "" -#: ../Doc/library/logging.rst:312 +#: ../Doc/library/logging.rst:316 msgid "" "This is a factory method which can be overridden in subclasses to create " "specialized :class:`LogRecord` instances." msgstr "" -#: ../Doc/library/logging.rst:317 +#: ../Doc/library/logging.rst:321 msgid "" "Checks to see if this logger has any handlers configured. This is done by " "looking for handlers in this logger and its parents in the logger hierarchy. " @@ -418,10 +425,14 @@ msgid "" msgstr "" #: ../Doc/library/logging.rst:330 +msgid "Loggers can now be picked and unpickled." +msgstr "" + +#: ../Doc/library/logging.rst:336 msgid "Logging Levels" msgstr "" -#: ../Doc/library/logging.rst:332 +#: ../Doc/library/logging.rst:338 msgid "" "The numeric values of logging levels are given in the following table. These " "are primarily of interest if you want to define your own levels, and need " @@ -430,67 +441,67 @@ msgid "" "value; the predefined name is lost." msgstr "" -#: ../Doc/library/logging.rst:339 +#: ../Doc/library/logging.rst:345 msgid "Level" msgstr "" -#: ../Doc/library/logging.rst:339 +#: ../Doc/library/logging.rst:345 msgid "Numeric value" msgstr "" -#: ../Doc/library/logging.rst:341 +#: ../Doc/library/logging.rst:347 msgid "``CRITICAL``" msgstr "``CRITICAL``" -#: ../Doc/library/logging.rst:341 +#: ../Doc/library/logging.rst:347 msgid "50" msgstr "50" -#: ../Doc/library/logging.rst:343 +#: ../Doc/library/logging.rst:349 msgid "``ERROR``" msgstr "``ERROR``" -#: ../Doc/library/logging.rst:343 +#: ../Doc/library/logging.rst:349 msgid "40" msgstr "40" -#: ../Doc/library/logging.rst:345 +#: ../Doc/library/logging.rst:351 msgid "``WARNING``" msgstr "``WARNING``" -#: ../Doc/library/logging.rst:345 +#: ../Doc/library/logging.rst:351 msgid "30" msgstr "30" -#: ../Doc/library/logging.rst:347 +#: ../Doc/library/logging.rst:353 msgid "``INFO``" msgstr "``INFO``" -#: ../Doc/library/logging.rst:347 +#: ../Doc/library/logging.rst:353 msgid "20" msgstr "20" -#: ../Doc/library/logging.rst:349 +#: ../Doc/library/logging.rst:355 msgid "``DEBUG``" msgstr "``DEBUG``" -#: ../Doc/library/logging.rst:349 +#: ../Doc/library/logging.rst:355 msgid "10" msgstr "10" -#: ../Doc/library/logging.rst:351 +#: ../Doc/library/logging.rst:357 msgid "``NOTSET``" msgstr "``NOTSET``" -#: ../Doc/library/logging.rst:351 +#: ../Doc/library/logging.rst:357 msgid "0" msgstr "0" -#: ../Doc/library/logging.rst:358 +#: ../Doc/library/logging.rst:364 msgid "Handler Objects" msgstr "" -#: ../Doc/library/logging.rst:360 +#: ../Doc/library/logging.rst:366 msgid "" "Handlers have the following attributes and methods. Note that :class:" "`Handler` is never instantiated directly; this class acts as a base for more " @@ -498,53 +509,53 @@ msgid "" "to call :meth:`Handler.__init__`." msgstr "" -#: ../Doc/library/logging.rst:368 +#: ../Doc/library/logging.rst:375 msgid "" "Initializes the :class:`Handler` instance by setting its level, setting the " "list of filters to the empty list and creating a lock (using :meth:" "`createLock`) for serializing access to an I/O mechanism." msgstr "" -#: ../Doc/library/logging.rst:375 +#: ../Doc/library/logging.rst:382 msgid "" "Initializes a thread lock which can be used to serialize access to " "underlying I/O functionality which may not be threadsafe." msgstr "" -#: ../Doc/library/logging.rst:381 +#: ../Doc/library/logging.rst:388 msgid "Acquires the thread lock created with :meth:`createLock`." msgstr "" -#: ../Doc/library/logging.rst:386 +#: ../Doc/library/logging.rst:393 msgid "Releases the thread lock acquired with :meth:`acquire`." msgstr "" -#: ../Doc/library/logging.rst:391 +#: ../Doc/library/logging.rst:398 msgid "" -"Sets the threshold for this handler to *lvl*. Logging messages which are " -"less severe than *lvl* will be ignored. When a handler is created, the level " -"is set to :const:`NOTSET` (which causes all messages to be processed)." -msgstr "" - -#: ../Doc/library/logging.rst:397 -msgid "" -"The *lvl* parameter now accepts a string representation of the level such as " -"'INFO' as an alternative to the integer constants such as :const:`INFO`." +"Sets the threshold for this handler to *level*. Logging messages which are " +"less severe than *level* will be ignored. When a handler is created, the " +"level is set to :const:`NOTSET` (which causes all messages to be processed)." msgstr "" #: ../Doc/library/logging.rst:405 -msgid "Sets the :class:`Formatter` for this handler to *form*." +msgid "" +"The *level* parameter now accepts a string representation of the level such " +"as 'INFO' as an alternative to the integer constants such as :const:`INFO`." msgstr "" -#: ../Doc/library/logging.rst:410 -msgid "Adds the specified filter *filt* to this handler." +#: ../Doc/library/logging.rst:413 +msgid "Sets the :class:`Formatter` for this handler to *fmt*." msgstr "" -#: ../Doc/library/logging.rst:415 -msgid "Removes the specified filter *filt* from this handler." +#: ../Doc/library/logging.rst:418 +msgid "Adds the specified filter *filter* to this handler." msgstr "" -#: ../Doc/library/logging.rst:420 +#: ../Doc/library/logging.rst:423 +msgid "Removes the specified filter *filter* from this handler." +msgstr "" + +#: ../Doc/library/logging.rst:428 msgid "" "Applies this handler's filters to the record and returns a true value if the " "record is to be processed. The filters are consulted in turn, until one of " @@ -553,13 +564,13 @@ msgid "" "record." msgstr "" -#: ../Doc/library/logging.rst:429 +#: ../Doc/library/logging.rst:437 msgid "" "Ensure all logging output has been flushed. This version does nothing and is " "intended to be implemented by subclasses." msgstr "" -#: ../Doc/library/logging.rst:435 +#: ../Doc/library/logging.rst:443 msgid "" "Tidy up any resources used by the handler. This version does no output but " "removes the handler from an internal list of handlers which is closed when :" @@ -567,14 +578,14 @@ msgid "" "from overridden :meth:`close` methods." msgstr "" -#: ../Doc/library/logging.rst:443 +#: ../Doc/library/logging.rst:451 msgid "" "Conditionally emits the specified logging record, depending on filters which " "may have been added to the handler. Wraps the actual emission of the record " "with acquisition/release of the I/O thread lock." msgstr "" -#: ../Doc/library/logging.rst:450 +#: ../Doc/library/logging.rst:458 msgid "" "This method should be called from handlers when an exception is encountered " "during an :meth:`emit` call. If the module-level attribute " @@ -587,29 +598,29 @@ msgid "" "more useful during development)." msgstr "" -#: ../Doc/library/logging.rst:463 +#: ../Doc/library/logging.rst:471 msgid "" "Do formatting for a record - if a formatter is set, use it. Otherwise, use " "the default formatter for the module." msgstr "" -#: ../Doc/library/logging.rst:469 +#: ../Doc/library/logging.rst:477 msgid "" "Do whatever it takes to actually log the specified logging record. This " "version is intended to be implemented by subclasses and so raises a :exc:" "`NotImplementedError`." msgstr "" -#: ../Doc/library/logging.rst:473 +#: ../Doc/library/logging.rst:481 msgid "" "For a list of handlers included as standard, see :mod:`logging.handlers`." msgstr "" -#: ../Doc/library/logging.rst:478 +#: ../Doc/library/logging.rst:486 msgid "Formatter Objects" msgstr "" -#: ../Doc/library/logging.rst:482 +#: ../Doc/library/logging.rst:490 msgid "" ":class:`Formatter` objects have the following attributes and methods. They " "are responsible for converting a :class:`LogRecord` to (usually) a string " @@ -620,7 +631,7 @@ msgid "" "information in the formatted output (such as a timestamp), keep reading." msgstr "" -#: ../Doc/library/logging.rst:490 +#: ../Doc/library/logging.rst:498 msgid "" "A Formatter can be initialized with a format string which makes use of " "knowledge of the :class:`LogRecord` attributes - such as the default value " @@ -630,13 +641,13 @@ msgid "" "ref:`old-string-formatting` for more information on string formatting." msgstr "" -#: ../Doc/library/logging.rst:497 +#: ../Doc/library/logging.rst:505 msgid "" "The useful mapping keys in a :class:`LogRecord` are given in the section on :" "ref:`logrecord-attributes`." msgstr "" -#: ../Doc/library/logging.rst:503 +#: ../Doc/library/logging.rst:511 msgid "" "Returns a new instance of the :class:`Formatter` class. The instance is " "initialized with a format string for the message as a whole, as well as a " @@ -645,7 +656,7 @@ msgid "" "ISO8601 date format is used." msgstr "" -#: ../Doc/library/logging.rst:509 +#: ../Doc/library/logging.rst:517 msgid "" "The *style* parameter can be one of '%', '{' or '$' and determines how the " "format string will be merged with its data: using one of %-formatting, :meth:" @@ -653,11 +664,11 @@ msgid "" "more information on using {- and $-formatting for log messages." msgstr "" -#: ../Doc/library/logging.rst:514 +#: ../Doc/library/logging.rst:522 msgid "The *style* parameter was added." msgstr "" -#: ../Doc/library/logging.rst:520 +#: ../Doc/library/logging.rst:528 msgid "" "The record's attribute dictionary is used as the operand to a string " "formatting operation. Returns the resulting string. Before formatting the " @@ -675,13 +686,13 @@ msgid "" "cached value but recalculates it afresh." msgstr "" -#: ../Doc/library/logging.rst:536 +#: ../Doc/library/logging.rst:544 msgid "" "If stack information is available, it's appended after the exception " "information, using :meth:`formatStack` to transform it if necessary." msgstr "" -#: ../Doc/library/logging.rst:542 +#: ../Doc/library/logging.rst:550 msgid "" "This method should be called from :meth:`format` by a formatter which wants " "to make use of a formatted time. This method can be overridden in formatters " @@ -691,7 +702,7 @@ msgid "" "format is used. The resulting string is returned." msgstr "" -#: ../Doc/library/logging.rst:550 +#: ../Doc/library/logging.rst:558 msgid "" "This function uses a user-configurable function to convert the creation time " "to a tuple. By default, :func:`time.localtime` is used; to change this for a " @@ -701,7 +712,7 @@ msgid "" "be shown in GMT, set the ``converter`` attribute in the ``Formatter`` class." msgstr "" -#: ../Doc/library/logging.rst:558 +#: ../Doc/library/logging.rst:566 msgid "" "Previously, the default ISO 8601 format was hard-coded as in this example: " "``2010-09-06 22:38:15,292`` where the part before the comma is handled by a " @@ -716,7 +727,7 @@ msgid "" "the millisecond value)." msgstr "" -#: ../Doc/library/logging.rst:573 +#: ../Doc/library/logging.rst:581 msgid "" "Formats the specified exception information (a standard exception tuple as " "returned by :func:`sys.exc_info`) as a string. This default implementation " @@ -724,18 +735,18 @@ msgid "" "returned." msgstr "" -#: ../Doc/library/logging.rst:580 +#: ../Doc/library/logging.rst:588 msgid "" "Formats the specified stack information (a string as returned by :func:" "`traceback.print_stack`, but with the last newline removed) as a string. " "This default implementation just returns the input value." msgstr "" -#: ../Doc/library/logging.rst:587 +#: ../Doc/library/logging.rst:595 msgid "Filter Objects" msgstr "" -#: ../Doc/library/logging.rst:589 +#: ../Doc/library/logging.rst:597 msgid "" "``Filters`` can be used by ``Handlers`` and ``Loggers`` for more " "sophisticated filtering than is provided by levels. The base filter class " @@ -745,7 +756,7 @@ msgid "" "If initialized with the empty string, all events are passed." msgstr "" -#: ../Doc/library/logging.rst:599 +#: ../Doc/library/logging.rst:607 msgid "" "Returns an instance of the :class:`Filter` class. If *name* is specified, it " "names a logger which, together with its children, will have its events " @@ -753,13 +764,13 @@ msgid "" "event." msgstr "" -#: ../Doc/library/logging.rst:606 +#: ../Doc/library/logging.rst:614 msgid "" "Is the specified record to be logged? Returns zero for no, nonzero for yes. " "If deemed appropriate, the record may be modified in-place by this method." msgstr "" -#: ../Doc/library/logging.rst:610 +#: ../Doc/library/logging.rst:618 msgid "" "Note that filters attached to handlers are consulted before an event is " "emitted by the handler, whereas filters attached to loggers are consulted " @@ -769,13 +780,13 @@ msgid "" "setting, unless the filter has also been applied to those descendant loggers." msgstr "" -#: ../Doc/library/logging.rst:617 +#: ../Doc/library/logging.rst:625 msgid "" "You don't actually need to subclass ``Filter``: you can pass any instance " "which has a ``filter`` method with the same semantics." msgstr "" -#: ../Doc/library/logging.rst:620 +#: ../Doc/library/logging.rst:628 msgid "" "You don't need to create specialized ``Filter`` classes, or use other " "classes with a ``filter`` method: you can use a function (or other callable) " @@ -786,7 +797,7 @@ msgid "" "value should conform to that returned by :meth:`~Filter.filter`." msgstr "" -#: ../Doc/library/logging.rst:630 +#: ../Doc/library/logging.rst:638 msgid "" "Although filters are used primarily to filter records based on more " "sophisticated criteria than levels, they get to see every record which is " @@ -798,11 +809,11 @@ msgid "" "information into logs (see :ref:`filters-contextual`)." msgstr "" -#: ../Doc/library/logging.rst:642 +#: ../Doc/library/logging.rst:650 msgid "LogRecord Objects" msgstr "" -#: ../Doc/library/logging.rst:644 +#: ../Doc/library/logging.rst:652 msgid "" ":class:`LogRecord` instances are created automatically by the :class:" "`Logger` every time something is logged, and can be created manually via :" @@ -810,11 +821,11 @@ msgid "" "wire)." msgstr "" -#: ../Doc/library/logging.rst:652 +#: ../Doc/library/logging.rst:660 msgid "Contains all the information pertinent to the event being logged." msgstr "" -#: ../Doc/library/logging.rst:654 +#: ../Doc/library/logging.rst:662 msgid "" "The primary information is passed in :attr:`msg` and :attr:`args`, which are " "combined using ``msg % args`` to create the :attr:`message` field of the " @@ -825,58 +836,58 @@ msgstr "" msgid "Parameters" msgstr "" -#: ../Doc/library/logging.rst:658 +#: ../Doc/library/logging.rst:666 msgid "" "The name of the logger used to log the event represented by this LogRecord. " "Note that this name will always have this value, even though it may be " "emitted by a handler attached to a different (ancestor) logger." msgstr "" -#: ../Doc/library/logging.rst:662 +#: ../Doc/library/logging.rst:670 msgid "" "The numeric level of the logging event (one of DEBUG, INFO etc.) Note that " "this is converted to *two* attributes of the LogRecord: ``levelno`` for the " "numeric value and ``levelname`` for the corresponding level name." msgstr "" -#: ../Doc/library/logging.rst:666 +#: ../Doc/library/logging.rst:674 msgid "The full pathname of the source file where the logging call was made." msgstr "" -#: ../Doc/library/logging.rst:668 +#: ../Doc/library/logging.rst:676 msgid "The line number in the source file where the logging call was made." msgstr "" -#: ../Doc/library/logging.rst:670 +#: ../Doc/library/logging.rst:678 msgid "" "The event description message, possibly a format string with placeholders " "for variable data." msgstr "" -#: ../Doc/library/logging.rst:672 +#: ../Doc/library/logging.rst:680 msgid "" "Variable data to merge into the *msg* argument to obtain the event " "description." msgstr "" -#: ../Doc/library/logging.rst:674 +#: ../Doc/library/logging.rst:682 msgid "" "An exception tuple with the current exception information, or ``None`` if no " "exception information is available." msgstr "" -#: ../Doc/library/logging.rst:676 +#: ../Doc/library/logging.rst:684 msgid "" "The name of the function or method from which the logging call was invoked." msgstr "" -#: ../Doc/library/logging.rst:678 +#: ../Doc/library/logging.rst:686 msgid "" "A text string representing stack information from the base of the stack in " "the current thread, up to the logging call." msgstr "" -#: ../Doc/library/logging.rst:683 +#: ../Doc/library/logging.rst:691 msgid "" "Returns the message for this :class:`LogRecord` instance after merging any " "user-supplied arguments with the message. If the user-supplied message " @@ -885,7 +896,7 @@ msgid "" "whose ``__str__`` method can return the actual format string to be used." msgstr "" -#: ../Doc/library/logging.rst:690 +#: ../Doc/library/logging.rst:698 msgid "" "The creation of a ``LogRecord`` has been made more configurable by providing " "a factory which is used to create the record. The factory can be set using :" @@ -893,24 +904,24 @@ msgid "" "factory's signature)." msgstr "" -#: ../Doc/library/logging.rst:696 +#: ../Doc/library/logging.rst:704 msgid "" "This functionality can be used to inject your own values into a LogRecord at " "creation time. You can use the following pattern::" msgstr "" -#: ../Doc/library/logging.rst:708 +#: ../Doc/library/logging.rst:716 msgid "" "With this pattern, multiple factories could be chained, and as long as they " "don't overwrite each other's attributes or unintentionally overwrite the " "standard attributes listed above, there should be no surprises." msgstr "" -#: ../Doc/library/logging.rst:717 +#: ../Doc/library/logging.rst:725 msgid "LogRecord attributes" msgstr "" -#: ../Doc/library/logging.rst:719 +#: ../Doc/library/logging.rst:727 msgid "" "The LogRecord has a number of attributes, most of which are derived from the " "parameters to the constructor. (Note that the names do not always correspond " @@ -921,7 +932,7 @@ msgid "" "style format string." msgstr "" -#: ../Doc/library/logging.rst:727 +#: ../Doc/library/logging.rst:735 msgid "" "If you are using {}-formatting (:func:`str.format`), you can use ``{attrname}" "`` as the placeholder in the format string. If you are using $-formatting (:" @@ -929,7 +940,7 @@ msgid "" "course, replace ``attrname`` with the actual attribute name you want to use." msgstr "" -#: ../Doc/library/logging.rst:733 +#: ../Doc/library/logging.rst:741 msgid "" "In the case of {}-formatting, you can specify formatting flags by placing " "them after the attribute name, separated from it with a colon. For example: " @@ -938,308 +949,308 @@ msgid "" "on the options available to you." msgstr "" -#: ../Doc/library/logging.rst:740 +#: ../Doc/library/logging.rst:748 msgid "Attribute name" msgstr "" -#: ../Doc/library/logging.rst:740 ../Doc/library/logging.rst:1104 +#: ../Doc/library/logging.rst:748 ../Doc/library/logging.rst:1120 msgid "Format" msgstr "Format" -#: ../Doc/library/logging.rst:740 ../Doc/library/logging.rst:1104 +#: ../Doc/library/logging.rst:748 ../Doc/library/logging.rst:1120 msgid "Description" msgstr "Description" -#: ../Doc/library/logging.rst:742 ../Doc/library/logging.rst:0 +#: ../Doc/library/logging.rst:750 ../Doc/library/logging.rst:0 msgid "args" msgstr "" -#: ../Doc/library/logging.rst:742 ../Doc/library/logging.rst:756 -#: ../Doc/library/logging.rst:784 ../Doc/library/logging.rst:802 +#: ../Doc/library/logging.rst:750 ../Doc/library/logging.rst:764 +#: ../Doc/library/logging.rst:792 ../Doc/library/logging.rst:810 msgid "You shouldn't need to format this yourself." msgstr "" -#: ../Doc/library/logging.rst:742 +#: ../Doc/library/logging.rst:750 msgid "" "The tuple of arguments merged into ``msg`` to produce ``message``, or a dict " "whose values are used for the merge (when there is only one argument, and it " "is a dictionary)." msgstr "" -#: ../Doc/library/logging.rst:747 +#: ../Doc/library/logging.rst:755 msgid "asctime" msgstr "" -#: ../Doc/library/logging.rst:747 +#: ../Doc/library/logging.rst:755 msgid "``%(asctime)s``" msgstr "``%(asctime)s``" -#: ../Doc/library/logging.rst:747 +#: ../Doc/library/logging.rst:755 msgid "" "Human-readable time when the :class:`LogRecord` was created. By default " "this is of the form '2003-07-08 16:49:45,896' (the numbers after the comma " "are millisecond portion of the time)." msgstr "" -#: ../Doc/library/logging.rst:753 +#: ../Doc/library/logging.rst:761 msgid "created" msgstr "created" -#: ../Doc/library/logging.rst:753 +#: ../Doc/library/logging.rst:761 msgid "``%(created)f``" msgstr "``%(created)f``" -#: ../Doc/library/logging.rst:753 +#: ../Doc/library/logging.rst:761 msgid "" "Time when the :class:`LogRecord` was created (as returned by :func:`time." "time`)." msgstr "" -#: ../Doc/library/logging.rst:756 ../Doc/library/logging.rst:0 +#: ../Doc/library/logging.rst:764 ../Doc/library/logging.rst:0 msgid "exc_info" msgstr "exc_info" -#: ../Doc/library/logging.rst:756 +#: ../Doc/library/logging.rst:764 msgid "" "Exception tuple (à la ``sys.exc_info``) or, if no exception has occurred, " "``None``." msgstr "" -#: ../Doc/library/logging.rst:759 +#: ../Doc/library/logging.rst:767 msgid "filename" msgstr "filename" -#: ../Doc/library/logging.rst:759 +#: ../Doc/library/logging.rst:767 msgid "``%(filename)s``" msgstr "``%(filename)s``" -#: ../Doc/library/logging.rst:759 +#: ../Doc/library/logging.rst:767 msgid "Filename portion of ``pathname``." msgstr "" -#: ../Doc/library/logging.rst:761 +#: ../Doc/library/logging.rst:769 msgid "funcName" msgstr "funcName" -#: ../Doc/library/logging.rst:761 +#: ../Doc/library/logging.rst:769 msgid "``%(funcName)s``" msgstr "``%(funcName)s``" -#: ../Doc/library/logging.rst:761 +#: ../Doc/library/logging.rst:769 msgid "Name of function containing the logging call." msgstr "" -#: ../Doc/library/logging.rst:763 +#: ../Doc/library/logging.rst:771 msgid "levelname" msgstr "levelname" -#: ../Doc/library/logging.rst:763 +#: ../Doc/library/logging.rst:771 msgid "``%(levelname)s``" msgstr "``%(levelname)s``" -#: ../Doc/library/logging.rst:763 +#: ../Doc/library/logging.rst:771 msgid "" "Text logging level for the message (``'DEBUG'``, ``'INFO'``, ``'WARNING'``, " "``'ERROR'``, ``'CRITICAL'``)." msgstr "" -#: ../Doc/library/logging.rst:767 +#: ../Doc/library/logging.rst:775 msgid "levelno" msgstr "" -#: ../Doc/library/logging.rst:767 +#: ../Doc/library/logging.rst:775 msgid "``%(levelno)s``" msgstr "``%(levelno)s``" -#: ../Doc/library/logging.rst:767 +#: ../Doc/library/logging.rst:775 msgid "" "Numeric logging level for the message (:const:`DEBUG`, :const:`INFO`, :const:" "`WARNING`, :const:`ERROR`, :const:`CRITICAL`)." msgstr "" -#: ../Doc/library/logging.rst:772 +#: ../Doc/library/logging.rst:780 msgid "lineno" msgstr "lineno" -#: ../Doc/library/logging.rst:772 +#: ../Doc/library/logging.rst:780 msgid "``%(lineno)d``" msgstr "``%(lineno)d``" -#: ../Doc/library/logging.rst:772 +#: ../Doc/library/logging.rst:780 msgid "Source line number where the logging call was issued (if available)." msgstr "" -#: ../Doc/library/logging.rst:775 -msgid "module" -msgstr "module" - -#: ../Doc/library/logging.rst:775 -msgid "``%(module)s``" -msgstr "``%(module)s``" - -#: ../Doc/library/logging.rst:775 -msgid "Module (name portion of ``filename``)." -msgstr "" - -#: ../Doc/library/logging.rst:777 -msgid "msecs" -msgstr "msecs" - -#: ../Doc/library/logging.rst:777 -msgid "``%(msecs)d``" -msgstr "``%(msecs)d``" - -#: ../Doc/library/logging.rst:777 -msgid "" -"Millisecond portion of the time when the :class:`LogRecord` was created." -msgstr "" - -#: ../Doc/library/logging.rst:780 +#: ../Doc/library/logging.rst:783 msgid "message" msgstr "message" -#: ../Doc/library/logging.rst:780 +#: ../Doc/library/logging.rst:783 msgid "``%(message)s``" msgstr "``%(message)s``" -#: ../Doc/library/logging.rst:780 +#: ../Doc/library/logging.rst:783 msgid "" "The logged message, computed as ``msg % args``. This is set when :meth:" "`Formatter.format` is invoked." msgstr "" -#: ../Doc/library/logging.rst:784 ../Doc/library/logging.rst:0 +#: ../Doc/library/logging.rst:787 +msgid "module" +msgstr "module" + +#: ../Doc/library/logging.rst:787 +msgid "``%(module)s``" +msgstr "``%(module)s``" + +#: ../Doc/library/logging.rst:787 +msgid "Module (name portion of ``filename``)." +msgstr "" + +#: ../Doc/library/logging.rst:789 +msgid "msecs" +msgstr "msecs" + +#: ../Doc/library/logging.rst:789 +msgid "``%(msecs)d``" +msgstr "``%(msecs)d``" + +#: ../Doc/library/logging.rst:789 +msgid "" +"Millisecond portion of the time when the :class:`LogRecord` was created." +msgstr "" + +#: ../Doc/library/logging.rst:792 ../Doc/library/logging.rst:0 msgid "msg" msgstr "" -#: ../Doc/library/logging.rst:784 +#: ../Doc/library/logging.rst:792 msgid "" "The format string passed in the original logging call. Merged with ``args`` " "to produce ``message``, or an arbitrary object (see :ref:`arbitrary-object-" "messages`)." msgstr "" -#: ../Doc/library/logging.rst:789 ../Doc/library/logging.rst:0 +#: ../Doc/library/logging.rst:797 ../Doc/library/logging.rst:0 msgid "name" msgstr "" -#: ../Doc/library/logging.rst:789 +#: ../Doc/library/logging.rst:797 msgid "``%(name)s``" msgstr "``%(name)s``" -#: ../Doc/library/logging.rst:789 +#: ../Doc/library/logging.rst:797 msgid "Name of the logger used to log the call." msgstr "" -#: ../Doc/library/logging.rst:791 +#: ../Doc/library/logging.rst:799 msgid "pathname" msgstr "pathname" -#: ../Doc/library/logging.rst:791 +#: ../Doc/library/logging.rst:799 msgid "``%(pathname)s``" msgstr "``%(pathname)s``" -#: ../Doc/library/logging.rst:791 +#: ../Doc/library/logging.rst:799 msgid "" "Full pathname of the source file where the logging call was issued (if " "available)." msgstr "" -#: ../Doc/library/logging.rst:794 +#: ../Doc/library/logging.rst:802 msgid "process" msgstr "process" -#: ../Doc/library/logging.rst:794 +#: ../Doc/library/logging.rst:802 msgid "``%(process)d``" msgstr "``%(process)d``" -#: ../Doc/library/logging.rst:794 +#: ../Doc/library/logging.rst:802 msgid "Process ID (if available)." msgstr "" -#: ../Doc/library/logging.rst:796 +#: ../Doc/library/logging.rst:804 msgid "processName" msgstr "processName" -#: ../Doc/library/logging.rst:796 +#: ../Doc/library/logging.rst:804 msgid "``%(processName)s``" msgstr "``%(processName)s``" -#: ../Doc/library/logging.rst:796 +#: ../Doc/library/logging.rst:804 msgid "Process name (if available)." msgstr "" -#: ../Doc/library/logging.rst:798 +#: ../Doc/library/logging.rst:806 msgid "relativeCreated" msgstr "relativeCreated" -#: ../Doc/library/logging.rst:798 +#: ../Doc/library/logging.rst:806 msgid "``%(relativeCreated)d``" msgstr "``%(relativeCreated)d``" -#: ../Doc/library/logging.rst:798 +#: ../Doc/library/logging.rst:806 msgid "" "Time in milliseconds when the LogRecord was created, relative to the time " "the logging module was loaded." msgstr "" -#: ../Doc/library/logging.rst:802 +#: ../Doc/library/logging.rst:810 msgid "stack_info" msgstr "" -#: ../Doc/library/logging.rst:802 +#: ../Doc/library/logging.rst:810 msgid "" "Stack frame information (where available) from the bottom of the stack in " "the current thread, up to and including the stack frame of the logging call " "which resulted in the creation of this record." msgstr "" -#: ../Doc/library/logging.rst:808 +#: ../Doc/library/logging.rst:816 msgid "thread" msgstr "" -#: ../Doc/library/logging.rst:808 +#: ../Doc/library/logging.rst:816 msgid "``%(thread)d``" msgstr "``%(thread)d``" -#: ../Doc/library/logging.rst:808 +#: ../Doc/library/logging.rst:816 msgid "Thread ID (if available)." msgstr "" -#: ../Doc/library/logging.rst:810 +#: ../Doc/library/logging.rst:818 msgid "threadName" msgstr "" -#: ../Doc/library/logging.rst:810 +#: ../Doc/library/logging.rst:818 msgid "``%(threadName)s``" msgstr "``%(threadName)s``" -#: ../Doc/library/logging.rst:810 +#: ../Doc/library/logging.rst:818 msgid "Thread name (if available)." msgstr "" -#: ../Doc/library/logging.rst:813 +#: ../Doc/library/logging.rst:821 msgid "*processName* was added." msgstr "" -#: ../Doc/library/logging.rst:820 +#: ../Doc/library/logging.rst:828 msgid "LoggerAdapter Objects" msgstr "" -#: ../Doc/library/logging.rst:822 +#: ../Doc/library/logging.rst:830 msgid "" ":class:`LoggerAdapter` instances are used to conveniently pass contextual " "information into logging calls. For a usage example, see the section on :ref:" "`adding contextual information to your logging output `." msgstr "" -#: ../Doc/library/logging.rst:828 +#: ../Doc/library/logging.rst:836 msgid "" "Returns an instance of :class:`LoggerAdapter` initialized with an " "underlying :class:`Logger` instance and a dict-like object." msgstr "" -#: ../Doc/library/logging.rst:833 +#: ../Doc/library/logging.rst:841 msgid "" "Modifies the message and/or keyword arguments passed to a logging call in " "order to insert contextual information. This implementation takes the object " @@ -1248,7 +1259,7 @@ msgid "" "(possibly modified) versions of the arguments passed in." msgstr "" -#: ../Doc/library/logging.rst:839 +#: ../Doc/library/logging.rst:847 msgid "" "In addition to the above, :class:`LoggerAdapter` supports the following " "methods of :class:`Logger`: :meth:`~Logger.debug`, :meth:`~Logger.info`, :" @@ -1260,18 +1271,18 @@ msgid "" "interchangeably." msgstr "" -#: ../Doc/library/logging.rst:848 +#: ../Doc/library/logging.rst:856 msgid "" "The :meth:`~Logger.isEnabledFor`, :meth:`~Logger.getEffectiveLevel`, :meth:" "`~Logger.setLevel` and :meth:`~Logger.hasHandlers` methods were added to :" "class:`LoggerAdapter`. These methods delegate to the underlying logger." msgstr "" -#: ../Doc/library/logging.rst:855 +#: ../Doc/library/logging.rst:863 msgid "Thread Safety" msgstr "" -#: ../Doc/library/logging.rst:857 +#: ../Doc/library/logging.rst:865 msgid "" "The logging module is intended to be thread-safe without any special work " "needing to be done by its clients. It achieves this though using threading " @@ -1280,7 +1291,7 @@ msgid "" "O." msgstr "" -#: ../Doc/library/logging.rst:862 +#: ../Doc/library/logging.rst:870 msgid "" "If you are implementing asynchronous signal handlers using the :mod:`signal` " "module, you may not be able to use logging from within such handlers. This " @@ -1288,17 +1299,17 @@ msgid "" "always re-entrant, and so cannot be invoked from such signal handlers." msgstr "" -#: ../Doc/library/logging.rst:869 +#: ../Doc/library/logging.rst:877 msgid "Module-Level Functions" msgstr "" -#: ../Doc/library/logging.rst:871 +#: ../Doc/library/logging.rst:879 msgid "" "In addition to the classes described above, there are a number of module- " "level functions." msgstr "" -#: ../Doc/library/logging.rst:877 +#: ../Doc/library/logging.rst:885 msgid "" "Return a logger with the specified name or, if name is ``None``, return a " "logger which is the root logger of the hierarchy. If specified, the name is " @@ -1307,14 +1318,14 @@ msgid "" "logging." msgstr "" -#: ../Doc/library/logging.rst:882 +#: ../Doc/library/logging.rst:890 msgid "" "All calls to this function with a given name return the same logger " "instance. This means that logger instances never need to be passed between " "different parts of an application." msgstr "" -#: ../Doc/library/logging.rst:889 +#: ../Doc/library/logging.rst:897 msgid "" "Return either the standard :class:`Logger` class, or the last class passed " "to :func:`setLoggerClass`. This function may be called from within a new " @@ -1323,24 +1334,24 @@ msgid "" "example::" msgstr "" -#: ../Doc/library/logging.rst:900 +#: ../Doc/library/logging.rst:908 msgid "Return a callable which is used to create a :class:`LogRecord`." msgstr "" -#: ../Doc/library/logging.rst:902 +#: ../Doc/library/logging.rst:910 msgid "" "This function has been provided, along with :func:`setLogRecordFactory`, to " "allow developers more control over how the :class:`LogRecord` representing a " "logging event is constructed." msgstr "" -#: ../Doc/library/logging.rst:907 +#: ../Doc/library/logging.rst:915 msgid "" "See :func:`setLogRecordFactory` for more information about the how the " "factory is called." msgstr "" -#: ../Doc/library/logging.rst:912 +#: ../Doc/library/logging.rst:920 msgid "" "Logs a message with level :const:`DEBUG` on the root logger. The *msg* is " "the message format string, and the *args* are the arguments which are merged " @@ -1349,7 +1360,7 @@ msgid "" "argument.)" msgstr "" -#: ../Doc/library/logging.rst:917 +#: ../Doc/library/logging.rst:925 msgid "" "There are three keyword arguments in *kwargs* which are inspected: " "*exc_info* which, if it does not evaluate as false, causes exception " @@ -1358,7 +1369,7 @@ msgid "" "otherwise, :func:`sys.exc_info` is called to get the exception information." msgstr "" -#: ../Doc/library/logging.rst:941 +#: ../Doc/library/logging.rst:949 msgid "" "The third optional keyword argument is *extra* which can be used to pass a " "dictionary which is used to populate the __dict__ of the LogRecord created " @@ -1367,55 +1378,55 @@ msgid "" "logged messages. For example::" msgstr "" -#: ../Doc/library/logging.rst:952 +#: ../Doc/library/logging.rst:960 msgid "would print something like::" msgstr "" -#: ../Doc/library/logging.rst:979 +#: ../Doc/library/logging.rst:987 msgid "" "Logs a message with level :const:`INFO` on the root logger. The arguments " "are interpreted as for :func:`debug`." msgstr "" -#: ../Doc/library/logging.rst:985 +#: ../Doc/library/logging.rst:993 msgid "" "Logs a message with level :const:`WARNING` on the root logger. The arguments " "are interpreted as for :func:`debug`." msgstr "" -#: ../Doc/library/logging.rst:988 +#: ../Doc/library/logging.rst:996 msgid "" "There is an obsolete function ``warn`` which is functionally identical to " "``warning``. As ``warn`` is deprecated, please do not use it - use " "``warning`` instead." msgstr "" -#: ../Doc/library/logging.rst:995 +#: ../Doc/library/logging.rst:1003 msgid "" "Logs a message with level :const:`ERROR` on the root logger. The arguments " "are interpreted as for :func:`debug`." msgstr "" -#: ../Doc/library/logging.rst:1001 +#: ../Doc/library/logging.rst:1009 msgid "" "Logs a message with level :const:`CRITICAL` on the root logger. The " "arguments are interpreted as for :func:`debug`." msgstr "" -#: ../Doc/library/logging.rst:1007 +#: ../Doc/library/logging.rst:1015 msgid "" "Logs a message with level :const:`ERROR` on the root logger. The arguments " "are interpreted as for :func:`debug`. Exception info is added to the logging " "message. This function should only be called from an exception handler." msgstr "" -#: ../Doc/library/logging.rst:1013 +#: ../Doc/library/logging.rst:1021 msgid "" "Logs a message with level *level* on the root logger. The other arguments " "are interpreted as for :func:`debug`." msgstr "" -#: ../Doc/library/logging.rst:1016 +#: ../Doc/library/logging.rst:1024 msgid "" "The above module-level convenience functions, which delegate to the root " "logger, call :func:`basicConfig` to ensure that at least one handler is " @@ -1428,7 +1439,7 @@ msgid "" "messages for the same event." msgstr "" -#: ../Doc/library/logging.rst:1028 +#: ../Doc/library/logging.rst:1036 msgid "" "Provides an overriding level *lvl* for all loggers which takes precedence " "over the logger's own level. When the need arises to temporarily throttle " @@ -1442,7 +1453,21 @@ msgid "" "individual loggers." msgstr "" -#: ../Doc/library/logging.rst:1042 +#: ../Doc/library/logging.rst:1047 +msgid "" +"Note that if you have defined any custom logging level higher than " +"``CRITICAL`` (this is not recommended), you won't be able to rely on the " +"default value for the *lvl* parameter, but will have to explicitly supply a " +"suitable value." +msgstr "" + +#: ../Doc/library/logging.rst:1052 +msgid "" +"The *lvl* parameter was defaulted to level ``CRITICAL``. See Issue #28524 " +"for more information about this change." +msgstr "" + +#: ../Doc/library/logging.rst:1058 msgid "" "Associates level *lvl* with text *levelName* in an internal dictionary, " "which is used to map numeric levels to a textual representation, for example " @@ -1452,13 +1477,13 @@ msgid "" "and they should increase in increasing order of severity." msgstr "" -#: ../Doc/library/logging.rst:1049 +#: ../Doc/library/logging.rst:1065 msgid "" "If you are thinking of defining your own levels, please see the section on :" "ref:`custom-levels`." msgstr "" -#: ../Doc/library/logging.rst:1054 +#: ../Doc/library/logging.rst:1070 msgid "" "Returns the textual representation of logging level *lvl*. If the level is " "one of the predefined levels :const:`CRITICAL`, :const:`ERROR`, :const:" @@ -1470,7 +1495,7 @@ msgid "" "returned." msgstr "" -#: ../Doc/library/logging.rst:1062 +#: ../Doc/library/logging.rst:1078 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 " @@ -1478,7 +1503,7 @@ msgid "" "%(levelname)s`` format specifier (see :ref:`logrecord-attributes`)." msgstr "" -#: ../Doc/library/logging.rst:1067 +#: ../Doc/library/logging.rst:1083 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. " @@ -1486,7 +1511,7 @@ msgid "" "Python 3.4, but reinstated in 3.4.2 due to retain backward compatibility." msgstr "" -#: ../Doc/library/logging.rst:1075 +#: ../Doc/library/logging.rst:1091 msgid "" "Creates and returns a new :class:`LogRecord` instance whose attributes are " "defined by *attrdict*. This function is useful for taking a pickled :class:" @@ -1494,7 +1519,7 @@ msgid "" "as a :class:`LogRecord` instance at the receiving end." msgstr "" -#: ../Doc/library/logging.rst:1083 +#: ../Doc/library/logging.rst:1099 msgid "" "Does basic configuration for the logging system by creating a :class:" "`StreamHandler` with a default :class:`Formatter` and adding it to the root " @@ -1503,13 +1528,13 @@ msgid "" "no handlers are defined for the root logger." msgstr "" -#: ../Doc/library/logging.rst:1089 +#: ../Doc/library/logging.rst:1105 msgid "" "This function does nothing if the root logger already has handlers " "configured for it." msgstr "" -#: ../Doc/library/logging.rst:1092 +#: ../Doc/library/logging.rst:1108 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 " @@ -1518,81 +1543,81 @@ msgid "" "unexpected results such as messages being duplicated in the log." msgstr "" -#: ../Doc/library/logging.rst:1099 +#: ../Doc/library/logging.rst:1115 msgid "The following keyword arguments are supported." msgstr "" -#: ../Doc/library/logging.rst:1106 +#: ../Doc/library/logging.rst:1122 msgid "``filename``" msgstr "``filename``" -#: ../Doc/library/logging.rst:1106 +#: ../Doc/library/logging.rst:1122 msgid "" "Specifies that a FileHandler be created, using the specified filename, " "rather than a StreamHandler." msgstr "" -#: ../Doc/library/logging.rst:1110 +#: ../Doc/library/logging.rst:1126 msgid "``filemode``" msgstr "``filemode``" -#: ../Doc/library/logging.rst:1110 +#: ../Doc/library/logging.rst:1126 msgid "" "Specifies the mode to open the file, if filename is specified (if filemode " "is unspecified, it defaults to 'a')." msgstr "" -#: ../Doc/library/logging.rst:1114 +#: ../Doc/library/logging.rst:1130 msgid "``format``" msgstr "``format``" -#: ../Doc/library/logging.rst:1114 +#: ../Doc/library/logging.rst:1130 msgid "Use the specified format string for the handler." msgstr "" -#: ../Doc/library/logging.rst:1117 +#: ../Doc/library/logging.rst:1133 msgid "``datefmt``" msgstr "``datefmt``" -#: ../Doc/library/logging.rst:1117 +#: ../Doc/library/logging.rst:1133 msgid "Use the specified date/time format." msgstr "" -#: ../Doc/library/logging.rst:1119 +#: ../Doc/library/logging.rst:1135 msgid "``style``" msgstr "``style``" -#: ../Doc/library/logging.rst:1119 +#: ../Doc/library/logging.rst:1135 msgid "" "If ``format`` is specified, use this style for the format string. One of " "'%', '{' or '$' for %-formatting, :meth:`str.format` or :class:`string." "Template` respectively, and defaulting to '%' if not specified." msgstr "" -#: ../Doc/library/logging.rst:1125 +#: ../Doc/library/logging.rst:1141 msgid "``level``" msgstr "``level``" -#: ../Doc/library/logging.rst:1125 +#: ../Doc/library/logging.rst:1141 msgid "Set the root logger level to the specified level." msgstr "" -#: ../Doc/library/logging.rst:1128 +#: ../Doc/library/logging.rst:1144 msgid "``stream``" msgstr "``stream``" -#: ../Doc/library/logging.rst:1128 +#: ../Doc/library/logging.rst:1144 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 "" -#: ../Doc/library/logging.rst:1133 +#: ../Doc/library/logging.rst:1149 msgid "``handlers``" msgstr "``handlers``" -#: ../Doc/library/logging.rst:1133 +#: ../Doc/library/logging.rst:1149 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 " @@ -1601,11 +1626,11 @@ msgid "" "present, a ``ValueError`` is raised." msgstr "" -#: ../Doc/library/logging.rst:1143 +#: ../Doc/library/logging.rst:1159 msgid "The ``style`` argument was added." msgstr "" -#: ../Doc/library/logging.rst:1146 +#: ../Doc/library/logging.rst:1162 msgid "" "The ``handlers`` argument was added. Additional checks were added to catch " "situations where incompatible arguments are specified (e.g. ``handlers`` " @@ -1613,14 +1638,14 @@ msgid "" "``filename``)." msgstr "" -#: ../Doc/library/logging.rst:1155 +#: ../Doc/library/logging.rst:1171 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 "" -#: ../Doc/library/logging.rst:1162 +#: ../Doc/library/logging.rst:1178 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 " @@ -1629,26 +1654,26 @@ msgid "" "instantiated by applications which need to use custom logger behavior." msgstr "" -#: ../Doc/library/logging.rst:1171 +#: ../Doc/library/logging.rst:1187 msgid "Set a callable which is used to create a :class:`LogRecord`." msgstr "" -#: ../Doc/library/logging.rst:1173 +#: ../Doc/library/logging.rst:1189 msgid "The factory callable to be used to instantiate a log record." msgstr "" -#: ../Doc/library/logging.rst:1175 +#: ../Doc/library/logging.rst:1191 msgid "" "This function has been provided, along with :func:`getLogRecordFactory`, to " "allow developers more control over how the :class:`LogRecord` representing a " "logging event is constructed." msgstr "" -#: ../Doc/library/logging.rst:1180 +#: ../Doc/library/logging.rst:1196 msgid "The factory has the following signature:" msgstr "" -#: ../Doc/library/logging.rst:1182 +#: ../Doc/library/logging.rst:1198 msgid "" "``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " "**kwargs)``" @@ -1656,7 +1681,7 @@ msgstr "" "``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " "**kwargs)``" -#: ../Doc/library/logging.rst:1184 +#: ../Doc/library/logging.rst:1200 msgid "The logger name." msgstr "" @@ -1664,7 +1689,7 @@ msgstr "" msgid "level" msgstr "level" -#: ../Doc/library/logging.rst:1185 +#: ../Doc/library/logging.rst:1201 msgid "The logging level (numeric)." msgstr "" @@ -1672,7 +1697,7 @@ msgstr "" msgid "fn" msgstr "fn" -#: ../Doc/library/logging.rst:1186 +#: ../Doc/library/logging.rst:1202 msgid "The full pathname of the file where the logging call was made." msgstr "" @@ -1680,19 +1705,19 @@ msgstr "" msgid "lno" msgstr "lno" -#: ../Doc/library/logging.rst:1187 +#: ../Doc/library/logging.rst:1203 msgid "The line number in the file where the logging call was made." msgstr "" -#: ../Doc/library/logging.rst:1188 +#: ../Doc/library/logging.rst:1204 msgid "The logging message." msgstr "" -#: ../Doc/library/logging.rst:1189 +#: ../Doc/library/logging.rst:1205 msgid "The arguments for the logging message." msgstr "" -#: ../Doc/library/logging.rst:1190 +#: ../Doc/library/logging.rst:1206 msgid "An exception tuple, or ``None``." msgstr "" @@ -1700,7 +1725,7 @@ msgstr "" msgid "func" msgstr "func" -#: ../Doc/library/logging.rst:1191 +#: ../Doc/library/logging.rst:1207 msgid "The name of the function or method which invoked the logging call." msgstr "" @@ -1708,7 +1733,7 @@ msgstr "" msgid "sinfo" msgstr "sinfo" -#: ../Doc/library/logging.rst:1193 +#: ../Doc/library/logging.rst:1209 msgid "" "A stack traceback such as is provided by :func:`traceback.print_stack`, " "showing the call hierarchy." @@ -1718,15 +1743,15 @@ msgstr "" msgid "kwargs" msgstr "" -#: ../Doc/library/logging.rst:1195 +#: ../Doc/library/logging.rst:1211 msgid "Additional keyword arguments." msgstr "" -#: ../Doc/library/logging.rst:1199 +#: ../Doc/library/logging.rst:1215 msgid "Module-Level Attributes" msgstr "" -#: ../Doc/library/logging.rst:1203 +#: ../Doc/library/logging.rst:1219 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``, " @@ -1737,22 +1762,22 @@ msgid "" "reason, ``lastResort`` can be set to ``None``." msgstr "" -#: ../Doc/library/logging.rst:1214 +#: ../Doc/library/logging.rst:1230 msgid "Integration with the warnings module" msgstr "" -#: ../Doc/library/logging.rst:1216 +#: ../Doc/library/logging.rst:1232 msgid "" "The :func:`captureWarnings` function can be used to integrate :mod:`logging` " "with the :mod:`warnings` module." msgstr "" -#: ../Doc/library/logging.rst:1221 +#: ../Doc/library/logging.rst:1237 msgid "" "This function is used to turn the capture of warnings by logging on and off." msgstr "" -#: ../Doc/library/logging.rst:1224 +#: ../Doc/library/logging.rst:1240 msgid "" "If *capture* is ``True``, warnings issued by the :mod:`warnings` module will " "be redirected to the logging system. Specifically, a warning will be " @@ -1761,46 +1786,46 @@ msgid "" "`WARNING`." msgstr "" -#: ../Doc/library/logging.rst:1229 +#: ../Doc/library/logging.rst:1245 msgid "" "If *capture* is ``False``, the redirection of warnings to the logging system " "will stop, and warnings will be redirected to their original destinations (i." "e. those in effect before ``captureWarnings(True)`` was called)." msgstr "" -#: ../Doc/library/logging.rst:1237 +#: ../Doc/library/logging.rst:1253 msgid "Module :mod:`logging.config`" msgstr "" -#: ../Doc/library/logging.rst:1237 +#: ../Doc/library/logging.rst:1253 msgid "Configuration API for the logging module." msgstr "" -#: ../Doc/library/logging.rst:1240 +#: ../Doc/library/logging.rst:1256 msgid "Module :mod:`logging.handlers`" msgstr "" -#: ../Doc/library/logging.rst:1240 +#: ../Doc/library/logging.rst:1256 msgid "Useful handlers included with the logging module." msgstr "" -#: ../Doc/library/logging.rst:1244 +#: ../Doc/library/logging.rst:1260 msgid ":pep:`282` - A Logging System" msgstr "" -#: ../Doc/library/logging.rst:1243 +#: ../Doc/library/logging.rst:1259 msgid "" "The proposal which described this feature for inclusion in the Python " "standard library." msgstr "" -#: ../Doc/library/logging.rst:1249 +#: ../Doc/library/logging.rst:1265 msgid "" "`Original Python logging package `_" msgstr "" -#: ../Doc/library/logging.rst:1247 +#: ../Doc/library/logging.rst:1263 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/mailbox.po b/library/mailbox.po index 5533a635..ce700e57 100644 --- a/library/mailbox.po +++ b/library/mailbox.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -576,8 +576,7 @@ msgstr "" #: ../Doc/library/mailbox.rst:494 msgid "" "`\"mbox\" is a family of several mutually incompatible mailbox formats " -"`_" +"`_" msgstr "" #: ../Doc/library/mailbox.rst:495 diff --git a/library/pickle.po b/library/pickle.po index 3c742e03..3ac2fe8c 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -331,6 +331,7 @@ msgid "" msgstr "" #: ../Doc/library/pickle.rst:231 ../Doc/library/pickle.rst:248 +#: ../Doc/library/pickle.rst:367 msgid "" "Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which " "are used to control compatibility support for pickle stream generated by " @@ -470,17 +471,6 @@ msgid "" "custom object that meets this interface." msgstr "" -#: ../Doc/library/pickle.rst:367 -msgid "" -"Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which " -"are used to control compatibility support for pickle stream generated by " -"Python 2. If *fix_imports* is true, pickle will try to map the old Python 2 " -"names to the new names used in Python 3. The *encoding* and *errors* tell " -"pickle how to decode 8-bit string instances pickled by Python 2; these " -"default to 'ASCII' and 'strict', respectively. The *encoding* can be " -"'bytes' to read these ß8-bit string instances as bytes objects." -msgstr "" - #: ../Doc/library/pickle.rst:377 msgid "" "Read a pickled object representation from the open file object given in the " diff --git a/library/re.po b/library/re.po index 9e1dfc03..8cf587c0 100644 --- a/library/re.po +++ b/library/re.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-01 07:43+0100\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-12-03 13:59+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: \n" @@ -212,7 +212,7 @@ msgstr "" msgid "The special characters are:" msgstr "Les caractères spéciaux sont :" -#: ../Doc/library/re.rst:99 ../Doc/library/re.rst:1282 +#: ../Doc/library/re.rst:99 ../Doc/library/re.rst:1288 msgid "``.``" msgstr "``.``" @@ -1503,8 +1503,8 @@ msgstr "" "comportement voulu, une :exc:`ValueError` sera levée à partir de Python " "3.5 : ::" -#: ../Doc/library/re.rst:715 ../Doc/library/re.rst:787 -#: ../Doc/library/re.rst:807 +#: ../Doc/library/re.rst:715 ../Doc/library/re.rst:793 +#: ../Doc/library/re.rst:813 msgid "Added the optional flags argument." msgstr "Ajout de l'argument optionnel *flags*" @@ -1517,14 +1517,14 @@ msgstr "" "maintenant un avertissement. Les motifs qui ne peuvent correspondre qu'à " "des chaînes vides sont maintenant rejetés." -#: ../Doc/library/re.rst:724 +#: ../Doc/library/re.rst:725 +#, fuzzy msgid "" "Return all non-overlapping matches of *pattern* in *string*, as a list of " "strings. The *string* is scanned left-to-right, and matches are returned in " "the order found. If one or more groups are present in the pattern, return a " "list of groups; this will be a list of tuples if the pattern has more than " -"one group. Empty matches are included in the result unless they touch the " -"beginning of another match." +"one group. Empty matches are included in the result." msgstr "" "Renvoie toutes les correspondances de *pattern* dans *string* qui ne se " "chevauchent pas, sous forme d'une liste de chaînes. Le chaîne *string* est " @@ -1535,13 +1535,22 @@ msgstr "" "inclues dans le résultat sauf si elles touchent le début d'une autre " "correspondance." -#: ../Doc/library/re.rst:734 +#: ../Doc/library/re.rst:733 +msgid "" +"Due to the limitation of the current implementation the character following " +"an empty match is not included in a next match, so ``findall(r'^|\\w+', 'two " +"words')`` returns ``['', 'wo', 'words']`` (note missed \"t\"). This is " +"changed in Python 3.7." +msgstr "" + +#: ../Doc/library/re.rst:741 +#, fuzzy msgid "" "Return an :term:`iterator` yielding :ref:`match objects ` " "over all non-overlapping matches for the RE *pattern* in *string*. The " "*string* is scanned left-to-right, and matches are returned in the order " -"found. Empty matches are included in the result unless they touch the " -"beginning of another match." +"found. Empty matches are included in the result. See also the note about :" +"func:`findall`." msgstr "" "Renvoie un :term:`iterator` produisant des :ref:`objets de correspondance " "` pour toutes les correspondances non chevauchantes de " @@ -1550,7 +1559,7 @@ msgstr "" "dans l'ordre où elles sont trouvées. Les correspondances vides sont inclues " "dans le résultat sauf si elles touchent le début d'une autre correspondance." -#: ../Doc/library/re.rst:743 +#: ../Doc/library/re.rst:749 msgid "" "Return the string obtained by replacing the leftmost non-overlapping " "occurrences of *pattern* in *string* by the replacement *repl*. If the " @@ -1571,7 +1580,7 @@ msgstr "" "intactes. Les références arrières, telles que ``\\6``, sont remplacées par " "la sous-chaîne correspondant au groupe 6 dans le motif. Par exemple ::" -#: ../Doc/library/re.rst:757 +#: ../Doc/library/re.rst:763 msgid "" "If *repl* is a function, it is called for every non-overlapping occurrence " "of *pattern*. The function takes a single :ref:`match object `, et renvoie la chaîne de remplacement. " "Par exemple ::" -#: ../Doc/library/re.rst:769 +#: ../Doc/library/re.rst:775 msgid "The pattern may be a string or a :ref:`pattern object `." msgstr "" "Le motif peut être une chaîne de caractères ou un :ref:`objet expression " "rationnelle `." -#: ../Doc/library/re.rst:771 +#: ../Doc/library/re.rst:777 msgid "" "The optional argument *count* is the maximum number of pattern occurrences " "to be replaced; *count* must be a non-negative integer. If omitted or zero, " @@ -1603,7 +1612,7 @@ msgstr "" "précédente correspondance, ainsi ``sub('x*', '-', 'abc')`` renvoie ``'-a-b-" "c-'``." -#: ../Doc/library/re.rst:777 +#: ../Doc/library/re.rst:783 msgid "" "In string-type *repl* arguments, in addition to the character escapes and " "backreferences described above, ``\\g`` will use the substring matched " @@ -1625,12 +1634,12 @@ msgstr "" "par un caractère littéral ``'0'``. La référence arrière ``\\g<0>`` est " "remplacée par la sous-chaîne entière validée par l'expression rationnelle." -#: ../Doc/library/re.rst:790 ../Doc/library/re.rst:810 -#: ../Doc/library/re.rst:1030 +#: ../Doc/library/re.rst:796 ../Doc/library/re.rst:816 +#: ../Doc/library/re.rst:1036 msgid "Unmatched groups are replaced with an empty string." msgstr "Les groupes sans correspondance sont remplacés par une chaîne vide." -#: ../Doc/library/re.rst:793 +#: ../Doc/library/re.rst:799 msgid "" "Unknown escapes in *pattern* consisting of ``'\\'`` and an ASCII letter now " "are errors." @@ -1638,7 +1647,7 @@ msgstr "" "Les séquences d'échappement inconnues dans *pattern* formées par ``'\\'`` et " "une lettre ASCII sont maintenant des erreurs." -#: ../Doc/library/re.rst:799 +#: ../Doc/library/re.rst:805 msgid "" "Deprecated since version 3.5, will be removed in version 3.7: Unknown " "escapes in repl consisting of '\\' and an ASCII letter now raise a " @@ -1649,7 +1658,7 @@ msgstr "" "maintenant un avertissement de dépréciation et seront interdites en Python " "3.7." -#: ../Doc/library/re.rst:799 +#: ../Doc/library/re.rst:805 msgid "" "Unknown escapes in *repl* consisting of ``'\\'`` and an ASCII letter now " "raise a deprecation warning and will be forbidden in Python 3.7." @@ -1658,7 +1667,7 @@ msgstr "" "lettre ASCII lèvent maintenant un avertissement de dépréciation et seront " "interdites en Python 3.7." -#: ../Doc/library/re.rst:804 +#: ../Doc/library/re.rst:810 msgid "" "Perform the same operation as :func:`sub`, but return a tuple ``(new_string, " "number_of_subs_made)``." @@ -1666,7 +1675,7 @@ msgstr "" "Réalise la même opération que :func:`sub`, mais renvoie un *tuple* " "``(nouvelle_chaîne, nombre_de_substitutions_réalisées)``." -#: ../Doc/library/re.rst:816 +#: ../Doc/library/re.rst:822 msgid "" "Escape all the characters in *pattern* except ASCII letters, numbers and " "``'_'``. This is useful if you want to match an arbitrary literal string " @@ -1677,21 +1686,21 @@ msgstr "" "quelconque chaîne littérale qui pourrait contenir des métacaractères " "d'expressions rationnelles. Par exemple : ::" -#: ../Doc/library/re.rst:831 +#: ../Doc/library/re.rst:837 msgid "" "This functions must not be used for the replacement string in :func:`sub` " "and :func:`subn`, only backslashes should be escaped. For example::" msgstr "" -#: ../Doc/library/re.rst:839 +#: ../Doc/library/re.rst:845 msgid "The ``'_'`` character is no longer escaped." msgstr "Le caractère ``'_'`` n'est plus échappé." -#: ../Doc/library/re.rst:845 +#: ../Doc/library/re.rst:851 msgid "Clear the regular expression cache." msgstr "Vide le cache d'expressions rationnelles." -#: ../Doc/library/re.rst:850 +#: ../Doc/library/re.rst:856 msgid "" "Exception raised when a string passed to one of the functions here is not a " "valid regular expression (for example, it might contain unmatched " @@ -1706,36 +1715,36 @@ msgstr "" "contient aucune correspondance pour un motif. Les instances de l'erreur ont " "les attributs additionnels suivants :" -#: ../Doc/library/re.rst:858 +#: ../Doc/library/re.rst:864 msgid "The unformatted error message." msgstr "Le message d'erreur non formaté." -#: ../Doc/library/re.rst:862 +#: ../Doc/library/re.rst:868 msgid "The regular expression pattern." msgstr "Le motif d'expression rationnelle." -#: ../Doc/library/re.rst:866 +#: ../Doc/library/re.rst:872 msgid "The index in *pattern* where compilation failed (may be ``None``)." msgstr "" "L'index dans *pattern* où la compilation a échoué (peut valoir ``None``)." -#: ../Doc/library/re.rst:870 +#: ../Doc/library/re.rst:876 msgid "The line corresponding to *pos* (may be ``None``)." msgstr "La ligne correspondant à *pos* (peut valoir ``None``)." -#: ../Doc/library/re.rst:874 +#: ../Doc/library/re.rst:880 msgid "The column corresponding to *pos* (may be ``None``)." msgstr "La colonne correspondant à *pos* (peut valoir ``None``)." -#: ../Doc/library/re.rst:876 +#: ../Doc/library/re.rst:882 msgid "Added additional attributes." msgstr "Ajout des attributs additionnels." -#: ../Doc/library/re.rst:882 +#: ../Doc/library/re.rst:888 msgid "Regular Expression Objects" msgstr "Objets d'expressions rationnelles" -#: ../Doc/library/re.rst:884 +#: ../Doc/library/re.rst:890 msgid "" "Compiled regular expression objects support the following methods and " "attributes:" @@ -1743,7 +1752,7 @@ msgstr "" "Les expressions rationnelles compilées supportent les méthodes et attributs " "suivants :" -#: ../Doc/library/re.rst:889 +#: ../Doc/library/re.rst:895 msgid "" "Scan through *string* looking for the first location where this regular " "expression produces a match, and return a corresponding :ref:`match object " @@ -1757,7 +1766,7 @@ msgstr "" "dans la chaîne ne satisfait le motif ; notez que cela est différent que de " "trouver une correspondance vide dans la chaîne." -#: ../Doc/library/re.rst:895 +#: ../Doc/library/re.rst:901 msgid "" "The optional second parameter *pos* gives an index in the string where the " "search is to start; it defaults to ``0``. This is not completely equivalent " @@ -1771,7 +1780,7 @@ msgstr "" "``'^'`` correspond au début réel de la chaîne et aux positions juste après " "un saut de ligne, mais pas nécessairement à l'index où la recherche commence." -#: ../Doc/library/re.rst:901 +#: ../Doc/library/re.rst:907 msgid "" "The optional parameter *endpos* limits how far the string will be searched; " "it will be as if the string is *endpos* characters long, so only the " @@ -1788,7 +1797,7 @@ msgstr "" "expression rationnelle compilée, ``rx.search(string, 0, 50)`` est équivalent " "à ``rx.search(string[:50], 0)``. ::" -#: ../Doc/library/re.rst:916 +#: ../Doc/library/re.rst:922 msgid "" "If zero or more characters at the *beginning* of *string* match this regular " "expression, return a corresponding :ref:`match object `. " @@ -1800,7 +1809,7 @@ msgstr "" "objects>` trouvé. Renvoie ``None`` si la chaîne ne correspond pas au motif ; " "notez que cela est différent d'une correspondance vide." -#: ../Doc/library/re.rst:921 ../Doc/library/re.rst:939 +#: ../Doc/library/re.rst:927 ../Doc/library/re.rst:945 msgid "" "The optional *pos* and *endpos* parameters have the same meaning as for the :" "meth:`~regex.search` method. ::" @@ -1808,7 +1817,7 @@ msgstr "" "Les paramètres optionnels *pos* et *endpos* ont le même sens que pour la " "méthode :meth:`~regex.search`. ::" -#: ../Doc/library/re.rst:929 +#: ../Doc/library/re.rst:935 msgid "" "If you want to locate a match anywhere in *string*, use :meth:`~regex." "search` instead (see also :ref:`search-vs-match`)." @@ -1816,7 +1825,7 @@ msgstr "" "Si vous voulez une recherche n'importe où dans *string*, utilisez plutôt :" "meth:`~regex.search` (voir aussi :ref:`search-vs-match`)." -#: ../Doc/library/re.rst:935 +#: ../Doc/library/re.rst:941 msgid "" "If the whole *string* matches this regular expression, return a " "corresponding :ref:`match object `. Return ``None`` if the " @@ -1828,11 +1837,11 @@ msgstr "" "la chaîne ne correspond pas au motif ; notez que cela est différent d'une " "correspondance vide." -#: ../Doc/library/re.rst:953 +#: ../Doc/library/re.rst:959 msgid "Identical to the :func:`split` function, using the compiled pattern." msgstr "Identique à la fonction :func:`split`, en utilisant le motif compilé." -#: ../Doc/library/re.rst:958 +#: ../Doc/library/re.rst:964 msgid "" "Similar to the :func:`findall` function, using the compiled pattern, but " "also accepts optional *pos* and *endpos* parameters that limit the search " @@ -1842,7 +1851,7 @@ msgstr "" "accepte aussi des paramètres *pos* et *endpos* optionnels qui limitent la " "région de recherche comme pour :meth:`search`." -#: ../Doc/library/re.rst:965 +#: ../Doc/library/re.rst:971 msgid "" "Similar to the :func:`finditer` function, using the compiled pattern, but " "also accepts optional *pos* and *endpos* parameters that limit the search " @@ -1852,15 +1861,15 @@ msgstr "" "mais accepte aussi des paramètres *pos* et *endpos* optionnels qui limitent " "la région de recherche comme pour :meth:`search`." -#: ../Doc/library/re.rst:972 +#: ../Doc/library/re.rst:978 msgid "Identical to the :func:`sub` function, using the compiled pattern." msgstr "Identique à la fonction :func:`sub`, en utilisant le motif compilé." -#: ../Doc/library/re.rst:977 +#: ../Doc/library/re.rst:983 msgid "Identical to the :func:`subn` function, using the compiled pattern." msgstr "Identique à la fonction :func:`subn`, en utilisant le motif compilé." -#: ../Doc/library/re.rst:982 +#: ../Doc/library/re.rst:988 msgid "" "The regex matching flags. This is a combination of the flags given to :func:" "`.compile`, any ``(?...)`` inline flags in the pattern, and implicit flags " @@ -1871,11 +1880,11 @@ msgstr "" "``(?...)`` dans le motif, et des options implicites comme :data:`UNICODE` si " "le motif est une chaîne Unicode." -#: ../Doc/library/re.rst:989 +#: ../Doc/library/re.rst:995 msgid "The number of capturing groups in the pattern." msgstr "Le nombre de groupes capturants dans le motif." -#: ../Doc/library/re.rst:994 +#: ../Doc/library/re.rst:1000 msgid "" "A dictionary mapping any symbolic group names defined by ``(?P)`` to " "group numbers. The dictionary is empty if no symbolic groups were used in " @@ -1885,17 +1894,17 @@ msgstr "" "P)`` aux groupes numérotés. Le dictionnaire est vide si aucun groupe " "symbolique n'est utilisé dans le motif." -#: ../Doc/library/re.rst:1001 +#: ../Doc/library/re.rst:1007 msgid "The pattern string from which the RE object was compiled." msgstr "" "La chaîne de motif depuis laquelle l'objet expression rationnelle a été " "compilé." -#: ../Doc/library/re.rst:1007 +#: ../Doc/library/re.rst:1013 msgid "Match Objects" msgstr "Objets de correspondance" -#: ../Doc/library/re.rst:1009 +#: ../Doc/library/re.rst:1015 msgid "" "Match objects always have a boolean value of ``True``. Since :meth:`~regex." "match` and :meth:`~regex.search` return ``None`` when there is no match, you " @@ -1906,12 +1915,12 @@ msgstr "" "quand il n'y a pas de correspondance, vous pouvez tester s'il y a eu " "correspondance avec une simple instruction ``if`` : ::" -#: ../Doc/library/re.rst:1018 +#: ../Doc/library/re.rst:1024 msgid "Match objects support the following methods and attributes:" msgstr "" "Les objets de correspondance supportent les méthodes et attributs suivants :" -#: ../Doc/library/re.rst:1023 +#: ../Doc/library/re.rst:1029 msgid "" "Return the string obtained by doing backslash substitution on the template " "string *template*, as done by the :meth:`~regex.sub` method. Escapes such as " @@ -1926,7 +1935,7 @@ msgstr "" "\\g<1>``, ``\\g``) sont remplacées par les contenus des groupes " "correspondant." -#: ../Doc/library/re.rst:1035 +#: ../Doc/library/re.rst:1041 msgid "" "Returns one or more subgroups of the match. If there is a single argument, " "the result is a single string; if there are multiple arguments, the result " @@ -1953,7 +1962,7 @@ msgstr "" "sera ``None``. Si un groupe est contenu dans une partie du motif qui a " "plusieurs correspondances, seule la dernière correspondance est renvoyée. ::" -#: ../Doc/library/re.rst:1057 +#: ../Doc/library/re.rst:1063 msgid "" "If the regular expression uses the ``(?P...)`` syntax, the *groupN* " "arguments may also be strings identifying groups by their group name. If a " @@ -1965,20 +1974,20 @@ msgstr "" "groupes par leurs noms. Si une chaîne donnée en argument n'est pas utilisée " "comme nom de groupe dans le motif, une exception :exc:`IndexError` est levée." -#: ../Doc/library/re.rst:1062 +#: ../Doc/library/re.rst:1068 msgid "A moderately complicated example::" msgstr "Un exemple modérément compliqué ::" -#: ../Doc/library/re.rst:1070 +#: ../Doc/library/re.rst:1076 msgid "Named groups can also be referred to by their index::" msgstr "Les groupes nommés peuvent aussi être référencés par leur index ::" -#: ../Doc/library/re.rst:1077 +#: ../Doc/library/re.rst:1083 msgid "If a group matches multiple times, only the last match is accessible::" msgstr "" "Si un groupe a plusieurs correspondances, seule la dernière est accessible ::" -#: ../Doc/library/re.rst:1086 +#: ../Doc/library/re.rst:1092 msgid "" "This is identical to ``m.group(g)``. This allows easier access to an " "individual group from a match::" @@ -1986,7 +1995,7 @@ msgstr "" "Cela est identique à ``m.group(g)``. Cela permet un accès plus facile à un " "groupe individuel depuis une correspondance ::" -#: ../Doc/library/re.rst:1102 +#: ../Doc/library/re.rst:1108 msgid "" "Return a tuple containing all the subgroups of the match, from 1 up to " "however many groups are in the pattern. The *default* argument is used for " @@ -1996,11 +2005,11 @@ msgstr "" "1 jusqu'au nombre de groupes dans le motif. L'argument *default* est " "utilisé pour les groupes sans correspondance ; il vaut ``None`` par défaut." -#: ../Doc/library/re.rst:1106 ../Doc/library/re.rst:1326 +#: ../Doc/library/re.rst:1112 ../Doc/library/re.rst:1332 msgid "For example::" msgstr "Par exemple : ::" -#: ../Doc/library/re.rst:1112 +#: ../Doc/library/re.rst:1118 msgid "" "If we make the decimal place and everything after it optional, not all " "groups might participate in the match. These groups will default to " @@ -2011,7 +2020,7 @@ msgstr "" "correspondance vaudront ``None`` sauf si une autre valeur est donnée à " "l'argument *default* ::" -#: ../Doc/library/re.rst:1125 +#: ../Doc/library/re.rst:1131 msgid "" "Return a dictionary containing all the *named* subgroups of the match, keyed " "by the subgroup name. The *default* argument is used for groups that did " @@ -2022,7 +2031,7 @@ msgstr "" "utilisé pour les groupes qui ne figurent pas dans la correspondance ; il " "vaut ``None`` par défaut. Par exemple ::" -#: ../Doc/library/re.rst:1137 +#: ../Doc/library/re.rst:1143 msgid "" "Return the indices of the start and end of the substring matched by *group*; " "*group* defaults to zero (meaning the whole matched substring). Return " @@ -2037,7 +2046,7 @@ msgstr "" "groupe *g* qui y figure, la sous-chaîne correspondant au groupe *g* " "(équivalente à ``m.group(g)``) est : ::" -#: ../Doc/library/re.rst:1145 +#: ../Doc/library/re.rst:1151 msgid "" "Note that ``m.start(group)`` will equal ``m.end(group)`` if *group* matched " "a null string. For example, after ``m = re.search('b(c?)', 'cba')``, ``m." @@ -2050,11 +2059,11 @@ msgstr "" "end(1)`` valent tous deux 2, et ``m.start(2)`` lève une exception :exc:" "`IndexError`." -#: ../Doc/library/re.rst:1150 +#: ../Doc/library/re.rst:1156 msgid "An example that will remove *remove_this* from email addresses::" msgstr "Un exemple qui supprimera *remove_this* d'une adresse email ::" -#: ../Doc/library/re.rst:1160 +#: ../Doc/library/re.rst:1166 msgid "" "For a match *m*, return the 2-tuple ``(m.start(group), m.end(group))``. Note " "that if *group* did not contribute to the match, this is ``(-1, -1)``. " @@ -2065,7 +2074,7 @@ msgstr "" "``(-1, -1)`` est renvoyé. *group* vaut par défaut zéro, pour la " "correspondance entière." -#: ../Doc/library/re.rst:1167 +#: ../Doc/library/re.rst:1173 msgid "" "The value of *pos* which was passed to the :meth:`~regex.search` or :meth:" "`~regex.match` method of a :ref:`regex object `. This is the " @@ -2076,7 +2085,7 @@ msgstr "" "C'est l'index dans la chaîne à partir duquel le moteur d'expressions " "rationnelles recherche une correspondance." -#: ../Doc/library/re.rst:1174 +#: ../Doc/library/re.rst:1180 msgid "" "The value of *endpos* which was passed to the :meth:`~regex.search` or :meth:" "`~regex.match` method of a :ref:`regex object `. This is the " @@ -2087,7 +2096,7 @@ msgstr "" "objects>`. C'est l'index dans la chaîne que le moteur d'expressions " "rationnelles ne dépassera pas." -#: ../Doc/library/re.rst:1181 +#: ../Doc/library/re.rst:1187 msgid "" "The integer index of the last matched capturing group, or ``None`` if no " "group was matched at all. For example, the expressions ``(a)b``, ``((a)" @@ -2101,7 +2110,7 @@ msgstr "" "``'ab'``, alors que l'expression ``(a)(b)`` aura un ``lastindex == 2`` si " "appliquée à la même chaîne." -#: ../Doc/library/re.rst:1190 +#: ../Doc/library/re.rst:1196 msgid "" "The name of the last matched capturing group, or ``None`` if the group " "didn't have a name, or if no group was matched at all." @@ -2109,7 +2118,7 @@ msgstr "" "Le nom du dernier groupe capturant validé, ou ``None`` si le groupe n'a pas " "de nom, ou si aucun groupe ne correspondait." -#: ../Doc/library/re.rst:1196 +#: ../Doc/library/re.rst:1202 msgid "" "The :ref:`regular expression object ` whose :meth:`~regex.match` " "or :meth:`~regex.search` method produced this match instance." @@ -2117,19 +2126,19 @@ msgstr "" ":ref:`L'expression rationnelle ` dont la méthode :meth:`~regex." "match` ou :meth:`~regex.search` a produit cet objet de correspondance." -#: ../Doc/library/re.rst:1202 +#: ../Doc/library/re.rst:1208 msgid "The string passed to :meth:`~regex.match` or :meth:`~regex.search`." msgstr "La chaîne passée à :meth:`~regex.match` ou :meth:`~regex.search`." -#: ../Doc/library/re.rst:1208 +#: ../Doc/library/re.rst:1214 msgid "Regular Expression Examples" msgstr "Exemples d'expressions rationnelles" -#: ../Doc/library/re.rst:1212 +#: ../Doc/library/re.rst:1218 msgid "Checking for a Pair" msgstr "Rechercher une paire" -#: ../Doc/library/re.rst:1214 +#: ../Doc/library/re.rst:1220 msgid "" "In this example, we'll use the following helper function to display match " "objects a little more gracefully:" @@ -2137,7 +2146,7 @@ msgstr "" "Dans cet exemple, nous utiliserons cette fonction de facilité pour afficher " "les objets de correspondance sous une meilleure forme :" -#: ../Doc/library/re.rst:1224 +#: ../Doc/library/re.rst:1230 msgid "" "Suppose you are writing a poker program where a player's hand is represented " "as a 5-character string with each character representing a card, \"a\" for " @@ -2151,13 +2160,13 @@ msgstr "" "(*ten*), et les caractères de \"2\" à \"9\" représentant les cartes avec ces " "valeurs." -#: ../Doc/library/re.rst:1229 +#: ../Doc/library/re.rst:1235 msgid "To see if a given string is a valid hand, one could do the following::" msgstr "" "Pour vérifier qu'une chaîne donnée est une main valide, on pourrait faire " "comme suit ::" -#: ../Doc/library/re.rst:1239 +#: ../Doc/library/re.rst:1245 msgid "" "That last hand, ``\"727ak\"``, contained a pair, or two of the same valued " "cards. To match this with a regular expression, one could use backreferences " @@ -2167,7 +2176,7 @@ msgstr "" "valeur. Pour valider cela avec une expression rationnelle, on pourrait " "utiliser des références arrière comme ::" -#: ../Doc/library/re.rst:1249 +#: ../Doc/library/re.rst:1255 msgid "" "To find out what card the pair consists of, one could use the :meth:`~match." "group` method of the match object in the following manner:" @@ -2176,11 +2185,11 @@ msgstr "" "méthode :meth:`~match.group` de l'objet de correspondance de la manière " "suivante :" -#: ../Doc/library/re.rst:1269 +#: ../Doc/library/re.rst:1275 msgid "Simulating scanf()" msgstr "Simuler scanf()" -#: ../Doc/library/re.rst:1273 +#: ../Doc/library/re.rst:1279 msgid "" "Python does not currently have an equivalent to :c:func:`scanf`. Regular " "expressions are generally more powerful, though also more verbose, than :c:" @@ -2194,100 +2203,100 @@ msgstr "" "suivant présente des expressions rationnelles plus ou moins équivalentes aux " "éléments de formats de :c:func:`scanf`." -#: ../Doc/library/re.rst:1280 +#: ../Doc/library/re.rst:1286 msgid ":c:func:`scanf` Token" msgstr "Élément de :c:func:`scanf`" -#: ../Doc/library/re.rst:1280 +#: ../Doc/library/re.rst:1286 msgid "Regular Expression" msgstr "Expression rationnelle" -#: ../Doc/library/re.rst:1282 +#: ../Doc/library/re.rst:1288 msgid "``%c``" msgstr "``%c``" -#: ../Doc/library/re.rst:1284 +#: ../Doc/library/re.rst:1290 msgid "``%5c``" msgstr "``%5c``" -#: ../Doc/library/re.rst:1284 +#: ../Doc/library/re.rst:1290 msgid "``.{5}``" msgstr "``.{5}``" -#: ../Doc/library/re.rst:1286 +#: ../Doc/library/re.rst:1292 msgid "``%d``" msgstr "``%d``" -#: ../Doc/library/re.rst:1286 +#: ../Doc/library/re.rst:1292 msgid "``[-+]?\\d+``" msgstr "``[-+]?\\d+``" -#: ../Doc/library/re.rst:1288 +#: ../Doc/library/re.rst:1294 msgid "``%e``, ``%E``, ``%f``, ``%g``" msgstr "``%e``, ``%E``, ``%f``, ``%g``" -#: ../Doc/library/re.rst:1288 +#: ../Doc/library/re.rst:1294 msgid "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" msgstr "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" -#: ../Doc/library/re.rst:1290 +#: ../Doc/library/re.rst:1296 msgid "``%i``" msgstr "``%i``" -#: ../Doc/library/re.rst:1290 +#: ../Doc/library/re.rst:1296 msgid "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" msgstr "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" -#: ../Doc/library/re.rst:1292 +#: ../Doc/library/re.rst:1298 msgid "``%o``" msgstr "``%o``" -#: ../Doc/library/re.rst:1292 +#: ../Doc/library/re.rst:1298 msgid "``[-+]?[0-7]+``" msgstr "``[-+]?[0-7]+``" -#: ../Doc/library/re.rst:1294 +#: ../Doc/library/re.rst:1300 msgid "``%s``" msgstr "``%s``" -#: ../Doc/library/re.rst:1294 +#: ../Doc/library/re.rst:1300 msgid "``\\S+``" msgstr "``\\S+``" -#: ../Doc/library/re.rst:1296 +#: ../Doc/library/re.rst:1302 msgid "``%u``" msgstr "``%u``" -#: ../Doc/library/re.rst:1296 +#: ../Doc/library/re.rst:1302 msgid "``\\d+``" msgstr "``\\d+``" -#: ../Doc/library/re.rst:1298 +#: ../Doc/library/re.rst:1304 msgid "``%x``, ``%X``" msgstr "``%x``, ``%X``" -#: ../Doc/library/re.rst:1298 +#: ../Doc/library/re.rst:1304 msgid "``[-+]?(0[xX])?[\\dA-Fa-f]+``" msgstr "``[-+]?(0[xX])?[\\dA-Fa-f]+``" -#: ../Doc/library/re.rst:1301 +#: ../Doc/library/re.rst:1307 msgid "To extract the filename and numbers from a string like ::" msgstr "" "Pour extraire le nom de fichier et les nombres depuis une chaîne comme : ::" -#: ../Doc/library/re.rst:1305 +#: ../Doc/library/re.rst:1311 msgid "you would use a :c:func:`scanf` format like ::" msgstr "vous utiliseriez un format :c:func:`scanf` comme : ::" -#: ../Doc/library/re.rst:1309 +#: ../Doc/library/re.rst:1315 msgid "The equivalent regular expression would be ::" msgstr "L'expression rationnelle équivalente serait : ::" -#: ../Doc/library/re.rst:1317 +#: ../Doc/library/re.rst:1323 msgid "search() vs. match()" msgstr "search() vs. match()" -#: ../Doc/library/re.rst:1321 +#: ../Doc/library/re.rst:1327 msgid "" "Python offers two different primitive operations based on regular " "expressions: :func:`re.match` checks for a match only at the beginning of " @@ -2299,7 +2308,7 @@ msgstr "" "début de la chaîne, tandis que :func:`re.search` en recherche une n'importe " "où dans la chaîne (ce que fait Perl par défaut)." -#: ../Doc/library/re.rst:1332 +#: ../Doc/library/re.rst:1338 msgid "" "Regular expressions beginning with ``'^'`` can be used with :func:`search` " "to restrict the match at the beginning of the string::" @@ -2307,7 +2316,7 @@ msgstr "" "Les expressions rationnelles commençant par ``'^'`` peuvent être utilisées " "avec :func:`search` pour restreindre la recherche au début de la chaîne : ::" -#: ../Doc/library/re.rst:1340 +#: ../Doc/library/re.rst:1346 msgid "" "Note however that in :const:`MULTILINE` mode :func:`match` only matches at " "the beginning of the string, whereas using :func:`search` with a regular " @@ -2318,11 +2327,11 @@ msgstr "" "qu'au début de la chaîne, alors que :func:`search` avec une expression " "rationnelle commençant par ``'^'`` recherchera au début de chaque ligne. ::" -#: ../Doc/library/re.rst:1350 +#: ../Doc/library/re.rst:1356 msgid "Making a Phonebook" msgstr "Construire un répertoire téléphonique" -#: ../Doc/library/re.rst:1352 +#: ../Doc/library/re.rst:1358 msgid "" ":func:`split` splits a string into a list delimited by the passed pattern. " "The method is invaluable for converting textual data into data structures " @@ -2334,7 +2343,7 @@ msgstr "" "structures de données qui peuvent être lues et modifiées par Python comme " "démontré dans l'exemple suivant qui crée un répertoire téléphonique." -#: ../Doc/library/re.rst:1357 +#: ../Doc/library/re.rst:1363 msgid "" "First, here is the input. Normally it may come from a file, here we are " "using triple-quoted string syntax::" @@ -2342,7 +2351,7 @@ msgstr "" "Premièrement, voici l'entrée. Elle provient normalement d'un fichier, nous " "utilisons ici une chaîne à guillemets triples ::" -#: ../Doc/library/re.rst:1368 +#: ../Doc/library/re.rst:1374 msgid "" "The entries are separated by one or more newlines. Now we convert the string " "into a list with each nonempty line having its own entry:" @@ -2351,7 +2360,7 @@ msgstr "" "maintenant la chaîne en une liste où chaque ligne non vide aura sa propre " "entrée :" -#: ../Doc/library/re.rst:1381 +#: ../Doc/library/re.rst:1387 msgid "" "Finally, split each entry into a list with first name, last name, telephone " "number, and address. We use the ``maxsplit`` parameter of :func:`split` " @@ -2362,7 +2371,7 @@ msgstr "" "`split` parce que l'adresse contient des espaces, qui sont notre motif de " "séparation :" -#: ../Doc/library/re.rst:1394 +#: ../Doc/library/re.rst:1400 msgid "" "The ``:?`` pattern matches the colon after the last name, so that it does " "not occur in the result list. With a ``maxsplit`` of ``4``, we could " @@ -2372,11 +2381,11 @@ msgstr "" "qu'ils n'apparaissent pas dans la liste résultante. Avec un ``maxsplit`` de " "``4``, nous pourrions séparer le numéro du nom de la rue." -#: ../Doc/library/re.rst:1409 +#: ../Doc/library/re.rst:1415 msgid "Text Munging" msgstr "Mélanger les lettres des mots" -#: ../Doc/library/re.rst:1411 +#: ../Doc/library/re.rst:1417 msgid "" ":func:`sub` replaces every occurrence of a pattern with a string or the " "result of a function. This example demonstrates using :func:`sub` with a " @@ -2388,11 +2397,11 @@ msgstr "" "avec une fonction qui mélange aléatoirement les caractères de chaque mot " "dans une phrase (à l'exception des premiers et derniers caractères) : ::" -#: ../Doc/library/re.rst:1428 +#: ../Doc/library/re.rst:1434 msgid "Finding all Adverbs" msgstr "Trouver tous les adverbes" -#: ../Doc/library/re.rst:1430 +#: ../Doc/library/re.rst:1436 msgid "" ":func:`findall` matches *all* occurrences of a pattern, not just the first " "one as :func:`search` does. For example, if one was a writer and wanted to " @@ -2404,11 +2413,11 @@ msgstr "" "voulait trouver tous les adverbes dans un texte, il/elle devrait utiliser :" "func:`findall` de la manière suivante ::" -#: ../Doc/library/re.rst:1441 +#: ../Doc/library/re.rst:1447 msgid "Finding all Adverbs and their Positions" msgstr "Trouver tous les adverbes et leurs positions" -#: ../Doc/library/re.rst:1443 +#: ../Doc/library/re.rst:1449 msgid "" "If one wants more information about all matches of a pattern than the " "matched text, :func:`finditer` is useful as it provides :ref:`match objects " @@ -2424,11 +2433,11 @@ msgstr "" "leurs positions* dans un texte, il/elle utiliserait :func:`finditer` de la " "manière suivante ::" -#: ../Doc/library/re.rst:1457 +#: ../Doc/library/re.rst:1463 msgid "Raw String Notation" msgstr "Notation brutes de chaînes" -#: ../Doc/library/re.rst:1459 +#: ../Doc/library/re.rst:1465 msgid "" "Raw string notation (``r\"text\"``) keeps regular expressions sane. Without " "it, every backslash (``'\\'``) in a regular expression would have to be " @@ -2441,7 +2450,7 @@ msgstr "" "Par exemple, les deux lignes de code suivantes sont fonctionnellement " "identiques ::" -#: ../Doc/library/re.rst:1469 +#: ../Doc/library/re.rst:1475 msgid "" "When one wants to match a literal backslash, it must be escaped in the " "regular expression. With raw string notation, this means ``r\"\\\\\"``. " @@ -2453,11 +2462,11 @@ msgstr "" "\"``. Sans elle, il faudrait utiliser ``\"\\\\\\\\\"``, faisant que les " "deux lignes de code suivantes sont fonctionnellement identiques ::" -#: ../Doc/library/re.rst:1481 +#: ../Doc/library/re.rst:1487 msgid "Writing a Tokenizer" msgstr "Écrire un analyseur lexical" -#: ../Doc/library/re.rst:1483 +#: ../Doc/library/re.rst:1489 msgid "" "A `tokenizer or scanner `_ " "analyzes a string to categorize groups of characters. This is a useful " @@ -2468,7 +2477,7 @@ msgstr "" "caractères. C'est une première étape utile dans l'écriture d'un compilateur " "ou d'un interpréteur." -#: ../Doc/library/re.rst:1487 +#: ../Doc/library/re.rst:1493 msgid "" "The text categories are specified with regular expressions. The technique " "is to combine those into a single master regular expression and to loop over " @@ -2478,7 +2487,7 @@ msgstr "" "La technique est de les combiner dans une unique expression rationnelle " "maîtresse, et de boucler sur les correspondances successives : ::" -#: ../Doc/library/re.rst:1537 +#: ../Doc/library/re.rst:1543 msgid "The tokenizer produces the following output::" msgstr "L'analyseur produit la sortie suivante : ::" diff --git a/library/ssl.po b/library/ssl.po index ef12fb04..0d1b43e4 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-09-21 09:15+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-09-12 13:41+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -1583,7 +1583,8 @@ msgstr "" msgid "" "The *capath* string, if present, is the path to a directory containing " "several CA certificates in PEM format, following an `OpenSSL specific layout " -"`_." +"`_." msgstr "" #: ../Doc/library/ssl.rst:1356 @@ -1864,9 +1865,9 @@ msgstr "" msgid "" "Get statistics about the SSL sessions created or managed by this context. A " "dictionary is returned which maps the names of each `piece of information " -"`_ to their " -"numeric values. For example, here is the total number of hits and misses in " -"the session cache since the context was created::" +"`_ to " +"their numeric values. For example, here is the total number of hits and " +"misses in the session cache since the context was created::" msgstr "" #: ../Doc/library/ssl.rst:1627 diff --git a/library/stdtypes.po b/library/stdtypes.po index 069fe227..437b283f 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-01 07:43+0100\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-12-01 19:42+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: \n" @@ -1663,13 +1663,14 @@ msgstr "" "charge la concaténation ou la répétition." #: ../Doc/library/stdtypes.rst:975 +#, fuzzy msgid "" -"``index`` raises :exc:`ValueError` when *x* is not found in *s*. When " -"supported, the additional arguments to the index method allow efficient " -"searching of subsections of the sequence. Passing the extra arguments is " -"roughly equivalent to using ``s[i:j].index(x)``, only without copying any " -"data and with the returned index being relative to the start of the sequence " -"rather than the start of the slice." +"``index`` raises :exc:`ValueError` when *x* is not found in *s*. Not all " +"implementations support passing the additional arguments *i* and *j*. These " +"arguments allow efficient searching of subsections of the sequence. Passing " +"the extra arguments is roughly equivalent to using ``s[i:j].index(x)``, only " +"without copying any data and with the returned index being relative to the " +"start of the sequence rather than the start of the slice." msgstr "" "``index`` lève une exception :exc:`ValueError` quand *x* ne se trouve pas " "dans *s*. Lorsqu'ils sont supportés, les arguments supplémentaires de la " diff --git a/library/threading.po b/library/threading.po index 408e8ef9..f3cf418b 100644 --- a/library/threading.po +++ b/library/threading.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-13 22:28+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -886,11 +886,11 @@ msgstr "" #: ../Doc/library/threading.rst:687 msgid "" -"This class implements semaphore objects. A semaphore manages a counter " -"representing the number of :meth:`release` calls minus the number of :meth:" -"`acquire` calls, plus an initial value. The :meth:`acquire` method blocks " -"if necessary until it can return without making the counter negative. If not " -"given, *value* defaults to 1." +"This class implements semaphore objects. A semaphore manages an atomic " +"counter representing the number of :meth:`release` calls minus the number " +"of :meth:`acquire` calls, plus an initial value. The :meth:`acquire` method " +"blocks if necessary until it can return without making the counter negative. " +"If not given, *value* defaults to 1." msgstr "" #: ../Doc/library/threading.rst:693 @@ -905,15 +905,22 @@ msgid "Acquire a semaphore." msgstr "" #: ../Doc/library/threading.rst:704 +msgid "When invoked without arguments:" +msgstr "" + +#: ../Doc/library/threading.rst:706 msgid "" -"When invoked without arguments: if the internal counter is larger than zero " -"on entry, decrement it by one and return immediately. If it is zero on " -"entry, block, waiting until some other thread has called :meth:`~Semaphore." -"release` to make it larger than zero. This is done with proper interlocking " -"so that if multiple :meth:`acquire` calls are blocked, :meth:`~Semaphore." -"release` will wake exactly one of them up. The implementation may pick one " -"at random, so the order in which blocked threads are awakened should not be " -"relied on. Returns true (or blocks indefinitely)." +"If the internal counter is larger than zero on entry, decrement it by one " +"and return true immediately." +msgstr "" + +#: ../Doc/library/threading.rst:708 +msgid "" +"If the internal counter is zero on entry, block until awoken by a call to :" +"meth:`~Semaphore.release`. Once awoken (and the counter is greater than 0), " +"decrement the counter by 1 and return true. Exactly one thread will be " +"awoken by each call to :meth:`~Semaphore.release`. The order in which " +"threads are awoken should not be relied on." msgstr "" #: ../Doc/library/threading.rst:714 diff --git a/library/tkinter.po b/library/tkinter.po index 39a0fae2..28c56d19 100644 --- a/library/tkinter.po +++ b/library/tkinter.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-05-27 19:40+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-08-10 00:54+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: \n" @@ -295,7 +295,7 @@ msgstr "" #: ../Doc/library/tkinter.rst:156 msgid "" "When trying to answer questions of the form \"how do I do blah\", it is " -"often best to find out how to do\"blah\" in straight Tk, and then convert " +"often best to find out how to do \"blah\" in straight Tk, and then convert " "this back into the corresponding :mod:`tkinter` call. Python programmers can " "often guess at the correct Python command by looking at the Tk " "documentation. This means that in order to use Tkinter, you will have to " diff --git a/library/typing.po b/library/typing.po index e2efd87f..846ad4a2 100644 --- a/library/typing.po +++ b/library/typing.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-01 07:43+0100\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -656,9 +656,9 @@ msgstr "" #: ../Doc/library/typing.rst:777 msgid "" -"This defines the generic type ``IO[AnyStr]`` and aliases ``TextIO`` and " -"``BinaryIO`` for respectively ``IO[str]`` and ``IO[bytes]``. These represent " -"the types of I/O streams such as returned by :func:`open`." +"This defines the generic type ``IO[AnyStr]`` and subclasses ``TextIO`` and " +"``BinaryIO``, deriving from ``IO[str]`` and ``IO[bytes]``, respectively. " +"These represent the types of I/O streams such as returned by :func:`open`." msgstr "" #: ../Doc/library/typing.rst:782 diff --git a/reference/datamodel.po b/reference/datamodel.po index 957b5239..d0965dd4 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-09-21 09:15+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1361,58 +1361,70 @@ msgid "" "will cause a :exc:`TypeError` to be raised at runtime." msgstr "" -#: ../Doc/reference/datamodel.rst:1162 +#: ../Doc/reference/datamodel.rst:1163 msgid "" "Called when the instance is about to be destroyed. This is also called a " -"destructor. If a base class has a :meth:`__del__` method, the derived " -"class's :meth:`__del__` method, if any, must explicitly call it to ensure " -"proper deletion of the base class part of the instance. Note that it is " -"possible (though not recommended!) for the :meth:`__del__` method to " -"postpone destruction of the instance by creating a new reference to it. It " -"may then be called at a later time when this new reference is deleted. It " -"is not guaranteed that :meth:`__del__` methods are called for objects that " -"still exist when the interpreter exits." +"finalizer or (improperly) a destructor. If a base class has a :meth:" +"`__del__` method, the derived class's :meth:`__del__` method, if any, must " +"explicitly call it to ensure proper deletion of the base class part of the " +"instance." msgstr "" -#: ../Doc/reference/datamodel.rst:1174 +#: ../Doc/reference/datamodel.rst:1169 +msgid "" +"It is possible (though not recommended!) for the :meth:`__del__` method to " +"postpone destruction of the instance by creating a new reference to it. " +"This is called object *resurrection*. It is implementation-dependent " +"whether :meth:`__del__` is called a second time when a resurrected object is " +"about to be destroyed; the current :term:`CPython` implementation only calls " +"it once." +msgstr "" + +#: ../Doc/reference/datamodel.rst:1176 +msgid "" +"It is not guaranteed that :meth:`__del__` methods are called for objects " +"that still exist when the interpreter exits." +msgstr "" + +#: ../Doc/reference/datamodel.rst:1181 msgid "" "``del x`` doesn't directly call ``x.__del__()`` --- the former decrements " "the reference count for ``x`` by one, and the latter is only called when " -"``x``'s reference count reaches zero. Some common situations that may " -"prevent the reference count of an object from going to zero include: " -"circular references between objects (e.g., a doubly-linked list or a tree " -"data structure with parent and child pointers); a reference to the object on " -"the stack frame of a function that caught an exception (the traceback stored " -"in ``sys.exc_info()[2]`` keeps the stack frame alive); or a reference to the " -"object on the stack frame that raised an unhandled exception in interactive " -"mode (the traceback stored in ``sys.last_traceback`` keeps the stack frame " -"alive). The first situation can only be remedied by explicitly breaking the " -"cycles; the second can be resolved by freeing the reference to the traceback " -"object when it is no longer useful, and the third can be resolved by storing " -"``None`` in ``sys.last_traceback``. Circular references which are garbage " -"are detected and cleaned up when the cyclic garbage collector is enabled " -"(it's on by default). Refer to the documentation for the :mod:`gc` module " -"for more information about this topic." +"``x``'s reference count reaches zero." msgstr "" #: ../Doc/reference/datamodel.rst:1196 +msgid "Documentation for the :mod:`gc` module." +msgstr "" + +#: ../Doc/reference/datamodel.rst:1200 msgid "" "Due to the precarious circumstances under which :meth:`__del__` methods are " "invoked, exceptions that occur during their execution are ignored, and a " -"warning is printed to ``sys.stderr`` instead. Also, when :meth:`__del__` is " -"invoked in response to a module being deleted (e.g., when execution of the " -"program is done), other globals referenced by the :meth:`__del__` method may " -"already have been deleted or in the process of being torn down (e.g. the " -"import machinery shutting down). For this reason, :meth:`__del__` methods " -"should do the absolute minimum needed to maintain external invariants. " -"Starting with version 1.5, Python guarantees that globals whose name begins " -"with a single underscore are deleted from their module before other globals " -"are deleted; if no other references to such globals exist, this may help in " -"assuring that imported modules are still available at the time when the :" -"meth:`__del__` method is called." +"warning is printed to ``sys.stderr`` instead. In particular:" msgstr "" -#: ../Doc/reference/datamodel.rst:1217 +#: ../Doc/reference/datamodel.rst:1204 +msgid "" +":meth:`__del__` can be invoked when arbitrary code is being executed, " +"including from any arbitrary thread. If :meth:`__del__` needs to take a " +"lock or invoke any other blocking resource, it may deadlock as the resource " +"may already be taken by the code that gets interrupted to execute :meth:" +"`__del__`." +msgstr "" + +#: ../Doc/reference/datamodel.rst:1210 +msgid "" +":meth:`__del__` can be executed during interpreter shutdown. As a " +"consequence, the global variables it needs to access (including other " +"modules) may already have been deleted or set to ``None``. Python guarantees " +"that globals whose name begins with a single underscore are deleted from " +"their module before other globals are deleted; if no other references to " +"such globals exist, this may help in assuring that imported modules are " +"still available at the time when the :meth:`__del__` method is called." +msgstr "" + +#: ../Doc/reference/datamodel.rst:1225 msgid "" "Called by the :func:`repr` built-in function to compute the \"official\" " "string representation of an object. If at all possible, this should look " @@ -1424,13 +1436,13 @@ msgid "" "an \"informal\" string representation of instances of that class is required." msgstr "" -#: ../Doc/reference/datamodel.rst:1226 +#: ../Doc/reference/datamodel.rst:1234 msgid "" "This is typically used for debugging, so it is important that the " "representation is information-rich and unambiguous." msgstr "" -#: ../Doc/reference/datamodel.rst:1237 +#: ../Doc/reference/datamodel.rst:1245 msgid "" "Called by :func:`str(object) ` and the built-in functions :func:" "`format` and :func:`print` to compute the \"informal\" or nicely printable " @@ -1438,26 +1450,26 @@ msgid "" "` object." msgstr "" -#: ../Doc/reference/datamodel.rst:1242 +#: ../Doc/reference/datamodel.rst:1250 msgid "" "This method differs from :meth:`object.__repr__` in that there is no " "expectation that :meth:`__str__` return a valid Python expression: a more " "convenient or concise representation can be used." msgstr "" -#: ../Doc/reference/datamodel.rst:1246 +#: ../Doc/reference/datamodel.rst:1254 msgid "" "The default implementation defined by the built-in type :class:`object` " "calls :meth:`object.__repr__`." msgstr "" -#: ../Doc/reference/datamodel.rst:1256 +#: ../Doc/reference/datamodel.rst:1264 msgid "" "Called by :ref:`bytes ` to compute a byte-string representation " "of an object. This should return a :class:`bytes` object." msgstr "" -#: ../Doc/reference/datamodel.rst:1267 +#: ../Doc/reference/datamodel.rst:1275 msgid "" "Called by the :func:`format` built-in function, and by extension, evaluation " "of :ref:`formatted string literals ` and the :meth:`str.format` " @@ -1469,22 +1481,22 @@ msgid "" "a similar formatting option syntax." msgstr "" -#: ../Doc/reference/datamodel.rst:1277 +#: ../Doc/reference/datamodel.rst:1285 msgid "" "See :ref:`formatspec` for a description of the standard formatting syntax." msgstr "" -#: ../Doc/reference/datamodel.rst:1279 +#: ../Doc/reference/datamodel.rst:1287 msgid "The return value must be a string object." msgstr "" -#: ../Doc/reference/datamodel.rst:1281 +#: ../Doc/reference/datamodel.rst:1289 msgid "" "The __format__ method of ``object`` itself raises a :exc:`TypeError` if " "passed any non-empty string." msgstr "" -#: ../Doc/reference/datamodel.rst:1297 +#: ../Doc/reference/datamodel.rst:1305 msgid "" "These are the so-called \"rich comparison\" methods. The correspondence " "between operator symbols and method names is as follows: ``x.__hash__``." msgstr "" -#: ../Doc/reference/datamodel.rst:1384 +#: ../Doc/reference/datamodel.rst:1392 msgid "" "If a class that does not override :meth:`__eq__` wishes to suppress hash " "support, it should include ``__hash__ = None`` in the class definition. A " @@ -1601,7 +1613,7 @@ msgid "" "``isinstance(obj, collections.Hashable)`` call." msgstr "" -#: ../Doc/reference/datamodel.rst:1393 +#: ../Doc/reference/datamodel.rst:1401 msgid "" "By default, the :meth:`__hash__` values of str, bytes and datetime objects " "are \"salted\" with an unpredictable random value. Although they remain " @@ -1609,7 +1621,7 @@ msgid "" "between repeated invocations of Python." msgstr "" -#: ../Doc/reference/datamodel.rst:1398 +#: ../Doc/reference/datamodel.rst:1406 msgid "" "This is intended to provide protection against a denial-of-service caused by " "carefully-chosen inputs that exploit the worst case performance of a dict " @@ -1617,22 +1629,22 @@ msgid "" "ocert-2011-003.html for details." msgstr "" -#: ../Doc/reference/datamodel.rst:1403 +#: ../Doc/reference/datamodel.rst:1411 msgid "" "Changing hash values affects the iteration order of dicts, sets and other " "mappings. Python has never made guarantees about this ordering (and it " "typically varies between 32-bit and 64-bit builds)." msgstr "" -#: ../Doc/reference/datamodel.rst:1407 +#: ../Doc/reference/datamodel.rst:1415 msgid "See also :envvar:`PYTHONHASHSEED`." msgstr "Voir aussi :envvar:`PYTHONHASHSEED`." -#: ../Doc/reference/datamodel.rst:1409 +#: ../Doc/reference/datamodel.rst:1417 msgid "Hash randomization is enabled by default." msgstr "" -#: ../Doc/reference/datamodel.rst:1417 +#: ../Doc/reference/datamodel.rst:1425 msgid "" "Called to implement truth value testing and the built-in operation " "``bool()``; should return ``False`` or ``True``. When this method is not " @@ -1641,18 +1653,18 @@ msgid "" "`__len__` nor :meth:`__bool__`, all its instances are considered true." msgstr "" -#: ../Doc/reference/datamodel.rst:1428 +#: ../Doc/reference/datamodel.rst:1436 msgid "Customizing attribute access" msgstr "" -#: ../Doc/reference/datamodel.rst:1430 +#: ../Doc/reference/datamodel.rst:1438 msgid "" "The following methods can be defined to customize the meaning of attribute " "access (use of, assignment to, or deletion of ``x.name``) for class " "instances." msgstr "" -#: ../Doc/reference/datamodel.rst:1438 +#: ../Doc/reference/datamodel.rst:1446 msgid "" "Called when an attribute lookup has not found the attribute in the usual " "places (i.e. it is not an instance attribute nor is it found in the class " @@ -1661,7 +1673,7 @@ msgid "" "exception." msgstr "" -#: ../Doc/reference/datamodel.rst:1443 +#: ../Doc/reference/datamodel.rst:1451 msgid "" "Note that if the attribute is found through the normal mechanism, :meth:" "`__getattr__` is not called. (This is an intentional asymmetry between :" @@ -1674,7 +1686,7 @@ msgid "" "actually get total control over attribute access." msgstr "" -#: ../Doc/reference/datamodel.rst:1456 +#: ../Doc/reference/datamodel.rst:1464 msgid "" "Called unconditionally to implement attribute accesses for instances of the " "class. If the class also defines :meth:`__getattr__`, the latter will not be " @@ -1686,45 +1698,45 @@ msgid "" "example, ``object.__getattribute__(self, name)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1467 +#: ../Doc/reference/datamodel.rst:1475 msgid "" "This method may still be bypassed when looking up special methods as the " "result of implicit invocation via language syntax or built-in functions. " "See :ref:`special-lookup`." msgstr "" -#: ../Doc/reference/datamodel.rst:1474 +#: ../Doc/reference/datamodel.rst:1482 msgid "" "Called when an attribute assignment is attempted. This is called instead of " "the normal mechanism (i.e. store the value in the instance dictionary). " "*name* is the attribute name, *value* is the value to be assigned to it." msgstr "" -#: ../Doc/reference/datamodel.rst:1478 +#: ../Doc/reference/datamodel.rst:1486 msgid "" "If :meth:`__setattr__` wants to assign to an instance attribute, it should " "call the base class method with the same name, for example, ``object." "__setattr__(self, name, value)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1485 +#: ../Doc/reference/datamodel.rst:1493 msgid "" "Like :meth:`__setattr__` but for attribute deletion instead of assignment. " "This should only be implemented if ``del obj.name`` is meaningful for the " "object." msgstr "" -#: ../Doc/reference/datamodel.rst:1491 +#: ../Doc/reference/datamodel.rst:1499 msgid "" "Called when :func:`dir` is called on the object. A sequence must be " "returned. :func:`dir` converts the returned sequence to a list and sorts it." msgstr "" -#: ../Doc/reference/datamodel.rst:1498 +#: ../Doc/reference/datamodel.rst:1506 msgid "Implementing Descriptors" msgstr "" -#: ../Doc/reference/datamodel.rst:1500 +#: ../Doc/reference/datamodel.rst:1508 msgid "" "The following methods only apply when an instance of the class containing " "the method (a so-called *descriptor* class) appears in an *owner* class (the " @@ -1734,7 +1746,7 @@ msgid "" "owner class' :attr:`~object.__dict__`." msgstr "" -#: ../Doc/reference/datamodel.rst:1510 +#: ../Doc/reference/datamodel.rst:1518 msgid "" "Called to get the attribute of the owner class (class attribute access) or " "of an instance of that class (instance attribute access). *owner* is always " @@ -1744,24 +1756,24 @@ msgid "" "an :exc:`AttributeError` exception." msgstr "" -#: ../Doc/reference/datamodel.rst:1520 +#: ../Doc/reference/datamodel.rst:1528 msgid "" "Called to set the attribute on an instance *instance* of the owner class to " "a new value, *value*." msgstr "" -#: ../Doc/reference/datamodel.rst:1526 +#: ../Doc/reference/datamodel.rst:1534 msgid "" "Called to delete the attribute on an instance *instance* of the owner class." msgstr "" -#: ../Doc/reference/datamodel.rst:1531 +#: ../Doc/reference/datamodel.rst:1539 msgid "" "Called at the time the owning class *owner* is created. The descriptor has " "been assigned to *name*." msgstr "" -#: ../Doc/reference/datamodel.rst:1537 +#: ../Doc/reference/datamodel.rst:1545 msgid "" "The attribute :attr:`__objclass__` is interpreted by the :mod:`inspect` " "module as specifying the class where this object was defined (setting this " @@ -1772,11 +1784,11 @@ msgid "" "are implemented in C)." msgstr "" -#: ../Doc/reference/datamodel.rst:1548 +#: ../Doc/reference/datamodel.rst:1556 msgid "Invoking Descriptors" msgstr "" -#: ../Doc/reference/datamodel.rst:1550 +#: ../Doc/reference/datamodel.rst:1558 msgid "" "In general, a descriptor is an object attribute with \"binding behavior\", " "one whose attribute access has been overridden by methods in the descriptor " @@ -1784,7 +1796,7 @@ msgid "" "of those methods are defined for an object, it is said to be a descriptor." msgstr "" -#: ../Doc/reference/datamodel.rst:1555 +#: ../Doc/reference/datamodel.rst:1563 msgid "" "The default behavior for attribute access is to get, set, or delete the " "attribute from an object's dictionary. For instance, ``a.x`` has a lookup " @@ -1792,7 +1804,7 @@ msgid "" "continuing through the base classes of ``type(a)`` excluding metaclasses." msgstr "" -#: ../Doc/reference/datamodel.rst:1560 +#: ../Doc/reference/datamodel.rst:1568 msgid "" "However, if the looked-up value is an object defining one of the descriptor " "methods, then Python may override the default behavior and invoke the " @@ -1800,47 +1812,47 @@ msgid "" "depends on which descriptor methods were defined and how they were called." msgstr "" -#: ../Doc/reference/datamodel.rst:1565 +#: ../Doc/reference/datamodel.rst:1573 msgid "" "The starting point for descriptor invocation is a binding, ``a.x``. How the " "arguments are assembled depends on ``a``:" msgstr "" -#: ../Doc/reference/datamodel.rst:1570 +#: ../Doc/reference/datamodel.rst:1578 msgid "Direct Call" msgstr "" -#: ../Doc/reference/datamodel.rst:1569 +#: ../Doc/reference/datamodel.rst:1577 msgid "" "The simplest and least common call is when user code directly invokes a " "descriptor method: ``x.__get__(a)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1574 +#: ../Doc/reference/datamodel.rst:1582 msgid "Instance Binding" msgstr "" -#: ../Doc/reference/datamodel.rst:1573 +#: ../Doc/reference/datamodel.rst:1581 msgid "" "If binding to an object instance, ``a.x`` is transformed into the call: " "``type(a).__dict__['x'].__get__(a, type(a))``." msgstr "" -#: ../Doc/reference/datamodel.rst:1578 +#: ../Doc/reference/datamodel.rst:1586 msgid "Class Binding" msgstr "" -#: ../Doc/reference/datamodel.rst:1577 +#: ../Doc/reference/datamodel.rst:1585 msgid "" "If binding to a class, ``A.x`` is transformed into the call: ``A." "__dict__['x'].__get__(None, A)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1584 +#: ../Doc/reference/datamodel.rst:1592 msgid "Super Binding" msgstr "" -#: ../Doc/reference/datamodel.rst:1581 +#: ../Doc/reference/datamodel.rst:1589 msgid "" "If ``a`` is an instance of :class:`super`, then the binding ``super(B, obj)." "m()`` searches ``obj.__class__.__mro__`` for the base class ``A`` " @@ -1848,7 +1860,7 @@ msgid "" "``A.__dict__['m'].__get__(obj, obj.__class__)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1586 +#: ../Doc/reference/datamodel.rst:1594 msgid "" "For instance bindings, the precedence of descriptor invocation depends on " "the which descriptor methods are defined. A descriptor can define any " @@ -1864,7 +1876,7 @@ msgid "" "contrast, non-data descriptors can be overridden by instances." msgstr "" -#: ../Doc/reference/datamodel.rst:1599 +#: ../Doc/reference/datamodel.rst:1607 msgid "" "Python methods (including :func:`staticmethod` and :func:`classmethod`) are " "implemented as non-data descriptors. Accordingly, instances can redefine " @@ -1872,24 +1884,24 @@ msgid "" "that differ from other instances of the same class." msgstr "" -#: ../Doc/reference/datamodel.rst:1604 +#: ../Doc/reference/datamodel.rst:1612 msgid "" "The :func:`property` function is implemented as a data descriptor. " "Accordingly, instances cannot override the behavior of a property." msgstr "" -#: ../Doc/reference/datamodel.rst:1611 +#: ../Doc/reference/datamodel.rst:1619 msgid "__slots__" msgstr "__slots__" -#: ../Doc/reference/datamodel.rst:1613 +#: ../Doc/reference/datamodel.rst:1621 msgid "" "By default, instances of classes have a dictionary for attribute storage. " "This wastes space for objects having very few instance variables. The space " "consumption can become acute when creating large numbers of instances." msgstr "" -#: ../Doc/reference/datamodel.rst:1617 +#: ../Doc/reference/datamodel.rst:1625 msgid "" "The default can be overridden by defining *__slots__* in a class definition. " "The *__slots__* declaration takes a sequence of instance variables and " @@ -1898,7 +1910,7 @@ msgid "" "instance." msgstr "" -#: ../Doc/reference/datamodel.rst:1625 +#: ../Doc/reference/datamodel.rst:1633 msgid "" "This class variable can be assigned a string, iterable, or sequence of " "strings with variable names used by instances. *__slots__* reserves space " @@ -1906,18 +1918,18 @@ msgid "" "and *__weakref__* for each instance." msgstr "" -#: ../Doc/reference/datamodel.rst:1632 +#: ../Doc/reference/datamodel.rst:1640 msgid "Notes on using *__slots__*" msgstr "" -#: ../Doc/reference/datamodel.rst:1634 +#: ../Doc/reference/datamodel.rst:1642 msgid "" "When inheriting from a class without *__slots__*, the *__dict__* attribute " "of that class will always be accessible, so a *__slots__* definition in the " "subclass is meaningless." msgstr "" -#: ../Doc/reference/datamodel.rst:1638 +#: ../Doc/reference/datamodel.rst:1646 msgid "" "Without a *__dict__* variable, instances cannot be assigned new variables " "not listed in the *__slots__* definition. Attempts to assign to an unlisted " @@ -1926,7 +1938,7 @@ msgid "" "the *__slots__* declaration." msgstr "" -#: ../Doc/reference/datamodel.rst:1644 +#: ../Doc/reference/datamodel.rst:1652 msgid "" "Without a *__weakref__* variable for each instance, classes defining " "*__slots__* do not support weak references to its instances. If weak " @@ -1934,7 +1946,7 @@ msgid "" "strings in the *__slots__* declaration." msgstr "" -#: ../Doc/reference/datamodel.rst:1649 +#: ../Doc/reference/datamodel.rst:1657 msgid "" "*__slots__* are implemented at the class level by creating descriptors (:ref:" "`descriptors`) for each variable name. As a result, class attributes cannot " @@ -1942,14 +1954,14 @@ msgid "" "otherwise, the class attribute would overwrite the descriptor assignment." msgstr "" -#: ../Doc/reference/datamodel.rst:1655 +#: ../Doc/reference/datamodel.rst:1663 msgid "" "The action of a *__slots__* declaration is limited to the class where it is " "defined. As a result, subclasses will have a *__dict__* unless they also " "define *__slots__* (which must only contain names of any *additional* slots)." msgstr "" -#: ../Doc/reference/datamodel.rst:1659 +#: ../Doc/reference/datamodel.rst:1667 msgid "" "If a class defines a slot also defined in a base class, the instance " "variable defined by the base class slot is inaccessible (except by " @@ -1958,29 +1970,29 @@ msgid "" "prevent this." msgstr "" -#: ../Doc/reference/datamodel.rst:1664 +#: ../Doc/reference/datamodel.rst:1672 msgid "" "Nonempty *__slots__* does not work for classes derived from \"variable-length" "\" built-in types such as :class:`int`, :class:`bytes` and :class:`tuple`." msgstr "" -#: ../Doc/reference/datamodel.rst:1667 +#: ../Doc/reference/datamodel.rst:1675 msgid "" "Any non-string iterable may be assigned to *__slots__*. Mappings may also be " "used; however, in the future, special meaning may be assigned to the values " "corresponding to each key." msgstr "" -#: ../Doc/reference/datamodel.rst:1671 +#: ../Doc/reference/datamodel.rst:1679 msgid "" "*__class__* assignment works only if both classes have the same *__slots__*." msgstr "" -#: ../Doc/reference/datamodel.rst:1677 +#: ../Doc/reference/datamodel.rst:1685 msgid "Customizing class creation" msgstr "" -#: ../Doc/reference/datamodel.rst:1679 +#: ../Doc/reference/datamodel.rst:1687 msgid "" "Whenever a class inherits from another class, *__init_subclass__* is called " "on that class. This way, it is possible to write classes which change the " @@ -1990,14 +2002,14 @@ msgid "" "defining the method." msgstr "" -#: ../Doc/reference/datamodel.rst:1688 +#: ../Doc/reference/datamodel.rst:1696 msgid "" "This method is called whenever the containing class is subclassed. *cls* is " "then the new subclass. If defined as a normal instance method, this method " "is implicitly converted to a class method." msgstr "" -#: ../Doc/reference/datamodel.rst:1692 +#: ../Doc/reference/datamodel.rst:1700 msgid "" "Keyword arguments which are given to a new class are passed to the parent's " "class ``__init_subclass__``. For compatibility with other classes using " @@ -2005,13 +2017,13 @@ msgid "" "pass the others over to the base class, as in::" msgstr "" -#: ../Doc/reference/datamodel.rst:1706 +#: ../Doc/reference/datamodel.rst:1714 msgid "" "The default implementation ``object.__init_subclass__`` does nothing, but " "raises an error if it is called with any arguments." msgstr "" -#: ../Doc/reference/datamodel.rst:1711 +#: ../Doc/reference/datamodel.rst:1719 msgid "" "The metaclass hint ``metaclass`` is consumed by the rest of the type " "machinery, and is never passed to ``__init_subclass__`` implementations. The " @@ -2019,18 +2031,18 @@ msgid "" "``type(cls)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1722 +#: ../Doc/reference/datamodel.rst:1730 msgid "Metaclasses" msgstr "" -#: ../Doc/reference/datamodel.rst:1728 +#: ../Doc/reference/datamodel.rst:1736 msgid "" "By default, classes are constructed using :func:`type`. The class body is " "executed in a new namespace and the class name is bound locally to the " "result of ``type(name, bases, namespace)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1732 +#: ../Doc/reference/datamodel.rst:1740 msgid "" "The class creation process can be customized by passing the ``metaclass`` " "keyword argument in the class definition line, or by inheriting from an " @@ -2038,59 +2050,59 @@ msgid "" "both ``MyClass`` and ``MySubclass`` are instances of ``Meta``::" msgstr "" -#: ../Doc/reference/datamodel.rst:1746 +#: ../Doc/reference/datamodel.rst:1754 msgid "" "Any other keyword arguments that are specified in the class definition are " "passed through to all metaclass operations described below." msgstr "" -#: ../Doc/reference/datamodel.rst:1749 +#: ../Doc/reference/datamodel.rst:1757 msgid "When a class definition is executed, the following steps occur:" msgstr "" -#: ../Doc/reference/datamodel.rst:1751 +#: ../Doc/reference/datamodel.rst:1759 msgid "the appropriate metaclass is determined" msgstr "" -#: ../Doc/reference/datamodel.rst:1752 +#: ../Doc/reference/datamodel.rst:1760 msgid "the class namespace is prepared" msgstr "" -#: ../Doc/reference/datamodel.rst:1753 +#: ../Doc/reference/datamodel.rst:1761 msgid "the class body is executed" msgstr "" -#: ../Doc/reference/datamodel.rst:1754 +#: ../Doc/reference/datamodel.rst:1762 msgid "the class object is created" msgstr "" -#: ../Doc/reference/datamodel.rst:1757 +#: ../Doc/reference/datamodel.rst:1765 msgid "Determining the appropriate metaclass" msgstr "" -#: ../Doc/reference/datamodel.rst:1761 +#: ../Doc/reference/datamodel.rst:1769 msgid "" "The appropriate metaclass for a class definition is determined as follows:" msgstr "" -#: ../Doc/reference/datamodel.rst:1763 +#: ../Doc/reference/datamodel.rst:1771 msgid "" "if no bases and no explicit metaclass are given, then :func:`type` is used" msgstr "" -#: ../Doc/reference/datamodel.rst:1764 +#: ../Doc/reference/datamodel.rst:1772 msgid "" "if an explicit metaclass is given and it is *not* an instance of :func:" "`type`, then it is used directly as the metaclass" msgstr "" -#: ../Doc/reference/datamodel.rst:1766 +#: ../Doc/reference/datamodel.rst:1774 msgid "" "if an instance of :func:`type` is given as the explicit metaclass, or bases " "are defined, then the most derived metaclass is used" msgstr "" -#: ../Doc/reference/datamodel.rst:1769 +#: ../Doc/reference/datamodel.rst:1777 msgid "" "The most derived metaclass is selected from the explicitly specified " "metaclass (if any) and the metaclasses (i.e. ``type(cls)``) of all specified " @@ -2099,11 +2111,11 @@ msgid "" "that criterion, then the class definition will fail with ``TypeError``." msgstr "" -#: ../Doc/reference/datamodel.rst:1779 +#: ../Doc/reference/datamodel.rst:1787 msgid "Preparing the class namespace" msgstr "" -#: ../Doc/reference/datamodel.rst:1784 +#: ../Doc/reference/datamodel.rst:1792 msgid "" "Once the appropriate metaclass has been identified, then the class namespace " "is prepared. If the metaclass has a ``__prepare__`` attribute, it is called " @@ -2111,25 +2123,25 @@ msgid "" "additional keyword arguments, if any, come from the class definition)." msgstr "" -#: ../Doc/reference/datamodel.rst:1789 +#: ../Doc/reference/datamodel.rst:1797 msgid "" "If the metaclass has no ``__prepare__`` attribute, then the class namespace " "is initialised as an empty ordered mapping." msgstr "" -#: ../Doc/reference/datamodel.rst:1794 +#: ../Doc/reference/datamodel.rst:1802 msgid ":pep:`3115` - Metaclasses in Python 3000" msgstr "" -#: ../Doc/reference/datamodel.rst:1795 +#: ../Doc/reference/datamodel.rst:1803 msgid "Introduced the ``__prepare__`` namespace hook" msgstr "" -#: ../Doc/reference/datamodel.rst:1799 +#: ../Doc/reference/datamodel.rst:1807 msgid "Executing the class body" msgstr "" -#: ../Doc/reference/datamodel.rst:1804 +#: ../Doc/reference/datamodel.rst:1812 msgid "" "The class body is executed (approximately) as ``exec(body, globals(), " "namespace)``. The key difference from a normal call to :func:`exec` is that " @@ -2138,7 +2150,7 @@ msgid "" "inside a function." msgstr "" -#: ../Doc/reference/datamodel.rst:1810 +#: ../Doc/reference/datamodel.rst:1818 msgid "" "However, even when the class definition occurs inside the function, methods " "defined inside the class still cannot see names defined at the class scope. " @@ -2147,11 +2159,11 @@ msgid "" "reference described in the next section." msgstr "" -#: ../Doc/reference/datamodel.rst:1819 +#: ../Doc/reference/datamodel.rst:1827 msgid "Creating the class object" msgstr "" -#: ../Doc/reference/datamodel.rst:1826 +#: ../Doc/reference/datamodel.rst:1834 msgid "" "Once the class namespace has been populated by executing the class body, the " "class object is created by calling ``metaclass(name, bases, namespace, " @@ -2159,7 +2171,7 @@ msgid "" "to ``__prepare__``)." msgstr "" -#: ../Doc/reference/datamodel.rst:1831 +#: ../Doc/reference/datamodel.rst:1839 msgid "" "This class object is the one that will be referenced by the zero-argument " "form of :func:`super`. ``__class__`` is an implicit closure reference " @@ -2170,7 +2182,7 @@ msgid "" "is identified based on the first argument passed to the method." msgstr "" -#: ../Doc/reference/datamodel.rst:1841 +#: ../Doc/reference/datamodel.rst:1849 msgid "" "In CPython 3.6 and later, the ``__class__`` cell is passed to the metaclass " "as a ``__classcell__`` entry in the class namespace. If present, this must " @@ -2180,39 +2192,39 @@ msgid "" "future." msgstr "" -#: ../Doc/reference/datamodel.rst:1848 +#: ../Doc/reference/datamodel.rst:1856 msgid "" "When using the default metaclass :class:`type`, or any metaclass that " "ultimately calls ``type.__new__``, the following additional customisation " "steps are invoked after creating the class object:" msgstr "" -#: ../Doc/reference/datamodel.rst:1852 +#: ../Doc/reference/datamodel.rst:1860 msgid "" "first, ``type.__new__`` collects all of the descriptors in the class " "namespace that define a :meth:`~object.__set_name__` method;" msgstr "" -#: ../Doc/reference/datamodel.rst:1854 +#: ../Doc/reference/datamodel.rst:1862 msgid "" "second, all of these ``__set_name__`` methods are called with the class " "being defined and the assigned name of that particular descriptor; and" msgstr "" -#: ../Doc/reference/datamodel.rst:1856 +#: ../Doc/reference/datamodel.rst:1864 msgid "" "finally, the :meth:`~object.__init_subclass__` hook is called on the " "immediate parent of the new class in its method resolution order." msgstr "" -#: ../Doc/reference/datamodel.rst:1859 +#: ../Doc/reference/datamodel.rst:1867 msgid "" "After the class object is created, it is passed to the class decorators " "included in the class definition (if any) and the resulting object is bound " "in the local namespace as the defined class." msgstr "" -#: ../Doc/reference/datamodel.rst:1863 +#: ../Doc/reference/datamodel.rst:1871 msgid "" "When a new class is created by ``type.__new__``, the object provided as the " "namespace parameter is copied to a new ordered mapping and the original " @@ -2220,19 +2232,19 @@ msgid "" "becomes the :attr:`~object.__dict__` attribute of the class object." msgstr "" -#: ../Doc/reference/datamodel.rst:1870 +#: ../Doc/reference/datamodel.rst:1878 msgid ":pep:`3135` - New super" msgstr "" -#: ../Doc/reference/datamodel.rst:1871 +#: ../Doc/reference/datamodel.rst:1879 msgid "Describes the implicit ``__class__`` closure reference" msgstr "" -#: ../Doc/reference/datamodel.rst:1875 +#: ../Doc/reference/datamodel.rst:1883 msgid "Metaclass example" msgstr "" -#: ../Doc/reference/datamodel.rst:1877 +#: ../Doc/reference/datamodel.rst:1885 msgid "" "The potential uses for metaclasses are boundless. Some ideas that have been " "explored include enum, logging, interface checking, automatic delegation, " @@ -2240,13 +2252,13 @@ msgid "" "locking/synchronization." msgstr "" -#: ../Doc/reference/datamodel.rst:1882 +#: ../Doc/reference/datamodel.rst:1890 msgid "" "Here is an example of a metaclass that uses an :class:`collections." "OrderedDict` to remember the order that class variables are defined::" msgstr "" -#: ../Doc/reference/datamodel.rst:1905 +#: ../Doc/reference/datamodel.rst:1913 msgid "" "When the class definition for *A* gets executed, the process begins with " "calling the metaclass's :meth:`__prepare__` method which returns an empty :" @@ -2258,17 +2270,17 @@ msgid "" "an attribute called ``members``." msgstr "" -#: ../Doc/reference/datamodel.rst:1916 +#: ../Doc/reference/datamodel.rst:1924 msgid "Customizing instance and subclass checks" msgstr "" -#: ../Doc/reference/datamodel.rst:1918 +#: ../Doc/reference/datamodel.rst:1926 msgid "" "The following methods are used to override the default behavior of the :func:" "`isinstance` and :func:`issubclass` built-in functions." msgstr "" -#: ../Doc/reference/datamodel.rst:1921 +#: ../Doc/reference/datamodel.rst:1929 msgid "" "In particular, the metaclass :class:`abc.ABCMeta` implements these methods " "in order to allow the addition of Abstract Base Classes (ABCs) as \"virtual " @@ -2276,21 +2288,21 @@ msgid "" "other ABCs." msgstr "" -#: ../Doc/reference/datamodel.rst:1928 +#: ../Doc/reference/datamodel.rst:1936 msgid "" "Return true if *instance* should be considered a (direct or indirect) " "instance of *class*. If defined, called to implement ``isinstance(instance, " "class)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1935 +#: ../Doc/reference/datamodel.rst:1943 msgid "" "Return true if *subclass* should be considered a (direct or indirect) " "subclass of *class*. If defined, called to implement ``issubclass(subclass, " "class)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1940 +#: ../Doc/reference/datamodel.rst:1948 msgid "" "Note that these methods are looked up on the type (metaclass) of a class. " "They cannot be defined as class methods in the actual class. This is " @@ -2298,11 +2310,11 @@ msgid "" "only in this case the instance is itself a class." msgstr "" -#: ../Doc/reference/datamodel.rst:1951 +#: ../Doc/reference/datamodel.rst:1959 msgid ":pep:`3119` - Introducing Abstract Base Classes" msgstr "" -#: ../Doc/reference/datamodel.rst:1948 +#: ../Doc/reference/datamodel.rst:1956 msgid "" "Includes the specification for customizing :func:`isinstance` and :func:" "`issubclass` behavior through :meth:`~class.__instancecheck__` and :meth:" @@ -2311,22 +2323,22 @@ msgid "" "language." msgstr "" -#: ../Doc/reference/datamodel.rst:1958 +#: ../Doc/reference/datamodel.rst:1966 msgid "Emulating callable objects" msgstr "" -#: ../Doc/reference/datamodel.rst:1965 +#: ../Doc/reference/datamodel.rst:1973 msgid "" "Called when the instance is \"called\" as a function; if this method is " "defined, ``x(arg1, arg2, ...)`` is a shorthand for ``x.__call__(arg1, " "arg2, ...)``." msgstr "" -#: ../Doc/reference/datamodel.rst:1972 +#: ../Doc/reference/datamodel.rst:1980 msgid "Emulating container types" msgstr "" -#: ../Doc/reference/datamodel.rst:1974 +#: ../Doc/reference/datamodel.rst:1982 msgid "" "The following methods can be defined to implement container objects. " "Containers usually are sequences (such as lists or tuples) or mappings (like " @@ -2359,7 +2371,7 @@ msgid "" "iterate through the values." msgstr "" -#: ../Doc/reference/datamodel.rst:2009 +#: ../Doc/reference/datamodel.rst:2017 msgid "" "Called to implement the built-in function :func:`len`. Should return the " "length of the object, an integer ``>=`` 0. Also, an object that doesn't " @@ -2367,7 +2379,7 @@ msgid "" "zero is considered to be false in a Boolean context." msgstr "" -#: ../Doc/reference/datamodel.rst:2016 +#: ../Doc/reference/datamodel.rst:2024 msgid "" "In CPython, the length is required to be at most :attr:`sys.maxsize`. If the " "length is larger than :attr:`!sys.maxsize` some features (such as :func:" @@ -2376,7 +2388,7 @@ msgid "" "`__bool__` method." msgstr "" -#: ../Doc/reference/datamodel.rst:2025 +#: ../Doc/reference/datamodel.rst:2033 msgid "" "Called to implement :func:`operator.length_hint`. Should return an estimated " "length for the object (which may be greater or less than the actual length). " @@ -2384,20 +2396,20 @@ msgid "" "optimization and is never required for correctness." msgstr "" -#: ../Doc/reference/datamodel.rst:2035 +#: ../Doc/reference/datamodel.rst:2043 msgid "" "Slicing is done exclusively with the following three methods. A call like ::" msgstr "" -#: ../Doc/reference/datamodel.rst:2039 +#: ../Doc/reference/datamodel.rst:2047 msgid "is translated to ::" msgstr "" -#: ../Doc/reference/datamodel.rst:2043 +#: ../Doc/reference/datamodel.rst:2051 msgid "and so forth. Missing slice items are always filled in with ``None``." msgstr "" -#: ../Doc/reference/datamodel.rst:2050 +#: ../Doc/reference/datamodel.rst:2058 msgid "" "Called to implement evaluation of ``self[key]``. For sequence types, the " "accepted keys should be integers and slice objects. Note that the special " @@ -2409,19 +2421,19 @@ msgid "" "*key* is missing (not in the container), :exc:`KeyError` should be raised." msgstr "" -#: ../Doc/reference/datamodel.rst:2061 +#: ../Doc/reference/datamodel.rst:2069 msgid "" ":keyword:`for` loops expect that an :exc:`IndexError` will be raised for " "illegal indexes to allow proper detection of the end of the sequence." msgstr "" -#: ../Doc/reference/datamodel.rst:2067 +#: ../Doc/reference/datamodel.rst:2075 msgid "" "Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]`` " "for dict subclasses when key is not in the dictionary." msgstr "" -#: ../Doc/reference/datamodel.rst:2073 +#: ../Doc/reference/datamodel.rst:2081 msgid "" "Called to implement assignment to ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -2430,7 +2442,7 @@ msgid "" "for improper *key* values as for the :meth:`__getitem__` method." msgstr "" -#: ../Doc/reference/datamodel.rst:2082 +#: ../Doc/reference/datamodel.rst:2090 msgid "" "Called to implement deletion of ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -2439,7 +2451,7 @@ msgid "" "values as for the :meth:`__getitem__` method." msgstr "" -#: ../Doc/reference/datamodel.rst:2091 +#: ../Doc/reference/datamodel.rst:2099 msgid "" "This method is called when an iterator is required for a container. This " "method should return a new iterator object that can iterate over all the " @@ -2447,21 +2459,21 @@ msgid "" "the container." msgstr "" -#: ../Doc/reference/datamodel.rst:2095 +#: ../Doc/reference/datamodel.rst:2103 msgid "" "Iterator objects also need to implement this method; they are required to " "return themselves. For more information on iterator objects, see :ref:" "`typeiter`." msgstr "" -#: ../Doc/reference/datamodel.rst:2101 +#: ../Doc/reference/datamodel.rst:2109 msgid "" "Called (if present) by the :func:`reversed` built-in to implement reverse " "iteration. It should return a new iterator object that iterates over all " "the objects in the container in reverse order." msgstr "" -#: ../Doc/reference/datamodel.rst:2105 +#: ../Doc/reference/datamodel.rst:2113 msgid "" "If the :meth:`__reversed__` method is not provided, the :func:`reversed` " "built-in will fall back to using the sequence protocol (:meth:`__len__` and :" @@ -2470,7 +2482,7 @@ msgid "" "more efficient than the one provided by :func:`reversed`." msgstr "" -#: ../Doc/reference/datamodel.rst:2112 +#: ../Doc/reference/datamodel.rst:2120 msgid "" "The membership test operators (:keyword:`in` and :keyword:`not in`) are " "normally implemented as an iteration through a sequence. However, container " @@ -2478,14 +2490,14 @@ msgid "" "implementation, which also does not require the object be a sequence." msgstr "" -#: ../Doc/reference/datamodel.rst:2119 +#: ../Doc/reference/datamodel.rst:2127 msgid "" "Called to implement membership test operators. Should return true if *item* " "is in *self*, false otherwise. For mapping objects, this should consider " "the keys of the mapping rather than the values or the key-item pairs." msgstr "" -#: ../Doc/reference/datamodel.rst:2123 +#: ../Doc/reference/datamodel.rst:2131 msgid "" "For objects that don't define :meth:`__contains__`, the membership test " "first tries iteration via :meth:`__iter__`, then the old sequence iteration " @@ -2493,11 +2505,11 @@ msgid "" "reference `." msgstr "" -#: ../Doc/reference/datamodel.rst:2132 +#: ../Doc/reference/datamodel.rst:2140 msgid "Emulating numeric types" msgstr "" -#: ../Doc/reference/datamodel.rst:2134 +#: ../Doc/reference/datamodel.rst:2142 msgid "" "The following methods can be defined to emulate numeric objects. Methods " "corresponding to operations that are not supported by the particular kind of " @@ -2505,7 +2517,7 @@ msgid "" "should be left undefined." msgstr "" -#: ../Doc/reference/datamodel.rst:2160 +#: ../Doc/reference/datamodel.rst:2168 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -2518,13 +2530,13 @@ msgid "" "version of the built-in :func:`pow` function is to be supported." msgstr "" -#: ../Doc/reference/datamodel.rst:2171 +#: ../Doc/reference/datamodel.rst:2179 msgid "" "If one of those methods does not support the operation with the supplied " "arguments, it should return ``NotImplemented``." msgstr "" -#: ../Doc/reference/datamodel.rst:2194 +#: ../Doc/reference/datamodel.rst:2202 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -2536,13 +2548,13 @@ msgid "" "__rsub__(x)`` is called if ``x.__sub__(y)`` returns *NotImplemented*." msgstr "" -#: ../Doc/reference/datamodel.rst:2205 +#: ../Doc/reference/datamodel.rst:2213 msgid "" "Note that ternary :func:`pow` will not try calling :meth:`__rpow__` (the " "coercion rules would become too complicated)." msgstr "" -#: ../Doc/reference/datamodel.rst:2210 +#: ../Doc/reference/datamodel.rst:2218 msgid "" "If the right operand's type is a subclass of the left operand's type and " "that subclass provides the reflected method for the operation, this method " @@ -2550,7 +2562,7 @@ msgid "" "behavior allows subclasses to override their ancestors' operations." msgstr "" -#: ../Doc/reference/datamodel.rst:2230 +#: ../Doc/reference/datamodel.rst:2238 msgid "" "These methods are called to implement the augmented arithmetic assignments " "(``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, ``**=``, ``<<=``, " @@ -2566,20 +2578,20 @@ msgid "" "fact part of the data model." msgstr "" -#: ../Doc/reference/datamodel.rst:2251 +#: ../Doc/reference/datamodel.rst:2259 msgid "" "Called to implement the unary arithmetic operations (``-``, ``+``, :func:" "`abs` and ``~``)." msgstr "" -#: ../Doc/reference/datamodel.rst:2266 +#: ../Doc/reference/datamodel.rst:2274 msgid "" "Called to implement the built-in functions :func:`complex`, :func:`int`, :" "func:`float` and :func:`round`. Should return a value of the appropriate " "type." msgstr "" -#: ../Doc/reference/datamodel.rst:2273 +#: ../Doc/reference/datamodel.rst:2281 msgid "" "Called to implement :func:`operator.index`, and whenever Python needs to " "losslessly convert the numeric object to an integer object (such as in " @@ -2588,18 +2600,18 @@ msgid "" "integer type. Must return an integer." msgstr "" -#: ../Doc/reference/datamodel.rst:2281 +#: ../Doc/reference/datamodel.rst:2289 msgid "" "In order to have a coherent integer type class, when :meth:`__index__` is " "defined :meth:`__int__` should also be defined, and both should return the " "same value." msgstr "" -#: ../Doc/reference/datamodel.rst:2289 +#: ../Doc/reference/datamodel.rst:2297 msgid "With Statement Context Managers" msgstr "" -#: ../Doc/reference/datamodel.rst:2291 +#: ../Doc/reference/datamodel.rst:2299 msgid "" "A :dfn:`context manager` is an object that defines the runtime context to be " "established when executing a :keyword:`with` statement. The context manager " @@ -2609,32 +2621,32 @@ msgid "" "can also be used by directly invoking their methods." msgstr "" -#: ../Doc/reference/datamodel.rst:2302 +#: ../Doc/reference/datamodel.rst:2310 msgid "" "Typical uses of context managers include saving and restoring various kinds " "of global state, locking and unlocking resources, closing opened files, etc." msgstr "" -#: ../Doc/reference/datamodel.rst:2305 +#: ../Doc/reference/datamodel.rst:2313 msgid "" "For more information on context managers, see :ref:`typecontextmanager`." msgstr "" -#: ../Doc/reference/datamodel.rst:2310 +#: ../Doc/reference/datamodel.rst:2318 msgid "" "Enter the runtime context related to this object. The :keyword:`with` " "statement will bind this method's return value to the target(s) specified in " "the :keyword:`as` clause of the statement, if any." msgstr "" -#: ../Doc/reference/datamodel.rst:2317 +#: ../Doc/reference/datamodel.rst:2325 msgid "" "Exit the runtime context related to this object. The parameters describe the " "exception that caused the context to be exited. If the context was exited " "without an exception, all three arguments will be :const:`None`." msgstr "" -#: ../Doc/reference/datamodel.rst:2321 +#: ../Doc/reference/datamodel.rst:2329 msgid "" "If an exception is supplied, and the method wishes to suppress the exception " "(i.e., prevent it from being propagated), it should return a true value. " @@ -2642,27 +2654,27 @@ msgid "" "method." msgstr "" -#: ../Doc/reference/datamodel.rst:2325 +#: ../Doc/reference/datamodel.rst:2333 msgid "" "Note that :meth:`__exit__` methods should not reraise the passed-in " "exception; this is the caller's responsibility." msgstr "" -#: ../Doc/reference/datamodel.rst:2332 +#: ../Doc/reference/datamodel.rst:2340 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` - The \"with\" statement" -#: ../Doc/reference/datamodel.rst:2332 +#: ../Doc/reference/datamodel.rst:2340 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." msgstr "" -#: ../Doc/reference/datamodel.rst:2339 +#: ../Doc/reference/datamodel.rst:2347 msgid "Special method lookup" msgstr "" -#: ../Doc/reference/datamodel.rst:2341 +#: ../Doc/reference/datamodel.rst:2349 msgid "" "For custom classes, implicit invocations of special methods are only " "guaranteed to work correctly if defined on an object's type, not in the " @@ -2670,7 +2682,7 @@ msgid "" "following code raises an exception::" msgstr "" -#: ../Doc/reference/datamodel.rst:2356 +#: ../Doc/reference/datamodel.rst:2364 msgid "" "The rationale behind this behaviour lies with a number of special methods " "such as :meth:`__hash__` and :meth:`__repr__` that are implemented by all " @@ -2679,21 +2691,21 @@ msgid "" "type object itself::" msgstr "" -#: ../Doc/reference/datamodel.rst:2369 +#: ../Doc/reference/datamodel.rst:2377 msgid "" "Incorrectly attempting to invoke an unbound method of a class in this way is " "sometimes referred to as 'metaclass confusion', and is avoided by bypassing " "the instance when looking up special methods::" msgstr "" -#: ../Doc/reference/datamodel.rst:2378 +#: ../Doc/reference/datamodel.rst:2386 msgid "" "In addition to bypassing any instance attributes in the interest of " "correctness, implicit special method lookup generally also bypasses the :" "meth:`__getattribute__` method even of the object's metaclass::" msgstr "" -#: ../Doc/reference/datamodel.rst:2404 +#: ../Doc/reference/datamodel.rst:2412 msgid "" "Bypassing the :meth:`__getattribute__` machinery in this fashion provides " "significant scope for speed optimisations within the interpreter, at the " @@ -2702,44 +2714,44 @@ msgid "" "invoked by the interpreter)." msgstr "" -#: ../Doc/reference/datamodel.rst:2415 +#: ../Doc/reference/datamodel.rst:2423 msgid "Coroutines" msgstr "Coroutines" -#: ../Doc/reference/datamodel.rst:2419 +#: ../Doc/reference/datamodel.rst:2427 msgid "Awaitable Objects" msgstr "" -#: ../Doc/reference/datamodel.rst:2421 +#: ../Doc/reference/datamodel.rst:2429 msgid "" "An :term:`awaitable` object generally implements an :meth:`__await__` " "method. :term:`Coroutine` objects returned from :keyword:`async def` " "functions are awaitable." msgstr "" -#: ../Doc/reference/datamodel.rst:2427 +#: ../Doc/reference/datamodel.rst:2435 msgid "" "The :term:`generator iterator` objects returned from generators decorated " "with :func:`types.coroutine` or :func:`asyncio.coroutine` are also " "awaitable, but they do not implement :meth:`__await__`." msgstr "" -#: ../Doc/reference/datamodel.rst:2433 +#: ../Doc/reference/datamodel.rst:2441 msgid "" "Must return an :term:`iterator`. Should be used to implement :term:" "`awaitable` objects. For instance, :class:`asyncio.Future` implements this " "method to be compatible with the :keyword:`await` expression." msgstr "" -#: ../Doc/reference/datamodel.rst:2439 +#: ../Doc/reference/datamodel.rst:2447 msgid ":pep:`492` for additional information about awaitable objects." msgstr "" -#: ../Doc/reference/datamodel.rst:2445 +#: ../Doc/reference/datamodel.rst:2453 msgid "Coroutine Objects" msgstr "" -#: ../Doc/reference/datamodel.rst:2447 +#: ../Doc/reference/datamodel.rst:2455 msgid "" ":term:`Coroutine` objects are :term:`awaitable` objects. A coroutine's " "execution can be controlled by calling :meth:`__await__` and iterating over " @@ -2750,18 +2762,18 @@ msgid "" "not directly raise unhandled :exc:`StopIteration` exceptions." msgstr "" -#: ../Doc/reference/datamodel.rst:2455 +#: ../Doc/reference/datamodel.rst:2463 msgid "" "Coroutines also have the methods listed below, which are analogous to those " "of generators (see :ref:`generator-methods`). However, unlike generators, " "coroutines do not directly support iteration." msgstr "" -#: ../Doc/reference/datamodel.rst:2459 +#: ../Doc/reference/datamodel.rst:2467 msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once." msgstr "" -#: ../Doc/reference/datamodel.rst:2465 +#: ../Doc/reference/datamodel.rst:2473 msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " "is equivalent to advancing the iterator returned by :meth:`__await__`. If " @@ -2771,7 +2783,7 @@ msgid "" "as when iterating over the :meth:`__await__` return value, described above." msgstr "" -#: ../Doc/reference/datamodel.rst:2475 +#: ../Doc/reference/datamodel.rst:2483 msgid "" "Raises the specified exception in the coroutine. This method delegates to " "the :meth:`~generator.throw` method of the iterator that caused the " @@ -2782,7 +2794,7 @@ msgid "" "caught in the coroutine, it propagates back to the caller." msgstr "" -#: ../Doc/reference/datamodel.rst:2486 +#: ../Doc/reference/datamodel.rst:2494 msgid "" "Causes the coroutine to clean itself up and exit. If the coroutine is " "suspended, this method first delegates to the :meth:`~generator.close` " @@ -2792,50 +2804,50 @@ msgid "" "is marked as having finished executing, even if it was never started." msgstr "" -#: ../Doc/reference/datamodel.rst:2494 +#: ../Doc/reference/datamodel.rst:2502 msgid "" "Coroutine objects are automatically closed using the above process when they " "are about to be destroyed." msgstr "" -#: ../Doc/reference/datamodel.rst:2500 +#: ../Doc/reference/datamodel.rst:2508 msgid "Asynchronous Iterators" msgstr "" -#: ../Doc/reference/datamodel.rst:2502 +#: ../Doc/reference/datamodel.rst:2510 msgid "" "An *asynchronous iterable* is able to call asynchronous code in its " "``__aiter__`` implementation, and an *asynchronous iterator* can call " "asynchronous code in its ``__anext__`` method." msgstr "" -#: ../Doc/reference/datamodel.rst:2506 +#: ../Doc/reference/datamodel.rst:2514 msgid "" "Asynchronous iterators can be used in an :keyword:`async for` statement." msgstr "" -#: ../Doc/reference/datamodel.rst:2510 +#: ../Doc/reference/datamodel.rst:2518 msgid "Must return an *asynchronous iterator* object." msgstr "" -#: ../Doc/reference/datamodel.rst:2514 +#: ../Doc/reference/datamodel.rst:2522 msgid "" "Must return an *awaitable* resulting in a next value of the iterator. " "Should raise a :exc:`StopAsyncIteration` error when the iteration is over." msgstr "" -#: ../Doc/reference/datamodel.rst:2517 +#: ../Doc/reference/datamodel.rst:2525 msgid "An example of an asynchronous iterable object::" msgstr "" -#: ../Doc/reference/datamodel.rst:2536 +#: ../Doc/reference/datamodel.rst:2544 msgid "" "Starting with CPython 3.5.2, ``__aiter__`` can directly return :term:" "`asynchronous iterators `. Returning an :term:" "`awaitable` object will result in a :exc:`PendingDeprecationWarning`." msgstr "" -#: ../Doc/reference/datamodel.rst:2542 +#: ../Doc/reference/datamodel.rst:2550 msgid "" "The recommended way of writing backwards compatible code in CPython 3.5.x is " "to continue returning awaitables from ``__aiter__``. If you want to avoid " @@ -2843,61 +2855,61 @@ msgid "" "following decorator can be used::" msgstr "" -#: ../Doc/reference/datamodel.rst:2561 +#: ../Doc/reference/datamodel.rst:2569 msgid "Example::" msgstr "Exemples ::" -#: ../Doc/reference/datamodel.rst:2572 +#: ../Doc/reference/datamodel.rst:2580 msgid "" "Starting with CPython 3.6, the :exc:`PendingDeprecationWarning` will be " "replaced with the :exc:`DeprecationWarning`. In CPython 3.7, returning an " "awaitable from ``__aiter__`` will result in a :exc:`RuntimeError`." msgstr "" -#: ../Doc/reference/datamodel.rst:2579 +#: ../Doc/reference/datamodel.rst:2587 msgid "Asynchronous Context Managers" msgstr "" -#: ../Doc/reference/datamodel.rst:2581 +#: ../Doc/reference/datamodel.rst:2589 msgid "" "An *asynchronous context manager* is a *context manager* that is able to " "suspend execution in its ``__aenter__`` and ``__aexit__`` methods." msgstr "" -#: ../Doc/reference/datamodel.rst:2584 +#: ../Doc/reference/datamodel.rst:2592 msgid "" "Asynchronous context managers can be used in an :keyword:`async with` " "statement." msgstr "" -#: ../Doc/reference/datamodel.rst:2588 +#: ../Doc/reference/datamodel.rst:2596 msgid "" "This method is semantically similar to the :meth:`__enter__`, with only " "difference that it must return an *awaitable*." msgstr "" -#: ../Doc/reference/datamodel.rst:2593 +#: ../Doc/reference/datamodel.rst:2601 msgid "" "This method is semantically similar to the :meth:`__exit__`, with only " "difference that it must return an *awaitable*." msgstr "" -#: ../Doc/reference/datamodel.rst:2596 +#: ../Doc/reference/datamodel.rst:2604 msgid "An example of an asynchronous context manager class::" msgstr "" -#: ../Doc/reference/datamodel.rst:2609 +#: ../Doc/reference/datamodel.rst:2617 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/datamodel.rst:2610 +#: ../Doc/reference/datamodel.rst:2618 msgid "" "It *is* possible in some cases to change an object's type, under certain " "controlled conditions. It generally isn't a good idea though, since it can " "lead to some very strange behaviour if it is handled incorrectly." msgstr "" -#: ../Doc/reference/datamodel.rst:2614 +#: ../Doc/reference/datamodel.rst:2622 msgid "" "The :meth:`__hash__`, :meth:`__iter__`, :meth:`__reversed__`, and :meth:" "`__contains__` methods have special handling for this; others will still " @@ -2905,7 +2917,7 @@ msgid "" "``None`` is not callable." msgstr "" -#: ../Doc/reference/datamodel.rst:2619 +#: ../Doc/reference/datamodel.rst:2627 msgid "" "\"Does not support\" here means that the class has no such method, or the " "method returns ``NotImplemented``. Do not set the method to ``None`` if you " @@ -2913,7 +2925,7 @@ msgid "" "instead have the opposite effect of explicitly *blocking* such fallback." msgstr "" -#: ../Doc/reference/datamodel.rst:2625 +#: ../Doc/reference/datamodel.rst:2633 msgid "" "For operands of the same type, it is assumed that if the non-reflected " "method (such as :meth:`__add__`) fails the operation is not supported, which " diff --git a/reference/lexical_analysis.po b/reference/lexical_analysis.po index 573db5d1..71604511 100644 --- a/reference/lexical_analysis.po +++ b/reference/lexical_analysis.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-13 22:28+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -872,115 +872,117 @@ msgstr "" #: ../Doc/reference/lexical_analysis.rst:657 msgid "" "Top-level format specifiers may include nested replacement fields. These " -"nested fields may include their own conversion fields and format specifiers, " -"but may not include more deeply-nested replacement fields." +"nested fields may include their own conversion fields and :ref:`format " +"specifiers `, but may not include more deeply-nested replacement " +"fields. The :ref:`format specifier mini-language ` is the same " +"as that used by the string .format() method." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:661 +#: ../Doc/reference/lexical_analysis.rst:663 msgid "" "Formatted string literals may be concatenated, but replacement fields cannot " "be split across literals." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:664 +#: ../Doc/reference/lexical_analysis.rst:666 msgid "Some examples of formatted string literals::" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:683 +#: ../Doc/reference/lexical_analysis.rst:685 msgid "" "A consequence of sharing the same syntax as regular string literals is that " "characters in the replacement fields must not conflict with the quoting used " "in the outer formatted string literal::" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:690 +#: ../Doc/reference/lexical_analysis.rst:692 msgid "" "Backslashes are not allowed in format expressions and will raise an error::" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:695 +#: ../Doc/reference/lexical_analysis.rst:697 msgid "" "To include a value in which a backslash escape is required, create a " "temporary variable." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:702 +#: ../Doc/reference/lexical_analysis.rst:704 msgid "" "Formatted string literals cannot be used as docstrings, even if they do not " "include expressions." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:713 +#: ../Doc/reference/lexical_analysis.rst:715 msgid "" "See also :pep:`498` for the proposal that added formatted string literals, " "and :meth:`str.format`, which uses a related format string mechanism." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:720 +#: ../Doc/reference/lexical_analysis.rst:722 msgid "Numeric literals" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:726 +#: ../Doc/reference/lexical_analysis.rst:728 msgid "" "There are three types of numeric literals: integers, floating point numbers, " "and imaginary numbers. There are no complex literals (complex numbers can " "be formed by adding a real number and an imaginary number)." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:730 +#: ../Doc/reference/lexical_analysis.rst:732 msgid "" "Note that numeric literals do not include a sign; a phrase like ``-1`` is " "actually an expression composed of the unary operator '``-``' and the " "literal ``1``." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:738 +#: ../Doc/reference/lexical_analysis.rst:740 msgid "Integer literals" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:740 +#: ../Doc/reference/lexical_analysis.rst:742 msgid "Integer literals are described by the following lexical definitions:" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:754 +#: ../Doc/reference/lexical_analysis.rst:756 msgid "" "There is no limit for the length of integer literals apart from what can be " "stored in available memory." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:757 +#: ../Doc/reference/lexical_analysis.rst:759 msgid "" "Underscores are ignored for determining the numeric value of the literal. " "They can be used to group digits for enhanced readability. One underscore " "can occur between digits, and after base specifiers like ``0x``." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:761 +#: ../Doc/reference/lexical_analysis.rst:763 msgid "" "Note that leading zeros in a non-zero decimal number are not allowed. This " "is for disambiguation with C-style octal literals, which Python used before " "version 3.0." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:765 +#: ../Doc/reference/lexical_analysis.rst:767 msgid "Some examples of integer literals::" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:771 -#: ../Doc/reference/lexical_analysis.rst:799 +#: ../Doc/reference/lexical_analysis.rst:773 +#: ../Doc/reference/lexical_analysis.rst:801 msgid "Underscores are now allowed for grouping purposes in literals." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:778 +#: ../Doc/reference/lexical_analysis.rst:780 msgid "Floating point literals" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:780 +#: ../Doc/reference/lexical_analysis.rst:782 msgid "" "Floating point literals are described by the following lexical definitions:" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:790 +#: ../Doc/reference/lexical_analysis.rst:792 msgid "" "Note that the integer and exponent parts are always interpreted using radix " "10. For example, ``077e010`` is legal, and denotes the same number as " @@ -989,19 +991,19 @@ msgid "" "grouping." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:795 +#: ../Doc/reference/lexical_analysis.rst:797 msgid "Some examples of floating point literals::" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:806 +#: ../Doc/reference/lexical_analysis.rst:808 msgid "Imaginary literals" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:808 +#: ../Doc/reference/lexical_analysis.rst:810 msgid "Imaginary literals are described by the following lexical definitions:" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:813 +#: ../Doc/reference/lexical_analysis.rst:815 msgid "" "An imaginary literal yields a complex number with a real part of 0.0. " "Complex numbers are represented as a pair of floating point numbers and have " @@ -1010,23 +1012,23 @@ msgid "" "Some examples of imaginary literals::" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:825 +#: ../Doc/reference/lexical_analysis.rst:827 msgid "Operators" msgstr "Opérateurs" -#: ../Doc/reference/lexical_analysis.rst:829 +#: ../Doc/reference/lexical_analysis.rst:831 msgid "The following tokens are operators:" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:842 +#: ../Doc/reference/lexical_analysis.rst:844 msgid "Delimiters" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:846 +#: ../Doc/reference/lexical_analysis.rst:848 msgid "The following tokens serve as delimiters in the grammar:" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:855 +#: ../Doc/reference/lexical_analysis.rst:857 msgid "" "The period can also occur in floating-point and imaginary literals. A " "sequence of three periods has a special meaning as an ellipsis literal. The " @@ -1034,22 +1036,22 @@ msgid "" "as delimiters, but also perform an operation." msgstr "" -#: ../Doc/reference/lexical_analysis.rst:860 +#: ../Doc/reference/lexical_analysis.rst:862 msgid "" "The following printing ASCII characters have special meaning as part of " "other tokens or are otherwise significant to the lexical analyzer:" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:867 +#: ../Doc/reference/lexical_analysis.rst:869 msgid "" "The following printing ASCII characters are not used in Python. Their " "occurrence outside string literals and comments is an unconditional error:" msgstr "" -#: ../Doc/reference/lexical_analysis.rst:876 +#: ../Doc/reference/lexical_analysis.rst:878 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/lexical_analysis.rst:877 +#: ../Doc/reference/lexical_analysis.rst:879 msgid "http://www.unicode.org/Public/9.0.0/ucd/NameAliases.txt" msgstr "" diff --git a/sphinx.po b/sphinx.po index dd130e63..5984c6ff 100644 --- a/sphinx.po +++ b/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-01 07:43+0100\n" +"POT-Creation-Date: 2018-01-04 15:59+0100\n" "PO-Revision-Date: 2017-05-16 13:58+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.11\n" +#: ../Doc/tools/templates/dummy.html:6 +msgid "CPython implementation detail:" +msgstr "Particularité de l'implémentation CPython :" + #: ../Doc/tools/templates/indexcontent.html:8 msgid "Welcome! This is the documentation for Python %(release)s." msgstr "Bienvenu sur la documentation de Python %(release)s." @@ -215,10 +219,6 @@ msgid "" msgstr "" "Crée via Sphinx %(sphinx_version)s." -#: ../Doc/tools/templates/dummy.html:6 -msgid "CPython implementation detail:" -msgstr "Particularité de l'implémentation CPython :" - #: ../Doc/tools/templates/customsourcelink.html:3 msgid "This Page" msgstr "Cette Page" diff --git a/tutorial/classes.po b/tutorial/classes.po index 31bea7bd..7ba315b3 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-01 13:21+0200\n" +"POT-Creation-Date: 2018-01-04 15:51+0100\n" "PO-Revision-Date: 2017-10-27 17:32+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: \n" @@ -1359,13 +1359,14 @@ msgid "Generator Expressions" msgstr "Expressions et générateurs" #: ../Doc/tutorial/classes.rst:878 +#, fuzzy msgid "" "Some simple generators can be coded succinctly as expressions using a syntax " -"similar to list comprehensions but with parentheses instead of brackets. " -"These expressions are designed for situations where the generator is used " -"right away by an enclosing function. Generator expressions are more compact " -"but less versatile than full generator definitions and tend to be more " -"memory friendly than equivalent list comprehensions." +"similar to list comprehensions but with parentheses instead of square " +"brackets. These expressions are designed for situations where the generator " +"is used right away by an enclosing function. Generator expressions are more " +"compact but less versatile than full generator definitions and tend to be " +"more memory friendly than equivalent list comprehensions." msgstr "" "Des générateurs simples peuvent être codés très rapidement avec des " "expressions utilisant la même syntaxe que les compréhensions de listes, mais "