From 550b1de73cc791cce80ff9f400353eeb45415d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Sun, 4 Nov 2018 23:56:27 +0100 Subject: [PATCH 001/121] Start translating library/unittest.po --- library/unittest.po | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 016f7f8bb..c4347a0d9 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-09-15 21:52+0200\n" -"PO-Revision-Date: 2018-09-27 11:28+0200\n" +"PO-Revision-Date: 2018-11-04 23:33+0100\n" "Last-Translator: Lowic Mangin \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.5.4\n" +"X-Generator: Poedit 2.1.1\n" #: ../Doc/library/unittest.rst:2 msgid ":mod:`unittest` --- Unit testing framework" @@ -295,23 +295,30 @@ msgstr "" #: ../Doc/library/unittest.rst:158 msgid "Command-Line Interface" -msgstr "" +msgstr "Interface en ligne de commande" #: ../Doc/library/unittest.rst:160 msgid "" "The unittest module can be used from the command line to run tests from " "modules, classes or even individual test methods::" msgstr "" +"Le module *unittest* est utilisable depuis la ligne de commande pour " +"exécuter des tests à partir de modules, de classes ou même de méthodes de " +"test individuelles: ::" #: ../Doc/library/unittest.rst:167 msgid "" "You can pass in a list with any combination of module names, and fully " "qualified class or method names." msgstr "" +"La commande accepte en argument une liste de n'importe quelle combinaison de " +"noms de modules et de noms de classes ou de méthodes entièrement qualifiés." #: ../Doc/library/unittest.rst:170 msgid "Test modules can be specified by file path as well::" msgstr "" +"Les modules de test peuvent également être spécifiés par un chemin de " +"fichier: ::" #: ../Doc/library/unittest.rst:174 msgid "" @@ -321,27 +328,40 @@ msgid "" "separators into '.'. If you want to execute a test file that isn't " "importable as a module you should execute the file directly instead." msgstr "" +"Cette fonctionnalité permet d'utiliser la complétion de l'interpréteur de " +"commandes pour spécifier le module de test. Le chemin est converti en nom de " +"module en supprimant le '.py' et en convertissant les séparateurs de chemin " +"en '.'. Si vous voulez exécuter un fichier test qui n'est pas importable en " +"tant que module, exécutez directement le fichier." #: ../Doc/library/unittest.rst:180 msgid "" "You can run tests with more detail (higher verbosity) by passing in the -v " "flag::" msgstr "" +"Pour obtenir plus de détails lors de l'exécution utilisez l'option `-v` " +"(plus de verbosité): ::" #: ../Doc/library/unittest.rst:184 msgid "" "When executed without arguments :ref:`unittest-test-discovery` is started::" msgstr "" +"Quand la commande est exécutée sans arguments :ref:`unittest-test-discovery` " +"est lancée: ::" #: ../Doc/library/unittest.rst:188 msgid "For a list of all the command-line options::" msgstr "" +"Pour afficher la liste de toutes les options de la commande utilisez " +"l'option `-h`: ::" #: ../Doc/library/unittest.rst:192 msgid "" "In earlier versions it was only possible to run individual test methods and " "not modules or classes." msgstr "" +"Dans les versions antérieures, il était seulement possible d'exécuter des " +"méthodes de test individuelles et non des modules ou des classes." #: ../Doc/library/unittest.rst:198 msgid "Command-line options" From 464c7acf4a53249a5df7326a0dc92d033bea3fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Mon, 5 Nov 2018 23:32:13 +0100 Subject: [PATCH 002/121] Poursuite de la traduction + corrections --- library/unittest.po | 50 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index c4347a0d9..c93a31463 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-09-15 21:52+0200\n" -"PO-Revision-Date: 2018-11-04 23:33+0100\n" +"PO-Revision-Date: 2018-11-05 22:48+0100\n" "Last-Translator: Lowic Mangin \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -304,7 +304,7 @@ msgid "" msgstr "" "Le module *unittest* est utilisable depuis la ligne de commande pour " "exécuter des tests à partir de modules, de classes ou même de méthodes de " -"test individuelles: ::" +"test individuelles : ::" #: ../Doc/library/unittest.rst:167 msgid "" @@ -318,7 +318,7 @@ msgstr "" msgid "Test modules can be specified by file path as well::" msgstr "" "Les modules de test peuvent également être spécifiés par un chemin de " -"fichier: ::" +"fichier : ::" #: ../Doc/library/unittest.rst:174 msgid "" @@ -329,10 +329,10 @@ msgid "" "importable as a module you should execute the file directly instead." msgstr "" "Cette fonctionnalité permet d'utiliser la complétion de l'interpréteur de " -"commandes pour spécifier le module de test. Le chemin est converti en nom de " -"module en supprimant le '.py' et en convertissant les séparateurs de chemin " -"en '.'. Si vous voulez exécuter un fichier test qui n'est pas importable en " -"tant que module, exécutez directement le fichier." +"commandes système *shell* pour spécifier le module de test. Le chemin est " +"converti en nom de module en supprimant le '.py' et en convertissant les " +"séparateurs de chemin en '.'. Si vous voulez exécuter un fichier test qui " +"n'est pas importable en tant que module, exécutez directement le fichier." #: ../Doc/library/unittest.rst:180 msgid "" @@ -365,11 +365,11 @@ msgstr "" #: ../Doc/library/unittest.rst:198 msgid "Command-line options" -msgstr "" +msgstr "Options de la ligne de commande" #: ../Doc/library/unittest.rst:200 msgid ":program:`unittest` supports these command-line options:" -msgstr "" +msgstr "Le programme : `unittest` gère ces options de la ligne de commande :" #: ../Doc/library/unittest.rst:206 msgid "" @@ -377,6 +377,10 @@ msgid "" "run. Output during a passing test is discarded. Output is echoed normally on " "test fail or error and is added to the failure messages." msgstr "" +"Les flux de sortie et d'erreur standard sont mis en mémoire tampon pendant " +"l'exécution des tests. Les résultats d'un test réussi ne sont pas pris en " +"compte. Un test en échec ou en erreur est affiché sur la sortie et est " +"ajouté aux messages d'erreur." #: ../Doc/library/unittest.rst:212 msgid "" @@ -384,15 +388,22 @@ msgid "" "then reports all the results so far. A second :kbd:`Control-C` raises the " "normal :exc:`KeyboardInterrupt` exception." msgstr "" +"Utiliser :kbd:`Control-C` pendant l'exécution des tests attend que le test " +"en cours se termine, puis affiche tous les résultats obtenus jusqu'ici. Une " +"seconde utilisation de :kbd:`Control-C` provoque l'exception normale :exc:" +"`KeyboardInterrupt`." #: ../Doc/library/unittest.rst:216 msgid "" "See `Signal Handling`_ for the functions that provide this functionality." msgstr "" +"Voir `Signal Handling`_ pour les fonctions qui utilisent cette " +"fonctionnalité." #: ../Doc/library/unittest.rst:220 msgid "Stop the test run on the first error or failure." msgstr "" +"Arrête l'exécution des tests lors du premier cas d'erreur ou défaillance." #: ../Doc/library/unittest.rst:224 msgid "" @@ -400,6 +411,10 @@ msgid "" "option may be used multiple times, in which case all test cases that match " "of the given patterns are included." msgstr "" +"Exécute uniquement les méthodes de test et les classes qui correspondent au " +"motif ou à la chaîne de caractères. Cette option peut être utilisée " +"plusieurs fois, auquel cas tous les cas de test qui correspondent aux motifs " +"donnés sont inclus." #: ../Doc/library/unittest.rst:228 msgid "" @@ -407,12 +422,17 @@ msgid "" "test name using :meth:`fnmatch.fnmatchcase`; otherwise simple case-sensitive " "substring matching is used." msgstr "" +"Les motifs qui contiennent un caractère de remplacement (``*``) sont " +"comparés au nom du test en utilisant :meth:`fnmatch.fnmatchcase` ; sinon, " +"une recherche simple de sous chaîne respectant la casse est faite." #: ../Doc/library/unittest.rst:232 msgid "" "Patterns are matched against the fully qualified test method name as " "imported by the test loader." msgstr "" +"Les motifs sont comparés au nom de la méthode de test complètement qualifiée " +"tel qu'importé par le chargeur de test." #: ../Doc/library/unittest.rst:235 msgid "" @@ -420,28 +440,34 @@ msgid "" "``bar_tests.SomeTest.test_foo``, but not ``bar_tests.FooTest." "test_something``." msgstr "" +"Par exemple, ``-k machin`` retient les tests ``machin_tests.UnTest." +"test_untruc``, ``truc_tests.UnTest.test_machin``, mais pas ``truc_tests." +"MachinTest.test_untruc``." #: ../Doc/library/unittest.rst:240 msgid "Show local variables in tracebacks." -msgstr "" +msgstr "Affiche les variables locales dans les traces d'appels." #: ../Doc/library/unittest.rst:242 msgid "The command-line options ``-b``, ``-c`` and ``-f`` were added." msgstr "" +"Les options de ligne de commande ``-b``, ``-c`` et ``-f`` ont été ajoutées." #: ../Doc/library/unittest.rst:245 msgid "The command-line option ``--locals``." -msgstr "" +msgstr "Ajout de l'option de ligne de commande ``--locals``." #: ../Doc/library/unittest.rst:248 msgid "The command-line option ``-k``." -msgstr "" +msgstr "Ajout de l'option de ligne de commande ``-k``." #: ../Doc/library/unittest.rst:251 msgid "" "The command line can also be used for test discovery, for running all of the " "tests in a project or just a subset." msgstr "" +"La ligne de commande peut également être utilisée pour découvrir les tests, " +"pour exécuter tous les tests dans un projet ou juste un sous-ensemble." #: ../Doc/library/unittest.rst:258 msgid "Test Discovery" From 5b0b4a031528dc7fb860af131a3126826337e7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Thu, 8 Nov 2018 23:18:47 +0100 Subject: [PATCH 003/121] =?UTF-8?q?Poursuite=20de=20la=20traduction=20jusq?= =?UTF-8?q?u'=C3=A0=20R=C3=A9utilisation=20d'ancien=20code=20de=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/unittest.po | 125 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 109 insertions(+), 16 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index c93a31463..82287e1f6 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-09-15 21:52+0200\n" -"PO-Revision-Date: 2018-11-05 22:48+0100\n" +"PO-Revision-Date: 2018-11-08 22:25+0100\n" "Last-Translator: Lowic Mangin \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -471,7 +471,7 @@ msgstr "" #: ../Doc/library/unittest.rst:258 msgid "Test Discovery" -msgstr "" +msgstr "Découverte des tests. " #: ../Doc/library/unittest.rst:262 msgid "" @@ -482,12 +482,20 @@ msgid "" "(this means that their filenames must be valid :ref:`identifiers " "`)." msgstr "" +"*Unittest* prend en charge une découverte simple des tests. Afin d'être " +"compatible avec le système de découverte de test, tous les fichiers de test " +"doivent être des :ref:`modules ` ou des :ref:`paquets ` (incluant des :term:`paquet-espace de noms `) " +"importables du répertoire du projet (cela signifie que leurs noms doivent " +"être des :ref:`identifiants ` valables)." #: ../Doc/library/unittest.rst:269 msgid "" "Test discovery is implemented in :meth:`TestLoader.discover`, but can also " "be used from the command line. The basic command-line usage is::" msgstr "" +"La découverte de test est implémentée dans :meth:`TestLoader.discover`, mais " +"peut également être utilisée depuis la ligne de commande. Par exemple : ::" #: ../Doc/library/unittest.rst:277 msgid "" @@ -495,26 +503,29 @@ msgid "" "unittest discover``. If you want to pass arguments to test discovery the " "``discover`` sub-command must be used explicitly." msgstr "" +"Comme raccourci, ``python -m unittest`` est l'équivalent de ``python -m " +"unittest discover``.Pour passer des arguments au système de découverte des " +"tests, la sous-commande ``discover`` doit être utilisé explicitement." #: ../Doc/library/unittest.rst:281 msgid "The ``discover`` sub-command has the following options:" -msgstr "" +msgstr "La sous-commande ``discover`` a les options suivantes : ::" #: ../Doc/library/unittest.rst:287 msgid "Verbose output" -msgstr "" +msgstr "Affichage plus détaillé" #: ../Doc/library/unittest.rst:291 msgid "Directory to start discovery (``.`` default)" -msgstr "" +msgstr "Répertoire racine pour démarrer la découverte (``.`` par défaut)." #: ../Doc/library/unittest.rst:295 msgid "Pattern to match test files (``test*.py`` default)" -msgstr "" +msgstr "Motif de détection des fichiers de test (``test*.py`` par défaut)" #: ../Doc/library/unittest.rst:299 msgid "Top level directory of project (defaults to start directory)" -msgstr "" +msgstr "Répertoire de premier niveau du projet (répertoire racine par défaut)" #: ../Doc/library/unittest.rst:301 msgid "" @@ -522,6 +533,9 @@ msgid "" "positional arguments in that order. The following two command lines are " "equivalent::" msgstr "" +"Les options :option:`-s`, :option:`-p`, et :option:`-t` sont passées en " +"arguments positionnels dans cet ordre. Les deux lignes de commande suivantes " +"sont équivalentes : ::" #: ../Doc/library/unittest.rst:308 msgid "" @@ -530,6 +544,10 @@ msgid "" "supply will then be imported and its location on the filesystem will be used " "as the start directory." msgstr "" +"En plus d'être un chemin, il est possible de passer un nom de paquet, par " +"exemple ``monprojet. souspackage.test``, comme répertoire racine. Le nom du " +"paquet fourni est alors importé et son emplacement sur le système de " +"fichiers est utilisé comme répertoire racine." #: ../Doc/library/unittest.rst:315 msgid "" @@ -538,6 +556,11 @@ msgid "" "into package names to import. For example :file:`foo/bar/baz.py` will be " "imported as ``foo.bar.baz``." msgstr "" +"Le mécanisme de découverte des tests les charge en les important. Une fois " +"que le système a trouvé tous les fichiers de test du répertoire de démarrage " +"spécifiés, il transforme les chemins en noms de paquets à importer. Par " +"exemple :file:`truc/bidule/machin.py` sera importé sous ``truc.bidule." +"machin``." #: ../Doc/library/unittest.rst:320 msgid "" @@ -545,6 +568,10 @@ msgid "" "different copy of the package then the import *could* happen from the wrong " "place. If this happens test discovery will warn you and exit." msgstr "" +"Si un paquet est installé globalement et que le mécanisme de découverte de " +"test est effectué sur une copie différente du paquet, l'importation *peut* " +"se produire à partir du mauvais endroit. Si cela arrive, le système émet un " +"avertissement et se termine." #: ../Doc/library/unittest.rst:324 msgid "" @@ -552,20 +579,28 @@ msgid "" "directory then discover assumes that whichever location it imports from is " "the location you intended, so you will not get the warning." msgstr "" +"Si vous donnez le répertoire racine sous la forme d'un nom de package plutôt " +"que d'un chemin d'accès à un répertoire, alors *discover* suppose que " +"l'emplacement à partir duquel il importe est l'emplacement que vous voulez, " +"vous ne verrez donc pas l'avertissement." #: ../Doc/library/unittest.rst:329 msgid "" "Test modules and packages can customize test loading and discovery by " "through the `load_tests protocol`_." msgstr "" +"Les modules de test et les packages peuvent adapter le chargement et la " +"découverte des tests en utilisant le protocole `load_tests protocol`_." #: ../Doc/library/unittest.rst:332 msgid "Test discovery supports :term:`namespace packages `." msgstr "" +"La découverte de test prend en charge :term:`les paquet-espace de noms " +"`." #: ../Doc/library/unittest.rst:339 msgid "Organizing test code" -msgstr "" +msgstr "Organiser le code de test" #: ../Doc/library/unittest.rst:341 msgid "" @@ -575,6 +610,12 @@ msgid "" "instances. To make your own test cases you must write subclasses of :class:" "`TestCase` or use :class:`FunctionTestCase`." msgstr "" +"Les éléments de base des tests unitaires sont les :dfn:`test cases` --- Des " +"scénarios uniques qui sont mis en place et exécutés pour vérifier leur " +"exactitude. Dans :mod:`unittest`, les cas de test sont représentés par des " +"instances de :class:`unittest.TestCase`. Pour créer vos propres cas de test, " +"vous devez écrire des sous-classes de :class:`TestCase` ou utiliser :class:" +"`FunctionTestCase`." #: ../Doc/library/unittest.rst:347 msgid "" @@ -582,6 +623,9 @@ msgid "" "contained, such that it can be run either in isolation or in arbitrary " "combination with any number of other test cases." msgstr "" +"Le code de test d'une instance de :class:`TestCase` doit être entièrement " +"autonome, de sorte qu'il puisse être exécuté soit de manière isolée, soit en " +"combinaison arbitraire avec un nombre quelconque d'autres cas de test." #: ../Doc/library/unittest.rst:351 msgid "" @@ -589,6 +633,9 @@ msgid "" "(i.e. a method whose name starts with ``test``) in order to perform specific " "testing code::" msgstr "" +"La sous-classe :class:`TestCase` la plus simple va tout bonnement " +"implémenter une méthode de test (c'est-à-dire une méthode dont le nom " +"commence par ``test``) afin d'exécuter un code de test spécifique : ::" #: ../Doc/library/unittest.rst:362 msgid "" @@ -598,6 +645,11 @@ msgid "" "will identify the test case as a :dfn:`failure`. Any other exceptions will " "be treated as :dfn:`errors`." msgstr "" +"Notez que pour tester quelque chose, on utilise l'une des méthodes :meth:" +"`assert\\*` fournies par la classe de base :class:`TestCase`. Si le test " +"échoue, une exception est levée avec un message explicatif, et :mod:" +"`unittest` identifie le cas de test comme un :dfn:`échec`. Toute autre " +"exception est traitée comme une :dfn:`erreur`." #: ../Doc/library/unittest.rst:368 msgid "" @@ -606,12 +658,19 @@ msgid "" "setUp`, which the testing framework will automatically call for every single " "test we run::" msgstr "" +"Les tests peuvent être nombreux et leur mise en place peut être répétitive. " +"Heureusement, on peut factoriser le code de mise en place en implémentant " +"une méthode appelée :meth:`~TestCase.setUp`, que le framework de test va " +"automatiquement appeler pour chaque test que le système lance : ::" #: ../Doc/library/unittest.rst:389 msgid "" "The order in which the various tests will be run is determined by sorting " "the test method names with respect to the built-in ordering for strings." msgstr "" +"L'ordre dans lequel les différents tests sont exécutés est déterminé en " +"triant les noms des méthodes de test en fonction de l'ordre de tri des " +"chaines de caractères ." #: ../Doc/library/unittest.rst:393 msgid "" @@ -619,18 +678,25 @@ msgid "" "running, the framework will consider the test to have suffered an error, and " "the test method will not be executed." msgstr "" +"Si la méthode :meth:`~TestCase.setUp` lève une exception pendant l'exécution " +"du test, le framework considère que le test a subi une erreur, et la méthode " +"test n'est pas exécuté." #: ../Doc/library/unittest.rst:397 msgid "" "Similarly, we can provide a :meth:`~TestCase.tearDown` method that tidies up " "after the test method has been run::" msgstr "" +"De même, on peut fournir une méthode :meth:`~TestCase.tearDown` qui nettoie " +"après que la méthode de test soit exécutée : ::" #: ../Doc/library/unittest.rst:409 msgid "" "If :meth:`~TestCase.setUp` succeeded, :meth:`~TestCase.tearDown` will be run " "whether the test method succeeded or not." msgstr "" +"Si :meth:`~TestCase.setUp` a réussi, :meth:`~TestCase.tearDown` est " +"exécutée, que la méthode de test ait réussi ou non." #: ../Doc/library/unittest.rst:412 msgid "" @@ -640,22 +706,35 @@ msgid "" "`~TestCase.tearDown`, and :meth:`~TestCase.__init__` will be called once per " "test." msgstr "" +"Un tel environnement de travail pour le code de test s'appelle une :dfn:" +"`fixture`. Une nouvelle instance de *TestCase* est créée sous la forme d'un " +"dispositif de test unique utilisé pour exécuter chaque méthode de test " +"individuelle. Ainsi :meth:`~TestCase.setUp`, :meth:`~TestCase.tearDown`, " +"et :meth:`~TestCase.__init__` ne sont appelées qu'une fois par test." #: ../Doc/library/unittest.rst:418 msgid "" "It is recommended that you use TestCase implementations to group tests " "together according to the features they test. :mod:`unittest` provides a " -"mechanism for this: the :dfn:`test suite`, represented by :mod:`unittest`'s :" -"class:`TestSuite` class. In most cases, calling :func:`unittest.main` will " -"do the right thing and collect all the module's test cases for you and " -"execute them." -msgstr "" +"mechanism for this: the :dfn:`suite de tests`, represented by :mod:" +"`unittest`'s :class:`TestSuite` class. In most cases, calling :func:" +"`unittest.main` will do the right thing and collect all the module's test " +"cases for you and execute them." +msgstr "" +"Il est recommandé d'utiliser *TestCase* pour regrouper les tests en fonction " +"des fonctionnalités qu'ils testent. :mod:`unittest` fournit un mécanisme " +"pour cela : la :dfn:`test suite`, représentée par :class:`TestSuite` du " +"module :mod:`unittest`. Dans la plupart des cas, appeler :func:`unittest." +"main` fait la bonne chose et rassemble tous les cas de test du module pour " +"vous et les exécute." #: ../Doc/library/unittest.rst:425 msgid "" "However, should you want to customize the building of your test suite, you " "can do it yourself::" msgstr "" +"Cependant, si vous voulez personnaliser la construction de votre suite de " +"tests, vous pourrez le faire vous-même : ::" #: ../Doc/library/unittest.rst:438 msgid "" @@ -664,44 +743,58 @@ msgid "" "are several advantages to placing the test code in a separate module, such " "as :file:`test_widget.py`:" msgstr "" +"Vous pouvez placer les définitions des cas de test et des suites de test " +"dans le même module que le code à tester (tel que :file:`composant.py`), " +"mais il y a plusieurs avantages à placer le code test dans un module séparé, " +"tel que :file:`test_composant.py` :" #: ../Doc/library/unittest.rst:443 msgid "The test module can be run standalone from the command line." msgstr "" +"Le module de test peut être exécuté indépendamment depuis la ligne de " +"commande." #: ../Doc/library/unittest.rst:445 msgid "The test code can more easily be separated from shipped code." -msgstr "" +msgstr "Le code de test est plus facilement séparable du code livré." #: ../Doc/library/unittest.rst:447 msgid "" "There is less temptation to change test code to fit the code it tests " "without a good reason." msgstr "" +"La tentation est moins grande de changer le code de test pour l'adapter au " +"code qu'il teste sans avoir une bonne raison." #: ../Doc/library/unittest.rst:450 msgid "" "Test code should be modified much less frequently than the code it tests." msgstr "" +"Le code de test doit être modifié beaucoup moins souvent que le code qu'il " +"teste." #: ../Doc/library/unittest.rst:452 msgid "Tested code can be refactored more easily." -msgstr "" +msgstr "Le code testé peut être réusiné plus facilement." #: ../Doc/library/unittest.rst:454 msgid "" "Tests for modules written in C must be in separate modules anyway, so why " "not be consistent?" msgstr "" +"Les tests pour les modules écrits en C doivent de toute façon être dans des " +"modules séparés, alors pourquoi ne pas être cohérents ?" #: ../Doc/library/unittest.rst:457 msgid "" "If the testing strategy changes, there is no need to change the source code." msgstr "" +"Si la stratégie de test change, il n'est pas nécessaire de changer le code " +"source." #: ../Doc/library/unittest.rst:463 msgid "Re-using old test code" -msgstr "" +msgstr "Réutilisation d'ancien code de test" #: ../Doc/library/unittest.rst:465 msgid "" From 6c4036d66ced2deb79d3fb616472b77408100054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Mon, 12 Nov 2018 21:37:44 +0100 Subject: [PATCH 004/121] corrections des remarques --- library/unittest.po | 66 ++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 82287e1f6..8a5f8a7ae 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -329,8 +329,8 @@ msgid "" "importable as a module you should execute the file directly instead." msgstr "" "Cette fonctionnalité permet d'utiliser la complétion de l'interpréteur de " -"commandes système *shell* pour spécifier le module de test. Le chemin est " -"converti en nom de module en supprimant le '.py' et en convertissant les " +"commandes système (*le shell*) pour spécifier le module de test. Le chemin " +"est converti en nom de module en supprimant le '.py' et en convertissant les " "séparateurs de chemin en '.'. Si vous voulez exécuter un fichier test qui " "n'est pas importable en tant que module, exécutez directement le fichier." @@ -485,9 +485,9 @@ msgstr "" "*Unittest* prend en charge une découverte simple des tests. Afin d'être " "compatible avec le système de découverte de test, tous les fichiers de test " "doivent être des :ref:`modules ` ou des :ref:`paquets ` (incluant des :term:`paquet-espace de noms `) " -"importables du répertoire du projet (cela signifie que leurs noms doivent " -"être des :ref:`identifiants ` valables)." +"packages>` (incluant des :term:`paquets-espaces de noms `) importables du répertoire du projet (cela signifie que leurs noms " +"doivent être des :ref:`identifiants ` valables)." #: ../Doc/library/unittest.rst:269 msgid "" @@ -505,7 +505,7 @@ msgid "" msgstr "" "Comme raccourci, ``python -m unittest`` est l'équivalent de ``python -m " "unittest discover``.Pour passer des arguments au système de découverte des " -"tests, la sous-commande ``discover`` doit être utilisé explicitement." +"tests, la sous-commande ``discover`` doit être utilisée explicitement." #: ../Doc/library/unittest.rst:281 msgid "The ``discover`` sub-command has the following options:" @@ -533,9 +533,9 @@ msgid "" "positional arguments in that order. The following two command lines are " "equivalent::" msgstr "" -"Les options :option:`-s`, :option:`-p`, et :option:`-t` sont passées en " -"arguments positionnels dans cet ordre. Les deux lignes de commande suivantes " -"sont équivalentes : ::" +"Les options :option:`-s`, :option:`-p`, et :option:`-t` peuvent être passées " +"en arguments positionnels dans cet ordre. Les deux lignes de commande " +"suivantes sont équivalentes : ::" #: ../Doc/library/unittest.rst:308 msgid "" @@ -545,7 +545,7 @@ msgid "" "as the start directory." msgstr "" "En plus d'être un chemin, il est possible de passer un nom de paquet, par " -"exemple ``monprojet. souspackage.test``, comme répertoire racine. Le nom du " +"exemple ``monprojet.souspaquet.test``, comme répertoire racine. Le nom du " "paquet fourni est alors importé et son emplacement sur le système de " "fichiers est utilisé comme répertoire racine." @@ -556,10 +556,10 @@ msgid "" "into package names to import. For example :file:`foo/bar/baz.py` will be " "imported as ``foo.bar.baz``." msgstr "" -"Le mécanisme de découverte des tests les charge en les important. Une fois " -"que le système a trouvé tous les fichiers de test du répertoire de démarrage " -"spécifiés, il transforme les chemins en noms de paquets à importer. Par " -"exemple :file:`truc/bidule/machin.py` sera importé sous ``truc.bidule." +"Le mécanisme de découverte charge les tests en les important. Une fois que " +"le système a trouvé tous les fichiers de test du répertoire de démarrage " +"spécifié, il transforme les chemins en noms de paquets à importer. Par " +"exemple :file:`truc/bidule/machin.py` est importé sous ``truc.bidule." "machin``." #: ../Doc/library/unittest.rst:320 @@ -579,7 +579,7 @@ msgid "" "directory then discover assumes that whichever location it imports from is " "the location you intended, so you will not get the warning." msgstr "" -"Si vous donnez le répertoire racine sous la forme d'un nom de package plutôt " +"Si vous donnez le répertoire racine sous la forme d'un nom de paquet plutôt " "que d'un chemin d'accès à un répertoire, alors *discover* suppose que " "l'emplacement à partir duquel il importe est l'emplacement que vous voulez, " "vous ne verrez donc pas l'avertissement." @@ -589,13 +589,13 @@ msgid "" "Test modules and packages can customize test loading and discovery by " "through the `load_tests protocol`_." msgstr "" -"Les modules de test et les packages peuvent adapter le chargement et la " +"Les modules de test et les paquets peuvent adapter le chargement et la " "découverte des tests en utilisant le protocole `load_tests protocol`_." #: ../Doc/library/unittest.rst:332 msgid "Test discovery supports :term:`namespace packages `." msgstr "" -"La découverte de test prend en charge :term:`les paquet-espace de noms " +"La découverte de test prend en charge :term:`les paquets-espaces de noms " "`." #: ../Doc/library/unittest.rst:339 @@ -611,11 +611,11 @@ msgid "" "`TestCase` or use :class:`FunctionTestCase`." msgstr "" "Les éléments de base des tests unitaires sont les :dfn:`test cases` --- Des " -"scénarios uniques qui sont mis en place et exécutés pour vérifier leur " -"exactitude. Dans :mod:`unittest`, les cas de test sont représentés par des " -"instances de :class:`unittest.TestCase`. Pour créer vos propres cas de test, " -"vous devez écrire des sous-classes de :class:`TestCase` ou utiliser :class:" -"`FunctionTestCase`." +"scénarios uniques qui sont mis en place et exécutés pour vérifier qu'ils " +"sont corrects. Dans :mod:`unittest`, les cas de test sont représentés par " +"des instances de :class:`unittest.TestCase`. Pour créer vos propres cas de " +"test, vous devez écrire des sous-classes de :class:`TestCase` ou utiliser :" +"class:`FunctionTestCase`." #: ../Doc/library/unittest.rst:347 msgid "" @@ -633,7 +633,7 @@ msgid "" "(i.e. a method whose name starts with ``test``) in order to perform specific " "testing code::" msgstr "" -"La sous-classe :class:`TestCase` la plus simple va tout bonnement " +"La sous-classe :class:`TestCase` la plus simple va tout simplement " "implémenter une méthode de test (c'est-à-dire une méthode dont le nom " "commence par ``test``) afin d'exécuter un code de test spécifique : ::" @@ -660,8 +660,8 @@ msgid "" msgstr "" "Les tests peuvent être nombreux et leur mise en place peut être répétitive. " "Heureusement, on peut factoriser le code de mise en place en implémentant " -"une méthode appelée :meth:`~TestCase.setUp`, que le framework de test va " -"automatiquement appeler pour chaque test que le système lance : ::" +"une méthode appelée :meth:`~TestCase.setUp`, que le système de test appelle " +"automatiquement pour chaque test exécuté : ::" #: ../Doc/library/unittest.rst:389 msgid "" @@ -669,7 +669,7 @@ msgid "" "the test method names with respect to the built-in ordering for strings." msgstr "" "L'ordre dans lequel les différents tests sont exécutés est déterminé en " -"triant les noms des méthodes de test en fonction de l'ordre de tri des " +"classant les noms des méthodes de test en fonction des relation d'ordre des " "chaines de caractères ." #: ../Doc/library/unittest.rst:393 @@ -679,8 +679,8 @@ msgid "" "the test method will not be executed." msgstr "" "Si la méthode :meth:`~TestCase.setUp` lève une exception pendant l'exécution " -"du test, le framework considère que le test a subi une erreur, et la méthode " -"test n'est pas exécuté." +"du test, le système considère que le test a subi une erreur, et la méthode " +"test n'est pas exécutée." #: ../Doc/library/unittest.rst:397 msgid "" @@ -688,7 +688,7 @@ msgid "" "after the test method has been run::" msgstr "" "De même, on peut fournir une méthode :meth:`~TestCase.tearDown` qui nettoie " -"après que la méthode de test soit exécutée : ::" +"après l'exécution de la méthode de test : ::" #: ../Doc/library/unittest.rst:409 msgid "" @@ -709,8 +709,8 @@ msgstr "" "Un tel environnement de travail pour le code de test s'appelle une :dfn:" "`fixture`. Une nouvelle instance de *TestCase* est créée sous la forme d'un " "dispositif de test unique utilisé pour exécuter chaque méthode de test " -"individuelle. Ainsi :meth:`~TestCase.setUp`, :meth:`~TestCase.tearDown`, " -"et :meth:`~TestCase.__init__` ne sont appelées qu'une fois par test." +"individuelle. Ainsi :meth:`~TestCase.setUp`, :meth:`~TestCase.tearDown` et :" +"meth:`~TestCase.__init__` ne sont appelées qu'une fois par test." #: ../Doc/library/unittest.rst:418 msgid "" @@ -723,7 +723,7 @@ msgid "" msgstr "" "Il est recommandé d'utiliser *TestCase* pour regrouper les tests en fonction " "des fonctionnalités qu'ils testent. :mod:`unittest` fournit un mécanisme " -"pour cela : la :dfn:`test suite`, représentée par :class:`TestSuite` du " +"pour cela : la :dfn:`suite de tests`, représentée par :class:`TestSuite` du " "module :mod:`unittest`. Dans la plupart des cas, appeler :func:`unittest." "main` fait la bonne chose et rassemble tous les cas de test du module pour " "vous et les exécute." @@ -734,7 +734,7 @@ msgid "" "can do it yourself::" msgstr "" "Cependant, si vous voulez personnaliser la construction de votre suite de " -"tests, vous pourrez le faire vous-même : ::" +"tests, vous pouvez le faire vous-même : ::" #: ../Doc/library/unittest.rst:438 msgid "" From 90917c551d6c4fd3288ca34a7d9091c73f40efbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Mon, 12 Nov 2018 22:59:23 +0100 Subject: [PATCH 005/121] =?UTF-8?q?poursuite=20de=20la=20traduction=20jusq?= =?UTF-8?q?u'=C3=A0=20Cas=20de=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/unittest.po | 83 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 69 insertions(+), 14 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 8a5f8a7ae..4816cff80 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-09-15 21:52+0200\n" -"PO-Revision-Date: 2018-11-08 22:25+0100\n" +"PO-Revision-Date: 2018-11-12 22:20+0100\n" "Last-Translator: Lowic Mangin \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -802,6 +802,9 @@ msgid "" "to run from :mod:`unittest`, without converting every old test function to " "a :class:`TestCase` subclass." msgstr "" +"Certains utilisateurs constatent qu'ils ont du code de test existant qu'ils " +"souhaitent exécuter à partir de :mod:`unittest`, sans convertir chaque " +"ancienne fonction de test en une sous-classe de :class:`TestCase`." #: ../Doc/library/unittest.rst:469 msgid "" @@ -809,16 +812,23 @@ msgid "" "This subclass of :class:`TestCase` can be used to wrap an existing test " "function. Set-up and tear-down functions can also be provided." msgstr "" +"Pour cette raison, :mod:`unittest` fournit une classe :class:" +"`FunctionTestCase`. Cette sous-classe de :class:`TestCase` peut être " +"utilisée pour encapsuler une fonction de test existante. Des fonctions de " +"mise en place (*setUp*) et de démantèlement (*tearDown*) peuvent également " +"être fournies." #: ../Doc/library/unittest.rst:473 msgid "Given the following test function::" -msgstr "" +msgstr "Étant donné la fonction de test suivante : ::" #: ../Doc/library/unittest.rst:480 msgid "" "one can create an equivalent test case instance as follows, with optional " "set-up and tear-down methods::" msgstr "" +"on peut créer une instance de scénario de test équivalente , avec des " +"méthodes optionnelles de mise en place et de démantèlement : ::" #: ../Doc/library/unittest.rst:489 msgid "" @@ -827,6 +837,11 @@ msgid "" "is not recommended. Taking the time to set up proper :class:`TestCase` " "subclasses will make future test refactorings infinitely easier." msgstr "" +"Même si la classe :class:`FunctionTestCase` peut être utilisée pour " +"convertir rapidement une base de test existante vers un système basé sur :" +"mod:`unittest`. Cette approche n'est pas recommandée. Prendre le temps de " +"bien configurer les sous-classes de :class:`TestCase` simplifiera " +"considérablement les futurs réusinages des tests." #: ../Doc/library/unittest.rst:494 msgid "" @@ -835,10 +850,15 @@ msgid "" "class that can automatically build :class:`unittest.TestSuite` instances " "from the existing :mod:`doctest`\\ -based tests." msgstr "" +"Dans certains cas, les tests déjà existants ont pu être écrits avec le " +"module :mod:`doctest`. Dans ce cas, :mod:`doctest` fournit une classe :" +"class:`DocTestSuite` qui peut construire automatiquement des instances de la " +"classe :class:`unittest.TestSuite` depuis des tests basés sur le module :mod:" +"`doctest`." #: ../Doc/library/unittest.rst:503 msgid "Skipping tests and expected failures" -msgstr "" +msgstr "Ignorer les tests et les erreurs prévisibles." #: ../Doc/library/unittest.rst:507 msgid "" @@ -847,34 +867,46 @@ msgid "" "a test that is broken and will fail, but shouldn't be counted as a failure " "on a :class:`TestResult`." msgstr "" +"*Unittest* permet d'ignorer des méthodes de test individuelles et même des " +"classes entières de tests. De plus, il prend en charge le marquage d'un test " +"comme étant une \"erreur prévue\". Un test qui est cassé et qui échoue, mais " +"qui ne doit pas être considéré comme un échec dans la classe :class:" +"`TestResult`." #: ../Doc/library/unittest.rst:512 msgid "" "Skipping a test is simply a matter of using the :func:`skip` :term:" "`decorator` or one of its conditional variants." msgstr "" +"Ignorer un test consiste à utiliser la fonction :func:`skip` qui est un :" +"term:`decorator` ou une de ses variantes conditionnelles." #: ../Doc/library/unittest.rst:515 msgid "Basic skipping looks like this::" -msgstr "" +msgstr "Un exemple de tests à ignorer : ::" #: ../Doc/library/unittest.rst:534 msgid "This is the output of running the example above in verbose mode::" msgstr "" +"Ceci est le résultat de l'exécution de l'exemple ci-dessus en mode " +"verbeux : ::" #: ../Doc/library/unittest.rst:545 msgid "Classes can be skipped just like methods::" -msgstr "" +msgstr "Les classes peuvent être ignorées tout comme les méthodes : ::" #: ../Doc/library/unittest.rst:552 msgid "" ":meth:`TestCase.setUp` can also skip the test. This is useful when a " "resource that needs to be set up is not available." msgstr "" +"La méthode :meth:`TestCase.setUp` permet également d'ignorer le test. Ceci " +"est utile lorsqu'une ressource qui doit être configurée n'est pas disponible." #: ../Doc/library/unittest.rst:555 msgid "Expected failures use the :func:`expectedFailure` decorator. ::" msgstr "" +"Les erreurs prévisibles utilisent le décorateur :func:`expectedFailure` : ::" #: ../Doc/library/unittest.rst:562 msgid "" @@ -882,40 +914,52 @@ msgid "" "calls :func:`skip` on the test when it wants it to be skipped. This " "decorator skips the test unless the passed object has a certain attribute::" msgstr "" +"Il est facile de faire ses propres décorateurs en créant un décorateur qui " +"appelle :func:`skip` sur le test que vous voulez ignoré. Par exemple, ce " +"décorateur ignore le test à moins que l'objet passé ne possède un certain " +"attribut : ::" #: ../Doc/library/unittest.rst:571 msgid "The following decorators implement test skipping and expected failures:" msgstr "" +"Les décorateurs suivants implémentent le système d'omission des tests et les " +"erreurs prévisibles : ::" #: ../Doc/library/unittest.rst:575 msgid "" "Unconditionally skip the decorated test. *reason* should describe why the " "test is being skipped." msgstr "" +"Ignore sans condition le test décoré. *La raison* doit décrire la raison " +"pour laquelle le test est omis." #: ../Doc/library/unittest.rst:580 msgid "Skip the decorated test if *condition* is true." -msgstr "" +msgstr "Ignore le test décoré si la *condition* est vrai." #: ../Doc/library/unittest.rst:584 msgid "Skip the decorated test unless *condition* is true." -msgstr "" +msgstr "Ignore le test décoré sauf si la *condition* est vrai." #: ../Doc/library/unittest.rst:588 msgid "" "Mark the test as an expected failure. If the test fails when run, the test " "is not counted as a failure." msgstr "" +"Marque le test comme étant un échec prévu. Si le test échoue lors de son " +"exécution, il n'est pas considéré comme étant en échec." #: ../Doc/library/unittest.rst:593 msgid "This exception is raised to skip a test." -msgstr "" +msgstr "Cette exception est levée pour ignorer un test." #: ../Doc/library/unittest.rst:595 msgid "" "Usually you can use :meth:`TestCase.skipTest` or one of the skipping " "decorators instead of raising this directly." msgstr "" +"Habituellement, on utilise :meth:`TestCase.skipTest` ou l'un des décorateurs " +"d'omission au lieu de le lever une exception directement." #: ../Doc/library/unittest.rst:598 msgid "" @@ -924,10 +968,14 @@ msgid "" "setUpClass` or :meth:`~TestCase.tearDownClass` run. Skipped modules will not " "have :func:`setUpModule` or :func:`tearDownModule` run." msgstr "" +"Les tests ignorés n'ont pas :meth:`~TestCase.setUp` ou :meth:`~TestCase." +"tearDown` d'exécutés. Les classes ignorées n'ont pas :meth:`~TestCase." +"setUpClass` ou :meth:`~TestCase.tearDownClass` d'exécutés. Les modules " +"sautés n'ont pas :func:`setUpModule` ou :func:`tearDownModule` d'exécutés." #: ../Doc/library/unittest.rst:606 msgid "Distinguishing test iterations using subtests" -msgstr "" +msgstr "Distinguer les itérations de test à l'aide de sous-tests" #: ../Doc/library/unittest.rst:610 msgid "" @@ -935,14 +983,18 @@ msgid "" "instance some parameters, unittest allows you to distinguish them inside the " "body of a test method using the :meth:`~TestCase.subTest` context manager." msgstr "" +"Lorsque certains de vos tests ne diffèrent que par de très petites " +"différences. Par exemple certains paramètres. *unittest* vous permet de les " +"distinguer en utilisant le gestionnaire de contexte :meth:`~TestCase." +"subTest` dans le corps d'une méthode de test." #: ../Doc/library/unittest.rst:614 msgid "For example, the following test::" -msgstr "" +msgstr "Par exemple, le test suivant : ::" #: ../Doc/library/unittest.rst:626 msgid "will produce the following output::" -msgstr "" +msgstr "produit le résultat suivant : ::" #: ../Doc/library/unittest.rst:652 msgid "" @@ -950,18 +1002,21 @@ msgid "" "the error would be less easy to diagnose because the value of ``i`` wouldn't " "be displayed::" msgstr "" +"Sans l'utilisation d'un sous-test, l'exécution se termine après le premier " +"échec, et l'erreur est moins facile à diagnostiquer car la valeur de ``i`` " +"ne s'affiche pas : ::" #: ../Doc/library/unittest.rst:668 msgid "Classes and functions" -msgstr "" +msgstr "Classes et fonctions" #: ../Doc/library/unittest.rst:670 msgid "This section describes in depth the API of :mod:`unittest`." -msgstr "" +msgstr "Cette section décrit en détail l'API de :mod:`unittest`." #: ../Doc/library/unittest.rst:676 msgid "Test cases" -msgstr "" +msgstr "Cas de tests" #: ../Doc/library/unittest.rst:680 msgid "" From 6043f9f6b874dd95bf7db7e41e61fdf994471597 Mon Sep 17 00:00:00 2001 From: Bousquie Pierre Date: Thu, 15 Nov 2018 23:29:11 +0100 Subject: [PATCH 006/121] =?UTF-8?q?Ajout=20de=20r=C3=A9usinage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La traduction de "refactoring" en vigueur au quebec https://fr.wikipedia.org/wiki/R%C3%A9usinage_de_code#cite_note-1 --- dict | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dict b/dict index fa1a8e272..5fe30ab0f 100644 --- a/dict +++ b/dict @@ -26,6 +26,9 @@ déserialisés déserialiseur déserialiseurs d'itérateurs +réusiné +réusinage +réusinages encodable Farrugia finaliseur From 4a0de94b243b43f0ac5f229b6226c566802ac8d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Tue, 20 Nov 2018 23:28:27 +0100 Subject: [PATCH 007/121] corrections + poursuite de la traduction jusqu'aux 'assert' --- library/unittest.po | 101 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 86 insertions(+), 15 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 4816cff80..98ff23de0 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-09-15 21:52+0200\n" -"PO-Revision-Date: 2018-11-12 22:20+0100\n" +"PO-Revision-Date: 2018-11-20 23:16+0100\n" "Last-Translator: Lowic Mangin \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -612,10 +612,10 @@ msgid "" msgstr "" "Les éléments de base des tests unitaires sont les :dfn:`test cases` --- Des " "scénarios uniques qui sont mis en place et exécutés pour vérifier qu'ils " -"sont corrects. Dans :mod:`unittest`, les cas de test sont représentés par " -"des instances de :class:`unittest.TestCase`. Pour créer vos propres cas de " -"test, vous devez écrire des sous-classes de :class:`TestCase` ou utiliser :" -"class:`FunctionTestCase`." +"sont corrects. Dans :mod:`unittest`, les scénarios de test sont représentés " +"par des instances de :class:`unittest.TestCase`. Pour créer vos propres " +"scénarios de test, vous devez écrire des sous-classes de :class:`TestCase` " +"ou utiliser :class:`FunctionTestCase`." #: ../Doc/library/unittest.rst:347 msgid "" @@ -625,7 +625,7 @@ msgid "" msgstr "" "Le code de test d'une instance de :class:`TestCase` doit être entièrement " "autonome, de sorte qu'il puisse être exécuté soit de manière isolée, soit en " -"combinaison arbitraire avec un nombre quelconque d'autres cas de test." +"combinaison arbitraire avec un nombre quelconque d'autres scénarios de test." #: ../Doc/library/unittest.rst:351 msgid "" @@ -946,8 +946,8 @@ msgid "" "Mark the test as an expected failure. If the test fails when run, the test " "is not counted as a failure." msgstr "" -"Marque le test comme étant un échec prévu. Si le test échoue lors de son " -"exécution, il n'est pas considéré comme étant en échec." +"Marque le test comme étant un erreur attendue. Si le test échoue lors de " +"son exécution, il n'est pas considéré comme étant en échec." #: ../Doc/library/unittest.rst:593 msgid "This exception is raised to skip a test." @@ -984,7 +984,7 @@ msgid "" "body of a test method using the :meth:`~TestCase.subTest` context manager." msgstr "" "Lorsque certains de vos tests ne diffèrent que par de très petites " -"différences. Par exemple certains paramètres. *unittest* vous permet de les " +"différences, par exemple certains paramètres; *unittest* vous permet de les " "distinguer en utilisant le gestionnaire de contexte :meth:`~TestCase." "subTest` dans le corps d'une méthode de test." @@ -1016,7 +1016,7 @@ msgstr "Cette section décrit en détail l'API de :mod:`unittest`." #: ../Doc/library/unittest.rst:676 msgid "Test cases" -msgstr "Cas de tests" +msgstr "Scénarios de tests" #: ../Doc/library/unittest.rst:680 msgid "" @@ -1027,6 +1027,13 @@ msgid "" "drive the tests, and methods that the test code can use to check for and " "report various kinds of failure." msgstr "" +"Les instances de la classe :class:`TestCase` représentent des tests logiques " +"unitaires dans l'univers :mod:`unittest`. Cette classe est conçue pour être " +"utilisée comme classe de base. Les scénarios de tests sont à implémenter en " +"héritant de cette classe. La classe implémente l'interface nécessaire au " +"lanceur de test pour lui permettre de les exécuter ainsi que les méthodes " +"que le code de test peut utiliser pour vérifier et signaler les différents " +"types d'erreurs." #: ../Doc/library/unittest.rst:687 msgid "" @@ -1034,6 +1041,10 @@ msgid "" "named *methodName*. In most uses of :class:`TestCase`, you will neither " "change the *methodName* nor reimplement the default ``runTest()`` method." msgstr "" +"Chaque instance de la classe :class:`TestCase` exécutera une seule méthode " +"de base : La méthode nommée *methodName* . Dans la plupart des utilisations " +"de la classe :class:`TestCase`, vous n'avez pas à changer le nom de la " +"méthode, ni à réimplémenter la méthode ``runTest()``." #: ../Doc/library/unittest.rst:692 msgid "" @@ -1041,6 +1052,9 @@ msgid "" "*methodName*. This makes it easier to experiment with :class:`TestCase` from " "the interactive interpreter." msgstr "" +"La classe :class:`TestCase` peut désormais être utilisée sans passer de " +"paramètre *methodName*. Cela facilite l'usage de :class:`TestCase` dans " +"l'interpréteur interactif." #: ../Doc/library/unittest.rst:697 msgid "" @@ -1049,10 +1063,15 @@ msgid "" "and report failures, and some inquiry methods allowing information about the " "test itself to be gathered." msgstr "" +"Les instances de la classe :class:`TestCase` fournissent trois groupes de " +"méthodes : un groupe utilisé pour exécuter le test, un autre utilisé par " +"l'implémentation du test pour vérifier les conditions et signaler les " +"échecs, et quelques méthodes de recherche permettant de recueillir des " +"informations sur le test lui-même." #: ../Doc/library/unittest.rst:702 msgid "Methods in the first group (running the test) are:" -msgstr "" +msgstr "Les méthodes du premier groupe (exécution du test) sont :" #: ../Doc/library/unittest.rst:706 msgid "" @@ -1061,6 +1080,11 @@ msgid "" "`SkipTest`, any exception raised by this method will be considered an error " "rather than a test failure. The default implementation does nothing." msgstr "" +"Méthode appelée pour réaliser la mise en place du test. Elle est exécutée " +"immédiatement avant l'appel de la méthode de test ; à l'exception de :exc:" +"`AssertionError` ou :exc:`SkipTest`, toute exception levée par cette méthode " +"est considérée une erreur et non pas comme un échec du test. " +"L'implémentation par défaut ne fait rien." #: ../Doc/library/unittest.rst:714 msgid "" @@ -1074,6 +1098,16 @@ msgid "" "the :meth:`setUp` succeeds, regardless of the outcome of the test method. " "The default implementation does nothing." msgstr "" +"Méthode appelée immédiatement après l'appel de la méthode de test et " +"l'enregistrement du résultat. Elle est appelée même si la méthode de test a " +"levé une exception, de sorte que l'implémentation dans les sous-classes de " +"contrôles d'état interne à la classe doit être fait avec précaution. Toute " +"exception, autre que :exc:`AssertionError` ou :exc:`SkipTest`, levée par " +"cette méthode est considérée comme une erreur supplémentaire plutôt que " +"comme un échec du test (augmentant ainsi le nombre total des erreurs " +"signalées). Cette méthode est appelée uniquement si l'exécution de :meth:" +"`setUp` est réussie quel que soit le résultat de la méthode de test. " +"L'implémentation par défaut ne fait rien." #: ../Doc/library/unittest.rst:727 msgid "" @@ -1081,10 +1115,13 @@ msgid "" "``setUpClass`` is called with the class as the only argument and must be " "decorated as a :func:`classmethod`::" msgstr "" +"Méthode de classe appelée avant l'exécution des tests dans la classe en " +"question. ``setUpClass`` est appelé avec la classe comme seul argument et " +"doit être décoré comme une :func:`classmethod` : ::" #: ../Doc/library/unittest.rst:735 ../Doc/library/unittest.rst:750 msgid "See `Class and Module Fixtures`_ for more details." -msgstr "" +msgstr "Voir `Class and Module Fixtures`_ pour plus de détails." #: ../Doc/library/unittest.rst:742 msgid "" @@ -1092,6 +1129,9 @@ msgid "" "``tearDownClass`` is called with the class as the only argument and must be " "decorated as a :meth:`classmethod`::" msgstr "" +"Méthode de classe appelée après l'exécution des tests de la classe en " +"question. ``tearDownClass`` est appelé avec la classe comme seul argument et " +"doit être décoré comme une :meth:`classmethod` : ::" #: ../Doc/library/unittest.rst:757 msgid "" @@ -1100,23 +1140,35 @@ msgid "" "object is created (by calling the :meth:`defaultTestResult` method) and " "used. The result object is returned to :meth:`run`'s caller." msgstr "" +"Exécute le test, en collectant le résultat dans l'objet :class:`TestResult` " +"passé comme *result*. Si *result* est omis ou vaut ``None``, un objet " +"temporaire de résultat est créé (en appelant la méthode :meth:" +"`defaultTestResult`) et utilisé. L'objet résultat est renvoyé à l'appelant " +"de :meth:`run`." #: ../Doc/library/unittest.rst:763 msgid "" "The same effect may be had by simply calling the :class:`TestCase` instance." msgstr "" +"Le même effet peut être obtenu en appelant simplement l'instance :class:" +"`TestCase`." #: ../Doc/library/unittest.rst:766 msgid "" "Previous versions of ``run`` did not return the result. Neither did calling " "an instance." msgstr "" +"Les versions précédentes de ``run`` ne renvoyaient pas le résultat. Pas plus " +"que l'appel d'une instance." #: ../Doc/library/unittest.rst:772 msgid "" "Calling this during a test method or :meth:`setUp` skips the current test. " "See :ref:`unittest-skipping` for more information." msgstr "" +"Appeler cette fonction pendant l'exécution d'une méthode de test ou de :meth:" +"`setUp` permet d'ignorer le test en cours. Voir :ref:`unittest-skipping` " +"pour plus d'informations." #: ../Doc/library/unittest.rst:780 msgid "" @@ -1124,16 +1176,22 @@ msgid "" "subtest. *msg* and *params* are optional, arbitrary values which are " "displayed whenever a subtest fails, allowing you to identify them clearly." msgstr "" +"Renvoie un gestionnaire de contexte qui exécute le bloc de code du contexte " +"comme un sous-test. *msg* et *params* sont des valeurs optionnelles et " +"arbitraires qui sont affichées chaque fois qu'un sous-test échoue, " +"permettant de les identifier clairement." #: ../Doc/library/unittest.rst:785 msgid "" "A test case can contain any number of subtest declarations, and they can be " "arbitrarily nested." msgstr "" +"Un scénario de test peut contenir un nombre quelconque de déclarations de " +"sous-test, et elles peuvent être imbriquées librement." #: ../Doc/library/unittest.rst:788 msgid "See :ref:`subtests` for more information." -msgstr "" +msgstr "Voir :ref:`subtests` pour plus d'informations." #: ../Doc/library/unittest.rst:795 msgid "" @@ -1141,6 +1199,9 @@ msgid "" "by the test to be propagated to the caller, and can be used to support " "running tests under a debugger." msgstr "" +"Lance le test sans collecter le résultat. Ceci permet aux exceptions levées " +"par le test d'être propagées à l'appelant, et donc peut être utilisé pour " +"exécuter des tests sous un débogueur." #: ../Doc/library/unittest.rst:801 msgid "" @@ -1148,6 +1209,10 @@ msgid "" "report failures. The following table lists the most commonly used methods " "(see the tables below for more assert methods):" msgstr "" +"La classe :class:`TestCase` fournit plusieurs méthodes d'assertion pour " +"vérifier et signaler les échecs. Le tableau suivant énumère les méthodes " +"les plus couramment utilisées (voir les tableaux ci-dessous pour plus de " +"méthodes d'assertion) :" #: ../Doc/library/unittest.rst:806 ../Doc/library/unittest.rst:928 #: ../Doc/library/unittest.rst:1120 ../Doc/library/unittest.rst:1247 @@ -1157,12 +1222,12 @@ msgstr "Méthode" #: ../Doc/library/unittest.rst:806 ../Doc/library/unittest.rst:928 #: ../Doc/library/unittest.rst:1120 msgid "Checks that" -msgstr "" +msgstr "Vérifie que" #: ../Doc/library/unittest.rst:806 ../Doc/library/unittest.rst:928 #: ../Doc/library/unittest.rst:1120 ../Doc/library/unittest.rst:1247 msgid "New in" -msgstr "" +msgstr "Disponible en" #: ../Doc/library/unittest.rst:808 msgid ":meth:`assertEqual(a, b) `" @@ -1286,6 +1351,12 @@ msgid "" "`assertRaisesRegex`, :meth:`assertWarns`, :meth:`assertWarnsRegex` only when " "they are used as a context manager." msgstr "" +"Toutes les méthodes *assert* prennent en charge un argument *msg* qui, s'il " +"est spécifié, est utilisé comme message d'erreur en cas d'échec (voir aussi :" +"data:`longMessage`). Notez que l'argument mot-clé *msg* peut être passé à :" +"meth:`assertRaises`, :meth:`assertRaisesRegex`, :meth:`assertWarns`, :meth:" +"`assertWarnsRegex`, seulement quand elles sont utilisées comme gestionnaire " +"de contexte." #: ../Doc/library/unittest.rst:853 msgid "" From d2489e15da8466fd688e6173c74364d242ea708d Mon Sep 17 00:00:00 2001 From: Bousquie Pierre Date: Wed, 28 Nov 2018 23:58:38 +0100 Subject: [PATCH 008/121] =?UTF-8?q?Ajout=20de=20r=C3=A9impl=C3=A9menter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dict | 1 + 1 file changed, 1 insertion(+) diff --git a/dict b/dict index 5fe30ab0f..89e0ebdb7 100644 --- a/dict +++ b/dict @@ -78,6 +78,7 @@ réentrants réessayable réexécuter référençables +réimplémenter résolveurs ſ sérialisable From 1e3da69b77715e4e9b8de4683614c25d779601e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Sun, 9 Dec 2018 16:31:40 +0100 Subject: [PATCH 009/121] =?UTF-8?q?Poursuite=20de=20la=20traduction=20jusq?= =?UTF-8?q?u'=C3=A0=20assertWarns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/unittest.po | 83 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 71 insertions(+), 12 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 2cc0063b6..95994b638 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-11-20 23:16+0100\n" +"PO-Revision-Date: 2018-12-09 16:22+0100\n" "Last-Translator: Lowic Mangin \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -1364,6 +1364,8 @@ msgid "" "Test that *first* and *second* are equal. If the values do not compare " "equal, the test will fail." msgstr "" +"Vérifie que *first* et *second* sont égaux. Si les valeurs ne sont pas " +"égales, le test échouera." #: ../Doc/library/unittest.rst:856 msgid "" @@ -1374,26 +1376,37 @@ msgid "" "message (see also the :ref:`list of type-specific methods `)." msgstr "" +"En outre, si *first* et *second* ont exactement le même type et sont de type " +"*liste*, *tuple*, *dict*, *set*, *frozenset* ou *str* ou tout autre type de " +"sous classe enregistrée dans :meth:`addTypeEqualityFunc`. La fonction " +"égalité spécifique au type sera appelée pour générer une erreur plus utile " +"(voir aussi :ref:`liste des méthodes spécifiques de type `)." #: ../Doc/library/unittest.rst:863 msgid "Added the automatic calling of type-specific equality function." msgstr "" +"Ajout de l'appel automatique de la fonction d'égalité spécifique au type." #: ../Doc/library/unittest.rst:866 msgid "" ":meth:`assertMultiLineEqual` added as the default type equality function for " "comparing strings." msgstr "" +"Ajout de :meth:`assertMultiLineEqual` comme fonction d'égalité de type par " +"défaut pour comparer les chaînes." #: ../Doc/library/unittest.rst:873 msgid "" "Test that *first* and *second* are not equal. If the values do compare " "equal, the test will fail." msgstr "" +"Vérifie que *first* et *second* ne sont pas égaux. Si les valeurs sont " +"égales, le test échouera." #: ../Doc/library/unittest.rst:879 msgid "Test that *expr* is true (or false)." -msgstr "" +msgstr "Vérifie que *expr* est vraie (ou fausse)." #: ../Doc/library/unittest.rst:881 msgid "" @@ -1403,20 +1416,27 @@ msgid "" "``assertEqual(a, b)`` instead of ``assertTrue(a == b)``), because they " "provide a better error message in case of failure." msgstr "" +"Notez que cela revient à utiliser ``bool(expr) is True`` et non à ``expr is " +"True`` (utilisez ``assertIs(expr, True)`` pour cette dernière). Cette " +"méthode doit également être évitée lorsque des méthodes plus spécifiques " +"sont disponibles (par exemple ``assertEqual(a, b)`` au lieu de " +"``assertTrue(a == b)``), car elles fournissent un meilleur message d'erreur " +"en cas d' échec." #: ../Doc/library/unittest.rst:891 msgid "" "Test that *first* and *second* evaluate (or don't evaluate) to the same " "object." msgstr "" +"Vérifie que *first* et *second* évaluent (ou n'évaluent pas) le même objet." #: ../Doc/library/unittest.rst:900 msgid "Test that *expr* is (or is not) ``None``." -msgstr "" +msgstr "Vérifie que *expr* est (ou n'est pas) la valeur ``Ǹone``" #: ../Doc/library/unittest.rst:908 msgid "Test that *first* is (or is not) in *second*." -msgstr "" +msgstr "Vérifie que *first* est (ou n'est pas) dans *second*." #: ../Doc/library/unittest.rst:916 msgid "" @@ -1424,56 +1444,72 @@ msgid "" "a tuple of classes, as supported by :func:`isinstance`). To check for the " "exact type, use :func:`assertIs(type(obj), cls) `." msgstr "" +"Vérifie que *obj* est (ou n'est pas) une instance de *cls* (Ce qui peut être " +"une classe ou un tuple de classes, comme utilisée par :func:`isinstance`). " +"Pour vérifier le type exact, utilisez :func:`assertIs(type(obj), cls) " +"`." #: ../Doc/library/unittest.rst:924 msgid "" "It is also possible to check the production of exceptions, warnings, and log " "messages using the following methods:" msgstr "" +"Il est également possible de vérifier la production des exceptions, des " +"avertissements et des messages de journaux à l'aide des méthodes suivantes :" #: ../Doc/library/unittest.rst:930 msgid ":meth:`assertRaises(exc, fun, *args, **kwds) `" -msgstr "" +msgstr ":meth:`assertRaises(exc, fun, *args, **kwds) `" #: ../Doc/library/unittest.rst:930 msgid "``fun(*args, **kwds)`` raises *exc*" -msgstr "" +msgstr "``fun(*args, **kwds)`` lève bien l'exception *exc*" #: ../Doc/library/unittest.rst:933 msgid "" ":meth:`assertRaisesRegex(exc, r, fun, *args, **kwds) `" msgstr "" +":meth:`assertRaisesRegex(exc, r, fun, *args, **kwds) `" #: ../Doc/library/unittest.rst:933 msgid "``fun(*args, **kwds)`` raises *exc* and the message matches regex *r*" msgstr "" +"``fun(*args, **kwds)`` lève bien l'exception *exc* et que le message " +"correspond au motif de l'expression régulière *r*" #: ../Doc/library/unittest.rst:936 msgid ":meth:`assertWarns(warn, fun, *args, **kwds) `" -msgstr "" +msgstr ":meth:`assertWarns(warn, fun, *args, **kwds) `" #: ../Doc/library/unittest.rst:936 msgid "``fun(*args, **kwds)`` raises *warn*" -msgstr "" +msgstr "``fun(*args, **kwds)`` lève bien l'avertissement *warn*" #: ../Doc/library/unittest.rst:939 msgid "" ":meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) `" msgstr "" +":meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) `" #: ../Doc/library/unittest.rst:939 msgid "``fun(*args, **kwds)`` raises *warn* and the message matches regex *r*" msgstr "" +"``fun(*args, **kwds)`` lève bien l'avertissement *warn* et que le message " +"correspond au motif de l'expression régulière *r*" #: ../Doc/library/unittest.rst:942 msgid ":meth:`assertLogs(logger, level) `" -msgstr "" +msgstr ":meth:`assertLogs(logger, level) `" #: ../Doc/library/unittest.rst:942 msgid "The ``with`` block logs on *logger* with minimum *level*" msgstr "" +"Le bloc ``with`` journalise dans le *logger* avec un niveau minimum égal à " +"*level*" #: ../Doc/library/unittest.rst:942 msgid "3.4" @@ -1488,6 +1524,12 @@ msgid "" "any of a group of exceptions, a tuple containing the exception classes may " "be passed as *exception*." msgstr "" +"Vérifie qu'une exception est levée lorsque *callable* est appelé avec " +"n'importe quel argument positionnel ou mot-clé qui est également passé à :" +"meth:`assertRaises`. Le test réussit si *exception* est levée, est en " +"erreur si une autre exception est levée, ou en échec si aucune exception " +"n'est levée. Pour capturer une exception d'un groupe d'exceptions, un couple " +"contenant les classes d'exceptions peut être passé à *exception*." #: ../Doc/library/unittest.rst:956 msgid "" @@ -1495,12 +1537,17 @@ msgid "" "context manager so that the code under test can be written inline rather " "than as a function::" msgstr "" +"Si seuls les arguments *exception* et éventuellement *msg* sont donnés, " +"renvoie un gestionnaire de contexte pour que le code sous test puisse être " +"écrit en ligne plutôt que comme une fonction : ::" #: ../Doc/library/unittest.rst:963 msgid "" "When used as a context manager, :meth:`assertRaises` accepts the additional " "keyword argument *msg*." msgstr "" +"Lorsqu'il est utilisé comme gestionnaire de contexte, :meth:`assertRaises` " +"accepte l'argument de mot-clé supplémentaire *msg*." #: ../Doc/library/unittest.rst:966 msgid "" @@ -1508,19 +1555,26 @@ msgid "" "`exception` attribute. This can be useful if the intention is to perform " "additional checks on the exception raised::" msgstr "" +"Le gestionnaire de contexte enregistre l'exception capturée dans son " +"attribut :attr:`exception`. Ceci est particulièrement utile si l'intention " +"est d'effectuer des contrôles supplémentaires sur l'exception levée : ::" #: ../Doc/library/unittest.rst:976 msgid "Added the ability to use :meth:`assertRaises` as a context manager." msgstr "" +"Ajout de la possibilité d'utiliser :meth:`assertRaises` comme gestionnaire " +"de contexte." #: ../Doc/library/unittest.rst:979 msgid "Added the :attr:`exception` attribute." -msgstr "" +msgstr "Ajout de l'attribut :attr:`exception`." #: ../Doc/library/unittest.rst:982 ../Doc/library/unittest.rst:1008 #: ../Doc/library/unittest.rst:1049 ../Doc/library/unittest.rst:1072 msgid "Added the *msg* keyword argument when used as a context manager." msgstr "" +"Ajout de l'argument *msg* comme mot-clé lorsqu'il est utilisé comme " +"gestionnaire de contexte." #: ../Doc/library/unittest.rst:989 msgid "" @@ -1529,6 +1583,11 @@ msgid "" "object or a string containing a regular expression suitable for use by :func:" "`re.search`. Examples::" msgstr "" +"Comme :meth:`assertRaises` mais vérifie aussi que *regex* correspond à la " +"représentation de la chaîne de caractères de l'exception levée. *regex* " +"peut être un objet d'expression rationnelle ou une chaîne contenant une " +"expression rationnelle appropriée pour être utilisée par :func:`re.search`. " +"Exemples : ::" #: ../Doc/library/unittest.rst:997 ../Doc/library/unittest.rst:1065 msgid "or::" @@ -1536,11 +1595,11 @@ msgstr "ou : ::" #: ../Doc/library/unittest.rst:1002 msgid "under the name ``assertRaisesRegexp``." -msgstr "" +msgstr "Sous le nom ``assertRaisesRegexp``" #: ../Doc/library/unittest.rst:1005 msgid "Renamed to :meth:`assertRaisesRegex`." -msgstr "" +msgstr "Renommé en :meth:`assertRaisesRegex`." #: ../Doc/library/unittest.rst:1015 msgid "" From 0f76cbb96701f0bd611be66f6a5284ecb93f2c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Tue, 11 Dec 2018 09:03:37 +0100 Subject: [PATCH 010/121] =?UTF-8?q?Poursuite=20de=20la=20traduction=20jusq?= =?UTF-8?q?u'=C3=A0=20assertMultilineEqual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/unittest.po | 115 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 103 insertions(+), 12 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 95994b638..6646402dd 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-12-09 16:22+0100\n" -"Last-Translator: Lowic Mangin \n" +"PO-Revision-Date: 2018-12-11 08:50+0100\n" +"Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.1.1\n" +"X-Generator: Poedit 2.2\n" #: ../Doc/library/unittest.rst:2 msgid ":mod:`unittest` --- Unit testing framework" @@ -1609,6 +1609,12 @@ msgid "" "isn't. Any exception is an error. To catch any of a group of warnings, a " "tuple containing the warning classes may be passed as *warnings*." msgstr "" +"Test qu'un avertissement est déclenché lorsque *callable* est appelé avec " +"n'importe quel argument positionnel ou mot-clé qui est également passé à :" +"meth:`assertWarns`. Le test passe si *warning* est déclenché et échoue s'il " +"ne l'est pas. Toute exception est une erreur. Pour capturer un avertissement " +"dans un ensemble d'avertissements, un couple contenant les classes " +"d'avertissement peut être passé à *warnings*." #: ../Doc/library/unittest.rst:1022 msgid "" @@ -1616,12 +1622,17 @@ msgid "" "context manager so that the code under test can be written inline rather " "than as a function::" msgstr "" +"Si seuls les arguments * warning* et éventuellement *msg* sont donnés, " +"renvoie un gestionnaire de contexte pour que le code testé puisse être écrit " +"en ligne plutôt que comme une fonction : ::" #: ../Doc/library/unittest.rst:1029 msgid "" "When used as a context manager, :meth:`assertWarns` accepts the additional " "keyword argument *msg*." msgstr "" +"Lorsqu'il est utilisé comme gestionnaire de contexte, :meth:`assertWarns` " +"accepte l'argument de mot-clé supplémentaire *msg*." #: ../Doc/library/unittest.rst:1032 msgid "" @@ -1630,12 +1641,19 @@ msgid "" "the :attr:`filename` and :attr:`lineno` attributes. This can be useful if " "the intention is to perform additional checks on the warning caught::" msgstr "" +"Le gestionnaire de contexte stocke l'avertissement capturé dans son " +"attribut :attr:`warning`, et la ligne source qui a déclenché les " +"avertissements dans les attributs :attr:`filename` et :attr:`lineno`. Cette " +"fonction peut être utile si l'intention est d'effectuer des contrôles " +"supplémentaires sur l'avertissement capturé : ::" #: ../Doc/library/unittest.rst:1044 msgid "" "This method works regardless of the warning filters in place when it is " "called." msgstr "" +"Cette méthode fonctionne indépendamment des filtres d'avertissement en place " +"lorsqu'elle est appelée." #: ../Doc/library/unittest.rst:1056 msgid "" @@ -1644,12 +1662,19 @@ msgid "" "string containing a regular expression suitable for use by :func:`re." "search`. Example::" msgstr "" +"Comme :meth:`assertWarns` mais vérifie aussi qu'une *regex* corresponde au " +"message de l'avertissement. *regex* peut être un objet d'expression " +"régulière ou une chaîne contenant une expression régulière appropriée pour " +"être utilisée par :func:`re.search`. Exemple : ::" #: ../Doc/library/unittest.rst:1077 msgid "" "A context manager to test that at least one message is logged on the " "*logger* or one of its children, with at least the given *level*." msgstr "" +"Un gestionnaire de contexte pour tester qu'au moins un message est " +"enregistré sur le *logger* ou un de ses enfants, avec au moins le *niveau* " +"donné." #: ../Doc/library/unittest.rst:1081 msgid "" @@ -1657,6 +1682,9 @@ msgid "" "`str` giving the name of a logger. The default is the root logger, which " "will catch all messages." msgstr "" +"Si donné, *logger* doit être une classe :class:`logging.logger` objet ou une " +"classe :class:`str` donnant le nom d'un journal. La valeur par défaut est le " +"journal racine *root*, qui capture tous les messages." #: ../Doc/library/unittest.rst:1085 msgid "" @@ -1664,38 +1692,52 @@ msgid "" "equivalent (for example either ``\"ERROR\"`` or :attr:`logging.ERROR`). The " "default is :attr:`logging.INFO`." msgstr "" +"S'il est donné, *level* doit être soit un entier, soit son équivalent sous " +"forme de chaîne (par exemple ``\"ERROR\"`` ou :attr:`logging.ERROR`). La " +"valeur par défaut est :attr:`logging.INFO`." #: ../Doc/library/unittest.rst:1089 msgid "" "The test passes if at least one message emitted inside the ``with`` block " "matches the *logger* and *level* conditions, otherwise it fails." msgstr "" +"Le test passe si au moins un message émis à l'intérieur du bloc ``with`` " +"correspond aux conditions *logger* et *level*, sinon il échoue." #: ../Doc/library/unittest.rst:1092 msgid "" "The object returned by the context manager is a recording helper which keeps " "tracks of the matching log messages. It has two attributes:" msgstr "" +"L'objet retourné par le gestionnaire de contexte est une aide à " +"l'enregistrement qui garde la trace des messages de journal correspondants. " +"Il a deux attributs : ::" #: ../Doc/library/unittest.rst:1098 msgid "" "A list of :class:`logging.LogRecord` objects of the matching log messages." msgstr "" +"Une liste d'objets :class:`logging.LogRecord` de messages de log " +"correspondants." #: ../Doc/library/unittest.rst:1103 msgid "" "A list of :class:`str` objects with the formatted output of matching " "messages." msgstr "" +"Une liste d'objets :class:`str` avec la sortie formatée des messages " +"correspondants." #: ../Doc/library/unittest.rst:1106 msgid "Example::" -msgstr "Exemple ::" +msgstr "Exemple : ::" #: ../Doc/library/unittest.rst:1117 msgid "" "There are also other methods used to perform more specific checks, such as:" msgstr "" +"Il existe également d'autres méthodes utilisées pour effectuer des contrôles " +"plus spécifiques, telles que : ::" #: ../Doc/library/unittest.rst:1122 msgid ":meth:`assertAlmostEqual(a, b) `" @@ -1707,7 +1749,7 @@ msgstr "``round(a-b, 7) == 0``" #: ../Doc/library/unittest.rst:1125 msgid ":meth:`assertNotAlmostEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertNotAlmostEqual(a, b) `" #: ../Doc/library/unittest.rst:1125 msgid "``round(a-b, 7) != 0``" @@ -1770,6 +1812,8 @@ msgid "" "*a* and *b* have the same elements in the same number, regardless of their " "order" msgstr "" +"*a* et *b* ont les mêmes éléments dans le même nombre, quel que soit leur " +"ordre." #: ../Doc/library/unittest.rst:1155 msgid "" @@ -1779,16 +1823,24 @@ msgid "" "the values to the given number of *decimal places* (i.e. like the :func:" "`round` function) and not *significant digits*." msgstr "" +"Vérifie que *first* et *second* sont approximativement (ou pas " +"approximativement) égaux en calculant la différence, en arrondissant au " +"nombre donné de décimales *places* (par défaut 7), et en comparant à zéro. " +"Notez que ces méthodes arrondissent les valeurs au nombre donné de " +"*décimales* (par exemple comme la fonction :func:`round`) et non aux " +"*chiffres significatifs*." #: ../Doc/library/unittest.rst:1161 msgid "" "If *delta* is supplied instead of *places* then the difference between " "*first* and *second* must be less or equal to (or greater than) *delta*." msgstr "" +"Si *delta* est fourni au lieu de *places*, la différence entre *first* et " +"*second* doit être inférieure ou égale (ou supérieure) à *delta*." #: ../Doc/library/unittest.rst:1164 msgid "Supplying both *delta* and *places* raises a :exc:`TypeError`." -msgstr "" +msgstr "Fournir à la fois *delta* et *places* lève une :exc:`TypeError`." #: ../Doc/library/unittest.rst:1166 msgid "" @@ -1796,12 +1848,18 @@ msgid "" "compare equal. :meth:`assertNotAlmostEqual` automatically fails if the " "objects compare equal. Added the *delta* keyword argument." msgstr "" +":meth:`assertAlmostEqual` considère automatiquement des objets presque égaux " +"qui se comparent égaux. :meth:`assertNotNotAlmostEqual` échoue " +"automatiquement si les objets qui se comparent sont égaux. Ajout de " +"l'argument mot-clé *delta*." #: ../Doc/library/unittest.rst:1177 msgid "" "Test that *first* is respectively >, >=, < or <= than *second* depending on " "the method name. If not, the test will fail::" msgstr "" +"Vérifie que *first* est respectivement >, >=, >=, < ou <= à *second* selon " +"le nom de la méthode. Sinon, le test échouera : ::" #: ../Doc/library/unittest.rst:1189 msgid "" @@ -1811,16 +1869,23 @@ msgid "" "regular expression object or a string containing a regular expression " "suitable for use by :func:`re.search`." msgstr "" +"Vérifie qu'une recherche par motif *regex* correspond (ou ne correspond " +"pas) à *text*. En cas d'échec, le message d'erreur inclura le motif et le " +"*texte* (ou le motif et la partie du *texte* qui correspond de manière " +"inattendue). *regex* peut être un objet d'expression régulière ou une " +"chaîne contenant une expression régulière appropriée pour être utilisée par :" +"func:`re.search`." #: ../Doc/library/unittest.rst:1195 msgid "under the name ``assertRegexpMatches``." -msgstr "" +msgstr "Sous le nom ``assertRegexpMatches``." #: ../Doc/library/unittest.rst:1197 msgid "" "The method ``assertRegexpMatches()`` has been renamed to :meth:`." "assertRegex`." msgstr "" +"La méthode ``assertRegexpMatches()`` a été renommé en :meth:`.assertRegex`." #: ../Doc/library/unittest.rst:1200 msgid ":meth:`.assertNotRegex`." @@ -1831,6 +1896,8 @@ msgid "" "The name ``assertNotRegexpMatches`` is a deprecated alias for :meth:`." "assertNotRegex`." msgstr "" +"Le nom ``assertNotRegexpMatches``` est un alias obsolète pour :meth:`." +"assertNotRegex`." #: ../Doc/library/unittest.rst:1209 msgid "" @@ -1838,6 +1905,9 @@ msgid "" "regardless of their order. When they don't, an error message listing the " "differences between the sequences will be generated." msgstr "" +"Testez que la séquence *first* contient les mêmes éléments que *second*, " +"quel que soit leur ordre. Si ce n'est pas le cas, un message d'erreur " +"indiquant les différences entre les séquences est généré." #: ../Doc/library/unittest.rst:1213 msgid "" @@ -1846,6 +1916,11 @@ msgid "" "Equivalent to: ``assertEqual(Counter(list(first)), Counter(list(second)))`` " "but works with sequences of unhashable objects as well." msgstr "" +"Les éléments en double ne sont *pas* ignorés lors de la comparaison entre " +"*first* et *second*. Il vérifie si chaque élément a le même nombre dans les " +"deux séquences. Équivalent à : ``assertEqual(Counter(list(first))), " +"Counter(list(second)))`` mais fonctionne aussi avec des séquences d'objets " +"non *hachables*." #: ../Doc/library/unittest.rst:1224 msgid "" @@ -1854,6 +1929,11 @@ msgid "" "implemented for most of the built-in types, but it's also possible to " "register new methods using :meth:`addTypeEqualityFunc`:" msgstr "" +"La méthode :meth:`assertEqual` envoie le contrôle d'égalité pour les objets " +"du même type à différentes méthodes spécifiques au type. Ces méthodes sont " +"déjà implémentées pour la plupart des types intégrés, mais il est également " +"possible d'enregistrer de nouvelles méthodes en utilisant :meth:" +"`addTypeEqualityFunc` : ::" #: ../Doc/library/unittest.rst:1231 msgid "" @@ -1865,6 +1945,14 @@ msgid "" "two parameters is detected -- possibly providing useful information and " "explaining the inequalities in details in the error message." msgstr "" +"Enregistre une méthode spécifique appelée par :meth:`assertEqual` pour " +"vérifier si deux objets exactement du même *typeobj* (et non leurs sous-" +"classes) sont égaux. *function* doit prendre deux arguments positionnels et " +"un troisième argument mot-clé *msg=None* tout comme :meth:`assertEqual` le " +"fait. Il doit lever :data:`self.failureException(msg) ` " +"lorsqu'une inégalité entre les deux premiers paramètres est détectée en " +"fournissant éventuellement des informations utiles et expliquant l'inégalité " +"en détail dans le message d'erreur." #: ../Doc/library/unittest.rst:1242 msgid "" @@ -1872,10 +1960,13 @@ msgid "" "assertEqual` are summarized in the following table. Note that it's usually " "not necessary to invoke these methods directly." msgstr "" +"La liste des méthodes spécifiques utilisées automatiquement par :meth:" +"`~TestCase.assertEqual` est résumée dans le tableau suivant. Notez qu'il " +"n'est généralement pas nécessaire d'invoquer ces méthodes directement." #: ../Doc/library/unittest.rst:1247 msgid "Used to compare" -msgstr "" +msgstr "Utilisé pour comparer" #: ../Doc/library/unittest.rst:1249 msgid ":meth:`assertMultiLineEqual(a, b) `" @@ -1899,7 +1990,7 @@ msgstr ":meth:`assertListEqual(a, b) `" #: ../Doc/library/unittest.rst:1255 msgid "lists" -msgstr "" +msgstr "Listes" #: ../Doc/library/unittest.rst:1258 msgid ":meth:`assertTupleEqual(a, b) `" @@ -1907,7 +1998,7 @@ msgstr ":meth:`assertTupleEqual(a, b) `" #: ../Doc/library/unittest.rst:1258 msgid "tuples" -msgstr "" +msgstr "couples" #: ../Doc/library/unittest.rst:1261 msgid ":meth:`assertSetEqual(a, b) `" @@ -1915,7 +2006,7 @@ msgstr ":meth:`assertSetEqual(a, b) `" #: ../Doc/library/unittest.rst:1261 msgid "sets or frozensets" -msgstr "" +msgstr "*sets* ou *frozensets*" #: ../Doc/library/unittest.rst:1264 msgid ":meth:`assertDictEqual(a, b) `" @@ -1923,7 +2014,7 @@ msgstr ":meth:`assertDictEqual(a, b) `" #: ../Doc/library/unittest.rst:1264 msgid "dicts" -msgstr "" +msgstr "dictionnaires" #: ../Doc/library/unittest.rst:1272 msgid "" From 286882859657cecb5e9b68dca648fa54dd14319b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Sun, 16 Dec 2018 22:05:30 +0100 Subject: [PATCH 011/121] =?UTF-8?q?poursuite=20de=20la=20traduction=20jusq?= =?UTF-8?q?u'=C3=A0=20Grouping=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/unittest.po | 118 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 110 insertions(+), 8 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 6646402dd..b7a954257 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-12-11 08:50+0100\n" +"PO-Revision-Date: 2018-12-16 21:57+0100\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -1508,7 +1508,7 @@ msgstr ":meth:`assertLogs(logger, level) `" #: ../Doc/library/unittest.rst:942 msgid "The ``with`` block logs on *logger* with minimum *level*" msgstr "" -"Le bloc ``with`` journalise dans le *logger* avec un niveau minimum égal à " +"Le bloc ``with`` écrit dans le *logger* avec un niveau minimum égal à " "*level*" #: ../Doc/library/unittest.rst:942 @@ -1905,7 +1905,7 @@ msgid "" "regardless of their order. When they don't, an error message listing the " "differences between the sequences will be generated." msgstr "" -"Testez que la séquence *first* contient les mêmes éléments que *second*, " +"Vérifie que la séquence *first* contient les mêmes éléments que *second*, " "quel que soit leur ordre. Si ce n'est pas le cas, un message d'erreur " "indiquant les différences entre les séquences est généré." @@ -2023,6 +2023,11 @@ msgid "" "included in the error message. This method is used by default when comparing " "strings with :meth:`assertEqual`." msgstr "" +"Vérifie que la chaîne sur plusieurs lignes *first* est égale à la chaîne " +"*second*. Si les deux chaînes de caractères ne sont pas égales, un *diff* " +"mettant en évidence les différences est inclus dans le message d'erreur. " +"Cette méthode est utilisée par défaut pour comparer les chaînes avec :meth:" +"`assertEqual`." #: ../Doc/library/unittest.rst:1282 msgid "" @@ -2031,12 +2036,18 @@ msgid "" "raised. If the sequences are different an error message is constructed that " "shows the difference between the two." msgstr "" +"Vérifie que deux séquences sont égales. Si un *seq_type* est fourni, *first* " +"et *second* doivent tous deux être des instances de *seq_type* ou un échec " +"est levé. Si les séquences sont différentes, un message d'erreur indiquant " +"la différence entre les deux est généré." #: ../Doc/library/unittest.rst:1287 msgid "" "This method is not called directly by :meth:`assertEqual`, but it's used to " "implement :meth:`assertListEqual` and :meth:`assertTupleEqual`." msgstr "" +"Cette méthode n'est pas appelée directement par :meth:`assertEqual`, mais " +"sert à implémenter :meth:`assertListEqual` et :meth:`assertTupleEqual`." #: ../Doc/library/unittest.rst:1297 msgid "" @@ -2045,6 +2056,11 @@ msgid "" "also raised if either of the parameters are of the wrong type. These methods " "are used by default when comparing lists or tuples with :meth:`assertEqual`." msgstr "" +"Vérifie que deux listes ou deux couples sont égaux. Si ce n'est pas le cas, " +"un message d'erreur qui ne montre que les différences entre les deux est " +"généré. Une erreur est également signalée si l'un ou l'autre des paramètres " +"n'est pas du bon type. Ces méthodes sont utilisées par défaut pour comparer " +"des listes ou des couples avec :meth:`assertEqual`." #: ../Doc/library/unittest.rst:1308 msgid "" @@ -2052,12 +2068,18 @@ msgid "" "lists the differences between the sets. This method is used by default when " "comparing sets or frozensets with :meth:`assertEqual`." msgstr "" +"Vérifie que deux ensembles sont égaux. Si ce n'est pas le cas, un message " +"d'erreur s'affiche et indique les différences entre les *sets*. Cette " +"méthode est utilisée par défaut lors de la comparaison de *sets* ou de " +"*frozensets* avec :meth:`assertEqual`." #: ../Doc/library/unittest.rst:1312 msgid "" "Fails if either of *first* or *second* does not have a :meth:`set." "difference` method." msgstr "" +"Échoue si l'un des objets *first* ou *second* n'a pas de méthode :meth:`set." +"difference`." #: ../Doc/library/unittest.rst:1320 msgid "" @@ -2065,17 +2087,25 @@ msgid "" "constructed that shows the differences in the dictionaries. This method will " "be used by default to compare dictionaries in calls to :meth:`assertEqual`." msgstr "" +"Vérifie que deux dictionnaires sont égaux. Si ce n'est pas le cas, un " +"message d'erreur qui montre les différences dans les dictionnaires est " +"généré. Cette méthode est utilisée par défaut pour comparer les " +"dictionnaires dans les appels à :meth:`assertEqual`." #: ../Doc/library/unittest.rst:1331 msgid "" "Finally the :class:`TestCase` provides the following methods and attributes:" msgstr "" +"Enfin, la classe :class:`TestCase` fournit les méthodes et attributs " +"suivants : ::" #: ../Doc/library/unittest.rst:1336 msgid "" "Signals a test failure unconditionally, with *msg* or ``None`` for the error " "message." msgstr "" +"Indique un échec du test sans condition, avec *msg* ou ``None`` pour le " +"message d'erreur." #: ../Doc/library/unittest.rst:1342 msgid "" @@ -2085,6 +2115,11 @@ msgid "" "fair\" with the framework. The initial value of this attribute is :exc:" "`AssertionError`." msgstr "" +"Cet attribut de classe donne l'exception levée par la méthode de test. Si " +"un *framework* de tests doit utiliser une exception spécialisée, " +"probablement pour enrichir l'exception d'informations additionnels., il doit " +"hériter de cette classe d'exception pour *bien fonctionner* avec le " +"*framework*. La valeur initiale de cet attribut est :exc:`AssertionError`." #: ../Doc/library/unittest.rst:1351 msgid "" @@ -2094,6 +2129,12 @@ msgid "" "of the standard failure message. When set to ``False``, the custom message " "replaces the standard message." msgstr "" +"Cet attribut de classe détermine ce qui se passe lorsqu'un message d'échec " +"personnalisé est passé en argument au paramètre *msg* à un appel " +"*assertXYYY* qui échoue. ``True`` est la valeur par défaut. Dans ce cas, le " +"message personnalisé est ajouté à la fin du message d'erreur standard. " +"Lorsqu'il est réglé sur ``False``, le message personnalisé remplace le " +"message standard." #: ../Doc/library/unittest.rst:1357 msgid "" @@ -2101,10 +2142,13 @@ msgid "" "an instance attribute, self.longMessage, to ``True`` or ``False`` before " "calling the assert methods." msgstr "" +"Le paramétrage de la classe peut être écrasé dans les méthodes de test " +"individuelles en assignant un attribut d'instance, *self.longMessage*, à " +"``True`` ou ``False`` avant d'appeler les méthodes d'assertion." #: ../Doc/library/unittest.rst:1361 msgid "The class setting gets reset before each test call." -msgstr "" +msgstr "Le réglage de la classe est réinitialisé avant chaque appel de test." #: ../Doc/library/unittest.rst:1368 msgid "" @@ -2114,24 +2158,36 @@ msgid "" "the sequence comparison methods that delegate to it), :meth:" "`assertDictEqual` and :meth:`assertMultiLineEqual`." msgstr "" +"Cet attribut contrôle la longueur maximale des *diffs* en sortie des " +"méthodes qui génèrent des *diffs* en cas d'échec. La valeur par défaut est " +"80*8 caractères. Les méthodes d'assertions affectées par cet attribut sont :" +"meth:`assertSequenceEqual` (y compris toutes les méthodes de comparaison de " +"séquences qui lui sont déléguées), :meth:`assertDictEqual` et :meth:" +"`assertMultiLineEqual`." #: ../Doc/library/unittest.rst:1375 msgid "" "Setting ``maxDiff`` to ``None`` means that there is no maximum length of " "diffs." msgstr "" +"Régler ``maxDiff`` sur ``None``` signifie qu'il n'y a pas de longueur " +"maximale pour les *diffs*." #: ../Doc/library/unittest.rst:1381 msgid "" "Testing frameworks can use the following methods to collect information on " "the test:" msgstr "" +"Les *frameworks* de test peuvent utiliser les méthodes suivantes pour " +"recueillir des informations sur le test : ::" #: ../Doc/library/unittest.rst:1387 msgid "" "Return the number of tests represented by this test object. For :class:" "`TestCase` instances, this will always be ``1``." msgstr "" +"Renvoie le nombre de tests représentés par cet objet test. Pour les " +"instances de :class:`TestCase`, c'est toujours ``1``." #: ../Doc/library/unittest.rst:1393 msgid "" @@ -2139,6 +2195,9 @@ msgid "" "test case class (if no other result instance is provided to the :meth:`run` " "method)." msgstr "" +"Retourne une instance de la classe de résultat de test qui doit être " +"utilisée pour cette classe de cas de test (si aucune autre instance de " +"résultat n'est fournie à la méthode :meth:`run`)." #: ../Doc/library/unittest.rst:1397 msgid "" @@ -2146,12 +2205,18 @@ msgid "" "`TestResult`; subclasses of :class:`TestCase` should override this as " "necessary." msgstr "" +"Pour les instances de :class:`TestCase`, c'est toujours une instance de :" +"class:`TestResult` ; les sous-classes de :class:`TestCase` peuvent la " +"remplacer au besoin." #: ../Doc/library/unittest.rst:1404 msgid "" "Return a string identifying the specific test case. This is usually the " "full name of the test method, including the module and class name." msgstr "" +"Retourne une chaîne identifiant le cas de test spécifique. Il s'agit " +"généralement du nom complet de la méthode de test, y compris le nom du " +"module et de la classe." #: ../Doc/library/unittest.rst:1410 msgid "" @@ -2159,6 +2224,9 @@ msgid "" "provided. The default implementation of this method returns the first line " "of the test method's docstring, if available, or ``None``." msgstr "" +"Renvoie une description du test, ou ``None``si aucune description n'a été " +"fournie. L'implémentation par défaut de cette méthode renvoie la première " +"ligne de la *docstring* de la méthode de test, si disponible, ou ``None``." #: ../Doc/library/unittest.rst:1415 msgid "" @@ -2167,6 +2235,10 @@ msgid "" "unittest extensions and adding the test name was moved to the :class:" "`TextTestResult` in Python 3.2." msgstr "" +"En 3.1, ceci a été modifié pour ajouter le nom du test à la description " +"courte, même en présence d'une *docstring*. Cela a causé des problèmes de " +"compatibilité avec les extensions *unittest* et l'ajout du nom du test a été " +"déplacé dans la classe :class:`TextTestResult` dans Python 3.2." #: ../Doc/library/unittest.rst:1424 msgid "" @@ -2176,18 +2248,29 @@ msgid "" "arguments and keyword arguments passed into :meth:`addCleanup` when they are " "added." msgstr "" +"Ajout d'une fonction à appeler après :meth:`tearDown` pour nettoyer les " +"ressources utilisées pendant le test. Les fonctions seront appelées dans " +"l'ordre inverse de l'ordre dans lequel elles ont été ajoutées (:abbr:`LIFO " +"(dernier entré, premier sorti)`). Elles sont appelées avec tous les " +"arguments et arguments de mots-clés passés à :meth:`addCleanup` quand elles " +"sont ajoutées." #: ../Doc/library/unittest.rst:1430 msgid "" "If :meth:`setUp` fails, meaning that :meth:`tearDown` is not called, then " "any cleanup functions added will still be called." msgstr "" +"Si :meth:`setUp` échoue, cela signifie que :meth:`tearDown` n'est pas " +"appelé, alors que les fonctions de nettoyage ajoutées seront toujours " +"appelées." #: ../Doc/library/unittest.rst:1438 msgid "" "This method is called unconditionally after :meth:`tearDown`, or after :meth:" "`setUp` if :meth:`setUp` raises an exception." msgstr "" +"Cette méthode est appelée sans conditions après :meth:`tearDown`, ou après :" +"meth:`setUp` si :meth:`setUp` lève une exception." #: ../Doc/library/unittest.rst:1441 msgid "" @@ -2195,12 +2278,19 @@ msgid "" "`addCleanup`. If you need cleanup functions to be called *prior* to :meth:" "`tearDown` then you can call :meth:`doCleanups` yourself." msgstr "" +"Cette méthode est chargée d'appeler toutes les fonctions de nettoyage " +"ajoutées par :meth:`addCleanup`. Si vous avez besoin de fonctions de " +"nettoyage à appeler *avant* l'appel à :meth:`tearDown` alors vous pouvez " +"appeler :meth:`doCleanups` vous-même." #: ../Doc/library/unittest.rst:1446 msgid "" ":meth:`doCleanups` pops methods off the stack of cleanup functions one at a " "time, so it can be called at any time." msgstr "" +":meth:`doCleanups` extrait les méthodes de la pile des fonctions de " +"nettoyage une à la fois, de sorte qu'elles peuvent être appelées à tout " +"moment." #: ../Doc/library/unittest.rst:1454 msgid "" @@ -2210,10 +2300,16 @@ msgid "" "test cases using legacy test code, allowing it to be integrated into a :mod:" "`unittest`-based test framework." msgstr "" +"Cette classe implémente la partie de l'interface :class:`TestCase` qui " +"permet au lanceur de test de piloter le scénario de test, mais ne fournit " +"pas les méthodes que le code test peut utiliser pour vérifier et signaler " +"les erreurs. Ceci est utilisé pour créer des scénario de test utilisant du " +"code de test existant afin de faciliter l'intégration dans un *framework* de " +"test basé sur :mod:`unittest`." #: ../Doc/library/unittest.rst:1464 msgid "Deprecated aliases" -msgstr "" +msgstr "Alias obsolètes" #: ../Doc/library/unittest.rst:1466 msgid "" @@ -2221,6 +2317,10 @@ msgid "" "more aliases that are now deprecated. The following table lists the correct " "names along with their deprecated aliases:" msgstr "" +"Pour des raisons historiques, certaines méthodes de la classe ::class:" +"`TestCase` avaient un ou plusieurs alias qui sont maintenant obsolètes. Le " +"tableau suivant énumère les noms corrects ainsi que leurs alias " +"obsolètes : ::" #: ../Doc/library/unittest.rst:1471 msgid "Method Name" @@ -2228,7 +2328,7 @@ msgstr "Nom de méthode" #: ../Doc/library/unittest.rst:1471 msgid "Deprecated alias" -msgstr "" +msgstr "Alias obsolètes" #: ../Doc/library/unittest.rst:1473 msgid ":meth:`.assertEqual`" @@ -2332,17 +2432,19 @@ msgstr "assertRaisesRegexp" #: ../Doc/library/unittest.rst:1485 msgid "the fail* aliases listed in the second column." -msgstr "" +msgstr "les alias *fail** sont énumérés dans la deuxième colonne." #: ../Doc/library/unittest.rst:1487 msgid "the assert* aliases listed in the third column." -msgstr "" +msgstr "les alias *assert** sont énumérés dans la troisième colonne." #: ../Doc/library/unittest.rst:1489 msgid "" "``assertRegexpMatches`` and ``assertRaisesRegexp`` have been renamed to :" "meth:`.assertRegex` and :meth:`.assertRaisesRegex`." msgstr "" +"Les expressions ``assertRegexpMatches`` et ``assertRaisesRegexp`` ont été " +"renommées en :meth:`.assertRegex` et :meth:`.assertRaisesRegex`." #: ../Doc/library/unittest.rst:1492 msgid "" From e4e6c810ee2b41a4c36d83ad73d7fc3f90bf8f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Wed, 2 Jan 2019 00:37:35 +0100 Subject: [PATCH 012/121] =?UTF-8?q?Poursuite=20de=20la=20traduction=20jusq?= =?UTF-8?q?u'=C3=A0=20startTest=20de=20TestRestult.=20Fixture=20devrais=20?= =?UTF-8?q?=C3=AAtre=20traduit=20par=20"am=C3=A9nagement=20de=20test"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/unittest.po | 246 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 237 insertions(+), 9 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 52f66c2cf..a150bcd47 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-17 21:38+0100\n" -"PO-Revision-Date: 2018-12-16 21:57+0100\n" +"PO-Revision-Date: 2019-01-02 00:20+0100\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -140,7 +140,6 @@ msgstr "" "modèle sur lequel s'appuie :mod:`unittest`." #: ../Doc/library/unittest.rst:61 -#, fuzzy msgid "" "`Nose `_ and `pytest `_" @@ -2453,7 +2452,7 @@ msgstr "``assertNotRegexpMatches`` en faveur de :meth:`.assertNotRegex`." #: ../Doc/library/unittest.rst:1498 msgid "Grouping tests" -msgstr "" +msgstr "Regroupement des tests" #: ../Doc/library/unittest.rst:1502 msgid "" @@ -2462,6 +2461,11 @@ msgid "" "it to be run as any other test case. Running a :class:`TestSuite` instance " "is the same as iterating over the suite, running each test individually." msgstr "" +"Cette classe représente une agrégation de cas de test individuels et de " +"suites de tests. La classe présente l'interface requise par le lanceur de " +"test pour être exécutée comme tout autre cas de test. L'exécution d'une " +"instance de :class:`TestSuite` est identique à l'itération sur la suite, en " +"exécutant chaque test indépendamment." #: ../Doc/library/unittest.rst:1507 msgid "" @@ -2469,6 +2473,10 @@ msgid "" "other test suites that will be used to build the suite initially. Additional " "methods are provided to add test cases and suites to the collection later on." msgstr "" +"Si *tests* est fourni, il doit s'agir d'un itérable de cas de test " +"individuels ou d'autres suites de test qui seront utilisés pour construire " +"la suite initial. Des méthodes supplémentaires sont fournies pour ajouter " +"ultérieurement des cas de test et des suites à la collection." #: ../Doc/library/unittest.rst:1511 msgid "" @@ -2478,26 +2486,37 @@ msgid "" "additional methods are available to add tests to :class:`TestSuite` " "instances:" msgstr "" +"Les objets :class:`TestSuite` se comportent comme les objets :class:" +"`TestCase`, sauf qu'ils n'implémentent pas réellement un test. Au lieu de " +"cela, ils sont utilisés pour regrouper les tests en groupes de tests qui " +"doivent être exécutés ensemble. Des méthodes supplémentaires sont " +"disponibles pour ajouter des tests aux instances de :class:`TestSuite` : ::" #: ../Doc/library/unittest.rst:1519 msgid "Add a :class:`TestCase` or :class:`TestSuite` to the suite." msgstr "" +"Ajouter un objet :class:`TestCase` ou :class:`TestSuite` à la suite de tests." #: ../Doc/library/unittest.rst:1524 msgid "" "Add all the tests from an iterable of :class:`TestCase` and :class:" "`TestSuite` instances to this test suite." msgstr "" +"Ajouter tous les tests d'un itérable d'instances de :class:`TestCase` et de :" +"class:`TestSuite` à cette suite de tests." #: ../Doc/library/unittest.rst:1527 msgid "" "This is equivalent to iterating over *tests*, calling :meth:`addTest` for " "each element." msgstr "" +"C'est l'équivalent d'une itération sur *tests*, appelant :meth:`addTest` " +"pour chaque élément." #: ../Doc/library/unittest.rst:1530 msgid ":class:`TestSuite` shares the following methods with :class:`TestCase`:" msgstr "" +":class:`TestSuite` partage les méthodes suivantes avec :class:`TestCase` : ::" #: ../Doc/library/unittest.rst:1535 msgid "" @@ -2505,6 +2524,10 @@ msgid "" "test result object passed as *result*. Note that unlike :meth:`TestCase." "run`, :meth:`TestSuite.run` requires the result object to be passed in." msgstr "" +"Exécute les tests associés à cette suite, en collectant le résultat dans " +"l'objet de résultat de test passé par *result*. Remarquer que contrairement " +"à :meth:`TestCase.run`, :meth:`TestSuite.run` nécessite que l'objet résultat " +"soit passé." #: ../Doc/library/unittest.rst:1543 msgid "" @@ -2512,12 +2535,17 @@ msgid "" "allows exceptions raised by the test to be propagated to the caller and can " "be used to support running tests under a debugger." msgstr "" +"Exécute les tests associés à cette suite sans collecter le résultat. Ceci " +"permet aux exceptions levées par le test d'être propagées à l'appelant et " +"peut être utilisé pour exécuter des tests sous un débogueur." #: ../Doc/library/unittest.rst:1550 msgid "" "Return the number of tests represented by this test object, including all " "individual tests and sub-suites." msgstr "" +"Renvoie le nombre de tests représentés par cet objet de test, y compris tous " +"les tests individuels et les sous-suites." #: ../Doc/library/unittest.rst:1556 msgid "" @@ -2530,6 +2558,16 @@ msgid "" "tests returned by this method unless the caller uses a subclass that " "overrides :meth:`TestSuite._removeTestAtIndex` to preserve test references." msgstr "" +"Les tests groupés par une classe :class:`TestSuite` sont toujours " +"accessibles par itération. Les sous-classes peuvent fournir paresseusement " +"des tests en surchargeant :meth:`__iter__`. Notez que cette méthode peut " +"être appelée plusieurs fois sur une même suite (par exemple lors du comptage " +"des tests ou de la comparaison pour l'égalité) et que les tests retournés " +"par itérations répétées avant :meth:`TestSuite.run` doivent être les mêmes " +"pour chaque itération. Après :meth:`TestSuite.run`, les appelants ne " +"devraient pas se fier aux tests retournés par cette méthode à moins qu'ils " +"n'utilisent une sous-classe qui remplace :meth:`TestSuite." +"_removeTestAtIndex` pour préserver les références des tests." #: ../Doc/library/unittest.rst:1566 msgid "" @@ -2537,6 +2575,9 @@ msgid "" "than through iteration, so overriding :meth:`__iter__` wasn't sufficient for " "providing tests." msgstr "" +"Dans les versions précédentes, la classe :class:`TestSuite` accédait aux " +"tests directement plutôt que par itération, donc surcharger la méthode :meth:" +"`__iter__` n'était pas suffisante pour fournir les tests." #: ../Doc/library/unittest.rst:1571 msgid "" @@ -2544,16 +2585,23 @@ msgid "" "`TestCase` after :meth:`TestSuite.run`. Subclasses can restore that behavior " "by overriding :meth:`TestSuite._removeTestAtIndex`." msgstr "" +"Dans les versions précédentes, la classe :class:`TestSuite` contenait des " +"références à chaque :class:`TestCase` après l'appel à :meth:`TestSuite.run`. " +"Les sous-classes peuvent restaurer ce comportement en surchargeant :meth:" +"`TestSuite._removeTestAtIndex`." #: ../Doc/library/unittest.rst:1576 msgid "" "In the typical usage of a :class:`TestSuite` object, the :meth:`run` method " "is invoked by a :class:`TestRunner` rather than by the end-user test harness." msgstr "" +"Dans l'utilisation typique de l'objet :class:`TestSuite`, la méthode :meth:" +"`run` est invoquée par une classe :class:`TestRunner` plutôt que par le " +"système de test de l'utilisateur." #: ../Doc/library/unittest.rst:1581 msgid "Loading and running tests" -msgstr "" +msgstr "Chargement et exécution des tests" #: ../Doc/library/unittest.rst:1585 msgid "" @@ -2563,10 +2611,17 @@ msgid "" "`unittest.defaultTestLoader`. Using a subclass or instance, however, allows " "customization of some configurable properties." msgstr "" +"La classe :class:`TestLoader` est utilisée pour créer des suites de tests à " +"partir de classes et de modules. Normalement, il n'est pas nécessaire de " +"créer une instance de cette classe ; le module :mod:`unittest` fournit une " +"instance qui peut être partagée comme :data:`unittest.defaultTestLoader`. " +"L'utilisation d'une sous-classe ou d'une instance permet cependant de " +"personnaliser certaines propriétés configurables." #: ../Doc/library/unittest.rst:1591 msgid ":class:`TestLoader` objects have the following attributes:" msgstr "" +"Les objets de la classe :class:`TestLoader` ont les attributs suivants : ::" #: ../Doc/library/unittest.rst:1596 msgid "" @@ -2575,16 +2630,24 @@ msgid "" "raising an exception to the caller. Non-fatal errors are also indicated by a " "synthetic test that will raise the original error when run." msgstr "" +"Une liste des erreurs non fatales rencontrées lors du chargement des tests. " +"Il est impossible de faire une remise à zéro pendant le chargement. Les " +"erreurs fatales sont signalées par la méthode correspondante qui lève une " +"exception à l'appelant. Les erreurs non fatales sont également indiquées par " +"un test synthétique qui lève l'erreur initiale lors de l'exécution." #: ../Doc/library/unittest.rst:1605 msgid ":class:`TestLoader` objects have the following methods:" msgstr "" +"Les objets de la classe :class:`TestLoader` ont les attributs suivants : ::" #: ../Doc/library/unittest.rst:1610 msgid "" "Return a suite of all test cases contained in the :class:`TestCase`\\ -" "derived :class:`testCaseClass`." msgstr "" +"Renvoie une suite de tous les cas de test contenus dans la classe :class:" +"`TestCase`\\ Dérivée de la classe :class:`testCaseClass`." #: ../Doc/library/unittest.rst:1613 msgid "" @@ -2594,6 +2657,11 @@ msgid "" "`runTest` method is implemented, a single test case is created for that " "method instead." msgstr "" +"Une instance de cas de test est créée pour chaque méthode nommée par :meth:" +"`getTestCaseNames`. Par défaut, ce sont les noms des méthodes commençant par " +"\"test\". Si :meth:`getTestTestCaseNames` ne renvoie aucune méthode, mais " +"que la méthode :meth:`runTest` est implémentée, un seul cas de test est créé " +"pour cette méthode à la place." #: ../Doc/library/unittest.rst:1622 msgid "" @@ -2601,6 +2669,10 @@ msgid "" "searches *module* for classes derived from :class:`TestCase` and creates an " "instance of the class for each test method defined for the class." msgstr "" +"Renvoie une suite de tous les cas de test contenus dans le module donné. " +"Cette méthode recherche *module* pour les classes dérivées de :class:" +"`TestCase` et crée une instance de la classe pour chaque méthode de test " +"définie pour cette classe." #: ../Doc/library/unittest.rst:1629 msgid "" @@ -2610,6 +2682,12 @@ msgid "" "play well with this method. Doing so, however, can be useful when the " "fixtures are different and defined in subclasses." msgstr "" +"Bien que l'utilisation d'une hiérarchie de classes :class:`TestCase` (les " +"classes dérivées de `TestCase`) peut être un moyen pratique de partager des " +"*fixtures* et des fonctions utilitaires, définir une méthode de test pour " +"des classes de base non destinées à être directement instanciée ne marche " +"pas bien avec cette méthode. Cela peut toutefois s'avérer utile lorsque les " +"*fixtures* sont différentes et définies dans des sous-classes." #: ../Doc/library/unittest.rst:1635 msgid "" @@ -2618,10 +2696,14 @@ msgid "" "`load_tests protocol`_. The *pattern* argument is passed as the third " "argument to ``load_tests``." msgstr "" +"Si un module fournit une fonction ``load_tests``, il est appelé pour charger " +"les tests. Cela permet aux modules de personnaliser le chargement des tests. " +"C'est le protocole `load_tests protocol`_. L'argument *pattern* est passé " +"comme troisième argument à ``load_tests``." #: ../Doc/library/unittest.rst:1640 msgid "Support for ``load_tests`` added." -msgstr "" +msgstr "Le support de ``load_tests`` a été ajouté." #: ../Doc/library/unittest.rst:1643 msgid "" @@ -2630,10 +2712,16 @@ msgid "" "compatibility. The method also now accepts a keyword-only argument " "*pattern* which is passed to ``load_tests`` as the third argument." msgstr "" +"L'argument par défaut non documenté et non officiel *use_load_tests* est " +"déprécié et ignoré, bien qu'il soit toujours accepté pour la compatibilité " +"descendante. La méthode accepte aussi maintenant un argument *pattern* qui " +"est passé à ``load_tests`` comme troisième argument." #: ../Doc/library/unittest.rst:1652 msgid "Return a suite of all test cases given a string specifier." msgstr "" +"Renvoie une suite de tous les cas de test en fonction d'un spécificateur de " +"chaîne de caractères." #: ../Doc/library/unittest.rst:1654 msgid "" @@ -2645,6 +2733,14 @@ msgid "" "up as \"a test method within a test case class\", rather than \"a callable " "object\"." msgstr "" +"Le spécificateur *name* est un \"nom pointillé\" qui peut être résolu soit " +"par un module, une classe de cas de test, une méthode de test dans une " +"classe de cas de test, une instance de :class:`TestSuite`, ou un objet " +"appelable qui retourne une instance de classe :class:`TestCase` ou de " +"classe :class:`TestSuite`. Ces contrôles sont appliqués dans l'ordre indiqué " +"ici, c'est-à-dire qu'une méthode sur une classe de cas de test possible sera " +"choisie comme \"méthode de test dans une classe de cas de test\", plutôt que " +"comme \"un objet appelable\"." #: ../Doc/library/unittest.rst:1662 msgid "" @@ -2658,10 +2754,19 @@ msgid "" "modules and packages which have not been imported; they will be imported as " "a side-effect." msgstr "" +"Par exemple, si vous avez un module :mod:`SampleTests` contenant une classe :" +"class:`TestCase` (classe dérivée de la classe :class:`SampleTestCase`) avec " +"trois méthodes de test (:meth:`test_one`, :meth:`test_two` et :meth:" +"`test_three`), l'élément spécificateur `SampleTests.sampleTestCase` " +"renvoie une suite qui va exécuter les trois méthodes de tests. L'utilisation " +"du spécificateur `SampleTests.SampleTestCase.test_two` permettrait de " +"retourner une suite de tests qui ne lancerait que la méthode test :meth:" +"`test_two`. Le spécificateur peut se référer à des modules et packages qui " +"n'ont pas été importés. Ils seront importés par un effet de bord." #: ../Doc/library/unittest.rst:1672 msgid "The method optionally resolves *name* relative to the given *module*." -msgstr "" +msgstr "La méthode résout facultativement *name* relatif au *module* donné." #: ../Doc/library/unittest.rst:1674 msgid "" @@ -2669,6 +2774,10 @@ msgid "" "*name* then a synthetic test that raises that error when run will be " "returned. These errors are included in the errors accumulated by self.errors." msgstr "" +"Si une :exc:`ImportError` ou :exc:`AttributeError` se produit pendant la " +"traversée de *name*, un test synthétique qui enrichie l'erreur produite lors " +"de l'exécution est renvoyé. Ces erreurs sont incluses dans les erreurs " +"accumulées par *self.errors*." #: ../Doc/library/unittest.rst:1683 msgid "" @@ -2676,12 +2785,17 @@ msgid "" "than a single name. The return value is a test suite which supports all the " "tests defined for each name." msgstr "" +"Similaire à :meth:`loadTestsFromName`, mais prend une séquence de noms " +"plutôt qu'un seul nom. La valeur renvoyée est une suite de tests qui gère " +"tous les tests définis pour chaque nom." #: ../Doc/library/unittest.rst:1690 msgid "" "Return a sorted sequence of method names found within *testCaseClass*; this " "should be a subclass of :class:`TestCase`." msgstr "" +"Renvoie une séquence triée de noms de méthodes trouvés dans " +"*testCaseClass* ; ceci doit être une sous-classe de :class:`TestCase`." #: ../Doc/library/unittest.rst:1696 msgid "" @@ -2691,6 +2805,11 @@ msgid "" "pattern matching.) Only module names that are importable (i.e. are valid " "Python identifiers) will be loaded." msgstr "" +"Trouve tous les modules de test en parcourant les sous-répertoires du " +"répertoire de démarrage spécifié, et renvoie un objet TestSuite qui les " +"contient. Seuls les fichiers de test qui correspondent à *pattern* sont " +"chargés. Seuls les noms de modules qui sont importables (c'est-à-dire qui " +"sont des identifiants Python valides) sont chargés." #: ../Doc/library/unittest.rst:1702 msgid "" @@ -2698,6 +2817,9 @@ msgid "" "the start directory is not the top level directory then the top level " "directory must be specified separately." msgstr "" +"Tous les modules de test doivent être importables depuis la racine du " +"projet. Si le répertoire de démarrage n'est pas la racine, le répertoire " +"racine doit être spécifié séparément." #: ../Doc/library/unittest.rst:1706 msgid "" @@ -2706,6 +2828,11 @@ msgid "" "import failure is due to :exc:`SkipTest` being raised, it will be recorded " "as a skip instead of an error." msgstr "" +"Si l'importation d'un module échoue, par exemple en raison d'une erreur de " +"syntaxe, celle-ci est alors enregistrée comme une erreur unique et la " +"découverte se poursuit. Si l'échec de l'importation est dû au fait que :exc:" +"`SkipTest` est levé, il est enregistré comme un saut plutôt que comme un " +"message d'erreur." #: ../Doc/library/unittest.rst:1711 msgid "" @@ -2716,12 +2843,22 @@ msgid "" "checked for tests once during an invocation, even if the load_tests function " "itself calls ``loader.discover``." msgstr "" +"Si un paquet (un répertoire contenant un fichier nommé :file:`__init__." +"py`) est trouvé, le paquet est alors vérifié pour une fonction " +"``load_tests``. Si elle existe, elle s'appellera ``package." +"load_tests(loader, tests, pattern)``. Le mécanisme de découverte de test " +"prend soin de s'assurer qu'un paquet n'est vérifié qu'une seule fois au " +"cours d'une invocation, même si la fonction *load_tests* appelle elle-même " +"``loader.discover``." #: ../Doc/library/unittest.rst:1719 msgid "" "If ``load_tests`` exists then discovery does *not* recurse into the package, " "``load_tests`` is responsible for loading all tests in the package." msgstr "" +"Si ``load_tests`` existe alors la découverte ne poursuit pas la récursion " +"dans le paquet, ``load_tests`` a la responsabilité de charger tous les tests " +"dans le paquet." #: ../Doc/library/unittest.rst:1723 msgid "" @@ -2730,10 +2867,14 @@ msgid "" "``load_tests`` does not need to pass this argument in to ``loader." "discover()``." msgstr "" +"Le motif n'est délibérément pas stocké en tant qu'attribut du chargeur afin " +"que les paquets puissent continuer à être découverts eux-mêmes. " +"*top_level_dir* est stocké de sorte que ``load_tests`` n'a pas besoin de " +"passer cet argument a ``loader. discover()``." #: ../Doc/library/unittest.rst:1728 msgid "*start_dir* can be a dotted module name as well as a directory." -msgstr "" +msgstr "*start_dir* peut être un nom de module ainsi qu'un répertoire." #: ../Doc/library/unittest.rst:1732 msgid "" @@ -2743,6 +2884,12 @@ msgid "" "even if the underlying file system's ordering is not dependent on file " "name." msgstr "" +"Les modules qui lèvent :exc:`SkipTest` lors de l'importation sont " +"enregistrés comme des sauts et non des erreurs. Le mécanisme de découverte " +"fonctionne pour les :term:`paquets d'espaces de noms `. " +"Les chemins sont triés avant d'être importés pour que l'ordre d'exécution " +"soit le même, même si l'ordre du système de fichiers sous-jacent ne dépend " +"pas du nom du fichier." #: ../Doc/library/unittest.rst:1740 msgid "" @@ -2750,30 +2897,43 @@ msgid "" "their path matches *pattern*, because it is impossible for a package name to " "match the default pattern." msgstr "" +"Les paquets trouvés sont maintenant vérifiés pour ``load_tests`` " +"indépendamment du fait que leur chemin d'accès corresponde ou non à " +"*pattern*, car il est impossible pour un nom de paquet de correspondre au " +"motif par défaut." #: ../Doc/library/unittest.rst:1746 msgid "" "The following attributes of a :class:`TestLoader` can be configured either " "by subclassing or assignment on an instance:" msgstr "" +"Les attributs suivants d'une classe :class:`TestLoader` peuvent être " +"configurés soit par héritage, soit par affectation sur une instance : ::" #: ../Doc/library/unittest.rst:1752 msgid "" "String giving the prefix of method names which will be interpreted as test " "methods. The default value is ``'test'``." msgstr "" +"Chaîne donnant le préfixe des noms de méthodes qui seront interprétés comme " +"méthodes de test. La valeur par défaut est ``'test'``." #: ../Doc/library/unittest.rst:1755 msgid "" "This affects :meth:`getTestCaseNames` and all the :meth:`loadTestsFrom\\*` " "methods." msgstr "" +"Ceci affecte les méthodes :meth:`getTestCaseNames` et toutes les méthodes :" +"meth:`loadTestsFrom\\*`." #: ../Doc/library/unittest.rst:1761 msgid "" "Function to be used to compare method names when sorting them in :meth:" "`getTestCaseNames` and all the :meth:`loadTestsFrom\\*` methods." msgstr "" +"Fonction à utiliser pour comparer les noms de méthodes lors de leur tri dans " +"les méthodes :meth:`getTestCaseNames` et toutes les méthodes :meth:" +"`loadTestsFrom\\*`." #: ../Doc/library/unittest.rst:1767 msgid "" @@ -2781,16 +2941,22 @@ msgid "" "methods on the resulting object are needed. The default value is the :class:" "`TestSuite` class." msgstr "" +"Objet appelable qui construit une suite de tests à partir d'une liste de " +"tests. Aucune méthode sur l'objet résultant n'est nécessaire. La valeur par " +"défaut est la classe :class:`TestSuite`." #: ../Doc/library/unittest.rst:1771 ../Doc/library/unittest.rst:1784 msgid "This affects all the :meth:`loadTestsFrom\\*` methods." -msgstr "" +msgstr "Cela affecte toutes les méthodes :meth:`loadTestsFrom\\*`." #: ../Doc/library/unittest.rst:1775 msgid "" "List of Unix shell-style wildcard test name patterns that test methods have " "to match to be included in test suites (see ``-v`` option)." msgstr "" +"Liste des motifs de noms de test de type joker de style *Unix* que les " +"méthodes de test doivent valider pour être incluses dans les suites de test " +"(voir l'option ``-v``)." #: ../Doc/library/unittest.rst:1778 msgid "" @@ -2800,12 +2966,20 @@ msgid "" "unlike patterns passed to the ``-v`` option, simple substring patterns will " "have to be converted using ``*`` wildcards." msgstr "" +"Si cet attribut n'est pas ``None`` (par défaut), toutes les méthodes de test " +"à inclure dans les suites de test doivent correspondre à l'un des modèles de " +"cette liste. Remarquez que les correspondances sont toujours effectuées en " +"utilisant :meth:`fnmatch.fnmatchcase`, donc contrairement aux modèles passés " +"à l'option ``-v``, les motifs de sous-chaînes simples doivent être convertis " +"avec le joker ``*``." #: ../Doc/library/unittest.rst:1791 msgid "" "This class is used to compile information about which tests have succeeded " "and which have failed." msgstr "" +"Cette classe est utilisée pour compiler des informations sur les tests qui " +"ont réussi et ceux qui ont échoué." #: ../Doc/library/unittest.rst:1794 msgid "" @@ -2814,6 +2988,10 @@ msgid "" "properly recorded; test authors do not need to worry about recording the " "outcome of tests." msgstr "" +"Un objet :class:`TestResult` stocke les résultats d'un ensemble de tests. " +"Les classes :class:`TestCase` et :class:`TestSuite` s'assurent que les " +"résultats sont correctement enregistrés. Les auteurs du test n'ont pas à se " +"soucier de l'enregistrement des résultats des tests." #: ../Doc/library/unittest.rst:1799 msgid "" @@ -2822,12 +3000,19 @@ msgid "" "purposes; a :class:`TestResult` instance is returned by the :meth:" "`TestRunner.run` method for this purpose." msgstr "" +"Les cadriciels de test construits sur :mod:`unittest` peuvent nécessiter " +"l'accès à l'objet :class:`TestResult` généré en exécutant un ensemble de " +"tests à des fins de reporting. Une instance de :class:`TestResult` est alors " +"renvoyée par la méthode :meth:`TestRunner.run` à cette fin." #: ../Doc/library/unittest.rst:1804 msgid "" ":class:`TestResult` instances have the following attributes that will be of " "interest when inspecting the results of running a set of tests:" msgstr "" +"Les instance de :class:`TestResult` ont les attributs suivants qui sont " +"intéressant pour l'inspection des résultats de l'exécution d'un ensemble de " +"tests : ::" #: ../Doc/library/unittest.rst:1810 msgid "" @@ -2835,6 +3020,9 @@ msgid "" "holding formatted tracebacks. Each tuple represents a test which raised an " "unexpected exception." msgstr "" +"Une liste contenant un couple d'instances de :class:`TestCase` et une " +"chaînes de caractères contenant des traces formatées. Chaque couple " +"représente un test qui a levé une exception inattendue." #: ../Doc/library/unittest.rst:1816 msgid "" @@ -2842,12 +3030,18 @@ msgid "" "holding formatted tracebacks. Each tuple represents a test where a failure " "was explicitly signalled using the :meth:`TestCase.assert\\*` methods." msgstr "" +"Une liste contenant un couple d'instances de :class:`TestCase` et une " +"chaînes de caractères contenant des traces formatées. Chaque tuple " +"représente un test où un échec a été explicitement signalé en utilisant les " +"méthodes :meth:`TestCase.assert\\*`." #: ../Doc/library/unittest.rst:1822 msgid "" "A list containing 2-tuples of :class:`TestCase` instances and strings " "holding the reason for skipping the test." msgstr "" +"Une liste contenant un couple d'instances de :class:`TestCase` et une " +"chaînes de caractères contenant la raison de l'omission du test." #: ../Doc/library/unittest.rst:1829 msgid "" @@ -2855,21 +3049,28 @@ msgid "" "holding formatted tracebacks. Each tuple represents an expected failure of " "the test case." msgstr "" +"Une liste contenant un couple d'instance :class:`TestCase` et une chaînes de " +"caractères contenant des traces formatées. Chaque coulpe représente un échec " +"attendu du scénario de test." #: ../Doc/library/unittest.rst:1835 msgid "" "A list containing :class:`TestCase` instances that were marked as expected " "failures, but succeeded." msgstr "" +"Une liste contenant les instances :class:`TestCase` qui ont été marquées " +"comme des échecs attendus, mais qui ont réussi." #: ../Doc/library/unittest.rst:1840 msgid "" "Set to ``True`` when the execution of tests should stop by :meth:`stop`." msgstr "" +"A positionner sur ``True`` quand l'exécution des tests doit être arrêter " +"par :meth:`stop`." #: ../Doc/library/unittest.rst:1844 msgid "The total number of tests run so far." -msgstr "" +msgstr "Le nombre total de tests effectués jusqu'à présent." #: ../Doc/library/unittest.rst:1848 msgid "" @@ -2879,28 +3080,41 @@ msgid "" "if the test fails or errors. Any output is also attached to the failure / " "error message." msgstr "" +"S'il est défini sur *true*, ``sys.stdout`` et ``sys.stderr`` sont mis dans un " +"tampon entre les appels de :meth:`startTest` et :meth:`stopTest`. La sortie " +"collectée est répercutée sur les sorties ``sys.stdout`` et ``sys.stderr`` " +"réels uniquement en cas d'échec ou d'erreur du test. Toute sortie est " +"également attachée au message d'erreur." #: ../Doc/library/unittest.rst:1857 msgid "" "If set to true :meth:`stop` will be called on the first failure or error, " "halting the test run." msgstr "" +"Si la valeur est *true* :meth:`stop` est appelée lors de la première " +"défaillance ou erreur, ce qui interrompt le test en cours d'exécution." #: ../Doc/library/unittest.rst:1864 msgid "If set to true then local variables will be shown in tracebacks." msgstr "" +"Si la valeur est *true*, les variables locales sont affichées dans les " +"traces d'appels." #: ../Doc/library/unittest.rst:1870 msgid "" "Return ``True`` if all tests run so far have passed, otherwise returns " "``False``." msgstr "" +"Renvoie ``True`` si tous les tests effectués jusqu'à présent ont réussi, " +"sinon renvoie ``False``." #: ../Doc/library/unittest.rst:1873 msgid "" "Returns ``False`` if there were any :attr:`unexpectedSuccesses` from tests " "marked with the :func:`expectedFailure` decorator." msgstr "" +"Renvoie ``False`` s'il y a eu des :attr:`unexpectedSuccesses` dans les tests " +"annotés avec le décorateur :func:`expectedFailure`." #: ../Doc/library/unittest.rst:1879 msgid "" @@ -2909,6 +3123,10 @@ msgid "" "`TestRunner` objects should respect this flag and return without running any " "additional tests." msgstr "" +"Cette méthode peut être appelée pour signaler que l'ensemble des tests en " +"cours d'exécution doit être annulé en définissant l'attribut :attr:" +"`shouldStop` sur ``True``. Les instances de :class:`TestRunner` doivent " +"respecter ce signal et se terminer sans exécuter de tests supplémentaires." #: ../Doc/library/unittest.rst:1884 msgid "" @@ -2917,6 +3135,10 @@ msgid "" "keyboard. Interactive tools which provide :class:`TestRunner` " "implementations can use this in a similar manner." msgstr "" +"Par exemple, cette fonctionnalité est utilisée par la classe :class:" +"`TextTestRunner` pour arrêter le cadriciel de test lorsque l'utilisateur " +"lance une interruption clavier. Les outils interactifs qui fournissent des " +"implémentations de :class:`TestRunner` peuvent l'utiliser de la même manière." #: ../Doc/library/unittest.rst:1889 msgid "" @@ -2925,6 +3147,12 @@ msgid "" "additional reporting requirements. This is particularly useful in building " "tools which support interactive reporting while tests are being run." msgstr "" +"Les méthodes suivantes de la classe :class:`TestResult` sont utilisées pour " +"maintenir les structures de données internes, et peuvent être étendues dans " +"des sous-classes pour gérer des exigences supplémentaires en termes de " +"compte-rendu. Cette fonction est particulièrement utile pour créer des " +"outils qui prennent en charge la génération de rapports interactifs pendant " +"l'exécution des tests." #: ../Doc/library/unittest.rst:1897 msgid "Called when the test case *test* is about to be run." From b1925e427f2fecc59cb9335cf793bcc59c9fda71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Wed, 2 Jan 2019 17:41:41 +0100 Subject: [PATCH 013/121] =?UTF-8?q?Traduction=20des=20derni=C3=A8res=20lig?= =?UTF-8?q?nes.=20Reste=20=C3=A0=20refaire=20une=20passe=20de=20coh=C3=A9r?= =?UTF-8?q?ence=20et=20de=20correction=20avant=20de=20demander=20une=20rel?= =?UTF-8?q?ecture=20par=20un=20tier.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/unittest.po | 297 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 263 insertions(+), 34 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index a150bcd47..46557b3d5 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-17 21:38+0100\n" -"PO-Revision-Date: 2019-01-02 00:20+0100\n" +"PO-Revision-Date: 2019-01-02 17:17+0100\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -2757,12 +2757,12 @@ msgstr "" "Par exemple, si vous avez un module :mod:`SampleTests` contenant une classe :" "class:`TestCase` (classe dérivée de la classe :class:`SampleTestCase`) avec " "trois méthodes de test (:meth:`test_one`, :meth:`test_two` et :meth:" -"`test_three`), l'élément spécificateur `SampleTests.sampleTestCase` " -"renvoie une suite qui va exécuter les trois méthodes de tests. L'utilisation " -"du spécificateur `SampleTests.SampleTestCase.test_two` permettrait de " -"retourner une suite de tests qui ne lancerait que la méthode test :meth:" -"`test_two`. Le spécificateur peut se référer à des modules et packages qui " -"n'ont pas été importés. Ils seront importés par un effet de bord." +"`test_three`), l'élément spécificateur `SampleTests.sampleTestCase` renvoie " +"une suite qui va exécuter les trois méthodes de tests. L'utilisation du " +"spécificateur `SampleTests.SampleTestCase.test_two` permettrait de retourner " +"une suite de tests qui ne lancerait que la méthode test :meth:`test_two`. Le " +"spécificateur peut se référer à des modules et packages qui n'ont pas été " +"importés. Ils seront importés par un effet de bord." #: ../Doc/library/unittest.rst:1672 msgid "The method optionally resolves *name* relative to the given *module*." @@ -2843,13 +2843,12 @@ msgid "" "checked for tests once during an invocation, even if the load_tests function " "itself calls ``loader.discover``." msgstr "" -"Si un paquet (un répertoire contenant un fichier nommé :file:`__init__." -"py`) est trouvé, le paquet est alors vérifié pour une fonction " -"``load_tests``. Si elle existe, elle s'appellera ``package." -"load_tests(loader, tests, pattern)``. Le mécanisme de découverte de test " -"prend soin de s'assurer qu'un paquet n'est vérifié qu'une seule fois au " -"cours d'une invocation, même si la fonction *load_tests* appelle elle-même " -"``loader.discover``." +"Si un paquet (un répertoire contenant un fichier nommé :file:`__init__.py`) " +"est trouvé, le paquet est alors vérifié pour une fonction ``load_tests``. Si " +"elle existe, elle s'appellera ``package.load_tests(loader, tests, " +"pattern)``. Le mécanisme de découverte de test prend soin de s'assurer qu'un " +"paquet n'est vérifié qu'une seule fois au cours d'une invocation, même si la " +"fonction *load_tests* appelle elle-même ``loader.discover``." #: ../Doc/library/unittest.rst:1719 msgid "" @@ -3002,8 +3001,9 @@ msgid "" msgstr "" "Les cadriciels de test construits sur :mod:`unittest` peuvent nécessiter " "l'accès à l'objet :class:`TestResult` généré en exécutant un ensemble de " -"tests à des fins de reporting. Une instance de :class:`TestResult` est alors " -"renvoyée par la méthode :meth:`TestRunner.run` à cette fin." +"tests à des fins de génération de comptes-rendu. Une instance de :class:" +"`TestResult` est alors renvoyée par la méthode :meth:`TestRunner.run` à " +"cette fin." #: ../Doc/library/unittest.rst:1804 msgid "" @@ -3080,11 +3080,11 @@ msgid "" "if the test fails or errors. Any output is also attached to the failure / " "error message." msgstr "" -"S'il est défini sur *true*, ``sys.stdout`` et ``sys.stderr`` sont mis dans un " -"tampon entre les appels de :meth:`startTest` et :meth:`stopTest`. La sortie " -"collectée est répercutée sur les sorties ``sys.stdout`` et ``sys.stderr`` " -"réels uniquement en cas d'échec ou d'erreur du test. Toute sortie est " -"également attachée au message d'erreur." +"S'il est défini sur *true*, ``sys.stdout`` et ``sys.stderr`` sont mis dans " +"un tampon entre les appels de :meth:`startTest` et :meth:`stopTest`. La " +"sortie collectée est répercutée sur les sorties ``sys.stdout`` et ``sys." +"stderr`` réels uniquement en cas d'échec ou d'erreur du test. Toute sortie " +"est également attachée au message d'erreur." #: ../Doc/library/unittest.rst:1857 msgid "" @@ -3157,20 +3157,22 @@ msgstr "" #: ../Doc/library/unittest.rst:1897 msgid "Called when the test case *test* is about to be run." msgstr "" +"Appelé lorsque le scénario de test *test* est sur le point d'être exécuté." #: ../Doc/library/unittest.rst:1901 msgid "" "Called after the test case *test* has been executed, regardless of the " "outcome." msgstr "" +"Appelé après l'exécution du cas de test *test*, quel qu'en soit le résultat." #: ../Doc/library/unittest.rst:1906 msgid "Called once before any tests are executed." -msgstr "" +msgstr "Appelé une fois avant l'exécution des tests." #: ../Doc/library/unittest.rst:1913 msgid "Called once after all tests are executed." -msgstr "" +msgstr "Appelé une fois après l'exécution des tests." #: ../Doc/library/unittest.rst:1920 msgid "" @@ -3178,6 +3180,9 @@ msgid "" "tuple of the form returned by :func:`sys.exc_info`: ``(type, value, " "traceback)``." msgstr "" +"Appelé lorsque le cas de test *test* soulève une exception inattendue. *err* " +"est un couple du formulaire renvoyé par :func:`sys.exc_info` : ``(type, " +"valeur, traceback)``." #: ../Doc/library/unittest.rst:1924 msgid "" @@ -3185,12 +3190,18 @@ msgid "" "instance's :attr:`errors` attribute, where *formatted_err* is a formatted " "traceback derived from *err*." msgstr "" +"L'implémentation par défaut ajoute un couple ``(test, formatted_err)`` à " +"l'attribut :attr:`errors` de l'instance, où *formatted_err* est une trace " +"formatée à partir de *err*." #: ../Doc/library/unittest.rst:1931 msgid "" "Called when the test case *test* signals a failure. *err* is a tuple of the " "form returned by :func:`sys.exc_info`: ``(type, value, traceback)``." msgstr "" +"Appelé lorsque le cas de test *test* soulève une exception inattendue. *err* " +"est un triplet de la même forme que celui renvoyé par :func:`sys.exc_info` : " +"``(type, valeur, traceback)``." #: ../Doc/library/unittest.rst:1934 msgid "" @@ -3198,32 +3209,41 @@ msgid "" "instance's :attr:`failures` attribute, where *formatted_err* is a formatted " "traceback derived from *err*." msgstr "" +"L'implémentation par défaut ajoute un couple ``(test, formatted_err)`` à " +"l'attribut :attr:`errors` de l'instance, où *formatted_err* est une trace " +"formatée à partir de *err*." #: ../Doc/library/unittest.rst:1941 msgid "Called when the test case *test* succeeds." -msgstr "" +msgstr "Appelé lorsque le scénario de test *test* réussit." #: ../Doc/library/unittest.rst:1943 msgid "The default implementation does nothing." -msgstr "" +msgstr "L'implémentation par défaut ne fait rien." #: ../Doc/library/unittest.rst:1948 msgid "" "Called when the test case *test* is skipped. *reason* is the reason the " "test gave for skipping." msgstr "" +"Appelé lorsque le scénario de test *test* est ignoré. *raison* est la raison " +"pour laquelle le test donné à été ignoré." #: ../Doc/library/unittest.rst:1951 msgid "" "The default implementation appends a tuple ``(test, reason)`` to the " "instance's :attr:`skipped` attribute." msgstr "" +"L'implémentation par défaut ajoute un couple ``(test, raison)`` à " +"l'attribut :attr:`skipped` de l'instance." #: ../Doc/library/unittest.rst:1957 msgid "" "Called when the test case *test* fails, but was marked with the :func:" "`expectedFailure` decorator." msgstr "" +"Appelé lorsque le scénario de test *test* échoue, mais qui a été marqué avec " +"le décorateur :func:`expectedFailure`." #: ../Doc/library/unittest.rst:1960 msgid "" @@ -3231,18 +3251,25 @@ msgid "" "instance's :attr:`expectedFailures` attribute, where *formatted_err* is a " "formatted traceback derived from *err*." msgstr "" +"L'implémentation par défaut ajoute un couple ``(test, formatted_err)`` à " +"l'attribut :attr:`errors` de l'instance, où *formatted_err* est une trace " +"formatée à partir de *err*." #: ../Doc/library/unittest.rst:1967 msgid "" "Called when the test case *test* was marked with the :func:`expectedFailure` " "decorator, but succeeded." msgstr "" +"Appelé lorsque le scénario de test *test* réussit, mais que ce scénario a " +"été marqué avec le décorateur :func:`expectedFailure`." #: ../Doc/library/unittest.rst:1970 msgid "" "The default implementation appends the test to the instance's :attr:" "`unexpectedSuccesses` attribute." msgstr "" +"L'implémentation par défaut ajoute le test à l'attribut :attr:" +"`unexpectedSuccesses` de l'instance." #: ../Doc/library/unittest.rst:1976 msgid "" @@ -3250,6 +3277,9 @@ msgid "" "the test method. *subtest* is a custom :class:`TestCase` instance " "describing the subtest." msgstr "" +"Appelé à la fin d'un sous-test. *test* est le cas de test correspondant à la " +"méthode de test. *subtest* est une instance dérivée de :class:`TestCase` " +"décrivant le sous-test." #: ../Doc/library/unittest.rst:1980 msgid "" @@ -3257,24 +3287,33 @@ msgid "" "with an exception where *outcome* is a tuple of the form returned by :func:" "`sys.exc_info`: ``(type, value, traceback)``." msgstr "" +"Si *outcome* est :const:`None`, le sous-test a réussi. Sinon, il a échoué " +"avec une exception où *outcome* est un triplet du formulaire renvoyé par :" +"func:`sys.exc_info` : ``(type, valeur, traceback)``." #: ../Doc/library/unittest.rst:1984 msgid "" "The default implementation does nothing when the outcome is a success, and " "records subtest failures as normal failures." msgstr "" +"L'implémentation par défaut ne fait rien lorsque le résultat est un succès, " +"et enregistre les échecs de sous-test comme des échecs normaux." #: ../Doc/library/unittest.rst:1992 msgid "" "A concrete implementation of :class:`TestResult` used by the :class:" "`TextTestRunner`." msgstr "" +"Une implémentation concrète de :class:`TestResult` utilisé par la classe :" +"class:`TextTestRunner`." #: ../Doc/library/unittest.rst:1995 msgid "" "This class was previously named ``_TextTestResult``. The old name still " "exists as an alias but is deprecated." msgstr "" +"Cette classe s'appelait auparavant ``_TextTestResult```. L'ancien nom existe " +"toujours en tant qu'alias, mais il est obsolète." #: ../Doc/library/unittest.rst:2002 msgid "" @@ -3282,6 +3321,10 @@ msgid "" "customization of the :class:`TestLoader` is needed, this instance can be " "used instead of repeatedly creating new instances." msgstr "" +"Instance de la classe :class:`TestLoader` destinée à être partagée. Si " +"aucune personnalisation de la classe :class:`TestLoader` n'est nécessaire, " +"cette instance peut être utilisée au lieu de créer plusieurs fois de " +"nouvelles instances." #: ../Doc/library/unittest.rst:2010 msgid "" @@ -3293,6 +3336,14 @@ msgid "" "as the interface to construct runners changes when features are added to " "unittest." msgstr "" +"Une implémentation de base d'un lanceur de test qui fournit les résultats " +"dans un flux. Si *stream* est ``None```, par défaut, :data:`sys.stderr` est " +"utilisé comme flux de sortie. Cette classe a quelques paramètres " +"configurables, mais est essentiellement très simple. Les applications " +"graphiques qui exécutent des suites de tests doivent fournir des " +"implémentations alternatives. De telles implémentations doivent accepter " +"``**kwargs`` car l'interface pour construire les lanceurs change lorsque des " +"fonctionnalités sont ajoutées à *unittest*." #: ../Doc/library/unittest.rst:2017 msgid "" @@ -3306,20 +3357,32 @@ msgid "" "option:`!-Wd` or :option:`!-Wa` options (see :ref:`Warning control `) and leaving *warnings* to ``None``." msgstr "" +"Par défaut, ce lanceur affiche :exc:`DeprecationWarning`, :exc:" +"`PendingDeprecationWarning`, :exc:`ResourceWarning` et :exc:`ImportWarning` " +"même si elles sont :ref:`ignorées par défaut `. Les " +"avertissements causés par :ref:`des méthodes *unittest* dépréciées " +"` sont également spéciaux et, lorsque les filtres " +"d'avertissement sont ``default`` ou ``always``, ils n'apparaissent qu'une " +"fois par module, afin d'éviter trop de messages d'alerte. Ce comportement " +"peut être annulé en utilisant les options :option:`!-Wd` ou :option:`!-Wa` " +"de Python (voir :ref:`Gestion des avertissements `) et en " +"laissant *warnings* à ``None``." #: ../Doc/library/unittest.rst:2028 msgid "Added the ``warnings`` argument." -msgstr "" +msgstr "Ajout du paramètre ``warnings``." #: ../Doc/library/unittest.rst:2031 msgid "" "The default stream is set to :data:`sys.stderr` at instantiation time rather " "than import time." msgstr "" +"Le flux par défaut est défini sur :data:`sys.stderr` au moment de " +"l'instanciation plutôt qu'à l'importation." #: ../Doc/library/unittest.rst:2035 msgid "Added the tb_locals parameter." -msgstr "" +msgstr "Ajout du paramètre tb_locals." #: ../Doc/library/unittest.rst:2040 msgid "" @@ -3327,6 +3390,9 @@ msgid "" "is not intended to be called directly, but can be overridden in subclasses " "to provide a custom ``TestResult``." msgstr "" +"Cette méthode renvoie l'instance de ``TestResult`` utilisée par :meth:`run`. " +"Il n'est pas destiné à être appelé directement, mais peut être surchargée " +"dans des sous-classes pour fournir un ``TestResult`` personnalisé." #: ../Doc/library/unittest.rst:2044 msgid "" @@ -3335,6 +3401,10 @@ msgid "" "to :class:`TextTestResult` if no ``resultclass`` is provided. The result " "class is instantiated with the following arguments::" msgstr "" +"``_makeResult()`` instancie la classe ou l'appelable passé dans le " +"constructeur ``TextTestRunner``` comme argument ``resultclass``. Il vaut par " +"défaut :class:`TextTestResult` si aucune ``resultclass`` n'est fournie. La " +"classe de résultat est instanciée avec les arguments suivants : ::" #: ../Doc/library/unittest.rst:2053 msgid "" @@ -3343,6 +3413,10 @@ msgid "" "`TestResult` is created by calling :func:`_makeResult` and the test(s) are " "run and the results printed to stdout." msgstr "" +"Cette méthode est l'interface publique principale du `TextTestRunner`. Cette " +"méthode prend une instance :class:`TestSuite` ou :class:`TestCase`. Une " +"classe :class:`TestResult` est créée en appelant :func:`_makeResult` et le " +"ou les tests sont exécutés et les résultats affiché dans la sortie standard." #: ../Doc/library/unittest.rst:2064 msgid "" @@ -3351,12 +3425,19 @@ msgid "" "simplest use for this function is to include the following line at the end " "of a test script::" msgstr "" +"Un programme en ligne de commande qui charge un ensemble de tests à partir " +"du *module* et les exécute . L'utilisation principale est de rendre les " +"modules de test facilement exécutables. L'utilisation la plus simple pour " +"cette fonction est d'inclure la ligne suivante à la fin d'un script de " +"test : ::" #: ../Doc/library/unittest.rst:2072 msgid "" "You can run tests with more detailed information by passing in the verbosity " "argument::" msgstr "" +"Vous pouvez exécuter des tests avec des informations plus détaillées en " +"utilisant l'option de verbosité : ::" #: ../Doc/library/unittest.rst:2078 msgid "" @@ -3365,6 +3446,10 @@ msgid "" "not specified or ``None`` and no test names are provided via *argv*, all " "tests found in *module* are run." msgstr "" +"L'argument *defaultTest* est soit le nom d'un seul test, soit un iterable de " +"noms de test à exécuter si aucun nom de test n'est spécifié via *argv*. Si " +"aucun nom de test n'est fourni via *argv*, tous les tests trouvés dans " +"*module* sont exécutés." #: ../Doc/library/unittest.rst:2083 msgid "" @@ -3372,6 +3457,9 @@ msgid "" "first element being the program name. If not specified or ``None``, the " "values of :data:`sys.argv` are used." msgstr "" +"L'argument *argv* peut être une liste d'options passées au programme, le " +"premier élément étant le nom du programme. S'il n'est pas spécifié ou vaut " +"``None``, les valeurs de :data:`sys.argv` sont utilisées." #: ../Doc/library/unittest.rst:2087 msgid "" @@ -3379,12 +3467,18 @@ msgid "" "created instance of it. By default ``main`` calls :func:`sys.exit` with an " "exit code indicating success or failure of the tests run." msgstr "" +"L'argument *testRunner* peut être soit une classe de lanceur de test, soit " +"une instance déjà créée de celle-ci. Par défaut, ``main`` appelle :func:`sys." +"exit` avec un code de sortie indiquant le succès ou l'échec des tests " +"exécutés." #: ../Doc/library/unittest.rst:2091 msgid "" "The *testLoader* argument has to be a :class:`TestLoader` instance, and " "defaults to :data:`defaultTestLoader`." msgstr "" +"L'argument *testLoader* doit être une instance de :class:`TestLoader`, et " +"par défaut de :data:`defaultTestLoader`." #: ../Doc/library/unittest.rst:2094 msgid "" @@ -3392,12 +3486,17 @@ msgid "" "the argument ``exit=False``. This displays the result on standard output " "without calling :func:`sys.exit`::" msgstr "" +"Les ``main`` sont utilisés à partir de l'interpréteur interactif en passant " +"dans l'argument ``exit=False``. Ceci affiche le résultat sur la sortie " +"standard sans appeler :func:`sys.exit` : ::" #: ../Doc/library/unittest.rst:2101 msgid "" "The *failfast*, *catchbreak* and *buffer* parameters have the same effect as " "the same-name `command-line options`_." msgstr "" +"Les paramètres *failfast*, *catchbreak* et *buffer* ont le même effet que la " +"même option en ligne de commande `command-line options`_." #: ../Doc/library/unittest.rst:2104 msgid "" @@ -3407,32 +3506,45 @@ msgid "" "(see :ref:`Warning control `), otherwise it will be set " "to ``'default'``." msgstr "" +"L'argument *warnings* spécifie l'argument :ref:`filtre d'avertissement " +"` qui doit être utilisé lors de l'exécution des tests. Si " +"elle n'est pas spécifiée, elle reste réglée sur ``None`` si une option :" +"option:`!-W'` est passée à :program:`python` (voir :ref:`Utilisation des " +"avertissements `), sinon elle sera réglée sur " +"``'default'``." #: ../Doc/library/unittest.rst:2110 msgid "" "Calling ``main`` actually returns an instance of the ``TestProgram`` class. " "This stores the result of the tests run as the ``result`` attribute." msgstr "" +"L'appel de ``main'' renvoie en fait une instance de la classe " +"``TestProgram``. Le résultat des tests effectués est enregistré sous " +"l'attribut ``résultat``." #: ../Doc/library/unittest.rst:2113 msgid "The *exit* parameter was added." -msgstr "" +msgstr "Ajout du paramètre *exit*." #: ../Doc/library/unittest.rst:2116 msgid "" "The *verbosity*, *failfast*, *catchbreak*, *buffer* and *warnings* " "parameters were added." msgstr "" +"Ajout des paramètres *verbosity*, *failfast*, *catchbreak*, *buffer* et " +"*warnings*." #: ../Doc/library/unittest.rst:2120 msgid "" "The *defaultTest* parameter was changed to also accept an iterable of test " "names." msgstr "" +"Le paramètre *defaultTest* a été modifié pour accepter également un itérable " +"de noms de test." #: ../Doc/library/unittest.rst:2126 msgid "load_tests Protocol" -msgstr "" +msgstr "Protocole de chargement des tests (*load_tests Protocol*)" #: ../Doc/library/unittest.rst:2130 msgid "" @@ -3440,22 +3552,29 @@ msgid "" "normal test runs or test discovery by implementing a function called " "``load_tests``." msgstr "" +"Les modules ou paquets peuvent personnaliser la façon dont les tests sont " +"chargés à partir de ceux-ci pendant l'exécution des tests ou pendant la " +"découverte de tests en implémentant une fonction appelée ``load_tests``." #: ../Doc/library/unittest.rst:2133 msgid "" "If a test module defines ``load_tests`` it will be called by :meth:" "`TestLoader.loadTestsFromModule` with the following arguments::" msgstr "" +"Si un module de test définit ``load_tests`` il est appelé par :meth:" +"`TestLoader.loadTestsFromModule` avec les arguments suivants : ::" #: ../Doc/library/unittest.rst:2138 msgid "" "where *pattern* is passed straight through from ``loadTestsFromModule``. It " "defaults to ``None``." msgstr "" +"où *pattern* est passé directement depuis ``loadTestsFromModule``. La valeur " +"par défaut est ``None``." #: ../Doc/library/unittest.rst:2141 msgid "It should return a :class:`TestSuite`." -msgstr "" +msgstr "Elle doit renvoyer une classe :class:`TestSuite`." #: ../Doc/library/unittest.rst:2143 msgid "" @@ -3465,12 +3584,20 @@ msgid "" "from the standard set of tests. The third argument is used when loading " "packages as part of test discovery." msgstr "" +"*loader* est l'instance de :class:`TestLoader` qui effectue le chargement. " +"*standard_tests* sont les tests qui sont chargés par défaut depuis le " +"module. Il est courant que les modules de test veuillent seulement ajouter " +"ou supprimer des tests de l'ensemble standard de tests. Le troisième " +"argument est utilisé lors du chargement de paquets dans le cadre de la " +"découverte de tests." #: ../Doc/library/unittest.rst:2149 msgid "" "A typical ``load_tests`` function that loads tests from a specific set of :" "class:`TestCase` classes may look like::" msgstr "" +"Une fonction typique de ``load_tests`` qui charge les tests d'un ensemble " +"spécifique de classes :class:`TestCase` peut ressembler à : ::" #: ../Doc/library/unittest.rst:2161 msgid "" @@ -3481,6 +3608,13 @@ msgid "" "just another directory. Otherwise, discovery of the package's tests will be " "left up to ``load_tests`` which is called with the following arguments::" msgstr "" +"Si la découverte est lancée dans un répertoire contenant un paquet, soit à " +"partir de la ligne de commande, soit en appelant :meth:`TestLoader." +"discover`, alors le système recherche dans le fichier du paquet :file:" +"`__init__.py` la fonction ``load_tests``. Si cette fonction n'existe pas, la " +"découverte se poursuit dans le paquet comme si c'était juste un autre " +"répertoire. Sinon, la découverte des tests du paquet est effectuée par " +"``load_tests`` qui est appelé avec les arguments suivants : ::" #: ../Doc/library/unittest.rst:2170 msgid "" @@ -3488,6 +3622,9 @@ msgid "" "package. (``standard_tests`` will only contain tests collected from :file:" "`__init__.py`.)" msgstr "" +"Doit retourner une classe :class:`TestSuite` représentant tous les tests du " +"paquet. (``standard_tests`` ne contient que les tests collectés dans le " +"fichier :file:`__init__.py`)." #: ../Doc/library/unittest.rst:2174 msgid "" @@ -3495,16 +3632,22 @@ msgid "" "continue (and potentially modify) test discovery. A 'do nothing' " "``load_tests`` function for a test package would look like::" msgstr "" +"Comme le motif est passé à ``load_tests``, le paquet est libre de continuer " +"(et potentiellement de modifier) la découverte des tests. Une fonction 'ne " +"rien faire' ``load_tests`` pour un paquet de test ressemblerait à : ::" #: ../Doc/library/unittest.rst:2185 msgid "" "Discovery no longer checks package names for matching *pattern* due to the " "impossibility of package names matching the default pattern." msgstr "" +"La découverte de test ne vérifie plus que les noms de paquets correspondent " +"à *pattern* en raison de l'impossibilité de trouver des noms de paquets " +"correspondant au motif par défaut." #: ../Doc/library/unittest.rst:2192 msgid "Class and Module Fixtures" -msgstr "" +msgstr "Classes et modules d'aménagements des tests" #: ../Doc/library/unittest.rst:2194 msgid "" @@ -3513,6 +3656,10 @@ msgid "" "from the previous class (if there is one) is called, followed by :meth:" "`setUpClass` from the new class." msgstr "" +"Les classes et modules d'aménagements des tests sont implémentés dans :class:" +"`TestSuite`. Lorsque la suite de tests rencontre un test d'une nouvelle " +"classe, alors :meth:`tearDownClass` de la classe précédente (s'il y en a " +"une) est appelé, suivi de :meth:`setUpClass` de la nouvelle classe." #: ../Doc/library/unittest.rst:2199 msgid "" @@ -3520,12 +3667,17 @@ msgid "" "``tearDownModule`` from the previous module is run, followed by " "``setUpModule`` from the new module." msgstr "" +"De même, si un test provient d'un module différent du test précédent, alors " +"``tearDownModule`` du module précédent est exécuté, suivi par " +"``setUpModule`` du nouveau module." #: ../Doc/library/unittest.rst:2203 msgid "" "After all the tests have run the final ``tearDownClass`` and " "``tearDownModule`` are run." msgstr "" +"Après que tous les tests ont été exécutés, les ``tearDownClass`` et " +"``tearDownModule`` finaux sont exécutés." #: ../Doc/library/unittest.rst:2206 msgid "" @@ -3533,6 +3685,9 @@ msgid "" "test parallelization and they break test isolation. They should be used with " "care." msgstr "" +"Notez que les aménagements de tests partagés ne fonctionnent pas bien avec " +"les fonctions[potentielles] comme la parallélisation de test et qu'ils " +"brisent l'isolation de test. Ils doivent être utilisés avec précaution." #: ../Doc/library/unittest.rst:2209 msgid "" @@ -3543,6 +3698,13 @@ msgid "" "modules and classes are adjacent to each other, then these shared fixture " "functions may be called multiple times in a single test run." msgstr "" +"L'ordre par défaut des tests créés par les chargeurs de tests unitaires est " +"de regrouper tous les tests des mêmes modules et classes. Cela à pour " +"conséquence que ``setUpClass`` / ``setUpModule`` (etc) sont appelé " +"exactement une fois par classe et module. Si vous rendez l'ordre aléatoire, " +"de sorte que les tests de différents modules et classes soient adjacents les " +"uns aux autres, alors ces fonctions d'aménagements partagées peuvent être " +"appelées plusieurs fois dans un même test." #: ../Doc/library/unittest.rst:2216 msgid "" @@ -3550,6 +3712,10 @@ msgid "" "ordering. A ``BaseTestSuite`` still exists for frameworks that don't want to " "support shared fixtures." msgstr "" +"Les aménagements de tests partagés ne sont pas conçus pour fonctionner avec " +"des suites dont la commande n'est pas standard. Une ``BaseTestSuite`` existe " +"toujours pour les cadriciels qui ne veulent pas gérer les aménagements de " +"tests partagés." #: ../Doc/library/unittest.rst:2220 msgid "" @@ -3560,14 +3726,23 @@ msgid "" "are just using the standard unittest test runner then this detail doesn't " "matter, but if you are a framework author it may be relevant." msgstr "" +"S'il y a des exceptions levées pendant l'une des fonctions d'aménagement de " +"tests partagés, le test est signalé comme étant en erreur. Parce qu'il n'y a " +"pas d'instance de test correspondante, un objet ``_ErrorHolder`` (qui a la " +"même interface qu'une classe :class:`TestCase`) est créé pour représenter " +"l'erreur. Si vous n'utilisez que le lanceur de test unitaire standard, ce " +"détail n'a pas d'importance, mais si vous êtes un auteur de cadriciel de " +"test, il peut être pertinent." #: ../Doc/library/unittest.rst:2229 msgid "setUpClass and tearDownClass" msgstr "" +"Classes de mise en place (*setUpClass*) et de démantèlement des tests " +"(*tearDownClass*)" #: ../Doc/library/unittest.rst:2231 msgid "These must be implemented as class methods::" -msgstr "" +msgstr "Elles doivent être implémentées en tant que méthodes de classe : ::" #: ../Doc/library/unittest.rst:2244 msgid "" @@ -3575,6 +3750,9 @@ msgid "" "then you must call up to them yourself. The implementations in :class:" "`TestCase` are empty." msgstr "" +"Si vous voulez que les classes de base ``setUpClass`` et ``tearDownClass`` " +"soient appelées, vous devez les appeler vous-même. Les implémentations dans :" +"class:`TestCase` sont vides." #: ../Doc/library/unittest.rst:2248 msgid "" @@ -3584,14 +3762,22 @@ msgid "" "`SkipTest` exception then the class will be reported as having been skipped " "instead of as an error." msgstr "" +"Si une exception est levée pendant l'exécution de ``setUpClass`` alors les " +"tests dans la classe ne sont pas exécutés et la classe ``tearDownClass`` " +"n'est pas exécutée. Les classes ignorées n'auront pas d'exécution de " +"``setUpClass`` ou ``tearDownClass``. Si l'exception est une exception :exc:" +"`SkipTest` alors la classe est signalée comme ayant été ignorée au lieu " +"d'être en échec." #: ../Doc/library/unittest.rst:2256 msgid "setUpModule and tearDownModule" msgstr "" +"Module de mise en place (*setUpModule*) et de démantèlement des tests " +"(*tearDownModule*)" #: ../Doc/library/unittest.rst:2258 msgid "These should be implemented as functions::" -msgstr "" +msgstr "Elles doivent être implémentées en tant que fonctions : ::" #: ../Doc/library/unittest.rst:2266 msgid "" @@ -3600,10 +3786,15 @@ msgid "" "exception is a :exc:`SkipTest` exception then the module will be reported as " "having been skipped instead of as an error." msgstr "" +"Si une exception est levée pendant l'exécution de la fonction " +"``setUpModule`` alors aucun des tests du module ne sera exécuté et la " +"fonction ``tearDownModule`` ne sera pas exécutée. Si l'exception est une " +"exception :exc:`SkipTest` alors le module est signalé comme ayant été ignoré " +"au lieu d'être en échec." #: ../Doc/library/unittest.rst:2273 msgid "Signal Handling" -msgstr "" +msgstr "Traitement des signaux" #: ../Doc/library/unittest.rst:2277 msgid "" @@ -3614,6 +3805,13 @@ msgid "" "complete, and the test run will then end and report all the results so far. " "A second control-c will raise a :exc:`KeyboardInterrupt` in the usual way." msgstr "" +"L'option :option:`-c/--catch ` en ligne de commande pour " +"*unittest*, ainsi que le paramètre ``catchbreak`` vers :func:`unittest." +"main()`, permettent une manipulation plus conviviale du contrôle-C pendant " +"un test. Avec l'activation de ``catchbreak``, l'utilisation du contrôle-C " +"permet de terminer le test en cours d'exécution, et le test se termine et " +"rapporte tous les résultats obtenus jusqu'à présent. Un deuxième contrôle-C " +"lève une exception classique :exc:`KeyboardInterrupt`." #: ../Doc/library/unittest.rst:2284 msgid "" @@ -3626,12 +3824,24 @@ msgid "" "to it. For individual tests that need ``unittest`` control-c handling " "disabled the :func:`removeHandler` decorator can be used." msgstr "" +"Le gestionnaire du signal control-c tente de rester compatible avec le code " +"ou les tests qui installent leur propre gestionnaire :const:`signal.SIGINT`. " +"Si le gestionnaire ``unittest`` est appelé mais *n'est pas* le gestionnaire " +"installé :const:`signal.SIGINT`, c'est-à-dire qu'il a été remplacé par le " +"système sous test et délégué, alors il appelle le gestionnaire par défaut. " +"C'est normalement le comportement attendu par un code qui remplace un " +"gestionnaire installé et lui délègue. Pour les tests individuels qui ont " +"besoin que le signal control-c \"unittest\" soit désactivée, le décorateur :" +"func:`removeHandler` peut être utilisé." #: ../Doc/library/unittest.rst:2293 msgid "" "There are a few utility functions for framework authors to enable control-c " "handling functionality within test frameworks." msgstr "" +"Il existe quelques fonctions de support pour les auteurs de cadriciel afin " +"d'activer la fonctionnalité de gestion des *contrôle-C* dans les cadriciels " +"de test." #: ../Doc/library/unittest.rst:2298 msgid "" @@ -3639,6 +3849,10 @@ msgid "" "(usually in response to the user pressing control-c) all registered results " "have :meth:`~TestResult.stop` called." msgstr "" +"Installe le gestionnaire *contrôle-c*. Quand un :const:`signal.SIGINT` est " +"reçu (généralement en réponse à l'utilisateur appuyant sur *contrôle-c*) " +"tous les résultats enregistrés vont appeler la méthode :meth:`~TestResult." +"stop`." #: ../Doc/library/unittest.rst:2305 msgid "" @@ -3646,6 +3860,10 @@ msgid "" "result stores a weak reference to it, so it doesn't prevent the result from " "being garbage collected." msgstr "" +"Enregistre un objet :class:`TestResult` pour la gestion du *contrôle-C*. " +"L'enregistrement d'un résultat stocke une référence faible sur celui-ci, de " +"sorte qu'il n'empêche pas que le résultat soit collecté par le ramasse-" +"miette." #: ../Doc/library/unittest.rst:2309 msgid "" @@ -3653,6 +3871,10 @@ msgid "" "handling is not enabled, so test frameworks can unconditionally register all " "results they create independently of whether or not handling is enabled." msgstr "" +"L'enregistrement d'un objet :class:`TestResult` n'a pas d'effets de bord si " +"la gestion du *contrôle-c* n'est pas activée, donc les cadriciels de test " +"peuvent enregistrer sans condition tous les résultats qu'ils créent " +"indépendamment du fait que la gestion soit activée ou non." #: ../Doc/library/unittest.rst:2316 msgid "" @@ -3660,6 +3882,9 @@ msgid "" "`~TestResult.stop` will no longer be called on that result object in " "response to a control-c." msgstr "" +"Supprime un résultat enregistré. Une fois qu'un résultat a été supprimé, :" +"meth:`~TestResult.stop` n'est plus appelé sur cet objet résultat en réponse " +"à un *contrôle-c*." #: ../Doc/library/unittest.rst:2323 msgid "" @@ -3667,3 +3892,7 @@ msgid "" "it has been installed. This function can also be used as a test decorator to " "temporarily remove the handler while the test is being executed::" msgstr "" +"Lorsqu'elle est appelée sans arguments, cette fonction supprime le " +"gestionnaire *contrôle-c* s'il a été installé. Cette fonction peut également " +"être utilisée comme décorateur de test pour supprimer temporairement le " +"gestionnaire pendant l'exécution du test : ::" From 1ec2d7cc21c81cc4a134aaa843c02183dab531f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Wed, 2 Jan 2019 17:53:03 +0100 Subject: [PATCH 014/121] Correction pour travis --- library/unittest.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 46557b3d5..250eaac05 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -3382,7 +3382,7 @@ msgstr "" #: ../Doc/library/unittest.rst:2035 msgid "Added the tb_locals parameter." -msgstr "Ajout du paramètre tb_locals." +msgstr "Ajout du paramètre *tb_locals*." #: ../Doc/library/unittest.rst:2040 msgid "" @@ -3446,7 +3446,7 @@ msgid "" "not specified or ``None`` and no test names are provided via *argv*, all " "tests found in *module* are run." msgstr "" -"L'argument *defaultTest* est soit le nom d'un seul test, soit un iterable de " +"L'argument *defaultTest* est soit le nom d'un seul test, soit un itérable de " "noms de test à exécuter si aucun nom de test n'est spécifié via *argv*. Si " "aucun nom de test n'est fourni via *argv*, tous les tests trouvés dans " "*module* sont exécutés." @@ -3824,14 +3824,14 @@ msgid "" "to it. For individual tests that need ``unittest`` control-c handling " "disabled the :func:`removeHandler` decorator can be used." msgstr "" -"Le gestionnaire du signal control-c tente de rester compatible avec le code " +"Le gestionnaire du signal *contrôle-C* tente de rester compatible avec le code " "ou les tests qui installent leur propre gestionnaire :const:`signal.SIGINT`. " "Si le gestionnaire ``unittest`` est appelé mais *n'est pas* le gestionnaire " "installé :const:`signal.SIGINT`, c'est-à-dire qu'il a été remplacé par le " "système sous test et délégué, alors il appelle le gestionnaire par défaut. " "C'est normalement le comportement attendu par un code qui remplace un " "gestionnaire installé et lui délègue. Pour les tests individuels qui ont " -"besoin que le signal control-c \"unittest\" soit désactivée, le décorateur :" +"besoin que le signal *contrôle-C* \"*unittest*\" soit désactivée, le décorateur :" "func:`removeHandler` peut être utilisé." #: ../Doc/library/unittest.rst:2293 From 22e996792cd656748704620f8d857b36f16891a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Sun, 27 Jan 2019 15:11:10 +0100 Subject: [PATCH 015/121] update + replace des : :: en nbrsp:: --- library/unittest.po | 139 ++++++++++++++++++++++---------------------- 1 file changed, 69 insertions(+), 70 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 250eaac05..2a449ed32 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -218,7 +218,7 @@ msgstr "" #: ../Doc/library/unittest.rst:88 msgid "Here is a short script to test three string methods::" -msgstr "Voici un court script pour tester trois méthodes de *string* ::" +msgstr "Voici un court script pour tester trois méthodes de *string* ::" #: ../Doc/library/unittest.rst:112 msgid "" @@ -304,7 +304,7 @@ msgid "" msgstr "" "Le module *unittest* est utilisable depuis la ligne de commande pour " "exécuter des tests à partir de modules, de classes ou même de méthodes de " -"test individuelles : ::" +"test individuelles  ::" #: ../Doc/library/unittest.rst:167 msgid "" @@ -318,7 +318,7 @@ msgstr "" msgid "Test modules can be specified by file path as well::" msgstr "" "Les modules de test peuvent également être spécifiés par un chemin de " -"fichier : ::" +"fichier  ::" #: ../Doc/library/unittest.rst:174 msgid "" @@ -340,20 +340,20 @@ msgid "" "flag::" msgstr "" "Pour obtenir plus de détails lors de l'exécution utilisez l'option `-v` " -"(plus de verbosité): ::" +"(plus de verbosité) ::" #: ../Doc/library/unittest.rst:184 msgid "" "When executed without arguments :ref:`unittest-test-discovery` is started::" msgstr "" "Quand la commande est exécutée sans arguments :ref:`unittest-test-discovery` " -"est lancée: ::" +"est lancée ::" #: ../Doc/library/unittest.rst:188 msgid "For a list of all the command-line options::" msgstr "" "Pour afficher la liste de toutes les options de la commande utilisez " -"l'option `-h`: ::" +"l'option `-h` ::" #: ../Doc/library/unittest.rst:192 msgid "" @@ -495,7 +495,7 @@ msgid "" "be used from the command line. The basic command-line usage is::" msgstr "" "La découverte de test est implémentée dans :meth:`TestLoader.discover`, mais " -"peut également être utilisée depuis la ligne de commande. Par exemple : ::" +"peut également être utilisée depuis la ligne de commande. Par exemple  ::" #: ../Doc/library/unittest.rst:277 msgid "" @@ -509,7 +509,7 @@ msgstr "" #: ../Doc/library/unittest.rst:281 msgid "The ``discover`` sub-command has the following options:" -msgstr "La sous-commande ``discover`` a les options suivantes : ::" +msgstr "La sous-commande ``discover`` a les options suivantes  ::" #: ../Doc/library/unittest.rst:287 msgid "Verbose output" @@ -535,7 +535,7 @@ msgid "" msgstr "" "Les options :option:`-s`, :option:`-p`, et :option:`-t` peuvent être passées " "en arguments positionnels dans cet ordre. Les deux lignes de commande " -"suivantes sont équivalentes : ::" +"suivantes sont équivalentes  ::" #: ../Doc/library/unittest.rst:308 msgid "" @@ -635,7 +635,7 @@ msgid "" msgstr "" "La sous-classe :class:`TestCase` la plus simple va tout simplement " "implémenter une méthode de test (c'est-à-dire une méthode dont le nom " -"commence par ``test``) afin d'exécuter un code de test spécifique : ::" +"commence par ``test``) afin d'exécuter un code de test spécifique  ::" #: ../Doc/library/unittest.rst:362 msgid "" @@ -661,7 +661,7 @@ msgstr "" "Les tests peuvent être nombreux et leur mise en place peut être répétitive. " "Heureusement, on peut factoriser le code de mise en place en implémentant " "une méthode appelée :meth:`~TestCase.setUp`, que le système de test appelle " -"automatiquement pour chaque test exécuté : ::" +"automatiquement pour chaque test exécuté  ::" #: ../Doc/library/unittest.rst:389 msgid "" @@ -688,7 +688,7 @@ msgid "" "after the test method has been run::" msgstr "" "De même, on peut fournir une méthode :meth:`~TestCase.tearDown` qui nettoie " -"après l'exécution de la méthode de test : ::" +"après l'exécution de la méthode de test  ::" #: ../Doc/library/unittest.rst:409 msgid "" @@ -734,7 +734,7 @@ msgid "" "can do it yourself::" msgstr "" "Cependant, si vous voulez personnaliser la construction de votre suite de " -"tests, vous pouvez le faire vous-même : ::" +"tests, vous pouvez le faire vous-même  ::" #: ../Doc/library/unittest.rst:438 msgid "" @@ -820,7 +820,7 @@ msgstr "" #: ../Doc/library/unittest.rst:473 msgid "Given the following test function::" -msgstr "Étant donné la fonction de test suivante : ::" +msgstr "Étant donné la fonction de test suivante  ::" #: ../Doc/library/unittest.rst:480 msgid "" @@ -828,7 +828,7 @@ msgid "" "set-up and tear-down methods::" msgstr "" "on peut créer une instance de scénario de test équivalente , avec des " -"méthodes optionnelles de mise en place et de démantèlement : ::" +"méthodes optionnelles de mise en place et de démantèlement  ::" #: ../Doc/library/unittest.rst:489 msgid "" @@ -883,17 +883,17 @@ msgstr "" #: ../Doc/library/unittest.rst:515 msgid "Basic skipping looks like this::" -msgstr "Un exemple de tests à ignorer : ::" +msgstr "Un exemple de tests à ignorer  ::" #: ../Doc/library/unittest.rst:534 msgid "This is the output of running the example above in verbose mode::" msgstr "" -"Ceci est le résultat de l'exécution de l'exemple ci-dessus en mode " -"verbeux : ::" +"Ceci est le résultat de l'exécution de l'exemple ci-dessus en mode verbeux " +" ::" #: ../Doc/library/unittest.rst:545 msgid "Classes can be skipped just like methods::" -msgstr "Les classes peuvent être ignorées tout comme les méthodes : ::" +msgstr "Les classes peuvent être ignorées tout comme les méthodes  ::" #: ../Doc/library/unittest.rst:552 msgid "" @@ -906,7 +906,7 @@ msgstr "" #: ../Doc/library/unittest.rst:555 msgid "Expected failures use the :func:`expectedFailure` decorator. ::" msgstr "" -"Les erreurs prévisibles utilisent le décorateur :func:`expectedFailure` : ::" +"Les erreurs prévisibles utilisent le décorateur :func:`expectedFailure`  ::" #: ../Doc/library/unittest.rst:562 msgid "" @@ -917,13 +917,13 @@ msgstr "" "Il est facile de faire ses propres décorateurs en créant un décorateur qui " "appelle :func:`skip` sur le test que vous voulez ignoré. Par exemple, ce " "décorateur ignore le test à moins que l'objet passé ne possède un certain " -"attribut : ::" +"attribut  ::" #: ../Doc/library/unittest.rst:571 msgid "The following decorators implement test skipping and expected failures:" msgstr "" "Les décorateurs suivants implémentent le système d'omission des tests et les " -"erreurs prévisibles : ::" +"erreurs prévisibles  ::" #: ../Doc/library/unittest.rst:575 msgid "" @@ -990,11 +990,11 @@ msgstr "" #: ../Doc/library/unittest.rst:614 msgid "For example, the following test::" -msgstr "Par exemple, le test suivant : ::" +msgstr "Par exemple, le test suivant  ::" #: ../Doc/library/unittest.rst:626 msgid "will produce the following output::" -msgstr "produit le résultat suivant : ::" +msgstr "produit le résultat suivant  ::" #: ../Doc/library/unittest.rst:652 msgid "" @@ -1004,7 +1004,7 @@ msgid "" msgstr "" "Sans l'utilisation d'un sous-test, l'exécution se termine après le premier " "échec, et l'erreur est moins facile à diagnostiquer car la valeur de ``i`` " -"ne s'affiche pas : ::" +"ne s'affiche pas  ::" #: ../Doc/library/unittest.rst:668 msgid "Classes and functions" @@ -1117,7 +1117,7 @@ msgid "" msgstr "" "Méthode de classe appelée avant l'exécution des tests dans la classe en " "question. ``setUpClass`` est appelé avec la classe comme seul argument et " -"doit être décoré comme une :func:`classmethod` : ::" +"doit être décoré comme une :func:`classmethod`  ::" #: ../Doc/library/unittest.rst:735 ../Doc/library/unittest.rst:750 msgid "See `Class and Module Fixtures`_ for more details." @@ -1131,7 +1131,7 @@ msgid "" msgstr "" "Méthode de classe appelée après l'exécution des tests de la classe en " "question. ``tearDownClass`` est appelé avec la classe comme seul argument et " -"doit être décoré comme une :meth:`classmethod` : ::" +"doit être décoré comme une :meth:`classmethod`  ::" #: ../Doc/library/unittest.rst:757 msgid "" @@ -1538,7 +1538,7 @@ msgid "" msgstr "" "Si seuls les arguments *exception* et éventuellement *msg* sont donnés, " "renvoie un gestionnaire de contexte pour que le code sous test puisse être " -"écrit en ligne plutôt que comme une fonction : ::" +"écrit en ligne plutôt que comme une fonction  ::" #: ../Doc/library/unittest.rst:963 msgid "" @@ -1556,7 +1556,7 @@ msgid "" msgstr "" "Le gestionnaire de contexte enregistre l'exception capturée dans son " "attribut :attr:`exception`. Ceci est particulièrement utile si l'intention " -"est d'effectuer des contrôles supplémentaires sur l'exception levée : ::" +"est d'effectuer des contrôles supplémentaires sur l'exception levée  ::" #: ../Doc/library/unittest.rst:976 msgid "Added the ability to use :meth:`assertRaises` as a context manager." @@ -1586,11 +1586,11 @@ msgstr "" "représentation de la chaîne de caractères de l'exception levée. *regex* " "peut être un objet d'expression rationnelle ou une chaîne contenant une " "expression rationnelle appropriée pour être utilisée par :func:`re.search`. " -"Exemples : ::" +"Exemples  ::" #: ../Doc/library/unittest.rst:997 ../Doc/library/unittest.rst:1065 msgid "or::" -msgstr "ou : ::" +msgstr "ou  ::" #: ../Doc/library/unittest.rst:1002 msgid "under the name ``assertRaisesRegexp``." @@ -1623,7 +1623,7 @@ msgid "" msgstr "" "Si seuls les arguments * warning* et éventuellement *msg* sont donnés, " "renvoie un gestionnaire de contexte pour que le code testé puisse être écrit " -"en ligne plutôt que comme une fonction : ::" +"en ligne plutôt que comme une fonction  ::" #: ../Doc/library/unittest.rst:1029 msgid "" @@ -1644,7 +1644,7 @@ msgstr "" "attribut :attr:`warning`, et la ligne source qui a déclenché les " "avertissements dans les attributs :attr:`filename` et :attr:`lineno`. Cette " "fonction peut être utile si l'intention est d'effectuer des contrôles " -"supplémentaires sur l'avertissement capturé : ::" +"supplémentaires sur l'avertissement capturé  ::" #: ../Doc/library/unittest.rst:1044 msgid "" @@ -1664,7 +1664,7 @@ msgstr "" "Comme :meth:`assertWarns` mais vérifie aussi qu'une *regex* corresponde au " "message de l'avertissement. *regex* peut être un objet d'expression " "régulière ou une chaîne contenant une expression régulière appropriée pour " -"être utilisée par :func:`re.search`. Exemple : ::" +"être utilisée par :func:`re.search`. Exemple  ::" #: ../Doc/library/unittest.rst:1077 msgid "" @@ -1710,7 +1710,7 @@ msgid "" msgstr "" "L'objet retourné par le gestionnaire de contexte est une aide à " "l'enregistrement qui garde la trace des messages de journal correspondants. " -"Il a deux attributs : ::" +"Il a deux attributs  ::" #: ../Doc/library/unittest.rst:1098 msgid "" @@ -1729,14 +1729,14 @@ msgstr "" #: ../Doc/library/unittest.rst:1106 msgid "Example::" -msgstr "Exemple : ::" +msgstr "Exemple  ::" #: ../Doc/library/unittest.rst:1117 msgid "" "There are also other methods used to perform more specific checks, such as:" msgstr "" "Il existe également d'autres méthodes utilisées pour effectuer des contrôles " -"plus spécifiques, telles que : ::" +"plus spécifiques, telles que  ::" #: ../Doc/library/unittest.rst:1122 msgid ":meth:`assertAlmostEqual(a, b) `" @@ -1858,7 +1858,7 @@ msgid "" "the method name. If not, the test will fail::" msgstr "" "Vérifie que *first* est respectivement >, >=, >=, < ou <= à *second* selon " -"le nom de la méthode. Sinon, le test échouera : ::" +"le nom de la méthode. Sinon, le test échouera  ::" #: ../Doc/library/unittest.rst:1189 msgid "" @@ -1932,7 +1932,7 @@ msgstr "" "du même type à différentes méthodes spécifiques au type. Ces méthodes sont " "déjà implémentées pour la plupart des types intégrés, mais il est également " "possible d'enregistrer de nouvelles méthodes en utilisant :meth:" -"`addTypeEqualityFunc` : ::" +"`addTypeEqualityFunc`  ::" #: ../Doc/library/unittest.rst:1231 msgid "" @@ -2096,7 +2096,7 @@ msgid "" "Finally the :class:`TestCase` provides the following methods and attributes:" msgstr "" "Enfin, la classe :class:`TestCase` fournit les méthodes et attributs " -"suivants : ::" +"suivants  ::" #: ../Doc/library/unittest.rst:1336 msgid "" @@ -2178,7 +2178,7 @@ msgid "" "the test:" msgstr "" "Les *frameworks* de test peuvent utiliser les méthodes suivantes pour " -"recueillir des informations sur le test : ::" +"recueillir des informations sur le test  ::" #: ../Doc/library/unittest.rst:1387 msgid "" @@ -2318,8 +2318,7 @@ msgid "" msgstr "" "Pour des raisons historiques, certaines méthodes de la classe ::class:" "`TestCase` avaient un ou plusieurs alias qui sont maintenant obsolètes. Le " -"tableau suivant énumère les noms corrects ainsi que leurs alias " -"obsolètes : ::" +"tableau suivant énumère les noms corrects ainsi que leurs alias obsolètes  ::" #: ../Doc/library/unittest.rst:1471 msgid "Method Name" @@ -2490,7 +2489,7 @@ msgstr "" "`TestCase`, sauf qu'ils n'implémentent pas réellement un test. Au lieu de " "cela, ils sont utilisés pour regrouper les tests en groupes de tests qui " "doivent être exécutés ensemble. Des méthodes supplémentaires sont " -"disponibles pour ajouter des tests aux instances de :class:`TestSuite` : ::" +"disponibles pour ajouter des tests aux instances de :class:`TestSuite`  ::" #: ../Doc/library/unittest.rst:1519 msgid "Add a :class:`TestCase` or :class:`TestSuite` to the suite." @@ -2516,7 +2515,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1530 msgid ":class:`TestSuite` shares the following methods with :class:`TestCase`:" msgstr "" -":class:`TestSuite` partage les méthodes suivantes avec :class:`TestCase` : ::" +":class:`TestSuite` partage les méthodes suivantes avec :class:`TestCase`  ::" #: ../Doc/library/unittest.rst:1535 msgid "" @@ -2621,7 +2620,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1591 msgid ":class:`TestLoader` objects have the following attributes:" msgstr "" -"Les objets de la classe :class:`TestLoader` ont les attributs suivants : ::" +"Les objets de la classe :class:`TestLoader` ont les attributs suivants  ::" #: ../Doc/library/unittest.rst:1596 msgid "" @@ -2639,7 +2638,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1605 msgid ":class:`TestLoader` objects have the following methods:" msgstr "" -"Les objets de la classe :class:`TestLoader` ont les attributs suivants : ::" +"Les objets de la classe :class:`TestLoader` ont les attributs suivants  ::" #: ../Doc/library/unittest.rst:1610 msgid "" @@ -2907,7 +2906,7 @@ msgid "" "by subclassing or assignment on an instance:" msgstr "" "Les attributs suivants d'une classe :class:`TestLoader` peuvent être " -"configurés soit par héritage, soit par affectation sur une instance : ::" +"configurés soit par héritage, soit par affectation sur une instance  ::" #: ../Doc/library/unittest.rst:1752 msgid "" @@ -3012,7 +3011,7 @@ msgid "" msgstr "" "Les instance de :class:`TestResult` ont les attributs suivants qui sont " "intéressant pour l'inspection des résultats de l'exécution d'un ensemble de " -"tests : ::" +"tests  ::" #: ../Doc/library/unittest.rst:1810 msgid "" @@ -3404,7 +3403,7 @@ msgstr "" "``_makeResult()`` instancie la classe ou l'appelable passé dans le " "constructeur ``TextTestRunner``` comme argument ``resultclass``. Il vaut par " "défaut :class:`TextTestResult` si aucune ``resultclass`` n'est fournie. La " -"classe de résultat est instanciée avec les arguments suivants : ::" +"classe de résultat est instanciée avec les arguments suivants  ::" #: ../Doc/library/unittest.rst:2053 msgid "" @@ -3428,8 +3427,8 @@ msgstr "" "Un programme en ligne de commande qui charge un ensemble de tests à partir " "du *module* et les exécute . L'utilisation principale est de rendre les " "modules de test facilement exécutables. L'utilisation la plus simple pour " -"cette fonction est d'inclure la ligne suivante à la fin d'un script de " -"test : ::" +"cette fonction est d'inclure la ligne suivante à la fin d'un script de test " +" ::" #: ../Doc/library/unittest.rst:2072 msgid "" @@ -3437,7 +3436,7 @@ msgid "" "argument::" msgstr "" "Vous pouvez exécuter des tests avec des informations plus détaillées en " -"utilisant l'option de verbosité : ::" +"utilisant l'option de verbosité  ::" #: ../Doc/library/unittest.rst:2078 msgid "" @@ -3488,7 +3487,7 @@ msgid "" msgstr "" "Les ``main`` sont utilisés à partir de l'interpréteur interactif en passant " "dans l'argument ``exit=False``. Ceci affiche le résultat sur la sortie " -"standard sans appeler :func:`sys.exit` : ::" +"standard sans appeler :func:`sys.exit`  ::" #: ../Doc/library/unittest.rst:2101 msgid "" @@ -3562,7 +3561,7 @@ msgid "" "`TestLoader.loadTestsFromModule` with the following arguments::" msgstr "" "Si un module de test définit ``load_tests`` il est appelé par :meth:" -"`TestLoader.loadTestsFromModule` avec les arguments suivants : ::" +"`TestLoader.loadTestsFromModule` avec les arguments suivants  ::" #: ../Doc/library/unittest.rst:2138 msgid "" @@ -3597,7 +3596,7 @@ msgid "" "class:`TestCase` classes may look like::" msgstr "" "Une fonction typique de ``load_tests`` qui charge les tests d'un ensemble " -"spécifique de classes :class:`TestCase` peut ressembler à : ::" +"spécifique de classes :class:`TestCase` peut ressembler à  ::" #: ../Doc/library/unittest.rst:2161 msgid "" @@ -3614,7 +3613,7 @@ msgstr "" "`__init__.py` la fonction ``load_tests``. Si cette fonction n'existe pas, la " "découverte se poursuit dans le paquet comme si c'était juste un autre " "répertoire. Sinon, la découverte des tests du paquet est effectuée par " -"``load_tests`` qui est appelé avec les arguments suivants : ::" +"``load_tests`` qui est appelé avec les arguments suivants  ::" #: ../Doc/library/unittest.rst:2170 msgid "" @@ -3634,7 +3633,7 @@ msgid "" msgstr "" "Comme le motif est passé à ``load_tests``, le paquet est libre de continuer " "(et potentiellement de modifier) la découverte des tests. Une fonction 'ne " -"rien faire' ``load_tests`` pour un paquet de test ressemblerait à : ::" +"rien faire' ``load_tests`` pour un paquet de test ressemblerait à  ::" #: ../Doc/library/unittest.rst:2185 msgid "" @@ -3742,7 +3741,7 @@ msgstr "" #: ../Doc/library/unittest.rst:2231 msgid "These must be implemented as class methods::" -msgstr "Elles doivent être implémentées en tant que méthodes de classe : ::" +msgstr "Elles doivent être implémentées en tant que méthodes de classe  ::" #: ../Doc/library/unittest.rst:2244 msgid "" @@ -3777,7 +3776,7 @@ msgstr "" #: ../Doc/library/unittest.rst:2258 msgid "These should be implemented as functions::" -msgstr "Elles doivent être implémentées en tant que fonctions : ::" +msgstr "Elles doivent être implémentées en tant que fonctions  ::" #: ../Doc/library/unittest.rst:2266 msgid "" @@ -3824,15 +3823,15 @@ msgid "" "to it. For individual tests that need ``unittest`` control-c handling " "disabled the :func:`removeHandler` decorator can be used." msgstr "" -"Le gestionnaire du signal *contrôle-C* tente de rester compatible avec le code " -"ou les tests qui installent leur propre gestionnaire :const:`signal.SIGINT`. " -"Si le gestionnaire ``unittest`` est appelé mais *n'est pas* le gestionnaire " -"installé :const:`signal.SIGINT`, c'est-à-dire qu'il a été remplacé par le " -"système sous test et délégué, alors il appelle le gestionnaire par défaut. " -"C'est normalement le comportement attendu par un code qui remplace un " -"gestionnaire installé et lui délègue. Pour les tests individuels qui ont " -"besoin que le signal *contrôle-C* \"*unittest*\" soit désactivée, le décorateur :" -"func:`removeHandler` peut être utilisé." +"Le gestionnaire du signal *contrôle-C* tente de rester compatible avec le " +"code ou les tests qui installent leur propre gestionnaire :const:`signal." +"SIGINT`. Si le gestionnaire ``unittest`` est appelé mais *n'est pas* le " +"gestionnaire installé :const:`signal.SIGINT`, c'est-à-dire qu'il a été " +"remplacé par le système sous test et délégué, alors il appelle le " +"gestionnaire par défaut. C'est normalement le comportement attendu par un " +"code qui remplace un gestionnaire installé et lui délègue. Pour les tests " +"individuels qui ont besoin que le signal *contrôle-C* \"*unittest*\" soit " +"désactivée, le décorateur :func:`removeHandler` peut être utilisé." #: ../Doc/library/unittest.rst:2293 msgid "" @@ -3895,4 +3894,4 @@ msgstr "" "Lorsqu'elle est appelée sans arguments, cette fonction supprime le " "gestionnaire *contrôle-c* s'il a été installé. Cette fonction peut également " "être utilisée comme décorateur de test pour supprimer temporairement le " -"gestionnaire pendant l'exécution du test : ::" +"gestionnaire pendant l'exécution du test  ::" From 622fa319be608b8f236545069783c9ef6671c073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Mon, 28 Jan 2019 22:04:46 +0100 Subject: [PATCH 016/121] relecture logique --- library/unittest.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index 2a449ed32..b3d1a8eb5 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-17 21:38+0100\n" -"PO-Revision-Date: 2019-01-02 17:17+0100\n" +"PO-Revision-Date: 2019-01-28 21:58+0100\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/unittest.rst:2 msgid ":mod:`unittest` --- Unit testing framework" @@ -279,8 +279,8 @@ msgid "" "output::" msgstr "" "Passer l'option ``-v`` à votre script de test informera :func:`unittest." -"main` qu'il doit fournir un niveau plus important de verbosité, et produit " -"la sortie suivante ::" +"main` qu'il doit fournir un niveau plus important de détails, et produit la " +"sortie suivante ::" #: ../Doc/library/unittest.rst:150 msgid "" @@ -1071,7 +1071,7 @@ msgstr "" #: ../Doc/library/unittest.rst:702 msgid "Methods in the first group (running the test) are:" -msgstr "Les méthodes du premier groupe (exécution du test) sont :" +msgstr "Les méthodes du premier groupe (exécution du test) sont :" #: ../Doc/library/unittest.rst:706 msgid "" @@ -1083,7 +1083,7 @@ msgstr "" "Méthode appelée pour réaliser la mise en place du test. Elle est exécutée " "immédiatement avant l'appel de la méthode de test ; à l'exception de :exc:" "`AssertionError` ou :exc:`SkipTest`, toute exception levée par cette méthode " -"est considérée une erreur et non pas comme un échec du test. " +"est considérée comme une erreur et non pas comme un échec du test. " "L'implémentation par défaut ne fait rien." #: ../Doc/library/unittest.rst:714 From 820494f5f0ff8e91e932061e1f8d128605ba70aa Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Thu, 14 Feb 2019 21:45:38 +0100 Subject: [PATCH 017/121] Update library/unittest.po Co-Authored-By: Krilivye --- library/unittest.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/unittest.po b/library/unittest.po index b3d1a8eb5..2ba544726 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -1131,7 +1131,7 @@ msgid "" msgstr "" "Méthode de classe appelée après l'exécution des tests de la classe en " "question. ``tearDownClass`` est appelé avec la classe comme seul argument et " -"doit être décoré comme une :meth:`classmethod`  ::" +"doit être décorée comme une :meth:`classmethod`  ::" #: ../Doc/library/unittest.rst:757 msgid "" From 330bd4b28fef1a2fe0c9ae44b51b0f11cf51b1bc Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Thu, 14 Feb 2019 21:45:51 +0100 Subject: [PATCH 018/121] Update library/unittest.po Co-Authored-By: Krilivye --- library/unittest.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/unittest.po b/library/unittest.po index 2ba544726..7cf306c69 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -1130,7 +1130,7 @@ msgid "" "decorated as a :meth:`classmethod`::" msgstr "" "Méthode de classe appelée après l'exécution des tests de la classe en " -"question. ``tearDownClass`` est appelé avec la classe comme seul argument et " +"question. ``tearDownClass`` est appelée avec la classe comme seul argument et " "doit être décorée comme une :meth:`classmethod`  ::" #: ../Doc/library/unittest.rst:757 From ab02c8c901e6dc80af35dad5ab7f64e077f295b3 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Thu, 14 Feb 2019 21:46:04 +0100 Subject: [PATCH 019/121] Update library/unittest.po Co-Authored-By: Krilivye --- library/unittest.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/unittest.po b/library/unittest.po index 7cf306c69..b24c4f4a1 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -1117,7 +1117,7 @@ msgid "" msgstr "" "Méthode de classe appelée avant l'exécution des tests dans la classe en " "question. ``setUpClass`` est appelé avec la classe comme seul argument et " -"doit être décoré comme une :func:`classmethod`  ::" +"doit être décorée comme une :func:`classmethod`  ::" #: ../Doc/library/unittest.rst:735 ../Doc/library/unittest.rst:750 msgid "See `Class and Module Fixtures`_ for more details." From 05a2995fdae80f8d3e0a7a46854f6dea54613ea2 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Thu, 14 Feb 2019 22:09:55 +0100 Subject: [PATCH 020/121] Apply suggestions from code review Co-Authored-By: Krilivye --- library/unittest.po | 82 +++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index b24c4f4a1..ba2560deb 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -377,7 +377,7 @@ msgid "" "run. Output during a passing test is discarded. Output is echoed normally on " "test fail or error and is added to the failure messages." msgstr "" -"Les flux de sortie et d'erreur standard sont mis en mémoire tampon pendant " +"Les flux de sortie et d'erreur standards sont mis en mémoire tampon pendant " "l'exécution des tests. Les résultats d'un test réussi ne sont pas pris en " "compte. Un test en échec ou en erreur est affiché sur la sortie et est " "ajouté aux messages d'erreur." @@ -403,7 +403,7 @@ msgstr "" #: ../Doc/library/unittest.rst:220 msgid "Stop the test run on the first error or failure." msgstr "" -"Arrête l'exécution des tests lors du premier cas d'erreur ou défaillance." +"Arrête l'exécution des tests lors du premier cas d'erreur ou d'échec." #: ../Doc/library/unittest.rst:224 msgid "" @@ -413,7 +413,7 @@ msgid "" msgstr "" "Exécute uniquement les méthodes de test et les classes qui correspondent au " "motif ou à la chaîne de caractères. Cette option peut être utilisée " -"plusieurs fois, auquel cas tous les cas de test qui correspondent aux motifs " +"plusieurs fois ; dans ce cas, tous les tests qui correspondent aux motifs " "donnés sont inclus." #: ../Doc/library/unittest.rst:228 @@ -471,7 +471,7 @@ msgstr "" #: ../Doc/library/unittest.rst:258 msgid "Test Discovery" -msgstr "Découverte des tests. " +msgstr "Découverte des tests" #: ../Doc/library/unittest.rst:262 msgid "" @@ -483,7 +483,7 @@ msgid "" "`)." msgstr "" "*Unittest* prend en charge une découverte simple des tests. Afin d'être " -"compatible avec le système de découverte de test, tous les fichiers de test " +"compatible avec le système de découverte de tests, tous les fichiers de test " "doivent être des :ref:`modules ` ou des :ref:`paquets ` (incluant des :term:`paquets-espaces de noms `) importables du répertoire du projet (cela signifie que leurs noms " @@ -494,7 +494,7 @@ msgid "" "Test discovery is implemented in :meth:`TestLoader.discover`, but can also " "be used from the command line. The basic command-line usage is::" msgstr "" -"La découverte de test est implémentée dans :meth:`TestLoader.discover`, mais " +"La découverte de tests est implémentée dans :meth:`TestLoader.discover`, mais " "peut également être utilisée depuis la ligne de commande. Par exemple  ::" #: ../Doc/library/unittest.rst:277 @@ -504,7 +504,7 @@ msgid "" "``discover`` sub-command must be used explicitly." msgstr "" "Comme raccourci, ``python -m unittest`` est l'équivalent de ``python -m " -"unittest discover``.Pour passer des arguments au système de découverte des " +"unittest discover``. Pour passer des arguments au système de découverte des " "tests, la sous-commande ``discover`` doit être utilisée explicitement." #: ../Doc/library/unittest.rst:281 @@ -525,7 +525,8 @@ msgstr "Motif de détection des fichiers de test (``test*.py`` par défaut)" #: ../Doc/library/unittest.rst:299 msgid "Top level directory of project (defaults to start directory)" -msgstr "Répertoire de premier niveau du projet (répertoire racine par défaut)" +"Répertoire de premier niveau du projet (répertoire racine, c'est-à-dire " +"*start-directory*, par défaut)" #: ../Doc/library/unittest.rst:301 msgid "" @@ -533,7 +534,7 @@ msgid "" "positional arguments in that order. The following two command lines are " "equivalent::" msgstr "" -"Les options :option:`-s`, :option:`-p`, et :option:`-t` peuvent être passées " +"Les options :option:`-s`, :option:`-p` et :option:`-t` peuvent être passées " "en arguments positionnels dans cet ordre. Les deux lignes de commande " "suivantes sont équivalentes  ::" @@ -544,7 +545,7 @@ msgid "" "supply will then be imported and its location on the filesystem will be used " "as the start directory." msgstr "" -"En plus d'être un chemin, il est possible de passer un nom de paquet, par " +"Il est aussi possible de passer un nom de paquet plutôt qu'un chemin, par " "exemple ``monprojet.souspaquet.test``, comme répertoire racine. Le nom du " "paquet fourni est alors importé et son emplacement sur le système de " "fichiers est utilisé comme répertoire racine." @@ -557,7 +558,7 @@ msgid "" "imported as ``foo.bar.baz``." msgstr "" "Le mécanisme de découverte charge les tests en les important. Une fois que " -"le système a trouvé tous les fichiers de test du répertoire de démarrage " +"le système a trouvé tous les fichiers de tests du répertoire de démarrage " "spécifié, il transforme les chemins en noms de paquets à importer. Par " "exemple :file:`truc/bidule/machin.py` est importé sous ``truc.bidule." "machin``." @@ -569,7 +570,7 @@ msgid "" "place. If this happens test discovery will warn you and exit." msgstr "" "Si un paquet est installé globalement et que le mécanisme de découverte de " -"test est effectué sur une copie différente du paquet, l'importation *peut* " +"tests est effectué sur une copie différente du paquet, l'importation *peut* " "se produire à partir du mauvais endroit. Si cela arrive, le système émet un " "avertissement et se termine." @@ -580,7 +581,7 @@ msgid "" "the location you intended, so you will not get the warning." msgstr "" "Si vous donnez le répertoire racine sous la forme d'un nom de paquet plutôt " -"que d'un chemin d'accès à un répertoire, alors *discover* suppose que " +"que d'un chemin d'accès à un répertoire, alors Python suppose que " "l'emplacement à partir duquel il importe est l'emplacement que vous voulez, " "vous ne verrez donc pas l'avertissement." @@ -595,7 +596,7 @@ msgstr "" #: ../Doc/library/unittest.rst:332 msgid "Test discovery supports :term:`namespace packages `." msgstr "" -"La découverte de test prend en charge :term:`les paquets-espaces de noms " +"La découverte de tests prend en charge :term:`les paquets-espaces de noms " "`." #: ../Doc/library/unittest.rst:339 @@ -610,7 +611,8 @@ msgid "" "instances. To make your own test cases you must write subclasses of :class:" "`TestCase` or use :class:`FunctionTestCase`." msgstr "" -"Les éléments de base des tests unitaires sont les :dfn:`test cases` --- Des " +"Les éléments de base des tests unitaires sont les :dfn:`scénarios de tests` " +"(*test cases* en anglais) --- Des " "scénarios uniques qui sont mis en place et exécutés pour vérifier qu'ils " "sont corrects. Dans :mod:`unittest`, les scénarios de test sont représentés " "par des instances de :class:`unittest.TestCase`. Pour créer vos propres " @@ -648,7 +650,7 @@ msgstr "" "Notez que pour tester quelque chose, on utilise l'une des méthodes :meth:" "`assert\\*` fournies par la classe de base :class:`TestCase`. Si le test " "échoue, une exception est levée avec un message explicatif, et :mod:" -"`unittest` identifie le cas de test comme un :dfn:`échec`. Toute autre " +"`unittest` identifie ce scénario de test comme un :dfn:`échec`. Toute autre " "exception est traitée comme une :dfn:`erreur`." #: ../Doc/library/unittest.rst:368 @@ -669,7 +671,7 @@ msgid "" "the test method names with respect to the built-in ordering for strings." msgstr "" "L'ordre dans lequel les différents tests sont exécutés est déterminé en " -"classant les noms des méthodes de test en fonction des relation d'ordre des " +"classant les noms des méthodes de test en fonction de la relation d'ordre des " "chaines de caractères ." #: ../Doc/library/unittest.rst:393 @@ -706,8 +708,8 @@ msgid "" "`~TestCase.tearDown`, and :meth:`~TestCase.__init__` will be called once per " "test." msgstr "" -"Un tel environnement de travail pour le code de test s'appelle une :dfn:" -"`fixture`. Une nouvelle instance de *TestCase* est créée sous la forme d'un " +"Un tel environnement de travail pour le code de test s'appelle un :dfn:" +"`aménagement de test` (*fixture* en anglais). Une nouvelle instance de *TestCase* est créée sous la forme d'un " "dispositif de test unique utilisé pour exécuter chaque méthode de test " "individuelle. Ainsi :meth:`~TestCase.setUp`, :meth:`~TestCase.tearDown` et :" "meth:`~TestCase.__init__` ne sont appelées qu'une fois par test." @@ -725,7 +727,7 @@ msgstr "" "des fonctionnalités qu'ils testent. :mod:`unittest` fournit un mécanisme " "pour cela : la :dfn:`suite de tests`, représentée par :class:`TestSuite` du " "module :mod:`unittest`. Dans la plupart des cas, appeler :func:`unittest." -"main` fait la bonne chose et rassemble tous les cas de test du module pour " +"main` fait correctement les choses et trouve tous les scénarios de test du module pour " "vous et les exécute." #: ../Doc/library/unittest.rst:425 @@ -743,9 +745,9 @@ msgid "" "are several advantages to placing the test code in a separate module, such " "as :file:`test_widget.py`:" msgstr "" -"Vous pouvez placer les définitions des cas de test et des suites de test " +"Vous pouvez placer les définitions des scénarios de test et des suites de test " "dans le même module que le code à tester (tel que :file:`composant.py`), " -"mais il y a plusieurs avantages à placer le code test dans un module séparé, " +"mais il y a plusieurs avantages à placer le code de test dans un module séparé, " "tel que :file:`test_composant.py` :" #: ../Doc/library/unittest.rst:443 @@ -783,7 +785,7 @@ msgid "" "not be consistent?" msgstr "" "Les tests pour les modules écrits en C doivent de toute façon être dans des " -"modules séparés, alors pourquoi ne pas être cohérents ?" +"modules séparés, alors pourquoi ne pas être cohérent ?" #: ../Doc/library/unittest.rst:457 msgid "" @@ -820,14 +822,14 @@ msgstr "" #: ../Doc/library/unittest.rst:473 msgid "Given the following test function::" -msgstr "Étant donné la fonction de test suivante  ::" +msgstr "Étant donnée la fonction de test suivante  ::" #: ../Doc/library/unittest.rst:480 msgid "" "one can create an equivalent test case instance as follows, with optional " "set-up and tear-down methods::" msgstr "" -"on peut créer une instance de scénario de test équivalente , avec des " +"on peut créer une instance de scénario de test équivalente, avec des " "méthodes optionnelles de mise en place et de démantèlement  ::" #: ../Doc/library/unittest.rst:489 @@ -839,7 +841,7 @@ msgid "" msgstr "" "Même si la classe :class:`FunctionTestCase` peut être utilisée pour " "convertir rapidement une base de test existante vers un système basé sur :" -"mod:`unittest`. Cette approche n'est pas recommandée. Prendre le temps de " +"mod:`unittest`, cette approche n'est pas recommandée. Prendre le temps de " "bien configurer les sous-classes de :class:`TestCase` simplifiera " "considérablement les futurs réusinages des tests." @@ -858,7 +860,7 @@ msgstr "" #: ../Doc/library/unittest.rst:503 msgid "Skipping tests and expected failures" -msgstr "Ignorer les tests et les erreurs prévisibles." +msgstr "Ignorer des tests et des erreurs prévisibles" #: ../Doc/library/unittest.rst:507 msgid "" @@ -878,7 +880,7 @@ msgid "" "Skipping a test is simply a matter of using the :func:`skip` :term:" "`decorator` or one of its conditional variants." msgstr "" -"Ignorer un test consiste à utiliser la fonction :func:`skip` qui est un :" +"Ignorer un test consiste à utiliser le :term:`décorateur ` :func:`skip` " "term:`decorator` ou une de ses variantes conditionnelles." #: ../Doc/library/unittest.rst:515 @@ -915,7 +917,7 @@ msgid "" "decorator skips the test unless the passed object has a certain attribute::" msgstr "" "Il est facile de faire ses propres décorateurs en créant un décorateur qui " -"appelle :func:`skip` sur le test que vous voulez ignoré. Par exemple, ce " +"appelle :func:`skip` sur le test que vous voulez ignorer. Par exemple, ce " "décorateur ignore le test à moins que l'objet passé ne possède un certain " "attribut  ::" @@ -935,11 +937,11 @@ msgstr "" #: ../Doc/library/unittest.rst:580 msgid "Skip the decorated test if *condition* is true." -msgstr "Ignore le test décoré si la *condition* est vrai." +msgstr "Ignore le test décoré si la *condition* est vraie." #: ../Doc/library/unittest.rst:584 msgid "Skip the decorated test unless *condition* is true." -msgstr "Ignore le test décoré sauf si la *condition* est vrai." +msgstr "Ignore le test décoré sauf si la *condition* est vraie." #: ../Doc/library/unittest.rst:588 msgid "" @@ -947,7 +949,7 @@ msgid "" "considered a success. If the test passes, it will be considered a failure." msgstr "" "Marque le test comme étant un erreur attendue. Si le test échoue il est " -"considéré comme un succès.Si il passe il est considéré comme étant en échec." +"considéré comme un succès. S'il passe, il est considéré comme étant en échec." #: ../Doc/library/unittest.rst:593 msgid "This exception is raised to skip a test." @@ -968,9 +970,9 @@ msgid "" "setUpClass` or :meth:`~TestCase.tearDownClass` run. Skipped modules will not " "have :func:`setUpModule` or :func:`tearDownModule` run." msgstr "" -"Les tests ignorés n'ont pas :meth:`~TestCase.setUp` ou :meth:`~TestCase." -"tearDown` d'exécutés. Les classes ignorées n'ont pas :meth:`~TestCase." -"setUpClass` ou :meth:`~TestCase.tearDownClass` d'exécutés. Les modules " +"Les tests ignorés ne lancent ni :meth:`~TestCase.setUp` ni :meth:`~TestCase." +"tearDown`. Les classes ignorées ne lancent ni :meth:`~TestCase." +"setUpClass` ni :meth:`~TestCase.tearDownClass`. Les modules " "sautés n'ont pas :func:`setUpModule` ou :func:`tearDownModule` d'exécutés." #: ../Doc/library/unittest.rst:606 @@ -984,7 +986,7 @@ msgid "" "test method using the :meth:`~TestCase.subTest` context manager." msgstr "" "Lorsque certains de vos tests ne diffèrent que par de très petites " -"différences, par exemple certains paramètres; *unittest* vous permet de les " +"différences, par exemple certains paramètres, *unittest* vous permet de les " "distinguer en utilisant le gestionnaire de contexte :meth:`~TestCase." "subTest` dans le corps d'une méthode de test." @@ -1031,7 +1033,7 @@ msgstr "" "unitaires dans l'univers :mod:`unittest`. Cette classe est conçue pour être " "utilisée comme classe de base. Les scénarios de tests sont à implémenter en " "héritant de cette classe. La classe implémente l'interface nécessaire au " -"lanceur de test pour lui permettre de les exécuter ainsi que les méthodes " +"lanceur de tests pour lui permettre de les exécuter ainsi que les méthodes " "que le code de test peut utiliser pour vérifier et signaler les différents " "types d'erreurs." @@ -1041,8 +1043,8 @@ msgid "" "named *methodName*. In most uses of :class:`TestCase`, you will neither " "change the *methodName* nor reimplement the default ``runTest()`` method." msgstr "" -"Chaque instance de la classe :class:`TestCase` exécutera une seule méthode " -"de base : La méthode nommée *methodName* . Dans la plupart des utilisations " +"Chaque instance de la classe :class:`TestCase` n'exécute qu'une seule méthode " +"de base : la méthode nommée *methodName* . Dans la plupart des utilisations " "de la classe :class:`TestCase`, vous n'avez pas à changer le nom de la " "méthode, ni à réimplémenter la méthode ``runTest()``." @@ -1116,7 +1118,7 @@ msgid "" "decorated as a :func:`classmethod`::" msgstr "" "Méthode de classe appelée avant l'exécution des tests dans la classe en " -"question. ``setUpClass`` est appelé avec la classe comme seul argument et " +"question. ``setUpClass`` est appelée avec la classe comme seul argument et " "doit être décorée comme une :func:`classmethod`  ::" #: ../Doc/library/unittest.rst:735 ../Doc/library/unittest.rst:750 From 212a6983a05477541e5119c70114701ed3186c25 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Fri, 22 Feb 2019 10:29:30 +0100 Subject: [PATCH 021/121] =?UTF-8?q?Mise=20=C3=A0=20jour=20des=20traduction?= =?UTF-8?q?s=20marqu=C3=A9es=20'fuzzy'=20dans=20library/=20(#555)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/abc.po | 8 +++----- library/collections.po | 16 +++++++--------- library/constants.po | 11 +++++------ library/copy.po | 16 +++++++--------- library/datetime.po | 7 ++++--- library/fnmatch.po | 7 +++---- library/functions.po | 21 ++++++++++----------- library/functools.po | 23 +++++++++++++---------- 8 files changed, 52 insertions(+), 57 deletions(-) diff --git a/library/abc.po b/library/abc.po index c0e0339f2..ae7b58afd 100644 --- a/library/abc.po +++ b/library/abc.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-07-27 22:56+0200\n" +"PO-Revision-Date: 2019-02-21 17:32+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.9\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/abc.rst:2 msgid ":mod:`abc` --- Abstract Base Classes" @@ -40,7 +40,6 @@ msgstr "" "abstraite." #: ../Doc/library/abc.rst:20 -#, fuzzy msgid "" "The :mod:`collections` module has some concrete classes that derive from " "ABCs; these can, of course, be further derived. In addition, the :mod:" @@ -282,7 +281,6 @@ msgstr "" "décorateur le plus interne. Voir les exemples d'utilisation suivants : ::" #: ../Doc/library/abc.rst:216 -#, fuzzy msgid "" "In order to correctly interoperate with the abstract base class machinery, " "the descriptor must identify itself as abstract using :attr:" @@ -294,7 +292,7 @@ msgstr "" "un descripteur doit s'identifier comme abstrait en utilisant :attr:" "`__isabstractmethod__`. En général, cet attribut doit être ``True`` si au " "moins une des méthodes faisant partie du descripteur est abstraite. Par " -"exemple, la propriété native de python fait l'équivalent de : ::" +"exemple, la classe native :class:`property` de python fait l'équivalent de ::" #: ../Doc/library/abc.rst:231 msgid "" diff --git a/library/collections.po b/library/collections.po index e618a1fdf..1ff43cd49 100644 --- a/library/collections.po +++ b/library/collections.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-10-05 15:34+0200\n" +"PO-Revision-Date: 2019-02-21 17:08+0100\n" "Last-Translator: Guillaume Fayard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.1.1\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/collections.rst:2 msgid ":mod:`collections` --- Container datatypes" @@ -360,7 +360,6 @@ msgstr "" "dénombrements. Par exemple : ::" #: ../Doc/library/collections.rst:227 -#, fuzzy msgid "" "A :class:`Counter` is a :class:`dict` subclass for counting hashable " "objects. It is a collection where elements are stored as dictionary keys and " @@ -369,12 +368,11 @@ msgid "" "is similar to bags or multisets in other languages." msgstr "" "La classe :class:`Counter` est une sous-classe de :class:`dict` qui permet " -"le dénombrement d'objets hachables. Il s'agit d'une collection non ordonnée " -"dans laquelle les éléments sont stockés comme des clés de dictionnaire et " -"leurs nombres d’occurrences respectifs comme leurs valeurs. Ceux-ci peuvent " -"être des entiers relatifs (positifs, négatifs ou nuls). La classe :class:" -"`Counter` est similaire aux sacs ou aux multiensembles dans d'autres " -"langages." +"le dénombrement d'objets hachables. Il s'agit d'une collection dans laquelle " +"les éléments sont stockés comme des clés de dictionnaire et leurs nombres " +"d’occurrences respectifs comme leurs valeurs. Ceux-ci peuvent être des " +"entiers relatifs (positifs, négatifs ou nuls). La classe :class:`Counter` " +"est similaire aux sacs ou aux multiensembles dans d'autres langages." #: ../Doc/library/collections.rst:233 msgid "" diff --git a/library/constants.po b/library/constants.po index 864690c3f..70de9f0ff 100644 --- a/library/constants.po +++ b/library/constants.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-07-29 18:54+0200\n" +"PO-Revision-Date: 2019-02-21 17:13+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.7.1\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/constants.rst:4 msgid "Built-in Constants" @@ -101,15 +101,14 @@ msgstr "" "`NotImplementedError` pour savoir quand l'utiliser." #: ../Doc/library/constants.rst:57 -#, fuzzy msgid "" "The same as the ellipsis literal \"``...``\". Special value used mostly in " "conjunction with extended slicing syntax for user-defined container data " "types." msgstr "" -"Identique à ``...``. Valeur spéciale utilisée principalement de manière " -"conjointe avec la syntaxe de *slicing* étendu pour les conteneurs " -"personnalisés." +"Identique au littéral *points de suspension* (\"``...``\"). Valeur spéciale " +"utilisée principalement de manière conjointe avec la syntaxe de découpage " +"(*slicing*) étendu pour les conteneurs personnalisés." #: ../Doc/library/constants.rst:63 msgid "" diff --git a/library/copy.po b/library/copy.po index 4e288a541..2510a0954 100644 --- a/library/copy.po +++ b/library/copy.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-09-27 15:04+0200\n" +"PO-Revision-Date: 2019-02-21 17:18+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.4\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/copy.rst:2 msgid ":mod:`copy` --- Shallow and deep copy operations" @@ -111,13 +111,12 @@ msgid "The :func:`deepcopy` function avoids these problems by:" msgstr "La fonction :func:`deepcopy` évite ces problèmes en :" #: ../Doc/library/copy.rst:55 -#, fuzzy msgid "" "keeping a ``memo`` dictionary of objects already copied during the current " "copying pass; and" msgstr "" -"gardant en mémoire dans un dictionnaire les objets déjà copiés durant la " -"phase de copie actuelle ; et" +"gardant en mémoire dans un dictionnaire ``memo`` les objets déjà copiés " +"durant la phase de copie actuelle ; et" #: ../Doc/library/copy.rst:58 msgid "" @@ -165,7 +164,6 @@ msgstr "" "`copyreg`." #: ../Doc/library/copy.rst:81 -#, fuzzy msgid "" "In order for a class to define its own copy implementation, it can define " "special methods :meth:`__copy__` and :meth:`__deepcopy__`. The former is " @@ -181,10 +179,10 @@ msgstr "" "première est appelée pour implémenter l'opération de copie superficielle ; " "aucun argument supplémentaire n'est passé. La seconde est appelée pour " "implémenter l'opération de copie récursive ; elle reçoit un argument, le " -"dictionnaire `memo`. Si l'implémentation de :meth:`__deepcopy__` a besoin de " -"faire une copie récursive d'un composant, elle devrait appeler la fonction :" +"dictionnaire ``memo``. Si l'implémentation de :meth:`__deepcopy__` a besoin " +"de faire une copie récursive d'un composant, elle doit appeler la fonction :" "func:`deepcopy` avec le composant comme premier argument et le dictionnaire " -"`memo` comme second argument." +"*memo* comme second argument." #: ../Doc/library/copy.rst:93 msgid "Module :mod:`pickle`" diff --git a/library/datetime.po b/library/datetime.po index f4d797b77..026c9c1b3 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-10-20 12:19+0200\n" +"PO-Revision-Date: 2019-02-21 17:21+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -2932,7 +2932,6 @@ msgstr "" "bien que tous les objets ne comportent pas de méthode :meth:`timetuple`." #: ../Doc/library/datetime.rst:2017 -#, fuzzy msgid "" "Conversely, the :meth:`datetime.strptime` class method creates a :class:`." "datetime` object from a string representing a date and time and a " @@ -2946,7 +2945,9 @@ msgstr "" "class:`.datetime` à partir d'une représentation de date et heure et d'une " "chaîne de formatage correspondante. ``datetime.strptime(date_string, " "format)`` est équivalent à ``datetime(*(time.strptime(date_string, format)" -"[0:6]))``." +"[0:6]))``, sauf quand le format inclut une composante en-dessous de la " +"seconde ou une information de fuseau horaire ; ces composantes sont gérées " +"par ``datetime.strptime`` mais sont ignorées par ``time.strptime``." #: ../Doc/library/datetime.rst:2024 msgid "" diff --git a/library/fnmatch.po b/library/fnmatch.po index ebcba8db8..06da47382 100644 --- a/library/fnmatch.po +++ b/library/fnmatch.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-07-16 23:53+0200\n" +"PO-Revision-Date: 2019-02-21 17:34+0100\n" "Last-Translator: Julien VITARD \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/fnmatch.rst:2 msgid ":mod:`fnmatch` --- Unix filename pattern matching" @@ -83,7 +83,6 @@ msgstr "" "crochets. Par exemple, ``'[?]'`` reconnaît le caractère ``'?'``." #: ../Doc/library/fnmatch.rst:43 -#, fuzzy msgid "" "Note that the filename separator (``'/'`` on Unix) is *not* special to this " "module. See module :mod:`glob` for pathname expansion (:mod:`glob` uses :" @@ -93,7 +92,7 @@ msgid "" msgstr "" "Notons que le séparateur de nom de fichiers (``'/'`` sous Unix) n'est *pas* " "traité de manière spéciale par ce module. Voir le module :mod:`glob` pour la " -"recherche de chemins (:mod:`glob` utilise :func:`fnmatch` pour reconnaître " +"recherche de chemins (:mod:`glob` utilise :func:`.filter` pour reconnaître " "les composants d'un chemin). De la même manière, les noms de fichiers " "commençant par une virgule ne sont pas traités de manière spéciale par ce " "module, et sont reconnus par les motifs ``*`` et ``?``." diff --git a/library/functions.po b/library/functions.po index c3bb3a304..bb24a4847 100644 --- a/library/functions.po +++ b/library/functions.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-24 14:22+0100\n" -"PO-Revision-Date: 2019-01-24 19:45+0100\n" +"PO-Revision-Date: 2019-02-21 17:37+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.1.1\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/functions.rst:5 ../Doc/library/functions.rst:11 msgid "Built-in Functions" @@ -2533,15 +2533,15 @@ msgid "" msgstr "A deux arguments optionnels qui doivent être fournis par mot clef." #: ../Doc/library/functions.rst:1408 -#, fuzzy msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each element in *iterable* (for example, ``key=str." "lower``). The default value is ``None`` (compare the elements directly)." msgstr "" "*key* spécifie une fonction d'un argument utilisé pour extraire une clef de " -"comparaison de chaque élément de la liste : ``key=str.lower``. La valeur par " -"défaut est ``None`` (compare les éléments directement)." +"comparaison de chaque élément de l'itérable (par exemple, ``key=str." +"lower``). La valeur par défaut est ``None`` (compare les éléments " +"directement)." #: ../Doc/library/functions.rst:1412 msgid "" @@ -2952,7 +2952,6 @@ msgstr "" "contrairement à :func:`importlib.import_module`." #: ../Doc/library/functions.rst:1656 -#, fuzzy msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " @@ -2966,11 +2965,11 @@ msgstr "" "Cette fonction est invoquée via l'instruction :keyword:`import`. Elle peut " "être remplacée (en important le module :mod:`builtins` et en y remplaçant " "``builtins.__import__``) afin de changer la sémantique de l'instruction :" -"keyword:`import`, mais c'est extrêmement déconseillé car il est plus simple " -"d'utiliser des *import hooks* (voir la :pep:`302`) pour le même résultat " -"sans gêner du code s'attendant à trouver l'implémentation par défaut. " -"L'usage direct de :func:`__import__` est aussi déconseillé en faveur de :" -"func:`importlib.import_module`." +"keyword:`!import`, mais c'est extrêmement déconseillé car il est plus simple " +"d'utiliser des points d'entrées pour les importations (*import hooks*, voir " +"la :pep:`302`) pour le même résultat sans gêner du code s'attendant à " +"trouver l'implémentation par défaut. L'usage direct de :func:`__import__` " +"est aussi déconseillé en faveur de :func:`importlib.import_module`." #: ../Doc/library/functions.rst:1665 msgid "" diff --git a/library/functools.po b/library/functools.po index c15d57761..c3fc040bc 100644 --- a/library/functools.po +++ b/library/functools.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-17 21:38+0100\n" -"PO-Revision-Date: 2018-09-29 15:53+0200\n" +"PO-Revision-Date: 2019-02-21 17:51+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -187,6 +187,11 @@ msgid "" "functions with side-effects, functions that need to create distinct mutable " "objects on each call, or impure functions such as time() or random()." msgstr "" +"En général, le cache LRU ne doit être utilisé que quand vous voulez ré-" +"utiliser les valeurs déjà calculées. Ainsi, cela n'a pas de sens de mettre " +"un cache sur une fonction qui a des effets de bord, qui doit créer un objet " +"mutable distinct à chaque appel ou des fonctions *impures* telles que ``!" +"time()`` ou ``!random()``." #: ../Doc/library/functools.rst:93 msgid "Example of an LRU cache for static web content::" @@ -255,7 +260,6 @@ msgstr "" "les types non reconnus est maintenant supporté." #: ../Doc/library/functools.rst:180 -#, fuzzy msgid "" "Return a new :ref:`partial object` which when called will " "behave like *func* called with the positional arguments *args* and keyword " @@ -263,11 +267,11 @@ msgid "" "appended to *args*. If additional keyword arguments are supplied, they " "extend and override *keywords*. Roughly equivalent to::" msgstr "" -"Retourne un nouvel objet :class:`partial` qui, quand il est appelé, " -"fonctionne comme *func* appelée avec les arguments positionnels *args* et " -"les arguments nommés *keywords*. Si plus d'arguments sont fournis à l'appel, " -"ils sont ajoutés à *args*. Si plus d'arguments nommés sont fournis, ils " -"étendent et surchargent *keywords*. A peu près équivalent à ::" +"Retourne un nouvel :ref:`objet partiel ` qui, quand il est " +"appelé, fonctionne comme *func* appelée avec les arguments positionnels " +"*args* et les arguments nommés *keywords*. Si plus d'arguments sont fournis " +"à l'appel, ils sont ajoutés à *args*. Si plus d'arguments nommés sont " +"fournis, ils étendent et surchargent *keywords*. À peu près équivalent à ::" #: ../Doc/library/functools.rst:197 msgid "" @@ -302,7 +306,6 @@ msgstr "" "les deux, comme les fonction normales, sont gérés comme des descripteurs)." #: ../Doc/library/functools.rst:219 -#, fuzzy msgid "" "When *func* is a descriptor (such as a normal Python function, :func:" "`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or another " @@ -313,8 +316,8 @@ msgstr "" "Quand *func* est un descripteur (comme une fonction Python normale, :func:" "`classmethod`, :func:`staticmethod`, :func:`abstractmethod` ou une autre " "instance de :class:`partialmethod`), les appels à ``__get__`` sont délégués " -"au descripteur sous-jacent, et un objet :class:`partial` approprié est " -"retourné comme résultat." +"au descripteur sous-jacent, et un :ref:`objet partiel ` " +"approprié est renvoyé comme résultat." #: ../Doc/library/functools.rst:225 msgid "" From 2f63bab488d5e4d0e6991a7c0e02060247c75731 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 22 Feb 2019 15:27:59 +0100 Subject: [PATCH 022/121] collections: FIX typo. --- library/collections.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/collections.po b/library/collections.po index 1ff43cd49..a73735c1c 100644 --- a/library/collections.po +++ b/library/collections.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2019-02-21 17:08+0100\n" +"PO-Revision-Date: 2019-02-22 15:27+0100\n" "Last-Translator: Guillaume Fayard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -913,7 +913,7 @@ msgid "" "the :class:`dict` class and is not documented here." msgstr "" "Renvoie un nouvel objet qui se comporte comme un dictionnaire. :class:" -"`defaultdic` est une sous-classe de la la classe native :class:`dict`. Elle " +"`defaultdict` est une sous-classe de la la classe native :class:`dict`. Elle " "surcharge une méthode et ajoute une variable d'instance modifiable. Les " "autres fonctionnalités sont les mêmes que celles des objets :class:`dict` et " "ne sont pas documentées ici." From a07ba9f695c27e3258938512884e88ea9d2aa7f8 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sun, 24 Feb 2019 10:18:28 +0100 Subject: [PATCH 023/121] Apply suggestions from code review Co-Authored-By: Krilivye --- library/unittest.po | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index ba2560deb..e08d37877 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -1999,7 +1999,7 @@ msgstr ":meth:`assertTupleEqual(a, b) `" #: ../Doc/library/unittest.rst:1258 msgid "tuples" -msgstr "couples" +msgstr "n-uplets" #: ../Doc/library/unittest.rst:1261 msgid ":meth:`assertSetEqual(a, b) `" @@ -2057,7 +2057,7 @@ msgid "" "also raised if either of the parameters are of the wrong type. These methods " "are used by default when comparing lists or tuples with :meth:`assertEqual`." msgstr "" -"Vérifie que deux listes ou deux couples sont égaux. Si ce n'est pas le cas, " +"Vérifie que deux listes ou deux n-uplets sont égaux. Si ce n'est pas le cas, " "un message d'erreur qui ne montre que les différences entre les deux est " "généré. Une erreur est également signalée si l'un ou l'autre des paramètres " "n'est pas du bon type. Ces méthodes sont utilisées par défaut pour comparer " @@ -2098,7 +2098,7 @@ msgid "" "Finally the :class:`TestCase` provides the following methods and attributes:" msgstr "" "Enfin, la classe :class:`TestCase` fournit les méthodes et attributs " -"suivants  ::" +"suivants :" #: ../Doc/library/unittest.rst:1336 msgid "" @@ -2180,7 +2180,7 @@ msgid "" "the test:" msgstr "" "Les *frameworks* de test peuvent utiliser les méthodes suivantes pour " -"recueillir des informations sur le test  ::" +"recueillir des informations sur le test :" #: ../Doc/library/unittest.rst:1387 msgid "" @@ -2225,7 +2225,7 @@ msgid "" "provided. The default implementation of this method returns the first line " "of the test method's docstring, if available, or ``None``." msgstr "" -"Renvoie une description du test, ou ``None``si aucune description n'a été " +"Renvoie une description du test, ou ``None`` si aucune description n'a été " "fournie. L'implémentation par défaut de cette méthode renvoie la première " "ligne de la *docstring* de la méthode de test, si disponible, ou ``None``." @@ -2318,7 +2318,7 @@ msgid "" "more aliases that are now deprecated. The following table lists the correct " "names along with their deprecated aliases:" msgstr "" -"Pour des raisons historiques, certaines méthodes de la classe ::class:" +"Pour des raisons historiques, certaines méthodes de la classe :class:" "`TestCase` avaient un ou plusieurs alias qui sont maintenant obsolètes. Le " "tableau suivant énumère les noms corrects ainsi que leurs alias obsolètes  ::" @@ -2432,11 +2432,11 @@ msgstr "assertRaisesRegexp" #: ../Doc/library/unittest.rst:1485 msgid "the fail* aliases listed in the second column." -msgstr "les alias *fail** sont énumérés dans la deuxième colonne." +msgstr "les alias ``fail*`` sont énumérés dans la deuxième colonne." #: ../Doc/library/unittest.rst:1487 msgid "the assert* aliases listed in the third column." -msgstr "les alias *assert** sont énumérés dans la troisième colonne." +msgstr "les alias ``assert*`` sont énumérés dans la troisième colonne." #: ../Doc/library/unittest.rst:1489 msgid "" @@ -2491,7 +2491,7 @@ msgstr "" "`TestCase`, sauf qu'ils n'implémentent pas réellement un test. Au lieu de " "cela, ils sont utilisés pour regrouper les tests en groupes de tests qui " "doivent être exécutés ensemble. Des méthodes supplémentaires sont " -"disponibles pour ajouter des tests aux instances de :class:`TestSuite`  ::" +"disponibles pour ajouter des tests aux instances de :class:`TestSuite` :" #: ../Doc/library/unittest.rst:1519 msgid "Add a :class:`TestCase` or :class:`TestSuite` to the suite." @@ -2517,7 +2517,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1530 msgid ":class:`TestSuite` shares the following methods with :class:`TestCase`:" msgstr "" -":class:`TestSuite` partage les méthodes suivantes avec :class:`TestCase`  ::" +":class:`TestSuite` partage les méthodes suivantes avec :class:`TestCase` :" #: ../Doc/library/unittest.rst:1535 msgid "" @@ -2622,7 +2622,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1591 msgid ":class:`TestLoader` objects have the following attributes:" msgstr "" -"Les objets de la classe :class:`TestLoader` ont les attributs suivants  ::" +"Les objets de la classe :class:`TestLoader` ont les attributs suivants :" #: ../Doc/library/unittest.rst:1596 msgid "" @@ -2640,7 +2640,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1605 msgid ":class:`TestLoader` objects have the following methods:" msgstr "" -"Les objets de la classe :class:`TestLoader` ont les attributs suivants  ::" +"Les objets de la classe :class:`TestLoader` ont les attributs suivants :" #: ../Doc/library/unittest.rst:1610 msgid "" @@ -2684,7 +2684,7 @@ msgid "" "fixtures are different and defined in subclasses." msgstr "" "Bien que l'utilisation d'une hiérarchie de classes :class:`TestCase` (les " -"classes dérivées de `TestCase`) peut être un moyen pratique de partager des " +"classes dérivées de *TestCase*) peut être un moyen pratique de partager des " "*fixtures* et des fonctions utilitaires, définir une méthode de test pour " "des classes de base non destinées à être directement instanciée ne marche " "pas bien avec cette méthode. Cela peut toutefois s'avérer utile lorsque les " @@ -2704,7 +2704,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1640 msgid "Support for ``load_tests`` added." -msgstr "Le support de ``load_tests`` a été ajouté." +msgstr "Ajout de la prise en charge de ``load_tests``." #: ../Doc/library/unittest.rst:1643 msgid "" @@ -2807,7 +2807,7 @@ msgid "" "Python identifiers) will be loaded." msgstr "" "Trouve tous les modules de test en parcourant les sous-répertoires du " -"répertoire de démarrage spécifié, et renvoie un objet TestSuite qui les " +"répertoire de démarrage spécifié, et renvoie un objet *TestSuite* qui les " "contient. Seuls les fichiers de test qui correspondent à *pattern* sont " "chargés. Seuls les noms de modules qui sont importables (c'est-à-dire qui " "sont des identifiants Python valides) sont chargés." @@ -3313,7 +3313,7 @@ msgid "" "This class was previously named ``_TextTestResult``. The old name still " "exists as an alias but is deprecated." msgstr "" -"Cette classe s'appelait auparavant ``_TextTestResult```. L'ancien nom existe " +"Cette classe s'appelait auparavant ``_TextTestResult``. L'ancien nom existe " "toujours en tant qu'alias, mais il est obsolète." #: ../Doc/library/unittest.rst:2002 @@ -3338,7 +3338,7 @@ msgid "" "unittest." msgstr "" "Une implémentation de base d'un lanceur de test qui fournit les résultats " -"dans un flux. Si *stream* est ``None```, par défaut, :data:`sys.stderr` est " +"dans un flux. Si *stream* est ``None``, par défaut, :data:`sys.stderr` est " "utilisé comme flux de sortie. Cette classe a quelques paramètres " "configurables, mais est essentiellement très simple. Les applications " "graphiques qui exécutent des suites de tests doivent fournir des " @@ -3403,7 +3403,7 @@ msgid "" "class is instantiated with the following arguments::" msgstr "" "``_makeResult()`` instancie la classe ou l'appelable passé dans le " -"constructeur ``TextTestRunner``` comme argument ``resultclass``. Il vaut par " +"constructeur ``TextTestRunner`` comme argument ``resultclass``. Il vaut par " "défaut :class:`TextTestResult` si aucune ``resultclass`` n'est fournie. La " "classe de résultat est instanciée avec les arguments suivants  ::" @@ -3427,7 +3427,7 @@ msgid "" "of a test script::" msgstr "" "Un programme en ligne de commande qui charge un ensemble de tests à partir " -"du *module* et les exécute . L'utilisation principale est de rendre les " +"du *module* et les exécute. L'utilisation principale est de rendre les " "modules de test facilement exécutables. L'utilisation la plus simple pour " "cette fonction est d'inclure la ligne suivante à la fin d'un script de test " " ::" @@ -3519,9 +3519,9 @@ msgid "" "Calling ``main`` actually returns an instance of the ``TestProgram`` class. " "This stores the result of the tests run as the ``result`` attribute." msgstr "" -"L'appel de ``main'' renvoie en fait une instance de la classe " +"L'appel de ``main`` renvoie en fait une instance de la classe " "``TestProgram``. Le résultat des tests effectués est enregistré sous " -"l'attribut ``résultat``." +"l'attribut ``result``." #: ../Doc/library/unittest.rst:2113 msgid "The *exit* parameter was added." From 4039603c3129833a4124fbce81d475f149c6cb15 Mon Sep 17 00:00:00 2001 From: Florent Bartoli Date: Mon, 25 Feb 2019 22:44:52 +0100 Subject: [PATCH 024/121] Ajout de traduction manquantes sur library/binascii.po (#530) --- library/binascii.po | 185 ++++++++++++++++++++++++++++++++------------ 1 file changed, 135 insertions(+), 50 deletions(-) diff --git a/library/binascii.po b/library/binascii.po index b750514d4..50afd9a8b 100644 --- a/library/binascii.po +++ b/library/binascii.po @@ -6,51 +6,67 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-03 16:57+0100\n" -"PO-Revision-Date: 2017-08-10 00:59+0200\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-02-25 10:46+0100\n" +"Last-Translator: Florent Bartoli \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/binascii.rst:2 msgid ":mod:`binascii` --- Convert between binary and ASCII" -msgstr "" +msgstr ":mod:`binascii` --- Conversion entre binaire et ASCII" #: ../Doc/library/binascii.rst:15 msgid "" "The :mod:`binascii` module contains a number of methods to convert between " "binary and various ASCII-encoded binary representations. Normally, you will " -"not use these functions directly but use wrapper modules like :mod:`uu`, :" -"mod:`base64`, or :mod:`binhex` instead. The :mod:`binascii` module contains " -"low-level functions written in C for greater speed that are used by the " -"higher-level modules." +"not use these functions directly but use wrapper modules like :mod:`uu`, :mod:" +"`base64`, or :mod:`binhex` instead. The :mod:`binascii` module contains low-" +"level functions written in C for greater speed that are used by the higher-" +"level modules." msgstr "" +"Le module :mod:`binascii` contient des méthodes pour convertir entre binaire " +"et diverses représentations binaires encodées en ASCII. Normalement, vous " +"n’allez pas utiliser ces fonctions directement mais vous utiliserez des " +"modules d’encapsulage comme :mod:`uu`, :mod:`base64`, or :mod:`binhex` à la " +"place. Le module :mod:`binascii` contient des fonctions bas-niveau écrites en " +"C plus rapides qui sont utilisées par des modules haut-niveau." #: ../Doc/library/binascii.rst:24 msgid "" "``a2b_*`` functions accept Unicode strings containing only ASCII characters. " "Other functions only accept :term:`bytes-like objects ` " -"(such as :class:`bytes`, :class:`bytearray` and other objects that support " -"the buffer protocol)." +"(such as :class:`bytes`, :class:`bytearray` and other objects that support the " +"buffer protocol)." msgstr "" +"La fonction ``a2b_*`` accepte des chaînes de caractères contenant seulement " +"des caractères ASCII. D’autres fonctions acceptent seulement des objets :term:" +"`bytes et similaire ` (tel que :class:`bytes`, :class:" +"`bytearray` et autres objets qui supportent le protocole tampon)." #: ../Doc/library/binascii.rst:29 msgid "ASCII-only unicode strings are now accepted by the ``a2b_*`` functions." msgstr "" +"Les chaines de caractères *unicode* seulement composées de caractères ASCII " +"sont désormais acceptées par les fonctions ``a2b_*``." #: ../Doc/library/binascii.rst:33 msgid "The :mod:`binascii` module defines the following functions:" -msgstr "" +msgstr "Le module :mod:`binascii` définit les fonctions suivantes :" #: ../Doc/library/binascii.rst:38 msgid "" "Convert a single line of uuencoded data back to binary and return the binary " -"data. Lines normally contain 45 (binary) bytes, except for the last line. " -"Line data may be followed by whitespace." +"data. Lines normally contain 45 (binary) bytes, except for the last line. Line " +"data may be followed by whitespace." msgstr "" +"Reconvertis une seule ligne de donnée *uuencoded* en binaire et renvoie la " +"donnée binaire. Les lignes contiennent normalement 45 (binaire) octets, sauf " +"pour la dernière ligne. Il se peut que la ligne de donnée soit suivie d’un " +"espace blanc." #: ../Doc/library/binascii.rst:45 msgid "" @@ -59,6 +75,10 @@ msgid "" "most 45. If *backtick* is true, zeros are represented by ``'`'`` instead of " "spaces." msgstr "" +"Convertit les données binaires en une ligne de caractères ASCII, la valeur " +"renvoyée est la ligne convertie incluant un caractère de nouvelle ligne. La " +"longueur de *data* doit être au maximum de 45. Si *backtick* est vraie, les " +"zéros sont représentés par ``'`'`` plutôt que par des espaces." #: ../Doc/library/binascii.rst:49 msgid "Added the *backtick* parameter." @@ -66,48 +86,71 @@ msgstr "Ajout du paramètre *backtick*." #: ../Doc/library/binascii.rst:55 msgid "" -"Convert a block of base64 data back to binary and return the binary data. " -"More than one line may be passed at a time." +"Convert a block of base64 data back to binary and return the binary data. More " +"than one line may be passed at a time." msgstr "" +"Reconvertis un bloc de donnée en *base64* en binaire et renvoie la donnée " +"binaire. Plus d’une ligne peut être passé à la fois." #: ../Doc/library/binascii.rst:61 msgid "" -"Convert binary data to a line of ASCII characters in base64 coding. The " -"return value is the converted line, including a newline char if *newline* is " -"true. The output of this function conforms to :rfc:`3548`." +"Convert binary data to a line of ASCII characters in base64 coding. The return " +"value is the converted line, including a newline char if *newline* is true. " +"The output of this function conforms to :rfc:`3548`." msgstr "" +"Convertis les données binaires en une ligne de caractères ASCII en codage base " +"64. La valeur de renvoyée et la ligne convertie, incluant un caractère de " +"nouvelle ligne si *newline* est vraie. La sortie de cette fonction se conforme " +"à :rfc:`3548`." #: ../Doc/library/binascii.rst:65 msgid "Added the *newline* parameter." -msgstr "" +msgstr "Ajout du paramètre *newline*." #: ../Doc/library/binascii.rst:71 msgid "" -"Convert a block of quoted-printable data back to binary and return the " -"binary data. More than one line may be passed at a time. If the optional " -"argument *header* is present and true, underscores will be decoded as spaces." +"Convert a block of quoted-printable data back to binary and return the binary " +"data. More than one line may be passed at a time. If the optional argument " +"*header* is present and true, underscores will be decoded as spaces." msgstr "" +"Reconvertit un bloc de données *quoted-printable* en binaire et renvoie les " +"données binaires. Plus d’une ligne peut être passée à la fois. Si l’argument " +"optionnel *header* est présent et vrai, les traits soulignés seront décodés en " +"espaces." #: ../Doc/library/binascii.rst:78 msgid "" "Convert binary data to a line(s) of ASCII characters in quoted-printable " -"encoding. The return value is the converted line(s). If the optional " -"argument *quotetabs* is present and true, all tabs and spaces will be " -"encoded. If the optional argument *istext* is present and true, newlines " -"are not encoded but trailing whitespace will be encoded. If the optional " -"argument *header* is present and true, spaces will be encoded as underscores " -"per :rfc:`1522`. If the optional argument *header* is present and false, " -"newline characters will be encoded as well; otherwise linefeed conversion " -"might corrupt the binary data stream." +"encoding. The return value is the converted line(s). If the optional argument " +"*quotetabs* is present and true, all tabs and spaces will be encoded. If the " +"optional argument *istext* is present and true, newlines are not encoded but " +"trailing whitespace will be encoded. If the optional argument *header* is " +"present and true, spaces will be encoded as underscores per :rfc:`1522`. If " +"the optional argument *header* is present and false, newline characters will " +"be encoded as well; otherwise linefeed conversion might corrupt the binary " +"data stream." msgstr "" +"Convertit les données binaires en ligne(s) de caractères ASCII en codage " +"imprimable entre guillemets. La valeur de retour est la\\les lignes(s) " +"convertie(s). Si l’argument optionnel *quotetabs* est présent et vrai, toutes " +"les tabulations et espaces seront encodés. Si l’argument optionnel *istext* " +"est présent et faux, les nouvelles lignes ne sont pas encodées mais les " +"espaces de fin de ligne le seront. Si l’argument optionnel *header* est " +"présent et vrai, les espaces vont être encodés comme de traits soulignés " +"selon :rfc:`1522`. Si l’argument optionnel *header* est présent et faux, les " +"caractères de nouvelle ligne seront également encodés ; sinon la conversion de " +"saut de ligne pourrait corrompre le flux de données binaire." #: ../Doc/library/binascii.rst:91 msgid "" "Convert binhex4 formatted ASCII data to binary, without doing RLE-" -"decompression. The string should contain a complete number of binary bytes, " -"or (in case of the last portion of the binhex4 data) have the remaining bits " -"zero." +"decompression. The string should contain a complete number of binary bytes, or " +"(in case of the last portion of the binhex4 data) have the remaining bits zero." msgstr "" +"Convertis un bloc de donnée ASCII au format *binhex4* en binaire, sans faire " +"de décompression RLE. La chaîne de caractères doit contenir un nombre complet " +"d’octet binaires ou (au cas où la dernière portion de donnée est au format " +"*binhex4*) avoir les bits restants à 0." #: ../Doc/library/binascii.rst:98 msgid "" @@ -117,14 +160,22 @@ msgid "" "returns the decompressed data, unless data input data ends in an orphaned " "repeat indicator, in which case the :exc:`Incomplete` exception is raised." msgstr "" +"Réalise une décompression RLE sur la donnée, d’après la norme *binhex4*. " +"L’algorithme utilise ``0x90`` après un octet comme un indicateur de " +"répétition, suivi d’un décompte. Un décompte de ``0`` définit une valeur " +"d’octet de ``0x90``. La routine renvoie la donnée décompressée, sauf si la " +"donnée entrante se finit sur un indicateur de répétition orphelin. Dans ce cas " +"l’exception :exc:`Incomplete` est levée." #: ../Doc/library/binascii.rst:104 msgid "Accept only bytestring or bytearray objects as input." -msgstr "" +msgstr "Accepte seulement des objets *bytestring* ou *bytearray* en entrée." #: ../Doc/library/binascii.rst:110 msgid "Perform binhex4 style RLE-compression on *data* and return the result." msgstr "" +"Réalise une compression RLE de type *binhex4* sur *data* et renvoie le " +"résultat." #: ../Doc/library/binascii.rst:115 msgid "" @@ -132,29 +183,44 @@ msgid "" "The argument should already be RLE-coded, and have a length divisible by 3 " "(except possibly the last fragment)." msgstr "" +"Réalise une traduction *hexbin4* de binaire à ASCII et renvoie la chaîne de " +"caractères résultante. L’argument doit être *RLE-coded*, et avoir une longueur " +"divisible par 3 (sauf, éventuellement, le dernier fragment)." #: ../Doc/library/binascii.rst:122 msgid "" "Compute a 16-bit CRC value of *data*, starting with *value* as the initial " -"CRC, and return the result. This uses the CRC-CCITT polynomial *x*:sup:`16` " -"+ *x*:sup:`12` + *x*:sup:`5` + 1, often represented as 0x1021. This CRC is " -"used in the binhex4 format." +"CRC, and return the result. This uses the CRC-CCITT polynomial *x*:sup:`16` + " +"*x*:sup:`12` + *x*:sup:`5` + 1, often represented as 0x1021. This CRC is used " +"in the binhex4 format." msgstr "" +"Calcule une valeur en CRC 16-bit de *data*, commençant par *value* comme CRC " +"initial et renvoie le résultat. Ceci utilise le CRC-CCITT polynomial *x*:sup:" +"`16` + *x*:sup:`12` + *x*:sup:`5` + 1, souvent représenté comme *0x1021*. Ce " +"CRC est utilisé dans le format *binhex4*." #: ../Doc/library/binascii.rst:130 msgid "" -"Compute CRC-32, the 32-bit checksum of *data*, starting with an initial CRC " -"of *value*. The default initial CRC is zero. The algorithm is consistent " -"with the ZIP file checksum. Since the algorithm is designed for use as a " -"checksum algorithm, it is not suitable for use as a general hash algorithm. " -"Use as follows::" +"Compute CRC-32, the 32-bit checksum of *data*, starting with an initial CRC of " +"*value*. The default initial CRC is zero. The algorithm is consistent with " +"the ZIP file checksum. Since the algorithm is designed for use as a checksum " +"algorithm, it is not suitable for use as a general hash algorithm. Use as " +"follows::" msgstr "" +"Calcule CRC-32, la somme de contrôle 32-bit de *data*, commençant par un CRC " +"initial de *value*. Le CRC initial par défaut est zéro. L’algorithme est " +"cohérent avec la somme de contrôle du fichier ZIP. Comme l’algorithme est " +"conçu pour être utilisé comme un algorithme de somme de contrôle, il ne " +"convient pas comme algorithme de hachage général. Utiliser comme suit ::" #: ../Doc/library/binascii.rst:142 msgid "" "The result is always unsigned. To generate the same numeric value across all " "Python versions and platforms, use ``crc32(data) & 0xffffffff``." msgstr "" +"Le résultat est toujours non signé. Pour générer la même valeur numérique sur " +"toutes les versions de Python et plateformes, utilisez ``crc32(data) & " +"0xffffffff``." #: ../Doc/library/binascii.rst:151 msgid "" @@ -162,37 +228,54 @@ msgid "" "*data* is converted into the corresponding 2-digit hex representation. The " "returned bytes object is therefore twice as long as the length of *data*." msgstr "" +"Renvoie la représentation hexadécimale du binaire *data*. Chaque octet de " +"*data* est converti en la représentation 2 chiffres correspondante. L’objet " +"octets renvoyé est donc deux fois plus long que la longueur de *data*." #: ../Doc/library/binascii.rst:155 msgid "" "Similar functionality (but returning a text string) is also conveniently " "accessible using the :meth:`bytes.hex` method." msgstr "" +"Fonctionnalité similaire est également commodément accessible en utilisant la " +"méthode :meth:`bytes.hex`." #: ../Doc/library/binascii.rst:161 msgid "" "Return the binary data represented by the hexadecimal string *hexstr*. This " "function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even " -"number of hexadecimal digits (which can be upper or lower case), otherwise " -"an :exc:`Error` exception is raised." +"number of hexadecimal digits (which can be upper or lower case), otherwise an :" +"exc:`Error` exception is raised." msgstr "" +"Renvoie la donnée binaire représentée par la chaîne de caractères hexadécimale " +"*hexstr*. Cette fonction est l’inverse de :func:`b2a_hex`. *hexstr* doit " +"contenir un nombre pair de chiffres hexadécimaux (qui peuvent être en " +"majuscule ou minuscule), sinon une exception :exc:`Error` est levée." #: ../Doc/library/binascii.rst:166 msgid "" -"Similar functionality (accepting only text string arguments, but more " -"liberal towards whitespace) is also accessible using the :meth:`bytes." -"fromhex` class method." +"Similar functionality (accepting only text string arguments, but more liberal " +"towards whitespace) is also accessible using the :meth:`bytes.fromhex` class " +"method." msgstr "" +"Une fonctionnalité similaire (n’acceptant que les arguments de chaîne de " +"texte, mais plus libérale vis-à-vis des espaces blancs) est également " +"accessible en utilisant la méthode de classe :meth:`bytes.fromhex`." #: ../Doc/library/binascii.rst:172 msgid "Exception raised on errors. These are usually programming errors." msgstr "" +"Exception levée en cas d'erreurs. Ce sont typiquement des erreurs de " +"programmation." #: ../Doc/library/binascii.rst:177 msgid "" -"Exception raised on incomplete data. These are usually not programming " -"errors, but may be handled by reading a little more data and trying again." +"Exception raised on incomplete data. These are usually not programming errors, " +"but may be handled by reading a little more data and trying again." msgstr "" +"Exception levée par des données incomplète. Il ne s’agit généralement pas " +"d’erreurs de programmation, mais elles peuvent être traitées en lisant un peu " +"plus de données et en réessayant." #: ../Doc/library/binascii.rst:185 msgid "Module :mod:`base64`" @@ -202,6 +285,7 @@ msgstr "Module :mod:`base64`" msgid "" "Support for RFC compliant base64-style encoding in base 16, 32, 64, and 85." msgstr "" +"Support de l’encodage *base64-style* conforme RFC en base 16, 32, 64 et 85." #: ../Doc/library/binascii.rst:188 msgid "Module :mod:`binhex`" @@ -209,7 +293,7 @@ msgstr "Module :mod:`binhex`" #: ../Doc/library/binascii.rst:188 msgid "Support for the binhex format used on the Macintosh." -msgstr "" +msgstr "Support pour le format *binhex* utilisé sur Macintosh." #: ../Doc/library/binascii.rst:191 msgid "Module :mod:`uu`" @@ -226,3 +310,4 @@ msgstr "Module :mod:`quopri`" #: ../Doc/library/binascii.rst:194 msgid "Support for quoted-printable encoding used in MIME email messages." msgstr "" +"Support de l’encodage *quote-printable* utilisé par les messages *email* MIME." From 3a13220b6a123db71d7658d35581cda5cde195dd Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 25 Feb 2019 22:50:13 +0100 Subject: [PATCH 025/121] Rewrap library/binascii.po. --- library/binascii.po | 166 ++++++++++++++++++++++---------------------- 1 file changed, 84 insertions(+), 82 deletions(-) diff --git a/library/binascii.po b/library/binascii.po index 50afd9a8b..2c0bf0f8b 100644 --- a/library/binascii.po +++ b/library/binascii.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-03 16:57+0100\n" -"PO-Revision-Date: 2019-02-25 10:46+0100\n" +"PO-Revision-Date: 2019-02-25 22:48+0100\n" "Last-Translator: Florent Bartoli \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -23,29 +23,29 @@ msgstr ":mod:`binascii` --- Conversion entre binaire et ASCII" msgid "" "The :mod:`binascii` module contains a number of methods to convert between " "binary and various ASCII-encoded binary representations. Normally, you will " -"not use these functions directly but use wrapper modules like :mod:`uu`, :mod:" -"`base64`, or :mod:`binhex` instead. The :mod:`binascii` module contains low-" -"level functions written in C for greater speed that are used by the higher-" -"level modules." +"not use these functions directly but use wrapper modules like :mod:`uu`, :" +"mod:`base64`, or :mod:`binhex` instead. The :mod:`binascii` module contains " +"low-level functions written in C for greater speed that are used by the " +"higher-level modules." msgstr "" "Le module :mod:`binascii` contient des méthodes pour convertir entre binaire " "et diverses représentations binaires encodées en ASCII. Normalement, vous " "n’allez pas utiliser ces fonctions directement mais vous utiliserez des " "modules d’encapsulage comme :mod:`uu`, :mod:`base64`, or :mod:`binhex` à la " -"place. Le module :mod:`binascii` contient des fonctions bas-niveau écrites en " -"C plus rapides qui sont utilisées par des modules haut-niveau." +"place. Le module :mod:`binascii` contient des fonctions bas-niveau écrites " +"en C plus rapides qui sont utilisées par des modules haut-niveau." #: ../Doc/library/binascii.rst:24 msgid "" "``a2b_*`` functions accept Unicode strings containing only ASCII characters. " "Other functions only accept :term:`bytes-like objects ` " -"(such as :class:`bytes`, :class:`bytearray` and other objects that support the " -"buffer protocol)." +"(such as :class:`bytes`, :class:`bytearray` and other objects that support " +"the buffer protocol)." msgstr "" "La fonction ``a2b_*`` accepte des chaînes de caractères contenant seulement " -"des caractères ASCII. D’autres fonctions acceptent seulement des objets :term:" -"`bytes et similaire ` (tel que :class:`bytes`, :class:" -"`bytearray` et autres objets qui supportent le protocole tampon)." +"des caractères ASCII. D’autres fonctions acceptent seulement des objets :" +"term:`bytes et similaire ` (tel que :class:`bytes`, :" +"class:`bytearray` et autres objets qui supportent le protocole tampon)." #: ../Doc/library/binascii.rst:29 msgid "ASCII-only unicode strings are now accepted by the ``a2b_*`` functions." @@ -60,11 +60,11 @@ msgstr "Le module :mod:`binascii` définit les fonctions suivantes :" #: ../Doc/library/binascii.rst:38 msgid "" "Convert a single line of uuencoded data back to binary and return the binary " -"data. Lines normally contain 45 (binary) bytes, except for the last line. Line " -"data may be followed by whitespace." +"data. Lines normally contain 45 (binary) bytes, except for the last line. " +"Line data may be followed by whitespace." msgstr "" -"Reconvertis une seule ligne de donnée *uuencoded* en binaire et renvoie la " -"donnée binaire. Les lignes contiennent normalement 45 (binaire) octets, sauf " +"Convertit une seule ligne de donnée *uuencoded* en binaire et renvoie la " +"donnée binaire. Les lignes contiennent normalement 45 octets (binaire), sauf " "pour la dernière ligne. Il se peut que la ligne de donnée soit suivie d’un " "espace blanc." @@ -86,22 +86,22 @@ msgstr "Ajout du paramètre *backtick*." #: ../Doc/library/binascii.rst:55 msgid "" -"Convert a block of base64 data back to binary and return the binary data. More " -"than one line may be passed at a time." +"Convert a block of base64 data back to binary and return the binary data. " +"More than one line may be passed at a time." msgstr "" -"Reconvertis un bloc de donnée en *base64* en binaire et renvoie la donnée " +"Convertit un bloc de donnée en *base64* en binaire et renvoie la donnée " "binaire. Plus d’une ligne peut être passé à la fois." #: ../Doc/library/binascii.rst:61 msgid "" -"Convert binary data to a line of ASCII characters in base64 coding. The return " -"value is the converted line, including a newline char if *newline* is true. " -"The output of this function conforms to :rfc:`3548`." +"Convert binary data to a line of ASCII characters in base64 coding. The " +"return value is the converted line, including a newline char if *newline* is " +"true. The output of this function conforms to :rfc:`3548`." msgstr "" -"Convertis les données binaires en une ligne de caractères ASCII en codage base " -"64. La valeur de renvoyée et la ligne convertie, incluant un caractère de " -"nouvelle ligne si *newline* est vraie. La sortie de cette fonction se conforme " -"à :rfc:`3548`." +"Convertit les données binaires en une ligne de caractères ASCII en codage " +"base 64. La valeur de renvoyée et la ligne convertie, incluant un caractère " +"de nouvelle ligne si *newline* est vraie. La sortie de cette fonction se " +"conforme à :rfc:`3548`." #: ../Doc/library/binascii.rst:65 msgid "Added the *newline* parameter." @@ -109,48 +109,49 @@ msgstr "Ajout du paramètre *newline*." #: ../Doc/library/binascii.rst:71 msgid "" -"Convert a block of quoted-printable data back to binary and return the binary " -"data. More than one line may be passed at a time. If the optional argument " -"*header* is present and true, underscores will be decoded as spaces." +"Convert a block of quoted-printable data back to binary and return the " +"binary data. More than one line may be passed at a time. If the optional " +"argument *header* is present and true, underscores will be decoded as spaces." msgstr "" -"Reconvertit un bloc de données *quoted-printable* en binaire et renvoie les " +"Convertit un bloc de données *quoted-printable* en binaire et renvoie les " "données binaires. Plus d’une ligne peut être passée à la fois. Si l’argument " -"optionnel *header* est présent et vrai, les traits soulignés seront décodés en " -"espaces." +"optionnel *header* est présent et vrai, les traits soulignés seront décodés " +"en espaces." #: ../Doc/library/binascii.rst:78 msgid "" "Convert binary data to a line(s) of ASCII characters in quoted-printable " -"encoding. The return value is the converted line(s). If the optional argument " -"*quotetabs* is present and true, all tabs and spaces will be encoded. If the " -"optional argument *istext* is present and true, newlines are not encoded but " -"trailing whitespace will be encoded. If the optional argument *header* is " -"present and true, spaces will be encoded as underscores per :rfc:`1522`. If " -"the optional argument *header* is present and false, newline characters will " -"be encoded as well; otherwise linefeed conversion might corrupt the binary " -"data stream." +"encoding. The return value is the converted line(s). If the optional " +"argument *quotetabs* is present and true, all tabs and spaces will be " +"encoded. If the optional argument *istext* is present and true, newlines " +"are not encoded but trailing whitespace will be encoded. If the optional " +"argument *header* is present and true, spaces will be encoded as underscores " +"per :rfc:`1522`. If the optional argument *header* is present and false, " +"newline characters will be encoded as well; otherwise linefeed conversion " +"might corrupt the binary data stream." msgstr "" "Convertit les données binaires en ligne(s) de caractères ASCII en codage " "imprimable entre guillemets. La valeur de retour est la\\les lignes(s) " -"convertie(s). Si l’argument optionnel *quotetabs* est présent et vrai, toutes " -"les tabulations et espaces seront encodés. Si l’argument optionnel *istext* " -"est présent et faux, les nouvelles lignes ne sont pas encodées mais les " -"espaces de fin de ligne le seront. Si l’argument optionnel *header* est " +"convertie(s). Si l’argument optionnel *quotetabs* est présent et vrai, " +"toutes les tabulations et espaces seront encodés. Si l’argument optionnel " +"*istext* est présent et faux, les nouvelles lignes ne sont pas encodées mais " +"les espaces de fin de ligne le seront. Si l’argument optionnel *header* est " "présent et vrai, les espaces vont être encodés comme de traits soulignés " "selon :rfc:`1522`. Si l’argument optionnel *header* est présent et faux, les " -"caractères de nouvelle ligne seront également encodés ; sinon la conversion de " -"saut de ligne pourrait corrompre le flux de données binaire." +"caractères de nouvelle ligne seront également encodés ; sinon la conversion " +"de saut de ligne pourrait corrompre le flux de données binaire." #: ../Doc/library/binascii.rst:91 msgid "" "Convert binhex4 formatted ASCII data to binary, without doing RLE-" -"decompression. The string should contain a complete number of binary bytes, or " -"(in case of the last portion of the binhex4 data) have the remaining bits zero." +"decompression. The string should contain a complete number of binary bytes, " +"or (in case of the last portion of the binhex4 data) have the remaining bits " +"zero." msgstr "" -"Convertis un bloc de donnée ASCII au format *binhex4* en binaire, sans faire " -"de décompression RLE. La chaîne de caractères doit contenir un nombre complet " -"d’octet binaires ou (au cas où la dernière portion de donnée est au format " -"*binhex4*) avoir les bits restants à 0." +"Convertit un bloc de donnée ASCII au format *binhex4* en binaire, sans faire " +"de décompression RLE. La chaîne de caractères doit contenir un nombre " +"complet d’octet binaires ou (au cas où la dernière portion de donnée est au " +"format *binhex4*) avoir les bits restants à 0." #: ../Doc/library/binascii.rst:98 msgid "" @@ -164,8 +165,8 @@ msgstr "" "L’algorithme utilise ``0x90`` après un octet comme un indicateur de " "répétition, suivi d’un décompte. Un décompte de ``0`` définit une valeur " "d’octet de ``0x90``. La routine renvoie la donnée décompressée, sauf si la " -"donnée entrante se finit sur un indicateur de répétition orphelin. Dans ce cas " -"l’exception :exc:`Incomplete` est levée." +"donnée entrante se finit sur un indicateur de répétition orphelin. Dans ce " +"cas l’exception :exc:`Incomplete` est levée." #: ../Doc/library/binascii.rst:104 msgid "Accept only bytestring or bytearray objects as input." @@ -184,15 +185,15 @@ msgid "" "(except possibly the last fragment)." msgstr "" "Réalise une traduction *hexbin4* de binaire à ASCII et renvoie la chaîne de " -"caractères résultante. L’argument doit être *RLE-coded*, et avoir une longueur " -"divisible par 3 (sauf, éventuellement, le dernier fragment)." +"caractères résultante. L’argument doit être *RLE-coded*, et avoir une " +"longueur divisible par 3 (sauf, éventuellement, le dernier fragment)." #: ../Doc/library/binascii.rst:122 msgid "" "Compute a 16-bit CRC value of *data*, starting with *value* as the initial " -"CRC, and return the result. This uses the CRC-CCITT polynomial *x*:sup:`16` + " -"*x*:sup:`12` + *x*:sup:`5` + 1, often represented as 0x1021. This CRC is used " -"in the binhex4 format." +"CRC, and return the result. This uses the CRC-CCITT polynomial *x*:sup:`16` " +"+ *x*:sup:`12` + *x*:sup:`5` + 1, often represented as 0x1021. This CRC is " +"used in the binhex4 format." msgstr "" "Calcule une valeur en CRC 16-bit de *data*, commençant par *value* comme CRC " "initial et renvoie le résultat. Ceci utilise le CRC-CCITT polynomial *x*:sup:" @@ -201,11 +202,11 @@ msgstr "" #: ../Doc/library/binascii.rst:130 msgid "" -"Compute CRC-32, the 32-bit checksum of *data*, starting with an initial CRC of " -"*value*. The default initial CRC is zero. The algorithm is consistent with " -"the ZIP file checksum. Since the algorithm is designed for use as a checksum " -"algorithm, it is not suitable for use as a general hash algorithm. Use as " -"follows::" +"Compute CRC-32, the 32-bit checksum of *data*, starting with an initial CRC " +"of *value*. The default initial CRC is zero. The algorithm is consistent " +"with the ZIP file checksum. Since the algorithm is designed for use as a " +"checksum algorithm, it is not suitable for use as a general hash algorithm. " +"Use as follows::" msgstr "" "Calcule CRC-32, la somme de contrôle 32-bit de *data*, commençant par un CRC " "initial de *value*. Le CRC initial par défaut est zéro. L’algorithme est " @@ -218,8 +219,8 @@ msgid "" "The result is always unsigned. To generate the same numeric value across all " "Python versions and platforms, use ``crc32(data) & 0xffffffff``." msgstr "" -"Le résultat est toujours non signé. Pour générer la même valeur numérique sur " -"toutes les versions de Python et plateformes, utilisez ``crc32(data) & " +"Le résultat est toujours non signé. Pour générer la même valeur numérique " +"sur toutes les versions de Python et plateformes, utilisez ``crc32(data) & " "0xffffffff``." #: ../Doc/library/binascii.rst:151 @@ -237,26 +238,26 @@ msgid "" "Similar functionality (but returning a text string) is also conveniently " "accessible using the :meth:`bytes.hex` method." msgstr "" -"Fonctionnalité similaire est également commodément accessible en utilisant la " -"méthode :meth:`bytes.hex`." +"Fonctionnalité similaire est également commodément accessible en utilisant " +"la méthode :meth:`bytes.hex`." #: ../Doc/library/binascii.rst:161 msgid "" "Return the binary data represented by the hexadecimal string *hexstr*. This " "function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even " -"number of hexadecimal digits (which can be upper or lower case), otherwise an :" -"exc:`Error` exception is raised." +"number of hexadecimal digits (which can be upper or lower case), otherwise " +"an :exc:`Error` exception is raised." msgstr "" -"Renvoie la donnée binaire représentée par la chaîne de caractères hexadécimale " -"*hexstr*. Cette fonction est l’inverse de :func:`b2a_hex`. *hexstr* doit " -"contenir un nombre pair de chiffres hexadécimaux (qui peuvent être en " -"majuscule ou minuscule), sinon une exception :exc:`Error` est levée." +"Renvoie la donnée binaire représentée par la chaîne de caractères " +"hexadécimale *hexstr*. Cette fonction est l’inverse de :func:`b2a_hex`. " +"*hexstr* doit contenir un nombre pair de chiffres hexadécimaux (qui peuvent " +"être en majuscule ou minuscule), sinon une exception :exc:`Error` est levée." #: ../Doc/library/binascii.rst:166 msgid "" -"Similar functionality (accepting only text string arguments, but more liberal " -"towards whitespace) is also accessible using the :meth:`bytes.fromhex` class " -"method." +"Similar functionality (accepting only text string arguments, but more " +"liberal towards whitespace) is also accessible using the :meth:`bytes." +"fromhex` class method." msgstr "" "Une fonctionnalité similaire (n’acceptant que les arguments de chaîne de " "texte, mais plus libérale vis-à-vis des espaces blancs) est également " @@ -270,12 +271,12 @@ msgstr "" #: ../Doc/library/binascii.rst:177 msgid "" -"Exception raised on incomplete data. These are usually not programming errors, " -"but may be handled by reading a little more data and trying again." +"Exception raised on incomplete data. These are usually not programming " +"errors, but may be handled by reading a little more data and trying again." msgstr "" "Exception levée par des données incomplète. Il ne s’agit généralement pas " -"d’erreurs de programmation, mais elles peuvent être traitées en lisant un peu " -"plus de données et en réessayant." +"d’erreurs de programmation, mais elles peuvent être traitées en lisant un " +"peu plus de données et en réessayant." #: ../Doc/library/binascii.rst:185 msgid "Module :mod:`base64`" @@ -310,4 +311,5 @@ msgstr "Module :mod:`quopri`" #: ../Doc/library/binascii.rst:194 msgid "Support for quoted-printable encoding used in MIME email messages." msgstr "" -"Support de l’encodage *quote-printable* utilisé par les messages *email* MIME." +"Support de l’encodage *quote-printable* utilisé par les messages *email* " +"MIME." From b161d6765762f3076f66d91d2d8e9f50274dcbaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bousqui=C3=A9?= Date: Sun, 24 Feb 2019 11:57:36 +0100 Subject: [PATCH 026/121] prise en compte des remarques --- library/unittest.po | 100 ++++++++++++++++++++++---------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index e08d37877..66f057f1a 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -378,9 +378,9 @@ msgid "" "test fail or error and is added to the failure messages." msgstr "" "Les flux de sortie et d'erreur standards sont mis en mémoire tampon pendant " -"l'exécution des tests. Les résultats d'un test réussi ne sont pas pris en " -"compte. Un test en échec ou en erreur est affiché sur la sortie et est " -"ajouté aux messages d'erreur." +"l'exécution des tests. L'affichage produit par un test réussi n'est pas pris " +"en compte. Les sorties d'affichages d'un test en échec ou en erreur sont " +"conservés et ajoutés aux messages d'erreur." #: ../Doc/library/unittest.rst:212 msgid "" @@ -402,8 +402,7 @@ msgstr "" #: ../Doc/library/unittest.rst:220 msgid "Stop the test run on the first error or failure." -msgstr "" -"Arrête l'exécution des tests lors du premier cas d'erreur ou d'échec." +msgstr "Arrête l'exécution des tests lors du premier cas d'erreur ou d'échec." #: ../Doc/library/unittest.rst:224 msgid "" @@ -494,8 +493,9 @@ msgid "" "Test discovery is implemented in :meth:`TestLoader.discover`, but can also " "be used from the command line. The basic command-line usage is::" msgstr "" -"La découverte de tests est implémentée dans :meth:`TestLoader.discover`, mais " -"peut également être utilisée depuis la ligne de commande. Par exemple  ::" +"La découverte de tests est implémentée dans :meth:`TestLoader.discover`, " +"mais peut également être utilisée depuis la ligne de commande. Par exemple " +" ::" #: ../Doc/library/unittest.rst:277 msgid "" @@ -612,12 +612,11 @@ msgid "" "`TestCase` or use :class:`FunctionTestCase`." msgstr "" "Les éléments de base des tests unitaires sont les :dfn:`scénarios de tests` " -"(*test cases* en anglais) --- Des " -"scénarios uniques qui sont mis en place et exécutés pour vérifier qu'ils " -"sont corrects. Dans :mod:`unittest`, les scénarios de test sont représentés " -"par des instances de :class:`unittest.TestCase`. Pour créer vos propres " -"scénarios de test, vous devez écrire des sous-classes de :class:`TestCase` " -"ou utiliser :class:`FunctionTestCase`." +"(*test cases* en anglais) --- Des scénarios uniques qui sont mis en place et " +"exécutés pour vérifier qu'ils sont corrects. Dans :mod:`unittest`, les " +"scénarios de test sont représentés par des instances de :class:`unittest." +"TestCase`. Pour créer vos propres scénarios de test, vous devez écrire des " +"sous-classes de :class:`TestCase` ou utiliser :class:`FunctionTestCase`." #: ../Doc/library/unittest.rst:347 msgid "" @@ -671,8 +670,8 @@ msgid "" "the test method names with respect to the built-in ordering for strings." msgstr "" "L'ordre dans lequel les différents tests sont exécutés est déterminé en " -"classant les noms des méthodes de test en fonction de la relation d'ordre des " -"chaines de caractères ." +"classant les noms des méthodes de test en fonction de la relation d'ordre " +"des chaines de caractères ." #: ../Doc/library/unittest.rst:393 msgid "" @@ -709,10 +708,11 @@ msgid "" "test." msgstr "" "Un tel environnement de travail pour le code de test s'appelle un :dfn:" -"`aménagement de test` (*fixture* en anglais). Une nouvelle instance de *TestCase* est créée sous la forme d'un " -"dispositif de test unique utilisé pour exécuter chaque méthode de test " -"individuelle. Ainsi :meth:`~TestCase.setUp`, :meth:`~TestCase.tearDown` et :" -"meth:`~TestCase.__init__` ne sont appelées qu'une fois par test." +"`aménagement de test` (*fixture* en anglais). Une nouvelle instance de " +"*TestCase* est créée sous la forme d'un dispositif de test unique utilisé " +"pour exécuter chaque méthode de test individuelle. Ainsi :meth:`~TestCase." +"setUp`, :meth:`~TestCase.tearDown` et :meth:`~TestCase.__init__` ne sont " +"appelées qu'une fois par test." #: ../Doc/library/unittest.rst:418 msgid "" @@ -727,8 +727,8 @@ msgstr "" "des fonctionnalités qu'ils testent. :mod:`unittest` fournit un mécanisme " "pour cela : la :dfn:`suite de tests`, représentée par :class:`TestSuite` du " "module :mod:`unittest`. Dans la plupart des cas, appeler :func:`unittest." -"main` fait correctement les choses et trouve tous les scénarios de test du module pour " -"vous et les exécute." +"main` fait correctement les choses et trouve tous les scénarios de test du " +"module pour vous et les exécute." #: ../Doc/library/unittest.rst:425 msgid "" @@ -745,10 +745,10 @@ msgid "" "are several advantages to placing the test code in a separate module, such " "as :file:`test_widget.py`:" msgstr "" -"Vous pouvez placer les définitions des scénarios de test et des suites de test " -"dans le même module que le code à tester (tel que :file:`composant.py`), " -"mais il y a plusieurs avantages à placer le code de test dans un module séparé, " -"tel que :file:`test_composant.py` :" +"Vous pouvez placer les définitions des scénarios de test et des suites de " +"test dans le même module que le code à tester (tel que :file:`composant." +"py`), mais il y a plusieurs avantages à placer le code de test dans un " +"module séparé, tel que :file:`test_composant.py` :" #: ../Doc/library/unittest.rst:443 msgid "The test module can be run standalone from the command line." @@ -880,8 +880,8 @@ msgid "" "Skipping a test is simply a matter of using the :func:`skip` :term:" "`decorator` or one of its conditional variants." msgstr "" -"Ignorer un test consiste à utiliser le :term:`décorateur ` :func:`skip` " -"term:`decorator` ou une de ses variantes conditionnelles." +"Ignorer un test consiste à utiliser le :term:`décorateur ` :func:" +"`skip` ou une de ses variantes conditionnelles." #: ../Doc/library/unittest.rst:515 msgid "Basic skipping looks like this::" @@ -971,9 +971,9 @@ msgid "" "have :func:`setUpModule` or :func:`tearDownModule` run." msgstr "" "Les tests ignorés ne lancent ni :meth:`~TestCase.setUp` ni :meth:`~TestCase." -"tearDown`. Les classes ignorées ne lancent ni :meth:`~TestCase." -"setUpClass` ni :meth:`~TestCase.tearDownClass`. Les modules " -"sautés n'ont pas :func:`setUpModule` ou :func:`tearDownModule` d'exécutés." +"tearDown`. Les classes ignorées ne lancent ni :meth:`~TestCase.setUpClass` " +"ni :meth:`~TestCase.tearDownClass`. Les modules sautés n'ont pas :func:" +"`setUpModule` ou :func:`tearDownModule` d'exécutés." #: ../Doc/library/unittest.rst:606 msgid "Distinguishing test iterations using subtests" @@ -1043,10 +1043,10 @@ msgid "" "named *methodName*. In most uses of :class:`TestCase`, you will neither " "change the *methodName* nor reimplement the default ``runTest()`` method." msgstr "" -"Chaque instance de la classe :class:`TestCase` n'exécute qu'une seule méthode " -"de base : la méthode nommée *methodName* . Dans la plupart des utilisations " -"de la classe :class:`TestCase`, vous n'avez pas à changer le nom de la " -"méthode, ni à réimplémenter la méthode ``runTest()``." +"Chaque instance de la classe :class:`TestCase` n'exécute qu'une seule " +"méthode de base : la méthode nommée *methodName* . Dans la plupart des " +"utilisations de la classe :class:`TestCase`, vous n'avez pas à changer le " +"nom de la méthode, ni à réimplémenter la méthode ``runTest()``." #: ../Doc/library/unittest.rst:692 msgid "" @@ -1102,8 +1102,8 @@ msgid "" msgstr "" "Méthode appelée immédiatement après l'appel de la méthode de test et " "l'enregistrement du résultat. Elle est appelée même si la méthode de test a " -"levé une exception, de sorte que l'implémentation dans les sous-classes de " -"contrôles d'état interne à la classe doit être fait avec précaution. Toute " +"levé une exception. De fait, l'implémentation d'un sous-classes doit être " +"fait avec précaution si vous vérifiez l'état interne de la classe. Toute " "exception, autre que :exc:`AssertionError` ou :exc:`SkipTest`, levée par " "cette méthode est considérée comme une erreur supplémentaire plutôt que " "comme un échec du test (augmentant ainsi le nombre total des erreurs " @@ -1132,8 +1132,8 @@ msgid "" "decorated as a :meth:`classmethod`::" msgstr "" "Méthode de classe appelée après l'exécution des tests de la classe en " -"question. ``tearDownClass`` est appelée avec la classe comme seul argument et " -"doit être décorée comme une :meth:`classmethod`  ::" +"question. ``tearDownClass`` est appelée avec la classe comme seul argument " +"et doit être décorée comme une :meth:`classmethod`  ::" #: ../Doc/library/unittest.rst:757 msgid "" @@ -2057,11 +2057,11 @@ msgid "" "also raised if either of the parameters are of the wrong type. These methods " "are used by default when comparing lists or tuples with :meth:`assertEqual`." msgstr "" -"Vérifie que deux listes ou deux n-uplets sont égaux. Si ce n'est pas le cas, " -"un message d'erreur qui ne montre que les différences entre les deux est " -"généré. Une erreur est également signalée si l'un ou l'autre des paramètres " -"n'est pas du bon type. Ces méthodes sont utilisées par défaut pour comparer " -"des listes ou des couples avec :meth:`assertEqual`." +"Vérifie que deux listes ou deux n-uplets sont égaux. Si ce n'est pas le " +"cas, un message d'erreur qui ne montre que les différences entre les deux " +"est généré. Une erreur est également signalée si l'un ou l'autre des " +"paramètres n'est pas du bon type. Ces méthodes sont utilisées par défaut " +"pour comparer des listes ou des couples avec :meth:`assertEqual`." #: ../Doc/library/unittest.rst:1308 msgid "" @@ -2648,7 +2648,7 @@ msgid "" "derived :class:`testCaseClass`." msgstr "" "Renvoie une suite de tous les cas de test contenus dans la classe :class:" -"`TestCase`\\ Dérivée de la classe :class:`testCaseClass`." +"`TestCaseClass`\\ dérivée de :class:`testCase`." #: ../Doc/library/unittest.rst:1613 msgid "" @@ -3634,8 +3634,8 @@ msgid "" "``load_tests`` function for a test package would look like::" msgstr "" "Comme le motif est passé à ``load_tests``, le paquet est libre de continuer " -"(et potentiellement de modifier) la découverte des tests. Une fonction 'ne " -"rien faire' ``load_tests`` pour un paquet de test ressemblerait à  ::" +"(et potentiellement de modifier) la découverte des tests. Une fonction « ne " +"rien faire » ``load_tests`` pour un paquet de test ressemblerait à  ::" #: ../Doc/library/unittest.rst:2185 msgid "" @@ -3687,8 +3687,8 @@ msgid "" "care." msgstr "" "Notez que les aménagements de tests partagés ne fonctionnent pas bien avec " -"les fonctions[potentielles] comme la parallélisation de test et qu'ils " -"brisent l'isolation de test. Ils doivent être utilisés avec précaution." +"de « potentielles » fonctions comme la parallélisation de test et qu'ils " +"brisent l'isolation des tests. Ils doivent être utilisés avec parcimonie." #: ../Doc/library/unittest.rst:2209 msgid "" @@ -3808,8 +3808,8 @@ msgid "" msgstr "" "L'option :option:`-c/--catch ` en ligne de commande pour " "*unittest*, ainsi que le paramètre ``catchbreak`` vers :func:`unittest." -"main()`, permettent une manipulation plus conviviale du contrôle-C pendant " -"un test. Avec l'activation de ``catchbreak``, l'utilisation du contrôle-C " +"main()`, permettent une utilisation simplifiée du contrôle-C pendant un " +"test. Avec l'activation de ``catchbreak``, l'utilisation du contrôle-C " "permet de terminer le test en cours d'exécution, et le test se termine et " "rapporte tous les résultats obtenus jusqu'à présent. Un deuxième contrôle-C " "lève une exception classique :exc:`KeyboardInterrupt`." From 5bce1c91003ea9485dde8f0e1e77baa4450342ba Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 25 Feb 2019 23:16:38 +0100 Subject: [PATCH 027/121] unittest: Missing msgstr (merge error maybe). --- library/unittest.po | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/unittest.po b/library/unittest.po index 82bb3348a..a93a10a37 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -527,6 +527,9 @@ msgstr "Motif de détection des fichiers de test (``test*.py`` par défaut)" msgid "Top level directory of project (defaults to start directory)" "Répertoire de premier niveau du projet (répertoire racine, c'est-à-dire " "*start-directory*, par défaut)" +msgstr "" +"Répertoire de premier niveau du projet (répertoire racine, c'est-à-dire " +"*start-directory*, par défaut)" #: ../Doc/library/unittest.rst:301 msgid "" From e7e05b6f4d2c0afe07ad1713aed6e153b184e6bf Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 25 Feb 2019 23:21:20 +0100 Subject: [PATCH 028/121] sys translation Co-Authored-By: Louis-Gabriel-TM --- library/sys.po | 55 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/library/sys.po b/library/sys.po index 3f3593dc3..c5db085a1 100644 --- a/library/sys.po +++ b/library/sys.po @@ -13,7 +13,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" +"X-Generator: Poedit 1.5.4\n" #: ../Doc/library/sys.rst:2 msgid ":mod:`sys` --- System-specific parameters and functions" @@ -72,12 +72,12 @@ msgid "" "Python installation (the one which the virtual environment was created from)." msgstr "" "Défini au démarrage de Python, avant que ``site.py`` ne soit évalué, à la " -"même valeur que :data:`exec_prefix`. Hors d'un :ref:`virtual environment " -"`, les valeurs resteront les mêmes; si ``site.py`` détecte qu'un " +"même valeur que :data:`exec_prefix`. Hors d'un :ref:`environnement virtuel " +"`, les valeurs restent les mêmes ; si ``site.py`` détecte qu'un " "environnement virtuel est utilisé, les valeurs de :data:`prefix` et :data:" -"`exec_prefix` seront modifiées point pointer vers l'environnement virtuel, " -"alors que :data:`base_prefix` et :data:`base_exec_prefix` pointeront " -"toujours à la racine de l'installation de Python (celui utilisé pour créer " +"`exec_prefix` sont modifiées pour pointer vers l'environnement virtuel, " +"alors que :data:`base_prefix` et :data:`base_exec_prefix` pointent toujours " +"à la racine de l'installation de Python (celui utilisé pour créer " "l'environnement virtuel)." #: ../Doc/library/sys.rst:50 @@ -91,12 +91,12 @@ msgid "" "Python installation (the one which the virtual environment was created from)." msgstr "" "Défini au démarrage de Python, avant que ``site.py`` ne soit évalué, à la " -"même valeur que :data:`prefix`. Hors d'un :ref:`virtual environment `, les valeurs resteront les mêmes; si ``site.py`` détecte qu'un " +"même valeur que :data:`prefix`. Hors d'un :ref:`environnement virtuel `, les valeurs restent les mêmes ; si ``site.py`` détecte qu'un " "environnement virtuel est utilisé, les valeurs de :data:`prefix` et :data:" -"`exec_prefix` seront modifiées point pointer vers l'environnement virtuel, " -"alors que :data:`base_prefix` et :data:`base_exec_prefix` pointeront " -"toujours à la racine de l'installation de Python (celui utilisé pour créer " +"`exec_prefix` sont modifiées pour pointer vers l'environnement virtuel, " +"alors que :data:`base_prefix` et :data:`base_exec_prefix` pointent toujours " +"à la racine de l'installation de Python (celui utilisé pour créer " "l'environnement virtuel)." #: ../Doc/library/sys.rst:63 @@ -187,6 +187,10 @@ msgid "" "drops you into the :mod:`pdb` debugger, but it can be set to any other " "function so that you can choose which debugger gets used." msgstr "" +"Cette fonction auto-déclenchée (*hook function* en anglais) est appelée par " +"la fonction native :func:`breakpoint()`. Par défaut, elle vous place dans le " +"débogueur :mod:`pdb`, mais elle peut être dirigée vers n'importe quelle " +"autre fonction pour que vous puissiez choisir le débogueur utilisé." #: ../Doc/library/sys.rst:118 msgid "" @@ -197,6 +201,12 @@ msgid "" "``*args`` and ``**kws`` straight through. Whatever ``breakpointhooks()`` " "returns is returned from ``breakpoint()``." msgstr "" +"La signature de cette fonction dépend de ce qu'elle appelle. Par exemple, " +"l'appel par défaut (e.g. ``pdb.set_trace()``) n'attend pas d'argument, mais " +"vous pourriez la lier à une fonction qui attend des arguments " +"supplémentaires (positionnels et/ou mots-clés). La fonction native " +"`breakpoint()` passe ses ``*args`` et ``**kws``directement au travers. Tout " +"ce que renvoie ``breakpointhooks()`` est renvoyé par ``breakpoint()``." #: ../Doc/library/sys.rst:125 msgid "" @@ -211,6 +221,17 @@ msgid "" "``*args`` and ``**kws``, and whatever ``function()`` returns, ``sys." "breakpointhook()`` returns to the built-in :func:`breakpoint` function." msgstr "" +"L'implémentation par défaut consulte d'abord la variable d'environnement :" +"envvar:`PYTHONBREAKPOINT`. Si elle vaut ``\"0\"`` alors cette fonction " +"s'achève immédiatement (elle ne fait donc rien). Si la variable " +"d'environnement n'est pas définie, ou s'il s'agit d'une chaîne vide, ``pdb." +"set_trace()`` est appelée. Sinon cette variable doit nommer une fonction à " +"appeler, en utilisant la syntaxe d'importation de Python, par exemple " +"``package.subpackage.module.function``. Dans ce cas, ``package.subpackage." +"module`` sera importé et le module devra contenir une fonction appelable " +"``function()``. Celle-ci est lancée en lui passant ``*args`` et ``*kws`` et, " +"quoique renvoie ``function()``, ``sys.breakpointhook()`` retourne à la " +"fonction native ``breakpoint()``." #: ../Doc/library/sys.rst:137 msgid "" @@ -218,12 +239,17 @@ msgid "" "envvar:`PYTHONBREAKPOINT`, a :exc:`RuntimeWarning` is reported and the " "breakpoint is ignored." msgstr "" +"Notez que si un problème apparaît au moment de l'import de la fonction " +"nommée dans :envvar:`PYTHONBREAKPOINT`, une alerte :exc:`RuntimeWarning` est " +"indiquée et le point d'arrêt est ignoré." #: ../Doc/library/sys.rst:141 msgid "" "Also note that if ``sys.breakpointhook()`` is overridden programmatically, :" "envvar:`PYTHONBREAKPOINT` is *not* consulted." msgstr "" +"Notez également que si ``sys.breakpointhook()`` est surchargé de manière " +"programmatique, :envvar:`PYTHONBREAKPOINT` *n'est pas* consulté." #: ../Doc/library/sys.rst:148 msgid "" @@ -354,7 +380,7 @@ msgstr "" #: ../Doc/library/sys.rst:236 msgid "__breakpointhook__" -msgstr "" +msgstr "__breakpointhook__" #: ../Doc/library/sys.rst:242 msgid "" @@ -657,6 +683,9 @@ msgid "" "Added ``dev_mode`` attribute for the new :option:`-X` ``dev`` flag and " "``utf8_mode`` attribute for the new :option:`-X` ``utf8`` flag." msgstr "" +"Ajout de l'attribut ``dev_mode`` pour la nouvelle option :option:`-X` de " +"``dev`` et l'attribut ``utf8_mode`` pour la nouvelle option ``utf8`` :option:" +"`-X`." #: ../Doc/library/sys.rst:363 msgid "" @@ -1012,7 +1041,7 @@ msgstr "" #: ../Doc/library/sys.rst:521 msgid "Return 'utf-8' in the UTF-8 mode." -msgstr "" +msgstr "Renvoie `\"utf-8\"` en mode UTF-8." #: ../Doc/library/sys.rst:527 msgid "" From 6f39456250cbdae8026d7b4c606ae58f2deb0384 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 25 Feb 2019 23:26:02 +0100 Subject: [PATCH 029/121] Proofreading library/sys.po --- library/sys.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/library/sys.po b/library/sys.po index c5db085a1..30454cd7a 100644 --- a/library/sys.po +++ b/library/sys.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-17 21:38+0100\n" -"PO-Revision-Date: 2018-11-29 18:30+0100\n" +"PO-Revision-Date: 2019-02-25 23:27+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -188,7 +188,7 @@ msgid "" "function so that you can choose which debugger gets used." msgstr "" "Cette fonction auto-déclenchée (*hook function* en anglais) est appelée par " -"la fonction native :func:`breakpoint()`. Par défaut, elle vous place dans le " +"la fonction native :func:`breakpoint`. Par défaut, elle vous place dans le " "débogueur :mod:`pdb`, mais elle peut être dirigée vers n'importe quelle " "autre fonction pour que vous puissiez choisir le débogueur utilisé." @@ -205,7 +205,7 @@ msgstr "" "l'appel par défaut (e.g. ``pdb.set_trace()``) n'attend pas d'argument, mais " "vous pourriez la lier à une fonction qui attend des arguments " "supplémentaires (positionnels et/ou mots-clés). La fonction native " -"`breakpoint()` passe ses ``*args`` et ``**kws``directement au travers. Tout " +"`breakpoint()` passe ses ``*args`` et ``**kws`` directement au travers. Tout " "ce que renvoie ``breakpointhooks()`` est renvoyé par ``breakpoint()``." #: ../Doc/library/sys.rst:125 @@ -231,7 +231,7 @@ msgstr "" "module`` sera importé et le module devra contenir une fonction appelable " "``function()``. Celle-ci est lancée en lui passant ``*args`` et ``*kws`` et, " "quoique renvoie ``function()``, ``sys.breakpointhook()`` retourne à la " -"fonction native ``breakpoint()``." +"fonction native :func:`breakpoint`." #: ../Doc/library/sys.rst:137 msgid "" @@ -683,9 +683,9 @@ msgid "" "Added ``dev_mode`` attribute for the new :option:`-X` ``dev`` flag and " "``utf8_mode`` attribute for the new :option:`-X` ``utf8`` flag." msgstr "" -"Ajout de l'attribut ``dev_mode`` pour la nouvelle option :option:`-X` de " -"``dev`` et l'attribut ``utf8_mode`` pour la nouvelle option ``utf8`` :option:" -"`-X`." +"Ajout de l'attribut ``dev_mode`` pour la nouvelle option :option:`-X` " +"``dev`` et l'attribut ``utf8_mode`` pour la nouvelle option :option:`-X` " +"``utf8``." #: ../Doc/library/sys.rst:363 msgid "" From c104c089406782e245342fb4a33802477ad0e972 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 25 Feb 2019 23:29:35 +0100 Subject: [PATCH 030/121] powrap all the things. --- c-api/allocation.po | 19 +-- c-api/datetime.po | 36 +++-- copyright.po | 3 +- distutils/builtdist.po | 49 ++++--- faq/design.po | 6 +- library/email.po | 63 ++++---- library/errno.po | 30 ++-- library/spwd.po | 16 +-- library/turtle.po | 317 +++++++++++++++++++++-------------------- library/unittest.po | 7 +- 10 files changed, 281 insertions(+), 265 deletions(-) diff --git a/c-api/allocation.po b/c-api/allocation.po index a9b38d283..381983e06 100644 --- a/c-api/allocation.po +++ b/c-api/allocation.po @@ -38,8 +38,9 @@ msgid "" "This does everything :c:func:`PyObject_Init` does, and also initializes the " "length information for a variable-size object." msgstr "" -"Effectue les mêmes opérations que :c:func:`PyObject_Init` fait, et initialise " -"également l'information de la longueur pour un objet de taille variable." +"Effectue les mêmes opérations que :c:func:`PyObject_Init` fait, et " +"initialise également l'information de la longueur pour un objet de taille " +"variable." #: ../Doc/c-api/allocation.rst:32 msgid "" @@ -50,10 +51,10 @@ msgid "" "tp_basicsize` field of the type object." msgstr "" "Alloue un nouvel objet Python en utilisant le type de structure C *TYPE* et " -"l'objet Python *type*. Les champs non définis par l'en-tête de " -"l'objet Python ne sont pas initialisés; le compteur de la référence objet " -"sera égal à un. La taille de l'allocation mémoire est déterminée par le champ " -":c:member:`~PyTypeObject.tp_basicsize` de l'objet type." +"l'objet Python *type*. Les champs non définis par l'en-tête de l'objet " +"Python ne sont pas initialisés; le compteur de la référence objet sera égal " +"à un. La taille de l'allocation mémoire est déterminée par le champ :c:" +"member:`~PyTypeObject.tp_basicsize` de l'objet type." #: ../Doc/c-api/allocation.rst:41 msgid "" @@ -85,9 +86,9 @@ msgid "" msgstr "" "Libère la mémoire allouée à un objet utilisant :c:func:`PyObject_New` ou :c:" "func:`PyObject_NewVar`. Ceci est normalement appelé par le gestionnaire :c:" -"member:`~PyTypeObject.tp_dealloc` spécifié dans le type d'objet. Les champs de " -"l'objet ne doivent plus être accédés après cet appel puisque cet emplacement " -"mémoire ne correspond plus à un objet Python valide." +"member:`~PyTypeObject.tp_dealloc` spécifié dans le type d'objet. Les champs " +"de l'objet ne doivent plus être accédés après cet appel puisque cet " +"emplacement mémoire ne correspond plus à un objet Python valide." #: ../Doc/c-api/allocation.rst:62 msgid "" diff --git a/c-api/datetime.po b/c-api/datetime.po index e476d43e4..04efe9a5c 100644 --- a/c-api/datetime.po +++ b/c-api/datetime.po @@ -31,12 +31,12 @@ msgid "" "the following macros." msgstr "" "De nombreux objets *date* et *time* sont exposés par le module :mod:" -"`DateTime`. Avant d'utiliser une de ces fonctions, le fichier d'en-tête :file:" -"`datetime.h` doit être inclus dans vos sources (veuillez noter qu'il n'est " -"pas inclus par le fichier :file:`Python.h`) et la macro :c:macro:" +"`DateTime`. Avant d'utiliser une de ces fonctions, le fichier d'en-tête :" +"file:`datetime.h` doit être inclus dans vos sources (veuillez noter qu'il " +"n'est pas inclus par le fichier :file:`Python.h`) et la macro :c:macro:" "`PyDateTime_IMPORT` doit-être invoquée, généralement lors de la fonction " -"d'initialisation du module. La macro crée un pointeur vers une structure " -"C et place celui-ci dans une variable statique, :c:data:`PyDateTimeAPI`, qui " +"d'initialisation du module. La macro crée un pointeur vers une structure C " +"et place celui-ci dans une variable statique, :c:data:`PyDateTimeAPI`, qui " "est utilisée par les macros suivantes." #: ../Doc/c-api/datetime.rst:16 @@ -48,8 +48,8 @@ msgid "" "Returns the time zone singleton representing UTC, the same object as :attr:" "`datetime.timezone.utc`." msgstr "" -"Renvoie le singleton du fuseau horaire UTC, qui est le même objet que :" -"attr:`datetime.timezone.utc`." +"Renvoie le singleton du fuseau horaire UTC, qui est le même objet que :attr:" +"`datetime.timezone.utc`." #: ../Doc/c-api/datetime.rst:26 msgid "Type-check macros:" @@ -60,8 +60,8 @@ msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_DateType` or a subtype " "of :c:data:`PyDateTime_DateType`. *ob* must not be *NULL*." msgstr "" -"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateType` ou un " -"sous-type de :c:data:`PyDateTime_DateType`. *ob* ne doit pas être *NULL*." +"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateType` ou un sous-" +"type de :c:data:`PyDateTime_DateType`. *ob* ne doit pas être *NULL*." #: ../Doc/c-api/datetime.rst:36 msgid "" @@ -77,8 +77,7 @@ msgid "" "subtype of :c:data:`PyDateTime_DateTimeType`. *ob* must not be *NULL*." msgstr "" "Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateTimeType` ou un " -"sous-type de :c:data:`PyDateTime_DateTimeType`. *ob* ne doit pas être " -"*NULL*." +"sous-type de :c:data:`PyDateTime_DateTimeType`. *ob* ne doit pas être *NULL*." #: ../Doc/c-api/datetime.rst:48 msgid "" @@ -258,9 +257,9 @@ msgid "" "instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument " "must not be *NULL*, and the type is not checked:" msgstr "" -"Macros pour extraire les champs des objets *time delta*. L'argument doit être " -"une instance de :c:data:`PyDateTime_Delta` ou une sous-classe de celle-ci. " -"L'argument ne doit pas être *NULL*, et le type n'est pas vérifié :" +"Macros pour extraire les champs des objets *time delta*. L'argument doit " +"être une instance de :c:data:`PyDateTime_Delta` ou une sous-classe de celle-" +"ci. L'argument ne doit pas être *NULL*, et le type n'est pas vérifié :" #: ../Doc/c-api/datetime.rst:203 msgid "Return the number of days, as an int from -999999999 to 999999999." @@ -286,14 +285,13 @@ msgid "" "Create and return a new :class:`datetime.datetime` object given an argument " "tuple suitable for passing to :meth:`datetime.datetime.fromtimestamp()`." msgstr "" -"Crée et renvoie un nouvel objet :class:`datetime.datetime` à partir " -"d'un n-uplet qui peut être passé à :meth:`datetime.datetime." -"fromtimestamp()`." +"Crée et renvoie un nouvel objet :class:`datetime.datetime` à partir d'un n-" +"uplet qui peut être passé à :meth:`datetime.datetime.fromtimestamp()`." #: ../Doc/c-api/datetime.rst:232 msgid "" "Create and return a new :class:`datetime.date` object given an argument " "tuple suitable for passing to :meth:`datetime.date.fromtimestamp()`." msgstr "" -"Crée et renvoie un nouvel objet :class:`datetime.date` à partir d'un " -"n-uplet qui peut être passé à :meth:`datetime.date.fromtimestamp()`." +"Crée et renvoie un nouvel objet :class:`datetime.date` à partir d'un n-uplet " +"qui peut être passé à :meth:`datetime.date.fromtimestamp()`." diff --git a/copyright.po b/copyright.po index e49ecaf9a..696974835 100644 --- a/copyright.po +++ b/copyright.po @@ -24,7 +24,8 @@ msgstr "Python et cette documentation sont :" #: ../Doc/copyright.rst:7 msgid "Copyright © 2001-2019 Python Software Foundation. All rights reserved." -msgstr "Copyright © 2001-2019 Python Software Foundation. Tout droits réservés." +msgstr "" +"Copyright © 2001-2019 Python Software Foundation. Tout droits réservés." #: ../Doc/copyright.rst:9 msgid "Copyright © 2000 BeOpen.com. All rights reserved." diff --git a/distutils/builtdist.po b/distutils/builtdist.po index abafef461..27450bcce 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -653,12 +653,12 @@ msgid "" "disable this file, you can pass the :option:`!--no-user-cfg` option to :file:" "`setup.py`." msgstr "" -"Fournir ces options en ligne de commande " -"est fastidieux et sujet à des erreurs, il est donc recommandé de les mettre " -"dans un fichier de configuration. :file:`setup.cfg`\\ --- voir la section :" -"ref:`setup-config`. Si vous distribuez ou empaquetez beaucoup de modules de " -"distribution Python, vous pourriez vouloir mettre les options qui s'appliquent " -"à tous vos projets dans votre fichier de configuration personnel Distutils (:file:`~/." +"Fournir ces options en ligne de commande est fastidieux et sujet à des " +"erreurs, il est donc recommandé de les mettre dans un fichier de " +"configuration. :file:`setup.cfg`\\ --- voir la section :ref:`setup-config`. " +"Si vous distribuez ou empaquetez beaucoup de modules de distribution Python, " +"vous pourriez vouloir mettre les options qui s'appliquent à tous vos projets " +"dans votre fichier de configuration personnel Distutils (:file:`~/." "pydistutils.cfg`). Si vous voulez temporairement désactiver ce fichier, vous " "pouvez passer l'option :option:`!--no-user-cfg` à :file:`setup.py`." @@ -712,13 +712,12 @@ msgid "" msgstr "" "Si vous le souhaitez, vous pouvez séparer ces trois étapes. Vous pouvez " "utiliser l'option :option:`!--spec-only` pour faire en sorte que la " -"commande :command:`bdist_rpm` crée juste le fichier :file:`.spec` et quitte ; " -"dans ce cas, le fichier :file:`.spec` sera écrit dans le dossier de " +"commande :command:`bdist_rpm` crée juste le fichier :file:`.spec` et " +"quitte ; dans ce cas, le fichier :file:`.spec` sera écrit dans le dossier de " "distribution (\"*distribution directory*\") --- normalement :file:`dist/`, " "mais personnalisable avec l'option :option:`!--dist-dir`. (Normalement, le " -"fichier :file:`.spec` se retrouve profondément enfoui dans l'arborescence" -", dans un dossier temporaire créé par la commande :command:" -"`bdist_rpm`.)" +"fichier :file:`.spec` se retrouve profondément enfoui dans l'arborescence, " +"dans un dossier temporaire créé par la commande :command:`bdist_rpm`.)" #: ../Doc/distutils/builtdist.rst:297 msgid "Creating Windows Installers" @@ -784,11 +783,11 @@ msgid "" "`bdist_wininst` command with the :option:`!--no-target-compile` and/or the :" "option:`!--no-target-optimize` option." msgstr "" -"L'installeur essaiera de compiler les modules purs en :term:`bytecode` " -"après installation sur le système cible dans les modes normaux et " -"optimisé. Si vous ne voulez pas que ce soit fait, vous pouvez lancer la " -"commande :command:`bdist_wininst` avec l'option :option:`!--no-target-" -"compile` et/ou l'option :option:`!--no-target-optimize`." +"L'installeur essaiera de compiler les modules purs en :term:`bytecode` après " +"installation sur le système cible dans les modes normaux et optimisé. Si " +"vous ne voulez pas que ce soit fait, vous pouvez lancer la commande :command:" +"`bdist_wininst` avec l'option :option:`!--no-target-compile` et/ou l'option :" +"option:`!--no-target-optimize`." #: ../Doc/distutils/builtdist.rst:331 msgid "" @@ -796,9 +795,9 @@ msgid "" "it is run, but you can also supply your own 152x261 bitmap which must be a " "Windows :file:`.bmp` file with the :option:`!--bitmap` option." msgstr "" -"Par défaut l'installateur affichera le super logo \"Python Powered\"" -", mais vous pouvez aussi donnez votre propre bitmap de 152x261 qui doit " -"être un fichier :file:`.bmp` Windows avec l'option :option:`!--bitmap`." +"Par défaut l'installateur affichera le super logo \"Python Powered\", mais " +"vous pouvez aussi donnez votre propre bitmap de 152x261 qui doit être un " +"fichier :file:`.bmp` Windows avec l'option :option:`!--bitmap`." #: ../Doc/distutils/builtdist.rst:335 msgid "" @@ -910,10 +909,10 @@ msgid "" "specified, and the script filename must also be listed in the scripts " "argument to the setup function." msgstr "" -"Depuis Python 2.3, un script post-installation peut être spécifié " -"avec l'option :option:`!--install-script`. Le nom du script doit être " -"spécifié et le nom de fichier du script doit aussi être listé dans les " -"arguments \"scripts\" de la fonction ``setup``." +"Depuis Python 2.3, un script post-installation peut être spécifié avec " +"l'option :option:`!--install-script`. Le nom du script doit être spécifié et " +"le nom de fichier du script doit aussi être listé dans les arguments " +"\"scripts\" de la fonction ``setup``." #: ../Doc/distutils/builtdist.rst:390 msgid "" @@ -1020,5 +1019,5 @@ msgstr "" "access-control`. Sa valeur par défaut est 'none' (Ce qui veut dire que aucun " "UAC est fait), et les autres valeurs valides sont 'auto' (ce qui veut dire " "qu'il faut demander une élévation de privilèges UAC si Python a été installé " -"pour tous les utilisateurs) et 'force' (Toujours demander une élévation " -"de privilèges)." +"pour tous les utilisateurs) et 'force' (Toujours demander une élévation de " +"privilèges)." diff --git a/faq/design.po b/faq/design.po index d9568157a..d8f4ef49f 100644 --- a/faq/design.po +++ b/faq/design.po @@ -1102,9 +1102,9 @@ msgid "" "members of the list may be unhashable and also by the possibility of " "arithmetic overflow." msgstr "" -"Notez que le calcul de hachage peut être compliqué car il est possible que certains " -"membres de la liste peuvent être impossible à hacher et aussi par la " -"possibilité de débordement arithmétique." +"Notez que le calcul de hachage peut être compliqué car il est possible que " +"certains membres de la liste peuvent être impossible à hacher et aussi par " +"la possibilité de débordement arithmétique." #: ../Doc/faq/design.rst:578 msgid "" diff --git a/library/email.po b/library/email.po index aa6a26854..1e9d1202c 100644 --- a/library/email.po +++ b/library/email.po @@ -34,11 +34,11 @@ msgid "" msgstr "" "Le paquet :mod:`email` est une bibliothèque pour gérer les e-mails. Il est " "spécifiquement conçu pour ne pas gérer les envois d'e-mails vers SMTP (:rfc:" -"`2821`), NNTP, ou autres serveurs ; ces fonctions sont du ressort des modules comme :" -"mod:`smtplib` et :mod:`nntplib`. Le paquet :mod:`email` tente de respecter " -"les RFC autant que possible, il gère :rfc:`5233` et :rfc:`6532`, ainsi " -"que les RFCs en rapport avec les MIME comme :rfc:`2045`, :rfc:`2046`, :rfc:" -"`2047`, :rfc:`2183`, et :rfc:`2231`." +"`2821`), NNTP, ou autres serveurs ; ces fonctions sont du ressort " +"des modules comme :mod:`smtplib` et :mod:`nntplib`. Le paquet :mod:`email` " +"tente de respecter les RFC autant que possible, il gère :rfc:`5233` et :rfc:" +"`6532`, ainsi que les RFCs en rapport avec les MIME comme :rfc:`2045`, :rfc:" +"`2046`, :rfc:`2047`, :rfc:`2183`, et :rfc:`2231`." #: ../Doc/library/email.rst:23 msgid "" @@ -107,17 +107,17 @@ msgid "" "to an email server." msgstr "" "Le composant de contrôle est le module :mod:`~email.policy`. Chaque :class:" -"`~email.message.EmailMessage`, chaque :mod:`~email.generator` et chaque :" -"mod:`~email.parser` possède un objet associé :mod:`~email.policy` qui " -"contrôle son comportement. Habituellement une application n'a besoin de " -"spécifier la politique que quand un :class:`~email.message.EmailMessage` est " -"créé, soit en instanciant directement un :class:`~email.message." -"EmailMessage` pour créer un nouvel e-mail, soit lors de l'analyse d'un flux entrant en " +"`~email.message.EmailMessage`, chaque :mod:`~email.generator` et chaque :mod:" +"`~email.parser` possède un objet associé :mod:`~email.policy` qui contrôle " +"son comportement. Habituellement une application n'a besoin de spécifier la " +"politique que quand un :class:`~email.message.EmailMessage` est créé, soit " +"en instanciant directement un :class:`~email.message.EmailMessage` pour " +"créer un nouvel e-mail, soit lors de l'analyse d'un flux entrant en " "utilisant un :mod:`~email.parser`. Mais la politique peut être changée quand " "le message est sérialisé en utilisant un :mod:`~email.generator`. Cela " "permet, par exemple, d'analyser un message e-mail générique du disque, puis " -"de le sérialiser en utilisant une configuration SMTP standard quand on l'envoie " -"vers un serveur d'e-mail." +"de le sérialiser en utilisant une configuration SMTP standard quand on " +"l'envoie vers un serveur d'e-mail." #: ../Doc/library/email.rst:58 msgid "" @@ -135,8 +135,8 @@ msgid "" "modern internet software (not just email), this will be a familiar concept " "to many programmers." msgstr "" -"Le paquet *email* fait son maximum pour cacher les détails des différentes RFCs " -"de référence à l'application. Conceptuellement, l'application doit être " +"Le paquet *email* fait son maximum pour cacher les détails des différentes " +"RFCs de référence à l'application. Conceptuellement, l'application doit être " "capable de traiter l'e-mail comme une arborescence structurée de texte " "Unicode et de pièces jointes binaires, sans avoir à se préoccuper de leur " "représentation sérialisée. Dans la pratique, cependant, il est souvent " @@ -181,11 +181,11 @@ msgstr "" "rencontrer et les imperfections (non-respect des RFCs) que l':mod:`~email." "parser` peut détecter. Ensuite nous couvrons les sous-composants :mod:" "`~email.headerregistry` et :mod:`~email.contentmanager`, qui fournissent des " -"outils pour faire des manipulations plus détaillées des en-têtes et " -"du contenu, respectivement. Les deux composants contiennent des " -"fonctionnalités adaptées pour traiter et produire des messages qui " -"sortent de l'ordinaire, et elles documentent aussi leurs API pour pouvoir les étendre, ce " -"qui ne manquera pas d'intéresser les applications avancées." +"outils pour faire des manipulations plus détaillées des en-têtes et du " +"contenu, respectivement. Les deux composants contiennent des fonctionnalités " +"adaptées pour traiter et produire des messages qui sortent de l'ordinaire, " +"et elles documentent aussi leurs API pour pouvoir les étendre, ce qui ne " +"manquera pas d'intéresser les applications avancées." #: ../Doc/library/email.rst:87 msgid "" @@ -207,15 +207,16 @@ msgid "" "relevant for applications that are still using the :mod:`~email.policy." "compat32` API for backward compatibility reasons." msgstr "" -"Ce que nous venons d'aborder constitue l'API moderne (compatible Unicode) du paquet " -"*email*. Les sections restantes, commençant par la classe :class:`~email." -"message.Message`, couvrent l'API héritée :data:`~email.policy.compat32` qui " -"traite beaucoup plus directement des détails sur la manière dont les e-mails " -"sont représentés. L'API :data:`~email.policy.compat32` ne cache *pas* les " -"détails des RFCs à l'application, mais pour les applications qui requièrent " -"d'opérer à ce niveau, elle peut être un outil pratique. Cette documentation " -"est aussi pertinente pour les applications qui utilisent toujours l'API :mod:" -"`~email.policy.compat32` pour des raisons de rétrocompatibilité." +"Ce que nous venons d'aborder constitue l'API moderne (compatible Unicode) du " +"paquet *email*. Les sections restantes, commençant par la classe :class:" +"`~email.message.Message`, couvrent l'API héritée :data:`~email.policy." +"compat32` qui traite beaucoup plus directement des détails sur la manière " +"dont les e-mails sont représentés. L'API :data:`~email.policy.compat32` ne " +"cache *pas* les détails des RFCs à l'application, mais pour les applications " +"qui requièrent d'opérer à ce niveau, elle peut être un outil pratique. Cette " +"documentation est aussi pertinente pour les applications qui utilisent " +"toujours l'API :mod:`~email.policy.compat32` pour des raisons de " +"rétrocompatibilité." #: ../Doc/library/email.rst:100 msgid "" @@ -274,8 +275,8 @@ msgid "" "Tools for creating, reading, and managing collections of messages on disk " "using a variety standard formats." msgstr "" -"Outils pour créer, lire et gérer des messages regroupés sur disque en utilisant " -"des formats standards variés." +"Outils pour créer, lire et gérer des messages regroupés sur disque en " +"utilisant des formats standards variés." #: ../Doc/library/email.rst:151 msgid "Module :mod:`smtpd`" diff --git a/library/errno.po b/library/errno.po index de5b9e35a..b992fbea3 100644 --- a/library/errno.po +++ b/library/errno.po @@ -22,8 +22,8 @@ msgstr ":mod:`errno` — Symboles du système *errno* standard" #: ../Doc/library/errno.rst:9 msgid "" "This module makes available standard ``errno`` system symbols. The value of " -"each symbol is the corresponding integer value. The names and descriptions are " -"borrowed from :file:`linux/include/errno.h`, which should be pretty all-" +"each symbol is the corresponding integer value. The names and descriptions " +"are borrowed from :file:`linux/include/errno.h`, which should be pretty all-" "inclusive." msgstr "" "Ce module met à disposition des symboles du système standard ``errno``. La " @@ -33,16 +33,18 @@ msgstr "" #: ../Doc/library/errno.rst:17 msgid "" -"Dictionary providing a mapping from the errno value to the string name in the " -"underlying system. For instance, ``errno.errorcode[errno.EPERM]`` maps to " -"``'EPERM'``." +"Dictionary providing a mapping from the errno value to the string name in " +"the underlying system. For instance, ``errno.errorcode[errno.EPERM]`` maps " +"to ``'EPERM'``." msgstr "" -"Dictionnaire associant la valeur *errno* au nom de chaîne dans le système sous-" -"jacent. Par exemple, ``errno.errorcode[errno.EPERM]`` correspond à ``'EPERM'``." +"Dictionnaire associant la valeur *errno* au nom de chaîne dans le système " +"sous-jacent. Par exemple, ``errno.errorcode[errno.EPERM]`` correspond à " +"``'EPERM'``." #: ../Doc/library/errno.rst:21 msgid "" -"To translate a numeric error code to an error message, use :func:`os.strerror`." +"To translate a numeric error code to an error message, use :func:`os." +"strerror`." msgstr "" "Pour traduire un code d'erreur en message d'erreur, utilisez :func:`os." "strerror`." @@ -50,13 +52,13 @@ msgstr "" #: ../Doc/library/errno.rst:23 msgid "" "Of the following list, symbols that are not used on the current platform are " -"not defined by the module. The specific list of defined symbols is available " -"as ``errno.errorcode.keys()``. Symbols available can include:" +"not defined by the module. The specific list of defined symbols is " +"available as ``errno.errorcode.keys()``. Symbols available can include:" msgstr "" -"De la liste suivante, les symboles qui ne sont pas utilisés dans la plateforme " -"actuelle ne sont pas définis par le module. La liste spécifique des symboles " -"définis est disponible comme ``errno.errorcode.keys()``. Les symboles " -"disponibles font partie de cette liste :" +"De la liste suivante, les symboles qui ne sont pas utilisés dans la " +"plateforme actuelle ne sont pas définis par le module. La liste spécifique " +"des symboles définis est disponible comme ``errno.errorcode.keys()``. Les " +"symboles disponibles font partie de cette liste :" #: ../Doc/library/errno.rst:30 msgid "Operation not permitted" diff --git a/library/spwd.po b/library/spwd.po index 1a5ee7286..747dd6d63 100644 --- a/library/spwd.po +++ b/library/spwd.po @@ -32,9 +32,9 @@ msgid "" "You must have enough privileges to access the shadow password database (this " "usually means you have to be root)." msgstr "" -"Vous devez disposer des droits suffisants pour accéder à la base de " -"données de mots de passe *shadow* (cela signifie généralement que vous devez " -"être *root*)." +"Vous devez disposer des droits suffisants pour accéder à la base de données " +"de mots de passe *shadow* (cela signifie généralement que vous devez être " +"*root*)." #: ../Doc/library/spwd.rst:16 msgid "" @@ -178,9 +178,9 @@ msgid "" "The sp_namp and sp_pwdp items are strings, all others are integers. :exc:" "`KeyError` is raised if the entry asked for cannot be found." msgstr "" -"Les champs ``sp_namp`` et ``sp_pwdp`` sont des chaines de caractères, tous les " -"autres sont des entiers. :exc:`KeyError` est levée si l’entrée demandée est " -"introuvable." +"Les champs ``sp_namp`` et ``sp_pwdp`` sont des chaines de caractères, tous " +"les autres sont des entiers. :exc:`KeyError` est levée si l’entrée demandée " +"est introuvable." #: ../Doc/library/spwd.rst:51 msgid "The following functions are defined:" @@ -205,8 +205,8 @@ msgid "" "Return a list of all available shadow password database entries, in " "arbitrary order." msgstr "" -"Renvoie une liste de toutes les entrées de la base de données de mots de passe " -"*shadow*, dans un ordre arbitraire." +"Renvoie une liste de toutes les entrées de la base de données de mots de " +"passe *shadow*, dans un ordre arbitraire." #: ../Doc/library/spwd.rst:71 msgid "Module :mod:`grp`" diff --git a/library/turtle.po b/library/turtle.po index 49ac6dc07..5887d3200 100644 --- a/library/turtle.po +++ b/library/turtle.po @@ -29,12 +29,12 @@ msgstr "Introduction" #: ../Doc/library/turtle.rst:22 msgid "" -"Turtle graphics is a popular way for introducing programming to kids. It was " -"part of the original Logo programming language developed by Wally Feurzig and " -"Seymour Papert in 1966." +"Turtle graphics is a popular way for introducing programming to kids. It " +"was part of the original Logo programming language developed by Wally " +"Feurzig and Seymour Papert in 1966." msgstr "" -"Une façon populaire pour initier les enfants au monde du développement est le " -"module Tortue graphique. Ce dernier faisait partie du langage de " +"Une façon populaire pour initier les enfants au monde du développement est " +"le module Tortue graphique. Ce dernier faisait partie du langage de " "programmation Logo créé par Wally Feurzig et Seymout Papert en 1966." #: ../Doc/library/turtle.rst:26 @@ -45,25 +45,25 @@ msgid "" "moves. Give it the command ``turtle.right(25)``, and it rotates in-place 25 " "degrees clockwise." msgstr "" -"Imaginez un robot sous forme de tortue partant au centre (0, 0) d'un plan cartésien x-" -"y. Après un ``import turtle``, exécutez la commande ``turtle.forward(15)`` et " -"la tortue se déplace (sur l'écran) de 15 pixels en face d'elle, en " -"dessinant une ligne." +"Imaginez un robot sous forme de tortue partant au centre (0, 0) d'un plan " +"cartésien x-y. Après un ``import turtle``, exécutez la commande ``turtle." +"forward(15)`` et la tortue se déplace (sur l'écran) de 15 pixels en face " +"d'elle, en dessinant une ligne." #: ../Doc/library/turtle.rst:33 msgid "" "Turtle can draw intricate shapes using programs that repeat simple moves." msgstr "" -"La tortue permet de dessiner des formes complexes en utilisant un " -"programme qui répète des actions élémentaires." +"La tortue permet de dessiner des formes complexes en utilisant un programme " +"qui répète des actions élémentaires." #: ../Doc/library/turtle.rst:41 msgid "" "By combining together these and similar commands, intricate shapes and " "pictures can easily be drawn." msgstr "" -"On peut donc facilement construire des formes et images à partir de commandes " -"simples." +"On peut donc facilement construire des formes et images à partir de " +"commandes simples." #: ../Doc/library/turtle.rst:44 msgid "" @@ -80,26 +80,29 @@ msgid "" "programmer to use all the commands, classes and methods interactively when " "using the module from within IDLE run with the ``-n`` switch." msgstr "" -"Cette bibliothèque essaye de garder les avantages de l'ancien module et d'être " -"(presque) 100% compatible avec celui-ci. Cela permet à l'apprenti développeur " -"d'utiliser toutes les commandes, classes et méthodes de façon interactive " -"pendant qu'il utilise le module depuis IDLE lancé avec l'option ``-n``." +"Cette bibliothèque essaye de garder les avantages de l'ancien module et " +"d'être (presque) 100% compatible avec celui-ci. Cela permet à l'apprenti " +"développeur d'utiliser toutes les commandes, classes et méthodes de façon " +"interactive pendant qu'il utilise le module depuis IDLE lancé avec l'option " +"``-n``." #: ../Doc/library/turtle.rst:52 msgid "" "The turtle module provides turtle graphics primitives, in both object-" -"oriented and procedure-oriented ways. Because it uses :mod:`tkinter` for the " -"underlying graphics, it needs a version of Python installed with Tk support." +"oriented and procedure-oriented ways. Because it uses :mod:`tkinter` for " +"the underlying graphics, it needs a version of Python installed with Tk " +"support." msgstr "" -"*Turtle* permet d'utiliser des primitives graphiques en utilisant un style de " -"programmation orienté objet ou procédural. Du fait qu'il utilise la bibliothèque " -"graphique :mod:`tkinter`, *Turtle* a besoin d'une version de python " -"implémentant *Tk*." +"*Turtle* permet d'utiliser des primitives graphiques en utilisant un style " +"de programmation orienté objet ou procédural. Du fait qu'il utilise la " +"bibliothèque graphique :mod:`tkinter`, *Turtle* a besoin d'une version de " +"python implémentant *Tk*." # two+two ?? #: ../Doc/library/turtle.rst:56 msgid "The object-oriented interface uses essentially two+two classes:" -msgstr "L'interface orientée objet utilise essentiellement deux + deux classes :" +msgstr "" +"L'interface orientée objet utilise essentiellement deux + deux classes :" #: ../Doc/library/turtle.rst:58 msgid "" @@ -110,9 +113,9 @@ msgid "" msgstr "" "La classe :class:`TurtleScreen` définit une fenêtre graphique utilisé comme " "un terrain de jeu pour les dessins de la tortue. Le constructeur de cette " -"classe a besoin d'un :class:`tkinter.Canvas` ou :class:`ScrolledCanvas` comme " -"argument. Cette classe doit être utilisée seulement si :mod:`turtle` fait " -"partie intégrante d'une autre application." +"classe a besoin d'un :class:`tkinter.Canvas` ou :class:`ScrolledCanvas` " +"comme argument. Cette classe doit être utilisée seulement si :mod:`turtle` " +"fait partie intégrante d'une autre application." #: ../Doc/library/turtle.rst:63 msgid "" @@ -123,8 +126,8 @@ msgid "" msgstr "" "La fonction :func:`Screen` renvoie un singleton d'une sous-classe de :class:" "`TurtleScreen`. Elle doit être utilisée quand le module :mod:`turtle` est " -"utilisé de façon autonome pour dessiner. Le singleton renvoyé ne peut hériter " -"de sa classe." +"utilisé de façon autonome pour dessiner. Le singleton renvoyé ne peut " +"hériter de sa classe." #: ../Doc/library/turtle.rst:68 msgid "" @@ -132,14 +135,15 @@ msgid "" "the procedure-oriented interface." msgstr "" "Toutes les méthodes de *TurtleScreen*/*Screen* existent également sous la " -"forme de fonctions, c'est-à-dire que ces dernières peuvent être utilisées dans " -"un style procédural." +"forme de fonctions, c'est-à-dire que ces dernières peuvent être utilisées " +"dans un style procédural." #: ../Doc/library/turtle.rst:71 msgid "" -":class:`RawTurtle` (alias: :class:`RawPen`) defines Turtle objects which draw " -"on a :class:`TurtleScreen`. Its constructor needs a Canvas, ScrolledCanvas " -"or TurtleScreen as argument, so the RawTurtle objects know where to draw." +":class:`RawTurtle` (alias: :class:`RawPen`) defines Turtle objects which " +"draw on a :class:`TurtleScreen`. Its constructor needs a Canvas, " +"ScrolledCanvas or TurtleScreen as argument, so the RawTurtle objects know " +"where to draw." msgstr "" "La classe :class:`RawTurtle` (alias :class:`RawPen`) définit des objets " "*Turtle* qui peuvent dessiner sur la classe :class:`TurtleScreen`. Son " @@ -148,13 +152,13 @@ msgstr "" #: ../Doc/library/turtle.rst:75 msgid "" -"Derived from RawTurtle is the subclass :class:`Turtle` (alias: :class:`Pen`), " -"which draws on \"the\" :class:`Screen` instance which is automatically " -"created, if not already present." +"Derived from RawTurtle is the subclass :class:`Turtle` (alias: :class:" +"`Pen`), which draws on \"the\" :class:`Screen` instance which is " +"automatically created, if not already present." msgstr "" -"La sous-classe :class:`Turtle` (alias: :class:`Pen`), dérivée de *RawTurtle*, " -"dessine sur l'instance :class:`Screen` qui est créée automatiquement si elle " -"n'est pas déjà présente." +"La sous-classe :class:`Turtle` (alias: :class:`Pen`), dérivée de " +"*RawTurtle*, dessine sur l'instance :class:`Screen` qui est créée " +"automatiquement si elle n'est pas déjà présente." #: ../Doc/library/turtle.rst:79 msgid "" @@ -174,10 +178,10 @@ msgid "" "(unnamed) turtle object is automatically created whenever any of the " "functions derived from a Turtle method is called." msgstr "" -"L'interface procédurale met à disposition des fonctions équivalentes à celles " -"des méthodes des classes :class:`Screen` et :class:`Turtle`. Le nom d'une " -"fonction est le même que la méthode équivalente. Un objet *Screen* est créé " -"automatiquement dès qu'une fonction dérivée d'une méthode *Screen* est " +"L'interface procédurale met à disposition des fonctions équivalentes à " +"celles des méthodes des classes :class:`Screen` et :class:`Turtle`. Le nom " +"d'une fonction est le même que la méthode équivalente. Un objet *Screen* est " +"créé automatiquement dès qu'une fonction dérivée d'une méthode *Screen* est " "appelée. Un objet *Turtle* (sans nom) est créé automatiquement dès qu'une " "fonction dérivée d'une méthode *Turtle* est appelée." @@ -698,8 +702,8 @@ msgstr "" #: ../Doc/library/turtle.rst:315 msgid "" -"Turn turtle left by *angle* units. (Units are by default degrees, but can be " -"set via the :func:`degrees` and :func:`radians` functions.) Angle " +"Turn turtle left by *angle* units. (Units are by default degrees, but can " +"be set via the :func:`degrees` and :func:`radians` functions.) Angle " "orientation depends on the turtle mode, see :func:`mode`." msgstr "" @@ -797,11 +801,11 @@ msgstr "" msgid "" "Draw a circle with given *radius*. The center is *radius* units left of the " "turtle; *extent* -- an angle -- determines which part of the circle is " -"drawn. If *extent* is not given, draw the entire circle. If *extent* is not " -"a full circle, one endpoint of the arc is the current pen position. Draw the " -"arc in counterclockwise direction if *radius* is positive, otherwise in " -"clockwise direction. Finally the direction of the turtle is changed by the " -"amount of *extent*." +"drawn. If *extent* is not given, draw the entire circle. If *extent* is " +"not a full circle, one endpoint of the arc is the current pen position. " +"Draw the arc in counterclockwise direction if *radius* is positive, " +"otherwise in clockwise direction. Finally the direction of the turtle is " +"changed by the amount of *extent*." msgstr "" #: ../Doc/library/turtle.rst:470 @@ -865,8 +869,8 @@ msgstr "" #: ../Doc/library/turtle.rst:594 msgid "" -"If input is a number greater than 10 or smaller than 0.5, speed is set to 0. " -"Speedstrings are mapped to speedvalues as follows:" +"If input is a number greater than 10 or smaller than 0.5, speed is set to " +"0. Speedstrings are mapped to speedvalues as follows:" msgstr "" #: ../Doc/library/turtle.rst:597 @@ -891,8 +895,8 @@ msgstr "" #: ../Doc/library/turtle.rst:603 msgid "" -"Speeds from 1 to 10 enforce increasingly faster animation of line drawing and " -"turtle turning." +"Speeds from 1 to 10 enforce increasingly faster animation of line drawing " +"and turtle turning." msgstr "" #: ../Doc/library/turtle.rst:606 @@ -902,7 +906,8 @@ msgid "" msgstr "" #: ../Doc/library/turtle.rst:628 -msgid "Return the turtle's current location (x,y) (as a :class:`Vec2D` vector)." +msgid "" +"Return the turtle's current location (x,y) (as a :class:`Vec2D` vector)." msgstr "" #: ../Doc/library/turtle.rst:638 ../Doc/library/turtle.rst:697 @@ -916,8 +921,9 @@ msgstr "" #: ../Doc/library/turtle.rst:641 msgid "" "Return the angle between the line from turtle position to position specified " -"by (x,y), the vector or the other turtle. This depends on the turtle's start " -"orientation which depends on the mode - \"standard\"/\"world\" or \"logo\")." +"by (x,y), the vector or the other turtle. This depends on the turtle's " +"start orientation which depends on the mode - \"standard\"/\"world\" or " +"\"logo\")." msgstr "" #: ../Doc/library/turtle.rst:654 @@ -985,8 +991,8 @@ msgstr "" #: ../Doc/library/turtle.rst:805 msgid "" -"Return or set the pen's attributes in a \"pen-dictionary\" with the following " -"key/value pairs:" +"Return or set the pen's attributes in a \"pen-dictionary\" with the " +"following key/value pairs:" msgstr "" #: ../Doc/library/turtle.rst:808 @@ -1065,8 +1071,8 @@ msgstr "``pencolor(colorstring)``" #: ../Doc/library/turtle.rst:871 msgid "" -"Set pencolor to *colorstring*, which is a Tk color specification string, such " -"as ``\"red\"``, ``\"yellow\"``, or ``\"#33cc8c\"``." +"Set pencolor to *colorstring*, which is a Tk color specification string, " +"such as ``\"red\"``, ``\"yellow\"``, or ``\"#33cc8c\"``." msgstr "" #: ../Doc/library/turtle.rst:877 @@ -1075,9 +1081,9 @@ msgstr "``pencolor((r, g, b))``" #: ../Doc/library/turtle.rst:875 msgid "" -"Set pencolor to the RGB color represented by the tuple of *r*, *g*, and *b*. " -"Each of *r*, *g*, and *b* must be in the range 0..colormode, where colormode " -"is either 1.0 or 255 (see :func:`colormode`)." +"Set pencolor to the RGB color represented by the tuple of *r*, *g*, and " +"*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where " +"colormode is either 1.0 or 255 (see :func:`colormode`)." msgstr "" #: ../Doc/library/turtle.rst:884 @@ -1086,8 +1092,8 @@ msgstr "``pencolor(r, g, b)``" #: ../Doc/library/turtle.rst:880 msgid "" -"Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of *r*, " -"*g*, and *b* must be in the range 0..colormode." +"Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of " +"*r*, *g*, and *b* must be in the range 0..colormode." msgstr "" #: ../Doc/library/turtle.rst:883 @@ -1106,8 +1112,8 @@ msgstr "``fillcolor()``" #: ../Doc/library/turtle.rst:914 msgid "" -"Return the current fillcolor as color specification string, possibly in tuple " -"format (see example). May be used as input to another color/pencolor/" +"Return the current fillcolor as color specification string, possibly in " +"tuple format (see example). May be used as input to another color/pencolor/" "fillcolor call." msgstr "" @@ -1174,12 +1180,13 @@ msgstr "" #: ../Doc/library/turtle.rst:962 msgid "" -"Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the given " -"value." +"Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the " +"given value." msgstr "" #: ../Doc/library/turtle.rst:970 -msgid "``color(colorstring1, colorstring2)``, ``color((r1,g1,b1), (r2,g2,b2))``" +msgid "" +"``color(colorstring1, colorstring2)``, ``color((r1,g1,b1), (r2,g2,b2))``" msgstr "" #: ../Doc/library/turtle.rst:966 @@ -1218,8 +1225,9 @@ msgstr "" #: ../Doc/library/turtle.rst:1049 msgid "" -"Delete the turtle's drawings from the screen. Do not move turtle. State and " -"position of the turtle as well as drawings of other turtles are not affected." +"Delete the turtle's drawings from the screen. Do not move turtle. State " +"and position of the turtle as well as drawings of other turtles are not " +"affected." msgstr "" #: ../Doc/library/turtle.rst:1055 @@ -1249,8 +1257,8 @@ msgstr "" #: ../Doc/library/turtle.rst:1078 msgid "" "Make the turtle invisible. It's a good idea to do this while you're in the " -"middle of doing some complex drawing, because hiding the turtle speeds up the " -"drawing observably." +"middle of doing some complex drawing, because hiding the turtle speeds up " +"the drawing observably." msgstr "" #: ../Doc/library/turtle.rst:1090 @@ -1328,11 +1336,11 @@ msgstr "" #: ../Doc/library/turtle.rst:1187 msgid "" -"Set or return the current shearfactor. Shear the turtleshape according to the " -"given shearfactor shear, which is the tangent of the shear angle. Do *not* " -"change the turtle's heading (direction of movement). If shear is not given: " -"return the current shearfactor, i. e. the tangent of the shear angle, by " -"which lines parallel to the heading of the turtle are sheared." +"Set or return the current shearfactor. Shear the turtleshape according to " +"the given shearfactor shear, which is the tangent of the shear angle. Do " +"*not* change the turtle's heading (direction of movement). If shear is not " +"given: return the current shearfactor, i. e. the tangent of the shear angle, " +"by which lines parallel to the heading of the turtle are sheared." msgstr "" #: ../Doc/library/turtle.rst:1207 @@ -1370,12 +1378,12 @@ msgstr "" #: ../Doc/library/turtle.rst:1273 msgid "" -"If none of the matrix elements are given, return the transformation matrix as " -"a tuple of 4 elements. Otherwise set the given elements and transform the " +"If none of the matrix elements are given, return the transformation matrix " +"as a tuple of 4 elements. Otherwise set the given elements and transform the " "turtleshape according to the matrix consisting of first row t11, t12 and " "second row t21, 22. The determinant t11 * t22 - t12 * t21 must not be zero, " -"otherwise an error is raised. Modify stretchfactor, shearfactor and tiltangle " -"according to the given matrix." +"otherwise an error is raised. Modify stretchfactor, shearfactor and " +"tiltangle according to the given matrix." msgstr "" #: ../Doc/library/turtle.rst:1294 @@ -1430,8 +1438,8 @@ msgstr "" #: ../Doc/library/turtle.rst:1371 msgid "" -"Subsequently, clicking and dragging the Turtle will move it across the screen " -"thereby producing handdrawings (if pen is down)." +"Subsequently, clicking and dragging the Turtle will move it across the " +"screen thereby producing handdrawings (if pen is down)." msgstr "" #: ../Doc/library/turtle.rst:1380 @@ -1490,9 +1498,9 @@ msgstr "" #: ../Doc/library/turtle.rst:1476 msgid "" -"To use compound turtle shapes, which consist of several polygons of different " -"color, you must use the helper class :class:`Shape` explicitly as described " -"below:" +"To use compound turtle shapes, which consist of several polygons of " +"different color, you must use the helper class :class:`Shape` explicitly as " +"described below:" msgstr "" #: ../Doc/library/turtle.rst:1480 @@ -1546,10 +1554,10 @@ msgstr "" #: ../Doc/library/turtle.rst:1545 msgid "" -"Set background image or return name of current backgroundimage. If *picname* " -"is a filename, set the corresponding image as background. If *picname* is ``" -"\"nopic\"``, delete background image, if present. If *picname* is ``None``, " -"return the filename of the current backgroundimage. ::" +"Set background image or return name of current backgroundimage. If " +"*picname* is a filename, set the corresponding image as background. If " +"*picname* is ``\"nopic\"``, delete background image, if present. If " +"*picname* is ``None``, return the filename of the current backgroundimage. ::" msgstr "" #: ../Doc/library/turtle.rst:1560 @@ -1593,9 +1601,9 @@ msgstr "" msgid "" "If no arguments are given, return current (canvaswidth, canvasheight). Else " "resize the canvas the turtles are drawing on. Do not alter the drawing " -"window. To observe hidden parts of the canvas, use the scrollbars. With this " -"method, one can make visible those parts of a drawing which were outside the " -"canvas before." +"window. To observe hidden parts of the canvas, use the scrollbars. With " +"this method, one can make visible those parts of a drawing which were " +"outside the canvas before." msgstr "" #: ../Doc/library/turtle.rst:1599 @@ -1621,13 +1629,14 @@ msgstr "" #: ../Doc/library/turtle.rst:1609 msgid "" "Set up user-defined coordinate system and switch to mode \"world\" if " -"necessary. This performs a ``screen.reset()``. If mode \"world\" is already " -"active, all drawings are redrawn according to the new coordinates." +"necessary. This performs a ``screen.reset()``. If mode \"world\" is " +"already active, all drawings are redrawn according to the new coordinates." msgstr "" #: ../Doc/library/turtle.rst:1613 msgid "" -"**ATTENTION**: in user-defined coordinate systems angles may appear distorted." +"**ATTENTION**: in user-defined coordinate systems angles may appear " +"distorted." msgstr "" #: ../Doc/library/turtle.rst:1639 @@ -1669,7 +1678,8 @@ msgstr "" #: ../Doc/library/turtle.rst:1690 msgid "" "Set focus on TurtleScreen (in order to collect key-events). Dummy arguments " -"are provided in order to be able to pass :func:`listen` to the onclick method." +"are provided in order to be able to pass :func:`listen` to the onclick " +"method." msgstr "" #: ../Doc/library/turtle.rst:1697 ../Doc/library/turtle.rst:1716 @@ -1682,16 +1692,16 @@ msgstr "" #: ../Doc/library/turtle.rst:1700 msgid "" -"Bind *fun* to key-release event of key. If *fun* is ``None``, event bindings " -"are removed. Remark: in order to be able to register key-events, TurtleScreen " -"must have the focus. (See method :func:`listen`.)" +"Bind *fun* to key-release event of key. If *fun* is ``None``, event " +"bindings are removed. Remark: in order to be able to register key-events, " +"TurtleScreen must have the focus. (See method :func:`listen`.)" msgstr "" #: ../Doc/library/turtle.rst:1719 msgid "" "Bind *fun* to key-press event of key if key is given, or to any key-press-" -"event if no key is given. Remark: in order to be able to register key-events, " -"TurtleScreen must have focus. (See method :func:`listen`.)" +"event if no key is given. Remark: in order to be able to register key-" +"events, TurtleScreen must have focus. (See method :func:`listen`.)" msgstr "" #: ../Doc/library/turtle.rst:1742 @@ -1728,9 +1738,9 @@ msgstr "" #: ../Doc/library/turtle.rst:1782 msgid "" "Starts event loop - calling Tkinter's mainloop function. Must be the last " -"statement in a turtle graphics program. Must *not* be used if a script is run " -"from within IDLE in -n mode (No subprocess) - for interactive use of turtle " -"graphics. ::" +"statement in a turtle graphics program. Must *not* be used if a script is " +"run from within IDLE in -n mode (No subprocess) - for interactive use of " +"turtle graphics. ::" msgstr "" #: ../Doc/library/turtle.rst:1795 ../Doc/library/turtle.rst:1796 @@ -1740,9 +1750,10 @@ msgstr "*string*" #: ../Doc/library/turtle.rst:1798 msgid "" -"Pop up a dialog window for input of a string. Parameter title is the title of " -"the dialog window, prompt is a text mostly describing what information to " -"input. Return the string input. If the dialog is canceled, return ``None``. ::" +"Pop up a dialog window for input of a string. Parameter title is the title " +"of the dialog window, prompt is a text mostly describing what information to " +"input. Return the string input. If the dialog is canceled, return " +"``None``. ::" msgstr "" #: ../Doc/library/turtle.rst:1814 @@ -1770,8 +1781,8 @@ msgstr "" msgid "" "Mode \"standard\" is compatible with old :mod:`turtle`. Mode \"logo\" is " "compatible with most Logo turtle graphics. Mode \"world\" uses user-defined " -"\"world coordinates\". **Attention**: in this mode angles appear distorted if " -"``x/y`` unit-ratio doesn't equal 1." +"\"world coordinates\". **Attention**: in this mode angles appear distorted " +"if ``x/y`` unit-ratio doesn't equal 1." msgstr "" #: ../Doc/library/turtle.rst:1842 @@ -1822,8 +1833,8 @@ msgstr "" #: ../Doc/library/turtle.rst:1879 msgid "" -"Return the Canvas of this TurtleScreen. Useful for insiders who know what to " -"do with a Tkinter Canvas." +"Return the Canvas of this TurtleScreen. Useful for insiders who know what " +"to do with a Tkinter Canvas." msgstr "" #: ../Doc/library/turtle.rst:1891 @@ -1848,8 +1859,8 @@ msgstr "" #: ../Doc/library/turtle.rst:1913 msgid "" -"*name* is an arbitrary string and *shape* is a tuple of pairs of coordinates: " -"Install the corresponding polygon shape." +"*name* is an arbitrary string and *shape* is a tuple of pairs of " +"coordinates: Install the corresponding polygon shape." msgstr "" #: ../Doc/library/turtle.rst:1920 @@ -1891,10 +1902,10 @@ msgstr "" #: ../Doc/library/turtle.rst:1968 msgid "" "If the value \"using_IDLE\" in the configuration dictionary is ``False`` " -"(default value), also enter mainloop. Remark: If IDLE with the ``-n`` switch " -"(no subprocess) is used, this value should be set to ``True`` in :file:" -"`turtle.cfg`. In this case IDLE's own mainloop is active also for the client " -"script." +"(default value), also enter mainloop. Remark: If IDLE with the ``-n`` " +"switch (no subprocess) is used, this value should be set to ``True`` in :" +"file:`turtle.cfg`. In this case IDLE's own mainloop is active also for the " +"client script." msgstr "" #: ../Doc/library/turtle.rst:1977 @@ -1918,8 +1929,8 @@ msgstr "" #: ../Doc/library/turtle.rst:1985 msgid "" -"if positive, starting position in pixels from the left edge of the screen, if " -"negative from the right edge, if ``None``, center window horizontally" +"if positive, starting position in pixels from the left edge of the screen, " +"if negative from the right edge, if ``None``, center window horizontally" msgstr "" #: ../Doc/library/turtle.rst:1988 @@ -1975,8 +1986,8 @@ msgstr "" #: ../Doc/library/turtle.rst:2046 msgid "" -"some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas with " -"scrollbars added" +"some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas " +"with scrollbars added" msgstr "" #: ../Doc/library/turtle.rst:2049 @@ -2128,8 +2139,8 @@ msgstr "" #: ../Doc/library/turtle.rst:2188 msgid "" "There is a utility to create a dictionary the keys of which are the method " -"names and the values of which are the docstrings of the public methods of the " -"classes Screen and Turtle." +"names and the values of which are the docstrings of the public methods of " +"the classes Screen and Turtle." msgstr "" #: ../Doc/library/turtle.rst:2194 @@ -2161,8 +2172,8 @@ msgstr "" #: ../Doc/library/turtle.rst:2209 msgid "" -"At the time of this writing there are docstring dictionaries in German and in " -"Italian. (Requests please to glingl@aon.at.)" +"At the time of this writing there are docstring dictionaries in German and " +"in Italian. (Requests please to glingl@aon.at.)" msgstr "" #: ../Doc/library/turtle.rst:2215 @@ -2171,16 +2182,17 @@ msgstr "" #: ../Doc/library/turtle.rst:2217 msgid "" -"The built-in default configuration mimics the appearance and behaviour of the " -"old turtle module in order to retain best possible compatibility with it." +"The built-in default configuration mimics the appearance and behaviour of " +"the old turtle module in order to retain best possible compatibility with it." msgstr "" #: ../Doc/library/turtle.rst:2220 msgid "" "If you want to use a different configuration which better reflects the " -"features of this module or which better fits to your needs, e.g. for use in a " -"classroom, you can prepare a configuration file ``turtle.cfg`` which will be " -"read at import time and modify the configuration according to its settings." +"features of this module or which better fits to your needs, e.g. for use in " +"a classroom, you can prepare a configuration file ``turtle.cfg`` which will " +"be read at import time and modify the configuration according to its " +"settings." msgstr "" #: ../Doc/library/turtle.rst:2225 @@ -2206,8 +2218,8 @@ msgstr "" #: ../Doc/library/turtle.rst:2254 msgid "" -"*shape* can be any of the built-in shapes, e.g: arrow, turtle, etc. For more " -"info try ``help(shape)``." +"*shape* can be any of the built-in shapes, e.g: arrow, turtle, etc. For " +"more info try ``help(shape)``." msgstr "" #: ../Doc/library/turtle.rst:2256 @@ -2234,27 +2246,28 @@ msgstr "" msgid "" "The entries *exampleturtle* and *examplescreen* define the names of these " "objects as they occur in the docstrings. The transformation of method-" -"docstrings to function-docstrings will delete these names from the docstrings." +"docstrings to function-docstrings will delete these names from the " +"docstrings." msgstr "" #: ../Doc/library/turtle.rst:2268 msgid "" -"*using_IDLE*: Set this to ``True`` if you regularly work with IDLE and its -n " -"switch (\"no subprocess\"). This will prevent :func:`exitonclick` to enter " -"the mainloop." +"*using_IDLE*: Set this to ``True`` if you regularly work with IDLE and its -" +"n switch (\"no subprocess\"). This will prevent :func:`exitonclick` to " +"enter the mainloop." msgstr "" #: ../Doc/library/turtle.rst:2272 msgid "" "There can be a :file:`turtle.cfg` file in the directory where :mod:`turtle` " -"is stored and an additional one in the current working directory. The latter " -"will override the settings of the first one." +"is stored and an additional one in the current working directory. The " +"latter will override the settings of the first one." msgstr "" #: ../Doc/library/turtle.rst:2276 msgid "" -"The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. You " -"can study it as an example and see its effects when running the demos " +"The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. " +"You can study it as an example and see its effects when running the demos " "(preferably not from within the demo-viewer)." msgstr "" @@ -2279,8 +2292,8 @@ msgstr "" #: ../Doc/library/turtle.rst:2298 msgid "" -"A demo viewer :file:`__main__.py` which can be used to view the sourcecode of " -"the scripts and run them at the same time." +"A demo viewer :file:`__main__.py` which can be used to view the sourcecode " +"of the scripts and run them at the same time." msgstr "" #: ../Doc/library/turtle.rst:2300 @@ -2536,8 +2549,8 @@ msgid "" "The methods :meth:`Turtle.tracer`, :meth:`Turtle.window_width` and :meth:" "`Turtle.window_height` have been eliminated. Methods with these names and " "functionality are now available only as methods of :class:`Screen`. The " -"functions derived from these remain available. (In fact already in Python 2.6 " -"these methods were merely duplications of the corresponding :class:" +"functions derived from these remain available. (In fact already in Python " +"2.6 these methods were merely duplications of the corresponding :class:" "`TurtleScreen`/:class:`Screen`-methods.)" msgstr "" @@ -2577,9 +2590,9 @@ msgstr "" #: ../Doc/library/turtle.rst:2411 msgid "" -"The method :meth:`Screen.mainloop` has been added. So when working only with " -"Screen and Turtle objects one must not additionally import :func:`mainloop` " -"anymore." +"The method :meth:`Screen.mainloop` has been added. So when working only " +"with Screen and Turtle objects one must not additionally import :func:" +"`mainloop` anymore." msgstr "" #: ../Doc/library/turtle.rst:2415 diff --git a/library/unittest.po b/library/unittest.po index a93a10a37..a1ee67067 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -524,9 +524,10 @@ msgid "Pattern to match test files (``test*.py`` default)" msgstr "Motif de détection des fichiers de test (``test*.py`` par défaut)" #: ../Doc/library/unittest.rst:299 -msgid "Top level directory of project (defaults to start directory)" -"Répertoire de premier niveau du projet (répertoire racine, c'est-à-dire " -"*start-directory*, par défaut)" +msgid "" +"Top level directory of project (defaults to start directory)Répertoire de " +"premier niveau du projet (répertoire racine, c'est-à-dire *start-directory*, " +"par défaut)" msgstr "" "Répertoire de premier niveau du projet (répertoire racine, c'est-à-dire " "*start-directory*, par défaut)" From 655e473206f12059492d20a4b2120064ac68023f Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 25 Feb 2019 23:30:56 +0100 Subject: [PATCH 031/121] Started translating using/windows.po Co-Authored-By: Jules Lasne (jlasne - seluj78) --- using/windows.po | 1832 +++++++++++++++++++++++++++++++--------------- 1 file changed, 1223 insertions(+), 609 deletions(-) diff --git a/using/windows.po b/using/windows.po index 81b1261c2..9b14e3ccb 100644 --- a/using/windows.po +++ b/using/windows.po @@ -5,112 +5,155 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-17 21:38+0100\n" -"PO-Revision-Date: 2018-06-10 15:28+0200\n" -"Last-Translator: FULL NAME \n" +"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"PO-Revision-Date: 2019-01-11 08:24+0100\n" "Language-Team: FRENCH \n" -"Language: fr\n" +"Language: fr_FR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Jules Lasne \n" +"X-Generator: Poedit 2.2\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" #: ../Doc/using/windows.rst:7 msgid "Using Python on Windows" -msgstr "Utiliser Python sur Windows" +msgstr "Utilisation de Python sur Windows" #: ../Doc/using/windows.rst:12 msgid "" -"This document aims to give an overview of Windows-specific behaviour you " -"should know about when using Python on Microsoft Windows." +"This document aims to give an overview of Windows-specific behaviour you should " +"know about when using Python on Microsoft Windows." msgstr "" +"Ce document a pour but de donner une vue d'ensemble des comportements " +"spécifiques à Windows dont vous devriez être au courant si vous utilisez Python " +"sur Microsoft Windows." #: ../Doc/using/windows.rst:15 msgid "" "Unlike most Unix systems and services, Windows does not include a system " -"supported installation of Python. To make Python available, the CPython team " -"has compiled Windows installers (MSI packages) with every `release `_ for many years. These installers are " -"primarily intended to add a per-user installation of Python, with the core " -"interpreter and library being used by a single user. The installer is also " -"able to install for all users of a single machine, and a separate ZIP file " -"is available for application-local distributions." -msgstr "" +"supported installation of Python. To make Python available, the CPython team has " +"compiled Windows installers (MSI packages) with every `release `_ for many years. These installers are primarily " +"intended to add a per-user installation of Python, with the core interpreter and " +"library being used by a single user. The installer is also able to install for " +"all users of a single machine, and a separate ZIP file is available for " +"application-local distributions." +msgstr "" +"Contrairement à la plupart des systèmes Unix, Windows n'inclut pas " +"d'installation de Python par défaut. Pour rendre Python disponible, l’équipe " +"CPython a compilé des installateurs (paquets MSI) pour chaque `release `_ depuis plusieurs années. Ces installateurs " +"sont principalement destinés à une installation par utilisateur de Python, avec " +"l’interpréteur et la bibliothèque standard utilisés par un seul utilisateur. Cet " +"installateur peut aussi installer Python pour tous les utilisateurs sur une " +"seule machine et un fichier ZIP séparé est disponible avec d'autres applications." #: ../Doc/using/windows.rst:24 msgid "" "As specified in :pep:`11`, a Python release only supports a Windows platform " -"while Microsoft considers the platform under extended support. This means " -"that Python |version| supports Windows Vista and newer. If you require " -"Windows XP support then please install Python 3.4." +"while Microsoft considers the platform under extended support. This means that " +"Python |version| supports Windows Vista and newer. If you require Windows XP " +"support then please install Python 3.4." msgstr "" +"Comme spécifié dans la :pep:`11`, une *release* Python ne gère qu'une plateforme " +"Windows alors que Microsoft considère la plateforme sous support étendu. Ce qui " +"veut dire que Python |version| supporte Windows Vista et plus. Si vous avez " +"besoin de compatibilité Windows XP, vous devez utiliser Python 3.4." #: ../Doc/using/windows.rst:29 msgid "" "There are a number of different installers available for Windows, each with " "certain benefits and downsides." msgstr "" +"Il existe un certain nombre d'installateurs différents disponibles pour Windows, " +"chacun avec certains avantages et inconvénients." #: ../Doc/using/windows.rst:32 msgid "" ":ref:`windows-full` contains all components and is the best option for " "developers using Python for any kind of project." msgstr "" +":ref:`windows-full` contient tous les composants et est la meilleure option pour " +"les développeurs utilisant Python pour tout type de projet." #: ../Doc/using/windows.rst:35 msgid "" ":ref:`windows-store` is a simple installation of Python that is suitable for " -"running scripts and packages, and using IDLE or other development " -"environments. It requires Windows 10, but can be safely installed without " -"corrupting other programs. It also provides many convenient commands for " -"launching Python and its tools." +"running scripts and packages, and using IDLE or other development environments. " +"It requires Windows 10, but can be safely installed without corrupting other " +"programs. It also provides many convenient commands for launching Python and its " +"tools." msgstr "" +":ref:`windows-store` est une simple installation de Python qui convient à " +"l'exécution de scripts, de paquets et l’utilisation d’IDLE ou d'autres " +"environnements de développement. Il nécessite Windows 10, mais peut être " +"installé en toute sécurité sans endommager d'autres programmes. Il fournit " +"également de nombreuses commandes pratiques pour lancer Python et ses outils." #: ../Doc/using/windows.rst:41 msgid "" ":ref:`windows-nuget` are lightweight installations intended for continuous " -"integration systems. It can be used to build Python packages or run scripts, " -"but is not updateable and has no user interface tools." +"integration systems. It can be used to build Python packages or run scripts, but " +"is not updateable and has no user interface tools." msgstr "" +":ref:`windows-nuget` sont des installations légères destinées aux systèmes " +"d'intégration continue. Il peut être utilisé pour créer des packages Python ou " +"exécuter des scripts, mais n'est pas modifiable et n'a pas d'outils d'interface " +"utilisateur." #: ../Doc/using/windows.rst:45 msgid "" -":ref:`windows-embeddable` is a minimal package of Python suitable for " -"embedding into a larger application." +":ref:`windows-embeddable` is a minimal package of Python suitable for embedding " +"into a larger application." msgstr "" +":ref:`windows-embeddable` est un paquet minimal de Python approprié pour " +"l'incorporation dans une plus grande application." #: ../Doc/using/windows.rst:52 msgid "The full installer" -msgstr "" +msgstr "L'installateur complet" #: ../Doc/using/windows.rst:55 -#, fuzzy msgid "Installation steps" msgstr "Étapes d'installation" #: ../Doc/using/windows.rst:57 msgid "" -"Four Python |version| installers are available for download - two each for " -"the 32-bit and 64-bit versions of the interpreter. The *web installer* is a " -"small initial download, and it will automatically download the required " -"components as necessary. The *offline installer* includes the components " -"necessary for a default installation and only requires an internet " -"connection for optional features. See :ref:`install-layout-option` for other " -"ways to avoid downloading during installation." -msgstr "" +"Four Python |version| installers are available for download - two each for the " +"32-bit and 64-bit versions of the interpreter. The *web installer* is a small " +"initial download, and it will automatically download the required components as " +"necessary. The *offline installer* includes the components necessary for a " +"default installation and only requires an internet connection for optional " +"features. See :ref:`install-layout-option` for other ways to avoid downloading " +"during installation." +msgstr "" +"Quatre installateurs Python |version| sont disponibles au téléchargement -- deux " +"de chaque pour les versions 32-bit et 64-bit de l'interpréteur. L'**installateur " +"web** est léger, et téléchargera automatiquement les composants nécessaires. " +"L'**installateur hors-ligne** inclut les composants nécessaires pour une " +"installation par défaut et n'a besoin d'une connexion internet que pour des " +"fonctionnalités optionnelles. Voir :ref:`install-layout-option` pour d'autres " +"moyens d’éviter des téléchargements durant l'installation." #: ../Doc/using/windows.rst:65 msgid "After starting the installer, one of two options may be selected:" msgstr "" +"Après avoir lancé l'installateur, deux options peuvent être sélectionnées :" #: ../Doc/using/windows.rst:69 msgid "If you select \"Install Now\":" -msgstr "" +msgstr "Si vous sélectionnez \"Installer Maintenant\" (``Install Now``):" #: ../Doc/using/windows.rst:71 msgid "" "You will *not* need to be an administrator (unless a system update for the C " "Runtime Library is required or you install the :ref:`launcher` for all users)" msgstr "" +"Vous n'aurez *pas* besoin d'avoir les droits d'administrateur (sauf si une mise " +"à jour de la bibliothèque d'exécution C est nécessaire ou si vous installez le :" +"ref:`launcher` pour tous les utilisateurs)" #: ../Doc/using/windows.rst:74 msgid "Python will be installed into your user directory" @@ -118,126 +161,168 @@ msgstr "Python sera installé dans votre répertoire utilisateur" #: ../Doc/using/windows.rst:75 msgid "" -"The :ref:`launcher` will be installed according to the option at the bottom " -"of the first page" +"The :ref:`launcher` will be installed according to the option at the bottom of " +"the first page" msgstr "" +"Le :ref:`launcher` sera installé suivant l'option en bas de la première page" #: ../Doc/using/windows.rst:77 msgid "The standard library, test suite, launcher and pip will be installed" msgstr "" +"La bibliothèque standard, la suite de tests, le lanceur et *pip* seront installés" #: ../Doc/using/windows.rst:78 msgid "If selected, the install directory will be added to your :envvar:`PATH`" msgstr "" +"Si l'option est cochée, le dossier d'installation sera ajouté à votre :envvar:" +"`PATH`" #: ../Doc/using/windows.rst:79 msgid "Shortcuts will only be visible for the current user" -msgstr "" +msgstr "Les raccourcis ne seront visibles que pour l'utilisateur actuel" #: ../Doc/using/windows.rst:81 msgid "" -"Selecting \"Customize installation\" will allow you to select the features " -"to install, the installation location and other options or post-install " -"actions. To install debugging symbols or binaries, you will need to use this " -"option." +"Selecting \"Customize installation\" will allow you to select the features to " +"install, the installation location and other options or post-install actions. To " +"install debugging symbols or binaries, you will need to use this option." msgstr "" +"Sélectionner \"Personnaliser l'installation\" (``Customize installation``) vous " +"permettra de sélectionner les fonctionnalités à installer, le chemin " +"d'installation et d'autres options ou des options post-installation. Pour " +"installer des binaires ou symboles de débogage, vous devrez utiliser cette " +"option." #: ../Doc/using/windows.rst:85 msgid "" -"To perform an all-users installation, you should select \"Customize " -"installation\". In this case:" +"To perform an all-users installation, you should select \"Customize installation" +"\". In this case:" msgstr "" +"Pour effectuer une installation pour tous les utilisateurs, vous devez " +"sélectionner \"Personnaliser l'installation\". Dans ce cas :" #: ../Doc/using/windows.rst:88 msgid "You may be required to provide administrative credentials or approval" msgstr "" +"Vous pouvez avoir à donner une approbation ou des identifiants administrateur" #: ../Doc/using/windows.rst:89 msgid "Python will be installed into the Program Files directory" -msgstr "" +msgstr "Python sera installé dans le dossier *Program Files*" #: ../Doc/using/windows.rst:90 msgid "The :ref:`launcher` will be installed into the Windows directory" -msgstr "" +msgstr "Le :ref:`launcher` sera installé dans le dossier *Windows*" #: ../Doc/using/windows.rst:91 msgid "Optional features may be selected during installation" msgstr "" +"Des fonctionnalités optionnelles peuvent être sélectionnées durant l'installation" #: ../Doc/using/windows.rst:92 msgid "The standard library can be pre-compiled to bytecode" -msgstr "" +msgstr "La bibliothèque standard peut être pré-compilée en *bytecode*" #: ../Doc/using/windows.rst:93 msgid "" "If selected, the install directory will be added to the system :envvar:`PATH`" msgstr "" +"Si sélectionné, le chemin d'installation sera ajouté au :envvar:`PATH` système" #: ../Doc/using/windows.rst:94 msgid "Shortcuts are available for all users" -msgstr "" +msgstr "Les raccourcis sont disponibles pour tous les utilisateurs" #: ../Doc/using/windows.rst:99 msgid "Removing the MAX_PATH Limitation" -msgstr "" +msgstr "Suppression de la limitation `MAX_PATH`" #: ../Doc/using/windows.rst:101 msgid "" -"Windows historically has limited path lengths to 260 characters. This meant " -"that paths longer than this would not resolve and errors would result." +"Windows historically has limited path lengths to 260 characters. This meant that " +"paths longer than this would not resolve and errors would result." msgstr "" +"Historiquement, Windows a limité la taille des chemins à 260 caractères. Cela " +"veut dire que les chemins plus longs que cette limite ne seraient pas résolus, " +"et seraient une cause d'erreurs." #: ../Doc/using/windows.rst:104 msgid "" "In the latest versions of Windows, this limitation can be expanded to " -"approximately 32,000 characters. Your administrator will need to activate " -"the \"Enable Win32 long paths\" group policy, or set the registry value " +"approximately 32,000 characters. Your administrator will need to activate the " +"\"Enable Win32 long paths\" group policy, or set the registry value " "``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control" "\\FileSystem@LongPathsEnabled`` to ``1``." msgstr "" +"Dans les dernières versions de Windows, cette limitation peut être étendue à " +"approximativement 32.000 caractères. Votre administrateur devra activer la " +"stratégie de groupe \"**Enable Win32 long paths**\" ou mettre la valeur du " +"registre ``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control" +"\\FileSystem@LongPathsEnabled`` à ``1``." #: ../Doc/using/windows.rst:110 msgid "" -"This allows the :func:`open` function, the :mod:`os` module and most other " -"path functionality to accept and return paths longer than 260 characters " -"when using strings. (Use of bytes as paths is deprecated on Windows, and " -"this feature is not available when using bytes.)" +"This allows the :func:`open` function, the :mod:`os` module and most other path " +"functionality to accept and return paths longer than 260 characters when using " +"strings. (Use of bytes as paths is deprecated on Windows, and this feature is " +"not available when using bytes.)" msgstr "" +"Ceci permet à la fonction :func:`open`, le module :mod:`os` et la plupart des " +"autres fonctionnalités utilisant des chemins d'accepter et de renvoyer des " +"chemins plus longs que 260 caractères quand vous utilisez des chaînes. " +"(L'utilisation de `bytes` en chemins est obsolète sur Windows, et cette " +"fonctionnalité n'est pas disponible quand vous utilisez des `bytes`.)" #: ../Doc/using/windows.rst:115 msgid "After changing the above option, no further configuration is required." msgstr "" +"Après avoir changé l'option si-dessus, aucune configuration supplémentaire n'est " +"requise." #: ../Doc/using/windows.rst:119 msgid "Support for long paths was enabled in Python." -msgstr "" +msgstr "Gestion des chemins longs." #: ../Doc/using/windows.rst:124 msgid "Installing Without UI" -msgstr "" +msgstr "Installation sans l'interface utilisateur" #: ../Doc/using/windows.rst:126 msgid "" -"All of the options available in the installer UI can also be specified from " -"the command line, allowing scripted installers to replicate an installation " -"on many machines without user interaction. These options may also be set " -"without suppressing the UI in order to change some of the defaults." +"All of the options available in the installer UI can also be specified from the " +"command line, allowing scripted installers to replicate an installation on many " +"machines without user interaction. These options may also be set without " +"suppressing the UI in order to change some of the defaults." msgstr "" +"Toutes les options disponibles dans l'installateur graphique peuvent aussi être " +"spécifiées dans l'invite de commande, permettant à des installateurs scriptés de " +"répliquer une installation sur plusieurs machines sans interaction humaine. Ces " +"options peuvent aussi être ajoutées sans enlever l'interface graphique pour " +"changer les valeurs par défauts." #: ../Doc/using/windows.rst:131 msgid "" "To completely hide the installer UI and install Python silently, pass the ``/" -"quiet`` option. To skip past the user interaction but still display progress " -"and errors, pass the ``/passive`` option. The ``/uninstall`` option may be " -"passed to immediately begin removing Python - no prompt will be displayed." +"quiet`` option. To skip past the user interaction but still display progress and " +"errors, pass the ``/passive`` option. The ``/uninstall`` option may be passed to " +"immediately begin removing Python - no prompt will be displayed." msgstr "" +"Pour complétement cacher l'interface de l'installateur et installer Python " +"silencieusement, passez l'option ``/quiet``. Pour sauter les interactions " +"utilisateur mais afficher la progression et les erreurs, passez l'option ``/" +"passive``. L'option ``/uninstall`` peut être passée pour immédiatement démarrer " +"la suppression de Python -- Aucune confirmation ne sera demandée." #: ../Doc/using/windows.rst:137 msgid "" -"All other options are passed as ``name=value``, where the value is usually " -"``0`` to disable a feature, ``1`` to enable a feature, or a path. The full " -"list of available options is shown below." +"All other options are passed as ``name=value``, where the value is usually ``0`` " +"to disable a feature, ``1`` to enable a feature, or a path. The full list of " +"available options is shown below." msgstr "" +"Toutes les autres options sont passées sous la forme ``name=value``, ou " +"``value`` est usuellement ``0`` pour désactiver une fonctionnalité, ``1`` pour " +"activer une fonctionnalité, ou un chemin. Ci-dessous la liste complète des " +"options." #: ../Doc/using/windows.rst:142 msgid "Name" @@ -249,15 +334,15 @@ msgstr "Description" #: ../Doc/using/windows.rst:142 msgid "Default" -msgstr "" +msgstr "Valeur par défaut" #: ../Doc/using/windows.rst:144 msgid "InstallAllUsers" -msgstr "" +msgstr "InstallAllUsers" #: ../Doc/using/windows.rst:144 msgid "Perform a system-wide installation." -msgstr "" +msgstr "Effectue une installation pour tous les utilisateurs." #: ../Doc/using/windows.rst:144 ../Doc/using/windows.rst:165 #: ../Doc/using/windows.rst:168 ../Doc/using/windows.rst:177 @@ -268,63 +353,71 @@ msgstr "0" #: ../Doc/using/windows.rst:146 msgid "TargetDir" -msgstr "" +msgstr "TargetDir" #: ../Doc/using/windows.rst:146 msgid "The installation directory" -msgstr "" +msgstr "Le dossier d'installation" #: ../Doc/using/windows.rst:146 msgid "Selected based on InstallAllUsers" -msgstr "" +msgstr "Sélection basé sur InstallAllUsers" #: ../Doc/using/windows.rst:149 msgid "DefaultAllUsersTargetDir" -msgstr "" +msgstr "DefaultAllUsersTargetDir" #: ../Doc/using/windows.rst:149 msgid "The default installation directory for all-user installs" msgstr "" +"Le dossier d'installation par défaut pour les installations pour tous les " +"utilisateurs" #: ../Doc/using/windows.rst:149 msgid "" -":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\" -"\\ Python X.Y`" +":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\\\ " +"Python X.Y`" msgstr "" +":file:`%ProgramFiles%\\\\\\ Python X.Y` ou :file:`\\ %ProgramFiles(x86)%\\\\\\ " +"Python X.Y`" #: ../Doc/using/windows.rst:154 msgid "DefaultJustForMeTargetDir" -msgstr "" +msgstr "DefaultJustForMeTargetDir" #: ../Doc/using/windows.rst:154 msgid "The default install directory for just-for-me installs" -msgstr "" +msgstr "Le dossier d'installation par défaut pour des installations juste pour soi" #: ../Doc/using/windows.rst:154 msgid "" -":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` or :file:`%LocalAppData%\\" -"\\\\ Programs\\\\PythonXY-32`" +":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` or :file:`%LocalAppData%\\\\\\ " +"Programs\\\\PythonXY-32`" msgstr "" +":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` ou :file:`%LocalAppData%\\\\\\ " +"Programs\\\\PythonXY-32`" #: ../Doc/using/windows.rst:159 msgid "DefaultCustomTargetDir" -msgstr "" +msgstr "DefaultCustomTargetDir" #: ../Doc/using/windows.rst:159 msgid "The default custom install directory displayed in the UI" msgstr "" +"Le dossier d'installation personnalisé par défaut affiché par l'interface " +"utilisateur" #: ../Doc/using/windows.rst:159 ../Doc/using/windows.rst:208 msgid "(empty)" -msgstr "" +msgstr "(vide)" #: ../Doc/using/windows.rst:162 msgid "AssociateFiles" -msgstr "" +msgstr "AssociateFiles" #: ../Doc/using/windows.rst:162 msgid "Create file associations if the launcher is also installed." -msgstr "" +msgstr "Crée les associations de fichiers si le lanceur est aussi installé." #: ../Doc/using/windows.rst:162 ../Doc/using/windows.rst:172 #: ../Doc/using/windows.rst:175 ../Doc/using/windows.rst:179 @@ -337,156 +430,164 @@ msgstr "1" #: ../Doc/using/windows.rst:165 msgid "CompileAll" -msgstr "" +msgstr "CompileAll" #: ../Doc/using/windows.rst:165 msgid "Compile all ``.py`` files to ``.pyc``." -msgstr "" +msgstr "Compile tous les fichiers ``.py`` en ``.pyc``." #: ../Doc/using/windows.rst:168 msgid "PrependPath" -msgstr "" +msgstr "PrependPath" #: ../Doc/using/windows.rst:168 msgid "" "Add install and Scripts directories to :envvar:`PATH` and ``.PY`` to :envvar:" "`PATHEXT`" msgstr "" +"Ajoute les dossiers ``install`` et ``Scripts`` à :envvar:`PATH` et ``.PY`` à :" +"envvar:`PATHEXT`" #: ../Doc/using/windows.rst:172 msgid "Shortcuts" -msgstr "" +msgstr "Shortcuts" #: ../Doc/using/windows.rst:172 -msgid "" -"Create shortcuts for the interpreter, documentation and IDLE if installed." +msgid "Create shortcuts for the interpreter, documentation and IDLE if installed." msgstr "" +"Crée des raccourcis pour l'interpréteur, la documentation et IDLE si installé." #: ../Doc/using/windows.rst:175 msgid "Include_doc" -msgstr "" +msgstr "Include_doc" #: ../Doc/using/windows.rst:175 msgid "Install Python manual" -msgstr "" +msgstr "Installe le manuel Python" #: ../Doc/using/windows.rst:177 msgid "Include_debug" -msgstr "" +msgstr "Include_debug" #: ../Doc/using/windows.rst:177 msgid "Install debug binaries" -msgstr "" +msgstr "Installe les binaires de débogage" #: ../Doc/using/windows.rst:179 msgid "Include_dev" -msgstr "" +msgstr "Include_dev" #: ../Doc/using/windows.rst:179 msgid "Install developer headers and libraries" -msgstr "" +msgstr "Installe les fichiers d'en-tête et les bibliothèques développeur" #: ../Doc/using/windows.rst:182 msgid "Include_exe" -msgstr "" +msgstr "Include_exe" #: ../Doc/using/windows.rst:182 msgid "Install :file:`python.exe` and related files" -msgstr "" +msgstr "Installe :file:`python.exe` et les fichiers connexes" #: ../Doc/using/windows.rst:185 msgid "Include_launcher" -msgstr "" +msgstr "Include_launcher" #: ../Doc/using/windows.rst:185 msgid "Install :ref:`launcher`." -msgstr "" +msgstr "Installe le :ref:`launcher`." #: ../Doc/using/windows.rst:187 msgid "InstallLauncherAllUsers" -msgstr "" +msgstr "InstallLauncherAllUsers" #: ../Doc/using/windows.rst:187 msgid "Installs :ref:`launcher` for all users." -msgstr "" +msgstr "Installe le :ref:`launcher` pour tous les utilisateurs." #: ../Doc/using/windows.rst:190 msgid "Include_lib" -msgstr "" +msgstr "Include_lib" #: ../Doc/using/windows.rst:190 msgid "Install standard library and extension modules" -msgstr "" +msgstr "Installe la bibliothèque standard et les modules d'extension" #: ../Doc/using/windows.rst:193 msgid "Include_pip" -msgstr "" +msgstr "Include_pip" #: ../Doc/using/windows.rst:193 msgid "Install bundled pip and setuptools" -msgstr "" +msgstr "Installe ``pip`` et ``setuptools``" #: ../Doc/using/windows.rst:195 msgid "Include_symbols" -msgstr "" +msgstr "Include_symbols" #: ../Doc/using/windows.rst:195 msgid "Install debugging symbols (`*`.pdb)" -msgstr "" +msgstr "Installe les symboles de débogage (``*.pdb``)" #: ../Doc/using/windows.rst:197 msgid "Include_tcltk" -msgstr "" +msgstr "Include_tcltk" #: ../Doc/using/windows.rst:197 msgid "Install Tcl/Tk support and IDLE" -msgstr "" +msgstr "Installe Tcl/Tk et IDLE" #: ../Doc/using/windows.rst:199 msgid "Include_test" -msgstr "" +msgstr "Include_test" #: ../Doc/using/windows.rst:199 msgid "Install standard library test suite" -msgstr "" +msgstr "Installe la suite de tests de la bibliothèque standard" #: ../Doc/using/windows.rst:201 msgid "Include_tools" -msgstr "" +msgstr "Include_tools" #: ../Doc/using/windows.rst:201 msgid "Install utility scripts" -msgstr "" +msgstr "Installe les scripts utilitaires" #: ../Doc/using/windows.rst:203 msgid "LauncherOnly" -msgstr "" +msgstr "LauncherOnly" #: ../Doc/using/windows.rst:203 msgid "Only installs the launcher. This will override most other options." msgstr "" +"Installe seulement le lanceur. Ceci écrasera la plupart des autres options." #: ../Doc/using/windows.rst:206 msgid "SimpleInstall" -msgstr "" +msgstr "SimpleInstall" #: ../Doc/using/windows.rst:206 msgid "Disable most install UI" -msgstr "" +msgstr "Désactive la plupart de l'interface d'installation" #: ../Doc/using/windows.rst:208 msgid "SimpleInstallDescription" -msgstr "" +msgstr "SimpleInstallDescription" #: ../Doc/using/windows.rst:208 msgid "A custom message to display when the simplified install UI is used." msgstr "" +"Un message personnalisé à afficher quand l'interface d'installation simplifiée " +"est utilisée." #: ../Doc/using/windows.rst:212 msgid "" -"For example, to silently install a default, system-wide Python installation, " -"you could use the following command (from an elevated command prompt)::" +"For example, to silently install a default, system-wide Python installation, you " +"could use the following command (from an elevated command prompt)::" msgstr "" +"Par exemple, pour installer silencieusement Python sur tout le système, vous " +"pourriez utilisez la commande suivante (depuis une invite de commande " +"administrateur) ::" #: ../Doc/using/windows.rst:217 msgid "" @@ -494,112 +595,162 @@ msgid "" "suite, you could provide a shortcut with the following command. This will " "display a simplified initial page and disallow customization::" msgstr "" +"Pour permettre à l'utilisateur d'installer facilement une copie de Python sans " +"la suite de tests, vous pouvez proposer un raccourci avec la commande suivante. " +"Cela affichera une page initiale simplifiée et interdira la personnalisation ::" #: ../Doc/using/windows.rst:224 msgid "" "(Note that omitting the launcher also omits file associations, and is only " -"recommended for per-user installs when there is also a system-wide " -"installation that included the launcher.)" +"recommended for per-user installs when there is also a system-wide installation " +"that included the launcher.)" msgstr "" +"(Notez qu'omettre le lanceur omet aussi les associations de fichiers, et n'est " +"recommandé que pour les installations par utilisateur quand il y a aussi une " +"installation complète sur le système qui a inclus de lanceur.)" #: ../Doc/using/windows.rst:228 msgid "" -"The options listed above can also be provided in a file named ``unattend." -"xml`` alongside the executable. This file specifies a list of options and " -"values. When a value is provided as an attribute, it will be converted to a " -"number if possible. Values provided as element text are always left as " -"strings. This example file sets the same options as the previous example:" +"The options listed above can also be provided in a file named ``unattend.xml`` " +"alongside the executable. This file specifies a list of options and values. When " +"a value is provided as an attribute, it will be converted to a number if " +"possible. Values provided as element text are always left as strings. This " +"example file sets the same options as the previous example:" msgstr "" +"Les options listées ci-dessus peuvent aussi être passées dans un fichier nommé " +"``unattend.xml`` à côté de l'exécutable. Ce fichier spécifie une liste d'options " +"et de valeurs. Quand une valeur est donnée en tant qu'attribut, elle sera " +"convertie en nombre si possible. Les valeurs données en élément texte sont " +"toujours laissées en tant que chaînes de caractères. Ce fichier d'exemple " +"propose les mêmes options que l'exemple précédent :" #: ../Doc/using/windows.rst:247 msgid "Installing Without Downloading" -msgstr "" +msgstr "Installation sans téléchargement" #: ../Doc/using/windows.rst:249 msgid "" -"As some features of Python are not included in the initial installer " -"download, selecting those features may require an internet connection. To " -"avoid this need, all possible components may be downloaded on-demand to " -"create a complete *layout* that will no longer require an internet " -"connection regardless of the selected features. Note that this download may " -"be bigger than required, but where a large number of installations are going " -"to be performed it is very useful to have a locally cached copy." -msgstr "" +"As some features of Python are not included in the initial installer download, " +"selecting those features may require an internet connection. To avoid this " +"need, all possible components may be downloaded on-demand to create a complete " +"*layout* that will no longer require an internet connection regardless of the " +"selected features. Note that this download may be bigger than required, but " +"where a large number of installations are going to be performed it is very " +"useful to have a locally cached copy." +msgstr "" +"Comme certaines fonctionnalités de Python ne sont pas inclue dans " +"l'installateur initial, la sélection de certaines de ces fonctionnalités peut " +"demander une connexion Internet. Pour éviter ce besoin, tous les composants " +"nécessaires peuvent être téléchargés à la demande pour créer une *couche* " +"complète qui ne demandera plus de connexion Internet indépendamment des options " +"sélectionnées. Notez que ce téléchargement peut être plus gros que requis, mais " +"là où un grand nombre d'installations vont être faites, il est très utile " +"d'avoir une copie locale." #: ../Doc/using/windows.rst:257 msgid "" "Execute the following command from Command Prompt to download all possible " -"required files. Remember to substitute ``python-3.7.0.exe`` for the actual " -"name of your installer, and to create layouts in their own directories to " -"avoid collisions between files with the same name." +"required files. Remember to substitute ``python-3.7.0.exe`` for the actual name " +"of your installer, and to create layouts in their own directories to avoid " +"collisions between files with the same name." msgstr "" +"Exécutez la commande suivante depuis l'invite de commande pour télécharger tous " +"les fichiers requis possible. Rappelez-vous de remplacer ``python-3.7.0.exe`` " +"par le nom actuel de votre installateur, et pour créer des *couches* dans leurs " +"propres dossiers pour éviter les conflits entre fichiers du même nom." #: ../Doc/using/windows.rst:266 -msgid "" -"You may also specify the ``/quiet`` option to hide the progress display." +msgid "You may also specify the ``/quiet`` option to hide the progress display." msgstr "" +"Vous pouvez aussi spécifier l'option ``/quiet`` pour masquer la progression." #: ../Doc/using/windows.rst:269 msgid "Modifying an install" -msgstr "" +msgstr "Modification d'une installation" #: ../Doc/using/windows.rst:271 msgid "" "Once Python has been installed, you can add or remove features through the " -"Programs and Features tool that is part of Windows. Select the Python entry " -"and choose \"Uninstall/Change\" to open the installer in maintenance mode." +"Programs and Features tool that is part of Windows. Select the Python entry and " +"choose \"Uninstall/Change\" to open the installer in maintenance mode." msgstr "" +"Une fois que Python a été installé, vous pouvez ajouter ou supprimer des " +"fonctionnalités depuis l'outil `Programs and Features` (Programmes et " +"Fonctionnalités) qui fait partie de Windows. Sélectionnez la ligne `Python` et " +"choisissez \"Uninstall/Change\" (Désinstaller/Modifier) pour ouvrir " +"l'installateur en mode maintenance." #: ../Doc/using/windows.rst:275 msgid "" -"\"Modify\" allows you to add or remove features by modifying the checkboxes " -"- unchanged checkboxes will not install or remove anything. Some options " -"cannot be changed in this mode, such as the install directory; to modify " -"these, you will need to remove and then reinstall Python completely." +"\"Modify\" allows you to add or remove features by modifying the checkboxes - " +"unchanged checkboxes will not install or remove anything. Some options cannot be " +"changed in this mode, such as the install directory; to modify these, you will " +"need to remove and then reinstall Python completely." msgstr "" +"\"Modify\" vous permets d'ajouter ou d'enlever des fonctionnalités en modifiant " +"les cases à cocher (les cases inchangées n'installeront ou ne supprimeront " +"rien). Certaines options ne peuvent pas être modifiées dans ce mode, comme le " +"dossier d'installation. Pour modifier ces options, vous devrez ré-installer " +"Python entièrement." #: ../Doc/using/windows.rst:280 msgid "" -"\"Repair\" will verify all the files that should be installed using the " -"current settings and replace any that have been removed or modified." +"\"Repair\" will verify all the files that should be installed using the current " +"settings and replace any that have been removed or modified." msgstr "" +"\"Repair\" vérifiera tous les fichiers qui doivent être installés avec les " +"paramètres actuels et remplacera ceux qui ont étés supprimés ou modifiés." #: ../Doc/using/windows.rst:283 msgid "" "\"Uninstall\" will remove Python entirely, with the exception of the :ref:" "`launcher`, which has its own entry in Programs and Features." msgstr "" +"\"Uninstall\" désinstallera Python entièrement, à l'exception du :ref:`launcher` " +"qui à sa propre ligne dans `Programs and Features`." #: ../Doc/using/windows.rst:290 msgid "The Microsoft Store package" -msgstr "" +msgstr "Le paquet Microsoft Store" #: ../Doc/using/windows.rst:295 msgid "" "The Microsoft Store package is currently considered unstable while its " -"interactions with other tools and other copies of Python are evaluated. " -"While Python itself is stable, this installation method may change its " -"behavior and capabilities during Python 3.7 releases." +"interactions with other tools and other copies of Python are evaluated. While " +"Python itself is stable, this installation method may change its behavior and " +"capabilities during Python 3.7 releases." msgstr "" +"Avec le développement actif de Python, certaines plateformes qui étaient prises " +"en charge par le passé ne le sont plus (dû au manque d'utilisateurs ou de " +"développeurs). Lisez :pep:`11` pour des détails sur toutes les plateformes non " +"prises en charge." #: ../Doc/using/windows.rst:300 msgid "" -"The Microsoft Store package is an easily installable Python interpreter that " -"is intended mainly for interactive use, for example, by students." +"The Microsoft Store package is an easily installable Python interpreter that is " +"intended mainly for interactive use, for example, by students." msgstr "" +"`Windows CE `_ est toujours pris en charge." #: ../Doc/using/windows.rst:303 msgid "" -"To install the package, ensure you have the latest Windows 10 updates and " -"search the Microsoft Store app for \"Python |version|\". Ensure that the app " -"you select is published by the Python Software Foundation, and install it." +"To install the package, ensure you have the latest Windows 10 updates and search " +"the Microsoft Store app for \"Python |version|\". Ensure that the app you select " +"is published by the Python Software Foundation, and install it." msgstr "" +"L'installateur `Cygwin `_ offre d'installer l’interpréteur " +"Python (cf. `Cygwin package source `_, `Maintainer releases `_)" #: ../Doc/using/windows.rst:308 msgid "" "Python will always be available for free on the Microsoft Store. If you are " "asked to pay for it, you have not selected the correct package." msgstr "" +"Voir `Python pour Windows `_ pour des " +"informations détaillées à propos des plateformes avec des installateurs pré-" +"compilés." #: ../Doc/using/windows.rst:311 msgid "" @@ -608,318 +759,460 @@ msgid "" "session by typing ``python``. Further, pip and IDLE may be used by typing " "``pip`` or ``idle``. IDLE can also be found in Start." msgstr "" +"Après l'installation, Python peut être lancé en le trouvant dans le menu " +"Démarrer. Alternativement, il sera disponible à partir de n'importe quelle " +"invite de commande ou session PowerShell en tapant ``python``. De plus, pip et " +"IDLE peuvent être utilisés en tapant ``pip`` ou ``idle`` . IDLE peut également " +"être trouvé dans le menu Démarrer." #: ../Doc/using/windows.rst:316 msgid "" -"All three commands are also available with version number suffixes, for " -"example, as ``python3.exe`` and ``python3.x.exe`` as well as ``python.exe`` " -"(where ``3.x`` is the specific version you want to launch, such as |" -"version|)." +"All three commands are also available with version number suffixes, for example, " +"as ``python3.exe`` and ``python3.x.exe`` as well as ``python.exe`` (where ``3." +"x`` is the specific version you want to launch, such as |version|)." msgstr "" +"Les trois commandes sont également disponibles avec les suffixes de numéro de " +"version, par exemple, ``python3.exe`` et ``python3.x.exe`` ainsi que ``python." +"exe`` (ou ``3.x`` est la version spécifique que vous souhaitez lancer, tel que |" +"version|)." #: ../Doc/using/windows.rst:321 msgid "" -"Virtual environments can be created with ``python -m venv`` and activated " -"and used as normal." +"Virtual environments can be created with ``python -m venv`` and activated and " +"used as normal." msgstr "" +"Les environnements virtuels peuvent être créés avec ``python-m venv`` et activés " +"et utilisés normalement." #: ../Doc/using/windows.rst:324 msgid "" -"If you have installed another version of Python and added it to your " -"``PATH`` variable, it will be available as ``python.exe`` rather than the " -"one from the Microsoft Store. To access the new installation, use ``python3." -"exe`` or ``python3.x.exe``." +"If you have installed another version of Python and added it to your ``PATH`` " +"variable, it will be available as ``python.exe`` rather than the one from the " +"Microsoft Store. To access the new installation, use ``python3.exe`` or " +"``python3.x.exe``." msgstr "" +"Si vous avez installé une autre version de Python et l'avez ajoutée à votre " +"variable ``PATH``, elle sera disponible en tant que ``python. exe`` plutôt que " +"celle de la boutique Microsoft. Pour accéder à la nouvelle installation, " +"utilisez ``python3. exe`` ou ``python3.x.exe``." #: ../Doc/using/windows.rst:329 msgid "" -"To remove Python, open Settings and use Apps and Features, or else find " -"Python in Start and right-click to select Uninstall. Uninstalling will " -"remove all packages you installed directly into this Python installation, " -"but will not remove any virtual environments" +"To remove Python, open Settings and use Apps and Features, or else find Python " +"in Start and right-click to select Uninstall. Uninstalling will remove all " +"packages you installed directly into this Python installation, but will not " +"remove any virtual environments" msgstr "" +"Pour supprimer Python, ouvrez paramètres et utilisez *Apps and Features* " +"(Applications et Fonctionnalités), ou bien trouvez Python dans le menu Démarrer " +"et cliquez avec le bouton droit pour sélectionner désinstaller. La " +"désinstallation supprimera tous les packages que vous avez installés directement " +"dans cette installation Python, mais ne supprimera aucun environnement virtuel" #: ../Doc/using/windows.rst:335 msgid "Known Issues" -msgstr "" +msgstr "Problèmes connus" #: ../Doc/using/windows.rst:337 msgid "" -"Currently, the ``py.exe`` launcher cannot be used to start Python when it " -"has been installed from the Microsoft Store." +"Currently, the ``py.exe`` launcher cannot be used to start Python when it has " +"been installed from the Microsoft Store." msgstr "" +"Actuellement, le lanceur ``py. exe`` ne peut pas être utilisé pour démarrer " +"Python lorsqu'il a été installé à partir de la boutique Microsoft." #: ../Doc/using/windows.rst:340 msgid "" "Because of restrictions on Microsoft Store apps, Python scripts may not have " "full write access to shared locations such as ``TEMP`` and the registry. " -"Instead, it will write to a private copy. If your scripts must modify the " -"shared locations, you will need to install the full installer." +"Instead, it will write to a private copy. If your scripts must modify the shared " +"locations, you will need to install the full installer." msgstr "" +"En raison de restrictions sur les applications Microsoft Store, les scripts " +"Python peuvent ne pas avoir un accès en écriture complet aux emplacements " +"partagés tels que ``TEMP`` et le registre. Au lieu de cela, il écrira à une " +"copie privée. Si vos scripts doivent modifier les emplacements partagés, vous " +"devrez installer le programme d'installation complet." #: ../Doc/using/windows.rst:349 msgid "The nuget.org packages" -msgstr "" +msgstr "Les paquets nuget.org" #: ../Doc/using/windows.rst:353 msgid "" -"The nuget.org package is a reduced size Python environment intended for use " -"on continuous integration and build systems that do not have a system-wide " -"install of Python. While nuget is \"the package manager for .NET\", it also " -"works perfectly fine for packages containing build-time tools." +"The nuget.org package is a reduced size Python environment intended for use on " +"continuous integration and build systems that do not have a system-wide install " +"of Python. While nuget is \"the package manager for .NET\", it also works " +"perfectly fine for packages containing build-time tools." msgstr "" +"Le paquet nuget.org est un environnement Python de taille réduite destiné à être " +"utilisé sur des systèmes d'intégration et de génération continus qui n'ont pas " +"d'installation à l'échelle du système de Python. Alors que nuget est “le " +"gestionnaire de package pour .NET”, il fonctionne également parfaitement bien " +"pour les packages contenant des outils de *build-time*." #: ../Doc/using/windows.rst:358 msgid "" -"Visit `nuget.org `_ for the most up-to-date " -"information on using nuget. What follows is a summary that is sufficient for " -"Python developers." +"Visit `nuget.org `_ for the most up-to-date information " +"on using nuget. What follows is a summary that is sufficient for Python " +"developers." msgstr "" +"Visitez `nuget.org `_ pour les informations les plus à " +"jour sur l'utilisation de nuget. Ce qui suit est un résumé qui est suffisant " +"pour les développeurs Python." #: ../Doc/using/windows.rst:362 msgid "" -"The ``nuget.exe`` command line tool may be downloaded directly from " -"``https://aka.ms/nugetclidl``, for example, using curl or PowerShell. With " -"the tool, the latest version of Python for 64-bit or 32-bit machines is " -"installed using::" +"The ``nuget.exe`` command line tool may be downloaded directly from ``https://" +"aka.ms/nugetclidl``, for example, using curl or PowerShell. With the tool, the " +"latest version of Python for 64-bit or 32-bit machines is installed using::" msgstr "" +"L'outil de ligne de commande ``nuget.exe`` peut être téléchargé directement à " +"partir de ``https://aka.ms/nugetclidl``, par exemple, à l'aide de curl ou de " +"PowerShell. Avec l'outil, la dernière version de Python pour les machines 64 " +"bits ou 32 bits est installée à l'aide de :" #: ../Doc/using/windows.rst:370 msgid "" -"To select a particular version, add a ``-Version 3.x.y``. The output " -"directory may be changed from ``.``, and the package will be installed into " -"a subdirectory. By default, the subdirectory is named the same as the " -"package, and without the ``-ExcludeVersion`` option this name will include " -"the specific version installed. Inside the subdirectory is a ``tools`` " -"directory that contains the Python installation::" +"To select a particular version, add a ``-Version 3.x.y``. The output directory " +"may be changed from ``.``, and the package will be installed into a " +"subdirectory. By default, the subdirectory is named the same as the package, and " +"without the ``-ExcludeVersion`` option this name will include the specific " +"version installed. Inside the subdirectory is a ``tools`` directory that " +"contains the Python installation::" msgstr "" +"Pour sélectionner une version particulière, ajoutez un ``-Version 3.x.y``. Le " +"répertoire de sortie peut être de ``.``, et le paquet sera installé dans un sous-" +"répertoire. Par défaut, le sous-répertoire est nommé le même que le paquet, et " +"sans l'option ``-ExcludeVersion``, ce nom inclura la version spécifique " +"installée. À l'intérieur du sous-répertoire se trouve un répertoire ``tools`` " +"qui contient l'installation Python ::" #: ../Doc/using/windows.rst:385 msgid "" "In general, nuget packages are not upgradeable, and newer versions should be " -"installed side-by-side and referenced using the full path. Alternatively, " -"delete the package directory manually and install it again. Many CI systems " -"will do this automatically if they do not preserve files between builds." +"installed side-by-side and referenced using the full path. Alternatively, delete " +"the package directory manually and install it again. Many CI systems will do " +"this automatically if they do not preserve files between builds." msgstr "" +"En général, les paquets nuget ne peuvent pas êtres mis à jour et les versions " +"plus récentes doivent être installées côte à côte et référencées à l'aide du " +"chemin d'accès complet. Vous pouvez également supprimer le répertoire du paquet " +"manuellement et l'installer à nouveau. De nombreux systèmes CI le feront " +"automatiquement s'ils ne conservent pas les fichiers entre les builds." #: ../Doc/using/windows.rst:390 msgid "" "Alongside the ``tools`` directory is a ``build\\native`` directory. This " -"contains a MSBuild properties file ``python.props`` that can be used in a C+" -"+ project to reference the Python install. Including the settings will " +"contains a MSBuild properties file ``python.props`` that can be used in a C++ " +"project to reference the Python install. Including the settings will " "automatically use the headers and import libraries in your build." msgstr "" +"À côté du répertoire ``tools`` est un répertoire ``build\\native``. Il contient " +"un fichier de propriétés MSBuild ``python.props`` qui peut être utilisé dans un " +"projet C++ pour référencer l'installation de Python. L'inclusion des paramètres " +"utilisera automatiquement les en-têtes et les bibliothèques d'importation dans " +"votre build." #: ../Doc/using/windows.rst:395 msgid "" -"The package information pages on nuget.org are `www.nuget.org/packages/" -"python `_ for the 64-bit version and " -"`www.nuget.org/packages/pythonx86 `_ for the 32-bit version." +"The package information pages on nuget.org are `www.nuget.org/packages/python " +"`_ for the 64-bit version and `www.nuget." +"org/packages/pythonx86 `_ for the 32-" +"bit version." msgstr "" +"Les pages d’information sur nuget.org sont `www.nuget.org/packages/python " +"`_ pour la version 64 Bits et `www.nuget." +"org/packages/pythonx86 `_ pour la " +"version 32 Bits." #: ../Doc/using/windows.rst:404 msgid "The embeddable package" -msgstr "" +msgstr "Le paquet intégré" #: ../Doc/using/windows.rst:408 msgid "" -"The embedded distribution is a ZIP file containing a minimal Python " -"environment. It is intended for acting as part of another application, " -"rather than being directly accessed by end-users." +"The embedded distribution is a ZIP file containing a minimal Python environment. " +"It is intended for acting as part of another application, rather than being " +"directly accessed by end-users." msgstr "" +"La distribution embarquée est un fichier ZIP contenant un environnement Python " +"minimal. Il est destiné à agir dans le cadre d'une autre application, plutôt que " +"d'être directement accessible par les utilisateurs finaux." #: ../Doc/using/windows.rst:412 msgid "" -"When extracted, the embedded distribution is (almost) fully isolated from " -"the user's system, including environment variables, system registry " -"settings, and installed packages. The standard library is included as pre-" -"compiled and optimized ``.pyc`` files in a ZIP, and ``python3.dll``, " -"``python37.dll``, ``python.exe`` and ``pythonw.exe`` are all provided. Tcl/" -"tk (including all dependants, such as Idle), pip and the Python " -"documentation are not included." -msgstr "" +"When extracted, the embedded distribution is (almost) fully isolated from the " +"user's system, including environment variables, system registry settings, and " +"installed packages. The standard library is included as pre-compiled and " +"optimized ``.pyc`` files in a ZIP, and ``python3.dll``, ``python37.dll``, " +"``python.exe`` and ``pythonw.exe`` are all provided. Tcl/tk (including all " +"dependants, such as Idle), pip and the Python documentation are not included." +msgstr "" +"Une fois extrait, la distribution incorporée est (presque) entièrement isolée du " +"système de l'utilisateur, y compris les variables d'environnement, les " +"paramètres du Registre système et les packages installés. La bibliothèque " +"standard est incluse en tant que fichiers pré-compilés et optimisés ``.pyc`` " +"dans un fichier ZIP, et``python3.dll``, ``python37.dll``, ``python.exe`` et " +"``pythonw.exe`` sont tous fournis. Tcl/Tk (y compris tous les dépendants, telles " +"que IDLE), pip et la documentation Python ne sont pas inclus." #: ../Doc/using/windows.rst:421 msgid "" -"The embedded distribution does not include the `Microsoft C Runtime `_ and it is the " +"The embedded distribution does not include the `Microsoft C Runtime `_ and it is the " "responsibility of the application installer to provide this. The runtime may " -"have already been installed on a user's system previously or automatically " -"via Windows Update, and can be detected by finding ``ucrtbase.dll`` in the " -"system directory." +"have already been installed on a user's system previously or automatically via " +"Windows Update, and can be detected by finding ``ucrtbase.dll`` in the system " +"directory." msgstr "" +"La distribution incorporée n'inclut pas le `Microsoft C Runtime `_ et il est de la " +"responsabilité de l'installateur d'application de fournir ceci. Le runtime peut " +"avoir déjà été installé sur le système d'un utilisateur précédemment ou " +"automatiquement via Windows Update, et peut être détecté en trouvant ``ucrtbase." +"dll`` dans le répertoire système." #: ../Doc/using/windows.rst:428 msgid "" -"Third-party packages should be installed by the application installer " -"alongside the embedded distribution. Using pip to manage dependencies as for " -"a regular Python installation is not supported with this distribution, " -"though with some care it may be possible to include and use pip for " -"automatic updates. In general, third-party packages should be treated as " -"part of the application (\"vendoring\") so that the developer can ensure " -"compatibility with newer versions before providing updates to users." -msgstr "" +"Third-party packages should be installed by the application installer alongside " +"the embedded distribution. Using pip to manage dependencies as for a regular " +"Python installation is not supported with this distribution, though with some " +"care it may be possible to include and use pip for automatic updates. In " +"general, third-party packages should be treated as part of the application " +"(\"vendoring\") so that the developer can ensure compatibility with newer " +"versions before providing updates to users." +msgstr "" +"Les packages tiers doivent être installés par le programme d'installation de " +"l'application parallèlement à la distribution embarquée. L'utilisation de pip " +"pour gérer les dépendances comme pour une installation Python régulière n'est " +"pas prise en charge avec cette distribution, mais avec certains soins, il peut " +"être possible d'inclure et d'utiliser pip pour les mises à jour automatiques. En " +"général, les packages tiers doivent être traités dans le cadre de l'application " +"(\"vendoring\") afin que le développeur puisse assurer la compatibilité avec les " +"versions plus récentes avant de fournir des mises à jour aux utilisateurs." #: ../Doc/using/windows.rst:436 -msgid "" -"The two recommended use cases for this distribution are described below." +msgid "The two recommended use cases for this distribution are described below." msgstr "" +"Les deux cas d'utilisation recommandés pour cette distribution sont décrits ci-" +"dessous." #: ../Doc/using/windows.rst:439 msgid "Python Application" -msgstr "" +msgstr "Application Python" #: ../Doc/using/windows.rst:441 msgid "" -"An application written in Python does not necessarily require users to be " -"aware of that fact. The embedded distribution may be used in this case to " -"include a private version of Python in an install package. Depending on how " -"transparent it should be (or conversely, how professional it should appear), " -"there are two options." +"An application written in Python does not necessarily require users to be aware " +"of that fact. The embedded distribution may be used in this case to include a " +"private version of Python in an install package. Depending on how transparent it " +"should be (or conversely, how professional it should appear), there are two " +"options." msgstr "" +"Une application écrite en Python n'exige pas nécessairement que les utilisateurs " +"soient au courant de ce fait. La distribution embarquée peut être utilisée dans " +"ce cas pour inclure une version privée de Python dans un package d'installation. " +"Selon la façon dont il devrait être transparent (ou inversement, comment " +"professionnel il devrait apparaître), il y a deux options." #: ../Doc/using/windows.rst:447 msgid "" -"Using a specialized executable as a launcher requires some coding, but " -"provides the most transparent experience for users. With a customized " -"launcher, there are no obvious indications that the program is running on " -"Python: icons can be customized, company and version information can be " -"specified, and file associations behave properly. In most cases, a custom " -"launcher should simply be able to call ``Py_Main`` with a hard-coded command " -"line." -msgstr "" +"Using a specialized executable as a launcher requires some coding, but provides " +"the most transparent experience for users. With a customized launcher, there are " +"no obvious indications that the program is running on Python: icons can be " +"customized, company and version information can be specified, and file " +"associations behave properly. In most cases, a custom launcher should simply be " +"able to call ``Py_Main`` with a hard-coded command line." +msgstr "" +"L'utilisation d'un exécutable spécialisé en tant que lanceur nécessite de la " +"programmation, mais fournit l'expérience la plus transparente pour les " +"utilisateurs. Avec un lanceur personnalisé, il n'y a pas d'indications évidentes " +"que le programme s'exécute sur Python : les icônes peuvent être personnalisées, " +"les informations de la société et de la version peuvent être spécifiées, et les " +"associations de fichiers se comportent correctement. Dans la plupart des cas, un " +"lanceur personnalisé devrait simplement pouvoir appeler ``Py_Main`` avec une " +"ligne de commande codée en dur." #: ../Doc/using/windows.rst:454 msgid "" "The simpler approach is to provide a batch file or generated shortcut that " -"directly calls the ``python.exe`` or ``pythonw.exe`` with the required " -"command-line arguments. In this case, the application will appear to be " -"Python and not its actual name, and users may have trouble distinguishing it " -"from other running Python processes or file associations." -msgstr "" +"directly calls the ``python.exe`` or ``pythonw.exe`` with the required command-" +"line arguments. In this case, the application will appear to be Python and not " +"its actual name, and users may have trouble distinguishing it from other running " +"Python processes or file associations." +msgstr "" +"L'approche la plus simple consiste à fournir un fichier batch ou un raccourci " +"généré qui appelle directement le ``python.exe`` ou ``pythonw.exe`` avec les " +"arguments de ligne de commande requis. Dans ce cas, l'application semble être " +"Python et non son nom réel, et les utilisateurs peuvent avoir du mal à le " +"distinguer des autres processus Python en cours d'exécution ou des associations " +"de fichiers." #: ../Doc/using/windows.rst:460 msgid "" -"With the latter approach, packages should be installed as directories " -"alongside the Python executable to ensure they are available on the path. " -"With the specialized launcher, packages can be located in other locations as " -"there is an opportunity to specify the search path before launching the " -"application." +"With the latter approach, packages should be installed as directories alongside " +"the Python executable to ensure they are available on the path. With the " +"specialized launcher, packages can be located in other locations as there is an " +"opportunity to specify the search path before launching the application." msgstr "" +"Avec cette dernière approche, les packages doivent être installés en tant que " +"répertoires à côté de l'exécutable Python pour s'assurer qu'ils sont disponibles " +"sur le chemin. Avec le lanceur spécialisé, les paquets peuvent être localisés " +"dans d'autres emplacements car il y a une possibilité de spécifier le chemin de " +"recherche avant de lancer l'application." #: ../Doc/using/windows.rst:466 msgid "Embedding Python" -msgstr "" +msgstr "Python Embarqué" #: ../Doc/using/windows.rst:468 msgid "" "Applications written in native code often require some form of scripting " -"language, and the embedded Python distribution can be used for this purpose. " -"In general, the majority of the application is in native code, and some part " -"will either invoke ``python.exe`` or directly use ``python3.dll``. For " -"either case, extracting the embedded distribution to a subdirectory of the " -"application installation is sufficient to provide a loadable Python " -"interpreter." -msgstr "" +"language, and the embedded Python distribution can be used for this purpose. In " +"general, the majority of the application is in native code, and some part will " +"either invoke ``python.exe`` or directly use ``python3.dll``. For either case, " +"extracting the embedded distribution to a subdirectory of the application " +"installation is sufficient to provide a loadable Python interpreter." +msgstr "" +"Les applications écrites en code natif nécessitent souvent une certaine forme de " +"langage de *scripting*, et la distribution Python incorporée peut être utilisée " +"à cette fin. En général, la majorité de l'application est dans le code natif, et " +"une partie sera soit invoquer ``python.exe`` ou utiliser directement ``python3." +"dll``. Dans les deux cas, l'extraction de la distribution incorporée dans un " +"sous-répertoire de l'installation de l'application est suffisante pour fournir " +"un interpréteur Python chargeable." #: ../Doc/using/windows.rst:475 msgid "" -"As with the application use, packages can be installed to any location as " -"there is an opportunity to specify search paths before initializing the " -"interpreter. Otherwise, there is no fundamental differences between using " -"the embedded distribution and a regular installation." +"As with the application use, packages can be installed to any location as there " +"is an opportunity to specify search paths before initializing the interpreter. " +"Otherwise, there is no fundamental differences between using the embedded " +"distribution and a regular installation." msgstr "" +"Comme pour l'utilisation de l'application, les paquets peuvent être installés " +"sur n'importe quel emplacement, car il est possible de spécifier des chemins de " +"recherche avant d'initialiser l'interpréteur. Sinon, il n'y a pas de différences " +"fondamentales entre l'utilisation de la distribution embarquée et une " +"installation régulière." #: ../Doc/using/windows.rst:482 msgid "Alternative bundles" -msgstr "" +msgstr "Paquets alternatifs" #: ../Doc/using/windows.rst:484 msgid "" -"Besides the standard CPython distribution, there are modified packages " -"including additional functionality. The following is a list of popular " -"versions and their key features:" +"Besides the standard CPython distribution, there are modified packages including " +"additional functionality. The following is a list of popular versions and their " +"key features:" msgstr "" +"À part la distribution standard CPython, il y a des paquets modifiés incluant " +"des fonctionnalités additionnelles. La liste qui suit est une liste de versions " +"populaires et de leurs fonctionnalités clé :" #: ../Doc/using/windows.rst:489 msgid "`ActivePython `_" -msgstr "" +msgstr "`ActivePython `_" #: ../Doc/using/windows.rst:489 msgid "Installer with multi-platform compatibility, documentation, PyWin32" msgstr "" +"Installeur avec une compatibilité multi-plateforme, de la documentation, et " +"`PyWin32`" #: ../Doc/using/windows.rst:493 msgid "`Anaconda `_" -msgstr "" +msgstr "`Anaconda `_" #: ../Doc/using/windows.rst:492 msgid "" -"Popular scientific modules (such as numpy, scipy and pandas) and the " -"``conda`` package manager." +"Popular scientific modules (such as numpy, scipy and pandas) and the ``conda`` " +"package manager." msgstr "" +"Des modules scientifiques populaires (comme *numpy*, *scipy* et *pandas*) et le " +"gestionnaire de paquets ``conda``." #: ../Doc/using/windows.rst:497 msgid "`Canopy `_" -msgstr "" +msgstr "`Canopy `_" #: ../Doc/using/windows.rst:496 msgid "" "A \"comprehensive Python analysis environment\" with editors and other " "development tools." msgstr "" +"Un \"environnement d'analyse complet Python\" avec des éditeurs et autres outils " +"de développement." #: ../Doc/using/windows.rst:501 msgid "`WinPython `_" -msgstr "" +msgstr "`WinPython `_" #: ../Doc/using/windows.rst:500 msgid "" -"Windows-specific distribution with prebuilt scientific packages and tools " -"for building packages." +"Windows-specific distribution with prebuilt scientific packages and tools for " +"building packages." msgstr "" +"Distribution spécifique à Windows avec des paquets scientifiques pré-compilés et " +"des outils pour construire des paquets." #: ../Doc/using/windows.rst:503 msgid "" -"Note that these packages may not include the latest versions of Python or " -"other libraries, and are not maintained or supported by the core Python team." +"Note that these packages may not include the latest versions of Python or other " +"libraries, and are not maintained or supported by the core Python team." msgstr "" +"Notez que ces paquets peuvent ne pas inclure la dernière version de Python ou " +"d'autres bibliothèques, et ne sont pas maintenus ni supportés par l'équipe " +"Python **Core**." #: ../Doc/using/windows.rst:509 msgid "Configuring Python" -msgstr "" +msgstr "Configurer Python" #: ../Doc/using/windows.rst:511 msgid "" -"To run Python conveniently from a command prompt, you might consider " -"changing some default environment variables in Windows. While the installer " -"provides an option to configure the PATH and PATHEXT variables for you, this " -"is only reliable for a single, system-wide installation. If you regularly " -"use multiple versions of Python, consider using the :ref:`launcher`." +"To run Python conveniently from a command prompt, you might consider changing " +"some default environment variables in Windows. While the installer provides an " +"option to configure the PATH and PATHEXT variables for you, this is only " +"reliable for a single, system-wide installation. If you regularly use multiple " +"versions of Python, consider using the :ref:`launcher`." msgstr "" +"Pour exécuter Python commodément à partir d'une invite de commandes, vous pouvez " +"envisager de modifier certaines variables d'environnement par défaut dans " +"Windows. Bien que l'installateur offre une option pour configurer les variables " +"`PATH` et `PATHEXT` pour vous, ce n'est fiable que pour une seule installation à " +"l'échelle du système. Si vous utilisez régulièrement plusieurs versions de " +"Python, pensez à utiliser le :ref:`launcher`." #: ../Doc/using/windows.rst:521 msgid "Excursus: Setting environment variables" -msgstr "" +msgstr "Excursus: Définition des variables d'environnement" #: ../Doc/using/windows.rst:523 msgid "" -"Windows allows environment variables to be configured permanently at both " -"the User level and the System level, or temporarily in a command prompt." +"Windows allows environment variables to be configured permanently at both the " +"User level and the System level, or temporarily in a command prompt." msgstr "" +"Windows permet de configurer les variables d'environnement de façon permanente " +"au niveau de l'utilisateur et du système, ou temporairement dans une invite de " +"commandes." #: ../Doc/using/windows.rst:526 msgid "" "To temporarily set environment variables, open Command Prompt and use the :" "command:`set` command:" msgstr "" +"Pour définir temporairement les variables d'environnement, ouvrez l'invite de " +"commandes et utilisez la commande :command:`set` :" #: ../Doc/using/windows.rst:535 msgid "" -"These changes will apply to any further commands executed in that console, " -"and will be inherited by any applications started from the console." +"These changes will apply to any further commands executed in that console, and " +"will be inherited by any applications started from the console." msgstr "" +"Ces modifications s'appliqueront à toutes les autres commandes exécutées dans " +"cette console et seront héritées par toutes les applications démarrées à partir " +"de cette console." #: ../Doc/using/windows.rst:538 msgid "" @@ -929,60 +1222,82 @@ msgid "" "exe` to the start is a common way to ensure the correct version of Python is " "launched." msgstr "" +"Ceci inclut le nom de la variable dans les signes de pourcentage qui s'étendra à " +"la valeur existante, vous permettant d'ajouter votre nouvelle valeur au début ou " +"à la fin. La modification de :envvar:`PATH` en ajoutant le répertoire contenant :" +"program:`python.exe` au début est un moyen courant de s'assurer que la version " +"correcte de Python est lancée." #: ../Doc/using/windows.rst:544 msgid "" -"To permanently modify the default environment variables, click Start and " -"search for 'edit environment variables', or open System properties, :" -"guilabel:`Advanced system settings` and click the :guilabel:`Environment " -"Variables` button. In this dialog, you can add or modify User and System " -"variables. To change System variables, you need non-restricted access to " -"your machine (i.e. Administrator rights)." -msgstr "" +"To permanently modify the default environment variables, click Start and search " +"for 'edit environment variables', or open System properties, :guilabel:`Advanced " +"system settings` and click the :guilabel:`Environment Variables` button. In this " +"dialog, you can add or modify User and System variables. To change System " +"variables, you need non-restricted access to your machine (i.e. Administrator " +"rights)." +msgstr "" +"Pour modifier définitivement les variables d'environnement par défaut, cliquez " +"sur Démarrer et recherchez 'modifier les variables d'environnement', ou ouvrez " +"Propriétés Système, :guilabel:`Paramètres Système Avancés` et cliquez sur le " +"bouton :guilabel:`Variables d'Environnement`. Dans cette boîte de dialogue, vous " +"pouvez ajouter ou modifier des variables utilisateurs et systèmes. Pour modifier " +"les variables systèmes, vous avez besoin d'un accès non restreint à votre " +"ordinateur (c'est-à-dire aux droits d'administrateur)." #: ../Doc/using/windows.rst:553 msgid "" "Windows will concatenate User variables *after* System variables, which may " "cause unexpected results when modifying :envvar:`PATH`." msgstr "" +"Windows va concaténer les variables utilisateurs *après* les variables systèmes, " +"ce qui peut provoquer des résultats inattendus lors de la modification de :" +"envvar:`PATH`." #: ../Doc/using/windows.rst:556 msgid "" -"The :envvar:`PYTHONPATH` variable is used by all versions of Python 2 and " -"Python 3, so you should not permanently configure this variable unless it " -"only includes code that is compatible with all of your installed Python " -"versions." +"The :envvar:`PYTHONPATH` variable is used by all versions of Python 2 and Python " +"3, so you should not permanently configure this variable unless it only includes " +"code that is compatible with all of your installed Python versions." msgstr "" +"La variable :envvar:`PYTHONPATH` est utilisée par toutes les versions de Python " +"2 et Python 3, vous ne devez donc pas configurer cette variable de façon " +"permanente à moins qu'elle ne comprenne que le code compatible avec toutes les " +"versions de Python installées." #: ../Doc/using/windows.rst:564 msgid "https://www.microsoft.com/en-us/wdsi/help/folder-variables" -msgstr "" +msgstr "https://www.microsoft.com/en-us/wdsi/help/folder-variables" #: ../Doc/using/windows.rst:564 msgid "Environment variables in Windows NT" -msgstr "" +msgstr "Variables d'environnement dans Windows NT" #: ../Doc/using/windows.rst:567 msgid "https://technet.microsoft.com/en-us/library/cc754250.aspx" -msgstr "" +msgstr "https://technet.microsoft.com/en-us/library/cc754250.aspx" #: ../Doc/using/windows.rst:567 msgid "The SET command, for temporarily modifying environment variables" msgstr "" +"La commande SET, pour modifier temporairement les variables d'environnement" #: ../Doc/using/windows.rst:570 msgid "https://technet.microsoft.com/en-us/library/cc755104.aspx" -msgstr "" +msgstr "https://technet.microsoft.com/en-us/library/cc755104.aspx" #: ../Doc/using/windows.rst:570 msgid "The SETX command, for permanently modifying environment variables" msgstr "" +"La commande SETX, pour modifier de façon permanente les variables d'environnement" #: ../Doc/using/windows.rst:573 msgid "" "https://support.microsoft.com/en-us/help/310519/how-to-manage-environment-" "variables-in-windows-xp" msgstr "" +"https://support.microsoft.com/en-us/help/310519/how-to-manage-environment-" +"variables-in-windows-xp" #: ../Doc/using/windows.rst:573 msgid "How To Manage Environment Variables in Windows XP" @@ -990,11 +1305,11 @@ msgstr "Comment gérer les variables d'environnement sous Windows XP" #: ../Doc/using/windows.rst:575 msgid "https://www.chem.gla.ac.uk/~louis/software/faq/q1.html" -msgstr "" +msgstr "https://www.chem.gla.ac.uk/~louis/software/faq/q1.html" #: ../Doc/using/windows.rst:576 msgid "Setting Environment variables, Louis J. Farrugia" -msgstr "Définir les variables d'environnement, Louis J. Farrugia" +msgstr "Définir les variables d'environnement, *Louis J. Farrugia*" #: ../Doc/using/windows.rst:581 msgid "Finding the Python executable" @@ -1003,59 +1318,83 @@ msgstr "Trouver l'exécutable Python" #: ../Doc/using/windows.rst:585 msgid "" "Besides using the automatically created start menu entry for the Python " -"interpreter, you might want to start Python in the command prompt. The " -"installer has an option to set that up for you." +"interpreter, you might want to start Python in the command prompt. The installer " +"has an option to set that up for you." msgstr "" +"En plus d'utiliser l'entrée du menu Démarrer automatiquement créée pour " +"l'interpréteur Python, vous souhaiterez peut-être démarrer Python depuis " +"l'invite de commandes. L'installateur a une option pour installer cela pour vous." #: ../Doc/using/windows.rst:589 msgid "" -"On the first page of the installer, an option labelled \"Add Python to PATH" -"\" may be selected to have the installer add the install location into the :" -"envvar:`PATH`. The location of the :file:`Scripts\\\\` folder is also " -"added. This allows you to type :command:`python` to run the interpreter, " -"and :command:`pip` for the package installer. Thus, you can also execute " -"your scripts with command line options, see :ref:`using-on-cmdline` " -"documentation." -msgstr "" +"On the first page of the installer, an option labelled \"Add Python to PATH\" " +"may be selected to have the installer add the install location into the :envvar:" +"`PATH`. The location of the :file:`Scripts\\\\` folder is also added. This " +"allows you to type :command:`python` to run the interpreter, and :command:`pip` " +"for the package installer. Thus, you can also execute your scripts with command " +"line options, see :ref:`using-on-cmdline` documentation." +msgstr "" +"Sur la première page de l'installateur, une option intitulée \"Ajouter Python au " +"**PATH**\" peut être sélectionnée pour que l'installateur ajoute l'emplacement " +"d'installation dans le :envvar:`PATH`. L'emplacement du dossier :file:`Scripts\\" +"\\` y est également ajouté. Cela vous permet de taper :command:`Python` pour " +"exécuter l'interpréteur, et :command:`pip` pour l'installateur de paquets. " +"Ainsi, vous pouvez également exécuter vos scripts avec les options de ligne de " +"commande, voir la documentation :ref:`using-on-cmdline`." #: ../Doc/using/windows.rst:596 msgid "" "If you don't enable this option at install time, you can always re-run the " -"installer, select Modify, and enable it. Alternatively, you can manually " -"modify the :envvar:`PATH` using the directions in :ref:`setting-envvars`. " -"You need to set your :envvar:`PATH` environment variable to include the " -"directory of your Python installation, delimited by a semicolon from other " -"entries. An example variable could look like this (assuming the first two " -"entries already existed)::" -msgstr "" +"installer, select Modify, and enable it. Alternatively, you can manually modify " +"the :envvar:`PATH` using the directions in :ref:`setting-envvars`. You need to " +"set your :envvar:`PATH` environment variable to include the directory of your " +"Python installation, delimited by a semicolon from other entries. An example " +"variable could look like this (assuming the first two entries already existed)::" +msgstr "" +"Si vous n'activez pas cette option au moment de l'installation, vous pouvez " +"toujours ré-exécuter l'installateur, sélectionner Modifier et l'activer. Vous " +"pouvez également modifier manuellement le :envvar:`PATH` à l'aide des " +"instructions de :ref:`setting-envvars`. Vous devez définir votre variable " +"d'environnement :envvar:`PATH` pour inclure le répertoire de votre installation " +"Python, délimité par un point-virgule des autres entrées. Une variable d'exemple " +"pourrait ressembler à ceci (en supposant que les deux premières entrées " +"existaient déjà) ::" #: ../Doc/using/windows.rst:609 msgid "Python Launcher for Windows" -msgstr "" +msgstr "Lanceur Python pour Windows" #: ../Doc/using/windows.rst:613 msgid "" "The Python launcher for Windows is a utility which aids in locating and " -"executing of different Python versions. It allows scripts (or the command-" -"line) to indicate a preference for a specific Python version, and will " -"locate and execute that version." +"executing of different Python versions. It allows scripts (or the command-line) " +"to indicate a preference for a specific Python version, and will locate and " +"execute that version." msgstr "" +"Le lanceur Python pour Windows est un utilitaire qui facilite la localisation et " +"l'exécution de différentes versions de Python. Il permet aux scripts (ou à la " +"ligne de commande) d'indiquer une préférence pour une version Python spécifique, " +"localisera et exécutera cette version." #: ../Doc/using/windows.rst:618 msgid "" -"Unlike the :envvar:`PATH` variable, the launcher will correctly select the " -"most appropriate version of Python. It will prefer per-user installations " -"over system-wide ones, and orders by language version rather than using the " -"most recently installed version." +"Unlike the :envvar:`PATH` variable, the launcher will correctly select the most " +"appropriate version of Python. It will prefer per-user installations over system-" +"wide ones, and orders by language version rather than using the most recently " +"installed version." msgstr "" +"Contrairement à la variable :envvar:`PATH`, le lanceur sélectionne correctement " +"la version la plus appropriée de Python. Il préfère les installations par " +"utilisateur sur celles à l'échelle du système, et les trie par version plutôt " +"que d'utiliser la version la plus récente installée." #: ../Doc/using/windows.rst:623 msgid "The launcher was originally specified in :pep:`397`." -msgstr "" +msgstr "Le lanceur a été initialement spécifié dans :pep:`397`." #: ../Doc/using/windows.rst:626 msgid "Getting started" -msgstr "" +msgstr "Pour commencer" #: ../Doc/using/windows.rst:629 msgid "From the command-line" @@ -1063,276 +1402,384 @@ msgstr "Depuis la ligne de commande" #: ../Doc/using/windows.rst:633 msgid "" -"System-wide installations of Python 3.3 and later will put the launcher on " -"your :envvar:`PATH`. The launcher is compatible with all available versions " -"of Python, so it does not matter which version is installed. To check that " -"the launcher is available, execute the following command in Command Prompt:" +"System-wide installations of Python 3.3 and later will put the launcher on your :" +"envvar:`PATH`. The launcher is compatible with all available versions of Python, " +"so it does not matter which version is installed. To check that the launcher is " +"available, execute the following command in Command Prompt:" msgstr "" +"Les installations à l'échelle du système de Python 3.3 et ultérieur mettra le " +"lanceur sur votre :envvar:`PATH`. Le lanceur est compatible avec toutes les " +"versions disponibles de Python, de sorte qu'il n'y a pas d'importance quelle " +"version est installée. Pour vérifier que le lanceur est disponible, exécutez la " +"commande suivante dans l'invite de commandes :" #: ../Doc/using/windows.rst:642 msgid "" -"You should find that the latest version of Python you have installed is " -"started - it can be exited as normal, and any additional command-line " -"arguments specified will be sent directly to Python." +"You should find that the latest version of Python you have installed is started " +"- it can be exited as normal, and any additional command-line arguments " +"specified will be sent directly to Python." msgstr "" +"La dernière version de Python que vous avez installé est démarrée -- il peut " +"être quitté normalement, et tous les arguments de ligne de commande " +"supplémentaires spécifiés seront envoyés directement à Python." #: ../Doc/using/windows.rst:646 msgid "" -"If you have multiple versions of Python installed (e.g., 2.7 and |version|) " -"you will have noticed that Python |version| was started - to launch Python " -"2.7, try the command:" +"If you have multiple versions of Python installed (e.g., 2.7 and |version|) you " +"will have noticed that Python |version| was started - to launch Python 2.7, try " +"the command:" msgstr "" +"Si plusieurs versions de Python sont installées (par exemple, 2.7 et |version|), " +"vous aurez remarqué que Python |version| est lancé -- pour lancer Python 2.7, " +"essayez la commande :" #: ../Doc/using/windows.rst:654 msgid "" -"If you want the latest version of Python 2.x you have installed, try the " -"command:" +"If you want the latest version of Python 2.x you have installed, try the command:" msgstr "" +"Si vous voulez que la dernière version de Python 2.x que vous avez installé, " +"essayez la commande :" #: ../Doc/using/windows.rst:661 msgid "You should find the latest version of Python 2.x starts." -msgstr "" +msgstr "Remarquez que la dernière version de Python 2.x démarre." #: ../Doc/using/windows.rst:663 msgid "If you see the following error, you do not have the launcher installed:" -msgstr "" +msgstr "Si vous voyez l'erreur suivante, le lanceur n'est pas installé :" #: ../Doc/using/windows.rst:670 msgid "" "Per-user installations of Python do not add the launcher to :envvar:`PATH` " "unless the option was selected on installation." msgstr "" +"Les installations par utilisateur de Python n'ajoutent pas le lanceur à :envvar:" +"`PATH` sauf si l'option a été sélectionnée lors de l'installation." #: ../Doc/using/windows.rst:674 msgid "Virtual environments" -msgstr "" +msgstr "Environnements virtuels" #: ../Doc/using/windows.rst:678 msgid "" "If the launcher is run with no explicit Python version specification, and a " -"virtual environment (created with the standard library :mod:`venv` module or " -"the external ``virtualenv`` tool) active, the launcher will run the virtual " +"virtual environment (created with the standard library :mod:`venv` module or the " +"external ``virtualenv`` tool) active, the launcher will run the virtual " "environment's interpreter rather than the global one. To run the global " -"interpreter, either deactivate the virtual environment, or explicitly " -"specify the global Python version." +"interpreter, either deactivate the virtual environment, or explicitly specify " +"the global Python version." msgstr "" +"Si le lanceur est exécuté sans spécification de version Python explicite et " +"qu'un environnement virtuel (créé avec le module de la bibliothèque standard :" +"mod:`venv` ou l'outil externe ``virtualenv``) est actif, le lanceur exécute " +"l'interpréteur de l'environnement virtuel plutôt que le celui global. Pour " +"exécuter l'interpréteur global, désactivez l'environnement virtuel ou spécifiez " +"explicitement la version Python globale." #: ../Doc/using/windows.rst:686 msgid "From a script" -msgstr "" +msgstr "À partir d'un script" #: ../Doc/using/windows.rst:688 msgid "" -"Let's create a test Python script - create a file called ``hello.py`` with " -"the following contents" +"Let's create a test Python script - create a file called ``hello.py`` with the " +"following contents" msgstr "" +"Créons un script Python de test -- créez un fichier appelé ``hello.py`` avec le " +"contenu suivant" #: ../Doc/using/windows.rst:697 msgid "From the directory in which hello.py lives, execute the command:" msgstr "" +"À partir du répertoire dans lequel se trouve ``hello.py``, exécutez la commande :" #: ../Doc/using/windows.rst:703 msgid "" -"You should notice the version number of your latest Python 2.x installation " -"is printed. Now try changing the first line to be:" +"You should notice the version number of your latest Python 2.x installation is " +"printed. Now try changing the first line to be:" msgstr "" +"Vous devriez remarquer que le numéro de version de votre dernière installation " +"de Python 2. x est imprimé. Maintenant, essayez de changer la première ligne en :" #: ../Doc/using/windows.rst:710 msgid "" -"Re-executing the command should now print the latest Python 3.x information. " -"As with the above command-line examples, you can specify a more explicit " -"version qualifier. Assuming you have Python 2.6 installed, try changing the " -"first line to ``#! python2.6`` and you should find the 2.6 version " -"information printed." +"Re-executing the command should now print the latest Python 3.x information. As " +"with the above command-line examples, you can specify a more explicit version " +"qualifier. Assuming you have Python 2.6 installed, try changing the first line " +"to ``#! python2.6`` and you should find the 2.6 version information printed." msgstr "" +"La nouvelle exécution de la commande doit maintenant imprimer les dernières " +"informations de Python 3.x. Comme pour les exemples de ligne de commande ci-" +"dessus, vous pouvez spécifier un qualificateur de version plus explicite. En " +"supposant que vous avez installé Python 2.6, essayez de changer la première " +"ligne à ``#! python2.6`` et vous devriez trouver les informations de version 2.6 " +"imprimées." #: ../Doc/using/windows.rst:716 msgid "" -"Note that unlike interactive use, a bare \"python\" will use the latest " -"version of Python 2.x that you have installed. This is for backward " -"compatibility and for compatibility with Unix, where the command ``python`` " -"typically refers to Python 2." +"Note that unlike interactive use, a bare \"python\" will use the latest version " +"of Python 2.x that you have installed. This is for backward compatibility and " +"for compatibility with Unix, where the command ``python`` typically refers to " +"Python 2." msgstr "" +"Notez que, contrairement à l'utilisation interactive, un \"python\" nu utilisera " +"la dernière version de Python 2.x que vous avez installé. C'est pour la " +"compatibilité ascendante et pour la compatibilité avec UNIX, où la commande " +"``python`` fait généralement référence à Python 2." #: ../Doc/using/windows.rst:722 msgid "From file associations" -msgstr "" +msgstr "À partir d'associations de fichiers" #: ../Doc/using/windows.rst:724 msgid "" "The launcher should have been associated with Python files (i.e. ``.py``, ``." -"pyw``, ``.pyc`` files) when it was installed. This means that when you " -"double-click on one of these files from Windows explorer the launcher will " -"be used, and therefore you can use the same facilities described above to " -"have the script specify the version which should be used." +"pyw``, ``.pyc`` files) when it was installed. This means that when you double-" +"click on one of these files from Windows explorer the launcher will be used, and " +"therefore you can use the same facilities described above to have the script " +"specify the version which should be used." msgstr "" +"Le lanceur aurait dû être associé à des fichiers Python (des fichiers comme ``." +"py``, ``.pyw``, ``.pyc``) lorsqu'il a été installé. Cela signifie que lorsque " +"vous double-cliquez sur l'un de ces fichiers à partir de l'Explorateur Windows, " +"le lanceur sera utilisé, et donc vous pouvez utiliser les mêmes installations " +"décrites ci-dessus pour que le script spécifie la version qui doit être utilisé." #: ../Doc/using/windows.rst:730 msgid "" -"The key benefit of this is that a single launcher can support multiple " -"Python versions at the same time depending on the contents of the first line." +"The key benefit of this is that a single launcher can support multiple Python " +"versions at the same time depending on the contents of the first line." msgstr "" +"L'avantage principal de ceci est qu'un seul lanceur peut prendre en charge " +"plusieurs versions de Python en même temps en fonction du contenu de la première " +"ligne." #: ../Doc/using/windows.rst:734 msgid "Shebang Lines" -msgstr "" +msgstr "Lignes Shebang" #: ../Doc/using/windows.rst:736 msgid "" -"If the first line of a script file starts with ``#!``, it is known as a " -"\"shebang\" line. Linux and other Unix like operating systems have native " -"support for such lines and they are commonly used on such systems to " -"indicate how a script should be executed. This launcher allows the same " -"facilities to be used with Python scripts on Windows and the examples above " -"demonstrate their use." +"If the first line of a script file starts with ``#!``, it is known as a \"shebang" +"\" line. Linux and other Unix like operating systems have native support for " +"such lines and they are commonly used on such systems to indicate how a script " +"should be executed. This launcher allows the same facilities to be used with " +"Python scripts on Windows and the examples above demonstrate their use." msgstr "" +"Si la première ligne d'un fichier de script commence par ``#!``, elle est connue " +"sous le nom de ligne \"**shebang**\". Linux et d'autres systèmes basés sur Unix " +"ont une prise en charge native de ces lignes et ils sont couramment utilisés sur " +"ces systèmes pour indiquer comment un script doit être exécuté. Ce lanceur " +"permet aux mêmes installations d'être utilisés avec des scripts Python sur " +"Windows et les exemples ci-dessus démontrent leur utilisation." #: ../Doc/using/windows.rst:743 msgid "" "To allow shebang lines in Python scripts to be portable between Unix and " -"Windows, this launcher supports a number of 'virtual' commands to specify " -"which interpreter to use. The supported virtual commands are:" +"Windows, this launcher supports a number of 'virtual' commands to specify which " +"interpreter to use. The supported virtual commands are:" msgstr "" +"Pour permettre aux lignes **shebang** dans les scripts Python d'être portables " +"entre UNIX et Windows, ce lanceur prend en charge un certain nombre de commandes " +"«virtuelles» pour spécifier l'interpréteur à utiliser. Les commandes virtuelles " +"prises en charge sont :" #: ../Doc/using/windows.rst:747 msgid "``/usr/bin/env python``" -msgstr "" +msgstr "``/usr/bin/env python``" #: ../Doc/using/windows.rst:748 msgid "``/usr/bin/python``" -msgstr "" +msgstr "``/usr/bin/python``" #: ../Doc/using/windows.rst:749 msgid "``/usr/local/bin/python``" -msgstr "" +msgstr "``/usr/local/bin/python``" #: ../Doc/using/windows.rst:750 msgid "``python``" -msgstr "" +msgstr "``python``" #: ../Doc/using/windows.rst:752 msgid "For example, if the first line of your script starts with" -msgstr "" +msgstr "Par exemple, si la première ligne de votre script commence par" #: ../Doc/using/windows.rst:758 msgid "" -"The default Python will be located and used. As many Python scripts written " -"to work on Unix will already have this line, you should find these scripts " -"can be used by the launcher without modification. If you are writing a new " -"script on Windows which you hope will be useful on Unix, you should use one " -"of the shebang lines starting with ``/usr``." +"The default Python will be located and used. As many Python scripts written to " +"work on Unix will already have this line, you should find these scripts can be " +"used by the launcher without modification. If you are writing a new script on " +"Windows which you hope will be useful on Unix, you should use one of the shebang " +"lines starting with ``/usr``." msgstr "" +"Le Python par défaut sera localisé et utilisé. Comme de nombreux scripts Python " +"écrits pour fonctionner sur UNIX auront déjà cette ligne, vous devriez trouver " +"ces scripts peuvent être utilisés par le lanceur sans modification. Si vous " +"écrivez un nouveau script sur Windows et que vous pensez qu'il sera utile sur " +"UNIX, vous devez utiliser l'une des lignes **shebang** commençant par ``usr``." #: ../Doc/using/windows.rst:764 msgid "" "Any of the above virtual commands can be suffixed with an explicit version " -"(either just the major version, or the major and minor version) - for " -"example ``/usr/bin/python2.7`` - which will cause that specific version to " -"be located and used." +"(either just the major version, or the major and minor version) - for example ``/" +"usr/bin/python2.7`` - which will cause that specific version to be located and " +"used." msgstr "" +"L'une des commandes virtuelles ci-dessus peut être suffixée avec une version " +"explicite (soit seulement la version principale, soit la version principale et " +"mineure) -- par exemple ``/usr/bin/python2.7`` -- ce qui entraînera " +"l'utilisation de cette version spécifique." #: ../Doc/using/windows.rst:769 msgid "" "The ``/usr/bin/env`` form of shebang line has one further special property. " "Before looking for installed Python interpreters, this form will search the " "executable :envvar:`PATH` for a Python executable. This corresponds to the " -"behaviour of the Unix ``env`` program, which performs a :envvar:`PATH` " -"search." +"behaviour of the Unix ``env`` program, which performs a :envvar:`PATH` search." msgstr "" +"La forme ``/usr/bin/env`` de ligne ****shebang**** possède une autre propriété " +"spéciale. Avant de rechercher les interprètes Python installés, cette forme " +"recherche :envvar:`PATH` pour un exécutable Python. Cela correspond au " +"comportement du programme Unix `env`, qui effectue une recherche dans :envvar:" +"`PATH`." #: ../Doc/using/windows.rst:775 msgid "Arguments in shebang lines" -msgstr "" +msgstr "Arguments dans les lignes **shebang**" #: ../Doc/using/windows.rst:777 msgid "" -"The shebang lines can also specify additional options to be passed to the " -"Python interpreter. For example, if you have a shebang line:" +"The shebang lines can also specify additional options to be passed to the Python " +"interpreter. For example, if you have a shebang line:" msgstr "" +"Les lignes **shebang** peuvent également spécifier des options supplémentaires à " +"passer à l'interpréteur Python. Par exemple, si vous avez une ligne **shebang** :" #: ../Doc/using/windows.rst:784 msgid "Then Python will be started with the ``-v`` option" -msgstr "" +msgstr "Ensuite, Python sera démarré avec l'option ``-v``" #: ../Doc/using/windows.rst:787 msgid "Customization" -msgstr "" +msgstr "Personnalisation" #: ../Doc/using/windows.rst:790 msgid "Customization via INI files" -msgstr "" +msgstr "Personnalisation via des fichiers INI" #: ../Doc/using/windows.rst:792 msgid "" "Two .ini files will be searched by the launcher - ``py.ini`` in the current " -"user's \"application data\" directory (i.e. the directory returned by " -"calling the Windows function ``SHGetFolderPath`` with " -"``CSIDL_LOCAL_APPDATA``) and ``py.ini`` in the same directory as the " -"launcher. The same .ini files are used for both the 'console' version of the " -"launcher (i.e. py.exe) and for the 'windows' version (i.e. pyw.exe)." -msgstr "" +"user's \"application data\" directory (i.e. the directory returned by calling " +"the Windows function ``SHGetFolderPath`` with ``CSIDL_LOCAL_APPDATA``) and ``py." +"ini`` in the same directory as the launcher. The same .ini files are used for " +"both the 'console' version of the launcher (i.e. py.exe) and for the 'windows' " +"version (i.e. pyw.exe)." +msgstr "" +"Deux fichiers ``.ini`` seront recherchés par le lanceur -- ``py. ini`` dans le " +"répertoire \"Application Data\" de l'utilisateur actuel (c'est-à-dire le " +"répertoire retourné en appelant la fonction Windows ``SHGetFolderPath`` avec " +"``CSIDL_LOCAL_APPDATA``) et ``py. ini`` dans le même répertoire que le lanceur. " +"Les mêmes fichiers ``.ini`` sont utilisés à la fois pour la version \"console\" " +"du lanceur (c'est-à-dire ``py.exe``) et pour la version \"Windows\" (c'est-à-" +"dire ``pyw.exe``)." #: ../Doc/using/windows.rst:799 msgid "" -"Customization specified in the \"application directory\" will have " -"precedence over the one next to the executable, so a user, who may not have " -"write access to the .ini file next to the launcher, can override commands in " -"that global .ini file." +"Customization specified in the \"application directory\" will have precedence " +"over the one next to the executable, so a user, who may not have write access to " +"the .ini file next to the launcher, can override commands in that global .ini " +"file." msgstr "" +"La personnalisation spécifiée dans le \"répertoire de l'application\" aura la " +"priorité sur celle à côté de l'exécutable, de sorte qu'un utilisateur, qui peut " +"ne pas avoir accès en écriture au fichier ``.ini`` à côté du lanceur, peut " +"substituer des commandes dans ce fichier ``.ini`` global)" #: ../Doc/using/windows.rst:804 msgid "Customizing default Python versions" -msgstr "" +msgstr "Personnalisation des versions Python par défaut" #: ../Doc/using/windows.rst:806 msgid "" -"In some cases, a version qualifier can be included in a command to dictate " -"which version of Python will be used by the command. A version qualifier " -"starts with a major version number and can optionally be followed by a " -"period ('.') and a minor version specifier. If the minor qualifier is " -"specified, it may optionally be followed by \"-32\" to indicate the 32-bit " -"implementation of that version be used." -msgstr "" +"In some cases, a version qualifier can be included in a command to dictate which " +"version of Python will be used by the command. A version qualifier starts with a " +"major version number and can optionally be followed by a period ('.') and a " +"minor version specifier. If the minor qualifier is specified, it may optionally " +"be followed by \"-32\" to indicate the 32-bit implementation of that version be " +"used." +msgstr "" +"Dans certains cas, un qualificateur de version peut être inclus dans une " +"commande pour dicter quelle version de Python sera utilisée par la commande. Un " +"qualificateur de version commence par un numéro de version majeure et peut " +"éventuellement être suivi d'un point ('.') et d'un spécificateur de version " +"secondaire. Si le qualificatif mineur est spécifié, il peut éventuellement être " +"suivi de \"**-32**\" pour indiquer que l'implémentation de 32 bits de cette " +"version sera utilisée." #: ../Doc/using/windows.rst:813 msgid "" -"For example, a shebang line of ``#!python`` has no version qualifier, while " -"``#!python3`` has a version qualifier which specifies only a major version." +"For example, a shebang line of ``#!python`` has no version qualifier, while ``#!" +"python3`` has a version qualifier which specifies only a major version." msgstr "" +"Par exemple, une ligne **shebang** de ``#! python`` n'a pas de qualificateur de " +"version, tandis que ``#! python3`` a un qualificateur de version qui ne spécifie " +"qu'une version majeure." #: ../Doc/using/windows.rst:816 msgid "" "If no version qualifiers are found in a command, the environment variable " -"``PY_PYTHON`` can be set to specify the default version qualifier - the " -"default value is \"2\". Note this value could specify just a major version " -"(e.g. \"2\") or a major.minor qualifier (e.g. \"2.6\"), or even major." -"minor-32." +"``PY_PYTHON`` can be set to specify the default version qualifier - the default " +"value is \"2\". Note this value could specify just a major version (e.g. \"2\") " +"or a major.minor qualifier (e.g. \"2.6\"), or even major.minor-32." msgstr "" +"Si aucun qualificateur de version n'est trouvé dans une commande, la variable " +"d'environnement ``PY_PYTHON`` peut être définie pour spécifier le qualificateur " +"de version par défaut -- la valeur par défaut est \"2\". Notez que cette valeur " +"peut spécifier uniquement une version majeure (par exemple \"2\") ou un " +"qualificatif ``majeur.minor`` (par ex. \"2.6\"), ou même ``major.minor-32``." #: ../Doc/using/windows.rst:821 msgid "" "If no minor version qualifiers are found, the environment variable " -"``PY_PYTHON{major}`` (where ``{major}`` is the current major version " -"qualifier as determined above) can be set to specify the full version. If no " -"such option is found, the launcher will enumerate the installed Python " -"versions and use the latest minor release found for the major version, which " -"is likely, although not guaranteed, to be the most recently installed " -"version in that family." -msgstr "" +"``PY_PYTHON{major}`` (where ``{major}`` is the current major version qualifier " +"as determined above) can be set to specify the full version. If no such option " +"is found, the launcher will enumerate the installed Python versions and use the " +"latest minor release found for the major version, which is likely, although not " +"guaranteed, to be the most recently installed version in that family." +msgstr "" +"Si aucun qualificateur de version mineure n'est trouvé, la variable " +"d'environnement ``PY_PYTHON{major}`` (où ``{major}`` est le qualificateur de " +"version principale actuelle tel que déterminé ci-dessus) peut être définie pour " +"spécifier la version complète. Si aucune option de ce type n'est trouvée, le " +"lanceur énumérera les versions de Python installées et utilisera la dernière " +"version mineure trouvée pour la version principale, qui est probablement, bien " +"que non garantie, la plus récemment installée dans cette famille." #: ../Doc/using/windows.rst:829 msgid "" -"On 64-bit Windows with both 32-bit and 64-bit implementations of the same " -"(major.minor) Python version installed, the 64-bit version will always be " -"preferred. This will be true for both 32-bit and 64-bit implementations of " -"the launcher - a 32-bit launcher will prefer to execute a 64-bit Python " -"installation of the specified version if available. This is so the behavior " -"of the launcher can be predicted knowing only what versions are installed on " -"the PC and without regard to the order in which they were installed (i.e., " -"without knowing whether a 32 or 64-bit version of Python and corresponding " -"launcher was installed last). As noted above, an optional \"-32\" suffix can " -"be used on a version specifier to change this behaviour." -msgstr "" +"On 64-bit Windows with both 32-bit and 64-bit implementations of the same (major." +"minor) Python version installed, the 64-bit version will always be preferred. " +"This will be true for both 32-bit and 64-bit implementations of the launcher - a " +"32-bit launcher will prefer to execute a 64-bit Python installation of the " +"specified version if available. This is so the behavior of the launcher can be " +"predicted knowing only what versions are installed on the PC and without regard " +"to the order in which they were installed (i.e., without knowing whether a 32 or " +"64-bit version of Python and corresponding launcher was installed last). As " +"noted above, an optional \"-32\" suffix can be used on a version specifier to " +"change this behaviour." +msgstr "" +"Sur Windows 64-bits avec les implémentations 32-bits et 64-bits de la même " +"version Python (``major.minor``) installée, la version 64-bit sera toujours " +"préférée. Cela sera vrai pour les implémentations 32-bits et 64-bits du lanceur " +"-- un lanceur 32-bits préférera exécuter une installation Python de 64-bits de " +"la version spécifiée si elle est disponible. C'est ainsi que le comportement du " +"lanceur peut être prédit en sachant seulement quelles versions sont installées " +"sur le PC et sans tenir compte de l'ordre dans lequel ils ont été installés (i." +"e., sans savoir si une version 32 ou 64-bit de Python et le lanceur " +"correspondant a été installé en dernier). Comme indiqué ci-dessus, un suffixe " +"optionnel \"**-32**\" peut être utilisé sur un spécificateur de version pour " +"modifier ce comportement." #: ../Doc/using/windows.rst:840 msgid "Examples:" @@ -1340,22 +1787,29 @@ msgstr "Exemples : ::" #: ../Doc/using/windows.rst:842 msgid "" -"If no relevant options are set, the commands ``python`` and ``python2`` will " -"use the latest Python 2.x version installed and the command ``python3`` will " -"use the latest Python 3.x installed." +"If no relevant options are set, the commands ``python`` and ``python2`` will use " +"the latest Python 2.x version installed and the command ``python3`` will use the " +"latest Python 3.x installed." msgstr "" +"Si aucune option pertinente n'est définie, les commandes ``python`` et " +"``python2`` utiliseront la dernière version de Python 2.x installée et la " +"commande ``python3`` utilisera le dernier Python 3.x installé." #: ../Doc/using/windows.rst:846 msgid "" -"The commands ``python3.1`` and ``python2.7`` will not consult any options at " -"all as the versions are fully specified." +"The commands ``python3.1`` and ``python2.7`` will not consult any options at all " +"as the versions are fully specified." msgstr "" +"Les commandes ``python3.1`` et ``python2.7`` ne consultent aucune option du tout " +"car les versions sont entièrement spécifiées." #: ../Doc/using/windows.rst:849 msgid "" -"If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use " -"the latest installed Python 3 version." +"If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use the " +"latest installed Python 3 version." msgstr "" +"Si ``PY_PYTHON=3``, les commandes ``python`` et ``python3`` utiliseront la " +"dernière version de Python 3 installée." #: ../Doc/using/windows.rst:852 msgid "" @@ -1364,190 +1818,278 @@ msgid "" "installed Python (PY_PYTHON was not considered at all as a major version was " "specified.)" msgstr "" +"Si ``PY_PYTHON=3.1-32``, la commande ``python`` utilisera l'implémentation 32-" +"bits de 3.1 alors que la commande ``python3`` utilisera le dernier Python " +"installé (**PY_PYTHON** n'a pas été considéré du tout comme une version majeure " +"a été spécifiée.)" #: ../Doc/using/windows.rst:857 msgid "" "If ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1``, the commands ``python`` and " "``python3`` will both use specifically 3.1" msgstr "" +"Si ``PY_PYTHON=3`` et ``PY_PYTHON3=3.1``, les commandes ``python`` et " +"``python3`` utiliseront spécifiquement 3.1" #: ../Doc/using/windows.rst:860 msgid "" "In addition to environment variables, the same settings can be configured in " "the .INI file used by the launcher. The section in the INI file is called " -"``[defaults]`` and the key name will be the same as the environment " -"variables without the leading ``PY_`` prefix (and note that the key names in " -"the INI file are case insensitive.) The contents of an environment variable " -"will override things specified in the INI file." -msgstr "" +"``[defaults]`` and the key name will be the same as the environment variables " +"without the leading ``PY_`` prefix (and note that the key names in the INI file " +"are case insensitive.) The contents of an environment variable will override " +"things specified in the INI file." +msgstr "" +"En plus des variables d'environnement, les mêmes paramètres peuvent être " +"configurés dans le ``.INI`` utilisé par le lanceur. La section dans le fichier " +"INI est appelée ``[defaults]`` et le nom de la clé sera le même que les " +"variables d'environnement sans le préfixe ``PY_`` principal (et notez que les " +"noms de clés dans le fichier **INI** sont insensibles à la case.) Le contenu " +"d'une variable d'environnement remplacera les éléments spécifiés dans le fichier " +"**INI**." #: ../Doc/using/windows.rst:867 msgid "For example:" -msgstr "Par exemple ::" +msgstr "Par exemple :" #: ../Doc/using/windows.rst:869 msgid "Setting ``PY_PYTHON=3.1`` is equivalent to the INI file containing:" -msgstr "" +msgstr "Le paramètre ``PY_PYTHON=3.1`` équivaut au fichier **INI** contenant :" #: ../Doc/using/windows.rst:876 msgid "" "Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1`` is equivalent to the INI file " "containing:" msgstr "" +"Le paramètre ``PY_PYTHON=3`` et ``PY_PYTHON3=3.1`` équivaut au fichier **INI** " +"contenant :" #: ../Doc/using/windows.rst:886 msgid "Diagnostics" -msgstr "" +msgstr "Diagnostics" #: ../Doc/using/windows.rst:888 msgid "" "If an environment variable ``PYLAUNCH_DEBUG`` is set (to any value), the " "launcher will print diagnostic information to stderr (i.e. to the console). " "While this information manages to be simultaneously verbose *and* terse, it " -"should allow you to see what versions of Python were located, why a " -"particular version was chosen and the exact command-line used to execute the " -"target Python." +"should allow you to see what versions of Python were located, why a particular " +"version was chosen and the exact command-line used to execute the target Python." msgstr "" +"Si une variable d'environnement ``PYLAUNCH_DEBUG`` est définie (à n'importe " +"quelle valeur), le lanceur imprimera des informations de diagnostic sur " +"**stderr** (c'est-à-dire sur la console). Bien que ces informations parviennent " +"à être en même temps ``verbose`` *et* ``laconique``, il devrait vous permettre " +"de voir quelles versions de Python ont été localisées, pourquoi une version " +"particulière a été choisie et la ligne de commande exacte utilisée pour exécuter " +"le Python cible." #: ../Doc/using/windows.rst:900 msgid "Finding modules" -msgstr "" +msgstr "Recherche de modules" #: ../Doc/using/windows.rst:902 msgid "" -"Python usually stores its library (and thereby your site-packages folder) in " -"the installation directory. So, if you had installed Python to :file:`C:\\" -"\\Python\\\\`, the default library would reside in :file:`C:\\\\Python\\\\Lib" -"\\\\` and third-party modules should be stored in :file:`C:\\\\Python\\\\Lib" -"\\\\site-packages\\\\`." +"Python usually stores its library (and thereby your site-packages folder) in the " +"installation directory. So, if you had installed Python to :file:`C:\\\\Python\\" +"\\`, the default library would reside in :file:`C:\\\\Python\\\\Lib\\\\` and " +"third-party modules should be stored in :file:`C:\\\\Python\\\\Lib\\\\site-" +"packages\\\\`." msgstr "" +"Python stocke généralement sa bibliothèque (et donc votre dossier ``site-" +"packages``) dans le répertoire d'installation. Donc, si vous aviez installé " +"Python dans :file:`C:\\\\Python\\\\`, la bibliothèque par défaut résiderait " +"dans :file:`C:\\\\Python\\\\Lib\\\\` et les modules tiers devraient être stockés " +"dans :file:`C:\\\\Python\\\\Lib\\\\site-packages\\\\`." #: ../Doc/using/windows.rst:908 msgid "" -"To completely override :data:`sys.path`, create a ``._pth`` file with the " -"same name as the DLL (``python37._pth``) or the executable (``python._pth``) " -"and specify one line for each path to add to :data:`sys.path`. The file " -"based on the DLL name overrides the one based on the executable, which " -"allows paths to be restricted for any program loading the runtime if desired." +"To completely override :data:`sys.path`, create a ``._pth`` file with the same " +"name as the DLL (``python37._pth``) or the executable (``python._pth``) and " +"specify one line for each path to add to :data:`sys.path`. The file based on the " +"DLL name overrides the one based on the executable, which allows paths to be " +"restricted for any program loading the runtime if desired." msgstr "" +"Pour remplacer complètement :data:`sys.path`, créez un fichier ``._pth`` portant " +"le même nom que le DLL (``python37._pth``) ou l'exécutable (``python._pth``) et " +"spécifiez une ligne pour chaque chemin à ajouter à :data:`sys.path`. Le fichier " +"basé sur le nom de la DLL remplace celui basé sur l'exécutable, qui permet aux " +"chemins d'être restreints pour tout programme chargeant le **runtime** si désiré." #: ../Doc/using/windows.rst:914 msgid "" "When the file exists, all registry and environment variables are ignored, " -"isolated mode is enabled, and :mod:`site` is not imported unless one line in " -"the file specifies ``import site``. Blank paths and lines starting with " -"``#`` are ignored. Each path may be absolute or relative to the location of " -"the file. Import statements other than to ``site`` are not permitted, and " -"arbitrary code cannot be specified." -msgstr "" +"isolated mode is enabled, and :mod:`site` is not imported unless one line in the " +"file specifies ``import site``. Blank paths and lines starting with ``#`` are " +"ignored. Each path may be absolute or relative to the location of the file. " +"Import statements other than to ``site`` are not permitted, and arbitrary code " +"cannot be specified." +msgstr "" +"Lorsque le fichier existe, toutes les variables de registre et d'environnement " +"sont ignorées, le mode isolé est activé et :mod:`site` n'est pas importé, sauf " +"si une ligne du fichier spécifie ``import site``. Les chemins et les lignes " +"vides commençant par ``#`` sont ignorés. Chaque chemin d'accès peut être absolu " +"ou relatif à l'emplacement du fichier. Les instructions d'importation autres que " +"\"site\" ne sont pas autorisées et le code arbitraire ne peut pas être spécifié." #: ../Doc/using/windows.rst:921 msgid "" -"Note that ``.pth`` files (without leading underscore) will be processed " -"normally by the :mod:`site` module when ``import site`` has been specified." +"Note that ``.pth`` files (without leading underscore) will be processed normally " +"by the :mod:`site` module when ``import site`` has been specified." msgstr "" +"Notez que les fichiers ``.pth`` (sans `underscore` précédant le ``pth``) seront " +"traités normalement par le module :mod:`site` lorsque ``import site`` a été " +"spécifié." #: ../Doc/using/windows.rst:924 msgid "" -"When no ``._pth`` file is found, this is how :data:`sys.path` is populated " -"on Windows:" +"When no ``._pth`` file is found, this is how :data:`sys.path` is populated on " +"Windows:" msgstr "" +"Lorsque aucun fichier ``._pth`` n'est trouvé, c'est ainsi que :data:`sys.path` " +"est renseigné sur Windows :" #: ../Doc/using/windows.rst:927 msgid "" -"An empty entry is added at the start, which corresponds to the current " -"directory." +"An empty entry is added at the start, which corresponds to the current directory." msgstr "" +"Une entrée vide est ajoutée au début, qui correspond au répertoire courant." #: ../Doc/using/windows.rst:930 msgid "" -"If the environment variable :envvar:`PYTHONPATH` exists, as described in :" -"ref:`using-on-envvars`, its entries are added next. Note that on Windows, " -"paths in this variable must be separated by semicolons, to distinguish them " -"from the colon used in drive identifiers (``C:\\`` etc.)." +"If the environment variable :envvar:`PYTHONPATH` exists, as described in :ref:" +"`using-on-envvars`, its entries are added next. Note that on Windows, paths in " +"this variable must be separated by semicolons, to distinguish them from the " +"colon used in drive identifiers (``C:\\`` etc.)." msgstr "" +"Si la variable d'environnement :envvar:`PYTHONPATH` existe, comme décrit dans :" +"ref:`using-on-envvars`, ses entrées sont ajoutées ensuite. Notez que sur " +"Windows, les chemins d'accès de cette variable doivent être séparés par des " +"points-virgules, pour les distinguer des deux points utilisés dans les " +"identificateurs de lecteur (``C:\\`` etc.)." #: ../Doc/using/windows.rst:935 msgid "" "Additional \"application paths\" can be added in the registry as subkeys of :" "samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\\\PythonPath` under " -"both the ``HKEY_CURRENT_USER`` and ``HKEY_LOCAL_MACHINE`` hives. Subkeys " -"which have semicolon-delimited path strings as their default value will " -"cause each path to be added to :data:`sys.path`. (Note that all known " -"installers only use HKLM, so HKCU is typically empty.)" -msgstr "" +"both the ``HKEY_CURRENT_USER`` and ``HKEY_LOCAL_MACHINE`` hives. Subkeys which " +"have semicolon-delimited path strings as their default value will cause each " +"path to be added to :data:`sys.path`. (Note that all known installers only use " +"HKLM, so HKCU is typically empty.)" +msgstr "" +"Des \"chemins d'accès d'application\" supplémentaires peuvent être ajoutés dans " +"le registre en tant que sous-clés de :samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore" +"\\\\{version}\\\\PythonPath` sous les ruches ``HKEY_CURRENT_USER`` et " +"``HKEY_LOCAL_MACHINE``. Les sous-clés qui ont des chaînes de chemin délimitées " +"par des points-virgules comme valeur par défaut entraînent l'ajout de chaque " +"chemin d'accès à :data:`sys.path`. (Notez que tous les installateurs connus " +"utilisent seulement HKLM, donc HKCU est généralement vide.)" #: ../Doc/using/windows.rst:942 msgid "" "If the environment variable :envvar:`PYTHONHOME` is set, it is assumed as " -"\"Python Home\". Otherwise, the path of the main Python executable is used " -"to locate a \"landmark file\" (either ``Lib\\os.py`` or ``pythonXY.zip``) to " -"deduce the \"Python Home\". If a Python home is found, the relevant sub-" -"directories added to :data:`sys.path` (``Lib``, ``plat-win``, etc) are based " -"on that folder. Otherwise, the core Python path is constructed from the " -"PythonPath stored in the registry." -msgstr "" +"\"Python Home\". Otherwise, the path of the main Python executable is used to " +"locate a \"landmark file\" (either ``Lib\\os.py`` or ``pythonXY.zip``) to deduce " +"the \"Python Home\". If a Python home is found, the relevant sub-directories " +"added to :data:`sys.path` (``Lib``, ``plat-win``, etc) are based on that " +"folder. Otherwise, the core Python path is constructed from the PythonPath " +"stored in the registry." +msgstr "" +"Si la variable d'environnement :envvar:`PYTHONHOME` est définie, elle est " +"supposée comme \"Python Home\". Sinon, le chemin de l'exécutable principal de " +"Python est utilisé pour localiser un \"fichier de repère\" (soit ``Lib\\os.py`` " +"ou ``pythonXY.zip``) pour déduire le \"Python Home\". Si un \"Python Home\" est " +"trouvée, les sous-répertoires correspondants ajoutés à :data:`sys.path` " +"(``Lib``, ``plat-win``, etc) sont basés sur ce dossier. Sinon, le chemin d'accès " +"Python principal est construit à partir du PythonPath stocké dans le registre." #: ../Doc/using/windows.rst:950 msgid "" -"If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified " -"in the environment, and no registry entries can be found, a default path " -"with relative entries is used (e.g. ``.\\Lib;.\\plat-win``, etc)." +"If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified in " +"the environment, and no registry entries can be found, a default path with " +"relative entries is used (e.g. ``.\\Lib;.\\plat-win``, etc)." msgstr "" +"Si le \"Python Home\" ne peut pas être localisée, :envvar:`PYTHONPATH` n'est pas " +"spécifié dans l'environnement et aucune entrée de registre ne peut être trouvée, " +"un chemin par défaut avec des entrées relatives est utilisé (par exemple ``." +"\\Lib`` ; ``.\\plat-win``, etc.)." #: ../Doc/using/windows.rst:954 msgid "" "If a ``pyvenv.cfg`` file is found alongside the main executable or in the " "directory one level above the executable, the following variations apply:" msgstr "" +"Si un fichier ``pyvenv.cfg`` se trouve à côté de l'exécutable principal ou dans " +"le répertoire un niveau au-dessus de l'exécutable, les variantes suivantes " +"s'appliquent :" #: ../Doc/using/windows.rst:957 msgid "" -"If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this " -"path is used instead of the path to the main executable when deducing the " -"home location." +"If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this path " +"is used instead of the path to the main executable when deducing the home " +"location." msgstr "" +"Si ``home`` est un chemin absolu et :envvar:`PYTHONHOME` n'est pas défini, ce " +"chemin d'accès est utilisé au lieu du chemin d'accès à l'exécutable principal " +"lors de la déduction de l'emplacement du `home`." #: ../Doc/using/windows.rst:961 msgid "The end result of all this is:" -msgstr "" +msgstr "Le résultat final de tout ceci est :" #: ../Doc/using/windows.rst:963 msgid "" -"When running :file:`python.exe`, or any other .exe in the main Python " -"directory (either an installed version, or directly from the PCbuild " -"directory), the core path is deduced, and the core paths in the registry are " -"ignored. Other \"application paths\" in the registry are always read." +"When running :file:`python.exe`, or any other .exe in the main Python directory " +"(either an installed version, or directly from the PCbuild directory), the core " +"path is deduced, and the core paths in the registry are ignored. Other " +"\"application paths\" in the registry are always read." msgstr "" +"Lors de l'exécution de :file:`python.exe`, ou tout autre ``.exe`` dans le " +"répertoire principal de Python (soit une version installée, soit directement à " +"partir du répertoire PCbuild), le chemin principal est déduit et les chemins " +"d'accès principaux dans le Registre sont ignorés. D'autres \"chemins " +"d'application\" dans le Registre sont toujours lus." #: ../Doc/using/windows.rst:968 msgid "" -"When Python is hosted in another .exe (different directory, embedded via " -"COM, etc), the \"Python Home\" will not be deduced, so the core path from " -"the registry is used. Other \"application paths\" in the registry are " -"always read." +"When Python is hosted in another .exe (different directory, embedded via COM, " +"etc), the \"Python Home\" will not be deduced, so the core path from the " +"registry is used. Other \"application paths\" in the registry are always read." msgstr "" +"Lorsque Python est hébergé dans un autre fichier ``.exe`` (répertoire différent, " +"intégré via COM, etc.), le \"Python Home\" ne sera pas déduit, de sorte que le " +"chemin d'accès principal du Registre est utilisé. D'autres \"chemins " +"d'application\" dans le Registre sont toujours lus." #: ../Doc/using/windows.rst:972 msgid "" -"If Python can't find its home and there are no registry value (frozen .exe, " -"some very strange installation setup) you get a path with some default, but " -"relative, paths." +"If Python can't find its home and there are no registry value (frozen .exe, some " +"very strange installation setup) you get a path with some default, but relative, " +"paths." msgstr "" +"Si Python ne peut pas trouver son \"home\" et il n'y a pas de valeur de Registre " +"(``frozen.exe``, une installation très étrange) vous obtenez un chemin d'accès " +"avec certains chemins par défaut, mais relatif." #: ../Doc/using/windows.rst:976 msgid "" -"For those who want to bundle Python into their application or distribution, " -"the following advice will prevent conflicts with other installations:" +"For those who want to bundle Python into their application or distribution, the " +"following advice will prevent conflicts with other installations:" msgstr "" +"Pour ceux qui veulent **bundle** Python dans leur application ou leur " +"distribution, les conseils suivants empêcheront les conflits avec d'autres " +"installations :" #: ../Doc/using/windows.rst:979 msgid "" -"Include a ``._pth`` file alongside your executable containing the " -"directories to include. This will ignore paths listed in the registry and " -"environment variables, and also ignore :mod:`site` unless ``import site`` is " -"listed." +"Include a ``._pth`` file alongside your executable containing the directories to " +"include. This will ignore paths listed in the registry and environment " +"variables, and also ignore :mod:`site` unless ``import site`` is listed." msgstr "" +"Incluez un fichier ``._pth`` à côté de votre exécutable contenant les " +"répertoires à inclure. Ceci ignorera les chemins répertoriés dans le registre et " +"les variables d'environnement, et ignorera également :mod:`site` à moins que " +"``import site`` soit listé." #: ../Doc/using/windows.rst:984 msgid "" @@ -1555,68 +2097,98 @@ msgid "" "executable, explicitly call :c:func:`Py_SetPath` or (at least) :c:func:" "`Py_SetProgramName` before :c:func:`Py_Initialize`." msgstr "" +"Si vous chargez :file:`python3.dll` ou :file:`python37.dll` dans votre propre " +"exécutable, appelez explicitement :c:func:`Py_SetPath` ou (au moins) :c:func:" +"`Py_SetProgramName` avant :c:func:`Py_Initialize`." #: ../Doc/using/windows.rst:988 msgid "" -"Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` " -"before launching :file:`python.exe` from your application." +"Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` before " +"launching :file:`python.exe` from your application." msgstr "" +"Effacer et/ou écraser :envvar:`PYTHONPATH` et set :envvar:`PYTHONHOME` avant de " +"lancer :file:`python.exe` de votre application." #: ../Doc/using/windows.rst:991 msgid "" -"If you cannot use the previous suggestions (for example, you are a " -"distribution that allows people to run :file:`python.exe` directly), ensure " -"that the landmark file (:file:`Lib\\\\os.py`) exists in your install " -"directory. (Note that it will not be detected inside a ZIP file, but a " -"correctly named ZIP file will be detected instead.)" +"If you cannot use the previous suggestions (for example, you are a distribution " +"that allows people to run :file:`python.exe` directly), ensure that the landmark " +"file (:file:`Lib\\\\os.py`) exists in your install directory. (Note that it will " +"not be detected inside a ZIP file, but a correctly named ZIP file will be " +"detected instead.)" msgstr "" +"Si vous ne pouvez pas utiliser les suggestions précédentes (par exemple, vous " +"êtes une distribution qui permet aux gens d'exécuter :file:`python.exe` " +"directement), assurez-vous que le fichier **Landmark** (:file:`Lib\\\\os.py`) " +"existe dans votre répertoire d'installation. (Notez qu'il ne sera pas détecté à " +"l'intérieur d'un fichier ZIP, mais un fichier ZIP correctement nommé sera " +"détecté à la place.)" #: ../Doc/using/windows.rst:997 msgid "" "These will ensure that the files in a system-wide installation will not take " -"precedence over the copy of the standard library bundled with your " -"application. Otherwise, your users may experience problems using your " -"application. Note that the first suggestion is the best, as the others may " -"still be susceptible to non-standard paths in the registry and user site-" -"packages." -msgstr "" +"precedence over the copy of the standard library bundled with your application. " +"Otherwise, your users may experience problems using your application. Note that " +"the first suggestion is the best, as the others may still be susceptible to non-" +"standard paths in the registry and user site-packages." +msgstr "" +"Ceux-ci garantiront que les fichiers d'une installation à l'échelle du système " +"n'auront pas la priorité sur la copie de la bibliothèque standard livrée avec " +"votre application. Sinon, vos utilisateurs pourraient rencontrer des problèmes " +"en utilisant votre application. Notez que la première suggestion est la " +"meilleure, car les autres peuvent encore être sensibles aux chemins non-standard " +"dans le registre et le **site-packages** utilisateur." #: ../Doc/using/windows.rst:1006 msgid "" -"Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv." -"cfg``." +"Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv.cfg``." msgstr "" +"Ajoute le support de fichier ``._pth`` et supprime l'option ``applocal`` de " +"``pyvenv.cfg``." #: ../Doc/using/windows.rst:1008 msgid "" "Adds ``pythonXX.zip`` as a potential landmark when directly adjacent to the " "executable." msgstr "" +"Ajoute ``pythonXX.zip`` comme point de repère potentiel lorsqu'il est " +"directement adjacent à l'exécutable." #: ../Doc/using/windows.rst:1014 msgid "" -"Modules specified in the registry under ``Modules`` (not ``PythonPath``) may " -"be imported by :class:`importlib.machinery.WindowsRegistryFinder`. This " -"finder is enabled on Windows in 3.6.0 and earlier, but may need to be " -"explicitly added to :attr:`sys.meta_path` in the future." +"Modules specified in the registry under ``Modules`` (not ``PythonPath``) may be " +"imported by :class:`importlib.machinery.WindowsRegistryFinder`. This finder is " +"enabled on Windows in 3.6.0 and earlier, but may need to be explicitly added to :" +"attr:`sys.meta_path` in the future." msgstr "" +"Les modules spécifiés dans le Registre sous ``modules`` (pas ``PythonPath``) " +"peuvent être importés par :class:`importlib.machinery.WindowsRegistryFinder`. Ce " +"Finder est activé sur Windows dans 3.6.0 et versions antérieures, mais il " +"pourrait être nécessaire de l'ajouter explicitement à :attr:`sys.meta_path` à " +"l'avenir." #: ../Doc/using/windows.rst:1020 msgid "Additional modules" -msgstr "" +msgstr "Modules supplémentaires" #: ../Doc/using/windows.rst:1022 msgid "" -"Even though Python aims to be portable among all platforms, there are " -"features that are unique to Windows. A couple of modules, both in the " -"standard library and external, and snippets exist to use these features." +"Even though Python aims to be portable among all platforms, there are features " +"that are unique to Windows. A couple of modules, both in the standard library " +"and external, and snippets exist to use these features." msgstr "" +"Même si Python a l'ambition d'être portable parmi toutes les plates-formes, il " +"existe des fonctionnalités propres à Windows. Certains modules, à la fois dans " +"la bibliothèque standard et externe, et des *snippets* existent pour utiliser " +"ces fonctionnalités." #: ../Doc/using/windows.rst:1026 msgid "" "The Windows-specific standard modules are documented in :ref:`mswin-specific-" "services`." msgstr "" +"Les modules standard de Windows sont documentés dans :ref:`mswin-specific-" +"services`." #: ../Doc/using/windows.rst:1030 msgid "PyWin32" @@ -1624,13 +2196,13 @@ msgstr "PyWin32" #: ../Doc/using/windows.rst:1032 msgid "" -"The `PyWin32 `_ module by Mark Hammond is " -"a collection of modules for advanced Windows-specific support. This " -"includes utilities for:" +"The `PyWin32 `_ module by Mark Hammond is a " +"collection of modules for advanced Windows-specific support. This includes " +"utilities for:" msgstr "" -"Le module `PyWin32 `_ de Mark Hammond est " -"une collection de modules pour un support avancé spécifique à Windows. Cela " -"inclut les services pour :" +"Le module `PyWin32 `_ de Mark Hammond est une " +"collection de modules pour un support avancé spécifique à Windows. Cela inclut " +"les services pour :" #: ../Doc/using/windows.rst:1036 msgid "`Component Object Model `_ (COM)" @@ -1646,7 +2218,7 @@ msgstr "Registre" #: ../Doc/using/windows.rst:1039 msgid "Event log" -msgstr "journal d'événement" +msgstr "Journal d'événement" #: ../Doc/using/windows.rst:1040 msgid "" @@ -1658,18 +2230,17 @@ msgstr "" #: ../Doc/using/windows.rst:1043 msgid "" -"`PythonWin `_ is a sample MFC application shipped with PyWin32. " -"It is an embeddable IDE with a built-in debugger." +"`PythonWin `_ is a sample MFC application shipped with PyWin32. It is " +"an embeddable IDE with a built-in debugger." msgstr "" "`PythonWin `_ est une exemple d'application MFC livrée avec PyWin32. " -"Il s'agit d'un IDE embarqué avec débogueur intégré." +"windows/pythonwin/>`_ est un exemple d'application MFC livrée avec PyWin32. Il " +"s'agit d'un IDE embarqué avec débogueur intégré." #: ../Doc/using/windows.rst:1050 -msgid "" -"`Win32 How Do I...? `_" -msgstr "" +msgid "`Win32 How Do I...? `_" +msgstr "`Win32 How Do I...? `_" #: ../Doc/using/windows.rst:1050 msgid "by Tim Golden" @@ -1677,7 +2248,7 @@ msgstr "par Tim Golden" #: ../Doc/using/windows.rst:1052 msgid "`Python and COM `_" -msgstr "" +msgstr "`Python and COM `_" #: ../Doc/using/windows.rst:1053 msgid "by David and Paul Boddie" @@ -1685,16 +2256,21 @@ msgstr "par David et Paul Boddie" #: ../Doc/using/windows.rst:1057 msgid "cx_Freeze" -msgstr "" +msgstr "cx_Freeze" #: ../Doc/using/windows.rst:1059 msgid "" "`cx_Freeze `_ is a :mod:" "`distutils` extension (see :ref:`extending-distutils`) which wraps Python " -"scripts into executable Windows programs (:file:`{*}.exe` files). When you " -"have done this, you can distribute your application without requiring your " -"users to install Python." +"scripts into executable Windows programs (:file:`{*}.exe` files). When you have " +"done this, you can distribute your application without requiring your users to " +"install Python." msgstr "" +"`cx_Freeze `_ est une extension :" +"mod:`distutils` (voir :ref:`extending-distutils`) qui encapsule des scripts " +"Python dans des programmes exécutables Windows (Fichiers :file:`{*}.exe`). " +"Lorsque vous l'avez fait, vous pouvez distribuer votre application sans demander " +"à vos utilisateurs d'installer Python." #: ../Doc/using/windows.rst:1067 msgid "WConio" @@ -1702,16 +2278,22 @@ msgstr "WConio" #: ../Doc/using/windows.rst:1069 msgid "" -"Since Python's advanced terminal handling layer, :mod:`curses`, is " -"restricted to Unix-like systems, there is a library exclusive to Windows as " -"well: Windows Console I/O for Python." +"Since Python's advanced terminal handling layer, :mod:`curses`, is restricted to " +"Unix-like systems, there is a library exclusive to Windows as well: Windows " +"Console I/O for Python." msgstr "" +"Depuis la couche avancée de gestion de terminal de Python, :mod:`curses`, est " +"limité aux systèmes de type UNIX, il existe une bibliothèque exclusive à " +"Windows : *Windows Console I/O for Python*." #: ../Doc/using/windows.rst:1073 msgid "" -"`WConio `_ is a wrapper " -"for Turbo-C's :file:`CONIO.H`, used to create text user interfaces." +"`WConio `_ is a wrapper for " +"Turbo-C's :file:`CONIO.H`, used to create text user interfaces." msgstr "" +"`WConio `_ est un *wrapper* " +"pour les fichiers Turbo-C :file:`CONIO.H`, utilisé pour créer des interfaces " +"texte utilisateur." #: ../Doc/using/windows.rst:1079 msgid "Compiling Python on Windows" @@ -1719,49 +2301,63 @@ msgstr "Compiler Python sous Windows" #: ../Doc/using/windows.rst:1081 msgid "" -"If you want to compile CPython yourself, first thing you should do is get " -"the `source `_. You can download " -"either the latest release's source or just grab a fresh `checkout `_." +"If you want to compile CPython yourself, first thing you should do is get the " +"`source `_. You can download either " +"the latest release's source or just grab a fresh `checkout `_." msgstr "" +"Si vous voulez compiler CPython vous-même, la première chose à faire est obtenir " +"la `source `_. Vous pouvez télécharger " +"soit la source de la dernière version ou tout simplement prendre un `checkout " +"`_." #: ../Doc/using/windows.rst:1086 msgid "" -"The source tree contains a build solution and project files for Microsoft " -"Visual Studio 2015, which is the compiler used to build the official Python " -"releases. These files are in the :file:`PCbuild` directory." +"The source tree contains a build solution and project files for Microsoft Visual " +"Studio 2015, which is the compiler used to build the official Python releases. " +"These files are in the :file:`PCbuild` directory." msgstr "" +"L'arborescence source contient une solution de *build* et des fichiers projet " +"pour Microsoft Visual Studio 2015, qui est le compilateur utilisé pour générer " +"les versions officielles de Python. Ces fichiers se trouvent dans le répertoire :" +"file:`PCbuild`." #: ../Doc/using/windows.rst:1090 msgid "" -"Check :file:`PCbuild/readme.txt` for general information on the build " -"process." +"Check :file:`PCbuild/readme.txt` for general information on the build process." msgstr "" -"Consultez :file:`PC/readme.txt` pour des informations générales sur le " -"processus de construction." +"Consultez :file:`PC/readme.txt` pour des informations générales sur le processus " +"de construction." #: ../Doc/using/windows.rst:1093 msgid "For extension modules, consult :ref:`building-on-windows`." -msgstr "" +msgstr "Pour les modules d'extension, consultez :ref:`building-on-windows`." #: ../Doc/using/windows.rst:1100 msgid "" -"`Python + Windows + distutils + SWIG + gcc MinGW `_" +"`Python + Windows + distutils + SWIG + gcc MinGW `_" msgstr "" +"`Python + Windows + distutils + SWIG + gcc MinGW `_" #: ../Doc/using/windows.rst:1098 msgid "" -"or \"Creating Python extensions in C/C++ with SWIG and compiling them with " -"MinGW gcc under Windows\" or \"Installing Python extension with distutils " -"and without Microsoft Visual C++\" by Sébastien Sauvage, 2003" +"or \"Creating Python extensions in C/C++ with SWIG and compiling them with MinGW " +"gcc under Windows\" or \"Installing Python extension with distutils and without " +"Microsoft Visual C++\" by Sébastien Sauvage, 2003" msgstr "" +"ou \"*Creating Python extensions in C/C++ with SWIG and compiling them with " +"MinGW gcc under Windows*\" ou \"*Installing Python extension with distutils and " +"without Microsoft Visual C++*\" par Sébastien Sauvage, 2003" #: ../Doc/using/windows.rst:1102 msgid "" "`MingW -- Python extensions `_" msgstr "" +"`MingW -- Python extensions `_" #: ../Doc/using/windows.rst:1103 msgid "by Trent Apted et al, 2007" @@ -1769,32 +2365,50 @@ msgstr "par Trent Apted et al, 2007" #: ../Doc/using/windows.rst:1107 msgid "Other Platforms" -msgstr "" +msgstr "Autres plateformes" #: ../Doc/using/windows.rst:1109 msgid "" "With ongoing development of Python, some platforms that used to be supported " -"earlier are no longer supported (due to the lack of users or developers). " -"Check :pep:`11` for details on all unsupported platforms." +"earlier are no longer supported (due to the lack of users or developers). Check :" +"pep:`11` for details on all unsupported platforms." msgstr "" +"Avec le développement continu de Python, certaines plateformes qui étaient " +"auparavant prises en charge ne sont plus prises en charge (en raison du manque " +"d'utilisateurs ou de développeurs). Voir :pep:`11` pour plus de détails sur " +"toutes les plateformes non prises en charge." #: ../Doc/using/windows.rst:1113 msgid "`Windows CE `_ is still supported." msgstr "" +"Les applications écrites en code natif nécessitent souvent une certaine forme de " +"langage de *scripting*, et la distribution Python intégrée peut être utilisée à " +"cette fin. En général, la majorité de l'application est en code natif, et une " +"partie invoquera soit ``python.exe`` ou utilisera directement ``python3.dll``. " +"Dans les deux cas, l'extraction de la distribution intégrée dans un sous-" +"répertoire de l'installation de l'application est suffisante pour fournir un " +"interpréteur Python chargeable." #: ../Doc/using/windows.rst:1114 msgid "" "The `Cygwin `_ installer offers to install the Python " -"interpreter as well (cf. `Cygwin package source `_, `Maintainer " -"releases `_)" +"interpreter as well (cf. `Cygwin package source `_, `Maintainer releases " +"`_)" msgstr "" +"Comme pour l'utilisation de l'application, les paquets peuvent être installés " +"sur n'importe quel emplacement, car il est possible de spécifier des chemins de " +"recherche avant d'initialiser l'interpréteur. Sinon, il n'y a pas de différences " +"fondamentales entre l'utilisation de la distribution embarquée et une " +"installation classique." #: ../Doc/using/windows.rst:1120 msgid "" "See `Python for Windows `_ for " "detailed information about platforms with pre-compiled installers." msgstr "" +"Voir `Python pour Windows `_ pour des " +"instructions détaillées sur les plateformes avec installateurs pré-compilés." #~ msgid "Installing Python" #~ msgstr "Installer Python" @@ -1806,11 +2420,11 @@ msgstr "" #~ msgstr "Autres ressources" #~ msgid "" -#~ "\"Help for Windows Programmers\" by Mark Hammond and Andy Robinson, " -#~ "O'Reilly Media, 2000, ISBN 1-56592-621-8" +#~ "\"Help for Windows Programmers\" by Mark Hammond and Andy Robinson, O'Reilly " +#~ "Media, 2000, ISBN 1-56592-621-8" #~ msgstr "" -#~ "\"Help for Windows Programmers\" de Mark Hammond et Andy Robinson, " -#~ "O'Reilly Media, 2000, ISBN 1-56592-621-8" +#~ "\"Help for Windows Programmers\" de Mark Hammond et Andy Robinson, O'Reilly " +#~ "Media, 2000, ISBN 1-56592-621-8" #~ msgid "by Amanda Birmingham, 2004" #~ msgstr "par Amanda Birmingham, 2004" From f059986827c2f6cf2aef835d75cd90cbb5d18974 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 01:10:49 +0100 Subject: [PATCH 032/121] Proofreading windows.po --- using/windows.po | 2083 +++++++++++++++++++++++----------------------- 1 file changed, 1058 insertions(+), 1025 deletions(-) diff --git a/using/windows.po b/using/windows.po index 9b14e3ccb..e0e736f36 100644 --- a/using/windows.po +++ b/using/windows.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-10-12 18:59+0200\n" -"PO-Revision-Date: 2019-01-11 08:24+0100\n" +"PO-Revision-Date: 2019-02-26 01:10+0100\n" "Language-Team: FRENCH \n" "Language: fr_FR\n" "MIME-Version: 1.0\n" @@ -23,71 +23,73 @@ msgstr "Utilisation de Python sur Windows" #: ../Doc/using/windows.rst:12 msgid "" -"This document aims to give an overview of Windows-specific behaviour you should " -"know about when using Python on Microsoft Windows." +"This document aims to give an overview of Windows-specific behaviour you " +"should know about when using Python on Microsoft Windows." msgstr "" "Ce document a pour but de donner une vue d'ensemble des comportements " -"spécifiques à Windows dont vous devriez être au courant si vous utilisez Python " -"sur Microsoft Windows." +"spécifiques à Windows dont vous devriez être au courant si vous utilisez " +"Python sur Microsoft Windows." #: ../Doc/using/windows.rst:15 msgid "" "Unlike most Unix systems and services, Windows does not include a system " -"supported installation of Python. To make Python available, the CPython team has " -"compiled Windows installers (MSI packages) with every `release `_ for many years. These installers are primarily " -"intended to add a per-user installation of Python, with the core interpreter and " -"library being used by a single user. The installer is also able to install for " -"all users of a single machine, and a separate ZIP file is available for " -"application-local distributions." +"supported installation of Python. To make Python available, the CPython team " +"has compiled Windows installers (MSI packages) with every `release `_ for many years. These installers are " +"primarily intended to add a per-user installation of Python, with the core " +"interpreter and library being used by a single user. The installer is also " +"able to install for all users of a single machine, and a separate ZIP file " +"is available for application-local distributions." msgstr "" "Contrairement à la plupart des systèmes Unix, Windows n'inclut pas " "d'installation de Python par défaut. Pour rendre Python disponible, l’équipe " -"CPython a compilé des installateurs (paquets MSI) pour chaque `release `_ depuis plusieurs années. Ces installateurs " -"sont principalement destinés à une installation par utilisateur de Python, avec " -"l’interpréteur et la bibliothèque standard utilisés par un seul utilisateur. Cet " -"installateur peut aussi installer Python pour tous les utilisateurs sur une " -"seule machine et un fichier ZIP séparé est disponible avec d'autres applications." +"CPython a compilé des installateurs (paquets MSI) pour chaque `release " +"`_ depuis plusieurs années. Ces " +"installateurs sont principalement destinés à une installation par " +"utilisateur de Python, avec l’interpréteur et la bibliothèque standard " +"utilisés par un seul utilisateur. Cet installateur peut aussi installer " +"Python pour tous les utilisateurs sur une seule machine et un fichier ZIP " +"séparé est disponible pour intégrer Python dans d'autres applications." #: ../Doc/using/windows.rst:24 msgid "" "As specified in :pep:`11`, a Python release only supports a Windows platform " -"while Microsoft considers the platform under extended support. This means that " -"Python |version| supports Windows Vista and newer. If you require Windows XP " -"support then please install Python 3.4." +"while Microsoft considers the platform under extended support. This means " +"that Python |version| supports Windows Vista and newer. If you require " +"Windows XP support then please install Python 3.4." msgstr "" -"Comme spécifié dans la :pep:`11`, une *release* Python ne gère qu'une plateforme " -"Windows alors que Microsoft considère la plateforme sous support étendu. Ce qui " -"veut dire que Python |version| supporte Windows Vista et plus. Si vous avez " -"besoin de compatibilité Windows XP, vous devez utiliser Python 3.4." +"Comme spécifié dans la :pep:`11`, une *release* Python ne gère qu'une " +"plateforme Windows alors que Microsoft considère la plateforme sous support " +"étendu. Ce qui veut dire que Python |version| supporte Windows Vista et " +"plus. Si vous avez besoin de compatibilité Windows XP, vous devez utiliser " +"Python 3.4." #: ../Doc/using/windows.rst:29 msgid "" "There are a number of different installers available for Windows, each with " "certain benefits and downsides." msgstr "" -"Il existe un certain nombre d'installateurs différents disponibles pour Windows, " -"chacun avec certains avantages et inconvénients." +"Il existe un certain nombre d'installateurs différents disponibles pour " +"Windows, chacun avec certains avantages et inconvénients." #: ../Doc/using/windows.rst:32 msgid "" ":ref:`windows-full` contains all components and is the best option for " "developers using Python for any kind of project." msgstr "" -":ref:`windows-full` contient tous les composants et est la meilleure option pour " -"les développeurs utilisant Python pour tout type de projet." +":ref:`windows-full` contient tous les composants et est la meilleure option " +"pour les développeurs utilisant Python pour tout type de projet." #: ../Doc/using/windows.rst:35 msgid "" ":ref:`windows-store` is a simple installation of Python that is suitable for " -"running scripts and packages, and using IDLE or other development environments. " -"It requires Windows 10, but can be safely installed without corrupting other " -"programs. It also provides many convenient commands for launching Python and its " -"tools." +"running scripts and packages, and using IDLE or other development " +"environments. It requires Windows 10, but can be safely installed without " +"corrupting other programs. It also provides many convenient commands for " +"launching Python and its tools." msgstr "" ":ref:`windows-store` est une simple installation de Python qui convient à " -"l'exécution de scripts, de paquets et l’utilisation d’IDLE ou d'autres " +"l'exécution de scripts, de paquets et à l’utilisation d’IDLE ou d'autres " "environnements de développement. Il nécessite Windows 10, mais peut être " "installé en toute sécurité sans endommager d'autres programmes. Il fournit " "également de nombreuses commandes pratiques pour lancer Python et ses outils." @@ -95,21 +97,21 @@ msgstr "" #: ../Doc/using/windows.rst:41 msgid "" ":ref:`windows-nuget` are lightweight installations intended for continuous " -"integration systems. It can be used to build Python packages or run scripts, but " -"is not updateable and has no user interface tools." +"integration systems. It can be used to build Python packages or run scripts, " +"but is not updateable and has no user interface tools." msgstr "" ":ref:`windows-nuget` sont des installations légères destinées aux systèmes " -"d'intégration continue. Il peut être utilisé pour créer des packages Python ou " -"exécuter des scripts, mais n'est pas modifiable et n'a pas d'outils d'interface " -"utilisateur." +"d'intégration continue. Ils peuvent être utilisés pour créer des packages " +"Python ou exécuter des scripts, mais ne sont pas modifiables et n'ont pas " +"d'outils d'interface utilisateur." #: ../Doc/using/windows.rst:45 msgid "" -":ref:`windows-embeddable` is a minimal package of Python suitable for embedding " -"into a larger application." +":ref:`windows-embeddable` is a minimal package of Python suitable for " +"embedding into a larger application." msgstr "" ":ref:`windows-embeddable` est un paquet minimal de Python approprié pour " -"l'incorporation dans une plus grande application." +"l'intégration dans une plus grande application." #: ../Doc/using/windows.rst:52 msgid "The full installer" @@ -121,26 +123,26 @@ msgstr "Étapes d'installation" #: ../Doc/using/windows.rst:57 msgid "" -"Four Python |version| installers are available for download - two each for the " -"32-bit and 64-bit versions of the interpreter. The *web installer* is a small " -"initial download, and it will automatically download the required components as " -"necessary. The *offline installer* includes the components necessary for a " -"default installation and only requires an internet connection for optional " -"features. See :ref:`install-layout-option` for other ways to avoid downloading " -"during installation." -msgstr "" -"Quatre installateurs Python |version| sont disponibles au téléchargement -- deux " -"de chaque pour les versions 32-bit et 64-bit de l'interpréteur. L'**installateur " -"web** est léger, et téléchargera automatiquement les composants nécessaires. " -"L'**installateur hors-ligne** inclut les composants nécessaires pour une " -"installation par défaut et n'a besoin d'une connexion internet que pour des " -"fonctionnalités optionnelles. Voir :ref:`install-layout-option` pour d'autres " -"moyens d’éviter des téléchargements durant l'installation." +"Four Python |version| installers are available for download - two each for " +"the 32-bit and 64-bit versions of the interpreter. The *web installer* is a " +"small initial download, and it will automatically download the required " +"components as necessary. The *offline installer* includes the components " +"necessary for a default installation and only requires an internet " +"connection for optional features. See :ref:`install-layout-option` for other " +"ways to avoid downloading during installation." +msgstr "" +"Quatre installateurs Python |version| sont disponibles au téléchargement — " +"deux de chaque pour les versions 32-bit et 64-bit de l'interpréteur. " +"L'**installateur web** est léger, et téléchargera automatiquement les " +"composants nécessaires. L'**installateur hors-ligne** inclut les composants " +"nécessaires pour une installation par défaut et n'a besoin d'une connexion " +"internet que pour des fonctionnalités optionnelles. Voir :ref:`install-" +"layout-option` pour d'autres moyens d’éviter des téléchargements durant " +"l'installation." #: ../Doc/using/windows.rst:65 msgid "After starting the installer, one of two options may be selected:" -msgstr "" -"Après avoir lancé l'installateur, deux options peuvent être sélectionnées :" +msgstr "Après avoir lancé l'installateur, deux options s'affichent :" #: ../Doc/using/windows.rst:69 msgid "If you select \"Install Now\":" @@ -151,9 +153,9 @@ msgid "" "You will *not* need to be an administrator (unless a system update for the C " "Runtime Library is required or you install the :ref:`launcher` for all users)" msgstr "" -"Vous n'aurez *pas* besoin d'avoir les droits d'administrateur (sauf si une mise " -"à jour de la bibliothèque d'exécution C est nécessaire ou si vous installez le :" -"ref:`launcher` pour tous les utilisateurs)" +"Vous n'aurez *pas* besoin d'avoir les droits d'administrateur (sauf si une " +"mise à jour de la bibliothèque d'exécution C est nécessaire ou si vous " +"installez le :ref:`launcher` pour tous les utilisateurs)" #: ../Doc/using/windows.rst:74 msgid "Python will be installed into your user directory" @@ -161,21 +163,22 @@ msgstr "Python sera installé dans votre répertoire utilisateur" #: ../Doc/using/windows.rst:75 msgid "" -"The :ref:`launcher` will be installed according to the option at the bottom of " -"the first page" +"The :ref:`launcher` will be installed according to the option at the bottom " +"of the first page" msgstr "" "Le :ref:`launcher` sera installé suivant l'option en bas de la première page" #: ../Doc/using/windows.rst:77 msgid "The standard library, test suite, launcher and pip will be installed" msgstr "" -"La bibliothèque standard, la suite de tests, le lanceur et *pip* seront installés" +"La bibliothèque standard, la suite de tests, le lanceur et *pip* seront " +"installés" #: ../Doc/using/windows.rst:78 msgid "If selected, the install directory will be added to your :envvar:`PATH`" msgstr "" -"Si l'option est cochée, le dossier d'installation sera ajouté à votre :envvar:" -"`PATH`" +"Si l'option est cochée, le dossier d'installation sera ajouté à votre :" +"envvar:`PATH`" #: ../Doc/using/windows.rst:79 msgid "Shortcuts will only be visible for the current user" @@ -183,20 +186,21 @@ msgstr "Les raccourcis ne seront visibles que pour l'utilisateur actuel" #: ../Doc/using/windows.rst:81 msgid "" -"Selecting \"Customize installation\" will allow you to select the features to " -"install, the installation location and other options or post-install actions. To " -"install debugging symbols or binaries, you will need to use this option." +"Selecting \"Customize installation\" will allow you to select the features " +"to install, the installation location and other options or post-install " +"actions. To install debugging symbols or binaries, you will need to use this " +"option." msgstr "" -"Sélectionner \"Personnaliser l'installation\" (``Customize installation``) vous " -"permettra de sélectionner les fonctionnalités à installer, le chemin " +"Sélectionner \"Personnaliser l'installation\" (``Customize installation``) " +"vous permettra de sélectionner les fonctionnalités à installer, le chemin " "d'installation et d'autres options ou des options post-installation. Pour " "installer des binaires ou symboles de débogage, vous devrez utiliser cette " "option." #: ../Doc/using/windows.rst:85 msgid "" -"To perform an all-users installation, you should select \"Customize installation" -"\". In this case:" +"To perform an all-users installation, you should select \"Customize " +"installation\". In this case:" msgstr "" "Pour effectuer une installation pour tous les utilisateurs, vous devez " "sélectionner \"Personnaliser l'installation\". Dans ce cas :" @@ -217,7 +221,8 @@ msgstr "Le :ref:`launcher` sera installé dans le dossier *Windows*" #: ../Doc/using/windows.rst:91 msgid "Optional features may be selected during installation" msgstr "" -"Des fonctionnalités optionnelles peuvent être sélectionnées durant l'installation" +"Des fonctionnalités optionnelles peuvent être sélectionnées durant " +"l'installation" #: ../Doc/using/windows.rst:92 msgid "The standard library can be pre-compiled to bytecode" @@ -227,7 +232,8 @@ msgstr "La bibliothèque standard peut être pré-compilée en *bytecode*" msgid "" "If selected, the install directory will be added to the system :envvar:`PATH`" msgstr "" -"Si sélectionné, le chemin d'installation sera ajouté au :envvar:`PATH` système" +"Si sélectionné, le chemin d'installation sera ajouté au :envvar:`PATH` " +"système" #: ../Doc/using/windows.rst:94 msgid "Shortcuts are available for all users" @@ -239,18 +245,18 @@ msgstr "Suppression de la limitation `MAX_PATH`" #: ../Doc/using/windows.rst:101 msgid "" -"Windows historically has limited path lengths to 260 characters. This meant that " -"paths longer than this would not resolve and errors would result." +"Windows historically has limited path lengths to 260 characters. This meant " +"that paths longer than this would not resolve and errors would result." msgstr "" -"Historiquement, Windows a limité la taille des chemins à 260 caractères. Cela " -"veut dire que les chemins plus longs que cette limite ne seraient pas résolus, " -"et seraient une cause d'erreurs." +"Historiquement les chemins sous Windows étaient limités 260 caractères. Cela " +"impliquait que les chemins plus longs n'étaient pas résolus, et seraient une " +"cause d'erreurs." #: ../Doc/using/windows.rst:104 msgid "" "In the latest versions of Windows, this limitation can be expanded to " -"approximately 32,000 characters. Your administrator will need to activate the " -"\"Enable Win32 long paths\" group policy, or set the registry value " +"approximately 32,000 characters. Your administrator will need to activate " +"the \"Enable Win32 long paths\" group policy, or set the registry value " "``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control" "\\FileSystem@LongPathsEnabled`` to ``1``." msgstr "" @@ -262,22 +268,22 @@ msgstr "" #: ../Doc/using/windows.rst:110 msgid "" -"This allows the :func:`open` function, the :mod:`os` module and most other path " -"functionality to accept and return paths longer than 260 characters when using " -"strings. (Use of bytes as paths is deprecated on Windows, and this feature is " -"not available when using bytes.)" +"This allows the :func:`open` function, the :mod:`os` module and most other " +"path functionality to accept and return paths longer than 260 characters " +"when using strings. (Use of bytes as paths is deprecated on Windows, and " +"this feature is not available when using bytes.)" msgstr "" -"Ceci permet à la fonction :func:`open`, le module :mod:`os` et la plupart des " -"autres fonctionnalités utilisant des chemins d'accepter et de renvoyer des " -"chemins plus longs que 260 caractères quand vous utilisez des chaînes. " -"(L'utilisation de `bytes` en chemins est obsolète sur Windows, et cette " -"fonctionnalité n'est pas disponible quand vous utilisez des `bytes`.)" +"Ceci permet à la fonction :func:`open`, le module :mod:`os` et la plupart " +"des autres fonctionnalités utilisant des chemins d'accepter et de renvoyer " +"des chemins plus longs que 260 caractères quand vous utilisez des chaînes. " +"(L'utilisation de chemins sous forme de `bytes` obsolète sur Windows, et " +"cette fonctionnalité n'est pas disponible quand vous utilisez des `bytes`.)" #: ../Doc/using/windows.rst:115 msgid "After changing the above option, no further configuration is required." msgstr "" -"Après avoir changé l'option si-dessus, aucune configuration supplémentaire n'est " -"requise." +"Après avoir changé l'option si-dessus, aucune configuration supplémentaire " +"n'est requise." #: ../Doc/using/windows.rst:119 msgid "Support for long paths was enabled in Python." @@ -289,40 +295,40 @@ msgstr "Installation sans l'interface utilisateur" #: ../Doc/using/windows.rst:126 msgid "" -"All of the options available in the installer UI can also be specified from the " -"command line, allowing scripted installers to replicate an installation on many " -"machines without user interaction. These options may also be set without " -"suppressing the UI in order to change some of the defaults." +"All of the options available in the installer UI can also be specified from " +"the command line, allowing scripted installers to replicate an installation " +"on many machines without user interaction. These options may also be set " +"without suppressing the UI in order to change some of the defaults." msgstr "" -"Toutes les options disponibles dans l'installateur graphique peuvent aussi être " -"spécifiées dans l'invite de commande, permettant à des installateurs scriptés de " -"répliquer une installation sur plusieurs machines sans interaction humaine. Ces " -"options peuvent aussi être ajoutées sans enlever l'interface graphique pour " -"changer les valeurs par défauts." +"Toutes les options disponibles dans l'installateur graphique peuvent aussi " +"être spécifiées dans l'invite de commande, permettant à des installateurs " +"scriptés de répliquer une installation sur plusieurs machines sans " +"interaction humaine. Ces options peuvent aussi être ajoutées sans enlever " +"l'interface graphique pour changer les valeurs par défauts." #: ../Doc/using/windows.rst:131 msgid "" "To completely hide the installer UI and install Python silently, pass the ``/" -"quiet`` option. To skip past the user interaction but still display progress and " -"errors, pass the ``/passive`` option. The ``/uninstall`` option may be passed to " -"immediately begin removing Python - no prompt will be displayed." +"quiet`` option. To skip past the user interaction but still display progress " +"and errors, pass the ``/passive`` option. The ``/uninstall`` option may be " +"passed to immediately begin removing Python - no prompt will be displayed." msgstr "" "Pour complétement cacher l'interface de l'installateur et installer Python " "silencieusement, passez l'option ``/quiet``. Pour sauter les interactions " "utilisateur mais afficher la progression et les erreurs, passez l'option ``/" -"passive``. L'option ``/uninstall`` peut être passée pour immédiatement démarrer " -"la suppression de Python -- Aucune confirmation ne sera demandée." +"passive``. L'option ``/uninstall`` peut être passée pour immédiatement " +"démarrer la suppression de Python -- Aucune confirmation ne sera demandée." #: ../Doc/using/windows.rst:137 msgid "" -"All other options are passed as ``name=value``, where the value is usually ``0`` " -"to disable a feature, ``1`` to enable a feature, or a path. The full list of " -"available options is shown below." +"All other options are passed as ``name=value``, where the value is usually " +"``0`` to disable a feature, ``1`` to enable a feature, or a path. The full " +"list of available options is shown below." msgstr "" "Toutes les autres options sont passées sous la forme ``name=value``, ou " -"``value`` est usuellement ``0`` pour désactiver une fonctionnalité, ``1`` pour " -"activer une fonctionnalité, ou un chemin. Ci-dessous la liste complète des " -"options." +"``value`` est normalement soit ``0`` pour désactiver une fonctionnalité, " +"soit ``1`` pour activer une fonctionnalité, soit un chemin. Ci-dessous la " +"liste complète des options." #: ../Doc/using/windows.rst:142 msgid "Name" @@ -361,7 +367,7 @@ msgstr "Le dossier d'installation" #: ../Doc/using/windows.rst:146 msgid "Selected based on InstallAllUsers" -msgstr "Sélection basé sur InstallAllUsers" +msgstr "Sélection basée sur InstallAllUsers" #: ../Doc/using/windows.rst:149 msgid "DefaultAllUsersTargetDir" @@ -375,11 +381,11 @@ msgstr "" #: ../Doc/using/windows.rst:149 msgid "" -":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\\\ " -"Python X.Y`" +":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\" +"\\ Python X.Y`" msgstr "" -":file:`%ProgramFiles%\\\\\\ Python X.Y` ou :file:`\\ %ProgramFiles(x86)%\\\\\\ " -"Python X.Y`" +":file:`%ProgramFiles%\\\\\\ Python X.Y` ou :file:`\\ %ProgramFiles(x86)%\\\\" +"\\ Python X.Y`" #: ../Doc/using/windows.rst:154 msgid "DefaultJustForMeTargetDir" @@ -387,15 +393,16 @@ msgstr "DefaultJustForMeTargetDir" #: ../Doc/using/windows.rst:154 msgid "The default install directory for just-for-me installs" -msgstr "Le dossier d'installation par défaut pour des installations juste pour soi" +msgstr "" +"Le dossier d'installation par défaut pour des installations juste pour soi" #: ../Doc/using/windows.rst:154 msgid "" -":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` or :file:`%LocalAppData%\\\\\\ " -"Programs\\\\PythonXY-32`" +":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` or :file:`%LocalAppData%\\" +"\\\\ Programs\\\\PythonXY-32`" msgstr "" -":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` ou :file:`%LocalAppData%\\\\\\ " -"Programs\\\\PythonXY-32`" +":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` ou :file:`%LocalAppData%\\" +"\\\\ Programs\\\\PythonXY-32`" #: ../Doc/using/windows.rst:159 msgid "DefaultCustomTargetDir" @@ -445,17 +452,19 @@ msgid "" "Add install and Scripts directories to :envvar:`PATH` and ``.PY`` to :envvar:" "`PATHEXT`" msgstr "" -"Ajoute les dossiers ``install`` et ``Scripts`` à :envvar:`PATH` et ``.PY`` à :" -"envvar:`PATHEXT`" +"Ajoute les dossiers ``install`` et ``Scripts`` à :envvar:`PATH` et assigne " +"``.PY`` à :envvar:`PATHEXT`" #: ../Doc/using/windows.rst:172 msgid "Shortcuts" msgstr "Shortcuts" #: ../Doc/using/windows.rst:172 -msgid "Create shortcuts for the interpreter, documentation and IDLE if installed." +msgid "" +"Create shortcuts for the interpreter, documentation and IDLE if installed." msgstr "" -"Crée des raccourcis pour l'interpréteur, la documentation et IDLE si installé." +"Crée des raccourcis pour l'interpréteur, la documentation et IDLE si " +"installé." #: ../Doc/using/windows.rst:175 msgid "Include_doc" @@ -577,13 +586,13 @@ msgstr "SimpleInstallDescription" #: ../Doc/using/windows.rst:208 msgid "A custom message to display when the simplified install UI is used." msgstr "" -"Un message personnalisé à afficher quand l'interface d'installation simplifiée " -"est utilisée." +"Un message personnalisé à afficher quand l'interface d'installation " +"simplifiée est utilisée." #: ../Doc/using/windows.rst:212 msgid "" -"For example, to silently install a default, system-wide Python installation, you " -"could use the following command (from an elevated command prompt)::" +"For example, to silently install a default, system-wide Python installation, " +"you could use the following command (from an elevated command prompt)::" msgstr "" "Par exemple, pour installer silencieusement Python sur tout le système, vous " "pourriez utilisez la commande suivante (depuis une invite de commande " @@ -595,34 +604,35 @@ msgid "" "suite, you could provide a shortcut with the following command. This will " "display a simplified initial page and disallow customization::" msgstr "" -"Pour permettre à l'utilisateur d'installer facilement une copie de Python sans " -"la suite de tests, vous pouvez proposer un raccourci avec la commande suivante. " -"Cela affichera une page initiale simplifiée et interdira la personnalisation ::" +"Pour permettre à l'utilisateur d'installer facilement une copie de Python " +"sans la suite de tests, vous pouvez proposer un raccourci avec la commande " +"suivante. Cela affichera une page initiale simplifiée et interdira la " +"personnalisation ::" #: ../Doc/using/windows.rst:224 msgid "" "(Note that omitting the launcher also omits file associations, and is only " -"recommended for per-user installs when there is also a system-wide installation " -"that included the launcher.)" +"recommended for per-user installs when there is also a system-wide " +"installation that included the launcher.)" msgstr "" -"(Notez qu'omettre le lanceur omet aussi les associations de fichiers, et n'est " -"recommandé que pour les installations par utilisateur quand il y a aussi une " -"installation complète sur le système qui a inclus de lanceur.)" +"(Notez qu'omettre le lanceur omet aussi les associations de fichiers, et " +"n'est recommandé que pour les installations par utilisateur quand il y a " +"aussi une installation complète sur le système qui a inclus de lanceur.)" #: ../Doc/using/windows.rst:228 msgid "" -"The options listed above can also be provided in a file named ``unattend.xml`` " -"alongside the executable. This file specifies a list of options and values. When " -"a value is provided as an attribute, it will be converted to a number if " -"possible. Values provided as element text are always left as strings. This " -"example file sets the same options as the previous example:" +"The options listed above can also be provided in a file named ``unattend." +"xml`` alongside the executable. This file specifies a list of options and " +"values. When a value is provided as an attribute, it will be converted to a " +"number if possible. Values provided as element text are always left as " +"strings. This example file sets the same options as the previous example:" msgstr "" -"Les options listées ci-dessus peuvent aussi être passées dans un fichier nommé " -"``unattend.xml`` à côté de l'exécutable. Ce fichier spécifie une liste d'options " -"et de valeurs. Quand une valeur est donnée en tant qu'attribut, elle sera " -"convertie en nombre si possible. Les valeurs données en élément texte sont " -"toujours laissées en tant que chaînes de caractères. Ce fichier d'exemple " -"propose les mêmes options que l'exemple précédent :" +"Les options listées ci-dessus peuvent aussi être passées dans un fichier " +"nommé ``unattend.xml`` à côté de l'exécutable. Ce fichier spécifie une liste " +"d'options et de valeurs. Quand une valeur est donnée en tant qu'attribut, " +"elle sera convertie en nombre si possible. Les valeurs données en élément " +"texte sont toujours laissées en tant que chaînes de caractères. Ce fichier " +"d'exemple propose les mêmes options que l'exemple précédent :" #: ../Doc/using/windows.rst:247 msgid "Installing Without Downloading" @@ -630,37 +640,40 @@ msgstr "Installation sans téléchargement" #: ../Doc/using/windows.rst:249 msgid "" -"As some features of Python are not included in the initial installer download, " -"selecting those features may require an internet connection. To avoid this " -"need, all possible components may be downloaded on-demand to create a complete " -"*layout* that will no longer require an internet connection regardless of the " -"selected features. Note that this download may be bigger than required, but " -"where a large number of installations are going to be performed it is very " -"useful to have a locally cached copy." -msgstr "" -"Comme certaines fonctionnalités de Python ne sont pas inclue dans " -"l'installateur initial, la sélection de certaines de ces fonctionnalités peut " -"demander une connexion Internet. Pour éviter ce besoin, tous les composants " -"nécessaires peuvent être téléchargés à la demande pour créer une *couche* " -"complète qui ne demandera plus de connexion Internet indépendamment des options " -"sélectionnées. Notez que ce téléchargement peut être plus gros que requis, mais " -"là où un grand nombre d'installations vont être faites, il est très utile " -"d'avoir une copie locale." +"As some features of Python are not included in the initial installer " +"download, selecting those features may require an internet connection. To " +"avoid this need, all possible components may be downloaded on-demand to " +"create a complete *layout* that will no longer require an internet " +"connection regardless of the selected features. Note that this download may " +"be bigger than required, but where a large number of installations are going " +"to be performed it is very useful to have a locally cached copy." +msgstr "" +"Comme certaines fonctionnalités de Python ne sont pas incluses dans " +"l'installateur initial, la sélection de certaines de ces fonctionnalités " +"peut demander une connexion Internet. Pour éviter ce besoin, tous les " +"composants nécessaires peuvent être téléchargés à la demande pour créer un " +"installateur complet qui ne demandera plus de connexion Internet " +"indépendamment des options sélectionnées. Notez que ce téléchargement peut " +"être plus gros que nécessaire, mais lorsqu'un un grand nombre " +"d'installations doivent être faites, il est très utile d'avoir une copie " +"locale." #: ../Doc/using/windows.rst:257 msgid "" "Execute the following command from Command Prompt to download all possible " -"required files. Remember to substitute ``python-3.7.0.exe`` for the actual name " -"of your installer, and to create layouts in their own directories to avoid " -"collisions between files with the same name." +"required files. Remember to substitute ``python-3.7.0.exe`` for the actual " +"name of your installer, and to create layouts in their own directories to " +"avoid collisions between files with the same name." msgstr "" -"Exécutez la commande suivante depuis l'invite de commande pour télécharger tous " -"les fichiers requis possible. Rappelez-vous de remplacer ``python-3.7.0.exe`` " -"par le nom actuel de votre installateur, et pour créer des *couches* dans leurs " -"propres dossiers pour éviter les conflits entre fichiers du même nom." +"Exécutez la commande suivante depuis l'invite de commande pour télécharger " +"tous les fichiers requis possibles. Rappelez-vous de remplacer " +"``python-3.7.0.exe`` par le nom actuel de votre installateur, et pour créer " +"des *couches* dans leurs propres dossiers pour éviter les conflits entre " +"fichiers du même nom." #: ../Doc/using/windows.rst:266 -msgid "You may also specify the ``/quiet`` option to hide the progress display." +msgid "" +"You may also specify the ``/quiet`` option to hide the progress display." msgstr "" "Vous pouvez aussi spécifier l'option ``/quiet`` pour masquer la progression." @@ -671,43 +684,44 @@ msgstr "Modification d'une installation" #: ../Doc/using/windows.rst:271 msgid "" "Once Python has been installed, you can add or remove features through the " -"Programs and Features tool that is part of Windows. Select the Python entry and " -"choose \"Uninstall/Change\" to open the installer in maintenance mode." +"Programs and Features tool that is part of Windows. Select the Python entry " +"and choose \"Uninstall/Change\" to open the installer in maintenance mode." msgstr "" -"Une fois que Python a été installé, vous pouvez ajouter ou supprimer des " -"fonctionnalités depuis l'outil `Programs and Features` (Programmes et " -"Fonctionnalités) qui fait partie de Windows. Sélectionnez la ligne `Python` et " -"choisissez \"Uninstall/Change\" (Désinstaller/Modifier) pour ouvrir " -"l'installateur en mode maintenance." +"Une fois Python installé, vous pouvez ajouter ou supprimer des " +"fonctionnalités depuis l'outil Windows *Programs and Features* (Programmes " +"et Fonctionnalités). Sélectionnez la ligne `Python` et choisissez " +"\"Uninstall/Change\" (Désinstaller/Modifier) pour ouvrir l'installateur en " +"mode maintenance." #: ../Doc/using/windows.rst:275 msgid "" -"\"Modify\" allows you to add or remove features by modifying the checkboxes - " -"unchanged checkboxes will not install or remove anything. Some options cannot be " -"changed in this mode, such as the install directory; to modify these, you will " -"need to remove and then reinstall Python completely." +"\"Modify\" allows you to add or remove features by modifying the checkboxes " +"- unchanged checkboxes will not install or remove anything. Some options " +"cannot be changed in this mode, such as the install directory; to modify " +"these, you will need to remove and then reinstall Python completely." msgstr "" -"\"Modify\" vous permets d'ajouter ou d'enlever des fonctionnalités en modifiant " -"les cases à cocher (les cases inchangées n'installeront ou ne supprimeront " -"rien). Certaines options ne peuvent pas être modifiées dans ce mode, comme le " -"dossier d'installation. Pour modifier ces options, vous devrez ré-installer " -"Python entièrement." +"\"Modify\" vous permet d'ajouter ou d'enlever des fonctionnalités en " +"modifiant les cases à cocher (les cases inchangées n'installeront ou ne " +"supprimeront rien). Certaines options ne peuvent pas être modifiées dans ce " +"mode, comme le dossier d'installation. Pour modifier ces options, vous " +"devrez ré-installer Python entièrement." #: ../Doc/using/windows.rst:280 msgid "" -"\"Repair\" will verify all the files that should be installed using the current " -"settings and replace any that have been removed or modified." +"\"Repair\" will verify all the files that should be installed using the " +"current settings and replace any that have been removed or modified." msgstr "" "\"Repair\" vérifiera tous les fichiers qui doivent être installés avec les " -"paramètres actuels et remplacera ceux qui ont étés supprimés ou modifiés." +"paramètres actuels le sont, et remplacera ceux qui ont étés supprimés ou " +"modifiés." #: ../Doc/using/windows.rst:283 msgid "" "\"Uninstall\" will remove Python entirely, with the exception of the :ref:" "`launcher`, which has its own entry in Programs and Features." msgstr "" -"\"Uninstall\" désinstallera Python entièrement, à l'exception du :ref:`launcher` " -"qui à sa propre ligne dans `Programs and Features`." +"\"Uninstall\" désinstallera Python entièrement, à l'exception du :ref:" +"`launcher` qui à sa propre ligne dans *Programs and Features*." #: ../Doc/using/windows.rst:290 msgid "The Microsoft Store package" @@ -716,41 +730,29 @@ msgstr "Le paquet Microsoft Store" #: ../Doc/using/windows.rst:295 msgid "" "The Microsoft Store package is currently considered unstable while its " -"interactions with other tools and other copies of Python are evaluated. While " -"Python itself is stable, this installation method may change its behavior and " -"capabilities during Python 3.7 releases." +"interactions with other tools and other copies of Python are evaluated. " +"While Python itself is stable, this installation method may change its " +"behavior and capabilities during Python 3.7 releases." msgstr "" -"Avec le développement actif de Python, certaines plateformes qui étaient prises " -"en charge par le passé ne le sont plus (dû au manque d'utilisateurs ou de " -"développeurs). Lisez :pep:`11` pour des détails sur toutes les plateformes non " -"prises en charge." #: ../Doc/using/windows.rst:300 msgid "" -"The Microsoft Store package is an easily installable Python interpreter that is " -"intended mainly for interactive use, for example, by students." +"The Microsoft Store package is an easily installable Python interpreter that " +"is intended mainly for interactive use, for example, by students." msgstr "" -"`Windows CE `_ est toujours pris en charge." #: ../Doc/using/windows.rst:303 msgid "" -"To install the package, ensure you have the latest Windows 10 updates and search " -"the Microsoft Store app for \"Python |version|\". Ensure that the app you select " -"is published by the Python Software Foundation, and install it." +"To install the package, ensure you have the latest Windows 10 updates and " +"search the Microsoft Store app for \"Python |version|\". Ensure that the app " +"you select is published by the Python Software Foundation, and install it." msgstr "" -"L'installateur `Cygwin `_ offre d'installer l’interpréteur " -"Python (cf. `Cygwin package source `_, `Maintainer releases `_)" #: ../Doc/using/windows.rst:308 msgid "" "Python will always be available for free on the Microsoft Store. If you are " "asked to pay for it, you have not selected the correct package." msgstr "" -"Voir `Python pour Windows `_ pour des " -"informations détaillées à propos des plateformes avec des installateurs pré-" -"compilés." #: ../Doc/using/windows.rst:311 msgid "" @@ -759,55 +761,57 @@ msgid "" "session by typing ``python``. Further, pip and IDLE may be used by typing " "``pip`` or ``idle``. IDLE can also be found in Start." msgstr "" -"Après l'installation, Python peut être lancé en le trouvant dans le menu " -"Démarrer. Alternativement, il sera disponible à partir de n'importe quelle " -"invite de commande ou session PowerShell en tapant ``python``. De plus, pip et " -"IDLE peuvent être utilisés en tapant ``pip`` ou ``idle`` . IDLE peut également " -"être trouvé dans le menu Démarrer." +"Après l'installation, Python peut être lancé depuis le menu Démarrer. Il est " +"aussi disponible à partir de n'importe quelle invite de commande ou session " +"PowerShell en entrant ``python``. De plus, pip et IDLE peuvent être utilisés " +"en entrant ``pip`` ou ``idle`` . IDLE peut également être trouvé dans le " +"menu Démarrer." #: ../Doc/using/windows.rst:316 msgid "" -"All three commands are also available with version number suffixes, for example, " -"as ``python3.exe`` and ``python3.x.exe`` as well as ``python.exe`` (where ``3." -"x`` is the specific version you want to launch, such as |version|)." -msgstr "" -"Les trois commandes sont également disponibles avec les suffixes de numéro de " -"version, par exemple, ``python3.exe`` et ``python3.x.exe`` ainsi que ``python." -"exe`` (ou ``3.x`` est la version spécifique que vous souhaitez lancer, tel que |" +"All three commands are also available with version number suffixes, for " +"example, as ``python3.exe`` and ``python3.x.exe`` as well as ``python.exe`` " +"(where ``3.x`` is the specific version you want to launch, such as |" "version|)." +msgstr "" +"Les trois commandes sont également disponibles avec les suffixes de numéro " +"de version, par exemple, ``python3.exe`` et ``python3.x.exe`` ainsi que " +"``python.exe`` (ou ``3.x`` est la version spécifique que vous souhaitez " +"lancer, tel que |version|)." #: ../Doc/using/windows.rst:321 msgid "" -"Virtual environments can be created with ``python -m venv`` and activated and " -"used as normal." +"Virtual environments can be created with ``python -m venv`` and activated " +"and used as normal." msgstr "" -"Les environnements virtuels peuvent être créés avec ``python-m venv`` et activés " -"et utilisés normalement." +"Les environnements virtuels peuvent être créés avec ``python -m venv`` et " +"activés et utilisés normalement." #: ../Doc/using/windows.rst:324 msgid "" -"If you have installed another version of Python and added it to your ``PATH`` " -"variable, it will be available as ``python.exe`` rather than the one from the " -"Microsoft Store. To access the new installation, use ``python3.exe`` or " -"``python3.x.exe``." +"If you have installed another version of Python and added it to your " +"``PATH`` variable, it will be available as ``python.exe`` rather than the " +"one from the Microsoft Store. To access the new installation, use ``python3." +"exe`` or ``python3.x.exe``." msgstr "" "Si vous avez installé une autre version de Python et l'avez ajoutée à votre " -"variable ``PATH``, elle sera disponible en tant que ``python. exe`` plutôt que " -"celle de la boutique Microsoft. Pour accéder à la nouvelle installation, " -"utilisez ``python3. exe`` ou ``python3.x.exe``." +"variable d'environnement ``PATH``, elle sera disponible en tant que ``python." +"exe`` plutôt que celle de la boutique Microsoft. Pour accéder à la nouvelle " +"installation, utilisez ``python3.exe`` ou ``python3.x.exe``." #: ../Doc/using/windows.rst:329 msgid "" -"To remove Python, open Settings and use Apps and Features, or else find Python " -"in Start and right-click to select Uninstall. Uninstalling will remove all " -"packages you installed directly into this Python installation, but will not " -"remove any virtual environments" +"To remove Python, open Settings and use Apps and Features, or else find " +"Python in Start and right-click to select Uninstall. Uninstalling will " +"remove all packages you installed directly into this Python installation, " +"but will not remove any virtual environments" msgstr "" -"Pour supprimer Python, ouvrez paramètres et utilisez *Apps and Features* " -"(Applications et Fonctionnalités), ou bien trouvez Python dans le menu Démarrer " -"et cliquez avec le bouton droit pour sélectionner désinstaller. La " -"désinstallation supprimera tous les packages que vous avez installés directement " -"dans cette installation Python, mais ne supprimera aucun environnement virtuel" +"Pour supprimer Python, depuis les paramètres Windows ouvrez *Apps and " +"Features* (Applications et Fonctionnalités), ou bien trouvez Python dans le " +"menu Démarrer et cliquez avec le bouton droit pour sélectionner " +"désinstaller. La désinstallation supprimera tous les paquets que vous avez " +"installé directement dans cette installation Python, mais ne supprimera " +"aucun environnement virtuel" #: ../Doc/using/windows.rst:335 msgid "Known Issues" @@ -815,188 +819,193 @@ msgstr "Problèmes connus" #: ../Doc/using/windows.rst:337 msgid "" -"Currently, the ``py.exe`` launcher cannot be used to start Python when it has " -"been installed from the Microsoft Store." +"Currently, the ``py.exe`` launcher cannot be used to start Python when it " +"has been installed from the Microsoft Store." msgstr "" -"Actuellement, le lanceur ``py. exe`` ne peut pas être utilisé pour démarrer " +"Actuellement, le lanceur ``py.exe`` ne peut pas être utilisé pour démarrer " "Python lorsqu'il a été installé à partir de la boutique Microsoft." #: ../Doc/using/windows.rst:340 msgid "" "Because of restrictions on Microsoft Store apps, Python scripts may not have " "full write access to shared locations such as ``TEMP`` and the registry. " -"Instead, it will write to a private copy. If your scripts must modify the shared " -"locations, you will need to install the full installer." +"Instead, it will write to a private copy. If your scripts must modify the " +"shared locations, you will need to install the full installer." msgstr "" "En raison de restrictions sur les applications Microsoft Store, les scripts " "Python peuvent ne pas avoir un accès en écriture complet aux emplacements " -"partagés tels que ``TEMP`` et le registre. Au lieu de cela, il écrira à une " -"copie privée. Si vos scripts doivent modifier les emplacements partagés, vous " -"devrez installer le programme d'installation complet." +"partagés tels que ``TEMP`` et le registre. Au lieu de cela, il écrira sur " +"une copie privée. Si vos scripts doivent modifier les emplacements partagés, " +"vous devrez installer le programme d'installation complet." #: ../Doc/using/windows.rst:349 msgid "The nuget.org packages" -msgstr "Les paquets nuget.org" +msgstr "Les paquets *nuget.org*" #: ../Doc/using/windows.rst:353 msgid "" -"The nuget.org package is a reduced size Python environment intended for use on " -"continuous integration and build systems that do not have a system-wide install " -"of Python. While nuget is \"the package manager for .NET\", it also works " -"perfectly fine for packages containing build-time tools." +"The nuget.org package is a reduced size Python environment intended for use " +"on continuous integration and build systems that do not have a system-wide " +"install of Python. While nuget is \"the package manager for .NET\", it also " +"works perfectly fine for packages containing build-time tools." msgstr "" -"Le paquet nuget.org est un environnement Python de taille réduite destiné à être " -"utilisé sur des systèmes d'intégration et de génération continus qui n'ont pas " -"d'installation à l'échelle du système de Python. Alors que nuget est “le " -"gestionnaire de package pour .NET”, il fonctionne également parfaitement bien " -"pour les packages contenant des outils de *build-time*." +"Le paquet *nuget.org* est un environnement Python de taille réduite destiné " +"à être utilisé sur des systèmes d'intégration et de génération continus qui " +"n'ont pas Python d'installé. Alors que *nuget* est “le gestionnaire de " +"package pour .NET”, il fonctionne également parfaitement bien pour les " +"packages contenant des outils de *build-time*." #: ../Doc/using/windows.rst:358 msgid "" -"Visit `nuget.org `_ for the most up-to-date information " -"on using nuget. What follows is a summary that is sufficient for Python " -"developers." +"Visit `nuget.org `_ for the most up-to-date " +"information on using nuget. What follows is a summary that is sufficient for " +"Python developers." msgstr "" -"Visitez `nuget.org `_ pour les informations les plus à " -"jour sur l'utilisation de nuget. Ce qui suit est un résumé qui est suffisant " +"Visitez `nuget.org `_ pour les informations les plus " +"à jour sur l'utilisation de *nuget*. Ce qui suit est un résumé suffisant " "pour les développeurs Python." #: ../Doc/using/windows.rst:362 msgid "" -"The ``nuget.exe`` command line tool may be downloaded directly from ``https://" -"aka.ms/nugetclidl``, for example, using curl or PowerShell. With the tool, the " -"latest version of Python for 64-bit or 32-bit machines is installed using::" +"The ``nuget.exe`` command line tool may be downloaded directly from " +"``https://aka.ms/nugetclidl``, for example, using curl or PowerShell. With " +"the tool, the latest version of Python for 64-bit or 32-bit machines is " +"installed using::" msgstr "" -"L'outil de ligne de commande ``nuget.exe`` peut être téléchargé directement à " -"partir de ``https://aka.ms/nugetclidl``, par exemple, à l'aide de curl ou de " -"PowerShell. Avec l'outil, la dernière version de Python pour les machines 64 " -"bits ou 32 bits est installée à l'aide de :" +"L'outil de ligne de commande ``nuget.exe`` peut être téléchargé directement " +"à partir de ``https://aka.ms/nugetclidl``, par exemple, à l'aide de *curl* " +"ou de PowerShell. Avec l'outil, la dernière version de Python pour les " +"machines 64 bits ou 32 bits est installée à l'aide de ::" #: ../Doc/using/windows.rst:370 msgid "" -"To select a particular version, add a ``-Version 3.x.y``. The output directory " -"may be changed from ``.``, and the package will be installed into a " -"subdirectory. By default, the subdirectory is named the same as the package, and " -"without the ``-ExcludeVersion`` option this name will include the specific " -"version installed. Inside the subdirectory is a ``tools`` directory that " -"contains the Python installation::" +"To select a particular version, add a ``-Version 3.x.y``. The output " +"directory may be changed from ``.``, and the package will be installed into " +"a subdirectory. By default, the subdirectory is named the same as the " +"package, and without the ``-ExcludeVersion`` option this name will include " +"the specific version installed. Inside the subdirectory is a ``tools`` " +"directory that contains the Python installation::" msgstr "" -"Pour sélectionner une version particulière, ajoutez un ``-Version 3.x.y``. Le " -"répertoire de sortie peut être de ``.``, et le paquet sera installé dans un sous-" -"répertoire. Par défaut, le sous-répertoire est nommé le même que le paquet, et " -"sans l'option ``-ExcludeVersion``, ce nom inclura la version spécifique " -"installée. À l'intérieur du sous-répertoire se trouve un répertoire ``tools`` " -"qui contient l'installation Python ::" +"Pour sélectionner une version particulière, ajoutez un ``-Version 3.x.y``. " +"Le répertoire d'installation être modifié (de ``.``), et le paquet sera " +"installé dans un sous-répertoire. Par défaut, le sous-répertoire est nommé " +"comme le paquet, et sans l'option ``-ExcludeVersion``, ce nom inclura la " +"version spécifique installée. À l'intérieur du sous-répertoire se trouve un " +"répertoire ``tools`` qui contient l'installation Python ::" #: ../Doc/using/windows.rst:385 msgid "" "In general, nuget packages are not upgradeable, and newer versions should be " -"installed side-by-side and referenced using the full path. Alternatively, delete " -"the package directory manually and install it again. Many CI systems will do " -"this automatically if they do not preserve files between builds." +"installed side-by-side and referenced using the full path. Alternatively, " +"delete the package directory manually and install it again. Many CI systems " +"will do this automatically if they do not preserve files between builds." msgstr "" -"En général, les paquets nuget ne peuvent pas êtres mis à jour et les versions " -"plus récentes doivent être installées côte à côte et référencées à l'aide du " -"chemin d'accès complet. Vous pouvez également supprimer le répertoire du paquet " -"manuellement et l'installer à nouveau. De nombreux systèmes CI le feront " -"automatiquement s'ils ne conservent pas les fichiers entre les builds." +"En général, les paquets *nuget* ne peuvent pas êtres mis à jour et les " +"versions plus récentes doivent être installées côte à côte et référencées à " +"l'aide du chemin d'accès complet. Vous pouvez également supprimer le " +"répertoire du paquet manuellement et l'installer à nouveau. De nombreux " +"systèmes CI le feront automatiquement s'ils ne conservent pas les fichiers " +"entre les builds." #: ../Doc/using/windows.rst:390 msgid "" "Alongside the ``tools`` directory is a ``build\\native`` directory. This " -"contains a MSBuild properties file ``python.props`` that can be used in a C++ " -"project to reference the Python install. Including the settings will " +"contains a MSBuild properties file ``python.props`` that can be used in a C+" +"+ project to reference the Python install. Including the settings will " "automatically use the headers and import libraries in your build." msgstr "" -"À côté du répertoire ``tools`` est un répertoire ``build\\native``. Il contient " -"un fichier de propriétés MSBuild ``python.props`` qui peut être utilisé dans un " -"projet C++ pour référencer l'installation de Python. L'inclusion des paramètres " -"utilisera automatiquement les en-têtes et les bibliothèques d'importation dans " -"votre build." +"À côté du répertoire ``tools`` est un répertoire ``build\\native``. Il " +"contient un fichier de propriétés MSBuild ``python.props`` qui peut être " +"utilisé dans un projet C++ pour référencer l'installation de Python. " +"L'inclusion des paramètres utilisera automatiquement les en-têtes et les " +"bibliothèques d'importation dans votre build." #: ../Doc/using/windows.rst:395 msgid "" -"The package information pages on nuget.org are `www.nuget.org/packages/python " -"`_ for the 64-bit version and `www.nuget." -"org/packages/pythonx86 `_ for the 32-" -"bit version." +"The package information pages on nuget.org are `www.nuget.org/packages/" +"python `_ for the 64-bit version and " +"`www.nuget.org/packages/pythonx86 `_ for the 32-bit version." msgstr "" -"Les pages d’information sur nuget.org sont `www.nuget.org/packages/python " -"`_ pour la version 64 Bits et `www.nuget." -"org/packages/pythonx86 `_ pour la " -"version 32 Bits." +"Les pages d’information sur *nuget.org* sont `www.nuget.org/packages/python " +"`_ pour la version 64 Bits et `www." +"nuget.org/packages/pythonx86 `_ " +"pour la version 32 Bits." #: ../Doc/using/windows.rst:404 msgid "The embeddable package" -msgstr "Le paquet intégré" +msgstr "Le paquet intégrable" #: ../Doc/using/windows.rst:408 msgid "" -"The embedded distribution is a ZIP file containing a minimal Python environment. " -"It is intended for acting as part of another application, rather than being " -"directly accessed by end-users." +"The embedded distribution is a ZIP file containing a minimal Python " +"environment. It is intended for acting as part of another application, " +"rather than being directly accessed by end-users." msgstr "" -"La distribution embarquée est un fichier ZIP contenant un environnement Python " -"minimal. Il est destiné à agir dans le cadre d'une autre application, plutôt que " -"d'être directement accessible par les utilisateurs finaux." +"La distribution embarquée est un fichier ZIP contenant un environnement " +"Python minimal. Il est destiné à agir dans le cadre d'une autre application, " +"plutôt que d'être directement accessible par les utilisateurs finaux." #: ../Doc/using/windows.rst:412 msgid "" -"When extracted, the embedded distribution is (almost) fully isolated from the " -"user's system, including environment variables, system registry settings, and " -"installed packages. The standard library is included as pre-compiled and " -"optimized ``.pyc`` files in a ZIP, and ``python3.dll``, ``python37.dll``, " -"``python.exe`` and ``pythonw.exe`` are all provided. Tcl/tk (including all " -"dependants, such as Idle), pip and the Python documentation are not included." -msgstr "" -"Une fois extrait, la distribution incorporée est (presque) entièrement isolée du " -"système de l'utilisateur, y compris les variables d'environnement, les " -"paramètres du Registre système et les packages installés. La bibliothèque " +"When extracted, the embedded distribution is (almost) fully isolated from " +"the user's system, including environment variables, system registry " +"settings, and installed packages. The standard library is included as pre-" +"compiled and optimized ``.pyc`` files in a ZIP, and ``python3.dll``, " +"``python37.dll``, ``python.exe`` and ``pythonw.exe`` are all provided. Tcl/" +"tk (including all dependants, such as Idle), pip and the Python " +"documentation are not included." +msgstr "" +"Une fois extrait, la distribution integrée est (presque) entièrement isolée " +"du système de l'utilisateur, y compris les variables d'environnement, les " +"paramètres du registre système et les paquets installés. La bibliothèque " "standard est incluse en tant que fichiers pré-compilés et optimisés ``.pyc`` " -"dans un fichier ZIP, et``python3.dll``, ``python37.dll``, ``python.exe`` et " -"``pythonw.exe`` sont tous fournis. Tcl/Tk (y compris tous les dépendants, telles " -"que IDLE), pip et la documentation Python ne sont pas inclus." +"dans un fichier ZIP, et ``python3.dll``, ``python37.dll``, ``python.exe`` et " +"``pythonw.exe`` sont tous fournis. *Tcl/Tk* (y compris tous les dépendants, " +"telles que IDLE), pip et la documentation Python ne sont pas inclus." #: ../Doc/using/windows.rst:421 msgid "" -"The embedded distribution does not include the `Microsoft C Runtime `_ and it is the " +"The embedded distribution does not include the `Microsoft C Runtime `_ and it is the " "responsibility of the application installer to provide this. The runtime may " -"have already been installed on a user's system previously or automatically via " -"Windows Update, and can be detected by finding ``ucrtbase.dll`` in the system " -"directory." +"have already been installed on a user's system previously or automatically " +"via Windows Update, and can be detected by finding ``ucrtbase.dll`` in the " +"system directory." msgstr "" -"La distribution incorporée n'inclut pas le `Microsoft C Runtime `_ et il est de la " -"responsabilité de l'installateur d'application de fournir ceci. Le runtime peut " -"avoir déjà été installé sur le système d'un utilisateur précédemment ou " -"automatiquement via Windows Update, et peut être détecté en trouvant ``ucrtbase." -"dll`` dans le répertoire système." +"responsabilité de l'installateur d'application de le fournir. Le *runtime* " +"peut avoir déjà été installé sur le système d'un utilisateur précédemment ou " +"automatiquement via Windows Update, et peut être détecté en trouvant " +"``ucrtbase.dll`` dans le répertoire système." #: ../Doc/using/windows.rst:428 msgid "" -"Third-party packages should be installed by the application installer alongside " -"the embedded distribution. Using pip to manage dependencies as for a regular " -"Python installation is not supported with this distribution, though with some " -"care it may be possible to include and use pip for automatic updates. In " -"general, third-party packages should be treated as part of the application " -"(\"vendoring\") so that the developer can ensure compatibility with newer " -"versions before providing updates to users." -msgstr "" -"Les packages tiers doivent être installés par le programme d'installation de " -"l'application parallèlement à la distribution embarquée. L'utilisation de pip " -"pour gérer les dépendances comme pour une installation Python régulière n'est " -"pas prise en charge avec cette distribution, mais avec certains soins, il peut " -"être possible d'inclure et d'utiliser pip pour les mises à jour automatiques. En " -"général, les packages tiers doivent être traités dans le cadre de l'application " -"(\"vendoring\") afin que le développeur puisse assurer la compatibilité avec les " -"versions plus récentes avant de fournir des mises à jour aux utilisateurs." +"Third-party packages should be installed by the application installer " +"alongside the embedded distribution. Using pip to manage dependencies as for " +"a regular Python installation is not supported with this distribution, " +"though with some care it may be possible to include and use pip for " +"automatic updates. In general, third-party packages should be treated as " +"part of the application (\"vendoring\") so that the developer can ensure " +"compatibility with newer versions before providing updates to users." +msgstr "" +"Les paquets tiers doivent être installés par le programme d'installation de " +"l'application parallèlement à la distribution embarquée. L'utilisation de " +"pip pour gérer les dépendances comme pour une installation Python régulière " +"n'est pas prise en charge avec cette distribution, mais il reste possible " +"d'inclure et d'utiliser pip pour les mises à jour automatiques. En général, " +"les paquets tiers doivent être traités dans le cadre de l'application " +"(*vendoring*) afin que le développeur puisse assurer la compatibilité avec " +"les versions plus récentes avant de fournir des mises à jour aux " +"utilisateurs." #: ../Doc/using/windows.rst:436 -msgid "The two recommended use cases for this distribution are described below." +msgid "" +"The two recommended use cases for this distribution are described below." msgstr "" -"Les deux cas d'utilisation recommandés pour cette distribution sont décrits ci-" -"dessous." +"Les deux cas d'utilisation recommandés pour cette distribution sont décrits " +"ci-dessous." #: ../Doc/using/windows.rst:439 msgid "Python Application" @@ -1004,97 +1013,101 @@ msgstr "Application Python" #: ../Doc/using/windows.rst:441 msgid "" -"An application written in Python does not necessarily require users to be aware " -"of that fact. The embedded distribution may be used in this case to include a " -"private version of Python in an install package. Depending on how transparent it " -"should be (or conversely, how professional it should appear), there are two " +"An application written in Python does not necessarily require users to be " +"aware of that fact. The embedded distribution may be used in this case to " +"include a private version of Python in an install package. Depending on how " +"transparent it should be (or conversely, how professional it should appear), " +"there are two options." +msgstr "" +"Une application écrite en Python n'exige pas nécessairement que les " +"utilisateurs soient au courant de ce fait. La distribution embarquée peut " +"être utilisée dans ce cas pour inclure une version privée de Python dans un " +"package d'installation. Selon la façon dont il devrait être transparent (ou " +"inversement, à quel point il doit paraître professionnel), il y a deux " "options." -msgstr "" -"Une application écrite en Python n'exige pas nécessairement que les utilisateurs " -"soient au courant de ce fait. La distribution embarquée peut être utilisée dans " -"ce cas pour inclure une version privée de Python dans un package d'installation. " -"Selon la façon dont il devrait être transparent (ou inversement, comment " -"professionnel il devrait apparaître), il y a deux options." #: ../Doc/using/windows.rst:447 msgid "" -"Using a specialized executable as a launcher requires some coding, but provides " -"the most transparent experience for users. With a customized launcher, there are " -"no obvious indications that the program is running on Python: icons can be " -"customized, company and version information can be specified, and file " -"associations behave properly. In most cases, a custom launcher should simply be " -"able to call ``Py_Main`` with a hard-coded command line." +"Using a specialized executable as a launcher requires some coding, but " +"provides the most transparent experience for users. With a customized " +"launcher, there are no obvious indications that the program is running on " +"Python: icons can be customized, company and version information can be " +"specified, and file associations behave properly. In most cases, a custom " +"launcher should simply be able to call ``Py_Main`` with a hard-coded command " +"line." msgstr "" "L'utilisation d'un exécutable spécialisé en tant que lanceur nécessite de la " "programmation, mais fournit l'expérience la plus transparente pour les " -"utilisateurs. Avec un lanceur personnalisé, il n'y a pas d'indications évidentes " -"que le programme s'exécute sur Python : les icônes peuvent être personnalisées, " -"les informations de la société et de la version peuvent être spécifiées, et les " -"associations de fichiers se comportent correctement. Dans la plupart des cas, un " -"lanceur personnalisé devrait simplement pouvoir appeler ``Py_Main`` avec une " -"ligne de commande codée en dur." +"utilisateurs. Avec un lanceur personnalisé, il n'y a pas d'indications " +"évidentes que le programme s'exécute sur Python : les icônes peuvent être " +"personnalisées, les informations de la société et de la version peuvent être " +"spécifiées, et les associations de fichiers se comportent correctement. Dans " +"la plupart des cas, un lanceur personnalisé devrait simplement pouvoir " +"appeler ``Py_Main`` avec une ligne de commande codée en dur." #: ../Doc/using/windows.rst:454 msgid "" "The simpler approach is to provide a batch file or generated shortcut that " -"directly calls the ``python.exe`` or ``pythonw.exe`` with the required command-" -"line arguments. In this case, the application will appear to be Python and not " -"its actual name, and users may have trouble distinguishing it from other running " -"Python processes or file associations." -msgstr "" -"L'approche la plus simple consiste à fournir un fichier batch ou un raccourci " -"généré qui appelle directement le ``python.exe`` ou ``pythonw.exe`` avec les " -"arguments de ligne de commande requis. Dans ce cas, l'application semble être " -"Python et non son nom réel, et les utilisateurs peuvent avoir du mal à le " -"distinguer des autres processus Python en cours d'exécution ou des associations " -"de fichiers." +"directly calls the ``python.exe`` or ``pythonw.exe`` with the required " +"command-line arguments. In this case, the application will appear to be " +"Python and not its actual name, and users may have trouble distinguishing it " +"from other running Python processes or file associations." +msgstr "" +"L'approche la plus simple consiste à fournir un fichier batch ou un " +"raccourci généré qui appelle directement le ``python.exe`` ou ``pythonw." +"exe`` avec les arguments de ligne de commande requis. Dans ce cas, " +"l'application semble être Python et non son nom réel, et les utilisateurs " +"peuvent avoir du mal à le distinguer des autres processus Python en cours " +"d'exécution ou des associations de fichiers." #: ../Doc/using/windows.rst:460 msgid "" -"With the latter approach, packages should be installed as directories alongside " -"the Python executable to ensure they are available on the path. With the " -"specialized launcher, packages can be located in other locations as there is an " -"opportunity to specify the search path before launching the application." +"With the latter approach, packages should be installed as directories " +"alongside the Python executable to ensure they are available on the path. " +"With the specialized launcher, packages can be located in other locations as " +"there is an opportunity to specify the search path before launching the " +"application." msgstr "" -"Avec cette dernière approche, les packages doivent être installés en tant que " -"répertoires à côté de l'exécutable Python pour s'assurer qu'ils sont disponibles " -"sur le chemin. Avec le lanceur spécialisé, les paquets peuvent être localisés " -"dans d'autres emplacements car il y a une possibilité de spécifier le chemin de " -"recherche avant de lancer l'application." +"Avec cette dernière approche, les packages doivent être installés en tant " +"que répertoires à côté de l'exécutable Python pour s'assurer qu'ils soient " +"visibles par Python. Avec le lanceur spécialisé, les paquets peuvent être " +"installés dans d'autres emplacements car il y a une possibilité de spécifier " +"le chemin de recherche avant de lancer l'application." #: ../Doc/using/windows.rst:466 msgid "Embedding Python" -msgstr "Python Embarqué" +msgstr "Embarquer Python" #: ../Doc/using/windows.rst:468 msgid "" "Applications written in native code often require some form of scripting " -"language, and the embedded Python distribution can be used for this purpose. In " -"general, the majority of the application is in native code, and some part will " -"either invoke ``python.exe`` or directly use ``python3.dll``. For either case, " -"extracting the embedded distribution to a subdirectory of the application " -"installation is sufficient to provide a loadable Python interpreter." -msgstr "" -"Les applications écrites en code natif nécessitent souvent une certaine forme de " -"langage de *scripting*, et la distribution Python incorporée peut être utilisée " -"à cette fin. En général, la majorité de l'application est dans le code natif, et " -"une partie sera soit invoquer ``python.exe`` ou utiliser directement ``python3." -"dll``. Dans les deux cas, l'extraction de la distribution incorporée dans un " -"sous-répertoire de l'installation de l'application est suffisante pour fournir " -"un interpréteur Python chargeable." +"language, and the embedded Python distribution can be used for this purpose. " +"In general, the majority of the application is in native code, and some part " +"will either invoke ``python.exe`` or directly use ``python3.dll``. For " +"either case, extracting the embedded distribution to a subdirectory of the " +"application installation is sufficient to provide a loadable Python " +"interpreter." +msgstr "" +"Les applications écrites en code natif nécessitent souvent une certaine " +"forme de langage de *scripting*, et la distribution Python ingégrée peut " +"être utilisée à cette fin. En général, la majorité de l'application est dans " +"le code natif, qui soit invoque ``python.exe`` soit utilise directement " +"``python3.dll``. Dans les deux cas, l'extraction de la distribution intégrée " +"dans un sous-répertoire de l'installation de l'application est suffisante " +"pour fournir un interpréteur Python chargeable." #: ../Doc/using/windows.rst:475 msgid "" -"As with the application use, packages can be installed to any location as there " -"is an opportunity to specify search paths before initializing the interpreter. " -"Otherwise, there is no fundamental differences between using the embedded " -"distribution and a regular installation." +"As with the application use, packages can be installed to any location as " +"there is an opportunity to specify search paths before initializing the " +"interpreter. Otherwise, there is no fundamental differences between using " +"the embedded distribution and a regular installation." msgstr "" -"Comme pour l'utilisation de l'application, les paquets peuvent être installés " -"sur n'importe quel emplacement, car il est possible de spécifier des chemins de " -"recherche avant d'initialiser l'interpréteur. Sinon, il n'y a pas de différences " -"fondamentales entre l'utilisation de la distribution embarquée et une " -"installation régulière." +"Comme pour l'utilisation de l'application, les paquets peuvent être " +"installés sur n'importe quel emplacement, car il est possible de spécifier " +"des chemins de recherche avant d'initialiser l'interpréteur. Sinon, il n'y a " +"pas de différences fondamentales entre l'utilisation de la distribution " +"embarquée et une installation classique." #: ../Doc/using/windows.rst:482 msgid "Alternative bundles" @@ -1102,13 +1115,13 @@ msgstr "Paquets alternatifs" #: ../Doc/using/windows.rst:484 msgid "" -"Besides the standard CPython distribution, there are modified packages including " -"additional functionality. The following is a list of popular versions and their " -"key features:" +"Besides the standard CPython distribution, there are modified packages " +"including additional functionality. The following is a list of popular " +"versions and their key features:" msgstr "" -"À part la distribution standard CPython, il y a des paquets modifiés incluant " -"des fonctionnalités additionnelles. La liste qui suit est une liste de versions " -"populaires et de leurs fonctionnalités clé :" +"À part la distribution standard CPython, il y a des paquets modifiés " +"incluant des fonctionnalités additionnelles. La liste qui suit est une liste " +"de versions populaires et de leurs fonctionnalités principales :" #: ../Doc/using/windows.rst:489 msgid "`ActivePython `_" @@ -1118,7 +1131,7 @@ msgstr "`ActivePython `_" msgid "Installer with multi-platform compatibility, documentation, PyWin32" msgstr "" "Installeur avec une compatibilité multi-plateforme, de la documentation, et " -"`PyWin32`" +"*PyWin32*" #: ../Doc/using/windows.rst:493 msgid "`Anaconda `_" @@ -1126,11 +1139,11 @@ msgstr "`Anaconda `_" #: ../Doc/using/windows.rst:492 msgid "" -"Popular scientific modules (such as numpy, scipy and pandas) and the ``conda`` " -"package manager." +"Popular scientific modules (such as numpy, scipy and pandas) and the " +"``conda`` package manager." msgstr "" -"Des modules scientifiques populaires (comme *numpy*, *scipy* et *pandas*) et le " -"gestionnaire de paquets ``conda``." +"Des modules scientifiques populaires (comme *numpy*, *scipy* et *pandas*) et " +"le gestionnaire de paquets ``conda``." #: ../Doc/using/windows.rst:497 msgid "`Canopy `_" @@ -1141,8 +1154,8 @@ msgid "" "A \"comprehensive Python analysis environment\" with editors and other " "development tools." msgstr "" -"Un \"environnement d'analyse complet Python\" avec des éditeurs et autres outils " -"de développement." +"Un \"environnement d'analyse complet Python\" avec des éditeurs et autres " +"outils de développement." #: ../Doc/using/windows.rst:501 msgid "`WinPython `_" @@ -1150,20 +1163,20 @@ msgstr "`WinPython `_" #: ../Doc/using/windows.rst:500 msgid "" -"Windows-specific distribution with prebuilt scientific packages and tools for " -"building packages." +"Windows-specific distribution with prebuilt scientific packages and tools " +"for building packages." msgstr "" -"Distribution spécifique à Windows avec des paquets scientifiques pré-compilés et " -"des outils pour construire des paquets." +"Distribution spécifique à Windows avec des paquets scientifiques pré-" +"compilés et des outils pour construire des paquets." #: ../Doc/using/windows.rst:503 msgid "" -"Note that these packages may not include the latest versions of Python or other " -"libraries, and are not maintained or supported by the core Python team." +"Note that these packages may not include the latest versions of Python or " +"other libraries, and are not maintained or supported by the core Python team." msgstr "" -"Notez que ces paquets peuvent ne pas inclure la dernière version de Python ou " -"d'autres bibliothèques, et ne sont pas maintenus ni supportés par l'équipe " -"Python **Core**." +"Notez que ces paquets peuvent ne pas inclure la dernière version de Python " +"ou d'autres bibliothèques, et ne sont pas maintenus ni supportés par les " +"*core devs* Python." #: ../Doc/using/windows.rst:509 msgid "Configuring Python" @@ -1171,48 +1184,49 @@ msgstr "Configurer Python" #: ../Doc/using/windows.rst:511 msgid "" -"To run Python conveniently from a command prompt, you might consider changing " -"some default environment variables in Windows. While the installer provides an " -"option to configure the PATH and PATHEXT variables for you, this is only " -"reliable for a single, system-wide installation. If you regularly use multiple " -"versions of Python, consider using the :ref:`launcher`." +"To run Python conveniently from a command prompt, you might consider " +"changing some default environment variables in Windows. While the installer " +"provides an option to configure the PATH and PATHEXT variables for you, this " +"is only reliable for a single, system-wide installation. If you regularly " +"use multiple versions of Python, consider using the :ref:`launcher`." msgstr "" -"Pour exécuter Python commodément à partir d'une invite de commandes, vous pouvez " -"envisager de modifier certaines variables d'environnement par défaut dans " -"Windows. Bien que l'installateur offre une option pour configurer les variables " -"`PATH` et `PATHEXT` pour vous, ce n'est fiable que pour une seule installation à " -"l'échelle du système. Si vous utilisez régulièrement plusieurs versions de " -"Python, pensez à utiliser le :ref:`launcher`." +"Pour exécuter Python confortablement à partir d'une invite de commandes, " +"vous pouvez envisager de modifier certaines variables d'environnement par " +"défaut dans Windows. Bien que l'installateur offre une option pour " +"configurer les variables ``PATH`` et ``PATHEXT`` pour vous, ce n'est fiable " +"que pour une seule installation à l'échelle du système. Si vous utilisez " +"régulièrement plusieurs versions de Python, pensez à utiliser le :ref:" +"`launcher`." #: ../Doc/using/windows.rst:521 msgid "Excursus: Setting environment variables" -msgstr "Excursus: Définition des variables d'environnement" +msgstr "Digression : Définition des variables d'environnement" #: ../Doc/using/windows.rst:523 msgid "" -"Windows allows environment variables to be configured permanently at both the " -"User level and the System level, or temporarily in a command prompt." +"Windows allows environment variables to be configured permanently at both " +"the User level and the System level, or temporarily in a command prompt." msgstr "" -"Windows permet de configurer les variables d'environnement de façon permanente " -"au niveau de l'utilisateur et du système, ou temporairement dans une invite de " -"commandes." +"Windows permet de configurer les variables d'environnement de façon " +"permanente au niveau de l'utilisateur et du système, ou temporairement dans " +"une invite de commandes." #: ../Doc/using/windows.rst:526 msgid "" "To temporarily set environment variables, open Command Prompt and use the :" "command:`set` command:" msgstr "" -"Pour définir temporairement les variables d'environnement, ouvrez l'invite de " -"commandes et utilisez la commande :command:`set` :" +"Pour définir temporairement les variables d'environnement, ouvrez l'invite " +"de commandes et utilisez la commande :command:`set` :" #: ../Doc/using/windows.rst:535 msgid "" -"These changes will apply to any further commands executed in that console, and " -"will be inherited by any applications started from the console." +"These changes will apply to any further commands executed in that console, " +"and will be inherited by any applications started from the console." msgstr "" -"Ces modifications s'appliqueront à toutes les autres commandes exécutées dans " -"cette console et seront héritées par toutes les applications démarrées à partir " -"de cette console." +"Ces modifications s'appliqueront à toutes les autres commandes exécutées " +"dans cette console et seront héritées par toutes les applications démarrées " +"à partir de cette console." #: ../Doc/using/windows.rst:538 msgid "" @@ -1222,48 +1236,49 @@ msgid "" "exe` to the start is a common way to ensure the correct version of Python is " "launched." msgstr "" -"Ceci inclut le nom de la variable dans les signes de pourcentage qui s'étendra à " -"la valeur existante, vous permettant d'ajouter votre nouvelle valeur au début ou " -"à la fin. La modification de :envvar:`PATH` en ajoutant le répertoire contenant :" -"program:`python.exe` au début est un moyen courant de s'assurer que la version " -"correcte de Python est lancée." +"Un nom de variable entre des signes pour cent sera remplacé par sa valeur, " +"vous permettant d'ajouter votre nouvelle valeur au début ou à la fin. " +"Ajouter :program:`python.exe` au début de :envvar:`PATH` est un moyen " +"courant de s'assurer que la version correcte de Python est lancée." #: ../Doc/using/windows.rst:544 msgid "" -"To permanently modify the default environment variables, click Start and search " -"for 'edit environment variables', or open System properties, :guilabel:`Advanced " -"system settings` and click the :guilabel:`Environment Variables` button. In this " -"dialog, you can add or modify User and System variables. To change System " -"variables, you need non-restricted access to your machine (i.e. Administrator " -"rights)." -msgstr "" -"Pour modifier définitivement les variables d'environnement par défaut, cliquez " -"sur Démarrer et recherchez 'modifier les variables d'environnement', ou ouvrez " -"Propriétés Système, :guilabel:`Paramètres Système Avancés` et cliquez sur le " -"bouton :guilabel:`Variables d'Environnement`. Dans cette boîte de dialogue, vous " -"pouvez ajouter ou modifier des variables utilisateurs et systèmes. Pour modifier " -"les variables systèmes, vous avez besoin d'un accès non restreint à votre " -"ordinateur (c'est-à-dire aux droits d'administrateur)." +"To permanently modify the default environment variables, click Start and " +"search for 'edit environment variables', or open System properties, :" +"guilabel:`Advanced system settings` and click the :guilabel:`Environment " +"Variables` button. In this dialog, you can add or modify User and System " +"variables. To change System variables, you need non-restricted access to " +"your machine (i.e. Administrator rights)." +msgstr "" +"Pour modifier définitivement les variables d'environnement par défaut, " +"recherchez « modifier les variables d'environnement », via le menu démarrer, " +"ou ouvrez « Propriétés Système », :guilabel:`Paramètres Système Avancés` et " +"cliquez sur le bouton :guilabel:`Variables d'Environnement`. Dans cette " +"boîte de dialogue, vous pouvez ajouter ou modifier des variables " +"utilisateurs et systèmes. Pour modifier les variables systèmes, vous avez " +"besoin d'un accès non restreint à votre ordinateur (c'est-à-dire aux droits " +"d'administrateur)." #: ../Doc/using/windows.rst:553 msgid "" "Windows will concatenate User variables *after* System variables, which may " "cause unexpected results when modifying :envvar:`PATH`." msgstr "" -"Windows va concaténer les variables utilisateurs *après* les variables systèmes, " -"ce qui peut provoquer des résultats inattendus lors de la modification de :" -"envvar:`PATH`." +"Windows va concaténer les variables utilisateurs *après* les variables " +"systèmes, ce qui peut provoquer des résultats inattendus lors de la " +"modification de :envvar:`PATH`." #: ../Doc/using/windows.rst:556 msgid "" -"The :envvar:`PYTHONPATH` variable is used by all versions of Python 2 and Python " -"3, so you should not permanently configure this variable unless it only includes " -"code that is compatible with all of your installed Python versions." +"The :envvar:`PYTHONPATH` variable is used by all versions of Python 2 and " +"Python 3, so you should not permanently configure this variable unless it " +"only includes code that is compatible with all of your installed Python " +"versions." msgstr "" -"La variable :envvar:`PYTHONPATH` est utilisée par toutes les versions de Python " -"2 et Python 3, vous ne devez donc pas configurer cette variable de façon " -"permanente à moins qu'elle ne comprenne que le code compatible avec toutes les " -"versions de Python installées." +"La variable :envvar:`PYTHONPATH` est utilisée par toutes les versions de " +"Python 2 et Python 3, vous ne devez donc pas configurer cette variable de " +"façon permanente à moins qu'elle ne n'ajoute que du code compatible avec " +"toutes les versions de Python installées." #: ../Doc/using/windows.rst:564 msgid "https://www.microsoft.com/en-us/wdsi/help/folder-variables" @@ -1289,7 +1304,8 @@ msgstr "https://technet.microsoft.com/en-us/library/cc755104.aspx" #: ../Doc/using/windows.rst:570 msgid "The SETX command, for permanently modifying environment variables" msgstr "" -"La commande SETX, pour modifier de façon permanente les variables d'environnement" +"La commande SETX, pour modifier de façon permanente les variables " +"d'environnement" #: ../Doc/using/windows.rst:573 msgid "" @@ -1318,47 +1334,51 @@ msgstr "Trouver l'exécutable Python" #: ../Doc/using/windows.rst:585 msgid "" "Besides using the automatically created start menu entry for the Python " -"interpreter, you might want to start Python in the command prompt. The installer " -"has an option to set that up for you." +"interpreter, you might want to start Python in the command prompt. The " +"installer has an option to set that up for you." msgstr "" "En plus d'utiliser l'entrée du menu Démarrer automatiquement créée pour " "l'interpréteur Python, vous souhaiterez peut-être démarrer Python depuis " -"l'invite de commandes. L'installateur a une option pour installer cela pour vous." +"l'invite de commandes. L'installateur a une option pour installer cela pour " +"vous." #: ../Doc/using/windows.rst:589 msgid "" -"On the first page of the installer, an option labelled \"Add Python to PATH\" " -"may be selected to have the installer add the install location into the :envvar:" -"`PATH`. The location of the :file:`Scripts\\\\` folder is also added. This " -"allows you to type :command:`python` to run the interpreter, and :command:`pip` " -"for the package installer. Thus, you can also execute your scripts with command " -"line options, see :ref:`using-on-cmdline` documentation." -msgstr "" -"Sur la première page de l'installateur, une option intitulée \"Ajouter Python au " -"**PATH**\" peut être sélectionnée pour que l'installateur ajoute l'emplacement " -"d'installation dans le :envvar:`PATH`. L'emplacement du dossier :file:`Scripts\\" -"\\` y est également ajouté. Cela vous permet de taper :command:`Python` pour " -"exécuter l'interpréteur, et :command:`pip` pour l'installateur de paquets. " -"Ainsi, vous pouvez également exécuter vos scripts avec les options de ligne de " -"commande, voir la documentation :ref:`using-on-cmdline`." +"On the first page of the installer, an option labelled \"Add Python to PATH" +"\" may be selected to have the installer add the install location into the :" +"envvar:`PATH`. The location of the :file:`Scripts\\\\` folder is also " +"added. This allows you to type :command:`python` to run the interpreter, " +"and :command:`pip` for the package installer. Thus, you can also execute " +"your scripts with command line options, see :ref:`using-on-cmdline` " +"documentation." +msgstr "" +"Sur la première page de l'installateur, une option intitulée \"Ajouter " +"Python au *PATH*\" peut être sélectionnée pour que l'installateur ajoute " +"l'emplacement d'installation dans le :envvar:`PATH`. L'emplacement du " +"dossier :file:`Scripts\\\\` y est également ajouté. Cela vous permet de " +"taper :command:`Python` pour exécuter l'interpréteur, et :command:`pip` pour " +"l'installateur de paquets. Ainsi, vous pouvez également exécuter vos scripts " +"avec les options de ligne de commande, voir la documentation :ref:`using-on-" +"cmdline`." #: ../Doc/using/windows.rst:596 msgid "" "If you don't enable this option at install time, you can always re-run the " -"installer, select Modify, and enable it. Alternatively, you can manually modify " -"the :envvar:`PATH` using the directions in :ref:`setting-envvars`. You need to " -"set your :envvar:`PATH` environment variable to include the directory of your " -"Python installation, delimited by a semicolon from other entries. An example " -"variable could look like this (assuming the first two entries already existed)::" +"installer, select Modify, and enable it. Alternatively, you can manually " +"modify the :envvar:`PATH` using the directions in :ref:`setting-envvars`. " +"You need to set your :envvar:`PATH` environment variable to include the " +"directory of your Python installation, delimited by a semicolon from other " +"entries. An example variable could look like this (assuming the first two " +"entries already existed)::" msgstr "" "Si vous n'activez pas cette option au moment de l'installation, vous pouvez " -"toujours ré-exécuter l'installateur, sélectionner Modifier et l'activer. Vous " -"pouvez également modifier manuellement le :envvar:`PATH` à l'aide des " +"toujours ré-exécuter l'installateur, sélectionner Modifier et l'activer. " +"Vous pouvez également modifier manuellement le :envvar:`PATH` à l'aide des " "instructions de :ref:`setting-envvars`. Vous devez définir votre variable " -"d'environnement :envvar:`PATH` pour inclure le répertoire de votre installation " -"Python, délimité par un point-virgule des autres entrées. Une variable d'exemple " -"pourrait ressembler à ceci (en supposant que les deux premières entrées " -"existaient déjà) ::" +"d'environnement :envvar:`PATH` pour inclure le répertoire de votre " +"installation Python, délimité par un point-virgule des autres entrées. Une " +"variable d'exemple pourrait ressembler à ceci (en supposant que les deux " +"premières entrées existaient déjà) ::" #: ../Doc/using/windows.rst:609 msgid "Python Launcher for Windows" @@ -1367,26 +1387,26 @@ msgstr "Lanceur Python pour Windows" #: ../Doc/using/windows.rst:613 msgid "" "The Python launcher for Windows is a utility which aids in locating and " -"executing of different Python versions. It allows scripts (or the command-line) " -"to indicate a preference for a specific Python version, and will locate and " -"execute that version." +"executing of different Python versions. It allows scripts (or the command-" +"line) to indicate a preference for a specific Python version, and will " +"locate and execute that version." msgstr "" -"Le lanceur Python pour Windows est un utilitaire qui facilite la localisation et " -"l'exécution de différentes versions de Python. Il permet aux scripts (ou à la " -"ligne de commande) d'indiquer une préférence pour une version Python spécifique, " -"localisera et exécutera cette version." +"Le lanceur Python pour Windows est un utilitaire qui facilite la recherche " +"et l'exécution de différentes versions de Python. Il permet aux scripts (ou " +"à la ligne de commande) d'indiquer une préférence pour une version Python " +"spécifique, cherchera et exécutera cette version." #: ../Doc/using/windows.rst:618 msgid "" -"Unlike the :envvar:`PATH` variable, the launcher will correctly select the most " -"appropriate version of Python. It will prefer per-user installations over system-" -"wide ones, and orders by language version rather than using the most recently " -"installed version." +"Unlike the :envvar:`PATH` variable, the launcher will correctly select the " +"most appropriate version of Python. It will prefer per-user installations " +"over system-wide ones, and orders by language version rather than using the " +"most recently installed version." msgstr "" -"Contrairement à la variable :envvar:`PATH`, le lanceur sélectionne correctement " -"la version la plus appropriée de Python. Il préfère les installations par " -"utilisateur sur celles à l'échelle du système, et les trie par version plutôt " -"que d'utiliser la version la plus récente installée." +"Contrairement à la variable :envvar:`PATH`, le lanceur sélectionne " +"correctement la version la plus appropriée de Python. Il préfère les " +"installations par utilisateur sur celles du système, et les trie par version " +"plutôt que d'utiliser la version la plus récente installée." #: ../Doc/using/windows.rst:623 msgid "The launcher was originally specified in :pep:`397`." @@ -1402,40 +1422,41 @@ msgstr "Depuis la ligne de commande" #: ../Doc/using/windows.rst:633 msgid "" -"System-wide installations of Python 3.3 and later will put the launcher on your :" -"envvar:`PATH`. The launcher is compatible with all available versions of Python, " -"so it does not matter which version is installed. To check that the launcher is " -"available, execute the following command in Command Prompt:" +"System-wide installations of Python 3.3 and later will put the launcher on " +"your :envvar:`PATH`. The launcher is compatible with all available versions " +"of Python, so it does not matter which version is installed. To check that " +"the launcher is available, execute the following command in Command Prompt:" msgstr "" -"Les installations à l'échelle du système de Python 3.3 et ultérieur mettra le " -"lanceur sur votre :envvar:`PATH`. Le lanceur est compatible avec toutes les " -"versions disponibles de Python, de sorte qu'il n'y a pas d'importance quelle " -"version est installée. Pour vérifier que le lanceur est disponible, exécutez la " -"commande suivante dans l'invite de commandes :" +"Les installations systèmes de Python 3.3 et ultérieur mettent le lanceur " +"dans votre :envvar:`PATH`. Le lanceur est compatible avec toutes les " +"versions disponibles de Python, peu importe lesquelles sont installées. Pour " +"vérifier que le lanceur est disponible, exécutez la commande suivante dans " +"l'invite de commandes :" #: ../Doc/using/windows.rst:642 msgid "" -"You should find that the latest version of Python you have installed is started " -"- it can be exited as normal, and any additional command-line arguments " -"specified will be sent directly to Python." +"You should find that the latest version of Python you have installed is " +"started - it can be exited as normal, and any additional command-line " +"arguments specified will be sent directly to Python." msgstr "" -"La dernière version de Python que vous avez installé est démarrée -- il peut " -"être quitté normalement, et tous les arguments de ligne de commande " +"Vous devriez voir se lancer la dernière version de Python installée — il " +"peut être quitté normalement, et tous les arguments de ligne de commande " "supplémentaires spécifiés seront envoyés directement à Python." #: ../Doc/using/windows.rst:646 msgid "" -"If you have multiple versions of Python installed (e.g., 2.7 and |version|) you " -"will have noticed that Python |version| was started - to launch Python 2.7, try " -"the command:" +"If you have multiple versions of Python installed (e.g., 2.7 and |version|) " +"you will have noticed that Python |version| was started - to launch Python " +"2.7, try the command:" msgstr "" -"Si plusieurs versions de Python sont installées (par exemple, 2.7 et |version|), " -"vous aurez remarqué que Python |version| est lancé -- pour lancer Python 2.7, " -"essayez la commande :" +"Si plusieurs versions de Python sont installées (par exemple, 2.7 et |" +"version|), vous aurez remarqué que Python |version| se lance -- pour lancer " +"Python 2.7, essayez la commande :" #: ../Doc/using/windows.rst:654 msgid "" -"If you want the latest version of Python 2.x you have installed, try the command:" +"If you want the latest version of Python 2.x you have installed, try the " +"command:" msgstr "" "Si vous voulez que la dernière version de Python 2.x que vous avez installé, " "essayez la commande :" @@ -1453,8 +1474,8 @@ msgid "" "Per-user installations of Python do not add the launcher to :envvar:`PATH` " "unless the option was selected on installation." msgstr "" -"Les installations par utilisateur de Python n'ajoutent pas le lanceur à :envvar:" -"`PATH` sauf si l'option a été sélectionnée lors de l'installation." +"Les installations par utilisateur de Python n'ajoutent pas le lanceur à :" +"envvar:`PATH` sauf si l'option a été sélectionnée lors de l'installation." #: ../Doc/using/windows.rst:674 msgid "Virtual environments" @@ -1463,18 +1484,18 @@ msgstr "Environnements virtuels" #: ../Doc/using/windows.rst:678 msgid "" "If the launcher is run with no explicit Python version specification, and a " -"virtual environment (created with the standard library :mod:`venv` module or the " -"external ``virtualenv`` tool) active, the launcher will run the virtual " +"virtual environment (created with the standard library :mod:`venv` module or " +"the external ``virtualenv`` tool) active, the launcher will run the virtual " "environment's interpreter rather than the global one. To run the global " -"interpreter, either deactivate the virtual environment, or explicitly specify " -"the global Python version." +"interpreter, either deactivate the virtual environment, or explicitly " +"specify the global Python version." msgstr "" -"Si le lanceur est exécuté sans spécification de version Python explicite et " -"qu'un environnement virtuel (créé avec le module de la bibliothèque standard :" -"mod:`venv` ou l'outil externe ``virtualenv``) est actif, le lanceur exécute " -"l'interpréteur de l'environnement virtuel plutôt que le celui global. Pour " -"exécuter l'interpréteur global, désactivez l'environnement virtuel ou spécifiez " -"explicitement la version Python globale." +"Si le lanceur est exécuté sans version de Python explicite et qu'un " +"environnement virtuel (créé avec le module de la bibliothèque standard :mod:" +"`venv` ou l'outil externe ``virtualenv``) est actif, le lanceur exécute " +"l'interpréteur de l'environnement virtuel plutôt que l'interpréteur global. " +"Pour exécuter l'interpréteur global, désactivez l'environnement virtuel ou " +"spécifiez explicitement la version Python globale." #: ../Doc/using/windows.rst:686 msgid "From a script" @@ -1482,50 +1503,52 @@ msgstr "À partir d'un script" #: ../Doc/using/windows.rst:688 msgid "" -"Let's create a test Python script - create a file called ``hello.py`` with the " -"following contents" +"Let's create a test Python script - create a file called ``hello.py`` with " +"the following contents" msgstr "" -"Créons un script Python de test -- créez un fichier appelé ``hello.py`` avec le " -"contenu suivant" +"Créons un script Python de test, créez un fichier appelé ``hello.py`` avec " +"le contenu suivant" #: ../Doc/using/windows.rst:697 msgid "From the directory in which hello.py lives, execute the command:" msgstr "" -"À partir du répertoire dans lequel se trouve ``hello.py``, exécutez la commande :" +"À partir du répertoire dans lequel se trouve ``hello.py``, exécutez la " +"commande :" #: ../Doc/using/windows.rst:703 msgid "" -"You should notice the version number of your latest Python 2.x installation is " -"printed. Now try changing the first line to be:" +"You should notice the version number of your latest Python 2.x installation " +"is printed. Now try changing the first line to be:" msgstr "" -"Vous devriez remarquer que le numéro de version de votre dernière installation " -"de Python 2. x est imprimé. Maintenant, essayez de changer la première ligne en :" +"Vous devriez voir le numéro de version du Python 2.x le plus récement " +"installé. Maintenant, essayez de changer la première ligne en :" #: ../Doc/using/windows.rst:710 msgid "" -"Re-executing the command should now print the latest Python 3.x information. As " -"with the above command-line examples, you can specify a more explicit version " -"qualifier. Assuming you have Python 2.6 installed, try changing the first line " -"to ``#! python2.6`` and you should find the 2.6 version information printed." -msgstr "" -"La nouvelle exécution de la commande doit maintenant imprimer les dernières " -"informations de Python 3.x. Comme pour les exemples de ligne de commande ci-" -"dessus, vous pouvez spécifier un qualificateur de version plus explicite. En " -"supposant que vous avez installé Python 2.6, essayez de changer la première " -"ligne à ``#! python2.6`` et vous devriez trouver les informations de version 2.6 " +"Re-executing the command should now print the latest Python 3.x information. " +"As with the above command-line examples, you can specify a more explicit " +"version qualifier. Assuming you have Python 2.6 installed, try changing the " +"first line to ``#! python2.6`` and you should find the 2.6 version " +"information printed." +msgstr "" +"La commande doit maintenant afficher les dernières informations de Python 3." +"x. Comme pour les exemples de ligne de commande ci-dessus, vous pouvez " +"spécifier un qualificateur de version plus explicite. En supposant que vous " +"avez installé Python 2.6, essayez de changer la première ligne à ``#! " +"python2.6`` et vous devriez trouver les informations de version 2.6 " "imprimées." #: ../Doc/using/windows.rst:716 msgid "" -"Note that unlike interactive use, a bare \"python\" will use the latest version " -"of Python 2.x that you have installed. This is for backward compatibility and " -"for compatibility with Unix, where the command ``python`` typically refers to " -"Python 2." +"Note that unlike interactive use, a bare \"python\" will use the latest " +"version of Python 2.x that you have installed. This is for backward " +"compatibility and for compatibility with Unix, where the command ``python`` " +"typically refers to Python 2." msgstr "" -"Notez que, contrairement à l'utilisation interactive, un \"python\" nu utilisera " -"la dernière version de Python 2.x que vous avez installé. C'est pour la " -"compatibilité ascendante et pour la compatibilité avec UNIX, où la commande " -"``python`` fait généralement référence à Python 2." +"Notez que, contrairement à l'utilisation interactive, un \"python\" nu " +"utilisera la dernière version de Python 2.x que vous avez installé. C'est " +"pour la compatibilité ascendante et pour la compatibilité avec UNIX, où la " +"commande ``python`` fait généralement référence à Python 2." #: ../Doc/using/windows.rst:722 msgid "From file associations" @@ -1534,25 +1557,26 @@ msgstr "À partir d'associations de fichiers" #: ../Doc/using/windows.rst:724 msgid "" "The launcher should have been associated with Python files (i.e. ``.py``, ``." -"pyw``, ``.pyc`` files) when it was installed. This means that when you double-" -"click on one of these files from Windows explorer the launcher will be used, and " -"therefore you can use the same facilities described above to have the script " -"specify the version which should be used." -msgstr "" -"Le lanceur aurait dû être associé à des fichiers Python (des fichiers comme ``." -"py``, ``.pyw``, ``.pyc``) lorsqu'il a été installé. Cela signifie que lorsque " -"vous double-cliquez sur l'un de ces fichiers à partir de l'Explorateur Windows, " -"le lanceur sera utilisé, et donc vous pouvez utiliser les mêmes installations " -"décrites ci-dessus pour que le script spécifie la version qui doit être utilisé." +"pyw``, ``.pyc`` files) when it was installed. This means that when you " +"double-click on one of these files from Windows explorer the launcher will " +"be used, and therefore you can use the same facilities described above to " +"have the script specify the version which should be used." +msgstr "" +"Le lanceur aurait dû être associé à des fichiers Python (des fichiers comme " +"``.py``, ``.pyw``, ``.pyc``) lorsqu'il a été installé. Cela signifie que " +"lorsque vous double-cliquez sur l'un de ces fichiers à partir de " +"l'Explorateur Windows, le lanceur sera utilisé, et donc vous pouvez utiliser " +"les mêmes installations décrites ci-dessus pour que le script spécifie la " +"version qui doit être utilisée." #: ../Doc/using/windows.rst:730 msgid "" -"The key benefit of this is that a single launcher can support multiple Python " -"versions at the same time depending on the contents of the first line." +"The key benefit of this is that a single launcher can support multiple " +"Python versions at the same time depending on the contents of the first line." msgstr "" "L'avantage principal de ceci est qu'un seul lanceur peut prendre en charge " -"plusieurs versions de Python en même temps en fonction du contenu de la première " -"ligne." +"plusieurs versions de Python en même temps en fonction du contenu de la " +"première ligne." #: ../Doc/using/windows.rst:734 msgid "Shebang Lines" @@ -1560,29 +1584,31 @@ msgstr "Lignes Shebang" #: ../Doc/using/windows.rst:736 msgid "" -"If the first line of a script file starts with ``#!``, it is known as a \"shebang" -"\" line. Linux and other Unix like operating systems have native support for " -"such lines and they are commonly used on such systems to indicate how a script " -"should be executed. This launcher allows the same facilities to be used with " -"Python scripts on Windows and the examples above demonstrate their use." -msgstr "" -"Si la première ligne d'un fichier de script commence par ``#!``, elle est connue " -"sous le nom de ligne \"**shebang**\". Linux et d'autres systèmes basés sur Unix " -"ont une prise en charge native de ces lignes et ils sont couramment utilisés sur " -"ces systèmes pour indiquer comment un script doit être exécuté. Ce lanceur " -"permet aux mêmes installations d'être utilisés avec des scripts Python sur " -"Windows et les exemples ci-dessus démontrent leur utilisation." +"If the first line of a script file starts with ``#!``, it is known as a " +"\"shebang\" line. Linux and other Unix like operating systems have native " +"support for such lines and they are commonly used on such systems to " +"indicate how a script should be executed. This launcher allows the same " +"facilities to be used with Python scripts on Windows and the examples above " +"demonstrate their use." +msgstr "" +"Si la première ligne d'un fichier de script commence par ``#!``, elle est " +"connue sous le nom de ligne \"*shebang*\". Linux et d'autres systèmes basés " +"sur Unix ont une prise en charge native de ces lignes et les *shebangs* sont " +"couramment utilisés sur ces systèmes pour indiquer comment un script doit " +"être exécuté. Ce lanceur permet aux mêmes installations d'être utilisés avec " +"des scripts Python sur Windows et les exemples ci-dessus démontrent leur " +"utilisation." #: ../Doc/using/windows.rst:743 msgid "" "To allow shebang lines in Python scripts to be portable between Unix and " -"Windows, this launcher supports a number of 'virtual' commands to specify which " -"interpreter to use. The supported virtual commands are:" +"Windows, this launcher supports a number of 'virtual' commands to specify " +"which interpreter to use. The supported virtual commands are:" msgstr "" -"Pour permettre aux lignes **shebang** dans les scripts Python d'être portables " -"entre UNIX et Windows, ce lanceur prend en charge un certain nombre de commandes " -"«virtuelles» pour spécifier l'interpréteur à utiliser. Les commandes virtuelles " -"prises en charge sont :" +"Pour permettre aux *shebang* dans les scripts Python d'être portables entre " +"UNIX et Windows, ce lanceur prend en charge un certain nombre de commandes " +"« virtuelles » pour spécifier l'interpréteur à utiliser. Les commandes " +"virtuelles prises en charge sont :" #: ../Doc/using/windows.rst:747 msgid "``/usr/bin/env python``" @@ -1606,28 +1632,28 @@ msgstr "Par exemple, si la première ligne de votre script commence par" #: ../Doc/using/windows.rst:758 msgid "" -"The default Python will be located and used. As many Python scripts written to " -"work on Unix will already have this line, you should find these scripts can be " -"used by the launcher without modification. If you are writing a new script on " -"Windows which you hope will be useful on Unix, you should use one of the shebang " -"lines starting with ``/usr``." +"The default Python will be located and used. As many Python scripts written " +"to work on Unix will already have this line, you should find these scripts " +"can be used by the launcher without modification. If you are writing a new " +"script on Windows which you hope will be useful on Unix, you should use one " +"of the shebang lines starting with ``/usr``." msgstr "" -"Le Python par défaut sera localisé et utilisé. Comme de nombreux scripts Python " -"écrits pour fonctionner sur UNIX auront déjà cette ligne, vous devriez trouver " -"ces scripts peuvent être utilisés par le lanceur sans modification. Si vous " -"écrivez un nouveau script sur Windows et que vous pensez qu'il sera utile sur " -"UNIX, vous devez utiliser l'une des lignes **shebang** commençant par ``usr``." +"Le Python par défaut sera trouvé et utilisé. Comme de nombreux scripts " +"Python écrits pour fonctionner sur UNIX auront déjà cette ligne, ils " +"devraient fonctionner avec le lanceur sans modification. Si vous écrivez un " +"nouveau script sur Windows et que vous pensez qu'il sera utile sur UNIX, " +"vous devez utiliser l'une des lignes *shebang* commençant par ``/usr``." #: ../Doc/using/windows.rst:764 msgid "" "Any of the above virtual commands can be suffixed with an explicit version " -"(either just the major version, or the major and minor version) - for example ``/" -"usr/bin/python2.7`` - which will cause that specific version to be located and " -"used." +"(either just the major version, or the major and minor version) - for " +"example ``/usr/bin/python2.7`` - which will cause that specific version to " +"be located and used." msgstr "" -"L'une des commandes virtuelles ci-dessus peut être suffixée avec une version " -"explicite (soit seulement la version principale, soit la version principale et " -"mineure) -- par exemple ``/usr/bin/python2.7`` -- ce qui entraînera " +"Les commandes virtuelles ci-dessus peuvent être suffixées avec une version " +"explicite (soit seulement la version principale, soit la version principale " +"et mineure) — par exemple ``/usr/bin/python2.7`` — ce qui entraînera " "l'utilisation de cette version spécifique." #: ../Doc/using/windows.rst:769 @@ -1635,29 +1661,31 @@ msgid "" "The ``/usr/bin/env`` form of shebang line has one further special property. " "Before looking for installed Python interpreters, this form will search the " "executable :envvar:`PATH` for a Python executable. This corresponds to the " -"behaviour of the Unix ``env`` program, which performs a :envvar:`PATH` search." +"behaviour of the Unix ``env`` program, which performs a :envvar:`PATH` " +"search." msgstr "" -"La forme ``/usr/bin/env`` de ligne ****shebang**** possède une autre propriété " -"spéciale. Avant de rechercher les interprètes Python installés, cette forme " -"recherche :envvar:`PATH` pour un exécutable Python. Cela correspond au " -"comportement du programme Unix `env`, qui effectue une recherche dans :envvar:" -"`PATH`." +"La forme ``/usr/bin/env`` de ligne *shebang* possède une autre propriété " +"spéciale. Avant de rechercher les interpréteurs Python installés, cette " +"forme recherche d'abord l'exécutable dans le :envvar:`PATH`. Cela correspond " +"au comportement du programme Unix ``env``, qui effectue une recherche dans :" +"envvar:`PATH`." #: ../Doc/using/windows.rst:775 msgid "Arguments in shebang lines" -msgstr "Arguments dans les lignes **shebang**" +msgstr "Arguments dans les lignes *shebang*" #: ../Doc/using/windows.rst:777 msgid "" -"The shebang lines can also specify additional options to be passed to the Python " -"interpreter. For example, if you have a shebang line:" +"The shebang lines can also specify additional options to be passed to the " +"Python interpreter. For example, if you have a shebang line:" msgstr "" -"Les lignes **shebang** peuvent également spécifier des options supplémentaires à " -"passer à l'interpréteur Python. Par exemple, si vous avez une ligne **shebang** :" +"Les lignes *shebang* peuvent également spécifier des options supplémentaires " +"à passer à l'interpréteur Python. Par exemple, si vous avez une ligne " +"*shebang* :" #: ../Doc/using/windows.rst:784 msgid "Then Python will be started with the ``-v`` option" -msgstr "Ensuite, Python sera démarré avec l'option ``-v``" +msgstr "Alors, Python sera démarré avec l'option ``-v``" #: ../Doc/using/windows.rst:787 msgid "Customization" @@ -1670,31 +1698,31 @@ msgstr "Personnalisation via des fichiers INI" #: ../Doc/using/windows.rst:792 msgid "" "Two .ini files will be searched by the launcher - ``py.ini`` in the current " -"user's \"application data\" directory (i.e. the directory returned by calling " -"the Windows function ``SHGetFolderPath`` with ``CSIDL_LOCAL_APPDATA``) and ``py." -"ini`` in the same directory as the launcher. The same .ini files are used for " -"both the 'console' version of the launcher (i.e. py.exe) and for the 'windows' " -"version (i.e. pyw.exe)." -msgstr "" -"Deux fichiers ``.ini`` seront recherchés par le lanceur -- ``py. ini`` dans le " -"répertoire \"Application Data\" de l'utilisateur actuel (c'est-à-dire le " +"user's \"application data\" directory (i.e. the directory returned by " +"calling the Windows function ``SHGetFolderPath`` with " +"``CSIDL_LOCAL_APPDATA``) and ``py.ini`` in the same directory as the " +"launcher. The same .ini files are used for both the 'console' version of the " +"launcher (i.e. py.exe) and for the 'windows' version (i.e. pyw.exe)." +msgstr "" +"Deux fichiers ``.ini`` seront recherchés par le lanceur -- ``py.ini`` dans " +"le répertoire \"Application Data\" de l'utilisateur actuel (c'est-à-dire le " "répertoire retourné en appelant la fonction Windows ``SHGetFolderPath`` avec " -"``CSIDL_LOCAL_APPDATA``) et ``py. ini`` dans le même répertoire que le lanceur. " -"Les mêmes fichiers ``.ini`` sont utilisés à la fois pour la version \"console\" " -"du lanceur (c'est-à-dire ``py.exe``) et pour la version \"Windows\" (c'est-à-" -"dire ``pyw.exe``)." +"``CSIDL_LOCAL_APPDATA``) et ``py.ini`` dans le même répertoire que le " +"lanceur. Les mêmes fichiers ``.ini`` sont utilisés à la fois pour la version " +"« console » du lanceur (c'est-à-dire ``py.exe``) et pour la version " +"« fenêtrée » (c'est-à-dire ``pyw.exe``)." #: ../Doc/using/windows.rst:799 msgid "" -"Customization specified in the \"application directory\" will have precedence " -"over the one next to the executable, so a user, who may not have write access to " -"the .ini file next to the launcher, can override commands in that global .ini " -"file." +"Customization specified in the \"application directory\" will have " +"precedence over the one next to the executable, so a user, who may not have " +"write access to the .ini file next to the launcher, can override commands in " +"that global .ini file." msgstr "" -"La personnalisation spécifiée dans le \"répertoire de l'application\" aura la " -"priorité sur celle à côté de l'exécutable, de sorte qu'un utilisateur, qui peut " -"ne pas avoir accès en écriture au fichier ``.ini`` à côté du lanceur, peut " -"substituer des commandes dans ce fichier ``.ini`` global)" +"La personnalisation spécifiée dans le \"répertoire de l'application\" aura " +"la priorité sur celle à côté de l'exécutable, de sorte qu'un utilisateur, " +"qui peut ne pas avoir accès en écriture au fichier ``.ini`` à côté du " +"lanceur, peut substituer des commandes dans ce fichier ``.ini`` global)" #: ../Doc/using/windows.rst:804 msgid "Customizing default Python versions" @@ -1702,94 +1730,97 @@ msgstr "Personnalisation des versions Python par défaut" #: ../Doc/using/windows.rst:806 msgid "" -"In some cases, a version qualifier can be included in a command to dictate which " -"version of Python will be used by the command. A version qualifier starts with a " -"major version number and can optionally be followed by a period ('.') and a " -"minor version specifier. If the minor qualifier is specified, it may optionally " -"be followed by \"-32\" to indicate the 32-bit implementation of that version be " -"used." +"In some cases, a version qualifier can be included in a command to dictate " +"which version of Python will be used by the command. A version qualifier " +"starts with a major version number and can optionally be followed by a " +"period ('.') and a minor version specifier. If the minor qualifier is " +"specified, it may optionally be followed by \"-32\" to indicate the 32-bit " +"implementation of that version be used." msgstr "" "Dans certains cas, un qualificateur de version peut être inclus dans une " -"commande pour dicter quelle version de Python sera utilisée par la commande. Un " -"qualificateur de version commence par un numéro de version majeure et peut " -"éventuellement être suivi d'un point ('.') et d'un spécificateur de version " -"secondaire. Si le qualificatif mineur est spécifié, il peut éventuellement être " -"suivi de \"**-32**\" pour indiquer que l'implémentation de 32 bits de cette " -"version sera utilisée." +"commande pour dicter quelle version de Python sera utilisée par la commande. " +"Un qualificateur de version commence par un numéro de version majeure et " +"peut éventuellement être suivi d'un point (``.``) et d'un spécificateur de " +"version secondaire. Si le qualificatif mineur est spécifié, il peut " +"éventuellement être suivi de ``-32`` pour forcer l'utilisation d'une version " +"32 bits." #: ../Doc/using/windows.rst:813 msgid "" -"For example, a shebang line of ``#!python`` has no version qualifier, while ``#!" -"python3`` has a version qualifier which specifies only a major version." +"For example, a shebang line of ``#!python`` has no version qualifier, while " +"``#!python3`` has a version qualifier which specifies only a major version." msgstr "" -"Par exemple, une ligne **shebang** de ``#! python`` n'a pas de qualificateur de " -"version, tandis que ``#! python3`` a un qualificateur de version qui ne spécifie " -"qu'une version majeure." +"Par exemple, une ligne *shebang* valant ``#!python`` n'a pas de " +"qualificateur de version, tandis que ``#!python3`` a un qualificateur de " +"version qui ne spécifie qu'une version majeure." #: ../Doc/using/windows.rst:816 msgid "" "If no version qualifiers are found in a command, the environment variable " -"``PY_PYTHON`` can be set to specify the default version qualifier - the default " -"value is \"2\". Note this value could specify just a major version (e.g. \"2\") " -"or a major.minor qualifier (e.g. \"2.6\"), or even major.minor-32." -msgstr "" -"Si aucun qualificateur de version n'est trouvé dans une commande, la variable " -"d'environnement ``PY_PYTHON`` peut être définie pour spécifier le qualificateur " -"de version par défaut -- la valeur par défaut est \"2\". Notez que cette valeur " -"peut spécifier uniquement une version majeure (par exemple \"2\") ou un " -"qualificatif ``majeur.minor`` (par ex. \"2.6\"), ou même ``major.minor-32``." +"``PY_PYTHON`` can be set to specify the default version qualifier - the " +"default value is \"2\". Note this value could specify just a major version " +"(e.g. \"2\") or a major.minor qualifier (e.g. \"2.6\"), or even major." +"minor-32." +msgstr "" +"Si aucun qualificateur de version n'est trouvé dans une commande, la " +"variable d'environnement ``PY_PYTHON`` peut être définie pour spécifier le " +"qualificateur de version par défaut -- la valeur par défaut est \"2\". Notez " +"que cette valeur peut spécifier uniquement une version majeure (par exemple " +"\"2\") ou un qualificatif ``majeur.mineur`` (par ex. \"2.6\"), ou même " +"``majeur.mineur-32``." #: ../Doc/using/windows.rst:821 msgid "" "If no minor version qualifiers are found, the environment variable " -"``PY_PYTHON{major}`` (where ``{major}`` is the current major version qualifier " -"as determined above) can be set to specify the full version. If no such option " -"is found, the launcher will enumerate the installed Python versions and use the " -"latest minor release found for the major version, which is likely, although not " -"guaranteed, to be the most recently installed version in that family." +"``PY_PYTHON{major}`` (where ``{major}`` is the current major version " +"qualifier as determined above) can be set to specify the full version. If no " +"such option is found, the launcher will enumerate the installed Python " +"versions and use the latest minor release found for the major version, which " +"is likely, although not guaranteed, to be the most recently installed " +"version in that family." msgstr "" "Si aucun qualificateur de version mineure n'est trouvé, la variable " "d'environnement ``PY_PYTHON{major}`` (où ``{major}`` est le qualificateur de " -"version principale actuelle tel que déterminé ci-dessus) peut être définie pour " -"spécifier la version complète. Si aucune option de ce type n'est trouvée, le " -"lanceur énumérera les versions de Python installées et utilisera la dernière " -"version mineure trouvée pour la version principale, qui est probablement, bien " -"que non garantie, la plus récemment installée dans cette famille." +"version principale actuelle tel que déterminé ci-dessus) peut être définie " +"pour spécifier la version complète. Si aucune option de ce type n'est " +"trouvée, le lanceur énumérera les versions de Python installées et utilisera " +"la dernière version mineure trouvée pour la version principale, qui est " +"probablement la plus récemment installée dans cette famille." #: ../Doc/using/windows.rst:829 msgid "" -"On 64-bit Windows with both 32-bit and 64-bit implementations of the same (major." -"minor) Python version installed, the 64-bit version will always be preferred. " -"This will be true for both 32-bit and 64-bit implementations of the launcher - a " -"32-bit launcher will prefer to execute a 64-bit Python installation of the " -"specified version if available. This is so the behavior of the launcher can be " -"predicted knowing only what versions are installed on the PC and without regard " -"to the order in which they were installed (i.e., without knowing whether a 32 or " -"64-bit version of Python and corresponding launcher was installed last). As " -"noted above, an optional \"-32\" suffix can be used on a version specifier to " -"change this behaviour." +"On 64-bit Windows with both 32-bit and 64-bit implementations of the same " +"(major.minor) Python version installed, the 64-bit version will always be " +"preferred. This will be true for both 32-bit and 64-bit implementations of " +"the launcher - a 32-bit launcher will prefer to execute a 64-bit Python " +"installation of the specified version if available. This is so the behavior " +"of the launcher can be predicted knowing only what versions are installed on " +"the PC and without regard to the order in which they were installed (i.e., " +"without knowing whether a 32 or 64-bit version of Python and corresponding " +"launcher was installed last). As noted above, an optional \"-32\" suffix can " +"be used on a version specifier to change this behaviour." msgstr "" "Sur Windows 64-bits avec les implémentations 32-bits et 64-bits de la même " -"version Python (``major.minor``) installée, la version 64-bit sera toujours " -"préférée. Cela sera vrai pour les implémentations 32-bits et 64-bits du lanceur " -"-- un lanceur 32-bits préférera exécuter une installation Python de 64-bits de " -"la version spécifiée si elle est disponible. C'est ainsi que le comportement du " -"lanceur peut être prédit en sachant seulement quelles versions sont installées " -"sur le PC et sans tenir compte de l'ordre dans lequel ils ont été installés (i." -"e., sans savoir si une version 32 ou 64-bit de Python et le lanceur " -"correspondant a été installé en dernier). Comme indiqué ci-dessus, un suffixe " -"optionnel \"**-32**\" peut être utilisé sur un spécificateur de version pour " -"modifier ce comportement." +"version Python (``major.minor``) installée, la version 64-bit est toujours " +"préférée. Cela est vrai pour les implémentations 32-bits et 64-bits du " +"lanceur -- un lanceur 32-bits préférera exécuter une installation Python de " +"64-bits de la version spécifiée si elle est disponible. Le comportement du " +"lanceur est donc prévisible en sachant seulement quelles versions sont " +"installées sur le PC et sans tenir compte de l'ordre dans lequel ils ont été " +"installés (i.e., sans savoir si une version 32 ou 64-bit de Python et le " +"lanceur correspondant a été installé en dernier). Comme indiqué ci-dessus, " +"un suffixe optionnel ``-32`` peut être utilisé sur un spécificateur de " +"version pour modifier ce comportement." #: ../Doc/using/windows.rst:840 msgid "Examples:" -msgstr "Exemples : ::" +msgstr "Exemples :" #: ../Doc/using/windows.rst:842 msgid "" -"If no relevant options are set, the commands ``python`` and ``python2`` will use " -"the latest Python 2.x version installed and the command ``python3`` will use the " -"latest Python 3.x installed." +"If no relevant options are set, the commands ``python`` and ``python2`` will " +"use the latest Python 2.x version installed and the command ``python3`` will " +"use the latest Python 3.x installed." msgstr "" "Si aucune option pertinente n'est définie, les commandes ``python`` et " "``python2`` utiliseront la dernière version de Python 2.x installée et la " @@ -1797,16 +1828,16 @@ msgstr "" #: ../Doc/using/windows.rst:846 msgid "" -"The commands ``python3.1`` and ``python2.7`` will not consult any options at all " -"as the versions are fully specified." +"The commands ``python3.1`` and ``python2.7`` will not consult any options at " +"all as the versions are fully specified." msgstr "" -"Les commandes ``python3.1`` et ``python2.7`` ne consultent aucune option du tout " -"car les versions sont entièrement spécifiées." +"Les commandes ``python3.1`` et ``python2.7`` ne consultent aucune option du " +"tout car les versions sont entièrement spécifiées." #: ../Doc/using/windows.rst:849 msgid "" -"If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use the " -"latest installed Python 3 version." +"If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use " +"the latest installed Python 3 version." msgstr "" "Si ``PY_PYTHON=3``, les commandes ``python`` et ``python3`` utiliseront la " "dernière version de Python 3 installée." @@ -1818,10 +1849,10 @@ msgid "" "installed Python (PY_PYTHON was not considered at all as a major version was " "specified.)" msgstr "" -"Si ``PY_PYTHON=3.1-32``, la commande ``python`` utilisera l'implémentation 32-" -"bits de 3.1 alors que la commande ``python3`` utilisera le dernier Python " -"installé (**PY_PYTHON** n'a pas été considéré du tout comme une version majeure " -"a été spécifiée.)" +"Si ``PY_PYTHON=3.1-32``, la commande ``python`` utilisera l'implémentation " +"32-bits de 3.1 alors que la commande ``python3`` utilisera le dernier Python " +"installé (*PY_PYTHON* n'a pas été considéré du tout comme une version " +"majeure a été spécifiée.)" #: ../Doc/using/windows.rst:857 msgid "" @@ -1835,18 +1866,18 @@ msgstr "" msgid "" "In addition to environment variables, the same settings can be configured in " "the .INI file used by the launcher. The section in the INI file is called " -"``[defaults]`` and the key name will be the same as the environment variables " -"without the leading ``PY_`` prefix (and note that the key names in the INI file " -"are case insensitive.) The contents of an environment variable will override " -"things specified in the INI file." +"``[defaults]`` and the key name will be the same as the environment " +"variables without the leading ``PY_`` prefix (and note that the key names in " +"the INI file are case insensitive.) The contents of an environment variable " +"will override things specified in the INI file." msgstr "" "En plus des variables d'environnement, les mêmes paramètres peuvent être " -"configurés dans le ``.INI`` utilisé par le lanceur. La section dans le fichier " -"INI est appelée ``[defaults]`` et le nom de la clé sera le même que les " -"variables d'environnement sans le préfixe ``PY_`` principal (et notez que les " -"noms de clés dans le fichier **INI** sont insensibles à la case.) Le contenu " -"d'une variable d'environnement remplacera les éléments spécifiés dans le fichier " -"**INI**." +"configurés dans le ``.INI`` utilisé par le lanceur. La section dans le " +"fichier INI est appelée ``[defaults]`` et le nom de la clé sera le même que " +"les variables d'environnement sans le préfixe ``PY_`` principal (et notez " +"que les noms de clés dans le fichier **INI** sont insensibles à la case.) Le " +"contenu d'une variable d'environnement remplacera les éléments spécifiés " +"dans le fichier *INI*." #: ../Doc/using/windows.rst:867 msgid "For example:" @@ -1861,7 +1892,7 @@ msgid "" "Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1`` is equivalent to the INI file " "containing:" msgstr "" -"Le paramètre ``PY_PYTHON=3`` et ``PY_PYTHON3=3.1`` équivaut au fichier **INI** " +"Le paramètre ``PY_PYTHON=3`` et ``PY_PYTHON3=3.1`` équivaut au fichier *INI* " "contenant :" #: ../Doc/using/windows.rst:886 @@ -1873,16 +1904,17 @@ msgid "" "If an environment variable ``PYLAUNCH_DEBUG`` is set (to any value), the " "launcher will print diagnostic information to stderr (i.e. to the console). " "While this information manages to be simultaneously verbose *and* terse, it " -"should allow you to see what versions of Python were located, why a particular " -"version was chosen and the exact command-line used to execute the target Python." +"should allow you to see what versions of Python were located, why a " +"particular version was chosen and the exact command-line used to execute the " +"target Python." msgstr "" "Si une variable d'environnement ``PYLAUNCH_DEBUG`` est définie (à n'importe " -"quelle valeur), le lanceur imprimera des informations de diagnostic sur " -"**stderr** (c'est-à-dire sur la console). Bien que ces informations parviennent " -"à être en même temps ``verbose`` *et* ``laconique``, il devrait vous permettre " -"de voir quelles versions de Python ont été localisées, pourquoi une version " -"particulière a été choisie et la ligne de commande exacte utilisée pour exécuter " -"le Python cible." +"quelle valeur), le lanceur affichera des informations de diagnostic sur " +"*stderr* (c'est-à-dire sur la console). Bien que ces informations " +"parviennent à être en même temps nombreuses et concises, elles devraient " +"vous permettre de voir quelles versions de Python ont été trouvées, pourquoi " +"une version particulière a été choisie et la ligne de commande exacte " +"utilisée pour exécuter le Python cible." #: ../Doc/using/windows.rst:900 msgid "Finding modules" @@ -1890,206 +1922,213 @@ msgstr "Recherche de modules" #: ../Doc/using/windows.rst:902 msgid "" -"Python usually stores its library (and thereby your site-packages folder) in the " -"installation directory. So, if you had installed Python to :file:`C:\\\\Python\\" -"\\`, the default library would reside in :file:`C:\\\\Python\\\\Lib\\\\` and " -"third-party modules should be stored in :file:`C:\\\\Python\\\\Lib\\\\site-" -"packages\\\\`." +"Python usually stores its library (and thereby your site-packages folder) in " +"the installation directory. So, if you had installed Python to :file:`C:\\" +"\\Python\\\\`, the default library would reside in :file:`C:\\\\Python\\\\Lib" +"\\\\` and third-party modules should be stored in :file:`C:\\\\Python\\\\Lib" +"\\\\site-packages\\\\`." msgstr "" "Python stocke généralement sa bibliothèque (et donc votre dossier ``site-" "packages``) dans le répertoire d'installation. Donc, si vous aviez installé " "Python dans :file:`C:\\\\Python\\\\`, la bibliothèque par défaut résiderait " -"dans :file:`C:\\\\Python\\\\Lib\\\\` et les modules tiers devraient être stockés " -"dans :file:`C:\\\\Python\\\\Lib\\\\site-packages\\\\`." +"dans :file:`C:\\\\Python\\\\Lib\\\\` et les modules tiers devraient être " +"stockés dans :file:`C:\\\\Python\\\\Lib\\\\site-packages\\\\`." #: ../Doc/using/windows.rst:908 msgid "" -"To completely override :data:`sys.path`, create a ``._pth`` file with the same " -"name as the DLL (``python37._pth``) or the executable (``python._pth``) and " -"specify one line for each path to add to :data:`sys.path`. The file based on the " -"DLL name overrides the one based on the executable, which allows paths to be " -"restricted for any program loading the runtime if desired." +"To completely override :data:`sys.path`, create a ``._pth`` file with the " +"same name as the DLL (``python37._pth``) or the executable (``python._pth``) " +"and specify one line for each path to add to :data:`sys.path`. The file " +"based on the DLL name overrides the one based on the executable, which " +"allows paths to be restricted for any program loading the runtime if desired." msgstr "" -"Pour remplacer complètement :data:`sys.path`, créez un fichier ``._pth`` portant " -"le même nom que le DLL (``python37._pth``) ou l'exécutable (``python._pth``) et " -"spécifiez une ligne pour chaque chemin à ajouter à :data:`sys.path`. Le fichier " -"basé sur le nom de la DLL remplace celui basé sur l'exécutable, qui permet aux " -"chemins d'être restreints pour tout programme chargeant le **runtime** si désiré." +"Pour remplacer complètement :data:`sys.path`, créez un fichier ``._pth`` " +"portant le même nom que le DLL (``python37._pth``) ou l'exécutable (``python." +"_pth``) et spécifiez une ligne pour chaque chemin à ajouter à :data:`sys." +"path`. Le fichier basé sur le nom de la DLL remplace celui basé sur " +"l'exécutable, qui permet aux chemins d'être restreints pour tout programme " +"chargeant le *runtime* si désiré." #: ../Doc/using/windows.rst:914 msgid "" "When the file exists, all registry and environment variables are ignored, " -"isolated mode is enabled, and :mod:`site` is not imported unless one line in the " -"file specifies ``import site``. Blank paths and lines starting with ``#`` are " -"ignored. Each path may be absolute or relative to the location of the file. " -"Import statements other than to ``site`` are not permitted, and arbitrary code " -"cannot be specified." -msgstr "" -"Lorsque le fichier existe, toutes les variables de registre et d'environnement " -"sont ignorées, le mode isolé est activé et :mod:`site` n'est pas importé, sauf " -"si une ligne du fichier spécifie ``import site``. Les chemins et les lignes " -"vides commençant par ``#`` sont ignorés. Chaque chemin d'accès peut être absolu " -"ou relatif à l'emplacement du fichier. Les instructions d'importation autres que " -"\"site\" ne sont pas autorisées et le code arbitraire ne peut pas être spécifié." +"isolated mode is enabled, and :mod:`site` is not imported unless one line in " +"the file specifies ``import site``. Blank paths and lines starting with " +"``#`` are ignored. Each path may be absolute or relative to the location of " +"the file. Import statements other than to ``site`` are not permitted, and " +"arbitrary code cannot be specified." +msgstr "" +"Lorsque le fichier existe, toutes les variables de registre et " +"d'environnement sont ignorées, le mode isolé est activé et :mod:`site` n'est " +"pas importé, sauf si une ligne du fichier spécifie ``import site``. Les " +"chemins et les lignes vides commençant par ``#`` sont ignorés. Chaque chemin " +"d'accès peut être absolu ou relatif à l'emplacement du fichier. Les imports " +"autre que vers *site* ne sont pas autorisés, ni n'importe quel instruction " +"Python." #: ../Doc/using/windows.rst:921 msgid "" -"Note that ``.pth`` files (without leading underscore) will be processed normally " -"by the :mod:`site` module when ``import site`` has been specified." +"Note that ``.pth`` files (without leading underscore) will be processed " +"normally by the :mod:`site` module when ``import site`` has been specified." msgstr "" -"Notez que les fichiers ``.pth`` (sans `underscore` précédant le ``pth``) seront " -"traités normalement par le module :mod:`site` lorsque ``import site`` a été " -"spécifié." +"Notez que les fichiers ``.pth`` (sans `underscore` précédant le ``pth``) " +"seront traités normalement par le module :mod:`site` lorsque ``import site`` " +"a été spécifié." #: ../Doc/using/windows.rst:924 msgid "" -"When no ``._pth`` file is found, this is how :data:`sys.path` is populated on " -"Windows:" +"When no ``._pth`` file is found, this is how :data:`sys.path` is populated " +"on Windows:" msgstr "" -"Lorsque aucun fichier ``._pth`` n'est trouvé, c'est ainsi que :data:`sys.path` " -"est renseigné sur Windows :" +"Lorsqu'aucun fichier ``._pth`` n'est trouvé, voilà comment :data:`sys.path` " +"est construit sur Windows :" #: ../Doc/using/windows.rst:927 msgid "" -"An empty entry is added at the start, which corresponds to the current directory." +"An empty entry is added at the start, which corresponds to the current " +"directory." msgstr "" "Une entrée vide est ajoutée au début, qui correspond au répertoire courant." #: ../Doc/using/windows.rst:930 msgid "" -"If the environment variable :envvar:`PYTHONPATH` exists, as described in :ref:" -"`using-on-envvars`, its entries are added next. Note that on Windows, paths in " -"this variable must be separated by semicolons, to distinguish them from the " -"colon used in drive identifiers (``C:\\`` etc.)." +"If the environment variable :envvar:`PYTHONPATH` exists, as described in :" +"ref:`using-on-envvars`, its entries are added next. Note that on Windows, " +"paths in this variable must be separated by semicolons, to distinguish them " +"from the colon used in drive identifiers (``C:\\`` etc.)." msgstr "" -"Si la variable d'environnement :envvar:`PYTHONPATH` existe, comme décrit dans :" -"ref:`using-on-envvars`, ses entrées sont ajoutées ensuite. Notez que sur " -"Windows, les chemins d'accès de cette variable doivent être séparés par des " -"points-virgules, pour les distinguer des deux points utilisés dans les " +"Si la variable d'environnement :envvar:`PYTHONPATH` existe, comme décrit " +"dans :ref:`using-on-envvars`, ses entrées sont ajoutées ensuite. Notez que " +"sur Windows, les chemins d'accès de cette variable doivent être séparés par " +"des points-virgules, pour les distinguer des deux points utilisés dans les " "identificateurs de lecteur (``C:\\`` etc.)." #: ../Doc/using/windows.rst:935 msgid "" "Additional \"application paths\" can be added in the registry as subkeys of :" "samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\\\PythonPath` under " -"both the ``HKEY_CURRENT_USER`` and ``HKEY_LOCAL_MACHINE`` hives. Subkeys which " -"have semicolon-delimited path strings as their default value will cause each " -"path to be added to :data:`sys.path`. (Note that all known installers only use " -"HKLM, so HKCU is typically empty.)" -msgstr "" -"Des \"chemins d'accès d'application\" supplémentaires peuvent être ajoutés dans " -"le registre en tant que sous-clés de :samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore" -"\\\\{version}\\\\PythonPath` sous les ruches ``HKEY_CURRENT_USER`` et " -"``HKEY_LOCAL_MACHINE``. Les sous-clés qui ont des chaînes de chemin délimitées " -"par des points-virgules comme valeur par défaut entraînent l'ajout de chaque " -"chemin d'accès à :data:`sys.path`. (Notez que tous les installateurs connus " -"utilisent seulement HKLM, donc HKCU est généralement vide.)" +"both the ``HKEY_CURRENT_USER`` and ``HKEY_LOCAL_MACHINE`` hives. Subkeys " +"which have semicolon-delimited path strings as their default value will " +"cause each path to be added to :data:`sys.path`. (Note that all known " +"installers only use HKLM, so HKCU is typically empty.)" +msgstr "" +"Des \"chemins d'accès d'application\" supplémentaires peuvent être ajoutés " +"dans le registre en tant que sous-clés de :samp:`\\\\SOFTWARE\\\\Python\\" +"\\PythonCore\\\\{version}\\\\PythonPath` sous les ruches " +"``HKEY_CURRENT_USER`` et ``HKEY_LOCAL_MACHINE``. Les sous-clés qui ont des " +"chaînes de chemin délimitées par des points-virgules comme valeur par défaut " +"entraînent l'ajout de chaque chemin d'accès à :data:`sys.path`. (Notez que " +"tous les installateurs connus utilisent seulement HKLM, donc HKCU est " +"généralement vide.)" #: ../Doc/using/windows.rst:942 msgid "" "If the environment variable :envvar:`PYTHONHOME` is set, it is assumed as " -"\"Python Home\". Otherwise, the path of the main Python executable is used to " -"locate a \"landmark file\" (either ``Lib\\os.py`` or ``pythonXY.zip``) to deduce " -"the \"Python Home\". If a Python home is found, the relevant sub-directories " -"added to :data:`sys.path` (``Lib``, ``plat-win``, etc) are based on that " -"folder. Otherwise, the core Python path is constructed from the PythonPath " -"stored in the registry." +"\"Python Home\". Otherwise, the path of the main Python executable is used " +"to locate a \"landmark file\" (either ``Lib\\os.py`` or ``pythonXY.zip``) to " +"deduce the \"Python Home\". If a Python home is found, the relevant sub-" +"directories added to :data:`sys.path` (``Lib``, ``plat-win``, etc) are based " +"on that folder. Otherwise, the core Python path is constructed from the " +"PythonPath stored in the registry." msgstr "" "Si la variable d'environnement :envvar:`PYTHONHOME` est définie, elle est " -"supposée comme \"Python Home\". Sinon, le chemin de l'exécutable principal de " -"Python est utilisé pour localiser un \"fichier de repère\" (soit ``Lib\\os.py`` " -"ou ``pythonXY.zip``) pour déduire le \"Python Home\". Si un \"Python Home\" est " -"trouvée, les sous-répertoires correspondants ajoutés à :data:`sys.path` " -"(``Lib``, ``plat-win``, etc) sont basés sur ce dossier. Sinon, le chemin d'accès " -"Python principal est construit à partir du PythonPath stocké dans le registre." +"supposée comme \"Python Home\". Sinon, le chemin de l'exécutable principal " +"de Python est utilisé pour chercher un \"fichier de repère\" (soit ``Lib\\os." +"py`` ou ``pythonXY.zip``) pour déduire le \"Python Home\". Si un \"Python " +"Home\" est trouvé, les sous-répertoires correspondants ajoutés à :data:`sys." +"path` (``Lib``, ``plat-win``, etc) sont basés sur ce dossier. Sinon, le " +"chemin d'accès Python principal est construit à partir du PythonPath stocké " +"dans le registre." #: ../Doc/using/windows.rst:950 msgid "" -"If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified in " -"the environment, and no registry entries can be found, a default path with " -"relative entries is used (e.g. ``.\\Lib;.\\plat-win``, etc)." +"If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified " +"in the environment, and no registry entries can be found, a default path " +"with relative entries is used (e.g. ``.\\Lib;.\\plat-win``, etc)." msgstr "" -"Si le \"Python Home\" ne peut pas être localisée, :envvar:`PYTHONPATH` n'est pas " -"spécifié dans l'environnement et aucune entrée de registre ne peut être trouvée, " -"un chemin par défaut avec des entrées relatives est utilisé (par exemple ``." -"\\Lib`` ; ``.\\plat-win``, etc.)." +"Si le \"Python Home\" ne peut pas être trouvé, :envvar:`PYTHONPATH` n'est " +"pas spécifié dans l'environnement et aucune entrée de registre ne peut être " +"trouvée, un chemin par défaut avec des entrées relatives est utilisé (par " +"exemple ``.\\Lib`` ; ``.\\plat-win``, etc.)." #: ../Doc/using/windows.rst:954 msgid "" "If a ``pyvenv.cfg`` file is found alongside the main executable or in the " "directory one level above the executable, the following variations apply:" msgstr "" -"Si un fichier ``pyvenv.cfg`` se trouve à côté de l'exécutable principal ou dans " -"le répertoire un niveau au-dessus de l'exécutable, les variantes suivantes " -"s'appliquent :" +"Si un fichier ``pyvenv.cfg`` se trouve à côté de l'exécutable principal ou " +"dans le répertoire un niveau au-dessus de l'exécutable, les variantes " +"suivantes s'appliquent :" #: ../Doc/using/windows.rst:957 msgid "" -"If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this path " -"is used instead of the path to the main executable when deducing the home " -"location." +"If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this " +"path is used instead of the path to the main executable when deducing the " +"home location." msgstr "" -"Si ``home`` est un chemin absolu et :envvar:`PYTHONHOME` n'est pas défini, ce " -"chemin d'accès est utilisé au lieu du chemin d'accès à l'exécutable principal " -"lors de la déduction de l'emplacement du `home`." +"Si ``home`` est un chemin absolu et :envvar:`PYTHONHOME` n'est pas défini, " +"ce chemin d'accès est utilisé au lieu du chemin d'accès à l'exécutable " +"principal lors de la déduction de l'emplacement du `home`." #: ../Doc/using/windows.rst:961 msgid "The end result of all this is:" -msgstr "Le résultat final de tout ceci est :" +msgstr "Le résultat final de tout ceci est :" #: ../Doc/using/windows.rst:963 msgid "" -"When running :file:`python.exe`, or any other .exe in the main Python directory " -"(either an installed version, or directly from the PCbuild directory), the core " -"path is deduced, and the core paths in the registry are ignored. Other " -"\"application paths\" in the registry are always read." +"When running :file:`python.exe`, or any other .exe in the main Python " +"directory (either an installed version, or directly from the PCbuild " +"directory), the core path is deduced, and the core paths in the registry are " +"ignored. Other \"application paths\" in the registry are always read." msgstr "" "Lors de l'exécution de :file:`python.exe`, ou tout autre ``.exe`` dans le " -"répertoire principal de Python (soit une version installée, soit directement à " -"partir du répertoire PCbuild), le chemin principal est déduit et les chemins " -"d'accès principaux dans le Registre sont ignorés. D'autres \"chemins " -"d'application\" dans le Registre sont toujours lus." +"répertoire principal de Python (soit une version installée, soit directement " +"à partir du répertoire PCbuild), le chemin principal est déduit et les " +"chemins d'accès principaux dans le Registre sont ignorés. D'autres \"chemins " +"d'application\" dans le registre sont toujours lus." #: ../Doc/using/windows.rst:968 msgid "" -"When Python is hosted in another .exe (different directory, embedded via COM, " -"etc), the \"Python Home\" will not be deduced, so the core path from the " -"registry is used. Other \"application paths\" in the registry are always read." +"When Python is hosted in another .exe (different directory, embedded via " +"COM, etc), the \"Python Home\" will not be deduced, so the core path from " +"the registry is used. Other \"application paths\" in the registry are " +"always read." msgstr "" -"Lorsque Python est hébergé dans un autre fichier ``.exe`` (répertoire différent, " -"intégré via COM, etc.), le \"Python Home\" ne sera pas déduit, de sorte que le " -"chemin d'accès principal du Registre est utilisé. D'autres \"chemins " -"d'application\" dans le Registre sont toujours lus." +"Lorsque Python est hébergé dans un autre fichier ``.exe`` (répertoire " +"différent, intégré via COM, etc.), le \"Python Home\" ne sera pas déduit, de " +"sorte que le chemin d'accès principal du registre est utilisé. D'autres " +"\"chemins d'application\" dans le registre sont toujours lus." #: ../Doc/using/windows.rst:972 msgid "" -"If Python can't find its home and there are no registry value (frozen .exe, some " -"very strange installation setup) you get a path with some default, but relative, " -"paths." +"If Python can't find its home and there are no registry value (frozen .exe, " +"some very strange installation setup) you get a path with some default, but " +"relative, paths." msgstr "" -"Si Python ne peut pas trouver son \"home\" et il n'y a pas de valeur de Registre " -"(``frozen.exe``, une installation très étrange) vous obtenez un chemin d'accès " -"avec certains chemins par défaut, mais relatif." +"Si Python ne peut pas trouver son \"home\" et il n'y a pas de valeur de " +"registre (.exe gelé, une installation très étrange) vous obtenez un chemin " +"d'accès avec certains chemins par défaut, mais relatif." #: ../Doc/using/windows.rst:976 msgid "" -"For those who want to bundle Python into their application or distribution, the " -"following advice will prevent conflicts with other installations:" +"For those who want to bundle Python into their application or distribution, " +"the following advice will prevent conflicts with other installations:" msgstr "" -"Pour ceux qui veulent **bundle** Python dans leur application ou leur " +"Pour ceux qui veulent intégrer Python dans leur application ou leur " "distribution, les conseils suivants empêcheront les conflits avec d'autres " "installations :" #: ../Doc/using/windows.rst:979 msgid "" -"Include a ``._pth`` file alongside your executable containing the directories to " -"include. This will ignore paths listed in the registry and environment " -"variables, and also ignore :mod:`site` unless ``import site`` is listed." +"Include a ``._pth`` file alongside your executable containing the " +"directories to include. This will ignore paths listed in the registry and " +"environment variables, and also ignore :mod:`site` unless ``import site`` is " +"listed." msgstr "" "Incluez un fichier ``._pth`` à côté de votre exécutable contenant les " -"répertoires à inclure. Ceci ignorera les chemins répertoriés dans le registre et " -"les variables d'environnement, et ignorera également :mod:`site` à moins que " -"``import site`` soit listé." +"répertoires à inclure. Ceci ignorera les chemins répertoriés dans le " +"registre et les variables d'environnement, et ignorera également :mod:`site` " +"à moins que ``import site`` soit listé." #: ../Doc/using/windows.rst:984 msgid "" @@ -2097,53 +2136,55 @@ msgid "" "executable, explicitly call :c:func:`Py_SetPath` or (at least) :c:func:" "`Py_SetProgramName` before :c:func:`Py_Initialize`." msgstr "" -"Si vous chargez :file:`python3.dll` ou :file:`python37.dll` dans votre propre " -"exécutable, appelez explicitement :c:func:`Py_SetPath` ou (au moins) :c:func:" -"`Py_SetProgramName` avant :c:func:`Py_Initialize`." +"Si vous chargez :file:`python3.dll` ou :file:`python37.dll` dans votre " +"propre exécutable, appelez explicitement :c:func:`Py_SetPath` ou (au moins) :" +"c:func:`Py_SetProgramName` avant :c:func:`Py_Initialize`." #: ../Doc/using/windows.rst:988 msgid "" -"Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` before " -"launching :file:`python.exe` from your application." +"Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` " +"before launching :file:`python.exe` from your application." msgstr "" -"Effacer et/ou écraser :envvar:`PYTHONPATH` et set :envvar:`PYTHONHOME` avant de " -"lancer :file:`python.exe` de votre application." +"Effacer et/ou écraser :envvar:`PYTHONPATH` et configurez :envvar:" +"`PYTHONHOME` avant de lancer le :file:`python.exe` de votre application." #: ../Doc/using/windows.rst:991 msgid "" -"If you cannot use the previous suggestions (for example, you are a distribution " -"that allows people to run :file:`python.exe` directly), ensure that the landmark " -"file (:file:`Lib\\\\os.py`) exists in your install directory. (Note that it will " -"not be detected inside a ZIP file, but a correctly named ZIP file will be " -"detected instead.)" +"If you cannot use the previous suggestions (for example, you are a " +"distribution that allows people to run :file:`python.exe` directly), ensure " +"that the landmark file (:file:`Lib\\\\os.py`) exists in your install " +"directory. (Note that it will not be detected inside a ZIP file, but a " +"correctly named ZIP file will be detected instead.)" msgstr "" -"Si vous ne pouvez pas utiliser les suggestions précédentes (par exemple, vous " -"êtes une distribution qui permet aux gens d'exécuter :file:`python.exe` " -"directement), assurez-vous que le fichier **Landmark** (:file:`Lib\\\\os.py`) " -"existe dans votre répertoire d'installation. (Notez qu'il ne sera pas détecté à " -"l'intérieur d'un fichier ZIP, mais un fichier ZIP correctement nommé sera " -"détecté à la place.)" +"Si vous ne pouvez pas utiliser les suggestions précédentes (par exemple, " +"vous êtes une distribution qui permet aux gens d'exécuter :file:`python.exe` " +"directement), assurez-vous que le point de repère :file:`Lib\\\\os.py` " +"existe dans votre répertoire d'installation. (Notez qu'il ne sera pas " +"détecté à l'intérieur d'un fichier ZIP, mais un fichier ZIP correctement " +"nommé sera détecté à la place.)" #: ../Doc/using/windows.rst:997 msgid "" "These will ensure that the files in a system-wide installation will not take " -"precedence over the copy of the standard library bundled with your application. " -"Otherwise, your users may experience problems using your application. Note that " -"the first suggestion is the best, as the others may still be susceptible to non-" -"standard paths in the registry and user site-packages." -msgstr "" -"Ceux-ci garantiront que les fichiers d'une installation à l'échelle du système " -"n'auront pas la priorité sur la copie de la bibliothèque standard livrée avec " -"votre application. Sinon, vos utilisateurs pourraient rencontrer des problèmes " -"en utilisant votre application. Notez que la première suggestion est la " -"meilleure, car les autres peuvent encore être sensibles aux chemins non-standard " -"dans le registre et le **site-packages** utilisateur." +"precedence over the copy of the standard library bundled with your " +"application. Otherwise, your users may experience problems using your " +"application. Note that the first suggestion is the best, as the others may " +"still be susceptible to non-standard paths in the registry and user site-" +"packages." +msgstr "" +"Ceux-ci garantiront que les fichiers d'une installation à l'échelle du " +"système n'auront pas la priorité sur la copie de la bibliothèque standard " +"livrée avec votre application. Sinon, vos utilisateurs pourraient rencontrer " +"des problèmes en utilisant votre application. Notez que la première " +"suggestion est la meilleure, car les autres peuvent encore être sensibles " +"aux chemins non-standard dans le registre et le *site-packages* utilisateur." #: ../Doc/using/windows.rst:1006 msgid "" -"Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv.cfg``." +"Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv." +"cfg``." msgstr "" -"Ajoute le support de fichier ``._pth`` et supprime l'option ``applocal`` de " +"Ajout de la gestion des ``._pth`` et suppression de l'option ``applocal`` de " "``pyvenv.cfg``." #: ../Doc/using/windows.rst:1008 @@ -2151,21 +2192,21 @@ msgid "" "Adds ``pythonXX.zip`` as a potential landmark when directly adjacent to the " "executable." msgstr "" -"Ajoute ``pythonXX.zip`` comme point de repère potentiel lorsqu'il est " +"Ajout de ``pythonXX.zip`` comme point de repère potentiel lorsqu'il est " "directement adjacent à l'exécutable." #: ../Doc/using/windows.rst:1014 msgid "" -"Modules specified in the registry under ``Modules`` (not ``PythonPath``) may be " -"imported by :class:`importlib.machinery.WindowsRegistryFinder`. This finder is " -"enabled on Windows in 3.6.0 and earlier, but may need to be explicitly added to :" -"attr:`sys.meta_path` in the future." +"Modules specified in the registry under ``Modules`` (not ``PythonPath``) may " +"be imported by :class:`importlib.machinery.WindowsRegistryFinder`. This " +"finder is enabled on Windows in 3.6.0 and earlier, but may need to be " +"explicitly added to :attr:`sys.meta_path` in the future." msgstr "" -"Les modules spécifiés dans le Registre sous ``modules`` (pas ``PythonPath``) " -"peuvent être importés par :class:`importlib.machinery.WindowsRegistryFinder`. Ce " -"Finder est activé sur Windows dans 3.6.0 et versions antérieures, mais il " -"pourrait être nécessaire de l'ajouter explicitement à :attr:`sys.meta_path` à " -"l'avenir." +"Les modules spécifiés dans le registre sous ``Modules`` (pas ``PythonPath``) " +"peuvent être importés par :class:`importlib.machinery." +"WindowsRegistryFinder`. Ce Finder est activé sur Windows dans 3.6.0 et plus " +"récent, mais il pourrait être nécessaire de l'ajouter explicitement à :attr:" +"`sys.meta_path` à l'avenir." #: ../Doc/using/windows.rst:1020 msgid "Additional modules" @@ -2173,14 +2214,14 @@ msgstr "Modules supplémentaires" #: ../Doc/using/windows.rst:1022 msgid "" -"Even though Python aims to be portable among all platforms, there are features " -"that are unique to Windows. A couple of modules, both in the standard library " -"and external, and snippets exist to use these features." +"Even though Python aims to be portable among all platforms, there are " +"features that are unique to Windows. A couple of modules, both in the " +"standard library and external, and snippets exist to use these features." msgstr "" -"Même si Python a l'ambition d'être portable parmi toutes les plates-formes, il " -"existe des fonctionnalités propres à Windows. Certains modules, à la fois dans " -"la bibliothèque standard et externe, et des *snippets* existent pour utiliser " -"ces fonctionnalités." +"Même si Python a l'ambition d'être portable parmi toutes les plates-formes, " +"il existe des fonctionnalités propres à Windows. Certains modules, à la fois " +"dans la bibliothèque standard et externe, et des exemples existent pour " +"utiliser ces fonctionnalités." #: ../Doc/using/windows.rst:1026 msgid "" @@ -2196,13 +2237,13 @@ msgstr "PyWin32" #: ../Doc/using/windows.rst:1032 msgid "" -"The `PyWin32 `_ module by Mark Hammond is a " -"collection of modules for advanced Windows-specific support. This includes " -"utilities for:" +"The `PyWin32 `_ module by Mark Hammond is " +"a collection of modules for advanced Windows-specific support. This " +"includes utilities for:" msgstr "" -"Le module `PyWin32 `_ de Mark Hammond est une " -"collection de modules pour un support avancé spécifique à Windows. Cela inclut " -"les services pour :" +"Le module `PyWin32 `_ de Mark Hammond est " +"une collection de modules pour un support avancé spécifique à Windows. Cela " +"inclut les services pour :" #: ../Doc/using/windows.rst:1036 msgid "`Component Object Model `_ (COM)" @@ -2230,17 +2271,19 @@ msgstr "" #: ../Doc/using/windows.rst:1043 msgid "" -"`PythonWin `_ is a sample MFC application shipped with PyWin32. It is " -"an embeddable IDE with a built-in debugger." +"`PythonWin `_ is a sample MFC application shipped with PyWin32. " +"It is an embeddable IDE with a built-in debugger." msgstr "" "`PythonWin `_ est un exemple d'application MFC livrée avec PyWin32. Il " -"s'agit d'un IDE embarqué avec débogueur intégré." +"windows/pythonwin/>`_ est un exemple d'application MFC livrée avec PyWin32. " +"Il s'agit d'un IDE embarqué avec débogueur intégré." #: ../Doc/using/windows.rst:1050 -msgid "`Win32 How Do I...? `_" -msgstr "`Win32 How Do I...? `_" +msgid "" +"`Win32 How Do I...? `_" +msgstr "" +"`Win32 How Do I...? `_" #: ../Doc/using/windows.rst:1050 msgid "by Tim Golden" @@ -2262,15 +2305,15 @@ msgstr "cx_Freeze" msgid "" "`cx_Freeze `_ is a :mod:" "`distutils` extension (see :ref:`extending-distutils`) which wraps Python " -"scripts into executable Windows programs (:file:`{*}.exe` files). When you have " -"done this, you can distribute your application without requiring your users to " -"install Python." +"scripts into executable Windows programs (:file:`{*}.exe` files). When you " +"have done this, you can distribute your application without requiring your " +"users to install Python." msgstr "" -"`cx_Freeze `_ est une extension :" -"mod:`distutils` (voir :ref:`extending-distutils`) qui encapsule des scripts " -"Python dans des programmes exécutables Windows (Fichiers :file:`{*}.exe`). " -"Lorsque vous l'avez fait, vous pouvez distribuer votre application sans demander " -"à vos utilisateurs d'installer Python." +"`cx_Freeze `_ est une " +"extension :mod:`distutils` (voir :ref:`extending-distutils`) qui encapsule " +"des scripts Python dans des programmes exécutables Windows (Fichiers :file:" +"`{*}.exe`). Lorsque vous l'avez fait, vous pouvez distribuer votre " +"application sans demander à vos utilisateurs d'installer Python." #: ../Doc/using/windows.rst:1067 msgid "WConio" @@ -2278,22 +2321,22 @@ msgstr "WConio" #: ../Doc/using/windows.rst:1069 msgid "" -"Since Python's advanced terminal handling layer, :mod:`curses`, is restricted to " -"Unix-like systems, there is a library exclusive to Windows as well: Windows " -"Console I/O for Python." +"Since Python's advanced terminal handling layer, :mod:`curses`, is " +"restricted to Unix-like systems, there is a library exclusive to Windows as " +"well: Windows Console I/O for Python." msgstr "" -"Depuis la couche avancée de gestion de terminal de Python, :mod:`curses`, est " -"limité aux systèmes de type UNIX, il existe une bibliothèque exclusive à " +"Depuis la couche avancée de gestion de terminal de Python, :mod:`curses`, " +"est limité aux systèmes de type UNIX, il existe une bibliothèque exclusive à " "Windows : *Windows Console I/O for Python*." #: ../Doc/using/windows.rst:1073 msgid "" -"`WConio `_ is a wrapper for " -"Turbo-C's :file:`CONIO.H`, used to create text user interfaces." +"`WConio `_ is a wrapper " +"for Turbo-C's :file:`CONIO.H`, used to create text user interfaces." msgstr "" -"`WConio `_ est un *wrapper* " -"pour les fichiers Turbo-C :file:`CONIO.H`, utilisé pour créer des interfaces " -"texte utilisateur." +"`WConio `_ est un " +"*wrapper* pour les fichiers Turbo-C :file:`CONIO.H`, utilisé pour créer des " +"interfaces texte utilisateur." #: ../Doc/using/windows.rst:1079 msgid "Compiling Python on Windows" @@ -2301,33 +2344,34 @@ msgstr "Compiler Python sous Windows" #: ../Doc/using/windows.rst:1081 msgid "" -"If you want to compile CPython yourself, first thing you should do is get the " -"`source `_. You can download either " -"the latest release's source or just grab a fresh `checkout `_." +"If you want to compile CPython yourself, first thing you should do is get " +"the `source `_. You can download " +"either the latest release's source or just grab a fresh `checkout `_." msgstr "" -"Si vous voulez compiler CPython vous-même, la première chose à faire est obtenir " -"la `source `_. Vous pouvez télécharger " -"soit la source de la dernière version ou tout simplement prendre un `checkout " -"`_." +"Si vous voulez compiler CPython vous-même, la première chose à faire est " +"obtenir la `source `_. Vous pouvez " +"télécharger soit la source de la dernière version ou tout simplement prendre " +"un `checkout `_." #: ../Doc/using/windows.rst:1086 msgid "" -"The source tree contains a build solution and project files for Microsoft Visual " -"Studio 2015, which is the compiler used to build the official Python releases. " -"These files are in the :file:`PCbuild` directory." +"The source tree contains a build solution and project files for Microsoft " +"Visual Studio 2015, which is the compiler used to build the official Python " +"releases. These files are in the :file:`PCbuild` directory." msgstr "" -"L'arborescence source contient une solution de *build* et des fichiers projet " -"pour Microsoft Visual Studio 2015, qui est le compilateur utilisé pour générer " -"les versions officielles de Python. Ces fichiers se trouvent dans le répertoire :" -"file:`PCbuild`." +"L'arborescence source contient une solution de compilation et des fichiers " +"projet pour Microsoft Visual Studio 2015, qui est le compilateur utilisé " +"pour générer les versions officielles de Python. Ces fichiers se trouvent " +"dans le répertoire :file:`PCbuild`." #: ../Doc/using/windows.rst:1090 msgid "" -"Check :file:`PCbuild/readme.txt` for general information on the build process." +"Check :file:`PCbuild/readme.txt` for general information on the build " +"process." msgstr "" -"Consultez :file:`PC/readme.txt` pour des informations générales sur le processus " -"de construction." +"Consultez :file:`PC/readme.txt` pour des informations générales sur le " +"processus de construction." #: ../Doc/using/windows.rst:1093 msgid "For extension modules, consult :ref:`building-on-windows`." @@ -2335,21 +2379,21 @@ msgstr "Pour les modules d'extension, consultez :ref:`building-on-windows`." #: ../Doc/using/windows.rst:1100 msgid "" -"`Python + Windows + distutils + SWIG + gcc MinGW `_" +"`Python + Windows + distutils + SWIG + gcc MinGW `_" msgstr "" -"`Python + Windows + distutils + SWIG + gcc MinGW `_" +"`Python + Windows + distutils + SWIG + gcc MinGW `_" #: ../Doc/using/windows.rst:1098 msgid "" -"or \"Creating Python extensions in C/C++ with SWIG and compiling them with MinGW " -"gcc under Windows\" or \"Installing Python extension with distutils and without " -"Microsoft Visual C++\" by Sébastien Sauvage, 2003" +"or \"Creating Python extensions in C/C++ with SWIG and compiling them with " +"MinGW gcc under Windows\" or \"Installing Python extension with distutils " +"and without Microsoft Visual C++\" by Sébastien Sauvage, 2003" msgstr "" "ou \"*Creating Python extensions in C/C++ with SWIG and compiling them with " -"MinGW gcc under Windows*\" ou \"*Installing Python extension with distutils and " -"without Microsoft Visual C++*\" par Sébastien Sauvage, 2003" +"MinGW gcc under Windows*\" ou \"*Installing Python extension with distutils " +"and without Microsoft Visual C++*\" par Sébastien Sauvage, 2003" #: ../Doc/using/windows.rst:1102 msgid "" @@ -2370,45 +2414,34 @@ msgstr "Autres plateformes" #: ../Doc/using/windows.rst:1109 msgid "" "With ongoing development of Python, some platforms that used to be supported " -"earlier are no longer supported (due to the lack of users or developers). Check :" -"pep:`11` for details on all unsupported platforms." +"earlier are no longer supported (due to the lack of users or developers). " +"Check :pep:`11` for details on all unsupported platforms." msgstr "" "Avec le développement continu de Python, certaines plateformes qui étaient " -"auparavant prises en charge ne sont plus prises en charge (en raison du manque " -"d'utilisateurs ou de développeurs). Voir :pep:`11` pour plus de détails sur " -"toutes les plateformes non prises en charge." +"auparavant prises en charge ne sont plus prises en charge (en raison du " +"manque d'utilisateurs ou de développeurs). Voir :pep:`11` pour plus de " +"détails sur toutes les plateformes non prises en charge." #: ../Doc/using/windows.rst:1113 msgid "`Windows CE `_ is still supported." msgstr "" -"Les applications écrites en code natif nécessitent souvent une certaine forme de " -"langage de *scripting*, et la distribution Python intégrée peut être utilisée à " -"cette fin. En général, la majorité de l'application est en code natif, et une " -"partie invoquera soit ``python.exe`` ou utilisera directement ``python3.dll``. " -"Dans les deux cas, l'extraction de la distribution intégrée dans un sous-" -"répertoire de l'installation de l'application est suffisante pour fournir un " -"interpréteur Python chargeable." #: ../Doc/using/windows.rst:1114 msgid "" "The `Cygwin `_ installer offers to install the Python " -"interpreter as well (cf. `Cygwin package source `_, `Maintainer releases " -"`_)" +"interpreter as well (cf. `Cygwin package source `_, `Maintainer " +"releases `_)" msgstr "" -"Comme pour l'utilisation de l'application, les paquets peuvent être installés " -"sur n'importe quel emplacement, car il est possible de spécifier des chemins de " -"recherche avant d'initialiser l'interpréteur. Sinon, il n'y a pas de différences " -"fondamentales entre l'utilisation de la distribution embarquée et une " -"installation classique." #: ../Doc/using/windows.rst:1120 msgid "" "See `Python for Windows `_ for " "detailed information about platforms with pre-compiled installers." msgstr "" -"Voir `Python pour Windows `_ pour des " -"instructions détaillées sur les plateformes avec installateurs pré-compilés." +"Voir `Python pour Windows `_ pour " +"des instructions détaillées sur les plateformes avec installateurs pré-" +"compilés." #~ msgid "Installing Python" #~ msgstr "Installer Python" @@ -2420,11 +2453,11 @@ msgstr "" #~ msgstr "Autres ressources" #~ msgid "" -#~ "\"Help for Windows Programmers\" by Mark Hammond and Andy Robinson, O'Reilly " -#~ "Media, 2000, ISBN 1-56592-621-8" +#~ "\"Help for Windows Programmers\" by Mark Hammond and Andy Robinson, " +#~ "O'Reilly Media, 2000, ISBN 1-56592-621-8" #~ msgstr "" -#~ "\"Help for Windows Programmers\" de Mark Hammond et Andy Robinson, O'Reilly " -#~ "Media, 2000, ISBN 1-56592-621-8" +#~ "\"Help for Windows Programmers\" de Mark Hammond et Andy Robinson, " +#~ "O'Reilly Media, 2000, ISBN 1-56592-621-8" #~ msgid "by Amanda Birmingham, 2004" #~ msgstr "par Amanda Birmingham, 2004" From b93c29815a8a9ba3ecf0c5d669b35c3cc6081eb2 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 01:14:49 +0100 Subject: [PATCH 033/121] Bump 38% --- README.rst | 2 +- using/windows.po | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 2c182e566..edef116a1 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ French Translation of the Python Documentation .. image:: https://travis-ci.org/python/python-docs-fr.svg?branch=3.7 :target: https://travis-ci.org/python/python-docs-fr -**Translated: 36%** +**Translated: 38%** Documentation Contribution Agreement ------------------------------------ diff --git a/using/windows.po b/using/windows.po index e0e736f36..821ff7518 100644 --- a/using/windows.po +++ b/using/windows.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-10-12 18:59+0200\n" -"PO-Revision-Date: 2019-02-26 01:10+0100\n" +"PO-Revision-Date: 2019-02-26 01:13+0100\n" "Language-Team: FRENCH \n" "Language: fr_FR\n" "MIME-Version: 1.0\n" @@ -956,7 +956,7 @@ msgid "" "tk (including all dependants, such as Idle), pip and the Python " "documentation are not included." msgstr "" -"Une fois extrait, la distribution integrée est (presque) entièrement isolée " +"Une fois extrait, la distribution intégrée est (presque) entièrement isolée " "du système de l'utilisateur, y compris les variables d'environnement, les " "paramètres du registre système et les paquets installés. La bibliothèque " "standard est incluse en tant que fichiers pré-compilés et optimisés ``.pyc`` " @@ -1089,7 +1089,7 @@ msgid "" "interpreter." msgstr "" "Les applications écrites en code natif nécessitent souvent une certaine " -"forme de langage de *scripting*, et la distribution Python ingégrée peut " +"forme de langage de *scripting*, et la distribution Python intégrée peut " "être utilisée à cette fin. En général, la majorité de l'application est dans " "le code natif, qui soit invoque ``python.exe`` soit utilise directement " "``python3.dll``. Dans les deux cas, l'extraction de la distribution intégrée " @@ -1520,7 +1520,7 @@ msgid "" "You should notice the version number of your latest Python 2.x installation " "is printed. Now try changing the first line to be:" msgstr "" -"Vous devriez voir le numéro de version du Python 2.x le plus récement " +"Vous devriez voir le numéro de version du Python 2.x le plus récemment " "installé. Maintenant, essayez de changer la première ligne en :" #: ../Doc/using/windows.rst:710 @@ -1980,7 +1980,7 @@ msgid "" "When no ``._pth`` file is found, this is how :data:`sys.path` is populated " "on Windows:" msgstr "" -"Lorsqu'aucun fichier ``._pth`` n'est trouvé, voilà comment :data:`sys.path` " +"Lorsque aucun fichier ``._pth`` n'est trouvé, voilà comment :data:`sys.path` " "est construit sur Windows :" #: ../Doc/using/windows.rst:927 @@ -2106,7 +2106,7 @@ msgid "" "relative, paths." msgstr "" "Si Python ne peut pas trouver son \"home\" et il n'y a pas de valeur de " -"registre (.exe gelé, une installation très étrange) vous obtenez un chemin " +"registre (*.exe* gelé, une installation très étrange) vous obtenez un chemin " "d'accès avec certains chemins par défaut, mais relatif." #: ../Doc/using/windows.rst:976 From 532c8f8cabbbcebde2eb8067241466036728ecf8 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 01:19:57 +0100 Subject: [PATCH 034/121] FIX: pospell did not spotted those on my laptop. --- using/windows.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/using/windows.po b/using/windows.po index 821ff7518..14f43da26 100644 --- a/using/windows.po +++ b/using/windows.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-10-12 18:59+0200\n" -"PO-Revision-Date: 2019-02-26 01:13+0100\n" +"PO-Revision-Date: 2019-02-26 01:19+0100\n" "Language-Team: FRENCH \n" "Language: fr_FR\n" "MIME-Version: 1.0\n" @@ -905,7 +905,7 @@ msgstr "" "l'aide du chemin d'accès complet. Vous pouvez également supprimer le " "répertoire du paquet manuellement et l'installer à nouveau. De nombreux " "systèmes CI le feront automatiquement s'ils ne conservent pas les fichiers " -"entre les builds." +"entre les *builds*." #: ../Doc/using/windows.rst:390 msgid "" @@ -918,7 +918,7 @@ msgstr "" "contient un fichier de propriétés MSBuild ``python.props`` qui peut être " "utilisé dans un projet C++ pour référencer l'installation de Python. " "L'inclusion des paramètres utilisera automatiquement les en-têtes et les " -"bibliothèques d'importation dans votre build." +"bibliothèques d'importation dans votre *build*." #: ../Doc/using/windows.rst:395 msgid "" From d8f3021d559c198723c211a54d44f3910a531991 Mon Sep 17 00:00:00 2001 From: Andy K Date: Tue, 26 Feb 2019 11:06:32 +0100 Subject: [PATCH 035/121] changing the sentence in builtdist.po (#563) --- distutils/builtdist.po | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/distutils/builtdist.po b/distutils/builtdist.po index 27450bcce..6bb9e1117 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2018-11-30 10:47+0100\n" +"PO-Revision-Date: 2019-02-21 21:15+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.0.6\n" #: ../Doc/distutils/builtdist.rst:5 msgid "Creating Built Distributions" @@ -902,7 +902,6 @@ msgid "The Postinstallation script" msgstr "Le script de post-installation" #: ../Doc/distutils/builtdist.rst:385 -#, fuzzy msgid "" "Starting with Python 2.3, a postinstallation script can be specified with " "the :option:`!--install-script` option. The basename of the script must be " @@ -911,8 +910,8 @@ msgid "" msgstr "" "Depuis Python 2.3, un script post-installation peut être spécifié avec " "l'option :option:`!--install-script`. Le nom du script doit être spécifié et " -"le nom de fichier du script doit aussi être listé dans les arguments " -"\"scripts\" de la fonction ``setup``." +"le nom du script doit aussi être listé dans les arguments \"scripts\" de la " +"fonction ``setup``." #: ../Doc/distutils/builtdist.rst:390 msgid "" From 3135c5e74bfa4617bbba759bd04ef59dd729fadf Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 11:09:15 +0100 Subject: [PATCH 036/121] builtdist: Suppression d'une redondance. --- distutils/builtdist.po | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/distutils/builtdist.po b/distutils/builtdist.po index 6bb9e1117..641348d77 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2019-02-21 21:15+0100\n" +"PO-Revision-Date: 2019-02-26 11:09+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -908,10 +908,9 @@ msgid "" "specified, and the script filename must also be listed in the scripts " "argument to the setup function." msgstr "" -"Depuis Python 2.3, un script post-installation peut être spécifié avec " +"Depuis Python 2.3, un script post-installation peut être spécifié avec " "l'option :option:`!--install-script`. Le nom du script doit être spécifié et " -"le nom du script doit aussi être listé dans les arguments \"scripts\" de la " -"fonction ``setup``." +"présent dans l'argument \"scripts\" de la fonction ``setup``." #: ../Doc/distutils/builtdist.rst:390 msgid "" From 295d8370ec3cf0177b0ae08360d704baea88d589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Cavignac?= Date: Tue, 26 Feb 2019 11:10:53 +0100 Subject: [PATCH 037/121] Correction de typo dans functions (description de repr) (#570) --- library/functions.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/functions.po b/library/functions.po index bb24a4847..d272876e9 100644 --- a/library/functions.po +++ b/library/functions.po @@ -2401,7 +2401,7 @@ msgstr "" "représentation sera une chaîne entourée de chevrons contenant le nom du type " "et quelques informations supplémentaires souvent le nom et l'adresse de " "l'objet. Une classe peut contrôler ce que cette fonction donne pour ses " -"instances en définissant une méthode :meth:`_repr__`." +"instances en définissant une méthode :meth:`__repr__`." #: ../Doc/library/functions.rst:1331 msgid "" From 989b47166b2b54f4b5795700aa8e23e3205a24a1 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 11:16:23 +0100 Subject: [PATCH 038/121] Premier essai de commit pickle Co-Authored-By: mika --- library/pickle.po | 49 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/library/pickle.po b/library/pickle.po index 23e17f2b7..dafb6517e 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -6,21 +6,22 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2018-12-06 22:27+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Last-Translator: \n" +"X-Generator: Poedit 2.0.6\n" #: ../Doc/library/pickle.rst:2 msgid ":mod:`pickle` --- Python object serialization" -msgstr "" +msgstr ":mod:`pickle` --- Module Python de sérialisation en objet" #: ../Doc/library/pickle.rst:10 msgid "**Source code:** :source:`Lib/pickle.py`" -msgstr "" +msgstr "**Source code:** :source:`Lib/pickle.py`" #: ../Doc/library/pickle.rst:22 msgid "" @@ -33,6 +34,15 @@ msgid "" "\"serialization\", \"marshalling,\" [#]_ or \"flattening\"; however, to " "avoid confusion, the terms used here are \"pickling\" and \"unpickling\"." msgstr "" +"Le module :mod:`pickle` implémente des protocole binaires pour permettre la " +"sérialisation et la dé-sérialisation de la structure d'un objet Python. *" +"\"Pickling\"* est le procédé par lequel la hiérarchie d'un objet python est " +"convertie en flux d'octets. *\"unpickling\"* est l'opération inverse, par " +"laquelle un flux d'octet (à partir d'un :term:`binary file` ou :term:`bytes-" +"like object`) est converti en retour en hiérarchie d'objet. *Pickling* (et " +"*unpickling*) sont alternativement connu sous le terme de \"sérialisation\" " +"ou de \"marshalling\". Cependant pour éviter la confusion les termes " +"utilisés ici sont \"pickling\" et \"unpickling\"." #: ../Doc/library/pickle.rst:33 msgid "" @@ -40,14 +50,17 @@ msgid "" "constructed data. Never unpickle data received from an untrusted or " "unauthenticated source." msgstr "" +"Le module :mod:`pickle`n'est pas sécurisé contre les données erronées et " +"malicieusement construites. Ne jamais *unpickle* la donnée reçue à partir " +"d'une source non reconnue ou non authentique." #: ../Doc/library/pickle.rst:39 msgid "Relationship to other Python modules" -msgstr "" +msgstr "Relation par rapport aux autres modules python" #: ../Doc/library/pickle.rst:42 msgid "Comparison with ``marshal``" -msgstr "" +msgstr "Comparaison avec ``marshal``" #: ../Doc/library/pickle.rst:44 msgid "" @@ -56,12 +69,18 @@ msgid "" "Python objects. :mod:`marshal` exists primarily to support Python's :file:`." "pyc` files." msgstr "" +"Python possède un module de bas niveau en sérialisation appelé :mod:" +"`marshal`, mais en général il est préférable d'utiliser :mod:`pickle` pour " +"sérialiser des objets Python. :mod:`marshal` existe principalement pour " +"supporter les fichiers Python finissant en :file:`.pyc`." #: ../Doc/library/pickle.rst:49 msgid "" "The :mod:`pickle` module differs from :mod:`marshal` in several significant " "ways:" msgstr "" +"Le module :mod:`pickle`diffère du module :mod:`marshal` sur plusieurs " +"aspects:" #: ../Doc/library/pickle.rst:51 msgid "" @@ -69,6 +88,9 @@ msgid "" "serialized, so that later references to the same object won't be serialized " "again. :mod:`marshal` doesn't do this." msgstr "" +"Le module :mod:`pickle` garde la trace des objets qu'il a déjà sérialisé, " +"pour faire en sorte que les prochaines références à cet objet ne soient plus " +"sérialisé à nouveau. :mod:`marshal` lui ne le fait pas. " #: ../Doc/library/pickle.rst:55 msgid "" @@ -82,6 +104,16 @@ msgid "" "Shared objects remain shared, which can be very important for mutable " "objects." msgstr "" +"Ça provoque des implications à la fois sur le partage d'objet et sur les " +"objets récursifs. Les objets récursifs sont des objets qui contiennent des " +"auto références. Celles-ci ne sont pas gérées par marshal. Essayer de lancer " +"des objets récursifs sur marshall va faire crasher votre interpréteur " +"python. Le partage d'objet s'effectue lorsque qu'il y a plusieurs références " +"au même objet à différents endroits dans la hiérarchie de l'objet en " +"sérialisation. Le module :mod:`pickle`récupères ce type d'objet seulement " +"une fois, et fait en sorte que toutes les prochaines références soient " +"dirigées en direction de la copie master. Les objets partagés restent " +"partagés, ce qui peut être très important pour les objets muables." #: ../Doc/library/pickle.rst:64 msgid "" @@ -90,6 +122,11 @@ msgid "" "transparently, however the class definition must be importable and live in " "the same module as when the object was stored." msgstr "" +":mod:`marshal` ne peut être utilisé pour la sérialisation et l'instanciation " +"de classes définies par les utilisateurs. :mod:`pickle` peut sauvegarder et " +"restaurer les instances de classes de manière transparente. Cependant la " +"définition de classe doit être importable et lancée dans le même module et " +"de la même manière que lors de son importation." #: ../Doc/library/pickle.rst:69 msgid "" From c93b0f3aa39aa0a86a3f9f04c6ce1c9324b7ea78 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 11:31:07 +0100 Subject: [PATCH 039/121] Proofreading pickle.po. --- library/pickle.po | 61 ++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/library/pickle.po b/library/pickle.po index dafb6517e..0cb4e00c0 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2018-12-06 22:27+0100\n" +"PO-Revision-Date: 2019-02-26 11:30+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -17,11 +17,11 @@ msgstr "" #: ../Doc/library/pickle.rst:2 msgid ":mod:`pickle` --- Python object serialization" -msgstr ":mod:`pickle` --- Module Python de sérialisation en objet" +msgstr ":mod:`pickle` --- Module de sérialisation d'objets Python" #: ../Doc/library/pickle.rst:10 msgid "**Source code:** :source:`Lib/pickle.py`" -msgstr "**Source code:** :source:`Lib/pickle.py`" +msgstr "**Code source :** :source:`Lib/pickle.py`" #: ../Doc/library/pickle.rst:22 msgid "" @@ -34,15 +34,14 @@ msgid "" "\"serialization\", \"marshalling,\" [#]_ or \"flattening\"; however, to " "avoid confusion, the terms used here are \"pickling\" and \"unpickling\"." msgstr "" -"Le module :mod:`pickle` implémente des protocole binaires pour permettre la " -"sérialisation et la dé-sérialisation de la structure d'un objet Python. *" -"\"Pickling\"* est le procédé par lequel la hiérarchie d'un objet python est " -"convertie en flux d'octets. *\"unpickling\"* est l'opération inverse, par " -"laquelle un flux d'octet (à partir d'un :term:`binary file` ou :term:`bytes-" -"like object`) est converti en retour en hiérarchie d'objet. *Pickling* (et " -"*unpickling*) sont alternativement connu sous le terme de \"sérialisation\" " -"ou de \"marshalling\". Cependant pour éviter la confusion les termes " -"utilisés ici sont \"pickling\" et \"unpickling\"." +"Le module :mod:`pickle` implémente des protocoles binaires de sérialisation " +"et dé-sérialisation d'objets Python. Le *pickling* est le procédé par lequel " +"une hiérarchie d'objets Python est convertie en flux d'octets. *unpickling* " +"est l'opération inverse, par laquelle un flux d'octet (à partir d'un :term:" +"`binary file` ou :term:`bytes-like object`) est converti en hiérarchie " +"d'objets. *Pickling* (et *unpickling*) sont alternativement connu sous le " +"terme de \"sérialisation\" ou de \"*marshalisation*\". Cependant pour éviter " +"la confusion les termes utilisés ici sont *pickling* et *unpickling*." #: ../Doc/library/pickle.rst:33 msgid "" @@ -50,13 +49,13 @@ msgid "" "constructed data. Never unpickle data received from an untrusted or " "unauthenticated source." msgstr "" -"Le module :mod:`pickle`n'est pas sécurisé contre les données erronées et " +"Le module :mod:`pickle` n'est pas sécurisé contre les données erronées et " "malicieusement construites. Ne jamais *unpickle* la donnée reçue à partir " -"d'une source non reconnue ou non authentique." +"d'une source non fiable ou non authentifiée." #: ../Doc/library/pickle.rst:39 msgid "Relationship to other Python modules" -msgstr "Relation par rapport aux autres modules python" +msgstr "Relations aux autres modules python" #: ../Doc/library/pickle.rst:42 msgid "Comparison with ``marshal``" @@ -72,15 +71,15 @@ msgstr "" "Python possède un module de bas niveau en sérialisation appelé :mod:" "`marshal`, mais en général il est préférable d'utiliser :mod:`pickle` pour " "sérialiser des objets Python. :mod:`marshal` existe principalement pour " -"supporter les fichiers Python finissant en :file:`.pyc`." +"gérer les fichiers Python en :file:`.pyc`." #: ../Doc/library/pickle.rst:49 msgid "" "The :mod:`pickle` module differs from :mod:`marshal` in several significant " "ways:" msgstr "" -"Le module :mod:`pickle`diffère du module :mod:`marshal` sur plusieurs " -"aspects:" +"Le module :mod:`pickle` diffère du module :mod:`marshal` sur plusieurs " +"aspects :" #: ../Doc/library/pickle.rst:51 msgid "" @@ -88,9 +87,9 @@ msgid "" "serialized, so that later references to the same object won't be serialized " "again. :mod:`marshal` doesn't do this." msgstr "" -"Le module :mod:`pickle` garde la trace des objets qu'il a déjà sérialisé, " -"pour faire en sorte que les prochaines références à cet objet ne soient plus " -"sérialisé à nouveau. :mod:`marshal` lui ne le fait pas. " +"Le module :mod:`pickle` garde la trace des objets qu'il a déjà sérialisé, " +"pour faire en sorte que les prochaines références à cet objet ne soient pas " +"sérialisés à nouveau. :mod:`marshal` ne le fait pas." #: ../Doc/library/pickle.rst:55 msgid "" @@ -104,16 +103,14 @@ msgid "" "Shared objects remain shared, which can be very important for mutable " "objects." msgstr "" -"Ça provoque des implications à la fois sur le partage d'objet et sur les " -"objets récursifs. Les objets récursifs sont des objets qui contiennent des " -"auto références. Celles-ci ne sont pas gérées par marshal. Essayer de lancer " -"des objets récursifs sur marshall va faire crasher votre interpréteur " -"python. Le partage d'objet s'effectue lorsque qu'il y a plusieurs références " -"au même objet à différents endroits dans la hiérarchie de l'objet en " -"sérialisation. Le module :mod:`pickle`récupères ce type d'objet seulement " -"une fois, et fait en sorte que toutes les prochaines références soient " -"dirigées en direction de la copie master. Les objets partagés restent " -"partagés, ce qui peut être très important pour les objets muables." +"Ça a des implications sur les objets partagés et les objets récursifs. Les " +"objets récursifs sont des objets qui contiennent des références à eux-mêmes. " +"Ceux-ci ne sont pas gérées par marshal : lui donner un objet récursif va le " +"faire planter. Un objet est partagé lorsque que plusieurs références " +"pointent dessus, depuis différents endroits dans la hiérarchie sérialisée. " +"Le module :mod:`pickle` repère ces partages et ne stocke ces objets qu'une " +"seule fois. Les objets partagés restent ainsi partagés, ce qui peut être " +"très important pour les objets muables." #: ../Doc/library/pickle.rst:64 msgid "" @@ -125,7 +122,7 @@ msgstr "" ":mod:`marshal` ne peut être utilisé pour la sérialisation et l'instanciation " "de classes définies par les utilisateurs. :mod:`pickle` peut sauvegarder et " "restaurer les instances de classes de manière transparente. Cependant la " -"définition de classe doit être importable et lancée dans le même module et " +"définition de classe doit être importable et lancée dans le même module et " "de la même manière que lors de son importation." #: ../Doc/library/pickle.rst:69 From e37d619ca9c8c10d35018df98443e2dbba0c6665 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Feb 2019 11:33:23 +0100 Subject: [PATCH 040/121] Translated library/__future__.po (#498) --- library/__future__.po | 58 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/library/__future__.po b/library/__future__.po index 76271d56e..8b37ec4e3 100644 --- a/library/__future__.po +++ b/library/__future__.po @@ -6,13 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2018-07-05 11:18+0200\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2019-02-26 09:28+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Jules Lasne \n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/__future__.rst:2 msgid ":mod:`__future__` --- Future statement definitions" @@ -25,12 +26,15 @@ msgstr "**Source code:** :source:`Lib/_future_.py`" #: ../Doc/library/__future__.rst:11 msgid ":mod:`__future__` is a real module, and serves three purposes:" msgstr "" +"Le module :mod:`__future__` est un vrai module, et il a trois objectifs :" #: ../Doc/library/__future__.rst:13 msgid "" "To avoid confusing existing tools that analyze import statements and expect " "to find the modules they're importing." msgstr "" +"éviter de dérouter les outils existants qui analysent les instructions " +"d'importation et s'attendent à trouver les modules qu'ils importent ;" #: ../Doc/library/__future__.rst:16 msgid "" @@ -38,6 +42,10 @@ msgid "" "2.1 at least yield runtime exceptions (the import of :mod:`__future__` will " "fail, because there was no module of that name prior to 2.1)." msgstr "" +"s'assurer que les :ref:`instructions *future* ` lancées sous les " +"versions antérieures à 2.1 lèvent au moins des exceptions à l'exécution " +"(l’import du module :mod:`__future__` échoue, car il n’y avait pas de module " +"de ce nom avant 2.1) ;" #: ../Doc/library/__future__.rst:20 msgid "" @@ -46,22 +54,31 @@ msgid "" "and can be inspected programmatically via importing :mod:`__future__` and " "examining its contents." msgstr "" +"Pour documenter le phasage de changements entraînant des incompatibilités : " +"introduction, utilisation obligatoire. Il s’agit d’une forme de " +"documentation exécutable, qui peut être inspectée par un programme en " +"important :mod:`__future__` et en examinant son contenu." #: ../Doc/library/__future__.rst:25 msgid "Each statement in :file:`__future__.py` is of the form::" -msgstr "" +msgstr "Chaque instruction dans :file:`__future__.py` est de la forme ::" #: ../Doc/library/__future__.rst:31 msgid "" "where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both " "are 5-tuples of the same form as :data:`sys.version_info`::" msgstr "" +"où, normalement, *OptionalRelease* est inférieur à *MandatoryRelease*, et " +"les deux sont des quintuplets de la même forme que :data:`sys." +"version_info` ::" #: ../Doc/library/__future__.rst:41 msgid "" "*OptionalRelease* records the first release in which the feature was " "accepted." msgstr "" +"*OptionalRelease* enregistre la première version dans laquelle la " +"fonctionnalité a été acceptée." #: ../Doc/library/__future__.rst:43 msgid "" @@ -69,6 +86,9 @@ msgid "" "*MandatoryRelease* predicts the release in which the feature will become " "part of the language." msgstr "" +"Dans le cas d'un *MandatoryRelease* qui n'a pas encore eu lieu, " +"*MandatoryRelease* prédit la *release* dans laquelle la fonctionnalité " +"deviendra un élément du langage." #: ../Doc/library/__future__.rst:47 msgid "" @@ -77,18 +97,26 @@ msgid "" "statement to use the feature in question, but may continue to use such " "imports." msgstr "" +"Sinon *MandatoryRelease* enregistre lorsque la fonctionnalité est devenue " +"une partie du langage ; dans cette version ou les suivantes, les modules " +"n'ont plus besoin d'une déclaration *future* pour utiliser la fonctionnalité " +"en question, mais ils peuvent continuer à utiliser ces importations." #: ../Doc/library/__future__.rst:51 msgid "" "*MandatoryRelease* may also be ``None``, meaning that a planned feature got " "dropped." msgstr "" +"*MandatoryRelease* peut également être ``None``, ce qui signifie qu'une " +"fonction planifiée a été abandonnée." #: ../Doc/library/__future__.rst:54 msgid "" "Instances of class :class:`_Feature` have two corresponding methods, :meth:" "`getOptionalRelease` and :meth:`getMandatoryRelease`." msgstr "" +"Les instances de classe :class:`_Feature` ont deux méthodes " +"correspondantes, :meth:`getOptionalRelease` et :meth:`getMandatoryRelease`." #: ../Doc/library/__future__.rst:57 msgid "" @@ -97,6 +125,11 @@ msgid "" "dynamically compiled code. This flag is stored in the :attr:`compiler_flag` " "attribute on :class:`_Feature` instances." msgstr "" +"*CompilerFlag* est un drapeau (chaque bit représente un champ) qui doit être " +"passé en tant que quatrième argument à la fonction native :func:`compile` " +"pour activer la fonctionnalité dans le code compilé dynamiquement. Cet " +"indicateur est stocké dans l'attribut :attr:`compiler_flag` dans les " +"instances de :class:`_Feature`." #: ../Doc/library/__future__.rst:62 msgid "" @@ -138,7 +171,7 @@ msgstr "2.2" #: ../Doc/library/__future__.rst:69 msgid ":pep:`227`: *Statically Nested Scopes*" -msgstr ":pep:`227`: *Statically Nested Scopes*" +msgstr ":pep:`227` : *Portées imbriquées*" #: ../Doc/library/__future__.rst:72 msgid "generators" @@ -154,7 +187,7 @@ msgstr "2.3" #: ../Doc/library/__future__.rst:72 msgid ":pep:`255`: *Simple Generators*" -msgstr ":pep:`255` : *Générateurs simples*" +msgstr ":pep:`255` : *Générateurs simples*" #: ../Doc/library/__future__.rst:75 msgid "division" @@ -171,7 +204,7 @@ msgstr "3.0" #: ../Doc/library/__future__.rst:75 msgid ":pep:`238`: *Changing the Division Operator*" -msgstr ":pep:`328` : *Changer l'opérateur de division*" +msgstr ":pep:`328` : *Changement de l'opérateur de division*" #: ../Doc/library/__future__.rst:78 msgid "absolute_import" @@ -183,7 +216,7 @@ msgstr "2.5.0a1" #: ../Doc/library/__future__.rst:78 msgid ":pep:`328`: *Imports: Multi-Line and Absolute/Relative*" -msgstr "" +msgstr ":pep:`328` : *Imports : multilignes et absolus/relatifs*" #: ../Doc/library/__future__.rst:81 msgid "with_statement" @@ -195,7 +228,7 @@ msgstr "2.6" #: ../Doc/library/__future__.rst:81 msgid ":pep:`343`: *The \"with\" Statement*" -msgstr ":pep:`343` : *L'instruction \"with\"*" +msgstr ":pep:`343` : *L'instruction \"with\"*" #: ../Doc/library/__future__.rst:84 msgid "print_function" @@ -207,7 +240,7 @@ msgstr "2.6.0a2" #: ../Doc/library/__future__.rst:84 msgid ":pep:`3105`: *Make print a function*" -msgstr ":pep:`3105`: *Make print a function*" +msgstr ":pep:`3105` : *Transformation de print en fonction*" #: ../Doc/library/__future__.rst:87 msgid "unicode_literals" @@ -215,7 +248,7 @@ msgstr "unicode_literals" #: ../Doc/library/__future__.rst:87 msgid ":pep:`3112`: *Bytes literals in Python 3000*" -msgstr ":pep:`3112` : *Obtets littéraux en Python 3000*" +msgstr ":pep:`3112` : *Chaînes d'octets littéraux en Python 3000*" #: ../Doc/library/__future__.rst:90 msgid "generator_stop" @@ -232,10 +265,11 @@ msgstr "3.7" #: ../Doc/library/__future__.rst:90 msgid ":pep:`479`: *StopIteration handling inside generators*" msgstr "" +":pep:`479` : *Gestion de *StopIteration* à l’intérieur des générateurs*" #: ../Doc/library/__future__.rst:93 msgid "annotations" -msgstr "" +msgstr "annotations" #: ../Doc/library/__future__.rst:93 msgid "3.7.0b1" @@ -247,7 +281,7 @@ msgstr "4.0" #: ../Doc/library/__future__.rst:93 msgid ":pep:`563`: *Postponed evaluation of annotations*" -msgstr "" +msgstr ":pep:`563` : *Évaluation différée des annotations*" #: ../Doc/library/__future__.rst:102 msgid ":ref:`future`" From 2d8981225d9628899b968f12ed3eb4b8e5fa6fdd Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 11:34:25 +0100 Subject: [PATCH 041/121] reflection.po Co-Authored-By: mbelaloui --- c-api/reflection.po | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/c-api/reflection.po b/c-api/reflection.po index 0560ed3b5..fe8d7aefa 100644 --- a/c-api/reflection.po +++ b/c-api/reflection.po @@ -16,41 +16,52 @@ msgstr "" #: ../Doc/c-api/reflection.rst:6 msgid "Reflection" -msgstr "" +msgstr "Réflexion" #: ../Doc/c-api/reflection.rst:10 msgid "" "Return a dictionary of the builtins in the current execution frame, or the " "interpreter of the thread state if no frame is currently executing." msgstr "" +"Retourne un dictionnaire des commandes intégrées du thread en cours " +"d'exécution, ou l'interpréteur de l'état du thread si aucun n'est en cours " +"d'exécution" #: ../Doc/c-api/reflection.rst:16 msgid "" "Return a dictionary of the local variables in the current execution frame, " "or *NULL* if no frame is currently executing." msgstr "" +"Retourne un dictionnaire des variables locales du thread en cours " +"d'exécution ou *NULL* si aucun thread n'est en cours d'execution" #: ../Doc/c-api/reflection.rst:22 msgid "" "Return a dictionary of the global variables in the current execution frame, " "or *NULL* if no frame is currently executing." msgstr "" +"Retourne un dictionnaire des variables globales du thread en cours " +"d'execution ou *NULL* si aucun thread n'est en cours d'execution" #: ../Doc/c-api/reflection.rst:28 msgid "" "Return the current thread state's frame, which is *NULL* if no frame is " "currently executing." msgstr "" +"Retourne l'état du thread actuel, qui est *NULL* si aucun thread n'est en " +"cours d'exécution" #: ../Doc/c-api/reflection.rst:34 msgid "Return the line number that *frame* is currently executing." -msgstr "" +msgstr "Renvoie le numéro de ligne que le *frame* est en train d'exécuter" #: ../Doc/c-api/reflection.rst:39 msgid "" "Return the name of *func* if it is a function, class or instance object, " "else the name of *func*\\s type." msgstr "" +"Renvoie le nom de *func* s'il s'agit d'une fonction, d'une classe ou d'un " +"objet d'instance, sinon le nom du type *func*" #: ../Doc/c-api/reflection.rst:45 msgid "" @@ -59,3 +70,8 @@ msgid "" "and \" object\". Concatenated with the result of :c:func:" "`PyEval_GetFuncName`, the result will be a description of *func*." msgstr "" +"Retourne une description en chaîne de caractère, en fonction du type de " +"*fonc*. Les valeurs de retour incluent \"()\" pour les fonction et les " +"méthodes, \"constructeur\", \"instance\" et \"objet\". Concaténé avec le " +"résultat de :c:func:`PyEval_GetFuncName`, le résultat sera une description " +"de *func*" From 6b3bad6319df521350855fa43f71abf8760f2ca6 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 11:58:16 +0100 Subject: [PATCH 042/121] Proofreading reflection.po --- c-api/reflection.po | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/c-api/reflection.po b/c-api/reflection.po index fe8d7aefa..8e5f03105 100644 --- a/c-api/reflection.po +++ b/c-api/reflection.po @@ -6,8 +6,8 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2019-02-26 11:58+0100\n" +"Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -23,37 +23,37 @@ msgid "" "Return a dictionary of the builtins in the current execution frame, or the " "interpreter of the thread state if no frame is currently executing." msgstr "" -"Retourne un dictionnaire des commandes intégrées du thread en cours " -"d'exécution, ou l'interpréteur de l'état du thread si aucun n'est en cours " -"d'exécution" +"Renvoie un dictionnaire des fonctions natives de la *frame* en cours " +"d'exécution, ou si aucune *frame* n'est exécutée, les fonctions natives du " +"thread indiqué par le *thread state*." #: ../Doc/c-api/reflection.rst:16 msgid "" "Return a dictionary of the local variables in the current execution frame, " "or *NULL* if no frame is currently executing." msgstr "" -"Retourne un dictionnaire des variables locales du thread en cours " -"d'exécution ou *NULL* si aucun thread n'est en cours d'execution" +"Renvoie un dictionnaire des variables locales de la *frame* en cours " +"d'exécution, ou *NULL* si aucune *frame* n'est en cours d'exécution." #: ../Doc/c-api/reflection.rst:22 msgid "" "Return a dictionary of the global variables in the current execution frame, " "or *NULL* if no frame is currently executing." msgstr "" -"Retourne un dictionnaire des variables globales du thread en cours " -"d'execution ou *NULL* si aucun thread n'est en cours d'execution" +"Renvoie un dictionnaire des variables globales de la *frame* en cours " +"d'exécution ou *NULL* si aucune *frame* n'est en cours d'exécution." #: ../Doc/c-api/reflection.rst:28 msgid "" "Return the current thread state's frame, which is *NULL* if no frame is " "currently executing." msgstr "" -"Retourne l'état du thread actuel, qui est *NULL* si aucun thread n'est en " -"cours d'exécution" +"Renvoie la *frame* actuelle selon le *thread state*, qui est *NULL* si " +"aucune *frame* n'est en cours d'exécution." #: ../Doc/c-api/reflection.rst:34 msgid "Return the line number that *frame* is currently executing." -msgstr "Renvoie le numéro de ligne que le *frame* est en train d'exécuter" +msgstr "Renvoie le numéro de ligne que *frame* est en train d'exécuter" #: ../Doc/c-api/reflection.rst:39 msgid "" @@ -61,7 +61,7 @@ msgid "" "else the name of *func*\\s type." msgstr "" "Renvoie le nom de *func* s'il s'agit d'une fonction, d'une classe ou d'un " -"objet d'instance, sinon le nom du type *func*" +"objet d'instance, sinon le nom du type de *func*" #: ../Doc/c-api/reflection.rst:45 msgid "" @@ -70,8 +70,8 @@ msgid "" "and \" object\". Concatenated with the result of :c:func:" "`PyEval_GetFuncName`, the result will be a description of *func*." msgstr "" -"Retourne une description en chaîne de caractère, en fonction du type de " -"*fonc*. Les valeurs de retour incluent \"()\" pour les fonction et les " -"méthodes, \"constructeur\", \"instance\" et \"objet\". Concaténé avec le " -"résultat de :c:func:`PyEval_GetFuncName`, le résultat sera une description " -"de *func*" +"Renvoie une description en chaîne de caractères, en fonction du type de " +"*func*. Les valeurs renvoyées peuvent être ``\"()\"`` pour les fonction et " +"les méthodes, ``\\\" constructor\\\"``, ``\\\" instance\\\"``, ``\\\" object" +"\\\"``. Concaténé avec le résultat de :c:func:`PyEval_GetFuncName`, le " +"résultat sera une description de *func*" From 0f1536867c78093bdd14d5413355fb85dd08dcea Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 12:01:13 +0100 Subject: [PATCH 043/121] FIX: thread. --- c-api/reflection.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c-api/reflection.po b/c-api/reflection.po index 8e5f03105..3fc439a99 100644 --- a/c-api/reflection.po +++ b/c-api/reflection.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: 2019-02-26 11:58+0100\n" +"PO-Revision-Date: 2019-02-26 12:01+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -25,7 +25,7 @@ msgid "" msgstr "" "Renvoie un dictionnaire des fonctions natives de la *frame* en cours " "d'exécution, ou si aucune *frame* n'est exécutée, les fonctions natives du " -"thread indiqué par le *thread state*." +"*thread* indiqué par le *thread state*." #: ../Doc/c-api/reflection.rst:16 msgid "" From 643321657c2dbbe4d9992483fb075b9e46c1fede Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 12:02:23 +0100 Subject: [PATCH 044/121] Traduction of warnings.po into French is achieved at 100% Co-Authored-By: lubenard <42534397+lubenard@users.noreply.github.com> --- library/warnings.po | 329 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 306 insertions(+), 23 deletions(-) diff --git a/library/warnings.po b/library/warnings.po index 30c1dabb8..a1adaab8a 100644 --- a/library/warnings.po +++ b/library/warnings.po @@ -6,17 +6,18 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2019-01-11 22:27+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Last-Translator: \n" +"X-Generator: Poedit 2.2\n" #: ../Doc/library/warnings.rst:2 msgid ":mod:`warnings` --- Warning control" -msgstr "" +msgstr ":mod:`warnings` --- Contrôle des alertes" #: ../Doc/library/warnings.rst:7 msgid "**Source code:** :source:`Lib/warnings.py`" @@ -30,6 +31,11 @@ msgid "" "program. For example, one might want to issue a warning when a program uses " "an obsolete module." msgstr "" +"Les messages d'avertissement sont généralement émis dans les situations où " +"il est utile d'alerter l'utilisateur d'un problème dans un programme, lorsque " +"cette condition ne justifie (normalement) pas de lever une exception et de " +"terminer le programme. Par exemple, on peut vouloir émettre un " +"avertissement lorsqu'un programme utilise un module obsolète." #: ../Doc/library/warnings.rst:18 msgid "" @@ -37,6 +43,9 @@ msgid "" "defined in this module. (C programmers use :c:func:`PyErr_WarnEx`; see :ref:" "`exceptionhandling` for details)." msgstr "" +"Les programmeurs Python émettent des avertissements en appelant la fonction :" +"func:`warn' définie dans ce module. (Les développeurs C utilisent :c:func:" +"`PyErr_WarnEx` ; voir :ref:`exception handling` pour les détails)." #: ../Doc/library/warnings.rst:22 msgid "" @@ -47,6 +56,14 @@ msgid "" "source location where it is issued. Repetitions of a particular warning for " "the same source location are typically suppressed." msgstr "" +"Les messages d'avertissement sont normalement écrits dans ``sys.stderr``, " +"mais leur affichage peut être modifiée de manière flexible, passant " +"d'ignorer tous les avertissements à les transformer en exceptions. La " +"disposition des avertissements peut varier en fonction de la catégorie " +"d'avertissement (voir ci-dessous), du texte du message d'avertissement et de " +"d'où il est émis. Les répétitions d'un " +"avertissement particulier pour le même emplacement source sont généralement " +"supprimées." #: ../Doc/library/warnings.rst:29 msgid "" @@ -55,6 +72,10 @@ msgid "" "next, if a message is to be issued, it is formatted and printed using a user-" "settable hook." msgstr "" +"La commande d'avertissement comporte deux étapes : premièrement, chaque fois " +"qu'un avertissement est émis, le module détermine si un message doit être émis ou " +"non ; ensuite, si un message doit être émis, il est formaté et imprimé en " +"utilisant un crochet réglable par l'utilisateur." #: ../Doc/library/warnings.rst:33 msgid "" @@ -63,6 +84,11 @@ msgid "" "be added to the filter by calling :func:`filterwarnings` and reset to its " "default state by calling :func:`resetwarnings`." msgstr "" +"La détermination de l'émission d'un message d'avertissement est contrôlée " +"par le filtre d'avertissement, qui est une séquence de règles et de leurs actions " +"correspondantes. Des règles peuvent être ajoutées au filtre en appelant :" +"func:`filter warnings` et remises à leur état par défaut en appelant :func:" +"`resetwarnings`." #: ../Doc/library/warnings.rst:38 msgid "" @@ -71,22 +97,31 @@ msgid "" "the message by calling :func:`formatwarning`, which is also available for " "use by custom implementations." msgstr "" +"L'affichage des messages d'avertissement se fait en appelant :func:`show " +"warning`, qui peut être redéfinie ; l'implémentation par défaut de cette " +"fonction formate le message en appelant :func:`format warning`, qui peut également être réutilisé" +"pour une implémentation personnalisée." #: ../Doc/library/warnings.rst:44 msgid "" ":func:`logging.captureWarnings` allows you to handle all warnings with the " "standard logging infrastructure." msgstr "" +":func:`logging.captureWarnings` vous permet de gérer tous les avertissements " +"avec l'infrastructure de journalisation standard." #: ../Doc/library/warnings.rst:51 msgid "Warning Categories" -msgstr "" +msgstr "Catégories d'avertissement" #: ../Doc/library/warnings.rst:53 msgid "" "There are a number of built-in exceptions that represent warning categories. " "This categorization is useful to be able to filter out groups of warnings." msgstr "" +"Il existe un certain nombre d'exceptions intégrées qui représentent des " +"catégories d'avertissement. Cette catégorisation est utile pour filtrer les " +"groupes d'avertissements." #: ../Doc/library/warnings.rst:56 msgid "" @@ -94,6 +129,9 @@ msgid "" "exceptions>`, they are documented here, because conceptually they belong to " "the warnings mechanism." msgstr "" +"Bien qu'il s'agisse techniquement d'exceptions, les :ref:`built-in exceptions " +"` sont documentées ici, parce " +"qu'elles appartiennent conceptuellement au mécanisme des avertissements." #: ../Doc/library/warnings.rst:60 msgid "" @@ -101,14 +139,20 @@ msgid "" "standard warning categories. A warning category must always be a subclass " "of the :exc:`Warning` class." msgstr "" +"Le code utilisateur peut définir des catégories d'avertissement " +"supplémentaires en sous-classant l'une des catégories d'avertissement " +"standard. Une catégorie d'avertissement doit toujours être une sous-classe " +"de la classe :exc:`Warning`." #: ../Doc/library/warnings.rst:64 msgid "The following warnings category classes are currently defined:" msgstr "" +"Les classes de catégories d'avertissement suivantes sont actuellement " +"définies :" #: ../Doc/library/warnings.rst:69 msgid "Class" -msgstr "" +msgstr "Classe" #: ../Doc/library/warnings.rst:69 msgid "Description" @@ -123,6 +167,8 @@ msgid "" "This is the base class of all warning category classes. It is a subclass " "of :exc:`Exception`." msgstr "" +"Il s'agit de la classe de base de toutes les classes de catégories " +"d'avertissement. C'est une sous-classe de :exc:`Exception`." #: ../Doc/library/warnings.rst:75 msgid ":exc:`UserWarning`" @@ -130,7 +176,7 @@ msgstr ":exc:`UserWarning`" #: ../Doc/library/warnings.rst:75 msgid "The default category for :func:`warn`." -msgstr "" +msgstr "Catégorie par défaut pour :func:`warn`." #: ../Doc/library/warnings.rst:77 msgid ":exc:`DeprecationWarning`" @@ -142,6 +188,9 @@ msgid "" "intended for other Python developers (ignored by default, unless triggered " "by code in ``__main__``)." msgstr "" +"Catégorie de base pour les avertissements sur les fonctionnalités obsolètes " +"lorsque ces avertissements sont destinés à d'autres développeurs Python " +"(ignorées par défaut, sauf si déclenchées par le code de ``__main__``)." #: ../Doc/library/warnings.rst:82 msgid ":exc:`SyntaxWarning`" @@ -150,6 +199,8 @@ msgstr ":exc:`SyntaxWarning`" #: ../Doc/library/warnings.rst:82 msgid "Base category for warnings about dubious syntactic features." msgstr "" +"Catégorie de base pour les avertissements concernant des caractéristiques " +"syntaxiques douteuses." #: ../Doc/library/warnings.rst:85 msgid ":exc:`RuntimeWarning`" @@ -158,6 +209,8 @@ msgstr ":exc:`RuntimeWarning`" #: ../Doc/library/warnings.rst:85 msgid "Base category for warnings about dubious runtime features." msgstr "" +"Catégorie de base pour les avertissements concernant les fonctionnalités " +"douteuses à l'exécution." #: ../Doc/library/warnings.rst:88 msgid ":exc:`FutureWarning`" @@ -168,6 +221,9 @@ msgid "" "Base category for warnings about deprecated features when those warnings are " "intended for end users of applications that are written in Python." msgstr "" +"Catégorie de base pour les avertissements concernant les fonctionnalités " +"obsolètes lorsque ces avertissements sont destinés aux utilisateurs finaux " +"des programmes écrits en Python." #: ../Doc/library/warnings.rst:93 msgid ":exc:`PendingDeprecationWarning`" @@ -178,6 +234,8 @@ msgid "" "Base category for warnings about features that will be deprecated in the " "future (ignored by default)." msgstr "" +"Catégorie de base pour les avertissements concernant les fonctionnalités qui " +"seront obsolètes dans le futur (ignorée par défaut)." #: ../Doc/library/warnings.rst:97 msgid ":exc:`ImportWarning`" @@ -188,6 +246,8 @@ msgid "" "Base category for warnings triggered during the process of importing a " "module (ignored by default)." msgstr "" +"Catégorie de base pour les avertissements déclenchés lors de l'importation " +"d'un module (ignoré par défaut)." #: ../Doc/library/warnings.rst:101 msgid ":exc:`UnicodeWarning`" @@ -195,7 +255,7 @@ msgstr ":exc:`UnicodeWarning`" #: ../Doc/library/warnings.rst:101 msgid "Base category for warnings related to Unicode." -msgstr "" +msgstr "Catégorie de base pour les avertissements relatifs à Unicode." #: ../Doc/library/warnings.rst:104 msgid ":exc:`BytesWarning`" @@ -205,6 +265,8 @@ msgstr ":exc:`BytesWarning`" msgid "" "Base category for warnings related to :class:`bytes` and :class:`bytearray`." msgstr "" +"Catégorie de base pour les avertissements relatifs à :class:`bytes` et " +"class:`bytearray`." #: ../Doc/library/warnings.rst:107 msgid ":exc:`ResourceWarning`" @@ -213,6 +275,8 @@ msgstr ":exc:`ResourceWarning`" #: ../Doc/library/warnings.rst:107 msgid "Base category for warnings related to resource usage." msgstr "" +"Catégorie de base pour les avertissements relatifs à l'utilisation des " +"ressources." #: ../Doc/library/warnings.rst:111 msgid "" @@ -221,16 +285,23 @@ msgid "" "changing its behaviour. They are now distinguished based on their intended " "audience and the way they're handled by the default warnings filters." msgstr "" +"Avant, :exc:`DeprecationWarning` et :exc:`FutureWarning` se différencient " +"selon qu'un élément était entièrement supprimé ou qu'il modifiait son " +"comportement. Ils se différencient désormais en fonction de leur public cible " +"et de la façon dont ils sont traités par les filtres d'avertissement par " +"défaut." #: ../Doc/library/warnings.rst:122 msgid "The Warnings Filter" -msgstr "" +msgstr "Le filtre des avertissements" #: ../Doc/library/warnings.rst:124 msgid "" "The warnings filter controls whether warnings are ignored, displayed, or " "turned into errors (raising an exception)." msgstr "" +"Le filtre des avertissements contrôle si les avertissements sont ignorés, " +"affichés ou transformés en erreurs (ce qui lève une exception)." #: ../Doc/library/warnings.rst:127 msgid "" @@ -240,10 +311,16 @@ msgid "" "determines the disposition of the match. Each entry is a tuple of the form " "(*action*, *message*, *category*, *module*, *lineno*), where:" msgstr "" +"Conceptuellement, le filtre d'avertissements maintient une liste ordonnée de " +"spécifications de filtre ; tout avertissement spécifique est comparé à " +"chaque spécification de filtre dans la liste jusqu'à ce qu'une " +"correspondance soit trouvée ; le filtre détermine la disposition de la " +"correspondance. Chaque entrée est un quintuplet de la forme (*action*, " +"*message*, *catégorie*, *module*, *lineno*), où :" #: ../Doc/library/warnings.rst:133 msgid "*action* is one of the following strings:" -msgstr "" +msgstr "*action* est l'une des chaînes de caractères suivantes :" #: ../Doc/library/warnings.rst:136 msgid "Value" @@ -251,7 +328,7 @@ msgstr "Valeur" #: ../Doc/library/warnings.rst:136 msgid "Disposition" -msgstr "" +msgstr "Disposition" #: ../Doc/library/warnings.rst:138 msgid "``\"default\"``" @@ -262,6 +339,8 @@ msgid "" "print the first occurrence of matching warnings for each location (module + " "line number) where the warning is issued" msgstr "" +"affiche la première occurrence des avertissements correspondants pour " +"chaque emplacement (module + numéro de ligne) où l'avertissement est émis" #: ../Doc/library/warnings.rst:142 msgid "``\"error\"``" @@ -269,7 +348,7 @@ msgstr "``\"error\"``" #: ../Doc/library/warnings.rst:142 msgid "turn matching warnings into exceptions" -msgstr "" +msgstr "transforme les avertissements correspondants en exceptions" #: ../Doc/library/warnings.rst:144 msgid "``\"ignore\"``" @@ -277,7 +356,7 @@ msgstr "``\"ignore\"``" #: ../Doc/library/warnings.rst:144 msgid "never print matching warnings" -msgstr "" +msgstr "ignore les avertissements correspondants" #: ../Doc/library/warnings.rst:146 msgid "``\"always\"``" @@ -285,7 +364,7 @@ msgstr "``\"always\"``" #: ../Doc/library/warnings.rst:146 msgid "always print matching warnings" -msgstr "" +msgstr "affiche dans tous les cas les avertissements correspondants" #: ../Doc/library/warnings.rst:148 msgid "``\"module\"``" @@ -296,6 +375,8 @@ msgid "" "print the first occurrence of matching warnings for each module where the " "warning is issued (regardless of line number)" msgstr "" +"affiche la première occurrence des avertissements correspondants pour " +"chaque module où l'avertissement est émis (quel que soit le numéro de ligne)" #: ../Doc/library/warnings.rst:152 msgid "``\"once\"``" @@ -305,6 +386,8 @@ msgstr "``\"once\"``" msgid "" "print only the first occurrence of matching warnings, regardless of location" msgstr "" +"n'imprime que la première occurrence des avertissements correspondants, " +"quel que soit l'endroit où ils se trouvent" #: ../Doc/library/warnings.rst:156 msgid "" @@ -312,40 +395,56 @@ msgid "" "warning message must match. The expression is compiled to always be case-" "insensitive." msgstr "" +"*message* est une chaîne de caractères contenant une expression régulière " +"avec laquelle le début du message d'avertissement doit correspondre. " +"L'expression est compilée pour être toujours insensible à la casse." #: ../Doc/library/warnings.rst:160 msgid "" "*category* is a class (a subclass of :exc:`Warning`) of which the warning " "category must be a subclass in order to match." msgstr "" +"*category* est une classe (une sous-classe de :exc:`Warning`) dont la " +"catégorie d'avertissement doit être une sous-classe afin de correspondre." #: ../Doc/library/warnings.rst:163 msgid "" "*module* is a string containing a regular expression that the module name " "must match. The expression is compiled to be case-sensitive." msgstr "" +"*module* est une chaîne de caractères contenant une expression régulière " +"avec laquelle le nom du module doit correspondre. L'expression est compilée " +"pour être sensible à la casse." #: ../Doc/library/warnings.rst:166 msgid "" "*lineno* is an integer that the line number where the warning occurred must " "match, or ``0`` to match all line numbers." msgstr "" +"*lineno* est un nombre entier avec lequel le numéro de ligne où l'avertissement a eu " +"lieu doit correspondre, ou ``0`` pour correspondre à tous les numéros de " +"ligne." #: ../Doc/library/warnings.rst:169 msgid "" "Since the :exc:`Warning` class is derived from the built-in :exc:`Exception` " "class, to turn a warning into an error we simply raise ``category(message)``." msgstr "" +"Depuis que la classe :exc:`Warning' est dérivée de la classe native :exc:" +"`Exception', pour transformer un avertissement en erreur, il suffit de lever " +"``category(message)``." #: ../Doc/library/warnings.rst:172 msgid "" "If a warning is reported and doesn't match any registered filter then the " "\"default\" action is applied (hence its name)." msgstr "" +"Si un avertissement est signalé et ne correspond à aucun filtre enregistré, " +"l'action \"default\" est appliquée (d'où son nom)." #: ../Doc/library/warnings.rst:179 msgid "Describing Warning Filters" -msgstr "" +msgstr "Description des filtres d'avertissement" #: ../Doc/library/warnings.rst:181 msgid "" @@ -356,12 +455,21 @@ msgid "" "parses these when it is first imported (invalid options are ignored, after " "printing a message to ``sys.stderr``)." msgstr "" +"Le filtre des avertissements est initialisé par les options :option:`-W` " +"passées à la ligne de commande de l'interpréteur Python et la variable " +"d'environnement :envvar:`PYTHONWARNINGS`. L'interpréteur enregistre les " +"arguments de toutes les entrées fournies sans interprétation dans ``sys." +"warnoptions`` ; le module :mod:``warnings` les analyse lors de la première " +"importation (les options invalides sont ignorées, après impression d'un " +"message à ``sys.stderr``)." #: ../Doc/library/warnings.rst:188 msgid "" "Individual warnings filters are specified as a sequence of fields separated " "by colons::" msgstr "" +"Les filtres d'avertissement individuels sont décrits sous la forme d'une " +"séquence de champs séparés par des deux-points ::" #: ../Doc/library/warnings.rst:193 msgid "" @@ -372,6 +480,12 @@ msgid "" "they're applied left-to-right, and the most recently applied filters take " "precedence over earlier ones)." msgstr "" +"La signification de chacun de ces champs est décrite dans :ref:" +"`warning-filter`. Lorsque vous lisez plusieurs filtres sur une seule ligne " +"(comme pour :envvar:`PYTHONWARNINGS`), les filtres individuels sont séparés " +"par des virgules, et les filtres listés plus tard ont priorité sur ceux qui " +"les précèdent (car ils sont appliqués de gauche à droite, et les filtres les " +"plus récemment appliqués ont priorité sur les précédents)." #: ../Doc/library/warnings.rst:200 msgid "" @@ -379,10 +493,13 @@ msgid "" "particular category, or warnings raised by particular modules or packages. " "Some examples::" msgstr "" +"Les filtres d'avertissement couramment utilisés s'appliquent à tous les " +"avertissements, aux avertissements d'une catégorie particulière ou aux " +"avertissements émis par certains modules ou paquets. Quelques exemples ::" #: ../Doc/library/warnings.rst:217 msgid "Default Warning Filter" -msgstr "" +msgstr "Filtre d'avertissement par défaut" #: ../Doc/library/warnings.rst:219 msgid "" @@ -390,28 +507,40 @@ msgid "" "by the :option:`-W` command-line option, the :envvar:`PYTHONWARNINGS` " "environment variable and calls to :func:`filterwarnings`." msgstr "" +"Par défaut, Python installe plusieurs filtres d'avertissement, qui peuvent " +"être outrepassés par l'option :option:`-W` en ligne de commande, la variable " +"d'environnement :envvar:`PYTHONWARNINGS` et les appels à :func:" +"`filterwarnings`." #: ../Doc/library/warnings.rst:223 msgid "" "In regular release builds, the default warning filter has the following " "entries (in order of precedence)::" msgstr "" +"Dans les versions standard publiées de Python, le filtre d'avertissement par défaut a les " +"entrées suivantes (par ordre de priorité) ::" #: ../Doc/library/warnings.rst:232 msgid "In debug builds, the list of default warning filters is empty." msgstr "" +"Dans les versions de débogage, la liste des filtres d'avertissement par " +"défaut est vide." #: ../Doc/library/warnings.rst:234 msgid "" ":exc:`DeprecationWarning` is now ignored by default in addition to :exc:" "`PendingDeprecationWarning`." msgstr "" +":exc:`DeprecationWarning` est maintenant ignoré par défaut en plus de :exc:" +"`PendingDeprecationWarning`." #: ../Doc/library/warnings.rst:238 msgid "" ":exc:`DeprecationWarning` is once again shown by default when triggered " "directly by code in ``__main__``." msgstr "" +":exc:`DeprecationWarning` est à nouveau affiché par défaut lorsqu'il est " +"déclenché directement par code dans ``__main__``." #: ../Doc/library/warnings.rst:242 msgid "" @@ -419,10 +548,13 @@ msgid "" "instead configured via :data:`sys.warnoptions` when :option:`-b` is " "specified twice." msgstr "" +":exc:`BytesWarning` n'apparaît plus dans la liste de filtres par défaut et " +"est configuré via :data:`sys.warnoptions` lorsque l'option:`-b` est " +"spécifiée deux fois." #: ../Doc/library/warnings.rst:251 msgid "Overriding the default filter" -msgstr "" +msgstr "Outrepasser le filtre par défaut" #: ../Doc/library/warnings.rst:253 msgid "" @@ -433,6 +565,12 @@ msgid "" "can be used as a marker to indicate whether or not warnings should be " "disabled::" msgstr "" +"Les développeurs d'applications écrites en Python peuvent souhaiter cacher " +"*tous* les* avertissements de niveau Python à leurs utilisateurs par défaut, " +"et ne les afficher que lorsqu'ils exécutent des tests ou travaillent sur " +"l'application. L'attribut :data:`sys.warnoptions` utilisé pour passer les " +"configurations de filtre à l'interpréteur peut être utilisé comme marqueur " +"pour indiquer si les avertissements doivent être ou non désactivés ::" #: ../Doc/library/warnings.rst:265 msgid "" @@ -440,6 +578,9 @@ msgid "" "that *all* warnings are displayed by default for the code under test, using " "code like::" msgstr "" +"Les développeurs d'exécuteurs de test pour le code Python sont invités à " +"s'assurer que *tous* les avertissements sont affichés par défaut pour le " +"code en cours de test, en utilisant un code comme::" #: ../Doc/library/warnings.rst:276 msgid "" @@ -448,10 +589,16 @@ msgid "" "messages are made visible by default, using code like the following (where " "``user_ns`` is the module used to execute code entered interactively)::" msgstr "" +"Enfin, les développeurs d'interpréteurs de commandes interactifs qui " +"exécutent du code utilisateur dans un espace de nommage autre que " +"``__main__`` sont invités à s'assurer que les messages :exc:" +"`DeprecationWarning` sont rendus visibles par défaut, en utilisant le code " +"suivant (où ``user_ns'' est le module utilisé pour exécuter le code entré " +"interactivement): :" #: ../Doc/library/warnings.rst:289 msgid "Temporarily Suppressing Warnings" -msgstr "" +msgstr "Suppression Temporaire des Avertissements" #: ../Doc/library/warnings.rst:291 msgid "" @@ -460,6 +607,12 @@ msgid "" "have been explicitly configured via the command line), then it is possible " "to suppress the warning using the :class:`catch_warnings` context manager::" msgstr "" +"Si vous utilisez un code dont vous savez qu'il va déclencher un " +"avertissement, comme une fonction obsolète, mais que vous ne voulez pas voir " +"l'avertissement (même si les avertissements ont été explicitement configurés " +"via la ligne de commande), alors il est possible de supprimer " +"l'avertissement en utilisant le gestionnaire de contexte :class:" +"`catch_warnings': :" #: ../Doc/library/warnings.rst:305 msgid "" @@ -470,10 +623,17 @@ msgid "" "threaded application. If two or more threads use the :class:`catch_warnings` " "context manager at the same time, the behavior is undefined." msgstr "" +"Dans le gestionnaire de contexte, tous les avertissements sont simplement " +"ignorés. Ceci vous permet d'utiliser du code déclaré obsolète sans " +"voir l'avertissement tout en ne supprimant pas l'avertissement pour un autre " +"code qui pourrait ne pas être conscient de son utilisation de code " +"déprécié. Remarque : ceci ne peut être garanti que dans une application à " +"filetage unique. Si deux ou plusieurs threads utilisent le gestionnaire de " +"contexte :class:`catch_warnings' en même temps, le comportement est indéfini." #: ../Doc/library/warnings.rst:317 msgid "Testing Warnings" -msgstr "" +msgstr "Tester les avertissements" #: ../Doc/library/warnings.rst:319 msgid "" @@ -482,6 +642,10 @@ msgid "" "facilitate your testing. For instance, do the following to capture all " "raised warnings to check::" msgstr "" +"Pour tester les avertissements générés par le code, utilisez le gestionnaire " +"de contexte :class:`catch_warnings'. Avec lui, vous pouvez temporairement " +"muter le filtre d'avertissements pour faciliter votre test. Par exemple, " +"procédez comme suit pour capturer tous les avertissements levés à vérifier::" #: ../Doc/library/warnings.rst:339 msgid "" @@ -491,6 +655,12 @@ msgid "" "filters are set the warning will not be seen again unless the warnings " "registry related to the warning has been cleared." msgstr "" +"Vous pouvez aussi faire en sorte que tous les avertissements soient des " +"exceptions en utilisant \"erreur\" au lieu de \"toujours\". Il faut savoir " +"que si un avertissement a déjà été émis à cause d'une règle \"une fois\" ou " +"\"par défaut\", quel que soit le filtre activé, l'avertissement ne sera pas " +"revu à moins que le registre des avertissements lié à l'avertissement ait " +"été supprimé." #: ../Doc/library/warnings.rst:345 msgid "" @@ -502,6 +672,15 @@ msgid "" "application. If two or more threads use the :class:`catch_warnings` context " "manager at the same time, the behavior is undefined." msgstr "" +"Une fois que le gestionnaire de contexte se termine, le filtre des " +"avertissements est restauré dans son état au moment où le contexte a été " +"saisi. Cela empêche les tests de changer le filtre d'avertissements de " +"manière inattendue entre les tests et d'aboutir à des résultats de test " +"indéterminés. La fonction :func:`show warning` du module est également " +"restaurée à sa valeur originale. Remarque : ceci ne peut être garanti que " +"dans une application à filetage unique. Si deux ou plusieurs fils d'exécution" +"utilisent le gestionnaire de contexte :class:`catch_warnings' en même temps, " +"le comportement est indéfini." #: ../Doc/library/warnings.rst:353 msgid "" @@ -512,10 +691,18 @@ msgid "" "continues to increase after each operation, or else delete the previous " "entries from the warnings list before each new operation)." msgstr "" +"Lorsque vous testez plusieurs opérations qui provoquent le même type " +"d'avertissement, il est important de les tester d'une manière qui confirme " +"que chaque opération provoque un nouvel avertissement (par exemple, " +"définissez les avertissements comme exceptions et vérifiez que les " +"opérations provoquent des exceptions, vérifiez que la longueur de la liste " +"des avertissements continue à augmenter après chaque opération, ou bien " +"supprimez les entrées précédentes de la liste des avertissements avant " +"chaque nouvelle opération)." #: ../Doc/library/warnings.rst:364 msgid "Updating Code For New Versions of Dependencies" -msgstr "" +msgstr "Mise à jour du Code pour les Nouvelles Versions des Dépendances" #: ../Doc/library/warnings.rst:366 msgid "" @@ -523,6 +710,9 @@ msgid "" "(rather than end users of applications written in Python) are ignored by " "default." msgstr "" +"Les catégories d'avertissement qui intéressent principalement les " +"développeurs Python (plutôt que les utilisateurs finaux d'applications " +"écrites en Python) sont ignorées par défaut." #: ../Doc/library/warnings.rst:369 msgid "" @@ -532,6 +722,12 @@ msgid "" "order to receive timely notifications of future breaking API changes " "(whether in the standard library or third party packages)." msgstr "" +"Notamment, cette liste \"ignorés par défaut\" inclut :exc:" +"`DeprecationWarning` (pour chaque module sauf ``__main__``), ce qui signifie " +"que les développeurs doivent s'assurer de tester leur code avec des " +"avertissements généralement ignorés rendus visibles afin de recevoir des " +"notifications rapides des changements d'API (que ce soit dans la " +"bibliothèque standard ou les paquets tiers)." #: ../Doc/library/warnings.rst:375 msgid "" @@ -539,6 +735,10 @@ msgid "" "runner will take care of implicitly enabling all warnings when running tests " "(the test runner provided by the :mod:`unittest` module does this)." msgstr "" +"Dans le cas idéal, le code dispose d'une suite de tests appropriée, et le " +"testeur se charge d'activer implicitement tous les avertissements lors de " +"l'exécution des tests (le testeur fourni par le module :mod:`unittest' le " +"fait)." #: ../Doc/library/warnings.rst:379 msgid "" @@ -551,10 +751,19 @@ msgid "" "W` (e.g. :option:`!-W error`). See the :option:`-W` flag for more details on " "what is possible." msgstr "" +"Dans des cas moins idéaux, les applications peuvent être vérifiées pour " +"l'utilisation d'interfaces obsolètes en passant :option:`-Wd <-W>`à " +"l'interpréteur Python (c'est une abréviation pour option:`!-W default`) ou " +"en définissant ``PYTHONWARNINGS=default`` dans l'environnement. Ceci permet " +"la gestion par défaut de tous les avertissements, y compris ceux qui sont " +"ignorés par défaut. Pour changer l'action prise pour les avertissements " +"rencontrés, vous pouvez changer quel argument est passé à :option:`-W` (par " +"exemple:option:`!-W error`). Voir l'option :option:`-W` pour plus de détails " +"sur ce qui est possible." #: ../Doc/library/warnings.rst:392 msgid "Available Functions" -msgstr "" +msgstr "Fonctions disponibles" #: ../Doc/library/warnings.rst:397 msgid "" @@ -568,6 +777,15 @@ msgid "" "The *stacklevel* argument can be used by wrapper functions written in " "Python, like this::" msgstr "" +"Émettre un avertissement, ou peut-être l'ignorer ou faire une exception. " +"L'argument *categorie*, s'il est donné, doit être une classe de catégorie " +"d'avertissement (voir ci-dessus) ; il est par défaut :exc:`UserWarning'. " +"Alternativement *message* peut être une instance :exc:`Warning', auquel cas " +"*categorie* sera ignoré et ``message.__class__`` sera utilisé. Dans ce cas, " +"le texte du message sera ``str(message)``. Cette fonction lève une exception " +"si cet l'avertissement particulier émis est transformé en erreur par le " +"filtre des avertissements voir ci-dessus. L'argument *stacklevel* peut être " +"utilisé par les fonctions wrapper écrites en Python, comme ceci::" #: ../Doc/library/warnings.rst:409 msgid "" @@ -575,16 +793,21 @@ msgid "" "the source of :func:`deprecation` itself (since the latter would defeat the " "purpose of the warning message)." msgstr "" +"Ceci fait que l'avertissement se réfère à l'appelant de :func:`deprecation` " +"plutôt qu'à la source de :func:`deprecation` elle-même (puisque celle-ci " +"irait à l'encontre du but du message d'avertissement)." #: ../Doc/library/warnings.rst:413 ../Doc/library/warnings.rst:436 msgid "" "*source*, if supplied, is the destroyed object which emitted a :exc:" "`ResourceWarning`." msgstr "" +"*source*, s'il est fourni, est l'objet détruit qui a émis un :exc:" +"`ResourceWarning`." #: ../Doc/library/warnings.rst:416 msgid "Added *source* parameter." -msgstr "" +msgstr "Ajout du paramètre *source*." #: ../Doc/library/warnings.rst:422 msgid "" @@ -597,6 +820,15 @@ msgid "" "of :exc:`Warning` or *message* may be a :exc:`Warning` instance, in which " "case *category* will be ignored." msgstr "" +"Il s'agit d'une interface de bas niveau pour la fonctionnalité de :func:" +"`warn`, en passant explicitement le message, la catégorie, le nom de fichier " +"et le numéro de ligne, et éventuellement le nom du module et le registre " +"(qui devrait être le dictionnaire ``__warningregistry__`` du module). Le " +"nom de module par défaut est le nom de fichier avec ``.py`` dépouillé ; si " +"aucun registre n'est passé, l'avertissement n'est jamais supprimé. *message* " +"doit être une chaîne de caractères et *category* une sous-classe de :exc:" +"`Warning' ou *message* peut être une instance:exc:`Warning', auquel cas " +"*category* sera ignoré." #: ../Doc/library/warnings.rst:431 msgid "" @@ -605,10 +837,14 @@ msgid "" "displaying source for modules found in zipfiles or other non-filesystem " "import sources)." msgstr "" +"*module_globals*, s'il est fourni, doit être l'espace de nommage global " +"utilisé par le code pour lequel l'avertissement est émis. (Cet argument est " +"utilisé pour afficher les sources des modules trouvés dans les fichiers zip " +"ou d'autres sources d'importation non système de fichiers)." #: ../Doc/library/warnings.rst:439 msgid "Add the *source* parameter." -msgstr "" +msgstr "Ajouter le paramètre *source*." #: ../Doc/library/warnings.rst:445 msgid "" @@ -620,6 +856,14 @@ msgid "" "message; if *line* is not supplied, :func:`showwarning` will try to read the " "line specified by *filename* and *lineno*." msgstr "" +"Ecrire un avertissement dans un fichier. L'implémentation par défaut " +"appelle ``format warning(message, category, filename, lineno, line)``et " +"écrit la chaîne résultante dans *file*, qui par défaut est ``sys.stderr``. " +"Vous pouvez remplacer cette fonction par n'importe quel appelable en " +"l'affectant à ``warnings.showwarning``. *line* est une ligne de code source " +"à inclure dans le message d'avertissement ; si *line* n'est pas fourni, :" +"func:`show warning' essaiera de lire la ligne spécifiée par *filename* et " +"*lineno*." #: ../Doc/library/warnings.rst:456 msgid "" @@ -629,6 +873,11 @@ msgid "" "`formatwarning` will try to read the line specified by *filename* and " "*lineno*." msgstr "" +"Formate un avertissement de la manière standard. Ceci retourne une chaîne " +"qui peut contenir des nouvelles lignes incorporées et se termine par une " +"nouvelle ligne. *line* est une ligne de code source à inclure dans le " +"message d'avertissement ; si *line* n'est pas fourni, :func:`format warning` " +"essaiera de lire la ligne spécifiée par *filename* et *lineno*." #: ../Doc/library/warnings.rst:465 msgid "" @@ -641,6 +890,14 @@ msgid "" "particular warning. Omitted arguments default to a value that matches " "everything." msgstr "" +"Insère une entrée dans la liste de :ref:`warning filter specifications " +"`. L'entrée est insérée à l'avant par défaut ; si *append* " +"est vrai, elle est insérée à la fin. Il vérifie le type des arguments, " +"compile les expressions régulières *message* et *module*, et les insère sous " +"forme de tuple dans la liste des filtres d'avertissements. Les entrées plus " +"proches du début de la liste remplacent les entrées plus tard dans la liste, " +"si les deux correspondent à un avertissement particulier. Les arguments " +"omis ont par défaut une valeur qui correspond à tout." #: ../Doc/library/warnings.rst:477 msgid "" @@ -650,6 +907,12 @@ msgid "" "inserted always matches any message in any module as long as the category " "and line number match." msgstr "" +"Insère une entrée simple dans la liste de :ref:`spécifications du filtre " +"d'avertissements `. La signification des paramètres " +"de fonction est la même que pour :func:`filter warning`, mais les " +"expressions régulières ne sont pas nécessaires car le filtre inséré " +"correspond toujours à n'importe quel message dans n'importe quel module tant " +"que la catégorie et le numéro de ligne correspondent." #: ../Doc/library/warnings.rst:486 msgid "" @@ -657,10 +920,14 @@ msgid "" "to :func:`filterwarnings`, including that of the :option:`-W` command line " "options and calls to :func:`simplefilter`." msgstr "" +"Réinitialise le filtre des avertissements. Ceci supprime l'effet de tous " +"les appels précédents vers :func:`filter warnings`, y compris celui de " +"l'option:`-W' des options de ligne de commande et des appels vers :func:" +"`simplefilter`." #: ../Doc/library/warnings.rst:492 msgid "Available Context Managers" -msgstr "" +msgstr "Gestionnaires de Contexte Disponibles" #: ../Doc/library/warnings.rst:496 msgid "" @@ -672,6 +939,14 @@ msgid "" "(which also suppresses output to ``sys.stdout``). Each object in the list " "has attributes with the same names as the arguments to :func:`showwarning`." msgstr "" +"Un gestionnaire de contexte qui copie et, à la sortie, restaure le filtre " +"des avertissements et la fonction :func:`show warning`. Si l'argument " +"*record* est :const:`False' (par défaut), le gestionnaire de contexte " +"retourne :class:`None' à l'entrée. Si *record* est :const:`True', une liste " +"est renvoyée qui est progressivement peuplée d'objets comme vu par une " +"fonction custom :func:`show warning' (qui supprime également la sortie vers " +"``sys.stdout``). Chaque objet de la liste a des attributs avec les mêmes " +"noms que les arguments de :func:`show warning`." #: ../Doc/library/warnings.rst:505 msgid "" @@ -679,6 +954,10 @@ msgid "" "returned when you import :mod:`warnings` whose filter will be protected. " "This argument exists primarily for testing the :mod:`warnings` module itself." msgstr "" +"L'argument *module* prend un module qui sera utilisé à la place du module " +"renvoyé lors de l'importation :mod:`warnings` dont le filtre sera protégé. " +"Cet argument existe principalement pour tester le module :mod:`warnings` lui-" +"même." #: ../Doc/library/warnings.rst:512 msgid "" @@ -687,3 +966,7 @@ msgid "" "filter specifications. This means the context manager is modifying global " "state and therefore is not thread-safe." msgstr "" +"Le gestionnaire :class:`catch_warnings` fonctionne en remplaçant puis en " +"restaurant plus tard la fonction :func:`show warning` du module et la liste " +"interne des spécifications du filtre. Cela signifie que le gestionnaire de " +"contexte modifie l'état global et n'est donc pas sûr pour le fil d'exécution." From 2e2671c1cce471c358f4e9705b5536d91139cc67 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 12:10:06 +0100 Subject: [PATCH 045/121] FIX: Missing reference. --- library/pickle.po | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/pickle.po b/library/pickle.po index 0cb4e00c0..357b29dd4 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2019-02-26 11:30+0100\n" +"PO-Revision-Date: 2019-02-26 12:09+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -40,8 +40,9 @@ msgstr "" "est l'opération inverse, par laquelle un flux d'octet (à partir d'un :term:" "`binary file` ou :term:`bytes-like object`) est converti en hiérarchie " "d'objets. *Pickling* (et *unpickling*) sont alternativement connu sous le " -"terme de \"sérialisation\" ou de \"*marshalisation*\". Cependant pour éviter " -"la confusion les termes utilisés ici sont *pickling* et *unpickling*." +"terme de \"sérialisation\", de \"*marshalling*\" [#]_ ou encore de " +"\"*flattening*\". Cependant pour éviter la confusion les termes utilisés ici " +"sont *pickling* et *unpickling*." #: ../Doc/library/pickle.rst:33 msgid "" From 81f886cd1bdd3d574def307062710d1ebc06ae03 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 13:08:23 +0100 Subject: [PATCH 046/121] Proofreading warnings.po --- library/warnings.po | 334 ++++++++++++++++++++++---------------------- 1 file changed, 164 insertions(+), 170 deletions(-) diff --git a/library/warnings.po b/library/warnings.po index a1adaab8a..0e228dd2e 100644 --- a/library/warnings.po +++ b/library/warnings.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2019-01-11 22:27+0100\n" +"PO-Revision-Date: 2019-02-26 13:07+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -32,10 +32,10 @@ msgid "" "an obsolete module." msgstr "" "Les messages d'avertissement sont généralement émis dans les situations où " -"il est utile d'alerter l'utilisateur d'un problème dans un programme, lorsque " -"cette condition ne justifie (normalement) pas de lever une exception et de " -"terminer le programme. Par exemple, on peut vouloir émettre un " -"avertissement lorsqu'un programme utilise un module obsolète." +"il est utile d'alerter l'utilisateur d'un problème dans un programme, mais " +"qu'il n'est pas justifié de lever une exception et de le terminer. Par " +"exemple, on peut vouloir émettre un avertissement lorsqu'un programme " +"utilise un module obsolète." #: ../Doc/library/warnings.rst:18 msgid "" @@ -43,9 +43,9 @@ msgid "" "defined in this module. (C programmers use :c:func:`PyErr_WarnEx`; see :ref:" "`exceptionhandling` for details)." msgstr "" -"Les programmeurs Python émettent des avertissements en appelant la fonction :" -"func:`warn' définie dans ce module. (Les développeurs C utilisent :c:func:" -"`PyErr_WarnEx` ; voir :ref:`exception handling` pour les détails)." +"Les développeurs Python émettent des avertissements en appelant la fonction :" +"func:`warn` définie dans ce module. (Les développeurs C utilisent :c:func:" +"`PyErr_WarnEx` ; voir :ref:`exceptionhandling` pour plus d'informations)." #: ../Doc/library/warnings.rst:22 msgid "" @@ -56,14 +56,12 @@ msgid "" "source location where it is issued. Repetitions of a particular warning for " "the same source location are typically suppressed." msgstr "" -"Les messages d'avertissement sont normalement écrits dans ``sys.stderr``, " -"mais leur affichage peut être modifiée de manière flexible, passant " -"d'ignorer tous les avertissements à les transformer en exceptions. La " -"disposition des avertissements peut varier en fonction de la catégorie " -"d'avertissement (voir ci-dessous), du texte du message d'avertissement et de " -"d'où il est émis. Les répétitions d'un " -"avertissement particulier pour le même emplacement source sont généralement " -"supprimées." +"Les messages d'avertissement sont normalement écrits sur ``sys.stderr``, " +"mais leurs effets peuvent être modifiés, il est possible d'ignorer tous les " +"avertissements ou au contraire les transformer en exceptions. L'effet des " +"avertissements peut varier en fonction de la catégorie d'avertissement (voir " +"ci-dessous), de son texte et d'où il est émis. Les répétitions d'un même " +"avertissement d'une même source sont généralement ignorés." #: ../Doc/library/warnings.rst:29 msgid "" @@ -72,10 +70,10 @@ msgid "" "next, if a message is to be issued, it is formatted and printed using a user-" "settable hook." msgstr "" -"La commande d'avertissement comporte deux étapes : premièrement, chaque fois " -"qu'un avertissement est émis, le module détermine si un message doit être émis ou " -"non ; ensuite, si un message doit être émis, il est formaté et imprimé en " -"utilisant un crochet réglable par l'utilisateur." +"La gestion des avertissements se fait en deux étapes : premièrement, chaque " +"fois qu'un avertissement est émis, le module détermine si un message doit " +"être émis ou non ; ensuite, si un message doit être émis, il est formaté et " +"affiché en utilisant une fonction qui peut être définie par l'utilisateur." #: ../Doc/library/warnings.rst:33 msgid "" @@ -84,11 +82,10 @@ msgid "" "be added to the filter by calling :func:`filterwarnings` and reset to its " "default state by calling :func:`resetwarnings`." msgstr "" -"La détermination de l'émission d'un message d'avertissement est contrôlée " -"par le filtre d'avertissement, qui est une séquence de règles et de leurs actions " -"correspondantes. Des règles peuvent être ajoutées au filtre en appelant :" -"func:`filter warnings` et remises à leur état par défaut en appelant :func:" -"`resetwarnings`." +"Un filtre (une séquence de règles) est utilisé pour décider si un message " +"d'avertissement doit être émis ou non. Des règles peuvent être ajoutées au " +"filtre en appelant :func:`filterwarnings` et remises à leur état par défaut " +"en appelant :func:`resetwarnings`." #: ../Doc/library/warnings.rst:38 msgid "" @@ -97,10 +94,10 @@ msgid "" "the message by calling :func:`formatwarning`, which is also available for " "use by custom implementations." msgstr "" -"L'affichage des messages d'avertissement se fait en appelant :func:`show " -"warning`, qui peut être redéfinie ; l'implémentation par défaut de cette " -"fonction formate le message en appelant :func:`format warning`, qui peut également être réutilisé" -"pour une implémentation personnalisée." +"L'affichage des messages d'avertissement se fait en appelant la fonction :" +"func:`showwarning`, qui peut être redéfinie ; l'implémentation par défaut " +"formate le message en appelant :func:`formatwarning`, qui peut également " +"être réutilisée par une implémentation personnalisée." #: ../Doc/library/warnings.rst:44 msgid "" @@ -119,7 +116,7 @@ msgid "" "There are a number of built-in exceptions that represent warning categories. " "This categorization is useful to be able to filter out groups of warnings." msgstr "" -"Il existe un certain nombre d'exceptions intégrées qui représentent des " +"Il existe un certain nombre d'exceptions natives qui représentent des " "catégories d'avertissement. Cette catégorisation est utile pour filtrer les " "groupes d'avertissements." @@ -129,9 +126,9 @@ msgid "" "exceptions>`, they are documented here, because conceptually they belong to " "the warnings mechanism." msgstr "" -"Bien qu'il s'agisse techniquement d'exceptions, les :ref:`built-in exceptions " -"` sont documentées ici, parce " -"qu'elles appartiennent conceptuellement au mécanisme des avertissements." +"Bien qu'il s'agisse techniquement d'exceptions, les :ref:`exceptions natives " +"` sont documentées ici, parce qu'elles " +"appartiennent conceptuellement au mécanisme des avertissements." #: ../Doc/library/warnings.rst:60 msgid "" @@ -140,9 +137,9 @@ msgid "" "of the :exc:`Warning` class." msgstr "" "Le code utilisateur peut définir des catégories d'avertissement " -"supplémentaires en sous-classant l'une des catégories d'avertissement " -"standard. Une catégorie d'avertissement doit toujours être une sous-classe " -"de la classe :exc:`Warning`." +"supplémentaires en héritant l'une des catégories d'avertissement standard. " +"Une catégorie d'avertissement doit toujours hériter de la classe :exc:" +"`Warning`." #: ../Doc/library/warnings.rst:64 msgid "The following warnings category classes are currently defined:" @@ -190,7 +187,7 @@ msgid "" msgstr "" "Catégorie de base pour les avertissements sur les fonctionnalités obsolètes " "lorsque ces avertissements sont destinés à d'autres développeurs Python " -"(ignorées par défaut, sauf si déclenchées par le code de ``__main__``)." +"(ignorées par défaut, sauf si elles proviennent de ``__main__``)." #: ../Doc/library/warnings.rst:82 msgid ":exc:`SyntaxWarning`" @@ -199,8 +196,7 @@ msgstr ":exc:`SyntaxWarning`" #: ../Doc/library/warnings.rst:82 msgid "Base category for warnings about dubious syntactic features." msgstr "" -"Catégorie de base pour les avertissements concernant des caractéristiques " -"syntaxiques douteuses." +"Catégorie de base pour les avertissements concernant les syntaxes douteuses." #: ../Doc/library/warnings.rst:85 msgid ":exc:`RuntimeWarning`" @@ -265,7 +261,7 @@ msgstr ":exc:`BytesWarning`" msgid "" "Base category for warnings related to :class:`bytes` and :class:`bytearray`." msgstr "" -"Catégorie de base pour les avertissements relatifs à :class:`bytes` et " +"Catégorie de base pour les avertissements relatifs à :class:`bytes` et :" "class:`bytearray`." #: ../Doc/library/warnings.rst:107 @@ -285,11 +281,11 @@ msgid "" "changing its behaviour. They are now distinguished based on their intended " "audience and the way they're handled by the default warnings filters." msgstr "" -"Avant, :exc:`DeprecationWarning` et :exc:`FutureWarning` se différencient " -"selon qu'un élément était entièrement supprimé ou qu'il modifiait son " -"comportement. Ils se différencient désormais en fonction de leur public cible " -"et de la façon dont ils sont traités par les filtres d'avertissement par " -"défaut." +"Avant, la différence entre :exc:`DeprecationWarning` et :exc:`FutureWarning` " +"était que l'un était dédié aux fonctionnalités retirées, et l'autre aux " +"fonctionnalités modifiées. La différence aujourd'hui est plutôt leur " +"audience et la façon dont ils sont traités par les filtres d'avertissement " +"par défaut." #: ../Doc/library/warnings.rst:122 msgid "The Warnings Filter" @@ -311,11 +307,10 @@ msgid "" "determines the disposition of the match. Each entry is a tuple of the form " "(*action*, *message*, *category*, *module*, *lineno*), where:" msgstr "" -"Conceptuellement, le filtre d'avertissements maintient une liste ordonnée de " -"spécifications de filtre ; tout avertissement spécifique est comparé à " -"chaque spécification de filtre dans la liste jusqu'à ce qu'une " -"correspondance soit trouvée ; le filtre détermine la disposition de la " -"correspondance. Chaque entrée est un quintuplet de la forme (*action*, " +"Conceptuellement, le filtre d'avertissements maintient une liste ordonnée " +"d'entrées ; chaque avertissement est comparé à chaque entrée de la liste " +"jusqu'à ce qu'une correspondance soit trouvée ; l'entrée détermine l'action " +"à effectuer. Chaque entrée est un quintuplet de la forme (*action*, " "*message*, *catégorie*, *module*, *lineno*), où :" #: ../Doc/library/warnings.rst:133 @@ -328,7 +323,7 @@ msgstr "Valeur" #: ../Doc/library/warnings.rst:136 msgid "Disposition" -msgstr "Disposition" +msgstr "Action" #: ../Doc/library/warnings.rst:138 msgid "``\"default\"``" @@ -339,8 +334,8 @@ msgid "" "print the first occurrence of matching warnings for each location (module + " "line number) where the warning is issued" msgstr "" -"affiche la première occurrence des avertissements correspondants pour " -"chaque emplacement (module + numéro de ligne) où l'avertissement est émis" +"affiche la première occurrence des avertissements correspondants pour chaque " +"emplacement (module + numéro de ligne) où l'avertissement est émis" #: ../Doc/library/warnings.rst:142 msgid "``\"error\"``" @@ -364,7 +359,7 @@ msgstr "``\"always\"``" #: ../Doc/library/warnings.rst:146 msgid "always print matching warnings" -msgstr "affiche dans tous les cas les avertissements correspondants" +msgstr "affiche toujours les avertissements correspondants" #: ../Doc/library/warnings.rst:148 msgid "``\"module\"``" @@ -375,8 +370,8 @@ msgid "" "print the first occurrence of matching warnings for each module where the " "warning is issued (regardless of line number)" msgstr "" -"affiche la première occurrence des avertissements correspondants pour " -"chaque module où l'avertissement est émis (quel que soit le numéro de ligne)" +"affiche la première occurrence des avertissements correspondants pour chaque " +"module où l'avertissement est émis (quel que soit le numéro de ligne)" #: ../Doc/library/warnings.rst:152 msgid "``\"once\"``" @@ -386,8 +381,8 @@ msgstr "``\"once\"``" msgid "" "print only the first occurrence of matching warnings, regardless of location" msgstr "" -"n'imprime que la première occurrence des avertissements correspondants, " -"quel que soit l'endroit où ils se trouvent" +"n'affiche que la première occurrence des avertissements correspondants, quel " +"que soit l'endroit où ils se trouvent" #: ../Doc/library/warnings.rst:156 msgid "" @@ -421,17 +416,16 @@ msgid "" "*lineno* is an integer that the line number where the warning occurred must " "match, or ``0`` to match all line numbers." msgstr "" -"*lineno* est un nombre entier avec lequel le numéro de ligne où l'avertissement a eu " -"lieu doit correspondre, ou ``0`` pour correspondre à tous les numéros de " -"ligne." +"*lineno* est le numéro de ligne d'où l'avertissement doit provenir, ou ``0`` " +"pour correspondre à tous les numéros de ligne." #: ../Doc/library/warnings.rst:169 msgid "" "Since the :exc:`Warning` class is derived from the built-in :exc:`Exception` " "class, to turn a warning into an error we simply raise ``category(message)``." msgstr "" -"Depuis que la classe :exc:`Warning' est dérivée de la classe native :exc:" -"`Exception', pour transformer un avertissement en erreur, il suffit de lever " +"Puisque que la classe :exc:`Warning` hérite de la classe :exc:`Exception`, " +"pour transformer un avertissement en erreur, il suffit de lever " "``category(message)``." #: ../Doc/library/warnings.rst:172 @@ -440,11 +434,11 @@ msgid "" "\"default\" action is applied (hence its name)." msgstr "" "Si un avertissement est signalé et ne correspond à aucun filtre enregistré, " -"l'action \"default\" est appliquée (d'où son nom)." +"l'action ``default`` est appliquée (d'où son nom)." #: ../Doc/library/warnings.rst:179 msgid "Describing Warning Filters" -msgstr "Description des filtres d'avertissement" +msgstr "Rédaction de filtres d'avertissement" #: ../Doc/library/warnings.rst:181 msgid "" @@ -459,9 +453,9 @@ msgstr "" "passées à la ligne de commande de l'interpréteur Python et la variable " "d'environnement :envvar:`PYTHONWARNINGS`. L'interpréteur enregistre les " "arguments de toutes les entrées fournies sans interprétation dans ``sys." -"warnoptions`` ; le module :mod:``warnings` les analyse lors de la première " -"importation (les options invalides sont ignorées, après impression d'un " -"message à ``sys.stderr``)." +"warnoptions`` ; le module :mod:`warnings` les analyse lors de la première " +"importation (les options invalides sont ignorées, et un message d'erreur est " +"envoyé à ``sys.stderr``)." #: ../Doc/library/warnings.rst:188 msgid "" @@ -480,10 +474,10 @@ msgid "" "they're applied left-to-right, and the most recently applied filters take " "precedence over earlier ones)." msgstr "" -"La signification de chacun de ces champs est décrite dans :ref:" -"`warning-filter`. Lorsque vous lisez plusieurs filtres sur une seule ligne " -"(comme pour :envvar:`PYTHONWARNINGS`), les filtres individuels sont séparés " -"par des virgules, et les filtres listés plus tard ont priorité sur ceux qui " +"La signification de chacun de ces champs est décrite dans :ref:`warning-" +"filter`. Plusieurs filtres peuvent être écrits en une seule ligne (comme " +"pour :envvar:`PYTHONWARNINGS`), ils sont dans ce cas séparés par des " +"virgules, et les filtres listés plus en dernier ont priorité sur ceux qui " "les précèdent (car ils sont appliqués de gauche à droite, et les filtres les " "plus récemment appliqués ont priorité sur les précédents)." @@ -517,8 +511,8 @@ msgid "" "In regular release builds, the default warning filter has the following " "entries (in order of precedence)::" msgstr "" -"Dans les versions standard publiées de Python, le filtre d'avertissement par défaut a les " -"entrées suivantes (par ordre de priorité) ::" +"Dans les versions standard publiées de Python, le filtre d'avertissement par " +"défaut a les entrées suivantes (par ordre de priorité) ::" #: ../Doc/library/warnings.rst:232 msgid "In debug builds, the list of default warning filters is empty." @@ -539,8 +533,8 @@ msgid "" ":exc:`DeprecationWarning` is once again shown by default when triggered " "directly by code in ``__main__``." msgstr "" -":exc:`DeprecationWarning` est à nouveau affiché par défaut lorsqu'il est " -"déclenché directement par code dans ``__main__``." +":exc:`DeprecationWarning` est à nouveau affiché par défaut lorsqu'il " +"provient directement de ``__main__``." #: ../Doc/library/warnings.rst:242 msgid "" @@ -549,8 +543,8 @@ msgid "" "specified twice." msgstr "" ":exc:`BytesWarning` n'apparaît plus dans la liste de filtres par défaut et " -"est configuré via :data:`sys.warnoptions` lorsque l'option:`-b` est " -"spécifiée deux fois." +"est configuré via :data:`sys.warnoptions` lorsque l'option :option:`-b` est " +"donnée deux fois." #: ../Doc/library/warnings.rst:251 msgid "Overriding the default filter" @@ -566,11 +560,11 @@ msgid "" "disabled::" msgstr "" "Les développeurs d'applications écrites en Python peuvent souhaiter cacher " -"*tous* les* avertissements de niveau Python à leurs utilisateurs par défaut, " -"et ne les afficher que lorsqu'ils exécutent des tests ou travaillent sur " -"l'application. L'attribut :data:`sys.warnoptions` utilisé pour passer les " -"configurations de filtre à l'interpréteur peut être utilisé comme marqueur " -"pour indiquer si les avertissements doivent être ou non désactivés ::" +"*tous* les avertissements Python à leurs utilisateurs, et ne les afficher " +"que lorsqu'ils exécutent des tests ou travaillent sur l'application. " +"L'attribut :data:`sys.warnoptions` utilisé pour passer les configurations de " +"filtre à l'interpréteur peut être utilisé comme marqueur pour indiquer si " +"les avertissements doivent être ou non désactivés ::" #: ../Doc/library/warnings.rst:265 msgid "" @@ -580,7 +574,7 @@ msgid "" msgstr "" "Les développeurs d'exécuteurs de test pour le code Python sont invités à " "s'assurer que *tous* les avertissements sont affichés par défaut pour le " -"code en cours de test, en utilisant un code comme::" +"code en cours de test, en utilisant par exemple ::" #: ../Doc/library/warnings.rst:276 msgid "" @@ -593,12 +587,12 @@ msgstr "" "exécutent du code utilisateur dans un espace de nommage autre que " "``__main__`` sont invités à s'assurer que les messages :exc:" "`DeprecationWarning` sont rendus visibles par défaut, en utilisant le code " -"suivant (où ``user_ns'' est le module utilisé pour exécuter le code entré " -"interactivement): :" +"suivant (où ``user_ns`` est le module utilisé pour exécuter le code entré " +"interactivement) ::" #: ../Doc/library/warnings.rst:289 msgid "Temporarily Suppressing Warnings" -msgstr "Suppression Temporaire des Avertissements" +msgstr "Suppression temporaire des avertissements" #: ../Doc/library/warnings.rst:291 msgid "" @@ -612,7 +606,7 @@ msgstr "" "l'avertissement (même si les avertissements ont été explicitement configurés " "via la ligne de commande), alors il est possible de supprimer " "l'avertissement en utilisant le gestionnaire de contexte :class:" -"`catch_warnings': :" +"`catch_warnings` ::" #: ../Doc/library/warnings.rst:305 msgid "" @@ -624,12 +618,13 @@ msgid "" "context manager at the same time, the behavior is undefined." msgstr "" "Dans le gestionnaire de contexte, tous les avertissements sont simplement " -"ignorés. Ceci vous permet d'utiliser du code déclaré obsolète sans " -"voir l'avertissement tout en ne supprimant pas l'avertissement pour un autre " -"code qui pourrait ne pas être conscient de son utilisation de code " -"déprécié. Remarque : ceci ne peut être garanti que dans une application à " -"filetage unique. Si deux ou plusieurs threads utilisent le gestionnaire de " -"contexte :class:`catch_warnings' en même temps, le comportement est indéfini." +"ignorés. Ceci vous permet d'utiliser du code déclaré obsolète sans voir " +"l'avertissement tout en ne supprimant pas l'avertissement pour un autre code " +"qui pourrait ne pas être conscient de son utilisation de code déprécié. " +"Remarque : ceci ne peut être garanti que dans une application utilisant un " +"seul fil d'exécution. Si deux ou plusieurs *threads* utilisent le " +"gestionnaire de contexte :class:`catch_warnings` en même temps, le " +"comportement est indéfini." #: ../Doc/library/warnings.rst:317 msgid "Testing Warnings" @@ -643,9 +638,9 @@ msgid "" "raised warnings to check::" msgstr "" "Pour tester les avertissements générés par le code, utilisez le gestionnaire " -"de contexte :class:`catch_warnings'. Avec lui, vous pouvez temporairement " -"muter le filtre d'avertissements pour faciliter votre test. Par exemple, " -"procédez comme suit pour capturer tous les avertissements levés à vérifier::" +"de contexte :class:`catch_warnings`. Avec lui, vous pouvez temporairement " +"modifier le filtre d'avertissements pour faciliter votre test. Par exemple, " +"procédez comme suit pour capturer tous les avertissements levés à vérifier ::" #: ../Doc/library/warnings.rst:339 msgid "" @@ -656,11 +651,11 @@ msgid "" "registry related to the warning has been cleared." msgstr "" "Vous pouvez aussi faire en sorte que tous les avertissements soient des " -"exceptions en utilisant \"erreur\" au lieu de \"toujours\". Il faut savoir " -"que si un avertissement a déjà été émis à cause d'une règle \"une fois\" ou " -"\"par défaut\", quel que soit le filtre activé, l'avertissement ne sera pas " +"exceptions en utilisant ``error`` au lieu de ``always``. Il faut savoir que " +"si un avertissement a déjà été émis à cause d'une règle ``once`` ou " +"``default``, quel que soit le filtre activé, l'avertissement ne sera pas " "revu à moins que le registre des avertissements lié à l'avertissement ait " -"été supprimé." +"été vidé." #: ../Doc/library/warnings.rst:345 msgid "" @@ -672,14 +667,14 @@ msgid "" "application. If two or more threads use the :class:`catch_warnings` context " "manager at the same time, the behavior is undefined." msgstr "" -"Une fois que le gestionnaire de contexte se termine, le filtre des " -"avertissements est restauré dans son état au moment où le contexte a été " -"saisi. Cela empêche les tests de changer le filtre d'avertissements de " -"manière inattendue entre les tests et d'aboutir à des résultats de test " -"indéterminés. La fonction :func:`show warning` du module est également " -"restaurée à sa valeur originale. Remarque : ceci ne peut être garanti que " -"dans une application à filetage unique. Si deux ou plusieurs fils d'exécution" -"utilisent le gestionnaire de contexte :class:`catch_warnings' en même temps, " +"A sa sortie, le gestionnaire de contexte restaure le filtre des " +"avertissements dans l'état où il était au démarrage du contexte. Cela " +"empêche les tests de changer le filtre d'avertissements de manière " +"inattendue entre les tests et d'aboutir à des résultats de test " +"indéterminés. La fonction :func:`showwarning` du module est également " +"restaurée à sa valeur originale. Remarque : ceci ne peut être garanti que " +"dans une application *mono-threadées*. Si deux ou plusieurs fils d'exécution " +"utilisent le gestionnaire de contexte :class:`catch_warnings` en même temps, " "le comportement est indéfini." #: ../Doc/library/warnings.rst:353 @@ -702,7 +697,7 @@ msgstr "" #: ../Doc/library/warnings.rst:364 msgid "Updating Code For New Versions of Dependencies" -msgstr "Mise à jour du Code pour les Nouvelles Versions des Dépendances" +msgstr "Mise à jour du code pour les nouvelles versions des dépendances" #: ../Doc/library/warnings.rst:366 msgid "" @@ -737,7 +732,7 @@ msgid "" msgstr "" "Dans le cas idéal, le code dispose d'une suite de tests appropriée, et le " "testeur se charge d'activer implicitement tous les avertissements lors de " -"l'exécution des tests (le testeur fourni par le module :mod:`unittest' le " +"l'exécution des tests (le testeur fourni par le module :mod:`unittest` le " "fait)." #: ../Doc/library/warnings.rst:379 @@ -751,15 +746,15 @@ msgid "" "W` (e.g. :option:`!-W error`). See the :option:`-W` flag for more details on " "what is possible." msgstr "" -"Dans des cas moins idéaux, les applications peuvent être vérifiées pour " -"l'utilisation d'interfaces obsolètes en passant :option:`-Wd <-W>`à " -"l'interpréteur Python (c'est une abréviation pour option:`!-W default`) ou " -"en définissant ``PYTHONWARNINGS=default`` dans l'environnement. Ceci permet " -"la gestion par défaut de tous les avertissements, y compris ceux qui sont " -"ignorés par défaut. Pour changer l'action prise pour les avertissements " -"rencontrés, vous pouvez changer quel argument est passé à :option:`-W` (par " -"exemple:option:`!-W error`). Voir l'option :option:`-W` pour plus de détails " -"sur ce qui est possible." +"Dans des cas moins idéaux, l'utilisation de d'interfaces obsolète peut être " +"testé en passant :option:`-Wd <-W>` à l'interpréteur Python (c'est une " +"abréviation pour :option:`!-W default`) ou en définissant " +"``PYTHONWARNINGS=default`` dans l'environnement. Ceci permet la gestion par " +"défaut de tous les avertissements, y compris ceux qui sont ignorés par " +"défaut. Pour changer l'action prise pour les avertissements rencontrés, vous " +"pouvez changer quel argument est passé à :option:`-W` (par exemple :option:" +"`!-W error`). Voir l'option :option:`-W` pour plus de détails sur ce qui est " +"possible." #: ../Doc/library/warnings.rst:392 msgid "Available Functions" @@ -777,15 +772,15 @@ msgid "" "The *stacklevel* argument can be used by wrapper functions written in " "Python, like this::" msgstr "" -"Émettre un avertissement, ou peut-être l'ignorer ou faire une exception. " -"L'argument *categorie*, s'il est donné, doit être une classe de catégorie " -"d'avertissement (voir ci-dessus) ; il est par défaut :exc:`UserWarning'. " -"Alternativement *message* peut être une instance :exc:`Warning', auquel cas " -"*categorie* sera ignoré et ``message.__class__`` sera utilisé. Dans ce cas, " +"Émet, ignore, ou transforme en exception un avertissement. L'argument " +"*category*, s'il est donné, doit être une classe de catégorie " +"d'avertissement (voir ci-dessus) ; et vaut par défaut :exc:`UserWarning`. " +"Aussi *message* peut être une instance de :exc:`Warning', auquel cas " +"*category* sera ignoré et ``message.__class__`` sera utilisé. Dans ce cas, " "le texte du message sera ``str(message)``. Cette fonction lève une exception " -"si cet l'avertissement particulier émis est transformé en erreur par le " -"filtre des avertissements voir ci-dessus. L'argument *stacklevel* peut être " -"utilisé par les fonctions wrapper écrites en Python, comme ceci::" +"si cet avertissement particulier émis est transformé en erreur par le filtre " +"des avertissements, voir ci-dessus. L'argument *stacklevel* peut être " +"utilisé par les fonctions *wrapper* écrites en Python, comme ceci ::" #: ../Doc/library/warnings.rst:409 msgid "" @@ -793,9 +788,9 @@ msgid "" "the source of :func:`deprecation` itself (since the latter would defeat the " "purpose of the warning message)." msgstr "" -"Ceci fait que l'avertissement se réfère à l'appelant de :func:`deprecation` " -"plutôt qu'à la source de :func:`deprecation` elle-même (puisque celle-ci " -"irait à l'encontre du but du message d'avertissement)." +"Fait en sorte que l'avertissement se réfère à l'appelant de :func:" +"`deprecation` plutôt qu'à la source de :func:`deprecation` elle-même " +"(puisque celle-ci irait à l'encontre du but du message d'avertissement)." #: ../Doc/library/warnings.rst:413 ../Doc/library/warnings.rst:436 msgid "" @@ -824,10 +819,10 @@ msgstr "" "`warn`, en passant explicitement le message, la catégorie, le nom de fichier " "et le numéro de ligne, et éventuellement le nom du module et le registre " "(qui devrait être le dictionnaire ``__warningregistry__`` du module). Le " -"nom de module par défaut est le nom de fichier avec ``.py`` dépouillé ; si " -"aucun registre n'est passé, l'avertissement n'est jamais supprimé. *message* " -"doit être une chaîne de caractères et *category* une sous-classe de :exc:" -"`Warning' ou *message* peut être une instance:exc:`Warning', auquel cas " +"nom de module par défaut est le nom de fichier sans ``.py`` ; si aucun " +"registre n'est passé, l'avertissement n'est jamais supprimé. *message* doit " +"être une chaîne de caractères et *category* une sous-classe de :exc:" +"`Warning` ou *message* peut être une instance de :exc:`Warning`, auquel cas " "*category* sera ignoré." #: ../Doc/library/warnings.rst:431 @@ -840,11 +835,11 @@ msgstr "" "*module_globals*, s'il est fourni, doit être l'espace de nommage global " "utilisé par le code pour lequel l'avertissement est émis. (Cet argument est " "utilisé pour afficher les sources des modules trouvés dans les fichiers zip " -"ou d'autres sources d'importation non système de fichiers)." +"ou d'autres sources d'importation hors du système de fichiers)." #: ../Doc/library/warnings.rst:439 msgid "Add the *source* parameter." -msgstr "Ajouter le paramètre *source*." +msgstr "Ajout du paramètre *source*." #: ../Doc/library/warnings.rst:445 msgid "" @@ -856,14 +851,13 @@ msgid "" "message; if *line* is not supplied, :func:`showwarning` will try to read the " "line specified by *filename* and *lineno*." msgstr "" -"Ecrire un avertissement dans un fichier. L'implémentation par défaut " -"appelle ``format warning(message, category, filename, lineno, line)``et " -"écrit la chaîne résultante dans *file*, qui par défaut est ``sys.stderr``. " -"Vous pouvez remplacer cette fonction par n'importe quel appelable en " -"l'affectant à ``warnings.showwarning``. *line* est une ligne de code source " -"à inclure dans le message d'avertissement ; si *line* n'est pas fourni, :" -"func:`show warning' essaiera de lire la ligne spécifiée par *filename* et " -"*lineno*." +"Écrit un avertissement dans un fichier. L'implémentation par défaut appelle " +"``format warning(message, category, filename, lineno, line)``et écrit la " +"chaîne résultante dans *file*, qui par défaut est ``sys.stderr``. Vous " +"pouvez remplacer cette fonction par n'importe quel appelable en l'affectant " +"à ``warnings.showwarning``. *line* est une ligne de code source à inclure " +"dans le message d'avertissement ; si *line* n'est pas fourni, :func:`show " +"warning` essaiera de lire la ligne spécifiée par *filename* et *lineno*." #: ../Doc/library/warnings.rst:456 msgid "" @@ -873,11 +867,11 @@ msgid "" "`formatwarning` will try to read the line specified by *filename* and " "*lineno*." msgstr "" -"Formate un avertissement de la manière standard. Ceci retourne une chaîne " -"qui peut contenir des nouvelles lignes incorporées et se termine par une " -"nouvelle ligne. *line* est une ligne de code source à inclure dans le " -"message d'avertissement ; si *line* n'est pas fourni, :func:`format warning` " -"essaiera de lire la ligne spécifiée par *filename* et *lineno*." +"Formate un avertissement de la manière standard. Ceci renvoie une chaîne " +"pouvant contenir des retours à la ligne se termine par un retour à la " +"ligne. *line* est une ligne de code source à inclure dans le message " +"d'avertissement ; si *line* n'est pas fourni, :func:`formatwarning` essaiera " +"de lire la ligne spécifiée par *filename* et *lineno*." #: ../Doc/library/warnings.rst:465 msgid "" @@ -891,13 +885,12 @@ msgid "" "everything." msgstr "" "Insère une entrée dans la liste de :ref:`warning filter specifications " -"`. L'entrée est insérée à l'avant par défaut ; si *append* " +"`. L'entrée est insérée à l'avant par défaut ; si *append* " "est vrai, elle est insérée à la fin. Il vérifie le type des arguments, " "compile les expressions régulières *message* et *module*, et les insère sous " "forme de tuple dans la liste des filtres d'avertissements. Les entrées plus " -"proches du début de la liste remplacent les entrées plus tard dans la liste, " -"si les deux correspondent à un avertissement particulier. Les arguments " -"omis ont par défaut une valeur qui correspond à tout." +"proches du début de la liste ont priorité sur les entrées plus loin dans la " +"liste. Les arguments omis ont par défaut une valeur qui correspond à tout." #: ../Doc/library/warnings.rst:477 msgid "" @@ -908,11 +901,11 @@ msgid "" "and line number match." msgstr "" "Insère une entrée simple dans la liste de :ref:`spécifications du filtre " -"d'avertissements `. La signification des paramètres " -"de fonction est la même que pour :func:`filter warning`, mais les " -"expressions régulières ne sont pas nécessaires car le filtre inséré " -"correspond toujours à n'importe quel message dans n'importe quel module tant " -"que la catégorie et le numéro de ligne correspondent." +"d'avertissements `. La signification des paramètres de " +"fonction est la même que pour :func:`filterwarnings`, mais les expressions " +"régulières ne sont pas nécessaires car le filtre inséré correspond toujours " +"à n'importe quel message dans n'importe quel module tant que la catégorie et " +"le numéro de ligne correspondent." #: ../Doc/library/warnings.rst:486 msgid "" @@ -921,13 +914,13 @@ msgid "" "options and calls to :func:`simplefilter`." msgstr "" "Réinitialise le filtre des avertissements. Ceci supprime l'effet de tous " -"les appels précédents vers :func:`filter warnings`, y compris celui de " -"l'option:`-W' des options de ligne de commande et des appels vers :func:" +"les appels précédents à :func:`filterwarnings`, y compris celui de l'option :" +"option:`-W` des options de ligne de commande et des appels à :func:" "`simplefilter`." #: ../Doc/library/warnings.rst:492 msgid "Available Context Managers" -msgstr "Gestionnaires de Contexte Disponibles" +msgstr "Gestionnaires de contexte disponibles" #: ../Doc/library/warnings.rst:496 msgid "" @@ -940,13 +933,13 @@ msgid "" "has attributes with the same names as the arguments to :func:`showwarning`." msgstr "" "Un gestionnaire de contexte qui copie et, à la sortie, restaure le filtre " -"des avertissements et la fonction :func:`show warning`. Si l'argument " -"*record* est :const:`False' (par défaut), le gestionnaire de contexte " -"retourne :class:`None' à l'entrée. Si *record* est :const:`True', une liste " -"est renvoyée qui est progressivement peuplée d'objets comme vu par une " -"fonction custom :func:`show warning' (qui supprime également la sortie vers " +"des avertissements et la fonction :func:`showwarning`. Si l'argument " +"*record* est :const:`False` (par défaut), le gestionnaire de contexte " +"retourne :class:`None` en entrant. Si *record* est :const:`True`, une liste " +"est renvoyée qui est progressivement remplie d'objets comme vus par une " +"fonction custom :func:`showwarning' (qui supprime également la sortie vers " "``sys.stdout``). Chaque objet de la liste a des attributs avec les mêmes " -"noms que les arguments de :func:`show warning`." +"noms que les arguments de :func:`showwarning`." #: ../Doc/library/warnings.rst:505 msgid "" @@ -967,6 +960,7 @@ msgid "" "state and therefore is not thread-safe." msgstr "" "Le gestionnaire :class:`catch_warnings` fonctionne en remplaçant puis en " -"restaurant plus tard la fonction :func:`show warning` du module et la liste " +"restaurant plus tard la fonction :func:`showwarning` du module et la liste " "interne des spécifications du filtre. Cela signifie que le gestionnaire de " -"contexte modifie l'état global et n'est donc pas sûr pour le fil d'exécution." +"contexte modifie l'état global et n'est donc pas prévisible avec plusieurs " +"fils d'exécution." From 90147b4e8797ad5137707b35e1130d6d42a90e7b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 15:10:14 +0100 Subject: [PATCH 047/121] Partly translated, not reviewed Co-Authored-By: lubenard <42534397+lubenard@users.noreply.github.com> --- library/mailbox.po | 100 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 91 insertions(+), 9 deletions(-) diff --git a/library/mailbox.po b/library/mailbox.po index 696d75cee..846f0ef65 100644 --- a/library/mailbox.po +++ b/library/mailbox.po @@ -16,11 +16,11 @@ msgstr "" #: ../Doc/library/mailbox.rst:2 msgid ":mod:`mailbox` --- Manipulate mailboxes in various formats" -msgstr "" +msgstr ":mod:`mailbox` --- Manipuler les boîtes mail dans différents formats" #: ../Doc/library/mailbox.rst:10 msgid "**Source code:** :source:`Lib/mailbox.py`" -msgstr "" +msgstr "**Code source :** :source:`Lib/mailbox.py`" #: ../Doc/library/mailbox.rst:14 msgid "" @@ -31,22 +31,29 @@ msgid "" "message.Message` class with format-specific state and behavior. Supported " "mailbox formats are Maildir, mbox, MH, Babyl, and MMDF." msgstr "" +"Ce module définit deux classes, :class:`Mailbox` et :class:`Message`, pour " +"accéder et manipuler les boîtes mail sur le disque et les messages qu'elles " +"contiennent. :class:`Mailbox` offre un dictionnaire-compatible avec des clés " +"et des messages. :class:`Message` étand le module :mod:`email.message` " +"de la classe :class:`~email.message.Message` avec un état et un comportement " +"spécifiques à son format. Les formats de boîtes mail supportées sont " +"Maildir, mbox, MH, Babyl et MMDF." #: ../Doc/library/mailbox.rst:24 msgid "Module :mod:`email`" -msgstr "" +msgstr "Module :mod:`email`" #: ../Doc/library/mailbox.rst:25 msgid "Represent and manipulate messages." -msgstr "" +msgstr "Représente et manipule des messages." #: ../Doc/library/mailbox.rst:31 msgid ":class:`Mailbox` objects" -msgstr "" +msgstr "Objets :class:`Mailbox`" #: ../Doc/library/mailbox.rst:35 msgid "A mailbox, which may be inspected and modified." -msgstr "" +msgstr "Une boîte mail, qui peut être instectée et modifiée." #: ../Doc/library/mailbox.rst:37 msgid "" @@ -54,6 +61,10 @@ msgid "" "instantiated. Instead, format-specific subclasses should inherit from :" "class:`Mailbox` and your code should instantiate a particular subclass." msgstr "" +"La classe :class:`Mailbox` définit une interface et n'est pas destinée à " +"être instanciée. Les sous-classes de format spécifique devraient plutôt " +"hériter de :class:`Mailbox` et votre code doit instancier une sous-classe " +"particulière." #: ../Doc/library/mailbox.rst:41 msgid "" @@ -64,6 +75,12 @@ msgid "" "corresponding message is modified, such as by replacing it with another " "message." msgstr "" +"L'interface :class:`Mailbox` est un dictionnaire-compatible, avec de courtes " +"clés correspondant aux messages. Les clés sont générées par l'instance " +":class:`Mailbox` avec laquelle elles seront utilisées et seront seulement " +"significatives pour cette instance :class:`Mailbox`. Une clé continue " +"d'identifier un message même si le message correspondant est modifié ou " +"remplacé par un autre message." #: ../Doc/library/mailbox.rst:47 msgid "" @@ -71,6 +88,10 @@ msgid "" "method :meth:`add` and removed using a ``del`` statement or the set-like " "methods :meth:`remove` and :meth:`discard`." msgstr "" +"Les messages peuvent être ajoutés à une instance :class:`Mailbox` en " +"utilisant une méthode set-compatible :meth:`add` et supprimés en utilisant " +"une instruction ``del`` ou les méthodes set-compatible :meth:`remove` et " +":meth:`discard`." #: ../Doc/library/mailbox.rst:51 msgid "" @@ -82,6 +103,13 @@ msgid "" "copied. In neither case is a reference to the message representation kept by " "the :class:`Mailbox` instance." msgstr "" +"L'interface sémantique :class:`Mailbox` diffère des sémantiques du " +"dictionnaire sur plusieurs aspects. À chaque fois qu'un message est demandé, " +"une nouvelle représentation (généralement une instance :class:`Message`) est " +"générée en se basant sur l'état actuel de la boîte mail. De la même manière, " +"lorsqu'un message est ajouté à l'instance :class:`Mailbox`, le contenu de la " +"représentation du message donné est copié. En aucun cas une référence vers " +"la représentation du message n'est gardée par l'instance :class:`Mailbox`. " #: ../Doc/library/mailbox.rst:59 msgid "" @@ -93,6 +121,15 @@ msgid "" "silently skipped, though using a key from an iterator may result in a :exc:" "`KeyError` exception if the corresponding message is subsequently removed." msgstr "" +"L'itérateur par défaut de :class:`Mailbox` itère sur les représentations des " +"messages et non les clés, de la même manière que le ferait l'itérateur " +"dictionnaire par défaut. De plus, les modifications sur une boîte mail " +"durant l'itération sont sûres et clairement définies. Les messages ajoutés à " +"la boîte mail après la création d'un itérateur ne seront pas vus par " +"l'itérateur. Les messages supprimés de la boîte mail avant que l'itérateur " +"les traite seront silencieusement ignorés. Toutefois, utiliser une clé " +"depuis un itérateur pourrait aboutir à une exception :exc:`KeyError` si le " +"message correspondant est supprimé par la suite." #: ../Doc/library/mailbox.rst:70 msgid "" @@ -105,15 +142,25 @@ msgid "" "Failing to lock the mailbox runs the risk of losing messages or corrupting " "the entire mailbox." msgstr "" +"Soyez très prudent lorsque vous éditez des boîtes mail qui pourraient être " +"modifiées par d'autres processus. Le format de boîte mail le plus sûr " +"à utiliser pour ces tâches est Maildir, essayez d'éviter les formats à " +"fichier unique tels que mbox afin d'empêcher les écritures concurrentes. " +"Si vous modifiez une boîte mail, vous *devez* la verrouiller en appelant " +"les méthodes :meth:`lock` et :meth:`unlock` *avant* de lire les messages " +"dans le fichier ou d'y appliquer des changements en y ajoutant ou supprimant " +"des messages. Ne pas verrouiller la boîte mail encourt le risque de perdre " +"des messages ou de corrompre la boîte mail entière." #: ../Doc/library/mailbox.rst:79 msgid ":class:`Mailbox` instances have the following methods:" -msgstr "" +msgstr "Les instances :class:`Mailbox` contiennent les méthodes suivantes :" #: ../Doc/library/mailbox.rst:84 msgid "" "Add *message* to the mailbox and return the key that has been assigned to it." msgstr "" +"Ajoute *message* à la boîte mail et retourne la clé qui lui a été assignée." #: ../Doc/library/mailbox.rst:87 msgid "" @@ -125,14 +172,22 @@ msgid "" "format-specific information is used. Otherwise, reasonable defaults for " "format-specific information are used." msgstr "" +"Le paramètre *message* peut être une instance :class:`Message`, une instance " +":class:`email.message.Message`, une chaîne de caractères, une chaîne de " +"bits ou un objet fichier-compatible (qui doit être ouvert en mode binaire). " +"Si *message* est une instance de la sous-classe :class:`Message` au format " +"correspondant (e.g., s'il s'agit d'une instance :class:`mboxMessage` et " +"d'une instance :class:`mbox`), les informations spécifiques à son format " +"sont utilisées. Sinon, des valeurs par défaut raisonnables pour son format " +"sont utilisées." #: ../Doc/library/mailbox.rst:96 msgid "Support for binary input was added." -msgstr "" +msgstr "Le support pour une entrée binaire a été ajouté." #: ../Doc/library/mailbox.rst:104 msgid "Delete the message corresponding to *key* from the mailbox." -msgstr "" +msgstr "Supprime le message correspondant à *key* dans la boîte mail." #: ../Doc/library/mailbox.rst:106 msgid "" @@ -142,12 +197,20 @@ msgid "" "`discard` may be preferred if the underlying mailbox format supports " "concurrent modification by other processes." msgstr "" +"Si ce message n'existe pas, une exception :exc:`KeyError` est levée si la " +"méthode a été appelée en tant que :meth:`remove` ou :meth:`__delitem__` mais " +"aucune exception n'est levée si la méthode a été appelée en tant que " +":meth:`discard`. Le comportement de :meth:`discard` pourrait être préféré " +"si le format de boîte mail sous-jacent supporte la modification concurrente " +"par les autres processus." #: ../Doc/library/mailbox.rst:115 msgid "" "Replace the message corresponding to *key* with *message*. Raise a :exc:" "`KeyError` exception if no message already corresponds to *key*." msgstr "" +"Remplace le message correspondant à *key* par *message*. Lève une exception " +":exc:`KeyError` s'il n'y a pas déjà de message correspondant à *key*." #: ../Doc/library/mailbox.rst:118 msgid "" @@ -160,12 +223,24 @@ msgid "" "specific information of the message that currently corresponds to *key* is " "left unchanged." msgstr "" +"Comme pour :meth:`add`, le paramètre *message* peut être une instance " +":class:`Message`, une instance :class:`email.message.Message`, une chaîne " +"de caractères, une chaîne de bits ou un objet fichier-compatible (qui doit " +"être ouvert en mode binaire). Si *message* est une instance de la " +"sous-classe :class:`Message` au format correspondant (e.g., s'il s'agit " +"d'une instance :class:`mboxMessage` et d'une instance :class:`mbox`), " +"les informations spécifiques à son format sont utilisées. Sinon, les " +"informations spécifiques au format du message qui correspond à *key* n'est " +"pas modifié." #: ../Doc/library/mailbox.rst:132 msgid "" "Return an iterator over all keys if called as :meth:`iterkeys` or return a " "list of keys if called as :meth:`keys`." msgstr "" +"Retourne un itérateur sur toutes les clés s'il est appelé en tant que " +":meth:`iterkeys` ou retourne une liste de clés s'il est appelé en tant que " +":meth:`keys`." #: ../Doc/library/mailbox.rst:140 msgid "" @@ -176,6 +251,13 @@ msgid "" "message factory was specified when the :class:`Mailbox` instance was " "initialized." msgstr "" +"Retourne un itérateur sur les représentations de tous les messages s'il est " +"appelé en tant que :meth:`itervalues` ou :meth:``__iter__` et retourne une " +"liste de ces représentations s'il est appelé en tant que :meth:`values`. " +"Les messages sont représentés en tant qu'instances de la sous-classe " +":class:`Message` au format correspondant à moins qu'une fabrique de messages " +"personnalisée soit spécifiée lorsque l'instance :class:`Mailbox` a été " +"initialisée." #: ../Doc/library/mailbox.rst:149 msgid "" From 25a2f2e03e9a884ee44d1222d87e8606af25367c Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 15:37:23 +0100 Subject: [PATCH 048/121] Proofreading library/mailbox.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Co-Authored-By: Jules Lasne (jlasne - seluj78) --- library/mailbox.po | 159 +++++++++++++++++++++++---------------------- 1 file changed, 81 insertions(+), 78 deletions(-) diff --git a/library/mailbox.po b/library/mailbox.po index 846f0ef65..3fb658d8e 100644 --- a/library/mailbox.po +++ b/library/mailbox.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2019-02-26 15:35+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -16,11 +16,12 @@ msgstr "" #: ../Doc/library/mailbox.rst:2 msgid ":mod:`mailbox` --- Manipulate mailboxes in various formats" -msgstr ":mod:`mailbox` --- Manipuler les boîtes mail dans différents formats" +msgstr "" +":mod:`mailbox` — Manipuler les boîtes de courriels dans différents formats" #: ../Doc/library/mailbox.rst:10 msgid "**Source code:** :source:`Lib/mailbox.py`" -msgstr "**Code source :** :source:`Lib/mailbox.py`" +msgstr "**Code source :** :source:`Lib/mailbox.py`" #: ../Doc/library/mailbox.rst:14 msgid "" @@ -32,12 +33,13 @@ msgid "" "mailbox formats are Maildir, mbox, MH, Babyl, and MMDF." msgstr "" "Ce module définit deux classes, :class:`Mailbox` et :class:`Message`, pour " -"accéder et manipuler les boîtes mail sur le disque et les messages qu'elles " -"contiennent. :class:`Mailbox` offre un dictionnaire-compatible avec des clés " -"et des messages. :class:`Message` étand le module :mod:`email.message` " -"de la classe :class:`~email.message.Message` avec un état et un comportement " -"spécifiques à son format. Les formats de boîtes mail supportées sont " -"Maildir, mbox, MH, Babyl et MMDF." +"accéder et manipuler les boîtes de courriel sur le disque et les messages " +"qu'elles contiennent. :class:`Mailbox` offre une interface ressemblant aux " +"dictionnaires avec des clés et des messages. La classe :class:`Message` " +"étend le module :mod:`email.message` de la classe :class:`~email.message." +"Message` avec un état et un comportement spécifiques à son format. Les " +"formats de boîtes de courriel gérés sont *Maildir*, *mbox*, *MH*, *Babyl* et " +"*MMDF*." #: ../Doc/library/mailbox.rst:24 msgid "Module :mod:`email`" @@ -53,7 +55,7 @@ msgstr "Objets :class:`Mailbox`" #: ../Doc/library/mailbox.rst:35 msgid "A mailbox, which may be inspected and modified." -msgstr "Une boîte mail, qui peut être instectée et modifiée." +msgstr "Une boîte mail, qui peut être inspectée et modifiée." #: ../Doc/library/mailbox.rst:37 msgid "" @@ -62,7 +64,7 @@ msgid "" "class:`Mailbox` and your code should instantiate a particular subclass." msgstr "" "La classe :class:`Mailbox` définit une interface et n'est pas destinée à " -"être instanciée. Les sous-classes de format spécifique devraient plutôt " +"être instanciée. Les sous-classes de format spécifique doivent plutôt " "hériter de :class:`Mailbox` et votre code doit instancier une sous-classe " "particulière." @@ -75,12 +77,12 @@ msgid "" "corresponding message is modified, such as by replacing it with another " "message." msgstr "" -"L'interface :class:`Mailbox` est un dictionnaire-compatible, avec de courtes " -"clés correspondant aux messages. Les clés sont générées par l'instance " -":class:`Mailbox` avec laquelle elles seront utilisées et seront seulement " -"significatives pour cette instance :class:`Mailbox`. Une clé continue " -"d'identifier un message même si le message correspondant est modifié ou " -"remplacé par un autre message." +"L'interface :class:`Mailbox` est un compatible avec celle des dictionnaires, " +"avec de courtes clés correspondant aux messages. Les clés sont générées par " +"l'instance :class:`Mailbox` avec laquelle elles sont utilisées et n'ont de " +"sens que pour cette instance :class:`Mailbox`. Une clé continue d'identifier " +"un message même si le message correspondant est modifié ou remplacé par un " +"autre message." #: ../Doc/library/mailbox.rst:47 msgid "" @@ -89,9 +91,9 @@ msgid "" "methods :meth:`remove` and :meth:`discard`." msgstr "" "Les messages peuvent être ajoutés à une instance :class:`Mailbox` en " -"utilisant une méthode set-compatible :meth:`add` et supprimés en utilisant " -"une instruction ``del`` ou les méthodes set-compatible :meth:`remove` et " -":meth:`discard`." +"utilisant la méthode :meth:`add` (comme pour les ensembles), et supprimés en " +"utilisant soit l'instruction ``del`` soit les méthodes :meth:`remove` et :" +"meth:`discard` (comme pour les ensembles)." #: ../Doc/library/mailbox.rst:51 msgid "" @@ -103,13 +105,14 @@ msgid "" "copied. In neither case is a reference to the message representation kept by " "the :class:`Mailbox` instance." msgstr "" -"L'interface sémantique :class:`Mailbox` diffère des sémantiques du " -"dictionnaire sur plusieurs aspects. À chaque fois qu'un message est demandé, " -"une nouvelle représentation (généralement une instance :class:`Message`) est " -"générée en se basant sur l'état actuel de la boîte mail. De la même manière, " -"lorsqu'un message est ajouté à l'instance :class:`Mailbox`, le contenu de la " -"représentation du message donné est copié. En aucun cas une référence vers " -"la représentation du message n'est gardée par l'instance :class:`Mailbox`. " +"La sémantique de l'interface :class:`Mailbox` diffère de la sémantique des " +"dictionnaires sur plusieurs aspects. À chaque fois qu'un message est " +"demandé, une nouvelle représentation (généralement une instance :class:" +"`Message`) est générée en se basant sur l'état actuel de la boîte mail. De " +"la même manière, lorsqu'un message est ajouté à l'instance :class:`Mailbox`, " +"le contenu de la représentation du message donné est copié. En aucun cas une " +"référence vers la représentation du message n'est gardée par l'instance :" +"class:`Mailbox`." #: ../Doc/library/mailbox.rst:59 msgid "" @@ -122,14 +125,14 @@ msgid "" "`KeyError` exception if the corresponding message is subsequently removed." msgstr "" "L'itérateur par défaut de :class:`Mailbox` itère sur les représentations des " -"messages et non les clés, de la même manière que le ferait l'itérateur " -"dictionnaire par défaut. De plus, les modifications sur une boîte mail " -"durant l'itération sont sûres et clairement définies. Les messages ajoutés à " -"la boîte mail après la création d'un itérateur ne seront pas vus par " -"l'itérateur. Les messages supprimés de la boîte mail avant que l'itérateur " -"les traite seront silencieusement ignorés. Toutefois, utiliser une clé " -"depuis un itérateur pourrait aboutir à une exception :exc:`KeyError` si le " -"message correspondant est supprimé par la suite." +"messages et pas sur les clés (comme le fait par défaut l'itérateur des " +"dictionnaires). De plus, les modifications sur une boîte mail durant " +"l'itération sont sûres et clairement définies. Les messages ajoutés à la " +"boîte mail après la création d'un itérateur ne sont pas vus par l'itérateur. " +"Les messages supprimés de la boîte mail avant que l'itérateur les traite " +"seront ignorés silencieusement. Toutefois, utiliser une clé depuis un " +"itérateur peut aboutir à une exception :exc:`KeyError` si le message " +"correspondant est supprimé par la suite." #: ../Doc/library/mailbox.rst:70 msgid "" @@ -142,25 +145,25 @@ msgid "" "Failing to lock the mailbox runs the risk of losing messages or corrupting " "the entire mailbox." msgstr "" -"Soyez très prudent lorsque vous éditez des boîtes mail qui pourraient être " -"modifiées par d'autres processus. Le format de boîte mail le plus sûr " -"à utiliser pour ces tâches est Maildir, essayez d'éviter les formats à " -"fichier unique tels que mbox afin d'empêcher les écritures concurrentes. " -"Si vous modifiez une boîte mail, vous *devez* la verrouiller en appelant " -"les méthodes :meth:`lock` et :meth:`unlock` *avant* de lire les messages " -"dans le fichier ou d'y appliquer des changements en y ajoutant ou supprimant " -"des messages. Ne pas verrouiller la boîte mail encourt le risque de perdre " -"des messages ou de corrompre la boîte mail entière." +"Soyez très prudent lorsque vous éditez des boîtes mail qui peuvent être " +"modifiées par d'autres processus. Le format de boîte mail le plus sûr à " +"utiliser pour ces tâches est *Maildir*, essayez d'éviter les formats à " +"fichier unique tels que *mbox* afin d'empêcher les écritures concurrentes. " +"Si vous modifiez une boîte mail, vous *devez* la verrouiller en appelant les " +"méthodes :meth:`lock` et :meth:`unlock` *avant* de lire les messages dans le " +"fichier ou d'y appliquer des changements en y ajoutant ou supprimant des " +"messages. Ne pas verrouiller la boîte mail vous fait prendre le risque de " +"perdre des messages ou de corrompre la boîte mail entière." #: ../Doc/library/mailbox.rst:79 msgid ":class:`Mailbox` instances have the following methods:" -msgstr "Les instances :class:`Mailbox` contiennent les méthodes suivantes :" +msgstr "Les instances :class:`Mailbox` contiennent les méthodes suivantes :" #: ../Doc/library/mailbox.rst:84 msgid "" "Add *message* to the mailbox and return the key that has been assigned to it." msgstr "" -"Ajoute *message* à la boîte mail et retourne la clé qui lui a été assignée." +"Ajoute *message* à la boîte mail et renvoie la clé qui lui a été assigné." #: ../Doc/library/mailbox.rst:87 msgid "" @@ -172,18 +175,18 @@ msgid "" "format-specific information is used. Otherwise, reasonable defaults for " "format-specific information are used." msgstr "" -"Le paramètre *message* peut être une instance :class:`Message`, une instance " -":class:`email.message.Message`, une chaîne de caractères, une chaîne de " -"bits ou un objet fichier-compatible (qui doit être ouvert en mode binaire). " -"Si *message* est une instance de la sous-classe :class:`Message` au format " -"correspondant (e.g., s'il s'agit d'une instance :class:`mboxMessage` et " -"d'une instance :class:`mbox`), les informations spécifiques à son format " -"sont utilisées. Sinon, des valeurs par défaut raisonnables pour son format " -"sont utilisées." +"Le paramètre *message* peut être une instance :class:`Message`, une " +"instance :class:`email.message.Message`, une chaîne de caractères, une " +"séquence d'octets ou un objet fichier-compatible (qui doit être ouvert en " +"mode binaire). Si *message* est une instance de la sous-classe :class:" +"`Message` au format correspondant (par exemple s'il s'agit d'une instance :" +"class:`mboxMessage` et d'une instance :class:`mbox`), les informations " +"spécifiques à son format sont utilisées. Sinon, des valeurs par défaut " +"raisonnables pour son format sont utilisées." #: ../Doc/library/mailbox.rst:96 msgid "Support for binary input was added." -msgstr "Le support pour une entrée binaire a été ajouté." +msgstr "Ajout de la gestion des messages binaires." #: ../Doc/library/mailbox.rst:104 msgid "Delete the message corresponding to *key* from the mailbox." @@ -199,18 +202,18 @@ msgid "" msgstr "" "Si ce message n'existe pas, une exception :exc:`KeyError` est levée si la " "méthode a été appelée en tant que :meth:`remove` ou :meth:`__delitem__` mais " -"aucune exception n'est levée si la méthode a été appelée en tant que " -":meth:`discard`. Le comportement de :meth:`discard` pourrait être préféré " -"si le format de boîte mail sous-jacent supporte la modification concurrente " -"par les autres processus." +"aucune exception n'est levée si la méthode a été appelée en tant que :meth:" +"`discard`. Vous préférerez sûrement le comportement de :meth:`discard` si le " +"format de boîte mail sous-jacent accepte la modification concurrente par les " +"autres processus." #: ../Doc/library/mailbox.rst:115 msgid "" "Replace the message corresponding to *key* with *message*. Raise a :exc:" "`KeyError` exception if no message already corresponds to *key*." msgstr "" -"Remplace le message correspondant à *key* par *message*. Lève une exception " -":exc:`KeyError` s'il n'y a pas déjà de message correspondant à *key*." +"Remplace le message correspondant à *key* par *message*. Lève une exception :" +"exc:`KeyError` s'il n'y a pas déjà de message correspondant à *key*." #: ../Doc/library/mailbox.rst:118 msgid "" @@ -223,24 +226,24 @@ msgid "" "specific information of the message that currently corresponds to *key* is " "left unchanged." msgstr "" -"Comme pour :meth:`add`, le paramètre *message* peut être une instance " -":class:`Message`, une instance :class:`email.message.Message`, une chaîne " -"de caractères, une chaîne de bits ou un objet fichier-compatible (qui doit " -"être ouvert en mode binaire). Si *message* est une instance de la " -"sous-classe :class:`Message` au format correspondant (e.g., s'il s'agit " -"d'une instance :class:`mboxMessage` et d'une instance :class:`mbox`), " -"les informations spécifiques à son format sont utilisées. Sinon, les " -"informations spécifiques au format du message qui correspond à *key* n'est " -"pas modifié." +"Comme pour :meth:`add`, le paramètre *message* peut être une instance :class:" +"`Message`, une instance :class:`email.message.Message`, une chaîne de " +"caractères, une chaîne d'octets ou un objet fichier-compatible (qui doit " +"être ouvert en mode binaire). Si *message* est une instance de la sous-" +"classe :class:`Message` au format correspondant (par exemple s'il s'agit " +"d'une instance :class:`mboxMessage` et d'une instance :class:`mbox`), les " +"informations spécifiques à son format sont utilisées. Sinon, les " +"informations spécifiques au format du message qui correspond à *key* ne sont " +"modifiées." #: ../Doc/library/mailbox.rst:132 msgid "" "Return an iterator over all keys if called as :meth:`iterkeys` or return a " "list of keys if called as :meth:`keys`." msgstr "" -"Retourne un itérateur sur toutes les clés s'il est appelé en tant que " -":meth:`iterkeys` ou retourne une liste de clés s'il est appelé en tant que " -":meth:`keys`." +"Renvoie un itérateur sur toutes les clés s'il est appelé en tant que :meth:" +"`iterkeys` ou renvoie une liste de clés s'il est appelé en tant que :meth:" +"`keys`." #: ../Doc/library/mailbox.rst:140 msgid "" @@ -251,11 +254,11 @@ msgid "" "message factory was specified when the :class:`Mailbox` instance was " "initialized." msgstr "" -"Retourne un itérateur sur les représentations de tous les messages s'il est " -"appelé en tant que :meth:`itervalues` ou :meth:``__iter__` et retourne une " -"liste de ces représentations s'il est appelé en tant que :meth:`values`. " -"Les messages sont représentés en tant qu'instances de la sous-classe " -":class:`Message` au format correspondant à moins qu'une fabrique de messages " +"Renvoie un itérateur sur les représentations de tous les messages s'il est " +"appelé en tant que :meth:`itervalues` ou :meth:`__iter__` et renvoie une " +"liste de ces représentations s'il est appelé en tant que :meth:`values`. Les " +"messages sont représentés en tant qu'instances de la sous-classe :class:" +"`Message` au format correspondant à moins qu'une fabrique de messages " "personnalisée soit spécifiée lorsque l'instance :class:`Mailbox` a été " "initialisée." From 9fb3ca059d84627d0056e267fa3e463d965740f8 Mon Sep 17 00:00:00 2001 From: VivienLambert <37274440+VivienLambert@users.noreply.github.com> Date: Tue, 26 Feb 2019 16:02:57 +0100 Subject: [PATCH 049/121] stringprep.po (#566) --- library/stringprep.po | 69 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 62 insertions(+), 7 deletions(-) diff --git a/library/stringprep.po b/library/stringprep.po index 1cd055e63..82dc8bb51 100644 --- a/library/stringprep.po +++ b/library/stringprep.po @@ -16,11 +16,11 @@ msgstr "" #: ../Doc/library/stringprep.rst:2 msgid ":mod:`stringprep` --- Internet String Preparation" -msgstr "" +msgstr ":mod:`stringprep` --- Préparation des chaines de caractères internet" #: ../Doc/library/stringprep.rst:10 msgid "**Source code:** :source:`Lib/stringprep.py`" -msgstr "" +msgstr "**Code source:** :source:`Lib/stringprep.py`" #: ../Doc/library/stringprep.rst:14 msgid "" @@ -31,6 +31,13 @@ msgid "" "possible identifications, to allow only identifications consisting of " "\"printable\" characters." msgstr "" +"En identifiant des éléments comme (comme les noms d'hôtes) sur internet, il " +"est souvent nécessaire de comparer ces identifications selon un critère " +"d'\"égalité\". La manière dont cette comparaison est exécutée dépend " +"exactement du domaine d'application, c'est-à-dire si elle doit être " +"insensible à la casse ou non. Il peut être aussi nécessaire de restreindre " +"les identifications possibles, pour permettre uniquement les identifications " +"composées de caractères imprimables." #: ../Doc/library/stringprep.rst:21 msgid "" @@ -43,6 +50,15 @@ msgid "" "``stringprep`` profile is ``nameprep``, which is used for internationalized " "domain names." msgstr "" +"La :rfc:`3454` définit une procédure pour \"préparer\" des chaines de " +"caractères Unicode dans les protocoles internet. Avant de passer des des " +"chaines de caractères sur le câble, elles sont traitées avec la procédure de " +"préparation, après laquelle ils obtiennent une certaines forme normalisée. " +"Les RFC définissent un lot de tables, qui peuvent être combinées en profils. " +"Chaque profil doit définir quelles tables il utilise et quelles autres " +"parties optionnelles de la procédure *stringprep* font partie du profil. Un " +"exemple de profil *stringprep* est *nameprep*, qui est utilisé pour les noms " +"de domaine internationalisés." #: ../Doc/library/stringprep.rst:29 msgid "" @@ -51,6 +67,11 @@ msgid "" "the module uses the Unicode character database internally. The module source " "code itself was generated using the ``mkstringprep.py`` utility." msgstr "" +"Le module :mod:`stringprep` expose uniquement les tables de la :rfc:`3454`. " +"Comme ces tables seraient très grandes à représenter en tant que " +"dictionnaires ou listes, le module utilise, en interne, la base de données " +"des caractères Unicode. Le code source du module, lui-même, a été généré en " +"utilisant l'utilitaire *mkstringprep.py*." #: ../Doc/library/stringprep.rst:34 msgid "" @@ -61,100 +82,134 @@ msgid "" "the mapping function: given the key, it returns the associated value. Below " "is a list of all functions available in the module." msgstr "" +"En conséquence, ces tables sont exposées en tant que fonctions et non en " +"structures de données. Il y a deux types de tables dans la RFC: ensemble et " +"mise en correspondance. Pour un ensemble, :mod:`stringprep` fournit la " +"\"fonction caractéristique\", c'est-à-dire une fonction qui retourne vrai si " +"le paramètre fait partie de l'ensemble. Pour les mises en correspondance, il " +"fournit la fonction de mise en correspondance : ayant obtenu la clé, il " +"retourne la valeur associée. Ci-dessous se trouve une liste de toutes les " +"fonctions disponibles dans le module." #: ../Doc/library/stringprep.rst:44 msgid "" "Determine whether *code* is in tableA.1 (Unassigned code points in Unicode " "3.2)." msgstr "" +"Détermine si le code est en table A.1 (points de code non-assigné en Unicode " +"3.2)." #: ../Doc/library/stringprep.rst:49 msgid "Determine whether *code* is in tableB.1 (Commonly mapped to nothing)." msgstr "" +"Détermine si le code est en table B.1 (habituellement mis en correspondance " +"avec rien)." #: ../Doc/library/stringprep.rst:54 msgid "" "Return the mapped value for *code* according to tableB.2 (Mapping for case-" "folding used with NFKC)." msgstr "" +"Retourne la valeur de mise en correspondance pour le code d'après la table " +"B.2 (mise en correspondance pour la gestion de la casse utilisée avec " +"*NFKC*)." #: ../Doc/library/stringprep.rst:60 msgid "" "Return the mapped value for *code* according to tableB.3 (Mapping for case-" "folding used with no normalization)." msgstr "" +"Retourne la valeur de mise en correspondance pour le code d'après la table " +"B.3 (mise en correspondance pour la gestion de la casse utilisée sans " +"normalisation)." #: ../Doc/library/stringprep.rst:66 msgid "Determine whether *code* is in tableC.1.1 (ASCII space characters)." msgstr "" +"Détermine si le code est en table C.1.1 (caractères d'espacement ASCII)." #: ../Doc/library/stringprep.rst:71 msgid "" "Determine whether *code* is in tableC.1.2 (Non-ASCII space characters)." msgstr "" +"Détermine si le code est en table C.1.2 (caractères d'espacement non ASCII)." #: ../Doc/library/stringprep.rst:76 msgid "" "Determine whether *code* is in tableC.1 (Space characters, union of C.1.1 " "and C.1.2)." msgstr "" +"Détermine si le code est en table C.1 (caractères d'espacement, union de " +"C.1.1 et C.1.2)." #: ../Doc/library/stringprep.rst:82 msgid "Determine whether *code* is in tableC.2.1 (ASCII control characters)." msgstr "" +"Détermine si le code est en table C.2.1 (caractères de contrôle ASCII)." #: ../Doc/library/stringprep.rst:87 msgid "" "Determine whether *code* is in tableC.2.2 (Non-ASCII control characters)." msgstr "" +"Détermine si le code est en table C.2.2 (caractères de contrôle non ASCII)." #: ../Doc/library/stringprep.rst:92 msgid "" "Determine whether *code* is in tableC.2 (Control characters, union of C.2.1 " "and C.2.2)." msgstr "" +"Détermine si le code est en table C.2 (caractères de contrôle, union de " +"C.2.1 et C.2.2)." #: ../Doc/library/stringprep.rst:98 msgid "Determine whether *code* is in tableC.3 (Private use)." -msgstr "" +msgstr "Détermine si le code est en table C.3 (usage privé)." #: ../Doc/library/stringprep.rst:103 msgid "Determine whether *code* is in tableC.4 (Non-character code points)." -msgstr "" +msgstr "Détermine si le code est en table C.4 (points de code non-caractère)." #: ../Doc/library/stringprep.rst:108 msgid "Determine whether *code* is in tableC.5 (Surrogate codes)." -msgstr "" +msgstr "Détermine si le code est en table C.5 (codes substituts)." #: ../Doc/library/stringprep.rst:113 msgid "" "Determine whether *code* is in tableC.6 (Inappropriate for plain text)." -msgstr "" +msgstr "Détermine si le code est en table C.6 (Inapproprié pour texte brut)." #: ../Doc/library/stringprep.rst:118 msgid "" "Determine whether *code* is in tableC.7 (Inappropriate for canonical " "representation)." msgstr "" +"Détermine si le code est en table C.7 (inapproprié pour les représentations " +"*canonics1*)." #: ../Doc/library/stringprep.rst:124 msgid "" "Determine whether *code* is in tableC.8 (Change display properties or are " "deprecated)." msgstr "" +"Détermine si le code est en table C.8 (change de propriétés d'affichage ou " +"sont obsolètes)." #: ../Doc/library/stringprep.rst:130 msgid "Determine whether *code* is in tableC.9 (Tagging characters)." -msgstr "" +msgstr "Détermine si le code est en table C.9 (caractères de marquage)." #: ../Doc/library/stringprep.rst:135 msgid "" "Determine whether *code* is in tableD.1 (Characters with bidirectional " "property \"R\" or \"AL\")." msgstr "" +"Détermine si le code est en table D.1 (caractères avec propriété " +"bidirectionnelle \"R\" ou \"AL\")." #: ../Doc/library/stringprep.rst:141 msgid "" "Determine whether *code* is in tableD.2 (Characters with bidirectional " "property \"L\")." msgstr "" +"Détermine si le code est en table D.2 (caractères avec propriété " +"bidirectionnelle \"L\")." From 815b78a820fea348919138361367d95427efa12a Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 16:13:30 +0100 Subject: [PATCH 050/121] Proofreading library/stringprep.po --- library/stringprep.po | 85 ++++++++++++++++++++++--------------------- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a/library/stringprep.po b/library/stringprep.po index 82dc8bb51..533c710f0 100644 --- a/library/stringprep.po +++ b/library/stringprep.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-10 11:27+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2019-02-26 16:13+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -16,11 +16,11 @@ msgstr "" #: ../Doc/library/stringprep.rst:2 msgid ":mod:`stringprep` --- Internet String Preparation" -msgstr ":mod:`stringprep` --- Préparation des chaines de caractères internet" +msgstr ":mod:`stringprep` — Préparation des chaines de caractères internet" #: ../Doc/library/stringprep.rst:10 msgid "**Source code:** :source:`Lib/stringprep.py`" -msgstr "**Code source:** :source:`Lib/stringprep.py`" +msgstr "**Code source :** :source:`Lib/stringprep.py`" #: ../Doc/library/stringprep.rst:14 msgid "" @@ -31,13 +31,13 @@ msgid "" "possible identifications, to allow only identifications consisting of " "\"printable\" characters." msgstr "" -"En identifiant des éléments comme (comme les noms d'hôtes) sur internet, il " -"est souvent nécessaire de comparer ces identifications selon un critère " -"d'\"égalité\". La manière dont cette comparaison est exécutée dépend " -"exactement du domaine d'application, c'est-à-dire si elle doit être " -"insensible à la casse ou non. Il peut être aussi nécessaire de restreindre " -"les identifications possibles, pour permettre uniquement les identifications " -"composées de caractères imprimables." +"Nommer les différentes choses d'internet (comme les hôtes) amène souvent au " +"besoin de comparer ces identifiants, ce qui nécessite un critère " +"d'« égalité ». La manière dont cette comparaison est effectuée dépend du " +"domaine d'application, c'est-à-dire si elle doit être sensible à la casse ou " +"non. Il peut être aussi nécessaire de restreindre les identifiants " +"possibles, pour permettre uniquement les identifiants composés de caractères " +"« imprimables »." #: ../Doc/library/stringprep.rst:21 msgid "" @@ -51,8 +51,8 @@ msgid "" "domain names." msgstr "" "La :rfc:`3454` définit une procédure pour \"préparer\" des chaines de " -"caractères Unicode dans les protocoles internet. Avant de passer des des " -"chaines de caractères sur le câble, elles sont traitées avec la procédure de " +"caractères Unicode dans les protocoles internet. Avant de passer des chaines " +"de caractères sur le câble, elles sont traitées avec la procédure de " "préparation, après laquelle ils obtiennent une certaines forme normalisée. " "Les RFC définissent un lot de tables, qui peuvent être combinées en profils. " "Chaque profil doit définir quelles tables il utilise et quelles autres " @@ -71,7 +71,7 @@ msgstr "" "Comme ces tables seraient très grandes à représenter en tant que " "dictionnaires ou listes, le module utilise, en interne, la base de données " "des caractères Unicode. Le code source du module, lui-même, a été généré en " -"utilisant l'utilitaire *mkstringprep.py*." +"utilisant l'utilitaire ``mkstringprep.py``." #: ../Doc/library/stringprep.rst:34 msgid "" @@ -83,21 +83,21 @@ msgid "" "is a list of all functions available in the module." msgstr "" "En conséquence, ces tables sont exposées en tant que fonctions et non en " -"structures de données. Il y a deux types de tables dans la RFC: ensemble et " -"mise en correspondance. Pour un ensemble, :mod:`stringprep` fournit la " -"\"fonction caractéristique\", c'est-à-dire une fonction qui retourne vrai si " -"le paramètre fait partie de l'ensemble. Pour les mises en correspondance, il " -"fournit la fonction de mise en correspondance : ayant obtenu la clé, il " -"retourne la valeur associée. Ci-dessous se trouve une liste de toutes les " -"fonctions disponibles dans le module." +"structures de données. Il y a deux types de tables dans la RFC : les " +"ensemble et les mises en correspondance. Pour un ensemble, :mod:`stringprep` " +"fournit la \"fonction caractéristique\", c'est-à-dire une fonction qui " +"renvoie vrai si le paramètre fait partie de l'ensemble. Pour les mises en " +"correspondance, il fournit la fonction de mise en correspondance : ayant " +"obtenu la clé, il renvoie la valeur associée. Ci-dessous se trouve une liste " +"de toutes les fonctions disponibles dans le module." #: ../Doc/library/stringprep.rst:44 msgid "" "Determine whether *code* is in tableA.1 (Unassigned code points in Unicode " "3.2)." msgstr "" -"Détermine si le code est en table A.1 (points de code non-assigné en Unicode " -"3.2)." +"Détermine si le code est en table A.1 (points de code non-assigné dans " +"Unicode 3.2)." #: ../Doc/library/stringprep.rst:49 msgid "Determine whether *code* is in tableB.1 (Commonly mapped to nothing)." @@ -110,42 +110,41 @@ msgid "" "Return the mapped value for *code* according to tableB.2 (Mapping for case-" "folding used with NFKC)." msgstr "" -"Retourne la valeur de mise en correspondance pour le code d'après la table " -"B.2 (mise en correspondance pour la gestion de la casse utilisée avec " -"*NFKC*)." +"Renvoie la valeur correspondante à *code* selon la table B.2 (mise en " +"correspondance pour la gestion de la casse utilisée avec *NFKC*)." #: ../Doc/library/stringprep.rst:60 msgid "" "Return the mapped value for *code* according to tableB.3 (Mapping for case-" "folding used with no normalization)." msgstr "" -"Retourne la valeur de mise en correspondance pour le code d'après la table " -"B.3 (mise en correspondance pour la gestion de la casse utilisée sans " -"normalisation)." +"Renvoie la valeur correspondante à *code* dans la table B.3 (mise en " +"correspondance pour la gestion de la casse utilisée sans normalisation)." #: ../Doc/library/stringprep.rst:66 msgid "Determine whether *code* is in tableC.1.1 (ASCII space characters)." msgstr "" -"Détermine si le code est en table C.1.1 (caractères d'espacement ASCII)." +"Détermine si le code est dans la table C.1.1 (caractères d'espacement ASCII)." #: ../Doc/library/stringprep.rst:71 msgid "" "Determine whether *code* is in tableC.1.2 (Non-ASCII space characters)." msgstr "" -"Détermine si le code est en table C.1.2 (caractères d'espacement non ASCII)." +"Détermine si le code est dans la table C.1.2 (caractères d'espacement non " +"ASCII)." #: ../Doc/library/stringprep.rst:76 msgid "" "Determine whether *code* is in tableC.1 (Space characters, union of C.1.1 " "and C.1.2)." msgstr "" -"Détermine si le code est en table C.1 (caractères d'espacement, union de " -"C.1.1 et C.1.2)." +"Détermine si le code est dans la table C.1 (caractères d'espacement, union " +"de C.1.1 et C.1.2)." #: ../Doc/library/stringprep.rst:82 msgid "Determine whether *code* is in tableC.2.1 (ASCII control characters)." msgstr "" -"Détermine si le code est en table C.2.1 (caractères de contrôle ASCII)." +"Détermine si le code est dans la table C.2.1 (caractères de contrôle ASCII)." #: ../Doc/library/stringprep.rst:87 msgid "" @@ -158,7 +157,7 @@ msgid "" "Determine whether *code* is in tableC.2 (Control characters, union of C.2.1 " "and C.2.2)." msgstr "" -"Détermine si le code est en table C.2 (caractères de contrôle, union de " +"Détermine si le code est dans la table C.2 (caractères de contrôle, union de " "C.2.1 et C.2.2)." #: ../Doc/library/stringprep.rst:98 @@ -167,7 +166,8 @@ msgstr "Détermine si le code est en table C.3 (usage privé)." #: ../Doc/library/stringprep.rst:103 msgid "Determine whether *code* is in tableC.4 (Non-character code points)." -msgstr "Détermine si le code est en table C.4 (points de code non-caractère)." +msgstr "" +"Détermine si le code est dans la table C.4 (points de code non-caractère)." #: ../Doc/library/stringprep.rst:108 msgid "Determine whether *code* is in tableC.5 (Surrogate codes)." @@ -176,27 +176,28 @@ msgstr "Détermine si le code est en table C.5 (codes substituts)." #: ../Doc/library/stringprep.rst:113 msgid "" "Determine whether *code* is in tableC.6 (Inappropriate for plain text)." -msgstr "Détermine si le code est en table C.6 (Inapproprié pour texte brut)." +msgstr "" +"Détermine si le code est dans la table C.6 (Inapproprié pour texte brut)." #: ../Doc/library/stringprep.rst:118 msgid "" "Determine whether *code* is in tableC.7 (Inappropriate for canonical " "representation)." msgstr "" -"Détermine si le code est en table C.7 (inapproprié pour les représentations " -"*canonics1*)." +"Détermine si le code est dans la table C.7 (inapproprié pour les " +"représentations *canonics1*)." #: ../Doc/library/stringprep.rst:124 msgid "" "Determine whether *code* is in tableC.8 (Change display properties or are " "deprecated)." msgstr "" -"Détermine si le code est en table C.8 (change de propriétés d'affichage ou " -"sont obsolètes)." +"Détermine si le code est dans la table C.8 (change de propriétés d'affichage " +"ou sont obsolètes)." #: ../Doc/library/stringprep.rst:130 msgid "Determine whether *code* is in tableC.9 (Tagging characters)." -msgstr "Détermine si le code est en table C.9 (caractères de marquage)." +msgstr "Détermine si le code est dans la table C.9 (caractères de marquage)." #: ../Doc/library/stringprep.rst:135 msgid "" @@ -211,5 +212,5 @@ msgid "" "Determine whether *code* is in tableD.2 (Characters with bidirectional " "property \"L\")." msgstr "" -"Détermine si le code est en table D.2 (caractères avec propriété " +"Détermine si le code est dans la table D.2 (caractères avec propriété " "bidirectionnelle \"L\")." From 2aae5a6d9c248f0d89d64d34e9ec3447f40a3e5c Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Feb 2019 16:14:27 +0100 Subject: [PATCH 051/121] Trying to get a more up-to-date hunspell. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index b036c12b0..7366ffebd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +dist: xenial python: 3.6 before_install: - sudo apt-get update From cf4933bdd4d876c0829904fe4a04950c5c11f129 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne - seluj78)" Date: Wed, 27 Feb 2019 12:35:53 +0100 Subject: [PATCH 052/121] Fixed fuzzys in zipfile --- library/zipfile.po | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/library/zipfile.po b/library/zipfile.po index 8c33da2bf..266144475 100644 --- a/library/zipfile.po +++ b/library/zipfile.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2018-12-12 23:36+0100\n" +"PO-Revision-Date: 2019-02-27 12:15+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/zipfile.rst:2 msgid ":mod:`zipfile` --- Work with ZIP archives" @@ -283,7 +283,6 @@ msgstr "" "appropriée pour un fichier archive ZIP vide sera écrite dans le fichier." #: ../Doc/library/zipfile.rst:176 -#, fuzzy msgid "" "ZipFile is also a context manager and therefore supports the :keyword:`with` " "statement. In the example, *myzip* is closed after the :keyword:`!with` " @@ -291,7 +290,7 @@ msgid "" msgstr "" "*ZipFile* est aussi un gestionnaire de contexte et gère ainsi la " "déclaration :keyword:`with`. Dans l'exemple, *myzip* est fermé à la fin de " -"la déclaration :keyword:`with` --- même si une exception est levée : ::" +"la déclaration :keyword:`!with` --- même si une exception est levée ::" #: ../Doc/library/zipfile.rst:183 msgid "Added the ability to use :class:`ZipFile` as a context manager." @@ -649,7 +648,6 @@ msgstr "" "`ValueError`. Précédemment, une erreur :exc:`RuntimeError` était levée." #: ../Doc/library/zipfile.rst:400 -#, fuzzy msgid "" "Write a file into the archive. The contents is *data*, which may be either " "a :class:`str` or a :class:`bytes` instance; if it is a :class:`str`, it is " @@ -725,7 +723,6 @@ msgstr "" "informations de débogage sont affichées sur ``sys.stdout``." #: ../Doc/library/zipfile.rst:443 -#, fuzzy msgid "" "The comment associated with the ZIP file as a :class:`bytes` object. If " "assigning a comment to a :class:`ZipFile` instance created with mode " @@ -1002,7 +999,6 @@ msgstr "" "`bytes`." #: ../Doc/library/zipfile.rst:609 -#, fuzzy msgid "" "Expansion field data. The `PKZIP Application Note`_ contains some comments " "on the internal structure of the data contained in this :class:`bytes` " From 3a9a20f6660cf1d0b754ac196c084293687a51ab Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne - seluj78)" Date: Thu, 28 Feb 2019 09:15:47 +0100 Subject: [PATCH 053/121] Fix erreur genre --- library/zipfile.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/zipfile.po b/library/zipfile.po index 266144475..73780f592 100644 --- a/library/zipfile.po +++ b/library/zipfile.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2019-02-27 12:15+0100\n" +"PO-Revision-Date: 2019-02-28 09:13+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -731,7 +731,7 @@ msgid "" msgstr "" "Le commentaire associé au fichier ZIP en tant qu'objet :class:`bytes`. Si " "vous affectez un commentaire à une instance de :class:`ZipFile` créée avec " -"le mode ``'w'``, ``'x'`` ou ``'a'``, elle ne doit pas dépasser 65535 octets. " +"le mode ``'w'``, ``'x'`` ou ``'a'``, il ne doit pas dépasser 65535 octets. " "Les commentaires plus longs que cette taille seront tronqués." #: ../Doc/library/zipfile.rst:453 From bd6c2ae6d651b4a1c9867c3c9f1cf6ef50423705 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 1 Mar 2019 12:25:17 +0100 Subject: [PATCH 054/121] Fixed fuzzys in intro (#591) --- library/intro.po | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/intro.po b/library/intro.po index 4f0a94bc6..468193078 100644 --- a/library/intro.po +++ b/library/intro.po @@ -6,13 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-09-28 13:14+0200\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-02-27 11:44+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/intro.rst:5 msgid "Introduction" @@ -122,7 +123,7 @@ msgstr "Que le spectacle commence !" #: ../Doc/library/intro.rst:54 msgid "Notes on availability" -msgstr "" +msgstr "Notes sur la disponibilité" #: ../Doc/library/intro.rst:56 msgid "" From f8b518bb789c5d5bfdf7a68e91d0e4cf91a7ac24 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 2 Mar 2019 10:37:09 +0100 Subject: [PATCH 055/121] Fixed fuzzys in string Co-Authored-By: Seluj78 --- library/string.po | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/library/string.po b/library/string.po index 3e433d5cf..8030fe910 100644 --- a/library/string.po +++ b/library/string.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-09-29 19:31+0200\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-02 10:41+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.1.1\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/string.rst:2 msgid ":mod:`string` --- Common string operations" @@ -223,7 +223,7 @@ msgid "" "argument in *args*; if it is a string, then it represents a named argument " "in *kwargs*." msgstr "" -"récupère la valeur d'un champ donné. L'argument *key* est soit un entier, " +"Récupère la valeur d'un champ donné. L'argument *key* est soit un entier, " "soit une chaîne. Si c'est un entier, il représente l'indice de la l'argument " "dans *args*. Si c'est une chaîne de caractères, elle représente le nom de " "l'argument dans *kwargs*." @@ -435,7 +435,7 @@ msgid "" "`str` on the value, ``'!r'`` which calls :func:`repr` and ``'!a'`` which " "calls :func:`ascii`." msgstr "" -"Actuellement, trois indicateurs sont supportés : ``'!s'`` qui appelle la " +"Actuellement, trois indicateurs sont gérés : ``'!s'`` qui appelle la " "fonction :func:`str` sur la valeur, ``'!r'`` qui appelle la fonction :func:" "`repr` et ``!a`` qui appelle la fonction :func:`ascii`." @@ -461,8 +461,8 @@ msgid "" "Most built-in types support a common formatting mini-language, which is " "described in the next section." msgstr "" -"La plupart des types natifs supportent un mini-langage de formatage usuel " -"qui est décrit dans la section suivante." +"La plupart des types natifs gèrent un mini-langage de formatage usuel qui " +"est décrit dans la section suivante." #: ../Doc/library/string.rst:281 msgid "" @@ -637,7 +637,7 @@ msgid "" "indicates that a sign should be used for both positive as well as negative " "numbers." msgstr "" -"Indique que le signe doit être affiché pour les nombres tant positifs que " +"indique que le signe doit être affiché pour les nombres tant positifs que " "négatifs." #: ../Doc/library/string.rst:376 @@ -649,7 +649,7 @@ msgid "" "indicates that a sign should be used only for negative numbers (this is the " "default behavior)." msgstr "" -"Indique que le signe doit être affiché uniquement pour les nombres négatifs " +"indique que le signe doit être affiché uniquement pour les nombres négatifs " "(c'est le comportement par défaut)." #: ../Doc/library/string.rst:379 @@ -661,7 +661,7 @@ msgid "" "indicates that a leading space should be used on positive numbers, and a " "minus sign on negative numbers." msgstr "" -"Indique qu'un espace doit précéder les nombres positifs et qu'un signe moins " +"indique qu'un espace doit précéder les nombres positifs et qu'un signe moins " "doit précéder les nombres négatifs." #: ../Doc/library/string.rst:386 @@ -852,7 +852,6 @@ msgid "``'X'``" msgstr "``'X'``" #: ../Doc/library/string.rst:464 -#, fuzzy msgid "" "Hex format. Outputs the number in base 16, using upper-case letters for the " "digits above 9." @@ -893,7 +892,7 @@ msgstr "" msgid "" "The available presentation types for floating point and decimal values are:" msgstr "" -"les types de représentation pour les nombres flottants et les valeurs " +"Les types de représentation pour les nombres flottants et les valeurs " "décimales sont :" #: ../Doc/library/string.rst:484 @@ -1065,13 +1064,12 @@ msgstr "" "``'%03.2f'`` peut être changé en ``'{03.2f}'``." #: ../Doc/library/string.rst:553 -#, fuzzy msgid "" "The new format syntax also supports new and different options, shown in the " "following examples." msgstr "" -"La nouvelle syntaxe de formatage supporte également de nouvelles options et " -"des options différentes, montrées dans les exemples qui suivent." +"La nouvelle syntaxe de formatage gère également de nouvelles options et des " +"options différentes, montrées dans les exemples qui suivent." #: ../Doc/library/string.rst:556 msgid "Accessing arguments by position::" @@ -1235,7 +1233,6 @@ msgstr "" "`ValueError`." #: ../Doc/library/string.rst:741 -#, fuzzy msgid "" "While other exceptions may still occur, this method is called \"safe\" " "because it always tries to return a usable string instead of raising an " @@ -1245,12 +1242,11 @@ msgid "" "Python identifiers." msgstr "" "Bien que d'autres exceptions peuvent toujours être levées, cette méthode est " -"dite *safe* (sûre) car les substitutions tentent toujours de renvoyer une " -"chaîne utilisable au lieu de lever une exception. Dans un autre sens, :meth:" -"`safe_substitute` est tout sauf sûre du fait qu'elle ignore silencieusement " -"toute malformation dans le *template* qui contient des délimiteurs fantômes, " -"des accolades non fermées, ou des substituants qui ne sont pas des " -"identificateurs Python valides." +"dite sûre car elle tente de toujours renvoyer une chaîne utilisable au lieu " +"de lever une exception. Ceci dit, :meth:`safe_substitute` est tout sauf sûre " +"car elle ignore silencieusement toute malformation dans le *template* qui " +"contient des délimiteurs fantômes, des accolades non fermées, ou des " +"substituants qui ne sont pas des identificateurs Python valides." #: ../Doc/library/string.rst:748 msgid ":class:`Template` instances also provide one public data attribute:" From 2da51f55f644e834f8697652b656091a9ac8a3bb Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 2 Mar 2019 11:51:32 +0100 Subject: [PATCH 056/121] Fixed fuzzys in os Co-Authored-By: Seluj78 --- library/os.po | 58 ++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/library/os.po b/library/os.po index 10376da47..9f359f2a9 100644 --- a/library/os.po +++ b/library/os.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-11-29 18:29+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-02 11:22+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/os.rst:2 msgid ":mod:`os` --- Miscellaneous operating system interfaces" @@ -848,7 +848,7 @@ msgstr ":attr:`sysname` — nom du système d'exploitation" #: ../Doc/library/os.rst:610 msgid ":attr:`nodename` - name of machine on network (implementation-defined)" msgstr "" -":attr:`noedname` --- nom de la machine sur le réseau (dépendant de " +":attr:`noedname` — nom de la machine sur le réseau (dépendant de " "l'implémentation)" #: ../Doc/library/os.rst:611 @@ -1768,7 +1768,7 @@ msgid "" "Parameters to the :func:`sendfile` function, if the implementation supports " "them." msgstr "" -"paramètres de la fonction :func:`sendfile`, si l'implémentation les gèrent." +"Paramètres de la fonction :func:`sendfile`, si l'implémentation les gère." #: ../Doc/library/os.rst:1287 msgid "" @@ -1819,11 +1819,11 @@ msgid "" "`popen` or :func:`fdopen`, or :data:`sys.stdout` or :data:`sys.stderr`, use " "its :meth:`~file.write` method." msgstr "" -"cette fonction est destinée aux E/S bas niveau et doit être appliquée à un " -"descripteur de fichier comme renvoyé par :func:`os.open` ou :func:`pipe`. " -"Pour écrire dans un \"fichier objet\" renvoyé par la primitive :func:" -"`open`, :func:`popen`, ou par :func:`fdopen`, ou par :data:`sys.stdout` ou :" -"data:`sys.stderr`, utilisez sa méthode :meth:`~file.write`." +"Cette fonction est destinée aux entrées-sorties bas niveau et doit être " +"appliquée à un descripteur de fichier comme renvoyé par :func:`os.open` ou :" +"func:`pipe`. Pour écrire dans un \"fichier objet\" renvoyé par la primitive :" +"func:`open`, :func:`popen`, ou par :func:`fdopen`, ou par :data:`sys.stdout` " +"ou :data:`sys.stderr`, utilisez sa méthode :meth:`~file.write`." #: ../Doc/library/os.rst:1350 msgid "" @@ -2691,7 +2691,7 @@ msgstr "" "l'aide de :func:`os.unlink`). Généralement, les FIFOs sont utilisé comme " "communication entre des processus de type \"client\" et \"serveur\" : le " "serveur ouvre le FIFO pour le lire, et le client l'ouvre pour écrire dedans. " -"Notez que :func:`mkfifo` n'ouvre pas le FIFO --- il crée juste un point de " +"Notez que :func:`mkfifo` n'ouvre pas le FIFO — il crée juste un point de " "rendez-vous." #: ../Doc/library/os.rst:1914 @@ -3460,7 +3460,7 @@ msgid "" "the `file index `_ on " "Windows" msgstr "" -"L'`index de fichier `_ " +"l’`index de fichier `_ " "sur Windows" #: ../Doc/library/os.rst:2401 @@ -3508,7 +3508,7 @@ msgstr "Dépendant de la plate-forme :" #: ../Doc/library/os.rst:2435 ../Doc/library/os.rst:2451 msgid "the time of most recent metadata change on Unix," -msgstr "le moment du changement de méta-données le plus récent sur Unix." +msgstr "le moment du changement de méta-données le plus récent sur Unix," #: ../Doc/library/os.rst:2436 msgid "the time of creation on Windows, expressed in seconds." @@ -3607,7 +3607,7 @@ msgid "" msgstr "" "Sur d'autres systèmes Unix (tels que FreeBSD), les attributs suivants " "peuvent être disponibles (mais peuvent être complétés uniquement lorsque le " -"super-utilisateur *root* tente de les utiliser)." +"super-utilisateur *root* tente de les utiliser) :" #: ../Doc/library/os.rst:2499 msgid "File generation number." @@ -3653,7 +3653,7 @@ msgstr "Type du fichier." #: ../Doc/library/os.rst:2527 msgid "On Windows systems, the following attribute is also available:" msgstr "" -"Sur les systèmes Windows, les attributs suivants sont également disponibles." +"Sur les systèmes Windows, les attributs suivants sont également disponibles :" #: ../Doc/library/os.rst:2531 msgid "" @@ -3926,7 +3926,6 @@ msgid "Create a symbolic link pointing to *src* named *dst*." msgstr "Crée un lien symbolique pointant vers *src* et appelé *dst*." #: ../Doc/library/os.rst:2694 -#, fuzzy msgid "" "On Windows, a symlink represents either a file or a directory, and does not " "morph to the target dynamically. If the target is present, the type of the " @@ -3935,12 +3934,12 @@ msgid "" "default) otherwise. On non-Windows platforms, *target_is_directory* is " "ignored." msgstr "" -"Sur Windows, un lien symbolique représente soit un fichier, soit un " -"répertoire et ne se transforme pas dynamiquement en sa cible. Le type d'un " -"lien symbolique sera créé pour aller de paire. Sinon, le lien symbolique " -"sera créé comme un répertoire si *target_is_directory* vaut ``True`` ou un " -"lien symbolique (par défaut). Sur les plateformes non Windows, " -"*target_id_directory* est ignoré." +"Sur Windows, un lien symbolique représente soit lien vers un fichier, soit " +"lien vers un répertoire mais ne s'adapte pas dynamiquement au type de la " +"cible. Si la cible existe le lien sera crée du même type que sa cible. Dans " +"le cas où cible n'existe pas, si *target_is_directory* vaut ``True`` le lien " +"symbolique sera créé comme un répertoire, sinon comme un fichier (par " +"défaut). Sur les autres plateformes, *target_id_directory* est ignoré." #: ../Doc/library/os.rst:2700 msgid "" @@ -5042,7 +5041,7 @@ msgstr "" #: ../Doc/library/os.rst:3525 msgid "Start a file with its associated application." -msgstr "lance un fichier avec son application associée." +msgstr "Lance un fichier avec son application associée." #: ../Doc/library/os.rst:3527 msgid "" @@ -5166,26 +5165,23 @@ msgstr "" #: ../Doc/library/os.rst:3584 msgid ":attr:`user` - user time" -msgstr ":attr:`user` — le temps utilisateur ;" +msgstr ":attr:`user` — le temps utilisateur" #: ../Doc/library/os.rst:3585 msgid ":attr:`system` - system time" -msgstr ":attr:`system` -- le temps système ;" +msgstr ":attr:`system` — le temps système" #: ../Doc/library/os.rst:3586 msgid ":attr:`children_user` - user time of all child processes" -msgstr "" -":attr:`children_user` --- temps utilisateur de tous les processus fils ;" +msgstr ":attr:`children_user` — temps utilisateur de tous les processus fils" #: ../Doc/library/os.rst:3587 msgid ":attr:`children_system` - system time of all child processes" -msgstr "" -":attr:`children_system` --- le temps système de tous les processus fils ;" +msgstr ":attr:`children_system` — le temps système de tous les processus fils" #: ../Doc/library/os.rst:3588 msgid ":attr:`elapsed` - elapsed real time since a fixed point in the past" -msgstr "" -":attr:`elapsed` --- temps écoulé réel depuis un point fixé dans le passé." +msgstr ":attr:`elapsed` — temps écoulé réel depuis un point fixé dans le passé" #: ../Doc/library/os.rst:3590 msgid "" From 698457a5bf8d651a141b74f8922e5e31f2ccbe35 Mon Sep 17 00:00:00 2001 From: VivienLambert <37274440+VivienLambert@users.noreply.github.com> Date: Sun, 3 Mar 2019 09:55:35 +0100 Subject: [PATCH 057/121] Adding myself to translators (#604) --- TRANSLATORS | 1 + 1 file changed, 1 insertion(+) diff --git a/TRANSLATORS b/TRANSLATORS index 96b202396..1a5140659 100644 --- a/TRANSLATORS +++ b/TRANSLATORS @@ -9,3 +9,4 @@ Mickaël Bergem Vincent Poulailleau Jules Lasne Mathieu Dupuy +Vivien Lambert From a766491b321a6d3db606bd9931651f79757f44c4 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Sun, 3 Mar 2019 10:36:00 +0100 Subject: [PATCH 058/121] Finished translating using/windows.po (#573) --- using/windows.po | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/using/windows.po b/using/windows.po index 14f43da26..a60e98c22 100644 --- a/using/windows.po +++ b/using/windows.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-10-12 18:59+0200\n" -"PO-Revision-Date: 2019-02-26 01:19+0100\n" +"PO-Revision-Date: 2019-02-27 10:08+0100\n" "Language-Team: FRENCH \n" "Language: fr_FR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Last-Translator: Jules Lasne \n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Poedit-SourceCharset: UTF-8\n" @@ -734,12 +734,20 @@ msgid "" "While Python itself is stable, this installation method may change its " "behavior and capabilities during Python 3.7 releases." msgstr "" +"Le paquet *Microsoft Store* est actuellement considéré comme instable le " +"temps que ses interactions avec d'autres outils et d'autres copies de Python " +"soient évaluées. Bien que Python lui-même soit stable, cette méthode " +"d'installation peut modifier son comportement et ses capacités durant les " +"versions de Python 3.7." #: ../Doc/using/windows.rst:300 msgid "" "The Microsoft Store package is an easily installable Python interpreter that " "is intended mainly for interactive use, for example, by students." msgstr "" +"Le paquet *Microsoft Store* est un interpréteur Python facilement " +"installable qui est destiné principalement à une utilisation interactive, " +"par exemple, par des étudiants." #: ../Doc/using/windows.rst:303 msgid "" @@ -747,12 +755,18 @@ msgid "" "search the Microsoft Store app for \"Python |version|\". Ensure that the app " "you select is published by the Python Software Foundation, and install it." msgstr "" +"Pour installer le paquet, assurez-vous d'avoir les dernières mises à jour de " +"Windows 10 et de chercher dans l'application *Microsoft Store* “Python |" +"version|”. Assurez-vous que l'application que vous sélectionnez est publiée " +"par la *Python Software Foundation* et installez-la." #: ../Doc/using/windows.rst:308 msgid "" "Python will always be available for free on the Microsoft Store. If you are " "asked to pay for it, you have not selected the correct package." msgstr "" +"Python sera toujours disponible gratuitement sur le Microsoft Store. Si vous " +"êtes invité à payer, vous n'avez pas sélectionné le bon paquet." #: ../Doc/using/windows.rst:311 msgid "" @@ -810,7 +824,7 @@ msgstr "" "Features* (Applications et Fonctionnalités), ou bien trouvez Python dans le " "menu Démarrer et cliquez avec le bouton droit pour sélectionner " "désinstaller. La désinstallation supprimera tous les paquets que vous avez " -"installé directement dans cette installation Python, mais ne supprimera " +"installés directement dans cette installation Python, mais ne supprimera " "aucun environnement virtuel" #: ../Doc/using/windows.rst:335 @@ -1277,8 +1291,8 @@ msgid "" msgstr "" "La variable :envvar:`PYTHONPATH` est utilisée par toutes les versions de " "Python 2 et Python 3, vous ne devez donc pas configurer cette variable de " -"façon permanente à moins qu'elle ne n'ajoute que du code compatible avec " -"toutes les versions de Python installées." +"façon permanente à moins qu'elle n'ajoute que du code compatible avec toutes " +"les versions de Python installées." #: ../Doc/using/windows.rst:564 msgid "https://www.microsoft.com/en-us/wdsi/help/folder-variables" @@ -1963,7 +1977,7 @@ msgstr "" "pas importé, sauf si une ligne du fichier spécifie ``import site``. Les " "chemins et les lignes vides commençant par ``#`` sont ignorés. Chaque chemin " "d'accès peut être absolu ou relatif à l'emplacement du fichier. Les imports " -"autre que vers *site* ne sont pas autorisés, ni n'importe quel instruction " +"autre que vers *site* ne sont pas autorisés, ni n'importe quelle instruction " "Python." #: ../Doc/using/windows.rst:921 @@ -2242,7 +2256,7 @@ msgid "" "includes utilities for:" msgstr "" "Le module `PyWin32 `_ de Mark Hammond est " -"une collection de modules pour un support avancé spécifique à Windows. Cela " +"une collection de modules pour un support avancé spécifique à Windows. Cela " "inclut les services pour :" #: ../Doc/using/windows.rst:1036 @@ -2425,6 +2439,7 @@ msgstr "" #: ../Doc/using/windows.rst:1113 msgid "`Windows CE `_ is still supported." msgstr "" +"`Windows CE `_ est toujours pris en charge." #: ../Doc/using/windows.rst:1114 msgid "" @@ -2433,6 +2448,10 @@ msgid "" "pub/pc/gnuwin32/cygwin/mirrors/cygnus/ release/python>`_, `Maintainer " "releases `_)" msgstr "" +"L’installateur `Cygwin `_ offre d’installer " +"l’interpréteur Python (cf. `Cygwin package source `_, `Maintainer " +"releases `_)" #: ../Doc/using/windows.rst:1120 msgid "" From 98ee8cd1c1fd8e47e637f15be509b69b4bd9bf6b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 4 Mar 2019 09:15:58 +0100 Subject: [PATCH 059/121] howto/unicode.po Co-Authored-By: deronnax --- howto/unicode.po | 180 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 169 insertions(+), 11 deletions(-) diff --git a/howto/unicode.po b/howto/unicode.po index 22be9610c..264ff421d 100644 --- a/howto/unicode.po +++ b/howto/unicode.po @@ -6,17 +6,18 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2019-02-23 18:32+0100\n" +"Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: POEdit 2.2\n" #: ../Doc/howto/unicode.rst:5 msgid "Unicode HOWTO" -msgstr "" +msgstr "Guide Unicode" #: ../Doc/howto/unicode.rst:0 msgid "Release" @@ -24,21 +25,24 @@ msgstr "Version" #: ../Doc/howto/unicode.rst:7 msgid "1.12" -msgstr "" +msgstr "1.12" #: ../Doc/howto/unicode.rst:9 msgid "" "This HOWTO discusses Python support for Unicode, and explains various " "problems that people commonly encounter when trying to work with Unicode." msgstr "" +"Ce HOWTO décrit le support d'Unicode par Python et explique les différents " +"problèmes généralement rencontrés par les utilisateurs qui travaillent avec " +"Unicode." #: ../Doc/howto/unicode.rst:14 msgid "Introduction to Unicode" -msgstr "" +msgstr "Introduction à Unicode" #: ../Doc/howto/unicode.rst:17 msgid "History of Character Codes" -msgstr "" +msgstr "Histoire des codes de caractères" #: ../Doc/howto/unicode.rst:19 msgid "" @@ -47,6 +51,11 @@ msgid "" "for various characters, with the numeric values running from 0 to 127. For " "example, the lowercase letter 'a' is assigned 97 as its code value." msgstr "" +"En 1968, l'*American Standard Code for Information Interchange*, mieux connu " +"sous son acronyme *ASCII*, a été normalisé. L'ASCII définissait des codes " +"numériques pour différents caractères, les valeurs numériques s'étendant de " +"0 à 127. Par exemple, la lettre minuscule « a » est assignée à 97 comme " +"valeur de code." #: ../Doc/howto/unicode.rst:24 msgid "" @@ -57,6 +66,13 @@ msgid "" "words such as 'naïve' and 'café', and some publications have house styles " "which require spellings such as 'coöperate'.)" msgstr "" +"ASCII était une norme développée par les États-Unis, elle ne définissait " +"donc que des caractères non accentués. Il y avait « e », mais pas « é » ou " +"« Í ». Cela signifiait que les langues qui nécessitaient des caractères " +"accentués ne pouvaient pas être fidèlement représentées en ASCII. (En fait, " +"les accents manquants importaient pour l'anglais aussi, qui contient des " +"mots tels que « naïve » et « café », et certaines publications ont des " +"styles propres qui exigent des orthographes tels que « *coöperate* ».)" #: ../Doc/howto/unicode.rst:31 msgid "" @@ -64,12 +80,17 @@ msgid "" "mid-1980s an Apple II BASIC program written by a French speaker might have " "lines like these:" msgstr "" +"Pendant un certain temps, les gens ont juste écrit des programmes qui " +"n'affichaient pas d'accents. Au milieu des années 1980, un programme Apple " +"II BASIC écrit par un français pouvait avoir des lignes comme celles-ci : ::" #: ../Doc/howto/unicode.rst:40 msgid "" "Those messages should contain accents (terminée, paramètre, enregistrés) and " "they just look wrong to someone who can read French." msgstr "" +"Ces messages devraient contenir des accents (terminée, paramètre, " +"enregistrés) et ils ont juste l'air anormaux à quelqu'un lisant le français." #: ../Doc/howto/unicode.rst:43 msgid "" @@ -83,6 +104,17 @@ msgid "" "conventions that were invented by one company or another and managed to " "catch on." msgstr "" +"Dans les années 1980, presque tous les ordinateurs personnels étaient à 8 " +"bits, ce qui signifie que les octets pouvaient contenir des valeurs allant " +"de 0 à 255. Les codes ASCII allaient seulement jusqu'à 127, alors certaines " +"machines ont assigné les valeurs entre 128 et 255 à des caractères " +"accentués. Différentes machines avaient des codes différents, cependant, ce " +"qui a conduit à des problèmes d'échange de fichiers. Finalement, divers " +"ensembles de valeurs couramment utilisés pour la gamme 128--255 ont émergé. " +"Certains étaient de véritables normes, définies par l'Organisation " +"internationale de normalisation, et certaines étaient des conventions *de " +"facto* qui ont été inventées par une entreprise ou une autre et qui ont fini " +"par se répandre." #: ../Doc/howto/unicode.rst:52 msgid "" @@ -91,6 +123,10 @@ msgid "" "for Russian into the 128--255 range because there are more than 128 such " "characters." msgstr "" +"255 caractères, ça n'est pas beaucoup. Par exemple, vous ne pouvez pas " +"contenir à la fois les caractères accentués utilisés en Europe occidentale " +"et l'alphabet cyrillique utilisé pour le russe dans la gamme 128--255, car " +"il y a plus de 128 de tous ces caractères." #: ../Doc/howto/unicode.rst:56 msgid "" @@ -100,6 +136,12 @@ msgid "" "that quotes some Russian text? In the 1980s people began to want to solve " "this problem, and the Unicode standardization effort began." msgstr "" +"Vous pouviez écrire les fichiers avec des codes différents (tous vos " +"fichiers russes dans un système de codage appelé *KOI8*, tous vos fichiers " +"français dans un système de codage différent appelé *Latin1*), mais que " +"faire si vous souhaitiez écrire un document français citant du texte russe ? " +"Dans les années 80, les gens ont commencé à vouloir résoudre ce problème, et " +"les efforts de standardisation Unicode ont commencé." #: ../Doc/howto/unicode.rst:62 msgid "" @@ -111,6 +153,14 @@ msgid "" "meet that goal, and the modern Unicode specification uses a wider range of " "codes, 0 through 1,114,111 ( ``0x10FFFF`` in base 16)." msgstr "" +"Unicode a commencé par utiliser des caractères 16 bits au lieu de 8 bits. 16 " +"bits signifie que vous avez 2^16 = 65 536 valeurs distinctes disponibles, ce " +"qui permet de représenter de nombreux caractères différents à partir de " +"nombreux alphabets différents. Un des objectifs initiaux était de faire en " +"sorte que Unicode contienne les alphabets de chaque langue humaine. Il " +"s’avère que même 16 bits ne suffisent pas pour atteindre cet objectif, et la " +"spécification Unicode moderne utilise une gamme de codes plus étendue, " +"allant de 0 à 1 114 111 (``0x10FFFF`` en base 16)." #: ../Doc/howto/unicode.rst:70 msgid "" @@ -118,6 +168,9 @@ msgid "" "originally separate efforts, but the specifications were merged with the 1.1 " "revision of Unicode." msgstr "" +"Il existe une norme ISO connexe, ISO 10646. Unicode et ISO 10646 étaient à " +"l’origine des efforts séparés, mais les spécifications ont été fusionnées " +"avec la révision 1.1 d’Unicode." #: ../Doc/howto/unicode.rst:74 msgid "" @@ -127,10 +180,16 @@ msgid "" "listed in the References or the `Wikipedia entry for Unicode `_ for more information.)" msgstr "" +"(Cette discussion sur l’historique d’Unicode est extrêmement simplifiée. Les " +"détails historiques précis ne sont pas nécessaires pour comprendre comment " +"utiliser efficacement Unicode, mais si vous êtes curieux, consultez le site " +"du consortium Unicode indiqué dans les références ou la `page Wikipédia pour " +"Unicode `_ (page en anglais) pour plus " +"d’informations.)" #: ../Doc/howto/unicode.rst:83 msgid "Definitions" -msgstr "" +msgstr "Définitions" #: ../Doc/howto/unicode.rst:85 msgid "" @@ -142,6 +201,14 @@ msgid "" "the same in some fonts), but these are two different characters that have " "different meanings." msgstr "" +"Un **caractère** est le plus petit composant possible d'un texte. « A », " +"« B », « C », etc., sont tous des caractères différents. Ainsi sont « È » " +"et « Í ». Les caractères sont des abstractions, et varient en fonction de " +"la langue ou le contexte dont vous parlez. Par exemple, le symbole pour " +"ohms (Ω) est généralement dessiné comme la lettre majuscule Omega (Ω) dans " +"l'alphabet grec (ils peuvent même être les mêmes dans certaines polices), " +"mais ce sont deux caractères différents qui ont des significations " +"différentes." #: ../Doc/howto/unicode.rst:93 msgid "" @@ -152,6 +219,12 @@ msgid "" "contains a lot of tables listing characters and their corresponding code " "points:" msgstr "" +"Le standard Unicode décrit la façon dont les caractères sont représentés par " +"des **points de code**. Un point de code est une valeur entière, " +"généralement notée en base 16. Dans la norme, un point de code est écrit en " +"utilisant la notation ``U+12CA`` pour signifier le caractère dont la valeur est " +"``0x12ca`` (4 810 en décimal). La norme Unicode contient un grand nombre de " +"tableaux répertoriant les caractères et leurs points de code correspondants :" #: ../Doc/howto/unicode.rst:107 msgid "" @@ -161,6 +234,11 @@ msgid "" "SYLLABLE WI'. In informal contexts, this distinction between code points " "and characters will sometimes be forgotten." msgstr "" +"De manière stricte, ces définitions impliquent qu'il est inutile de dire " +"« c’est le caractère ``U+12CA`` ». ``U+12CA`` est un point de code, qui " +"représente un caractère particulier ; dans ce cas, il représente le " +"caractère ‘ETHIOPIC SYLLABLE WI’. Dans des contextes informels, cette " +"distinction entre les points de code et les caractères est parfois oubliée." #: ../Doc/howto/unicode.rst:113 msgid "" @@ -171,10 +249,17 @@ msgid "" "to worry about glyphs; figuring out the correct glyph to display is " "generally the job of a GUI toolkit or a terminal's font renderer." msgstr "" +"Un caractère est représenté sur un écran ou sur papier par un ensemble " +"d’éléments graphiques appelé un **glyphe**. Le glyphe pour un A majuscule, " +"par exemple, est constitué de deux traits en diagonale et d’un trait " +"horizontal, bien que les détails exacts dépendent de la police utilisée. La " +"plupart du code Python n’a pas besoin de s’inquiéter des glyphes ; " +"déterminer le bon glyphe à afficher est généralement le travail d’une " +"bibliothèque graphique ou du moteur de rendu des polices d’un terminal." #: ../Doc/howto/unicode.rst:122 msgid "Encodings" -msgstr "" +msgstr "Encodages" #: ../Doc/howto/unicode.rst:124 msgid "" @@ -184,22 +269,35 @@ msgid "" "from 0 through 255) in memory. The rules for translating a Unicode string " "into a sequence of bytes are called an **encoding**." msgstr "" +"Pour résumer la section précédente : une chaîne Unicode est une séquence de " +"points de code, qui sont des nombres de 0 à ``0x10FFFF`` (1 114 111 en " +"décimal). Cette séquence doit être représentée sous la forme d'un ensemble " +"d'octets (c'est à dire, de valeur comprise entre 0 et 255) en mémoire. Les " +"règles de traduction d'une chaîne Unicode en une séquence d'octets sont " +"appelées un **encodage**." #: ../Doc/howto/unicode.rst:130 msgid "" "The first encoding you might think of is an array of 32-bit integers. In " "this representation, the string \"Python\" would look like this:" msgstr "" +"Le premier encodage auquel vous pouvez penser est un tableau d’entiers sur " +"32 bits. Dans cette représentation, la chaîne « Python » ressemble à " +"ceci:" #: ../Doc/howto/unicode.rst:139 msgid "" "This representation is straightforward but using it presents a number of " "problems." msgstr "" +"Cette représentation est simple mais son utilisation pose un certain nombre " +"de problèmes." #: ../Doc/howto/unicode.rst:142 msgid "It's not portable; different processors order the bytes differently." msgstr "" +"Elle n’est pas portable ; des processeurs différents ordonnent les octets " +"différemment." #: ../Doc/howto/unicode.rst:144 msgid "" @@ -211,18 +309,32 @@ msgid "" "that large), but expanding our usage of disk and network bandwidth by a " "factor of 4 is intolerable." msgstr "" +"Elle gâche beaucoup d'espace. Dans la plupart des textes, la majorité des " +"points de code sont inférieurs à 127, ou à 255, donc beaucoup d'espace est " +"occupé par des octets ``0x00``. La chaîne ci-dessus prend 24 octets par " +"rapport aux 6 octets nécessaires pour une représentation en ASCII. " +"L'utilisation supplémentaire de RAM n'a pas trop d'importance (les " +"ordinateurs de bureau ont des gigaoctets de RAM, et les chaînes ne sont " +"généralement pas si grandes que ça), mais l'accroissement de notre " +"utilisation du disque et de la bande passante réseau par un facteur de 4 est " +"intolérable." #: ../Doc/howto/unicode.rst:152 msgid "" "It's not compatible with existing C functions such as ``strlen()``, so a new " "family of wide string functions would need to be used." msgstr "" +"Elle n’est pas compatible avec les fonctions C existantes telles que " +"``strlen()``, il faudrait donc utiliser une nouvelle famille de fonctions, " +"celle des chaînes larges (*wide strings*)." #: ../Doc/howto/unicode.rst:155 msgid "" "Many Internet standards are defined in terms of textual data, and can't " "handle content with embedded zero bytes." msgstr "" +"De nombreuses normes Internet sont définies en termes de données textuelles " +"et ne peuvent pas gérer le contenu incorporant des octets *zéro*." #: ../Doc/howto/unicode.rst:158 msgid "" @@ -230,6 +342,10 @@ msgid "" "that are more efficient and convenient. UTF-8 is probably the most commonly " "supported encoding; it will be discussed below." msgstr "" +"Généralement, les gens n’utilisent pas cet encodage, mais optent pour " +"d’autres encodages plus efficaces et pratiques. UTF-8 est probablement " +"l’encodage le plus couramment pris en charge ; celui-ci sera abordé ci-" +"dessous." #: ../Doc/howto/unicode.rst:162 msgid "" @@ -237,12 +353,17 @@ msgid "" "encodings don't. The rules for converting a Unicode string into the ASCII " "encoding, for example, are simple; for each code point:" msgstr "" +"Les encodages n'ont pas à gérer tous les caractères Unicode possibles, et " +"les plupart ne le font pas. Les règles pour convertir une chaîne Unicode en " +"codage ASCII, par exemple, sont simples. pour chaque point de code :" #: ../Doc/howto/unicode.rst:166 msgid "" "If the code point is < 128, each byte is the same as the value of the code " "point." msgstr "" +"Si le point de code est < 128, chaque octet est identique à la valeur du " +"point de code." #: ../Doc/howto/unicode.rst:169 msgid "" @@ -250,6 +371,9 @@ msgid "" "in this encoding. (Python raises a :exc:`UnicodeEncodeError` exception in " "this case.)" msgstr "" +"Si le point de code est égal à 128 ou plus, la chaîne Unicode ne peut pas " +"être représentée dans ce codage (Python déclenche une exception :exc:" +"`UnicodeEncodeError` dans ce cas)." #: ../Doc/howto/unicode.rst:173 msgid "" @@ -259,6 +383,11 @@ msgid "" "point larger than 255 is encountered, the string can't be encoded into " "Latin-1." msgstr "" +"Latin-1, également connu sous le nom de ISO-8859-1, est un encodage " +"similaire. Les points de code Unicode 0–-255 étant identiques aux valeurs de " +"Latin-1, la conversion en cet encodage nécessite simplement la " +"conversion des points de code en octets de même valeur ; si un point de code " +"supérieur à 255 est rencontré, la chaîne ne peut pas être codée en latin-1." #: ../Doc/howto/unicode.rst:178 msgid "" @@ -269,6 +398,14 @@ msgid "" "encoding, you'd probably use some sort of lookup table to perform the " "conversion, but this is largely an internal detail." msgstr "" +"Les encodages ne doivent pas nécessairement être de simples mappages un à " +"un, comme Latin-1. Prenons l’exemple du code EBCDIC d’IBM, utilisé sur les " +"ordinateurs centraux IBM. Les valeurs de lettre ne faisaient pas partie d’un " +"bloc: les lettres « a » à « i » étaient comprises entre 129 et 137, mais les " +"lettres « j » à « r » étaient comprises entre 145 et 153. Si vous vouliez " +"utiliser EBCDIC comme encodage, vous auriez probablement utilisé une sorte " +"de table de correspondance pour effectuer la conversion, mais il s’agit en " +"surtout d’un détail d'implémentation." #: ../Doc/howto/unicode.rst:185 msgid "" @@ -277,25 +414,35 @@ msgid "" "the encoding. (There are also a UTF-16 and UTF-32 encodings, but they are " "less frequently used than UTF-8.) UTF-8 uses the following rules:" msgstr "" +"UTF-8 est l’un des encodages les plus couramment utilisés. UTF signifie " +"« Unicode Transformation Format » (format de transformation Unicode) et " +"« 8 » signifie que des nombres à 8 bits sont utilisés dans l'encodage. (Il " +"existe également des codages UTF-16 et UTF-32, mais ils sont moins souvent " +"utilisés que UTF-8.) UTF-8 utilise les règles suivantes :" #: ../Doc/howto/unicode.rst:190 msgid "" "If the code point is < 128, it's represented by the corresponding byte value." msgstr "" +"Si le point de code est < 128, chaque octet est identique à la valeur du " +"point de code." #: ../Doc/howto/unicode.rst:191 msgid "" "If the code point is >= 128, it's turned into a sequence of two, three, or " "four bytes, where each byte of the sequence is between 128 and 255." msgstr "" +"Si le point de code est ≥ 128, il est transformé en une séquence de deux, " +"trois ou quatre octets, où chaque octet de la séquence est compris entre 128 " +"et 255." #: ../Doc/howto/unicode.rst:194 msgid "UTF-8 has several convenient properties:" -msgstr "" +msgstr "UTF-8 a plusieurs propriétés intéressantes :" #: ../Doc/howto/unicode.rst:196 msgid "It can handle any Unicode code point." -msgstr "" +msgstr "Il peut gérer n'importe quel point de code Unicode." #: ../Doc/howto/unicode.rst:197 msgid "" @@ -304,16 +451,23 @@ msgid "" "be processed by C functions such as ``strcpy()`` and sent through protocols " "that can't handle zero bytes." msgstr "" +"Une chaîne Unicode est transformée en une séquence d'octets ne contenant " +"aucun octet *zéro*. Cela évite les problèmes d'*endianness* et signifie que " +"les chaînes UTF-8 peuvent être traitées par des fonctions C telles que " +"``strcpy()`` et envoyées via des protocoles qui ne peuvent pas gérer les " +"octets *zéro*." #: ../Doc/howto/unicode.rst:201 msgid "A string of ASCII text is also valid UTF-8 text." -msgstr "" +msgstr "Une chaîne de texte ASCII est également un texte UTF-8 valide." #: ../Doc/howto/unicode.rst:202 msgid "" "UTF-8 is fairly compact; the majority of commonly used characters can be " "represented with one or two bytes." msgstr "" +"UTF-8 est assez compact. La majorité des caractères couramment utilisés " +"peuvent être représentés avec un ou deux octets." #: ../Doc/howto/unicode.rst:204 msgid "" @@ -321,6 +475,10 @@ msgid "" "next UTF-8-encoded code point and resynchronize. It's also unlikely that " "random 8-bit data will look like valid UTF-8." msgstr "" +"Si des octets sont corrompus ou perdus, il est possible de déterminer le " +"début du prochain point de code encodé en UTF-8 et de se resynchroniser. Il " +"est également improbable que des données 8-bits aléatoires ressemblent à du " +"UTF-8 valide." #: ../Doc/howto/unicode.rst:211 ../Doc/howto/unicode.rst:485 #: ../Doc/howto/unicode.rst:705 From 65ab8c1cfec3da8cd00a116b647ccad35e7ea4a3 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 4 Mar 2019 16:46:37 +0100 Subject: [PATCH 060/121] FIX: It's not -255 but 255. --- howto/unicode.po | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/howto/unicode.po b/howto/unicode.po index 264ff421d..549c8d2a5 100644 --- a/howto/unicode.po +++ b/howto/unicode.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2019-02-23 18:32+0100\n" +"PO-Revision-Date: 2019-03-04 16:43+0100\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -184,8 +184,8 @@ msgstr "" "détails historiques précis ne sont pas nécessaires pour comprendre comment " "utiliser efficacement Unicode, mais si vous êtes curieux, consultez le site " "du consortium Unicode indiqué dans les références ou la `page Wikipédia pour " -"Unicode `_ (page en anglais) pour plus " -"d’informations.)" +"Unicode `_ (page en anglais) " +"pour plus d’informations.)" #: ../Doc/howto/unicode.rst:83 msgid "Definitions" @@ -222,9 +222,10 @@ msgstr "" "Le standard Unicode décrit la façon dont les caractères sont représentés par " "des **points de code**. Un point de code est une valeur entière, " "généralement notée en base 16. Dans la norme, un point de code est écrit en " -"utilisant la notation ``U+12CA`` pour signifier le caractère dont la valeur est " -"``0x12ca`` (4 810 en décimal). La norme Unicode contient un grand nombre de " -"tableaux répertoriant les caractères et leurs points de code correspondants :" +"utilisant la notation ``U+12CA`` pour signifier le caractère dont la valeur " +"est ``0x12ca`` (4 810 en décimal). La norme Unicode contient un grand " +"nombre de tableaux répertoriant les caractères et leurs points de code " +"correspondants :" #: ../Doc/howto/unicode.rst:107 msgid "" @@ -237,7 +238,7 @@ msgstr "" "De manière stricte, ces définitions impliquent qu'il est inutile de dire " "« c’est le caractère ``U+12CA`` ». ``U+12CA`` est un point de code, qui " "représente un caractère particulier ; dans ce cas, il représente le " -"caractère ‘ETHIOPIC SYLLABLE WI’. Dans des contextes informels, cette " +"caractère « ETHIOPIC SYLLABLE WI ». Dans des contextes informels, cette " "distinction entre les points de code et les caractères est parfois oubliée." #: ../Doc/howto/unicode.rst:113 @@ -282,8 +283,7 @@ msgid "" "this representation, the string \"Python\" would look like this:" msgstr "" "Le premier encodage auquel vous pouvez penser est un tableau d’entiers sur " -"32 bits. Dans cette représentation, la chaîne « Python » ressemble à " -"ceci:" +"32 bits. Dans cette représentation, la chaîne « Python » ressemble à ceci:" #: ../Doc/howto/unicode.rst:139 msgid "" @@ -384,10 +384,10 @@ msgid "" "Latin-1." msgstr "" "Latin-1, également connu sous le nom de ISO-8859-1, est un encodage " -"similaire. Les points de code Unicode 0–-255 étant identiques aux valeurs de " -"Latin-1, la conversion en cet encodage nécessite simplement la " -"conversion des points de code en octets de même valeur ; si un point de code " -"supérieur à 255 est rencontré, la chaîne ne peut pas être codée en latin-1." +"similaire. Les points de code Unicode 0–255 étant identiques aux valeurs de " +"Latin-1, la conversion en cet encodage nécessite simplement la conversion " +"des points de code en octets de même valeur ; si un point de code supérieur " +"à 255 est rencontré, la chaîne ne peut pas être codée en latin-1." #: ../Doc/howto/unicode.rst:178 msgid "" From 53ddd44538c213ec643ceefbadfb66fc689588fc Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 9 Mar 2019 23:39:59 +0100 Subject: [PATCH 061/121] Propagating known translations. --- c-api/contextvars.po | 2 +- c-api/exceptions.po | 2 +- c-api/intro.po | 2 +- c-api/veryhigh.po | 2 ++ howto/pyporting.po | 2 +- library/grp.po | 2 +- library/hashlib.po | 2 +- library/hmac.po | 4 ++-- library/inspect.po | 4 ++-- library/multiprocessing.po | 2 +- library/poplib.po | 2 +- library/pwd.po | 6 +++--- library/statistics.po | 2 +- library/time.po | 2 +- library/tracemalloc.po | 2 +- library/turtle.po | 2 +- library/unicodedata.po | 2 +- library/unittest.mock.po | 2 +- library/unittest.po | 2 +- library/webbrowser.po | 2 +- library/xml.etree.elementtree.po | 4 ++-- whatsnew/2.6.po | 2 +- 22 files changed, 28 insertions(+), 26 deletions(-) diff --git a/c-api/contextvars.po b/c-api/contextvars.po index 3dd55a24d..72faa61a3 100644 --- a/c-api/contextvars.po +++ b/c-api/contextvars.po @@ -62,7 +62,7 @@ msgstr "" #: ../Doc/c-api/contextvars.rst:58 msgid "Type-check macros:" -msgstr "" +msgstr "Macros pour vérifier les types :" #: ../Doc/c-api/contextvars.rst:62 msgid "" diff --git a/c-api/exceptions.po b/c-api/exceptions.po index 1b67e377c..8c862d879 100644 --- a/c-api/exceptions.po +++ b/c-api/exceptions.po @@ -489,7 +489,7 @@ msgstr "" #: ../Doc/c-api/exceptions.rst:487 msgid "Signal Handling" -msgstr "" +msgstr "Traitement des signaux" #: ../Doc/c-api/exceptions.rst:497 msgid "" diff --git a/c-api/intro.po b/c-api/intro.po index c4bccf884..cb90ba833 100644 --- a/c-api/intro.po +++ b/c-api/intro.po @@ -535,7 +535,7 @@ msgstr "" #: ../Doc/c-api/intro.rst:593 msgid "Embedding Python" -msgstr "" +msgstr "Embarquer Python" #: ../Doc/c-api/intro.rst:595 msgid "" diff --git a/c-api/veryhigh.po b/c-api/veryhigh.po index f819c72b1..ed1781b4a 100644 --- a/c-api/veryhigh.po +++ b/c-api/veryhigh.po @@ -372,6 +372,8 @@ msgid "" "This function now includes a debug assertion to help ensure that it does not " "silently discard an active exception." msgstr "" +"Cette fonction inclut maintenant une assertion de débogage afin d'assurer " +"qu'elle ne passe pas sous silence une exception active." #: ../Doc/c-api/veryhigh.rst:341 msgid "" diff --git a/howto/pyporting.po b/howto/pyporting.po index 8de5eaba3..e68bc9de3 100644 --- a/howto/pyporting.po +++ b/howto/pyporting.po @@ -263,7 +263,7 @@ msgstr "" #: ../Doc/howto/pyporting.rst:162 msgid "Division" -msgstr "" +msgstr "Division" #: ../Doc/howto/pyporting.rst:164 msgid "" diff --git a/library/grp.po b/library/grp.po index a2cb024f5..16e85e965 100644 --- a/library/grp.po +++ b/library/grp.po @@ -130,7 +130,7 @@ msgstr "" #: ../Doc/library/grp.rst:64 msgid "Module :mod:`pwd`" -msgstr "" +msgstr "Module :mod:`pwd`" #: ../Doc/library/grp.rst:64 msgid "An interface to the user database, similar to this." diff --git a/library/hashlib.po b/library/hashlib.po index b9a1043d1..0b7900bf3 100644 --- a/library/hashlib.po +++ b/library/hashlib.po @@ -1030,7 +1030,7 @@ msgstr "" #: ../Doc/library/hashlib.rst:726 msgid "Module :mod:`base64`" -msgstr "" +msgstr "Module :mod:`base64`" #: ../Doc/library/hashlib.rst:726 msgid "Another way to encode binary hashes for non-binary environments." diff --git a/library/hmac.po b/library/hmac.po index 7d950268d..1de431a81 100644 --- a/library/hmac.po +++ b/library/hmac.po @@ -117,7 +117,7 @@ msgstr "" #: ../Doc/library/hmac.rst:96 msgid "A hash object has the following attributes:" -msgstr "" +msgstr "L'objet haché possède les attributs suivants : ::" #: ../Doc/library/hmac.rst:100 msgid "The size of the resulting HMAC digest in bytes." @@ -125,7 +125,7 @@ msgstr "" #: ../Doc/library/hmac.rst:104 msgid "The internal block size of the hash algorithm in bytes." -msgstr "" +msgstr "La taille interne d'un bloc de l'algorithme de hachage en octets." #: ../Doc/library/hmac.rst:110 msgid "The canonical name of this HMAC, always lowercase, e.g. ``hmac-md5``." diff --git a/library/inspect.po b/library/inspect.po index 3dcd47e43..289f4c848 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -1118,7 +1118,7 @@ msgstr "" #: ../Doc/library/inspect.rst:852 msgid "Classes and functions" -msgstr "" +msgstr "Classes et fonctions" #: ../Doc/library/inspect.rst:856 msgid "" @@ -1242,7 +1242,7 @@ msgstr "" #: ../Doc/library/inspect.rst:957 msgid "For example:" -msgstr "Par exemple ::" +msgstr "Par exemple :" #: ../Doc/library/inspect.rst:966 msgid "" diff --git a/library/multiprocessing.po b/library/multiprocessing.po index a1f5a9293..682428df1 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -1707,7 +1707,7 @@ msgstr "" #: ../Doc/library/multiprocessing.rst:1123 msgid "For example:" -msgstr "Par exemple ::" +msgstr "Par exemple :" #: ../Doc/library/multiprocessing.rst:1147 msgid "" diff --git a/library/poplib.po b/library/poplib.po index 1e33738a5..6755595e7 100644 --- a/library/poplib.po +++ b/library/poplib.po @@ -108,7 +108,7 @@ msgstr "" #: ../Doc/library/poplib.rst:85 msgid "Module :mod:`imaplib`" -msgstr "" +msgstr "Module :mod:`imaplib`" #: ../Doc/library/poplib.rst:85 msgid "The standard Python IMAP module." diff --git a/library/pwd.po b/library/pwd.po index 3d01331d5..bee2f9a0b 100644 --- a/library/pwd.po +++ b/library/pwd.po @@ -53,7 +53,7 @@ msgstr "``pw_name``" #: ../Doc/library/pwd.rst:20 msgid "Login name" -msgstr "" +msgstr "Nom d’utilisateur" #: ../Doc/library/pwd.rst:22 msgid "1" @@ -164,11 +164,11 @@ msgstr "" #: ../Doc/library/pwd.rst:72 msgid "Module :mod:`grp`" -msgstr "" +msgstr "Module :mod:`grp`" #: ../Doc/library/pwd.rst:72 msgid "An interface to the group database, similar to this." -msgstr "" +msgstr "Interface pour la base de données des groupes, similaire à celle-ci." #: ../Doc/library/pwd.rst:74 msgid "Module :mod:`spwd`" diff --git a/library/statistics.po b/library/statistics.po index 6d8148557..965f18445 100644 --- a/library/statistics.po +++ b/library/statistics.po @@ -420,7 +420,7 @@ msgstr "" #: ../Doc/library/statistics.rst:325 ../Doc/library/statistics.rst:399 msgid "Examples:" -msgstr "Exemples : ::" +msgstr "Exemples :" #: ../Doc/library/statistics.rst:333 msgid "" diff --git a/library/time.po b/library/time.po index 72072efe8..e5026379c 100644 --- a/library/time.po +++ b/library/time.po @@ -733,7 +733,7 @@ msgstr "" #: ../Doc/library/time.rst:515 msgid "For example:" -msgstr "Par exemple ::" +msgstr "Par exemple :" #: ../Doc/library/time.rst:522 msgid "" diff --git a/library/tracemalloc.po b/library/tracemalloc.po index 3b383f512..15f3df8bd 100644 --- a/library/tracemalloc.po +++ b/library/tracemalloc.po @@ -332,7 +332,7 @@ msgstr "" #: ../Doc/library/tracemalloc.rst:395 msgid "Examples:" -msgstr "Exemples : ::" +msgstr "Exemples :" #: ../Doc/library/tracemalloc.rst:397 msgid "" diff --git a/library/turtle.po b/library/turtle.po index 5887d3200..45ed74cd2 100644 --- a/library/turtle.po +++ b/library/turtle.po @@ -1515,7 +1515,7 @@ msgstr "" #: ../Doc/library/turtle.rst:1484 msgid "For example:" -msgstr "Par exemple ::" +msgstr "Par exemple :" #: ../Doc/library/turtle.rst:1494 msgid "Now add the Shape to the Screen's shapelist and use it:" diff --git a/library/unicodedata.po b/library/unicodedata.po index d2f3b0b06..941cbf5bf 100644 --- a/library/unicodedata.po +++ b/library/unicodedata.po @@ -242,7 +242,7 @@ msgstr "" #: ../Doc/library/unicodedata.rst:150 msgid "Examples:" -msgstr "Exemples : ::" +msgstr "Exemples :" #: ../Doc/library/unicodedata.rst:170 msgid "Footnotes" diff --git a/library/unittest.mock.po b/library/unittest.mock.po index ef71e380b..46ed73b9e 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -1584,7 +1584,7 @@ msgstr "" #: ../Doc/library/unittest.mock.rst:1764 msgid "For example:" -msgstr "Par exemple ::" +msgstr "Par exemple :" #: ../Doc/library/unittest.mock.rst:1776 msgid "" diff --git a/library/unittest.po b/library/unittest.po index a1ee67067..6bdec232d 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -1735,7 +1735,7 @@ msgstr "" #: ../Doc/library/unittest.rst:1106 msgid "Example::" -msgstr "Exemple  ::" +msgstr "Exemple ::" #: ../Doc/library/unittest.rst:1117 msgid "" diff --git a/library/webbrowser.po b/library/webbrowser.po index c5369c987..f947d3938 100644 --- a/library/webbrowser.po +++ b/library/webbrowser.po @@ -75,7 +75,7 @@ msgstr "" #: ../Doc/library/webbrowser.rst:51 msgid "The following functions are defined:" -msgstr "" +msgstr "Les fonctions suivantes sont définies :" #: ../Doc/library/webbrowser.rst:56 msgid "" diff --git a/library/xml.etree.elementtree.po b/library/xml.etree.elementtree.po index 7a6dd9532..29701b377 100644 --- a/library/xml.etree.elementtree.po +++ b/library/xml.etree.elementtree.po @@ -304,7 +304,7 @@ msgstr "" #: ../Doc/library/xml.etree.elementtree.rst:408 msgid "Syntax" -msgstr "" +msgstr "Syntaxe" #: ../Doc/library/xml.etree.elementtree.rst:408 msgid "Meaning" @@ -592,7 +592,7 @@ msgstr "" #: ../Doc/library/xml.etree.elementtree.rst:620 #: ../Doc/library/xml.etree.elementtree.rst:947 msgid "The *short_empty_elements* parameter." -msgstr "" +msgstr "Le paramètre *short_empty_elements*." #: ../Doc/library/xml.etree.elementtree.rst:608 msgid "" diff --git a/whatsnew/2.6.po b/whatsnew/2.6.po index d4c94de45..c910be720 100644 --- a/whatsnew/2.6.po +++ b/whatsnew/2.6.po @@ -1485,7 +1485,7 @@ msgstr "C’est équivalent à ::" #: ../Doc/whatsnew/2.6.rst:1382 msgid ":pep:`3129` - Class Decorators" -msgstr "" +msgstr ":pep:`3129` -- Décorateurs de classes" #: ../Doc/whatsnew/2.6.rst:1383 msgid "PEP written by Collin Winter." From 579fcbf555d1874df3a1652dd710d6fa895ae491 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 9 Mar 2019 23:57:02 +0100 Subject: [PATCH 062/121] Disambiguate between transifex and unpropagated translations. --- README.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.rst b/README.rst index edef116a1..cfd8be145 100644 --- a/README.rst +++ b/README.rst @@ -352,6 +352,17 @@ from Pypi. You'll need to configure ``tx`` via ``tx init`` if not already done. +First propagate known translations locally: + +.. code-block:: bash + + pomerge --from-files **/*.po --to-files **/*.po + powrap --modified + git commit -m "Propagating known translations." + + +Then pull from transifex: + .. code-block:: bash pomerge --from-files **/*.po From 0b0078e841b88b7ba4b897d4d100d0ed2d595dee Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 11 Mar 2019 14:39:35 +0100 Subject: [PATCH 063/121] FIX: IO bound does not means limited by the memory. --- library/concurrency.po | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/library/concurrency.po b/library/concurrency.po index 6224bbfd2..59e1e2e93 100644 --- a/library/concurrency.po +++ b/library/concurrency.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: 2018-07-29 18:58+0200\n" +"PO-Revision-Date: 2019-03-11 14:38+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -28,9 +28,10 @@ msgid "" msgstr "" "Les modules documentés dans ce chapitre fournissent des outils d'exécution " "concourante de code. Le choix de l'outil approprié dépend de la tâche à " -"exécuter (limitée par le CPU, ou limitée par la mémoire) et du style de " -"développement désiré (coopération gérée par des évènements ou multitâche " -"préemptif). En voici un survol :" +"exécuter (limitée par le CPU (*CPU bound*), ou limitée la vitesse des " +"entrées-sorties (*IO bound*)) et du style de développement désiré " +"(coopération gérée par des évènements ou multitâche préemptif). En voici un " +"survol :" #: ../Doc/library/concurrency.rst:25 msgid "The following are support modules for some of the above services:" From befad1dc22c2d5f34acf64a9640404c8c97b38cf Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 14 Mar 2019 22:43:14 +0100 Subject: [PATCH 064/121] travis: Whine about files not correctly wrapped. (#607) --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7366ffebd..c5d789791 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,10 @@ before_install: - sudo apt-get update - sudo apt-get install -y hunspell hunspell-fr-comprehensive install: - - pip install pospell + - pip install pospell "powrap>=0.3.0" - pospell --version + - powrap --version script: + - powrap --check --quiet **/*.po - pospell -p dict -l fr_FR **/*.po - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=902196d867 From d8df35a02a3269cbcddce3d75cbdd21c3348702c Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 18 Mar 2019 01:11:21 +0100 Subject: [PATCH 065/121] time.po Co-Authored-By: Igor Garbuz Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- library/time.po | 470 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 418 insertions(+), 52 deletions(-) diff --git a/library/time.po b/library/time.po index e5026379c..86a4c9c1a 100644 --- a/library/time.po +++ b/library/time.po @@ -6,24 +6,27 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2018-11-29 18:26+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-18 01:10+0100\n" +"Last-Translator: Igor Garbuz \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" +"X-Generator: Poedit 2.2\n" #: ../Doc/library/time.rst:2 msgid ":mod:`time` --- Time access and conversions" -msgstr "" +msgstr ":mod:`time` — Accès au temps et conversions" #: ../Doc/library/time.rst:9 msgid "" "This module provides various time-related functions. For related " "functionality, see also the :mod:`datetime` and :mod:`calendar` modules." msgstr "" +"Ce module fournit différentes fonctions liées au temps. Pour les " +"fonctionnalités associées, voir aussi les modules :mod:`datetime` et :mod:" +"`calendar`." #: ../Doc/library/time.rst:12 msgid "" @@ -33,10 +36,17 @@ msgid "" "consult the platform documentation, because the semantics of these functions " "varies among platforms." msgstr "" +"Bien que ce module soit toujours disponible, toutes les fonctions ne sont " +"pas disponibles sur toutes les plateformes. La plupart des fonctions " +"définies dans ce module délèguent à des fonctions de même nom de la " +"bibliothèque C. Il peut parfois être utile de consulter la documentation de " +"la plate-forme, car la sémantique de ces fonctions peut varier." #: ../Doc/library/time.rst:18 msgid "An explanation of some terminology and conventions is in order." msgstr "" +"Vous trouvez ci-dessous, mises en ordre, quelques explications relative à la " +"terminologie et aux conventions." #: ../Doc/library/time.rst:24 msgid "" @@ -44,6 +54,10 @@ msgid "" "dependent. For Unix, the epoch is January 1, 1970, 00:00:00 (UTC). To find " "out what the epoch is on a given platform, look at ``time.gmtime(0)``." msgstr "" +"L':dfn:`epoch` est le point de départ du temps et dépend de la plate-forme. " +"Pour Unix, *epoch* est le 1er janvier 1970 à 00:00:00 (UTC). Pour savoir " +"comment est définie *epoch* sur une plate-forme donnée, regardez ``time." +"gmtime(0)``." #: ../Doc/library/time.rst:33 msgid "" @@ -51,6 +65,10 @@ msgid "" "elapsed seconds since the epoch, typically excluding `leap seconds`_. Leap " "seconds are excluded from this total on all POSIX-compliant platforms." msgstr "" +"Le terme :dfn:`secondes depuis *epoch*` désigne le nombre total de secondes " +"écoulées depuis *epoch*, souvent en excluant les secondes intercalaires " +"(`leap seconds`_). Les secondes intercalaires sont exclues de ce total sur " +"toutes les plates-formes conformes POSIX." #: ../Doc/library/time.rst:40 msgid "" @@ -58,6 +76,10 @@ msgid "" "or far in the future. The cut-off point in the future is determined by the " "C library; for 32-bit systems, it is typically in 2038." msgstr "" +"Les fonctions de ce module peuvent ne pas gérer les dates et heures " +"antérieures à *epoch* ou dans un avenir lointain. Le seuil du futur est " +"déterminé par la bibliothèque C ; pour les systèmes 32 bits, il s’agit " +"généralement de 2038." #: ../Doc/library/time.rst:50 msgid "" @@ -69,6 +91,14 @@ msgid "" "standards: values 69--99 are mapped to 1969--1999, and values 0--68 are " "mapped to 2000--2068." msgstr "" +"**Problèmes liés à l’an 2000 (Y2K)** : Python dépend de la bibliothèque C de " +"la plate-forme, qui n’a généralement pas de problèmes liés à l’an 2000, " +"étant donné que toutes les dates et heures sont représentées en interne en " +"secondes depuis *epoch*. La fonction :func:`strptime` peut analyser des " +"années à 2 chiffres lorsque le format ``%y`` est spécifié. Lorsque les " +"années à deux chiffres sont analysées, elles sont converties conformément " +"aux normes POSIX et ISO C : les valeurs 69—99 correspondent à 1969—1999 et " +"les valeurs 0—68 à 2000—2068." #: ../Doc/library/time.rst:62 msgid "" @@ -76,6 +106,9 @@ msgid "" "GMT). The acronym UTC is not a mistake but a compromise between English and " "French." msgstr "" +"UTC désigne le temps universel coordonné (*Coordinated Universal Time* en " +"anglais), anciennement l'heure de Greenwich (ou GMT). L'acronyme UTC n'est " +"pas une erreur mais un compromis entre l'anglais et le français." #: ../Doc/library/time.rst:68 msgid "" @@ -85,6 +118,12 @@ msgid "" "local rules (often it is read from a system file for flexibility) and is the " "only source of True Wisdom in this respect." msgstr "" +"Le DST (*Daylight Saving Time*) correspond à l’heure d’été, un ajustement du " +"fuseau horaire d’une heure (généralement) pendant une partie de l’année. Les " +"règles de DST sont magiques (déterminées par la loi locale) et peuvent " +"changer d’année en année. La bibliothèque C possède une table contenant les " +"règles locales (souvent, elle est lue dans un fichier système par souci de " +"souplesse) et constitue la seule source fiable." #: ../Doc/library/time.rst:74 msgid "" @@ -92,6 +131,10 @@ msgid "" "by the units in which their value or argument is expressed. E.g. on most " "Unix systems, the clock \"ticks\" only 50 or 100 times a second." msgstr "" +"La précision des diverses fonctions en temps réel peut être inférieure à " +"celle suggérée par les unités dans lesquelles leur valeur ou leur argument " +"est exprimé. Par exemple, sur la plupart des systèmes Unix, l’horloge ne « " +"bat » que 50 ou 100 fois par seconde." #: ../Doc/library/time.rst:78 msgid "" @@ -102,6 +145,12 @@ msgid "" "with a nonzero fraction (Unix :c:func:`select` is used to implement this, " "where available)." msgstr "" +"D’autre part, la précision de :func:`.time` et :func:`sleep` est meilleure " +"que leurs équivalents Unix : les temps sont exprimés en nombres à virgule " +"flottante, :func:`.time` renvoie le temps le plus précis disponible (en " +"utilisant :c:func:`gettimeofday` d'Unix si elle est disponible), et :func:" +"`sleep` accepte le temps avec une fraction non nulle (:c:func:`select` " +"d'Unix est utilisée pour l’implémenter, si elle est disponible)." #: ../Doc/library/time.rst:85 msgid "" @@ -111,10 +160,15 @@ msgid "" "`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute names " "for individual fields." msgstr "" +"La valeur temporelle renvoyée par :func:`gmtime`, :func:`localtime` et :func:" +"`strptime`, et acceptée par :func:`asctime`, :func:`mktime` et :func:" +"`strftime`, est une séquence de 9 nombres entiers. Les valeurs de retour de :" +"func:`gmtime`, :func:`localtime` et :func:`strptime` proposent également des " +"noms d’attributs pour des champs individuels." #: ../Doc/library/time.rst:91 msgid "See :class:`struct_time` for a description of these objects." -msgstr "" +msgstr "Voir :class:`struct_time` pour une description de ces objets." #: ../Doc/library/time.rst:93 msgid "" @@ -122,16 +176,23 @@ msgid "" "and :attr:`tm_zone` attributes when platform supports corresponding ``struct " "tm`` members." msgstr "" +"Le type :class:`struct_time` a été étendu pour fournir les attributs :attr:" +"`tm_gmtoff` et :attr:`tm_zone` lorsque la plateforme prend en charge les " +"membres ``struct tm`` correspondants." #: ../Doc/library/time.rst:98 msgid "" "The :class:`struct_time` attributes :attr:`tm_gmtoff` and :attr:`tm_zone` " "are now available on all platforms." msgstr "" +"Les attributs :class:`struct_time` :attr:`tm_gmtoff` et :attr:`tm_zone` sont " +"maintenant disponibles sur toutes les plateformes." #: ../Doc/library/time.rst:102 msgid "Use the following functions to convert between time representations:" msgstr "" +"Utilisez les fonctions suivantes pour convertir des représentations " +"temporelles :" #: ../Doc/library/time.rst:105 msgid "From" @@ -143,36 +204,36 @@ msgstr "À" #: ../Doc/library/time.rst:105 msgid "Use" -msgstr "" +msgstr "Utilisez" #: ../Doc/library/time.rst:107 ../Doc/library/time.rst:110 #: ../Doc/library/time.rst:113 ../Doc/library/time.rst:116 msgid "seconds since the epoch" -msgstr "" +msgstr "secondes depuis *epoch*" #: ../Doc/library/time.rst:107 ../Doc/library/time.rst:113 msgid ":class:`struct_time` in UTC" -msgstr "" +msgstr ":class:`struct_time` en UTC" #: ../Doc/library/time.rst:107 msgid ":func:`gmtime`" -msgstr "" +msgstr ":func:`gmtime`" #: ../Doc/library/time.rst:110 ../Doc/library/time.rst:116 msgid ":class:`struct_time` in local time" -msgstr "" +msgstr ":class:`struct_time` en heure locale" #: ../Doc/library/time.rst:110 msgid ":func:`localtime`" -msgstr "" +msgstr ":func:`localtime`" #: ../Doc/library/time.rst:113 msgid ":func:`calendar.timegm`" -msgstr "" +msgstr ":func:`calendar.timegm`" #: ../Doc/library/time.rst:116 msgid ":func:`mktime`" -msgstr "" +msgstr ":func:`mktime`" #: ../Doc/library/time.rst:124 msgid "Functions" @@ -186,12 +247,19 @@ msgid "" "returned by :func:`localtime` is used. Locale information is not used by :" "func:`asctime`." msgstr "" +"Convertit un *tuple* ou :class:`struct_time` représentant une heure renvoyée " +"par :func:`gmtime` ou :func:`localtime` en une chaîne de la forme suivante : " +"``'Sun Jun 20 23:21:05 1993'``. Si *t* n’est pas fourni, l’heure actuelle " +"renvoyée par :func:`localtime` est utilisée. Les informations sur les " +"paramètres régionaux ne sont pas utilisées par :func:`asctime`." #: ../Doc/library/time.rst:136 msgid "" "Unlike the C function of the same name, :func:`asctime` does not add a " "trailing newline." msgstr "" +"Contrairement à la fonction C du même nom, :func:`asctime` n’ajoute pas de " +"caractère de fin de ligne." #: ../Doc/library/time.rst:147 msgid "" @@ -228,24 +296,33 @@ msgid "" "attribute of :class:`threading.Thread` objects to get a suitable value for " "*thread_id*." msgstr "" +"Utilisez :func:`threading.get_ident` ou l'attribut :attr:`~threading.Thread." +"ident` de :class:`threading.Thread` pour obtenir une valeur appropriée pour " +"*thread_id*." #: ../Doc/library/time.rst:170 msgid "" "Passing an invalid or expired *thread_id* may result in undefined behavior, " "such as segmentation fault." msgstr "" +"Passer un *thread_id* invalide ou arrivé à expiration peut entraîner un " +"comportement indéfini, tel qu’une erreur de segmentation." #: ../Doc/library/time.rst:175 msgid "" ":ref:`Availability `: Unix (see the man page for :manpage:" "`pthread_getcpuclockid(3)` for further information)." msgstr "" +":ref:`Disponibilité ` : Unix (regardez la page man pour :" +"manpage:`pthread_getcpuclockid(3)` pour plus d’information)." #: ../Doc/library/time.rst:180 msgid "" "Return the resolution (precision) of the specified clock *clk_id*. Refer " "to :ref:`time-clock-id-constants` for a list of accepted values for *clk_id*." msgstr "" +"Renvoie la résolution (précision) de l’horloge *clk_id*. Référez-vous à :ref:" +"`time-clock-id-constants` pour une liste des valeurs acceptées pour *clk_id*." #: ../Doc/library/time.rst:184 ../Doc/library/time.rst:194 #: ../Doc/library/time.rst:203 ../Doc/library/time.rst:213 @@ -260,20 +337,27 @@ msgid "" "Return the time of the specified clock *clk_id*. Refer to :ref:`time-clock-" "id-constants` for a list of accepted values for *clk_id*." msgstr "" +"Renvoie l’heure de l’horloge *clk_id*. Référez-vous à :ref:`time-clock-id-" +"constants` pour une liste des valeurs acceptées pour *clk_id*." #: ../Doc/library/time.rst:200 msgid "Similar to :func:`clock_gettime` but return time as nanoseconds." msgstr "" +"Similaire à :func:`clock_gettime` mais le temps renvoyé est exprimé en " +"nanosecondes." #: ../Doc/library/time.rst:209 msgid "" "Set the time of the specified clock *clk_id*. Currently, :data:" "`CLOCK_REALTIME` is the only accepted value for *clk_id*." msgstr "" +"Définit l’heure de l’horloge *clk_id*. Actuellement, :data:`CLOCK_REALTIME` " +"est la seule valeur acceptée pour *clk_id*." #: ../Doc/library/time.rst:219 msgid "Similar to :func:`clock_settime` but set time with nanoseconds." msgstr "" +"Similaire à :func:`clock_settime` mais définit l’heure avec des nanosecondes." #: ../Doc/library/time.rst:228 msgid "" @@ -283,12 +367,21 @@ msgid "" "``asctime(localtime(secs))``. Locale information is not used by :func:" "`ctime`." msgstr "" +"Convertit une heure exprimée en secondes depuis *epoch* en une chaîne " +"représentant l’heure locale. Si *secs* n’est pas fourni ou vaut :const:" +"`None`, l’heure actuelle renvoyée par :func:`.time` est utilisée. " +"``ctime(secs)`` est équivalent à ``asctime(localtime(secs))``. Les " +"informations sur les paramètres régionaux ne sont pas utilisées par :func:" +"`ctime`." #: ../Doc/library/time.rst:236 msgid "" "Get information on the specified clock as a namespace object. Supported " "clock names and the corresponding functions to read their value are:" msgstr "" +"Renvoie des informations sur l’horloge spécifiée en tant qu’objet d’espace " +"de nom. Les noms d’horloge pris en charge et les fonctions correspondantes " +"permettant de lire leur valeur sont les suivants :" #: ../Doc/library/time.rst:240 msgid "``'clock'``: :func:`time.clock`" @@ -316,28 +409,36 @@ msgstr "``'time'``: :func:`time.time`" #: ../Doc/library/time.rst:247 msgid "The result has the following attributes:" -msgstr "" +msgstr "Le résultat a les attributs suivants :" #: ../Doc/library/time.rst:249 msgid "" "*adjustable*: ``True`` if the clock can be changed automatically (e.g. by a " "NTP daemon) or manually by the system administrator, ``False`` otherwise" msgstr "" +"*adjustable* : ``True`` si l’horloge peut être changée automatiquement (par " +"exemple par un démon NTP) ou manuellement par l’administrateur système, " +"``False`` autrement" #: ../Doc/library/time.rst:251 msgid "" "*implementation*: The name of the underlying C function used to get the " "clock value. Refer to :ref:`time-clock-id-constants` for possible values." msgstr "" +"*implementation* : nom de la fonction C sous-jacente utilisée pour obtenir " +"la valeur d’horloge. Voir :ref:`time-clock-id-constants` pour les valeurs " +"possibles." #: ../Doc/library/time.rst:253 msgid "" "*monotonic*: ``True`` if the clock cannot go backward, ``False`` otherwise" msgstr "" +"*monotonic* : ``True`` si l’horloge ne peut pas revenir en arrière, " +"``False`` autrement" #: ../Doc/library/time.rst:255 msgid "*resolution*: The resolution of the clock in seconds (:class:`float`)" -msgstr "" +msgstr "*resolution* : La résolution de l’horloge en secondes (:class:`float`)" #: ../Doc/library/time.rst:262 msgid "" @@ -348,6 +449,12 @@ msgid "" "the :class:`struct_time` object. See :func:`calendar.timegm` for the inverse " "of this function." msgstr "" +"Convertit un temps exprimé en secondes depuis *epoch* en un :class:" +"`struct_time` au format UTC dans lequel le drapeau *dst* est toujours égal à " +"zéro. Si *secs* n’est pas fourni ou vaut :const:`None`, l’heure actuelle " +"renvoyée par :func:`.time` est utilisée. Les fractions de seconde sont " +"ignorées. Voir ci-dessus pour une description de l’objet :class:" +"`struct_time`. Voir :func:`calendar.timegm` pour l’inverse de cette fonction." #: ../Doc/library/time.rst:272 msgid "" @@ -355,6 +462,10 @@ msgid "" "or :const:`None`, the current time as returned by :func:`.time` is used. " "The dst flag is set to ``1`` when DST applies to the given time." msgstr "" +"Comme :func:`gmtime` mais convertit le résultat en heure locale. Si *secs* " +"n’est pas fourni ou vaut :const:`None`, l’heure actuelle renvoyée par :func:" +"`.time` est utilisée. Le drapeau *dst* est mis à ``1`` lorsque l’heure d’été " +"s’applique à l’heure indiquée." #: ../Doc/library/time.rst:279 msgid "" @@ -368,6 +479,15 @@ msgid "" "libraries). The earliest date for which it can generate a time is platform-" "dependent." msgstr "" +"C’est la fonction inverse de :func:`localtime`. Son argument est soit un :" +"class:`struct_time` soit un 9-tuple (puisque le drapeau *dst* est " +"nécessaire ; utilisez ``-1`` comme drapeau *dst* s’il est inconnu) qui " +"exprime le temps **local**, pas UTC. Il retourne un nombre à virgule " +"flottante, pour compatibilité avec :func:`.time`. Si la valeur d’entrée ne " +"peut pas être représentée comme une heure valide, soit :exc:`OverflowError` " +"ou :exc:`ValueError` sera levée (selon que la valeur non valide est " +"interceptée par Python ou par les bibliothèque C sous-jacentes). La date la " +"plus proche pour laquelle il peut générer une heure dépend de la plate-forme." #: ../Doc/library/time.rst:291 msgid "" @@ -376,14 +496,23 @@ msgid "" "updates. The reference point of the returned value is undefined, so that " "only the difference between the results of consecutive calls is valid." msgstr "" +"Renvoie la valeur (en quelques fractions de secondes) d’une horloge " +"monotone, c’est-à-dire une horloge qui ne peut pas revenir en arrière. " +"L’horloge n’est pas affectée par les mises à jour de l’horloge système. Le " +"point de référence de la valeur renvoyée n’est pas défini, de sorte que " +"seule la différence entre les résultats d’appels consécutifs est valide." #: ../Doc/library/time.rst:297 msgid "The function is now always available and always system-wide." msgstr "" +"La fonction est maintenant toujours disponible et toujours à l’échelle du " +"système." #: ../Doc/library/time.rst:303 msgid "Similar to :func:`monotonic`, but return time as nanoseconds." msgstr "" +"Similaire à :func:`monotonique`, mais le temps de retour est exprimé en " +"nanosecondes." #: ../Doc/library/time.rst:312 msgid "" @@ -393,10 +522,17 @@ msgid "" "point of the returned value is undefined, so that only the difference " "between the results of consecutive calls is valid." msgstr "" +"Renvoie la valeur (en quelques fractions de secondes) d’un compteur de " +"performance, c’est-à-dire une horloge avec la résolution disponible la plus " +"élevée possible pour mesurer une courte durée. Cela inclut le temps écoulé " +"pendant le sommeil et concerne l’ensemble du système. Le point de référence " +"de la valeur renvoyée n’est pas défini, de sorte que seule la différence " +"entre les résultats d’appels consécutifs est valide." #: ../Doc/library/time.rst:322 msgid "Similar to :func:`perf_counter`, but return time as nanoseconds." msgstr "" +"Similaire à :func:`perf_counter`, mais renvoie le temps en nanosecondes." #: ../Doc/library/time.rst:334 msgid "" @@ -406,10 +542,16 @@ msgid "" "returned value is undefined, so that only the difference between the results " "of consecutive calls is valid." msgstr "" +"Renvoie la valeur (en quelques fractions de secondes) de la somme des temps " +"système et utilisateur du processus en cours. Il ne comprend pas le temps " +"écoulé pendant le sommeil. C’est un processus par définition. Le point de " +"référence de la valeur renvoyée n’est pas défini, de sorte que seule la " +"différence entre les résultats d’appels consécutifs est valide." #: ../Doc/library/time.rst:344 msgid "Similar to :func:`process_time` but return time as nanoseconds." msgstr "" +"Similaire à :func:`process_time` mais renvoie le temps en nanosecondes." #: ../Doc/library/time.rst:350 msgid "" @@ -421,6 +563,14 @@ msgid "" "requested by an arbitrary amount because of the scheduling of other activity " "in the system." msgstr "" +"Suspend l’exécution du thread appelant pendant le nombre de secondes " +"indiqué. L’argument peut être un nombre à virgule flottante pour indiquer un " +"temps de sommeil plus précis. Le temps de suspension réel peut être " +"inférieur à celui demandé, car tout signal capturé mettra fin à la commande :" +"func:`sleep` après l’exécution de la routine de capture de ce signal. En " +"outre, le temps de suspension peut être plus long que celui demandé par un " +"montant arbitraire en raison de la planification d’une autre activité dans " +"le système." #: ../Doc/library/time.rst:358 msgid "" @@ -428,6 +578,9 @@ msgid "" "a signal, except if the signal handler raises an exception (see :pep:`475` " "for the rationale)." msgstr "" +"La fonction dort maintenant au moins *secondes* même si le sommeil est " +"interrompu par un signal, sauf si le gestionnaire de signaux lève une " +"exception (voir :pep:`475` pour la justification)." #: ../Doc/library/time.rst:369 msgid "" @@ -437,12 +590,20 @@ msgid "" "`localtime` is used. *format* must be a string. :exc:`ValueError` is " "raised if any field in *t* is outside of the allowed range." msgstr "" +"Convertit un *tuple* ou :class:`struct_time` représentant une heure renvoyée " +"par :func:`gmtime` ou :func:`localtime` en une chaîne spécifiée par " +"l’argument *format*. Si *t* n’est pas fourni, l’heure actuelle renvoyée par :" +"func:`localtime` est utilisée. *format* doit être une chaîne. Si l’un des " +"champs de *t* se situe en dehors de la plage autorisée, une :exc:" +"`ValueError` est levée ." #: ../Doc/library/time.rst:375 msgid "" "0 is a legal argument for any position in the time tuple; if it is normally " "illegal the value is forced to a correct one." msgstr "" +"0 est un argument légal pour toute position dans le *tuple* temporel ; s’il " +"est normalement illégal, la valeur est forcée à une valeur correcte." #: ../Doc/library/time.rst:378 msgid "" @@ -450,6 +611,10 @@ msgid "" "shown without the optional field width and precision specification, and are " "replaced by the indicated characters in the :func:`strftime` result:" msgstr "" +"Les directives suivantes peuvent être incorporées dans la chaîne *format*. " +"Ils sont affichés sans la spécification facultative de largeur de champ ni " +"de précision, et sont remplacés par les caractères indiqués dans le résultat " +"de :func:`strftime` :" #: ../Doc/library/time.rst:383 msgid "Directive" @@ -469,7 +634,7 @@ msgstr "``%a``" #: ../Doc/library/time.rst:385 msgid "Locale's abbreviated weekday name." -msgstr "" +msgstr "Nom abrégé du jour de la semaine selon les paramètres régionaux." #: ../Doc/library/time.rst:388 msgid "``%A``" @@ -477,7 +642,7 @@ msgstr "``%A``" #: ../Doc/library/time.rst:388 msgid "Locale's full weekday name." -msgstr "" +msgstr "Le nom de semaine complet de la région." #: ../Doc/library/time.rst:390 msgid "``%b``" @@ -485,7 +650,7 @@ msgstr "``%b``" #: ../Doc/library/time.rst:390 msgid "Locale's abbreviated month name." -msgstr "" +msgstr "Nom abrégé du mois de la région." #: ../Doc/library/time.rst:393 msgid "``%B``" @@ -493,7 +658,7 @@ msgstr "``%B``" #: ../Doc/library/time.rst:393 msgid "Locale's full month name." -msgstr "" +msgstr "Nom complet du mois de la région." #: ../Doc/library/time.rst:395 msgid "``%c``" @@ -501,7 +666,9 @@ msgstr "``%c``" #: ../Doc/library/time.rst:395 msgid "Locale's appropriate date and time representation." -msgstr "Représentation locale de la date et de l'heure." +msgstr "" +"Représentation appropriée de la date et de l’heure selon les paramètres " +"régionaux." #: ../Doc/library/time.rst:398 msgid "``%d``" @@ -509,7 +676,7 @@ msgstr "``%d``" #: ../Doc/library/time.rst:398 msgid "Day of the month as a decimal number [01,31]." -msgstr "" +msgstr "Jour du mois sous forme décimale [01,31]." #: ../Doc/library/time.rst:401 msgid "``%H``" @@ -517,7 +684,7 @@ msgstr "``%H``" #: ../Doc/library/time.rst:401 msgid "Hour (24-hour clock) as a decimal number [00,23]." -msgstr "" +msgstr "Heure (horloge sur 24 heures) sous forme de nombre décimal [00,23]." #: ../Doc/library/time.rst:404 msgid "``%I``" @@ -525,7 +692,7 @@ msgstr "``%I``" #: ../Doc/library/time.rst:404 msgid "Hour (12-hour clock) as a decimal number [01,12]." -msgstr "" +msgstr "Heure (horloge sur 12 heures) sous forme de nombre décimal [01,12]." #: ../Doc/library/time.rst:407 msgid "``%j``" @@ -533,7 +700,7 @@ msgstr "``%j``" #: ../Doc/library/time.rst:407 msgid "Day of the year as a decimal number [001,366]." -msgstr "" +msgstr "Jour de l’année sous forme de nombre décimal [001,366]." #: ../Doc/library/time.rst:410 msgid "``%m``" @@ -541,7 +708,7 @@ msgstr "``%m``" #: ../Doc/library/time.rst:410 msgid "Month as a decimal number [01,12]." -msgstr "" +msgstr "Mois sous forme décimale [01,12]." #: ../Doc/library/time.rst:413 msgid "``%M``" @@ -549,7 +716,7 @@ msgstr "``%M``" #: ../Doc/library/time.rst:413 msgid "Minute as a decimal number [00,59]." -msgstr "" +msgstr "Minutes sous forme décimale [00,59]." #: ../Doc/library/time.rst:416 msgid "``%p``" @@ -557,7 +724,7 @@ msgstr "``%p``" #: ../Doc/library/time.rst:416 msgid "Locale's equivalent of either AM or PM." -msgstr "Équivalent local à AM/PM." +msgstr "L’équivalent local de AM ou PM." #: ../Doc/library/time.rst:416 msgid "\\(1)" @@ -569,7 +736,7 @@ msgstr "``%S``" #: ../Doc/library/time.rst:419 msgid "Second as a decimal number [00,61]." -msgstr "" +msgstr "Deuxième sous forme de nombre décimal [00,61]." #: ../Doc/library/time.rst:419 msgid "\\(2)" @@ -585,6 +752,10 @@ msgid "" "number [00,53]. All days in a new year preceding the first Sunday are " "considered to be in week 0." msgstr "" +"Numéro de semaine de l’année (dimanche en tant que premier jour de la " +"semaine) sous forme décimale [00,53]. Tous les jours d’une nouvelle année " +"précédant le premier dimanche sont considérés comme appartenant à la semaine " +"0." #: ../Doc/library/time.rst:422 ../Doc/library/time.rst:433 msgid "\\(3)" @@ -596,7 +767,7 @@ msgstr "``%w``" #: ../Doc/library/time.rst:430 msgid "Weekday as a decimal number [0(Sunday),6]." -msgstr "" +msgstr "Jour de la semaine sous forme de nombre décimal [0 (dimanche), 6]." #: ../Doc/library/time.rst:433 msgid "``%W``" @@ -608,6 +779,9 @@ msgid "" "number [00,53]. All days in a new year preceding the first Monday are " "considered to be in week 0." msgstr "" +"Numéro de semaine de l’année (lundi comme premier jour de la semaine) sous " +"forme décimale [00,53]. Tous les jours d’une nouvelle année précédant le " +"premier lundi sont considérés comme appartenant à la semaine 0." #: ../Doc/library/time.rst:441 msgid "``%x``" @@ -615,7 +789,7 @@ msgstr "``%x``" #: ../Doc/library/time.rst:441 msgid "Locale's appropriate date representation." -msgstr "Représentation locale de la date." +msgstr "Représentation de la date appropriée par les paramètres régionaux." #: ../Doc/library/time.rst:444 msgid "``%X``" @@ -651,6 +825,10 @@ msgid "" "GMT of the form +HHMM or -HHMM, where H represents decimal hour digits and M " "represents decimal minute digits [-23:59, +23:59]." msgstr "" +"Décalage de fuseau horaire indiquant une différence de temps positive ou " +"négative par rapport à UTC / GMT de la forme *+HHMM* ou *-HHMM*, où H " +"représente les chiffres des heures décimales et M, les chiffres des minutes " +"décimales [-23:59, +23:59]." #: ../Doc/library/time.rst:459 msgid "``%Z``" @@ -659,6 +837,7 @@ msgstr "``%Z``" #: ../Doc/library/time.rst:459 msgid "Time zone name (no characters if no time zone exists)." msgstr "" +"Nom du fuseau horaire (pas de caractères s’il n’y a pas de fuseau horaire)." #: ../Doc/library/time.rst:462 msgid "``%%``" @@ -678,6 +857,9 @@ msgid "" "affects the output hour field if the ``%I`` directive is used to parse the " "hour." msgstr "" +"Lorsqu’elle est utilisée avec la fonction :func:`strptime`, la directive ``" +"%p`` n’affecte le champ d’heure en sortie que si la directive ``%I`` est " +"utilisée pour analyser l’heure." #: ../Doc/library/time.rst:472 msgid "" @@ -685,18 +867,26 @@ msgid "" "representing `leap seconds`_ and value ``61`` is supported for historical " "reasons." msgstr "" +"La plage est en réalité de ``0`` à ``61`` ; La valeur ``60`` est valide dans " +"les *timestamps* représentant des `leap seconds`_ et la valeur ``61`` est " +"prise en charge pour des raisons historiques." #: ../Doc/library/time.rst:477 msgid "" "When used with the :func:`strptime` function, ``%U`` and ``%W`` are only " "used in calculations when the day of the week and the year are specified." msgstr "" +"Lorsqu’elles sont utilisées avec la fonction :func:`strptime`, ``%U`` et ``" +"%W`` ne sont utilisées que dans les calculs lorsque le jour de la semaine et " +"l’année sont spécifiés." #: ../Doc/library/time.rst:480 msgid "" "Here is an example, a format for dates compatible with that specified in " "the :rfc:`2822` Internet email standard. [#]_ ::" msgstr "" +"Voici un exemple de format de date compatible avec celui spécifié dans la " +"norme de courrier électronique Internet suivante :rfc:`2822`. [#]_ ::" #: ../Doc/library/time.rst:487 msgid "" @@ -705,6 +895,11 @@ msgid "" "of format codes supported on your platform, consult the :manpage:" "`strftime(3)` documentation." msgstr "" +"Des directives supplémentaires peuvent être prises en charge sur certaines " +"plates-formes, mais seules celles énumérées ici ont une signification " +"normalisée par ANSI C. Pour voir la liste complète des codes de format pris " +"en charge sur votre plate-forme, consultez la documentation :manpage:" +"`strftime(3)`." #: ../Doc/library/time.rst:492 msgid "" @@ -713,12 +908,19 @@ msgid "" "order; this is also not portable. The field width is normally 2 except for ``" "%j`` where it is 3." msgstr "" +"Sur certaines plates-formes, une spécification facultative de largeur et de " +"précision de champ peut suivre immédiatement le ``'%'`` initial d’une " +"directive dans l’ordre suivant ; ce n’est pas non plus portable. La largeur " +"du champ est normalement 2 sauf pour ``%j`` où il est 3." #: ../Doc/library/time.rst:503 msgid "" "Parse a string representing a time according to a format. The return value " "is a :class:`struct_time` as returned by :func:`gmtime` or :func:`localtime`." msgstr "" +"Analyse une chaîne représentant une heure selon un format. La valeur " +"renvoyée est une :class:`struct_time` tel que renvoyé par :func:`gmtime` ou :" +"func:`localtime`." #: ../Doc/library/time.rst:507 msgid "" @@ -730,6 +932,14 @@ msgid "" "accurate values cannot be inferred are ``(1900, 1, 1, 0, 0, 0, 0, 1, -1)``. " "Both *string* and *format* must be strings." msgstr "" +"Le paramètre *format* utilise les mêmes directives que celles utilisées par :" +"func:`strftime`; La valeur par défaut est ``\"%a %b %d %H:%M:%S %Y\"`` qui " +"correspond à la mise en forme renvoyée par :func:`ctime`. Si *string* ne " +"peut pas être analysé selon *format*, ou s’il contient trop de données après " +"l’analyse, une exception :exc:`ValueError` est levée. Les valeurs par défaut " +"utilisées pour renseigner les données manquantes lorsque des valeurs plus " +"précises ne peuvent pas être inférées sont ``(1900, 1, 1, 0, 0, 0, 0, 1, " +"-1)``. *string* et *format* doivent être des chaînes." #: ../Doc/library/time.rst:515 msgid "For example:" @@ -742,6 +952,11 @@ msgid "" "platform-specific except for recognizing UTC and GMT which are always known " "(and are considered to be non-daylight savings timezones)." msgstr "" +"La prise en charge de la directive ``%Z`` est basée sur les valeurs " +"contenues dans ``tzname`` et sur le fait de savoir si ``daylight`` est vrai. " +"Pour cette raison, il est spécifique à la plate-forme, à l’exception de la " +"reconnaissance des heures UTC et GMT, qui sont toujours connues (et " +"considérées comme des fuseaux horaires ne respectant pas l’heure d’été)." #: ../Doc/library/time.rst:527 msgid "" @@ -751,6 +966,12 @@ msgid "" "platform and thus does not necessarily support all directives available that " "are not documented as supported." msgstr "" +"Seules les directives spécifiées dans la documentation sont prises en " +"charge. Parce que ``strftime()`` peut être implémenté différemment sur " +"chaque plate-forme, il peut parfois offrir plus de directives que celles " +"listées. Mais ``strptime()`` est indépendant de toute plate-forme et ne " +"supporte donc pas nécessairement toutes les directives disponibles qui ne " +"sont pas documentées comme gérées." #: ../Doc/library/time.rst:536 msgid "" @@ -759,6 +980,10 @@ msgid "" "tuple` interface: values can be accessed by index and by attribute name. " "The following values are present:" msgstr "" +"Le type de la séquence de valeur temporelle renvoyé par :func:`gmtime`, :" +"func:`localtime` et :func:`strptime`. Semblable à un :term:`named tuple` : " +"ses valeurs sont accessibles par index et par nom d’attribut. Les valeurs " +"suivantes sont présentes :" #: ../Doc/library/time.rst:542 msgid "Index" @@ -782,7 +1007,7 @@ msgstr ":attr:`tm_year`" #: ../Doc/library/time.rst:544 msgid "(for example, 1993)" -msgstr "" +msgstr "(par exemple, 1993)" #: ../Doc/library/time.rst:546 msgid "1" @@ -794,7 +1019,7 @@ msgstr ":attr:`tm_mon`" #: ../Doc/library/time.rst:546 msgid "range [1, 12]" -msgstr "" +msgstr "plage [1, 12]" #: ../Doc/library/time.rst:548 msgid "2" @@ -806,7 +1031,7 @@ msgstr ":attr:`tm_mday`" #: ../Doc/library/time.rst:548 msgid "range [1, 31]" -msgstr "" +msgstr "plage [1, 31]" #: ../Doc/library/time.rst:550 msgid "3" @@ -818,7 +1043,7 @@ msgstr ":attr:`tm_hour`" #: ../Doc/library/time.rst:550 msgid "range [0, 23]" -msgstr "" +msgstr "plage [0, 23]" #: ../Doc/library/time.rst:552 msgid "4" @@ -830,7 +1055,7 @@ msgstr ":attr:`tm_min`" #: ../Doc/library/time.rst:552 msgid "range [0, 59]" -msgstr "" +msgstr "plage [0, 59]" #: ../Doc/library/time.rst:554 msgid "5" @@ -842,7 +1067,7 @@ msgstr ":attr:`tm_sec`" #: ../Doc/library/time.rst:554 msgid "range [0, 61]; see **(2)** in :func:`strftime` description" -msgstr "" +msgstr "plage [0, 61]; voir **(2)** dans la description :func:`strftime`" #: ../Doc/library/time.rst:557 msgid "6" @@ -854,7 +1079,7 @@ msgstr ":attr:`tm_wday`" #: ../Doc/library/time.rst:557 msgid "range [0, 6], Monday is 0" -msgstr "" +msgstr "plage [0, 6], Lundi valant 0" #: ../Doc/library/time.rst:559 msgid "7" @@ -866,7 +1091,7 @@ msgstr ":attr:`tm_yday`" #: ../Doc/library/time.rst:559 msgid "range [1, 366]" -msgstr "" +msgstr "plage [1, 366]" #: ../Doc/library/time.rst:561 msgid "8" @@ -878,7 +1103,7 @@ msgstr ":attr:`tm_isdst`" #: ../Doc/library/time.rst:561 msgid "0, 1 or -1; see below" -msgstr "" +msgstr "``0``, ``1`` or ``-1`` ; voir en bas" #: ../Doc/library/time.rst:563 ../Doc/library/time.rst:565 msgid "N/A" @@ -890,7 +1115,7 @@ msgstr ":attr:`tm_zone`" #: ../Doc/library/time.rst:563 msgid "abbreviation of timezone name" -msgstr "" +msgstr "abréviation du nom du fuseau horaire" #: ../Doc/library/time.rst:565 msgid ":attr:`tm_gmtoff`" @@ -898,13 +1123,15 @@ msgstr ":attr:`tm_gmtoff`" #: ../Doc/library/time.rst:565 msgid "offset east of UTC in seconds" -msgstr "" +msgstr "décalage à l’est de UTC en secondes" #: ../Doc/library/time.rst:568 msgid "" "Note that unlike the C structure, the month value is a range of [1, 12], not " "[0, 11]." msgstr "" +"Notez que contrairement à la structure C, la valeur du mois est une plage de " +"[1, 12], pas de [0, 11]." #: ../Doc/library/time.rst:571 msgid "" @@ -913,6 +1140,10 @@ msgid "" "that this is not known, and will usually result in the correct state being " "filled in." msgstr "" +"Dans les appels à :func:`mktime`, :attr:`tm_isdst` peut être défini sur 1 " +"lorsque l’heure d'été est en vigueur et sur 0 lorsque ce n’est pas le cas. " +"Une valeur de ``-1`` indique que cela n’est pas connu et entraînera " +"généralement le remplissage de l’état correct." #: ../Doc/library/time.rst:575 msgid "" @@ -920,6 +1151,9 @@ msgid "" "class:`struct_time`, or having elements of the wrong type, a :exc:" "`TypeError` is raised." msgstr "" +"Lorsqu’un *tuple* de longueur incorrecte est passé à une fonction acceptant " +"une :class:`struct_time`, ou comportant des éléments de type incorrect, une " +"exception :exc:`TypeError` est levé." #: ../Doc/library/time.rst:581 msgid "" @@ -931,6 +1165,14 @@ msgid "" "wikipedia.org/wiki/Unix_time>`_. To find out what the epoch is on a given " "platform, look at ``gmtime(0)``." msgstr "" +"Renvoie le temps en secondes depuis epoch_ sous forme de nombre à virgule " +"flottante. La date spécifique de *epoch* et le traitement des secondes " +"intercalaires (`leap seconds`_) dépendent de la plate-forme. Sous Windows et " +"la plupart des systèmes Unix, *epoch* est le 1er janvier 1970, 00:00:00 " +"(UTC) et les secondes intercalaires ne sont pas comptées dans le temps en " +"secondes depuis *epoch*. Ceci est communément appelé `Heure Unix `_. Pour savoir quelle est *epoch* sur une " +"plate-forme donnée, consultez ``gmtime(0)``." #: ../Doc/library/time.rst:591 msgid "" @@ -940,6 +1182,12 @@ msgid "" "lower value than a previous call if the system clock has been set back " "between the two calls." msgstr "" +"Notez que même si l’heure est toujours renvoyée sous forme de nombre à " +"virgule flottante, tous les systèmes ne fournissent pas l’heure avec une " +"précision supérieure à 1 seconde. Bien que cette fonction renvoie " +"normalement des valeurs croissantes, elle peut renvoyer une valeur " +"inférieure à celle d’un appel précédent si l’horloge système a été réglée " +"entre les deux appels." #: ../Doc/library/time.rst:597 msgid "" @@ -950,6 +1198,12 @@ msgid "" "returned, from which the components of the calendar date may be accessed as " "attributes." msgstr "" +"Le nombre renvoyé par :func:`.time` peut être converti en un format d’heure " +"plus courant (année, mois, jour, heure, etc.) en UTC en le transmettant à la " +"fonction :func:`gmtime` ou dans heure locale en le transmettant à la " +"fonction :func:`localtime`. Dans les deux cas, un objet :class:`struct_time` " +"est renvoyé, à partir duquel les composants de la date du calendrier peuvent " +"être consultés en tant qu’attributs." #: ../Doc/library/time.rst:612 msgid "" @@ -959,22 +1213,32 @@ msgid "" "returned value is undefined, so that only the difference between the results " "of consecutive calls in the same thread is valid." msgstr "" +"Renvoie la valeur (en quelques fractions de secondes) de la somme des temps " +"processeur système et utilisateur du thread en cours. Il ne comprend pas le " +"temps écoulé pendant le sommeil. Il est spécifique au thread par définition. " +"Le point de référence de la valeur renvoyée est indéfini, de sorte que seule " +"la différence entre les résultats d’appels consécutifs dans le même thread " +"est valide." #: ../Doc/library/time.rst:620 msgid "" ":ref:`Availability `: Windows, Linux, Unix systems supporting " "``CLOCK_THREAD_CPUTIME_ID``." msgstr "" +":ref:`Disponibilité ` : Systèmes Windows, Linux, Unix prenant " +"en charge ``CLOCK_THREAD_CPUTIME_ID``." #: ../Doc/library/time.rst:626 msgid "Similar to :func:`thread_time` but return time as nanoseconds." -msgstr "" +msgstr "Similaire à :func:`thread_time` mais renvoie le temps en nanosecondes." #: ../Doc/library/time.rst:633 msgid "" "Similar to :func:`time` but returns time as an integer number of nanoseconds " "since the epoch_." msgstr "" +"Similaire à :func:`time` mais renvoie le temps sous forme de nombre entier " +"de nanosecondes depuis epoch_." #: ../Doc/library/time.rst:640 msgid "" @@ -986,6 +1250,14 @@ msgid "" "saving time rules, or to nonzero if there is a time, past, present or future " "when daylight saving time applies)." msgstr "" +"Réinitialise les règles de conversion de temps utilisées par les routines de " +"la bibliothèque. La variable d’environnement :envvar:`TZ` spécifie comment " +"cela est effectué. La fonction définira également les variables ``tzname`` " +"(à partir de la variable d’environnement :envvar:`TZ`), ``timezone`` " +"(secondes non DST à l’ouest de l’UTC), ``altzone`` (secondes DST à l’ouest " +"de UTC) et ``daylight`` (à 0 si ce fuseau horaire ne comporte aucune règle " +"d’heure d’été, ou non nul s’il existe une heure, passée, présente ou future " +"lorsque l’heure d’été est appliquée)." #: ../Doc/library/time.rst:652 msgid "" @@ -993,30 +1265,39 @@ msgid "" "affect the output of functions like :func:`localtime` without calling :func:" "`tzset`, this behavior should not be relied on." msgstr "" +"Bien que dans de nombreux cas, la modification de la variable " +"d’environnement :envvar:`TZ` puisse affecter la sortie de fonctions telles " +"que :func:`localtime` sans appeler :func:`tzset`, ce comportement n'est pas " +"garanti." #: ../Doc/library/time.rst:656 msgid "The :envvar:`TZ` environment variable should contain no whitespace." msgstr "" +"La variable d’environnement :envvar:`TZ` ne doit contenir aucun espace." #: ../Doc/library/time.rst:658 msgid "" "The standard format of the :envvar:`TZ` environment variable is (whitespace " "added for clarity)::" msgstr "" +"Le format standard de la variable d’environnement :envvar:`TZ` est (espaces " +"ajoutés pour plus de clarté)::" #: ../Doc/library/time.rst:663 msgid "Where the components are:" -msgstr "" +msgstr "Où les composants sont :" #: ../Doc/library/time.rst:667 msgid "``std`` and ``dst``" -msgstr "``std`` and ``dst``" +msgstr "``std`` et ``dst``" #: ../Doc/library/time.rst:666 msgid "" "Three or more alphanumerics giving the timezone abbreviations. These will be " "propagated into time.tzname" msgstr "" +"Trois alphanumériques ou plus donnant les abréviations du fuseau horaire. " +"Ceux-ci seront propagés dans *time.tzname*" #: ../Doc/library/time.rst:673 msgid "``offset``" @@ -1029,6 +1310,11 @@ msgid "" "of the Prime Meridian; otherwise, it is west. If no offset follows dst, " "summer time is assumed to be one hour ahead of standard time." msgstr "" +"Le décalage a la forme suivante : ``± hh[:mm[:ss]]``. Cela indique la valeur " +"ajoutée à l’heure locale pour arriver à UTC. S'il est précédé d’un ``'-'``, " +"le fuseau horaire est à l’est du Premier Méridien ; sinon, c’est l’ouest. Si " +"aucun décalage ne suit *dst*, l’heure d’été est supposée être en avance " +"d’une heure sur l’heure standard." #: ../Doc/library/time.rst:695 msgid "``start[/time], end[/time]``" @@ -1039,6 +1325,8 @@ msgid "" "Indicates when to change to and back from DST. The format of the start and " "end dates are one of the following:" msgstr "" +"Indique quand passer à DST et en revenir. Le format des dates de début et de " +"fin est l’un des suivants :" #: ../Doc/library/time.rst:681 msgid ":samp:`J{n}`" @@ -1049,6 +1337,9 @@ msgid "" "The Julian day *n* (1 <= *n* <= 365). Leap days are not counted, so in all " "years February 28 is day 59 and March 1 is day 60." msgstr "" +"Le jour Julien *n* (1 <= *n* <= 365). Les jours bissextiles ne sont pas " +"comptabilisés. Par conséquent, le 28 février est le 59\\ :sup:`e` jour et le " +"1\\ :sup:`er` Mars est le 60\\ :sup:`e` jour de toutes les années." #: ../Doc/library/time.rst:685 msgid ":samp:`{n}`" @@ -1059,6 +1350,8 @@ msgid "" "The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it " "is possible to refer to February 29." msgstr "" +"Le jour Julien de base zéro (0 <= *n* <= 365). Les jours bissextiles sont " +"comptés et il est possible de se référer au 29 février." #: ../Doc/library/time.rst:692 msgid ":samp:`M{m}.{n}.{d}`" @@ -1071,12 +1364,20 @@ msgid "" "\" which may occur in either the fourth or the fifth week). Week 1 is the " "first week in which the *d*'th day occurs. Day zero is a Sunday." msgstr "" +"Le *d* jour (0 <= *d* <= 6) de la semaine *n* du mois *m* de l’année (1 <= " +"*n* <= 5, 1 <= *m* <= 12, où semaine 5 signifie “le *dernier* jour du mois " +"*m*” pouvant se produire au cours de la quatrième ou de la cinquième " +"semaine). La semaine 1 est la première semaine au cours de laquelle le " +"*jour* se produit. Le jour zéro est un dimanche." #: ../Doc/library/time.rst:694 msgid "" "``time`` has the same format as ``offset`` except that no leading sign ('-' " "or '+') is allowed. The default, if time is not given, is 02:00:00." msgstr "" +"``time`` a le même format que ``offset`` sauf qu’aucun signe de direction " +"(``'-'`` ou ``'+'``) n’est autorisé. La valeur par défaut, si l’heure n’est " +"pas spécifiée, est 02:00:00." #: ../Doc/library/time.rst:708 msgid "" @@ -1088,22 +1389,34 @@ msgid "" "located at :file:`/usr/share/zoneinfo`. For example, ``'US/Eastern'``, " "``'Australia/Melbourne'``, ``'Egypt'`` or ``'Europe/Amsterdam'``. ::" msgstr "" +"Sur de nombreux systèmes Unix (y compris \\*BSD, Linux, Solaris et Darwin), " +"il est plus pratique d’utiliser la base de données *zoneinfo* (:manpage:" +"`tzfile (5)`) du système pour spécifier les règles de fuseau horaire. Pour " +"ce faire, définissez la variable d’environnement :envvar:`TZ` sur le chemin " +"du fichier de fuseau horaire requis, par rapport à la racine de la base de " +"données du système *zoneinfo*, généralement situé à :file:`/usr/share/" +"zoneinfo`. Par exemple, ``'US/Eastern'``, ``'Australia/Melbourne'``, " +"``'Egypt'`` ou ``'Europe/Amsterdam'``. ::" #: ../Doc/library/time.rst:729 msgid "Clock ID Constants" -msgstr "" +msgstr "Constantes d’identification d’horloge" #: ../Doc/library/time.rst:731 msgid "" "These constants are used as parameters for :func:`clock_getres` and :func:" "`clock_gettime`." msgstr "" +"Ces constantes sont utilisées comme paramètres pour :func:`clock_getres` et :" +"func:`clock_gettime`." #: ../Doc/library/time.rst:736 msgid "" "Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that " "the system is suspended." msgstr "" +"Identique à :data:`CLOCK_MONOTONIC`, sauf qu'elle inclut également toute " +"suspension du système." #: ../Doc/library/time.rst:739 msgid "" @@ -1112,6 +1425,10 @@ msgid "" "have discontinuities if the time is changed using ``settimeofday()`` or " "similar." msgstr "" +"Cela permet aux applications d’obtenir une horloge monotone tenant compte de " +"la suspension sans avoir à gérer les complications de :data:" +"`CLOCK_REALTIME`, qui peuvent présenter des discontinuités si l’heure est " +"modifiée à l’aide de ``settimeofday()`` ou similaire." #: ../Doc/library/time.rst:745 msgid ":ref:`Availability `: Linux 2.6.39 or later." @@ -1123,39 +1440,49 @@ msgid "" "hardware source, and may give close to nanosecond resolution. " "``CLOCK_HIGHRES`` is the nonadjustable, high-resolution clock." msgstr "" +"Le système d’exploitation Solaris dispose d’une horloge ``CLOCK_HIGHRES`` " +"qui tente d’utiliser une source matérielle optimale et peut donner une " +"résolution proche de la nanoseconde. ``CLOCK_HIGHRES`` est l’horloge haute " +"résolution non ajustable." #: ../Doc/library/time.rst:756 msgid ":ref:`Availability `: Solaris." -msgstr "" +msgstr ":ref:`Disponibilité ` : Solaris." #: ../Doc/library/time.rst:762 msgid "" "Clock that cannot be set and represents monotonic time since some " "unspecified starting point." msgstr "" +"Horloge qui ne peut pas être réglée et représente l’heure monotone depuis un " +"point de départ non spécifié." #: ../Doc/library/time.rst:772 msgid "" "Similar to :data:`CLOCK_MONOTONIC`, but provides access to a raw hardware-" "based time that is not subject to NTP adjustments." msgstr "" +"Similaire à :data:`CLOCK_MONOTONIC`, mais donne accès à une heure matérielle " +"brute qui n’est pas soumise aux ajustements NTP." #: ../Doc/library/time.rst:775 msgid "Availability: Linux 2.6.28 or later." -msgstr "" +msgstr "Disponibilité: Linux 2.6.28 ou ultérieure." #: ../Doc/library/time.rst:782 ../Doc/library/time.rst:791 msgid "High-resolution per-process timer from the CPU." -msgstr "" +msgstr "Minuterie haute résolution par processus du CPU." #: ../Doc/library/time.rst:794 msgid "" ":ref:`Availability `: FreeBSD, NetBSD 7 or later, OpenBSD." msgstr "" +":ref:`Disponibilité ` : FreeBSD, NetBSD 7 ou version " +"ultérieure, OpenBSD." #: ../Doc/library/time.rst:800 msgid "Thread-specific CPU-time clock." -msgstr "" +msgstr "Horloge de temps CPU spécifique au thread." #: ../Doc/library/time.rst:802 msgid "Availability: Unix." @@ -1166,26 +1493,35 @@ msgid "" "Time whose absolute value is the time the system has been running and not " "suspended, providing accurate uptime measurement, both absolute and interval." msgstr "" +"Heure dont la valeur absolue correspond à l’heure à laquelle le système a " +"été exécuté et non suspendu, fournissant une mesure précise du temps de " +"disponibilité, à la fois absolue et à intervalle." #: ../Doc/library/time.rst:814 msgid ":ref:`Availability `: FreeBSD, OpenBSD 5.5 or later." msgstr "" +":ref:`Disponibilité ` : FreeBSD, OpenBSD 5.5 ou version " +"ultérieure." #: ../Doc/library/time.rst:818 msgid "" "The following constant is the only parameter that can be sent to :func:" "`clock_settime`." msgstr "" +"La constante suivante est le seul paramètre pouvant être envoyé à :func:" +"`clock_settime`." #: ../Doc/library/time.rst:823 msgid "" "System-wide real-time clock. Setting this clock requires appropriate " "privileges." msgstr "" +"Horloge en temps réel à l’échelle du système. Le réglage de cette horloge " +"nécessite des privilèges appropriés." #: ../Doc/library/time.rst:834 msgid "Timezone Constants" -msgstr "" +msgstr "Constantes de fuseau horaire" #: ../Doc/library/time.rst:838 msgid "" @@ -1194,10 +1530,14 @@ msgid "" "Western Europe, including the UK). Only use this if ``daylight`` is " "nonzero. See note below." msgstr "" +"Décalage du fuseau horaire DST local, en secondes à l’ouest de UTC, s’il en " +"est défini un. Cela est négatif si le fuseau horaire DST local est à l’est " +"de UTC (comme en Europe occidentale, y compris le Royaume-Uni). Utilisez " +"ceci uniquement si ``daylight`` est différent de zéro. Voir note ci-dessous." #: ../Doc/library/time.rst:844 msgid "Nonzero if a DST timezone is defined. See note below." -msgstr "" +msgstr "Non nul si un fuseau horaire DST est défini. Voir note ci-dessous." #: ../Doc/library/time.rst:848 msgid "" @@ -1205,6 +1545,9 @@ msgid "" "in most of Western Europe, positive in the US, zero in the UK). See note " "below." msgstr "" +"Décalage du fuseau horaire local (hors heure d’été), en secondes à l’ouest " +"de l’UTC (négatif dans la plupart des pays d’Europe occidentale, positif aux " +"États-Unis, nul au Royaume-Uni). Voir note ci-dessous." #: ../Doc/library/time.rst:853 msgid "" @@ -1212,6 +1555,10 @@ msgid "" "the second is the name of the local DST timezone. If no DST timezone is " "defined, the second string should not be used. See note below." msgstr "" +"Un *tuple* de deux chaînes : la première est le nom du fuseau horaire local " +"autre que DST, la seconde est le nom du fuseau horaire DST local. Si aucun " +"fuseau horaire DST n’est défini, la deuxième chaîne ne doit pas être " +"utilisée. Voir note ci-dessous." #: ../Doc/library/time.rst:859 msgid "" @@ -1222,6 +1569,13 @@ msgid "" "attr:`tm_gmtoff` and :attr:`tm_zone` results from :func:`localtime` to " "obtain timezone information." msgstr "" +"Pour les constantes de fuseau horaire ci-dessus ( :data:`altzone`, :data:" +"`daylight`, :data:`timezone` et :data:`tzname`), la valeur est déterminée " +"par les règles de fuseau horaire en vigueur au moment du chargement du " +"module ou la dernière fois :func:`tzset` est appelé et peut être incorrect " +"pour des temps passés. Il est recommandé d’utiliser :attr:`tm_gmtoff` et :" +"attr:`tm_zone` résulte de :func:`localtime` pour obtenir des informations " +"sur le fuseau horaire." #: ../Doc/library/time.rst:869 msgid "Module :mod:`datetime`" @@ -1229,7 +1583,7 @@ msgstr "Module :mod:`datetime`" #: ../Doc/library/time.rst:869 msgid "More object-oriented interface to dates and times." -msgstr "" +msgstr "Interface plus orientée objet vers les dates et les heures." #: ../Doc/library/time.rst:873 msgid "Module :mod:`locale`" @@ -1241,6 +1595,9 @@ msgid "" "interpretation of many format specifiers in :func:`strftime` and :func:" "`strptime`." msgstr "" +"Services d’internationalisation. Les paramètres régionaux affectent " +"l’interprétation de nombreux spécificateurs de format dans :func:`strftime` " +"et :func:`strptime`." #: ../Doc/library/time.rst:876 msgid "Module :mod:`calendar`" @@ -1251,6 +1608,8 @@ msgid "" "General calendar-related functions. :func:`~calendar.timegm` is the " "inverse of :func:`gmtime` from this module." msgstr "" +"Fonctions générales liées au calendrier. :func:`~calendar.timegm` est " +"l’inverse de :func:`gmtime` à partir de ce module." #: ../Doc/library/time.rst:880 msgid "Footnotes" @@ -1266,3 +1625,10 @@ msgid "" "digit year has been first recommended by :rfc:`1123` and then mandated by :" "rfc:`2822`." msgstr "" +"L’utilisation de ``%Z`` est maintenant déconseillée, mais ``%z`` qui s’étend " +"au décalage heure/minute préféré n’est pas pris en charge par toutes les " +"bibliothèque ANSI C. En outre, une lecture stricte de la norme originale :" +"rfc:`822` de 1982 appelle une année à deux chiffres (``%y`` plutôt que ``" +"%Y``), mais la pratique est passée à quatre chiffres bien avant l’an 2000. " +"Après cela, la :rfc:`822` est devenu obsolète et l’année à 4 chiffres a été " +"recommandée en premier par la :rfc:`1123`, puis imposée par :rfc:`2822`." From e4ed0283ce938184423fc0c2db8c0c2852161bc4 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 18 Mar 2019 01:14:15 +0100 Subject: [PATCH 066/121] Bump 39% --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index cfd8be145..47a6f2b7b 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ French Translation of the Python Documentation .. image:: https://travis-ci.org/python/python-docs-fr.svg?branch=3.7 :target: https://travis-ci.org/python/python-docs-fr -**Translated: 38%** +**Translated: 39%** Documentation Contribution Agreement ------------------------------------ From d8d5395107f95629f34e9795a7867a6524cae446 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 18 Mar 2019 01:17:24 +0100 Subject: [PATCH 067/121] FIX: For Hunspell 1.3.3. --- library/time.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/time.po b/library/time.po index 86a4c9c1a..14467107f 100644 --- a/library/time.po +++ b/library/time.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2019-03-18 01:10+0100\n" +"PO-Revision-Date: 2019-03-18 01:17+0100\n" "Last-Translator: Igor Garbuz \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -828,7 +828,7 @@ msgstr "" "Décalage de fuseau horaire indiquant une différence de temps positive ou " "négative par rapport à UTC / GMT de la forme *+HHMM* ou *-HHMM*, où H " "représente les chiffres des heures décimales et M, les chiffres des minutes " -"décimales [-23:59, +23:59]." +"décimales [*-23:59*, *+23:59*]." #: ../Doc/library/time.rst:459 msgid "``%Z``" From 7ad224d9463ebd24a77f2cccb7180fc1a95aefe9 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 20 Mar 2019 08:32:06 +0100 Subject: [PATCH 068/121] Work about translation on the library/calendar.po file Co-Authored-By: Alicia BERRAHMA --- library/calendar.po | 89 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 84 insertions(+), 5 deletions(-) diff --git a/library/calendar.po b/library/calendar.po index cb6bcbcc1..6bfccf1c6 100644 --- a/library/calendar.po +++ b/library/calendar.po @@ -6,8 +6,8 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2017-08-10 00:59+0200\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-20 08:32+0100\n" +"Last-Translator: Alicia BERRAHMA \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -21,7 +21,7 @@ msgstr "" #: ../Doc/library/calendar.rst:10 msgid "**Source code:** :source:`Lib/calendar.py`" -msgstr "**Code source :** :source:`Lib/calendar.py`" +msgstr "**Code source :** :source:`Lib/calendar.py`" #: ../Doc/library/calendar.rst:14 msgid "" @@ -33,6 +33,13 @@ msgid "" "Parameters that specify dates are given as integers. For related " "functionality, see also the :mod:`datetime` and :mod:`time` modules." msgstr "" +"Ce module permet d'afficher un calendrier comme le fait le programme Unix :" +"program:`cal`, et il fournit des fonctions utiles relatives au calendrier. " +"Par défaut, ces calendriers ont le lundi comme premier jour de la semaine et " +"le dimanche comme dernier jour. Utilisez :func:`setfirstweekday` pour " +"définir le premier jour de la semaine à dimanche (6) ou à tout autre jour de " +"la semaine. Les paramètres pour spécifier les dates sont donnés sous forme " +"de nombres entiers. Voir aussi les modules :mod:`datetime` et :mod:`time`." #: ../Doc/library/calendar.rst:22 msgid "" @@ -44,12 +51,23 @@ msgid "" "as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is 2 BC, " "and so on." msgstr "" +"Les fonctions et les classes définies dans ce module utilisent un calendrier " +"idéalisé, le calendrier grégorien actuel s'étendant indéfiniment dans les " +"deux sens. Cela correspond à la définition du calendrier grégorien " +"proleptique dans le livre de Dershowitz et Reingold « *Calendrical " +"Calculations* », œuvre dans lequel il est le calendrier de référence de tous " +"les calculs. Les années zéros et les années négatives sont interprétées " +"comme prescrit par la norme ISO 8601. L'année 0 est 1 avant JC, l'année `-1` " +"est 2 avant JC et ainsi de suite." #: ../Doc/library/calendar.rst:33 msgid "" "Creates a :class:`Calendar` object. *firstweekday* is an integer specifying " "the first day of the week. ``0`` is Monday (the default), ``6`` is Sunday." msgstr "" +"Crée un objet :class:`Calendar`. *firstweekday* est un entier spécifiant le " +"premier jour de la semaine, valant par défaut ``0`` (lundi), pouvant aller " +"jusqu'à ``6`` (dimanche)." #: ../Doc/library/calendar.rst:36 msgid "" @@ -57,10 +75,13 @@ msgid "" "preparing the calendar data for formatting. This class doesn't do any " "formatting itself. This is the job of subclasses." msgstr "" +"L'objet :class:`Calendar` fournit plusieurs méthodes pouvant être utilisées " +"pour préparer les données du calendrier pour le formatage. Cette classe ne " +"fait pas de formatage elle-même. Il s'agit du travail des sous-classes." #: ../Doc/library/calendar.rst:41 msgid ":class:`Calendar` instances have the following methods:" -msgstr "" +msgstr "Les instances de :class:`Calendar` ont les méthodes suivantes :" #: ../Doc/library/calendar.rst:45 msgid "" @@ -68,6 +89,8 @@ msgid "" "The first value from the iterator will be the same as the value of the :attr:" "`firstweekday` property." msgstr "" +"Renvoie un itérateur sur les numéros des jours d'une semaine. La première " +"valeur est donc la même que la valeur de la propriété :attr:`firstweekday`." #: ../Doc/library/calendar.rst:52 msgid "" @@ -76,6 +99,10 @@ msgid "" "month and all days before the start of the month or after the end of the " "month that are required to get a complete week." msgstr "" +"Renvoie un itérateur sur les jours du mois *month* (1 à 12) de l'année " +"*year*. Cet itérateur renvoie tous les jours du mois (sous forme d'instances " +"de :class:`datetime.date`) ainsi que tous les jours avant le début du mois " +"et après la fin du mois nécessaires pour obtenir des semaines complètes." #: ../Doc/library/calendar.rst:60 msgid "" @@ -84,6 +111,10 @@ msgid "" "Days returned will simply be day of the month numbers. For the days outside " "of the specified month, the day number is ``0``." msgstr "" +"Renvoie un itérateur sur les jours du mois *month* de l'année *year*, comme :" +"meth:`itermonthdates`, sans être limité par l'intervalle de :class:`datetime." +"date`. Les jours renvoyés sont simplement les numéros des jours du mois. " +"Pour les jours en dehors du mois spécifié, le numéro du jour est ``0``." #: ../Doc/library/calendar.rst:68 msgid "" @@ -92,6 +123,10 @@ msgid "" "Days returned will be tuples consisting of a day of the month number and a " "week day number." msgstr "" +"Renvoie un itérateur sur les jours du mois *month* de l'année *year* comme :" +"meth:`itermonthdates`, sans être limité par la plage :class:`datetime.date`. " +"Les jours renvoyés sont des paires composées du numéro du jour dans le mois " +"et du numéro du jour dans la semaine." #: ../Doc/library/calendar.rst:76 msgid "" @@ -100,6 +135,10 @@ msgid "" "Days returned will be tuples consisting of a year, a month and a day of the " "month numbers." msgstr "" +"Renvoie un itérateur sur les jours du *month* de l'année *year*, comme :meth:" +"`itermonthdates`, sans être limité par l'intervalle de :class:`datetime." +"date`. Les jours sont renvoyés sous forme de triplets composés du numéro de " +"l'année, du mois et du jour dans le mois." #: ../Doc/library/calendar.rst:86 msgid "" @@ -108,24 +147,35 @@ msgid "" "Days returned will be tuples consisting of a year, a month, a day of the " "month, and a day of the week numbers." msgstr "" +"Renvoie un itérateur sur les jours du mois *month* de l'année *year*, comme :" +"meth:`itermonthdates`, sans être limité par l'intervalle de :class:`datetime." +"date`. Le jours sont renvoyés sous forme de quadruplets contenant le numéro " +"de l'année, du mois, du jour du mois et du jour de la semaine." #: ../Doc/library/calendar.rst:96 msgid "" "Return a list of the weeks in the month *month* of the *year* as full " "weeks. Weeks are lists of seven :class:`datetime.date` objects." msgstr "" +"Renvoie la liste des semaines complètes du mois *month* de l'année *year*. " +"Les semaines sont des listes de sept objets :class:`datetime.date`." #: ../Doc/library/calendar.rst:102 msgid "" "Return a list of the weeks in the month *month* of the *year* as full " "weeks. Weeks are lists of seven tuples of day numbers and weekday numbers." msgstr "" +"Renvoie la liste des semaines complètes du mois *month* de l'année *year*. " +"Les semaines sont des listes de sept paires contenant le numéro du jour dans " +"le mois et du numéro du jour dans la semaine." #: ../Doc/library/calendar.rst:109 msgid "" "Return a list of the weeks in the month *month* of the *year* as full " "weeks. Weeks are lists of seven day numbers." msgstr "" +"Renvoie la liste des semaines complètes du mois *month* de l'année *year*. " +"Les semaines sont une liste de sept numéros de jours." #: ../Doc/library/calendar.rst:115 msgid "" @@ -134,6 +184,11 @@ msgid "" "(defaulting to 3). Each month contains between 4 and 6 weeks and each week " "contains 1--7 days. Days are :class:`datetime.date` objects." msgstr "" +"Renvoie ce qu'il faut pour afficher correctement une année. La valeur " +"renvoyée est une liste de lignes de mois. Chaque ligne mensuelle contient " +"jusqu'à *width* mois (avec une valeur par défaut à 3). Chaque mois contient " +"de 4 à 6 semaines et chaque semaine 1 à 7 jours. Les jours sont des objets :" +"class:`datetime.date`." #: ../Doc/library/calendar.rst:123 msgid "" @@ -141,6 +196,10 @@ msgid "" "meth:`yeardatescalendar`). Entries in the week lists are tuples of day " "numbers and weekday numbers. Day numbers outside this month are zero." msgstr "" +"Renvoie ce qu'il faut pour afficher correctement une année, (similaire à :" +"meth:`yeardatescalendar`). Les listes des semaines contiennent des paires " +"contenant le numéro du jour du mois et le numéro du jour de la semaine. Les " +"numéro des jours en dehors de ce mois sont à zéro." #: ../Doc/library/calendar.rst:130 msgid "" @@ -148,14 +207,18 @@ msgid "" "meth:`yeardatescalendar`). Entries in the week lists are day numbers. Day " "numbers outside this month are zero." msgstr "" +"Renvoie ce qu'il faut pour afficher correctement une année, (similaire à :" +"meth:`yeardatescalendar`). Les listes de semaines contiennent des numéros de " +"jours. Les numéros de jours en dehors de ce mois sont de zéro." #: ../Doc/library/calendar.rst:137 msgid "This class can be used to generate plain text calendars." msgstr "" +"Cette classe peut être utilisée pour générer des calendriers en texte brut." #: ../Doc/library/calendar.rst:139 msgid ":class:`TextCalendar` instances have the following methods:" -msgstr "" +msgstr "Les instances :class:`TextCalendar` exposent les méthodes suivantes :" #: ../Doc/library/calendar.rst:143 msgid "" @@ -165,10 +228,16 @@ msgid "" "the first weekday as specified in the constructor or set by the :meth:" "`setfirstweekday` method." msgstr "" +"Donne le calendrier d'un mois dans une chaîne multi-ligne. Si *w* est " +"fourni, il spécifie la largeur des colonnes de date, qui sont centrées. Si " +"*l* est donné, il spécifie le nombre de lignes que chaque semaine utilisera. " +"Le résultat varie en fonction du premier jour de la semaine spécifié dans le " +"constructeur ou défini par la méthode :meth:`setfirstweekday`." #: ../Doc/library/calendar.rst:152 msgid "Print a month's calendar as returned by :meth:`formatmonth`." msgstr "" +"Affiche le calendrier d'un mois tel que renvoyé par :meth:`formatmonth`." #: ../Doc/library/calendar.rst:157 msgid "" @@ -179,11 +248,20 @@ msgid "" "`setfirstweekday` method. The earliest year for which a calendar can be " "generated is platform-dependent." msgstr "" +"Renvoie un calendrier de *m* colonnes pour une année entière sous forme de " +"chaîne multi-ligne. Les paramètres facultatifs *w*, *l* et *c* correspondent " +"respectivement à la largeur de la colonne date, les lignes par semaines, le " +"nombre d'espace entre les colonnes de mois. Le résultat varie en fonction du " +"premier jour de la semaine spécifié dans le constructeur ou défini par la " +"méthode :meth:`setfirstweekday`. La première année pour laquelle un " +"calendrier peut être généré, dépend de la plateforme." #: ../Doc/library/calendar.rst:167 msgid "" "Print the calendar for an entire year as returned by :meth:`formatyear`." msgstr "" +"Affiche le calendrier pour une année entière comme renvoyé par :meth:" +"`formatyear`." #: ../Doc/library/calendar.rst:172 msgid "This class can be used to generate HTML calendars." @@ -192,6 +270,7 @@ msgstr "Cette classe peut être utilisée pour générer des calendriers HTML." #: ../Doc/library/calendar.rst:175 msgid ":class:`!HTMLCalendar` instances have the following methods:" msgstr "" +"Les instances de :class:`!HTMLCalendar` utilisent les méthodes suivantes :" #: ../Doc/library/calendar.rst:179 msgid "" From 703a04d9d24451e5da73c22e5ab1da7a11251c8a Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Wed, 20 Mar 2019 09:02:55 +0100 Subject: [PATCH 069/121] Merge from upstream/3.7 (#606) --- bugs.po | 4 +- c-api/datetime.po | 4 +- c-api/float.po | 6 +- distutils/setupscript.po | 189 +++--- faq/programming.po | 213 ++++--- howto/logging.po | 17 +- howto/regex.po | 546 ++++++++--------- library/__future__.po | 4 +- library/asyncio-queue.po | 4 +- library/collections.po | 480 ++++++++------- library/configparser.po | 237 ++++---- library/datetime.po | 221 +++---- library/decimal.po | 20 +- library/errno.po | 4 +- library/functions.po | 261 ++++---- library/http.po | 6 +- library/idle.po | 86 +-- library/logging.config.po | 10 +- library/multiprocessing.po | 986 ++++++++++++++++--------------- library/os.path.po | 77 +-- library/pathlib.po | 19 +- library/pdb.po | 164 ++--- library/pickle.po | 4 +- library/random.po | 94 +-- library/re.po | 433 +++++++------- library/spwd.po | 4 +- library/sys.po | 130 ++-- library/tempfile.po | 4 +- library/test.po | 352 +++++------ library/time.po | 22 +- library/tkinter.tix.po | 122 ++-- library/unittest.mock.po | 403 +++++++------ library/unittest.po | 29 +- library/venv.po | 140 +++-- library/warnings.po | 4 +- library/xml.etree.elementtree.po | 204 +++---- reference/datamodel.po | 319 +++++----- sphinx.po | 9 +- using/windows.po | 4 +- whatsnew/3.6.po | 65 +- 40 files changed, 3068 insertions(+), 2832 deletions(-) diff --git a/bugs.po b/bugs.po index b19c8cd7d..ff1e4df50 100644 --- a/bugs.po +++ b/bugs.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-07-31 19:26+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -47,7 +47,7 @@ msgstr "Bogues de documentation" msgid "" "If you find a bug in this documentation or would like to propose an " "improvement, please submit a bug report on the :ref:`tracker `. If you have a suggestion how to fix it, include that as well." +"tracker>`. If you have a suggestion on how to fix it, include that as well." msgstr "" "Si vous trouvez un bogue dans cette documentation ou si vous désirez " "proposer une amélioration, si cela concerne aussi la documentation en " diff --git a/c-api/datetime.po b/c-api/datetime.po index 04efe9a5c..553aa474f 100644 --- a/c-api/datetime.po +++ b/c-api/datetime.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-01-11 20:51+0100\n" +"Last-Translator: Louis Portay \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Louis Portay \n" "X-Generator: Poedit 2.2\n" "X-Poedit-Bookmarks: -1,-1,-1,-1,-1,-1,-1,3,-1,-1\n" diff --git a/c-api/float.po b/c-api/float.po index 686d8e896..8710d59ae 100644 --- a/c-api/float.po +++ b/c-api/float.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-01-14 15:30+0100\n" "Last-Translator: ANTOINE FOURES \n" "Language-Team: FRENCH \n" @@ -36,7 +36,7 @@ msgstr "" #: ../Doc/c-api/float.rst:24 msgid "" -"Return true if its argument is a :c:type:`PyFloatObject` or a subtype of :c:" +"Return true if its argument is a :c:type:`PyFloatObject` or a subtype of :c:" "type:`PyFloatObject`." msgstr "" "Renvoie vrai si l'argument est de type :c:type:`PyFloatObject` ou un sous-" @@ -69,7 +69,7 @@ msgid "" "Return a C :c:type:`double` representation of the contents of *pyfloat*. If " "*pyfloat* is not a Python floating point object but has a :meth:`__float__` " "method, this method will first be called to convert *pyfloat* into a float. " -"This method returns ``-1.0`` upon failure, so one should call :c:func:" +"This method returns ``-1.0`` upon failure, so one should call :c:func:" "`PyErr_Occurred` to check for errors." msgstr "" "Renvoie une représentation du contenu d'un *pyfloat* sous la forme d'un :c:" diff --git a/distutils/setupscript.po b/distutils/setupscript.po index 6eebacb58..4b755fb7b 100644 --- a/distutils/setupscript.po +++ b/distutils/setupscript.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -653,25 +653,32 @@ msgid "" "following way::" msgstr "" -#: ../Doc/distutils/setupscript.rst:530 +#: ../Doc/distutils/setupscript.rst:529 msgid "" -"Note that you can specify the directory names where the data files will be " -"installed, but you cannot rename the data files themselves." +"Each (*directory*, *files*) pair in the sequence specifies the installation " +"directory and the files to install there." msgstr "" -#: ../Doc/distutils/setupscript.rst:533 +#: ../Doc/distutils/setupscript.rst:532 msgid "" -"Each (*directory*, *files*) pair in the sequence specifies the installation " -"directory and the files to install there. If *directory* is a relative " -"path, it is interpreted relative to the installation prefix (Python's ``sys." -"prefix`` for pure-Python packages, ``sys.exec_prefix`` for packages that " -"contain extension modules). Each file name in *files* is interpreted " -"relative to the :file:`setup.py` script at the top of the package source " -"distribution. No directory information from *files* is used to determine " -"the final location of the installed file; only the name of the file is used." +"Each file name in *files* is interpreted relative to the :file:`setup.py` " +"script at the top of the package source distribution. Note that you can " +"specify the directory where the data files will be installed, but you cannot " +"rename the data files themselves." +msgstr "" + +#: ../Doc/distutils/setupscript.rst:537 +msgid "" +"The *directory* should be a relative path. It is interpreted relative to the " +"installation prefix (Python's ``sys.prefix`` for system installations; " +"``site.USER_BASE`` for user installations). Distutils allows *directory* to " +"be an absolute installation path, but this is discouraged since it is " +"incompatible with the wheel packaging format. No directory information from " +"*files* is used to determine the final location of the installed file; only " +"the name of the file is used." msgstr "" -#: ../Doc/distutils/setupscript.rst:542 +#: ../Doc/distutils/setupscript.rst:545 msgid "" "You can specify the ``data_files`` options as a simple sequence of files " "without specifying a target directory, but this is not recommended, and the :" @@ -680,229 +687,229 @@ msgid "" "the directory." msgstr "" -#: ../Doc/distutils/setupscript.rst:548 +#: ../Doc/distutils/setupscript.rst:551 msgid "" "All the files that match ``data_files`` will be added to the ``MANIFEST`` " "file if no template is provided. See :ref:`manifest`." msgstr "" -#: ../Doc/distutils/setupscript.rst:556 +#: ../Doc/distutils/setupscript.rst:559 msgid "Additional meta-data" msgstr "" -#: ../Doc/distutils/setupscript.rst:558 +#: ../Doc/distutils/setupscript.rst:561 msgid "" "The setup script may include additional meta-data beyond the name and " "version. This information includes:" msgstr "" -#: ../Doc/distutils/setupscript.rst:562 +#: ../Doc/distutils/setupscript.rst:565 msgid "Meta-Data" msgstr "" -#: ../Doc/distutils/setupscript.rst:562 +#: ../Doc/distutils/setupscript.rst:565 msgid "Description" msgstr "Description" -#: ../Doc/distutils/setupscript.rst:562 +#: ../Doc/distutils/setupscript.rst:565 msgid "Value" msgstr "Valeur" -#: ../Doc/distutils/setupscript.rst:562 +#: ../Doc/distutils/setupscript.rst:565 msgid "Notes" msgstr "Notes" -#: ../Doc/distutils/setupscript.rst:564 +#: ../Doc/distutils/setupscript.rst:567 msgid "``name``" msgstr "``name``" -#: ../Doc/distutils/setupscript.rst:564 +#: ../Doc/distutils/setupscript.rst:567 msgid "name of the package" msgstr "" -#: ../Doc/distutils/setupscript.rst:564 ../Doc/distutils/setupscript.rst:566 -#: ../Doc/distutils/setupscript.rst:568 ../Doc/distutils/setupscript.rst:573 -#: ../Doc/distutils/setupscript.rst:580 ../Doc/distutils/setupscript.rst:596 +#: ../Doc/distutils/setupscript.rst:567 ../Doc/distutils/setupscript.rst:569 +#: ../Doc/distutils/setupscript.rst:571 ../Doc/distutils/setupscript.rst:576 +#: ../Doc/distutils/setupscript.rst:583 ../Doc/distutils/setupscript.rst:599 msgid "short string" msgstr "" -#: ../Doc/distutils/setupscript.rst:564 ../Doc/distutils/setupscript.rst:578 +#: ../Doc/distutils/setupscript.rst:567 ../Doc/distutils/setupscript.rst:581 msgid "\\(1)" msgstr "\\(1)" -#: ../Doc/distutils/setupscript.rst:566 +#: ../Doc/distutils/setupscript.rst:569 msgid "``version``" msgstr "``version``" -#: ../Doc/distutils/setupscript.rst:566 +#: ../Doc/distutils/setupscript.rst:569 msgid "version of this release" msgstr "" -#: ../Doc/distutils/setupscript.rst:566 +#: ../Doc/distutils/setupscript.rst:569 msgid "(1)(2)" msgstr "(1)(2)" -#: ../Doc/distutils/setupscript.rst:568 +#: ../Doc/distutils/setupscript.rst:571 msgid "``author``" msgstr "" -#: ../Doc/distutils/setupscript.rst:568 +#: ../Doc/distutils/setupscript.rst:571 msgid "package author's name" msgstr "" -#: ../Doc/distutils/setupscript.rst:568 ../Doc/distutils/setupscript.rst:570 -#: ../Doc/distutils/setupscript.rst:573 ../Doc/distutils/setupscript.rst:575 +#: ../Doc/distutils/setupscript.rst:571 ../Doc/distutils/setupscript.rst:573 +#: ../Doc/distutils/setupscript.rst:576 ../Doc/distutils/setupscript.rst:578 msgid "\\(3)" msgstr "\\(3)" -#: ../Doc/distutils/setupscript.rst:570 +#: ../Doc/distutils/setupscript.rst:573 msgid "``author_email``" msgstr "" -#: ../Doc/distutils/setupscript.rst:570 +#: ../Doc/distutils/setupscript.rst:573 msgid "email address of the package author" msgstr "" -#: ../Doc/distutils/setupscript.rst:570 ../Doc/distutils/setupscript.rst:575 +#: ../Doc/distutils/setupscript.rst:573 ../Doc/distutils/setupscript.rst:578 msgid "email address" msgstr "" -#: ../Doc/distutils/setupscript.rst:573 +#: ../Doc/distutils/setupscript.rst:576 msgid "``maintainer``" msgstr "" -#: ../Doc/distutils/setupscript.rst:573 +#: ../Doc/distutils/setupscript.rst:576 msgid "package maintainer's name" msgstr "" -#: ../Doc/distutils/setupscript.rst:575 +#: ../Doc/distutils/setupscript.rst:578 msgid "``maintainer_email``" msgstr "" -#: ../Doc/distutils/setupscript.rst:575 +#: ../Doc/distutils/setupscript.rst:578 msgid "email address of the package maintainer" msgstr "" -#: ../Doc/distutils/setupscript.rst:578 +#: ../Doc/distutils/setupscript.rst:581 msgid "``url``" msgstr "``url``" -#: ../Doc/distutils/setupscript.rst:578 +#: ../Doc/distutils/setupscript.rst:581 msgid "home page for the package" msgstr "" -#: ../Doc/distutils/setupscript.rst:578 ../Doc/distutils/setupscript.rst:587 +#: ../Doc/distutils/setupscript.rst:581 ../Doc/distutils/setupscript.rst:590 msgid "URL" msgstr "" -#: ../Doc/distutils/setupscript.rst:580 +#: ../Doc/distutils/setupscript.rst:583 msgid "``description``" msgstr "``description``" -#: ../Doc/distutils/setupscript.rst:580 +#: ../Doc/distutils/setupscript.rst:583 msgid "short, summary description of the package" msgstr "" -#: ../Doc/distutils/setupscript.rst:584 +#: ../Doc/distutils/setupscript.rst:587 msgid "``long_description``" msgstr "``long_description``" -#: ../Doc/distutils/setupscript.rst:584 +#: ../Doc/distutils/setupscript.rst:587 msgid "longer description of the package" msgstr "" -#: ../Doc/distutils/setupscript.rst:584 +#: ../Doc/distutils/setupscript.rst:587 msgid "long string" msgstr "" -#: ../Doc/distutils/setupscript.rst:584 +#: ../Doc/distutils/setupscript.rst:587 msgid "\\(4)" msgstr "\\(4)" -#: ../Doc/distutils/setupscript.rst:587 +#: ../Doc/distutils/setupscript.rst:590 msgid "``download_url``" msgstr "" -#: ../Doc/distutils/setupscript.rst:587 +#: ../Doc/distutils/setupscript.rst:590 msgid "location where the package may be downloaded" msgstr "" -#: ../Doc/distutils/setupscript.rst:590 +#: ../Doc/distutils/setupscript.rst:593 msgid "``classifiers``" msgstr "" -#: ../Doc/distutils/setupscript.rst:590 +#: ../Doc/distutils/setupscript.rst:593 msgid "a list of classifiers" msgstr "" -#: ../Doc/distutils/setupscript.rst:590 ../Doc/distutils/setupscript.rst:592 -#: ../Doc/distutils/setupscript.rst:594 +#: ../Doc/distutils/setupscript.rst:593 ../Doc/distutils/setupscript.rst:595 +#: ../Doc/distutils/setupscript.rst:597 msgid "list of strings" msgstr "" -#: ../Doc/distutils/setupscript.rst:590 +#: ../Doc/distutils/setupscript.rst:593 msgid "(6)(7)" msgstr "(6)(7)" -#: ../Doc/distutils/setupscript.rst:592 +#: ../Doc/distutils/setupscript.rst:595 msgid "``platforms``" msgstr "" -#: ../Doc/distutils/setupscript.rst:592 +#: ../Doc/distutils/setupscript.rst:595 msgid "a list of platforms" msgstr "" -#: ../Doc/distutils/setupscript.rst:592 ../Doc/distutils/setupscript.rst:594 +#: ../Doc/distutils/setupscript.rst:595 ../Doc/distutils/setupscript.rst:597 msgid "(6)(8)" msgstr "" -#: ../Doc/distutils/setupscript.rst:594 +#: ../Doc/distutils/setupscript.rst:597 msgid "``keywords``" msgstr "" -#: ../Doc/distutils/setupscript.rst:594 +#: ../Doc/distutils/setupscript.rst:597 msgid "a list of keywords" msgstr "" -#: ../Doc/distutils/setupscript.rst:596 +#: ../Doc/distutils/setupscript.rst:599 msgid "``license``" msgstr "``license``" -#: ../Doc/distutils/setupscript.rst:596 +#: ../Doc/distutils/setupscript.rst:599 msgid "license for the package" msgstr "" -#: ../Doc/distutils/setupscript.rst:596 +#: ../Doc/distutils/setupscript.rst:599 msgid "\\(5)" msgstr "\\(5)" -#: ../Doc/distutils/setupscript.rst:599 +#: ../Doc/distutils/setupscript.rst:602 msgid "Notes:" msgstr "Notes :" -#: ../Doc/distutils/setupscript.rst:602 +#: ../Doc/distutils/setupscript.rst:605 msgid "These fields are required." msgstr "" -#: ../Doc/distutils/setupscript.rst:605 +#: ../Doc/distutils/setupscript.rst:608 msgid "" "It is recommended that versions take the form *major.minor[.patch[.sub]]*." msgstr "" -#: ../Doc/distutils/setupscript.rst:608 +#: ../Doc/distutils/setupscript.rst:611 msgid "" "Either the author or the maintainer must be identified. If maintainer is " "provided, distutils lists it as the author in :file:`PKG-INFO`." msgstr "" -#: ../Doc/distutils/setupscript.rst:612 +#: ../Doc/distutils/setupscript.rst:615 msgid "" "The ``long_description`` field is used by PyPI when you are :ref:" "`registering ` a package, to :ref:`build its home page " "`." msgstr "" -#: ../Doc/distutils/setupscript.rst:617 +#: ../Doc/distutils/setupscript.rst:620 msgid "" "The ``license`` field is a text indicating the license covering the package " "where the license is not a selection from the \"License\" Trove classifiers. " @@ -910,49 +917,49 @@ msgid "" "option which is deprecated but still acts as an alias for ``license``." msgstr "" -#: ../Doc/distutils/setupscript.rst:624 +#: ../Doc/distutils/setupscript.rst:627 msgid "This field must be a list." msgstr "" -#: ../Doc/distutils/setupscript.rst:627 +#: ../Doc/distutils/setupscript.rst:630 msgid "" "The valid classifiers are listed on `PyPI `_." msgstr "" -#: ../Doc/distutils/setupscript.rst:631 +#: ../Doc/distutils/setupscript.rst:634 msgid "" "To preserve backward compatibility, this field also accepts a string. If you " "pass a comma-separated string ``'foo, bar'``, it will be converted to " "``['foo', 'bar']``, Otherwise, it will be converted to a list of one string." msgstr "" -#: ../Doc/distutils/setupscript.rst:637 +#: ../Doc/distutils/setupscript.rst:640 msgid "'short string'" msgstr "'chaîne courte'" -#: ../Doc/distutils/setupscript.rst:637 +#: ../Doc/distutils/setupscript.rst:640 msgid "A single line of text, not more than 200 characters." msgstr "" -#: ../Doc/distutils/setupscript.rst:641 +#: ../Doc/distutils/setupscript.rst:644 msgid "'long string'" msgstr "'chaîne longue'" -#: ../Doc/distutils/setupscript.rst:640 +#: ../Doc/distutils/setupscript.rst:643 msgid "" "Multiple lines of plain text in reStructuredText format (see http://docutils." "sourceforge.net/)." msgstr "" -#: ../Doc/distutils/setupscript.rst:644 +#: ../Doc/distutils/setupscript.rst:647 msgid "'list of strings'" msgstr "'liste de chaînes'" -#: ../Doc/distutils/setupscript.rst:644 +#: ../Doc/distutils/setupscript.rst:647 msgid "See below." msgstr "" -#: ../Doc/distutils/setupscript.rst:646 +#: ../Doc/distutils/setupscript.rst:649 msgid "" "Encoding the version information is an art in itself. Python packages " "generally adhere to the version format *major.minor[.patch][sub]*. The major " @@ -967,43 +974,43 @@ msgid "" "testing). Some examples:" msgstr "" -#: ../Doc/distutils/setupscript.rst:658 +#: ../Doc/distutils/setupscript.rst:661 msgid "0.1.0" msgstr "" -#: ../Doc/distutils/setupscript.rst:658 +#: ../Doc/distutils/setupscript.rst:661 msgid "the first, experimental release of a package" msgstr "" -#: ../Doc/distutils/setupscript.rst:661 +#: ../Doc/distutils/setupscript.rst:664 msgid "1.0.1a2" msgstr "" -#: ../Doc/distutils/setupscript.rst:661 +#: ../Doc/distutils/setupscript.rst:664 msgid "the second alpha release of the first patch version of 1.0" msgstr "" -#: ../Doc/distutils/setupscript.rst:663 +#: ../Doc/distutils/setupscript.rst:666 msgid "``classifiers`` must be specified in a list::" msgstr "" -#: ../Doc/distutils/setupscript.rst:684 +#: ../Doc/distutils/setupscript.rst:687 msgid "" ":class:`~distutils.core.setup` now warns when ``classifiers``, ``keywords`` " "or ``platforms`` fields are not specified as a list or a string." msgstr "" -#: ../Doc/distutils/setupscript.rst:691 +#: ../Doc/distutils/setupscript.rst:694 msgid "Debugging the setup script" msgstr "" -#: ../Doc/distutils/setupscript.rst:693 +#: ../Doc/distutils/setupscript.rst:696 msgid "" "Sometimes things go wrong, and the setup script doesn't do what the " "developer wants." msgstr "" -#: ../Doc/distutils/setupscript.rst:696 +#: ../Doc/distutils/setupscript.rst:699 msgid "" "Distutils catches any exceptions when running the setup script, and print a " "simple error message before the script is terminated. The motivation for " @@ -1014,7 +1021,7 @@ msgid "" "down to the bottom and see that it's a permission problem." msgstr "" -#: ../Doc/distutils/setupscript.rst:704 +#: ../Doc/distutils/setupscript.rst:707 msgid "" "On the other hand, this doesn't help the developer to find the cause of the " "failure. For this purpose, the :envvar:`DISTUTILS_DEBUG` environment " diff --git a/faq/programming.po b/faq/programming.po index f3957d2ab..9b9cbcaa6 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-11-13 09:44+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -1663,10 +1663,6 @@ msgid "" msgstr "" #: ../Doc/faq/programming.rst:1321 -msgid "Dictionaries" -msgstr "Dictionnaires" - -#: ../Doc/faq/programming.rst:1324 msgid "" "I want to do a complicated sort: can you do a Schwartzian Transform in " "Python?" @@ -1674,7 +1670,7 @@ msgstr "" "Je souhaite faire un tri compliqué: peut on faire une transformation de " "Schwartz en Python?" -#: ../Doc/faq/programming.rst:1326 +#: ../Doc/faq/programming.rst:1323 msgid "" "The technique, attributed to Randal Schwartz of the Perl community, sorts " "the elements of a list by a metric which maps each element to its \"sort " @@ -1682,12 +1678,12 @@ msgid "" "method::" msgstr "" -#: ../Doc/faq/programming.rst:1335 +#: ../Doc/faq/programming.rst:1332 msgid "How can I sort one list by values from another list?" msgstr "" "Comment puis-je trier une liste en fonction des valeurs d'une autre liste?" -#: ../Doc/faq/programming.rst:1337 +#: ../Doc/faq/programming.rst:1334 msgid "" "Merge them into an iterator of tuples, sort the resulting list, and then " "pick out the element you want. ::" @@ -1695,11 +1691,11 @@ msgstr "" "Fusionnez les dans un itérateur de tuples, triez la liste obtenue, puis " "choisissez l'élément que vous voulez. ::" -#: ../Doc/faq/programming.rst:1351 +#: ../Doc/faq/programming.rst:1348 msgid "An alternative for the last step is::" msgstr "Une alternative pour la dernière étape est : ::" -#: ../Doc/faq/programming.rst:1356 +#: ../Doc/faq/programming.rst:1353 msgid "" "If you find this more legible, you might prefer to use this instead of the " "final list comprehension. However, it is almost twice as slow for long " @@ -1718,15 +1714,15 @@ msgstr "" "exige une recherche d'attribut supplémentaire, et enfin, tous ces appels de " "fonction impactent la vitesse d'exécution." -#: ../Doc/faq/programming.rst:1366 +#: ../Doc/faq/programming.rst:1363 msgid "Objects" msgstr "Objets" -#: ../Doc/faq/programming.rst:1369 +#: ../Doc/faq/programming.rst:1366 msgid "What is a class?" msgstr "Qu'est-ce qu'une classe?" -#: ../Doc/faq/programming.rst:1371 +#: ../Doc/faq/programming.rst:1368 msgid "" "A class is the particular object type created by executing a class " "statement. Class objects are used as templates to create instance objects, " @@ -1738,7 +1734,7 @@ msgstr "" "créer des objets, qui incarnent à la fois les données (attributs) et le code " "(méthodes) spécifiques à un type de données." -#: ../Doc/faq/programming.rst:1375 +#: ../Doc/faq/programming.rst:1372 msgid "" "A class can be based on one or more other classes, called its base " "class(es). It then inherits the attributes and methods of its base classes. " @@ -1755,11 +1751,11 @@ msgstr "" "classes telles que ``MboxMailbox``, ``MaildirMailbox``, ``OutlookMailbox`` " "qui gèrent les différents formats de boîtes aux lettres spécifiques." -#: ../Doc/faq/programming.rst:1384 +#: ../Doc/faq/programming.rst:1381 msgid "What is a method?" msgstr "Qu'est-ce qu'une méthode?" -#: ../Doc/faq/programming.rst:1386 +#: ../Doc/faq/programming.rst:1383 msgid "" "A method is a function on some object ``x`` that you normally call as ``x." "name(arguments...)``. Methods are defined as functions inside the class " @@ -1769,11 +1765,11 @@ msgstr "" "``x.name(arguments…)``. Les méthodes sont définies comme des fonctions à " "l'intérieur de la définition de classe ::" -#: ../Doc/faq/programming.rst:1396 +#: ../Doc/faq/programming.rst:1393 msgid "What is self?" msgstr "Qu'est-ce que self?" -#: ../Doc/faq/programming.rst:1398 +#: ../Doc/faq/programming.rst:1395 msgid "" "Self is merely a conventional name for the first argument of a method. A " "method defined as ``meth(self, a, b, c)`` should be called as ``x.meth(a, b, " @@ -1786,11 +1782,11 @@ msgstr "" "laquelle elle est définie, la méthode appelée considérera qu'elle est " "appelée ``meth(x, a, b, c)``." -#: ../Doc/faq/programming.rst:1403 +#: ../Doc/faq/programming.rst:1400 msgid "See also :ref:`why-self`." msgstr "Voir aussi :ref:`why-self`." -#: ../Doc/faq/programming.rst:1407 +#: ../Doc/faq/programming.rst:1404 msgid "" "How do I check if an object is an instance of a given class or of a subclass " "of it?" @@ -1798,7 +1794,7 @@ msgstr "" "Comment puis-je vérifier si un objet est une instance d'une classe donnée ou " "d'une sous-classe de celui-ci?" -#: ../Doc/faq/programming.rst:1409 +#: ../Doc/faq/programming.rst:1406 msgid "" "Use the built-in function ``isinstance(obj, cls)``. You can check if an " "object is an instance of any of a number of classes by providing a tuple " @@ -1813,7 +1809,7 @@ msgstr "" "objet est l'un des types natifs de Python, par exemple, ``isinstance(obj, " "str)`` ou ``isinstance(obj, (int, float, complex))``." -#: ../Doc/faq/programming.rst:1415 +#: ../Doc/faq/programming.rst:1412 msgid "" "Note that most programs do not use :func:`isinstance` on user-defined " "classes very often. If you are developing the classes yourself, a more " @@ -1830,7 +1826,7 @@ msgstr "" "chose de différent en fonction de sa classe. Par exemple, si vous avez une " "fonction qui fait quelque chose : ::" -#: ../Doc/faq/programming.rst:1429 +#: ../Doc/faq/programming.rst:1426 msgid "" "A better approach is to define a ``search()`` method on all the classes and " "just call it::" @@ -1838,11 +1834,11 @@ msgstr "" "Une meilleure approche est de définir une méthode ``search()`` sur toutes " "les classes et qu'il suffit d'appeler ::" -#: ../Doc/faq/programming.rst:1444 +#: ../Doc/faq/programming.rst:1441 msgid "What is delegation?" msgstr "Qu'est-ce que la délégation?" -#: ../Doc/faq/programming.rst:1446 +#: ../Doc/faq/programming.rst:1443 msgid "" "Delegation is an object oriented technique (also called a design pattern). " "Let's say you have an object ``x`` and want to change the behaviour of just " @@ -1857,7 +1853,7 @@ msgstr "" "vous intéresse dans l'évolution et les délégués de toutes les autres " "méthodes la méthode correspondante de ``x``." -#: ../Doc/faq/programming.rst:1452 +#: ../Doc/faq/programming.rst:1449 msgid "" "Python programmers can easily implement delegation. For example, the " "following class implements a class that behaves like a file but converts all " @@ -1867,7 +1863,7 @@ msgstr "" "Par exemple, la classe suivante implémente une classe qui se comporte comme " "un fichier, mais convertit toutes les données écrites en majuscules ::" -#: ../Doc/faq/programming.rst:1467 +#: ../Doc/faq/programming.rst:1464 msgid "" "Here the ``UpperOut`` class redefines the ``write()`` method to convert the " "argument string to uppercase before calling the underlying ``self.__outfile." @@ -1883,7 +1879,7 @@ msgstr "" "``__getattr__``, consulter :ref:`the language reference ` " "pour plus d'informations sur le contrôle d'accès d'attribut." -#: ../Doc/faq/programming.rst:1474 +#: ../Doc/faq/programming.rst:1471 msgid "" "Note that for more general cases delegation can get trickier. When " "attributes must be set as well as retrieved, the class must define a :meth:" @@ -1897,7 +1893,7 @@ msgstr "" "et il doit le faire avec soin. La mise en œuvre basique de la méthode :meth:" "`__setattr__` est à peu près équivalent à ce qui suit ::" -#: ../Doc/faq/programming.rst:1485 +#: ../Doc/faq/programming.rst:1482 msgid "" "Most :meth:`__setattr__` implementations must modify ``self.__dict__`` to " "store local state for self without causing an infinite recursion." @@ -1906,7 +1902,7 @@ msgstr "" "``self.__dict__`` pour stocker l'état locale de self sans provoquer une " "récursion infinie." -#: ../Doc/faq/programming.rst:1490 +#: ../Doc/faq/programming.rst:1487 msgid "" "How do I call a method defined in a base class from a derived class that " "overrides it?" @@ -1914,11 +1910,11 @@ msgstr "" "Comment appeler une méthode définie dans une classe de base depuis une " "classe dérivée qui la surcharge?" -#: ../Doc/faq/programming.rst:1492 +#: ../Doc/faq/programming.rst:1489 msgid "Use the built-in :func:`super` function::" msgstr "Utiliser la fonction native :func:`super` : ::" -#: ../Doc/faq/programming.rst:1498 +#: ../Doc/faq/programming.rst:1495 msgid "" "For version prior to 3.0, you may be using classic classes: For a class " "definition such as ``class Derived(Base): ...`` you can call method " @@ -1933,13 +1929,13 @@ msgstr "" "Ici, ``Base.meth`` est une méthode non liée, vous devez donc fournir " "l'argument ``self``." -#: ../Doc/faq/programming.rst:1506 +#: ../Doc/faq/programming.rst:1503 msgid "How can I organize my code to make it easier to change the base class?" msgstr "" "Comment puis-je organiser mon code pour permettre de changer la classe de " "base plus facilement?" -#: ../Doc/faq/programming.rst:1508 +#: ../Doc/faq/programming.rst:1505 msgid "" "You could define an alias for the base class, assign the real base class to " "it before your class definition, and use the alias throughout your class. " @@ -1955,13 +1951,13 @@ msgstr "" "voulez décider dynamiquement (par exemple en fonction de la disponibilité " "des ressources) la classe de base à utiliser. Exemple ::" -#: ../Doc/faq/programming.rst:1523 +#: ../Doc/faq/programming.rst:1520 msgid "How do I create static class data and static class methods?" msgstr "" "Comment puis-je créer des données statiques de classe et des méthodes " "statiques de classe?" -#: ../Doc/faq/programming.rst:1525 +#: ../Doc/faq/programming.rst:1522 msgid "" "Both static data and static methods (in the sense of C++ or Java) are " "supported in Python." @@ -1969,7 +1965,7 @@ msgstr "" "Tant les données statiques que les méthodes statiques (dans le sens de C + + " "ou Java) sont pris en charge en Python." -#: ../Doc/faq/programming.rst:1528 +#: ../Doc/faq/programming.rst:1525 msgid "" "For static data, simply define a class attribute. To assign a new value to " "the attribute, you have to explicitly use the class name in the assignment::" @@ -1978,7 +1974,7 @@ msgstr "" "attribuer une nouvelle valeur à l'attribut, vous devez explicitement " "utiliser le nom de classe dans l'affectation ::" -#: ../Doc/faq/programming.rst:1540 +#: ../Doc/faq/programming.rst:1537 msgid "" "``c.count`` also refers to ``C.count`` for any ``c`` such that " "``isinstance(c, C)`` holds, unless overridden by ``c`` itself or by some " @@ -1989,7 +1985,7 @@ msgstr "" "une classe sur le chemin de recherche de classe de base de ``c.__class__`` " "jusqu'à ``C``." -#: ../Doc/faq/programming.rst:1544 +#: ../Doc/faq/programming.rst:1541 msgid "" "Caution: within a method of C, an assignment like ``self.count = 42`` " "creates a new and unrelated instance named \"count\" in ``self``'s own " @@ -2002,11 +1998,11 @@ msgstr "" "statique de classe doit toujours spécifier la classe que l'on soit à " "l'intérieur d'une méthode ou non ::" -#: ../Doc/faq/programming.rst:1551 +#: ../Doc/faq/programming.rst:1548 msgid "Static methods are possible::" msgstr "Les méthodes statiques sont possibles : ::" -#: ../Doc/faq/programming.rst:1559 +#: ../Doc/faq/programming.rst:1556 msgid "" "However, a far more straightforward way to get the effect of a static method " "is via a simple module-level function::" @@ -2014,7 +2010,7 @@ msgstr "" "Cependant, d'une manière beaucoup plus simple pour obtenir l'effet d'une " "méthode statique se fait par une simple fonction au niveau du module ::" -#: ../Doc/faq/programming.rst:1565 +#: ../Doc/faq/programming.rst:1562 msgid "" "If your code is structured so as to define one class (or tightly related " "class hierarchy) per module, this supplies the desired encapsulation." @@ -2023,11 +2019,11 @@ msgstr "" "hiérarchie des classes connexes) par module, ceci fournira l'encapsulation " "souhaitée." -#: ../Doc/faq/programming.rst:1570 +#: ../Doc/faq/programming.rst:1567 msgid "How can I overload constructors (or methods) in Python?" msgstr "Comment puis-je surcharger les constructeurs (ou méthodes) en Python?" -#: ../Doc/faq/programming.rst:1572 +#: ../Doc/faq/programming.rst:1569 msgid "" "This answer actually applies to all methods, but the question usually comes " "up first in the context of constructors." @@ -2035,11 +2031,11 @@ msgstr "" "Cette réponse s'applique en fait à toutes les méthodes, mais la question " "vient généralement en premier dans le contexte des constructeurs." -#: ../Doc/faq/programming.rst:1575 +#: ../Doc/faq/programming.rst:1572 msgid "In C++ you'd write" msgstr "In C++ you'd write" -#: ../Doc/faq/programming.rst:1584 +#: ../Doc/faq/programming.rst:1581 msgid "" "In Python you have to write a single constructor that catches all cases " "using default arguments. For example::" @@ -2047,29 +2043,29 @@ msgstr "" "En Python, vous devez écrire un constructeur unique qui considère tous les " "cas en utilisant des arguments par défaut. Par exemple ::" -#: ../Doc/faq/programming.rst:1594 +#: ../Doc/faq/programming.rst:1591 msgid "This is not entirely equivalent, but close enough in practice." msgstr "" "Ce n'est pas tout à fait équivalent, mais suffisamment proche dans la " "pratique." -#: ../Doc/faq/programming.rst:1596 +#: ../Doc/faq/programming.rst:1593 msgid "You could also try a variable-length argument list, e.g. ::" msgstr "" "Vous pouvez aussi utiliser une liste d'arguments de longueur variable, par " "exemple : ::" -#: ../Doc/faq/programming.rst:1601 +#: ../Doc/faq/programming.rst:1598 msgid "The same approach works for all method definitions." msgstr "La même approche fonctionne pour toutes les définitions de méthode." -#: ../Doc/faq/programming.rst:1605 +#: ../Doc/faq/programming.rst:1602 msgid "I try to use __spam and I get an error about _SomeClassName__spam." msgstr "" "J'essaie d'utiliser ``__spam`` et j'obtiens une erreur à propos de " "``_SomeClassName__spam``." -#: ../Doc/faq/programming.rst:1607 +#: ../Doc/faq/programming.rst:1604 msgid "" "Variable names with double leading underscores are \"mangled\" to provide a " "simple but effective way to define class private variables. Any identifier " @@ -2085,7 +2081,7 @@ msgstr "" "``_classname__spam``, où ``classname`` est le nom de la classe en cours dont " "les éventuels tirets bas ont été retirés." -#: ../Doc/faq/programming.rst:1613 +#: ../Doc/faq/programming.rst:1610 msgid "" "This doesn't guarantee privacy: an outside user can still deliberately " "access the \"_classname__spam\" attribute, and private values are visible in " @@ -2098,17 +2094,17 @@ msgstr "" "programmeurs Python ne prennent jamais la peine d'utiliser des noms de " "variable privée." -#: ../Doc/faq/programming.rst:1620 +#: ../Doc/faq/programming.rst:1617 msgid "My class defines __del__ but it is not called when I delete the object." msgstr "" "Ma classe définit ``__del__`` mais il n'est pas appelé lorsque je supprime " "l'objet." -#: ../Doc/faq/programming.rst:1622 +#: ../Doc/faq/programming.rst:1619 msgid "There are several possible reasons for this." msgstr "Il y a plusieurs raisons possibles pour cela." -#: ../Doc/faq/programming.rst:1624 +#: ../Doc/faq/programming.rst:1621 msgid "" "The del statement does not necessarily call :meth:`__del__` -- it simply " "decrements the object's reference count, and if this reaches zero :meth:" @@ -2118,7 +2114,7 @@ msgstr "" "simplement le compteur de références de l'objet, et si celui ci arrive à " "zéro :meth:`__del__` est appelée." -#: ../Doc/faq/programming.rst:1628 +#: ../Doc/faq/programming.rst:1625 msgid "" "If your data structures contain circular links (e.g. a tree where each child " "has a parent reference and each parent has a list of children) the reference " @@ -2132,7 +2128,7 @@ msgid "" "cases where objects will never be collected." msgstr "" -#: ../Doc/faq/programming.rst:1639 +#: ../Doc/faq/programming.rst:1636 msgid "" "Despite the cycle collector, it's still a good idea to define an explicit " "``close()`` method on objects to be called whenever you're done with them. " @@ -2142,7 +2138,7 @@ msgid "" "once for the same object." msgstr "" -#: ../Doc/faq/programming.rst:1646 +#: ../Doc/faq/programming.rst:1643 msgid "" "Another way to avoid cyclical references is to use the :mod:`weakref` " "module, which allows you to point to objects without incrementing their " @@ -2150,28 +2146,28 @@ msgid "" "references for their parent and sibling references (if they need them!)." msgstr "" -#: ../Doc/faq/programming.rst:1659 +#: ../Doc/faq/programming.rst:1656 msgid "" "Finally, if your :meth:`__del__` method raises an exception, a warning " "message is printed to :data:`sys.stderr`." msgstr "" -#: ../Doc/faq/programming.rst:1664 +#: ../Doc/faq/programming.rst:1661 msgid "How do I get a list of all instances of a given class?" msgstr "" -#: ../Doc/faq/programming.rst:1666 +#: ../Doc/faq/programming.rst:1663 msgid "" "Python does not keep track of all instances of a class (or of a built-in " "type). You can program the class's constructor to keep track of all " "instances by keeping a list of weak references to each instance." msgstr "" -#: ../Doc/faq/programming.rst:1672 +#: ../Doc/faq/programming.rst:1669 msgid "Why does the result of ``id()`` appear to be not unique?" msgstr "" -#: ../Doc/faq/programming.rst:1674 +#: ../Doc/faq/programming.rst:1671 msgid "" "The :func:`id` builtin returns an integer that is guaranteed to be unique " "during the lifetime of the object. Since in CPython, this is the object's " @@ -2180,7 +2176,7 @@ msgid "" "memory. This is illustrated by this example:" msgstr "" -#: ../Doc/faq/programming.rst:1685 +#: ../Doc/faq/programming.rst:1682 msgid "" "The two ids belong to different integer objects that are created before, and " "deleted immediately after execution of the ``id()`` call. To be sure that " @@ -2188,15 +2184,15 @@ msgid "" "reference to the object:" msgstr "" -#: ../Doc/faq/programming.rst:1698 +#: ../Doc/faq/programming.rst:1695 msgid "Modules" msgstr "Modules" -#: ../Doc/faq/programming.rst:1701 +#: ../Doc/faq/programming.rst:1698 msgid "How do I create a .pyc file?" msgstr "" -#: ../Doc/faq/programming.rst:1703 +#: ../Doc/faq/programming.rst:1700 msgid "" "When a module is imported for the first time (or when the source file has " "changed since the current compiled file was created) a ``.pyc`` file " @@ -2207,7 +2203,7 @@ msgid "" "particular ``python`` binary that created it. (See :pep:`3147` for details.)" msgstr "" -#: ../Doc/faq/programming.rst:1711 +#: ../Doc/faq/programming.rst:1708 msgid "" "One reason that a ``.pyc`` file may not be created is a permissions problem " "with the directory containing the source file, meaning that the " @@ -2216,7 +2212,7 @@ msgid "" "testing with a web server." msgstr "" -#: ../Doc/faq/programming.rst:1716 +#: ../Doc/faq/programming.rst:1713 msgid "" "Unless the :envvar:`PYTHONDONTWRITEBYTECODE` environment variable is set, " "creation of a .pyc file is automatic if you're importing a module and Python " @@ -2225,7 +2221,7 @@ msgid "" "subdirectory." msgstr "" -#: ../Doc/faq/programming.rst:1721 +#: ../Doc/faq/programming.rst:1718 msgid "" "Running Python on a top level script is not considered an import and no ``." "pyc`` will be created. For example, if you have a top-level module ``foo." @@ -2235,27 +2231,27 @@ msgid "" "for ``foo`` since ``foo.py`` isn't being imported." msgstr "" -#: ../Doc/faq/programming.rst:1728 +#: ../Doc/faq/programming.rst:1725 msgid "" "If you need to create a ``.pyc`` file for ``foo`` -- that is, to create a ``." "pyc`` file for a module that is not imported -- you can, using the :mod:" "`py_compile` and :mod:`compileall` modules." msgstr "" -#: ../Doc/faq/programming.rst:1732 +#: ../Doc/faq/programming.rst:1729 msgid "" "The :mod:`py_compile` module can manually compile any module. One way is to " "use the ``compile()`` function in that module interactively::" msgstr "" -#: ../Doc/faq/programming.rst:1738 +#: ../Doc/faq/programming.rst:1735 msgid "" "This will write the ``.pyc`` to a ``__pycache__`` subdirectory in the same " "location as ``foo.py`` (or you can override that with the optional parameter " "``cfile``)." msgstr "" -#: ../Doc/faq/programming.rst:1742 +#: ../Doc/faq/programming.rst:1739 msgid "" "You can also automatically compile all files in a directory or directories " "using the :mod:`compileall` module. You can do it from the shell prompt by " @@ -2263,11 +2259,11 @@ msgid "" "Python files to compile::" msgstr "" -#: ../Doc/faq/programming.rst:1751 +#: ../Doc/faq/programming.rst:1748 msgid "How do I find the current module name?" msgstr "" -#: ../Doc/faq/programming.rst:1753 +#: ../Doc/faq/programming.rst:1750 msgid "" "A module can find out its own module name by looking at the predefined " "global variable ``__name__``. If this has the value ``'__main__'``, the " @@ -2276,76 +2272,76 @@ msgid "" "only execute this code after checking ``__name__``::" msgstr "" -#: ../Doc/faq/programming.rst:1768 +#: ../Doc/faq/programming.rst:1765 msgid "How can I have modules that mutually import each other?" msgstr "" -#: ../Doc/faq/programming.rst:1770 +#: ../Doc/faq/programming.rst:1767 msgid "Suppose you have the following modules:" msgstr "" -#: ../Doc/faq/programming.rst:1772 +#: ../Doc/faq/programming.rst:1769 msgid "foo.py::" msgstr "" -#: ../Doc/faq/programming.rst:1777 +#: ../Doc/faq/programming.rst:1774 msgid "bar.py::" msgstr "" -#: ../Doc/faq/programming.rst:1782 +#: ../Doc/faq/programming.rst:1779 msgid "The problem is that the interpreter will perform the following steps:" msgstr "" -#: ../Doc/faq/programming.rst:1784 +#: ../Doc/faq/programming.rst:1781 msgid "main imports foo" msgstr "" -#: ../Doc/faq/programming.rst:1785 +#: ../Doc/faq/programming.rst:1782 msgid "Empty globals for foo are created" msgstr "" -#: ../Doc/faq/programming.rst:1786 +#: ../Doc/faq/programming.rst:1783 msgid "foo is compiled and starts executing" msgstr "" -#: ../Doc/faq/programming.rst:1787 +#: ../Doc/faq/programming.rst:1784 msgid "foo imports bar" msgstr "" -#: ../Doc/faq/programming.rst:1788 +#: ../Doc/faq/programming.rst:1785 msgid "Empty globals for bar are created" msgstr "" -#: ../Doc/faq/programming.rst:1789 +#: ../Doc/faq/programming.rst:1786 msgid "bar is compiled and starts executing" msgstr "" -#: ../Doc/faq/programming.rst:1790 +#: ../Doc/faq/programming.rst:1787 msgid "" "bar imports foo (which is a no-op since there already is a module named foo)" msgstr "" -#: ../Doc/faq/programming.rst:1791 +#: ../Doc/faq/programming.rst:1788 msgid "bar.foo_var = foo.foo_var" msgstr "" -#: ../Doc/faq/programming.rst:1793 +#: ../Doc/faq/programming.rst:1790 msgid "" "The last step fails, because Python isn't done with interpreting ``foo`` yet " "and the global symbol dictionary for ``foo`` is still empty." msgstr "" -#: ../Doc/faq/programming.rst:1796 +#: ../Doc/faq/programming.rst:1793 msgid "" "The same thing happens when you use ``import foo``, and then try to access " "``foo.foo_var`` in global code." msgstr "" -#: ../Doc/faq/programming.rst:1799 +#: ../Doc/faq/programming.rst:1796 msgid "There are (at least) three possible workarounds for this problem." msgstr "" -#: ../Doc/faq/programming.rst:1801 +#: ../Doc/faq/programming.rst:1798 msgid "" "Guido van Rossum recommends avoiding all uses of ``from import ..." "``, and placing all code inside functions. Initializations of global " @@ -2354,59 +2350,59 @@ msgid "" "``.``." msgstr "" -#: ../Doc/faq/programming.rst:1806 +#: ../Doc/faq/programming.rst:1803 msgid "" "Jim Roskind suggests performing steps in the following order in each module:" msgstr "" -#: ../Doc/faq/programming.rst:1808 +#: ../Doc/faq/programming.rst:1805 msgid "" "exports (globals, functions, and classes that don't need imported base " "classes)" msgstr "" -#: ../Doc/faq/programming.rst:1810 +#: ../Doc/faq/programming.rst:1807 msgid "``import`` statements" msgstr "" -#: ../Doc/faq/programming.rst:1811 +#: ../Doc/faq/programming.rst:1808 msgid "" "active code (including globals that are initialized from imported values)." msgstr "" -#: ../Doc/faq/programming.rst:1813 +#: ../Doc/faq/programming.rst:1810 msgid "" "van Rossum doesn't like this approach much because the imports appear in a " "strange place, but it does work." msgstr "" -#: ../Doc/faq/programming.rst:1816 +#: ../Doc/faq/programming.rst:1813 msgid "" "Matthias Urlichs recommends restructuring your code so that the recursive " "import is not necessary in the first place." msgstr "" -#: ../Doc/faq/programming.rst:1819 +#: ../Doc/faq/programming.rst:1816 msgid "These solutions are not mutually exclusive." msgstr "" -#: ../Doc/faq/programming.rst:1823 +#: ../Doc/faq/programming.rst:1820 msgid "__import__('x.y.z') returns ; how do I get z?" msgstr "" -#: ../Doc/faq/programming.rst:1825 +#: ../Doc/faq/programming.rst:1822 msgid "" "Consider using the convenience function :func:`~importlib.import_module` " "from :mod:`importlib` instead::" msgstr "" -#: ../Doc/faq/programming.rst:1832 +#: ../Doc/faq/programming.rst:1829 msgid "" "When I edit an imported module and reimport it, the changes don't show up. " "Why does this happen?" msgstr "" -#: ../Doc/faq/programming.rst:1834 +#: ../Doc/faq/programming.rst:1831 msgid "" "For reasons of efficiency as well as consistency, Python only reads the " "module file on the first time a module is imported. If it didn't, in a " @@ -2415,13 +2411,13 @@ msgid "" "re-reading of a changed module, do this::" msgstr "" -#: ../Doc/faq/programming.rst:1844 +#: ../Doc/faq/programming.rst:1841 msgid "" "Warning: this technique is not 100% fool-proof. In particular, modules " "containing statements like ::" msgstr "" -#: ../Doc/faq/programming.rst:1849 +#: ../Doc/faq/programming.rst:1846 msgid "" "will continue to work with the old version of the imported objects. If the " "module contains class definitions, existing class instances will *not* be " @@ -2429,12 +2425,15 @@ msgid "" "paradoxical behaviour::" msgstr "" -#: ../Doc/faq/programming.rst:1862 +#: ../Doc/faq/programming.rst:1859 msgid "" "The nature of the problem is made clear if you print out the \"identity\" of " "the class objects::" msgstr "" +#~ msgid "Dictionaries" +#~ msgstr "Dictionnaires" + #~ msgid "" #~ "How can I get a dictionary to store and display its keys in a consistent " #~ "order?" diff --git a/howto/logging.po b/howto/logging.po index f474595f1..293fec6a9 100644 --- a/howto/logging.po +++ b/howto/logging.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-11-12 23:09+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1174,14 +1174,15 @@ msgstr "" "personne qui ne code pas de modifier facilement les propriétés de `logging`." #: ../Doc/howto/logging.rst:695 +#, fuzzy msgid "" "The :func:`fileConfig` function takes a default parameter, " "``disable_existing_loggers``, which defaults to ``True`` for reasons of " "backward compatibility. This may or may not be what you want, since it will " -"cause any loggers existing before the :func:`fileConfig` call to be disabled " -"unless they (or an ancestor) are explicitly named in the configuration. " -"Please refer to the reference documentation for more information, and " -"specify ``False`` for this parameter if you wish." +"cause any non-root loggers existing before the :func:`fileConfig` call to be " +"disabled unless they (or an ancestor) are explicitly named in the " +"configuration. Please refer to the reference documentation for more " +"information, and specify ``False`` for this parameter if you wish." msgstr "" "La fonction :func:`fileConfig` accepte un paramètre par défaut " "``disable_existing_loggers``, qui vaut ``True`` par défaut pour des raisons " @@ -1196,8 +1197,8 @@ msgstr "" msgid "" "The dictionary passed to :func:`dictConfig` can also specify a Boolean value " "with key ``disable_existing_loggers``, which if not specified explicitly in " -"the dictionary also defaults to being interpreted as ``True``. This leads " -"to the logger-disabling behaviour described above, which may not be what you " +"the dictionary also defaults to being interpreted as ``True``. This leads to " +"the logger-disabling behaviour described above, which may not be what you " "want - in which case, provide the key explicitly with a value of ``False``." msgstr "" "Le dictionnaire passé à :func:`dictConfig` peut aussi spécifier une valeur " @@ -1322,7 +1323,7 @@ msgid "" "If for some reason you *don't* want these messages printed in the absence of " "any logging configuration, you can attach a do-nothing handler to the top-" "level logger for your library. This avoids the message being printed, since " -"a handler will be always be found for the library's events: it just doesn't " +"a handler will always be found for the library's events: it just doesn't " "produce any output. If the library user configures logging for application " "use, presumably that configuration will add some handlers, and if levels are " "suitably configured then logging calls made in library code will send output " diff --git a/howto/regex.po b/howto/regex.po index dec31e96f..eaa08e03c 100644 --- a/howto/regex.po +++ b/howto/regex.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-09-27 23:16+0200\n" "Last-Translator: Nabil Bendafi \n" "Language-Team: FRENCH \n" @@ -210,12 +210,14 @@ msgstr "" "classe de caractères, il est dépourvu de sa signification spéciale." #: ../Doc/howto/regex.rst:97 +#, fuzzy msgid "" "You can match the characters not listed within the class by :dfn:" "`complementing` the set. This is indicated by including a ``'^'`` as the " -"first character of the class; ``'^'`` outside a character class will simply " -"match the ``'^'`` character. For example, ``[^5]`` will match any character " -"except ``'5'``." +"first character of the class. For example, ``[^5]`` will match any character " +"except ``'5'``. If the caret appears elsewhere in a character class, it " +"does not have special meaning. For example: ``[5^]`` will match either a " +"``'5'`` or a ``'^'``." msgstr "" "Vous pouvez trouver une correspondance avec les caractères non listés dans " "une classe en spécifiant le :dfn:`complément` de l'ensemble. Ceci est " @@ -224,7 +226,7 @@ msgstr "" "``'^'``. Par exemple, ``[^5]`` correspond à tous les caractères, sauf " "``'5'``." -#: ../Doc/howto/regex.rst:102 +#: ../Doc/howto/regex.rst:103 msgid "" "Perhaps the most important metacharacter is the backslash, ``\\``. As in " "Python string literals, the backslash can be followed by various characters " @@ -242,7 +244,7 @@ msgstr "" "``[`` ou ``\\``, vous pouvez les précéder avec une barre oblique inverse " "pour annuler leur signification spéciale : ``\\[`` ou ``\\\\``." -#: ../Doc/howto/regex.rst:109 +#: ../Doc/howto/regex.rst:110 msgid "" "Some of the special sequences beginning with ``'\\'`` represent predefined " "sets of characters that are often useful, such as the set of digits, the set " @@ -253,7 +255,7 @@ msgstr "" "l'ensemble des chiffres, l'ensemble des lettres ou l'ensemble des caractères " "qui ne sont pas des \"blancs\"." -#: ../Doc/howto/regex.rst:114 +#: ../Doc/howto/regex.rst:115 msgid "" "Let's take an example: ``\\w`` matches any alphanumeric character. If the " "regex pattern is expressed in bytes, this is equivalent to the class ``[a-zA-" @@ -272,7 +274,7 @@ msgstr "" "\\w`` dans un motif exprimé en chaîne de caractères en spécifiant l'option :" "const:`re.ASCII` lors de la compilation de l'expression régulière." -#: ../Doc/howto/regex.rst:122 +#: ../Doc/howto/regex.rst:123 msgid "" "The following list of special sequences isn't complete. For a complete list " "of sequences and expanded class definitions for Unicode string patterns, see " @@ -288,32 +290,32 @@ msgstr "" "correspondance avec n'importe quel caractère présent dans la catégorie " "appropriée de la base de données Unicode." -#: ../Doc/howto/regex.rst:130 +#: ../Doc/howto/regex.rst:131 msgid "``\\d``" msgstr "``\\d``" -#: ../Doc/howto/regex.rst:130 +#: ../Doc/howto/regex.rst:131 msgid "Matches any decimal digit; this is equivalent to the class ``[0-9]``." msgstr "" "Correspond à n'importe quel caractère numérique ; équivalent à la classe " "``[0-9]``." -#: ../Doc/howto/regex.rst:133 +#: ../Doc/howto/regex.rst:134 msgid "``\\D``" msgstr "``\\D``" -#: ../Doc/howto/regex.rst:133 +#: ../Doc/howto/regex.rst:134 msgid "" "Matches any non-digit character; this is equivalent to the class ``[^0-9]``." msgstr "" "Correspond à n'importe caractère non numérique ; équivalent à la classe " "``[^0-9]``." -#: ../Doc/howto/regex.rst:137 +#: ../Doc/howto/regex.rst:138 msgid "``\\s``" msgstr "``\\s``" -#: ../Doc/howto/regex.rst:136 +#: ../Doc/howto/regex.rst:137 msgid "" "Matches any whitespace character; this is equivalent to the class ``[ \\t\\n" "\\r\\f\\v]``." @@ -321,11 +323,11 @@ msgstr "" "Correspond à n'importe quel caractère \"blanc\" ; équivalent à la classe " "``[ \\t\\n\\r\\f\\v]``." -#: ../Doc/howto/regex.rst:141 +#: ../Doc/howto/regex.rst:142 msgid "``\\S``" msgstr "``\\S``" -#: ../Doc/howto/regex.rst:140 +#: ../Doc/howto/regex.rst:141 msgid "" "Matches any non-whitespace character; this is equivalent to the class ``[^ " "\\t\\n\\r\\f\\v]``." @@ -333,11 +335,11 @@ msgstr "" "Correspond à n'importe caractère autre que \"blanc\" ; équivalent à la " "classe ``[^ \\t\\n\\r\\f\\v]``." -#: ../Doc/howto/regex.rst:145 +#: ../Doc/howto/regex.rst:146 msgid "``\\w``" msgstr "``\\w``" -#: ../Doc/howto/regex.rst:144 +#: ../Doc/howto/regex.rst:145 msgid "" "Matches any alphanumeric character; this is equivalent to the class ``[a-zA-" "Z0-9_]``." @@ -345,11 +347,11 @@ msgstr "" "Correspond à n'importe caractère alphanumérique ; équivalent à la classe " "``[a-zA-Z0-9_]``." -#: ../Doc/howto/regex.rst:149 +#: ../Doc/howto/regex.rst:150 msgid "``\\W``" msgstr "``\\W``" -#: ../Doc/howto/regex.rst:148 +#: ../Doc/howto/regex.rst:149 msgid "" "Matches any non-alphanumeric character; this is equivalent to the class " "``[^a-zA-Z0-9_]``." @@ -357,7 +359,7 @@ msgstr "" "Correspond à n'importe caractère non-alphanumérique ; équivalent à la classe " "``[^a-zA-Z0-9_]``." -#: ../Doc/howto/regex.rst:151 +#: ../Doc/howto/regex.rst:152 msgid "" "These sequences can be included inside a character class. For example, " "``[\\s,.]`` is a character class that will match any whitespace character, " @@ -367,7 +369,7 @@ msgstr "" "exemple, ``[\\s,.]`` est une classe de caractères qui correspond à tous les " "caractères \"blancs\" ou ``','`` ou ``'.'``." -#: ../Doc/howto/regex.rst:155 +#: ../Doc/howto/regex.rst:156 msgid "" "The final metacharacter in this section is ``.``. It matches anything " "except a newline character, and there's an alternate mode (:const:`re." @@ -380,11 +382,11 @@ msgstr "" "eu caractère de retour à la ligne. ``.`` est souvent utilisé lorsque l'on " "veut trouver une correspondance avec \"n'importe quel caractère\"." -#: ../Doc/howto/regex.rst:162 +#: ../Doc/howto/regex.rst:163 msgid "Repeating Things" msgstr "Répétitions" -#: ../Doc/howto/regex.rst:164 +#: ../Doc/howto/regex.rst:165 msgid "" "Being able to match varying sets of characters is the first thing regular " "expressions can do that isn't already possible with the methods available on " @@ -399,7 +401,7 @@ msgstr "" "Une autre utilisation consiste à spécifier des portions d'une RE qui peuvent " "être répétées un certain nombre de fois." -#: ../Doc/howto/regex.rst:170 +#: ../Doc/howto/regex.rst:171 msgid "" "The first metacharacter for repeating things that we'll look at is ``*``. " "``*`` doesn't match the literal character ``'*'``; instead, it specifies " @@ -411,7 +413,7 @@ msgstr "" "spécifie que le caractère précédent peut correspondre zéro, une ou plusieurs " "fois (au lieu d'une seule fois)." -#: ../Doc/howto/regex.rst:174 +#: ../Doc/howto/regex.rst:175 msgid "" "For example, ``ca*t`` will match ``'ct'`` (0 ``'a'`` characters), ``'cat'`` " "(1 ``'a'``), ``'caaat'`` (3 ``'a'`` characters), and so forth." @@ -420,7 +422,7 @@ msgstr "" "``'chat'`` (1 ``'a'``), ``'chaaat'`` (3 caractères ``'a'``) et ainsi de " "suite." -#: ../Doc/howto/regex.rst:177 +#: ../Doc/howto/regex.rst:178 msgid "" "Repetitions such as ``*`` are :dfn:`greedy`; when repeating a RE, the " "matching engine will try to repeat it as many times as possible. If later " @@ -433,7 +435,7 @@ msgstr "" "correspond pas, le moteur de correspondance revient en arrière et essaie " "avec moins de répétitions." -#: ../Doc/howto/regex.rst:182 +#: ../Doc/howto/regex.rst:183 msgid "" "A step-by-step example will make this more obvious. Let's consider the " "expression ``a[bcd]*b``. This matches the letter ``'a'``, zero or more " @@ -446,39 +448,39 @@ msgstr "" "Maintenant, supposons que nous cherchons une correspondance de cette RE avec " "la chaîne de caractères ``'abcbd'``." -#: ../Doc/howto/regex.rst:188 +#: ../Doc/howto/regex.rst:189 msgid "Step" msgstr "Étape" -#: ../Doc/howto/regex.rst:188 +#: ../Doc/howto/regex.rst:189 msgid "Matched" msgstr "Correspond" -#: ../Doc/howto/regex.rst:188 +#: ../Doc/howto/regex.rst:189 msgid "Explanation" msgstr "Explication" -#: ../Doc/howto/regex.rst:190 +#: ../Doc/howto/regex.rst:191 msgid "1" msgstr "1" -#: ../Doc/howto/regex.rst:190 +#: ../Doc/howto/regex.rst:191 msgid "``a``" msgstr "``a``" -#: ../Doc/howto/regex.rst:190 +#: ../Doc/howto/regex.rst:191 msgid "The ``a`` in the RE matches." msgstr "Le ``a`` correspond dans la RE." -#: ../Doc/howto/regex.rst:192 +#: ../Doc/howto/regex.rst:193 msgid "2" msgstr "2" -#: ../Doc/howto/regex.rst:192 +#: ../Doc/howto/regex.rst:193 msgid "``abcbd``" msgstr "``abcbd``" -#: ../Doc/howto/regex.rst:192 +#: ../Doc/howto/regex.rst:193 msgid "" "The engine matches ``[bcd]*``, going as far as it can, which is to the end " "of the string." @@ -486,15 +488,15 @@ msgstr "" "Le moteur de correspondance trouve ``[bcd]*``, va aussi loin qu'il le peut, " "ce qui n'est pas la fin de la chaîne." -#: ../Doc/howto/regex.rst:196 +#: ../Doc/howto/regex.rst:197 msgid "3" msgstr "3" -#: ../Doc/howto/regex.rst:196 ../Doc/howto/regex.rst:204 +#: ../Doc/howto/regex.rst:197 ../Doc/howto/regex.rst:205 msgid "*Failure*" msgstr "*échec*" -#: ../Doc/howto/regex.rst:196 +#: ../Doc/howto/regex.rst:197 msgid "" "The engine tries to match ``b``, but the current position is at the end of " "the string, so it fails." @@ -502,25 +504,25 @@ msgstr "" "Le moteur essaie de trouver une correspondance avec ``b`` mais la position " "courante est à la fin de la chaîne de caractères, donc il échoue." -#: ../Doc/howto/regex.rst:201 +#: ../Doc/howto/regex.rst:202 msgid "4" msgstr "4" -#: ../Doc/howto/regex.rst:201 ../Doc/howto/regex.rst:212 +#: ../Doc/howto/regex.rst:202 ../Doc/howto/regex.rst:213 msgid "``abcb``" msgstr "``abcb``" -#: ../Doc/howto/regex.rst:201 +#: ../Doc/howto/regex.rst:202 msgid "Back up, so that ``[bcd]*`` matches one less character." msgstr "" "Retour en arrière, de manière à ce que ``[bcd]*`` corresponde avec un " "caractère de moins." -#: ../Doc/howto/regex.rst:204 +#: ../Doc/howto/regex.rst:205 msgid "5" msgstr "5" -#: ../Doc/howto/regex.rst:204 +#: ../Doc/howto/regex.rst:205 msgid "" "Try ``b`` again, but the current position is at the last character, which is " "a ``'d'``." @@ -528,21 +530,21 @@ msgstr "" "Essaie encore ``b``, mais la position courante est le dernier caractère, qui " "est ``'d'``." -#: ../Doc/howto/regex.rst:208 ../Doc/howto/regex.rst:212 +#: ../Doc/howto/regex.rst:209 ../Doc/howto/regex.rst:213 msgid "6" msgstr "6" -#: ../Doc/howto/regex.rst:208 +#: ../Doc/howto/regex.rst:209 msgid "``abc``" msgstr "``abc``" -#: ../Doc/howto/regex.rst:208 +#: ../Doc/howto/regex.rst:209 msgid "Back up again, so that ``[bcd]*`` is only matching ``bc``." msgstr "" "Encore un retour en arrière, de manière à ce que ``[bcd]*`` ne corresponde " "qu'à ``bc``." -#: ../Doc/howto/regex.rst:212 +#: ../Doc/howto/regex.rst:213 msgid "" "Try ``b`` again. This time the character at the current position is " "``'b'``, so it succeeds." @@ -550,7 +552,7 @@ msgstr "" "Essaie ``b`` encore une fois. Cette fois, le caractère à la position " "courante est ``'b'``, donc cela fonctionne." -#: ../Doc/howto/regex.rst:218 +#: ../Doc/howto/regex.rst:219 msgid "" "The end of the RE has now been reached, and it has matched ``'abcb'``. This " "demonstrates how the matching engine goes as far as it can at first, and if " @@ -567,7 +569,7 @@ msgstr "" "pour ``[bcd]*`` et, si cela échoue toujours, le moteur conclut que la chaîne " "de caractères et la RE ne correspondent pas du tout." -#: ../Doc/howto/regex.rst:225 +#: ../Doc/howto/regex.rst:226 msgid "" "Another repeating metacharacter is ``+``, which matches one or more times. " "Pay careful attention to the difference between ``*`` and ``+``; ``*`` " @@ -584,7 +586,7 @@ msgstr "" "``'chat'`` (1 ``'a'``), ``'chaaat'`` (3 ``'a'``) mais ne correspond pas avec " "``'ct'``." -#: ../Doc/howto/regex.rst:232 +#: ../Doc/howto/regex.rst:233 msgid "" "There are two more repeating qualifiers. The question mark character, ``?" "``, matches either once or zero times; you can think of it as marking " @@ -597,7 +599,7 @@ msgstr "" "caractère`` fait correspondre soit ``métacaractère``, soit ``méta-" "caractère``." -#: ../Doc/howto/regex.rst:237 +#: ../Doc/howto/regex.rst:238 msgid "" "The most complicated repeated qualifier is ``{m,n}``, where *m* and *n* are " "decimal integers. This qualifier means there must be at least *m* " @@ -611,7 +613,7 @@ msgstr "" "b'``, ``'a//b'`` et ``'a///b'``. Elle ne fait pas correspondre ``'ab'`` (pas " "de barre oblique) ni ``'a////b'`` (quatre barres obliques)." -#: ../Doc/howto/regex.rst:243 +#: ../Doc/howto/regex.rst:244 msgid "" "You can omit either *m* or *n*; in that case, a reasonable value is assumed " "for the missing value. Omitting *m* is interpreted as a lower limit of 0, " @@ -621,7 +623,7 @@ msgstr "" "est prise pour la valeur manquante. Omettre *m* considère que la borne basse " "est 0 alors qu'omettre *n* signifie qu'il n'y a pas de borne supérieure." -#: ../Doc/howto/regex.rst:247 +#: ../Doc/howto/regex.rst:248 msgid "" "Readers of a reductionist bent may notice that the three other qualifiers " "can all be expressed using this notation. ``{0,}`` is the same as ``*``, " @@ -635,11 +637,11 @@ msgstr "" "Il est préférable d'utiliser ``*``, ``+`` ou ``?`` quand vous le pouvez, " "simplement parce qu'ils sont plus courts et plus faciles à lire." -#: ../Doc/howto/regex.rst:255 +#: ../Doc/howto/regex.rst:256 msgid "Using Regular Expressions" msgstr "Utilisation des expressions régulières" -#: ../Doc/howto/regex.rst:257 +#: ../Doc/howto/regex.rst:258 msgid "" "Now that we've looked at some simple regular expressions, how do we actually " "use them in Python? The :mod:`re` module provides an interface to the " @@ -651,11 +653,11 @@ msgstr "" "le moteur de correspondance, ce qui permet de compiler les RE en objets et " "d'effectuer des correspondances avec." -#: ../Doc/howto/regex.rst:264 +#: ../Doc/howto/regex.rst:265 msgid "Compiling Regular Expressions" msgstr "Compilation des expressions régulières" -#: ../Doc/howto/regex.rst:266 +#: ../Doc/howto/regex.rst:267 msgid "" "Regular expressions are compiled into pattern objects, which have methods " "for various operations such as searching for pattern matches or performing " @@ -665,7 +667,7 @@ msgstr "" "des méthodes pour diverses opérations telles que la recherche de " "correspondances ou les substitutions dans les chaînes. ::" -#: ../Doc/howto/regex.rst:275 +#: ../Doc/howto/regex.rst:276 msgid "" ":func:`re.compile` also accepts an optional *flags* argument, used to enable " "various special features and syntax variations. We'll go over the available " @@ -676,7 +678,7 @@ msgstr "" "étudierons la définition des variables plus tard et, pour l'instant, un seul " "exemple suffit ::" -#: ../Doc/howto/regex.rst:281 +#: ../Doc/howto/regex.rst:282 msgid "" "The RE is passed to :func:`re.compile` as a string. REs are handled as " "strings because regular expressions aren't part of the core Python language, " @@ -694,7 +696,7 @@ msgstr "" "le module :mod:`re` est simplement un module d'extension en C inclus dans " "Python, tout comme les modules :mod:`socket` ou :mod:`zlib`." -#: ../Doc/howto/regex.rst:288 +#: ../Doc/howto/regex.rst:289 msgid "" "Putting REs in strings keeps the Python language simpler, but has one " "disadvantage which is the topic of the next section." @@ -703,11 +705,11 @@ msgstr "" "simple mais introduit un inconvénient qui fait l'objet de la section " "suivante." -#: ../Doc/howto/regex.rst:295 +#: ../Doc/howto/regex.rst:296 msgid "The Backslash Plague" msgstr "La maudite barre oblique inverse" -#: ../Doc/howto/regex.rst:297 +#: ../Doc/howto/regex.rst:298 msgid "" "As stated earlier, regular expressions use the backslash character " "(``'\\'``) to indicate special forms or to allow special characters to be " @@ -721,7 +723,7 @@ msgstr "" "de Python qui est qu'un caractère doit avoir la même signification dans les " "littéraux de chaînes de caractères." -#: ../Doc/howto/regex.rst:302 +#: ../Doc/howto/regex.rst:303 msgid "" "Let's say you want to write a RE that matches the string ``\\section``, " "which might be found in a LaTeX file. To figure out what to write in the " @@ -743,40 +745,40 @@ msgstr "" "littérale Python, nous devons échapper les deux barres obliques inverses " "*encore une fois*." -#: ../Doc/howto/regex.rst:311 +#: ../Doc/howto/regex.rst:312 msgid "Characters" msgstr "Caractères" -#: ../Doc/howto/regex.rst:311 +#: ../Doc/howto/regex.rst:312 msgid "Stage" msgstr "Niveau" -#: ../Doc/howto/regex.rst:313 +#: ../Doc/howto/regex.rst:314 msgid "``\\section``" msgstr "``\\section``" -#: ../Doc/howto/regex.rst:313 +#: ../Doc/howto/regex.rst:314 msgid "Text string to be matched" msgstr "Chaîne de caractère à chercher" -#: ../Doc/howto/regex.rst:315 +#: ../Doc/howto/regex.rst:316 msgid "``\\\\section``" msgstr "``\\\\section``" -#: ../Doc/howto/regex.rst:315 +#: ../Doc/howto/regex.rst:316 msgid "Escaped backslash for :func:`re.compile`" msgstr "Barre oblique inverse échappée pour :func:`re.compile`" -#: ../Doc/howto/regex.rst:317 ../Doc/howto/regex.rst:344 +#: ../Doc/howto/regex.rst:318 ../Doc/howto/regex.rst:345 msgid "``\"\\\\\\\\section\"``" msgstr "``\"\\\\\\\\section\"``" -#: ../Doc/howto/regex.rst:317 +#: ../Doc/howto/regex.rst:318 msgid "Escaped backslashes for a string literal" msgstr "" "Barres obliques inverses échappées pour un littéral de chaîne de caractères" -#: ../Doc/howto/regex.rst:320 +#: ../Doc/howto/regex.rst:321 msgid "" "In short, to match a literal backslash, one has to write ``'\\\\\\\\'`` as " "the RE string, because the regular expression must be ``\\\\``, and each " @@ -792,7 +794,7 @@ msgstr "" "inverses, cela conduit à beaucoup de barres obliques inverses et rend la " "chaîne résultante difficile à comprendre." -#: ../Doc/howto/regex.rst:326 +#: ../Doc/howto/regex.rst:327 msgid "" "The solution is to use Python's raw string notation for regular expressions; " "backslashes are not handled in any special way in a string literal prefixed " @@ -809,7 +811,7 @@ msgstr "" "le caractère retour à la ligne. Les expressions régulières sont souvent " "écrites dans le code Python en utilisant la notation \"chaînes brutes\"." -#: ../Doc/howto/regex.rst:332 +#: ../Doc/howto/regex.rst:333 msgid "" "In addition, special escape sequences that are valid in regular expressions, " "but not valid as Python string literals, now result in a :exc:" @@ -824,39 +826,39 @@ msgstr "" "invalides si la notation \"chaîne brute\" ou l'échappement des barres " "obliques inverses ne sont pas utilisés." -#: ../Doc/howto/regex.rst:340 +#: ../Doc/howto/regex.rst:341 msgid "Regular String" msgstr "Chaîne normale" -#: ../Doc/howto/regex.rst:340 +#: ../Doc/howto/regex.rst:341 msgid "Raw string" msgstr "Chaîne de caractères brute" -#: ../Doc/howto/regex.rst:342 +#: ../Doc/howto/regex.rst:343 msgid "``\"ab*\"``" msgstr "``\"ab*\"``" -#: ../Doc/howto/regex.rst:342 +#: ../Doc/howto/regex.rst:343 msgid "``r\"ab*\"``" msgstr "``r\"ab*\"``" -#: ../Doc/howto/regex.rst:344 +#: ../Doc/howto/regex.rst:345 msgid "``r\"\\\\section\"``" msgstr "``r\"\\\\section\"``" -#: ../Doc/howto/regex.rst:346 +#: ../Doc/howto/regex.rst:347 msgid "``\"\\\\w+\\\\s+\\\\1\"``" msgstr "``\"\\\\w+\\\\s+\\\\1\"``" -#: ../Doc/howto/regex.rst:346 +#: ../Doc/howto/regex.rst:347 msgid "``r\"\\w+\\s+\\1\"``" msgstr "``r\"\\w+\\s+\\1\"``" -#: ../Doc/howto/regex.rst:351 +#: ../Doc/howto/regex.rst:352 msgid "Performing Matches" msgstr "Recherche de correspondances" -#: ../Doc/howto/regex.rst:353 +#: ../Doc/howto/regex.rst:354 msgid "" "Once you have an object representing a compiled regular expression, what do " "you do with it? Pattern objects have several methods and attributes. Only " @@ -868,47 +870,47 @@ msgstr "" "attributs. Seuls les plus significatifs seront couverts ici ; consultez la " "documentation :mod:`re` pour la liste complète." -#: ../Doc/howto/regex.rst:359 ../Doc/howto/regex.rst:417 -#: ../Doc/howto/regex.rst:1056 +#: ../Doc/howto/regex.rst:360 ../Doc/howto/regex.rst:418 +#: ../Doc/howto/regex.rst:1057 msgid "Method/Attribute" msgstr "Méthode/Attribut" -#: ../Doc/howto/regex.rst:359 ../Doc/howto/regex.rst:417 -#: ../Doc/howto/regex.rst:1056 +#: ../Doc/howto/regex.rst:360 ../Doc/howto/regex.rst:418 +#: ../Doc/howto/regex.rst:1057 msgid "Purpose" msgstr "Objectif" -#: ../Doc/howto/regex.rst:361 +#: ../Doc/howto/regex.rst:362 msgid "``match()``" msgstr "``match()``" -#: ../Doc/howto/regex.rst:361 +#: ../Doc/howto/regex.rst:362 msgid "Determine if the RE matches at the beginning of the string." msgstr "Détermine si la RE fait correspond dès le début de la chaîne." -#: ../Doc/howto/regex.rst:364 +#: ../Doc/howto/regex.rst:365 msgid "``search()``" msgstr "``search()``" -#: ../Doc/howto/regex.rst:364 +#: ../Doc/howto/regex.rst:365 msgid "Scan through a string, looking for any location where this RE matches." msgstr "Analyse la chaîne à la recherche d'une position où la RE correspond." -#: ../Doc/howto/regex.rst:367 +#: ../Doc/howto/regex.rst:368 msgid "``findall()``" msgstr "``findall()``" -#: ../Doc/howto/regex.rst:367 +#: ../Doc/howto/regex.rst:368 msgid "Find all substrings where the RE matches, and returns them as a list." msgstr "" "Trouve toutes les sous-chaînes qui correspondent à la RE et les renvoie sous " "la forme d'une liste." -#: ../Doc/howto/regex.rst:370 +#: ../Doc/howto/regex.rst:371 msgid "``finditer()``" msgstr "``finditer()``" -#: ../Doc/howto/regex.rst:370 +#: ../Doc/howto/regex.rst:371 msgid "" "Find all substrings where the RE matches, and returns them as an :term:" "`iterator`." @@ -916,7 +918,7 @@ msgstr "" "Trouve toutes les sous-chaînes qui correspondent à la RE et les renvoie sous " "la forme d'un :term:`itérateur `." -#: ../Doc/howto/regex.rst:374 +#: ../Doc/howto/regex.rst:375 msgid "" ":meth:`~re.Pattern.match` and :meth:`~re.Pattern.search` return ``None`` if " "no match can be found. If they're successful, a :ref:`match object `, vous pouvez ainsi stocker le résultat dans " "une variable pour une utilisation ultérieure. ::" -#: ../Doc/howto/regex.rst:412 +#: ../Doc/howto/regex.rst:413 msgid "" "Now you can query the :ref:`match object ` for information " "about the matching string. Match object instances also have several methods " @@ -993,44 +995,44 @@ msgstr "" "instances d'objets correspondances possèdent plusieurs méthodes et " "attributs ; les plus importants sont :" -#: ../Doc/howto/regex.rst:419 +#: ../Doc/howto/regex.rst:420 msgid "``group()``" msgstr "``group()``" -#: ../Doc/howto/regex.rst:419 +#: ../Doc/howto/regex.rst:420 msgid "Return the string matched by the RE" msgstr "Renvoie la chaîne de caractères correspondant à la RE" -#: ../Doc/howto/regex.rst:421 +#: ../Doc/howto/regex.rst:422 msgid "``start()``" msgstr "``start()``" -#: ../Doc/howto/regex.rst:421 +#: ../Doc/howto/regex.rst:422 msgid "Return the starting position of the match" msgstr "Renvoie la position de début de la correspondance" -#: ../Doc/howto/regex.rst:423 +#: ../Doc/howto/regex.rst:424 msgid "``end()``" msgstr "``end()``" -#: ../Doc/howto/regex.rst:423 +#: ../Doc/howto/regex.rst:424 msgid "Return the ending position of the match" msgstr "Renvoie la position de fin de la correspondance" -#: ../Doc/howto/regex.rst:425 +#: ../Doc/howto/regex.rst:426 msgid "``span()``" msgstr "``span()``" -#: ../Doc/howto/regex.rst:425 +#: ../Doc/howto/regex.rst:426 msgid "Return a tuple containing the (start, end) positions of the match" msgstr "" "Renvoie un *tuple* contenant les positions (début, fin) de la correspondance" -#: ../Doc/howto/regex.rst:429 +#: ../Doc/howto/regex.rst:430 msgid "Trying these methods will soon clarify their meaning::" msgstr "Essayons ces méthodes pour clarifier leur signification ::" -#: ../Doc/howto/regex.rst:438 +#: ../Doc/howto/regex.rst:439 msgid "" ":meth:`~re.Match.group` returns the substring that was matched by the RE. :" "meth:`~re.Match.start` and :meth:`~re.Match.end` return the starting and " @@ -1050,7 +1052,7 @@ msgstr "" "search` d'un motif analyse toute la chaîne, afin de trouver une " "correspondance potentielle qui ne commence pas à zéro. ::" -#: ../Doc/howto/regex.rst:455 +#: ../Doc/howto/regex.rst:456 msgid "" "In actual programs, the most common style is to store the :ref:`match object " "` in a variable, and then check if it was ``None``. This " @@ -1060,7 +1062,7 @@ msgstr "" "stocker :ref:`l'objet correspondance ` dans une variable, " "puis à vérifier s'il vaut ``None``. Généralement, cela ressemble à ceci ::" -#: ../Doc/howto/regex.rst:466 +#: ../Doc/howto/regex.rst:467 msgid "" "Two pattern methods return all of the matches for a pattern. :meth:`~re." "Pattern.findall` returns a list of matching strings::" @@ -1068,7 +1070,7 @@ msgstr "" "Deux méthodes de motifs renvoient toutes les correspondances pour un motif. :" "meth:`~re.Pattern.findall` renvoie une liste des chaînes qui correspondent ::" -#: ../Doc/howto/regex.rst:473 +#: ../Doc/howto/regex.rst:474 msgid "" "The ``r`` prefix, making the literal a raw string literal, is needed in this " "example because escape sequences in a normal \"cooked\" string literal that " @@ -1083,7 +1085,7 @@ msgstr "" "deviendront possiblement des :exc:`SyntaxError`. Reportez-vous à :ref:`the-" "backslash-plague`." -#: ../Doc/howto/regex.rst:479 +#: ../Doc/howto/regex.rst:480 msgid "" ":meth:`~re.Pattern.findall` has to create the entire list before it can be " "returned as the result. The :meth:`~re.Pattern.finditer` method returns a " @@ -1095,11 +1097,11 @@ msgstr "" "d'instances :ref:`d'objets correspondances ` en tant :term:" "`qu'itérateur ` ::" -#: ../Doc/howto/regex.rst:495 +#: ../Doc/howto/regex.rst:496 msgid "Module-Level Functions" msgstr "Fonctions de niveau module" -#: ../Doc/howto/regex.rst:497 +#: ../Doc/howto/regex.rst:498 msgid "" "You don't have to create a pattern object and call its methods; the :mod:" "`re` module also provides top-level functions called :func:`~re.match`, :" @@ -1116,7 +1118,7 @@ msgstr "" "premier argument. Elles renvoient toujours ``None`` ou une instance :ref:" "`d'objet correspondance `. ::" -#: ../Doc/howto/regex.rst:509 +#: ../Doc/howto/regex.rst:510 msgid "" "Under the hood, these functions simply create a pattern object for you and " "call the appropriate method on it. They also store the compiled object in a " @@ -1128,7 +1130,7 @@ msgstr "" "l'objet compilé dans un cache afin que les appels suivants qui utilisent la " "même RE n'aient pas besoin d'analyser le motif une nouvelle fois." -#: ../Doc/howto/regex.rst:514 +#: ../Doc/howto/regex.rst:515 msgid "" "Should you use these module-level functions, or should you get the pattern " "and call its methods yourself? If you're accessing a regex within a loop, " @@ -1141,11 +1143,11 @@ msgstr "" "d'économiser quelques appels de fonctions. En dehors des boucles, il n'y a " "pas beaucoup de différence grâce au cache interne." -#: ../Doc/howto/regex.rst:522 +#: ../Doc/howto/regex.rst:523 msgid "Compilation Flags" msgstr "Options de compilation" -#: ../Doc/howto/regex.rst:524 +#: ../Doc/howto/regex.rst:525 msgid "" "Compilation flags let you modify some aspects of how regular expressions " "work. Flags are available in the :mod:`re` module under two names, a long " @@ -1166,7 +1168,7 @@ msgstr "" "bit *OR* ; par exemple, ``re.I | re.M`` active à la fois les options :const:" "`I` et :const:`M`." -#: ../Doc/howto/regex.rst:532 +#: ../Doc/howto/regex.rst:533 msgid "" "Here's a table of the available flags, followed by a more detailed " "explanation of each one." @@ -1174,19 +1176,19 @@ msgstr "" "Vous trouvez ci-dessous le tableau des options disponibles, suivies " "d'explications détaillées." -#: ../Doc/howto/regex.rst:536 +#: ../Doc/howto/regex.rst:537 msgid "Flag" msgstr "Option" -#: ../Doc/howto/regex.rst:536 +#: ../Doc/howto/regex.rst:537 msgid "Meaning" msgstr "Signification" -#: ../Doc/howto/regex.rst:538 +#: ../Doc/howto/regex.rst:539 msgid ":const:`ASCII`, :const:`A`" msgstr ":const:`ASCII`, :const:`A`" -#: ../Doc/howto/regex.rst:538 +#: ../Doc/howto/regex.rst:539 msgid "" "Makes several escapes like ``\\w``, ``\\b``, ``\\s`` and ``\\d`` match only " "on ASCII characters with the respective property." @@ -1195,55 +1197,55 @@ msgstr "" "\\d`` de manière à ce qu'ils ne correspondent qu'à des caractères ASCII " "ayant la propriété demandée." -#: ../Doc/howto/regex.rst:542 +#: ../Doc/howto/regex.rst:543 msgid ":const:`DOTALL`, :const:`S`" msgstr ":const:`DOTALL`, :const:`S`" -#: ../Doc/howto/regex.rst:542 +#: ../Doc/howto/regex.rst:543 msgid "Make ``.`` match any character, including newlines." msgstr "" "Fait en sorte que ``.`` corresponde à n'importe quel caractère, caractère de " "retour à la ligne inclus." -#: ../Doc/howto/regex.rst:545 +#: ../Doc/howto/regex.rst:546 msgid ":const:`IGNORECASE`, :const:`I`" msgstr ":const:`IGNORECASE`, :const:`I`" -#: ../Doc/howto/regex.rst:545 +#: ../Doc/howto/regex.rst:546 msgid "Do case-insensitive matches." msgstr "Recherche une correspondance sans tenir compte de la casse." -#: ../Doc/howto/regex.rst:547 +#: ../Doc/howto/regex.rst:548 msgid ":const:`LOCALE`, :const:`L`" msgstr ":const:`LOCALE`, :const:`L`" -#: ../Doc/howto/regex.rst:547 +#: ../Doc/howto/regex.rst:548 msgid "Do a locale-aware match." msgstr "" "Recherche une correspondance en tenant compte de la configuration de la " "région." -#: ../Doc/howto/regex.rst:549 +#: ../Doc/howto/regex.rst:550 msgid ":const:`MULTILINE`, :const:`M`" msgstr ":const:`MULTILINE`, :const:`M`" -#: ../Doc/howto/regex.rst:549 +#: ../Doc/howto/regex.rst:550 msgid "Multi-line matching, affecting ``^`` and ``$``." msgstr "Correspondance multi-lignes, affecte ``^`` et ``$``." -#: ../Doc/howto/regex.rst:552 +#: ../Doc/howto/regex.rst:553 msgid ":const:`VERBOSE`, :const:`X` (for 'extended')" msgstr "" ":const:`VERBOSE`, :const:`X` (pour *extended*, c-à-d étendu en anglais)" -#: ../Doc/howto/regex.rst:552 +#: ../Doc/howto/regex.rst:553 msgid "" "Enable verbose REs, which can be organized more cleanly and understandably." msgstr "" "Active les RE verbeuses, qui peuvent être organisées de manière plus propre " "et compréhensible." -#: ../Doc/howto/regex.rst:561 +#: ../Doc/howto/regex.rst:562 msgid "" "Perform case-insensitive matching; character class and literal strings will " "match letters by ignoring case. For example, ``[A-Z]`` will match lowercase " @@ -1274,7 +1276,7 @@ msgstr "" "de région courante ; elle le fait si vous mettez aussi l'option :const:" "`LOCALE`." -#: ../Doc/howto/regex.rst:579 +#: ../Doc/howto/regex.rst:580 msgid "" "Make ``\\w``, ``\\W``, ``\\b``, ``\\B`` and case-insensitive matching " "dependent on the current locale instead of the Unicode database." @@ -1283,7 +1285,7 @@ msgstr "" "à la casse dépendants de la configuration de la région courante au lieu de " "la base de données Unicode." -#: ../Doc/howto/regex.rst:582 +#: ../Doc/howto/regex.rst:583 msgid "" "Locales are a feature of the C library intended to help in writing programs " "that take account of language differences. For example, if you're " @@ -1321,7 +1323,7 @@ msgstr "" "activée par défaut dans Python 3 pour les motifs Unicode (type *str*) et " "elle est capable de gérer différentes configurations de régions." -#: ../Doc/howto/regex.rst:604 +#: ../Doc/howto/regex.rst:605 msgid "" "(``^`` and ``$`` haven't been explained yet; they'll be introduced in " "section :ref:`more-metacharacters`.)" @@ -1329,7 +1331,7 @@ msgstr "" "Nota : ``^`` et ``$`` n'ont pas encore été expliqués ; ils sont introduits " "dans la section :ref:`more-metacharacters`." -#: ../Doc/howto/regex.rst:607 +#: ../Doc/howto/regex.rst:608 msgid "" "Usually ``^`` matches only at the beginning of the string, and ``$`` matches " "only at the end of the string and immediately before the newline (if any) at " @@ -1348,7 +1350,7 @@ msgstr "" "fin de la chaîne de caractères ou à la fin de chaque ligne (précédant " "immédiatement chaque nouvelle ligne)." -#: ../Doc/howto/regex.rst:620 +#: ../Doc/howto/regex.rst:621 msgid "" "Makes the ``'.'`` special character match any character at all, including a " "newline; without this flag, ``'.'`` will match anything *except* a newline." @@ -1357,7 +1359,7 @@ msgstr "" "caractère, y compris le retour à la ligne ; sans cette option, ``'.'`` " "correspond avec tout, *sauf* le retour à la ligne." -#: ../Doc/howto/regex.rst:628 +#: ../Doc/howto/regex.rst:629 msgid "" "Make ``\\w``, ``\\W``, ``\\b``, ``\\B``, ``\\s`` and ``\\S`` perform ASCII-" "only matching instead of full Unicode matching. This is only meaningful for " @@ -1368,7 +1370,7 @@ msgstr "" "caractères Unicode. Cette option n'a de sens que pour des motifs Unicode, " "elle est ignorée pour les motifs *bytes*." -#: ../Doc/howto/regex.rst:637 +#: ../Doc/howto/regex.rst:638 msgid "" "This flag allows you to write regular expressions that are more readable by " "granting you more flexibility in how you can format them. When this flag " @@ -1389,7 +1391,7 @@ msgstr "" "commentaires commencent par un ``'#'`` qui n'est ni dans une classe de " "caractères, ni précédé d'une barre oblique inverse." -#: ../Doc/howto/regex.rst:646 +#: ../Doc/howto/regex.rst:647 msgid "" "For example, here's a RE that uses :const:`re.VERBOSE`; see how much easier " "it is to read? ::" @@ -1397,11 +1399,11 @@ msgstr "" "Par exemple, voici une RE qui utilise :const:`re.VERBOSE` ; vous pouvez " "constater qu'elle est beaucoup plus facile à lire ::" -#: ../Doc/howto/regex.rst:659 +#: ../Doc/howto/regex.rst:660 msgid "Without the verbose setting, the RE would look like this::" msgstr "Sans l'option verbeuse, cette RE ressemble à ceci ::" -#: ../Doc/howto/regex.rst:665 +#: ../Doc/howto/regex.rst:666 msgid "" "In the above example, Python's automatic concatenation of string literals " "has been used to break up the RE into smaller pieces, but it's still more " @@ -1412,11 +1414,11 @@ msgstr "" "morceaux, mais la RE reste plus difficile à comprendre que sa version " "utilisant :const:`re.VERBOSE`." -#: ../Doc/howto/regex.rst:671 +#: ../Doc/howto/regex.rst:672 msgid "More Pattern Power" msgstr "Des motifs plus puissants" -#: ../Doc/howto/regex.rst:673 +#: ../Doc/howto/regex.rst:674 msgid "" "So far we've only covered a part of the features of regular expressions. In " "this section, we'll cover some new metacharacters, and how to use groups to " @@ -1427,11 +1429,11 @@ msgstr "" "nouveaux métacaractères et l'utilisation des groupes pour récupérer des " "portions de textes correspondantes." -#: ../Doc/howto/regex.rst:681 +#: ../Doc/howto/regex.rst:682 msgid "More Metacharacters" msgstr "Plus de métacaractères" -#: ../Doc/howto/regex.rst:683 +#: ../Doc/howto/regex.rst:684 msgid "" "There are some metacharacters that we haven't covered yet. Most of them " "will be covered in this section." @@ -1439,7 +1441,7 @@ msgstr "" "Nous n'avons pas encore couvert tous les métacaractères. Cette section " "traite de la plupart de ceux que nous n'avons pas abordés." -#: ../Doc/howto/regex.rst:686 +#: ../Doc/howto/regex.rst:687 msgid "" "Some of the remaining metacharacters to be discussed are :dfn:`zero-width " "assertions`. They don't cause the engine to advance through the string; " @@ -1460,11 +1462,11 @@ msgstr "" "correspondent à un endroit donné, elles correspondent automatiquement un " "nombre infini de fois." -#: ../Doc/howto/regex.rst:702 +#: ../Doc/howto/regex.rst:703 msgid "``|``" msgstr "``|``" -#: ../Doc/howto/regex.rst:695 +#: ../Doc/howto/regex.rst:696 msgid "" "Alternation, or the \"or\" operator. If *A* and *B* are regular " "expressions, ``A|B`` will match any string that matches either *A* or *B*. " @@ -1480,7 +1482,7 @@ msgstr "" "``'Crow'`` ou ``'Servo'``, mais pas avec ``'Cro'``, un ``'w'`` ou un " "``'S'``, ou encore ``'ervo'``." -#: ../Doc/howto/regex.rst:701 +#: ../Doc/howto/regex.rst:702 msgid "" "To match a literal ``'|'``, use ``\\|``, or enclose it inside a character " "class, as in ``[|]``." @@ -1488,11 +1490,11 @@ msgstr "" "Pour correspondre avec un ``'|'`` littéral, utilisez ``\\|`` ou placez-le " "dans une classe de caractères, comme ceci ``[|]``." -#: ../Doc/howto/regex.rst:717 +#: ../Doc/howto/regex.rst:718 msgid "``^``" msgstr "``^``" -#: ../Doc/howto/regex.rst:705 +#: ../Doc/howto/regex.rst:706 msgid "" "Matches at the beginning of lines. Unless the :const:`MULTILINE` flag has " "been set, this will only match at the beginning of the string. In :const:" @@ -1504,7 +1506,7 @@ msgstr "" "mode :const:`MULTILINE`, cela fait aussi correspondre immédiatement après " "chaque nouvelle ligne à l'intérieur de la chaîne." -#: ../Doc/howto/regex.rst:709 +#: ../Doc/howto/regex.rst:710 msgid "" "For example, if you wish to match the word ``From`` only at the beginning of " "a line, the RE to use is ``^From``. ::" @@ -1512,15 +1514,15 @@ msgstr "" "Par exemple, si vous voulez trouver le mot ``From`` uniquement quand il est " "en début de ligne, la RE à utiliser est ``^From``. ::" -#: ../Doc/howto/regex.rst:717 +#: ../Doc/howto/regex.rst:718 msgid "To match a literal ``'^'``, use ``\\^``." msgstr "Pour trouver un ``'^'`` littéral, utilisez ``\\^``." -#: ../Doc/howto/regex.rst:731 +#: ../Doc/howto/regex.rst:732 msgid "``$``" msgstr "``$``" -#: ../Doc/howto/regex.rst:720 +#: ../Doc/howto/regex.rst:721 msgid "" "Matches at the end of a line, which is defined as either the end of the " "string, or any location followed by a newline character. ::" @@ -1528,7 +1530,7 @@ msgstr "" "Correspond à une fin de ligne, ce qui veut dire soit la fin de la chaîne, " "soit tout emplacement qui est suivi du caractère de nouvelle ligne. ::" -#: ../Doc/howto/regex.rst:730 +#: ../Doc/howto/regex.rst:731 msgid "" "To match a literal ``'$'``, use ``\\$`` or enclose it inside a character " "class, as in ``[$]``." @@ -1536,11 +1538,11 @@ msgstr "" "Pour trouver un ``'$'`` littéral, utilisez ``\\$`` ou placez-le à " "l'intérieur d'une classe de caractères, comme ceci ``[$]``." -#: ../Doc/howto/regex.rst:737 +#: ../Doc/howto/regex.rst:738 msgid "``\\A``" msgstr "``\\A``" -#: ../Doc/howto/regex.rst:734 +#: ../Doc/howto/regex.rst:735 msgid "" "Matches only at the start of the string. When not in :const:`MULTILINE` " "mode, ``\\A`` and ``^`` are effectively the same. In :const:`MULTILINE` " @@ -1555,19 +1557,19 @@ msgstr "" "emplacements situés immédiatement après une nouvelle ligne à l'intérieur de " "la chaîne." -#: ../Doc/howto/regex.rst:740 +#: ../Doc/howto/regex.rst:741 msgid "``\\Z``" msgstr "``\\Z``" -#: ../Doc/howto/regex.rst:740 +#: ../Doc/howto/regex.rst:741 msgid "Matches only at the end of the string." msgstr "Correspond uniquement à la fin d'une chaîne de caractères." -#: ../Doc/howto/regex.rst:775 +#: ../Doc/howto/regex.rst:776 msgid "``\\b``" msgstr "``\\b``" -#: ../Doc/howto/regex.rst:743 +#: ../Doc/howto/regex.rst:744 msgid "" "Word boundary. This is a zero-width assertion that matches only at the " "beginning or end of a word. A word is defined as a sequence of alphanumeric " @@ -1579,7 +1581,7 @@ msgstr "" "séquence de caractères alphanumériques ; ainsi, la fin d'un mot est indiquée " "par un \"blanc\" ou un caractère non-alphanumérique." -#: ../Doc/howto/regex.rst:748 +#: ../Doc/howto/regex.rst:749 msgid "" "The following example matches ``class`` only when it's a complete word; it " "won't match when it's contained inside another word. ::" @@ -1588,7 +1590,7 @@ msgstr "" "complet ; il n'y a pas de correspondance quand il est à l'intérieur d'un " "autre mot. ::" -#: ../Doc/howto/regex.rst:759 +#: ../Doc/howto/regex.rst:760 msgid "" "There are two subtleties you should remember when using this special " "sequence. First, this is the worst collision between Python's string " @@ -1608,7 +1610,7 @@ msgstr "" "ressemble à notre RE précédente, mais nous avons omis le ```'r'`` devant la " "chaîne RE. ::" -#: ../Doc/howto/regex.rst:773 +#: ../Doc/howto/regex.rst:774 msgid "" "Second, inside a character class, where there's no use for this assertion, ``" "\\b`` represents the backspace character, for compatibility with Python's " @@ -1618,11 +1620,11 @@ msgstr "" "d'être, ``\\b`` représente le caractère retour-arrière, afin d'être " "compatible avec les littéraux de chaînes de caractères." -#: ../Doc/howto/regex.rst:780 +#: ../Doc/howto/regex.rst:781 msgid "``\\B``" msgstr "``\\B``" -#: ../Doc/howto/regex.rst:778 +#: ../Doc/howto/regex.rst:779 msgid "" "Another zero-width assertion, this is the opposite of ``\\b``, only matching " "when the current position is not at a word boundary." @@ -1631,11 +1633,11 @@ msgstr "" "dire qu'elle fait correspondre uniquement les emplacements qui ne sont pas à " "la limite d'un mot." -#: ../Doc/howto/regex.rst:783 +#: ../Doc/howto/regex.rst:784 msgid "Grouping" msgstr "Regroupement" -#: ../Doc/howto/regex.rst:785 +#: ../Doc/howto/regex.rst:786 msgid "" "Frequently you need to obtain more information than just whether the RE " "matched or not. Regular expressions are often used to dissect strings by " @@ -1651,7 +1653,7 @@ msgstr "" "diviser en un nom d'en-tête et une valeur associée, séparés par un ``':'``, " "comme ceci :" -#: ../Doc/howto/regex.rst:798 +#: ../Doc/howto/regex.rst:799 msgid "" "This can be handled by writing a regular expression which matches an entire " "header line, and has one group which matches the header name, and another " @@ -1661,7 +1663,7 @@ msgstr "" "ligne d'en-tête entière et qui comporte un groupe correspondant au nom de " "l'en-tête, et un autre groupe correspondant à la valeur de l'en-tête." -#: ../Doc/howto/regex.rst:802 +#: ../Doc/howto/regex.rst:803 msgid "" "Groups are marked by the ``'('``, ``')'`` metacharacters. ``'('`` and " "``')'`` have much the same meaning as they do in mathematical expressions; " @@ -1677,7 +1679,7 @@ msgstr "" "quantificateur, comme ``*``, ``+``, ``?`` ou ``{m,n}``. Par exemple, " "``(ab)*`` correspond à zéro, une ou plusieurs fois ``ab``. ::" -#: ../Doc/howto/regex.rst:813 +#: ../Doc/howto/regex.rst:814 msgid "" "Groups indicated with ``'('``, ``')'`` also capture the starting and ending " "index of the text that they match; this can be retrieved by passing an " @@ -1698,7 +1700,7 @@ msgstr "" "voyons comment exprimer les groupes qui ne capturent pas l'étendue du texte " "avec lequel ils correspondent. ::" -#: ../Doc/howto/regex.rst:829 +#: ../Doc/howto/regex.rst:830 msgid "" "Subgroups are numbered from left to right, from 1 upward. Groups can be " "nested; to determine the number, just count the opening parenthesis " @@ -1709,7 +1711,7 @@ msgstr "" "suffit de compter le nombre de parenthèses ouvrantes de la gauche vers la " "droite. ::" -#: ../Doc/howto/regex.rst:842 +#: ../Doc/howto/regex.rst:843 msgid "" ":meth:`~re.Match.group` can be passed multiple group numbers at a time, in " "which case it will return a tuple containing the corresponding values for " @@ -1719,7 +1721,7 @@ msgstr "" "même temps, elle vous renvoie alors un *tuple* contenant les valeurs " "correspondantes pour ces groupes. ::" -#: ../Doc/howto/regex.rst:848 +#: ../Doc/howto/regex.rst:849 msgid "" "The :meth:`~re.Match.groups` method returns a tuple containing the strings " "for all the subgroups, from 1 up to however many there are. ::" @@ -1728,7 +1730,7 @@ msgstr "" "chaînes pour tous les sous-groupes, en commençant par le numéro 1 jusqu'au " "dernier. ::" -#: ../Doc/howto/regex.rst:854 +#: ../Doc/howto/regex.rst:855 msgid "" "Backreferences in a pattern allow you to specify that the contents of an " "earlier capturing group must also be found at the current location in the " @@ -1746,12 +1748,12 @@ msgstr "" "d'un nombre pour insérer des caractères arbitraires dans une chaîne ; soyez " "sûr d'utiliser une chaîne brute quand vous faites des renvois dans une RE." -#: ../Doc/howto/regex.rst:862 +#: ../Doc/howto/regex.rst:863 msgid "For example, the following RE detects doubled words in a string. ::" msgstr "" "Par exemple, la RE suivante détecte les mots doublés dans une chaîne. ::" -#: ../Doc/howto/regex.rst:868 +#: ../Doc/howto/regex.rst:869 msgid "" "Backreferences like this aren't often useful for just searching through a " "string --- there are few text formats which repeat data in this way --- but " @@ -1763,11 +1765,11 @@ msgstr "" "qui répètent des données ainsi --- mais vous verrez bientôt qu'ils sont " "*très* utiles pour effectuer des substitutions dans les chaînes." -#: ../Doc/howto/regex.rst:874 +#: ../Doc/howto/regex.rst:875 msgid "Non-capturing and Named Groups" msgstr "Groupes non de capture et groupes nommés" -#: ../Doc/howto/regex.rst:876 +#: ../Doc/howto/regex.rst:877 msgid "" "Elaborate REs may use many groups, both to capture substrings of interest, " "and to group and structure the RE itself. In complex REs, it becomes " @@ -1783,7 +1785,7 @@ msgstr "" "expressions régulières. Nous allons donc commencer en examinant cette " "syntaxe." -#: ../Doc/howto/regex.rst:882 +#: ../Doc/howto/regex.rst:883 msgid "" "Perl 5 is well known for its powerful additions to standard regular " "expressions. For these new features the Perl developers couldn't choose new " @@ -1802,7 +1804,7 @@ msgstr "" "auraient considéré que ``&`` était un caractère standard et ne l'aurait pas " "échappé en écrivant ``\\&`` ou ``[&]``." -#: ../Doc/howto/regex.rst:889 +#: ../Doc/howto/regex.rst:890 msgid "" "The solution chosen by the Perl developers was to use ``(?...)`` as the " "extension syntax. ``?`` immediately after a parenthesis was a syntax error " @@ -1820,7 +1822,7 @@ msgstr "" "donc ``(?=truc)`` est une chose (une assertion positive anticipée) et ``(?:" "truc)`` est une autre chose (la sous-expression ``truc`` que l'on groupe)." -#: ../Doc/howto/regex.rst:897 +#: ../Doc/howto/regex.rst:898 msgid "" "Python supports several of Perl's extensions and adds an extension syntax to " "Perl's extension syntax. If the first character after the question mark is " @@ -1831,7 +1833,7 @@ msgstr "" "d'interrogation est ``P``, cela signifie que c'est une extension spécifique " "à Python." -#: ../Doc/howto/regex.rst:902 +#: ../Doc/howto/regex.rst:903 msgid "" "Now that we've looked at the general extension syntax, we can return to the " "features that simplify working with groups in complex REs." @@ -1840,7 +1842,7 @@ msgstr "" "aux fonctionnalités qui simplifient le travail avec les groupes dans des RE " "complexes." -#: ../Doc/howto/regex.rst:905 +#: ../Doc/howto/regex.rst:906 msgid "" "Sometimes you'll want to use a group to denote a part of a regular " "expression, but aren't interested in retrieving the group's contents. You " @@ -1854,7 +1856,7 @@ msgstr "" "``(?:...)``, où vous remplacez les ``...`` par n'importe quelle expression " "régulière. ::" -#: ../Doc/howto/regex.rst:917 +#: ../Doc/howto/regex.rst:918 msgid "" "Except for the fact that you can't retrieve the contents of what the group " "matched, a non-capturing group behaves exactly the same as a capturing " @@ -1876,7 +1878,7 @@ msgstr "" "qu'il n'y a aucune différence de performance dans la recherche de groupes, " "de capture ou non ; les deux formes travaillent à la même vitesse." -#: ../Doc/howto/regex.rst:926 +#: ../Doc/howto/regex.rst:927 msgid "" "A more significant feature is named groups: instead of referring to them by " "numbers, groups can be referenced by a name." @@ -1885,7 +1887,7 @@ msgstr "" "faire référence par des nombres, vous pouvez référencer des groupes par leur " "nom." -#: ../Doc/howto/regex.rst:929 +#: ../Doc/howto/regex.rst:930 msgid "" "The syntax for a named group is one of the Python-specific extensions: ``(?" "P...)``. *name* is, obviously, the name of the group. Named groups " @@ -1906,7 +1908,7 @@ msgstr "" "désirés. Les groupes nommés se voient toujours attribuer un numéro, vous " "pouvez ainsi récupérer les informations d'un groupe de deux façons ::" -#: ../Doc/howto/regex.rst:944 +#: ../Doc/howto/regex.rst:945 msgid "" "Named groups are handy because they let you use easily-remembered names, " "instead of having to remember numbers. Here's an example RE from the :mod:" @@ -1915,7 +1917,7 @@ msgstr "" "Les groupes nommés sont pratiques car il est plus facile de se rappeler un " "nom qu'un numéro. Voici un exemple de RE tirée du module :mod:`imaplib` ::" -#: ../Doc/howto/regex.rst:955 +#: ../Doc/howto/regex.rst:956 msgid "" "It's obviously much easier to retrieve ``m.group('zonem')``, instead of " "having to remember to retrieve group 9." @@ -1923,7 +1925,7 @@ msgstr "" "Il est évidemment plus facile de récupérer ``m.group('zonem')`` que de se " "rappeler de récupérer le groupe 9." -#: ../Doc/howto/regex.rst:958 +#: ../Doc/howto/regex.rst:959 msgid "" "The syntax for backreferences in an expression such as ``(...)\\1`` refers " "to the number of the group. There's naturally a variant that uses the group " @@ -1941,11 +1943,11 @@ msgstr "" "mots doublés, ``\\b(\\w+)\\s+\\1\\b`` peut ainsi être ré-écrite en ``\\b(?" "P\\w+)\\s+(?P=mot)\\b`` ::" -#: ../Doc/howto/regex.rst:971 +#: ../Doc/howto/regex.rst:972 msgid "Lookahead Assertions" msgstr "Assertions prédictives" -#: ../Doc/howto/regex.rst:973 +#: ../Doc/howto/regex.rst:974 msgid "" "Another zero-width assertion is the lookahead assertion. Lookahead " "assertions are available in both positive and negative form, and look like " @@ -1955,11 +1957,11 @@ msgstr "" "assertion prédictive peut s'exprimer sous deux formes, la positive et la " "négative, comme ceci :" -#: ../Doc/howto/regex.rst:981 +#: ../Doc/howto/regex.rst:982 msgid "``(?=...)``" msgstr "``(?=...)``" -#: ../Doc/howto/regex.rst:977 +#: ../Doc/howto/regex.rst:978 msgid "" "Positive lookahead assertion. This succeeds if the contained regular " "expression, represented here by ``...``, successfully matches at the current " @@ -1974,11 +1976,11 @@ msgstr "" "n'avance pas ; le reste du motif est testé à l'endroit même où l'assertion a " "commencé." -#: ../Doc/howto/regex.rst:986 +#: ../Doc/howto/regex.rst:987 msgid "``(?!...)``" msgstr "``(?!...)``" -#: ../Doc/howto/regex.rst:984 +#: ../Doc/howto/regex.rst:985 msgid "" "Negative lookahead assertion. This is the opposite of the positive " "assertion; it succeeds if the contained expression *doesn't* match at the " @@ -1988,7 +1990,7 @@ msgstr "" "elle réussit si l'expression régulière contenue *ne* correspond *pas* à " "l'emplacement courant dans la chaine." -#: ../Doc/howto/regex.rst:988 +#: ../Doc/howto/regex.rst:989 msgid "" "To make this concrete, let's look at a case where a lookahead is useful. " "Consider a simple pattern to match a filename and split it apart into a base " @@ -2001,15 +2003,15 @@ msgstr "" "exemple, dans ``news.rc``, ``news`` est le nom de base et ``rc`` est " "l'extension du nom de fichier." -#: ../Doc/howto/regex.rst:993 +#: ../Doc/howto/regex.rst:994 msgid "The pattern to match this is quite simple:" msgstr "Le motif de correspondance est plutôt simple :" -#: ../Doc/howto/regex.rst:995 +#: ../Doc/howto/regex.rst:996 msgid "``.*[.].*$``" msgstr "``.*[.].*$``" -#: ../Doc/howto/regex.rst:997 +#: ../Doc/howto/regex.rst:998 msgid "" "Notice that the ``.`` needs to be treated specially because it's a " "metacharacter, so it's inside a character class to only match that specific " @@ -2025,7 +2027,7 @@ msgstr "" "bien inclus dans l'extension. Cette expression régulière fait correspondre " "``truc.bar``, ``autoexec.bat``, ``sendmail.cf`` et ``printers.conf``." -#: ../Doc/howto/regex.rst:1004 +#: ../Doc/howto/regex.rst:1005 msgid "" "Now, consider complicating the problem a bit; what if you want to match " "filenames where the extension is not ``bat``? Some incorrect attempts:" @@ -2034,7 +2036,7 @@ msgstr "" "correspondre les noms de fichiers dont l'extension n'est pas ``bat`` ? voici " "quelques tentatives incorrectes :" -#: ../Doc/howto/regex.rst:1007 +#: ../Doc/howto/regex.rst:1008 msgid "" "``.*[.][^b].*$`` The first attempt above tries to exclude ``bat`` by " "requiring that the first character of the extension is not a ``b``. This is " @@ -2044,11 +2046,11 @@ msgstr "" "spécifiant que le premier caractère de l'extension ne doit pas être ``b``. " "Cela ne fonctionne pas, car le motif n'accepte pas ``truc.bar``." -#: ../Doc/howto/regex.rst:1011 +#: ../Doc/howto/regex.rst:1012 msgid "``.*[.]([^b]..|.[^a].|..[^t])$``" msgstr "``.*[.]([^b]..|.[^a].|..[^t])$``" -#: ../Doc/howto/regex.rst:1013 +#: ../Doc/howto/regex.rst:1014 msgid "" "The expression gets messier when you try to patch up the first solution by " "requiring one of the following cases to match: the first character of the " @@ -2067,11 +2069,11 @@ msgstr "" "``sendmail.cf``. Compliquons encore une fois le motif pour essayer de le " "réparer." -#: ../Doc/howto/regex.rst:1021 +#: ../Doc/howto/regex.rst:1022 msgid "``.*[.]([^b].?.?|.[^a]?.?|..?[^t]?)$``" msgstr "``.*[.]([^b].?.?|.[^a]?.?|..?[^t]?)$``" -#: ../Doc/howto/regex.rst:1023 +#: ../Doc/howto/regex.rst:1024 msgid "" "In the third attempt, the second and third letters are all made optional in " "order to allow matching extensions shorter than three characters, such as " @@ -2081,7 +2083,7 @@ msgstr "" "devenues facultatives afin de permettre la correspondance avec des " "extensions plus courtes que trois caractères, comme ``sendmail.cf``." -#: ../Doc/howto/regex.rst:1027 +#: ../Doc/howto/regex.rst:1028 msgid "" "The pattern's getting really complicated now, which makes it hard to read " "and understand. Worse, if the problem changes and you want to exclude both " @@ -2093,11 +2095,11 @@ msgstr "" "à la fois ``bat`` et ``exe`` en tant qu'extensions, le modèle deviendra " "encore plus compliqué et confus." -#: ../Doc/howto/regex.rst:1032 +#: ../Doc/howto/regex.rst:1033 msgid "A negative lookahead cuts through all this confusion:" msgstr "Une assertion prédictive négative supprime toute cette confusion :" -#: ../Doc/howto/regex.rst:1034 +#: ../Doc/howto/regex.rst:1035 msgid "" "``.*[.](?!bat$)[^.]*$`` The negative lookahead means: if the expression " "``bat`` doesn't match at this point, try the rest of the pattern; if ``bat" @@ -2114,7 +2116,7 @@ msgstr "" "``[^...]*`` s'assure que le motif fonctionne lorsqu'il y a plusieurs points " "dans le nom de fichier." -#: ../Doc/howto/regex.rst:1041 +#: ../Doc/howto/regex.rst:1042 msgid "" "Excluding another filename extension is now easy; simply add it as an " "alternative inside the assertion. The following pattern excludes filenames " @@ -2124,15 +2126,15 @@ msgstr "" "suffit de l'ajouter comme alternative à l'intérieur de l'assertion. Le motif " "suivant exclut les noms de fichiers qui se terminent par ``bat`` ou ``exe`` :" -#: ../Doc/howto/regex.rst:1045 +#: ../Doc/howto/regex.rst:1046 msgid "``.*[.](?!bat$|exe$)[^.]*$``" msgstr "``.*[.](?!bat$|exe$)[^.]*$``" -#: ../Doc/howto/regex.rst:1049 +#: ../Doc/howto/regex.rst:1050 msgid "Modifying Strings" msgstr "Modification de chaînes" -#: ../Doc/howto/regex.rst:1051 +#: ../Doc/howto/regex.rst:1052 msgid "" "Up to this point, we've simply performed searches against a static string. " "Regular expressions are also commonly used to modify strings in various " @@ -2143,21 +2145,21 @@ msgstr "" "pour modifier les chaînes de caractères de diverses manières, en utilisant " "les méthodes suivantes des motifs :" -#: ../Doc/howto/regex.rst:1058 +#: ../Doc/howto/regex.rst:1059 msgid "``split()``" msgstr "``split()``" -#: ../Doc/howto/regex.rst:1058 +#: ../Doc/howto/regex.rst:1059 msgid "Split the string into a list, splitting it wherever the RE matches" msgstr "" "Découpe la chaîne de caractère en liste, la découpant partout où la RE " "correspond" -#: ../Doc/howto/regex.rst:1061 +#: ../Doc/howto/regex.rst:1062 msgid "``sub()``" msgstr "``sub()``" -#: ../Doc/howto/regex.rst:1061 +#: ../Doc/howto/regex.rst:1062 msgid "" "Find all substrings where the RE matches, and replace them with a different " "string" @@ -2165,11 +2167,11 @@ msgstr "" "Recherche toutes les sous-chaînes de caractères où la RE correspond et les " "substitue par une chaîne de caractères différente" -#: ../Doc/howto/regex.rst:1064 +#: ../Doc/howto/regex.rst:1065 msgid "``subn()``" msgstr "``subn()``" -#: ../Doc/howto/regex.rst:1064 +#: ../Doc/howto/regex.rst:1065 msgid "" "Does the same thing as :meth:`!sub`, but returns the new string and the " "number of replacements" @@ -2177,11 +2179,11 @@ msgstr "" "Fait la même chose que :meth:`!sub`, mais renvoie la nouvelle chaîne et le " "nombre de remplacements effectués" -#: ../Doc/howto/regex.rst:1071 +#: ../Doc/howto/regex.rst:1072 msgid "Splitting Strings" msgstr "Découpage de chaînes" -#: ../Doc/howto/regex.rst:1073 +#: ../Doc/howto/regex.rst:1074 msgid "" "The :meth:`~re.Pattern.split` method of a pattern splits a string apart " "wherever the RE matches, returning a list of the pieces. It's similar to " @@ -2198,7 +2200,7 @@ msgstr "" "\"blancs\" ou suivant une chaîne définie. Comme vous pouvez vous y attendre, " "il y a aussi une fonction :func:`re.split` de niveau module." -#: ../Doc/howto/regex.rst:1084 +#: ../Doc/howto/regex.rst:1085 msgid "" "Split *string* by the matches of the regular expression. If capturing " "parentheses are used in the RE, then their contents will also be returned as " @@ -2210,7 +2212,7 @@ msgstr "" "également renvoyé dans la liste résultante. Si *maxsplit* n'est pas nul, au " "plus *maxsplit* découpages sont effectués." -#: ../Doc/howto/regex.rst:1089 +#: ../Doc/howto/regex.rst:1090 msgid "" "You can limit the number of splits made, by passing a value for *maxsplit*. " "When *maxsplit* is nonzero, at most *maxsplit* splits will be made, and the " @@ -2224,7 +2226,7 @@ msgstr "" "élément de la liste. Dans l'exemple suivant, le délimiteur est toute " "séquence de caractères non alphanumériques. ::" -#: ../Doc/howto/regex.rst:1101 +#: ../Doc/howto/regex.rst:1102 msgid "" "Sometimes you're not only interested in what the text between delimiters is, " "but also need to know what the delimiter was. If capturing parentheses are " @@ -2236,7 +2238,7 @@ msgstr "" "la RE, leurs valeurs sont également renvoyées dans la liste. Comparons les " "appels suivants ::" -#: ../Doc/howto/regex.rst:1113 +#: ../Doc/howto/regex.rst:1114 msgid "" "The module-level function :func:`re.split` adds the RE to be used as the " "first argument, but is otherwise the same. ::" @@ -2244,11 +2246,11 @@ msgstr "" "La fonction de niveau module :func:`re.split` ajoute la RE à utiliser comme " "premier argument, mais est par ailleurs identique. ::" -#: ../Doc/howto/regex.rst:1125 +#: ../Doc/howto/regex.rst:1126 msgid "Search and Replace" msgstr "Recherche et substitution" -#: ../Doc/howto/regex.rst:1127 +#: ../Doc/howto/regex.rst:1128 msgid "" "Another common task is to find all the matches for a pattern, and replace " "them with a different string. The :meth:`~re.Pattern.sub` method takes a " @@ -2260,7 +2262,7 @@ msgstr "" "Pattern.sub` prend une valeur de substitution, qui peut être une chaîne de " "caractères ou une fonction, et la chaîne à traiter." -#: ../Doc/howto/regex.rst:1134 +#: ../Doc/howto/regex.rst:1135 msgid "" "Returns the string obtained by replacing the leftmost non-overlapping " "occurrences of the RE in *string* by the replacement *replacement*. If the " @@ -2270,7 +2272,7 @@ msgstr "" "les plus à gauche de la RE dans *string* par la substitution *replacement*. " "Si le motif n'est pas trouvé, *string* est renvoyée inchangée." -#: ../Doc/howto/regex.rst:1138 +#: ../Doc/howto/regex.rst:1139 msgid "" "The optional argument *count* is the maximum number of pattern occurrences " "to be replaced; *count* must be a non-negative integer. The default value " @@ -2280,7 +2282,7 @@ msgstr "" "remplacer ; *count* doit être un entier positif ou nul. La valeur par défaut " "de 0 signifie qu'il faut remplacer toutes les occurrences." -#: ../Doc/howto/regex.rst:1142 +#: ../Doc/howto/regex.rst:1143 msgid "" "Here's a simple example of using the :meth:`~re.Pattern.sub` method. It " "replaces colour names with the word ``colour``::" @@ -2288,7 +2290,7 @@ msgstr "" "Voici un exemple simple utilisant la méthode :meth:`~re.Pattern.sub`. Nous " "remplaçons les noms des couleurs par le mot ``colour`` ::" -#: ../Doc/howto/regex.rst:1151 +#: ../Doc/howto/regex.rst:1152 msgid "" "The :meth:`~re.Pattern.subn` method does the same work, but returns a 2-" "tuple containing the new string value and the number of replacements that " @@ -2298,7 +2300,7 @@ msgstr "" "couple contenant la nouvelle valeur de la chaîne de caractères et le nombre " "de remplacements effectués ::" -#: ../Doc/howto/regex.rst:1160 +#: ../Doc/howto/regex.rst:1161 msgid "" "Empty matches are replaced only when they're not adjacent to a previous " "empty match. ::" @@ -2306,7 +2308,7 @@ msgstr "" "Les correspondances vides ne sont remplacées que lorsqu'elles ne sont pas " "adjacentes à une correspondance vide précédente. ::" -#: ../Doc/howto/regex.rst:1167 +#: ../Doc/howto/regex.rst:1168 msgid "" "If *replacement* is a string, any backslash escapes in it are processed. " "That is, ``\\n`` is converted to a single newline character, ``\\r`` is " @@ -2324,7 +2326,7 @@ msgstr "" "correspondante au groupe dans le RE. Ceci vous permet d'incorporer des " "parties du texte original dans la chaîne de remplacement résultante." -#: ../Doc/howto/regex.rst:1174 +#: ../Doc/howto/regex.rst:1175 msgid "" "This example matches the word ``section`` followed by a string enclosed in " "``{``, ``}``, and changes ``section`` to ``subsection``::" @@ -2332,7 +2334,7 @@ msgstr "" "Cet exemple fait correspondre le mot ``section`` suivi par une chaîne " "encadrée par ``{`` et ``}``, et modifie ``section`` en ``subsection`` ::" -#: ../Doc/howto/regex.rst:1181 +#: ../Doc/howto/regex.rst:1182 msgid "" "There's also a syntax for referring to named groups as defined by the ``(?" "P...)`` syntax. ``\\g`` will use the substring matched by the " @@ -2353,7 +2355,7 @@ msgstr "" "substitutions suivantes sont toutes équivalentes mais utilisent les trois " "variantes de la chaîne de remplacement. ::" -#: ../Doc/howto/regex.rst:1198 +#: ../Doc/howto/regex.rst:1199 msgid "" "*replacement* can also be a function, which gives you even more control. If " "*replacement* is a function, the function is called for every non-" @@ -2368,7 +2370,7 @@ msgstr "" "fonction, qui peut utiliser cette information pour calculer la chaîne de " "remplacement désirée et la renvoyer." -#: ../Doc/howto/regex.rst:1204 +#: ../Doc/howto/regex.rst:1205 msgid "" "In the following example, the replacement function translates decimals into " "hexadecimal::" @@ -2376,7 +2378,7 @@ msgstr "" "Dans l'exemple suivant, la fonction de substitution convertit un nombre " "décimal en hexadécimal ::" -#: ../Doc/howto/regex.rst:1216 +#: ../Doc/howto/regex.rst:1217 msgid "" "When using the module-level :func:`re.sub` function, the pattern is passed " "as the first argument. The pattern may be provided as an object or as a " @@ -2393,11 +2395,11 @@ msgstr "" "chaîne de caractères, par exemple ``sub(\"(?i)b+\", \"x\", \"bbbb BBBBB" "\")```renvoie ``'x x'``." -#: ../Doc/howto/regex.rst:1224 +#: ../Doc/howto/regex.rst:1225 msgid "Common Problems" msgstr "Problèmes classiques" -#: ../Doc/howto/regex.rst:1226 +#: ../Doc/howto/regex.rst:1227 msgid "" "Regular expressions are a powerful tool for some applications, but in some " "ways their behaviour isn't intuitive and at times they don't behave the way " @@ -2409,11 +2411,11 @@ msgstr "" "et, parfois, elles ne se comportent pas comme vous pouvez vous y attendre. " "Cette section met en évidence certains des pièges les plus courants." -#: ../Doc/howto/regex.rst:1232 +#: ../Doc/howto/regex.rst:1233 msgid "Use String Methods" msgstr "Utilisez les méthodes du type *string*" -#: ../Doc/howto/regex.rst:1234 +#: ../Doc/howto/regex.rst:1235 msgid "" "Sometimes using the :mod:`re` module is a mistake. If you're matching a " "fixed string, or a single character class, and you're not using any :mod:" @@ -2433,7 +2435,7 @@ msgstr "" "que l'implémentation est une seule petite boucle C qui a été optimisée, au " "lieu du gros moteur d'expressions régulières plus généraliste." -#: ../Doc/howto/regex.rst:1242 +#: ../Doc/howto/regex.rst:1243 msgid "" "One example might be replacing a single fixed string with another one; for " "example, you might replace ``word`` with ``deed``. :func:`re.sub` seems " @@ -2455,7 +2457,7 @@ msgstr "" "de mot d'un côté et de l'autre ; c'est au-delà des capacités de la méthode :" "meth:`!replace`)." -#: ../Doc/howto/regex.rst:1251 +#: ../Doc/howto/regex.rst:1252 msgid "" "Another common task is deleting every occurrence of a single character from " "a string or replacing it with another single character. You might do this " @@ -2469,7 +2471,7 @@ msgstr "" "sub('\\n', ' ', S)``, mais :meth:`~str.translate` en est capable et est plus " "rapide que n'importe quelle opération d'expression régulière." -#: ../Doc/howto/regex.rst:1257 +#: ../Doc/howto/regex.rst:1258 msgid "" "In short, before turning to the :mod:`re` module, consider whether your " "problem can be solved with a faster and simpler string method." @@ -2477,11 +2479,11 @@ msgstr "" "Bref, avant de passer au module :mod:`re`, évaluez d'abord si votre problème " "peut être résolu avec une méthode de chaîne plus rapide et plus simple." -#: ../Doc/howto/regex.rst:1262 +#: ../Doc/howto/regex.rst:1263 msgid "match() versus search()" msgstr "*match()* contre *search()*" -#: ../Doc/howto/regex.rst:1264 +#: ../Doc/howto/regex.rst:1265 msgid "" "The :func:`~re.match` function only checks if the RE matches at the " "beginning of the string while :func:`~re.search` will scan forward through " @@ -2497,7 +2499,7 @@ msgstr "" "correspondance qui commence à 0 ; si la correspondance commence plus loin, :" "func:`!match` *ne la trouve pas*. ::" -#: ../Doc/howto/regex.rst:1275 +#: ../Doc/howto/regex.rst:1276 msgid "" "On the other hand, :func:`~re.search` will scan forward through the string, " "reporting the first match it finds. ::" @@ -2505,7 +2507,7 @@ msgstr "" "D'un autre côté, :func:`~re.search` balaie la chaîne de caractères, " "rapportant la première correspondance qu'elle trouve. ::" -#: ../Doc/howto/regex.rst:1283 +#: ../Doc/howto/regex.rst:1284 msgid "" "Sometimes you'll be tempted to keep using :func:`re.match`, and just add ``." "*`` to the front of your RE. Resist this temptation and use :func:`re." @@ -2526,7 +2528,7 @@ msgstr "" "rapidement la chaîne de caractères à la recherche du caractère de départ, " "n'essayant la correspondance complète que si un \"C\" a déjà été trouvé." -#: ../Doc/howto/regex.rst:1292 +#: ../Doc/howto/regex.rst:1293 msgid "" "Adding ``.*`` defeats this optimization, requiring scanning to the end of " "the string and then backtracking to find a match for the rest of the RE. " @@ -2537,11 +2539,11 @@ msgstr "" "une correspondance pour le reste de la RE. Préférez l'utilisation :func:`re." "search`." -#: ../Doc/howto/regex.rst:1298 +#: ../Doc/howto/regex.rst:1299 msgid "Greedy versus Non-Greedy" msgstr "Glouton contre non-glouton" -#: ../Doc/howto/regex.rst:1300 +#: ../Doc/howto/regex.rst:1301 msgid "" "When repeating a regular expression, as in ``a*``, the resulting action is " "to consume as much of the pattern as possible. This fact often bites you " @@ -2556,7 +2558,7 @@ msgstr "" "pour faire correspondre une seule balise HTML ne fonctionne pas en raison de " "la nature gloutonne de ``.*``. ::" -#: ../Doc/howto/regex.rst:1314 +#: ../Doc/howto/regex.rst:1315 msgid "" "The RE matches the ``'<'`` in ``''``, and the ``.*`` consumes the rest " "of the string. There's still more left in the RE, though, and the ``>`` " @@ -2573,7 +2575,7 @@ msgstr "" "correspondance finale s'étend du ``'<'`` de ``''`` au ``'>'`` de ``''``, ce qui n'est pas ce que vous voulez." -#: ../Doc/howto/regex.rst:1321 +#: ../Doc/howto/regex.rst:1322 msgid "" "In this case, the solution is to use the non-greedy qualifiers ``*?``, ``+?" "``, ``??``, or ``{m,n}?``, which match as *little* text as possible. In the " @@ -2588,7 +2590,7 @@ msgstr "" "échoue, le moteur avance caractère par caractère, ré-essayant ``'>'`` à " "chaque pas. Nous obtenons alors le bon résultat ::" -#: ../Doc/howto/regex.rst:1330 +#: ../Doc/howto/regex.rst:1331 msgid "" "(Note that parsing HTML or XML with regular expressions is painful. Quick-" "and-dirty patterns will handle common cases, but HTML and XML have special " @@ -2604,11 +2606,11 @@ msgstr "" "traite tous les cas possibles, les motifs seront *très* compliqués. " "Utilisez un module d'analyse HTML ou XML pour de telles tâches." -#: ../Doc/howto/regex.rst:1338 +#: ../Doc/howto/regex.rst:1339 msgid "Using re.VERBOSE" msgstr "Utilisez *re.VERBOSE*" -#: ../Doc/howto/regex.rst:1340 +#: ../Doc/howto/regex.rst:1341 msgid "" "By now you've probably noticed that regular expressions are a very compact " "notation, but they're not terribly readable. REs of moderate complexity can " @@ -2621,7 +2623,7 @@ msgstr "" "obliques inverses, de parenthèses et de métacaractères, ce qui la rend " "difficile à lire et à comprendre." -#: ../Doc/howto/regex.rst:1345 +#: ../Doc/howto/regex.rst:1346 msgid "" "For such REs, specifying the :const:`re.VERBOSE` flag when compiling the " "regular expression can be helpful, because it allows you to format the " @@ -2631,7 +2633,7 @@ msgstr "" "l'expression régulière peut être utile ; cela vous permet de formater " "l'expression régulière de manière plus claire." -#: ../Doc/howto/regex.rst:1349 +#: ../Doc/howto/regex.rst:1350 msgid "" "The ``re.VERBOSE`` flag has several effects. Whitespace in the regular " "expression that *isn't* inside a character class is ignored. This means " @@ -2651,15 +2653,15 @@ msgstr "" "ligne suivante. Lorsque vous l'utilisez avec des chaînes à triple " "guillemets, cela permet aux RE d'être formatées plus proprement ::" -#: ../Doc/howto/regex.rst:1366 +#: ../Doc/howto/regex.rst:1367 msgid "This is far more readable than::" msgstr "Ceci est beaucoup plus lisible que::" -#: ../Doc/howto/regex.rst:1372 +#: ../Doc/howto/regex.rst:1373 msgid "Feedback" msgstr "Vos commentaires" -#: ../Doc/howto/regex.rst:1374 +#: ../Doc/howto/regex.rst:1375 msgid "" "Regular expressions are a complicated topic. Did this document help you " "understand them? Were there parts that were unclear, or Problems you " @@ -2671,7 +2673,7 @@ msgstr "" "problèmes que vous avez rencontrés ne sont pas traités ici ? Si tel est le " "cas, merci d'envoyer vos suggestions d'améliorations à l'auteur." -#: ../Doc/howto/regex.rst:1379 +#: ../Doc/howto/regex.rst:1380 msgid "" "The most complete book on regular expressions is almost certainly Jeffrey " "Friedl's Mastering Regular Expressions, published by O'Reilly. " diff --git a/library/__future__.po b/library/__future__.po index 8b37ec4e3..204ecd700 100644 --- a/library/__future__.po +++ b/library/__future__.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-26 09:28+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Jules Lasne \n" "X-Generator: Poedit 2.2.1\n" #: ../Doc/library/__future__.rst:2 diff --git a/library/asyncio-queue.po b/library/asyncio-queue.po index 6c76bc285..778176e72 100644 --- a/library/asyncio-queue.po +++ b/library/asyncio-queue.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-10-13 17:37+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -96,7 +96,7 @@ msgstr "" #: ../Doc/library/asyncio-queue.rst:66 msgid "" "The count of unfinished tasks goes up whenever an item is added to the " -"queue. The count goes down whenever a consumer thread calls :meth:" +"queue. The count goes down whenever a consumer coroutine calls :meth:" "`task_done` to indicate that the item was retrieved and all work on it is " "complete. When the count of unfinished tasks drops to zero, :meth:`join` " "unblocks." diff --git a/library/collections.po b/library/collections.po index a73735c1c..38ab64328 100644 --- a/library/collections.po +++ b/library/collections.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-22 15:27+0100\n" "Last-Translator: Guillaume Fayard \n" "Language-Team: FRENCH \n" @@ -256,7 +256,19 @@ msgstr "" "`super`. Une référence à ``d.parents`` est équivalente à : ``ChainMap(*d." "maps[1:])``." -#: ../Doc/library/collections.rst:106 +#: ../Doc/library/collections.rst:103 +msgid "" +"Note, the iteration order of a :class:`ChainMap()` is determined by scanning " +"the mappings last to first::" +msgstr "" + +#: ../Doc/library/collections.rst:111 +msgid "" +"This gives the same ordering as a series of :meth:`dict.update` calls " +"starting with the last mapping::" +msgstr "" + +#: ../Doc/library/collections.rst:121 msgid "" "The `MultiContext class `_ in the Enthought `CodeTools package " @@ -268,7 +280,7 @@ msgstr "" "github.com/enthought/codetools>`_ d'Enthought possède des options pour gérer " "l'écriture dans n'importe quel dictionnaire de la chaîne." -#: ../Doc/library/collections.rst:112 +#: ../Doc/library/collections.rst:127 msgid "" "Django's `Context class `_ for templating is a read-only chain of mappings. It " @@ -283,7 +295,7 @@ msgstr "" "méthode :meth:`~collections.ChainMap.new_child` et à la propriété :attr:" "`~collections.ChainMap.parents`." -#: ../Doc/library/collections.rst:119 +#: ../Doc/library/collections.rst:134 msgid "" "The `Nested Contexts recipe `_ " "has options to control whether writes and other mutations apply only to the " @@ -294,7 +306,7 @@ msgstr "" "mutations ne s'appliquent qu'au premier ou à un autre dictionnaire de la " "chaîne." -#: ../Doc/library/collections.rst:124 +#: ../Doc/library/collections.rst:139 msgid "" "A `greatly simplified read-only version of Chainmap `_." @@ -302,22 +314,22 @@ msgstr "" "Une `version grandement simplifiée de Chainmap en lecture seule `_." -#: ../Doc/library/collections.rst:129 +#: ../Doc/library/collections.rst:144 msgid ":class:`ChainMap` Examples and Recipes" msgstr "Exemples et cas pratiques utilisant :class:`ChainMap`" -#: ../Doc/library/collections.rst:131 +#: ../Doc/library/collections.rst:146 msgid "This section shows various approaches to working with chained maps." msgstr "" "Cette partie montre diverses approches afin de travailler avec les " "dictionnaires chaînés." -#: ../Doc/library/collections.rst:134 +#: ../Doc/library/collections.rst:149 msgid "Example of simulating Python's internal lookup chain::" msgstr "" "Exemple 1 : simulation de la chaîne de recherche interne de Python : ::" -#: ../Doc/library/collections.rst:139 +#: ../Doc/library/collections.rst:154 msgid "" "Example of letting user specified command-line arguments take precedence " "over environment variables which in turn take precedence over default " @@ -326,7 +338,7 @@ msgstr "" "Exemple 2 : spécification d'une hiérarchie pour les options : ligne de " "commande, variable d'environnement, valeurs par défaut : ::" -#: ../Doc/library/collections.rst:156 +#: ../Doc/library/collections.rst:171 msgid "" "Example patterns for using the :class:`ChainMap` class to simulate nested " "contexts::" @@ -334,7 +346,7 @@ msgstr "" "Exemple 3 : modèles pour simuler des contexte imbriqués avec la classe :" "class:`ChainMap` ::" -#: ../Doc/library/collections.rst:175 +#: ../Doc/library/collections.rst:190 msgid "" "The :class:`ChainMap` class only makes updates (writes and deletions) to the " "first mapping in the chain while lookups will search the full chain. " @@ -347,11 +359,11 @@ msgstr "" "profondeur, on peut facilement faire une sous-classe qui met à jour les clés " "trouvées de la chaîne en profondeur : ::" -#: ../Doc/library/collections.rst:206 +#: ../Doc/library/collections.rst:221 msgid ":class:`Counter` objects" msgstr "Objets :class:`Counter`" -#: ../Doc/library/collections.rst:208 +#: ../Doc/library/collections.rst:223 msgid "" "A counter tool is provided to support convenient and rapid tallies. For " "example::" @@ -359,7 +371,7 @@ msgstr "" "Ce module fournit un outil pour effectuer rapidement et facilement des " "dénombrements. Par exemple : ::" -#: ../Doc/library/collections.rst:227 +#: ../Doc/library/collections.rst:242 msgid "" "A :class:`Counter` is a :class:`dict` subclass for counting hashable " "objects. It is a collection where elements are stored as dictionary keys and " @@ -374,7 +386,7 @@ msgstr "" "entiers relatifs (positifs, négatifs ou nuls). La classe :class:`Counter` " "est similaire aux sacs ou aux multiensembles dans d'autres langages." -#: ../Doc/library/collections.rst:233 +#: ../Doc/library/collections.rst:248 msgid "" "Elements are counted from an *iterable* or initialized from another " "*mapping* (or counter):" @@ -382,7 +394,7 @@ msgstr "" "Les éléments sont comptés à partir d'un itérable ou initialisés à partir " "d'un autre dictionnaire (ou compteur) :" -#: ../Doc/library/collections.rst:241 +#: ../Doc/library/collections.rst:256 msgid "" "Counter objects have a dictionary interface except that they return a zero " "count for missing items instead of raising a :exc:`KeyError`:" @@ -391,7 +403,7 @@ msgstr "" "qu'ils renvoient zéro au lieu de lever une exception :exc:`KeyError` pour " "des éléments manquants :" -#: ../Doc/library/collections.rst:248 +#: ../Doc/library/collections.rst:263 msgid "" "Setting a count to zero does not remove an element from a counter. Use " "``del`` to remove it entirely:" @@ -399,7 +411,7 @@ msgstr "" "Mettre un comptage à zéro pour un élément ne le retire pas de l'objet " "Counter. Il faut utiliser ``del`` pour le supprimer complètement :" -#: ../Doc/library/collections.rst:257 +#: ../Doc/library/collections.rst:272 msgid "" "Counter objects support three methods beyond those available for all " "dictionaries:" @@ -407,7 +419,7 @@ msgstr "" "En plus des méthodes disponibles pour tous les dictionnaires, les objets " "compteurs gèrent trois méthodes supplémentaires :" -#: ../Doc/library/collections.rst:262 +#: ../Doc/library/collections.rst:277 msgid "" "Return an iterator over elements repeating each as many times as its count. " "Elements are returned in arbitrary order. If an element's count is less " @@ -418,7 +430,7 @@ msgstr "" "arbitraire. Si le comptage d'un élément est strictement inférieur à 1, " "alors :meth:`elements` l'ignore." -#: ../Doc/library/collections.rst:272 +#: ../Doc/library/collections.rst:287 msgid "" "Return a list of the *n* most common elements and their counts from the most " "common to the least. If *n* is omitted or ``None``, :meth:`most_common` " @@ -431,7 +443,7 @@ msgstr "" "éléments qui ont le même nombre d'occurrences sont ordonnés de manière " "arbitraire :" -#: ../Doc/library/collections.rst:282 +#: ../Doc/library/collections.rst:297 msgid "" "Elements are subtracted from an *iterable* or from another *mapping* (or " "counter). Like :meth:`dict.update` but subtracts counts instead of " @@ -442,7 +454,7 @@ msgstr "" "update` mais soustrait les nombres d'occurrences au lieu de les remplacer. " "Les entrées et sorties peuvent être négatives ou nulles." -#: ../Doc/library/collections.rst:294 +#: ../Doc/library/collections.rst:309 msgid "" "The usual dictionary methods are available for :class:`Counter` objects " "except for two which work differently for counters." @@ -451,13 +463,13 @@ msgstr "" "class:`Counter` à l'exception de deux méthodes qui fonctionnent différemment " "pour les compteurs." -#: ../Doc/library/collections.rst:299 +#: ../Doc/library/collections.rst:314 msgid "This class method is not implemented for :class:`Counter` objects." msgstr "" "Cette méthode de classe n'est pas implémentée pour les objets :class:" "`Counter`." -#: ../Doc/library/collections.rst:303 +#: ../Doc/library/collections.rst:318 msgid "" "Elements are counted from an *iterable* or added-in from another *mapping* " "(or counter). Like :meth:`dict.update` but adds counts instead of replacing " @@ -470,11 +482,11 @@ msgstr "" "De plus, l'itérable doit être une séquence d'éléments et non une séquence de " "paires ``(clé, valeur)``." -#: ../Doc/library/collections.rst:308 +#: ../Doc/library/collections.rst:323 msgid "Common patterns for working with :class:`Counter` objects::" msgstr "Opérations usuelles sur les objets :class:`Counter` : ::" -#: ../Doc/library/collections.rst:320 +#: ../Doc/library/collections.rst:335 msgid "" "Several mathematical operations are provided for combining :class:`Counter` " "objects to produce multisets (counters that have counts greater than zero). " @@ -494,7 +506,7 @@ msgstr "" "comptages relatifs, mais la sortie exclut les résultats avec des comptages " "négatifs ou nuls." -#: ../Doc/library/collections.rst:338 +#: ../Doc/library/collections.rst:353 msgid "" "Unary addition and subtraction are shortcuts for adding an empty counter or " "subtracting from an empty counter." @@ -503,14 +515,14 @@ msgstr "" "raccourcis pour respectivement additionner un compteur avec un compteur vide " "ou et pour retrancher un compteur d'un compteur vide." -#: ../Doc/library/collections.rst:347 +#: ../Doc/library/collections.rst:362 msgid "" "Added support for unary plus, unary minus, and in-place multiset operations." msgstr "" "Ajout de la gestion des additions et soustractions unaires, et des " "remplacements dans les multiensembles." -#: ../Doc/library/collections.rst:352 +#: ../Doc/library/collections.rst:367 msgid "" "Counters were primarily designed to work with positive integers to represent " "running counts; however, care was taken to not unnecessarily preclude use " @@ -523,7 +535,7 @@ msgstr "" "n'ont pas été écartés. Pour vous aider dans ces cas particuliers, cette " "section documente la plage minimale et les restrictions de type." -#: ../Doc/library/collections.rst:357 +#: ../Doc/library/collections.rst:372 msgid "" "The :class:`Counter` class itself is a dictionary subclass with no " "restrictions on its keys and values. The values are intended to be numbers " @@ -534,7 +546,7 @@ msgstr "" "vocation à être des nombres représentants des comptages, mais il est " "*possible* de stocker n'importe quel type de valeur." -#: ../Doc/library/collections.rst:361 +#: ../Doc/library/collections.rst:376 msgid "" "The :meth:`~Counter.most_common` method requires only that the values be " "orderable." @@ -542,7 +554,7 @@ msgstr "" "La méthode :meth:`~Counter.most_common` exige uniquement que les valeurs " "soient ordonnables." -#: ../Doc/library/collections.rst:363 +#: ../Doc/library/collections.rst:378 msgid "" "For in-place operations such as ``c[key] += 1``, the value type need only " "support addition and subtraction. So fractions, floats, and decimals would " @@ -556,7 +568,7 @@ msgstr "" "même pour :meth:`~Counter.update` et :meth:`~Cointer.substract` qui " "acceptent des valeurs négatives ou nulles dans les entrées et sorties." -#: ../Doc/library/collections.rst:369 +#: ../Doc/library/collections.rst:384 msgid "" "The multiset methods are designed only for use cases with positive values. " "The inputs may be negative or zero, but only outputs with positive values " @@ -569,7 +581,7 @@ msgstr "" "positives sont créées. Il n'y a pas de restriction de type, mais les types " "des valeurs doivent gérer l'addition, la soustraction et la comparaison." -#: ../Doc/library/collections.rst:374 +#: ../Doc/library/collections.rst:389 msgid "" "The :meth:`~Counter.elements` method requires integer counts. It ignores " "zero and negative counts." @@ -577,7 +589,7 @@ msgstr "" "La méthode :meth:`~Counter.elements` exige des valeurs entières et ignore " "les valeurs négatives ou nulles." -#: ../Doc/library/collections.rst:379 +#: ../Doc/library/collections.rst:394 msgid "" "`Bag class `_ in Smalltalk." @@ -585,7 +597,7 @@ msgstr "" "`Bag class `_ dans Smalltalk." -#: ../Doc/library/collections.rst:382 +#: ../Doc/library/collections.rst:397 msgid "" "Wikipedia entry for `Multisets `_." msgstr "" @@ -593,7 +605,7 @@ msgstr "" "Multiensemble>`_ sur Wikipédia (ou `l'article en anglais `_)." -#: ../Doc/library/collections.rst:384 +#: ../Doc/library/collections.rst:399 msgid "" "`C++ multisets `_ tutorial with examples." @@ -601,7 +613,7 @@ msgstr "" "Des guides et exemples à propos des `multiensembles en C++ `_." -#: ../Doc/library/collections.rst:387 +#: ../Doc/library/collections.rst:402 msgid "" "For mathematical operations on multisets and their use cases, see *Knuth, " "Donald. The Art of Computer Programming Volume II, Section 4.6.3, Exercise " @@ -611,7 +623,7 @@ msgstr "" "applications, voir *Knuth, Donald. The Art of Computer Programming Volume " "II, Section 4.6.3, Exercise 19*." -#: ../Doc/library/collections.rst:391 +#: ../Doc/library/collections.rst:406 msgid "" "To enumerate all distinct multisets of a given size over a given set of " "elements, see :func:`itertools.combinations_with_replacement`::" @@ -620,11 +632,11 @@ msgstr "" "ensemble donné d'éléments, voir :func:`itertools." "combinations_with_replacement` : ::" -#: ../Doc/library/collections.rst:398 +#: ../Doc/library/collections.rst:413 msgid ":class:`deque` objects" msgstr "Objets :class:`deque`" -#: ../Doc/library/collections.rst:402 +#: ../Doc/library/collections.rst:417 msgid "" "Returns a new deque object initialized left-to-right (using :meth:`append`) " "with data from *iterable*. If *iterable* is not specified, the new deque is " @@ -634,7 +646,7 @@ msgstr "" "meth:`append`) avec les données d'*iterable*. Si *iterable* n'est pas " "spécifié, alors la nouvelle *deque* est vide." -#: ../Doc/library/collections.rst:405 +#: ../Doc/library/collections.rst:420 msgid "" "Deques are a generalization of stacks and queues (the name is pronounced " "\"deck\" and is short for \"double-ended queue\"). Deques support thread-" @@ -649,7 +661,7 @@ msgstr "" "vue de la mémoire des deux côtés de la *deque*, avec approximativement la " "même performance en *O(1)* dans les deux sens." -#: ../Doc/library/collections.rst:410 +#: ../Doc/library/collections.rst:425 msgid "" "Though :class:`list` objects support similar operations, they are optimized " "for fast fixed-length operations and incur O(n) memory movement costs for " @@ -662,7 +674,7 @@ msgstr "" "et la position de la représentation des données sous-jacentes entraînent des " "coûts de déplacement de mémoire en *O(n)*." -#: ../Doc/library/collections.rst:416 +#: ../Doc/library/collections.rst:431 msgid "" "If *maxlen* is not specified or is ``None``, deques may grow to an arbitrary " "length. Otherwise, the deque is bounded to the specified maximum length. " @@ -681,32 +693,32 @@ msgstr "" "Elles sont aussi utiles pour le suivi de transactions et autres lots de " "données où seule l'activité récente est intéressante." -#: ../Doc/library/collections.rst:425 +#: ../Doc/library/collections.rst:440 msgid "Deque objects support the following methods:" msgstr "Les objets *deques* gèrent les méthodes suivantes :" -#: ../Doc/library/collections.rst:429 +#: ../Doc/library/collections.rst:444 msgid "Add *x* to the right side of the deque." msgstr "Ajoute *x* à l'extrémité droite de la *deque*." -#: ../Doc/library/collections.rst:434 +#: ../Doc/library/collections.rst:449 msgid "Add *x* to the left side of the deque." msgstr "Ajoute *x* à l'extrémité gauche de la *deque*." -#: ../Doc/library/collections.rst:439 +#: ../Doc/library/collections.rst:454 msgid "Remove all elements from the deque leaving it with length 0." msgstr "" "Supprime tous les éléments de la *deque* et la laisse avec une longueur de 0." -#: ../Doc/library/collections.rst:444 +#: ../Doc/library/collections.rst:459 msgid "Create a shallow copy of the deque." msgstr "Crée une copie superficielle de la *deque*." -#: ../Doc/library/collections.rst:451 +#: ../Doc/library/collections.rst:466 msgid "Count the number of deque elements equal to *x*." msgstr "Compte le nombre d'éléments de la *deque* égaux à *x*." -#: ../Doc/library/collections.rst:458 +#: ../Doc/library/collections.rst:473 msgid "" "Extend the right side of the deque by appending elements from the iterable " "argument." @@ -714,7 +726,7 @@ msgstr "" "Étend la *deque* en ajoutant les éléments de l'itérable en argument à son " "extrémité droite." -#: ../Doc/library/collections.rst:464 +#: ../Doc/library/collections.rst:479 msgid "" "Extend the left side of the deque by appending elements from *iterable*. " "Note, the series of left appends results in reversing the order of elements " @@ -724,7 +736,7 @@ msgstr "" "gauche. Dans ce cas, notez que la série d'ajouts inverse l'ordre des " "éléments de l'argument itérable." -#: ../Doc/library/collections.rst:471 +#: ../Doc/library/collections.rst:486 msgid "" "Return the position of *x* in the deque (at or after index *start* and " "before index *stop*). Returns the first match or raises :exc:`ValueError` " @@ -734,11 +746,11 @@ msgstr "" "jusqu'à *stop* exclus). Renvoie la première correspondance ou lève :exc:" "`ValueError` si aucune n'est trouvée." -#: ../Doc/library/collections.rst:480 +#: ../Doc/library/collections.rst:495 msgid "Insert *x* into the deque at position *i*." msgstr "Insère *x* dans la *deque* à la position *i*." -#: ../Doc/library/collections.rst:482 +#: ../Doc/library/collections.rst:497 msgid "" "If the insertion would cause a bounded deque to grow beyond *maxlen*, an :" "exc:`IndexError` is raised." @@ -746,7 +758,7 @@ msgstr "" "Si une insertion provoque un dépassement de la taille limitée d'une *deque*, " "alors elle lève une exception :exc:`IndexError`." -#: ../Doc/library/collections.rst:490 +#: ../Doc/library/collections.rst:505 msgid "" "Remove and return an element from the right side of the deque. If no " "elements are present, raises an :exc:`IndexError`." @@ -754,7 +766,7 @@ msgstr "" "Retire et renvoie un élément de l'extrémité droite de la *deque*. S'il n'y a " "aucun élément, lève une exception :exc:`IndexError`." -#: ../Doc/library/collections.rst:496 +#: ../Doc/library/collections.rst:511 msgid "" "Remove and return an element from the left side of the deque. If no elements " "are present, raises an :exc:`IndexError`." @@ -762,7 +774,7 @@ msgstr "" "Retire et renvoie un élément de l'extrémité gauche de la *deque*. S'il n'y a " "aucun élément, lève une exception :exc:`IndexError`." -#: ../Doc/library/collections.rst:502 +#: ../Doc/library/collections.rst:517 msgid "" "Remove the first occurrence of *value*. If not found, raises a :exc:" "`ValueError`." @@ -770,13 +782,13 @@ msgstr "" "Supprime la première occurrence de *value*. Si aucune occurrence n'est " "trouvée, lève une exception :exc:`ValueError`." -#: ../Doc/library/collections.rst:508 +#: ../Doc/library/collections.rst:523 msgid "Reverse the elements of the deque in-place and then return ``None``." msgstr "" "Inverse le sens des éléments de la *deque* sans créer de copie et renvoie " "``None``." -#: ../Doc/library/collections.rst:515 +#: ../Doc/library/collections.rst:530 msgid "" "Rotate the deque *n* steps to the right. If *n* is negative, rotate to the " "left." @@ -784,7 +796,7 @@ msgstr "" "Décale les éléments de la *deque* de *n* places vers la droite (le dernier " "élément revient au début). Si *n* est négatif, décale vers la gauche." -#: ../Doc/library/collections.rst:518 +#: ../Doc/library/collections.rst:533 msgid "" "When the deque is not empty, rotating one step to the right is equivalent to " "``d.appendleft(d.pop())``, and rotating one step to the left is equivalent " @@ -794,16 +806,16 @@ msgstr "" "équivaut à ``d.appendleft(d.pop())`` et un décalage d'une place vers la " "gauche est équivalent à ``d.append(d.popleft())``." -#: ../Doc/library/collections.rst:523 +#: ../Doc/library/collections.rst:538 msgid "Deque objects also provide one read-only attribute:" msgstr "" "Les objets *deques* fournissent également un attribut en lecture seule :" -#: ../Doc/library/collections.rst:527 +#: ../Doc/library/collections.rst:542 msgid "Maximum size of a deque or ``None`` if unbounded." msgstr "La taille maximale d'une *deque*, ou ``None`` si illimitée." -#: ../Doc/library/collections.rst:532 +#: ../Doc/library/collections.rst:547 msgid "" "In addition to the above, deques support iteration, pickling, ``len(d)``, " "``reversed(d)``, ``copy.copy(d)``, ``copy.deepcopy(d)``, membership testing " @@ -818,7 +830,7 @@ msgstr "" "extrémités mais en *O(n)* au milieu. Pour des accès aléatoires rapides, il " "est préférable d'utiliser des listes." -#: ../Doc/library/collections.rst:538 +#: ../Doc/library/collections.rst:553 msgid "" "Starting in version 3.5, deques support ``__add__()``, ``__mul__()``, and " "``__imul__()``." @@ -826,20 +838,20 @@ msgstr "" "Depuis la version 3.5, les *deques* gèrent ``__add__()``, ``__mul__()`` et " "``__imul__()``." -#: ../Doc/library/collections.rst:541 +#: ../Doc/library/collections.rst:556 msgid "Example:" msgstr "Exemple :" -#: ../Doc/library/collections.rst:598 +#: ../Doc/library/collections.rst:613 msgid ":class:`deque` Recipes" msgstr "Cas pratiques utilisant :class:`deque`" -#: ../Doc/library/collections.rst:600 +#: ../Doc/library/collections.rst:615 msgid "This section shows various approaches to working with deques." msgstr "" "Cette partie montre diverses approches afin de travailler avec les *deques*." -#: ../Doc/library/collections.rst:602 +#: ../Doc/library/collections.rst:617 msgid "" "Bounded length deques provide functionality similar to the ``tail`` filter " "in Unix::" @@ -847,7 +859,7 @@ msgstr "" "Les *deques* à taille limitée apportent une fonctionnalité similaire au " "filtre ``tail`` d'Unix : ::" -#: ../Doc/library/collections.rst:610 +#: ../Doc/library/collections.rst:625 msgid "" "Another approach to using deques is to maintain a sequence of recently added " "elements by appending to the right and popping to the left::" @@ -856,7 +868,7 @@ msgstr "" "d'éléments récemment ajoutés en les ajoutant à droite et en retirant les " "anciens par la gauche : ::" -#: ../Doc/library/collections.rst:625 +#: ../Doc/library/collections.rst:640 msgid "" "A `round-robin scheduler `_ can be implemented with input iterators stored in a :" @@ -872,7 +884,7 @@ msgstr "" "avec la méthode :meth:`~deque.popleft` ; ou bien il peut être remis à la fin " "avec la méthode :meth:`~ deque.rotate` : ::" -#: ../Doc/library/collections.rst:644 +#: ../Doc/library/collections.rst:659 msgid "" "The :meth:`~deque.rotate` method provides a way to implement :class:`deque` " "slicing and deletion. For example, a pure Python implementation of ``del " @@ -884,7 +896,7 @@ msgstr "" "utilise la méthode ``rotate()`` pour mettre en position les éléments à " "éjecter : ::" -#: ../Doc/library/collections.rst:653 +#: ../Doc/library/collections.rst:668 msgid "" "To implement :class:`deque` slicing, use a similar approach applying :meth:" "`~deque.rotate` to bring a target element to the left side of the deque. " @@ -901,11 +913,11 @@ msgstr "" "aisé d'implémenter les manipulations des piles inspirées du Forth telles que " "``dup``, ``drop``, ``swap``, ``over``, ``pick``, ``rot`` et ``roll``." -#: ../Doc/library/collections.rst:663 +#: ../Doc/library/collections.rst:678 msgid ":class:`defaultdict` objects" msgstr "Objets :class:`defaultdict`" -#: ../Doc/library/collections.rst:667 +#: ../Doc/library/collections.rst:682 msgid "" "Returns a new dictionary-like object. :class:`defaultdict` is a subclass of " "the built-in :class:`dict` class. It overrides one method and adds one " @@ -918,7 +930,7 @@ msgstr "" "autres fonctionnalités sont les mêmes que celles des objets :class:`dict` et " "ne sont pas documentées ici." -#: ../Doc/library/collections.rst:672 +#: ../Doc/library/collections.rst:687 msgid "" "The first argument provides the initial value for the :attr:" "`default_factory` attribute; it defaults to ``None``. All remaining " @@ -931,7 +943,7 @@ msgstr "" "si on les passait au constructeur de :class:`dict`, y compris les arguments " "nommés." -#: ../Doc/library/collections.rst:678 +#: ../Doc/library/collections.rst:693 msgid "" ":class:`defaultdict` objects support the following method in addition to the " "standard :class:`dict` operations:" @@ -939,7 +951,7 @@ msgstr "" "En plus des opérations usuelles de :class:`dict`, les objets :class:" "`defaultdict` gèrent les méthodes supplémentaires suivantes :" -#: ../Doc/library/collections.rst:683 +#: ../Doc/library/collections.rst:698 msgid "" "If the :attr:`default_factory` attribute is ``None``, this raises a :exc:" "`KeyError` exception with the *key* as argument." @@ -947,7 +959,7 @@ msgstr "" "Si l'attribut :attr:`default_factory` est ``None``, lève une exception :exc:" "`KeyError` avec *key* comme argument." -#: ../Doc/library/collections.rst:686 +#: ../Doc/library/collections.rst:701 msgid "" "If :attr:`default_factory` is not ``None``, it is called without arguments " "to provide a default value for the given *key*, this value is inserted in " @@ -958,7 +970,7 @@ msgstr "" "Cette valeur est insérée dans le dictionnaire avec pour clé *key* et est " "renvoyée." -#: ../Doc/library/collections.rst:690 +#: ../Doc/library/collections.rst:705 msgid "" "If calling :attr:`default_factory` raises an exception this exception is " "propagated unchanged." @@ -966,7 +978,7 @@ msgstr "" "Si appeler :attr:`default_factory` lève une exception, celle-ci est " "transmise inchangée." -#: ../Doc/library/collections.rst:693 +#: ../Doc/library/collections.rst:708 msgid "" "This method is called by the :meth:`__getitem__` method of the :class:`dict` " "class when the requested key is not found; whatever it returns or raises is " @@ -976,7 +988,7 @@ msgstr "" "class:`dict` lorsque la clé demandée n'est pas trouvée. Ce qu'elle renvoie " "ou lève est alors renvoyé ou levé par :meth:`__getitem__`." -#: ../Doc/library/collections.rst:697 +#: ../Doc/library/collections.rst:712 msgid "" "Note that :meth:`__missing__` is *not* called for any operations besides :" "meth:`__getitem__`. This means that :meth:`get` will, like normal " @@ -988,11 +1000,11 @@ msgstr "" "``None`` comme les dictionnaires natifs dans les cas triviaux et n'utilise " "pas :attr:`default_factory`." -#: ../Doc/library/collections.rst:703 +#: ../Doc/library/collections.rst:718 msgid ":class:`defaultdict` objects support the following instance variable:" msgstr "Les objets :class:`defaultdict` gèrent la variable d'instance :" -#: ../Doc/library/collections.rst:708 +#: ../Doc/library/collections.rst:723 msgid "" "This attribute is used by the :meth:`__missing__` method; it is initialized " "from the first argument to the constructor, if present, or to ``None``, if " @@ -1002,11 +1014,11 @@ msgstr "" "initialisé par le premier argument passé au constructeur, s'il est spécifié, " "sinon par ``None``." -#: ../Doc/library/collections.rst:714 +#: ../Doc/library/collections.rst:729 msgid ":class:`defaultdict` Examples" msgstr "Exemples utilisant :class:`defaultdict`" -#: ../Doc/library/collections.rst:716 +#: ../Doc/library/collections.rst:731 msgid "" "Using :class:`list` as the :attr:`~defaultdict.default_factory`, it is easy " "to group a sequence of key-value pairs into a dictionary of lists:" @@ -1015,7 +1027,7 @@ msgstr "" "le regroupement d'une séquence de paires clé-valeur en un dictionnaire de " "listes :" -#: ../Doc/library/collections.rst:727 +#: ../Doc/library/collections.rst:742 msgid "" "When each key is encountered for the first time, it is not already in the " "mapping; so an entry is automatically created using the :attr:`~defaultdict." @@ -1036,7 +1048,7 @@ msgstr "" "technique est plus simple et plus rapide qu'une technique équivalente " "utilisant :meth:`dict.setdefault` :" -#: ../Doc/library/collections.rst:742 +#: ../Doc/library/collections.rst:757 msgid "" "Setting the :attr:`~defaultdict.default_factory` to :class:`int` makes the :" "class:`defaultdict` useful for counting (like a bag or multiset in other " @@ -1046,7 +1058,7 @@ msgstr "" "classe :class:`defaultdict` pratique pour le comptage (comme un sac ou multi-" "ensemble dans d'autres langages) :" -#: ../Doc/library/collections.rst:754 +#: ../Doc/library/collections.rst:769 msgid "" "When a letter is first encountered, it is missing from the mapping, so the :" "attr:`~defaultdict.default_factory` function calls :func:`int` to supply a " @@ -1058,7 +1070,7 @@ msgstr "" "appelle :func:`int` pour mettre un nouveau compteur à zéro. L'incrémentation " "augmente ensuite le comptage pour chaque lettre." -#: ../Doc/library/collections.rst:758 +#: ../Doc/library/collections.rst:773 msgid "" "The function :func:`int` which always returns zero is just a special case of " "constant functions. A faster and more flexible way to create constant " @@ -1070,7 +1082,7 @@ msgstr "" "une fonction constante est d'utiliser une fonction lambda qui peut fournir " "n'importe quelle valeur constante (pas seulement zéro) :" -#: ../Doc/library/collections.rst:770 +#: ../Doc/library/collections.rst:785 msgid "" "Setting the :attr:`~defaultdict.default_factory` to :class:`set` makes the :" "class:`defaultdict` useful for building a dictionary of sets:" @@ -1078,13 +1090,13 @@ msgstr "" "Utiliser :class:`set` comme :attr:`~defaultdict.default_factory` rend la " "classe :class:`defaultdict` pratique pour créer un dictionnaire d'ensembles :" -#: ../Doc/library/collections.rst:783 +#: ../Doc/library/collections.rst:798 msgid ":func:`namedtuple` Factory Function for Tuples with Named Fields" msgstr "" ":func:`namedtuple`: fonction de construction pour *n-uplets* (*tuples*) avec " "des champs nommés" -#: ../Doc/library/collections.rst:785 +#: ../Doc/library/collections.rst:800 msgid "" "Named tuples assign meaning to each position in a tuple and allow for more " "readable, self-documenting code. They can be used wherever regular tuples " @@ -1096,7 +1108,7 @@ msgstr "" "partout où les tuples natifs sont utilisés, et ils ajoutent la possibilité " "d'accéder à leurs champs grâce à leur nom au lieu de leur index de position." -#: ../Doc/library/collections.rst:791 +#: ../Doc/library/collections.rst:806 msgid "" "Returns a new tuple subclass named *typename*. The new subclass is used to " "create tuple-like objects that have fields accessible by attribute lookup as " @@ -1112,7 +1124,7 @@ msgstr "" "méthode :meth:`__repr__` pratique qui liste le contenu du tuple au format " "``nom=valeur``." -#: ../Doc/library/collections.rst:797 +#: ../Doc/library/collections.rst:812 msgid "" "The *field_names* are a sequence of strings such as ``['x', 'y']``. " "Alternatively, *field_names* can be a single string with each fieldname " @@ -1123,7 +1135,7 @@ msgstr "" "sont séparés par un espace et/ou une virgule, par exemple ``'x y'`` ou ``'x, " "y'``." -#: ../Doc/library/collections.rst:801 +#: ../Doc/library/collections.rst:816 msgid "" "Any valid Python identifier may be used for a fieldname except for names " "starting with an underscore. Valid identifiers consist of letters, digits, " @@ -1137,7 +1149,7 @@ msgstr "" "`keyword` tel que ``class``, ``for``, ``return``, ``global``, ``pass`` ou " "``raise``." -#: ../Doc/library/collections.rst:807 +#: ../Doc/library/collections.rst:822 msgid "" "If *rename* is true, invalid fieldnames are automatically replaced with " "positional names. For example, ``['abc', 'def', 'ghi', 'abc']`` is " @@ -1149,7 +1161,7 @@ msgstr "" "'ghi', 'abc']`` est converti en ``['abc, '_1', 'ghi', '_3']`` afin " "d'éliminer le mot-clé ``def`` et le doublon de ``abc``." -#: ../Doc/library/collections.rst:812 +#: ../Doc/library/collections.rst:827 msgid "" "*defaults* can be ``None`` or an :term:`iterable` of default values. Since " "fields with a default value must come after any fields without a default, " @@ -1165,7 +1177,7 @@ msgstr "" "'z']`` et les valeurs par défaut ``(1, 2)``, alors ``x`` est un argument " "obligatoire tandis que ``y`` et ``y`` valent par défaut ``1`` et ``2``." -#: ../Doc/library/collections.rst:819 +#: ../Doc/library/collections.rst:834 msgid "" "If *module* is defined, the ``__module__`` attribute of the named tuple is " "set to that value." @@ -1173,7 +1185,7 @@ msgstr "" "Si *module* est spécifié, alors il est assigné à l'attribut ``__module__`` " "du tuple nommé." -#: ../Doc/library/collections.rst:822 +#: ../Doc/library/collections.rst:837 msgid "" "Named tuple instances do not have per-instance dictionaries, so they are " "lightweight and require no more memory than regular tuples." @@ -1181,11 +1193,11 @@ msgstr "" "Les instances de tuples nommés n'ont pas de dictionnaires propres, elles " "sont donc légères et ne requièrent pas plus de mémoire que les tuples natifs." -#: ../Doc/library/collections.rst:825 +#: ../Doc/library/collections.rst:840 msgid "Added support for *rename*." msgstr "Gestion de *rename*." -#: ../Doc/library/collections.rst:828 +#: ../Doc/library/collections.rst:843 msgid "" "The *verbose* and *rename* parameters became :ref:`keyword-only arguments " "`." @@ -1193,21 +1205,21 @@ msgstr "" "Les paramètres *verbose* et *rename* deviennent des :ref:`arguments " "obligatoirement nommés `." -#: ../Doc/library/collections.rst:832 +#: ../Doc/library/collections.rst:847 msgid "Added the *module* parameter." msgstr "Ajout du paramètre *module*." -#: ../Doc/library/collections.rst:835 +#: ../Doc/library/collections.rst:850 msgid "Remove the *verbose* parameter and the :attr:`_source` attribute." msgstr "Suppression du paramètre *verbose* et de l'attribut :attr:`_source`." -#: ../Doc/library/collections.rst:838 +#: ../Doc/library/collections.rst:853 msgid "" "Added the *defaults* parameter and the :attr:`_field_defaults` attribute." msgstr "" "Ajout du paramètre *defaults* et de l'attribut :attr:`_field_defaults`." -#: ../Doc/library/collections.rst:858 +#: ../Doc/library/collections.rst:873 msgid "" "Named tuples are especially useful for assigning field names to result " "tuples returned by the :mod:`csv` or :mod:`sqlite3` modules::" @@ -1216,7 +1228,7 @@ msgstr "" "champs à des tuples renvoyés par les modules :mod:`csv` ou :mod:" "`sqlite3` : ::" -#: ../Doc/library/collections.rst:874 +#: ../Doc/library/collections.rst:889 msgid "" "In addition to the methods inherited from tuples, named tuples support three " "additional methods and two attributes. To prevent conflicts with field " @@ -1226,26 +1238,27 @@ msgstr "" "trois méthodes et deux attributs supplémentaires. Pour éviter les conflits " "avec noms de champs, leurs noms commencent par un tiret bas." -#: ../Doc/library/collections.rst:880 +#: ../Doc/library/collections.rst:895 msgid "" "Class method that makes a new instance from an existing sequence or iterable." msgstr "" "Méthode de classe qui construit une nouvelle instance à partir d'une " "séquence ou d'un itérable existant." -#: ../Doc/library/collections.rst:890 +#: ../Doc/library/collections.rst:905 +#, fuzzy msgid "" -"Return a new :class:`OrderedDict` which maps field names to their " -"corresponding values:" +"Return a new :class:`dict` which maps field names to their corresponding " +"values:" msgstr "" "Renvoie un nouvel :class:`OrderedDict` qui associe chaque nom de champ à sa " "valeur correspondante :" -#: ../Doc/library/collections.rst:899 +#: ../Doc/library/collections.rst:914 msgid "Returns an :class:`OrderedDict` instead of a regular :class:`dict`." msgstr "Renvoie un :class:`OrderedDict` au lieu d'un :class:`dict` natif." -#: ../Doc/library/collections.rst:904 +#: ../Doc/library/collections.rst:919 msgid "" "Return a new instance of the named tuple replacing specified fields with new " "values::" @@ -1253,7 +1266,7 @@ msgstr "" "Renvoie une nouvelle instance du tuple nommé en remplaçant les champs " "spécifiés par leurs nouvelles valeurs : ::" -#: ../Doc/library/collections.rst:916 +#: ../Doc/library/collections.rst:931 msgid "" "Tuple of strings listing the field names. Useful for introspection and for " "creating new named tuple types from existing named tuples." @@ -1262,11 +1275,11 @@ msgstr "" "l'introspection et pour créer de nouveaux types de tuples nommés à partir " "d'existants." -#: ../Doc/library/collections.rst:931 +#: ../Doc/library/collections.rst:946 msgid "Dictionary mapping field names to default values." msgstr "Dictionnaire qui assigne les valeurs par défaut aux noms des champs." -#: ../Doc/library/collections.rst:941 +#: ../Doc/library/collections.rst:956 msgid "" "To retrieve a field whose name is stored in a string, use the :func:" "`getattr` function:" @@ -1274,7 +1287,7 @@ msgstr "" "Pour récupérer un champ dont le nom est une chaîne de caractères, utilisez " "la fonction :func:`getattr` :" -#: ../Doc/library/collections.rst:947 +#: ../Doc/library/collections.rst:962 msgid "" "To convert a dictionary to a named tuple, use the double-star-operator (as " "described in :ref:`tut-unpacking-arguments`):" @@ -1282,7 +1295,7 @@ msgstr "" "Pour convertir un dictionnaire en tuple nommé, utilisez l'opérateur double-" "étoile (comme expliqué dans :ref:`tut-unpacking-arguments`) :" -#: ../Doc/library/collections.rst:954 +#: ../Doc/library/collections.rst:969 msgid "" "Since a named tuple is a regular Python class, it is easy to add or change " "functionality with a subclass. Here is how to add a calculated field and a " @@ -1292,7 +1305,7 @@ msgstr "" "grâce à l'héritage puisqu'il s'agit de simples classes. Voici comment " "ajouter un champ calculé avec une longueur fixe d'affichage :" -#: ../Doc/library/collections.rst:973 +#: ../Doc/library/collections.rst:988 msgid "" "The subclass shown above sets ``__slots__`` to an empty tuple. This helps " "keep memory requirements low by preventing the creation of instance " @@ -1302,7 +1315,7 @@ msgstr "" "permet de garder une emprunte mémoire faible en empêchant la création de " "dictionnaire d'instance." -#: ../Doc/library/collections.rst:976 +#: ../Doc/library/collections.rst:991 msgid "" "Subclassing is not useful for adding new, stored fields. Instead, simply " "create a new named tuple type from the :attr:`~somenamedtuple._fields` " @@ -1312,7 +1325,7 @@ msgstr "" "préférable de simplement créer un nouveau type de tuple nommé avec " "l'attribut :attr:`~somenamedtuple._fields` :" -#: ../Doc/library/collections.rst:981 +#: ../Doc/library/collections.rst:996 msgid "" "Docstrings can be customized by making direct assignments to the ``__doc__`` " "fields:" @@ -1320,11 +1333,11 @@ msgstr "" "Les *docstrings* peuvent être personnalisées en modifiant directement " "l'attribut ``__doc__`` :" -#: ../Doc/library/collections.rst:990 +#: ../Doc/library/collections.rst:1005 msgid "Property docstrings became writeable." msgstr "La propriété devient éditable." -#: ../Doc/library/collections.rst:993 +#: ../Doc/library/collections.rst:1008 msgid "" "Default values can be implemented by using :meth:`~somenamedtuple._replace` " "to customize a prototype instance:" @@ -1332,7 +1345,7 @@ msgstr "" "Les valeurs par défaut peuvent être implémentées en utilisant :meth:" "`~somenamedtuple._replace` pour personnaliser une instance prototype :" -#: ../Doc/library/collections.rst:1004 +#: ../Doc/library/collections.rst:1019 msgid "" "`Recipe for named tuple abstract base class with a metaclass mix-in `_)." +msgstr "" + +#: ../Doc/library/collections.rst:1055 +msgid "" +"The equality operation for :class:`OrderedDict` checks for matching order." +msgstr "" + +#: ../Doc/library/collections.rst:1057 +msgid "" +"The :meth:`popitem` method of :class:`OrderedDict` has a different " +"signature. It accepts an optional argument to specify which item is popped." +msgstr "" + +#: ../Doc/library/collections.rst:1060 +msgid "" +":class:`OrderedDict` has a :meth:`move_to_end` method to efficiently " +"reposition an element to an endpoint." +msgstr "" + +#: ../Doc/library/collections.rst:1063 +msgid "Until Python 3.8, :class:`dict` lacked a :meth:`__reversed__` method." +msgstr "" + +#: ../Doc/library/collections.rst:1068 msgid "" -"Return an instance of a dict subclass, supporting the usual :class:`dict` " -"methods. An *OrderedDict* is a dict that remembers the order that keys were " -"first inserted. If a new entry overwrites an existing entry, the original " -"insertion position is left unchanged. Deleting an entry and reinserting it " -"will move it to the end." +"Return an instance of a :class:`dict` subclass that has methods specialized " +"for rearranging dictionary order." msgstr "" -"Renvoie une instance d'une sous-classe de ``dict`` qui gère les méthodes " -"usuelles de :class:`dict`. Un objet *OrderedDict* est un dictionnaire qui " -"mémorise l'ordre d'insertion des clés. Si une nouvelle entrée en écrase une " -"autre, sa position reste inchangé. Si une entrée est supprimée puis " -"réinsérée, elle est placée en dernière position." -#: ../Doc/library/collections.rst:1036 +#: ../Doc/library/collections.rst:1075 msgid "" "The :meth:`popitem` method for ordered dictionaries returns and removes a " "(key, value) pair. The pairs are returned in :abbr:`LIFO (last-in, first-" @@ -1406,7 +1454,7 @@ msgstr "" "paires sont renvoyées comme pour une file, c'est-à-dire premier entré, " "premier sorti (en anglais :abbr:`FIFO (first-in, first-out)`)." -#: ../Doc/library/collections.rst:1043 +#: ../Doc/library/collections.rst:1082 msgid "" "Move an existing *key* to either end of an ordered dictionary. The item is " "moved to the right end if *last* is true (the default) or to the beginning " @@ -1417,7 +1465,7 @@ msgstr "" "à gauche sinon. Lève une exception :exc:`KeyError` si la clé *key* n'est pas " "trouvée : ::" -#: ../Doc/library/collections.rst:1058 +#: ../Doc/library/collections.rst:1097 msgid "" "In addition to the usual mapping methods, ordered dictionaries also support " "reverse iteration using :func:`reversed`." @@ -1425,7 +1473,7 @@ msgstr "" "En plus des méthodes usuelles des dictionnaires, les dictionnaires ordonnés " "gèrent l'itération en sens inverse grâce à :func:`reversed`." -#: ../Doc/library/collections.rst:1061 +#: ../Doc/library/collections.rst:1100 msgid "" "Equality tests between :class:`OrderedDict` objects are order-sensitive and " "are implemented as ``list(od1.items())==list(od2.items())``. Equality tests " @@ -1441,7 +1489,7 @@ msgstr "" "(comme les dictionnaires natifs). Cela permet substituer des objets :class:" "`OrderedDict` partout où les dictionnaires natifs sont utilisés." -#: ../Doc/library/collections.rst:1068 +#: ../Doc/library/collections.rst:1107 msgid "" "The items, keys, and values :term:`views ` of :class:" "`OrderedDict` now support reverse iteration using :func:`reversed`." @@ -1450,7 +1498,7 @@ msgstr "" "class:`OrderedDict` gèrent maintenant l'itération en sens inverse en " "utilisant :func:`reversed`." -#: ../Doc/library/collections.rst:1072 +#: ../Doc/library/collections.rst:1111 msgid "" "With the acceptance of :pep:`468`, order is retained for keyword arguments " "passed to the :class:`OrderedDict` constructor and its :meth:`update` method." @@ -1459,55 +1507,34 @@ msgstr "" "au constructeur et à la méthode :meth:`update` de :class:`OrderedDict` est " "conservé." -#: ../Doc/library/collections.rst:1078 +#: ../Doc/library/collections.rst:1117 msgid ":class:`OrderedDict` Examples and Recipes" msgstr "Exemples et cas pratiques utilisant :class:`OrderDict`" -#: ../Doc/library/collections.rst:1080 -msgid "" -"Since an ordered dictionary remembers its insertion order, it can be used in " -"conjunction with sorting to make a sorted dictionary::" -msgstr "" -"Puisqu'un dictionnaire ordonné mémorise l'ordre d'insertion de ses éléments, " -"il peut être utilisé conjointement avec un classement pour créer un " -"dictionnaire trié : ::" - -#: ../Doc/library/collections.rst:1098 -msgid "" -"The new sorted dictionaries maintain their sort order when entries are " -"deleted. But when new keys are added, the keys are appended to the end and " -"the sort is not maintained." -msgstr "" -"Les nouveaux dictionnaires triés gardent leur classement quand des entrées " -"sont supprimées, mais si de nouvelles clés sont ajoutées, celles-ci sont " -"ajoutée à la fin et le classement est perdu." - -#: ../Doc/library/collections.rst:1102 +#: ../Doc/library/collections.rst:1119 +#, fuzzy msgid "" -"It is also straight-forward to create an ordered dictionary variant that " -"remembers the order the keys were *last* inserted. If a new entry overwrites " -"an existing entry, the original insertion position is changed and moved to " -"the end::" +"It is straightforward to create an ordered dictionary variant that remembers " +"the order the keys were *last* inserted. If a new entry overwrites an " +"existing entry, the original insertion position is changed and moved to the " +"end::" msgstr "" "Il est également facile de créer une variante de dictionnaire ordonné qui " "retient l'ordre dans lequel les clés ont été insérées *en dernier*. Si une " "nouvelle entrée écrase une existante, la position d'insertion d'origine est " "modifiée et déplacée à la fin : ::" -#: ../Doc/library/collections.rst:1115 +#: ../Doc/library/collections.rst:1131 msgid "" -"An ordered dictionary can be combined with the :class:`Counter` class so " -"that the counter remembers the order elements are first encountered::" +"An :class:`OrderedDict` would also be useful for implementing variants of :" +"func:`functools.lru_cache`::" msgstr "" -"Un dictionnaire ordonné peut être combiné avec la classe :class:`Counter` " -"afin de mémoriser l'ordre dans lequel les éléments ont été ajoutés pour la " -"première fois : ::" -#: ../Doc/library/collections.rst:1129 +#: ../Doc/library/collections.rst:1154 msgid ":class:`UserDict` objects" msgstr "Objets :class:`UserDict`" -#: ../Doc/library/collections.rst:1131 +#: ../Doc/library/collections.rst:1156 msgid "" "The class, :class:`UserDict` acts as a wrapper around dictionary objects. " "The need for this class has been partially supplanted by the ability to " @@ -1520,7 +1547,7 @@ msgstr "" "travailler avec celle-ci car le dictionnaire sous-jacent est accessible " "comme attribut." -#: ../Doc/library/collections.rst:1139 +#: ../Doc/library/collections.rst:1164 msgid "" "Class that simulates a dictionary. The instance's contents are kept in a " "regular dictionary, which is accessible via the :attr:`data` attribute of :" @@ -1534,7 +1561,7 @@ msgstr "" "initialisé avec son contenu. Remarquez qu'une référence vers *initialdata* " "n'est pas conservée, ce qui permet de l'utiliser pour d'autres tâches." -#: ../Doc/library/collections.rst:1145 +#: ../Doc/library/collections.rst:1170 msgid "" "In addition to supporting the methods and operations of mappings, :class:" "`UserDict` instances provide the following attribute:" @@ -1542,18 +1569,18 @@ msgstr "" "En plus de gérer les méthodes et opérations des dictionnaires, les instance " "de :class:`UserDict` fournissent l'attribut suivant :" -#: ../Doc/library/collections.rst:1150 +#: ../Doc/library/collections.rst:1175 msgid "" "A real dictionary used to store the contents of the :class:`UserDict` class." msgstr "" "Un dictionnaire natif où est stocké le contenu de la classe :class:" "`UserDict`." -#: ../Doc/library/collections.rst:1156 +#: ../Doc/library/collections.rst:1181 msgid ":class:`UserList` objects" msgstr "Objets :class:`UserList`" -#: ../Doc/library/collections.rst:1158 +#: ../Doc/library/collections.rst:1183 msgid "" "This class acts as a wrapper around list objects. It is a useful base class " "for your own list-like classes which can inherit from them and override " @@ -1565,7 +1592,7 @@ msgstr "" "et surcharger les méthodes existantes ou en ajouter de nouvelles. Ainsi, on " "peut ajouter de nouveaux comportements aux listes." -#: ../Doc/library/collections.rst:1163 +#: ../Doc/library/collections.rst:1188 msgid "" "The need for this class has been partially supplanted by the ability to " "subclass directly from :class:`list`; however, this class can be easier to " @@ -1576,7 +1603,7 @@ msgstr "" "de travailler avec cette classe car la liste sous-jacente est accessible via " "un attribut." -#: ../Doc/library/collections.rst:1169 +#: ../Doc/library/collections.rst:1194 msgid "" "Class that simulates a list. The instance's contents are kept in a regular " "list, which is accessible via the :attr:`data` attribute of :class:" @@ -1590,7 +1617,7 @@ msgstr "" "*list* peut être un itérable, par exemple une liste native ou un objet :" "class:`UserList`." -#: ../Doc/library/collections.rst:1175 +#: ../Doc/library/collections.rst:1200 msgid "" "In addition to supporting the methods and operations of mutable sequences, :" "class:`UserList` instances provide the following attribute:" @@ -1598,7 +1625,7 @@ msgstr "" "En plus de gérer les méthodes et opérations des séquences muables, les " "instances de :class:`UserList` possèdent l'attribut suivant :" -#: ../Doc/library/collections.rst:1180 +#: ../Doc/library/collections.rst:1205 msgid "" "A real :class:`list` object used to store the contents of the :class:" "`UserList` class." @@ -1606,7 +1633,7 @@ msgstr "" "Un objet :class:`list` natif utilisé pour stocker le contenu de la classe :" "class:`UserList`." -#: ../Doc/library/collections.rst:1183 +#: ../Doc/library/collections.rst:1208 msgid "" "**Subclassing requirements:** Subclasses of :class:`UserList` are expected " "to offer a constructor which can be called with either no arguments or one " @@ -1622,7 +1649,7 @@ msgstr "" "constructeur doit pouvoir être appelé avec un unique paramètre, un objet " "séquence utilisé comme source de données." -#: ../Doc/library/collections.rst:1190 +#: ../Doc/library/collections.rst:1215 msgid "" "If a derived class does not wish to comply with this requirement, all of the " "special methods supported by this class will need to be overridden; please " @@ -1634,11 +1661,11 @@ msgstr "" "de consulter les sources pour obtenir des informations sur les méthodes qui " "doivent être fournies dans ce cas." -#: ../Doc/library/collections.rst:1196 +#: ../Doc/library/collections.rst:1221 msgid ":class:`UserString` objects" msgstr "Objets :class:`UserString`" -#: ../Doc/library/collections.rst:1198 +#: ../Doc/library/collections.rst:1223 msgid "" "The class, :class:`UserString` acts as a wrapper around string objects. The " "need for this class has been partially supplanted by the ability to subclass " @@ -1651,7 +1678,7 @@ msgstr "" "plus facile de travailler avec cette classe car la chaîne de caractère sous-" "jacente est accessible via un attribut." -#: ../Doc/library/collections.rst:1206 +#: ../Doc/library/collections.rst:1231 msgid "" "Class that simulates a string object. The instance's content is kept in a " "regular string object, which is accessible via the :attr:`data` attribute " @@ -1665,7 +1692,7 @@ msgstr "" "initialement une copie de *seq*, qui peut être n'importe quel objet " "convertible en chaîne de caractère avec la fonction native :func:`str`." -#: ../Doc/library/collections.rst:1213 +#: ../Doc/library/collections.rst:1238 msgid "" "In addition to supporting the methods and operations of strings, :class:" "`UserString` instances provide the following attribute:" @@ -1673,7 +1700,7 @@ msgstr "" "En plus de gérer les méthodes et opérations sur les chaînes de caractères, " "les instances de :class:`UserString` possèdent l'attribut suivant :" -#: ../Doc/library/collections.rst:1218 +#: ../Doc/library/collections.rst:1243 msgid "" "A real :class:`str` object used to store the contents of the :class:" "`UserString` class." @@ -1681,10 +1708,59 @@ msgstr "" "Un objet :class:`str` natif utilisé pour stocker le contenu de la classe :" "class:`UserString`." -#: ../Doc/library/collections.rst:1221 +#: ../Doc/library/collections.rst:1246 msgid "" "New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, " "``isprintable``, and ``maketrans``." msgstr "" "Nouvelles méthodes ``__getnewargs__``, ``__rmod__``, ``casefold``, " "``format_map``, ``isprintable`` et ``maketrans``." + +#~ msgid "" +#~ "Ordered dictionaries are just like regular dictionaries but they remember " +#~ "the order that items were inserted. When iterating over an ordered " +#~ "dictionary, the items are returned in the order their keys were first " +#~ "added." +#~ msgstr "" +#~ "En plus de se comporter comme des dictionnaires natifs, les dictionnaires " +#~ "ordonnés mémorisent l'ordre dans lequel les éléments ont été insérés. " +#~ "Quand on itère sur un dictionnaire ordonné, les éléments sont renvoyés " +#~ "dans l'ordre d'insertion des clés." + +#~ msgid "" +#~ "Return an instance of a dict subclass, supporting the usual :class:`dict` " +#~ "methods. An *OrderedDict* is a dict that remembers the order that keys " +#~ "were first inserted. If a new entry overwrites an existing entry, the " +#~ "original insertion position is left unchanged. Deleting an entry and " +#~ "reinserting it will move it to the end." +#~ msgstr "" +#~ "Renvoie une instance d'une sous-classe de ``dict`` qui gère les méthodes " +#~ "usuelles de :class:`dict`. Un objet *OrderedDict* est un dictionnaire qui " +#~ "mémorise l'ordre d'insertion des clés. Si une nouvelle entrée en écrase " +#~ "une autre, sa position reste inchangé. Si une entrée est supprimée puis " +#~ "réinsérée, elle est placée en dernière position." + +#~ msgid "" +#~ "Since an ordered dictionary remembers its insertion order, it can be used " +#~ "in conjunction with sorting to make a sorted dictionary::" +#~ msgstr "" +#~ "Puisqu'un dictionnaire ordonné mémorise l'ordre d'insertion de ses " +#~ "éléments, il peut être utilisé conjointement avec un classement pour " +#~ "créer un dictionnaire trié : ::" + +#~ msgid "" +#~ "The new sorted dictionaries maintain their sort order when entries are " +#~ "deleted. But when new keys are added, the keys are appended to the end " +#~ "and the sort is not maintained." +#~ msgstr "" +#~ "Les nouveaux dictionnaires triés gardent leur classement quand des " +#~ "entrées sont supprimées, mais si de nouvelles clés sont ajoutées, celles-" +#~ "ci sont ajoutée à la fin et le classement est perdu." + +#~ msgid "" +#~ "An ordered dictionary can be combined with the :class:`Counter` class so " +#~ "that the counter remembers the order elements are first encountered::" +#~ msgstr "" +#~ "Un dictionnaire ordonné peut être combiné avec la classe :class:`Counter` " +#~ "afin de mémoriser l'ordre dans lequel les éléments ont été ajoutés pour " +#~ "la première fois : ::" diff --git a/library/configparser.po b/library/configparser.po index 2e51f0484..e8d19adbd 100644 --- a/library/configparser.po +++ b/library/configparser.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -389,18 +389,15 @@ msgstr "" msgid "" "Please note: there are ways to add a set of key-value pairs in a single " "operation. When you use a regular dictionary in those operations, the order " -"of the keys may be random. For example:" +"of the keys will be ordered because dict preserves order from Python 3.7. " +"For example:" msgstr "" -#: ../Doc/library/configparser.rst:485 -msgid "In these operations you need to use an ordered dictionary as well:" -msgstr "" - -#: ../Doc/library/configparser.rst:516 +#: ../Doc/library/configparser.rst:486 msgid "*allow_no_value*, default value: ``False``" msgstr "" -#: ../Doc/library/configparser.rst:518 +#: ../Doc/library/configparser.rst:488 msgid "" "Some configuration files are known to include settings without values, but " "which otherwise conform to the syntax supported by :mod:`configparser`. The " @@ -408,32 +405,32 @@ msgid "" "such values should be accepted:" msgstr "" -#: ../Doc/library/configparser.rst:553 +#: ../Doc/library/configparser.rst:523 msgid "*delimiters*, default value: ``('=', ':')``" msgstr "" -#: ../Doc/library/configparser.rst:555 +#: ../Doc/library/configparser.rst:525 msgid "" "Delimiters are substrings that delimit keys from values within a section. " "The first occurrence of a delimiting substring on a line is considered a " "delimiter. This means values (but not keys) can contain the delimiters." msgstr "" -#: ../Doc/library/configparser.rst:559 +#: ../Doc/library/configparser.rst:529 msgid "" "See also the *space_around_delimiters* argument to :meth:`ConfigParser." "write`." msgstr "" -#: ../Doc/library/configparser.rst:562 +#: ../Doc/library/configparser.rst:532 msgid "*comment_prefixes*, default value: ``('#', ';')``" msgstr "" -#: ../Doc/library/configparser.rst:564 +#: ../Doc/library/configparser.rst:534 msgid "*inline_comment_prefixes*, default value: ``None``" msgstr "" -#: ../Doc/library/configparser.rst:566 +#: ../Doc/library/configparser.rst:536 msgid "" "Comment prefixes are strings that indicate the start of a valid comment " "within a config file. *comment_prefixes* are used only on otherwise empty " @@ -443,13 +440,13 @@ msgid "" "used as prefixes for whole line comments." msgstr "" -#: ../Doc/library/configparser.rst:573 +#: ../Doc/library/configparser.rst:543 msgid "" "In previous versions of :mod:`configparser` behaviour matched " "``comment_prefixes=('#',';')`` and ``inline_comment_prefixes=(';',)``." msgstr "" -#: ../Doc/library/configparser.rst:577 +#: ../Doc/library/configparser.rst:547 msgid "" "Please note that config parsers don't support escaping of comment prefixes " "so using *inline_comment_prefixes* may prevent users from specifying option " @@ -459,11 +456,11 @@ msgid "" "values is to interpolate the prefix, for example::" msgstr "" -#: ../Doc/library/configparser.rst:623 +#: ../Doc/library/configparser.rst:593 msgid "*strict*, default value: ``True``" msgstr "" -#: ../Doc/library/configparser.rst:625 +#: ../Doc/library/configparser.rst:595 msgid "" "When set to ``True``, the parser will not allow for any section or option " "duplicates while reading from a single source (using :meth:`read_file`, :" @@ -471,17 +468,17 @@ msgid "" "parsers in new applications." msgstr "" -#: ../Doc/library/configparser.rst:630 +#: ../Doc/library/configparser.rst:600 msgid "" "In previous versions of :mod:`configparser` behaviour matched " "``strict=False``." msgstr "" -#: ../Doc/library/configparser.rst:634 +#: ../Doc/library/configparser.rst:604 msgid "*empty_lines_in_values*, default value: ``True``" msgstr "" -#: ../Doc/library/configparser.rst:636 +#: ../Doc/library/configparser.rst:606 msgid "" "In config parsers, values can span multiple lines as long as they are " "indented more than the key that holds them. By default parsers also let " @@ -491,7 +488,7 @@ msgid "" "lose track of the file structure. Take for instance:" msgstr "" -#: ../Doc/library/configparser.rst:651 +#: ../Doc/library/configparser.rst:621 msgid "" "This can be especially problematic for the user to see if she's using a " "proportional font to edit the file. That is why when your application does " @@ -500,13 +497,13 @@ msgid "" "would produce two keys, ``key`` and ``this``." msgstr "" -#: ../Doc/library/configparser.rst:657 +#: ../Doc/library/configparser.rst:627 msgid "" "*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: ``" "\"DEFAULT\"``)" msgstr "" -#: ../Doc/library/configparser.rst:660 +#: ../Doc/library/configparser.rst:630 msgid "" "The convention of allowing a special section of default values for other " "sections or interpolation purposes is a powerful concept of this library, " @@ -520,11 +517,11 @@ msgid "" "files from one format to another)." msgstr "" -#: ../Doc/library/configparser.rst:671 +#: ../Doc/library/configparser.rst:641 msgid "*interpolation*, default value: ``configparser.BasicInterpolation``" msgstr "" -#: ../Doc/library/configparser.rst:673 +#: ../Doc/library/configparser.rst:643 msgid "" "Interpolation behaviour may be customized by providing a custom handler " "through the *interpolation* argument. ``None`` can be used to turn off " @@ -534,11 +531,11 @@ msgid "" "`RawConfigParser` has a default value of ``None``." msgstr "" -#: ../Doc/library/configparser.rst:680 +#: ../Doc/library/configparser.rst:650 msgid "*converters*, default value: not set" msgstr "" -#: ../Doc/library/configparser.rst:682 +#: ../Doc/library/configparser.rst:652 msgid "" "Config parsers provide option value getters that perform type conversion. " "By default :meth:`~ConfigParser.getint`, :meth:`~ConfigParser.getfloat`, " @@ -552,7 +549,7 @@ msgid "" "``parser_instance['section'].getdecimal('key', 0)``." msgstr "" -#: ../Doc/library/configparser.rst:693 +#: ../Doc/library/configparser.rst:663 msgid "" "If the converter needs to access the state of the parser, it can be " "implemented as a method on a config parser subclass. If the name of this " @@ -560,14 +557,14 @@ msgid "" "the dict-compatible form (see the ``getdecimal()`` example above)." msgstr "" -#: ../Doc/library/configparser.rst:698 +#: ../Doc/library/configparser.rst:668 msgid "" "More advanced customization may be achieved by overriding default values of " "these parser attributes. The defaults are defined on the classes, so they " "may be overridden by subclasses or by attribute assignment." msgstr "" -#: ../Doc/library/configparser.rst:704 +#: ../Doc/library/configparser.rst:674 msgid "" "By default when using :meth:`~ConfigParser.getboolean`, config parsers " "consider the following values ``True``: ``'1'``, ``'yes'``, ``'true'``, " @@ -576,13 +573,13 @@ msgid "" "strings and their Boolean outcomes. For example:" msgstr "" -#: ../Doc/library/configparser.rst:722 +#: ../Doc/library/configparser.rst:692 msgid "" "Other typical Boolean pairs include ``accept``/``reject`` or ``enabled``/" "``disabled``." msgstr "" -#: ../Doc/library/configparser.rst:727 +#: ../Doc/library/configparser.rst:697 msgid "" "This method transforms option names on every read, get, or set operation. " "The default converts the name to lowercase. This also means that when a " @@ -590,7 +587,7 @@ msgid "" "method if that's unsuitable. For example:" msgstr "" -#: ../Doc/library/configparser.rst:758 +#: ../Doc/library/configparser.rst:728 msgid "" "A compiled regular expression used to parse section headers. The default " "matches ``[section]`` to the name ``\"section\"``. Whitespace is considered " @@ -599,18 +596,18 @@ msgid "" "example:" msgstr "" -#: ../Doc/library/configparser.rst:786 +#: ../Doc/library/configparser.rst:756 msgid "" "While ConfigParser objects also use an ``OPTCRE`` attribute for recognizing " "option lines, it's not recommended to override it because that would " "interfere with constructor options *allow_no_value* and *delimiters*." msgstr "" -#: ../Doc/library/configparser.rst:792 +#: ../Doc/library/configparser.rst:762 msgid "Legacy API Examples" msgstr "" -#: ../Doc/library/configparser.rst:794 +#: ../Doc/library/configparser.rst:764 msgid "" "Mainly because of backwards compatibility concerns, :mod:`configparser` " "provides also a legacy API with explicit ``get``/``set`` methods. While " @@ -619,29 +616,29 @@ msgid "" "advanced, low-level and downright counterintuitive." msgstr "" -#: ../Doc/library/configparser.rst:800 +#: ../Doc/library/configparser.rst:770 msgid "An example of writing to a configuration file::" msgstr "" -#: ../Doc/library/configparser.rst:823 +#: ../Doc/library/configparser.rst:793 msgid "An example of reading the configuration file again::" msgstr "" -#: ../Doc/library/configparser.rst:841 +#: ../Doc/library/configparser.rst:811 msgid "To get interpolation, use :class:`ConfigParser`::" msgstr "" -#: ../Doc/library/configparser.rst:874 +#: ../Doc/library/configparser.rst:844 msgid "" "Default values are available in both types of ConfigParsers. They are used " "in interpolation if an option used is not defined elsewhere. ::" msgstr "" -#: ../Doc/library/configparser.rst:892 +#: ../Doc/library/configparser.rst:862 msgid "ConfigParser Objects" msgstr "" -#: ../Doc/library/configparser.rst:896 +#: ../Doc/library/configparser.rst:866 msgid "" "The main configuration parser. When *defaults* is given, it is initialized " "into the dictionary of intrinsic defaults. When *dict_type* is given, it " @@ -649,7 +646,7 @@ msgid "" "the options within a section, and for the default values." msgstr "" -#: ../Doc/library/configparser.rst:901 +#: ../Doc/library/configparser.rst:871 msgid "" "When *delimiters* is given, it is used as the set of substrings that divide " "keys from values. When *comment_prefixes* is given, it will be used as the " @@ -658,7 +655,7 @@ msgid "" "as the set of substrings that prefix comments in non-empty lines." msgstr "" -#: ../Doc/library/configparser.rst:907 +#: ../Doc/library/configparser.rst:877 msgid "" "When *strict* is ``True`` (the default), the parser won't allow for any " "section or option duplicates while reading from a single source (file, " @@ -671,7 +668,7 @@ msgid "" "without the trailing delimiter." msgstr "" -#: ../Doc/library/configparser.rst:917 +#: ../Doc/library/configparser.rst:887 msgid "" "When *default_section* is given, it specifies the name for the special " "section holding default values for other sections and interpolation purposes " @@ -679,7 +676,7 @@ msgid "" "on runtime using the ``default_section`` instance attribute." msgstr "" -#: ../Doc/library/configparser.rst:922 +#: ../Doc/library/configparser.rst:892 msgid "" "Interpolation behaviour may be customized by providing a custom handler " "through the *interpolation* argument. ``None`` can be used to turn off " @@ -688,7 +685,7 @@ msgid "" "`dedicated documentation section <#interpolation-of-values>`_." msgstr "" -#: ../Doc/library/configparser.rst:928 +#: ../Doc/library/configparser.rst:898 msgid "" "All option names used in interpolation will be passed through the :meth:" "`optionxform` method just like any other option name reference. For " @@ -697,7 +694,7 @@ msgid "" "%(BAR)s`` are equivalent." msgstr "" -#: ../Doc/library/configparser.rst:934 +#: ../Doc/library/configparser.rst:904 msgid "" "When *converters* is given, it should be a dictionary where each key " "represents the name of a type converter and each value is a callable " @@ -706,44 +703,38 @@ msgid "" "object and section proxies." msgstr "" -#: ../Doc/library/configparser.rst:940 +#: ../Doc/library/configparser.rst:910 msgid "The default *dict_type* is :class:`collections.OrderedDict`." msgstr "" -#: ../Doc/library/configparser.rst:943 +#: ../Doc/library/configparser.rst:913 msgid "" "*allow_no_value*, *delimiters*, *comment_prefixes*, *strict*, " "*empty_lines_in_values*, *default_section* and *interpolation* were added." msgstr "" -#: ../Doc/library/configparser.rst:948 +#: ../Doc/library/configparser.rst:918 msgid "The *converters* argument was added." msgstr "" -#: ../Doc/library/configparser.rst:951 +#: ../Doc/library/configparser.rst:921 msgid "" "The *defaults* argument is read with :meth:`read_dict()`, providing " "consistent behavior across the parser: non-string keys and values are " "implicitly converted to strings." msgstr "" -#: ../Doc/library/configparser.rst:956 ../Doc/library/configparser.rst:1229 -msgid "" -"The default *dict_type* is :class:`dict`, since it now preserves insertion " -"order." -msgstr "" - -#: ../Doc/library/configparser.rst:962 +#: ../Doc/library/configparser.rst:928 msgid "Return a dictionary containing the instance-wide defaults." msgstr "" -#: ../Doc/library/configparser.rst:967 +#: ../Doc/library/configparser.rst:933 msgid "" "Return a list of the sections available; the *default section* is not " "included in the list." msgstr "" -#: ../Doc/library/configparser.rst:973 +#: ../Doc/library/configparser.rst:939 msgid "" "Add a section named *section* to the instance. If a section by the given " "name already exists, :exc:`DuplicateSectionError` is raised. If the " @@ -751,34 +742,34 @@ msgid "" "the section must be a string; if not, :exc:`TypeError` is raised." msgstr "" -#: ../Doc/library/configparser.rst:978 +#: ../Doc/library/configparser.rst:944 msgid "Non-string section names raise :exc:`TypeError`." msgstr "" -#: ../Doc/library/configparser.rst:984 +#: ../Doc/library/configparser.rst:950 msgid "" "Indicates whether the named *section* is present in the configuration. The " "*default section* is not acknowledged." msgstr "" -#: ../Doc/library/configparser.rst:990 +#: ../Doc/library/configparser.rst:956 msgid "Return a list of options available in the specified *section*." msgstr "" -#: ../Doc/library/configparser.rst:995 +#: ../Doc/library/configparser.rst:961 msgid "" "If the given *section* exists, and contains the given *option*, return :" "const:`True`; otherwise return :const:`False`. If the specified *section* " "is :const:`None` or an empty string, DEFAULT is assumed." msgstr "" -#: ../Doc/library/configparser.rst:1002 +#: ../Doc/library/configparser.rst:968 msgid "" "Attempt to read and parse an iterable of filenames, returning a list of " "filenames which were successfully parsed." msgstr "" -#: ../Doc/library/configparser.rst:1005 +#: ../Doc/library/configparser.rst:971 msgid "" "If *filenames* is a string, a :class:`bytes` object or a :term:`path-like " "object`, it is treated as a single filename. If a file named in *filenames* " @@ -789,7 +780,7 @@ msgid "" "be read." msgstr "" -#: ../Doc/library/configparser.rst:1014 +#: ../Doc/library/configparser.rst:980 msgid "" "If none of the named files exist, the :class:`ConfigParser` instance will " "contain an empty dataset. An application which requires initial values to " @@ -797,49 +788,49 @@ msgid "" "`read_file` before calling :meth:`read` for any optional files::" msgstr "" -#: ../Doc/library/configparser.rst:1027 +#: ../Doc/library/configparser.rst:993 msgid "" "The *encoding* parameter. Previously, all files were read using the default " "encoding for :func:`open`." msgstr "" -#: ../Doc/library/configparser.rst:1031 +#: ../Doc/library/configparser.rst:997 msgid "The *filenames* parameter accepts a :term:`path-like object`." msgstr "" -#: ../Doc/library/configparser.rst:1034 +#: ../Doc/library/configparser.rst:1000 msgid "The *filenames* parameter accepts a :class:`bytes` object." msgstr "" -#: ../Doc/library/configparser.rst:1040 +#: ../Doc/library/configparser.rst:1006 msgid "" "Read and parse configuration data from *f* which must be an iterable " "yielding Unicode strings (for example files opened in text mode)." msgstr "" -#: ../Doc/library/configparser.rst:1043 +#: ../Doc/library/configparser.rst:1009 msgid "" "Optional argument *source* specifies the name of the file being read. If " "not given and *f* has a :attr:`name` attribute, that is used for *source*; " "the default is ``''``." msgstr "" -#: ../Doc/library/configparser.rst:1047 +#: ../Doc/library/configparser.rst:1013 msgid "Replaces :meth:`readfp`." msgstr "" -#: ../Doc/library/configparser.rst:1052 +#: ../Doc/library/configparser.rst:1018 msgid "Parse configuration data from a string." msgstr "" -#: ../Doc/library/configparser.rst:1054 +#: ../Doc/library/configparser.rst:1020 msgid "" "Optional argument *source* specifies a context-specific name of the string " "passed. If not given, ``''`` is used. This should commonly be a " "filesystem path or a URL." msgstr "" -#: ../Doc/library/configparser.rst:1063 +#: ../Doc/library/configparser.rst:1029 msgid "" "Load configuration from any object that provides a dict-like ``items()`` " "method. Keys are section names, values are dictionaries with keys and " @@ -848,17 +839,17 @@ msgid "" "automatically converted to strings." msgstr "" -#: ../Doc/library/configparser.rst:1069 +#: ../Doc/library/configparser.rst:1035 msgid "" "Optional argument *source* specifies a context-specific name of the " "dictionary passed. If not given, ```` is used." msgstr "" -#: ../Doc/library/configparser.rst:1072 +#: ../Doc/library/configparser.rst:1038 msgid "This method can be used to copy state between parsers." msgstr "" -#: ../Doc/library/configparser.rst:1079 +#: ../Doc/library/configparser.rst:1045 msgid "" "Get an *option* value for the named *section*. If *vars* is provided, it " "must be a dictionary. The *option* is looked up in *vars* (if provided), " @@ -867,35 +858,35 @@ msgid "" "provided as a *fallback* value." msgstr "" -#: ../Doc/library/configparser.rst:1085 +#: ../Doc/library/configparser.rst:1051 msgid "" "All the ``'%'`` interpolations are expanded in the return values, unless the " "*raw* argument is true. Values for interpolation keys are looked up in the " "same manner as the option." msgstr "" -#: ../Doc/library/configparser.rst:1089 +#: ../Doc/library/configparser.rst:1055 msgid "" "Arguments *raw*, *vars* and *fallback* are keyword only to protect users " "from trying to use the third argument as the *fallback* fallback (especially " "when using the mapping protocol)." msgstr "" -#: ../Doc/library/configparser.rst:1097 +#: ../Doc/library/configparser.rst:1063 msgid "" "A convenience method which coerces the *option* in the specified *section* " "to an integer. See :meth:`get` for explanation of *raw*, *vars* and " "*fallback*." msgstr "" -#: ../Doc/library/configparser.rst:1104 +#: ../Doc/library/configparser.rst:1070 msgid "" "A convenience method which coerces the *option* in the specified *section* " "to a floating point number. See :meth:`get` for explanation of *raw*, " "*vars* and *fallback*." msgstr "" -#: ../Doc/library/configparser.rst:1111 +#: ../Doc/library/configparser.rst:1077 msgid "" "A convenience method which coerces the *option* in the specified *section* " "to a Boolean value. Note that the accepted values for the option are " @@ -907,27 +898,27 @@ msgid "" "*fallback*." msgstr "" -#: ../Doc/library/configparser.rst:1124 +#: ../Doc/library/configparser.rst:1090 msgid "" "When *section* is not given, return a list of *section_name*, " "*section_proxy* pairs, including DEFAULTSECT." msgstr "" -#: ../Doc/library/configparser.rst:1127 +#: ../Doc/library/configparser.rst:1093 msgid "" "Otherwise, return a list of *name*, *value* pairs for the options in the " "given *section*. Optional arguments have the same meaning as for the :meth:" "`get` method." msgstr "" -#: ../Doc/library/configparser.rst:1134 +#: ../Doc/library/configparser.rst:1100 msgid "" "If the given section exists, set the given option to the specified value; " "otherwise raise :exc:`NoSectionError`. *option* and *value* must be " "strings; if not, :exc:`TypeError` is raised." msgstr "" -#: ../Doc/library/configparser.rst:1141 +#: ../Doc/library/configparser.rst:1107 msgid "" "Write a representation of the configuration to the specified :term:`file " "object`, which must be opened in text mode (accepting strings). This " @@ -936,20 +927,20 @@ msgid "" "surrounded by spaces." msgstr "" -#: ../Doc/library/configparser.rst:1150 +#: ../Doc/library/configparser.rst:1116 msgid "" "Remove the specified *option* from the specified *section*. If the section " "does not exist, raise :exc:`NoSectionError`. If the option existed to be " "removed, return :const:`True`; otherwise return :const:`False`." msgstr "" -#: ../Doc/library/configparser.rst:1158 +#: ../Doc/library/configparser.rst:1124 msgid "" "Remove the specified *section* from the configuration. If the section in " "fact existed, return ``True``. Otherwise return ``False``." msgstr "" -#: ../Doc/library/configparser.rst:1164 +#: ../Doc/library/configparser.rst:1130 msgid "" "Transforms the option name *option* as found in an input file or as passed " "in by client code to the form that should be used in the internal " @@ -958,7 +949,7 @@ msgid "" "of this name on instances to affect this behavior." msgstr "" -#: ../Doc/library/configparser.rst:1170 +#: ../Doc/library/configparser.rst:1136 msgid "" "You don't need to subclass the parser to use this method, you can also set " "it on an instance, to a function that takes a string argument and returns a " @@ -966,46 +957,46 @@ msgid "" "sensitive::" msgstr "" -#: ../Doc/library/configparser.rst:1178 +#: ../Doc/library/configparser.rst:1144 msgid "" "Note that when reading configuration files, whitespace around the option " "names is stripped before :meth:`optionxform` is called." msgstr "" -#: ../Doc/library/configparser.rst:1184 +#: ../Doc/library/configparser.rst:1150 msgid "Use :meth:`read_file` instead." msgstr "" -#: ../Doc/library/configparser.rst:1187 +#: ../Doc/library/configparser.rst:1153 msgid "" ":meth:`readfp` now iterates on *fp* instead of calling ``fp.readline()``." msgstr "" -#: ../Doc/library/configparser.rst:1190 +#: ../Doc/library/configparser.rst:1156 msgid "" "For existing code calling :meth:`readfp` with arguments which don't support " "iteration, the following generator may be used as a wrapper around the file-" "like object::" msgstr "" -#: ../Doc/library/configparser.rst:1200 +#: ../Doc/library/configparser.rst:1166 msgid "" "Instead of ``parser.readfp(fp)`` use ``parser." "read_file(readline_generator(fp))``." msgstr "" -#: ../Doc/library/configparser.rst:1206 +#: ../Doc/library/configparser.rst:1172 msgid "" "The maximum depth for recursive interpolation for :meth:`get` when the *raw* " "parameter is false. This is relevant only when the default *interpolation* " "is used." msgstr "" -#: ../Doc/library/configparser.rst:1214 +#: ../Doc/library/configparser.rst:1180 msgid "RawConfigParser Objects" msgstr "" -#: ../Doc/library/configparser.rst:1224 +#: ../Doc/library/configparser.rst:1190 msgid "" "Legacy variant of the :class:`ConfigParser`. It has interpolation disabled " "by default and allows for non-string section names, option names, and values " @@ -1013,27 +1004,27 @@ msgid "" "``defaults=`` keyword argument handling." msgstr "" -#: ../Doc/library/configparser.rst:1234 +#: ../Doc/library/configparser.rst:1196 msgid "" "Consider using :class:`ConfigParser` instead which checks types of the " "values to be stored internally. If you don't want interpolation, you can " "use ``ConfigParser(interpolation=None)``." msgstr "" -#: ../Doc/library/configparser.rst:1241 +#: ../Doc/library/configparser.rst:1203 msgid "" "Add a section named *section* to the instance. If a section by the given " "name already exists, :exc:`DuplicateSectionError` is raised. If the " "*default section* name is passed, :exc:`ValueError` is raised." msgstr "" -#: ../Doc/library/configparser.rst:1245 +#: ../Doc/library/configparser.rst:1207 msgid "" "Type of *section* is not checked which lets users create non-string named " "sections. This behaviour is unsupported and may cause internal errors." msgstr "" -#: ../Doc/library/configparser.rst:1251 +#: ../Doc/library/configparser.rst:1213 msgid "" "If the given section exists, set the given option to the specified value; " "otherwise raise :exc:`NoSectionError`. While it is possible to use :class:" @@ -1043,7 +1034,7 @@ msgid "" "string values." msgstr "" -#: ../Doc/library/configparser.rst:1258 +#: ../Doc/library/configparser.rst:1220 msgid "" "This method lets users assign non-string values to keys internally. This " "behaviour is unsupported and will cause errors when attempting to write to a " @@ -1051,32 +1042,32 @@ msgid "" "not allow such assignments to take place." msgstr "" -#: ../Doc/library/configparser.rst:1265 +#: ../Doc/library/configparser.rst:1227 msgid "Exceptions" msgstr "Exceptions" -#: ../Doc/library/configparser.rst:1269 +#: ../Doc/library/configparser.rst:1231 msgid "Base class for all other :mod:`configparser` exceptions." msgstr "" -#: ../Doc/library/configparser.rst:1274 +#: ../Doc/library/configparser.rst:1236 msgid "Exception raised when a specified section is not found." msgstr "" -#: ../Doc/library/configparser.rst:1279 +#: ../Doc/library/configparser.rst:1241 msgid "" "Exception raised if :meth:`add_section` is called with the name of a section " "that is already present or in strict parsers when a section if found more " "than once in a single input file, string or dictionary." msgstr "" -#: ../Doc/library/configparser.rst:1283 +#: ../Doc/library/configparser.rst:1245 msgid "" "Optional ``source`` and ``lineno`` attributes and arguments to :meth:" "`__init__` were added." msgstr "" -#: ../Doc/library/configparser.rst:1290 +#: ../Doc/library/configparser.rst:1252 msgid "" "Exception raised by strict parsers if a single option appears twice during " "reading from a single file, string or dictionary. This catches misspellings " @@ -1084,58 +1075,58 @@ msgid "" "representing the same case-insensitive configuration key." msgstr "" -#: ../Doc/library/configparser.rst:1298 +#: ../Doc/library/configparser.rst:1260 msgid "" "Exception raised when a specified option is not found in the specified " "section." msgstr "" -#: ../Doc/library/configparser.rst:1304 +#: ../Doc/library/configparser.rst:1266 msgid "" "Base class for exceptions raised when problems occur performing string " "interpolation." msgstr "" -#: ../Doc/library/configparser.rst:1310 +#: ../Doc/library/configparser.rst:1272 msgid "" "Exception raised when string interpolation cannot be completed because the " "number of iterations exceeds :const:`MAX_INTERPOLATION_DEPTH`. Subclass of :" "exc:`InterpolationError`." msgstr "" -#: ../Doc/library/configparser.rst:1317 +#: ../Doc/library/configparser.rst:1279 msgid "" "Exception raised when an option referenced from a value does not exist. " "Subclass of :exc:`InterpolationError`." msgstr "" -#: ../Doc/library/configparser.rst:1323 +#: ../Doc/library/configparser.rst:1285 msgid "" "Exception raised when the source text into which substitutions are made does " "not conform to the required syntax. Subclass of :exc:`InterpolationError`." msgstr "" -#: ../Doc/library/configparser.rst:1329 +#: ../Doc/library/configparser.rst:1291 msgid "" "Exception raised when attempting to parse a file which has no section " "headers." msgstr "" -#: ../Doc/library/configparser.rst:1335 +#: ../Doc/library/configparser.rst:1297 msgid "Exception raised when errors occur attempting to parse a file." msgstr "" -#: ../Doc/library/configparser.rst:1337 +#: ../Doc/library/configparser.rst:1299 msgid "" "The ``filename`` attribute and :meth:`__init__` argument were renamed to " "``source`` for consistency." msgstr "" -#: ../Doc/library/configparser.rst:1343 +#: ../Doc/library/configparser.rst:1305 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/configparser.rst:1344 +#: ../Doc/library/configparser.rst:1306 msgid "" "Config parsers allow for heavy customization. If you are interested in " "changing the behaviour outlined by the footnote reference, consult the " diff --git a/library/datetime.po b/library/datetime.po index 026c9c1b3..f90a83e82 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-21 17:21+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -590,7 +590,7 @@ msgstr "" "construit avec des valeurs d'attributs canoniques." #: ../Doc/library/datetime.rst:297 ../Doc/library/datetime.rst:512 -#: ../Doc/library/datetime.rst:2170 +#: ../Doc/library/datetime.rst:2176 msgid "Notes:" msgstr "Notes :" @@ -1500,10 +1500,10 @@ msgstr "" msgid "``datetime2 = datetime1 + timedelta``" msgstr "``datetime2 = datetime1 + timedelta``" -#: ../Doc/library/datetime.rst:944 ../Doc/library/datetime.rst:2045 -#: ../Doc/library/datetime.rst:2050 ../Doc/library/datetime.rst:2062 -#: ../Doc/library/datetime.rst:2067 ../Doc/library/datetime.rst:2127 -#: ../Doc/library/datetime.rst:2132 ../Doc/library/datetime.rst:2136 +#: ../Doc/library/datetime.rst:944 ../Doc/library/datetime.rst:2051 +#: ../Doc/library/datetime.rst:2056 ../Doc/library/datetime.rst:2068 +#: ../Doc/library/datetime.rst:2073 ../Doc/library/datetime.rst:2133 +#: ../Doc/library/datetime.rst:2138 ../Doc/library/datetime.rst:2142 msgid "\\(1)" msgstr "\\(1)" @@ -1511,7 +1511,7 @@ msgstr "\\(1)" msgid "``datetime2 = datetime1 - timedelta``" msgstr "``datetime2 = datetime1 - timedelta``" -#: ../Doc/library/datetime.rst:946 ../Doc/library/datetime.rst:2078 +#: ../Doc/library/datetime.rst:946 ../Doc/library/datetime.rst:2084 msgid "\\(2)" msgstr "\\(2)" @@ -1804,7 +1804,7 @@ msgstr "" #: ../Doc/library/datetime.rst:1106 ../Doc/library/datetime.rst:1618 #: ../Doc/library/datetime.rst:1717 ../Doc/library/datetime.rst:1958 -#: ../Doc/library/datetime.rst:1969 ../Doc/library/datetime.rst:2226 +#: ../Doc/library/datetime.rst:1969 ../Doc/library/datetime.rst:2232 msgid "The UTC offset is not restricted to a whole number of minutes." msgstr "Le décalage UTC peut aussi être autre chose qu'un ensemble de minutes." @@ -2986,6 +2986,15 @@ msgstr "" #: ../Doc/library/datetime.rst:2037 msgid "" +"For the same reason, handling of format strings containing Unicode code " +"points that can't be represented in the charset of the current locale is " +"also platform-dependent. On some platforms such code points are preserved " +"intact in the output, while on others ``strftime`` may raise :exc:" +"`UnicodeError` or return an empty string instead." +msgstr "" + +#: ../Doc/library/datetime.rst:2043 +msgid "" "The following is a list of all the format codes that the C standard (1989 " "version) requires, and these work on all platforms with a standard C " "implementation. Note that the 1999 version of the C standard added " @@ -2996,27 +3005,27 @@ msgstr "" "possédant une implémentation de C standard. Notez que la version 1999 du " "standard C a ajouté des codes de formatage additionnels." -#: ../Doc/library/datetime.rst:2043 ../Doc/library/datetime.rst:2150 +#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 msgid "Directive" msgstr "Directive" -#: ../Doc/library/datetime.rst:2043 ../Doc/library/datetime.rst:2150 +#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/datetime.rst:2043 ../Doc/library/datetime.rst:2150 +#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 msgid "Example" msgstr "Exemple" -#: ../Doc/library/datetime.rst:2043 ../Doc/library/datetime.rst:2150 +#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 msgid "Notes" msgstr "Notes" -#: ../Doc/library/datetime.rst:2045 +#: ../Doc/library/datetime.rst:2051 msgid "``%a``" msgstr "``%a``" -#: ../Doc/library/datetime.rst:2045 +#: ../Doc/library/datetime.rst:2051 msgid "Weekday as locale's abbreviated name." msgstr "Jour de la semaine abrégé dans la langue locale." @@ -3028,11 +3037,11 @@ msgstr "Sun, Mon, ..., Sat (en_US);" msgid "So, Mo, ..., Sa (de_DE)" msgstr "Lu, Ma, ..., Di (*fr_FR*)" -#: ../Doc/library/datetime.rst:2050 +#: ../Doc/library/datetime.rst:2056 msgid "``%A``" msgstr "``%A``" -#: ../Doc/library/datetime.rst:2050 +#: ../Doc/library/datetime.rst:2056 msgid "Weekday as locale's full name." msgstr "Jour de la semaine complet dans la langue locale." @@ -3044,36 +3053,36 @@ msgstr "*Sunday*, *Monday*, ..., *Saturday* (*en_US*);" msgid "Sonntag, Montag, ..., Samstag (de_DE)" msgstr "Lundi, Mardi, ..., Dimanche (*fr_FR*)" -#: ../Doc/library/datetime.rst:2055 +#: ../Doc/library/datetime.rst:2061 msgid "``%w``" msgstr "``%w``" -#: ../Doc/library/datetime.rst:2055 +#: ../Doc/library/datetime.rst:2061 msgid "Weekday as a decimal number, where 0 is Sunday and 6 is Saturday." msgstr "" "Jour de la semaine en chiffre, avec 0 pour le dimanche et 6 pour le samedi." -#: ../Doc/library/datetime.rst:2055 +#: ../Doc/library/datetime.rst:2061 msgid "0, 1, ..., 6" msgstr "0, 1, ..., 6" -#: ../Doc/library/datetime.rst:2059 +#: ../Doc/library/datetime.rst:2065 msgid "``%d``" msgstr "``%d``" -#: ../Doc/library/datetime.rst:2059 +#: ../Doc/library/datetime.rst:2065 msgid "Day of the month as a zero-padded decimal number." msgstr "Jour du mois sur deux chiffres." -#: ../Doc/library/datetime.rst:2059 +#: ../Doc/library/datetime.rst:2065 msgid "01, 02, ..., 31" msgstr "01, 02, ..., 31" -#: ../Doc/library/datetime.rst:2062 +#: ../Doc/library/datetime.rst:2068 msgid "``%b``" msgstr "``%b``" -#: ../Doc/library/datetime.rst:2062 +#: ../Doc/library/datetime.rst:2068 msgid "Month as locale's abbreviated name." msgstr "Nom du mois abrégé dans la langue locale." @@ -3085,11 +3094,11 @@ msgstr "Jan, Feb, ..., Dec (*en_US*);" msgid "Jan, Feb, ..., Dez (de_DE)" msgstr "janv., févr., ..., déc. (*fr_FR*)" -#: ../Doc/library/datetime.rst:2067 +#: ../Doc/library/datetime.rst:2073 msgid "``%B``" msgstr "``%B``" -#: ../Doc/library/datetime.rst:2067 +#: ../Doc/library/datetime.rst:2073 msgid "Month as locale's full name." msgstr "Nom complet du mois dans la langue locale." @@ -3101,67 +3110,67 @@ msgstr "*January*, *February*, ..., *December* (*en_US*);" msgid "Januar, Februar, ..., Dezember (de_DE)" msgstr "janvier, février, ..., décembre (*fr_FR*)" -#: ../Doc/library/datetime.rst:2072 +#: ../Doc/library/datetime.rst:2078 msgid "``%m``" msgstr "``%m``" -#: ../Doc/library/datetime.rst:2072 +#: ../Doc/library/datetime.rst:2078 msgid "Month as a zero-padded decimal number." msgstr "Numéro du mois sur deux chiffres." -#: ../Doc/library/datetime.rst:2072 ../Doc/library/datetime.rst:2084 +#: ../Doc/library/datetime.rst:2078 ../Doc/library/datetime.rst:2090 msgid "01, 02, ..., 12" msgstr "01, 02, ..., 12" -#: ../Doc/library/datetime.rst:2075 +#: ../Doc/library/datetime.rst:2081 msgid "``%y``" msgstr "``%y``" -#: ../Doc/library/datetime.rst:2075 +#: ../Doc/library/datetime.rst:2081 msgid "Year without century as a zero-padded decimal number." msgstr "Année sur deux chiffres (sans le siècle)." -#: ../Doc/library/datetime.rst:2075 +#: ../Doc/library/datetime.rst:2081 msgid "00, 01, ..., 99" msgstr "00, 01, ..., 99" -#: ../Doc/library/datetime.rst:2078 +#: ../Doc/library/datetime.rst:2084 msgid "``%Y``" msgstr "``%Y``" -#: ../Doc/library/datetime.rst:2078 +#: ../Doc/library/datetime.rst:2084 msgid "Year with century as a decimal number." msgstr "Année complète sur quatre chiffres." -#: ../Doc/library/datetime.rst:2078 ../Doc/library/datetime.rst:2152 +#: ../Doc/library/datetime.rst:2084 ../Doc/library/datetime.rst:2158 msgid "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" msgstr "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" -#: ../Doc/library/datetime.rst:2081 +#: ../Doc/library/datetime.rst:2087 msgid "``%H``" msgstr "``%H``" -#: ../Doc/library/datetime.rst:2081 +#: ../Doc/library/datetime.rst:2087 msgid "Hour (24-hour clock) as a zero-padded decimal number." msgstr "Heure à deux chiffres de 00 à 23." -#: ../Doc/library/datetime.rst:2081 +#: ../Doc/library/datetime.rst:2087 msgid "00, 01, ..., 23" msgstr "00, 01, ..., 23" -#: ../Doc/library/datetime.rst:2084 +#: ../Doc/library/datetime.rst:2090 msgid "``%I``" msgstr "``%I``" -#: ../Doc/library/datetime.rst:2084 +#: ../Doc/library/datetime.rst:2090 msgid "Hour (12-hour clock) as a zero-padded decimal number." msgstr "Heure à deux chiffres pour les horloges 12h (01 à 12)." -#: ../Doc/library/datetime.rst:2087 +#: ../Doc/library/datetime.rst:2093 msgid "``%p``" msgstr "``%p``" -#: ../Doc/library/datetime.rst:2087 +#: ../Doc/library/datetime.rst:2093 msgid "Locale's equivalent of either AM or PM." msgstr "Équivalent local à AM/PM." @@ -3173,55 +3182,55 @@ msgstr "AM, PM (en_US);" msgid "am, pm (de_DE)" msgstr "am, pm (de_DE)" -#: ../Doc/library/datetime.rst:2087 +#: ../Doc/library/datetime.rst:2093 msgid "\\(1), \\(3)" msgstr "\\(1), \\(3)" -#: ../Doc/library/datetime.rst:2090 +#: ../Doc/library/datetime.rst:2096 msgid "``%M``" msgstr "``%M``" -#: ../Doc/library/datetime.rst:2090 +#: ../Doc/library/datetime.rst:2096 msgid "Minute as a zero-padded decimal number." msgstr "Minutes sur deux chiffres." -#: ../Doc/library/datetime.rst:2090 ../Doc/library/datetime.rst:2093 +#: ../Doc/library/datetime.rst:2096 ../Doc/library/datetime.rst:2099 msgid "00, 01, ..., 59" msgstr "00, 01, ..., 59" -#: ../Doc/library/datetime.rst:2093 +#: ../Doc/library/datetime.rst:2099 msgid "``%S``" msgstr "``%S``" -#: ../Doc/library/datetime.rst:2093 +#: ../Doc/library/datetime.rst:2099 msgid "Second as a zero-padded decimal number." msgstr "Secondes sur deux chiffres." -#: ../Doc/library/datetime.rst:2093 +#: ../Doc/library/datetime.rst:2099 msgid "\\(4)" msgstr "\\(4)" -#: ../Doc/library/datetime.rst:2096 +#: ../Doc/library/datetime.rst:2102 msgid "``%f``" msgstr "``%f``" -#: ../Doc/library/datetime.rst:2096 +#: ../Doc/library/datetime.rst:2102 msgid "Microsecond as a decimal number, zero-padded on the left." msgstr "Microsecondes sur 6 chiffres." -#: ../Doc/library/datetime.rst:2096 +#: ../Doc/library/datetime.rst:2102 msgid "000000, 000001, ..., 999999" msgstr "000000, 000001, ..., 999999" -#: ../Doc/library/datetime.rst:2096 +#: ../Doc/library/datetime.rst:2102 msgid "\\(5)" msgstr "\\(5)" -#: ../Doc/library/datetime.rst:2100 ../Doc/library/datetime.rst:2224 +#: ../Doc/library/datetime.rst:2106 ../Doc/library/datetime.rst:2230 msgid "``%z``" msgstr "``%z``" -#: ../Doc/library/datetime.rst:2100 +#: ../Doc/library/datetime.rst:2106 msgid "" "UTC offset in the form ±HHMM[SS[.ffffff]] (empty string if the object is " "naive)." @@ -3229,43 +3238,43 @@ msgstr "" "Décalage UTC sous la forme ``±HHMM[SS[.ffffff]]`` (chaîne vide si l'instance " "est naïve)." -#: ../Doc/library/datetime.rst:2100 +#: ../Doc/library/datetime.rst:2106 msgid "(empty), +0000, -0400, +1030, +063415, -030712.345216" msgstr "(vide), +0000, -0400, +1030, +063415, -030712.345216" -#: ../Doc/library/datetime.rst:2100 +#: ../Doc/library/datetime.rst:2106 msgid "\\(6)" msgstr "\\(6)" -#: ../Doc/library/datetime.rst:2105 ../Doc/library/datetime.rst:2239 +#: ../Doc/library/datetime.rst:2111 ../Doc/library/datetime.rst:2245 msgid "``%Z``" msgstr "``%Z``" -#: ../Doc/library/datetime.rst:2105 +#: ../Doc/library/datetime.rst:2111 msgid "Time zone name (empty string if the object is naive)." msgstr "Nom du fuseau horaire (chaîne vide si l'instance est naïve)." -#: ../Doc/library/datetime.rst:2105 +#: ../Doc/library/datetime.rst:2111 msgid "(empty), UTC, EST, CST" msgstr "(vide), UTC, EST, CST" -#: ../Doc/library/datetime.rst:2108 +#: ../Doc/library/datetime.rst:2114 msgid "``%j``" msgstr "``%j``" -#: ../Doc/library/datetime.rst:2108 +#: ../Doc/library/datetime.rst:2114 msgid "Day of the year as a zero-padded decimal number." msgstr "Numéro du jour dans l'année sur trois chiffres." -#: ../Doc/library/datetime.rst:2108 +#: ../Doc/library/datetime.rst:2114 msgid "001, 002, ..., 366" msgstr "001, 002, ..., 366" -#: ../Doc/library/datetime.rst:2111 +#: ../Doc/library/datetime.rst:2117 msgid "``%U``" msgstr "``%U``" -#: ../Doc/library/datetime.rst:2111 +#: ../Doc/library/datetime.rst:2117 msgid "" "Week number of the year (Sunday as the first day of the week) as a zero " "padded decimal number. All days in a new year preceding the first Sunday are " @@ -3275,19 +3284,19 @@ msgstr "" "premier jour de la semaine). Tous les jours de l'année précédent le premier " "dimanche sont considérés comme appartenant à la semaine 0." -#: ../Doc/library/datetime.rst:2111 ../Doc/library/datetime.rst:2119 +#: ../Doc/library/datetime.rst:2117 ../Doc/library/datetime.rst:2125 msgid "00, 01, ..., 53" msgstr "00, 01, ..., 53" -#: ../Doc/library/datetime.rst:2111 ../Doc/library/datetime.rst:2119 +#: ../Doc/library/datetime.rst:2117 ../Doc/library/datetime.rst:2125 msgid "\\(7)" msgstr "\\(7)" -#: ../Doc/library/datetime.rst:2119 +#: ../Doc/library/datetime.rst:2125 msgid "``%W``" msgstr "``%W``" -#: ../Doc/library/datetime.rst:2119 +#: ../Doc/library/datetime.rst:2125 msgid "" "Week number of the year (Monday as the first day of the week) as a decimal " "number. All days in a new year preceding the first Monday are considered to " @@ -3297,11 +3306,11 @@ msgstr "" "premier jour de la semaine). Tous les jours de l'année précédent le premier " "lundi sont considérés comme appartenant à la semaine 0." -#: ../Doc/library/datetime.rst:2127 +#: ../Doc/library/datetime.rst:2133 msgid "``%c``" msgstr "``%c``" -#: ../Doc/library/datetime.rst:2127 +#: ../Doc/library/datetime.rst:2133 msgid "Locale's appropriate date and time representation." msgstr "Représentation locale de la date et de l'heure." @@ -3313,11 +3322,11 @@ msgstr "Tue Aug 16 21:30:00 1988 (*en_US*);" msgid "Di 16 Aug 21:30:00 1988 (de_DE)" msgstr "mar. 16 août 1988 21:30:00 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2132 +#: ../Doc/library/datetime.rst:2138 msgid "``%x``" msgstr "``%x``" -#: ../Doc/library/datetime.rst:2132 +#: ../Doc/library/datetime.rst:2138 msgid "Locale's appropriate date representation." msgstr "Représentation locale de la date." @@ -3333,11 +3342,11 @@ msgstr "08/16/1988 (*en_US*);" msgid "16.08.1988 (de_DE)" msgstr "16/08/1988 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2136 +#: ../Doc/library/datetime.rst:2142 msgid "``%X``" msgstr "``%X``" -#: ../Doc/library/datetime.rst:2136 +#: ../Doc/library/datetime.rst:2142 msgid "Locale's appropriate time representation." msgstr "Représentation locale de l'heure." @@ -3349,19 +3358,19 @@ msgstr "21:30:00 (*en_US*) ;" msgid "21:30:00 (de_DE)" msgstr "21:30:00 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2139 +#: ../Doc/library/datetime.rst:2145 msgid "``%%``" msgstr "``%%``" -#: ../Doc/library/datetime.rst:2139 +#: ../Doc/library/datetime.rst:2145 msgid "A literal ``'%'`` character." msgstr "Un caractère ``'%'`` littéral." -#: ../Doc/library/datetime.rst:2139 +#: ../Doc/library/datetime.rst:2145 msgid "%" msgstr "%" -#: ../Doc/library/datetime.rst:2142 +#: ../Doc/library/datetime.rst:2148 msgid "" "Several additional directives not required by the C89 standard are included " "for convenience. These parameters all correspond to ISO 8601 date values. " @@ -3379,11 +3388,11 @@ msgstr "" "directives d'année et de semaine précédentes. Appeler :meth:`strptime` avec " "des directives ISO 8601 incomplètes ou ambiguës lèvera une :exc:`ValueError`." -#: ../Doc/library/datetime.rst:2152 +#: ../Doc/library/datetime.rst:2158 msgid "``%G``" msgstr "``%G``" -#: ../Doc/library/datetime.rst:2152 +#: ../Doc/library/datetime.rst:2158 msgid "" "ISO 8601 year with century representing the year that contains the greater " "part of the ISO week (``%V``)." @@ -3391,27 +3400,27 @@ msgstr "" "Année complète ISO 8601 représentant l'année contenant la plus grande partie " "de la semaine ISO (``%V``)." -#: ../Doc/library/datetime.rst:2152 ../Doc/library/datetime.rst:2160 +#: ../Doc/library/datetime.rst:2158 ../Doc/library/datetime.rst:2166 msgid "\\(8)" msgstr "\\(8)" -#: ../Doc/library/datetime.rst:2157 +#: ../Doc/library/datetime.rst:2163 msgid "``%u``" msgstr "``%u``" -#: ../Doc/library/datetime.rst:2157 +#: ../Doc/library/datetime.rst:2163 msgid "ISO 8601 weekday as a decimal number where 1 is Monday." msgstr "Jour de la semaine ISO 8601 où 1 correspond au lundi." -#: ../Doc/library/datetime.rst:2157 +#: ../Doc/library/datetime.rst:2163 msgid "1, 2, ..., 7" msgstr "1, 2, ..., 7" -#: ../Doc/library/datetime.rst:2160 +#: ../Doc/library/datetime.rst:2166 msgid "``%V``" msgstr "``%V``" -#: ../Doc/library/datetime.rst:2160 +#: ../Doc/library/datetime.rst:2166 msgid "" "ISO 8601 week as a decimal number with Monday as the first day of the week. " "Week 01 is the week containing Jan 4." @@ -3419,15 +3428,15 @@ msgstr "" "Numéro de la semaine ISO 8601, avec lundi étant le premier jour de la " "semaine. La semaine 01 est la semaine contenant le 4 janvier." -#: ../Doc/library/datetime.rst:2160 +#: ../Doc/library/datetime.rst:2166 msgid "01, 02, ..., 53" msgstr "01, 02, ..., 53" -#: ../Doc/library/datetime.rst:2167 +#: ../Doc/library/datetime.rst:2173 msgid "``%G``, ``%u`` and ``%V`` were added." msgstr "``%G``, ``%u`` et ``%V`` ont été ajoutés." -#: ../Doc/library/datetime.rst:2173 +#: ../Doc/library/datetime.rst:2179 msgid "" "Because the format depends on the current locale, care should be taken when " "making assumptions about the output value. Field orderings will vary (for " @@ -3446,7 +3455,7 @@ msgstr "" "utilisez :meth:`locale.getlocale` pour déterminer l'encodage de la locale " "courante)." -#: ../Doc/library/datetime.rst:2182 +#: ../Doc/library/datetime.rst:2188 msgid "" "The :meth:`strptime` method can parse years in the full [1, 9999] range, but " "years < 1000 must be zero-filled to 4-digit width." @@ -3455,7 +3464,7 @@ msgstr "" "[1, 9999], mais toutes les années < 1000 doivent être représentées sur " "quatre chiffres." -#: ../Doc/library/datetime.rst:2185 +#: ../Doc/library/datetime.rst:2191 msgid "" "In previous versions, :meth:`strftime` method was restricted to years >= " "1900." @@ -3463,13 +3472,13 @@ msgstr "" "Dans les versions précédentes, la méthode :meth:`strftime` était limitée aux " "années >= 1900." -#: ../Doc/library/datetime.rst:2189 +#: ../Doc/library/datetime.rst:2195 msgid "" "In version 3.2, :meth:`strftime` method was restricted to years >= 1000." msgstr "" "En version 3.2, la méthode :meth:`strftime` était limitée aux années >= 1000." -#: ../Doc/library/datetime.rst:2194 +#: ../Doc/library/datetime.rst:2200 msgid "" "When used with the :meth:`strptime` method, the ``%p`` directive only " "affects the output hour field if the ``%I`` directive is used to parse the " @@ -3479,7 +3488,7 @@ msgstr "" "n'affecte l'heure extraite que si la directive ``%I`` est utilisée pour " "analyser l'heure." -#: ../Doc/library/datetime.rst:2198 +#: ../Doc/library/datetime.rst:2204 msgid "" "Unlike the :mod:`time` module, the :mod:`datetime` module does not support " "leap seconds." @@ -3487,7 +3496,7 @@ msgstr "" "À l'inverse du module :mod:`time`, le module :mod:`datetime` ne gère pas les " "secondes intercalaires." -#: ../Doc/library/datetime.rst:2202 +#: ../Doc/library/datetime.rst:2208 msgid "" "When used with the :meth:`strptime` method, the ``%f`` directive accepts " "from one to six digits and zero pads on the right. ``%f`` is an extension " @@ -3500,7 +3509,7 @@ msgstr "" "caractères de formatage du standard C (mais implémentée séparément dans les " "objets *datetime*, la rendant ainsi toujours disponible)." -#: ../Doc/library/datetime.rst:2209 +#: ../Doc/library/datetime.rst:2215 msgid "" "For a naive object, the ``%z`` and ``%Z`` format codes are replaced by empty " "strings." @@ -3508,11 +3517,11 @@ msgstr "" "Pour les objets naïfs, les codes de formatage ``%z`` et ``%Z`` sont " "remplacés par des chaînes vides." -#: ../Doc/library/datetime.rst:2212 +#: ../Doc/library/datetime.rst:2218 msgid "For an aware object:" msgstr "Pour un objet avisé :" -#: ../Doc/library/datetime.rst:2215 +#: ../Doc/library/datetime.rst:2221 msgid "" ":meth:`utcoffset` is transformed into a string of the form ±HHMM[SS[." "ffffff]], where HH is a 2-digit string giving the number of UTC offset " @@ -3534,7 +3543,7 @@ msgstr "" "``timedelta(hours=-3, minutes=-30)``, ``%z`` est remplacé par la chaîne " "`'-0330'``." -#: ../Doc/library/datetime.rst:2229 +#: ../Doc/library/datetime.rst:2235 msgid "" "When the ``%z`` directive is provided to the :meth:`strptime` method, the " "UTC offsets can have a colon as a separator between hours, minutes and " @@ -3546,7 +3555,7 @@ msgstr "" "minutes et secondes. Par exemple, ``'+01:00:00'``, est analysé comme un " "décalage d'une heure. Par ailleurs, ``'Z'`` est identique à ``'+00:00'``." -#: ../Doc/library/datetime.rst:2237 +#: ../Doc/library/datetime.rst:2243 msgid "" "If :meth:`tzname` returns ``None``, ``%Z`` is replaced by an empty string. " "Otherwise ``%Z`` is replaced by the returned value, which must be a string." @@ -3555,7 +3564,7 @@ msgstr "" "vide. Autrement ``%Z`` est remplacé par la valeur renvoyée, qui doit être " "une chaîne." -#: ../Doc/library/datetime.rst:2241 +#: ../Doc/library/datetime.rst:2247 msgid "" "When the ``%z`` directive is provided to the :meth:`strptime` method, an " "aware :class:`.datetime` object will be produced. The ``tzinfo`` of the " @@ -3565,7 +3574,7 @@ msgstr "" "objet :class:`.datetime` avisé est construit. L'attribut ``tzinfo`` du " "résultat aura pour valeur une instance de :class:`timezone`." -#: ../Doc/library/datetime.rst:2247 +#: ../Doc/library/datetime.rst:2253 msgid "" "When used with the :meth:`strptime` method, ``%U`` and ``%W`` are only used " "in calculations when the day of the week and the calendar year (``%Y``) are " @@ -3575,7 +3584,7 @@ msgstr "" "utilisés dans les calculs que si le jour de la semaine et l'année calendaire " "(``%Y``) sont spécifiés." -#: ../Doc/library/datetime.rst:2252 +#: ../Doc/library/datetime.rst:2258 msgid "" "Similar to ``%U`` and ``%W``, ``%V`` is only used in calculations when the " "day of the week and the ISO year (``%G``) are specified in a :meth:" @@ -3587,10 +3596,10 @@ msgstr "" "dans la chaîne de formatage :meth:`strptime`. Notez aussi que ``%G`` et ``" "%Y`` ne sont pas interchangeables." -#: ../Doc/library/datetime.rst:2258 +#: ../Doc/library/datetime.rst:2264 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/datetime.rst:2259 +#: ../Doc/library/datetime.rst:2265 msgid "If, that is, we ignore the effects of Relativity" msgstr "Si on ignore les effets de la Relativité" diff --git a/library/decimal.po b/library/decimal.po index fc8718c40..cb1878aed 100644 --- a/library/decimal.po +++ b/library/decimal.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-10-07 18:55+0200\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -2128,3 +2128,21 @@ msgid "" "Alternatively, inputs can be rounded upon creation using the :meth:`Context." "create_decimal` method:" msgstr "" + +#: ../Doc/library/decimal.rst:2119 +msgid "Q. Is the CPython implementation fast for large numbers?" +msgstr "" + +#: ../Doc/library/decimal.rst:2121 +msgid "" +"A. Yes. In the CPython and PyPy3 implementations, the C/CFFI versions of " +"the decimal module integrate the high speed `libmpdec `_ library for arbitrary precision " +"correctly-rounded decimal floating point arithmetic. ``libmpdec`` uses " +"`Karatsuba multiplication `_ for medium-sized numbers and the `Number Theoretic " +"Transform `_ for very " +"large numbers. However, to realize this performance gain, the context needs " +"to be set for unrounded calculations." +msgstr "" diff --git a/library/errno.po b/library/errno.po index b992fbea3..aacc85b8e 100644 --- a/library/errno.po +++ b/library/errno.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-01-22 22:49+0100\n" +"Last-Translator: Dylan Gouin \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Dylan Gouin \n" "X-Generator: Poedit 2.2\n" #: ../Doc/library/errno.rst:2 diff --git a/library/functions.po b/library/functions.po index d272876e9..c761b066d 100644 --- a/library/functions.po +++ b/library/functions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-24 14:22+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-21 17:37+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -1849,15 +1849,7 @@ msgstr "``'+'``" msgid "open a disk file for updating (reading and writing)" msgstr "ouvre un fichier pour le modifier (lire et écrire)" -#: ../Doc/library/functions.rst:1000 -msgid "``'U'``" -msgstr "``'U'``" - -#: ../Doc/library/functions.rst:1000 -msgid ":term:`universal newlines` mode (deprecated)" -msgstr "mode :term:`universal newlines` (obsolète)" - -#: ../Doc/library/functions.rst:1003 +#: ../Doc/library/functions.rst:1002 msgid "" "The default mode is ``'r'`` (open for reading text, synonym of ``'rt'``). " "For binary read-write access, the mode ``'w+b'`` opens and truncates the " @@ -1867,7 +1859,7 @@ msgstr "" "``'rt'``). Pour un accès en lecture écriture binaire, le mode ``'w+b'`` " "ouvre et vide le fichier. ``'r+b'`` ouvre le fichier sans le vider." -#: ../Doc/library/functions.rst:1007 +#: ../Doc/library/functions.rst:1006 msgid "" "As mentioned in the :ref:`io-overview`, Python distinguishes between binary " "and text I/O. Files opened in binary mode (including ``'b'`` in the *mode* " @@ -1885,7 +1877,16 @@ msgstr "" "été décodés au préalable en utilisant un encodage déduit de l'environnement " "ou *encoding* s'il est donné." -#: ../Doc/library/functions.rst:1017 +#: ../Doc/library/functions.rst:1014 +msgid "" +"There is an additional mode character permitted, ``'U'``, which no longer " +"has any effect, and is considered deprecated. It previously enabled :term:" +"`universal newlines` in text mode, which became the default behaviour in " +"Python 3.0. Refer to the documentation of the :ref:`newline ` parameter for further details." +msgstr "" + +#: ../Doc/library/functions.rst:1022 msgid "" "Python doesn't depend on the underlying operating system's notion of text " "files; all the processing is done by Python itself, and is therefore " @@ -1895,7 +1896,7 @@ msgstr "" "jacent, tout est effectué par Python lui même, et ainsi indépendant de la " "plateforme." -#: ../Doc/library/functions.rst:1021 +#: ../Doc/library/functions.rst:1026 msgid "" "*buffering* is an optional integer used to set the buffering policy. Pass 0 " "to switch buffering off (only allowed in binary mode), 1 to select line " @@ -1910,7 +1911,7 @@ msgstr "" "en octets d'un tampon de taille fixe. Sans l'argument *buffering*, les " "comportements par défaut sont les suivants :" -#: ../Doc/library/functions.rst:1027 +#: ../Doc/library/functions.rst:1032 msgid "" "Binary files are buffered in fixed-size chunks; the size of the buffer is " "chosen using a heuristic trying to determine the underlying device's \"block " @@ -1923,7 +1924,7 @@ msgstr "" "DEFAULT_BUFFER_SIZE`. Sur de nombreux systèmes, le tampon sera de 4096 ou " "8192 octets." -#: ../Doc/library/functions.rst:1032 +#: ../Doc/library/functions.rst:1037 msgid "" "\"Interactive\" text files (files for which :meth:`~io.IOBase.isatty` " "returns ``True``) use line buffering. Other text files use the policy " @@ -1933,7 +1934,7 @@ msgstr "" "isatty` donne ``True``) utilisent un tampon par lignes. Les autres fichiers " "texte sont traités comme les fichiers binaires." -#: ../Doc/library/functions.rst:1036 +#: ../Doc/library/functions.rst:1041 msgid "" "*encoding* is the name of the encoding used to decode or encode the file. " "This should only be used in text mode. The default encoding is platform " @@ -1947,7 +1948,7 @@ msgstr "" "mais n'importe quel :term:`text encoding` supporté par Python peut être " "utilisé. Voir :mod:`codecs` pour une liste des encodages supportés." -#: ../Doc/library/functions.rst:1043 +#: ../Doc/library/functions.rst:1048 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled—this cannot be used in binary mode. A variety of " @@ -1962,7 +1963,7 @@ msgstr "" "enregistré avec :func:`codecs.register_error` est aussi un argument valide. " "Les noms standards sont :" -#: ../Doc/library/functions.rst:1051 +#: ../Doc/library/functions.rst:1056 msgid "" "``'strict'`` to raise a :exc:`ValueError` exception if there is an encoding " "error. The default value of ``None`` has the same effect." @@ -1970,7 +1971,7 @@ msgstr "" "``'strict'`` pour lever une :exc:`ValueError` si une erreur d'encodage est " "rencontrée. La valeur par défaut, ``None``, a le même effet." -#: ../Doc/library/functions.rst:1055 +#: ../Doc/library/functions.rst:1060 msgid "" "``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to " "data loss." @@ -1978,7 +1979,7 @@ msgstr "" "``'ignore'`` ignore les erreurs. Notez qu'ignorer les erreurs d'encodage " "peut mener à des pertes de données." -#: ../Doc/library/functions.rst:1058 +#: ../Doc/library/functions.rst:1063 msgid "" "``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted " "where there is malformed data." @@ -1986,7 +1987,7 @@ msgstr "" "``'replace'`` insère un marqueur de substitution (tel que ``'?'``) en place " "des données mal formées." -#: ../Doc/library/functions.rst:1061 +#: ../Doc/library/functions.rst:1066 msgid "" "``'surrogateescape'`` will represent any incorrect bytes as code points in " "the Unicode Private Use Area ranging from U+DC80 to U+DCFF. These private " @@ -2001,7 +2002,7 @@ msgstr "" "l'écriture de la donnée. C'est utile pour traiter des fichiers d'un encodage " "inconnu." -#: ../Doc/library/functions.rst:1068 +#: ../Doc/library/functions.rst:1073 msgid "" "``'xmlcharrefreplace'`` is only supported when writing to a file. Characters " "not supported by the encoding are replaced with the appropriate XML " @@ -2011,7 +2012,7 @@ msgstr "" "Les caractères non gérés par l'encodage sont remplacés par une référence de " "caractère XML ``&#nnn;``." -#: ../Doc/library/functions.rst:1072 +#: ../Doc/library/functions.rst:1077 msgid "" "``'backslashreplace'`` replaces malformed data by Python's backslashed " "escape sequences." @@ -2019,7 +2020,7 @@ msgstr "" "``'backslashreplace'`` remplace les données mal formées par des séquences " "d'échappement Python (utilisant des *backslash*)." -#: ../Doc/library/functions.rst:1075 +#: ../Doc/library/functions.rst:1080 msgid "" "``'namereplace'`` (also only supported when writing) replaces unsupported " "characters with ``\\N{...}`` escape sequences." @@ -2027,7 +2028,7 @@ msgstr "" "``'namereplace'`` (aussi supporté lors de l'écriture) remplace les " "caractères non supportés par des séquences d'échappement ``\\N{...}``." -#: ../Doc/library/functions.rst:1081 +#: ../Doc/library/functions.rst:1088 msgid "" "*newline* controls how :term:`universal newlines` mode works (it only " "applies to text mode). It can be ``None``, ``''``, ``'\\n'``, ``'\\r'``, " @@ -2037,7 +2038,7 @@ msgstr "" "(seulement en mode texte). Il eut être ``None``, ``''``, ``'\\n'``, " "``'\\r'``, et ``'\\r\\n'``. Il fonctionne comme suit :" -#: ../Doc/library/functions.rst:1085 +#: ../Doc/library/functions.rst:1092 msgid "" "When reading input from the stream, if *newline* is ``None``, universal " "newlines mode is enabled. Lines in the input can end in ``'\\n'``, " @@ -2055,7 +2056,7 @@ msgstr "" "autorisée, les lignes sont seulement terminées par la chaîne donnée, qui est " "rendue tel qu'elle." -#: ../Doc/library/functions.rst:1093 +#: ../Doc/library/functions.rst:1100 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -2069,7 +2070,7 @@ msgstr "" "*newline* est un autre caractère valide, chaque ``'\\n'`` sera remplacé par " "la chaîne donnée." -#: ../Doc/library/functions.rst:1099 +#: ../Doc/library/functions.rst:1106 msgid "" "If *closefd* is ``False`` and a file descriptor rather than a filename was " "given, the underlying file descriptor will be kept open when the file is " @@ -2081,7 +2082,7 @@ msgstr "" "le fichier sera fermé. Si un nom de fichier est donné, *closefd* doit rester " "``True`` (la valeur par défaut) sans quoi une erreur est levée." -#: ../Doc/library/functions.rst:1104 +#: ../Doc/library/functions.rst:1111 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 " @@ -2095,13 +2096,13 @@ msgstr "" "descripteur de fichier ouvert (fournir :mod:`os.open` en temps qu'*opener* " "aura le même effet que donner ``None``)." -#: ../Doc/library/functions.rst:1110 +#: ../Doc/library/functions.rst:1117 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/functions.rst:1112 +#: ../Doc/library/functions.rst:1119 msgid "" "The following example uses the :ref:`dir_fd ` parameter of the :func:" "`os.open` function to open a file relative to a given directory::" @@ -2109,7 +2110,7 @@ msgstr "" "L'exemple suivant utilise le paramètre :ref:`dir_fd ` de la " "fonction :func:`os.open` pour ouvrir un fichier relatif au dossier courant ::" -#: ../Doc/library/functions.rst:1125 +#: ../Doc/library/functions.rst:1132 msgid "" "The type of :term:`file object` returned by the :func:`open` function " "depends on the mode. When :func:`open` is used to open a file in a text " @@ -2135,7 +2136,7 @@ msgstr "" "désactivé, le flux brut, une classe fille de :class:`io.RawIOBase`, :class:" "`io.FileIO` est donnée." -#: ../Doc/library/functions.rst:1146 +#: ../Doc/library/functions.rst:1153 msgid "" "See also the file handling modules, such as, :mod:`fileinput`, :mod:`io` " "(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:" @@ -2145,21 +2146,21 @@ msgstr "" "`fileinput`, :mod:`io` (où :func:`open` est déclarée), :mod:`os`, :mod:`os." "path`, :mod:`tmpfile`, et :mod:`shutil`." -#: ../Doc/library/functions.rst:1153 +#: ../Doc/library/functions.rst:1160 msgid "The *opener* parameter was added." msgstr "Le paramètre *opener* a été ajouté." -#: ../Doc/library/functions.rst:1154 +#: ../Doc/library/functions.rst:1161 msgid "The ``'x'`` mode was added." msgstr "Le mode ``'x'`` a été ajouté." -#: ../Doc/library/functions.rst:1155 +#: ../Doc/library/functions.rst:1162 msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." msgstr "" ":exc:`IOError` était normalement levée, elle est maintenant un alias de :exc:" "`OSError`." -#: ../Doc/library/functions.rst:1156 +#: ../Doc/library/functions.rst:1163 msgid "" ":exc:`FileExistsError` is now raised if the file opened in exclusive " "creation mode (``'x'``) already exists." @@ -2167,15 +2168,15 @@ msgstr "" ":exc:`FileExistsError` est maintenant levée si le fichier ouvert en mode " "création exclusive (``'x'``) existe déjà." -#: ../Doc/library/functions.rst:1162 +#: ../Doc/library/functions.rst:1169 msgid "The file is now non-inheritable." msgstr "Il n'est plus possible d'hériter de *file*." -#: ../Doc/library/functions.rst:1166 +#: ../Doc/library/functions.rst:1173 msgid "The ``'U'`` mode." msgstr "Le mode ``'U'``." -#: ../Doc/library/functions.rst:1171 +#: ../Doc/library/functions.rst:1178 msgid "" "If the system call is interrupted and the signal handler does not raise an " "exception, the function now retries the system call instead of raising an :" @@ -2185,15 +2186,15 @@ msgstr "" "aucune exception, la fonction réessaye l'appel système au lieu de lever une :" "exc:`InterruptedError` (voir la :pep:`475` à propos du raisonnement)." -#: ../Doc/library/functions.rst:1174 +#: ../Doc/library/functions.rst:1181 msgid "The ``'namereplace'`` error handler was added." msgstr "Le gestionnaire d'erreurs ``'namereplace'`` a été ajouté." -#: ../Doc/library/functions.rst:1179 +#: ../Doc/library/functions.rst:1186 msgid "Support added to accept objects implementing :class:`os.PathLike`." msgstr "Ajout du support des objets implémentant :class:`os.PathLike`." -#: ../Doc/library/functions.rst:1180 +#: ../Doc/library/functions.rst:1187 msgid "" "On Windows, opening a console buffer may return a subclass of :class:`io." "RawIOBase` other than :class:`io.FileIO`." @@ -2201,7 +2202,7 @@ msgstr "" "Sous Windows, ouvrir un *buffer* du terminal peut renvoyer une sous-classe " "de :class:`io.RawIOBase` autre que :class:`io.FileIO`." -#: ../Doc/library/functions.rst:1185 +#: ../Doc/library/functions.rst:1192 msgid "" "Given a string representing one Unicode character, return an integer " "representing the Unicode code point of that character. For example, " @@ -2213,7 +2214,7 @@ msgstr "" "nombre entier ``97`` et ``ord('€')`` (symbole Euro) renvoie ``8364``. Il " "s'agit de l'inverse de :func:`chr`." -#: ../Doc/library/functions.rst:1193 +#: ../Doc/library/functions.rst:1200 msgid "" "Return *x* to the power *y*; if *z* is present, return *x* to the power *y*, " "modulo *z* (computed more efficiently than ``pow(x, y) % z``). The two-" @@ -2224,7 +2225,7 @@ msgstr "" "modulo *z* (calculé de manière plus efficiente que ``pow(x, y) % z``). La " "forme à deux arguments est équivalent à ``x**y``." -#: ../Doc/library/functions.rst:1197 +#: ../Doc/library/functions.rst:1204 msgid "" "The arguments must have numeric types. With mixed operand types, the " "coercion rules for binary arithmetic operators apply. For :class:`int` " @@ -2245,7 +2246,7 @@ msgstr "" "argument est négatif, le troisième doit être omis. Si *z* est fourni, *x* et " "*y* doivent être des entiers et *y* positif." -#: ../Doc/library/functions.rst:1209 +#: ../Doc/library/functions.rst:1216 msgid "" "Print *objects* to the text stream *file*, separated by *sep* and followed " "by *end*. *sep*, *end*, *file* and *flush*, if present, must be given as " @@ -2255,7 +2256,7 @@ msgstr "" "*end*. *sep*, *end*, *file*, et *flush*, s'ils sont présents, doivent être " "données par mot clef." -#: ../Doc/library/functions.rst:1213 +#: ../Doc/library/functions.rst:1220 msgid "" "All non-keyword arguments are converted to strings like :func:`str` does and " "written to the stream, separated by *sep* and followed by *end*. Both *sep* " @@ -2269,7 +2270,7 @@ msgstr "" "les valeurs par défaut. Si aucun *objects* n'est donné :func:`print` écris " "seulement *end*." -#: ../Doc/library/functions.rst:1219 +#: ../Doc/library/functions.rst:1226 msgid "" "The *file* argument must be an object with a ``write(string)`` method; if it " "is not present or ``None``, :data:`sys.stdout` will be used. Since printed " @@ -2282,7 +2283,7 @@ msgstr "" "peut pas être utilisé avec des fichiers ouverts en mode binaire. Pour ceux " "ci utilisez plutôt ``file.write(...)``." -#: ../Doc/library/functions.rst:1224 +#: ../Doc/library/functions.rst:1231 msgid "" "Whether output is buffered is usually determined by *file*, but if the " "*flush* keyword argument is true, the stream is forcibly flushed." @@ -2290,15 +2291,15 @@ msgstr "" "Que la sortie utilise un *buffer* ou non est souvent décidé par *file*, mais " "si l'argument *flush* est vrai, le tampon du flux est vidé explicitement." -#: ../Doc/library/functions.rst:1227 +#: ../Doc/library/functions.rst:1234 msgid "Added the *flush* keyword argument." msgstr "Ajout de l'argument par mot clef *flush*." -#: ../Doc/library/functions.rst:1233 +#: ../Doc/library/functions.rst:1240 msgid "Return a property attribute." msgstr "Donne un attribut propriété." -#: ../Doc/library/functions.rst:1235 +#: ../Doc/library/functions.rst:1242 msgid "" "*fget* is a function for getting an attribute value. *fset* is a function " "for setting an attribute value. *fdel* is a function for deleting an " @@ -2309,11 +2310,11 @@ msgstr "" "supprimer la valeur d'un attribut, et *doc* créé une *docstring* pour " "l'attribut." -#: ../Doc/library/functions.rst:1239 +#: ../Doc/library/functions.rst:1246 msgid "A typical use is to define a managed attribute ``x``::" msgstr "Une utilisation typique : définir un attribut managé ``x`` : ::" -#: ../Doc/library/functions.rst:1256 +#: ../Doc/library/functions.rst:1263 msgid "" "If *c* is an instance of *C*, ``c.x`` will invoke the getter, ``c.x = " "value`` will invoke the setter and ``del c.x`` the deleter." @@ -2321,7 +2322,7 @@ msgstr "" "Si *c* est une instance de *C*, ``c.x`` appellera le *getter*, ``c.x = " "value`` invoquera le *setter*, et ``del x`` le *deleter*." -#: ../Doc/library/functions.rst:1259 +#: ../Doc/library/functions.rst:1266 msgid "" "If given, *doc* will be the docstring of the property attribute. Otherwise, " "the property will copy *fget*'s docstring (if it exists). This makes it " @@ -2333,7 +2334,7 @@ msgstr "" "création de propriétés en lecture seule en utilisant simplement :func:" "`property` comme un :term:`decorator` : ::" -#: ../Doc/library/functions.rst:1272 +#: ../Doc/library/functions.rst:1279 msgid "" "The ``@property`` decorator turns the :meth:`voltage` method into a \"getter" "\" for a read-only attribute with the same name, and it sets the docstring " @@ -2343,7 +2344,7 @@ msgstr "" "*getter* d'un attribut du même nom, et donne *\"Get the current voltage\"* " "comme *docstring* de *voltage*." -#: ../Doc/library/functions.rst:1276 +#: ../Doc/library/functions.rst:1283 msgid "" "A property object has :attr:`~property.getter`, :attr:`~property.setter`, " "and :attr:`~property.deleter` methods usable as decorators that create a " @@ -2355,7 +2356,7 @@ msgstr "" "une copie de la propriété avec les accesseurs correspondants définis par la " "fonction de décoration. C'est plus clair avec un exemple : ::" -#: ../Doc/library/functions.rst:1298 +#: ../Doc/library/functions.rst:1305 msgid "" "This code is exactly equivalent to the first example. Be sure to give the " "additional functions the same name as the original property (``x`` in this " @@ -2365,7 +2366,7 @@ msgstr "" "donner aux fonctions additionnelles le même nom que la propriété (``x`` dans " "ce cas.)" -#: ../Doc/library/functions.rst:1302 +#: ../Doc/library/functions.rst:1309 msgid "" "The returned property object also has the attributes ``fget``, ``fset``, and " "``fdel`` corresponding to the constructor arguments." @@ -2373,11 +2374,11 @@ msgstr "" "L'objet propriété donné à aussi les attributs ``fget``, ``fset`` et ``fdel`` " "correspondant correspondants aux arguments du constructeur." -#: ../Doc/library/functions.rst:1305 +#: ../Doc/library/functions.rst:1312 msgid "The docstrings of property objects are now writeable." msgstr "Les *docstrings* des objets propriété peuvent maintenant être écrits." -#: ../Doc/library/functions.rst:1314 +#: ../Doc/library/functions.rst:1321 msgid "" "Rather than being a function, :class:`range` is actually an immutable " "sequence type, as documented in :ref:`typesseq-range` and :ref:`typesseq`." @@ -2385,7 +2386,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`range` est en fait une séquence " "immuable, tel que documenté dans :ref:`typesseq-range` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1320 +#: ../Doc/library/functions.rst:1327 msgid "" "Return a string containing a printable representation of an object. For " "many types, this function makes an attempt to return a string that would " @@ -2403,7 +2404,7 @@ msgstr "" "l'objet. Une classe peut contrôler ce que cette fonction donne pour ses " "instances en définissant une méthode :meth:`__repr__`." -#: ../Doc/library/functions.rst:1331 +#: ../Doc/library/functions.rst:1338 msgid "" "Return a reverse :term:`iterator`. *seq* must be an object which has a :" "meth:`__reversed__` method or supports the sequence protocol (the :meth:" @@ -2415,7 +2416,7 @@ msgstr "" "meth:`__len__` et la méthode :meth:`__getitem__` avec des arguments entiers " "commençant à zéro)." -#: ../Doc/library/functions.rst:1339 +#: ../Doc/library/functions.rst:1346 msgid "" "Return *number* rounded to *ndigits* precision after the decimal point. If " "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " @@ -2425,7 +2426,7 @@ msgstr "" "virgule. Si *ndigits* est omis (ou est ``None``), l'entier le plus proche " "est renvoyé." -#: ../Doc/library/functions.rst:1343 +#: ../Doc/library/functions.rst:1350 msgid "" "For the built-in types supporting :func:`round`, values are rounded to the " "closest multiple of 10 to the power minus *ndigits*; if two multiples are " @@ -2443,7 +2444,7 @@ msgstr "" "zéro, ou négatif). La valeur renvoyée est un entier si *ndigits* n'est pas " "donné, (ou est ``None``). Sinon elle est du même type que *number*." -#: ../Doc/library/functions.rst:1352 +#: ../Doc/library/functions.rst:1359 msgid "" "For a general Python object ``number``, ``round`` delegates to ``number." "__round__``." @@ -2451,7 +2452,7 @@ msgstr "" "Pour tout autre objet Python ``number``, ``round`` délègue à ``number." "__round__``." -#: ../Doc/library/functions.rst:1357 +#: ../Doc/library/functions.rst:1364 msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " "``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is " @@ -2465,7 +2466,7 @@ msgstr "" "de décimaux ne peuvent pas être représentés exactement en nombre a virgule " "flottante. Voir :ref:`tut-fp-issues` pour plus d'information." -#: ../Doc/library/functions.rst:1368 +#: ../Doc/library/functions.rst:1375 msgid "" "Return a new :class:`set` object, optionally with elements taken from " "*iterable*. ``set`` is a built-in class. See :class:`set` and :ref:`types-" @@ -2475,7 +2476,7 @@ msgstr "" "d'*iterable*. ``set`` est une classe native. Voir :class:`set` et :ref:" "`types-set` pour la documentation de cette classe." -#: ../Doc/library/functions.rst:1372 +#: ../Doc/library/functions.rst:1379 msgid "" "For other containers see the built-in :class:`frozenset`, :class:`list`, :" "class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections` " @@ -2485,7 +2486,7 @@ msgstr "" "`list`, :class:`tuple`, et :class:`dict`, ainsi que le module :mod:" "`collections`." -#: ../Doc/library/functions.rst:1379 +#: ../Doc/library/functions.rst:1386 msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " "string and an arbitrary value. The string may name an existing attribute or " @@ -2499,7 +2500,7 @@ msgstr "" "si l'objet l'autorise. Par exemple, ``setattr(x, 'foobar', 123)`` équivaut à " "``x.foobar = 123``." -#: ../Doc/library/functions.rst:1391 +#: ../Doc/library/functions.rst:1398 msgid "" "Return a :term:`slice` object representing the set of indices specified by " "``range(start, stop, step)``. The *start* and *step* arguments default to " @@ -2523,16 +2524,16 @@ msgstr "" "étendue. Par exemple ``a[start:stop:step]`` ou ``a[start:stop, i]``. Voir :" "func:`itertools.islice` pour une version alternative donnant un itérateur." -#: ../Doc/library/functions.rst:1404 +#: ../Doc/library/functions.rst:1411 msgid "Return a new sorted list from the items in *iterable*." msgstr "Donne une nouvelle liste triée depuis les éléments d'*iterable*." -#: ../Doc/library/functions.rst:1406 +#: ../Doc/library/functions.rst:1413 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "A deux arguments optionnels qui doivent être fournis par mot clef." -#: ../Doc/library/functions.rst:1408 +#: ../Doc/library/functions.rst:1415 msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each element in *iterable* (for example, ``key=str." @@ -2543,7 +2544,7 @@ msgstr "" "lower``). La valeur par défaut est ``None`` (compare les éléments " "directement)." -#: ../Doc/library/functions.rst:1412 +#: ../Doc/library/functions.rst:1419 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -2551,7 +2552,7 @@ msgstr "" "*reverse*, une valeur booléenne. Si elle est ``True``, la liste d'éléments " "est triée comme si toutes les comparaisons étaient inversées." -#: ../Doc/library/functions.rst:1415 +#: ../Doc/library/functions.rst:1422 msgid "" "Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " "*key* function." @@ -2559,7 +2560,7 @@ msgstr "" "Utilisez :func:`functools.cmp_to_key` pour convertir l'ancienne notation " "*cmp* en une fonction *key*." -#: ../Doc/library/functions.rst:1418 +#: ../Doc/library/functions.rst:1425 msgid "" "The built-in :func:`sorted` function is guaranteed to be stable. A sort is " "stable if it guarantees not to change the relative order of elements that " @@ -2571,17 +2572,17 @@ msgstr "" "eux. C'est utile pour trier en plusieurs passes, par exemple par département " "puis par salaire)." -#: ../Doc/library/functions.rst:1423 +#: ../Doc/library/functions.rst:1430 msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" "Pour des exemples de tris et un bref tutoriel, consultez :ref:`sortinghowto`." -#: ../Doc/library/functions.rst:1427 +#: ../Doc/library/functions.rst:1434 msgid "Transform a method into a static method." msgstr "Transforme une méthode en méthode statique." -#: ../Doc/library/functions.rst:1429 +#: ../Doc/library/functions.rst:1436 msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" @@ -2589,7 +2590,7 @@ msgstr "" "Une méthode statique ne reçoit pas de premier argument implicitement. Voilà " "comment déclarer une méthode statique : ::" -#: ../Doc/library/functions.rst:1436 +#: ../Doc/library/functions.rst:1443 msgid "" "The ``@staticmethod`` form is a function :term:`decorator` -- see the " "description of function definitions in :ref:`function` for details." @@ -2598,7 +2599,7 @@ msgstr "" "description des définitions de fonction dans :ref:`function` pour plus de " "détails." -#: ../Doc/library/functions.rst:1439 +#: ../Doc/library/functions.rst:1446 msgid "" "It can be called either on the class (such as ``C.f()``) or on an instance " "(such as ``C().f()``). The instance is ignored except for its class." @@ -2606,7 +2607,7 @@ msgstr "" "Elle peut être appelée soit sur une classe (tel que ``C.f()``) ou sur une " "instance (tel que ``C().f()``). L'instance est ignorée, sauf pour sa classe." -#: ../Doc/library/functions.rst:1442 +#: ../Doc/library/functions.rst:1449 msgid "" "Static methods in Python are similar to those found in Java or C++. Also " "see :func:`classmethod` for a variant that is useful for creating alternate " @@ -2616,7 +2617,7 @@ msgstr "" "ou en C++. Consultez :func:`classmethod` pour une variante utile pour créer " "des constructeurs alternatifs." -#: ../Doc/library/functions.rst:1446 +#: ../Doc/library/functions.rst:1453 msgid "" "Like all decorators, it is also possible to call ``staticmethod`` as a " "regular function and do something with its result. This is needed in some " @@ -2630,7 +2631,7 @@ msgstr "" "depuis le corps d'une classe, et souhaiteriez éviter sa transformation en " "méthode d'instance. Pour ces cas, faites comme suit ::" -#: ../Doc/library/functions.rst:1455 +#: ../Doc/library/functions.rst:1462 msgid "" "For more information on static methods, consult the documentation on the " "standard type hierarchy in :ref:`types`." @@ -2638,14 +2639,14 @@ msgstr "" "Pour plus d'informations sur les méthodes statiques, consultez la " "documentation de la hiérarchie des types standards dans :ref:`types`." -#: ../Doc/library/functions.rst:1467 +#: ../Doc/library/functions.rst:1474 msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" "Donne une version sous forme de :class:`str` d'*object*. Voir :func:`str` " "pour plus de détails." -#: ../Doc/library/functions.rst:1469 +#: ../Doc/library/functions.rst:1476 msgid "" "``str`` is the built-in string :term:`class`. For general information about " "strings, see :ref:`textseq`." @@ -2653,7 +2654,7 @@ msgstr "" "``str`` est la :term:`class` native des chaînes de caractères. Pour des " "informations générales à propos des chaînes, consultez :ref:`textseq`." -#: ../Doc/library/functions.rst:1475 +#: ../Doc/library/functions.rst:1482 msgid "" "Sums *start* and the items of an *iterable* from left to right and returns " "the total. *start* defaults to ``0``. The *iterable*'s items are normally " @@ -2664,7 +2665,7 @@ msgstr "" "sont normalement des nombres, et la valeur de *start* ne peut pas être une " "chaîne." -#: ../Doc/library/functions.rst:1479 +#: ../Doc/library/functions.rst:1486 msgid "" "For some use cases, there are good alternatives to :func:`sum`. The " "preferred, fast way to concatenate a sequence of strings is by calling ``''." @@ -2678,7 +2679,7 @@ msgstr "" "meilleure précision, voir :func:`math.fsum`. Pour concaténer une série " "d'itérables, utilisez plutôt :func:`itertools.chain`." -#: ../Doc/library/functions.rst:1487 +#: ../Doc/library/functions.rst:1494 msgid "" "Return a proxy object that delegates method calls to a parent or sibling " "class of *type*. This is useful for accessing inherited methods that have " @@ -2691,7 +2692,7 @@ msgstr "" "recherche est le même que celui utilisé par :func:`getattr` sauf que *type* " "lui même est sauté." -#: ../Doc/library/functions.rst:1492 +#: ../Doc/library/functions.rst:1499 msgid "" "The :attr:`~class.__mro__` attribute of the *type* lists the method " "resolution search order used by both :func:`getattr` and :func:`super`. The " @@ -2703,7 +2704,7 @@ msgstr "" "L'attribut est dynamique et peut changer lorsque la hiérarchie d'héritage " "est modifiée." -#: ../Doc/library/functions.rst:1497 +#: ../Doc/library/functions.rst:1504 msgid "" "If the second argument is omitted, the super object returned is unbound. If " "the second argument is an object, ``isinstance(obj, type)`` must be true. " @@ -2715,7 +2716,7 @@ msgstr "" "le second argument est un type, ``issubclass(type2, type)`` doit être vrai " "(c'est utile pour les méthodes de classe)." -#: ../Doc/library/functions.rst:1502 +#: ../Doc/library/functions.rst:1509 msgid "" "There are two typical use cases for *super*. In a class hierarchy with " "single inheritance, *super* can be used to refer to parent classes without " @@ -2728,7 +2729,7 @@ msgstr "" "maintenable. Cet usage se rapproche de l'usage de *super* dans d'autres " "langages de programmation." -#: ../Doc/library/functions.rst:1507 +#: ../Doc/library/functions.rst:1514 msgid "" "The second use case is to support cooperative multiple inheritance in a " "dynamic execution environment. This use case is unique to Python and is not " @@ -2751,12 +2752,12 @@ msgstr "" "changements dans la hiérarchie, et parce que l'ordre peut inclure des " "classes sœurs inconnues avant l'exécution)." -#: ../Doc/library/functions.rst:1517 +#: ../Doc/library/functions.rst:1524 msgid "For both use cases, a typical superclass call looks like this::" msgstr "" "Dans tous les cas, un appel typique à une classe parente ressemble à : ::" -#: ../Doc/library/functions.rst:1524 +#: ../Doc/library/functions.rst:1531 msgid "" "Note that :func:`super` is implemented as part of the binding process for " "explicit dotted attribute lookups such as ``super().__getitem__(name)``. It " @@ -2773,7 +2774,7 @@ msgstr "" "n'est pas défini pour les recherches implicites via des instructions ou des " "opérateurs tel que ``super()[name]``." -#: ../Doc/library/functions.rst:1531 +#: ../Doc/library/functions.rst:1538 msgid "" "Also note that, aside from the zero argument form, :func:`super` is not " "limited to use inside methods. The two argument form specifies the " @@ -2790,7 +2791,7 @@ msgstr "" "propos de la classe en cours de définition, ainsi qu'accéder à l'instance " "courante pour les méthodes ordinaires." -#: ../Doc/library/functions.rst:1538 +#: ../Doc/library/functions.rst:1545 msgid "" "For practical suggestions on how to design cooperative classes using :func:" "`super`, see `guide to using super() `_." -#: ../Doc/library/functions.rst:1547 +#: ../Doc/library/functions.rst:1554 msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." @@ -2808,7 +2809,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`tuple` est en fait un type de séquence " "immuable, tel que documenté dans :ref:`typesseq-tuple` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1556 +#: ../Doc/library/functions.rst:1563 msgid "" "With one argument, return the type of an *object*. The return value is a " "type object and generally the same object as returned by :attr:`object." @@ -2818,7 +2819,7 @@ msgstr "" "type et généralement la même que la valeur de l'attribut :attr:`object." "__class__ `." -#: ../Doc/library/functions.rst:1560 +#: ../Doc/library/functions.rst:1567 msgid "" "The :func:`isinstance` built-in function is recommended for testing the type " "of an object, because it takes subclasses into account." @@ -2826,7 +2827,7 @@ msgstr "" "La fonction native :func:`isinstance` est recommandée pour tester le type " "d'un objet car elle prend en compte l'héritage." -#: ../Doc/library/functions.rst:1564 +#: ../Doc/library/functions.rst:1571 msgid "" "With three arguments, return a new type object. This is essentially a " "dynamic form of the :keyword:`class` statement. The *name* string is the " @@ -2847,11 +2848,11 @@ msgstr "" "exemple, les deux instructions suivantes créent deux instances identiques " "de :class:`type`." -#: ../Doc/library/functions.rst:1578 +#: ../Doc/library/functions.rst:1585 msgid "See also :ref:`bltin-type-objects`." msgstr "Voir aussi :ref:`bltin-type-objects`." -#: ../Doc/library/functions.rst:1580 +#: ../Doc/library/functions.rst:1587 msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." @@ -2860,7 +2861,7 @@ msgstr "" "ne devraient plus utiliser la forme à un argument pour récupérer le type " "d'un objet." -#: ../Doc/library/functions.rst:1586 +#: ../Doc/library/functions.rst:1593 msgid "" "Return the :attr:`~object.__dict__` attribute for a module, class, instance, " "or any other object with a :attr:`~object.__dict__` attribute." @@ -2869,7 +2870,7 @@ msgstr "" "instance ou de n'importe quel objet avec un attribut :attr:`~object." "__dict__`." -#: ../Doc/library/functions.rst:1589 +#: ../Doc/library/functions.rst:1596 msgid "" "Objects such as modules and instances have an updateable :attr:`~object." "__dict__` attribute; however, other objects may have write restrictions on " @@ -2882,7 +2883,7 @@ msgstr "" "exemple, les classes utilisent un :class:`types.MappingProxyType` pour " "éviter les modifications directes du dictionnaire)." -#: ../Doc/library/functions.rst:1594 +#: ../Doc/library/functions.rst:1601 msgid "" "Without an argument, :func:`vars` acts like :func:`locals`. Note, the " "locals dictionary is only useful for reads since updates to the locals " @@ -2892,11 +2893,11 @@ msgstr "" "dictionnaire des variables locales n'est utile qu'en lecture, car ses " "écritures sont ignorées." -#: ../Doc/library/functions.rst:1601 +#: ../Doc/library/functions.rst:1608 msgid "Make an iterator that aggregates elements from each of the iterables." msgstr "Construit un itérateur agrégeant les éléments de tous les itérables." -#: ../Doc/library/functions.rst:1603 +#: ../Doc/library/functions.rst:1610 msgid "" "Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th " "element from each of the argument sequences or iterables. The iterator " @@ -2910,7 +2911,7 @@ msgstr "" "itérable, elle donne un itérateur sur des *tuples* d'un élément. Sans " "arguments, elle donne un itérateur vide. Équivalent à : ::" -#: ../Doc/library/functions.rst:1622 +#: ../Doc/library/functions.rst:1629 msgid "" "The left-to-right evaluation order of the iterables is guaranteed. This " "makes possible an idiom for clustering a data series into n-length groups " @@ -2924,7 +2925,7 @@ msgstr "" "que le tuple obtenu contient le résultat de ``n`` appels à l'itérateur. Cela " "a pour effet de diviser la séquence en morceaux de taille *n*." -#: ../Doc/library/functions.rst:1628 +#: ../Doc/library/functions.rst:1635 msgid "" ":func:`zip` should only be used with unequal length inputs when you don't " "care about trailing, unmatched values from the longer iterables. If those " @@ -2935,7 +2936,7 @@ msgstr "" "peuvent être ignorées. Si c'est valeurs sont importantes, utilisez plutôt :" "func:`itertools.zip_longest`." -#: ../Doc/library/functions.rst:1632 +#: ../Doc/library/functions.rst:1639 msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" @@ -2943,7 +2944,7 @@ msgstr "" ":func:`zip` peut être utilisée conjointement avec l'opérateur ``*`` pour " "dézipper une liste : ::" -#: ../Doc/library/functions.rst:1653 +#: ../Doc/library/functions.rst:1660 msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." @@ -2951,7 +2952,7 @@ msgstr "" "C'est une fonction avancée qui n'est pas fréquemment nécessaire, " "contrairement à :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1656 +#: ../Doc/library/functions.rst:1663 msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " @@ -2971,7 +2972,7 @@ msgstr "" "trouver l'implémentation par défaut. L'usage direct de :func:`__import__` " "est aussi déconseillé en faveur de :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1665 +#: ../Doc/library/functions.rst:1672 msgid "" "The function imports the module *name*, potentially using the given " "*globals* and *locals* to determine how to interpret the name in a package " @@ -2987,7 +2988,7 @@ msgstr "" "l'argument *locals* et n'utilise *globals* que pour déterminer le contexte " "du paquet de l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1672 +#: ../Doc/library/functions.rst:1679 msgid "" "*level* specifies whether to use absolute or relative imports. ``0`` (the " "default) means only perform absolute imports. Positive values for *level* " @@ -3000,7 +3001,7 @@ msgstr "" "le nombre de dossiers parents relativement au dossier du module appelant :" "func:`__import__` (voir la :pep:`328`)." -#: ../Doc/library/functions.rst:1678 +#: ../Doc/library/functions.rst:1685 msgid "" "When the *name* variable is of the form ``package.module``, normally, the " "top-level package (the name up till the first dot) is returned, *not* the " @@ -3012,7 +3013,7 @@ msgstr "" "le module nommé par *name*. Cependant, lorsqu'un argument *fromlist* est " "fourni, le module nommé par *name* est donné." -#: ../Doc/library/functions.rst:1683 +#: ../Doc/library/functions.rst:1690 msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" @@ -3020,11 +3021,11 @@ msgstr "" "Par exemple, l'instruction ``import spam`` donne un code intermédiaire " "(*bytecode* en anglais) ressemblant au code suivant : ::" -#: ../Doc/library/functions.rst:1688 +#: ../Doc/library/functions.rst:1695 msgid "The statement ``import spam.ham`` results in this call::" msgstr "L'instruction ``import ham.ham`` appelle : ::" -#: ../Doc/library/functions.rst:1692 +#: ../Doc/library/functions.rst:1699 msgid "" "Note how :func:`__import__` returns the toplevel module here because this is " "the object that is bound to a name by the :keyword:`import` statement." @@ -3032,7 +3033,7 @@ msgstr "" "Notez comment :func:`__import__` donne le module le plus haut ici parce que " "c'est l'objet lié à un nom par l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1695 +#: ../Doc/library/functions.rst:1702 msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" @@ -3040,7 +3041,7 @@ msgstr "" "En revanche, l'instruction ``from spam.ham import eggs, saucage as saus`` " "donne : ::" -#: ../Doc/library/functions.rst:1702 +#: ../Doc/library/functions.rst:1709 msgid "" "Here, the ``spam.ham`` module is returned from :func:`__import__`. From " "this object, the names to import are retrieved and assigned to their " @@ -3049,7 +3050,7 @@ msgstr "" "Ici le module ``spam.ham`` est donné par :func:`__import__`. De cet objet, " "les noms à importer sont récupérés et assignés à leurs noms respectifs." -#: ../Doc/library/functions.rst:1706 +#: ../Doc/library/functions.rst:1713 msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." @@ -3057,7 +3058,7 @@ msgstr "" "Si vous voulez simplement importer un module (potentiellement dans un " "paquet) par son nom, utilisez :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1709 +#: ../Doc/library/functions.rst:1716 msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." @@ -3065,11 +3066,11 @@ msgstr "" "Des valeurs négatives pour *level* ne sont plus gérées (ce qui change la " "valeur par défaut pour 0)." -#: ../Doc/library/functions.rst:1715 +#: ../Doc/library/functions.rst:1722 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/functions.rst:1716 +#: ../Doc/library/functions.rst:1723 msgid "" "Note that the parser only accepts the Unix-style end of line convention. If " "you are reading the code from a file, make sure to use newline conversion " @@ -3079,6 +3080,12 @@ msgstr "" "lisez le code depuis un fichier, assurez-vous d'utiliser la conversion de " "retours à la ligne pour convertir les fin de lignes Windows et Mac." +#~ msgid "``'U'``" +#~ msgstr "``'U'``" + +#~ msgid ":term:`universal newlines` mode (deprecated)" +#~ msgstr "mode :term:`universal newlines` (obsolète)" + #~ msgid "" #~ "One useful application of the second form of :func:`iter` is to read " #~ "lines of a file until a certain line is reached. The following example " diff --git a/library/http.po b/library/http.po index b0ec6d5bf..206d2dc93 100644 --- a/library/http.po +++ b/library/http.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-09-27 11:39+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -557,8 +557,8 @@ msgid "``416``" msgstr "``416``" #: ../Doc/library/http.rst:99 -msgid "``REQUEST_RANGE_NOT_SATISFIABLE``" -msgstr "``REQUEST_RANGE_NOT_SATISFIABLE``" +msgid "``REQUESTED_RANGE_NOT_SATISFIABLE``" +msgstr "``REQUESTED_RANGE_NOT_SATISFIABLE``" #: ../Doc/library/http.rst:99 msgid "HTTP/1.1 Range Requests :rfc:`7233`, Section 4.4" diff --git a/library/idle.po b/library/idle.po index f6c98490d..69bc97a86 100644 --- a/library/idle.po +++ b/library/idle.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-03 16:57+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1265,23 +1265,34 @@ msgstr "" #: ../Doc/library/idle.rst:719 msgid "" -"Text widgets display a subset of Unicode, the Basic Multilingual Plane " -"(BMP). Which characters get a proper glyph instead of a replacement box " -"depends on the operating system and installed fonts. Newline characters " -"cause following text to appear on a new line, but other control characters " -"are either replaced with a box or deleted. However, ``repr()``, which is " -"used for interactive echo of expression values, replaces control characters, " -"some BMP codepoints, and all non-BMP characters with escape codes before " -"they are output." +"A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) " +"in the the BMP (Basic Multilingual Plane) subset of Unicode. Which " +"characters are displayed with a proper glyph and which with a replacement " +"box depends on the operating system and installed fonts. Tab characters " +"cause the following text to begin after the next tab stop. (They occur every " +"8 'characters'). Newline characters cause following text to appear on a new " +"line. Other control characters are ignored or displayed as a space, box, or " +"something else, depending on the operating system and font. (Moving the text " +"cursor through such output with arrow keys may exhibit some surprising " +"spacing behavior.)" msgstr "" -#: ../Doc/library/idle.rst:728 +#: ../Doc/library/idle.rst:741 +msgid "" +"The ``repr`` function is used for interactive echo of expression values. It " +"returns an altered version of the input string in which control codes, some " +"BMP codepoints, and all non-BMP codepoints are replaced with escape codes. " +"As demonstrated above, it allows one to identify the characters in a string, " +"regardless of how they are displayed." +msgstr "" + +#: ../Doc/library/idle.rst:747 msgid "" "Normal and error output are generally kept separate (on separate lines) from " "code input and each other. They each get different highlight colors." msgstr "" -#: ../Doc/library/idle.rst:731 +#: ../Doc/library/idle.rst:750 msgid "" "For SyntaxError tracebacks, the normal '^' marking where the error was " "detected is replaced by coloring the text with an error highlight. When code " @@ -1290,7 +1301,7 @@ msgid "" "opened if necessary." msgstr "" -#: ../Doc/library/idle.rst:737 +#: ../Doc/library/idle.rst:756 msgid "" "Shell has a special facility for squeezing output lines down to a 'Squeezed " "text' label. This is done automatically for output over N lines (N = 50 by " @@ -1299,18 +1310,18 @@ msgid "" "on the output. This can be useful lines long enough to slow down scrolling." msgstr "" -#: ../Doc/library/idle.rst:745 +#: ../Doc/library/idle.rst:764 msgid "" "Squeezed output is expanded in place by double-clicking the label. It can " "also be sent to the clipboard or a separate view window by right-clicking " "the label." msgstr "" -#: ../Doc/library/idle.rst:750 +#: ../Doc/library/idle.rst:769 msgid "Developing tkinter applications" msgstr "" -#: ../Doc/library/idle.rst:752 +#: ../Doc/library/idle.rst:771 msgid "" "IDLE is intentionally different from standard Python in order to facilitate " "development of tkinter programs. Enter ``import tkinter as tk; root = tk." @@ -1322,7 +1333,7 @@ msgid "" "changes in standard Python until one enters ``root.update()``." msgstr "" -#: ../Doc/library/idle.rst:761 +#: ../Doc/library/idle.rst:780 msgid "" "Most tkinter programs run ``root.mainloop()``, which usually does not return " "until the tk app is destroyed. If the program is run with ``python -i`` or " @@ -1330,7 +1341,7 @@ msgid "" "``mainloop()`` returns, at which time there is nothing left to interact with." msgstr "" -#: ../Doc/library/idle.rst:767 +#: ../Doc/library/idle.rst:786 msgid "" "When running a tkinter program from an IDLE editor, one can comment out the " "mainloop call. One then gets a shell prompt immediately and can interact " @@ -1338,11 +1349,11 @@ msgid "" "mainloop call when running in standard Python." msgstr "" -#: ../Doc/library/idle.rst:773 +#: ../Doc/library/idle.rst:792 msgid "Running without a subprocess" msgstr "" -#: ../Doc/library/idle.rst:775 +#: ../Doc/library/idle.rst:794 msgid "" "By default, IDLE executes user code in a separate subprocess via a socket, " "which uses the internal loopback interface. This connection is not " @@ -1350,7 +1361,7 @@ msgid "" "firewall software complains anyway, you can ignore it." msgstr "" -#: ../Doc/library/idle.rst:780 +#: ../Doc/library/idle.rst:799 msgid "" "If the attempt to make the socket connection fails, Idle will notify you. " "Such failures are sometimes transient, but if persistent, the problem may be " @@ -1359,7 +1370,7 @@ msgid "" "command line switch." msgstr "" -#: ../Doc/library/idle.rst:786 +#: ../Doc/library/idle.rst:805 msgid "" "If IDLE is started with the -n command line switch it will run in a single " "process and will not create the subprocess which runs the RPC Python " @@ -1373,15 +1384,15 @@ msgid "" "at all possible." msgstr "" -#: ../Doc/library/idle.rst:801 +#: ../Doc/library/idle.rst:820 msgid "Help and preferences" msgstr "" -#: ../Doc/library/idle.rst:806 +#: ../Doc/library/idle.rst:825 msgid "Help sources" msgstr "" -#: ../Doc/library/idle.rst:808 +#: ../Doc/library/idle.rst:827 msgid "" "Help menu entry \"IDLE Help\" displays a formatted html version of the IDLE " "chapter of the Library Reference. The result, in a read-only tkinter text " @@ -1391,7 +1402,7 @@ msgid "" "the opened box." msgstr "" -#: ../Doc/library/idle.rst:816 +#: ../Doc/library/idle.rst:835 msgid "" "Help menu entry \"Python Docs\" opens the extensive sources of help, " "including tutorials, available at docs.python.org/x.y, where 'x.y' is the " @@ -1399,17 +1410,17 @@ msgid "" "the docs (this may be an installation option), that will be opened instead." msgstr "" -#: ../Doc/library/idle.rst:822 +#: ../Doc/library/idle.rst:841 msgid "" "Selected URLs can be added or removed from the help menu at any time using " "the General tab of the Configure IDLE dialog ." msgstr "" -#: ../Doc/library/idle.rst:828 +#: ../Doc/library/idle.rst:847 msgid "Setting preferences" msgstr "" -#: ../Doc/library/idle.rst:830 +#: ../Doc/library/idle.rst:849 msgid "" "The font preferences, highlighting, keys, and general preferences can be " "changed via Configure IDLE on the Option menu. Non-default user settings are " @@ -1418,7 +1429,16 @@ msgid "" "more of the files in .idlerc." msgstr "" -#: ../Doc/library/idle.rst:836 +#: ../Doc/library/idle.rst:855 +msgid "" +"On the Font tab, see the text sample for the effect of font face and size on " +"multiple characters in multiple languages. Edit the sample to add other " +"characters of personal interest. Use the sample to select monospaced " +"fonts. If particular characters have problems in Shell or an editor, add " +"them to the top of the sample and try changing first size and then font." +msgstr "" + +#: ../Doc/library/idle.rst:862 msgid "" "On the Highlights and Keys tab, select a built-in or custom color theme and " "key set. To use a newer built-in color theme or key set with older IDLEs, " @@ -1426,22 +1446,22 @@ msgid "" "IDLEs." msgstr "" -#: ../Doc/library/idle.rst:842 +#: ../Doc/library/idle.rst:868 msgid "IDLE on macOS" msgstr "" -#: ../Doc/library/idle.rst:844 +#: ../Doc/library/idle.rst:870 msgid "" "Under System Preferences: Dock, one can set \"Prefer tabs when opening " "documents\" to \"Always\". This setting is not compatible with the tk/" "tkinter GUI framework used by IDLE, and it breaks a few IDLE features." msgstr "" -#: ../Doc/library/idle.rst:849 +#: ../Doc/library/idle.rst:875 msgid "Extensions" msgstr "" -#: ../Doc/library/idle.rst:851 +#: ../Doc/library/idle.rst:877 msgid "" "IDLE contains an extension facility. Preferences for extensions can be " "changed with the Extensions tab of the preferences dialog. See the beginning " diff --git a/library/logging.config.po b/library/logging.config.po index 941ee457a..097908270 100644 --- a/library/logging.config.po +++ b/library/logging.config.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -158,9 +158,9 @@ msgstr "" msgid "" "If specified as ``False``, loggers which exist when this call is made are " "left enabled. The default is ``True`` because this enables old behaviour in " -"a backward-compatible way. This behaviour is to disable any existing loggers " -"unless they or their ancestors are explicitly named in the logging " -"configuration." +"a backward-compatible way. This behaviour is to disable any existing non-" +"root loggers unless they or their ancestors are explicitly named in the " +"logging configuration." msgstr "" #: ../Doc/library/logging.config.rst:114 @@ -422,7 +422,7 @@ msgstr "" #: ../Doc/library/logging.config.rst:311 msgid "" -"*disable_existing_loggers* - whether any existing loggers are to be " +"*disable_existing_loggers* - whether any existing non-root loggers are to be " "disabled. This setting mirrors the parameter of the same name in :func:" "`fileConfig`. If absent, this parameter defaults to ``True``. This value is " "ignored if *incremental* is ``True``." diff --git a/library/multiprocessing.po b/library/multiprocessing.po index 682428df1..e3c71a9c9 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-10-15 21:48+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -266,10 +266,18 @@ msgstr "" "d'interférer avec le choix de l'utilisateur de la bibliothèque." #: ../Doc/library/multiprocessing.rst:191 +msgid "" +"The ``'spawn'`` and ``'forkserver'`` start methods cannot currently be used " +"with \"frozen\" executables (i.e., binaries produced by packages like " +"**PyInstaller** and **cx_Freeze**) on Unix. The ``'fork'`` start method does " +"work." +msgstr "" + +#: ../Doc/library/multiprocessing.rst:198 msgid "Exchanging objects between processes" msgstr "Échange d'objets entre les processus" -#: ../Doc/library/multiprocessing.rst:193 +#: ../Doc/library/multiprocessing.rst:200 msgid "" ":mod:`multiprocessing` supports two types of communication channel between " "processes:" @@ -277,11 +285,11 @@ msgstr "" ":mod:`multiprocessing` gère deux types de canaux de communication entre les " "processus :" -#: ../Doc/library/multiprocessing.rst:196 +#: ../Doc/library/multiprocessing.rst:203 msgid "**Queues**" msgstr "**Queues**" -#: ../Doc/library/multiprocessing.rst:198 +#: ../Doc/library/multiprocessing.rst:205 msgid "" "The :class:`Queue` class is a near clone of :class:`queue.Queue`. For " "example::" @@ -289,17 +297,17 @@ msgstr "" "La classe :class:`Queue` est un clone assez proche de :class:`queue.Queue`. " "Par exemple : ::" -#: ../Doc/library/multiprocessing.rst:213 +#: ../Doc/library/multiprocessing.rst:220 msgid "Queues are thread and process safe." msgstr "" "Les queues peuvent être utilisées par plusieurs fils d'exécution ou " "processus." -#: ../Doc/library/multiprocessing.rst:215 +#: ../Doc/library/multiprocessing.rst:222 msgid "**Pipes**" msgstr "**Tubes** (*pipes*)" -#: ../Doc/library/multiprocessing.rst:217 +#: ../Doc/library/multiprocessing.rst:224 msgid "" "The :func:`Pipe` function returns a pair of connection objects connected by " "a pipe which by default is duplex (two-way). For example::" @@ -307,7 +315,7 @@ msgstr "" "La fonction :func:`Pipe` renvoie une paire d'objets de connexion connectés à " "un tube qui est par défaut à double-sens. Par exemple : ::" -#: ../Doc/library/multiprocessing.rst:233 +#: ../Doc/library/multiprocessing.rst:240 msgid "" "The two connection objects returned by :func:`Pipe` represent the two ends " "of the pipe. Each connection object has :meth:`~Connection.send` and :meth:" @@ -324,11 +332,11 @@ msgstr "" "temps. Évidemment il n'y a pas de risque de corruption si les processus " "utilisent deux bouts différents en même temps." -#: ../Doc/library/multiprocessing.rst:243 +#: ../Doc/library/multiprocessing.rst:250 msgid "Synchronization between processes" msgstr "Synchronisation entre processus" -#: ../Doc/library/multiprocessing.rst:245 +#: ../Doc/library/multiprocessing.rst:252 msgid "" ":mod:`multiprocessing` contains equivalents of all the synchronization " "primitives from :mod:`threading`. For instance one can use a lock to ensure " @@ -339,7 +347,7 @@ msgstr "" "un verrou pour s'assurer qu'un seul processus à la fois écrit sur la sortie " "standard : ::" -#: ../Doc/library/multiprocessing.rst:264 +#: ../Doc/library/multiprocessing.rst:271 msgid "" "Without using the lock output from the different processes is liable to get " "all mixed up." @@ -347,11 +355,11 @@ msgstr "" "Sans le verrou, les sorties des différents processus risquent d'être " "mélangées." -#: ../Doc/library/multiprocessing.rst:269 +#: ../Doc/library/multiprocessing.rst:276 msgid "Sharing state between processes" msgstr "Partager un état entre les processus" -#: ../Doc/library/multiprocessing.rst:271 +#: ../Doc/library/multiprocessing.rst:278 msgid "" "As mentioned above, when doing concurrent programming it is usually best to " "avoid using shared state as far as possible. This is particularly true when " @@ -361,7 +369,7 @@ msgstr "" "que possible d'utiliser des états partagés en programmation concurrente. " "C'est particulièrement vrai quand plusieurs processus sont utilisés." -#: ../Doc/library/multiprocessing.rst:275 +#: ../Doc/library/multiprocessing.rst:282 msgid "" "However, if you really do need to use some shared data then :mod:" "`multiprocessing` provides a couple of ways of doing so." @@ -369,11 +377,11 @@ msgstr "" "Cependant, si vous devez réellement partager des données, :mod:" "`multiprocessing` permet de le faire de deux manières." -#: ../Doc/library/multiprocessing.rst:278 +#: ../Doc/library/multiprocessing.rst:285 msgid "**Shared memory**" msgstr "**Mémoire partagée**" -#: ../Doc/library/multiprocessing.rst:280 +#: ../Doc/library/multiprocessing.rst:287 msgid "" "Data can be stored in a shared memory map using :class:`Value` or :class:" "`Array`. For example, the following code ::" @@ -381,12 +389,12 @@ msgstr "" "Les données peuvent être stockées dans une mémoire partagée en utilisant " "des :class:`Value` ou des :class:`Array`. Par exemple, le code suivant : ::" -#: ../Doc/library/multiprocessing.rst:301 -#: ../Doc/library/multiprocessing.rst:347 +#: ../Doc/library/multiprocessing.rst:308 +#: ../Doc/library/multiprocessing.rst:354 msgid "will print ::" msgstr "affiche : ::" -#: ../Doc/library/multiprocessing.rst:306 +#: ../Doc/library/multiprocessing.rst:313 msgid "" "The ``'d'`` and ``'i'`` arguments used when creating ``num`` and ``arr`` are " "typecodes of the kind used by the :mod:`array` module: ``'d'`` indicates a " @@ -399,7 +407,7 @@ msgstr "" "signé. Ces objets partagés seront sûr d'utilisation entre processus et fils " "d'exécution." -#: ../Doc/library/multiprocessing.rst:311 +#: ../Doc/library/multiprocessing.rst:318 msgid "" "For more flexibility in using shared memory one can use the :mod:" "`multiprocessing.sharedctypes` module which supports the creation of " @@ -409,11 +417,11 @@ msgstr "" "utiliser le module :mod:`multiprocessing.sharedctypes` qui permet la " "création d'objets arbitraires *ctypes* alloués depuis la mémoire partagée." -#: ../Doc/library/multiprocessing.rst:315 +#: ../Doc/library/multiprocessing.rst:322 msgid "**Server process**" msgstr "**Processus serveur**" -#: ../Doc/library/multiprocessing.rst:317 +#: ../Doc/library/multiprocessing.rst:324 msgid "" "A manager object returned by :func:`Manager` controls a server process which " "holds Python objects and allows other processes to manipulate them using " @@ -423,7 +431,7 @@ msgstr "" "serveur qui détient les objets Python et autorise les autres processus à les " "manipuler à l'aide de mandataires." -#: ../Doc/library/multiprocessing.rst:321 +#: ../Doc/library/multiprocessing.rst:328 msgid "" "A manager returned by :func:`Manager` will support types :class:`list`, :" "class:`dict`, :class:`~managers.Namespace`, :class:`Lock`, :class:`RLock`, :" @@ -437,7 +445,7 @@ msgstr "" "class:`Event`, :class:`Barrier`, :class:`Queue`, :class:`Value` et :class:" "`Array`. Par exemple, ::" -#: ../Doc/library/multiprocessing.rst:352 +#: ../Doc/library/multiprocessing.rst:359 msgid "" "Server process managers are more flexible than using shared memory objects " "because they can be made to support arbitrary object types. Also, a single " @@ -450,11 +458,11 @@ msgstr "" "machines à travers le réseau. Cependant, ils sont plus lents que les " "mémoires partagées." -#: ../Doc/library/multiprocessing.rst:359 +#: ../Doc/library/multiprocessing.rst:366 msgid "Using a pool of workers" msgstr "Utiliser un réservoir de *workers*" -#: ../Doc/library/multiprocessing.rst:361 +#: ../Doc/library/multiprocessing.rst:368 msgid "" "The :class:`~multiprocessing.pool.Pool` class represents a pool of worker " "processes. It has methods which allows tasks to be offloaded to the worker " @@ -464,11 +472,11 @@ msgstr "" "processus de travail. Elle possède des méthodes qui permettent aux tâches " "d'être déchargées vers les processus de travail de différentes manières." -#: ../Doc/library/multiprocessing.rst:365 +#: ../Doc/library/multiprocessing.rst:372 msgid "For example::" msgstr "Par exemple ::" -#: ../Doc/library/multiprocessing.rst:409 +#: ../Doc/library/multiprocessing.rst:416 msgid "" "Note that the methods of a pool should only ever be used by the process " "which created it." @@ -476,7 +484,7 @@ msgstr "" "Notez que les méthodes d'une *pool* ne devraient être utilisées que par le " "processus qui l'a créée." -#: ../Doc/library/multiprocessing.rst:414 +#: ../Doc/library/multiprocessing.rst:421 msgid "" "Functionality within this package requires that the ``__main__`` module be " "importable by the children. This is covered in :ref:`multiprocessing-" @@ -490,7 +498,7 @@ msgstr "" "certains exemples, comme les exemples utilisant :class:`multiprocessing.pool." "Pool`, ne fonctionnent pas dans l'interpréteur interactif. Par exemple : ::" -#: ../Doc/library/multiprocessing.rst:436 +#: ../Doc/library/multiprocessing.rst:443 msgid "" "(If you try this it will actually output three full tracebacks interleaved " "in a semi-random fashion, and then you may have to stop the master process " @@ -500,11 +508,11 @@ msgstr "" "entrelacées de manière semi-aléatoire, et vous aurez alors à stopper le " "processus maître.)" -#: ../Doc/library/multiprocessing.rst:442 +#: ../Doc/library/multiprocessing.rst:449 msgid "Reference" msgstr "Référence" -#: ../Doc/library/multiprocessing.rst:444 +#: ../Doc/library/multiprocessing.rst:451 msgid "" "The :mod:`multiprocessing` package mostly replicates the API of the :mod:" "`threading` module." @@ -512,11 +520,11 @@ msgstr "" "Le paquet :mod:`multiprocessing` reproduit en grande partie l'API du module :" "mod:`threading`." -#: ../Doc/library/multiprocessing.rst:449 +#: ../Doc/library/multiprocessing.rst:456 msgid ":class:`Process` and exceptions" msgstr ":class:`Process` et exceptions" -#: ../Doc/library/multiprocessing.rst:454 +#: ../Doc/library/multiprocessing.rst:461 msgid "" "Process objects represent activity that is run in a separate process. The :" "class:`Process` class has equivalents of all the methods of :class:" @@ -526,7 +534,7 @@ msgstr "" "séparé. La classe :class:`Process` a des équivalents à toutes les méthodes " "de :class:`threading.Thread`." -#: ../Doc/library/multiprocessing.rst:458 +#: ../Doc/library/multiprocessing.rst:465 msgid "" "The constructor should always be called with keyword arguments. *group* " "should always be ``None``; it exists solely for compatibility with :class:" @@ -550,11 +558,11 @@ msgstr "" "l'option :attr:`daemon` du processus à ``True`` ou ``False``. S'il est " "``None`` (par défaut), l'option est héritée par le processus créateur." -#: ../Doc/library/multiprocessing.rst:469 +#: ../Doc/library/multiprocessing.rst:476 msgid "By default, no arguments are passed to *target*." msgstr "Par défaut, aucun argument n'est passé à *target*." -#: ../Doc/library/multiprocessing.rst:471 +#: ../Doc/library/multiprocessing.rst:478 msgid "" "If a subclass overrides the constructor, it must make sure it invokes the " "base class constructor (:meth:`Process.__init__`) before doing anything else " @@ -564,15 +572,15 @@ msgstr "" "le constructeur de la classe de base (:meth:`Process.__init__`) avant de " "faire autre chose du processus." -#: ../Doc/library/multiprocessing.rst:475 +#: ../Doc/library/multiprocessing.rst:482 msgid "Added the *daemon* argument." msgstr "Ajout de l'argument *daemon*." -#: ../Doc/library/multiprocessing.rst:480 +#: ../Doc/library/multiprocessing.rst:487 msgid "Method representing the process's activity." msgstr "Méthode représentant l'activité du processus." -#: ../Doc/library/multiprocessing.rst:482 +#: ../Doc/library/multiprocessing.rst:489 msgid "" "You may override this method in a subclass. The standard :meth:`run` method " "invokes the callable object passed to the object's constructor as the target " @@ -584,11 +592,11 @@ msgstr "" "argument *target*, si fourni, avec les arguments séquentiels et nommés " "respectivement pris depuis les paramètres *args* et *kwargs*." -#: ../Doc/library/multiprocessing.rst:489 +#: ../Doc/library/multiprocessing.rst:496 msgid "Start the process's activity." msgstr "Démarre l'activité du processus." -#: ../Doc/library/multiprocessing.rst:491 +#: ../Doc/library/multiprocessing.rst:498 msgid "" "This must be called at most once per process object. It arranges for the " "object's :meth:`run` method to be invoked in a separate process." @@ -597,7 +605,7 @@ msgstr "" "pour que la méthode :meth:`run` de l'objet soit invoquée dans un processus " "séparé." -#: ../Doc/library/multiprocessing.rst:496 +#: ../Doc/library/multiprocessing.rst:503 msgid "" "If the optional argument *timeout* is ``None`` (the default), the method " "blocks until the process whose :meth:`join` method is called terminates. If " @@ -613,11 +621,11 @@ msgstr "" "le processus se termine ou si le temps d'exécution expire. Vérifiez " "l'attribut :attr:`exitcode` du processus pour déterminer s'il s'est terminé." -#: ../Doc/library/multiprocessing.rst:503 +#: ../Doc/library/multiprocessing.rst:510 msgid "A process can be joined many times." msgstr "*join* peut être appelée plusieurs fois sur un même processus." -#: ../Doc/library/multiprocessing.rst:505 +#: ../Doc/library/multiprocessing.rst:512 msgid "" "A process cannot join itself because this would cause a deadlock. It is an " "error to attempt to join a process before it has been started." @@ -626,7 +634,7 @@ msgstr "" "interblocage. C'est une erreur d'essayer d'attendre un processus avant qu'il " "ne soit démarré." -#: ../Doc/library/multiprocessing.rst:510 +#: ../Doc/library/multiprocessing.rst:517 msgid "" "The process's name. The name is a string used for identification purposes " "only. It has no semantics. Multiple processes may be given the same name." @@ -635,7 +643,7 @@ msgstr "" "pour l'identification du processus. Il n'a pas de sémantique. Plusieurs " "processus peuvent avoir le même nom." -#: ../Doc/library/multiprocessing.rst:514 +#: ../Doc/library/multiprocessing.rst:521 msgid "" "The initial name is set by the constructor. If no explicit name is provided " "to the constructor, a name of the form 'Process-N\\ :sub:`1`:N\\ :sub:" @@ -647,11 +655,11 @@ msgstr "" "sub:`2`:...:N\\ :sub:`k` » est construit, où chaque N\\ :sub:`k` est le N-" "ième enfant de son parent." -#: ../Doc/library/multiprocessing.rst:521 +#: ../Doc/library/multiprocessing.rst:528 msgid "Return whether the process is alive." msgstr "Renvoie vrai si le processus est en vie, faux sinon." -#: ../Doc/library/multiprocessing.rst:523 +#: ../Doc/library/multiprocessing.rst:530 msgid "" "Roughly, a process object is alive from the moment the :meth:`start` method " "returns until the child process terminates." @@ -659,7 +667,7 @@ msgstr "" "Grossièrement, un objet processus est en vie depuis le moment où la méthode :" "meth:`start` finit de s'exécuter jusqu'à ce que le processus fils se termine." -#: ../Doc/library/multiprocessing.rst:528 +#: ../Doc/library/multiprocessing.rst:535 msgid "" "The process's daemon flag, a Boolean value. This must be set before :meth:" "`start` is called." @@ -667,11 +675,11 @@ msgstr "" "L'option *daemon* du processus, une valeur booléenne. L'option doit être " "réglée avant que la méthode :meth:`start` ne soit appelée." -#: ../Doc/library/multiprocessing.rst:531 +#: ../Doc/library/multiprocessing.rst:538 msgid "The initial value is inherited from the creating process." msgstr "La valeur initiale est héritée par le processus créateur." -#: ../Doc/library/multiprocessing.rst:533 +#: ../Doc/library/multiprocessing.rst:540 msgid "" "When a process exits, it attempts to terminate all of its daemonic child " "processes." @@ -679,7 +687,7 @@ msgstr "" "Quand un processus se ferme, il tente de terminer tous ses processus enfants " "*daemon*." -#: ../Doc/library/multiprocessing.rst:536 +#: ../Doc/library/multiprocessing.rst:543 msgid "" "Note that a daemonic process is not allowed to create child processes. " "Otherwise a daemonic process would leave its children orphaned if it gets " @@ -693,7 +701,7 @@ msgstr "" "*daemons* ou services Unix, ce sont des processus normaux qui seront " "terminés (et non attendus) si un processus non *daemon* se ferme." -#: ../Doc/library/multiprocessing.rst:542 +#: ../Doc/library/multiprocessing.rst:549 msgid "" "In addition to the :class:`threading.Thread` API, :class:`Process` objects " "also support the following attributes and methods:" @@ -701,14 +709,14 @@ msgstr "" "En plus de l'API :class:`threading.Thread`, les objets :class:`Process` " "supportent aussi les attributs et méthodes suivants :" -#: ../Doc/library/multiprocessing.rst:547 +#: ../Doc/library/multiprocessing.rst:554 msgid "" "Return the process ID. Before the process is spawned, this will be ``None``." msgstr "" "Renvoie l'ID du processus. Avant que le processus ne soit lancé, la valeur " "est ``None``." -#: ../Doc/library/multiprocessing.rst:552 +#: ../Doc/library/multiprocessing.rst:559 msgid "" "The child's exit code. This will be ``None`` if the process has not yet " "terminated. A negative value *-N* indicates that the child was terminated " @@ -718,11 +726,11 @@ msgstr "" "s'est pas encore terminé. Une valeur négative *-N* indique que le fils a été " "terminé par un signal *N*." -#: ../Doc/library/multiprocessing.rst:558 +#: ../Doc/library/multiprocessing.rst:565 msgid "The process's authentication key (a byte string)." msgstr "La clé d'authentification du processus (une chaîne d'octets)." -#: ../Doc/library/multiprocessing.rst:560 +#: ../Doc/library/multiprocessing.rst:567 msgid "" "When :mod:`multiprocessing` is initialized the main process is assigned a " "random string using :func:`os.urandom`." @@ -730,7 +738,7 @@ msgstr "" "Quand :mod:`multiprocessing` est initialisé, une chaîne aléatoire est " "assignée au processus principal, en utilisant :func:`os.urandom`." -#: ../Doc/library/multiprocessing.rst:563 +#: ../Doc/library/multiprocessing.rst:570 msgid "" "When a :class:`Process` object is created, it will inherit the " "authentication key of its parent process, although this may be changed by " @@ -740,11 +748,11 @@ msgstr "" "d'authentification de son parent, bien que cela puisse être changé à l'aide " "du paramètre :attr:`authkey` pour une autre chaîne d'octets." -#: ../Doc/library/multiprocessing.rst:567 +#: ../Doc/library/multiprocessing.rst:574 msgid "See :ref:`multiprocessing-auth-keys`." msgstr "Voir :ref:`multiprocessing-auth-keys`." -#: ../Doc/library/multiprocessing.rst:571 +#: ../Doc/library/multiprocessing.rst:578 msgid "" "A numeric handle of a system object which will become \"ready\" when the " "process ends." @@ -752,7 +760,7 @@ msgstr "" "Un identifiant numérique de l'objet système qui devient « prêt » quand le " "processus se termine." -#: ../Doc/library/multiprocessing.rst:574 +#: ../Doc/library/multiprocessing.rst:581 msgid "" "You can use this value if you want to wait on several events at once using :" "func:`multiprocessing.connection.wait`. Otherwise calling :meth:`join()` is " @@ -762,7 +770,7 @@ msgstr "" "événements à la fois en utilisant :func:`multiprocessing.connection.wait`. " "Autrement appeler :meth:`join()` est plus simple." -#: ../Doc/library/multiprocessing.rst:578 +#: ../Doc/library/multiprocessing.rst:585 msgid "" "On Windows, this is an OS handle usable with the ``WaitForSingleObject`` and " "``WaitForMultipleObjects`` family of API calls. On Unix, this is a file " @@ -773,7 +781,7 @@ msgstr "" "Unix, c'est un descripteur de fichier utilisable avec les primitives sur " "module :mod:`select`." -#: ../Doc/library/multiprocessing.rst:586 +#: ../Doc/library/multiprocessing.rst:593 msgid "" "Terminate the process. On Unix this is done using the ``SIGTERM`` signal; " "on Windows :c:func:`TerminateProcess` is used. Note that exit handlers and " @@ -784,7 +792,7 @@ msgstr "" "les gestionnaires de sortie, les clauses `finally` etc. ne sont pas " "exécutées." -#: ../Doc/library/multiprocessing.rst:590 +#: ../Doc/library/multiprocessing.rst:597 msgid "" "Note that descendant processes of the process will *not* be terminated -- " "they will simply become orphaned." @@ -792,7 +800,7 @@ msgstr "" "Notez que les descendants du processus ne *seront pas* terminés -- ils " "deviendront simplement orphelins." -#: ../Doc/library/multiprocessing.rst:595 +#: ../Doc/library/multiprocessing.rst:602 msgid "" "If this method is used when the associated process is using a pipe or queue " "then the pipe or queue is liable to become corrupted and may become unusable " @@ -806,13 +814,13 @@ msgstr "" "si le processus a acquis un verrou, un sémaphore ou autre, alors le terminer " "est susceptible de provoquer des blocages dans les autres processus." -#: ../Doc/library/multiprocessing.rst:603 +#: ../Doc/library/multiprocessing.rst:610 msgid "Same as :meth:`terminate()` but using the ``SIGKILL`` signal on Unix." msgstr "" "Identique à :meth:`terminate()` mais utilisant le signal ``SIGKILL`` sous " "Unix." -#: ../Doc/library/multiprocessing.rst:609 +#: ../Doc/library/multiprocessing.rst:616 msgid "" "Close the :class:`Process` object, releasing all resources associated with " "it. :exc:`ValueError` is raised if the underlying process is still " @@ -825,7 +833,7 @@ msgstr "" "plupart des autres méthodes et attributs des objets :class:`Process` " "lèveront une :exc:`ValueError`." -#: ../Doc/library/multiprocessing.rst:617 +#: ../Doc/library/multiprocessing.rst:624 msgid "" "Note that the :meth:`start`, :meth:`join`, :meth:`is_alive`, :meth:" "`terminate` and :attr:`exitcode` methods should only be called by the " @@ -835,15 +843,15 @@ msgstr "" "`terminate` et :attr:`exitcode` ne devraient être appelées que par le " "processus ayant créé l'objet *process*." -#: ../Doc/library/multiprocessing.rst:621 +#: ../Doc/library/multiprocessing.rst:628 msgid "Example usage of some of the methods of :class:`Process`:" msgstr "Exemple d'utilisation de quelques méthodes de :class:`Process` :" -#: ../Doc/library/multiprocessing.rst:641 +#: ../Doc/library/multiprocessing.rst:648 msgid "The base class of all :mod:`multiprocessing` exceptions." msgstr "La classe de base de toutes les exceptions de :mod:`multiprocessing`." -#: ../Doc/library/multiprocessing.rst:645 +#: ../Doc/library/multiprocessing.rst:652 msgid "" "Exception raised by :meth:`Connection.recv_bytes_into()` when the supplied " "buffer object is too small for the message read." @@ -851,7 +859,7 @@ msgstr "" "Exception levée par :meth:`Connection.recv_bytes_into()` quand l'objet " "tampon fourni est trop petit pour le message à lire." -#: ../Doc/library/multiprocessing.rst:648 +#: ../Doc/library/multiprocessing.rst:655 msgid "" "If ``e`` is an instance of :exc:`BufferTooShort` then ``e.args[0]`` will " "give the message as a byte string." @@ -859,20 +867,20 @@ msgstr "" "Si ``e`` est une instance de :exc:`BufferTooShort` alors ``e.args[0]`` " "donnera un message sous forme d'une chaîne d'octets." -#: ../Doc/library/multiprocessing.rst:653 +#: ../Doc/library/multiprocessing.rst:660 msgid "Raised when there is an authentication error." msgstr "Levée quand il y a une erreur d'authentification." -#: ../Doc/library/multiprocessing.rst:657 +#: ../Doc/library/multiprocessing.rst:664 msgid "Raised by methods with a timeout when the timeout expires." msgstr "" "Levée par les méthodes avec temps d'exécution limité, quand ce temps expire." -#: ../Doc/library/multiprocessing.rst:660 +#: ../Doc/library/multiprocessing.rst:667 msgid "Pipes and Queues" msgstr "Tubes (*pipes*) et Queues" -#: ../Doc/library/multiprocessing.rst:662 +#: ../Doc/library/multiprocessing.rst:669 msgid "" "When using multiple processes, one generally uses message passing for " "communication between processes and avoids having to use any synchronization " @@ -882,7 +890,7 @@ msgstr "" "souvent mis en place pour la communication entre processus et éviter d'avoir " "à utiliser des primitives de synchronisation telles que des verrous." -#: ../Doc/library/multiprocessing.rst:666 +#: ../Doc/library/multiprocessing.rst:673 msgid "" "For passing messages one can use :func:`Pipe` (for a connection between two " "processes) or a queue (which allows multiple producers and consumers)." @@ -891,7 +899,7 @@ msgstr "" "connexion entre deux processus) ou une queue (qui autorise de multiples " "producteurs et consommateurs)." -#: ../Doc/library/multiprocessing.rst:669 +#: ../Doc/library/multiprocessing.rst:676 msgid "" "The :class:`Queue`, :class:`SimpleQueue` and :class:`JoinableQueue` types " "are multi-producer, multi-consumer :abbr:`FIFO (first-in, first-out)` queues " @@ -907,7 +915,7 @@ msgstr "" "méthodes :meth:`~queue.Queue.task_done` et :meth:`~queue.Queue.join` " "introduites dans la classe :class:`queue.Queue` par Python 2.5." -#: ../Doc/library/multiprocessing.rst:676 +#: ../Doc/library/multiprocessing.rst:683 msgid "" "If you use :class:`JoinableQueue` then you **must** call :meth:" "`JoinableQueue.task_done` for each task removed from the queue or else the " @@ -919,7 +927,7 @@ msgstr "" "le sémaphore utilisé pour compter le nombre de tâches non accomplies pourra " "éventuellement déborder, levant une exception." -#: ../Doc/library/multiprocessing.rst:681 +#: ../Doc/library/multiprocessing.rst:688 msgid "" "Note that one can also create a shared queue by using a manager object -- " "see :ref:`multiprocessing-managers`." @@ -927,7 +935,7 @@ msgstr "" "Notez que vous pouvez aussi créer une queue partagée en utilisant un objet " "gestionnaire -- voir :ref:`multiprocessing-managers`." -#: ../Doc/library/multiprocessing.rst:686 +#: ../Doc/library/multiprocessing.rst:693 msgid "" ":mod:`multiprocessing` uses the usual :exc:`queue.Empty` and :exc:`queue." "Full` exceptions to signal a timeout. They are not available in the :mod:" @@ -938,7 +946,7 @@ msgstr "" "Elles ne sont pas disponibles dans l'espace de nom :mod:`multiprocessing` " "donc vous devez les importer depuis le module :mod:`queue`." -#: ../Doc/library/multiprocessing.rst:693 +#: ../Doc/library/multiprocessing.rst:700 msgid "" "When an object is put on a queue, the object is pickled and a background " "thread later flushes the pickled data to an underlying pipe. This has some " @@ -953,7 +961,7 @@ msgstr "" "pratiques -- si elles vous embêtent vraiment, alors vous pouvez à la place " "utiliser une queue créée avec un :ref:`manager `." -#: ../Doc/library/multiprocessing.rst:700 +#: ../Doc/library/multiprocessing.rst:707 msgid "" "After putting an object on an empty queue there may be an infinitesimal " "delay before the queue's :meth:`~Queue.empty` method returns :const:`False` " @@ -964,7 +972,7 @@ msgstr "" "const:`False` et que :meth:`~Queue.get_nowait` renvoie une valeur sans lever " "de :exc:`queue.Empty`." -#: ../Doc/library/multiprocessing.rst:705 +#: ../Doc/library/multiprocessing.rst:712 msgid "" "If multiple processes are enqueuing objects, it is possible for the objects " "to be received at the other end out-of-order. However, objects enqueued by " @@ -976,7 +984,7 @@ msgstr "" "les objets placés par un même processus seront toujours récupérés dans " "l'ordre attendu." -#: ../Doc/library/multiprocessing.rst:712 +#: ../Doc/library/multiprocessing.rst:719 msgid "" "If a process is killed using :meth:`Process.terminate` or :func:`os.kill` " "while it is trying to use a :class:`Queue`, then the data in the queue is " @@ -989,7 +997,7 @@ msgstr "" "levées d'exceptions dans les autres processus quand ils tenteront d'utiliser " "la queue." -#: ../Doc/library/multiprocessing.rst:719 +#: ../Doc/library/multiprocessing.rst:726 msgid "" "As mentioned above, if a child process has put items on a queue (and it has " "not used :meth:`JoinableQueue.cancel_join_thread ` -- see also :ref:`multiprocessing-listeners-clients`." @@ -1539,7 +1547,7 @@ msgstr "" "` -- voir aussi :ref:`multiprocessing-listeners-" "clients`." -#: ../Doc/library/multiprocessing.rst:1038 +#: ../Doc/library/multiprocessing.rst:1045 msgid "" "Send an object to the other end of the connection which should be read " "using :meth:`recv`." @@ -1547,7 +1555,7 @@ msgstr "" "Envoie un objet sur l'autre bout de la connexion, qui devra être lu avec :" "meth:`recv`." -#: ../Doc/library/multiprocessing.rst:1041 +#: ../Doc/library/multiprocessing.rst:1048 msgid "" "The object must be picklable. Very large pickles (approximately 32 MiB+, " "though it depends on the OS) may raise a :exc:`ValueError` exception." @@ -1556,7 +1564,7 @@ msgstr "" "32 Mo+, bien que cela dépende de l'OS) pourront lever une exception :exc:" "`ValueError`." -#: ../Doc/library/multiprocessing.rst:1046 +#: ../Doc/library/multiprocessing.rst:1053 msgid "" "Return an object sent from the other end of the connection using :meth:" "`send`. Blocks until there is something to receive. Raises :exc:`EOFError` " @@ -1566,27 +1574,27 @@ msgstr "" "meth:`send`. Bloque jusqu'à ce que quelque chose soit reçu. Lève une :exc:" "`EOFError` s'il n'y a plus rien à recevoir et que l'autre bout a été fermé." -#: ../Doc/library/multiprocessing.rst:1053 +#: ../Doc/library/multiprocessing.rst:1060 msgid "Return the file descriptor or handle used by the connection." msgstr "" "Renvoie le descripteur de fichier ou identifiant utilisé par la connexion." -#: ../Doc/library/multiprocessing.rst:1057 +#: ../Doc/library/multiprocessing.rst:1064 msgid "Close the connection." msgstr "Ferme la connexion." -#: ../Doc/library/multiprocessing.rst:1059 +#: ../Doc/library/multiprocessing.rst:1066 msgid "This is called automatically when the connection is garbage collected." msgstr "" "Elle est appelée automatiquement quand la connexion est collectée par le " "ramasse-miettes." -#: ../Doc/library/multiprocessing.rst:1063 +#: ../Doc/library/multiprocessing.rst:1070 msgid "Return whether there is any data available to be read." msgstr "" "Renvoie vrai ou faux selon si des données sont disponibles à la lecture." -#: ../Doc/library/multiprocessing.rst:1065 +#: ../Doc/library/multiprocessing.rst:1072 msgid "" "If *timeout* is not specified then it will return immediately. If *timeout* " "is a number then this specifies the maximum time in seconds to block. If " @@ -1596,7 +1604,7 @@ msgstr "" "*timeout* est un nombre alors il spécifie le temps maximum de blocage en " "secondes. Si *timeout* est ``None``, un temps d'attente infini est utilisé." -#: ../Doc/library/multiprocessing.rst:1069 +#: ../Doc/library/multiprocessing.rst:1076 msgid "" "Note that multiple connection objects may be polled at once by using :func:" "`multiprocessing.connection.wait`." @@ -1604,13 +1612,13 @@ msgstr "" "Notez que plusieurs objets de connexions peuvent être attendus en même temps " "à l'aide de :func:`multiprocessing.connection.wait`." -#: ../Doc/library/multiprocessing.rst:1074 +#: ../Doc/library/multiprocessing.rst:1081 msgid "Send byte data from a :term:`bytes-like object` as a complete message." msgstr "" "Envoie des données binaires depuis un :term:`bytes-like object` comme un " "message complet." -#: ../Doc/library/multiprocessing.rst:1076 +#: ../Doc/library/multiprocessing.rst:1083 msgid "" "If *offset* is given then data is read from that position in *buffer*. If " "*size* is given then that many bytes will be read from buffer. Very large " @@ -1623,7 +1631,7 @@ msgstr "" "+, bien que cela dépende de l'OS) pourront lever une exception :exc:" "`ValueError`." -#: ../Doc/library/multiprocessing.rst:1083 +#: ../Doc/library/multiprocessing.rst:1090 msgid "" "Return a complete message of byte data sent from the other end of the " "connection as a string. Blocks until there is something to receive. Raises :" @@ -1635,7 +1643,7 @@ msgstr "" "ait quelque chose à recevoir. Lève une :exc:`EOFError` s'il ne reste rien à " "recevoir et que l'autre côté de la connexion a été fermé." -#: ../Doc/library/multiprocessing.rst:1088 +#: ../Doc/library/multiprocessing.rst:1095 msgid "" "If *maxlength* is specified and the message is longer than *maxlength* then :" "exc:`OSError` is raised and the connection will no longer be readable." @@ -1643,7 +1651,7 @@ msgstr "" "Si *maxlength* est précisé que que le message est plus long que *maxlength* " "alors une :exc:`OSError` est levée et la connexion n'est plus lisible." -#: ../Doc/library/multiprocessing.rst:1092 +#: ../Doc/library/multiprocessing.rst:1099 msgid "" "This function used to raise :exc:`IOError`, which is now an alias of :exc:" "`OSError`." @@ -1651,7 +1659,7 @@ msgstr "" "Cette fonction levait auparavant une :exc:`IOError`, qui est maintenant un " "alias pour :exc:`OSError`." -#: ../Doc/library/multiprocessing.rst:1099 +#: ../Doc/library/multiprocessing.rst:1106 msgid "" "Read into *buffer* a complete message of byte data sent from the other end " "of the connection and return the number of bytes in the message. Blocks " @@ -1664,7 +1672,7 @@ msgstr "" "exc:`EOFError` s'il ne reste rien à recevoir et que l'autre côté de la " "connexion a été fermé." -#: ../Doc/library/multiprocessing.rst:1105 +#: ../Doc/library/multiprocessing.rst:1112 msgid "" "*buffer* must be a writable :term:`bytes-like object`. If *offset* is given " "then the message will be written into the buffer from that position. Offset " @@ -1675,7 +1683,7 @@ msgstr "" "position. *offset* doit être un entier positif, inférieur à la taille de " "*buffer* (en octets)." -#: ../Doc/library/multiprocessing.rst:1110 +#: ../Doc/library/multiprocessing.rst:1117 msgid "" "If the buffer is too short then a :exc:`BufferTooShort` exception is raised " "and the complete message is available as ``e.args[0]`` where ``e`` is the " @@ -1685,7 +1693,7 @@ msgstr "" "le message complet est accessible via ``e.args[0]`` où ``e`` est l'instance " "de l'exception." -#: ../Doc/library/multiprocessing.rst:1114 +#: ../Doc/library/multiprocessing.rst:1121 msgid "" "Connection objects themselves can now be transferred between processes " "using :meth:`Connection.send` and :meth:`Connection.recv`." @@ -1694,7 +1702,7 @@ msgstr "" "les processus en utilisant :meth:`Connection.send` et :meth:`Connection." "recv`." -#: ../Doc/library/multiprocessing.rst:1118 +#: ../Doc/library/multiprocessing.rst:1125 msgid "" "Connection objects now support the context management protocol -- see :ref:" "`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " @@ -1705,11 +1713,11 @@ msgstr "" "`~contextmanager.__enter__` renvoie l'objet de connexion, et :meth:" "`~contextmanager.__exit__` appelle :meth:`close`." -#: ../Doc/library/multiprocessing.rst:1123 +#: ../Doc/library/multiprocessing.rst:1130 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/library/multiprocessing.rst:1147 +#: ../Doc/library/multiprocessing.rst:1154 msgid "" "The :meth:`Connection.recv` method automatically unpickles the data it " "receives, which can be a security risk unless you can trust the process " @@ -1719,7 +1727,7 @@ msgstr "" "qu'elle reçoit, ce qui peut être un risque de sécurité à moins que vous ne " "fassiez réellement confiance au processus émetteur du message." -#: ../Doc/library/multiprocessing.rst:1151 +#: ../Doc/library/multiprocessing.rst:1158 msgid "" "Therefore, unless the connection object was produced using :func:`Pipe` you " "should only use the :meth:`~Connection.recv` and :meth:`~Connection.send` " @@ -1731,7 +1739,7 @@ msgstr "" "recv` et :meth:`~Connection.send` après avoir effectué une quelconque forme " "d'authentification. Voir :ref:`multiprocessing-auth-keys`." -#: ../Doc/library/multiprocessing.rst:1158 +#: ../Doc/library/multiprocessing.rst:1165 msgid "" "If a process is killed while it is trying to read or write to a pipe then " "the data in the pipe is likely to become corrupted, because it may become " @@ -1741,11 +1749,11 @@ msgstr "" "alors les données du tube ont des chances d'être corrompues, parce qu'il " "devient impossible d'être sûr d'où se trouvent les bornes du message." -#: ../Doc/library/multiprocessing.rst:1164 +#: ../Doc/library/multiprocessing.rst:1171 msgid "Synchronization primitives" msgstr "Primitives de synchronisation" -#: ../Doc/library/multiprocessing.rst:1168 +#: ../Doc/library/multiprocessing.rst:1175 msgid "" "Generally synchronization primitives are not as necessary in a multiprocess " "program as they are in a multithreaded program. See the documentation for :" @@ -1755,7 +1763,7 @@ msgstr "" "un programme multi-processus comme elles le sont dans un programme multi-" "fils d'exécution. Voir la documentation du module :mod:`threading`." -#: ../Doc/library/multiprocessing.rst:1172 +#: ../Doc/library/multiprocessing.rst:1179 msgid "" "Note that one can also create synchronization primitives by using a manager " "object -- see :ref:`multiprocessing-managers`." @@ -1763,11 +1771,11 @@ msgstr "" "Notez que vous pouvez aussi créer des primitives de synchronisation en " "utilisant un objet gestionnaire -- voir :ref:`multiprocessing-managers`." -#: ../Doc/library/multiprocessing.rst:1177 +#: ../Doc/library/multiprocessing.rst:1184 msgid "A barrier object: a clone of :class:`threading.Barrier`." msgstr "Un objet barrière : un clone de :class:`threading.Barrier`." -#: ../Doc/library/multiprocessing.rst:1183 +#: ../Doc/library/multiprocessing.rst:1190 msgid "" "A bounded semaphore object: a close analog of :class:`threading." "BoundedSemaphore`." @@ -1775,8 +1783,8 @@ msgstr "" "Un objet sémaphore lié : un analogue proche de :class:`threading." "BoundedSemaphore`." -#: ../Doc/library/multiprocessing.rst:1186 -#: ../Doc/library/multiprocessing.rst:1324 +#: ../Doc/library/multiprocessing.rst:1193 +#: ../Doc/library/multiprocessing.rst:1331 msgid "" "A solitary difference from its close analog exists: its ``acquire`` method's " "first argument is named *block*, as is consistent with :meth:`Lock.acquire`." @@ -1785,7 +1793,7 @@ msgstr "" "de sa méthode ``acquire`` est appelé *block*, pour la cohérence avec :meth:" "`Lock.acquire`." -#: ../Doc/library/multiprocessing.rst:1190 +#: ../Doc/library/multiprocessing.rst:1197 msgid "" "On Mac OS X, this is indistinguishable from :class:`Semaphore` because " "``sem_getvalue()`` is not implemented on that platform." @@ -1793,12 +1801,12 @@ msgstr "" "Sur Mac OS X, elle n'est pas distinguable de la classe :class:`Semaphore` " "parce que ``sem_getvalue()`` n'est pas implémentée sur cette plateforme." -#: ../Doc/library/multiprocessing.rst:1195 +#: ../Doc/library/multiprocessing.rst:1202 msgid "A condition variable: an alias for :class:`threading.Condition`." msgstr "" "Une variable conditionnelle : un alias pour :class:`threading.Condition`." -#: ../Doc/library/multiprocessing.rst:1197 +#: ../Doc/library/multiprocessing.rst:1204 msgid "" "If *lock* is specified then it should be a :class:`Lock` or :class:`RLock` " "object from :mod:`multiprocessing`." @@ -1806,16 +1814,16 @@ msgstr "" "Si *lock* est spécifié il doit être un objet :class:`Lock` ou :class:`RLock` " "du module :mod:`multiprocessing`." -#: ../Doc/library/multiprocessing.rst:1200 -#: ../Doc/library/multiprocessing.rst:1734 +#: ../Doc/library/multiprocessing.rst:1207 +#: ../Doc/library/multiprocessing.rst:1741 msgid "The :meth:`~threading.Condition.wait_for` method was added." msgstr "La méthode :meth:`~threading.Condition.wait_for` a été ajoutée." -#: ../Doc/library/multiprocessing.rst:1205 +#: ../Doc/library/multiprocessing.rst:1212 msgid "A clone of :class:`threading.Event`." msgstr "Un clone de :class:`threading.Event`." -#: ../Doc/library/multiprocessing.rst:1210 +#: ../Doc/library/multiprocessing.rst:1217 msgid "" "A non-recursive lock object: a close analog of :class:`threading.Lock`. Once " "a process or thread has acquired a lock, subsequent attempts to acquire it " @@ -1834,7 +1842,7 @@ msgstr "" "dans :class:`multiprocessing.Lock` et s'appliquent aux processus et aux fils " "d'exécution, à l'exception de ce qui est indiqué." -#: ../Doc/library/multiprocessing.rst:1218 +#: ../Doc/library/multiprocessing.rst:1225 msgid "" "Note that :class:`Lock` is actually a factory function which returns an " "instance of ``multiprocessing.synchronize.Lock`` initialized with a default " @@ -1844,7 +1852,7 @@ msgstr "" "instance de ``multiprocessing.synchronize.Lock`` initialisée avec un " "contexte par défaut." -#: ../Doc/library/multiprocessing.rst:1222 +#: ../Doc/library/multiprocessing.rst:1229 msgid "" ":class:`Lock` supports the :term:`context manager` protocol and thus may be " "used in :keyword:`with` statements." @@ -1852,12 +1860,12 @@ msgstr "" ":class:`Lock` supporte le protocole :term:`context manager` et peut ainsi " "être utilisé avec une instruction :keyword:`with`." -#: ../Doc/library/multiprocessing.rst:1227 -#: ../Doc/library/multiprocessing.rst:1278 +#: ../Doc/library/multiprocessing.rst:1234 +#: ../Doc/library/multiprocessing.rst:1285 msgid "Acquire a lock, blocking or non-blocking." msgstr "Acquiert un verrou, bloquant ou non bloquant." -#: ../Doc/library/multiprocessing.rst:1229 +#: ../Doc/library/multiprocessing.rst:1236 msgid "" "With the *block* argument set to ``True`` (the default), the method call " "will block until the lock is in an unlocked state, then set it to locked and " @@ -1869,7 +1877,7 @@ msgstr "" "de renvoyer ``True``. Notez que le nom de ce premier argument diffère de " "celui de :meth:`threading.Lock.acquire`." -#: ../Doc/library/multiprocessing.rst:1234 +#: ../Doc/library/multiprocessing.rst:1241 msgid "" "With the *block* argument set to ``False``, the method call does not block. " "If the lock is currently in a locked state, return ``False``; otherwise set " @@ -1879,7 +1887,7 @@ msgstr "" "verrou est actuellement verrouillé, renvoie ``False`` ; autrement verrouille " "le verrou et renvoie ``True``." -#: ../Doc/library/multiprocessing.rst:1238 +#: ../Doc/library/multiprocessing.rst:1245 msgid "" "When invoked with a positive, floating-point value for *timeout*, block for " "at most the number of seconds specified by *timeout* as long as the lock can " @@ -1903,7 +1911,7 @@ msgstr "" "alors ignoré. Renvoie ``True`` si le verrou a été acquis et ``False`` si le " "temps de *timeout* a expiré." -#: ../Doc/library/multiprocessing.rst:1253 +#: ../Doc/library/multiprocessing.rst:1260 msgid "" "Release a lock. This can be called from any process or thread, not only the " "process or thread which originally acquired the lock." @@ -1912,7 +1920,7 @@ msgstr "" "fil d'exécution, pas uniquement le processus ou le fil qui a acquis le " "verrou à l'origine." -#: ../Doc/library/multiprocessing.rst:1256 +#: ../Doc/library/multiprocessing.rst:1263 msgid "" "Behavior is the same as in :meth:`threading.Lock.release` except that when " "invoked on an unlocked lock, a :exc:`ValueError` is raised." @@ -1921,7 +1929,7 @@ msgstr "" "lorsque la méthode est appelée sur un verrou déverrouillé, une :exc:" "`ValueError` est levée." -#: ../Doc/library/multiprocessing.rst:1262 +#: ../Doc/library/multiprocessing.rst:1269 msgid "" "A recursive lock object: a close analog of :class:`threading.RLock`. A " "recursive lock must be released by the process or thread that acquired it. " @@ -1935,7 +1943,7 @@ msgstr "" "même processus/fil peut l'acquérir à nouveau sans bloquer ; le processus/fil " "doit le libérer autant de fois qu'il l'acquiert." -#: ../Doc/library/multiprocessing.rst:1268 +#: ../Doc/library/multiprocessing.rst:1275 msgid "" "Note that :class:`RLock` is actually a factory function which returns an " "instance of ``multiprocessing.synchronize.RLock`` initialized with a default " @@ -1945,7 +1953,7 @@ msgstr "" "instance de ``multiprocessing.synchronize.RLock`` initialisée avec un " "contexte par défaut." -#: ../Doc/library/multiprocessing.rst:1272 +#: ../Doc/library/multiprocessing.rst:1279 msgid "" ":class:`RLock` supports the :term:`context manager` protocol and thus may be " "used in :keyword:`with` statements." @@ -1953,7 +1961,7 @@ msgstr "" ":class:`RLock` supporte le protocole :term:`context manager` et peut ainsi " "être utilisée avec une instruction :keyword:`with`." -#: ../Doc/library/multiprocessing.rst:1280 +#: ../Doc/library/multiprocessing.rst:1287 msgid "" "When invoked with the *block* argument set to ``True``, block until the lock " "is in an unlocked state (not owned by any process or thread) unless the lock " @@ -1974,7 +1982,7 @@ msgstr "" "le comportement de ce premier argument comparé à l'implémentation de :meth:" "`threading.RLock.acquire`, à commencer par le nom de l'argument lui-même." -#: ../Doc/library/multiprocessing.rst:1290 +#: ../Doc/library/multiprocessing.rst:1297 msgid "" "When invoked with the *block* argument set to ``False``, do not block. If " "the lock has already been acquired (and thus is owned) by another process or " @@ -1991,7 +1999,7 @@ msgstr "" "à ``False``. Si le verrou est déverrouillé, le processus/fil courant en " "prend possession et incrémente son niveau de récursion, renvoyant ``True``." -#: ../Doc/library/multiprocessing.rst:1298 +#: ../Doc/library/multiprocessing.rst:1305 msgid "" "Use and behaviors of the *timeout* argument are the same as in :meth:`Lock." "acquire`. Note that some of these behaviors of *timeout* differ from the " @@ -2001,7 +2009,7 @@ msgstr "" "pour :meth:`Lock.acquire`. Notez que certains de ces comportements diffèrent " "par rapport à ceux implémentés par :meth:`threading.RLock.acquire`." -#: ../Doc/library/multiprocessing.rst:1305 +#: ../Doc/library/multiprocessing.rst:1312 msgid "" "Release a lock, decrementing the recursion level. If after the decrement " "the recursion level is zero, reset the lock to unlocked (not owned by any " @@ -2018,7 +2026,7 @@ msgstr "" "récursion est toujours strictement positif, le verrou reste verrouillé et " "propriété du processus/fil appelant." -#: ../Doc/library/multiprocessing.rst:1313 +#: ../Doc/library/multiprocessing.rst:1320 msgid "" "Only call this method when the calling process or thread owns the lock. An :" "exc:`AssertionError` is raised if this method is called by a process or " @@ -2032,11 +2040,11 @@ msgstr "" "n'est pas verrouillé (possédé). Notez que le type d'exception levé dans " "cette situation diffère du comportement de :meth:`threading.RLock.release`." -#: ../Doc/library/multiprocessing.rst:1322 +#: ../Doc/library/multiprocessing.rst:1329 msgid "A semaphore object: a close analog of :class:`threading.Semaphore`." msgstr "Un objet sémaphore, proche analogue de :class:`threading.Semaphore`." -#: ../Doc/library/multiprocessing.rst:1329 +#: ../Doc/library/multiprocessing.rst:1336 msgid "" "On Mac OS X, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with " "a timeout will emulate that function's behavior using a sleeping loop." @@ -2045,7 +2053,7 @@ msgstr "" "``acquire()`` avec un temps d'exécution limité émulera le comportement de " "cette fonction en utilisant une boucle d'attente." -#: ../Doc/library/multiprocessing.rst:1334 +#: ../Doc/library/multiprocessing.rst:1341 msgid "" "If the SIGINT signal generated by :kbd:`Ctrl-C` arrives while the main " "thread is blocked by a call to :meth:`BoundedSemaphore.acquire`, :meth:`Lock." @@ -2059,7 +2067,7 @@ msgstr "" "acquire`, :meth:`Condition.acquire` ou :meth:`Condition.wait`, l'appel sera " "immédiatement interrompu et une :exc:`KeyboardInterrupt` sera levée." -#: ../Doc/library/multiprocessing.rst:1340 +#: ../Doc/library/multiprocessing.rst:1347 msgid "" "This differs from the behaviour of :mod:`threading` where SIGINT will be " "ignored while the equivalent blocking calls are in progress." @@ -2067,7 +2075,7 @@ msgstr "" "Cela diffère du comportement de :mod:`threading` où le *SIGINT* est ignoré " "tant que les appels bloquants sont en cours." -#: ../Doc/library/multiprocessing.rst:1345 +#: ../Doc/library/multiprocessing.rst:1352 msgid "" "Some of this package's functionality requires a functioning shared semaphore " "implementation on the host operating system. Without one, the :mod:" @@ -2081,11 +2089,11 @@ msgstr "" "de l'importer lèveront une :exc:`ImportError`. Voir :issue:`3770` pour plus " "d'informations." -#: ../Doc/library/multiprocessing.rst:1353 +#: ../Doc/library/multiprocessing.rst:1360 msgid "Shared :mod:`ctypes` Objects" msgstr "Objets :mod:`ctypes` partagés" -#: ../Doc/library/multiprocessing.rst:1355 +#: ../Doc/library/multiprocessing.rst:1362 msgid "" "It is possible to create shared objects using shared memory which can be " "inherited by child processes." @@ -2093,7 +2101,7 @@ msgstr "" "Il est possible de créer des objets partagés utilisant une mémoire partagée " "pouvant être héritée par les processus enfants." -#: ../Doc/library/multiprocessing.rst:1360 +#: ../Doc/library/multiprocessing.rst:1367 msgid "" "Return a :mod:`ctypes` object allocated from shared memory. By default the " "return value is actually a synchronized wrapper for the object. The object " @@ -2104,8 +2112,8 @@ msgstr "" "L'objet en lui-même est accessible par l'attribut *value* de l'une :class:" "`Value`." -#: ../Doc/library/multiprocessing.rst:1364 -#: ../Doc/library/multiprocessing.rst:1451 +#: ../Doc/library/multiprocessing.rst:1371 +#: ../Doc/library/multiprocessing.rst:1458 msgid "" "*typecode_or_type* determines the type of the returned object: it is either " "a ctypes type or a one character typecode of the kind used by the :mod:" @@ -2115,7 +2123,7 @@ msgstr "" "d'un type *ctype* soit d'un caractère *typecode* tel qu'utilisé par le " "module :mod:`array`. *\\*args* est passé au constructeur de ce type." -#: ../Doc/library/multiprocessing.rst:1368 +#: ../Doc/library/multiprocessing.rst:1375 msgid "" "If *lock* is ``True`` (the default) then a new recursive lock object is " "created to synchronize access to the value. If *lock* is a :class:`Lock` " @@ -2131,7 +2139,7 @@ msgstr "" "automatiquement protégé par un verrou, donc il ne sera pas forcément " "« *process-safe* »" -#: ../Doc/library/multiprocessing.rst:1375 +#: ../Doc/library/multiprocessing.rst:1382 msgid "" "Operations like ``+=`` which involve a read and write are not atomic. So " "if, for instance, you want to atomically increment a shared value it is " @@ -2142,7 +2150,7 @@ msgstr "" "incrémentation atomique sur une valeur partagée, vous ne pouvez pas " "simplement faire : ::" -#: ../Doc/library/multiprocessing.rst:1381 +#: ../Doc/library/multiprocessing.rst:1388 msgid "" "Assuming the associated lock is recursive (which it is by default) you can " "instead do ::" @@ -2150,13 +2158,13 @@ msgstr "" "En supposant que le verrou associé est récursif (ce qui est le cas par " "défaut), vous pouvez à la place faire : ::" -#: ../Doc/library/multiprocessing.rst:1387 -#: ../Doc/library/multiprocessing.rst:1477 -#: ../Doc/library/multiprocessing.rst:1492 +#: ../Doc/library/multiprocessing.rst:1394 +#: ../Doc/library/multiprocessing.rst:1484 +#: ../Doc/library/multiprocessing.rst:1499 msgid "Note that *lock* is a keyword-only argument." msgstr "Notez que *lock* est un argument *keyword-only*." -#: ../Doc/library/multiprocessing.rst:1391 +#: ../Doc/library/multiprocessing.rst:1398 msgid "" "Return a ctypes array allocated from shared memory. By default the return " "value is actually a synchronized wrapper for the array." @@ -2164,7 +2172,7 @@ msgstr "" "Renvoie un tableau *ctypes* alloué depuis la mémoire partagée. Par défaut la " "valeur de retour est en fait un *wrapper* synchronisé autour du tableau." -#: ../Doc/library/multiprocessing.rst:1394 +#: ../Doc/library/multiprocessing.rst:1401 msgid "" "*typecode_or_type* determines the type of the elements of the returned " "array: it is either a ctypes type or a one character typecode of the kind " @@ -2180,7 +2188,7 @@ msgstr "" "zéros. Autrement, *size*or_initializer* est une séquence qui sera utilisée " "pour initialiser le tableau et dont la taille détermine celle du tableau." -#: ../Doc/library/multiprocessing.rst:1401 +#: ../Doc/library/multiprocessing.rst:1408 msgid "" "If *lock* is ``True`` (the default) then a new lock object is created to " "synchronize access to the value. If *lock* is a :class:`Lock` or :class:" @@ -2196,11 +2204,11 @@ msgstr "" "automatiquement protégé par un verrou, donc il ne sera pas forcément " "« *process-safe* »" -#: ../Doc/library/multiprocessing.rst:1408 +#: ../Doc/library/multiprocessing.rst:1415 msgid "Note that *lock* is a keyword only argument." msgstr "Notez que *lock* est un argument *keyword-only*." -#: ../Doc/library/multiprocessing.rst:1410 +#: ../Doc/library/multiprocessing.rst:1417 msgid "" "Note that an array of :data:`ctypes.c_char` has *value* and *raw* attributes " "which allow one to use it to store and retrieve strings." @@ -2209,11 +2217,11 @@ msgstr "" "*raw* qui permettent de l'utiliser pour stocker et récupérer des chaînes de " "caractères." -#: ../Doc/library/multiprocessing.rst:1415 +#: ../Doc/library/multiprocessing.rst:1422 msgid "The :mod:`multiprocessing.sharedctypes` module" msgstr "Le module :mod:`multiprocessing.sharedctypes`" -#: ../Doc/library/multiprocessing.rst:1420 +#: ../Doc/library/multiprocessing.rst:1427 msgid "" "The :mod:`multiprocessing.sharedctypes` module provides functions for " "allocating :mod:`ctypes` objects from shared memory which can be inherited " @@ -2223,7 +2231,7 @@ msgstr "" "allouer des objets :mod:`ctypes` depuis la mémoire partagée, qui peuvent " "être hérités par les processus fils." -#: ../Doc/library/multiprocessing.rst:1426 +#: ../Doc/library/multiprocessing.rst:1433 msgid "" "Although it is possible to store a pointer in shared memory remember that " "this will refer to a location in the address space of a specific process. " @@ -2237,11 +2245,11 @@ msgstr "" "le contexte d'un second processus et déréférencer le pointeur depuis ce " "second processus pourrait causer un crash." -#: ../Doc/library/multiprocessing.rst:1434 +#: ../Doc/library/multiprocessing.rst:1441 msgid "Return a ctypes array allocated from shared memory." msgstr "Renvoie un tableau *ctypes* alloué depuis la mémoire partagée." -#: ../Doc/library/multiprocessing.rst:1436 +#: ../Doc/library/multiprocessing.rst:1443 msgid "" "*typecode_or_type* determines the type of the elements of the returned " "array: it is either a ctypes type or a one character typecode of the kind " @@ -2258,7 +2266,7 @@ msgstr "" "*size*or_initializer* est une séquence qui sera utilisée pour initialiser le " "tableau et dont la taille détermine celle du tableau." -#: ../Doc/library/multiprocessing.rst:1443 +#: ../Doc/library/multiprocessing.rst:1450 msgid "" "Note that setting and getting an element is potentially non-atomic -- use :" "func:`Array` instead to make sure that access is automatically synchronized " @@ -2268,11 +2276,11 @@ msgstr "" "-- utilisez plutôt :func:`Array` pour vous assurer de synchroniser " "automatiquement avec un verrou." -#: ../Doc/library/multiprocessing.rst:1449 +#: ../Doc/library/multiprocessing.rst:1456 msgid "Return a ctypes object allocated from shared memory." msgstr "Renvoie un objet *ctypes* alloué depuis la mémoire partagée." -#: ../Doc/library/multiprocessing.rst:1455 +#: ../Doc/library/multiprocessing.rst:1462 msgid "" "Note that setting and getting the value is potentially non-atomic -- use :" "func:`Value` instead to make sure that access is automatically synchronized " @@ -2282,7 +2290,7 @@ msgstr "" "-- utilisez plutôt :func:`Value` pour vous assurer de synchroniser " "automatiquement avec un verrou." -#: ../Doc/library/multiprocessing.rst:1459 +#: ../Doc/library/multiprocessing.rst:1466 msgid "" "Note that an array of :data:`ctypes.c_char` has ``value`` and ``raw`` " "attributes which allow one to use it to store and retrieve strings -- see " @@ -2292,7 +2300,7 @@ msgstr "" "*raw* qui permettent de l'utiliser pour stocker et récupérer des chaînes de " "caractères -- voir la documentation de :mod:`ctypes`." -#: ../Doc/library/multiprocessing.rst:1465 +#: ../Doc/library/multiprocessing.rst:1472 msgid "" "The same as :func:`RawArray` except that depending on the value of *lock* a " "process-safe synchronization wrapper may be returned instead of a raw ctypes " @@ -2302,8 +2310,8 @@ msgstr "" "un *wrapper* de synchronisation *process-safe* pourra être renvoyé à la " "place d'un tableau *ctypes* brut." -#: ../Doc/library/multiprocessing.rst:1469 -#: ../Doc/library/multiprocessing.rst:1485 +#: ../Doc/library/multiprocessing.rst:1476 +#: ../Doc/library/multiprocessing.rst:1492 msgid "" "If *lock* is ``True`` (the default) then a new lock object is created to " "synchronize access to the value. If *lock* is a :class:`~multiprocessing." @@ -2319,7 +2327,7 @@ msgstr "" "l'accès à l'objet renvoyé ne sera pas automatiquement protégé par un verrou, " "donc il ne sera pas forcément « *process-safe* »" -#: ../Doc/library/multiprocessing.rst:1481 +#: ../Doc/library/multiprocessing.rst:1488 msgid "" "The same as :func:`RawValue` except that depending on the value of *lock* a " "process-safe synchronization wrapper may be returned instead of a raw ctypes " @@ -2329,7 +2337,7 @@ msgstr "" "un *wrapper* de synchronisation *process-safe* pourra être renvoyé à la " "place d'un objet *ctypes* brut." -#: ../Doc/library/multiprocessing.rst:1496 +#: ../Doc/library/multiprocessing.rst:1503 msgid "" "Return a ctypes object allocated from shared memory which is a copy of the " "ctypes object *obj*." @@ -2337,7 +2345,7 @@ msgstr "" "Renvoie un objet *ctypes* alloué depuis la mémoire partagée, qui est une " "copie de l'objet *ctypes* *obj*." -#: ../Doc/library/multiprocessing.rst:1501 +#: ../Doc/library/multiprocessing.rst:1508 msgid "" "Return a process-safe wrapper object for a ctypes object which uses *lock* " "to synchronize access. If *lock* is ``None`` (the default) then a :class:" @@ -2347,7 +2355,7 @@ msgstr "" "*lock* pour synchroniser l'accès. Si *lock* est ``None`` (par défaut), un " "objet :class:`multiprocessing.RLock` est créé automatiquement." -#: ../Doc/library/multiprocessing.rst:1505 +#: ../Doc/library/multiprocessing.rst:1512 msgid "" "A synchronized wrapper will have two methods in addition to those of the " "object it wraps: :meth:`get_obj` returns the wrapped object and :meth:" @@ -2357,7 +2365,7 @@ msgstr "" "qu'il enveloppe : :meth:`get_obj` renvoie l'objet *wrappé* et :meth:" "`get_lock` renvoie le verrou utilisé pour la synchronisation." -#: ../Doc/library/multiprocessing.rst:1509 +#: ../Doc/library/multiprocessing.rst:1516 msgid "" "Note that accessing the ctypes object through the wrapper can be a lot " "slower than accessing the raw ctypes object." @@ -2365,12 +2373,12 @@ msgstr "" "Notez qu'accéder à l'objet *ctypes* à travers le *wrapper* peut s'avérer " "beaucoup plus lent qu'accéder directement à l'objet *ctypes* brut." -#: ../Doc/library/multiprocessing.rst:1512 +#: ../Doc/library/multiprocessing.rst:1519 msgid "Synchronized objects support the :term:`context manager` protocol." msgstr "" "Les objets synchronisés supportent le protocole :term:`context manager`." -#: ../Doc/library/multiprocessing.rst:1516 +#: ../Doc/library/multiprocessing.rst:1523 msgid "" "The table below compares the syntax for creating shared ctypes objects from " "shared memory with the normal ctypes syntax. (In the table ``MyStruct`` is " @@ -2381,63 +2389,63 @@ msgstr "" "le tableau, ``MyStruct`` est une sous-classe quelconque de :class:`ctypes." "Structure`.)" -#: ../Doc/library/multiprocessing.rst:1521 +#: ../Doc/library/multiprocessing.rst:1528 msgid "ctypes" msgstr "ctypes" -#: ../Doc/library/multiprocessing.rst:1521 +#: ../Doc/library/multiprocessing.rst:1528 msgid "sharedctypes using type" msgstr "*sharedctypes* utilisant un type" -#: ../Doc/library/multiprocessing.rst:1521 +#: ../Doc/library/multiprocessing.rst:1528 msgid "sharedctypes using typecode" msgstr "*sharedctypes* utilisant un *typecode*" -#: ../Doc/library/multiprocessing.rst:1523 +#: ../Doc/library/multiprocessing.rst:1530 msgid "c_double(2.4)" msgstr "c_double(2.4)" -#: ../Doc/library/multiprocessing.rst:1523 +#: ../Doc/library/multiprocessing.rst:1530 msgid "RawValue(c_double, 2.4)" msgstr "RawValue(c_double, 2.4)" -#: ../Doc/library/multiprocessing.rst:1523 +#: ../Doc/library/multiprocessing.rst:1530 msgid "RawValue('d', 2.4)" msgstr "RawValue('d', 2.4)" -#: ../Doc/library/multiprocessing.rst:1524 +#: ../Doc/library/multiprocessing.rst:1531 msgid "MyStruct(4, 6)" msgstr "MyStruct(4, 6)" -#: ../Doc/library/multiprocessing.rst:1524 +#: ../Doc/library/multiprocessing.rst:1531 msgid "RawValue(MyStruct, 4, 6)" msgstr "RawValue(MyStruct, 4, 6)" -#: ../Doc/library/multiprocessing.rst:1525 +#: ../Doc/library/multiprocessing.rst:1532 msgid "(c_short * 7)()" msgstr "(c_short * 7)()" -#: ../Doc/library/multiprocessing.rst:1525 +#: ../Doc/library/multiprocessing.rst:1532 msgid "RawArray(c_short, 7)" msgstr "RawArray(c_short, 7)" -#: ../Doc/library/multiprocessing.rst:1525 +#: ../Doc/library/multiprocessing.rst:1532 msgid "RawArray('h', 7)" msgstr "RawArray('h', 7)" -#: ../Doc/library/multiprocessing.rst:1526 +#: ../Doc/library/multiprocessing.rst:1533 msgid "(c_int * 3)(9, 2, 8)" msgstr "(c_int * 3)(9, 2, 8)" -#: ../Doc/library/multiprocessing.rst:1526 +#: ../Doc/library/multiprocessing.rst:1533 msgid "RawArray(c_int, (9, 2, 8))" msgstr "RawArray(c_int, (9, 2, 8))" -#: ../Doc/library/multiprocessing.rst:1526 +#: ../Doc/library/multiprocessing.rst:1533 msgid "RawArray('i', (9, 2, 8))" msgstr "RawArray('i', (9, 2, 8))" -#: ../Doc/library/multiprocessing.rst:1530 +#: ../Doc/library/multiprocessing.rst:1537 msgid "" "Below is an example where a number of ctypes objects are modified by a child " "process::" @@ -2445,15 +2453,15 @@ msgstr "" "Ci-dessous un exemple où des objets *ctypes* sont modifiés par un processus " "fils ::" -#: ../Doc/library/multiprocessing.rst:1568 +#: ../Doc/library/multiprocessing.rst:1575 msgid "The results printed are ::" msgstr "Les résultats affichés sont ::" -#: ../Doc/library/multiprocessing.rst:1581 +#: ../Doc/library/multiprocessing.rst:1588 msgid "Managers" msgstr "Gestionnaires" -#: ../Doc/library/multiprocessing.rst:1583 +#: ../Doc/library/multiprocessing.rst:1590 msgid "" "Managers provide a way to create data which can be shared between different " "processes, including sharing over a network between processes running on " @@ -2468,7 +2476,7 @@ msgstr "" "Les autres processus peuvent accéder aux objets partagés à l'aide de " "mandataires." -#: ../Doc/library/multiprocessing.rst:1591 +#: ../Doc/library/multiprocessing.rst:1598 msgid "" "Returns a started :class:`~multiprocessing.managers.SyncManager` object " "which can be used for sharing objects between processes. The returned " @@ -2481,7 +2489,7 @@ msgstr "" "des méthodes pour créer des objets partagés et renvoyer les mandataires " "correspondants." -#: ../Doc/library/multiprocessing.rst:1599 +#: ../Doc/library/multiprocessing.rst:1606 msgid "" "Manager processes will be shutdown as soon as they are garbage collected or " "their parent process exits. The manager classes are defined in the :mod:" @@ -2491,11 +2499,11 @@ msgstr "" "le ramasse-miettes ou que leur processus parent se terminera. Les classes " "gestionnaires sont définies dans le module :mod:`multiprocessing.managers` :" -#: ../Doc/library/multiprocessing.rst:1605 +#: ../Doc/library/multiprocessing.rst:1612 msgid "Create a BaseManager object." msgstr "Crée un objet *BaseManager*." -#: ../Doc/library/multiprocessing.rst:1607 +#: ../Doc/library/multiprocessing.rst:1614 msgid "" "Once created one should call :meth:`start` or ``get_server()." "serve_forever()`` to ensure that the manager object refers to a started " @@ -2505,7 +2513,7 @@ msgstr "" "serve_forever()`` pour assurer que l'objet gestionnaire référence un " "processus gestionnaire démarré." -#: ../Doc/library/multiprocessing.rst:1610 +#: ../Doc/library/multiprocessing.rst:1617 msgid "" "*address* is the address on which the manager process listens for new " "connections. If *address* is ``None`` then an arbitrary one is chosen." @@ -2514,7 +2522,7 @@ msgstr "" "de nouvelles connexions. Si *address* est ``None``, une adresse arbitraire " "est choisie." -#: ../Doc/library/multiprocessing.rst:1613 +#: ../Doc/library/multiprocessing.rst:1620 msgid "" "*authkey* is the authentication key which will be used to check the validity " "of incoming connections to the server process. If *authkey* is ``None`` " @@ -2526,7 +2534,7 @@ msgstr "" "``None`` alors ``current_process().authkey`` est utilisée. Autrement " "*authkey* est utilisée et doit être une chaîne d'octets." -#: ../Doc/library/multiprocessing.rst:1620 +#: ../Doc/library/multiprocessing.rst:1627 msgid "" "Start a subprocess to start the manager. If *initializer* is not ``None`` " "then the subprocess will call ``initializer(*initargs)`` when it starts." @@ -2535,7 +2543,7 @@ msgstr "" "n'est pas ``None`` alors le sous-processus appellera " "``initializer(*initargs)`` quand il démarrera." -#: ../Doc/library/multiprocessing.rst:1625 +#: ../Doc/library/multiprocessing.rst:1632 msgid "" "Returns a :class:`Server` object which represents the actual server under " "the control of the Manager. The :class:`Server` object supports the :meth:" @@ -2545,16 +2553,16 @@ msgstr "" "du gestionnaire. L'objet :class:`Server` supporte la méthode :meth:" "`serve_forever` ::" -#: ../Doc/library/multiprocessing.rst:1634 +#: ../Doc/library/multiprocessing.rst:1641 msgid ":class:`Server` additionally has an :attr:`address` attribute." msgstr ":class:`Server` possède en plus un attribut :attr:`address`." -#: ../Doc/library/multiprocessing.rst:1638 +#: ../Doc/library/multiprocessing.rst:1645 msgid "Connect a local manager object to a remote manager process::" msgstr "" "Connecte un objet gestionnaire local au processus gestionnaire distant ::" -#: ../Doc/library/multiprocessing.rst:1646 +#: ../Doc/library/multiprocessing.rst:1653 msgid "" "Stop the process used by the manager. This is only available if :meth:" "`start` has been used to start the server process." @@ -2563,11 +2571,11 @@ msgstr "" "uniquement si :meth:`start` a été utilisée pour démarrer le processus " "serveur." -#: ../Doc/library/multiprocessing.rst:1649 +#: ../Doc/library/multiprocessing.rst:1656 msgid "This can be called multiple times." msgstr "Cette méthode peut être appelée plusieurs fois." -#: ../Doc/library/multiprocessing.rst:1653 +#: ../Doc/library/multiprocessing.rst:1660 msgid "" "A classmethod which can be used for registering a type or callable with the " "manager class." @@ -2575,7 +2583,7 @@ msgstr "" "Une méthode de classe qui peut être utilisée pour enregistrer un type ou un " "appelable avec la classe gestionnaire." -#: ../Doc/library/multiprocessing.rst:1656 +#: ../Doc/library/multiprocessing.rst:1663 msgid "" "*typeid* is a \"type identifier\" which is used to identify a particular " "type of shared object. This must be a string." @@ -2583,7 +2591,7 @@ msgstr "" "*typeif* est un « *type identifier* » qui est utilisé pour identifier un " "type particulier d'objet partagé. Cela doit être une chaîne de caractères." -#: ../Doc/library/multiprocessing.rst:1659 +#: ../Doc/library/multiprocessing.rst:1666 msgid "" "*callable* is a callable used for creating objects for this type " "identifier. If a manager instance will be connected to the server using " @@ -2596,7 +2604,7 @@ msgstr "" "*create_method* vaut ``False`` alors cet argument peut être laissé à " "``None``." -#: ../Doc/library/multiprocessing.rst:1665 +#: ../Doc/library/multiprocessing.rst:1672 msgid "" "*proxytype* is a subclass of :class:`BaseProxy` which is used to create " "proxies for shared objects with this *typeid*. If ``None`` then a proxy " @@ -2606,7 +2614,7 @@ msgstr "" "des mandataires autour des objets partagés avec ce *typeid*. S'il est " "``None``, une classe mandataire sera créée automatiquement." -#: ../Doc/library/multiprocessing.rst:1669 +#: ../Doc/library/multiprocessing.rst:1676 msgid "" "*exposed* is used to specify a sequence of method names which proxies for " "this typeid should be allowed to access using :meth:`BaseProxy." @@ -2625,7 +2633,7 @@ msgstr "" "quel attribut qui possède une méthode :meth:`~object.__call__` et dont le " "nom ne commence pas par un ``'_'``.)" -#: ../Doc/library/multiprocessing.rst:1678 +#: ../Doc/library/multiprocessing.rst:1685 msgid "" "*method_to_typeid* is a mapping used to specify the return type of those " "exposed methods which should return a proxy. It maps method names to typeid " @@ -2642,7 +2650,7 @@ msgstr "" "de ce tableau associatif ou si la valeur associée est ``None``, l'objet " "renvoyé par la méthode sera une copie de la valeur." -#: ../Doc/library/multiprocessing.rst:1685 +#: ../Doc/library/multiprocessing.rst:1692 msgid "" "*create_method* determines whether a method should be created with name " "*typeid* which can be used to tell the server process to create a new shared " @@ -2653,17 +2661,17 @@ msgstr "" "un nouvel objet partagé et d'en renvoyer un mandataire. a valeur par défaut " "est ``True``." -#: ../Doc/library/multiprocessing.rst:1689 +#: ../Doc/library/multiprocessing.rst:1696 msgid ":class:`BaseManager` instances also have one read-only property:" msgstr "" "Les instances de :class:`BaseManager` ont aussi une propriété en lecture " "seule :" -#: ../Doc/library/multiprocessing.rst:1693 +#: ../Doc/library/multiprocessing.rst:1700 msgid "The address used by the manager." msgstr "L'adresse utilisée par le gestionnaire." -#: ../Doc/library/multiprocessing.rst:1695 +#: ../Doc/library/multiprocessing.rst:1702 msgid "" "Manager objects support the context management protocol -- see :ref:" "`typecontextmanager`. :meth:`~contextmanager.__enter__` starts the server " @@ -2676,7 +2684,7 @@ msgstr "" "renvoie l'objet gestionnaire. :meth:`~contextmanager.__exit__` appelle :meth:" "`shutdown`." -#: ../Doc/library/multiprocessing.rst:1701 +#: ../Doc/library/multiprocessing.rst:1708 msgid "" "In previous versions :meth:`~contextmanager.__enter__` did not start the " "manager's server process if it was not already started." @@ -2684,7 +2692,7 @@ msgstr "" "Dans les versions précédentes :meth:`~contextmanager.__enter__` ne démarrait " "pas le processus serveur du gestionnaire s'il n'était pas déjà démarré." -#: ../Doc/library/multiprocessing.rst:1706 +#: ../Doc/library/multiprocessing.rst:1713 msgid "" "A subclass of :class:`BaseManager` which can be used for the synchronization " "of processes. Objects of this type are returned by :func:`multiprocessing." @@ -2694,7 +2702,7 @@ msgstr "" "synchronisation entre processus. Des objets de ce type sont renvoyés par :" "func:`multiprocessing.Manager`." -#: ../Doc/library/multiprocessing.rst:1710 +#: ../Doc/library/multiprocessing.rst:1717 msgid "" "Its methods create and return :ref:`multiprocessing-proxy_objects` for a " "number of commonly used data types to be synchronized across processes. This " @@ -2705,14 +2713,14 @@ msgstr "" "synchronisés entre les processus. Elles incluent notamment des listes et " "dictionnaires partagés." -#: ../Doc/library/multiprocessing.rst:1716 +#: ../Doc/library/multiprocessing.rst:1723 msgid "" "Create a shared :class:`threading.Barrier` object and return a proxy for it." msgstr "" "Crée un objet :class:`threading.Barrier` partagé et renvoie un mandataire " "pour cet objet." -#: ../Doc/library/multiprocessing.rst:1723 +#: ../Doc/library/multiprocessing.rst:1730 msgid "" "Create a shared :class:`threading.BoundedSemaphore` object and return a " "proxy for it." @@ -2720,7 +2728,7 @@ msgstr "" "Crée un objet :class:`threading.BoundedSemaphore` partagé et renvoie un " "mandataire pour cet objet." -#: ../Doc/library/multiprocessing.rst:1728 +#: ../Doc/library/multiprocessing.rst:1735 msgid "" "Create a shared :class:`threading.Condition` object and return a proxy for " "it." @@ -2728,7 +2736,7 @@ msgstr "" "Crée un objet :class:`threading.Condition` partagé et renvoie un mandataire " "pour cet objet." -#: ../Doc/library/multiprocessing.rst:1731 +#: ../Doc/library/multiprocessing.rst:1738 msgid "" "If *lock* is supplied then it should be a proxy for a :class:`threading." "Lock` or :class:`threading.RLock` object." @@ -2736,40 +2744,40 @@ msgstr "" "Si *lock* est fourni alors il doit être un mandataire pour un objet :class:" "`threading.Lock` ou :class:`threading.RLock`." -#: ../Doc/library/multiprocessing.rst:1739 +#: ../Doc/library/multiprocessing.rst:1746 msgid "" "Create a shared :class:`threading.Event` object and return a proxy for it." msgstr "" "Crée un objet :class:`threading.Event` partagé et renvoie un mandataire pour " "cet objet." -#: ../Doc/library/multiprocessing.rst:1743 +#: ../Doc/library/multiprocessing.rst:1750 msgid "" "Create a shared :class:`threading.Lock` object and return a proxy for it." msgstr "" "Crée un objet :class:`threading.Lock` partagé et renvoie un mandataire pour " "cet objet." -#: ../Doc/library/multiprocessing.rst:1747 +#: ../Doc/library/multiprocessing.rst:1754 msgid "Create a shared :class:`Namespace` object and return a proxy for it." msgstr "" "Crée un objet :class:`Namespace` partagé et renvoie un mandataire pour cet " "objet." -#: ../Doc/library/multiprocessing.rst:1751 +#: ../Doc/library/multiprocessing.rst:1758 msgid "Create a shared :class:`queue.Queue` object and return a proxy for it." msgstr "" "Crée un objet :class:`queue.Queue` partagé et renvoie un mandataire pour cet " "objet." -#: ../Doc/library/multiprocessing.rst:1755 +#: ../Doc/library/multiprocessing.rst:1762 msgid "" "Create a shared :class:`threading.RLock` object and return a proxy for it." msgstr "" "Crée un objet :class:`threading.RLock` partagé et renvoie un mandataire pour " "cet objet." -#: ../Doc/library/multiprocessing.rst:1759 +#: ../Doc/library/multiprocessing.rst:1766 msgid "" "Create a shared :class:`threading.Semaphore` object and return a proxy for " "it." @@ -2777,11 +2785,11 @@ msgstr "" "Crée un objet :class:`threading.Semaphore` partagé et renvoie un mandataire " "pour cet objet." -#: ../Doc/library/multiprocessing.rst:1764 +#: ../Doc/library/multiprocessing.rst:1771 msgid "Create an array and return a proxy for it." msgstr "Crée un tableau et renvoie un mandataire pour cet objet." -#: ../Doc/library/multiprocessing.rst:1768 +#: ../Doc/library/multiprocessing.rst:1775 msgid "" "Create an object with a writable ``value`` attribute and return a proxy for " "it." @@ -2789,17 +2797,17 @@ msgstr "" "Crée un objet avec un attribut ``value`` accessible en écriture et renvoie " "un mandataire pour cet objet." -#: ../Doc/library/multiprocessing.rst:1775 +#: ../Doc/library/multiprocessing.rst:1782 msgid "Create a shared :class:`dict` object and return a proxy for it." msgstr "" "Crée un objet :class:`dict` partagé et renvoie un mandataire pour cet objet." -#: ../Doc/library/multiprocessing.rst:1780 +#: ../Doc/library/multiprocessing.rst:1787 msgid "Create a shared :class:`list` object and return a proxy for it." msgstr "" "Crée un objet :class:`list` partagé et renvoie un mandataire pour cet objet." -#: ../Doc/library/multiprocessing.rst:1782 +#: ../Doc/library/multiprocessing.rst:1789 msgid "" "Shared objects are capable of being nested. For example, a shared container " "object such as a shared list can contain other shared objects which will all " @@ -2809,11 +2817,11 @@ msgstr "" "partagé tel qu'une liste partagée peu contenir d'autres objets partagés qui " "seront aussi gérés et synchronisés par le :class:`SyncManager`." -#: ../Doc/library/multiprocessing.rst:1789 +#: ../Doc/library/multiprocessing.rst:1796 msgid "A type that can register with :class:`SyncManager`." msgstr "Un type qui peut être enregistré avec :class:`SyncManager`." -#: ../Doc/library/multiprocessing.rst:1791 +#: ../Doc/library/multiprocessing.rst:1798 msgid "" "A namespace object has no public methods, but does have writable attributes. " "Its representation shows the values of its attributes." @@ -2822,7 +2830,7 @@ msgstr "" "accessibles en écriture. Sa représentation montre les valeurs de ses " "attributs." -#: ../Doc/library/multiprocessing.rst:1794 +#: ../Doc/library/multiprocessing.rst:1801 msgid "" "However, when using a proxy for a namespace object, an attribute beginning " "with ``'_'`` will be an attribute of the proxy and not an attribute of the " @@ -2831,11 +2839,11 @@ msgstr "" "Cependant, en utilisant un mandataire pour un espace de nom, un attribut " "débutant par ``'_'`` sera un attribut du mandataire et non de l'objet cible." -#: ../Doc/library/multiprocessing.rst:1810 +#: ../Doc/library/multiprocessing.rst:1817 msgid "Customized managers" msgstr "Gestionnaires personnalisés" -#: ../Doc/library/multiprocessing.rst:1812 +#: ../Doc/library/multiprocessing.rst:1819 msgid "" "To create one's own manager, one creates a subclass of :class:`BaseManager` " "and uses the :meth:`~BaseManager.register` classmethod to register new types " @@ -2846,11 +2854,11 @@ msgstr "" "pour enregistrer de nouveaux types ou *callables* au gestionnaire. Par " "exemple ::" -#: ../Doc/library/multiprocessing.rst:1837 +#: ../Doc/library/multiprocessing.rst:1844 msgid "Using a remote manager" msgstr "Utiliser un gestionnaire distant" -#: ../Doc/library/multiprocessing.rst:1839 +#: ../Doc/library/multiprocessing.rst:1846 msgid "" "It is possible to run a manager server on one machine and have clients use " "it from other machines (assuming that the firewalls involved allow it)." @@ -2859,7 +2867,7 @@ msgstr "" "des clients l'utilisant sur d'autres machines (en supposant que les pare-" "feus impliqués l'autorisent)." -#: ../Doc/library/multiprocessing.rst:1842 +#: ../Doc/library/multiprocessing.rst:1849 msgid "" "Running the following commands creates a server for a single shared queue " "which remote clients can access::" @@ -2867,15 +2875,15 @@ msgstr "" "Exécuter les commandes suivantes crée un serveur pour une simple queue " "partagée à laquelle des clients distants peuvent accéder ::" -#: ../Doc/library/multiprocessing.rst:1854 +#: ../Doc/library/multiprocessing.rst:1861 msgid "One client can access the server as follows::" msgstr "Un client peut accéder au serveur comme suit ::" -#: ../Doc/library/multiprocessing.rst:1864 +#: ../Doc/library/multiprocessing.rst:1871 msgid "Another client can also use it::" msgstr "Un autre client peut aussi l'utiliser ::" -#: ../Doc/library/multiprocessing.rst:1875 +#: ../Doc/library/multiprocessing.rst:1882 msgid "" "Local processes can also access that queue, using the code from above on the " "client to access it remotely::" @@ -2883,11 +2891,11 @@ msgstr "" "Les processus locaux peuvent aussi accéder à cette queue, utilisant le code " "précédent sur le client pour y accéder à distance ::" -#: ../Doc/library/multiprocessing.rst:1900 +#: ../Doc/library/multiprocessing.rst:1907 msgid "Proxy Objects" msgstr "Objets mandataires" -#: ../Doc/library/multiprocessing.rst:1902 +#: ../Doc/library/multiprocessing.rst:1909 msgid "" "A proxy is an object which *refers* to a shared object which lives " "(presumably) in a different process. The shared object is said to be the " @@ -2898,7 +2906,7 @@ msgstr "" "*référent* du mandataire. Plusieurs mandataires peuvent avoir un même " "référent." -#: ../Doc/library/multiprocessing.rst:1906 +#: ../Doc/library/multiprocessing.rst:1913 msgid "" "A proxy object has methods which invoke corresponding methods of its " "referent (although not every method of the referent will necessarily be " @@ -2910,7 +2918,7 @@ msgstr "" "soient pas nécessairement accessibles à travers le mandataire). De cette " "manière, un mandataire peut être utilisé comme le serait sont référent :" -#: ../Doc/library/multiprocessing.rst:1924 +#: ../Doc/library/multiprocessing.rst:1931 msgid "" "Notice that applying :func:`str` to a proxy will return the representation " "of the referent, whereas applying :func:`repr` will return the " @@ -2919,7 +2927,7 @@ msgstr "" "Notez qu'appliquer :func:`str` à un mandataire renvoie la représentation du " "référent, alors que :func:`repr` renvoie celle du mandataire." -#: ../Doc/library/multiprocessing.rst:1928 +#: ../Doc/library/multiprocessing.rst:1935 msgid "" "An important feature of proxy objects is that they are picklable so they can " "be passed between processes. As such, a referent can contain :ref:" @@ -2932,13 +2940,13 @@ msgstr "" "d'imbriquer des listes et dictionnaires gérés ainsi que d'autres :ref:" "`multiprocessing-proxy_objects` :" -#: ../Doc/library/multiprocessing.rst:1944 +#: ../Doc/library/multiprocessing.rst:1951 msgid "Similarly, dict and list proxies may be nested inside one another::" msgstr "" "De même, les mandataires de listes et dictionnaires peuvent être imbriqués " "dans d'autres ::" -#: ../Doc/library/multiprocessing.rst:1957 +#: ../Doc/library/multiprocessing.rst:1964 msgid "" "If standard (non-proxy) :class:`list` or :class:`dict` objects are contained " "in a referent, modifications to those mutable values will not be propagated " @@ -2957,7 +2965,7 @@ msgstr "" "travers le gestionnaire et modifie effectivement l'élément, il est ainsi " "possible de réassigner la valeur modifiée au conteneur mandataire ::" -#: ../Doc/library/multiprocessing.rst:1976 +#: ../Doc/library/multiprocessing.rst:1983 msgid "" "This approach is perhaps less convenient than employing nested :ref:" "`multiprocessing-proxy_objects` for most use cases but also demonstrates a " @@ -2968,7 +2976,7 @@ msgstr "" "d'utilisation, mais démontre aussi un certain niveau de contrôle sur la " "synchronisation." -#: ../Doc/library/multiprocessing.rst:1982 +#: ../Doc/library/multiprocessing.rst:1989 msgid "" "The proxy types in :mod:`multiprocessing` do nothing to support comparisons " "by value. So, for instance, we have:" @@ -2976,40 +2984,40 @@ msgstr "" "Les types de mandataires de :mod:`multiprocessing` n'implémentent rien pour " "la comparaison par valeurs. Par exemple, on a :" -#: ../Doc/library/multiprocessing.rst:1990 +#: ../Doc/library/multiprocessing.rst:1997 msgid "" "One should just use a copy of the referent instead when making comparisons." msgstr "" "Il faut à la place simplement utiliser une copie du référent pour faire les " "comparaisons." -#: ../Doc/library/multiprocessing.rst:1994 +#: ../Doc/library/multiprocessing.rst:2001 msgid "Proxy objects are instances of subclasses of :class:`BaseProxy`." msgstr "" "Les objets mandataires sont des instances de sous-classes de :class:" "`BaseProxy`." -#: ../Doc/library/multiprocessing.rst:1998 +#: ../Doc/library/multiprocessing.rst:2005 msgid "Call and return the result of a method of the proxy's referent." msgstr "" "Appelle et renvoie le résultat d'une méthode du référent du mandataire." -#: ../Doc/library/multiprocessing.rst:2000 +#: ../Doc/library/multiprocessing.rst:2007 msgid "" "If ``proxy`` is a proxy whose referent is ``obj`` then the expression ::" msgstr "" "Si ``proxy`` est un mandataire sont le référent est ``obj``, alors " "l'expression ::" -#: ../Doc/library/multiprocessing.rst:2004 +#: ../Doc/library/multiprocessing.rst:2011 msgid "will evaluate the expression ::" msgstr "s'évalue comme ::" -#: ../Doc/library/multiprocessing.rst:2008 +#: ../Doc/library/multiprocessing.rst:2015 msgid "in the manager's process." msgstr "dans le processus du gestionnaire." -#: ../Doc/library/multiprocessing.rst:2010 +#: ../Doc/library/multiprocessing.rst:2017 msgid "" "The returned value will be a copy of the result of the call or a proxy to a " "new shared object -- see documentation for the *method_to_typeid* argument " @@ -3019,7 +3027,7 @@ msgstr "" "sur un nouvel objet partagé -- voir l'a documentation de l'argument " "*method_to_typeid* de :meth:`BaseManager.register`." -#: ../Doc/library/multiprocessing.rst:2014 +#: ../Doc/library/multiprocessing.rst:2021 msgid "" "If an exception is raised by the call, then is re-raised by :meth:" "`_callmethod`. If some other exception is raised in the manager's process " @@ -3031,7 +3039,7 @@ msgstr "" "gestionnaire, elle est convertie en une :exc:`RemoteError` et est levée par :" "meth:`_callmethod`." -#: ../Doc/library/multiprocessing.rst:2019 +#: ../Doc/library/multiprocessing.rst:2026 msgid "" "Note in particular that an exception will be raised if *methodname* has not " "been *exposed*." @@ -3039,31 +3047,31 @@ msgstr "" "Notez en particulier qu'une exception est levée si *methodname* n'est pas " "*exposée*." -#: ../Doc/library/multiprocessing.rst:2022 +#: ../Doc/library/multiprocessing.rst:2029 msgid "An example of the usage of :meth:`_callmethod`:" msgstr "Un exemple d'utilisation de :meth:`_callmethod` :" -#: ../Doc/library/multiprocessing.rst:2038 +#: ../Doc/library/multiprocessing.rst:2045 msgid "Return a copy of the referent." msgstr "Renvoie une copie du référent." -#: ../Doc/library/multiprocessing.rst:2040 +#: ../Doc/library/multiprocessing.rst:2047 msgid "If the referent is unpicklable then this will raise an exception." msgstr "Si le référent n'est pas sérialisable, une exception est levée." -#: ../Doc/library/multiprocessing.rst:2044 +#: ../Doc/library/multiprocessing.rst:2051 msgid "Return a representation of the proxy object." msgstr "Renvoie la représentation de l'objet mandataire." -#: ../Doc/library/multiprocessing.rst:2048 +#: ../Doc/library/multiprocessing.rst:2055 msgid "Return the representation of the referent." msgstr "Renvoie la représentation du référent." -#: ../Doc/library/multiprocessing.rst:2052 +#: ../Doc/library/multiprocessing.rst:2059 msgid "Cleanup" msgstr "Nettoyage" -#: ../Doc/library/multiprocessing.rst:2054 +#: ../Doc/library/multiprocessing.rst:2061 msgid "" "A proxy object uses a weakref callback so that when it gets garbage " "collected it deregisters itself from the manager which owns its referent." @@ -3072,7 +3080,7 @@ msgstr "" "que quand il est collecté par le ramasse-miettes, il se désenregistre auprès " "du gestionnaire qui possède le référent." -#: ../Doc/library/multiprocessing.rst:2057 +#: ../Doc/library/multiprocessing.rst:2064 msgid "" "A shared object gets deleted from the manager process when there are no " "longer any proxies referring to it." @@ -3080,11 +3088,11 @@ msgstr "" "Un objet partagé est supprimé par le processus gestionnaire quand plus aucun " "mandataire ne le référence." -#: ../Doc/library/multiprocessing.rst:2062 +#: ../Doc/library/multiprocessing.rst:2069 msgid "Process Pools" msgstr "Bassins de processus" -#: ../Doc/library/multiprocessing.rst:2067 +#: ../Doc/library/multiprocessing.rst:2074 msgid "" "One can create a pool of processes which will carry out tasks submitted to " "it with the :class:`Pool` class." @@ -3092,7 +3100,7 @@ msgstr "" "On peut créer un bassin de processus qui exécuteront les tâches qui lui " "seront soumises avec la classe :class:`Pool`." -#: ../Doc/library/multiprocessing.rst:2072 +#: ../Doc/library/multiprocessing.rst:2079 msgid "" "A process pool object which controls a pool of worker processes to which " "jobs can be submitted. It supports asynchronous results with timeouts and " @@ -3103,7 +3111,7 @@ msgstr "" "*timeouts* et des *callabacks* et possède une implémentation parallèle de " "*map*." -#: ../Doc/library/multiprocessing.rst:2076 +#: ../Doc/library/multiprocessing.rst:2083 msgid "" "*processes* is the number of worker processes to use. If *processes* is " "``None`` then the number returned by :func:`os.cpu_count` is used." @@ -3111,7 +3119,7 @@ msgstr "" "*processes* est le nombre de processus *workers* à utiliser. Si *processes* " "est ``None``, le nombre renvoyé par :func:`os.cpu_count` est utilisé." -#: ../Doc/library/multiprocessing.rst:2079 +#: ../Doc/library/multiprocessing.rst:2086 msgid "" "If *initializer* is not ``None`` then each worker process will call " "``initializer(*initargs)`` when it starts." @@ -3119,7 +3127,7 @@ msgstr "" "Si *initializer* n'est pas ``None``, chaque processus *worker* appellera " "``initializer(*initargs)`` en démarrant." -#: ../Doc/library/multiprocessing.rst:2082 +#: ../Doc/library/multiprocessing.rst:2089 msgid "" "*maxtasksperchild* is the number of tasks a worker process can complete " "before it will exit and be replaced with a fresh worker process, to enable " @@ -3132,7 +3140,7 @@ msgstr "" "*maxtasksperchild* est ``None``, ce qui signifie que le *worker* vit aussi " "longtemps que le bassin." -#: ../Doc/library/multiprocessing.rst:2087 +#: ../Doc/library/multiprocessing.rst:2094 msgid "" "*context* can be used to specify the context used for starting the worker " "processes. Usually a pool is created using the function :func:" @@ -3144,7 +3152,7 @@ msgstr "" "fonction :func:`multiprocessing.Pool` ou de la méthode :meth:`Pool` d'un " "objet de contexte. Dans les deux cas *context* est réglé de façon appropriée." -#: ../Doc/library/multiprocessing.rst:2093 +#: ../Doc/library/multiprocessing.rst:2100 msgid "" "Note that the methods of the pool object should only be called by the " "process which created the pool." @@ -3152,15 +3160,15 @@ msgstr "" "Notez que les méthodes de l'objet *pool* ne doivent être appelées que par le " "processus qui l'a créé." -#: ../Doc/library/multiprocessing.rst:2096 +#: ../Doc/library/multiprocessing.rst:2103 msgid "*maxtasksperchild*" msgstr "*maxtasksperchild*" -#: ../Doc/library/multiprocessing.rst:2099 +#: ../Doc/library/multiprocessing.rst:2106 msgid "*context*" msgstr "*context*" -#: ../Doc/library/multiprocessing.rst:2104 +#: ../Doc/library/multiprocessing.rst:2111 msgid "" "Worker processes within a :class:`Pool` typically live for the complete " "duration of the Pool's work queue. A frequent pattern found in other systems " @@ -3179,7 +3187,7 @@ msgstr "" "fraîchement lancé. L'argument *maxtasksperchild* de :class:`Pool` expose " "cette fonctionnalité à l'utilisateur final." -#: ../Doc/library/multiprocessing.rst:2114 +#: ../Doc/library/multiprocessing.rst:2121 msgid "" "Call *func* with arguments *args* and keyword arguments *kwds*. It blocks " "until the result is ready. Given this blocks, :meth:`apply_async` is better " @@ -3191,13 +3199,13 @@ msgstr "" "meth:`apply_async` est préférable pour exécuter du travail en parallèle. De " "plus, *func* est exécutée sur un seul des *workers* du bassin." -#: ../Doc/library/multiprocessing.rst:2121 +#: ../Doc/library/multiprocessing.rst:2128 msgid "A variant of the :meth:`apply` method which returns a result object." msgstr "" "Une variante de la méthode :meth:`apply` qui renvoie un objet résultat." -#: ../Doc/library/multiprocessing.rst:2123 -#: ../Doc/library/multiprocessing.rst:2148 +#: ../Doc/library/multiprocessing.rst:2130 +#: ../Doc/library/multiprocessing.rst:2159 msgid "" "If *callback* is specified then it should be a callable which accepts a " "single argument. When the result becomes ready *callback* is applied to it, " @@ -3209,8 +3217,8 @@ msgstr "" "résultat, si l'appel n'échoue pas auquel cas *error_callback* est appelé à " "la place." -#: ../Doc/library/multiprocessing.rst:2128 -#: ../Doc/library/multiprocessing.rst:2153 +#: ../Doc/library/multiprocessing.rst:2135 +#: ../Doc/library/multiprocessing.rst:2164 msgid "" "If *error_callback* is specified then it should be a callable which accepts " "a single argument. If the target function fails, then the *error_callback* " @@ -3220,8 +3228,8 @@ msgstr "" "accepte un seul argument. Si la fonction cible échoue, alors " "*error_callback* est appelé avec l'instance de l'exception." -#: ../Doc/library/multiprocessing.rst:2132 -#: ../Doc/library/multiprocessing.rst:2157 +#: ../Doc/library/multiprocessing.rst:2139 +#: ../Doc/library/multiprocessing.rst:2168 msgid "" "Callbacks should complete immediately since otherwise the thread which " "handles the results will get blocked." @@ -3229,7 +3237,7 @@ msgstr "" "Les *callbacks* doivent se terminer immédiatement, autrement le fil " "d'exécution qui gère les résultats se retrouverait bloqué." -#: ../Doc/library/multiprocessing.rst:2137 +#: ../Doc/library/multiprocessing.rst:2144 msgid "" "A parallel equivalent of the :func:`map` built-in function (it supports only " "one *iterable* argument though). It blocks until the result is ready." @@ -3238,7 +3246,7 @@ msgstr "" "supporte cependant qu'un *itérable* en argument). Elle bloque jusqu'à ce que " "le résultat soit prêt." -#: ../Doc/library/multiprocessing.rst:2140 +#: ../Doc/library/multiprocessing.rst:2147 msgid "" "This method chops the iterable into a number of chunks which it submits to " "the process pool as separate tasks. The (approximate) size of these chunks " @@ -3248,15 +3256,23 @@ msgstr "" "bassin de processus comme des tâches séparées. La taille (approximative) de " "ces morceaux peut être précisée en passant à *chunksize* un entier positif." -#: ../Doc/library/multiprocessing.rst:2146 +#: ../Doc/library/multiprocessing.rst:2151 +msgid "" +"Note that it may cause high memory usage for very long iterables. Consider " +"using :meth:`imap` or :meth:`imap_unordered` with explicit *chunksize* " +"option for better efficiency." +msgstr "" + +#: ../Doc/library/multiprocessing.rst:2157 msgid "A variant of the :meth:`.map` method which returns a result object." msgstr "Une variante de la méthode :meth:`.map` qui renvoie un objet résultat." -#: ../Doc/library/multiprocessing.rst:2162 -msgid "A lazier version of :meth:`map`." +#: ../Doc/library/multiprocessing.rst:2173 +#, fuzzy +msgid "A lazier version of :meth:`.map`." msgstr "Une version paresseuse de :meth:`map`." -#: ../Doc/library/multiprocessing.rst:2164 +#: ../Doc/library/multiprocessing.rst:2175 msgid "" "The *chunksize* argument is the same as the one used by the :meth:`.map` " "method. For very long iterables using a large value for *chunksize* can " @@ -3267,7 +3283,7 @@ msgstr "" "*chunksize* peut faire s'exécuter la tâche **beaucoup** plus rapidement " "qu'en utilisant la valeur par défaut de ``1``." -#: ../Doc/library/multiprocessing.rst:2169 +#: ../Doc/library/multiprocessing.rst:2180 msgid "" "Also if *chunksize* is ``1`` then the :meth:`!next` method of the iterator " "returned by the :meth:`imap` method has an optional *timeout* parameter: " @@ -3279,7 +3295,7 @@ msgstr "" "*timeout* : ``next(timeout)`` lève une :exc:`multiprocessing.TimeoutError` " "si le résultat ne peut pas être renvoyé avant *timeout* secondes." -#: ../Doc/library/multiprocessing.rst:2176 +#: ../Doc/library/multiprocessing.rst:2187 msgid "" "The same as :meth:`imap` except that the ordering of the results from the " "returned iterator should be considered arbitrary. (Only when there is only " @@ -3289,7 +3305,7 @@ msgstr "" "l'itérateur renvoyé doit être considéré comme arbitraire. (L'ordre n'est " "garanti que quand il n'y a qu'un *worker*.)" -#: ../Doc/library/multiprocessing.rst:2182 +#: ../Doc/library/multiprocessing.rst:2193 msgid "" "Like :meth:`map` except that the elements of the *iterable* are expected to " "be iterables that are unpacked as arguments." @@ -3297,7 +3313,7 @@ msgstr "" "Semblable à :meth:`map` à l'exception que les éléments d'*iterable* doivent " "être des itérables qui seront dépaquetés comme arguments pour la fonction." -#: ../Doc/library/multiprocessing.rst:2185 +#: ../Doc/library/multiprocessing.rst:2196 msgid "" "Hence an *iterable* of ``[(1,2), (3, 4)]`` results in ``[func(1,2), " "func(3,4)]``." @@ -3305,7 +3321,7 @@ msgstr "" "Par conséquent un *iterable* ``[(1,2), (3, 4)]`` donnera pour résultat " "``[func(1,2), func(3,4)]``." -#: ../Doc/library/multiprocessing.rst:2192 +#: ../Doc/library/multiprocessing.rst:2203 msgid "" "A combination of :meth:`starmap` and :meth:`map_async` that iterates over " "*iterable* of iterables and calls *func* with the iterables unpacked. " @@ -3315,7 +3331,7 @@ msgstr "" "*iterable* (composé d'itérables) et appelle *func* pour chaque itérable " "dépaqueté. Renvoie l'objet résultat." -#: ../Doc/library/multiprocessing.rst:2200 +#: ../Doc/library/multiprocessing.rst:2211 msgid "" "Prevents any more tasks from being submitted to the pool. Once all the " "tasks have been completed the worker processes will exit." @@ -3323,7 +3339,7 @@ msgstr "" "Empêche de nouvelles tâches d'être envoyées à la *pool*. Les processus " "*workers* se terminent une fois que toutes les tâches ont été complétées." -#: ../Doc/library/multiprocessing.rst:2205 +#: ../Doc/library/multiprocessing.rst:2216 msgid "" "Stops the worker processes immediately without completing outstanding work. " "When the pool object is garbage collected :meth:`terminate` will be called " @@ -3333,7 +3349,7 @@ msgstr "" "courants. Quand l'objet *pool* est collecté par le ramasse-miettes, sa " "méthode :meth:`terminate` est appelée immédiatement." -#: ../Doc/library/multiprocessing.rst:2211 +#: ../Doc/library/multiprocessing.rst:2222 msgid "" "Wait for the worker processes to exit. One must call :meth:`close` or :meth:" "`terminate` before using :meth:`join`." @@ -3341,7 +3357,7 @@ msgstr "" "Attend que les processus *workers* se terminent. Il est nécessaire " "d'appeler :meth:`close` ou :meth:`terminate` avant d'utiliser :meth:`join`." -#: ../Doc/library/multiprocessing.rst:2214 +#: ../Doc/library/multiprocessing.rst:2225 msgid "" "Pool objects now support the context management protocol -- see :ref:" "`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the pool " @@ -3352,7 +3368,7 @@ msgstr "" "`~contextmanager.__enter__` renvoie l'objet *pool* et :meth:`~contextmanager." "__exit__` appelle :meth:`terminate`." -#: ../Doc/library/multiprocessing.rst:2222 +#: ../Doc/library/multiprocessing.rst:2233 msgid "" "The class of the result returned by :meth:`Pool.apply_async` and :meth:`Pool." "map_async`." @@ -3360,7 +3376,7 @@ msgstr "" "La classe des résultats renvoyés par :meth:`Pool.apply_async` et :meth:`Pool." "map_async`." -#: ../Doc/library/multiprocessing.rst:2227 +#: ../Doc/library/multiprocessing.rst:2238 msgid "" "Return the result when it arrives. If *timeout* is not ``None`` and the " "result does not arrive within *timeout* seconds then :exc:`multiprocessing." @@ -3372,16 +3388,16 @@ msgstr "" "TimeoutError` est levée. Si l'appel distance lève une exception, alors elle " "est relayée par :meth:`get`." -#: ../Doc/library/multiprocessing.rst:2234 +#: ../Doc/library/multiprocessing.rst:2245 msgid "Wait until the result is available or until *timeout* seconds pass." msgstr "" "Attend que le résultat soit disponible ou que *timeout* secondes s'écoulent." -#: ../Doc/library/multiprocessing.rst:2238 +#: ../Doc/library/multiprocessing.rst:2249 msgid "Return whether the call has completed." msgstr "Renvoie ``True`` ou ``False`` suivant si la tâche est accomplie." -#: ../Doc/library/multiprocessing.rst:2242 +#: ../Doc/library/multiprocessing.rst:2253 msgid "" "Return whether the call completed without raising an exception. Will raise :" "exc:`AssertionError` if the result is not ready." @@ -3389,16 +3405,16 @@ msgstr "" "Renvoie ``True`` ou ``False`` suivant si la tâche est accomplie sans lever " "d'exception. Lève une :exc:`AssertionError` si le résultat n'est pas prêt." -#: ../Doc/library/multiprocessing.rst:2245 +#: ../Doc/library/multiprocessing.rst:2256 msgid "The following example demonstrates the use of a pool::" msgstr "" "Les exemples suivants présentent l'utilisation d'un bassin de *workers* ::" -#: ../Doc/library/multiprocessing.rst:2272 +#: ../Doc/library/multiprocessing.rst:2283 msgid "Listeners and Clients" msgstr "Auditeurs et Clients" -#: ../Doc/library/multiprocessing.rst:2277 +#: ../Doc/library/multiprocessing.rst:2288 msgid "" "Usually message passing between processes is done using queues or by using :" "class:`~Connection` objects returned by :func:`~multiprocessing.Pipe`." @@ -3407,7 +3423,7 @@ msgstr "" "utilisant des queues ou des objets :class:`~Connection` renvoyés par :func:" "`~multiprocessing.Pipe`." -#: ../Doc/library/multiprocessing.rst:2281 +#: ../Doc/library/multiprocessing.rst:2292 msgid "" "However, the :mod:`multiprocessing.connection` module allows some extra " "flexibility. It basically gives a high level message oriented API for " @@ -3421,7 +3437,7 @@ msgstr "" "*digest authentication* en utilisant le module :mod:`hmac`, et pour " "interroger de multiples connexions en même temps." -#: ../Doc/library/multiprocessing.rst:2290 +#: ../Doc/library/multiprocessing.rst:2301 msgid "" "Send a randomly generated message to the other end of the connection and " "wait for a reply." @@ -3429,7 +3445,7 @@ msgstr "" "Envoie un message généré aléatoirement à l'autre bout de la connexion et " "attend une réponse." -#: ../Doc/library/multiprocessing.rst:2293 +#: ../Doc/library/multiprocessing.rst:2304 msgid "" "If the reply matches the digest of the message using *authkey* as the key " "then a welcome message is sent to the other end of the connection. " @@ -3439,7 +3455,7 @@ msgstr "" "alors un message de bienvenue est envoyé à l'autre bout de la connexion. " "Autrement, une :exc:`~multiprocessing.AuthenticationError` est levée." -#: ../Doc/library/multiprocessing.rst:2299 +#: ../Doc/library/multiprocessing.rst:2310 msgid "" "Receive a message, calculate the digest of the message using *authkey* as " "the key, and then send the digest back." @@ -3447,7 +3463,7 @@ msgstr "" "Reçoit un message, calcule le condensat du message en utilisant la clé " "*authkey*, et envoie le condensat en réponse." -#: ../Doc/library/multiprocessing.rst:2302 +#: ../Doc/library/multiprocessing.rst:2313 msgid "" "If a welcome message is not received, then :exc:`~multiprocessing." "AuthenticationError` is raised." @@ -3455,7 +3471,7 @@ msgstr "" "Si un message de bienvenue n'est pas reçu, une :exc:`~multiprocessing." "AuthenticationError` est levée." -#: ../Doc/library/multiprocessing.rst:2307 +#: ../Doc/library/multiprocessing.rst:2318 msgid "" "Attempt to set up a connection to the listener which is using address " "*address*, returning a :class:`~Connection`." @@ -3463,7 +3479,7 @@ msgstr "" "Essaie d'établir une connexion avec l'auditeur qui utilise l'adresse " "*address*, renvoie une :class:`~Connection`." -#: ../Doc/library/multiprocessing.rst:2310 +#: ../Doc/library/multiprocessing.rst:2321 msgid "" "The type of the connection is determined by *family* argument, but this can " "generally be omitted since it can usually be inferred from the format of " @@ -3473,8 +3489,8 @@ msgstr "" "généralement être omis puisqu'il peut être inféré depuis le format " "d'*address*. (Voir :ref:`multiprocessing-address-formats`)" -#: ../Doc/library/multiprocessing.rst:2314 -#: ../Doc/library/multiprocessing.rst:2349 +#: ../Doc/library/multiprocessing.rst:2325 +#: ../Doc/library/multiprocessing.rst:2360 msgid "" "If *authkey* is given and not None, it should be a byte string and will be " "used as the secret key for an HMAC-based authentication challenge. No " @@ -3488,7 +3504,7 @@ msgstr "" "``None``. Une :exc:`~multiprocessing.AuthenticationError` est levée si " "l'authentification échoue. Voir :ref:`multiprocessing-auth-keys`." -#: ../Doc/library/multiprocessing.rst:2322 +#: ../Doc/library/multiprocessing.rst:2333 msgid "" "A wrapper for a bound socket or Windows named pipe which is 'listening' for " "connections." @@ -3496,7 +3512,7 @@ msgstr "" "Un *wrapper* sur une *socket* liée ou un tube nommé sous Windows qui écoute " "pour des connexions." -#: ../Doc/library/multiprocessing.rst:2325 +#: ../Doc/library/multiprocessing.rst:2336 msgid "" "*address* is the address to be used by the bound socket or named pipe of the " "listener object." @@ -3504,7 +3520,7 @@ msgstr "" "*address* est l'adresse à utiliser par la *socket* liée ou le tube nommé de " "l'objet auditeur." -#: ../Doc/library/multiprocessing.rst:2330 +#: ../Doc/library/multiprocessing.rst:2341 msgid "" "If an address of '0.0.0.0' is used, the address will not be a connectable " "end point on Windows. If you require a connectable end-point, you should use " @@ -3514,7 +3530,7 @@ msgstr "" "d'accès connectable sous Windows. Si vous avez besoin d'un point d'accès " "connectable, utilisez '127.0.0.1'." -#: ../Doc/library/multiprocessing.rst:2334 +#: ../Doc/library/multiprocessing.rst:2345 msgid "" "*family* is the type of socket (or named pipe) to use. This can be one of " "the strings ``'AF_INET'`` (for a TCP socket), ``'AF_UNIX'`` (for a Unix " @@ -3538,7 +3554,7 @@ msgstr "" "``'AF_UNIX'`` et qu'*address* est ``None``, la *socket* est créée dans un " "répertoire temporaire privé créé avec :func:`tempfile.mkstemp`." -#: ../Doc/library/multiprocessing.rst:2345 +#: ../Doc/library/multiprocessing.rst:2356 msgid "" "If the listener object uses a socket then *backlog* (1 by default) is passed " "to the :meth:`~socket.socket.listen` method of the socket once it has been " @@ -3548,7 +3564,7 @@ msgstr "" "passé à la méthode :meth:`~socket.socket.listen` de la *socket* une fois " "qu'elle a été liée." -#: ../Doc/library/multiprocessing.rst:2357 +#: ../Doc/library/multiprocessing.rst:2368 msgid "" "Accept a connection on the bound socket or named pipe of the listener object " "and return a :class:`~Connection` object. If authentication is attempted and " @@ -3559,7 +3575,7 @@ msgstr "" "d'authentification échoue, une :exc:`~multiprocessing.AuthenticationError` " "est levée." -#: ../Doc/library/multiprocessing.rst:2364 +#: ../Doc/library/multiprocessing.rst:2375 msgid "" "Close the bound socket or named pipe of the listener object. This is called " "automatically when the listener is garbage collected. However it is " @@ -3569,16 +3585,16 @@ msgstr "" "appelée automatiquement quand l'auditeur est collecté par le ramasse-" "miettes. Il est cependant conseillé de l'appeler explicitement." -#: ../Doc/library/multiprocessing.rst:2368 +#: ../Doc/library/multiprocessing.rst:2379 msgid "Listener objects have the following read-only properties:" msgstr "" "Les objets auditeurs ont aussi les propriétés en lecture seule suivantes :" -#: ../Doc/library/multiprocessing.rst:2372 +#: ../Doc/library/multiprocessing.rst:2383 msgid "The address which is being used by the Listener object." msgstr "L'adresse utilisée par l'objet auditeur." -#: ../Doc/library/multiprocessing.rst:2376 +#: ../Doc/library/multiprocessing.rst:2387 msgid "" "The address from which the last accepted connection came. If this is " "unavailable then it is ``None``." @@ -3586,7 +3602,7 @@ msgstr "" "L'adresse depuis laquelle a été établie la dernière connexion. ``None`` si " "aucune n'est disponible." -#: ../Doc/library/multiprocessing.rst:2379 +#: ../Doc/library/multiprocessing.rst:2390 msgid "" "Listener objects now support the context management protocol -- see :ref:" "`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " @@ -3597,7 +3613,7 @@ msgstr "" "__enter__` renvoie l'objet auditeur, et :meth:`~contextmanager.__exit__` " "appelle :meth:`close`." -#: ../Doc/library/multiprocessing.rst:2386 +#: ../Doc/library/multiprocessing.rst:2397 msgid "" "Wait till an object in *object_list* is ready. Returns the list of those " "objects in *object_list* which are ready. If *timeout* is a float then the " @@ -3611,23 +3627,23 @@ msgstr "" "l'appelle bloquera pour une durée non limitée. Un *timeout* négatif est " "équivalent à un *timeout* nul." -#: ../Doc/library/multiprocessing.rst:2392 +#: ../Doc/library/multiprocessing.rst:2403 msgid "" "For both Unix and Windows, an object can appear in *object_list* if it is" msgstr "" "Pour Unix et Windows, un objet peut apparaître dans *object_list* s'il est" -#: ../Doc/library/multiprocessing.rst:2395 +#: ../Doc/library/multiprocessing.rst:2406 msgid "a readable :class:`~multiprocessing.connection.Connection` object;" msgstr "" "un objet :class:`~multiprocessing.connection.Connection` accessible en " "lecture ;" -#: ../Doc/library/multiprocessing.rst:2396 +#: ../Doc/library/multiprocessing.rst:2407 msgid "a connected and readable :class:`socket.socket` object; or" msgstr "un objet :class:`socket.socket` connecté et accessible en lecture ; ou" -#: ../Doc/library/multiprocessing.rst:2397 +#: ../Doc/library/multiprocessing.rst:2408 msgid "" "the :attr:`~multiprocessing.Process.sentinel` attribute of a :class:" "`~multiprocessing.Process` object." @@ -3635,7 +3651,7 @@ msgstr "" "l'attribut :attr:`~multiprocessing.Process.sentinel` d'un objet :class:" "`~multiprocessing.Process`." -#: ../Doc/library/multiprocessing.rst:2400 +#: ../Doc/library/multiprocessing.rst:2411 msgid "" "A connection or socket object is ready when there is data available to be " "read from it, or the other end has been closed." @@ -3643,7 +3659,7 @@ msgstr "" "Une connexion ou une *socket* est prête quand il y a des données disponibles " "en lecture dessus, ou que l'autre bout a été fermé." -#: ../Doc/library/multiprocessing.rst:2403 +#: ../Doc/library/multiprocessing.rst:2414 msgid "" "**Unix**: ``wait(object_list, timeout)`` almost equivalent ``select." "select(object_list, [], [], timeout)``. The difference is that, if :func:" @@ -3656,7 +3672,7 @@ msgstr "" "`OSError` avec un numéro d'erreur ``EINTR``, alors que :func:`wait` ne le " "fera pas." -#: ../Doc/library/multiprocessing.rst:2409 +#: ../Doc/library/multiprocessing.rst:2420 msgid "" "**Windows**: An item in *object_list* must either be an integer handle which " "is waitable (according to the definition used by the documentation of the " @@ -3671,11 +3687,11 @@ msgstr "" "les identifiants de tubes et de *sockets* **ne sont pas** des identifiants " "*waitables*.)" -#: ../Doc/library/multiprocessing.rst:2419 +#: ../Doc/library/multiprocessing.rst:2430 msgid "**Examples**" msgstr "**Exemples**" -#: ../Doc/library/multiprocessing.rst:2421 +#: ../Doc/library/multiprocessing.rst:2432 msgid "" "The following server code creates a listener which uses ``'secret " "password'`` as an authentication key. It then waits for a connection and " @@ -3685,13 +3701,13 @@ msgstr "" "comme clé d'authentification. Il attend ensuite une connexion et envoie les " "données au client ::" -#: ../Doc/library/multiprocessing.rst:2440 +#: ../Doc/library/multiprocessing.rst:2451 msgid "" "The following code connects to the server and receives some data from the " "server::" msgstr "Le code suivant se connecte au serveur et en reçoit des données ::" -#: ../Doc/library/multiprocessing.rst:2457 +#: ../Doc/library/multiprocessing.rst:2468 msgid "" "The following code uses :func:`~multiprocessing.connection.wait` to wait for " "messages from multiple processes at once::" @@ -3699,11 +3715,11 @@ msgstr "" "Le code suivant utilise :func:`~multiprocessing.connection.wait` pour " "attendre des messages depuis plusieurs processus à la fois ::" -#: ../Doc/library/multiprocessing.rst:2496 +#: ../Doc/library/multiprocessing.rst:2507 msgid "Address Formats" msgstr "Formats d'adresses" -#: ../Doc/library/multiprocessing.rst:2498 +#: ../Doc/library/multiprocessing.rst:2509 msgid "" "An ``'AF_INET'`` address is a tuple of the form ``(hostname, port)`` where " "*hostname* is a string and *port* is an integer." @@ -3711,7 +3727,7 @@ msgstr "" "Une adresse ``'AF_INET'`` est un *tuple* de la forme ``(hostname, port)`` où " "*hostname* est une chaîne et *port* un entier." -#: ../Doc/library/multiprocessing.rst:2501 +#: ../Doc/library/multiprocessing.rst:2512 msgid "" "An ``'AF_UNIX'`` address is a string representing a filename on the " "filesystem." @@ -3719,11 +3735,11 @@ msgstr "" "Une adresse ``'AF_UNIX'`` est une chaîne représentant un nom de fichier sur " "le système de fichiers." -#: ../Doc/library/multiprocessing.rst:2507 +#: ../Doc/library/multiprocessing.rst:2518 msgid "An ``'AF_PIPE'`` address is a string of the form" msgstr "Une adresse ``'AF_PIPE'`` est une chaîne de la forme" -#: ../Doc/library/multiprocessing.rst:2505 +#: ../Doc/library/multiprocessing.rst:2516 msgid "" ":samp:`r'\\\\\\\\.\\\\pipe\\\\{PipeName}'`. To use :func:`Client` to " "connect to a named pipe on a remote computer called *ServerName* one should " @@ -3735,7 +3751,7 @@ msgstr "" "*ServerName*, il faut plutôt utiliser une adresse de la forme :samp:`r'\\\\\\" "\\{ServerName}\\\\pipe\\\\{PipeName}'`." -#: ../Doc/library/multiprocessing.rst:2509 +#: ../Doc/library/multiprocessing.rst:2520 msgid "" "Note that any string beginning with two backslashes is assumed by default to " "be an ``'AF_PIPE'`` address rather than an ``'AF_UNIX'`` address." @@ -3744,11 +3760,11 @@ msgstr "" "défaut comme l'adresse d'un ``'AF_PIPE'`` plutôt qu'une adresse " "``'AF_UNIX'``." -#: ../Doc/library/multiprocessing.rst:2516 +#: ../Doc/library/multiprocessing.rst:2527 msgid "Authentication keys" msgstr "Clés d'authentification" -#: ../Doc/library/multiprocessing.rst:2518 +#: ../Doc/library/multiprocessing.rst:2529 msgid "" "When one uses :meth:`Connection.recv `, the data received " "is automatically unpickled. Unfortunately unpickling data from an untrusted " @@ -3761,7 +3777,7 @@ msgstr "" "sécurité. Par conséquent :class:`Listener` et :func:`Client` utilisent le " "module :mod:`hmac` pour fournir une authentification par condensat." -#: ../Doc/library/multiprocessing.rst:2524 +#: ../Doc/library/multiprocessing.rst:2535 msgid "" "An authentication key is a byte string which can be thought of as a " "password: once a connection is established both ends will demand proof that " @@ -3774,7 +3790,7 @@ msgstr "" "(Démontrer que les deux utilisent la même clé n'implique **pas** d'échanger " "la clé sur la connexion.)" -#: ../Doc/library/multiprocessing.rst:2530 +#: ../Doc/library/multiprocessing.rst:2541 msgid "" "If authentication is requested but no authentication key is specified then " "the return value of ``current_process().authkey`` is used (see :class:" @@ -3792,7 +3808,7 @@ msgstr "" "processus partageront une clé d'authentification unique qui peut être " "utilisée pour mettre en place des connexions entre-eux." -#: ../Doc/library/multiprocessing.rst:2538 +#: ../Doc/library/multiprocessing.rst:2549 msgid "" "Suitable authentication keys can also be generated by using :func:`os." "urandom`." @@ -3800,11 +3816,11 @@ msgstr "" "Des clés d'authentification adaptées peuvent aussi être générées par :func:" "`os.urandom`." -#: ../Doc/library/multiprocessing.rst:2542 +#: ../Doc/library/multiprocessing.rst:2553 msgid "Logging" msgstr "Journalisation" -#: ../Doc/library/multiprocessing.rst:2544 +#: ../Doc/library/multiprocessing.rst:2555 msgid "" "Some support for logging is available. Note, however, that the :mod:" "`logging` package does not use process shared locks so it is possible " @@ -3816,7 +3832,7 @@ msgstr "" "processus et il est donc possible (dépendant du type de gestionnaire) que " "les messages de différents processus soient mélangés." -#: ../Doc/library/multiprocessing.rst:2551 +#: ../Doc/library/multiprocessing.rst:2562 msgid "" "Returns the logger used by :mod:`multiprocessing`. If necessary, a new one " "will be created." @@ -3824,7 +3840,7 @@ msgstr "" "Renvoie le journaliseur utilisé par :mod:`multiprocessing`. Si nécessaire, " "un nouveau sera créé." -#: ../Doc/library/multiprocessing.rst:2554 +#: ../Doc/library/multiprocessing.rst:2565 msgid "" "When first created the logger has level :data:`logging.NOTSET` and no " "default handler. Messages sent to this logger will not by default propagate " @@ -3834,7 +3850,7 @@ msgstr "" "et pas de gestionnaire par défaut. Les messages envoyés à ce journaliseur ne " "seront pas propagés par défaut au journaliseur principal." -#: ../Doc/library/multiprocessing.rst:2558 +#: ../Doc/library/multiprocessing.rst:2569 msgid "" "Note that on Windows child processes will only inherit the level of the " "parent process's logger -- any other customization of the logger will not be " @@ -3844,7 +3860,7 @@ msgstr "" "journaliseur du processus parent -- toute autre personnalisation du " "journaliseur ne sera pas héritée." -#: ../Doc/library/multiprocessing.rst:2565 +#: ../Doc/library/multiprocessing.rst:2576 msgid "" "This function performs a call to :func:`get_logger` but in addition to " "returning the logger created by get_logger, it adds a handler which sends " @@ -3856,22 +3872,22 @@ msgstr "" "qui envoie la sortie sur :data:`sys.stderr` en utilisant le format " "``'[%(levelname)s/%(processName)s] %(message)s'``." -#: ../Doc/library/multiprocessing.rst:2570 +#: ../Doc/library/multiprocessing.rst:2581 msgid "Below is an example session with logging turned on::" msgstr "" "L'exemple ci-dessous présente une session avec la journalisation activée ::" -#: ../Doc/library/multiprocessing.rst:2585 +#: ../Doc/library/multiprocessing.rst:2596 msgid "For a full table of logging levels, see the :mod:`logging` module." msgstr "" "Pour un tableau complet des niveaux de journalisation, voir le module :mod:" "`logging`." -#: ../Doc/library/multiprocessing.rst:2589 +#: ../Doc/library/multiprocessing.rst:2600 msgid "The :mod:`multiprocessing.dummy` module" msgstr "Le module :mod:`multiprocessing.dummy`" -#: ../Doc/library/multiprocessing.rst:2594 +#: ../Doc/library/multiprocessing.rst:2605 msgid "" ":mod:`multiprocessing.dummy` replicates the API of :mod:`multiprocessing` " "but is no more than a wrapper around the :mod:`threading` module." @@ -3879,11 +3895,11 @@ msgstr "" ":mod:`multiprocessing.dummy` réplique toute l'API de :mod:`multiprocessing` " "mais n'est rien de plus qu'un *wrapper* autour du module :mod:`threading`." -#: ../Doc/library/multiprocessing.rst:2601 +#: ../Doc/library/multiprocessing.rst:2612 msgid "Programming guidelines" msgstr "Lignes directrices de programmation" -#: ../Doc/library/multiprocessing.rst:2603 +#: ../Doc/library/multiprocessing.rst:2614 msgid "" "There are certain guidelines and idioms which should be adhered to when " "using :mod:`multiprocessing`." @@ -3891,19 +3907,19 @@ msgstr "" "Il y a certaines lignes directrices et idiomes auxquels il faut adhérer en " "utilisant :mod:`multiprocessing`." -#: ../Doc/library/multiprocessing.rst:2608 +#: ../Doc/library/multiprocessing.rst:2619 msgid "All start methods" msgstr "Toutes les méthodes de démarrage" -#: ../Doc/library/multiprocessing.rst:2610 +#: ../Doc/library/multiprocessing.rst:2621 msgid "The following applies to all start methods." msgstr "Les règles suivantes s'appliquent aux méthodes de démarrage." -#: ../Doc/library/multiprocessing.rst:2612 +#: ../Doc/library/multiprocessing.rst:2623 msgid "Avoid shared state" msgstr "Éviter les états partagés" -#: ../Doc/library/multiprocessing.rst:2614 +#: ../Doc/library/multiprocessing.rst:2625 msgid "" "As far as possible one should try to avoid shifting large amounts of data " "between processes." @@ -3911,7 +3927,7 @@ msgstr "" "Autant que possible, vous devriez éviter de déplacer de larges données entre " "les processus." -#: ../Doc/library/multiprocessing.rst:2617 +#: ../Doc/library/multiprocessing.rst:2628 msgid "" "It is probably best to stick to using queues or pipes for communication " "between processes rather than using the lower level synchronization " @@ -3921,21 +3937,21 @@ msgstr "" "tubes pour la communication entre processus plutôt que d'utiliser des " "primitives de synchronisation plus bas-niveau." -#: ../Doc/library/multiprocessing.rst:2621 +#: ../Doc/library/multiprocessing.rst:2632 msgid "Picklability" msgstr "Sérialisation" -#: ../Doc/library/multiprocessing.rst:2623 +#: ../Doc/library/multiprocessing.rst:2634 msgid "Ensure that the arguments to the methods of proxies are picklable." msgstr "" "Assurez-vous que les arguments passés aux méthodes des mandataires soient " "sérialisables (*pickables*)." -#: ../Doc/library/multiprocessing.rst:2625 +#: ../Doc/library/multiprocessing.rst:2636 msgid "Thread safety of proxies" msgstr "Sûreté des mandataires à travers les fils d'exécution" -#: ../Doc/library/multiprocessing.rst:2627 +#: ../Doc/library/multiprocessing.rst:2638 msgid "" "Do not use a proxy object from more than one thread unless you protect it " "with a lock." @@ -3943,18 +3959,18 @@ msgstr "" "N'utilisez pas d'objet mandataire depuis plus d'un fil d'exécution à moins " "que vous ne le protégiez avec un verrou." -#: ../Doc/library/multiprocessing.rst:2630 +#: ../Doc/library/multiprocessing.rst:2641 msgid "" "(There is never a problem with different processes using the *same* proxy.)" msgstr "" "(Il n'y a jamais de problème avec plusieurs processus utilisant un *même* " "mandataire.)" -#: ../Doc/library/multiprocessing.rst:2632 +#: ../Doc/library/multiprocessing.rst:2643 msgid "Joining zombie processes" msgstr "Attendre les processus zombies" -#: ../Doc/library/multiprocessing.rst:2634 +#: ../Doc/library/multiprocessing.rst:2645 msgid "" "On Unix when a process finishes but has not been joined it becomes a zombie. " "There should never be very many because each time a new process starts (or :" @@ -3973,11 +3989,11 @@ msgstr "" "processus. Toutefois il est probablement une bonne pratique d'attendre " "explicitement tous les processus que vous démarrez." -#: ../Doc/library/multiprocessing.rst:2642 +#: ../Doc/library/multiprocessing.rst:2653 msgid "Better to inherit than pickle/unpickle" msgstr "Préférez hériter que sérialiser/désérialiser" -#: ../Doc/library/multiprocessing.rst:2644 +#: ../Doc/library/multiprocessing.rst:2655 msgid "" "When using the *spawn* or *forkserver* start methods many types from :mod:" "`multiprocessing` need to be picklable so that child processes can use " @@ -3994,11 +4010,11 @@ msgstr "" "qu'un processus qui nécessite l'accès à une ressource partagée créée autre " "part qu'il en hérite depuis un de ses processus ancêtres." -#: ../Doc/library/multiprocessing.rst:2652 +#: ../Doc/library/multiprocessing.rst:2663 msgid "Avoid terminating processes" msgstr "Éviter de terminer les processus" -#: ../Doc/library/multiprocessing.rst:2654 +#: ../Doc/library/multiprocessing.rst:2665 msgid "" "Using the :meth:`Process.terminate ` " "method to stop a process is liable to cause any shared resources (such as " @@ -4010,7 +4026,7 @@ msgstr "" "indisponible aux autres processus des ressources partagées (comme des " "verrous, sémaphores, tubes et queues) actuellement utilisée par le processus." -#: ../Doc/library/multiprocessing.rst:2660 +#: ../Doc/library/multiprocessing.rst:2671 msgid "" "Therefore it is probably best to only consider using :meth:`Process." "terminate ` on processes which never use " @@ -4020,11 +4036,11 @@ msgstr "" "` que sur les processus qui n'utilisent " "jamais de ressources partagées." -#: ../Doc/library/multiprocessing.rst:2664 +#: ../Doc/library/multiprocessing.rst:2675 msgid "Joining processes that use queues" msgstr "Attendre les processus qui utilisent des queues" -#: ../Doc/library/multiprocessing.rst:2666 +#: ../Doc/library/multiprocessing.rst:2677 msgid "" "Bear in mind that a process that has put items in a queue will wait before " "terminating until all the buffered items are fed by the \"feeder\" thread to " @@ -4039,7 +4055,7 @@ msgstr "" "` de la queue pour éviter ce " "comportement.)" -#: ../Doc/library/multiprocessing.rst:2672 +#: ../Doc/library/multiprocessing.rst:2683 msgid "" "This means that whenever you use a queue you need to make sure that all " "items which have been put on the queue will eventually be removed before the " @@ -4054,11 +4070,11 @@ msgstr "" "termineront. Souvenez-vous aussi que tous les processus non *daemons* seront " "attendus automatiquement." -#: ../Doc/library/multiprocessing.rst:2678 +#: ../Doc/library/multiprocessing.rst:2689 msgid "An example which will deadlock is the following::" msgstr "L'exemple suivant provoquera un interblocage ::" -#: ../Doc/library/multiprocessing.rst:2692 +#: ../Doc/library/multiprocessing.rst:2703 msgid "" "A fix here would be to swap the last two lines (or simply remove the ``p." "join()`` line)." @@ -4066,11 +4082,11 @@ msgstr "" "Une solution ici serait d'intervertir les deux dernières lignes (ou " "simplement supprimer la ligne ``p.join()``)." -#: ../Doc/library/multiprocessing.rst:2695 +#: ../Doc/library/multiprocessing.rst:2706 msgid "Explicitly pass resources to child processes" msgstr "Passer explicitement les ressources aux processus fils" -#: ../Doc/library/multiprocessing.rst:2697 +#: ../Doc/library/multiprocessing.rst:2708 msgid "" "On Unix using the *fork* start method, a child process can make use of a " "shared resource created in a parent process using a global resource. " @@ -4082,7 +4098,7 @@ msgstr "" "utilisant une ressource globale. Cependant, il est préférable de passer " "l'objet en argument au constructeur du processus fils." -#: ../Doc/library/multiprocessing.rst:2702 +#: ../Doc/library/multiprocessing.rst:2713 msgid "" "Apart from making the code (potentially) compatible with Windows and the " "other start methods this also ensures that as long as the child process is " @@ -4097,24 +4113,24 @@ msgstr "" "libérées quand l'objet est collecté par le ramasse-miettes du processus " "parent." -#: ../Doc/library/multiprocessing.rst:2709 +#: ../Doc/library/multiprocessing.rst:2720 msgid "So for instance ::" msgstr "Donc par exemple ::" -#: ../Doc/library/multiprocessing.rst:2721 +#: ../Doc/library/multiprocessing.rst:2732 msgid "should be rewritten as ::" msgstr "devrait être réécrit comme ::" -#: ../Doc/library/multiprocessing.rst:2733 +#: ../Doc/library/multiprocessing.rst:2744 msgid "Beware of replacing :data:`sys.stdin` with a \"file like object\"" msgstr "" "Faire attention à remplacer :data:`sys.stdin` par un objet « *file-like* »" -#: ../Doc/library/multiprocessing.rst:2735 +#: ../Doc/library/multiprocessing.rst:2746 msgid ":mod:`multiprocessing` originally unconditionally called::" msgstr "À l'origine, :mod:`multiprocessing` appelait inconditionnellement ::" -#: ../Doc/library/multiprocessing.rst:2739 +#: ../Doc/library/multiprocessing.rst:2750 msgid "" "in the :meth:`multiprocessing.Process._bootstrap` method --- this resulted " "in issues with processes-in-processes. This has been changed to::" @@ -4123,7 +4139,7 @@ msgstr "" "provoquait des problèmes avec les processus imbriqués. Cela peut être changé " "en ::" -#: ../Doc/library/multiprocessing.rst:2745 +#: ../Doc/library/multiprocessing.rst:2756 msgid "" "Which solves the fundamental issue of processes colliding with each other " "resulting in a bad file descriptor error, but introduces a potential danger " @@ -4140,7 +4156,7 @@ msgstr "" "like*, cela peut amener les données à être transmises à l'objet à plusieurs " "reprises, résultant en une corruption." -#: ../Doc/library/multiprocessing.rst:2752 +#: ../Doc/library/multiprocessing.rst:2763 msgid "" "If you write a file-like object and implement your own caching, you can make " "it fork-safe by storing the pid whenever you append to the cache, and " @@ -4151,28 +4167,28 @@ msgstr "" "vous ajoutez des données au cache, et annulez le cache quand le *pip* " "change. Par exemple ::" -#: ../Doc/library/multiprocessing.rst:2764 +#: ../Doc/library/multiprocessing.rst:2775 msgid "" "For more information, see :issue:`5155`, :issue:`5313` and :issue:`5331`" msgstr "" "Pour plus d'informations, voir :issue:`5155`, :issue:`5313` et :issue:`5331`" -#: ../Doc/library/multiprocessing.rst:2767 +#: ../Doc/library/multiprocessing.rst:2778 msgid "The *spawn* and *forkserver* start methods" msgstr "Les méthodes de démarrage *spawn* et *forkserver*" -#: ../Doc/library/multiprocessing.rst:2769 +#: ../Doc/library/multiprocessing.rst:2780 msgid "" "There are a few extra restriction which don't apply to the *fork* start " "method." msgstr "" "Certaines restrictions ne s'appliquent pas à la méthode de démarrage *fork*." -#: ../Doc/library/multiprocessing.rst:2772 +#: ../Doc/library/multiprocessing.rst:2783 msgid "More picklability" msgstr "Plus de sérialisation" -#: ../Doc/library/multiprocessing.rst:2774 +#: ../Doc/library/multiprocessing.rst:2785 msgid "" "Ensure that all arguments to :meth:`Process.__init__` are picklable. Also, " "if you subclass :class:`~multiprocessing.Process` then make sure that " @@ -4185,11 +4201,11 @@ msgstr "" "sérialisables quand la méthode :meth:`Process.start ` est appelée." -#: ../Doc/library/multiprocessing.rst:2779 +#: ../Doc/library/multiprocessing.rst:2790 msgid "Global variables" msgstr "Variables globales" -#: ../Doc/library/multiprocessing.rst:2781 +#: ../Doc/library/multiprocessing.rst:2792 msgid "" "Bear in mind that if code run in a child process tries to access a global " "variable, then the value it sees (if any) may not be the same as the value " @@ -4202,7 +4218,7 @@ msgstr "" "moment même où :meth:`Process.start ` est " "appelée." -#: ../Doc/library/multiprocessing.rst:2786 +#: ../Doc/library/multiprocessing.rst:2797 msgid "" "However, global variables which are just module level constants cause no " "problems." @@ -4210,11 +4226,11 @@ msgstr "" "Cependant, les variables globales qui sont juste des constantes de modules " "ne posent pas de problèmes." -#: ../Doc/library/multiprocessing.rst:2789 +#: ../Doc/library/multiprocessing.rst:2800 msgid "Safe importing of main module" msgstr "Importation sûre du module principal" -#: ../Doc/library/multiprocessing.rst:2791 +#: ../Doc/library/multiprocessing.rst:2802 msgid "" "Make sure that the main module can be safely imported by a new Python " "interpreter without causing unintended side effects (such a starting a new " @@ -4224,7 +4240,7 @@ msgstr "" "un nouvel interpréteur Python sans causer d'effets de bord inattendus (comme " "le démarrage d'un nouveau processus)." -#: ../Doc/library/multiprocessing.rst:2795 +#: ../Doc/library/multiprocessing.rst:2806 msgid "" "For example, using the *spawn* or *forkserver* start method running the " "following module would fail with a :exc:`RuntimeError`::" @@ -4232,7 +4248,7 @@ msgstr "" "Par exemple, utiliser la méthode de démarrage *spawn* ou *forkserver* pour " "lancer le module suivant échouerait avec une :exc:`RuntimeError` ::" -#: ../Doc/library/multiprocessing.rst:2807 +#: ../Doc/library/multiprocessing.rst:2818 msgid "" "Instead one should protect the \"entry point\" of the program by using ``if " "__name__ == '__main__':`` as follows::" @@ -4240,7 +4256,7 @@ msgstr "" "Vous devriez plutôt protéger le « point d'entrée » du programme en utilisant " "``if __name__ == '__main__':`` comme suit ::" -#: ../Doc/library/multiprocessing.rst:2821 +#: ../Doc/library/multiprocessing.rst:2832 msgid "" "(The ``freeze_support()`` line can be omitted if the program will be run " "normally instead of frozen.)" @@ -4248,7 +4264,7 @@ msgstr "" "(La ligne ``freeze_support()`` peut être omise si le programme est " "uniquement lancé normalement et pas gelé.)" -#: ../Doc/library/multiprocessing.rst:2824 +#: ../Doc/library/multiprocessing.rst:2835 msgid "" "This allows the newly spawned Python interpreter to safely import the module " "and then run the module's ``foo()`` function." @@ -4256,7 +4272,7 @@ msgstr "" "Cela permet aux interpréteurs Python fraîchement instanciés d'importer en " "toute sécurité le module et d'exécution ensuite la fonction ``foo()``." -#: ../Doc/library/multiprocessing.rst:2827 +#: ../Doc/library/multiprocessing.rst:2838 msgid "" "Similar restrictions apply if a pool or manager is created in the main " "module." @@ -4264,21 +4280,21 @@ msgstr "" "Des restrictions similaires s'appliquent si une *pool* ou un gestionnaire " "est créé dans le module principal." -#: ../Doc/library/multiprocessing.rst:2834 +#: ../Doc/library/multiprocessing.rst:2845 msgid "Examples" msgstr "Exemples" -#: ../Doc/library/multiprocessing.rst:2836 +#: ../Doc/library/multiprocessing.rst:2847 msgid "Demonstration of how to create and use customized managers and proxies:" msgstr "" "Démonstration de comment créer et utiliser des gestionnaires et mandataires " "personnalisés :" -#: ../Doc/library/multiprocessing.rst:2842 +#: ../Doc/library/multiprocessing.rst:2853 msgid "Using :class:`~multiprocessing.pool.Pool`:" msgstr "En utilisant :class:`~multiprocessing.pool.Pool` :" -#: ../Doc/library/multiprocessing.rst:2848 +#: ../Doc/library/multiprocessing.rst:2859 msgid "" "An example showing how to use queues to feed tasks to a collection of worker " "processes and collect the results:" diff --git a/library/os.path.po b/library/os.path.po index 46137768b..9cfdb938e 100644 --- a/library/os.path.po +++ b/library/os.path.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-11-29 18:28+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -96,12 +96,12 @@ msgstr "" #: ../Doc/library/os.path.rst:211 ../Doc/library/os.path.rst:223 #: ../Doc/library/os.path.rst:232 ../Doc/library/os.path.rst:242 #: ../Doc/library/os.path.rst:252 ../Doc/library/os.path.rst:262 -#: ../Doc/library/os.path.rst:272 ../Doc/library/os.path.rst:290 -#: ../Doc/library/os.path.rst:323 ../Doc/library/os.path.rst:335 -#: ../Doc/library/os.path.rst:344 ../Doc/library/os.path.rst:359 -#: ../Doc/library/os.path.rst:377 ../Doc/library/os.path.rst:390 -#: ../Doc/library/os.path.rst:406 ../Doc/library/os.path.rst:422 -#: ../Doc/library/os.path.rst:443 ../Doc/library/os.path.rst:454 +#: ../Doc/library/os.path.rst:272 ../Doc/library/os.path.rst:291 +#: ../Doc/library/os.path.rst:324 ../Doc/library/os.path.rst:336 +#: ../Doc/library/os.path.rst:345 ../Doc/library/os.path.rst:360 +#: ../Doc/library/os.path.rst:378 ../Doc/library/os.path.rst:391 +#: ../Doc/library/os.path.rst:407 ../Doc/library/os.path.rst:423 +#: ../Doc/library/os.path.rst:444 ../Doc/library/os.path.rst:455 msgid "Accepts a :term:`path-like object`." msgstr "Accepte un :term:`path-like object`." @@ -122,9 +122,9 @@ msgid "" "returns a valid path." msgstr "" -#: ../Doc/library/os.path.rst:89 ../Doc/library/os.path.rst:358 -#: ../Doc/library/os.path.rst:370 ../Doc/library/os.path.rst:386 -#: ../Doc/library/os.path.rst:402 +#: ../Doc/library/os.path.rst:89 ../Doc/library/os.path.rst:359 +#: ../Doc/library/os.path.rst:371 ../Doc/library/os.path.rst:387 +#: ../Doc/library/os.path.rst:403 msgid ":ref:`Availability `: Unix, Windows." msgstr ":ref:`Disponibilité ` : Unix, Windows." @@ -278,19 +278,20 @@ msgstr "" msgid "" "Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a " "file system where a different file system has been mounted. On POSIX, the " -"function checks whether *path*'s parent, :file:`path/..`, is on a different " -"device than *path*, or whether :file:`path/..` and *path* point to the same " -"i-node on the same device --- this should detect mount points for all Unix " -"and POSIX variants. On Windows, a drive letter root and a share UNC are " -"always mount points, and for any other path ``GetVolumePathName`` is called " -"to see if it is different from the input path." +"function checks whether *path*'s parent, :file:`{path}/..`, is on a " +"different device than *path*, or whether :file:`{path}/..` and *path* point " +"to the same i-node on the same device --- this should detect mount points " +"for all Unix and POSIX variants. It is not able to reliably detect bind " +"mounts on the same filesystem. On Windows, a drive letter root and a share " +"UNC are always mount points, and for any other path ``GetVolumePathName`` is " +"called to see if it is different from the input path." msgstr "" -#: ../Doc/library/os.path.rst:287 +#: ../Doc/library/os.path.rst:288 msgid "Support for detecting non-root mount points on Windows." msgstr "" -#: ../Doc/library/os.path.rst:296 +#: ../Doc/library/os.path.rst:297 msgid "" "Join one or more path components intelligently. The return value is the " "concatenation of *path* and any members of *\\*paths* with exactly one " @@ -300,7 +301,7 @@ msgid "" "thrown away and joining continues from the absolute path component." msgstr "" -#: ../Doc/library/os.path.rst:304 +#: ../Doc/library/os.path.rst:305 msgid "" "On Windows, the drive letter is not reset when an absolute path component (e." "g., ``r'\\foo'``) is encountered. If a component contains a drive letter, " @@ -310,11 +311,11 @@ msgid "" "file:`C:` (:file:`c:foo`), not :file:`c:\\\\foo`." msgstr "" -#: ../Doc/library/os.path.rst:311 +#: ../Doc/library/os.path.rst:312 msgid "Accepts a :term:`path-like object` for *path* and *paths*." msgstr "" -#: ../Doc/library/os.path.rst:317 +#: ../Doc/library/os.path.rst:318 msgid "" "Normalize the case of a pathname. On Unix and Mac OS X, this returns the " "path unchanged; on case-insensitive filesystems, it converts the path to " @@ -324,7 +325,7 @@ msgid "" "interface)." msgstr "" -#: ../Doc/library/os.path.rst:329 +#: ../Doc/library/os.path.rst:330 msgid "" "Normalize a pathname by collapsing redundant separators and up-level " "references so that ``A//B``, ``A/B/``, ``A/./B`` and ``A/foo/../B`` all " @@ -333,14 +334,14 @@ msgid "" "backward slashes. To normalize case, use :func:`normcase`." msgstr "" -#: ../Doc/library/os.path.rst:341 +#: ../Doc/library/os.path.rst:342 msgid "" "Return the canonical path of the specified filename, eliminating any " "symbolic links encountered in the path (if they are supported by the " "operating system)." msgstr "" -#: ../Doc/library/os.path.rst:350 +#: ../Doc/library/os.path.rst:351 msgid "" "Return a relative filepath to *path* either from the current directory or " "from an optional *start* directory. This is a path computation: the " @@ -348,33 +349,33 @@ msgid "" "*start*." msgstr "" -#: ../Doc/library/os.path.rst:355 +#: ../Doc/library/os.path.rst:356 msgid "*start* defaults to :attr:`os.curdir`." msgstr "" -#: ../Doc/library/os.path.rst:365 +#: ../Doc/library/os.path.rst:366 msgid "" "Return ``True`` if both pathname arguments refer to the same file or " "directory. This is determined by the device number and i-node number and " "raises an exception if an :func:`os.stat` call on either pathname fails." msgstr "" -#: ../Doc/library/os.path.rst:371 ../Doc/library/os.path.rst:387 -#: ../Doc/library/os.path.rst:403 +#: ../Doc/library/os.path.rst:372 ../Doc/library/os.path.rst:388 +#: ../Doc/library/os.path.rst:404 msgid "Added Windows support." msgstr "Prise en charge de Windows." -#: ../Doc/library/os.path.rst:374 +#: ../Doc/library/os.path.rst:375 msgid "Windows now uses the same implementation as all other platforms." msgstr "" -#: ../Doc/library/os.path.rst:383 +#: ../Doc/library/os.path.rst:384 msgid "" "Return ``True`` if the file descriptors *fp1* and *fp2* refer to the same " "file." msgstr "" -#: ../Doc/library/os.path.rst:396 +#: ../Doc/library/os.path.rst:397 msgid "" "Return ``True`` if the stat tuples *stat1* and *stat2* refer to the same " "file. These structures may have been returned by :func:`os.fstat`, :func:`os." @@ -382,7 +383,7 @@ msgid "" "comparison used by :func:`samefile` and :func:`sameopenfile`." msgstr "" -#: ../Doc/library/os.path.rst:412 +#: ../Doc/library/os.path.rst:413 msgid "" "Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the " "last pathname component and *head* is everything leading up to that. The " @@ -395,7 +396,7 @@ msgid "" "and :func:`basename`." msgstr "" -#: ../Doc/library/os.path.rst:428 +#: ../Doc/library/os.path.rst:429 msgid "" "Split the pathname *path* into a pair ``(drive, tail)`` where *drive* is " "either a mount point or the empty string. On systems which do not use drive " @@ -403,26 +404,26 @@ msgid "" "``drive + tail`` will be the same as *path*." msgstr "" -#: ../Doc/library/os.path.rst:433 +#: ../Doc/library/os.path.rst:434 msgid "" "On Windows, splits a pathname into drive/UNC sharepoint and relative path." msgstr "" -#: ../Doc/library/os.path.rst:435 +#: ../Doc/library/os.path.rst:436 msgid "" "If the path contains a drive letter, drive will contain everything up to and " "including the colon. e.g. ``splitdrive(\"c:/dir\")`` returns ``(\"c:\", \"/" "dir\")``" msgstr "" -#: ../Doc/library/os.path.rst:439 +#: ../Doc/library/os.path.rst:440 msgid "" "If the path contains a UNC path, drive will contain the host name and share, " "up to but not including the fourth separator. e.g. ``splitdrive(\"//host/" "computer/dir\")`` returns ``(\"//host/computer\", \"/dir\")``" msgstr "" -#: ../Doc/library/os.path.rst:449 +#: ../Doc/library/os.path.rst:450 msgid "" "Split the pathname *path* into a pair ``(root, ext)`` such that ``root + " "ext == path``, and *ext* is empty or begins with a period and contains at " @@ -430,7 +431,7 @@ msgid "" "cshrc')`` returns ``('.cshrc', '')``." msgstr "" -#: ../Doc/library/os.path.rst:460 +#: ../Doc/library/os.path.rst:461 msgid "" "``True`` if arbitrary Unicode strings can be used as file names (within " "limitations imposed by the file system)." diff --git a/library/pathlib.po b/library/pathlib.po index 8b7007fc8..5eb9ed9a2 100644 --- a/library/pathlib.po +++ b/library/pathlib.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-11-09 19:40+0100\n" "Last-Translator: Vincent Poulailleau \n" "Language-Team: FRENCH \n" @@ -631,11 +631,12 @@ msgstr "" #: ../Doc/library/pathlib.rst:721 msgid "" -"Glob the given *pattern* in the directory represented by this path, yielding " -"all matching files (of any kind)::" +"Glob the given relative *pattern* in the directory represented by this path, " +"yielding all matching files (of any kind)::" msgstr "" -"Globalise le *pattern* fourni dans le dossier représenté par ce chemin, " -"donnant tous les fichiers correspondants (de n'importe quelle sorte) ::" +"Globalise le *pattern* relatif fourni dans le dossier représenté par ce " +"chemin, donnant tous les fichiers correspondants (de n'importe quelle " +"sorte) ::" #: ../Doc/library/pathlib.rst:729 msgid "" @@ -926,11 +927,11 @@ msgstr "L'argument *strict*." #: ../Doc/library/pathlib.rst:973 msgid "" -"This is like calling :meth:`Path.glob` with \"``**``\" added in front of the " -"given *pattern*::" +"This is like calling :func:`Path.glob` with \"``**/``\" added in front of " +"the given relative *pattern*::" msgstr "" -"C'est similaire à appeler :meth:`Path.glob` avec \"``**``\" ajouté au début " -"de *pattern* ::" +"C'est similaire à appeler :func:`Path.glob` avec \"``**/``\" ajouté au début " +"du *pattern* relatif ::" #: ../Doc/library/pathlib.rst:986 msgid "Remove this directory. The directory must be empty." diff --git a/library/pdb.po b/library/pdb.po index 70034685f..1333a68e6 100644 --- a/library/pdb.po +++ b/library/pdb.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-03 17:52+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-09-28 19:18+0200\n" "Last-Translator: Stéphane Wirtel \n" "Language-Team: FRENCH \n" @@ -130,10 +130,16 @@ msgstr "" "débogueur en utilisant la commande :pdbcmd:`continue`." #: ../Doc/library/pdb.rst:79 +msgid "" +"The built-in :func:`breakpoint()`, when called with defaults, can be used " +"instead of ``import pdb; pdb.set_trace()``." +msgstr "" + +#: ../Doc/library/pdb.rst:83 msgid "The typical usage to inspect a crashed program is::" msgstr "L'usage typique pour inspecter un programme planté ::" -#: ../Doc/library/pdb.rst:97 +#: ../Doc/library/pdb.rst:101 msgid "" "The module defines the following functions; each enters the debugger in a " "slightly different way:" @@ -141,7 +147,7 @@ msgstr "" "Le module définit les fonctions suivantes; chacune entre dans le débogueur " "d'une manière légèrement différente:" -#: ../Doc/library/pdb.rst:102 +#: ../Doc/library/pdb.rst:106 msgid "" "Execute the *statement* (given as a string or a code object) under debugger " "control. The debugger prompt appears before any code is executed; you can " @@ -162,7 +168,7 @@ msgstr "" "dictionnaire du module :mod:`__main__` est utilisé. (Voir l'explication des " "fonctions intégrées :func:`exec` ou :func:`eval`.)" -#: ../Doc/library/pdb.rst:114 +#: ../Doc/library/pdb.rst:118 msgid "" "Evaluate the *expression* (given as a string or a code object) under " "debugger control. When :func:`runeval` returns, it returns the value of the " @@ -173,7 +179,7 @@ msgstr "" "retourne, elle renvoie la valeur de l'expression. Autrement cette fonction " "est similaire à la fonction :func:`run`." -#: ../Doc/library/pdb.rst:121 +#: ../Doc/library/pdb.rst:125 msgid "" "Call the *function* (a function or method object, not a string) with the " "given arguments. When :func:`runcall` returns, it returns whatever the " @@ -185,7 +191,7 @@ msgstr "" "retourne ce que l'appel de fonctionne a renvoyé. L'invite de débogage " "apparaît dès que la fonction est entrée." -#: ../Doc/library/pdb.rst:129 +#: ../Doc/library/pdb.rst:133 msgid "" "Enter the debugger at the calling stack frame. This is useful to hard-code " "a breakpoint at a given point in a program, even if the code is not " @@ -197,11 +203,11 @@ msgstr "" "autrement débogué (par exemple, quand une assertion échoue). S'il est donné, " "*header* est affiché sur la console juste avant que le débogage commence." -#: ../Doc/library/pdb.rst:134 +#: ../Doc/library/pdb.rst:138 msgid "The keyword-only argument *header*." msgstr "L’argument *keyword-only* *header*." -#: ../Doc/library/pdb.rst:140 +#: ../Doc/library/pdb.rst:144 msgid "" "Enter post-mortem debugging of the given *traceback* object. If no " "*traceback* is given, it uses the one of the exception that is currently " @@ -213,7 +219,7 @@ msgstr "" "traitement (une exception doit être gérée si la valeur par défaut doit être " "utilisée)." -#: ../Doc/library/pdb.rst:148 +#: ../Doc/library/pdb.rst:152 msgid "" "Enter post-mortem debugging of the traceback found in :data:`sys." "last_traceback`." @@ -221,7 +227,7 @@ msgstr "" "Entre le débogage post-mortem de la trace trouvé dans :data:`sys. " "last_traceback`." -#: ../Doc/library/pdb.rst:152 +#: ../Doc/library/pdb.rst:156 msgid "" "The ``run*`` functions and :func:`set_trace` are aliases for instantiating " "the :class:`Pdb` class and calling the method of the same name. If you want " @@ -231,11 +237,11 @@ msgstr "" "la classe :class:`Pdb` et appeler la méthode du même nom. Si vous souhaitez " "accéder à d'autres fonctionnalités, vous devez le faire vous-même ::" -#: ../Doc/library/pdb.rst:159 +#: ../Doc/library/pdb.rst:163 msgid ":class:`Pdb` is the debugger class." msgstr "Le classe du débogueur est la classe :class:`Pdb`." -#: ../Doc/library/pdb.rst:161 +#: ../Doc/library/pdb.rst:165 msgid "" "The *completekey*, *stdin* and *stdout* arguments are passed to the " "underlying :class:`cmd.Cmd` class; see the description there." @@ -243,7 +249,7 @@ msgstr "" "Les arguments *completekey*, *stdin* et *stdout* sont transmis à la classe " "sous-jacente :class:`cmd.Cmd`; voir la description ici." -#: ../Doc/library/pdb.rst:164 +#: ../Doc/library/pdb.rst:168 msgid "" "The *skip* argument, if given, must be an iterable of glob-style module name " "patterns. The debugger will not step into frames that originate in a module " @@ -253,7 +259,7 @@ msgstr "" "de style *glob*. Le débogueur n'entrera pas dans les *frames* qui " "proviennent d'un module qui correspond à l'un de ces motifs. [1]_" -#: ../Doc/library/pdb.rst:168 +#: ../Doc/library/pdb.rst:172 msgid "" "By default, Pdb sets a handler for the SIGINT signal (which is sent when the " "user presses :kbd:`Ctrl-C` on the console) when you give a ``continue`` " @@ -267,7 +273,7 @@ msgstr "" "à nouveau dans le débogueur en appuyant sur :kbd:`Ctrl-C`. Si vous voulez " "que Pdb ne touche pas le gestionnaire SIGINT, assignez *nosigint* à *True*." -#: ../Doc/library/pdb.rst:173 +#: ../Doc/library/pdb.rst:177 msgid "" "The *readrc* argument defaults to true and controls whether Pdb will load ." "pdbrc files from the filesystem." @@ -275,34 +281,34 @@ msgstr "" "L'argument *readrc* vaut *True* par défaut et contrôle si Pdb chargera les " "fichiers *.pdbrc* depuis le système de fichiers." -#: ../Doc/library/pdb.rst:176 +#: ../Doc/library/pdb.rst:180 msgid "Example call to enable tracing with *skip*::" msgstr "Exemple d'appel pour activer le traçage avec *skip* ::" -#: ../Doc/library/pdb.rst:180 +#: ../Doc/library/pdb.rst:184 msgid "The *skip* argument." msgstr "L'argument *skip*." -#: ../Doc/library/pdb.rst:183 +#: ../Doc/library/pdb.rst:187 msgid "" "The *nosigint* argument. Previously, a SIGINT handler was never set by Pdb." msgstr "" "L'argument *nosigint*. Auparavant, un gestionnaire SIGINT n'était jamais " "configuré par Pdb." -#: ../Doc/library/pdb.rst:187 +#: ../Doc/library/pdb.rst:191 msgid "The *readrc* argument." msgstr "L'argument *readrc*." -#: ../Doc/library/pdb.rst:195 +#: ../Doc/library/pdb.rst:199 msgid "See the documentation for the functions explained above." msgstr "Voir la documentation pour les fonctions expliquées ci-dessus." -#: ../Doc/library/pdb.rst:201 +#: ../Doc/library/pdb.rst:205 msgid "Debugger Commands" msgstr "Commande du débogueur" -#: ../Doc/library/pdb.rst:203 +#: ../Doc/library/pdb.rst:207 msgid "" "The commands recognized by the debugger are listed below. Most commands can " "be abbreviated to one or two letters as indicated; e.g. ``h(elp)`` means " @@ -323,7 +329,7 @@ msgstr "" "pas être insérés. Les alternatives dans la syntaxe de la commande sont " "séparés par une barre verticale (``|``)." -#: ../Doc/library/pdb.rst:212 +#: ../Doc/library/pdb.rst:216 msgid "" "Entering a blank line repeats the last command entered. Exception: if the " "last command was a :pdbcmd:`list` command, the next 11 lines are listed." @@ -332,7 +338,7 @@ msgstr "" "dernière commande était la commande :pdbcmd:`list`, les 11 prochaines lignes " "sont affichées." -#: ../Doc/library/pdb.rst:215 +#: ../Doc/library/pdb.rst:219 msgid "" "Commands that the debugger doesn't recognize are assumed to be Python " "statements and are executed in the context of the program being debugged. " @@ -351,7 +357,7 @@ msgstr "" "instruction, le nom de l'exception est affiché mais l'état du débogueur " "n'est pas modifié." -#: ../Doc/library/pdb.rst:223 +#: ../Doc/library/pdb.rst:227 msgid "" "The debugger supports :ref:`aliases `. Aliases can have " "parameters which allows one a certain level of adaptability to the context " @@ -361,7 +367,7 @@ msgstr "" "avoir des paramètres qui permettent un certain niveau d'adaptabilité au " "contexte étudié." -#: ../Doc/library/pdb.rst:227 +#: ../Doc/library/pdb.rst:231 msgid "" "Multiple commands may be entered on a single line, separated by ``;;``. (A " "single ``;`` is not used as it is the separator for multiple commands in a " @@ -376,7 +382,7 @@ msgstr "" "divisée à la première paire de ``;;`` paire, même si il est au milieu d'une " "chaîne de caractères." -#: ../Doc/library/pdb.rst:237 +#: ../Doc/library/pdb.rst:241 msgid "" "If a file :file:`.pdbrc` exists in the user's home directory or in the " "current directory, it is read in and executed as if it had been typed at the " @@ -391,7 +397,7 @@ msgstr "" "en premier et les alias définit là peuvent être surchargés par le fichier " "local." -#: ../Doc/library/pdb.rst:243 +#: ../Doc/library/pdb.rst:247 msgid "" ":file:`.pdbrc` can now contain commands that continue debugging, such as :" "pdbcmd:`continue` or :pdbcmd:`next`. Previously, these commands had no " @@ -401,7 +407,7 @@ msgstr "" "continue le débogage, comme :pdbcmd:`continue` ou :pdbcmd:`next`. " "Précédemment, ces commandes n'avaient aucun effet." -#: ../Doc/library/pdb.rst:251 +#: ../Doc/library/pdb.rst:255 msgid "" "Without argument, print the list of available commands. With a *command* as " "argument, print help about that command. ``help pdb`` displays the full " @@ -415,7 +421,7 @@ msgstr "" "Puisque l'argument *command* doit être un identificateur, ``help exec`` doit " "être entré pour obtenir de l'aide sur la commande ``!``." -#: ../Doc/library/pdb.rst:259 +#: ../Doc/library/pdb.rst:263 msgid "" "Print a stack trace, with the most recent frame at the bottom. An arrow " "indicates the current frame, which determines the context of most commands." @@ -424,7 +430,7 @@ msgstr "" "indique le *frame* courant, qui détermine le contexte de la plupart des " "commandes." -#: ../Doc/library/pdb.rst:264 +#: ../Doc/library/pdb.rst:268 msgid "" "Move the current frame *count* (default one) levels down in the stack trace " "(to a newer frame)." @@ -432,7 +438,7 @@ msgstr "" "Déplace le niveau de la *frame* courante *count* (par défaut un) vers le bas " "dans la trace de pile (vers une *frame* plus récente)." -#: ../Doc/library/pdb.rst:269 +#: ../Doc/library/pdb.rst:273 msgid "" "Move the current frame *count* (default one) levels up in the stack trace " "(to an older frame)." @@ -440,7 +446,7 @@ msgstr "" "Déplace le niveau de la *frame* courante *count* (par défaut un) vers le " "haut dans la trace de pile (vers une *frame* plus ancienne)." -#: ../Doc/library/pdb.rst:274 +#: ../Doc/library/pdb.rst:278 msgid "" "With a *lineno* argument, set a break there in the current file. With a " "*function* argument, set a break at the first executable statement within " @@ -458,7 +464,7 @@ msgstr "" "est recherché sur :data:`sys.path`. Notez que chaque point d'arrêt reçoit un " "numéro auquel se réfèrent toutes les autres commandes de point d'arrêt." -#: ../Doc/library/pdb.rst:281 +#: ../Doc/library/pdb.rst:285 msgid "" "If a second argument is present, it is an expression which must evaluate to " "true before the breakpoint is honored." @@ -466,7 +472,7 @@ msgstr "" "Si un second argument est présent, c'est une expression qui doit évaluer à " "*True* avant que le point d'arrêt ne soit honoré." -#: ../Doc/library/pdb.rst:284 +#: ../Doc/library/pdb.rst:288 msgid "" "Without argument, list all breaks, including for each breakpoint, the number " "of times that breakpoint has been hit, the current ignore count, and the " @@ -476,7 +482,7 @@ msgstr "" "nombre de fois qu'un point d'arrêt a été atteint, le nombre de ignore, et la " "condition associée le cas échéant." -#: ../Doc/library/pdb.rst:290 +#: ../Doc/library/pdb.rst:294 msgid "" "Temporary breakpoint, which is removed automatically when it is first hit. " "The arguments are the same as for :pdbcmd:`break`." @@ -484,7 +490,7 @@ msgstr "" "Point d'arrêt temporaire, qui est enlevé automatiquement au premier passage. " "Les arguments sont les mêmes que pour :pdbcmd:`break`." -#: ../Doc/library/pdb.rst:295 +#: ../Doc/library/pdb.rst:299 msgid "" "With a *filename:lineno* argument, clear all the breakpoints at this line. " "With a space separated list of breakpoint numbers, clear those breakpoints. " @@ -495,7 +501,7 @@ msgstr "" "efface ces points d'arrêt. Sans argument, efface tous les points d'arrêt " "(mais demande d'abord confirmation)." -#: ../Doc/library/pdb.rst:301 +#: ../Doc/library/pdb.rst:305 msgid "" "Disable the breakpoints given as a space separated list of breakpoint " "numbers. Disabling a breakpoint means it cannot cause the program to stop " @@ -508,11 +514,11 @@ msgstr "" "différence d'effacer un point d'arrêt, il reste dans la liste des points " "d'arrêt et peut être (ré)activé." -#: ../Doc/library/pdb.rst:308 +#: ../Doc/library/pdb.rst:312 msgid "Enable the breakpoints specified." msgstr "Active les points d'arrêt spécifiés." -#: ../Doc/library/pdb.rst:312 +#: ../Doc/library/pdb.rst:316 msgid "" "Set the ignore count for the given breakpoint number. If count is omitted, " "the ignore count is set to 0. A breakpoint becomes active when the ignore " @@ -526,7 +532,7 @@ msgstr "" "fois que le point d'arrêt est atteint et que le point d'arrêt n'est pas " "désactivé et que toute condition associée est évaluée comme vraie." -#: ../Doc/library/pdb.rst:320 +#: ../Doc/library/pdb.rst:324 msgid "" "Set a new *condition* for the breakpoint, an expression which must evaluate " "to true before the breakpoint is honored. If *condition* is absent, any " @@ -537,7 +543,7 @@ msgstr "" "*condition* est absente, toute condition existante est supprimée, c'est-à-" "dire que le point d'arrêt est rendu inconditionnel." -#: ../Doc/library/pdb.rst:326 +#: ../Doc/library/pdb.rst:330 msgid "" "Specify a list of commands for breakpoint number *bpnumber*. The commands " "themselves appear on the following lines. Type a line containing just " @@ -547,7 +553,7 @@ msgstr "" "Les commandes elles-mêmes apparaissent sur les lignes suivantes. Tapez une " "ligne contenant juste ``end`` pour terminer les commandes. Un exemple ::" -#: ../Doc/library/pdb.rst:335 +#: ../Doc/library/pdb.rst:339 msgid "" "To remove all commands from a breakpoint, type ``commands`` and follow it " "immediately with ``end``; that is, give no commands." @@ -555,14 +561,14 @@ msgstr "" "Pour supprimer toutes les commandes depuis un point d'arrêt, écrivez " "``commands`` suivi immédiatement de ``end`` ; ceci supprime les commandes." -#: ../Doc/library/pdb.rst:338 +#: ../Doc/library/pdb.rst:342 msgid "" "With no *bpnumber* argument, ``commands`` refers to the last breakpoint set." msgstr "" "Sans argument *bpnumber*, ``commands`` se réfère au dernier point d'arrêt " "défini." -#: ../Doc/library/pdb.rst:340 +#: ../Doc/library/pdb.rst:344 msgid "" "You can use breakpoint commands to start your program up again. Simply use " "the :pdbcmd:`continue` command, or :pdbcmd:`step`, or any other command that " @@ -572,7 +578,7 @@ msgstr "" "programme. Utilisez simplement la commande :pdbcmd:`continue`, ou :pdbcmd:" "`step`, ou toute autre commande qui reprend l'exécution." -#: ../Doc/library/pdb.rst:344 +#: ../Doc/library/pdb.rst:348 msgid "" "Specifying any command resuming execution (currently :pdbcmd:`continue`, :" "pdbcmd:`step`, :pdbcmd:`next`, :pdbcmd:`return`, :pdbcmd:`jump`, :pdbcmd:" @@ -591,7 +597,7 @@ msgstr "" "sa propre liste de commandes, conduisant à des ambiguïtés sur la liste à " "exécuter." -#: ../Doc/library/pdb.rst:353 +#: ../Doc/library/pdb.rst:357 msgid "" "If you use the 'silent' command in the command list, the usual message about " "stopping at a breakpoint is not printed. This may be desirable for " @@ -606,7 +612,7 @@ msgstr "" "n'affiche quoi que ce soit, vous ne voyez aucun signe indiquant que le point " "de rupture a été atteint." -#: ../Doc/library/pdb.rst:360 +#: ../Doc/library/pdb.rst:364 msgid "" "Execute the current line, stop at the first possible occasion (either in a " "function that is called or on the next line in the current function)." @@ -615,7 +621,7 @@ msgstr "" "dans une fonction qui est appelée, soit sur la ligne suivante de la fonction " "courante)." -#: ../Doc/library/pdb.rst:365 +#: ../Doc/library/pdb.rst:369 msgid "" "Continue execution until the next line in the current function is reached or " "it returns. (The difference between :pdbcmd:`next` and :pdbcmd:`step` is " @@ -629,7 +635,7 @@ msgstr "" "tandis que :pdbcmd:`next` exécute les fonctions appelées à (presque) pleine " "vitesse, ne s'arrêtant qu'à la ligne suivante dans la fonction courante.)" -#: ../Doc/library/pdb.rst:373 +#: ../Doc/library/pdb.rst:377 msgid "" "Without argument, continue execution until the line with a number greater " "than the current one is reached." @@ -637,7 +643,7 @@ msgstr "" "Sans argument, continue l'exécution jusqu'à ce que la ligne avec un nombre " "supérieur au nombre actuel soit atteinte." -#: ../Doc/library/pdb.rst:376 +#: ../Doc/library/pdb.rst:380 msgid "" "With a line number, continue execution until a line with a number greater or " "equal to that is reached. In both cases, also stop when the current frame " @@ -647,21 +653,21 @@ msgstr "" "un numéro supérieur ou égal à celui-ci soit atteinte. Dans les deux cas, " "arrête également lorsque la *frame* courante revient." -#: ../Doc/library/pdb.rst:380 +#: ../Doc/library/pdb.rst:384 msgid "Allow giving an explicit line number." msgstr "Permet de donner un numéro de ligne explicite." -#: ../Doc/library/pdb.rst:385 +#: ../Doc/library/pdb.rst:389 msgid "Continue execution until the current function returns." msgstr "Continue l'exécution jusqu'au retour de la fonction courante." -#: ../Doc/library/pdb.rst:389 +#: ../Doc/library/pdb.rst:393 msgid "Continue execution, only stop when a breakpoint is encountered." msgstr "" "Continue l'exécution, seulement s'arrête quand un point d'arrêt est " "rencontré." -#: ../Doc/library/pdb.rst:393 +#: ../Doc/library/pdb.rst:397 msgid "" "Set the next line that will be executed. Only available in the bottom-most " "frame. This lets you jump back and execute code again, or jump forward to " @@ -672,7 +678,7 @@ msgstr "" "nouveau le code, ou de passer en avant pour sauter le code que vous ne " "voulez pas exécuter." -#: ../Doc/library/pdb.rst:397 +#: ../Doc/library/pdb.rst:401 msgid "" "It should be noted that not all jumps are allowed -- for instance it is not " "possible to jump into the middle of a :keyword:`for` loop or out of a :" @@ -682,7 +688,7 @@ msgstr "" "n'est pas possible de sauter au milieu d'une boucle :keyword:`for` ou en " "dehors d'une clause :keyword:`finally`." -#: ../Doc/library/pdb.rst:403 +#: ../Doc/library/pdb.rst:407 msgid "" "List source code for the current file. Without arguments, list 11 lines " "around the current line or continue the previous listing. With ``.`` as " @@ -697,7 +703,7 @@ msgstr "" "liste la plage donnée; si le second argument est inférieur au premier, il " "est interprété comme un compte." -#: ../Doc/library/pdb.rst:409 +#: ../Doc/library/pdb.rst:413 msgid "" "The current line in the current frame is indicated by ``->``. If an " "exception is being debugged, the line where the exception was originally " @@ -709,11 +715,11 @@ msgstr "" "initialement levée ou propagée est indiquée par ``>>``, si elle diffère de " "la ligne courante." -#: ../Doc/library/pdb.rst:414 +#: ../Doc/library/pdb.rst:418 msgid "The ``>>`` marker." msgstr "Le marqueur ``>>``." -#: ../Doc/library/pdb.rst:419 +#: ../Doc/library/pdb.rst:423 msgid "" "List all source code for the current function or frame. Interesting lines " "are marked as for :pdbcmd:`list`." @@ -721,15 +727,15 @@ msgstr "" "Liste le code source de la fonction ou du bloc courant. Les lignes " "intéressantes sont marquées comme pour :pdbcmd:`list`." -#: ../Doc/library/pdb.rst:426 +#: ../Doc/library/pdb.rst:430 msgid "Print the argument list of the current function." msgstr "Affiche la liste d'arguments de la fonction courante." -#: ../Doc/library/pdb.rst:430 +#: ../Doc/library/pdb.rst:434 msgid "Evaluate the *expression* in the current context and print its value." msgstr "Évalue l'*expression* dans le contexte courant et affiche sa valeur." -#: ../Doc/library/pdb.rst:434 +#: ../Doc/library/pdb.rst:438 msgid "" "``print()`` can also be used, but is not a debugger command --- this " "executes the Python :func:`print` function." @@ -737,7 +743,7 @@ msgstr "" "``print()`` peut aussi être utilisée, mais n'est pas une commande du " "débogueur --- il exécute la fonction Python :func:`print`." -#: ../Doc/library/pdb.rst:440 +#: ../Doc/library/pdb.rst:444 msgid "" "Like the :pdbcmd:`p` command, except the value of the expression is pretty-" "printed using the :mod:`pprint` module." @@ -745,15 +751,15 @@ msgstr "" "Comme la commande :pdbcmd:`p`, sauf que la valeur de l'expression est " "joliment affiché en utilisant le module :mod:`pprint`." -#: ../Doc/library/pdb.rst:445 +#: ../Doc/library/pdb.rst:449 msgid "Print the type of the *expression*." msgstr "Affiche le type de l'*expression*." -#: ../Doc/library/pdb.rst:449 +#: ../Doc/library/pdb.rst:453 msgid "Try to get source code for the given object and display it." msgstr "Essaie d'obtenir le code source pour l'objet donné et l'affiche." -#: ../Doc/library/pdb.rst:455 +#: ../Doc/library/pdb.rst:459 msgid "" "Display the value of the expression if it changed, each time execution stops " "in the current frame." @@ -761,12 +767,12 @@ msgstr "" "Affiche la valeur de l'expression si elle a changée, chaque fois que " "l'exécution s'arrête dans la *frame* courante." -#: ../Doc/library/pdb.rst:458 +#: ../Doc/library/pdb.rst:462 msgid "Without expression, list all display expressions for the current frame." msgstr "" "Sans expression, liste toutes les expressions pour la *frame* courante." -#: ../Doc/library/pdb.rst:464 +#: ../Doc/library/pdb.rst:468 msgid "" "Do not display the expression any more in the current frame. Without " "expression, clear all display expressions for the current frame." @@ -774,7 +780,7 @@ msgstr "" "N'affiche plus l'expression dans la *frame* courante. Sans expression, " "efface toutes les expressions d'affichage de la *frame* courante." -#: ../Doc/library/pdb.rst:471 +#: ../Doc/library/pdb.rst:475 msgid "" "Start an interactive interpreter (using the :mod:`code` module) whose global " "namespace contains all the (global and local) names found in the current " @@ -784,7 +790,7 @@ msgstr "" "l'espace de nommage global contient tous les noms (*global* et *local*) " "trouvés dans la portée courante." -#: ../Doc/library/pdb.rst:481 +#: ../Doc/library/pdb.rst:485 msgid "" "Create an alias called *name* that executes *command*. The command must " "*not* be enclosed in quotes. Replaceable parameters can be indicated by ``" @@ -799,7 +805,7 @@ msgstr "" "courant pour *name* est affiché. Si aucun argument n'est donné, tous les " "alias sont listés." -#: ../Doc/library/pdb.rst:487 +#: ../Doc/library/pdb.rst:491 msgid "" "Aliases may be nested and can contain anything that can be legally typed at " "the pdb prompt. Note that internal pdb commands *can* be overridden by " @@ -814,7 +820,7 @@ msgstr "" "récursivement au premier mot de la ligne de commande; tous les autres mots " "de la ligne sont laissés seuls." -#: ../Doc/library/pdb.rst:493 +#: ../Doc/library/pdb.rst:497 msgid "" "As an example, here are two useful aliases (especially when placed in the :" "file:`.pdbrc` file)::" @@ -822,11 +828,11 @@ msgstr "" "Comme un exemple, voici deux alias utiles (spécialement quand il est placé " "dans le fichier :file:`.pdbrc`) ::" -#: ../Doc/library/pdb.rst:503 +#: ../Doc/library/pdb.rst:507 msgid "Delete the specified alias." msgstr "Supprime l'alias spécifié." -#: ../Doc/library/pdb.rst:507 +#: ../Doc/library/pdb.rst:511 msgid "" "Execute the (one-line) *statement* in the context of the current stack " "frame. The exclamation point can be omitted unless the first word of the " @@ -840,7 +846,7 @@ msgstr "" "définir une variable globale, vous pouvez préfixer la commande d'assignation " "avec une instruction :keyword:`global` sur la même ligne, par exemple ::" -#: ../Doc/library/pdb.rst:519 +#: ../Doc/library/pdb.rst:523 msgid "" "Restart the debugged Python program. If an argument is supplied, it is " "split with :mod:`shlex` and the result is used as the new :data:`sys.argv`. " @@ -852,15 +858,15 @@ msgstr "" "`sys.argv`. L'historique, les points d'arrêt, les actions et les options du " "débogueur sont préservés. :pdbcmd:`restart` est un alias pour :pdbcmd:`run`." -#: ../Doc/library/pdb.rst:526 +#: ../Doc/library/pdb.rst:530 msgid "Quit from the debugger. The program being executed is aborted." msgstr "Quitte le débogueur. Le programme exécuté est arrêté." -#: ../Doc/library/pdb.rst:530 +#: ../Doc/library/pdb.rst:534 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/pdb.rst:531 +#: ../Doc/library/pdb.rst:535 msgid "" "Whether a frame is considered to originate in a certain module is determined " "by the ``__name__`` in the frame globals." diff --git a/library/pickle.po b/library/pickle.po index 357b29dd4..97919e240 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-26 12:09+0100\n" +"Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: \n" "X-Generator: Poedit 2.0.6\n" #: ../Doc/library/pickle.rst:2 diff --git a/library/random.po b/library/random.po index 5ae054cb5..be851e79e 100644 --- a/library/random.po +++ b/library/random.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-05-27 19:40+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-12-06 22:18+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -264,23 +264,33 @@ msgid "" "integers, floats, and fractions but excludes decimals)." msgstr "" -#: ../Doc/library/random.rst:170 +#: ../Doc/library/random.rst:165 +msgid "" +"For a given seed, the :func:`choices` function with equal weighting " +"typically produces a different sequence than repeated calls to :func:" +"`choice`. The algorithm used by :func:`choices` uses floating point " +"arithmetic for internal consistency and speed. The algorithm used by :func:" +"`choice` defaults to integer arithmetic with repeated selections to avoid " +"small biases from round-off error." +msgstr "" + +#: ../Doc/library/random.rst:177 msgid "Shuffle the sequence *x* in place." msgstr "" -#: ../Doc/library/random.rst:172 +#: ../Doc/library/random.rst:179 msgid "" "The optional argument *random* is a 0-argument function returning a random " "float in [0.0, 1.0); by default, this is the function :func:`.random`." msgstr "" -#: ../Doc/library/random.rst:175 +#: ../Doc/library/random.rst:182 msgid "" "To shuffle an immutable sequence and return a new shuffled list, use " "``sample(x, k=len(x))`` instead." msgstr "" -#: ../Doc/library/random.rst:178 +#: ../Doc/library/random.rst:185 msgid "" "Note that even for small ``len(x)``, the total number of permutations of *x* " "can quickly grow larger than the period of most random number generators. " @@ -289,13 +299,13 @@ msgid "" "fit within the period of the Mersenne Twister random number generator." msgstr "" -#: ../Doc/library/random.rst:187 +#: ../Doc/library/random.rst:194 msgid "" "Return a *k* length list of unique elements chosen from the population " "sequence or set. Used for random sampling without replacement." msgstr "" -#: ../Doc/library/random.rst:190 +#: ../Doc/library/random.rst:197 msgid "" "Returns a new list containing elements from the population while leaving the " "original population unchanged. The resulting list is in selection order so " @@ -304,31 +314,31 @@ msgid "" "winners (the subslices)." msgstr "" -#: ../Doc/library/random.rst:196 +#: ../Doc/library/random.rst:203 msgid "" "Members of the population need not be :term:`hashable` or unique. If the " "population contains repeats, then each occurrence is a possible selection in " "the sample." msgstr "" -#: ../Doc/library/random.rst:199 +#: ../Doc/library/random.rst:206 msgid "" "To choose a sample from a range of integers, use a :func:`range` object as " "an argument. This is especially fast and space efficient for sampling from " "a large population: ``sample(range(10000000), k=60)``." msgstr "" -#: ../Doc/library/random.rst:203 +#: ../Doc/library/random.rst:210 msgid "" "If the sample size is larger than the population size, a :exc:`ValueError` " "is raised." msgstr "" -#: ../Doc/library/random.rst:207 +#: ../Doc/library/random.rst:214 msgid "Real-valued distributions" msgstr "" -#: ../Doc/library/random.rst:209 +#: ../Doc/library/random.rst:216 msgid "" "The following functions generate specific real-valued distributions. " "Function parameters are named after the corresponding variables in the " @@ -336,23 +346,23 @@ msgid "" "these equations can be found in any statistics text." msgstr "" -#: ../Doc/library/random.rst:217 +#: ../Doc/library/random.rst:224 msgid "Return the next random floating point number in the range [0.0, 1.0)." msgstr "" -#: ../Doc/library/random.rst:222 +#: ../Doc/library/random.rst:229 msgid "" "Return a random floating point number *N* such that ``a <= N <= b`` for ``a " "<= b`` and ``b <= N <= a`` for ``b < a``." msgstr "" -#: ../Doc/library/random.rst:225 +#: ../Doc/library/random.rst:232 msgid "" "The end-point value ``b`` may or may not be included in the range depending " "on floating-point rounding in the equation ``a + (b-a) * random()``." msgstr "" -#: ../Doc/library/random.rst:231 +#: ../Doc/library/random.rst:238 msgid "" "Return a random floating point number *N* such that ``low <= N <= high`` and " "with the specified *mode* between those bounds. The *low* and *high* bounds " @@ -360,13 +370,13 @@ msgid "" "between the bounds, giving a symmetric distribution." msgstr "" -#: ../Doc/library/random.rst:239 +#: ../Doc/library/random.rst:246 msgid "" "Beta distribution. Conditions on the parameters are ``alpha > 0`` and " "``beta > 0``. Returned values range between 0 and 1." msgstr "" -#: ../Doc/library/random.rst:245 +#: ../Doc/library/random.rst:252 msgid "" "Exponential distribution. *lambd* is 1.0 divided by the desired mean. It " "should be nonzero. (The parameter would be called \"lambda\", but that is a " @@ -375,24 +385,24 @@ msgid "" "negative." msgstr "" -#: ../Doc/library/random.rst:254 +#: ../Doc/library/random.rst:261 msgid "" "Gamma distribution. (*Not* the gamma function!) Conditions on the " "parameters are ``alpha > 0`` and ``beta > 0``." msgstr "" -#: ../Doc/library/random.rst:257 +#: ../Doc/library/random.rst:264 msgid "The probability distribution function is::" msgstr "" -#: ../Doc/library/random.rst:266 +#: ../Doc/library/random.rst:273 msgid "" "Gaussian distribution. *mu* is the mean, and *sigma* is the standard " "deviation. This is slightly faster than the :func:`normalvariate` function " "defined below." msgstr "" -#: ../Doc/library/random.rst:273 +#: ../Doc/library/random.rst:280 msgid "" "Log normal distribution. If you take the natural logarithm of this " "distribution, you'll get a normal distribution with mean *mu* and standard " @@ -400,13 +410,13 @@ msgid "" "than zero." msgstr "" -#: ../Doc/library/random.rst:281 +#: ../Doc/library/random.rst:288 msgid "" "Normal distribution. *mu* is the mean, and *sigma* is the standard " "deviation." msgstr "" -#: ../Doc/library/random.rst:286 +#: ../Doc/library/random.rst:293 msgid "" "*mu* is the mean angle, expressed in radians between 0 and 2\\*\\ *pi*, and " "*kappa* is the concentration parameter, which must be greater than or equal " @@ -414,21 +424,21 @@ msgid "" "uniform random angle over the range 0 to 2\\*\\ *pi*." msgstr "" -#: ../Doc/library/random.rst:294 +#: ../Doc/library/random.rst:301 msgid "Pareto distribution. *alpha* is the shape parameter." msgstr "" -#: ../Doc/library/random.rst:299 +#: ../Doc/library/random.rst:306 msgid "" "Weibull distribution. *alpha* is the scale parameter and *beta* is the " "shape parameter." msgstr "" -#: ../Doc/library/random.rst:304 +#: ../Doc/library/random.rst:311 msgid "Alternative Generator" msgstr "" -#: ../Doc/library/random.rst:308 +#: ../Doc/library/random.rst:315 msgid "" "Class that uses the :func:`os.urandom` function for generating random " "numbers from sources provided by the operating system. Not available on all " @@ -438,11 +448,11 @@ msgid "" "`NotImplementedError` if called." msgstr "" -#: ../Doc/library/random.rst:317 +#: ../Doc/library/random.rst:324 msgid "Notes on Reproducibility" msgstr "" -#: ../Doc/library/random.rst:319 +#: ../Doc/library/random.rst:326 msgid "" "Sometimes it is useful to be able to reproduce the sequences given by a " "pseudo random number generator. By re-using a seed value, the same sequence " @@ -450,44 +460,44 @@ msgid "" "running." msgstr "" -#: ../Doc/library/random.rst:323 +#: ../Doc/library/random.rst:330 msgid "" "Most of the random module's algorithms and seeding functions are subject to " "change across Python versions, but two aspects are guaranteed not to change:" msgstr "" -#: ../Doc/library/random.rst:326 +#: ../Doc/library/random.rst:333 msgid "" "If a new seeding method is added, then a backward compatible seeder will be " "offered." msgstr "" -#: ../Doc/library/random.rst:329 +#: ../Doc/library/random.rst:336 msgid "" "The generator's :meth:`~Random.random` method will continue to produce the " "same sequence when the compatible seeder is given the same seed." msgstr "" -#: ../Doc/library/random.rst:335 +#: ../Doc/library/random.rst:342 msgid "Examples and Recipes" msgstr "" -#: ../Doc/library/random.rst:337 +#: ../Doc/library/random.rst:344 msgid "Basic examples::" msgstr "Utilisation basique : ::" -#: ../Doc/library/random.rst:365 +#: ../Doc/library/random.rst:372 msgid "Simulations::" msgstr "" -#: ../Doc/library/random.rst:390 +#: ../Doc/library/random.rst:401 msgid "" "Example of `statistical bootstrapping `_ using resampling with replacement to estimate " "a confidence interval for the mean of a sample of size five::" msgstr "" -#: ../Doc/library/random.rst:404 +#: ../Doc/library/random.rst:415 msgid "" "Example of a `resampling permutation test `_ to determine the statistical " @@ -495,12 +505,12 @@ msgid "" "observed difference between the effects of a drug versus a placebo::" msgstr "" -#: ../Doc/library/random.rst:431 +#: ../Doc/library/random.rst:442 msgid "" "Simulation of arrival times and service deliveries in a single server queue::" msgstr "" -#: ../Doc/library/random.rst:462 +#: ../Doc/library/random.rst:473 msgid "" "`Statistics for Hackers `_ a " "video tutorial by `Jake Vanderplas `_ a simulation of a marketplace by `Peter Norvig `_ a tutorial by `Peter " diff --git a/library/re.po b/library/re.po index d6f7d809b..e2406ac58 100644 --- a/library/re.po +++ b/library/re.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-12-07 18:54+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -209,7 +209,7 @@ msgstr "" msgid "The special characters are:" msgstr "Les caractères spéciaux sont :" -#: ../Doc/library/re.rst:101 ../Doc/library/re.rst:1398 +#: ../Doc/library/re.rst:101 ../Doc/library/re.rst:1403 msgid "``.``" msgstr "``.``" @@ -782,11 +782,11 @@ msgstr "``(?#...)``" msgid "A comment; the contents of the parentheses are simply ignored." msgstr "Un commentaire ; le contenu des parenthèses est simplement ignoré." -#: ../Doc/library/re.rst:374 +#: ../Doc/library/re.rst:376 msgid "``(?=...)``" msgstr "``(?=...)``" -#: ../Doc/library/re.rst:372 +#: ../Doc/library/re.rst:374 msgid "" "Matches if ``...`` matches next, but doesn't consume any of the string. " "This is called a :dfn:`lookahead assertion`. For example, ``Isaac (?" @@ -797,11 +797,11 @@ msgstr "" "=Asimov)`` correspondra à la chaîne ``'Isaac' `` seulement si elle est " "suivie par ``'Asimov'``." -#: ../Doc/library/re.rst:381 +#: ../Doc/library/re.rst:383 msgid "``(?!...)``" msgstr "``(?!...)``" -#: ../Doc/library/re.rst:379 +#: ../Doc/library/re.rst:381 msgid "" "Matches if ``...`` doesn't match next. This is a :dfn:`negative lookahead " "assertion`. For example, ``Isaac (?!Asimov)`` will match ``'Isaac '`` only " @@ -811,11 +811,11 @@ msgstr "" "`negative lookahead`. Par exemple, ``Isaac (?!Asimov)`` correspondra à la " "chaîne ``'Isaac '`` seulement si elle *n'est pas* suivie par ``'Asimov'``." -#: ../Doc/library/re.rst:408 +#: ../Doc/library/re.rst:410 msgid "``(?<=...)``" msgstr "``(?<=...)``" -#: ../Doc/library/re.rst:386 +#: ../Doc/library/re.rst:388 msgid "" "Matches if the current position in the string is preceded by a match for " "``...`` that ends at the current position. This is called a :dfn:`positive " @@ -840,19 +840,19 @@ msgstr "" "préférerez sûrement utiliser la fonction :func:`search` plutôt que la " "fonction :func:`match` :" -#: ../Doc/library/re.rst:401 +#: ../Doc/library/re.rst:403 msgid "This example looks for a word following a hyphen:" msgstr "Cet exemple recherche un mot suivi d'un trait d'union :" -#: ../Doc/library/re.rst:407 +#: ../Doc/library/re.rst:409 msgid "Added support for group references of fixed length." msgstr "Ajout du support des références aux groupes de taille fixe." -#: ../Doc/library/re.rst:417 +#: ../Doc/library/re.rst:419 msgid "``(?'`` ainsi que ``'user@host.com'`` " "mais pas ``''``." -#: ../Doc/library/re.rst:428 +#: ../Doc/library/re.rst:430 msgid "" "The special sequences consist of ``'\\'`` and a character from the list " "below. If the ordinary character is not an ASCII digit or an ASCII letter, " @@ -900,11 +900,11 @@ msgstr "" "second caractère de la séquence. Par exemple, ``\\$`` correspond au " "caractère ``'$'``." -#: ../Doc/library/re.rst:443 +#: ../Doc/library/re.rst:445 msgid "``\\number``" msgstr "``\\number``" -#: ../Doc/library/re.rst:436 +#: ../Doc/library/re.rst:438 msgid "" "Matches the contents of the group of the same number. Groups are numbered " "starting from 1. For example, ``(.+) \\1`` matches ``'the the'`` or ``'55 " @@ -925,19 +925,19 @@ msgstr "" "À l'intérieur des ``'['`` et ``']'`` d'une classe de caractères, tous les " "échappements numériques sont traités comme des caractères." -#: ../Doc/library/re.rst:448 +#: ../Doc/library/re.rst:450 msgid "``\\A``" msgstr "``\\A``" -#: ../Doc/library/re.rst:448 +#: ../Doc/library/re.rst:450 msgid "Matches only at the start of the string." msgstr "Correspond uniquement au début d'une chaîne de caractères." -#: ../Doc/library/re.rst:464 +#: ../Doc/library/re.rst:466 msgid "``\\b``" msgstr "``\\b``" -#: ../Doc/library/re.rst:453 +#: ../Doc/library/re.rst:455 msgid "" "Matches the empty string, but only at the beginning or end of a word. A word " "is defined as a sequence of word characters. Note that formally, ``\\b`` is " @@ -953,7 +953,7 @@ msgstr "" "que ``r'\\bfoo\\b'`` validera ``'foo'``, ``'foo.'``, ``'(foo)'`` ou ``'bar " "foo baz'`` mais pas ``'foobar'`` ou ``'foo3'``." -#: ../Doc/library/re.rst:460 +#: ../Doc/library/re.rst:462 msgid "" "By default Unicode alphanumerics are the ones used in Unicode patterns, but " "this can be changed by using the :const:`ASCII` flag. Word boundaries are " @@ -968,11 +968,11 @@ msgstr "" "caractères, ``\\b`` représente le caractère *backspace*, par compatibilité " "avec les chaînes littérales Python." -#: ../Doc/library/re.rst:475 +#: ../Doc/library/re.rst:477 msgid "``\\B``" msgstr "``\\B``" -#: ../Doc/library/re.rst:469 +#: ../Doc/library/re.rst:471 msgid "" "Matches the empty string, but only when it is *not* at the beginning or end " "of a word. This means that ``r'py\\B'`` matches ``'python'``, ``'py3'``, " @@ -990,16 +990,16 @@ msgstr "" "puisse être changé avec l'option :const:`ASCII`. Les délimitations de mots " "sont déterminées par la locale si l'option :const:`LOCALE` est utilisée." -#: ../Doc/library/re.rst:487 +#: ../Doc/library/re.rst:489 msgid "``\\d``" msgstr "``\\d``" -#: ../Doc/library/re.rst:484 ../Doc/library/re.rst:504 -#: ../Doc/library/re.rst:524 +#: ../Doc/library/re.rst:486 ../Doc/library/re.rst:506 +#: ../Doc/library/re.rst:526 msgid "For Unicode (str) patterns:" msgstr "Pour les motifs Unicode (``str``) :" -#: ../Doc/library/re.rst:481 +#: ../Doc/library/re.rst:483 msgid "" "Matches any Unicode decimal digit (that is, any character in Unicode " "character category [Nd]). This includes ``[0-9]``, and also many other " @@ -1011,20 +1011,20 @@ msgstr "" "caractères de chiffres. Si l'option :const:`ASCII` est utilisée, seuls les " "caractères de la classe ``[0-9]`` correspondront." -#: ../Doc/library/re.rst:487 ../Doc/library/re.rst:508 -#: ../Doc/library/re.rst:530 +#: ../Doc/library/re.rst:489 ../Doc/library/re.rst:510 +#: ../Doc/library/re.rst:532 msgid "For 8-bit (bytes) patterns:" msgstr "Pour les motifs 8-bit (bytes) :" -#: ../Doc/library/re.rst:487 +#: ../Doc/library/re.rst:489 msgid "Matches any decimal digit; this is equivalent to ``[0-9]``." msgstr "Valide n'importe quel chiffre décimal ; équivalent à ``[0-9]``." -#: ../Doc/library/re.rst:494 +#: ../Doc/library/re.rst:496 msgid "``\\D``" msgstr "``\\D``" -#: ../Doc/library/re.rst:492 +#: ../Doc/library/re.rst:494 msgid "" "Matches any character which is not a decimal digit. This is the opposite of " "``\\d``. If the :const:`ASCII` flag is used this becomes the equivalent of " @@ -1034,11 +1034,11 @@ msgstr "" "\\d``. Si l'option :const:`ASCII` est utilisée, cela devient équivalent à " "``[^0-9]``." -#: ../Doc/library/re.rst:508 +#: ../Doc/library/re.rst:510 msgid "``\\s``" msgstr "``\\s``" -#: ../Doc/library/re.rst:500 +#: ../Doc/library/re.rst:502 msgid "" "Matches Unicode whitespace characters (which includes ``[ \\t\\n\\r\\f" "\\v]``, and also many other characters, for example the non-breaking spaces " @@ -1051,7 +1051,7 @@ msgstr "" "est utilisée, seuls les caractères de la classe ``[ \\t\\n\\r\\f\\v]`` sont " "validés." -#: ../Doc/library/re.rst:507 +#: ../Doc/library/re.rst:509 msgid "" "Matches characters considered whitespace in the ASCII character set; this is " "equivalent to ``[ \\t\\n\\r\\f\\v]``." @@ -1059,11 +1059,11 @@ msgstr "" "Valide les caractères considérés comme des espacements dans la table ASCII ; " "équivalent à ``[ \\t\\n\\r\\f\\v]``." -#: ../Doc/library/re.rst:515 +#: ../Doc/library/re.rst:517 msgid "``\\S``" msgstr "``\\S``" -#: ../Doc/library/re.rst:513 +#: ../Doc/library/re.rst:515 msgid "" "Matches any character which is not a whitespace character. This is the " "opposite of ``\\s``. If the :const:`ASCII` flag is used this becomes the " @@ -1073,11 +1073,11 @@ msgstr "" "l'opposé de ``\\s``. Si l'option :const:`ASCII` est utilisée, cela devient " "équivalent à ``[^ \\t\\n\\r\\f\\v]``." -#: ../Doc/library/re.rst:530 +#: ../Doc/library/re.rst:532 msgid "``\\w``" msgstr "``\\w``" -#: ../Doc/library/re.rst:521 +#: ../Doc/library/re.rst:523 msgid "" "Matches Unicode word characters; this includes most characters that can be " "part of a word in any language, as well as numbers and the underscore. If " @@ -1088,7 +1088,7 @@ msgstr "" "les nombres et les tirets bas. Si l'option :const:`ASCII` est utilisée, " "seuls les caractères de la classe ``[a-zA-Z0-9_]`` sont validés." -#: ../Doc/library/re.rst:527 +#: ../Doc/library/re.rst:529 msgid "" "Matches characters considered alphanumeric in the ASCII character set; this " "is equivalent to ``[a-zA-Z0-9_]``. If the :const:`LOCALE` flag is used, " @@ -1099,11 +1099,11 @@ msgstr "" "zA-Z0-9_]``. Si l'option :const:`LOCALE` est utilisée, les caractères " "considérés alphanumériques dans la locale et le tiret bas seront acceptés." -#: ../Doc/library/re.rst:539 +#: ../Doc/library/re.rst:541 msgid "``\\W``" msgstr "``\\W``" -#: ../Doc/library/re.rst:535 +#: ../Doc/library/re.rst:537 msgid "" "Matches any character which is not a word character. This is the opposite of " "``\\w``. If the :const:`ASCII` flag is used this becomes the equivalent of " @@ -1115,15 +1115,15 @@ msgstr "" "``[^a-zA-Z0-9_]``. Si l'option :const:`LOCALE` est utilisée, les caractères " "considérés alphanumériques dans la locale, et le tiret bas, seront acceptés." -#: ../Doc/library/re.rst:544 +#: ../Doc/library/re.rst:546 msgid "``\\Z``" msgstr "``\\Z``" -#: ../Doc/library/re.rst:544 +#: ../Doc/library/re.rst:546 msgid "Matches only at the end of the string." msgstr "Correspond uniquement à la fin d'une chaîne de caractères." -#: ../Doc/library/re.rst:560 +#: ../Doc/library/re.rst:562 msgid "" "Most of the standard escapes supported by Python string literals are also " "accepted by the regular expression parser::" @@ -1131,7 +1131,7 @@ msgstr "" "La plupart des échappements standards supportés par les chaînes littérales " "sont aussi acceptés par l'analyseur d'expressions rationnelles ::" -#: ../Doc/library/re.rst:567 +#: ../Doc/library/re.rst:569 msgid "" "(Note that ``\\b`` is used to represent word boundaries, and means " "\"backspace\" only inside character classes.)" @@ -1140,15 +1140,17 @@ msgstr "" "signifie « *backspace* » uniquement à l'intérieur d'une classe de " "caractères.)" -#: ../Doc/library/re.rst:570 +#: ../Doc/library/re.rst:572 +#, fuzzy msgid "" "``'\\u'`` and ``'\\U'`` escape sequences are only recognized in Unicode " -"patterns. In bytes patterns they are errors." +"patterns. In bytes patterns they are errors. Unknown escapes of ASCII " +"letters are reserved for future use and treated as errors." msgstr "" "Les séquences d'échappement ``'\\u'`` et ``'\\U'`` sont seulement reconnues " "dans les motifs Unicode. Dans les motifs de *byte*, ce sont des erreurs." -#: ../Doc/library/re.rst:573 +#: ../Doc/library/re.rst:576 msgid "" "Octal escapes are included in a limited form. If the first digit is a 0, or " "if there are three octal digits, it is considered an octal escape. " @@ -1161,22 +1163,22 @@ msgstr "" "vers un groupe. Comme pour les chaînes littérales, les séquences octales ne " "font jamais plus de 3 caractères de long." -#: ../Doc/library/re.rst:578 +#: ../Doc/library/re.rst:581 msgid "The ``'\\u'`` and ``'\\U'`` escape sequences have been added." msgstr "Les séquences d'échappement ``'\\u'`` et ``'\\U'`` ont été ajoutées." -#: ../Doc/library/re.rst:581 +#: ../Doc/library/re.rst:584 msgid "" "Unknown escapes consisting of ``'\\'`` and an ASCII letter now are errors." msgstr "" "Les séquences inconnues composées de ``'\\'`` et d'une lettre ASCII sont " "maintenant des erreurs." -#: ../Doc/library/re.rst:589 +#: ../Doc/library/re.rst:592 msgid "Module Contents" msgstr "Contenu du module" -#: ../Doc/library/re.rst:591 +#: ../Doc/library/re.rst:594 msgid "" "The module defines several functions, constants, and an exception. Some of " "the functions are simplified versions of the full featured methods for " @@ -1188,7 +1190,7 @@ msgstr "" "complètes des expressions rationnelles compilées. La plupart des " "applications non triviales utilisent toujours la version compilée." -#: ../Doc/library/re.rst:596 +#: ../Doc/library/re.rst:599 msgid "" "Flag constants are now instances of :class:`RegexFlag`, which is a subclass " "of :class:`enum.IntFlag`." @@ -1196,7 +1198,7 @@ msgstr "" "Les constantes d'options sont maintenant des instances de :class:" "`RegexFlag`, sous-classe de :class:`enum.IntFlag`." -#: ../Doc/library/re.rst:602 +#: ../Doc/library/re.rst:605 msgid "" "Compile a regular expression pattern into a :ref:`regular expression object " "`, which can be used for matching using its :func:`~Pattern." @@ -1207,7 +1209,7 @@ msgstr "" "search`, décrites ci-dessous, peuvent être utilisées pour analyser des " "textes." -#: ../Doc/library/re.rst:607 +#: ../Doc/library/re.rst:610 msgid "" "The expression's behaviour can be modified by specifying a *flags* value. " "Values can be any of the following variables, combined using bitwise OR (the " @@ -1217,15 +1219,15 @@ msgstr "" "*flags*. Les valeurs sont comprises dans les variables suivantes, et peuvent " "être combinées avec un *ou* bit-à-bit (opérateur ``|``)." -#: ../Doc/library/re.rst:611 +#: ../Doc/library/re.rst:614 msgid "The sequence ::" msgstr "La séquence : ::" -#: ../Doc/library/re.rst:616 +#: ../Doc/library/re.rst:619 msgid "is equivalent to ::" msgstr "est équivalente à : ::" -#: ../Doc/library/re.rst:620 +#: ../Doc/library/re.rst:623 msgid "" "but using :func:`re.compile` and saving the resulting regular expression " "object for reuse is more efficient when the expression will be used several " @@ -1235,7 +1237,7 @@ msgstr "" "renvoyée pour la réutiliser est plus efficace quand l'expression est amenée " "à être utilisée plusieurs fois dans un même programme." -#: ../Doc/library/re.rst:626 +#: ../Doc/library/re.rst:629 msgid "" "The compiled versions of the most recent patterns passed to :func:`re." "compile` and the module-level matching functions are cached, so programs " @@ -1247,7 +1249,7 @@ msgstr "" "les programmes qui n'utilisent que quelques expressions rationnelles en même " "temps n'ont pas à s'inquiéter de la compilation de ces expressions." -#: ../Doc/library/re.rst:635 +#: ../Doc/library/re.rst:638 msgid "" "Make ``\\w``, ``\\W``, ``\\b``, ``\\B``, ``\\d``, ``\\D``, ``\\s`` and ``" "\\S`` perform ASCII-only matching instead of full Unicode matching. This is " @@ -1259,7 +1261,7 @@ msgstr "" "n'a du sens que pour les motifs Unicode, et est ignoré pour les motifs 8-" "bit. Correspond à l'option de groupe ``(?a)``." -#: ../Doc/library/re.rst:640 +#: ../Doc/library/re.rst:643 msgid "" "Note that for backward compatibility, the :const:`re.U` flag still exists " "(as well as its synonym :const:`re.UNICODE` and its embedded counterpart ``(?" @@ -1272,7 +1274,7 @@ msgstr "" "que l'analyse est faite en Unicode par défaut pour les chaînes de caractères " "(et que l'analyse Unicode n'est pas permise pour les chaînes 8-bit)." -#: ../Doc/library/re.rst:649 +#: ../Doc/library/re.rst:652 msgid "" "Display debug information about compiled expression. No corresponding inline " "flag." @@ -1280,7 +1282,7 @@ msgstr "" "Affiche des informations de débogage à propos de l'expression compilée. N'a " "pas d'option de groupe équivalente." -#: ../Doc/library/re.rst:656 +#: ../Doc/library/re.rst:659 msgid "" "Perform case-insensitive matching; expressions like ``[A-Z]`` will also " "match lowercase letters. Full Unicode matching (such as ``Ü`` matching " @@ -1296,7 +1298,7 @@ msgstr "" "que l'option :const:`re.LOCALE` n'est pas utilisée. Correspond au marqueur " "de groupe ``(?i)``." -#: ../Doc/library/re.rst:663 +#: ../Doc/library/re.rst:666 msgid "" "Note that when the Unicode patterns ``[a-z]`` or ``[A-Z]`` are used in " "combination with the :const:`IGNORECASE` flag, they will match the 52 ASCII " @@ -1314,7 +1316,7 @@ msgstr "" "*Kelvin sign*). Si la constante :const:`ASCII` est utilisée, seuls les " "caractères 'a' à 'z' et 'A' à 'Z' seront concernés." -#: ../Doc/library/re.rst:674 +#: ../Doc/library/re.rst:677 msgid "" "Make ``\\w``, ``\\W``, ``\\b``, ``\\B`` and case-insensitive matching " "dependent on the current locale. This flag can be used only with bytes " @@ -1333,7 +1335,7 @@ msgstr "" "elle est capable de gérer plusieurs locales et langages. Correspond à " "l'option de groupe ``(?L)``." -#: ../Doc/library/re.rst:683 +#: ../Doc/library/re.rst:686 msgid "" ":const:`re.LOCALE` can be used only with bytes patterns and is not " "compatible with :const:`re.ASCII`." @@ -1341,14 +1343,14 @@ msgstr "" ":const:`re.LOCALE` ne peut être utilisée qu'avec les motifs 8-bit et n'est " "pas compatible avec :const:`re.ASCII`." -#: ../Doc/library/re.rst:687 +#: ../Doc/library/re.rst:690 msgid "" "Compiled regular expression objects with the :const:`re.LOCALE` flag no " "longer depend on the locale at compile time. Only the locale at matching " "time affects the result of matching." msgstr "" -#: ../Doc/library/re.rst:696 +#: ../Doc/library/re.rst:699 msgid "" "When specified, the pattern character ``'^'`` matches at the beginning of " "the string and at the beginning of each line (immediately following each " @@ -1366,7 +1368,7 @@ msgstr "" "immédiatement avant le saut de ligne (s'il y a) à la fin de la chaîne. " "Correspond à l'option de groupe ``(?m)``." -#: ../Doc/library/re.rst:708 +#: ../Doc/library/re.rst:711 msgid "" "Make the ``'.'`` special character match any character at all, including a " "newline; without this flag, ``'.'`` will match anything *except* a newline. " @@ -1376,7 +1378,7 @@ msgstr "" "de ligne ; sans cette option, ``'.'`` correspondrait à tout caractère à " "l'exception du saut de ligne. Correspond à l'option de groupe ``(?s)``." -#: ../Doc/library/re.rst:718 +#: ../Doc/library/re.rst:721 msgid "" "This flag allows you to write regular expressions that look nicer and are " "more readable by allowing you to visually separate logical sections of the " @@ -1397,7 +1399,7 @@ msgstr "" "précédé d'un *backslash* non échappé, tous les caractères depuis le ``#`` le " "plus à gauche jusqu'à la fin de la ligne sont ignorés." -#: ../Doc/library/re.rst:727 +#: ../Doc/library/re.rst:730 msgid "" "This means that the two following regular expression objects that match a " "decimal number are functionally equal::" @@ -1405,11 +1407,11 @@ msgstr "" "Cela signifie que les deux expressions rationnelles suivantes qui valident " "un nombre décimal sont fonctionnellement égales : ::" -#: ../Doc/library/re.rst:735 +#: ../Doc/library/re.rst:738 msgid "Corresponds to the inline flag ``(?x)``." msgstr "Correspond à l'option de groupe ``(?x)``." -#: ../Doc/library/re.rst:740 +#: ../Doc/library/re.rst:743 msgid "" "Scan through *string* looking for the first location where the regular " "expression *pattern* produces a match, and return a corresponding :ref:" @@ -1423,7 +1425,7 @@ msgstr "" "dans la chaîne ne valide le motif ; notez que cela est différent de trouver " "une correspondance avec une chaîne vide à un certain endroit de la chaîne." -#: ../Doc/library/re.rst:749 +#: ../Doc/library/re.rst:752 msgid "" "If zero or more characters at the beginning of *string* match the regular " "expression *pattern*, return a corresponding :ref:`match object `. Return ``None`` if the " @@ -1464,7 +1466,7 @@ msgstr "" "Renvoie ``None`` si la chaîne ne correspond pas au motif ; notez que cela " "est différent d'une correspondance avec une chaîne vide." -#: ../Doc/library/re.rst:773 +#: ../Doc/library/re.rst:776 msgid "" "Split *string* by the occurrences of *pattern*. If capturing parentheses " "are used in *pattern*, then the text of all groups in the pattern are also " @@ -1478,7 +1480,7 @@ msgstr "" "différent de zéro, il ne pourra y avoir plus de *maxsplit* séparations, et " "le reste de la chaîne sera renvoyé comme le dernier élément de la liste. : ::" -#: ../Doc/library/re.rst:788 +#: ../Doc/library/re.rst:791 msgid "" "If there are capturing groups in the separator and it matches at the start " "of the string, the result will start with an empty string. The same holds " @@ -1488,7 +1490,7 @@ msgstr "" "correspondance au début de la chaîne, le résultat commencera par une chaîne " "vide. La même chose se produit pour la fin de la chaîne ::" -#: ../Doc/library/re.rst:795 +#: ../Doc/library/re.rst:798 msgid "" "That way, separator components are always found at the same relative indices " "within the result list." @@ -1496,25 +1498,25 @@ msgstr "" "De cette manière, les séparateurs sont toujours trouvés aux mêmes indices " "relatifs dans la liste résultante." -#: ../Doc/library/re.rst:798 +#: ../Doc/library/re.rst:801 msgid "" "Empty matches for the pattern split the string only when not adjacent to a " "previous empty match." msgstr "" -#: ../Doc/library/re.rst:808 ../Doc/library/re.rst:886 -#: ../Doc/library/re.rst:909 +#: ../Doc/library/re.rst:811 ../Doc/library/re.rst:891 +#: ../Doc/library/re.rst:914 msgid "Added the optional flags argument." msgstr "Ajout de l'argument optionnel *flags*." -#: ../Doc/library/re.rst:811 +#: ../Doc/library/re.rst:814 msgid "" "Added support of splitting on a pattern that could match an empty string." msgstr "" "Gestion du découpage avec un motif qui pourrait correspondre à une chaine de " "caractère vide." -#: ../Doc/library/re.rst:817 +#: ../Doc/library/re.rst:820 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 " @@ -1530,11 +1532,11 @@ msgstr "" "*tuples* si le motif a plus d'un groupe. Les correspondances vides sont " "incluses dans le résultat." -#: ../Doc/library/re.rst:823 ../Doc/library/re.rst:834 +#: ../Doc/library/re.rst:826 ../Doc/library/re.rst:837 msgid "Non-empty matches can now start just after a previous empty match." msgstr "" -#: ../Doc/library/re.rst:829 +#: ../Doc/library/re.rst:832 msgid "" "Return an :term:`iterator` yielding :ref:`match objects ` " "over all non-overlapping matches for the RE *pattern* in *string*. The " @@ -1548,16 +1550,19 @@ msgstr "" "dans l'ordre où elles sont trouvées. Les correspondances vides sont inclues " "dans le résultat." -#: ../Doc/library/re.rst:840 +#: ../Doc/library/re.rst:843 +#, fuzzy msgid "" "Return the string obtained by replacing the leftmost non-overlapping " "occurrences of *pattern* in *string* by the replacement *repl*. If the " "pattern isn't found, *string* is returned unchanged. *repl* can be a string " "or a function; if it is a string, any backslash escapes in it are " "processed. That is, ``\\n`` is converted to a single newline character, ``" -"\\r`` is converted to a carriage return, and so forth. Unknown escapes such " -"as ``\\&`` are left alone. Backreferences, such as ``\\6``, are replaced " -"with the substring matched by group 6 in the pattern. For example::" +"\\r`` is converted to a carriage return, and so forth. Unknown escapes of " +"ASCII letters are reserved for future use and treated as errors. Other " +"unknown escapes such as ``\\&`` are left alone. Backreferences, such as ``" +"\\6``, are replaced with the substring matched by group 6 in the pattern. " +"For example::" msgstr "" "Renvoie la chaîne obtenue en remplaçant les occurrences (sans chevauchement) " "les plus à gauche de *pattern* dans *string* par le remplacement *repl*. Si " @@ -1569,7 +1574,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:854 +#: ../Doc/library/re.rst:859 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:866 +#: ../Doc/library/re.rst:871 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:868 +#: ../Doc/library/re.rst:873 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, " @@ -1601,7 +1606,7 @@ msgstr "" "précédente correspondance, ainsi ``sub('x*', '-', 'abxd')`` renvoie ``'-a-b--" "d-'``." -#: ../Doc/library/re.rst:876 +#: ../Doc/library/re.rst:881 msgid "" "In string-type *repl* arguments, in addition to the character escapes and " "backreferences described above, ``\\g`` will use the substring matched " @@ -1623,12 +1628,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:889 ../Doc/library/re.rst:912 -#: ../Doc/library/re.rst:1141 +#: ../Doc/library/re.rst:894 ../Doc/library/re.rst:917 +#: ../Doc/library/re.rst:1146 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:892 +#: ../Doc/library/re.rst:897 msgid "" "Unknown escapes in *pattern* consisting of ``'\\'`` and an ASCII letter now " "are errors." @@ -1636,7 +1641,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:896 +#: ../Doc/library/re.rst:901 msgid "" "Unknown escapes in *repl* consisting of ``'\\'`` and an ASCII letter now are " "errors." @@ -1644,13 +1649,13 @@ msgstr "" "Les séquences d'échappement inconnues dans *repl* formées par ``'\\'`` et " "une lettre ASCII sont maintenant des erreurs." -#: ../Doc/library/re.rst:900 +#: ../Doc/library/re.rst:905 msgid "" "Empty matches for the pattern are replaced when adjacent to a previous non-" "empty match." msgstr "" -#: ../Doc/library/re.rst:906 +#: ../Doc/library/re.rst:911 msgid "" "Perform the same operation as :func:`sub`, but return a tuple ``(new_string, " "number_of_subs_made)``." @@ -1658,7 +1663,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:918 +#: ../Doc/library/re.rst:923 msgid "" "Escape special characters in *pattern*. This is useful if you want to match " "an arbitrary literal string that may have regular expression metacharacters " @@ -1668,7 +1673,7 @@ msgstr "" "voulez valider une quelconque chaîne littérale qui pourrait contenir des " "métacaractères d'expressions rationnelles. Par exemple : ::" -#: ../Doc/library/re.rst:933 +#: ../Doc/library/re.rst:938 msgid "" "This functions must not be used for the replacement string in :func:`sub` " "and :func:`subn`, only backslashes should be escaped. For example::" @@ -1677,11 +1682,11 @@ msgstr "" "dans :func:`sub` et :func:`subn`, seuls les antislash devraient être " "échappés. Par exemple ::" -#: ../Doc/library/re.rst:941 +#: ../Doc/library/re.rst:946 msgid "The ``'_'`` character is no longer escaped." msgstr "Le caractère ``'_'`` n'est plus échappé." -#: ../Doc/library/re.rst:944 +#: ../Doc/library/re.rst:949 msgid "" "Only characters that can have special meaning in a regular expression are " "escaped." @@ -1689,11 +1694,11 @@ msgstr "" "Seuls les caractères qui peuvent avoir une signification spécifique dans une " "expression régulière sont échappés." -#: ../Doc/library/re.rst:951 +#: ../Doc/library/re.rst:956 msgid "Clear the regular expression cache." msgstr "Vide le cache d'expressions rationnelles." -#: ../Doc/library/re.rst:956 +#: ../Doc/library/re.rst:961 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 " @@ -1708,36 +1713,36 @@ msgstr "" "contient aucune correspondance pour un motif. Les instances de l'erreur ont " "les attributs additionnels suivants :" -#: ../Doc/library/re.rst:964 +#: ../Doc/library/re.rst:969 msgid "The unformatted error message." msgstr "Le message d'erreur non formaté." -#: ../Doc/library/re.rst:968 +#: ../Doc/library/re.rst:973 msgid "The regular expression pattern." msgstr "Le motif d'expression rationnelle." -#: ../Doc/library/re.rst:972 +#: ../Doc/library/re.rst:977 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:976 +#: ../Doc/library/re.rst:981 msgid "The line corresponding to *pos* (may be ``None``)." msgstr "La ligne correspondant à *pos* (peut valoir ``None``)." -#: ../Doc/library/re.rst:980 +#: ../Doc/library/re.rst:985 msgid "The column corresponding to *pos* (may be ``None``)." msgstr "La colonne correspondant à *pos* (peut valoir ``None``)." -#: ../Doc/library/re.rst:982 +#: ../Doc/library/re.rst:987 msgid "Added additional attributes." msgstr "Ajout des attributs additionnels." -#: ../Doc/library/re.rst:988 +#: ../Doc/library/re.rst:993 msgid "Regular Expression Objects" msgstr "Objets d'expressions rationnelles" -#: ../Doc/library/re.rst:990 +#: ../Doc/library/re.rst:995 msgid "" "Compiled regular expression objects support the following methods and " "attributes:" @@ -1745,7 +1750,7 @@ msgstr "" "Les expressions rationnelles compilées supportent les méthodes et attributs " "suivants :" -#: ../Doc/library/re.rst:995 +#: ../Doc/library/re.rst:1000 msgid "" "Scan through *string* looking for the first location where this regular " "expression produces a match, and return a corresponding :ref:`match object " @@ -1759,7 +1764,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:1001 +#: ../Doc/library/re.rst:1006 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 " @@ -1773,7 +1778,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:1007 +#: ../Doc/library/re.rst:1012 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 " @@ -1790,7 +1795,7 @@ msgstr "" "expression rationnelle compilée, ``rx.search(string, 0, 50)`` est équivalent " "à ``rx.search(string[:50], 0)``. ::" -#: ../Doc/library/re.rst:1022 +#: ../Doc/library/re.rst:1027 msgid "" "If zero or more characters at the *beginning* of *string* match this regular " "expression, return a corresponding :ref:`match object `. " @@ -1802,7 +1807,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:1027 ../Doc/library/re.rst:1045 +#: ../Doc/library/re.rst:1032 ../Doc/library/re.rst:1050 msgid "" "The optional *pos* and *endpos* parameters have the same meaning as for the :" "meth:`~Pattern.search` method. ::" @@ -1810,7 +1815,7 @@ msgstr "" "Les paramètres optionnels *pos* et *endpos* ont le même sens que pour la " "méthode :meth:`~Pattern.search`. ::" -#: ../Doc/library/re.rst:1035 +#: ../Doc/library/re.rst:1040 msgid "" "If you want to locate a match anywhere in *string*, use :meth:`~Pattern." "search` instead (see also :ref:`search-vs-match`)." @@ -1818,7 +1823,7 @@ msgstr "" "Si vous voulez une recherche n'importe où dans *string*, utilisez plutôt :" "meth:`~Pattern.search` (voir aussi :ref:`search-vs-match`)." -#: ../Doc/library/re.rst:1041 +#: ../Doc/library/re.rst:1046 msgid "" "If the whole *string* matches this regular expression, return a " "corresponding :ref:`match object `. Return ``None`` if the " @@ -1830,11 +1835,11 @@ msgstr "" "la chaîne ne correspond pas au motif ; notez que cela est différent d'une " "correspondance vide." -#: ../Doc/library/re.rst:1059 +#: ../Doc/library/re.rst:1064 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:1064 +#: ../Doc/library/re.rst:1069 msgid "" "Similar to the :func:`findall` function, using the compiled pattern, but " "also accepts optional *pos* and *endpos* parameters that limit the search " @@ -1844,7 +1849,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:1071 +#: ../Doc/library/re.rst:1076 msgid "" "Similar to the :func:`finditer` function, using the compiled pattern, but " "also accepts optional *pos* and *endpos* parameters that limit the search " @@ -1854,15 +1859,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:1078 +#: ../Doc/library/re.rst:1083 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:1083 +#: ../Doc/library/re.rst:1088 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:1088 +#: ../Doc/library/re.rst:1093 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 " @@ -1873,11 +1878,11 @@ msgstr "" "``(?...)`` dans le motif, et des options implicites comme :data:`UNICODE` si " "le motif est une chaîne Unicode." -#: ../Doc/library/re.rst:1095 +#: ../Doc/library/re.rst:1100 msgid "The number of capturing groups in the pattern." msgstr "Le nombre de groupes de capture dans le motif." -#: ../Doc/library/re.rst:1100 +#: ../Doc/library/re.rst:1105 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 " @@ -1887,11 +1892,11 @@ 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:1107 +#: ../Doc/library/re.rst:1112 msgid "The pattern string from which the pattern object was compiled." msgstr "La chaîne de motif depuis laquelle l'objet motif a été compilé." -#: ../Doc/library/re.rst:1110 +#: ../Doc/library/re.rst:1115 msgid "" "Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Compiled " "regular expression objects are considered atomic." @@ -1899,11 +1904,11 @@ msgstr "" "Ajout du support des fonctions :func:`copy.copy` et :func:`copy.deepcopy`. " "Les expressions régulières compilées sont considérées atomiques." -#: ../Doc/library/re.rst:1118 +#: ../Doc/library/re.rst:1123 msgid "Match Objects" msgstr "Objets de correspondance" -#: ../Doc/library/re.rst:1120 +#: ../Doc/library/re.rst:1125 msgid "" "Match objects always have a boolean value of ``True``. Since :meth:`~Pattern." "match` and :meth:`~Pattern.search` return ``None`` when there is no match, " @@ -1914,12 +1919,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:1129 +#: ../Doc/library/re.rst:1134 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:1134 +#: ../Doc/library/re.rst:1139 msgid "" "Return the string obtained by doing backslash substitution on the template " "string *template*, as done by the :meth:`~Pattern.sub` method. Escapes such " @@ -1934,7 +1939,7 @@ msgstr "" "\\g<1>``, ``\\g``) sont remplacées par les contenus des groupes " "correspondant." -#: ../Doc/library/re.rst:1146 +#: ../Doc/library/re.rst:1151 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 " @@ -1961,7 +1966,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:1168 +#: ../Doc/library/re.rst:1173 msgid "" "If the regular expression uses the ``(?P...)`` syntax, the *groupN* " "arguments may also be strings identifying groups by their group name. If a " @@ -1973,20 +1978,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:1173 +#: ../Doc/library/re.rst:1178 msgid "A moderately complicated example::" msgstr "Un exemple modérément compliqué ::" -#: ../Doc/library/re.rst:1181 +#: ../Doc/library/re.rst:1186 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:1188 +#: ../Doc/library/re.rst:1193 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:1197 +#: ../Doc/library/re.rst:1202 msgid "" "This is identical to ``m.group(g)``. This allows easier access to an " "individual group from a match::" @@ -1994,7 +1999,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:1213 +#: ../Doc/library/re.rst:1218 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 " @@ -2004,11 +2009,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:1217 ../Doc/library/re.rst:1442 +#: ../Doc/library/re.rst:1222 ../Doc/library/re.rst:1447 msgid "For example::" msgstr "Par exemple ::" -#: ../Doc/library/re.rst:1223 +#: ../Doc/library/re.rst:1228 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 " @@ -2019,7 +2024,7 @@ msgstr "" "correspondance vaudront ``None`` sauf si une autre valeur est donnée à " "l'argument *default* ::" -#: ../Doc/library/re.rst:1236 +#: ../Doc/library/re.rst:1241 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 " @@ -2030,7 +2035,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:1248 +#: ../Doc/library/re.rst:1253 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 " @@ -2045,7 +2050,7 @@ msgstr "" "groupe *g* qui y figure, la sous-chaîne correspondant au groupe *g* " "(équivalente à ``m.group(g)``) est : ::" -#: ../Doc/library/re.rst:1256 +#: ../Doc/library/re.rst:1261 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." @@ -2058,11 +2063,11 @@ msgstr "" "end(1)`` valent tous deux 2, et ``m.start(2)`` lève une exception :exc:" "`IndexError`." -#: ../Doc/library/re.rst:1261 +#: ../Doc/library/re.rst:1266 msgid "An example that will remove *remove_this* from email addresses::" msgstr "Un exemple qui supprimera *remove_this* d'une adresse mail ::" -#: ../Doc/library/re.rst:1271 +#: ../Doc/library/re.rst:1276 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)``. " @@ -2073,7 +2078,7 @@ msgstr "" "``(-1, -1)`` est renvoyé. *group* vaut par défaut zéro, pour la " "correspondance entière." -#: ../Doc/library/re.rst:1278 +#: ../Doc/library/re.rst:1283 msgid "" "The value of *pos* which was passed to the :meth:`~Pattern.search` or :meth:" "`~Pattern.match` method of a :ref:`regex object `. This is the " @@ -2084,7 +2089,7 @@ msgstr "" "objects>`. C'est l'index dans la chaîne à partir duquel le moteur " "d'expressions rationnelles recherche une correspondance." -#: ../Doc/library/re.rst:1285 +#: ../Doc/library/re.rst:1290 msgid "" "The value of *endpos* which was passed to the :meth:`~Pattern.search` or :" "meth:`~Pattern.match` method of a :ref:`regex object `. This is " @@ -2095,7 +2100,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:1292 +#: ../Doc/library/re.rst:1297 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)" @@ -2109,7 +2114,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:1301 +#: ../Doc/library/re.rst:1306 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." @@ -2117,7 +2122,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:1307 +#: ../Doc/library/re.rst:1312 msgid "" "The :ref:`regular expression object ` whose :meth:`~Pattern." "match` or :meth:`~Pattern.search` method produced this match instance." @@ -2125,11 +2130,11 @@ msgstr "" ":ref:`L'expression rationnelle ` dont la méthode :meth:`~Pattern." "match` ou :meth:`~Pattern.search` a produit cet objet de correspondance." -#: ../Doc/library/re.rst:1313 +#: ../Doc/library/re.rst:1318 msgid "The string passed to :meth:`~Pattern.match` or :meth:`~Pattern.search`." msgstr "La chaîne passée à :meth:`~Pattern.match` ou :meth:`~Pattern.search`." -#: ../Doc/library/re.rst:1316 +#: ../Doc/library/re.rst:1321 msgid "" "Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Match objects " "are considered atomic." @@ -2137,15 +2142,15 @@ msgstr "" "Ajout du support des fonctions :func:`copy.copy` et :func:`copy.deepcopy`. " "Les objets correspondants sont considérés atomiques." -#: ../Doc/library/re.rst:1324 +#: ../Doc/library/re.rst:1329 msgid "Regular Expression Examples" msgstr "Exemples d'expressions rationnelles" -#: ../Doc/library/re.rst:1328 +#: ../Doc/library/re.rst:1333 msgid "Checking for a Pair" msgstr "Rechercher une paire" -#: ../Doc/library/re.rst:1330 +#: ../Doc/library/re.rst:1335 msgid "" "In this example, we'll use the following helper function to display match " "objects a little more gracefully:" @@ -2153,7 +2158,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:1340 +#: ../Doc/library/re.rst:1345 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 " @@ -2167,13 +2172,13 @@ msgstr "" "(*ten*), et les caractères de \"2\" à \"9\" représentant les cartes avec ces " "valeurs." -#: ../Doc/library/re.rst:1345 +#: ../Doc/library/re.rst:1350 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:1355 +#: ../Doc/library/re.rst:1360 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 " @@ -2183,7 +2188,7 @@ msgstr "" "valeur. Pour valider cela avec une expression rationnelle, on pourrait " "utiliser des références arrière comme ::" -#: ../Doc/library/re.rst:1365 +#: ../Doc/library/re.rst:1370 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:" @@ -2192,11 +2197,11 @@ msgstr "" "méthode :meth:`~Match.group` de l'objet de correspondance de la manière " "suivante :" -#: ../Doc/library/re.rst:1385 +#: ../Doc/library/re.rst:1390 msgid "Simulating scanf()" msgstr "Simuler *scanf()*" -#: ../Doc/library/re.rst:1389 +#: ../Doc/library/re.rst:1394 msgid "" "Python does not currently have an equivalent to :c:func:`scanf`. Regular " "expressions are generally more powerful, though also more verbose, than :c:" @@ -2210,100 +2215,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:1396 +#: ../Doc/library/re.rst:1401 msgid ":c:func:`scanf` Token" msgstr "Élément de :c:func:`scanf`" -#: ../Doc/library/re.rst:1396 +#: ../Doc/library/re.rst:1401 msgid "Regular Expression" msgstr "Expression rationnelle" -#: ../Doc/library/re.rst:1398 +#: ../Doc/library/re.rst:1403 msgid "``%c``" msgstr "``%c``" -#: ../Doc/library/re.rst:1400 +#: ../Doc/library/re.rst:1405 msgid "``%5c``" msgstr "``%5c``" -#: ../Doc/library/re.rst:1400 +#: ../Doc/library/re.rst:1405 msgid "``.{5}``" msgstr "``.{5}``" -#: ../Doc/library/re.rst:1402 +#: ../Doc/library/re.rst:1407 msgid "``%d``" msgstr "``%d``" -#: ../Doc/library/re.rst:1402 +#: ../Doc/library/re.rst:1407 msgid "``[-+]?\\d+``" msgstr "``[-+]?\\d+``" -#: ../Doc/library/re.rst:1404 +#: ../Doc/library/re.rst:1409 msgid "``%e``, ``%E``, ``%f``, ``%g``" msgstr "``%e``, ``%E``, ``%f``, ``%g``" -#: ../Doc/library/re.rst:1404 +#: ../Doc/library/re.rst:1409 msgid "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" msgstr "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" -#: ../Doc/library/re.rst:1406 +#: ../Doc/library/re.rst:1411 msgid "``%i``" msgstr "``%i``" -#: ../Doc/library/re.rst:1406 +#: ../Doc/library/re.rst:1411 msgid "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" msgstr "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" -#: ../Doc/library/re.rst:1408 +#: ../Doc/library/re.rst:1413 msgid "``%o``" msgstr "``%o``" -#: ../Doc/library/re.rst:1408 +#: ../Doc/library/re.rst:1413 msgid "``[-+]?[0-7]+``" msgstr "``[-+]?[0-7]+``" -#: ../Doc/library/re.rst:1410 +#: ../Doc/library/re.rst:1415 msgid "``%s``" msgstr "``%s``" -#: ../Doc/library/re.rst:1410 +#: ../Doc/library/re.rst:1415 msgid "``\\S+``" msgstr "``\\S+``" -#: ../Doc/library/re.rst:1412 +#: ../Doc/library/re.rst:1417 msgid "``%u``" msgstr "``%u``" -#: ../Doc/library/re.rst:1412 +#: ../Doc/library/re.rst:1417 msgid "``\\d+``" msgstr "``\\d+``" -#: ../Doc/library/re.rst:1414 +#: ../Doc/library/re.rst:1419 msgid "``%x``, ``%X``" msgstr "``%x``, ``%X``" -#: ../Doc/library/re.rst:1414 +#: ../Doc/library/re.rst:1419 msgid "``[-+]?(0[xX])?[\\dA-Fa-f]+``" msgstr "``[-+]?(0[xX])?[\\dA-Fa-f]+``" -#: ../Doc/library/re.rst:1417 +#: ../Doc/library/re.rst:1422 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:1421 +#: ../Doc/library/re.rst:1426 msgid "you would use a :c:func:`scanf` format like ::" msgstr "vous utiliseriez un format :c:func:`scanf` comme : ::" -#: ../Doc/library/re.rst:1425 +#: ../Doc/library/re.rst:1430 msgid "The equivalent regular expression would be ::" msgstr "L'expression rationnelle équivalente serait : ::" -#: ../Doc/library/re.rst:1433 +#: ../Doc/library/re.rst:1438 msgid "search() vs. match()" msgstr "search() vs. match()" -#: ../Doc/library/re.rst:1437 +#: ../Doc/library/re.rst:1442 msgid "" "Python offers two different primitive operations based on regular " "expressions: :func:`re.match` checks for a match only at the beginning of " @@ -2315,7 +2320,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:1448 +#: ../Doc/library/re.rst:1453 msgid "" "Regular expressions beginning with ``'^'`` can be used with :func:`search` " "to restrict the match at the beginning of the string::" @@ -2323,7 +2328,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:1456 +#: ../Doc/library/re.rst:1461 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 " @@ -2334,11 +2339,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:1466 +#: ../Doc/library/re.rst:1471 msgid "Making a Phonebook" msgstr "Construire un répertoire téléphonique" -#: ../Doc/library/re.rst:1468 +#: ../Doc/library/re.rst:1473 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 " @@ -2350,7 +2355,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:1473 +#: ../Doc/library/re.rst:1478 msgid "" "First, here is the input. Normally it may come from a file, here we are " "using triple-quoted string syntax::" @@ -2358,7 +2363,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:1484 +#: ../Doc/library/re.rst:1489 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:" @@ -2367,7 +2372,7 @@ msgstr "" "maintenant la chaîne en une liste où chaque ligne non vide aura sa propre " "entrée :" -#: ../Doc/library/re.rst:1497 +#: ../Doc/library/re.rst:1502 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` " @@ -2378,7 +2383,7 @@ msgstr "" "`split` parce que l'adresse contient des espaces, qui sont notre motif de " "séparation :" -#: ../Doc/library/re.rst:1510 +#: ../Doc/library/re.rst:1515 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 " @@ -2388,11 +2393,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:1525 +#: ../Doc/library/re.rst:1530 msgid "Text Munging" msgstr "Mélanger les lettres des mots" -#: ../Doc/library/re.rst:1527 +#: ../Doc/library/re.rst:1532 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 " @@ -2404,11 +2409,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:1544 +#: ../Doc/library/re.rst:1549 msgid "Finding all Adverbs" msgstr "Trouver tous les adverbes" -#: ../Doc/library/re.rst:1546 +#: ../Doc/library/re.rst:1551 msgid "" ":func:`findall` matches *all* occurrences of a pattern, not just the first " "one as :func:`search` does. For example, if a writer wanted to find all of " @@ -2420,11 +2425,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:1557 +#: ../Doc/library/re.rst:1562 msgid "Finding all Adverbs and their Positions" msgstr "Trouver tous les adverbes et leurs positions" -#: ../Doc/library/re.rst:1559 +#: ../Doc/library/re.rst:1564 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 " @@ -2439,11 +2444,11 @@ msgstr "" "leurs positions* dans un texte, il/elle utiliserait :func:`finditer` de la " "manière suivante ::" -#: ../Doc/library/re.rst:1573 +#: ../Doc/library/re.rst:1578 msgid "Raw String Notation" msgstr "Notation brutes de chaînes" -#: ../Doc/library/re.rst:1575 +#: ../Doc/library/re.rst:1580 msgid "" "Raw string notation (``r\"text\"``) keeps regular expressions sane. Without " "it, every backslash (``'\\'``) in a regular expression would have to be " @@ -2456,7 +2461,7 @@ msgstr "" "Par exemple, les deux lignes de code suivantes sont fonctionnellement " "identiques ::" -#: ../Doc/library/re.rst:1585 +#: ../Doc/library/re.rst:1590 msgid "" "When one wants to match a literal backslash, it must be escaped in the " "regular expression. With raw string notation, this means ``r\"\\\\\"``. " @@ -2468,11 +2473,11 @@ msgstr "" "\"``. Sans elle, il faudrait utiliser ``\"\\\\\\\\\"``, faisant que les " "deux lignes de code suivantes sont fonctionnellement identiques ::" -#: ../Doc/library/re.rst:1597 +#: ../Doc/library/re.rst:1602 msgid "Writing a Tokenizer" msgstr "Écrire un analyseur lexical" -#: ../Doc/library/re.rst:1599 +#: ../Doc/library/re.rst:1604 msgid "" "A `tokenizer or scanner `_ " "analyzes a string to categorize groups of characters. This is a useful " @@ -2483,7 +2488,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:1603 +#: ../Doc/library/re.rst:1608 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 " @@ -2493,11 +2498,11 @@ 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:1655 +#: ../Doc/library/re.rst:1660 msgid "The tokenizer produces the following output::" msgstr "L'analyseur produit la sortie suivante : ::" -#: ../Doc/library/re.rst:1678 +#: ../Doc/library/re.rst:1683 msgid "" "Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O'Reilly Media, " "2009. The third edition of the book no longer covers Python at all, but the " diff --git a/library/spwd.po b/library/spwd.po index 747dd6d63..7548e9421 100644 --- a/library/spwd.po +++ b/library/spwd.po @@ -5,14 +5,14 @@ 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: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-12-17 19:00+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Jules Lasne \n" "X-Generator: Poedit 2.2\n" #: ../Doc/library/spwd.rst:2 diff --git a/library/sys.po b/library/sys.po index 30454cd7a..132307358 100644 --- a/library/sys.po +++ b/library/sys.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-25 23:27+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -283,7 +283,7 @@ msgstr "" "Windows." #: ../Doc/library/sys.rst:166 ../Doc/library/sys.rst:657 -#: ../Doc/library/sys.rst:1330 ../Doc/library/sys.rst:1477 +#: ../Doc/library/sys.rst:1330 ../Doc/library/sys.rst:1494 msgid ":ref:`Availability `: Windows." msgstr ":ref:`Disponibilité ` : Windows." @@ -1527,11 +1527,11 @@ msgstr "" "représentation interne des entiers de Python. Les attributs sont en lecture " "seule." -#: ../Doc/library/sys.rst:815 ../Doc/library/sys.rst:1404 +#: ../Doc/library/sys.rst:815 ../Doc/library/sys.rst:1421 msgid "Attribute" msgstr "Attribut" -#: ../Doc/library/sys.rst:815 ../Doc/library/sys.rst:1404 +#: ../Doc/library/sys.rst:815 ../Doc/library/sys.rst:1421 msgid "Explanation" msgstr "Explication" @@ -2468,28 +2468,37 @@ msgstr "" #: ../Doc/library/sys.rst:1351 msgid "" -"The character encoding is platform-dependent. Under Windows, if the stream " -"is interactive (that is, if its :meth:`isatty` method returns ``True``), the " -"console codepage is used, otherwise the ANSI code page. Under other " -"platforms, the locale encoding is used (see :meth:`locale." -"getpreferredencoding`)." +"The character encoding is platform-dependent. Non-Windows platforms use the " +"locale encoding (see :meth:`locale.getpreferredencoding()`)." msgstr "" -"L'encodage des caractères dépend de la plate-forme. Sous Windows, si le flux " -"est interactif (c'est-à-dire si sa méthode :meth:`isatty` donne ``True``), " -"l'encodage de la console est utilisée, sinon un encodage Windows. Sous " -"d'autres plateformes, l'encodage local est utilisé (voir :meth:`locale." -"getpreferredencoding`)." -#: ../Doc/library/sys.rst:1356 +#: ../Doc/library/sys.rst:1355 msgid "" -"Under all platforms though, you can override this value by setting the :" -"envvar:`PYTHONIOENCODING` environment variable before starting Python." +"On Windows, UTF-8 is used for the console device. Non-character devices " +"such as disk files and pipes use the system locale encoding (i.e. the ANSI " +"codepage). Non-console character devices such as NUL (i.e. where isatty() " +"returns True) use the value of the console input and output codepages at " +"startup, respectively for stdin and stdout/stderr. This defaults to the " +"system locale encoding if the process is not initially attached to a console." msgstr "" -"Sous toutes les plates-formes cependant, vous pouvez remplacer cette valeur " -"en définissant la variable d'environnement :envvar:`PYTHONIOENCODING` avant " -"de démarrer Python." -#: ../Doc/library/sys.rst:1359 +#: ../Doc/library/sys.rst:1364 +msgid "" +"The special behaviour of the console can be overridden by setting the " +"environment variable PYTHONLEGACYWINDOWSSTDIO before starting Python. In " +"that case, the console codepages are used as for any other character device." +msgstr "" + +#: ../Doc/library/sys.rst:1369 +msgid "" +"Under all platforms, you can override the character encoding by setting the :" +"envvar:`PYTHONIOENCODING` environment variable before starting Python or by " +"using the new :option:`-X` ``utf8`` command line option and :envvar:" +"`PYTHONUTF8` environment variable. However, for the Windows console, this " +"only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set." +msgstr "" + +#: ../Doc/library/sys.rst:1376 msgid "" "When interactive, ``stdout`` and ``stderr`` streams are line-buffered. " "Otherwise, they are block-buffered like regular text files. You can " @@ -2500,7 +2509,7 @@ msgstr "" "fichiers textes classiques. Vous pouvez remplacer cette valeur avec " "l'option :option:`-u` en ligne de commande." -#: ../Doc/library/sys.rst:1365 +#: ../Doc/library/sys.rst:1382 msgid "" "To write or read binary data from/to the standard streams, use the " "underlying binary :data:`~io.TextIOBase.buffer` object. For example, to " @@ -2511,7 +2520,7 @@ msgstr "" "pour écrire des octets sur :data:`stdout`, utilisez ``sys.stdout.buffer." "write(b'abc')``." -#: ../Doc/library/sys.rst:1369 +#: ../Doc/library/sys.rst:1386 msgid "" "However, if you are writing a library (and do not control in which context " "its code will be executed), be aware that the standard streams may be " @@ -2523,7 +2532,7 @@ msgstr "" "remplacés par des objets de type fichier tel un :class:`io.StringIO` qui " "n'ont pas l'attribut :attr:`~io.BufferedIOBase.buffer`." -#: ../Doc/library/sys.rst:1379 +#: ../Doc/library/sys.rst:1396 msgid "" "These objects contain the original values of ``stdin``, ``stderr`` and " "``stdout`` at the start of the program. They are used during finalization, " @@ -2535,7 +2544,7 @@ msgstr "" "pendant la finalisation, et peuvent être utiles pour écrire dans le vrai " "flux standard, peu importe si l'objet ``sys.std*`` a été redirigé." -#: ../Doc/library/sys.rst:1384 +#: ../Doc/library/sys.rst:1401 msgid "" "It can also be used to restore the actual files to known working file " "objects in case they have been overwritten with a broken object. However, " @@ -2547,7 +2556,7 @@ msgstr "" "cependant la bonne façon de faire serait de sauvegarder explicitement les " "flux avant de les remplacer et ainsi pouvoir les restaurer." -#: ../Doc/library/sys.rst:1390 +#: ../Doc/library/sys.rst:1407 msgid "" "Under some conditions ``stdin``, ``stdout`` and ``stderr`` as well as the " "original values ``__stdin__``, ``__stdout__`` and ``__stderr__`` can be " @@ -2560,7 +2569,7 @@ msgstr "" "Windows qui ne sont pas connectées à une console, ou les applications Python " "démarrées avec :program:`pythonw`." -#: ../Doc/library/sys.rst:1398 +#: ../Doc/library/sys.rst:1415 msgid "" "A :term:`struct sequence` holding information about the thread " "implementation." @@ -2568,52 +2577,52 @@ msgstr "" "Une :term:`struct sequence` contenant des informations sur l'implémentation " "des fils d'exécution." -#: ../Doc/library/sys.rst:1406 +#: ../Doc/library/sys.rst:1423 msgid ":const:`name`" msgstr ":const:`name`" -#: ../Doc/library/sys.rst:1406 +#: ../Doc/library/sys.rst:1423 msgid "Name of the thread implementation:" msgstr "Nom de l'implémentation des fils d'exécution :" -#: ../Doc/library/sys.rst:1408 +#: ../Doc/library/sys.rst:1425 msgid "``'nt'``: Windows threads" msgstr "``'nt'``: Fils d'exécution Windows" -#: ../Doc/library/sys.rst:1409 +#: ../Doc/library/sys.rst:1426 msgid "``'pthread'``: POSIX threads" msgstr "``'pthread'``: Fils d'exécution POSIX" -#: ../Doc/library/sys.rst:1410 +#: ../Doc/library/sys.rst:1427 msgid "``'solaris'``: Solaris threads" msgstr "``'solaris'``: Fils d'exécution Solaris" -#: ../Doc/library/sys.rst:1412 +#: ../Doc/library/sys.rst:1429 msgid ":const:`lock`" msgstr ":const:`lock`" -#: ../Doc/library/sys.rst:1412 +#: ../Doc/library/sys.rst:1429 msgid "Name of the lock implementation:" msgstr "Nom de l'implémentation du système de verrou :" -#: ../Doc/library/sys.rst:1414 +#: ../Doc/library/sys.rst:1431 msgid "``'semaphore'``: a lock uses a semaphore" msgstr "``'semaphore'``: Verrou utilisant une sémaphore" -#: ../Doc/library/sys.rst:1415 +#: ../Doc/library/sys.rst:1432 msgid "``'mutex+cond'``: a lock uses a mutex and a condition variable" msgstr "" "``'mutex+cond'``: Un verrou utilisant un *mutex* et une *condition variable*" -#: ../Doc/library/sys.rst:1417 +#: ../Doc/library/sys.rst:1434 msgid "``None`` if this information is unknown" msgstr "``None`` si cette information n'est pas connue" -#: ../Doc/library/sys.rst:1419 +#: ../Doc/library/sys.rst:1436 msgid ":const:`version`" msgstr ":const:`version`" -#: ../Doc/library/sys.rst:1419 +#: ../Doc/library/sys.rst:1436 msgid "" "Name and version of the thread library. It is a string, or ``None`` if this " "information is unknown." @@ -2621,7 +2630,7 @@ msgstr "" "Nom et version de l'implémentation des fils d'exécution, c'est une chaîne, " "ou ``None`` si ces informations sont inconnues." -#: ../Doc/library/sys.rst:1428 +#: ../Doc/library/sys.rst:1445 msgid "" "When this variable is set to an integer value, it determines the maximum " "number of levels of traceback information printed when an unhandled " @@ -2635,7 +2644,7 @@ msgstr "" "est égale ou inférieure à ``0``, la pile d'appels n'est pas affichée, seul " "seuls le type et la valeur de l'exception sont le sont." -#: ../Doc/library/sys.rst:1436 +#: ../Doc/library/sys.rst:1453 msgid "" "A string containing the version number of the Python interpreter plus " "additional information on the build number and compiler used. This string " @@ -2650,7 +2659,7 @@ msgstr "" "utilisez plutôt :data:`version_info` et les fonctions fournies par le " "module :mod:`platform`." -#: ../Doc/library/sys.rst:1445 +#: ../Doc/library/sys.rst:1462 msgid "" "The C API version for this interpreter. Programmers may find this useful " "when debugging version conflicts between Python and extension modules." @@ -2659,7 +2668,7 @@ msgstr "" "trouver cette information utile en déboguant des conflits de versions entre " "Python et des modules d'extension." -#: ../Doc/library/sys.rst:1451 +#: ../Doc/library/sys.rst:1468 msgid "" "A tuple containing the five components of the version number: *major*, " "*minor*, *micro*, *releaselevel*, and *serial*. All values except " @@ -2677,11 +2686,11 @@ msgstr "" "attributs sont aussi accessibles par leur nom, ainsi ``sys.version_info[0]`` " "est équivalent à ``sys.version_info.major``, et ainsi de suite." -#: ../Doc/library/sys.rst:1459 +#: ../Doc/library/sys.rst:1476 msgid "Added named component attributes." msgstr "Ajout des attributs nommés." -#: ../Doc/library/sys.rst:1464 +#: ../Doc/library/sys.rst:1481 msgid "" "This is an implementation detail of the warnings framework; do not modify " "this value. Refer to the :mod:`warnings` module for more information on the " @@ -2691,7 +2700,7 @@ msgstr "" "Ne modifiez pas cette valeur. Reportez-vous au module :mod:`warnings` pour " "plus d'informations sur le gestionnaire d'avertissements." -#: ../Doc/library/sys.rst:1471 +#: ../Doc/library/sys.rst:1488 #, fuzzy msgid "" "The version number used to form registry keys on Windows platforms. This is " @@ -2707,7 +2716,7 @@ msgstr "" "d'information, et la modifier n'a aucun effet sur les clés de registre " "utilisées par Python. Disponibilité: Windows." -#: ../Doc/library/sys.rst:1482 +#: ../Doc/library/sys.rst:1499 msgid "" "A dictionary of the various implementation-specific flags passed through " "the :option:`-X` command-line option. Option names are either mapped to " @@ -2718,7 +2727,7 @@ msgstr "" "correspondent soit leur valeur, si elle est donnée explicitement, soit à :" "const:`True`. Exemple:" -#: ../Doc/library/sys.rst:1498 +#: ../Doc/library/sys.rst:1515 msgid "" "This is a CPython-specific way of accessing options passed through :option:`-" "X`. Other implementations may export them through other means, or not at " @@ -2728,11 +2737,11 @@ msgstr "" "l'option :option:`-X`. D'autres implémentations pourraient les exposer par " "d'autres moyens, ou pas du tout." -#: ../Doc/library/sys.rst:1506 +#: ../Doc/library/sys.rst:1523 msgid "Citations" msgstr "Citations" -#: ../Doc/library/sys.rst:1507 +#: ../Doc/library/sys.rst:1524 msgid "" "ISO/IEC 9899:1999. \"Programming languages -- C.\" A public draft of this " "standard is available at http://www.open-std.org/jtc1/sc22/wg14/www/docs/" @@ -2742,5 +2751,26 @@ msgstr "" "standard is available at http://www.open-std.org/jtc1/sc22/wg14/www/docs/" "n1256.pdf\\ ." +#~ msgid "" +#~ "The character encoding is platform-dependent. Under Windows, if the " +#~ "stream is interactive (that is, if its :meth:`isatty` method returns " +#~ "``True``), the console codepage is used, otherwise the ANSI code page. " +#~ "Under other platforms, the locale encoding is used (see :meth:`locale." +#~ "getpreferredencoding`)." +#~ msgstr "" +#~ "L'encodage des caractères dépend de la plate-forme. Sous Windows, si le " +#~ "flux est interactif (c'est-à-dire si sa méthode :meth:`isatty` donne " +#~ "``True``), l'encodage de la console est utilisée, sinon un encodage " +#~ "Windows. Sous d'autres plateformes, l'encodage local est utilisé (voir :" +#~ "meth:`locale.getpreferredencoding`)." + +#~ msgid "" +#~ "Under all platforms though, you can override this value by setting the :" +#~ "envvar:`PYTHONIOENCODING` environment variable before starting Python." +#~ msgstr "" +#~ "Sous toutes les plates-formes cependant, vous pouvez remplacer cette " +#~ "valeur en définissant la variable d'environnement :envvar:" +#~ "`PYTHONIOENCODING` avant de démarrer Python." + #~ msgid "Availability: Windows" #~ msgstr "Disponibilité : Windows" diff --git a/library/tempfile.po b/library/tempfile.po index 79ad3ba24..aab0094be 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-01-11 17:38+0100\n" +"Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: \n" "X-Generator: Poedit 2.0.6\n" #: ../Doc/library/tempfile.rst:2 diff --git a/library/test.po b/library/test.po index fb812ed72..90940af46 100644 --- a/library/test.po +++ b/library/test.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-09-15 21:52+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -371,39 +371,43 @@ msgid "Check for presence of docstrings." msgstr "" #: ../Doc/library/test.rst:361 -msgid "The :mod:`test.support` module defines the following functions:" +msgid "Define the URL of a dedicated HTTP server for the network tests." msgstr "" #: ../Doc/library/test.rst:365 +msgid "The :mod:`test.support` module defines the following functions:" +msgstr "" + +#: ../Doc/library/test.rst:369 msgid "" "Remove the module named *module_name* from ``sys.modules`` and delete any " "byte-compiled files of the module." msgstr "" -#: ../Doc/library/test.rst:371 +#: ../Doc/library/test.rst:375 msgid "Delete *name* from ``sys.modules``." msgstr "" -#: ../Doc/library/test.rst:376 +#: ../Doc/library/test.rst:380 msgid "" "Call :func:`os.unlink` on *filename*. On Windows platforms, this is wrapped " "with a wait loop that checks for the existence fo the file." msgstr "" -#: ../Doc/library/test.rst:382 +#: ../Doc/library/test.rst:386 msgid "" "Call :func:`os.rmdir` on *filename*. On Windows platforms, this is wrapped " "with a wait loop that checks for the existence of the file." msgstr "" -#: ../Doc/library/test.rst:388 +#: ../Doc/library/test.rst:392 msgid "" "Call :func:`shutil.rmtree` on *path* or call :func:`os.lstat` and :func:`os." "rmdir` to remove a path and its contents. On Windows platforms, this is " "wrapped with a wait loop that checks for the existence of the files." msgstr "" -#: ../Doc/library/test.rst:395 +#: ../Doc/library/test.rst:399 msgid "" "Move a PEP 3147/488 pyc file to its legacy pyc location and return the file " "system path to the legacy pyc file. The *source* value is the file system " @@ -411,22 +415,22 @@ msgid "" "3147/488 pyc file must exist." msgstr "" -#: ../Doc/library/test.rst:403 +#: ../Doc/library/test.rst:407 msgid "" "Return ``True`` if *resource* is enabled and available. The list of " "available resources is only set when :mod:`test.regrtest` is executing the " "tests." msgstr "" -#: ../Doc/library/test.rst:410 +#: ../Doc/library/test.rst:414 msgid "Return ``True`` if Python was not built with ``-O0`` or ``-Og``." msgstr "" -#: ../Doc/library/test.rst:415 +#: ../Doc/library/test.rst:419 msgid "Return :data:`_testcapi.WITH_PYMALLOC`." msgstr "" -#: ../Doc/library/test.rst:420 +#: ../Doc/library/test.rst:424 msgid "" "Raise :exc:`ResourceDenied` if *resource* is not available. *msg* is the " "argument to :exc:`ResourceDenied` if it is raised. Always returns ``True`` " @@ -434,53 +438,53 @@ msgid "" "tests are executed by :mod:`test.regrtest`." msgstr "" -#: ../Doc/library/test.rst:428 +#: ../Doc/library/test.rst:432 msgid "" "Raise :exc:`unittest.SkipTest` on TLS certification validation failures." msgstr "" -#: ../Doc/library/test.rst:433 +#: ../Doc/library/test.rst:437 msgid "Return a repr of *dict* with keys sorted." msgstr "" -#: ../Doc/library/test.rst:438 +#: ../Doc/library/test.rst:442 msgid "" "Return the path to the file named *filename*. If no match is found " "*filename* is returned. This does not equal a failure since it could be the " "path to the file." msgstr "" -#: ../Doc/library/test.rst:442 +#: ../Doc/library/test.rst:446 msgid "" "Setting *subdir* indicates a relative path to use to find the file rather " "than looking directly in the path directories." msgstr "" -#: ../Doc/library/test.rst:448 +#: ../Doc/library/test.rst:452 msgid "" "Create an empty file with *filename*. If it already exists, truncate it." msgstr "" -#: ../Doc/library/test.rst:453 +#: ../Doc/library/test.rst:457 msgid "Count the number of open file descriptors." msgstr "" -#: ../Doc/library/test.rst:458 +#: ../Doc/library/test.rst:462 msgid "Match *test* to patterns set in :func:`set_match_tests`." msgstr "" -#: ../Doc/library/test.rst:463 +#: ../Doc/library/test.rst:467 msgid "Define match test with regular expression *patterns*." msgstr "" -#: ../Doc/library/test.rst:468 +#: ../Doc/library/test.rst:472 msgid "" "Execute :class:`unittest.TestCase` subclasses passed to the function. The " "function scans the classes for methods starting with the prefix ``test_`` " "and executes the tests individually." msgstr "" -#: ../Doc/library/test.rst:472 +#: ../Doc/library/test.rst:476 msgid "" "It is also legal to pass strings as parameters; these should be keys in " "``sys.modules``. Each associated module will be scanned by ``unittest." @@ -488,17 +492,17 @@ msgid "" "func:`test_main` function::" msgstr "" -#: ../Doc/library/test.rst:480 +#: ../Doc/library/test.rst:484 msgid "This will run all tests defined in the named module." msgstr "" -#: ../Doc/library/test.rst:485 +#: ../Doc/library/test.rst:489 msgid "" "Run :func:`doctest.testmod` on the given *module*. Return ``(failure_count, " "test_count)``." msgstr "" -#: ../Doc/library/test.rst:488 +#: ../Doc/library/test.rst:492 msgid "" "If *verbosity* is ``None``, :func:`doctest.testmod` is run with verbosity " "set to :data:`verbose`. Otherwise, it is run with verbosity set to " @@ -506,19 +510,19 @@ msgid "" "testmod`." msgstr "" -#: ../Doc/library/test.rst:496 +#: ../Doc/library/test.rst:500 msgid "" "Set the :func:`sys.setswitchinterval` to the given *interval*. Defines a " "minimum interval for Android systems to prevent the system from hanging." msgstr "" -#: ../Doc/library/test.rst:502 +#: ../Doc/library/test.rst:506 msgid "" "Use this check to guard CPython's implementation-specific tests or to run " "them only on the implementations guarded by the arguments::" msgstr "" -#: ../Doc/library/test.rst:512 +#: ../Doc/library/test.rst:516 msgid "" "A convenience wrapper for :func:`warnings.catch_warnings()` that makes it " "easier to test that a warning was correctly raised. It is approximately " @@ -527,7 +531,7 @@ msgid "" "automatically validate the results that are recorded." msgstr "" -#: ../Doc/library/test.rst:518 +#: ../Doc/library/test.rst:522 msgid "" "``check_warnings`` accepts 2-tuples of the form ``(\"message regexp\", " "WarningCategory)`` as positional arguments. If one or more *filters* are " @@ -539,15 +543,15 @@ msgid "" "*quiet* to ``True``." msgstr "" -#: ../Doc/library/test.rst:527 +#: ../Doc/library/test.rst:531 msgid "If no arguments are specified, it defaults to::" msgstr "" -#: ../Doc/library/test.rst:531 +#: ../Doc/library/test.rst:535 msgid "In this case all warnings are caught and no errors are raised." msgstr "" -#: ../Doc/library/test.rst:533 +#: ../Doc/library/test.rst:537 msgid "" "On entry to the context manager, a :class:`WarningRecorder` instance is " "returned. The underlying warnings list from :func:`~warnings.catch_warnings` " @@ -559,103 +563,103 @@ msgid "" "return ``None``." msgstr "" -#: ../Doc/library/test.rst:542 +#: ../Doc/library/test.rst:546 msgid "" "The recorder object also has a :meth:`reset` method, which clears the " "warnings list." msgstr "" -#: ../Doc/library/test.rst:545 +#: ../Doc/library/test.rst:549 msgid "The context manager is designed to be used like this::" msgstr "" -#: ../Doc/library/test.rst:552 +#: ../Doc/library/test.rst:556 msgid "" "In this case if either warning was not raised, or some other warning was " "raised, :func:`check_warnings` would raise an error." msgstr "" -#: ../Doc/library/test.rst:555 +#: ../Doc/library/test.rst:559 msgid "" "When a test needs to look more deeply into the warnings, rather than just " "checking whether or not they occurred, code like this can be used::" msgstr "" -#: ../Doc/library/test.rst:569 +#: ../Doc/library/test.rst:573 msgid "" "Here all warnings will be caught, and the test code tests the captured " "warnings directly." msgstr "" -#: ../Doc/library/test.rst:572 +#: ../Doc/library/test.rst:576 msgid "New optional arguments *filters* and *quiet*." msgstr "" -#: ../Doc/library/test.rst:578 +#: ../Doc/library/test.rst:582 msgid "" "Context manager to check that no :exc:`ResourceWarning` was raised. You " "must remove the object which may emit :exc:`ResourceWarning` before the end " "of the context manager." msgstr "" -#: ../Doc/library/test.rst:585 +#: ../Doc/library/test.rst:589 msgid "" "Set the values for :data:`max_memuse` and :data:`real_max_memuse` for big " "memory tests." msgstr "" -#: ../Doc/library/test.rst:591 +#: ../Doc/library/test.rst:595 msgid "" "Store the value from *stdout*. It is meant to hold the stdout at the time " "the regrtest began." msgstr "" -#: ../Doc/library/test.rst:597 +#: ../Doc/library/test.rst:601 msgid "" "Return the original stdout set by :func:`record_original_stdout` or ``sys." "stdout`` if it's not set." msgstr "" -#: ../Doc/library/test.rst:603 +#: ../Doc/library/test.rst:607 msgid "" "Strip the *stderr* of a Python process from potential debug output emitted " "by the interpreter. This will typically be run on the result of :meth:" "`subprocess.Popen.communicate`." msgstr "" -#: ../Doc/library/test.rst:610 +#: ../Doc/library/test.rst:614 msgid "" "Return a list of command line arguments reproducing the current settings in " "``sys.flags`` and ``sys.warnoptions``." msgstr "" -#: ../Doc/library/test.rst:616 +#: ../Doc/library/test.rst:620 msgid "" "Return a list of command line arguments reproducing the current optimization " "settings in ``sys.flags``." msgstr "" -#: ../Doc/library/test.rst:624 +#: ../Doc/library/test.rst:628 msgid "" "A context managers that temporarily replaces the named stream with :class:" "`io.StringIO` object." msgstr "" -#: ../Doc/library/test.rst:627 +#: ../Doc/library/test.rst:631 msgid "Example use with output streams::" msgstr "" -#: ../Doc/library/test.rst:635 +#: ../Doc/library/test.rst:639 msgid "Example use with input stream::" msgstr "" -#: ../Doc/library/test.rst:647 +#: ../Doc/library/test.rst:651 msgid "" "A context manager that creates a temporary directory at *path* and yields " "the directory." msgstr "" -#: ../Doc/library/test.rst:650 +#: ../Doc/library/test.rst:654 msgid "" "If *path* is ``None``, the temporary directory is created using :func:" "`tempfile.mkdtemp`. If *quiet* is ``False``, the context manager raises an " @@ -663,26 +667,26 @@ msgid "" "created, only a warning is issued." msgstr "" -#: ../Doc/library/test.rst:658 +#: ../Doc/library/test.rst:662 msgid "" "A context manager that temporarily changes the current working directory to " "*path* and yields the directory." msgstr "" -#: ../Doc/library/test.rst:661 +#: ../Doc/library/test.rst:665 msgid "" "If *quiet* is ``False``, the context manager raises an exception on error. " "Otherwise, it issues only a warning and keeps the current working directory " "the same." msgstr "" -#: ../Doc/library/test.rst:668 +#: ../Doc/library/test.rst:672 msgid "" "A context manager that temporarily creates a new directory and changes the " "current working directory (CWD)." msgstr "" -#: ../Doc/library/test.rst:671 +#: ../Doc/library/test.rst:675 msgid "" "The context manager creates a temporary directory in the current directory " "with name *name* before temporarily changing the current working directory. " @@ -690,28 +694,28 @@ msgid "" "`tempfile.mkdtemp`." msgstr "" -#: ../Doc/library/test.rst:676 +#: ../Doc/library/test.rst:680 msgid "" "If *quiet* is ``False`` and it is not possible to create or change the CWD, " "an error is raised. Otherwise, only a warning is raised and the original " "CWD is used." msgstr "" -#: ../Doc/library/test.rst:683 +#: ../Doc/library/test.rst:687 msgid "A context manager that temporarily sets the process umask." msgstr "" -#: ../Doc/library/test.rst:688 +#: ../Doc/library/test.rst:692 msgid "" "A context manager that raises :exc:`ResourceDenied` when various issues with " "the internet connection manifest themselves as exceptions." msgstr "" -#: ../Doc/library/test.rst:694 +#: ../Doc/library/test.rst:698 msgid "A context manager that replaces ``sys.stderr`` with ``sys.__stderr__``." msgstr "" -#: ../Doc/library/test.rst:699 +#: ../Doc/library/test.rst:703 msgid "" "Force as many objects as possible to be collected. This is needed because " "timely deallocation is not guaranteed by the garbage collector. This means " @@ -719,104 +723,104 @@ msgid "" "remain alive for longer than expected." msgstr "" -#: ../Doc/library/test.rst:707 +#: ../Doc/library/test.rst:711 msgid "" "A context manager that disables the garbage collector upon entry and " "reenables it upon exit." msgstr "" -#: ../Doc/library/test.rst:713 +#: ../Doc/library/test.rst:717 msgid "Context manager to swap out an attribute with a new object." msgstr "" -#: ../Doc/library/test.rst:715 ../Doc/library/test.rst:733 +#: ../Doc/library/test.rst:719 ../Doc/library/test.rst:737 msgid "Usage::" msgstr "Utilisation ::" -#: ../Doc/library/test.rst:720 +#: ../Doc/library/test.rst:724 msgid "" "This will set ``obj.attr`` to 5 for the duration of the ``with`` block, " "restoring the old value at the end of the block. If ``attr`` doesn't exist " "on ``obj``, it will be created and then deleted at the end of the block." msgstr "" -#: ../Doc/library/test.rst:725 ../Doc/library/test.rst:743 +#: ../Doc/library/test.rst:729 ../Doc/library/test.rst:747 msgid "" "The old value (or ``None`` if it doesn't exist) will be assigned to the " "target of the \"as\" clause, if there is one." msgstr "" -#: ../Doc/library/test.rst:731 +#: ../Doc/library/test.rst:735 msgid "Context manager to swap out an item with a new object." msgstr "" -#: ../Doc/library/test.rst:738 +#: ../Doc/library/test.rst:742 msgid "" "This will set ``obj[\"item\"]`` to 5 for the duration of the ``with`` block, " "restoring the old value at the end of the block. If ``item`` doesn't exist " "on ``obj``, it will be created and then deleted at the end of the block." msgstr "" -#: ../Doc/library/test.rst:749 +#: ../Doc/library/test.rst:753 msgid "" "Context manager to wait until all threads created in the ``with`` statement " "exit." msgstr "" -#: ../Doc/library/test.rst:755 +#: ../Doc/library/test.rst:759 msgid "" "Context manager to start *threads*. It attempts to join the threads upon " "exit." msgstr "" -#: ../Doc/library/test.rst:761 +#: ../Doc/library/test.rst:765 msgid "" "Return :func:`struct.calcsize` for ``nP{fmt}0n`` or, if ``gettotalrefcount`` " "exists, ``2PnP{fmt}0P``." msgstr "" -#: ../Doc/library/test.rst:767 +#: ../Doc/library/test.rst:771 msgid "" "Return :func:`struct.calcsize` for ``nPn{fmt}0n`` or, if " "``gettotalrefcount`` exists, ``2PnPn{fmt}0P``." msgstr "" -#: ../Doc/library/test.rst:773 +#: ../Doc/library/test.rst:777 msgid "" "For testcase *test*, assert that the ``sys.getsizeof`` for *o* plus the GC " "header size equals *size*." msgstr "" -#: ../Doc/library/test.rst:779 +#: ../Doc/library/test.rst:783 msgid "Return ``True`` if the OS supports symbolic links, ``False`` otherwise." msgstr "" -#: ../Doc/library/test.rst:785 +#: ../Doc/library/test.rst:789 msgid "Return ``True`` if the OS supports xattr, ``False`` otherwise." msgstr "" -#: ../Doc/library/test.rst:791 +#: ../Doc/library/test.rst:795 msgid "A decorator for running tests that require support for symbolic links." msgstr "" -#: ../Doc/library/test.rst:796 +#: ../Doc/library/test.rst:800 msgid "A decorator for running tests that require support for xattr." msgstr "" -#: ../Doc/library/test.rst:801 +#: ../Doc/library/test.rst:805 msgid "" "A decorator for running tests that require a functional bind() for Unix " "sockets." msgstr "" -#: ../Doc/library/test.rst:807 +#: ../Doc/library/test.rst:811 msgid "" "A decorator to conditionally mark tests with :func:`unittest." "expectedFailure`. Any use of this decorator should have an associated " "comment identifying the relevant tracker issue." msgstr "" -#: ../Doc/library/test.rst:814 +#: ../Doc/library/test.rst:818 msgid "" "A decorator for running a function in a different locale, correctly " "resetting it after it has finished. *catstr* is the locale category as a " @@ -824,73 +828,73 @@ msgid "" "sequentially, and the first valid locale will be used." msgstr "" -#: ../Doc/library/test.rst:822 +#: ../Doc/library/test.rst:826 msgid "" "A decorator for running a function in a specific timezone, correctly " "resetting it after it has finished." msgstr "" -#: ../Doc/library/test.rst:828 +#: ../Doc/library/test.rst:832 msgid "" "Decorator for the minimum version when running test on FreeBSD. If the " "FreeBSD version is less than the minimum, raise :exc:`unittest.SkipTest`." msgstr "" -#: ../Doc/library/test.rst:834 +#: ../Doc/library/test.rst:838 msgid "" "Decorator for the minimum version when running test on Linux. If the Linux " "version is less than the minimum, raise :exc:`unittest.SkipTest`." msgstr "" -#: ../Doc/library/test.rst:840 +#: ../Doc/library/test.rst:844 msgid "" "Decorator for the minimum version when running test on Mac OS X. If the MAC " "OS X version is less than the minimum, raise :exc:`unittest.SkipTest`." msgstr "" -#: ../Doc/library/test.rst:846 +#: ../Doc/library/test.rst:850 msgid "Decorator for skipping tests on non-IEEE 754 platforms." msgstr "" -#: ../Doc/library/test.rst:851 +#: ../Doc/library/test.rst:855 msgid "Decorator for skipping tests if :mod:`zlib` doesn't exist." msgstr "" -#: ../Doc/library/test.rst:856 +#: ../Doc/library/test.rst:860 msgid "Decorator for skipping tests if :mod:`gzip` doesn't exist." msgstr "" -#: ../Doc/library/test.rst:861 +#: ../Doc/library/test.rst:865 msgid "Decorator for skipping tests if :mod:`bz2` doesn't exist." msgstr "" -#: ../Doc/library/test.rst:866 +#: ../Doc/library/test.rst:870 msgid "Decorator for skipping tests if :mod:`lzma` doesn't exist." msgstr "" -#: ../Doc/library/test.rst:871 +#: ../Doc/library/test.rst:875 msgid "Decorator for skipping tests if *resource* is not available." msgstr "" -#: ../Doc/library/test.rst:876 +#: ../Doc/library/test.rst:880 msgid "Decorator for only running the test if :data:`HAVE_DOCSTRINGS`." msgstr "" -#: ../Doc/library/test.rst:881 +#: ../Doc/library/test.rst:885 msgid "Decorator for tests only applicable to CPython." msgstr "" -#: ../Doc/library/test.rst:886 +#: ../Doc/library/test.rst:890 msgid "" "Decorator for invoking :func:`check_impl_detail` on *guards*. If that " "returns ``False``, then uses *msg* as the reason for skipping the test." msgstr "" -#: ../Doc/library/test.rst:892 +#: ../Doc/library/test.rst:896 msgid "Decorator to temporarily turn off tracing for the duration of the test." msgstr "" -#: ../Doc/library/test.rst:897 +#: ../Doc/library/test.rst:901 msgid "" "Decorator for tests which involve reference counting. The decorator does " "not run the test if it is not run by CPython. Any trace function is unset " @@ -898,15 +902,15 @@ msgid "" "trace function." msgstr "" -#: ../Doc/library/test.rst:905 +#: ../Doc/library/test.rst:909 msgid "Decorator to ensure the threads are cleaned up even if the test fails." msgstr "" -#: ../Doc/library/test.rst:910 +#: ../Doc/library/test.rst:914 msgid "Decorator for bigmem tests." msgstr "" -#: ../Doc/library/test.rst:912 +#: ../Doc/library/test.rst:916 msgid "" "*size* is a requested size for the test (in arbitrary, test-interpreted " "units.) *memuse* is the number of bytes per unit for the test, or a good " @@ -914,7 +918,7 @@ msgid "" "each, could be decorated with ``@bigmemtest(size=_4G, memuse=2)``." msgstr "" -#: ../Doc/library/test.rst:917 +#: ../Doc/library/test.rst:921 msgid "" "The *size* argument is normally passed to the decorated test method as an " "extra argument. If *dry_run* is ``True``, the value passed to the test " @@ -922,19 +926,19 @@ msgid "" "means the test doesn't support dummy runs when ``-M`` is not specified." msgstr "" -#: ../Doc/library/test.rst:925 +#: ../Doc/library/test.rst:929 msgid "" "Decorator for tests that fill the address space. *f* is the function to " "wrap." msgstr "" -#: ../Doc/library/test.rst:931 +#: ../Doc/library/test.rst:935 msgid "" "Create an invalid file descriptor by opening and closing a temporary file, " "and returning its descriptor." msgstr "" -#: ../Doc/library/test.rst:937 +#: ../Doc/library/test.rst:941 msgid "" "Test for syntax errors in *statement* by attempting to compile *statement*. " "*testcase* is the :mod:`unittest` instance for the test. *errtext* is the " @@ -943,18 +947,18 @@ msgid "" "compares to the offset of the :exc:`SyntaxError`." msgstr "" -#: ../Doc/library/test.rst:946 +#: ../Doc/library/test.rst:950 msgid "Open *url*. If open fails, raises :exc:`TestFailed`." msgstr "" -#: ../Doc/library/test.rst:951 +#: ../Doc/library/test.rst:955 msgid "" "This function imports and returns the named module. Unlike a normal import, " "this function raises :exc:`unittest.SkipTest` if the module cannot be " "imported." msgstr "" -#: ../Doc/library/test.rst:955 +#: ../Doc/library/test.rst:959 msgid "" "Module and package deprecation messages are suppressed during this import if " "*deprecated* is ``True``. If a module is required on a platform but " @@ -962,7 +966,7 @@ msgid "" "which will be compared against :data:`sys.platform`." msgstr "" -#: ../Doc/library/test.rst:965 +#: ../Doc/library/test.rst:969 msgid "" "This function imports and returns a fresh copy of the named Python module by " "removing the named module from ``sys.modules`` before doing the import. Note " @@ -970,82 +974,82 @@ msgid "" "operation." msgstr "" -#: ../Doc/library/test.rst:970 +#: ../Doc/library/test.rst:974 msgid "" "*fresh* is an iterable of additional module names that are also removed from " "the ``sys.modules`` cache before doing the import." msgstr "" -#: ../Doc/library/test.rst:973 +#: ../Doc/library/test.rst:977 msgid "" "*blocked* is an iterable of module names that are replaced with ``None`` in " "the module cache during the import to ensure that attempts to import them " "raise :exc:`ImportError`." msgstr "" -#: ../Doc/library/test.rst:977 +#: ../Doc/library/test.rst:981 msgid "" "The named module and any modules named in the *fresh* and *blocked* " "parameters are saved before starting the import and then reinserted into " "``sys.modules`` when the fresh import is complete." msgstr "" -#: ../Doc/library/test.rst:981 +#: ../Doc/library/test.rst:985 msgid "" "Module and package deprecation messages are suppressed during this import if " "*deprecated* is ``True``." msgstr "" -#: ../Doc/library/test.rst:984 +#: ../Doc/library/test.rst:988 msgid "" "This function will raise :exc:`ImportError` if the named module cannot be " "imported." msgstr "" -#: ../Doc/library/test.rst:987 ../Doc/library/test.rst:1167 +#: ../Doc/library/test.rst:991 ../Doc/library/test.rst:1171 msgid "Example use::" msgstr "" -#: ../Doc/library/test.rst:1001 +#: ../Doc/library/test.rst:1005 msgid "Return a copy of :data:`sys.modules`." msgstr "" -#: ../Doc/library/test.rst:1006 +#: ../Doc/library/test.rst:1010 msgid "" "Remove modules except for *oldmodules* and ``encodings`` in order to " "preserve internal cache." msgstr "" -#: ../Doc/library/test.rst:1012 +#: ../Doc/library/test.rst:1016 msgid "Return current thread count and copy of dangling threads." msgstr "" -#: ../Doc/library/test.rst:1017 +#: ../Doc/library/test.rst:1021 msgid "" "Cleanup up threads not specified in *original_values*. Designed to emit a " "warning if a test leaves running threads in the background." msgstr "" -#: ../Doc/library/test.rst:1023 +#: ../Doc/library/test.rst:1027 msgid "" "Join a *thread* within *timeout*. Raise an :exc:`AssertionError` if thread " "is still alive after *timeout* seconds." msgstr "" -#: ../Doc/library/test.rst:1029 +#: ../Doc/library/test.rst:1033 msgid "" "Use this at the end of ``test_main`` whenever sub-processes are started. " "This will help ensure that no extra children (zombies) stick around to hog " "resources and create problems when looking for refleaks." msgstr "" -#: ../Doc/library/test.rst:1036 +#: ../Doc/library/test.rst:1040 msgid "" "Get an attribute, raising :exc:`unittest.SkipTest` if :exc:`AttributeError` " "is raised." msgstr "" -#: ../Doc/library/test.rst:1042 +#: ../Doc/library/test.rst:1046 msgid "" "Bind the socket to a free port and return the port number. Relies on " "ephemeral ports in order to ensure we are using an unbound port. This is " @@ -1058,7 +1062,7 @@ msgid "" "testing multicasting via multiple UDP sockets." msgstr "" -#: ../Doc/library/test.rst:1053 +#: ../Doc/library/test.rst:1057 msgid "" "Additionally, if the :const:`~socket.SO_EXCLUSIVEADDRUSE` socket option is " "available (i.e. on Windows), it will be set on the socket. This will " @@ -1066,13 +1070,13 @@ msgid "" "test." msgstr "" -#: ../Doc/library/test.rst:1061 +#: ../Doc/library/test.rst:1065 msgid "" "Bind a unix socket, raising :exc:`unittest.SkipTest` if :exc:" "`PermissionError` is raised." msgstr "" -#: ../Doc/library/test.rst:1067 +#: ../Doc/library/test.rst:1071 msgid "" "Returns an unused port that should be suitable for binding. This is " "achieved by creating a temporary socket with the same family and type as the " @@ -1083,7 +1087,7 @@ msgid "" "port is returned." msgstr "" -#: ../Doc/library/test.rst:1076 +#: ../Doc/library/test.rst:1080 msgid "" "Either this method or :func:`bind_port` should be used for any tests where a " "server socket needs to be bound to a particular port for the duration of the " @@ -1096,7 +1100,7 @@ msgid "" "simultaneously, which is a problem for buildbots." msgstr "" -#: ../Doc/library/test.rst:1090 +#: ../Doc/library/test.rst:1094 msgid "" "Generic implementation of the :mod:`unittest` ``load_tests`` protocol for " "use in test packages. *pkg_dir* is the root directory of the package; " @@ -1105,59 +1109,59 @@ msgid "" "the following::" msgstr "" -#: ../Doc/library/test.rst:1105 +#: ../Doc/library/test.rst:1109 msgid "Return ``True`` if the file system for *directory* is case-insensitive." msgstr "" -#: ../Doc/library/test.rst:1110 +#: ../Doc/library/test.rst:1114 msgid "" "Returns the set of attributes, functions or methods of *ref_api* not found " "on *other_api*, except for a defined list of items to be ignored in this " "check specified in *ignore*." msgstr "" -#: ../Doc/library/test.rst:1114 +#: ../Doc/library/test.rst:1118 msgid "" "By default this skips private attributes beginning with '_' but includes all " "magic methods, i.e. those starting and ending in '__'." msgstr "" -#: ../Doc/library/test.rst:1122 +#: ../Doc/library/test.rst:1126 msgid "" "Override *object_to_patch.attr_name* with *new_value*. Also add cleanup " "procedure to *test_instance* to restore *object_to_patch* for *attr_name*. " "The *attr_name* should be a valid attribute for *object_to_patch*." msgstr "" -#: ../Doc/library/test.rst:1130 +#: ../Doc/library/test.rst:1134 msgid "" "Run *code* in subinterpreter. Raise :exc:`unittest.SkipTest` if :mod:" "`tracemalloc` is enabled." msgstr "" -#: ../Doc/library/test.rst:1136 +#: ../Doc/library/test.rst:1140 msgid "Assert that *iter* is deallocated after iterating." msgstr "" -#: ../Doc/library/test.rst:1141 +#: ../Doc/library/test.rst:1145 msgid "" "Check for the existence of the compiler executables whose names are listed " "in *cmd_names* or all the compiler executables when *cmd_names* is empty and " "return the first missing executable or ``None`` when none is found missing." msgstr "" -#: ../Doc/library/test.rst:1149 +#: ../Doc/library/test.rst:1153 msgid "" "Assert that the ``__all__`` variable of *module* contains all public names." msgstr "" -#: ../Doc/library/test.rst:1151 +#: ../Doc/library/test.rst:1155 msgid "" "The module's public names (its API) are detected automatically based on " "whether they match the public name convention and were defined in *module*." msgstr "" -#: ../Doc/library/test.rst:1155 +#: ../Doc/library/test.rst:1159 msgid "" "The *name_of_module* argument can specify (as a string or tuple thereof) " "what module(s) an API could be defined in order to be detected as a public " @@ -1165,7 +1169,7 @@ msgid "" "other modules, possibly a C backend (like ``csv`` and its ``_csv``)." msgstr "" -#: ../Doc/library/test.rst:1160 +#: ../Doc/library/test.rst:1164 msgid "" "The *extra* argument can be a set of names that wouldn't otherwise be " "automatically detected as \"public\", like objects without a proper " @@ -1173,17 +1177,17 @@ msgid "" "detected ones." msgstr "" -#: ../Doc/library/test.rst:1164 +#: ../Doc/library/test.rst:1168 msgid "" "The *blacklist* argument can be a set of names that must not be treated as " "part of the public API even though their names indicate otherwise." msgstr "" -#: ../Doc/library/test.rst:1189 +#: ../Doc/library/test.rst:1193 msgid "The :mod:`test.support` module defines the following classes:" msgstr "" -#: ../Doc/library/test.rst:1193 +#: ../Doc/library/test.rst:1197 msgid "" "Instances are a context manager that raises :exc:`ResourceDenied` if the " "specified exception type is raised. Any keyword arguments are treated as " @@ -1192,7 +1196,7 @@ msgid "" "attributes on the exception is :exc:`ResourceDenied` raised." msgstr "" -#: ../Doc/library/test.rst:1202 +#: ../Doc/library/test.rst:1206 msgid "" "Class used to temporarily set or unset environment variables. Instances can " "be used as a context manager and have a complete dictionary interface for " @@ -1201,135 +1205,135 @@ msgid "" "instance will be rolled back." msgstr "" -#: ../Doc/library/test.rst:1208 +#: ../Doc/library/test.rst:1212 msgid "Added dictionary interface." msgstr "" -#: ../Doc/library/test.rst:1213 +#: ../Doc/library/test.rst:1217 msgid "" "Temporarily set the environment variable ``envvar`` to the value of " "``value``." msgstr "" -#: ../Doc/library/test.rst:1219 +#: ../Doc/library/test.rst:1223 msgid "Temporarily unset the environment variable ``envvar``." msgstr "" -#: ../Doc/library/test.rst:1224 +#: ../Doc/library/test.rst:1228 msgid "" "A context manager used to try to prevent crash dialog popups on tests that " "are expected to crash a subprocess." msgstr "" -#: ../Doc/library/test.rst:1227 +#: ../Doc/library/test.rst:1231 msgid "" "On Windows, it disables Windows Error Reporting dialogs using `SetErrorMode " "`_." msgstr "" -#: ../Doc/library/test.rst:1230 +#: ../Doc/library/test.rst:1234 msgid "" "On UNIX, :func:`resource.setrlimit` is used to set :attr:`resource." "RLIMIT_CORE`'s soft limit to 0 to prevent coredump file creation." msgstr "" -#: ../Doc/library/test.rst:1234 +#: ../Doc/library/test.rst:1238 msgid "On both platforms, the old value is restored by :meth:`__exit__`." msgstr "" -#: ../Doc/library/test.rst:1239 +#: ../Doc/library/test.rst:1243 msgid "" "A context manager to force import to return a new module reference. This is " "useful for testing module-level behaviors, such as the emission of a " "DeprecationWarning on import. Example usage::" msgstr "" -#: ../Doc/library/test.rst:1249 +#: ../Doc/library/test.rst:1253 msgid "A context manager to temporarily add directories to sys.path." msgstr "" -#: ../Doc/library/test.rst:1251 +#: ../Doc/library/test.rst:1255 msgid "" "This makes a copy of :data:`sys.path`, appends any directories given as " "positional arguments, then reverts :data:`sys.path` to the copied settings " "when the context ends." msgstr "" -#: ../Doc/library/test.rst:1255 +#: ../Doc/library/test.rst:1259 msgid "" "Note that *all* :data:`sys.path` modifications in the body of the context " "manager, including replacement of the object, will be reverted at the end of " "the block." msgstr "" -#: ../Doc/library/test.rst:1262 +#: ../Doc/library/test.rst:1266 msgid "" "Class to save and restore signal handlers registered by the Python signal " "handler." msgstr "" -#: ../Doc/library/test.rst:1270 +#: ../Doc/library/test.rst:1274 msgid "Try to match a single dict with the supplied arguments." msgstr "" -#: ../Doc/library/test.rst:1275 +#: ../Doc/library/test.rst:1279 msgid "Try to match a single stored value (*dv*) with a supplied value (*v*)." msgstr "" -#: ../Doc/library/test.rst:1280 +#: ../Doc/library/test.rst:1284 msgid "" "Class used to record warnings for unit tests. See documentation of :func:" "`check_warnings` above for more details." msgstr "" -#: ../Doc/library/test.rst:1288 +#: ../Doc/library/test.rst:1292 msgid "Run *test* and return the result." msgstr "" -#: ../Doc/library/test.rst:1293 +#: ../Doc/library/test.rst:1297 msgid "Class for logging support." msgstr "" -#: ../Doc/library/test.rst:1298 +#: ../Doc/library/test.rst:1302 msgid "" "Simple :term:`path-like object`. It implements the :meth:`__fspath__` " "method which just returns the *path* argument. If *path* is an exception, " "it will be raised in :meth:`!__fspath__`." msgstr "" -#: ../Doc/library/test.rst:1304 +#: ../Doc/library/test.rst:1308 msgid "" ":mod:`test.support.script_helper` --- Utilities for the Python execution " "tests" msgstr "" -#: ../Doc/library/test.rst:1310 +#: ../Doc/library/test.rst:1314 msgid "" "The :mod:`test.support.script_helper` module provides support for Python's " "script execution tests." msgstr "" -#: ../Doc/library/test.rst:1315 +#: ../Doc/library/test.rst:1319 msgid "" "Return ``True`` if ``sys.executable interpreter`` requires environment " "variables in order to be able to run at all." msgstr "" -#: ../Doc/library/test.rst:1318 +#: ../Doc/library/test.rst:1322 msgid "" "This is designed to be used with ``@unittest.skipIf()`` to annotate tests " "that need to use an ``assert_python*()`` function to launch an isolated mode " "(``-I``) or no environment mode (``-E``) sub-interpreter process." msgstr "" -#: ../Doc/library/test.rst:1322 +#: ../Doc/library/test.rst:1326 msgid "" "A normal build & test does not run into this situation but it can happen " "when trying to run the standard library test suite from an interpreter that " "doesn't have an obvious home with Python's current home finding logic." msgstr "" -#: ../Doc/library/test.rst:1326 +#: ../Doc/library/test.rst:1330 msgid "" "Setting :envvar:`PYTHONHOME` is one way to get most of the testsuite to run " "in that situation. :envvar:`PYTHONPATH` or :envvar:`PYTHONUSERSITE` are " @@ -1337,80 +1341,80 @@ msgid "" "interpreter can start." msgstr "" -#: ../Doc/library/test.rst:1334 +#: ../Doc/library/test.rst:1338 msgid "" "Set up the environment based on *env_vars* for running the interpreter in a " "subprocess. The values can include ``__isolated``, ``__cleanenv``, " "``__cwd``, and ``TERM``." msgstr "" -#: ../Doc/library/test.rst:1341 +#: ../Doc/library/test.rst:1345 msgid "" "Assert that running the interpreter with *args* and optional environment " "variables *env_vars* succeeds (``rc == 0``) and return a ``(return code, " "stdout, stderr)`` tuple." msgstr "" -#: ../Doc/library/test.rst:1345 +#: ../Doc/library/test.rst:1349 msgid "" "If the ``__cleanenv`` keyword is set, *env_vars* is used as a fresh " "environment." msgstr "" -#: ../Doc/library/test.rst:1348 +#: ../Doc/library/test.rst:1352 msgid "" "Python is started in isolated mode (command line option ``-I``), except if " "the ``__isolated`` keyword is set to ``False``." msgstr "" -#: ../Doc/library/test.rst:1354 +#: ../Doc/library/test.rst:1358 msgid "" "Assert that running the interpreter with *args* and optional environment " "variables *env_vars* fails (``rc != 0``) and return a ``(return code, " "stdout, stderr)`` tuple." msgstr "" -#: ../Doc/library/test.rst:1358 +#: ../Doc/library/test.rst:1362 msgid "See :func:`assert_python_ok` for more options." msgstr "" -#: ../Doc/library/test.rst:1363 +#: ../Doc/library/test.rst:1367 msgid "Run a Python subprocess with the given arguments." msgstr "" -#: ../Doc/library/test.rst:1365 +#: ../Doc/library/test.rst:1369 msgid "" "*kw* is extra keyword args to pass to :func:`subprocess.Popen`. Returns a :" "class:`subprocess.Popen` object." msgstr "" -#: ../Doc/library/test.rst:1371 +#: ../Doc/library/test.rst:1375 msgid "" "Run the given :class:`subprocess.Popen` process until completion and return " "stdout." msgstr "" -#: ../Doc/library/test.rst:1377 +#: ../Doc/library/test.rst:1381 msgid "" "Create script containing *source* in path *script_dir* and " "*script_basename*. If *omit_suffix* is ``False``, append ``.py`` to the " "name. Return the full script path." msgstr "" -#: ../Doc/library/test.rst:1384 +#: ../Doc/library/test.rst:1388 msgid "" "Create zip file at *zip_dir* and *zip_basename* with extension ``zip`` which " "contains the files in *script_name*. *name_in_zip* is the archive name. " "Return a tuple containing ``(full path, full path of archive name)``." msgstr "" -#: ../Doc/library/test.rst:1391 +#: ../Doc/library/test.rst:1395 msgid "" "Create a directory named *pkg_dir* containing an ``__init__`` file with " "*init_source* as its contents." msgstr "" -#: ../Doc/library/test.rst:1398 +#: ../Doc/library/test.rst:1402 msgid "" "Create a zip package directory with a path of *zip_dir* and *zip_basename* " "containing an empty ``__init__`` file and a file *script_basename* " diff --git a/library/time.po b/library/time.po index 14467107f..52f8dc55b 100644 --- a/library/time.po +++ b/library/time.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-03-18 01:17+0100\n" "Last-Translator: Igor Garbuz \n" "Language-Team: FRENCH \n" @@ -328,7 +328,7 @@ msgstr "" #: ../Doc/library/time.rst:203 ../Doc/library/time.rst:213 #: ../Doc/library/time.rst:222 ../Doc/library/time.rst:649 #: ../Doc/library/time.rst:766 ../Doc/library/time.rst:785 -#: ../Doc/library/time.rst:827 +#: ../Doc/library/time.rst:803 ../Doc/library/time.rst:827 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilité ` : Unix." @@ -1466,8 +1466,11 @@ msgstr "" "brute qui n’est pas soumise aux ajustements NTP." #: ../Doc/library/time.rst:775 -msgid "Availability: Linux 2.6.28 or later." -msgstr "Disponibilité: Linux 2.6.28 ou ultérieure." +#, fuzzy +msgid "" +":ref:`Availability `: Linux 2.6.28 and newer, macOS 10.12 and " +"newer." +msgstr ":ref:`Disponibilité ` : Linux 2.6.39 et ultérieures." #: ../Doc/library/time.rst:782 ../Doc/library/time.rst:791 msgid "High-resolution per-process timer from the CPU." @@ -1484,10 +1487,6 @@ msgstr "" msgid "Thread-specific CPU-time clock." msgstr "Horloge de temps CPU spécifique au thread." -#: ../Doc/library/time.rst:802 -msgid "Availability: Unix." -msgstr "Disponibilité : Unix." - #: ../Doc/library/time.rst:809 msgid "" "Time whose absolute value is the time the system has been running and not " @@ -1625,10 +1624,3 @@ msgid "" "digit year has been first recommended by :rfc:`1123` and then mandated by :" "rfc:`2822`." msgstr "" -"L’utilisation de ``%Z`` est maintenant déconseillée, mais ``%z`` qui s’étend " -"au décalage heure/minute préféré n’est pas pris en charge par toutes les " -"bibliothèque ANSI C. En outre, une lecture stricte de la norme originale :" -"rfc:`822` de 1982 appelle une année à deux chiffres (``%y`` plutôt que ``" -"%Y``), mais la pratique est passée à quatre chiffres bien avant l’an 2000. " -"Après cela, la :rfc:`822` est devenu obsolète et l’année à 4 chiffres a été " -"recommandée en premier par la :rfc:`1123`, puis imposée par :rfc:`2822`." diff --git a/library/tkinter.tix.po b/library/tkinter.tix.po index 0470bcbdc..8bea7e313 100644 --- a/library/tkinter.tix.po +++ b/library/tkinter.tix.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-08-10 00:49+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -116,33 +116,21 @@ msgid "" "try the following::" msgstr "" -#: ../Doc/library/tkinter.tix.rst:79 -msgid "" -"If this fails, you have a Tk installation problem which must be resolved " -"before proceeding. Use the environment variable :envvar:`TIX_LIBRARY` to " -"point to the installed Tix library directory, and make sure you have the " -"dynamic object library (:file:`tix8183.dll` or :file:`libtix8183.so`) in " -"the same directory that contains your Tk dynamic object library (:file:" -"`tk8183.dll` or :file:`libtk8183.so`). The directory with the dynamic object " -"library should also have a file called :file:`pkgIndex.tcl` (case " -"sensitive), which contains the line::" -msgstr "" - -#: ../Doc/library/tkinter.tix.rst:92 +#: ../Doc/library/tkinter.tix.rst:81 msgid "Tix Widgets" msgstr "" -#: ../Doc/library/tkinter.tix.rst:94 +#: ../Doc/library/tkinter.tix.rst:83 msgid "" "`Tix `_ introduces over 40 widget classes to the :mod:`tkinter` repertoire." msgstr "" -#: ../Doc/library/tkinter.tix.rst:99 +#: ../Doc/library/tkinter.tix.rst:88 msgid "Basic Widgets" msgstr "" -#: ../Doc/library/tkinter.tix.rst:104 +#: ../Doc/library/tkinter.tix.rst:93 msgid "" "A `Balloon `_ that pops up over a widget to provide help. When the user " @@ -150,14 +138,14 @@ msgid "" "small pop-up window with a descriptive message will be shown on the screen." msgstr "" -#: ../Doc/library/tkinter.tix.rst:116 +#: ../Doc/library/tkinter.tix.rst:105 msgid "" "The `ButtonBox `_ widget creates a box of buttons, such as is commonly " "used for ``Ok Cancel``." msgstr "" -#: ../Doc/library/tkinter.tix.rst:126 +#: ../Doc/library/tkinter.tix.rst:115 msgid "" "The `ComboBox `_ widget is similar to the combo box control in MS Windows. " @@ -165,7 +153,7 @@ msgid "" "selecting from the listbox subwidget." msgstr "" -#: ../Doc/library/tkinter.tix.rst:138 +#: ../Doc/library/tkinter.tix.rst:127 msgid "" "The `Control `_ widget is also known as the :class:`SpinBox` widget. The " @@ -174,7 +162,7 @@ msgid "" "user-defined upper and lower limits." msgstr "" -#: ../Doc/library/tkinter.tix.rst:151 +#: ../Doc/library/tkinter.tix.rst:140 msgid "" "The `LabelEntry `_ widget packages an entry widget and a label into one " @@ -182,7 +170,7 @@ msgid "" "of interface." msgstr "" -#: ../Doc/library/tkinter.tix.rst:162 +#: ../Doc/library/tkinter.tix.rst:151 msgid "" "The `LabelFrame `_ widget packages a frame widget and a label into one " @@ -191,20 +179,20 @@ msgid "" "the :attr:`frame` subwidget." msgstr "" -#: ../Doc/library/tkinter.tix.rst:174 +#: ../Doc/library/tkinter.tix.rst:163 msgid "" "The `Meter `_ widget can be used to show the progress of a background job which may " "take a long time to execute." msgstr "" -#: ../Doc/library/tkinter.tix.rst:185 +#: ../Doc/library/tkinter.tix.rst:174 msgid "" "The `OptionMenu `_ creates a menu button of options." msgstr "" -#: ../Doc/library/tkinter.tix.rst:195 +#: ../Doc/library/tkinter.tix.rst:184 msgid "" "The `PopupMenu `_ widget can be used as a replacement of the ``tk_popup`` " @@ -212,25 +200,25 @@ msgid "" "requires less application code to manipulate." msgstr "" -#: ../Doc/library/tkinter.tix.rst:207 +#: ../Doc/library/tkinter.tix.rst:196 msgid "" "The `Select `_ widget is a container of button subwidgets. It can be used " "to provide radio-box or check-box style of selection options for the user." msgstr "" -#: ../Doc/library/tkinter.tix.rst:218 +#: ../Doc/library/tkinter.tix.rst:207 msgid "" "The `StdButtonBox `_ widget is a group of standard buttons for Motif-like " "dialog boxes." msgstr "" -#: ../Doc/library/tkinter.tix.rst:227 +#: ../Doc/library/tkinter.tix.rst:216 msgid "File Selectors" msgstr "" -#: ../Doc/library/tkinter.tix.rst:232 +#: ../Doc/library/tkinter.tix.rst:221 msgid "" "The `DirList `_ widget displays a list view of a directory, its previous " @@ -238,7 +226,7 @@ msgid "" "directories displayed in the list or change to another directory." msgstr "" -#: ../Doc/library/tkinter.tix.rst:244 +#: ../Doc/library/tkinter.tix.rst:233 msgid "" "The `DirTree `_ widget displays a tree view of a directory, its previous " @@ -246,7 +234,7 @@ msgid "" "directories displayed in the list or change to another directory." msgstr "" -#: ../Doc/library/tkinter.tix.rst:256 +#: ../Doc/library/tkinter.tix.rst:245 msgid "" "The `DirSelectDialog `_ widget presents the directories in the file " @@ -254,7 +242,7 @@ msgid "" "through the file system to select the desired directory." msgstr "" -#: ../Doc/library/tkinter.tix.rst:268 +#: ../Doc/library/tkinter.tix.rst:257 msgid "" "The :class:`DirSelectBox` is similar to the standard Motif(TM) directory-" "selection box. It is generally used for the user to choose a directory. " @@ -262,7 +250,7 @@ msgid "" "widget so that they can be quickly selected again." msgstr "" -#: ../Doc/library/tkinter.tix.rst:276 +#: ../Doc/library/tkinter.tix.rst:265 msgid "" "The `ExFileSelectBox `_ widget is usually embedded in a " @@ -271,7 +259,7 @@ msgid "" "similar to the standard file dialog on MS Windows 3.1." msgstr "" -#: ../Doc/library/tkinter.tix.rst:289 +#: ../Doc/library/tkinter.tix.rst:278 msgid "" "The `FileSelectBox `_ is similar to the standard Motif(TM) file-selection " @@ -280,7 +268,7 @@ msgid "" "that they can be quickly selected again." msgstr "" -#: ../Doc/library/tkinter.tix.rst:302 +#: ../Doc/library/tkinter.tix.rst:291 msgid "" "The `FileEntry `_ widget can be used to input a filename. The user can " @@ -289,11 +277,11 @@ msgid "" "dialog." msgstr "" -#: ../Doc/library/tkinter.tix.rst:313 +#: ../Doc/library/tkinter.tix.rst:302 msgid "Hierarchical ListBox" msgstr "" -#: ../Doc/library/tkinter.tix.rst:318 +#: ../Doc/library/tkinter.tix.rst:307 msgid "" "The `HList `_ widget can be used to display any data that have a hierarchical " @@ -302,7 +290,7 @@ msgid "" "hierarchy." msgstr "" -#: ../Doc/library/tkinter.tix.rst:330 +#: ../Doc/library/tkinter.tix.rst:319 msgid "" "The `CheckList `_ widget displays a list of items to be selected by the " @@ -311,18 +299,18 @@ msgid "" "radiobuttons." msgstr "" -#: ../Doc/library/tkinter.tix.rst:346 +#: ../Doc/library/tkinter.tix.rst:335 msgid "" "The `Tree `_ widget can be used to display hierarchical data in a tree form. The " "user can adjust the view of the tree by opening or closing parts of the tree." msgstr "" -#: ../Doc/library/tkinter.tix.rst:358 +#: ../Doc/library/tkinter.tix.rst:347 msgid "Tabular ListBox" msgstr "" -#: ../Doc/library/tkinter.tix.rst:363 +#: ../Doc/library/tkinter.tix.rst:352 msgid "" "The `TList `_ widget can be used to display data in a tabular format. The list " @@ -332,11 +320,11 @@ msgid "" "graphical images as well as multiple colors and fonts for the list entries." msgstr "" -#: ../Doc/library/tkinter.tix.rst:386 +#: ../Doc/library/tkinter.tix.rst:375 msgid "Manager Widgets" msgstr "" -#: ../Doc/library/tkinter.tix.rst:391 +#: ../Doc/library/tkinter.tix.rst:380 msgid "" "The `PanedWindow `_ widget allows the user to interactively manipulate the " @@ -345,7 +333,7 @@ msgid "" "resize handle between two panes." msgstr "" -#: ../Doc/library/tkinter.tix.rst:403 +#: ../Doc/library/tkinter.tix.rst:392 msgid "" "The `ListNoteBook `_ widget is very similar to the :class:`TixNoteBook` " @@ -356,7 +344,7 @@ msgid "" "`hlist` subwidget." msgstr "" -#: ../Doc/library/tkinter.tix.rst:417 +#: ../Doc/library/tkinter.tix.rst:406 msgid "" "The `NoteBook `_ widget can be used to display many windows in a limited " @@ -366,22 +354,22 @@ msgid "" "the NoteBook widget." msgstr "" -#: ../Doc/library/tkinter.tix.rst:439 +#: ../Doc/library/tkinter.tix.rst:428 msgid "Image Types" msgstr "" -#: ../Doc/library/tkinter.tix.rst:441 +#: ../Doc/library/tkinter.tix.rst:430 msgid "The :mod:`tkinter.tix` module adds:" msgstr "" -#: ../Doc/library/tkinter.tix.rst:443 +#: ../Doc/library/tkinter.tix.rst:432 msgid "" "`pixmap `_ capabilities to all :mod:`tkinter.tix` and :mod:`tkinter` widgets to " "create color images from XPM files." msgstr "" -#: ../Doc/library/tkinter.tix.rst:452 +#: ../Doc/library/tkinter.tix.rst:441 msgid "" "`Compound `_ image types can be used to create images that consists of multiple " @@ -391,36 +379,36 @@ msgid "" "simultaneously in a Tk :class:`Button` widget." msgstr "" -#: ../Doc/library/tkinter.tix.rst:471 +#: ../Doc/library/tkinter.tix.rst:460 msgid "Miscellaneous Widgets" msgstr "" -#: ../Doc/library/tkinter.tix.rst:476 +#: ../Doc/library/tkinter.tix.rst:465 msgid "" "The `InputOnly `_ widgets are to accept inputs from the user, which can be " "done with the ``bind`` command (Unix only)." msgstr "" -#: ../Doc/library/tkinter.tix.rst:483 +#: ../Doc/library/tkinter.tix.rst:472 msgid "Form Geometry Manager" msgstr "" -#: ../Doc/library/tkinter.tix.rst:485 +#: ../Doc/library/tkinter.tix.rst:474 msgid "In addition, :mod:`tkinter.tix` augments :mod:`tkinter` by providing:" msgstr "" -#: ../Doc/library/tkinter.tix.rst:490 +#: ../Doc/library/tkinter.tix.rst:479 msgid "" "The `Form `_ geometry manager based on attachment rules for all Tk widgets." msgstr "" -#: ../Doc/library/tkinter.tix.rst:496 +#: ../Doc/library/tkinter.tix.rst:485 msgid "Tix Commands" msgstr "" -#: ../Doc/library/tkinter.tix.rst:501 +#: ../Doc/library/tkinter.tix.rst:490 msgid "" "The `tix commands `_ provide access to miscellaneous elements of :mod:`Tix`'s internal " @@ -429,11 +417,11 @@ msgid "" "screen or display, rather than to a particular window." msgstr "" -#: ../Doc/library/tkinter.tix.rst:508 +#: ../Doc/library/tkinter.tix.rst:497 msgid "To view the current settings, the common usage is::" msgstr "" -#: ../Doc/library/tkinter.tix.rst:517 +#: ../Doc/library/tkinter.tix.rst:506 msgid "" "Query or modify the configuration options of the Tix application context. If " "no option is specified, returns a dictionary all of the available options. " @@ -445,13 +433,13 @@ msgid "" "an empty string. Option may be any of the configuration options." msgstr "" -#: ../Doc/library/tkinter.tix.rst:529 +#: ../Doc/library/tkinter.tix.rst:518 msgid "" "Returns the current value of the configuration option given by *option*. " "Option may be any of the configuration options." msgstr "" -#: ../Doc/library/tkinter.tix.rst:535 +#: ../Doc/library/tkinter.tix.rst:524 msgid "" "Locates a bitmap file of the name ``name.xpm`` or ``name`` in one of the " "bitmap directories (see the :meth:`tix_addbitmapdir` method). By using :" @@ -461,7 +449,7 @@ msgid "" "can be used to configure the ``bitmap`` option of the Tk and Tix widgets." msgstr "" -#: ../Doc/library/tkinter.tix.rst:545 +#: ../Doc/library/tkinter.tix.rst:534 msgid "" "Tix maintains a list of directories under which the :meth:`tix_getimage` " "and :meth:`tix_getbitmap` methods will search for image files. The standard " @@ -471,7 +459,7 @@ msgid "" "meth:`tix_getimage` or :meth:`tix_getbitmap` method." msgstr "" -#: ../Doc/library/tkinter.tix.rst:555 +#: ../Doc/library/tkinter.tix.rst:544 msgid "" "Returns the file selection dialog that may be shared among different calls " "from this application. This method will create a file selection dialog " @@ -482,7 +470,7 @@ msgid "" "``tixExFileSelectDialog``." msgstr "" -#: ../Doc/library/tkinter.tix.rst:565 +#: ../Doc/library/tkinter.tix.rst:554 msgid "" "Locates an image file of the name :file:`name.xpm`, :file:`name.xbm` or :" "file:`name.ppm` in one of the bitmap directories (see the :meth:" @@ -496,11 +484,11 @@ msgid "" "and Tix widgets." msgstr "" -#: ../Doc/library/tkinter.tix.rst:578 +#: ../Doc/library/tkinter.tix.rst:567 msgid "Gets the options maintained by the Tix scheme mechanism." msgstr "" -#: ../Doc/library/tkinter.tix.rst:583 +#: ../Doc/library/tkinter.tix.rst:572 msgid "" "Resets the scheme and fontset of the Tix application to *newScheme* and " "*newFontSet*, respectively. This affects only those widgets created after " @@ -508,13 +496,13 @@ msgid "" "creation of any widgets in a Tix application." msgstr "" -#: ../Doc/library/tkinter.tix.rst:588 +#: ../Doc/library/tkinter.tix.rst:577 msgid "" "The optional parameter *newScmPrio* can be given to reset the priority level " "of the Tk options set by the Tix schemes." msgstr "" -#: ../Doc/library/tkinter.tix.rst:591 +#: ../Doc/library/tkinter.tix.rst:580 msgid "" "Because of the way Tk handles the X option database, after Tix has been has " "imported and inited, it is not possible to reset the color schemes and font " diff --git a/library/unittest.mock.po b/library/unittest.mock.po index 46ed73b9e..da114ba0d 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -892,10 +892,10 @@ msgid "" "By default :func:`patch` will fail to replace attributes that don't exist. " "If you pass in ``create=True``, and the attribute doesn't exist, patch will " "create the attribute for you when the patched function is called, and delete " -"it again afterwards. This is useful for writing tests against attributes " -"that your production code creates at runtime. It is off by default because " -"it can be dangerous. With it switched on you can write passing tests against " -"APIs that don't actually exist!" +"it again after the patched function has exited. This is useful for writing " +"tests against attributes that your production code creates at runtime. It is " +"off by default because it can be dangerous. With it switched on you can " +"write passing tests against APIs that don't actually exist!" msgstr "" #: ../Doc/library/unittest.mock.rst:1110 @@ -997,17 +997,30 @@ msgid "" "func:`patch` call using ``**``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1230 +#: ../Doc/library/unittest.mock.rst:1228 +msgid "" +"By default, attempting to patch a function in a module (or a method or an " +"attribute in a class) that does not exist will fail with :exc:" +"`AttributeError`::" +msgstr "" + +#: ../Doc/library/unittest.mock.rst:1240 +msgid "" +"but adding ``create=True`` in the call to :func:`patch` will make the " +"previous example work as expected::" +msgstr "" + +#: ../Doc/library/unittest.mock.rst:1251 msgid "patch.object" msgstr "" -#: ../Doc/library/unittest.mock.rst:1234 +#: ../Doc/library/unittest.mock.rst:1255 msgid "" "patch the named member (*attribute*) on an object (*target*) with a mock " "object." msgstr "" -#: ../Doc/library/unittest.mock.rst:1237 +#: ../Doc/library/unittest.mock.rst:1258 msgid "" ":func:`patch.object` can be used as a decorator, class decorator or a " "context manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* " @@ -1016,94 +1029,94 @@ msgid "" "configuring the mock object it creates." msgstr "" -#: ../Doc/library/unittest.mock.rst:1243 +#: ../Doc/library/unittest.mock.rst:1264 msgid "" "When used as a class decorator :func:`patch.object` honours ``patch." "TEST_PREFIX`` for choosing which methods to wrap." msgstr "" -#: ../Doc/library/unittest.mock.rst:1246 +#: ../Doc/library/unittest.mock.rst:1267 msgid "" "You can either call :func:`patch.object` with three arguments or two " "arguments. The three argument form takes the object to be patched, the " "attribute name and the object to replace the attribute with." msgstr "" -#: ../Doc/library/unittest.mock.rst:1250 +#: ../Doc/library/unittest.mock.rst:1271 msgid "" "When calling with the two argument form you omit the replacement object, and " "a mock is created for you and passed in as an extra argument to the " "decorated function:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1261 +#: ../Doc/library/unittest.mock.rst:1282 msgid "" "*spec*, *create* and the other arguments to :func:`patch.object` have the " "same meaning as they do for :func:`patch`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1266 +#: ../Doc/library/unittest.mock.rst:1287 msgid "patch.dict" msgstr "" -#: ../Doc/library/unittest.mock.rst:1270 +#: ../Doc/library/unittest.mock.rst:1291 msgid "" "Patch a dictionary, or dictionary like object, and restore the dictionary to " "its original state after the test." msgstr "" -#: ../Doc/library/unittest.mock.rst:1273 +#: ../Doc/library/unittest.mock.rst:1294 msgid "" "*in_dict* can be a dictionary or a mapping like container. If it is a " "mapping then it must at least support getting, setting and deleting items " "plus iterating over keys." msgstr "" -#: ../Doc/library/unittest.mock.rst:1277 +#: ../Doc/library/unittest.mock.rst:1298 msgid "" "*in_dict* can also be a string specifying the name of the dictionary, which " "will then be fetched by importing it." msgstr "" -#: ../Doc/library/unittest.mock.rst:1280 +#: ../Doc/library/unittest.mock.rst:1301 msgid "" "*values* can be a dictionary of values to set in the dictionary. *values* " "can also be an iterable of ``(key, value)`` pairs." msgstr "" -#: ../Doc/library/unittest.mock.rst:1283 +#: ../Doc/library/unittest.mock.rst:1304 msgid "" "If *clear* is true then the dictionary will be cleared before the new values " "are set." msgstr "" -#: ../Doc/library/unittest.mock.rst:1286 +#: ../Doc/library/unittest.mock.rst:1307 msgid "" ":func:`patch.dict` can also be called with arbitrary keyword arguments to " "set values in the dictionary." msgstr "" -#: ../Doc/library/unittest.mock.rst:1289 +#: ../Doc/library/unittest.mock.rst:1310 msgid "" ":func:`patch.dict` can be used as a context manager, decorator or class " "decorator. When used as a class decorator :func:`patch.dict` honours ``patch." "TEST_PREFIX`` for choosing which methods to wrap." msgstr "" -#: ../Doc/library/unittest.mock.rst:1293 +#: ../Doc/library/unittest.mock.rst:1314 msgid "" ":func:`patch.dict` can be used to add members to a dictionary, or simply let " "a test change a dictionary, and ensure the dictionary is restored when the " "test ends." msgstr "" -#: ../Doc/library/unittest.mock.rst:1310 +#: ../Doc/library/unittest.mock.rst:1331 msgid "" "Keywords can be used in the :func:`patch.dict` call to set values in the " "dictionary:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1320 +#: ../Doc/library/unittest.mock.rst:1341 msgid "" ":func:`patch.dict` can be used with dictionary like objects that aren't " "actually dictionaries. At the very minimum they must support item getting, " @@ -1112,18 +1125,18 @@ msgid "" "`__delitem__` and either :meth:`__iter__` or :meth:`__contains__`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1349 +#: ../Doc/library/unittest.mock.rst:1370 msgid "patch.multiple" msgstr "" -#: ../Doc/library/unittest.mock.rst:1353 +#: ../Doc/library/unittest.mock.rst:1374 msgid "" "Perform multiple patches in a single call. It takes the object to be patched " "(either as an object or a string to fetch the object by importing) and " "keyword arguments for the patches::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1360 +#: ../Doc/library/unittest.mock.rst:1381 msgid "" "Use :data:`DEFAULT` as the value if you want :func:`patch.multiple` to " "create mocks for you. In this case the created mocks are passed into a " @@ -1131,7 +1144,7 @@ msgid "" "`patch.multiple` is used as a context manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:1365 +#: ../Doc/library/unittest.mock.rst:1386 msgid "" ":func:`patch.multiple` can be used as a decorator, class decorator or a " "context manager. The arguments *spec*, *spec_set*, *create*, *autospec* and " @@ -1139,13 +1152,13 @@ msgid "" "will be applied to *all* patches done by :func:`patch.multiple`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1370 +#: ../Doc/library/unittest.mock.rst:1391 msgid "" "When used as a class decorator :func:`patch.multiple` honours ``patch." "TEST_PREFIX`` for choosing which methods to wrap." msgstr "" -#: ../Doc/library/unittest.mock.rst:1373 +#: ../Doc/library/unittest.mock.rst:1394 msgid "" "If you want :func:`patch.multiple` to create mocks for you, then you can " "use :data:`DEFAULT` as the value. If you use :func:`patch.multiple` as a " @@ -1153,31 +1166,31 @@ msgid "" "keyword." msgstr "" -#: ../Doc/library/unittest.mock.rst:1387 +#: ../Doc/library/unittest.mock.rst:1408 msgid "" ":func:`patch.multiple` can be nested with other ``patch`` decorators, but " "put arguments passed by keyword *after* any of the standard arguments " "created by :func:`patch`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1399 +#: ../Doc/library/unittest.mock.rst:1420 msgid "" "If :func:`patch.multiple` is used as a context manager, the value returned " "by the context manger is a dictionary where created mocks are keyed by name:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1413 +#: ../Doc/library/unittest.mock.rst:1434 msgid "patch methods: start and stop" msgstr "" -#: ../Doc/library/unittest.mock.rst:1415 +#: ../Doc/library/unittest.mock.rst:1436 msgid "" "All the patchers have :meth:`start` and :meth:`stop` methods. These make it " "simpler to do patching in ``setUp`` methods or where you want to do multiple " "patches without nesting decorators or with statements." msgstr "" -#: ../Doc/library/unittest.mock.rst:1419 +#: ../Doc/library/unittest.mock.rst:1440 msgid "" "To use them call :func:`patch`, :func:`patch.object` or :func:`patch.dict` " "as normal and keep a reference to the returned ``patcher`` object. You can " @@ -1185,19 +1198,19 @@ msgid "" "it." msgstr "" -#: ../Doc/library/unittest.mock.rst:1423 +#: ../Doc/library/unittest.mock.rst:1444 msgid "" "If you are using :func:`patch` to create a mock for you then it will be " "returned by the call to ``patcher.start``." msgstr "" -#: ../Doc/library/unittest.mock.rst:1437 +#: ../Doc/library/unittest.mock.rst:1458 msgid "" "A typical use case for this might be for doing multiple patches in the " "``setUp`` method of a :class:`TestCase`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1459 +#: ../Doc/library/unittest.mock.rst:1480 msgid "" "If you use this technique you must ensure that the patching is \"undone\" by " "calling ``stop``. This can be fiddlier than you might think, because if an " @@ -1205,37 +1218,37 @@ msgid "" "`unittest.TestCase.addCleanup` makes this easier:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1474 +#: ../Doc/library/unittest.mock.rst:1495 msgid "" "As an added bonus you no longer need to keep a reference to the ``patcher`` " "object." msgstr "" -#: ../Doc/library/unittest.mock.rst:1477 +#: ../Doc/library/unittest.mock.rst:1498 msgid "" "It is also possible to stop all patches which have been started by using :" "func:`patch.stopall`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1482 +#: ../Doc/library/unittest.mock.rst:1503 msgid "Stop all active patches. Only stops patches started with ``start``." msgstr "" -#: ../Doc/library/unittest.mock.rst:1488 +#: ../Doc/library/unittest.mock.rst:1509 msgid "patch builtins" msgstr "" -#: ../Doc/library/unittest.mock.rst:1489 +#: ../Doc/library/unittest.mock.rst:1510 msgid "" "You can patch any builtins within a module. The following example patches " "builtin :func:`ord`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1502 +#: ../Doc/library/unittest.mock.rst:1523 msgid "TEST_PREFIX" msgstr "" -#: ../Doc/library/unittest.mock.rst:1504 +#: ../Doc/library/unittest.mock.rst:1525 msgid "" "All of the patchers can be used as class decorators. When used in this way " "they wrap every test method on the class. The patchers recognise methods " @@ -1243,39 +1256,39 @@ msgid "" "the :class:`unittest.TestLoader` finds test methods by default." msgstr "" -#: ../Doc/library/unittest.mock.rst:1509 +#: ../Doc/library/unittest.mock.rst:1530 msgid "" "It is possible that you want to use a different prefix for your tests. You " "can inform the patchers of the different prefix by setting ``patch." "TEST_PREFIX``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1532 +#: ../Doc/library/unittest.mock.rst:1553 msgid "Nesting Patch Decorators" msgstr "" -#: ../Doc/library/unittest.mock.rst:1534 +#: ../Doc/library/unittest.mock.rst:1555 msgid "" "If you want to perform multiple patches then you can simply stack up the " "decorators." msgstr "" -#: ../Doc/library/unittest.mock.rst:1537 +#: ../Doc/library/unittest.mock.rst:1558 msgid "You can stack up multiple patch decorators using this pattern:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1553 +#: ../Doc/library/unittest.mock.rst:1574 msgid "" "Note that the decorators are applied from the bottom upwards. This is the " "standard way that Python applies decorators. The order of the created mocks " "passed into your test function matches this order." msgstr "" -#: ../Doc/library/unittest.mock.rst:1561 +#: ../Doc/library/unittest.mock.rst:1582 msgid "Where to patch" msgstr "" -#: ../Doc/library/unittest.mock.rst:1563 +#: ../Doc/library/unittest.mock.rst:1584 msgid "" ":func:`patch` works by (temporarily) changing the object that a *name* " "points to with another one. There can be many names pointing to any " @@ -1283,19 +1296,19 @@ msgid "" "the name used by the system under test." msgstr "" -#: ../Doc/library/unittest.mock.rst:1568 +#: ../Doc/library/unittest.mock.rst:1589 msgid "" "The basic principle is that you patch where an object is *looked up*, which " "is not necessarily the same place as where it is defined. A couple of " "examples will help to clarify this." msgstr "" -#: ../Doc/library/unittest.mock.rst:1572 +#: ../Doc/library/unittest.mock.rst:1593 msgid "" "Imagine we have a project that we want to test with the following structure::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1581 +#: ../Doc/library/unittest.mock.rst:1602 msgid "" "Now we want to test ``some_function`` but we want to mock out ``SomeClass`` " "using :func:`patch`. The problem is that when we import module b, which we " @@ -1305,7 +1318,7 @@ msgid "" "like our patching had no effect." msgstr "" -#: ../Doc/library/unittest.mock.rst:1588 +#: ../Doc/library/unittest.mock.rst:1609 msgid "" "The key is to patch out ``SomeClass`` where it is used (or where it is " "looked up). In this case ``some_function`` will actually look up " @@ -1313,7 +1326,7 @@ msgid "" "look like::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1594 +#: ../Doc/library/unittest.mock.rst:1615 msgid "" "However, consider the alternative scenario where instead of ``from a import " "SomeClass`` module b does ``import a`` and ``some_function`` uses ``a." @@ -1322,11 +1335,11 @@ msgid "" "``a.SomeClass`` instead::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1603 +#: ../Doc/library/unittest.mock.rst:1624 msgid "Patching Descriptors and Proxy Objects" msgstr "" -#: ../Doc/library/unittest.mock.rst:1605 +#: ../Doc/library/unittest.mock.rst:1626 msgid "" "Both patch_ and patch.object_ correctly patch and restore descriptors: class " "methods, static methods and properties. You should patch these on the " @@ -1335,22 +1348,22 @@ msgid "" "voidspace.org.uk/python/weblog/arch_d7_2010_12_04.shtml#e1198>`_." msgstr "" -#: ../Doc/library/unittest.mock.rst:1613 +#: ../Doc/library/unittest.mock.rst:1634 msgid "MagicMock and magic method support" msgstr "" -#: ../Doc/library/unittest.mock.rst:1618 +#: ../Doc/library/unittest.mock.rst:1639 msgid "Mocking Magic Methods" msgstr "" -#: ../Doc/library/unittest.mock.rst:1620 +#: ../Doc/library/unittest.mock.rst:1641 msgid "" ":class:`Mock` supports mocking the Python protocol methods, also known as " "\"magic methods\". This allows mock objects to replace containers or other " "objects that implement Python protocols." msgstr "" -#: ../Doc/library/unittest.mock.rst:1624 +#: ../Doc/library/unittest.mock.rst:1645 msgid "" "Because magic methods are looked up differently from normal methods [#]_, " "this support has been specially implemented. This means that only specific " @@ -1358,70 +1371,70 @@ msgid "" "them. If there are any missing that you need please let us know." msgstr "" -#: ../Doc/library/unittest.mock.rst:1629 +#: ../Doc/library/unittest.mock.rst:1650 msgid "" "You mock magic methods by setting the method you are interested in to a " "function or a mock instance. If you are using a function then it *must* take " "``self`` as the first argument [#]_." msgstr "" -#: ../Doc/library/unittest.mock.rst:1652 +#: ../Doc/library/unittest.mock.rst:1673 msgid "" "One use case for this is for mocking objects used as context managers in a :" "keyword:`with` statement:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1664 +#: ../Doc/library/unittest.mock.rst:1685 msgid "" "Calls to magic methods do not appear in :attr:`~Mock.method_calls`, but they " "are recorded in :attr:`~Mock.mock_calls`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1669 +#: ../Doc/library/unittest.mock.rst:1690 msgid "" "If you use the *spec* keyword argument to create a mock then attempting to " "set a magic method that isn't in the spec will raise an :exc:" "`AttributeError`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1672 +#: ../Doc/library/unittest.mock.rst:1693 msgid "The full list of supported magic methods is:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1674 +#: ../Doc/library/unittest.mock.rst:1695 msgid "``__hash__``, ``__sizeof__``, ``__repr__`` and ``__str__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1675 +#: ../Doc/library/unittest.mock.rst:1696 msgid "``__dir__``, ``__format__`` and ``__subclasses__``" msgstr "``__dir__``, ``__format__`` et ``__subclasses__``" -#: ../Doc/library/unittest.mock.rst:1676 +#: ../Doc/library/unittest.mock.rst:1697 msgid "``__floor__``, ``__trunc__`` and ``__ceil__``" msgstr "``__floor__``, ``__trunc__`` et ``__ceil__``" -#: ../Doc/library/unittest.mock.rst:1677 +#: ../Doc/library/unittest.mock.rst:1698 msgid "" "Comparisons: ``__lt__``, ``__gt__``, ``__le__``, ``__ge__``, ``__eq__`` and " "``__ne__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1679 +#: ../Doc/library/unittest.mock.rst:1700 msgid "" "Container methods: ``__getitem__``, ``__setitem__``, ``__delitem__``, " "``__contains__``, ``__len__``, ``__iter__``, ``__reversed__`` and " "``__missing__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1682 +#: ../Doc/library/unittest.mock.rst:1703 msgid "Context manager: ``__enter__`` and ``__exit__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1683 +#: ../Doc/library/unittest.mock.rst:1704 msgid "Unary numeric methods: ``__neg__``, ``__pos__`` and ``__invert__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1684 +#: ../Doc/library/unittest.mock.rst:1705 msgid "" "The numeric methods (including right hand and in-place variants): " "``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__div__``, " @@ -1430,82 +1443,82 @@ msgid "" "``__pow__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1688 +#: ../Doc/library/unittest.mock.rst:1709 msgid "" "Numeric conversion methods: ``__complex__``, ``__int__``, ``__float__`` and " "``__index__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1690 +#: ../Doc/library/unittest.mock.rst:1711 msgid "Descriptor methods: ``__get__``, ``__set__`` and ``__delete__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1691 +#: ../Doc/library/unittest.mock.rst:1712 msgid "" "Pickling: ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, " "``__getnewargs__``, ``__getstate__`` and ``__setstate__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1695 +#: ../Doc/library/unittest.mock.rst:1716 msgid "" "The following methods exist but are *not* supported as they are either in " "use by mock, can't be set dynamically, or can cause problems:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1698 +#: ../Doc/library/unittest.mock.rst:1719 msgid "``__getattr__``, ``__setattr__``, ``__init__`` and ``__new__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1699 +#: ../Doc/library/unittest.mock.rst:1720 msgid "" "``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1704 +#: ../Doc/library/unittest.mock.rst:1725 msgid "Magic Mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1706 +#: ../Doc/library/unittest.mock.rst:1727 msgid "" "There are two ``MagicMock`` variants: :class:`MagicMock` and :class:" "`NonCallableMagicMock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1711 +#: ../Doc/library/unittest.mock.rst:1732 msgid "" "``MagicMock`` is a subclass of :class:`Mock` with default implementations of " "most of the magic methods. You can use ``MagicMock`` without having to " "configure the magic methods yourself." msgstr "" -#: ../Doc/library/unittest.mock.rst:1715 +#: ../Doc/library/unittest.mock.rst:1736 msgid "The constructor parameters have the same meaning as for :class:`Mock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1717 +#: ../Doc/library/unittest.mock.rst:1738 msgid "" "If you use the *spec* or *spec_set* arguments then *only* magic methods that " "exist in the spec will be created." msgstr "" -#: ../Doc/library/unittest.mock.rst:1723 +#: ../Doc/library/unittest.mock.rst:1744 msgid "A non-callable version of :class:`MagicMock`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1725 +#: ../Doc/library/unittest.mock.rst:1746 msgid "" "The constructor parameters have the same meaning as for :class:`MagicMock`, " "with the exception of *return_value* and *side_effect* which have no meaning " "on a non-callable mock." msgstr "" -#: ../Doc/library/unittest.mock.rst:1729 +#: ../Doc/library/unittest.mock.rst:1750 msgid "" "The magic methods are setup with :class:`MagicMock` objects, so you can " "configure them and use them in the usual way:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1739 +#: ../Doc/library/unittest.mock.rst:1760 msgid "" "By default many of the protocol methods are required to return objects of a " "specific type. These methods are preconfigured with a default return value, " @@ -1514,79 +1527,79 @@ msgid "" "manually if you want to change the default." msgstr "" -#: ../Doc/library/unittest.mock.rst:1745 +#: ../Doc/library/unittest.mock.rst:1766 msgid "Methods and their defaults:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1747 +#: ../Doc/library/unittest.mock.rst:1768 msgid "``__lt__``: NotImplemented" msgstr "``__lt__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1748 +#: ../Doc/library/unittest.mock.rst:1769 msgid "``__gt__``: NotImplemented" msgstr "``__gt__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1749 +#: ../Doc/library/unittest.mock.rst:1770 msgid "``__le__``: NotImplemented" msgstr "``__le__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1750 +#: ../Doc/library/unittest.mock.rst:1771 msgid "``__ge__``: NotImplemented" msgstr "``__ge__``: NotImplemented" -#: ../Doc/library/unittest.mock.rst:1751 +#: ../Doc/library/unittest.mock.rst:1772 msgid "``__int__``: 1" msgstr "``__int__``: 1" -#: ../Doc/library/unittest.mock.rst:1752 +#: ../Doc/library/unittest.mock.rst:1773 msgid "``__contains__``: False" msgstr "``__contains__``: False" -#: ../Doc/library/unittest.mock.rst:1753 +#: ../Doc/library/unittest.mock.rst:1774 msgid "``__len__``: 0" msgstr "" -#: ../Doc/library/unittest.mock.rst:1754 +#: ../Doc/library/unittest.mock.rst:1775 msgid "``__iter__``: iter([])" msgstr "``__iter__``: iter([])" -#: ../Doc/library/unittest.mock.rst:1755 +#: ../Doc/library/unittest.mock.rst:1776 msgid "``__exit__``: False" msgstr "``__exit__``: False" -#: ../Doc/library/unittest.mock.rst:1756 +#: ../Doc/library/unittest.mock.rst:1777 msgid "``__complex__``: 1j" msgstr "``__complex__``: 1j" -#: ../Doc/library/unittest.mock.rst:1757 +#: ../Doc/library/unittest.mock.rst:1778 msgid "``__float__``: 1.0" msgstr "``__float__``: 1.0" -#: ../Doc/library/unittest.mock.rst:1758 +#: ../Doc/library/unittest.mock.rst:1779 msgid "``__bool__``: True" msgstr "``__bool__``: True" -#: ../Doc/library/unittest.mock.rst:1759 +#: ../Doc/library/unittest.mock.rst:1780 msgid "``__index__``: 1" msgstr "``__index__``: 1" -#: ../Doc/library/unittest.mock.rst:1760 +#: ../Doc/library/unittest.mock.rst:1781 msgid "``__hash__``: default hash for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1761 +#: ../Doc/library/unittest.mock.rst:1782 msgid "``__str__``: default str for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1762 +#: ../Doc/library/unittest.mock.rst:1783 msgid "``__sizeof__``: default sizeof for the mock" msgstr "" -#: ../Doc/library/unittest.mock.rst:1764 +#: ../Doc/library/unittest.mock.rst:1785 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/library/unittest.mock.rst:1776 +#: ../Doc/library/unittest.mock.rst:1797 msgid "" "The two equality methods, :meth:`__eq__` and :meth:`__ne__`, are special. " "They do the default equality comparison on identity, using the :attr:`~Mock." @@ -1594,102 +1607,102 @@ msgid "" "something else::" msgstr "" -#: ../Doc/library/unittest.mock.rst:1790 +#: ../Doc/library/unittest.mock.rst:1811 msgid "" "The return value of :meth:`MagicMock.__iter__` can be any iterable object " "and isn't required to be an iterator:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1800 +#: ../Doc/library/unittest.mock.rst:1821 msgid "" "If the return value *is* an iterator, then iterating over it once will " "consume it and subsequent iterations will result in an empty list:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1809 +#: ../Doc/library/unittest.mock.rst:1830 msgid "" "``MagicMock`` has all of the supported magic methods configured except for " "some of the obscure and obsolete ones. You can still set these up if you " "want." msgstr "" -#: ../Doc/library/unittest.mock.rst:1812 +#: ../Doc/library/unittest.mock.rst:1833 msgid "" "Magic methods that are supported but not setup by default in ``MagicMock`` " "are:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1814 +#: ../Doc/library/unittest.mock.rst:1835 msgid "``__subclasses__``" msgstr "``__subclasses__``" -#: ../Doc/library/unittest.mock.rst:1815 +#: ../Doc/library/unittest.mock.rst:1836 msgid "``__dir__``" msgstr "``__dir__``" -#: ../Doc/library/unittest.mock.rst:1816 +#: ../Doc/library/unittest.mock.rst:1837 msgid "``__format__``" msgstr "``__format__``" -#: ../Doc/library/unittest.mock.rst:1817 +#: ../Doc/library/unittest.mock.rst:1838 msgid "``__get__``, ``__set__`` and ``__delete__``" msgstr "``__get__``, ``__set__`` et ``__delete__``" -#: ../Doc/library/unittest.mock.rst:1818 +#: ../Doc/library/unittest.mock.rst:1839 msgid "``__reversed__`` and ``__missing__``" msgstr "``__reversed__`` et ``__missing__``" -#: ../Doc/library/unittest.mock.rst:1819 +#: ../Doc/library/unittest.mock.rst:1840 msgid "" "``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``, " "``__getstate__`` and ``__setstate__``" msgstr "" -#: ../Doc/library/unittest.mock.rst:1821 +#: ../Doc/library/unittest.mock.rst:1842 msgid "``__getformat__`` and ``__setformat__``" msgstr "``__getformat__`` et ``__setformat__``" -#: ../Doc/library/unittest.mock.rst:1825 +#: ../Doc/library/unittest.mock.rst:1846 msgid "" "Magic methods *should* be looked up on the class rather than the instance. " "Different versions of Python are inconsistent about applying this rule. The " "supported protocol methods should work with all supported versions of Python." msgstr "" -#: ../Doc/library/unittest.mock.rst:1829 +#: ../Doc/library/unittest.mock.rst:1850 msgid "" "The function is basically hooked up to the class, but each ``Mock`` instance " "is kept isolated from the others." msgstr "" -#: ../Doc/library/unittest.mock.rst:1834 +#: ../Doc/library/unittest.mock.rst:1855 msgid "Helpers" msgstr "" -#: ../Doc/library/unittest.mock.rst:1837 +#: ../Doc/library/unittest.mock.rst:1858 msgid "sentinel" msgstr "" -#: ../Doc/library/unittest.mock.rst:1841 +#: ../Doc/library/unittest.mock.rst:1862 msgid "" "The ``sentinel`` object provides a convenient way of providing unique " "objects for your tests." msgstr "" -#: ../Doc/library/unittest.mock.rst:1844 +#: ../Doc/library/unittest.mock.rst:1865 msgid "" "Attributes are created on demand when you access them by name. Accessing the " "same attribute will always return the same object. The objects returned have " "a sensible repr so that test failure messages are readable." msgstr "" -#: ../Doc/library/unittest.mock.rst:1848 +#: ../Doc/library/unittest.mock.rst:1869 msgid "" "The ``sentinel`` attributes now preserve their identity when they are :mod:" "`copied ` or :mod:`pickled `." msgstr "" -#: ../Doc/library/unittest.mock.rst:1852 +#: ../Doc/library/unittest.mock.rst:1873 msgid "" "Sometimes when testing you need to test that a specific object is passed as " "an argument to another method, or returned. It can be common to create named " @@ -1697,28 +1710,28 @@ msgid "" "creating and testing the identity of objects like this." msgstr "" -#: ../Doc/library/unittest.mock.rst:1857 +#: ../Doc/library/unittest.mock.rst:1878 msgid "" "In this example we monkey patch ``method`` to return ``sentinel." "some_object``:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1869 +#: ../Doc/library/unittest.mock.rst:1890 msgid "DEFAULT" msgstr "" -#: ../Doc/library/unittest.mock.rst:1874 +#: ../Doc/library/unittest.mock.rst:1895 msgid "" "The :data:`DEFAULT` object is a pre-created sentinel (actually ``sentinel." "DEFAULT``). It can be used by :attr:`~Mock.side_effect` functions to " "indicate that the normal return value should be used." msgstr "" -#: ../Doc/library/unittest.mock.rst:1880 +#: ../Doc/library/unittest.mock.rst:1901 msgid "call" msgstr "" -#: ../Doc/library/unittest.mock.rst:1884 +#: ../Doc/library/unittest.mock.rst:1905 msgid "" ":func:`call` is a helper object for making simpler assertions, for comparing " "with :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`, :attr:`~Mock." @@ -1726,13 +1739,13 @@ msgid "" "with :meth:`~Mock.assert_has_calls`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1897 +#: ../Doc/library/unittest.mock.rst:1918 msgid "" "For a call object that represents multiple calls, :meth:`call_list` returns " "a list of all the intermediate calls as well as the final call." msgstr "" -#: ../Doc/library/unittest.mock.rst:1901 +#: ../Doc/library/unittest.mock.rst:1922 msgid "" "``call_list`` is particularly useful for making assertions on \"chained calls" "\". A chained call is multiple calls on a single line of code. This results " @@ -1740,13 +1753,13 @@ msgid "" "constructing the sequence of calls can be tedious." msgstr "" -#: ../Doc/library/unittest.mock.rst:1906 +#: ../Doc/library/unittest.mock.rst:1927 msgid "" ":meth:`~call.call_list` can construct the sequence of calls from the same " "chained call:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1923 +#: ../Doc/library/unittest.mock.rst:1944 msgid "" "A ``call`` object is either a tuple of (positional args, keyword args) or " "(name, positional args, keyword args) depending on how it was constructed. " @@ -1756,7 +1769,7 @@ msgid "" "to get at the individual arguments they contain." msgstr "" -#: ../Doc/library/unittest.mock.rst:1930 +#: ../Doc/library/unittest.mock.rst:1951 msgid "" "The ``call`` objects in :attr:`Mock.call_args` and :attr:`Mock." "call_args_list` are two-tuples of (positional args, keyword args) whereas " @@ -1765,7 +1778,7 @@ msgid "" "args)." msgstr "" -#: ../Doc/library/unittest.mock.rst:1935 +#: ../Doc/library/unittest.mock.rst:1956 msgid "" "You can use their \"tupleness\" to pull out the individual arguments for " "more complex introspection and assertions. The positional arguments are a " @@ -1773,29 +1786,29 @@ msgid "" "arguments are a dictionary:" msgstr "" -#: ../Doc/library/unittest.mock.rst:1969 +#: ../Doc/library/unittest.mock.rst:1990 msgid "create_autospec" msgstr "" -#: ../Doc/library/unittest.mock.rst:1973 +#: ../Doc/library/unittest.mock.rst:1994 msgid "" "Create a mock object using another object as a spec. Attributes on the mock " "will use the corresponding attribute on the *spec* object as their spec." msgstr "" -#: ../Doc/library/unittest.mock.rst:1977 +#: ../Doc/library/unittest.mock.rst:1998 msgid "" "Functions or methods being mocked will have their arguments checked to " "ensure that they are called with the correct signature." msgstr "" -#: ../Doc/library/unittest.mock.rst:1980 +#: ../Doc/library/unittest.mock.rst:2001 msgid "" "If *spec_set* is ``True`` then attempting to set attributes that don't exist " "on the spec object will raise an :exc:`AttributeError`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1983 +#: ../Doc/library/unittest.mock.rst:2004 msgid "" "If a class is used as a spec then the return value of the mock (the instance " "of the class) will have the same spec. You can use a class as the spec for " @@ -1803,23 +1816,23 @@ msgid "" "be callable if instances of the mock are callable." msgstr "" -#: ../Doc/library/unittest.mock.rst:1988 +#: ../Doc/library/unittest.mock.rst:2009 msgid "" ":func:`create_autospec` also takes arbitrary keyword arguments that are " "passed to the constructor of the created mock." msgstr "" -#: ../Doc/library/unittest.mock.rst:1991 +#: ../Doc/library/unittest.mock.rst:2012 msgid "" "See :ref:`auto-speccing` for examples of how to use auto-speccing with :func:" "`create_autospec` and the *autospec* argument to :func:`patch`." msgstr "" -#: ../Doc/library/unittest.mock.rst:1996 +#: ../Doc/library/unittest.mock.rst:2017 msgid "ANY" msgstr "" -#: ../Doc/library/unittest.mock.rst:2000 +#: ../Doc/library/unittest.mock.rst:2021 msgid "" "Sometimes you may need to make assertions about *some* of the arguments in a " "call to mock, but either not care about some of the arguments or want to " @@ -1827,24 +1840,24 @@ msgid "" "assertions on them." msgstr "" -#: ../Doc/library/unittest.mock.rst:2005 +#: ../Doc/library/unittest.mock.rst:2026 msgid "" "To ignore certain arguments you can pass in objects that compare equal to " "*everything*. Calls to :meth:`~Mock.assert_called_with` and :meth:`~Mock." "assert_called_once_with` will then succeed no matter what was passed in." msgstr "" -#: ../Doc/library/unittest.mock.rst:2014 +#: ../Doc/library/unittest.mock.rst:2035 msgid "" ":data:`ANY` can also be used in comparisons with call lists like :attr:" "`~Mock.mock_calls`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2027 +#: ../Doc/library/unittest.mock.rst:2048 msgid "FILTER_DIR" msgstr "" -#: ../Doc/library/unittest.mock.rst:2031 +#: ../Doc/library/unittest.mock.rst:2052 msgid "" ":data:`FILTER_DIR` is a module level variable that controls the way mock " "objects respond to :func:`dir` (only for Python 2.6 or more recent). The " @@ -1853,7 +1866,7 @@ msgid "" "diagnostic purposes, then set ``mock.FILTER_DIR = False``." msgstr "" -#: ../Doc/library/unittest.mock.rst:2037 +#: ../Doc/library/unittest.mock.rst:2058 msgid "" "With filtering on, ``dir(some_mock)`` shows only useful attributes and will " "include any dynamically created attributes that wouldn't normally be shown. " @@ -1862,7 +1875,7 @@ msgid "" "yet:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2058 +#: ../Doc/library/unittest.mock.rst:2079 msgid "" "Many of the not-very-useful (private to :class:`Mock` rather than the thing " "being mocked) underscore and double underscore prefixed attributes have been " @@ -1871,31 +1884,31 @@ msgid "" "switch :data:`FILTER_DIR`:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2076 +#: ../Doc/library/unittest.mock.rst:2097 msgid "" "Alternatively you can just use ``vars(my_mock)`` (instance members) and " "``dir(type(my_mock))`` (type members) to bypass the filtering irrespective " "of :data:`mock.FILTER_DIR`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2082 +#: ../Doc/library/unittest.mock.rst:2103 msgid "mock_open" msgstr "" -#: ../Doc/library/unittest.mock.rst:2086 +#: ../Doc/library/unittest.mock.rst:2107 msgid "" "A helper function to create a mock to replace the use of :func:`open`. It " "works for :func:`open` called directly or used as a context manager." msgstr "" -#: ../Doc/library/unittest.mock.rst:2089 +#: ../Doc/library/unittest.mock.rst:2110 msgid "" "The *mock* argument is the mock object to configure. If ``None`` (the " "default) then a :class:`MagicMock` will be created for you, with the API " "limited to methods or attributes available on standard file handles." msgstr "" -#: ../Doc/library/unittest.mock.rst:2093 +#: ../Doc/library/unittest.mock.rst:2114 msgid "" "*read_data* is a string for the :meth:`~io.IOBase.read`, :meth:`~io.IOBase." "readline`, and :meth:`~io.IOBase.readlines` methods of the file handle to " @@ -1908,51 +1921,51 @@ msgid "" "realistic filesystem for testing." msgstr "" -#: ../Doc/library/unittest.mock.rst:2103 +#: ../Doc/library/unittest.mock.rst:2124 msgid "" "Added :meth:`~io.IOBase.readline` and :meth:`~io.IOBase.readlines` support. " "The mock of :meth:`~io.IOBase.read` changed to consume *read_data* rather " "than returning it on each call." msgstr "" -#: ../Doc/library/unittest.mock.rst:2108 +#: ../Doc/library/unittest.mock.rst:2129 msgid "*read_data* is now reset on each call to the *mock*." msgstr "" -#: ../Doc/library/unittest.mock.rst:2111 +#: ../Doc/library/unittest.mock.rst:2132 msgid "" "Added :meth:`__iter__` to implementation so that iteration (such as in for " "loops) correctly consumes *read_data*." msgstr "" -#: ../Doc/library/unittest.mock.rst:2115 +#: ../Doc/library/unittest.mock.rst:2136 msgid "" "Using :func:`open` as a context manager is a great way to ensure your file " "handles are closed properly and is becoming common::" msgstr "" -#: ../Doc/library/unittest.mock.rst:2121 +#: ../Doc/library/unittest.mock.rst:2142 msgid "" "The issue is that even if you mock out the call to :func:`open` it is the " "*returned object* that is used as a context manager (and has :meth:" "`__enter__` and :meth:`__exit__` called)." msgstr "" -#: ../Doc/library/unittest.mock.rst:2125 +#: ../Doc/library/unittest.mock.rst:2146 msgid "" "Mocking context managers with a :class:`MagicMock` is common enough and " "fiddly enough that a helper function is useful." msgstr "" -#: ../Doc/library/unittest.mock.rst:2142 +#: ../Doc/library/unittest.mock.rst:2163 msgid "And for reading files:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2155 +#: ../Doc/library/unittest.mock.rst:2176 msgid "Autospeccing" msgstr "" -#: ../Doc/library/unittest.mock.rst:2157 +#: ../Doc/library/unittest.mock.rst:2178 msgid "" "Autospeccing is based on the existing :attr:`spec` feature of mock. It " "limits the api of mocks to the api of an original object (the spec), but it " @@ -1962,11 +1975,11 @@ msgid "" "`TypeError` if they are called incorrectly." msgstr "" -#: ../Doc/library/unittest.mock.rst:2164 +#: ../Doc/library/unittest.mock.rst:2185 msgid "Before I explain how auto-speccing works, here's why it is needed." msgstr "" -#: ../Doc/library/unittest.mock.rst:2166 +#: ../Doc/library/unittest.mock.rst:2187 msgid "" ":class:`Mock` is a very powerful and flexible object, but it suffers from " "two flaws when used to mock out objects from a system under test. One of " @@ -1974,25 +1987,25 @@ msgid "" "general problem with using mock objects." msgstr "" -#: ../Doc/library/unittest.mock.rst:2171 +#: ../Doc/library/unittest.mock.rst:2192 msgid "" "First the problem specific to :class:`Mock`. :class:`Mock` has two assert " "methods that are extremely handy: :meth:`~Mock.assert_called_with` and :meth:" "`~Mock.assert_called_once_with`." msgstr "" -#: ../Doc/library/unittest.mock.rst:2184 +#: ../Doc/library/unittest.mock.rst:2205 msgid "" "Because mocks auto-create attributes on demand, and allow you to call them " "with arbitrary arguments, if you misspell one of these assert methods then " "your assertion is gone:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2194 +#: ../Doc/library/unittest.mock.rst:2215 msgid "Your tests can pass silently and incorrectly because of the typo." msgstr "" -#: ../Doc/library/unittest.mock.rst:2196 +#: ../Doc/library/unittest.mock.rst:2217 msgid "" "The second issue is more general to mocking. If you refactor some of your " "code, rename members and so on, any tests for code that is still using the " @@ -2000,7 +2013,7 @@ msgid "" "means your tests can all pass even though your code is broken." msgstr "" -#: ../Doc/library/unittest.mock.rst:2201 +#: ../Doc/library/unittest.mock.rst:2222 msgid "" "Note that this is another reason why you need integration tests as well as " "unit tests. Testing everything in isolation is all fine and dandy, but if " @@ -2008,20 +2021,20 @@ msgid "" "room for bugs that tests might have caught." msgstr "" -#: ../Doc/library/unittest.mock.rst:2206 +#: ../Doc/library/unittest.mock.rst:2227 msgid "" ":mod:`mock` already provides a feature to help with this, called speccing. " "If you use a class or instance as the :attr:`spec` for a mock then you can " "only access attributes on the mock that exist on the real class:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2217 +#: ../Doc/library/unittest.mock.rst:2238 msgid "" "The spec only applies to the mock itself, so we still have the same issue " "with any methods on the mock:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2226 +#: ../Doc/library/unittest.mock.rst:2247 msgid "" "Auto-speccing solves this problem. You can either pass ``autospec=True`` to :" "func:`patch` / :func:`patch.object` or use the :func:`create_autospec` " @@ -2033,24 +2046,24 @@ msgid "" "import modules) without a big performance hit." msgstr "" -#: ../Doc/library/unittest.mock.rst:2235 +#: ../Doc/library/unittest.mock.rst:2256 msgid "Here's an example of it in use:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2245 +#: ../Doc/library/unittest.mock.rst:2266 msgid "" "You can see that :class:`request.Request` has a spec. :class:`request." "Request` takes two arguments in the constructor (one of which is *self*). " "Here's what happens if we try to call it incorrectly:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2254 +#: ../Doc/library/unittest.mock.rst:2275 msgid "" "The spec also applies to instantiated classes (i.e. the return value of " "specced mocks):" msgstr "" -#: ../Doc/library/unittest.mock.rst:2261 +#: ../Doc/library/unittest.mock.rst:2282 msgid "" ":class:`Request` objects are not callable, so the return value of " "instantiating our mocked out :class:`request.Request` is a non-callable " @@ -2058,20 +2071,20 @@ msgid "" "error:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2273 +#: ../Doc/library/unittest.mock.rst:2294 msgid "" "In many cases you will just be able to add ``autospec=True`` to your " "existing :func:`patch` calls and then be protected against bugs due to typos " "and api changes." msgstr "" -#: ../Doc/library/unittest.mock.rst:2277 +#: ../Doc/library/unittest.mock.rst:2298 msgid "" "As well as using *autospec* through :func:`patch` there is a :func:" "`create_autospec` for creating autospecced mocks directly:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2285 +#: ../Doc/library/unittest.mock.rst:2306 msgid "" "This isn't without caveats and limitations however, which is why it is not " "the default behaviour. In order to know what attributes are available on the " @@ -2083,7 +2096,7 @@ msgid "" "objects so that introspection is safe [#]_." msgstr "" -#: ../Doc/library/unittest.mock.rst:2294 +#: ../Doc/library/unittest.mock.rst:2315 msgid "" "A more serious problem is that it is common for instance attributes to be " "created in the :meth:`__init__` method and not to exist on the class at all. " @@ -2091,7 +2104,7 @@ msgid "" "the api to visible attributes." msgstr "" -#: ../Doc/library/unittest.mock.rst:2311 +#: ../Doc/library/unittest.mock.rst:2332 msgid "" "There are a few different ways of resolving this problem. The easiest, but " "not necessarily the least annoying, way is to simply set the required " @@ -2100,7 +2113,7 @@ msgid "" "setting them:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2322 +#: ../Doc/library/unittest.mock.rst:2343 msgid "" "There is a more aggressive version of both *spec* and *autospec* that *does* " "prevent you setting non-existent attributes. This is useful if you want to " @@ -2108,7 +2121,7 @@ msgid "" "this particular scenario:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2335 +#: ../Doc/library/unittest.mock.rst:2356 msgid "" "Probably the best way of solving the problem is to add class attributes as " "default values for instance members initialised in :meth:`__init__`. Note " @@ -2117,7 +2130,7 @@ msgid "" "faster too. e.g." msgstr "" -#: ../Doc/library/unittest.mock.rst:2345 +#: ../Doc/library/unittest.mock.rst:2366 msgid "" "This brings up another issue. It is relatively common to provide a default " "value of ``None`` for members that will later be an object of a different " @@ -2128,7 +2141,7 @@ msgid "" "These will just be ordinary mocks (well - MagicMocks):" msgstr "" -#: ../Doc/library/unittest.mock.rst:2360 +#: ../Doc/library/unittest.mock.rst:2381 msgid "" "If modifying your production classes to add defaults isn't to your liking " "then there are more options. One of these is simply to use an instance as " @@ -2139,25 +2152,25 @@ msgid "" "alternative object as the *autospec* argument:" msgstr "" -#: ../Doc/library/unittest.mock.rst:2381 +#: ../Doc/library/unittest.mock.rst:2402 msgid "" "This only applies to classes or already instantiated objects. Calling a " "mocked class to create a mock instance *does not* create a real instance. It " "is only attribute lookups - along with calls to :func:`dir` - that are done." msgstr "" -#: ../Doc/library/unittest.mock.rst:2386 +#: ../Doc/library/unittest.mock.rst:2407 msgid "Sealing mocks" msgstr "" -#: ../Doc/library/unittest.mock.rst:2390 +#: ../Doc/library/unittest.mock.rst:2411 msgid "" "Seal will disable the automatic creation of mocks when accessing an " "attribute of the mock being sealed or any of its attributes that are already " "mocks recursively." msgstr "" -#: ../Doc/library/unittest.mock.rst:2393 +#: ../Doc/library/unittest.mock.rst:2414 msgid "" "If a mock instance with a name or a spec is assigned to an attribute it " "won't be considered in the sealing chain. This allows one to prevent seal " diff --git a/library/unittest.po b/library/unittest.po index 6bdec232d..942758345 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-01-28 21:58+0100\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" @@ -524,13 +524,8 @@ msgid "Pattern to match test files (``test*.py`` default)" msgstr "Motif de détection des fichiers de test (``test*.py`` par défaut)" #: ../Doc/library/unittest.rst:299 -msgid "" -"Top level directory of project (defaults to start directory)Répertoire de " -"premier niveau du projet (répertoire racine, c'est-à-dire *start-directory*, " -"par défaut)" +msgid "Top level directory of project (defaults to start directory)" msgstr "" -"Répertoire de premier niveau du projet (répertoire racine, c'est-à-dire " -"*start-directory*, par défaut)" #: ../Doc/library/unittest.rst:301 msgid "" @@ -719,13 +714,14 @@ msgstr "" "appelées qu'une fois par test." #: ../Doc/library/unittest.rst:418 +#, fuzzy msgid "" "It is recommended that you use TestCase implementations to group tests " "together according to the features they test. :mod:`unittest` provides a " -"mechanism for this: the :dfn:`suite de tests`, represented by :mod:" -"`unittest`'s :class:`TestSuite` class. In most cases, calling :func:" -"`unittest.main` will do the right thing and collect all the module's test " -"cases for you and execute them." +"mechanism for this: the :dfn:`test suite`, represented by :mod:`unittest`'s :" +"class:`TestSuite` class. In most cases, calling :func:`unittest.main` will " +"do the right thing and collect all the module's test cases for you and " +"execute them." msgstr "" "Il est recommandé d'utiliser *TestCase* pour regrouper les tests en fonction " "des fonctionnalités qu'ils testent. :mod:`unittest` fournit un mécanisme " @@ -3412,8 +3408,9 @@ msgstr "" "classe de résultat est instanciée avec les arguments suivants  ::" #: ../Doc/library/unittest.rst:2053 +#, fuzzy msgid "" -"This method is the main public interface to the `TextTestRunner`. This " +"This method is the main public interface to the ``TextTestRunner``. This " "method takes a :class:`TestSuite` or :class:`TestCase` instance. A :class:" "`TestResult` is created by calling :func:`_makeResult` and the test(s) are " "run and the results printed to stdout." @@ -3901,3 +3898,11 @@ msgstr "" "gestionnaire *contrôle-c* s'il a été installé. Cette fonction peut également " "être utilisée comme décorateur de test pour supprimer temporairement le " "gestionnaire pendant l'exécution du test  ::" + +#~ msgid "" +#~ "Top level directory of project (defaults to start directory)Répertoire de " +#~ "premier niveau du projet (répertoire racine, c'est-à-dire *start-" +#~ "directory*, par défaut)" +#~ msgstr "" +#~ "Répertoire de premier niveau du projet (répertoire racine, c'est-à-dire " +#~ "*start-directory*, par défaut)" diff --git a/library/venv.po b/library/venv.po index 1269d2c68..347f1abc8 100644 --- a/library/venv.po +++ b/library/venv.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-12-17 21:52+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -133,14 +133,14 @@ msgid "The command, if run with ``-h``, will show the available options::" msgstr "" "La commande, si lancée avec ``-h``, montrera les options disponibles ::" -#: ../Doc/using/venv-create.inc:65 +#: ../Doc/using/venv-create.inc:67 msgid "" "Installs pip by default, added the ``--without-pip`` and ``--copies`` " "options" msgstr "" "Installe pip par défaut, ajout des options ``--without-pip`` et ``--copies``" -#: ../Doc/using/venv-create.inc:69 +#: ../Doc/using/venv-create.inc:71 msgid "" "In earlier versions, if the target directory already existed, an error was " "raised, unless the ``--clear`` or ``--upgrade`` option was provided." @@ -149,7 +149,14 @@ msgstr "" "une erreur était levée, sauf si l'option ``--clear`` ou ``--upgrade`` était " "incluse." -#: ../Doc/using/venv-create.inc:73 +#: ../Doc/using/venv-create.inc:76 +msgid "" +"While symlinks are supported on Windows, they are not recommended. Of " +"particular note is that double-clicking ``python.exe`` in File Explorer will " +"resolve the symlink eagerly and ignore the virtual environment." +msgstr "" + +#: ../Doc/using/venv-create.inc:80 msgid "" "The created ``pyvenv.cfg`` file also includes the ``include-system-site-" "packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-" @@ -159,7 +166,7 @@ msgstr "" "packages``, dont la valeur est ``true`` si ``venv`` est lancé avec l'option " "``--system-site-packages``, sinon sa valeur est ``false``." -#: ../Doc/using/venv-create.inc:77 +#: ../Doc/using/venv-create.inc:84 msgid "" "Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " "invoked to bootstrap ``pip`` into the virtual environment." @@ -167,7 +174,7 @@ msgstr "" "Sauf si l'option ``--without-pip`` est incluse, :mod:`ensurepip` sera " "invoqué pour amorcer ``pip`` dans l'environnement virtuel." -#: ../Doc/using/venv-create.inc:80 +#: ../Doc/using/venv-create.inc:87 msgid "" "Multiple paths can be given to ``venv``, in which case an identical virtual " "environment will be created, according to the given options, at each " @@ -177,7 +184,7 @@ msgstr "" "environnement virtuel sera créé, en fonction des options incluses, à chaque " "chemin donné." -#: ../Doc/using/venv-create.inc:84 +#: ../Doc/using/venv-create.inc:91 #, fuzzy msgid "" "Once a virtual environment has been created, it can be \"activated\" using a " @@ -191,67 +198,67 @@ msgstr "" "être remplacé par le chemin d'accès du répertoire contenant l'environnement " "virtuel) :" -#: ../Doc/using/venv-create.inc:90 +#: ../Doc/using/venv-create.inc:97 msgid "Platform" msgstr "Plateforme" -#: ../Doc/using/venv-create.inc:90 +#: ../Doc/using/venv-create.inc:97 msgid "Shell" msgstr "Invite de commande" -#: ../Doc/using/venv-create.inc:90 +#: ../Doc/using/venv-create.inc:97 msgid "Command to activate virtual environment" msgstr "Commande pour activer l'environnement virtuel" -#: ../Doc/using/venv-create.inc:92 +#: ../Doc/using/venv-create.inc:99 msgid "Posix" msgstr "Posix" -#: ../Doc/using/venv-create.inc:92 +#: ../Doc/using/venv-create.inc:99 msgid "bash/zsh" msgstr "bash/zsh" -#: ../Doc/using/venv-create.inc:92 +#: ../Doc/using/venv-create.inc:99 msgid "$ source /bin/activate" msgstr "``$ source /bin/activate``" -#: ../Doc/using/venv-create.inc:94 +#: ../Doc/using/venv-create.inc:101 msgid "fish" msgstr "fish" -#: ../Doc/using/venv-create.inc:94 +#: ../Doc/using/venv-create.inc:101 msgid "$ . /bin/activate.fish" msgstr "``$ . /bin/activate.fish``" -#: ../Doc/using/venv-create.inc:96 +#: ../Doc/using/venv-create.inc:103 msgid "csh/tcsh" msgstr "csh/tcsh" -#: ../Doc/using/venv-create.inc:96 +#: ../Doc/using/venv-create.inc:103 msgid "$ source /bin/activate.csh" msgstr "``$ source /bin/activate.csh``" -#: ../Doc/using/venv-create.inc:98 +#: ../Doc/using/venv-create.inc:105 msgid "Windows" msgstr "Windows" -#: ../Doc/using/venv-create.inc:98 +#: ../Doc/using/venv-create.inc:105 msgid "cmd.exe" msgstr "cmd.exe" -#: ../Doc/using/venv-create.inc:98 +#: ../Doc/using/venv-create.inc:105 msgid "C:\\\\> \\\\Scripts\\\\activate.bat" msgstr "``C:\\\\{venv}\\\\Scripts\\\\activate.bat``" -#: ../Doc/using/venv-create.inc:100 +#: ../Doc/using/venv-create.inc:107 msgid "PowerShell" msgstr "PowerShell" -#: ../Doc/using/venv-create.inc:100 +#: ../Doc/using/venv-create.inc:107 msgid "PS C:\\\\> \\\\Scripts\\\\Activate.ps1" msgstr "``PS C:\\\\> \\\\Scripts\\\\Activate.ps1``" -#: ../Doc/using/venv-create.inc:103 +#: ../Doc/using/venv-create.inc:110 msgid "" "You don't specifically *need* to activate an environment; activation just " "prepends the virtual environment's binary directory to your path, so that " @@ -268,7 +275,7 @@ msgstr "" "installés dans un environnement virtuel devraient être exécutables sans " "l'activer, et se lancer avec l'environnement virtuel Python automatiquement." -#: ../Doc/using/venv-create.inc:110 +#: ../Doc/using/venv-create.inc:117 msgid "" "You can deactivate a virtual environment by typing \"deactivate\" in your " "shell. The exact mechanism is platform-specific: for example, the Bash " @@ -283,7 +290,7 @@ msgstr "" "``deactivate.bat`` et ``Deactivate.ps1`` qui sont installés quand " "l'environnement virtuel est créé." -#: ../Doc/using/venv-create.inc:116 +#: ../Doc/using/venv-create.inc:123 msgid "``fish`` and ``csh`` activation scripts." msgstr "Les scripts d'activation pour ``fish`` et ``csh``." @@ -434,16 +441,16 @@ msgstr "" "n'importe quel dossier existant cible, avant de créer l'environnement." #: ../Doc/library/venv.rst:116 +#, fuzzy msgid "" "``symlinks`` -- a Boolean value indicating whether to attempt to symlink the " -"Python binary (and any necessary DLLs or other binaries, e.g. ``pythonw." -"exe``), rather than copying." +"Python binary rather than copying." msgstr "" "``symlinks`` -- Une valeur booléenne qui indique si il faut créer un lien " "symbolique de la bibliothèque (et tous les DLLs ou autres binaires " "nécessaires, par exemple ``pythonw.exe``), plutôt que de la copier." -#: ../Doc/library/venv.rst:120 +#: ../Doc/library/venv.rst:119 msgid "" "``upgrade`` -- a Boolean value which, if true, will upgrade an existing " "environment with the running Python - for use when that Python has been " @@ -453,7 +460,7 @@ msgstr "" "environnement existant avec le Python lancé -- utilisé quand Python à été " "mis a jour sur place (par défaut à ``False``)." -#: ../Doc/library/venv.rst:124 +#: ../Doc/library/venv.rst:123 msgid "" "``with_pip`` -- a Boolean value which, if true, ensures pip is installed in " "the virtual environment. This uses :mod:`ensurepip` with the ``--default-" @@ -463,7 +470,7 @@ msgstr "" "installé dans l'environnement virtuel. Cela utilise :mod:`ensurepip` avec " "l'option ``--default-pip``." -#: ../Doc/library/venv.rst:128 +#: ../Doc/library/venv.rst:127 msgid "" "``prompt`` -- a String to be used after virtual environment is activated " "(defaults to ``None`` which means directory name of the environment would be " @@ -473,15 +480,15 @@ msgstr "" "activé (par défaut à ``None`` ce qui veux dire qu'il utilisera le nom du " "dossier de l'environnement)." -#: ../Doc/library/venv.rst:132 ../Doc/library/venv.rst:243 +#: ../Doc/library/venv.rst:131 ../Doc/library/venv.rst:247 msgid "Added the ``with_pip`` parameter" msgstr "Ajout du paramètre ``with_pip``" -#: ../Doc/library/venv.rst:135 +#: ../Doc/library/venv.rst:134 msgid "Added the ``prompt`` parameter" msgstr "Ajout du paramètre ``prompt``" -#: ../Doc/library/venv.rst:138 +#: ../Doc/library/venv.rst:137 msgid "" "Creators of third-party virtual environment tools will be free to use the " "provided ``EnvBuilder`` class as a base class." @@ -489,12 +496,12 @@ msgstr "" "Les créateurs des outils de création d'environnement virtuel externes seront " "libres d'utiliser la classe ``EnvBuilder`` en tant que classe de base." -#: ../Doc/library/venv.rst:141 +#: ../Doc/library/venv.rst:140 msgid "The returned env-builder is an object which has a method, ``create``:" msgstr "" "Le **env-builder** retourné est un objet qui a une méthode, ``create`` :" -#: ../Doc/library/venv.rst:145 +#: ../Doc/library/venv.rst:144 msgid "" "This method takes as required argument the path (absolute or relative to the " "current directory) of the target directory which is to contain the virtual " @@ -506,7 +513,7 @@ msgstr "" "l'environnement virtuel. La méthode ``create`` doit soit créer un " "environnement dans le dossier spécifié, soit lever une exception." -#: ../Doc/library/venv.rst:151 +#: ../Doc/library/venv.rst:150 msgid "" "The ``create`` method of the ``EnvBuilder`` class illustrates the hooks " "available for subclass customization::" @@ -514,7 +521,7 @@ msgstr "" "La méthode ``create`` de la classe ``EnvBuilder`` illustre les points " "d'entrées disponibles pour la personnalisation de sous-classes ::" -#: ../Doc/library/venv.rst:166 +#: ../Doc/library/venv.rst:165 msgid "" "Each of the methods :meth:`ensure_directories`, :meth:" "`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :" @@ -524,7 +531,7 @@ msgstr "" "`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` et :meth:" "`post_setup` peuvent être écrasés." -#: ../Doc/library/venv.rst:172 +#: ../Doc/library/venv.rst:171 msgid "" "Creates the environment directory and all necessary directories, and returns " "a context object. This is just a holder for attributes (such as paths), for " @@ -538,17 +545,17 @@ msgstr "" "peuvent déjà exister. tant que ``clear`` ou ``upgrade`` ont été spécifiés " "pour permettre de telles opérations dans un dossier d'environnement existant." -#: ../Doc/library/venv.rst:180 +#: ../Doc/library/venv.rst:179 msgid "Creates the ``pyvenv.cfg`` configuration file in the environment." msgstr "Crée le fichier de configuration ``pyenv.cfg`` dans l'environnement." -#: ../Doc/library/venv.rst:184 +#: ../Doc/library/venv.rst:183 #, fuzzy msgid "" -"Creates a copy of the Python executable in the environment on POSIX systems. " -"If a specific executable ``python3.x`` was used, symlinks to ``python`` and " -"``python3`` will be created pointing to that executable, unless files with " -"those names already exist." +"Creates a copy or symlink to the Python executable in the environment. On " +"POSIX systems, if a specific executable ``python3.x`` was used, symlinks to " +"``python`` and ``python3`` will be created pointing to that executable, " +"unless files with those names already exist." msgstr "" "Crée une copie de l’exécutable Python (et, sous Windows, les DLLs) dans " "l'environnement. Sur un système POSIX, si un exécutable ``python3.x`` a été " @@ -556,16 +563,16 @@ msgstr "" "pointant vers cet exécutable, sauf si des fichiers avec ces noms existent " "déjà." -#: ../Doc/library/venv.rst:191 +#: ../Doc/library/venv.rst:190 #, fuzzy msgid "" "Installs activation scripts appropriate to the platform into the virtual " -"environment. On Windows, also installs the ``python[w].exe`` scripts." +"environment." msgstr "" "Installe des scripts d'activation appropriés pour la plateforme dans " "l'environnement virtuel." -#: ../Doc/library/venv.rst:196 +#: ../Doc/library/venv.rst:195 msgid "" "A placeholder method which can be overridden in third party implementations " "to pre-install packages in the virtual environment or perform other post-" @@ -575,14 +582,21 @@ msgstr "" "implémentation externes pour pré installer des paquets dans l'environnement " "virtuel ou pour exécuter des étapes post-création." -#: ../Doc/library/venv.rst:200 +#: ../Doc/library/venv.rst:199 msgid "" "Windows now uses redirector scripts for ``python[w].exe`` instead of copying " -"the actual binaries, and so :meth:`setup_python` does nothing unless running " -"from a build in the source tree." +"the actual binaries. In 3.7.2 only :meth:`setup_python` does nothing unless " +"running from a build in the source tree." +msgstr "" + +#: ../Doc/library/venv.rst:204 +msgid "" +"Windows copies the redirector scripts as part of :meth:`setup_python` " +"instead of :meth:`setup_scripts`. This was not the case in 3.7.2. When using " +"symlinks, the original executables will be linked." msgstr "" -#: ../Doc/library/venv.rst:205 +#: ../Doc/library/venv.rst:209 msgid "" "In addition, :class:`EnvBuilder` provides this utility method that can be " "called from :meth:`setup_scripts` or :meth:`post_setup` in subclasses to " @@ -593,7 +607,7 @@ msgstr "" "pour assister dans l'installation de scripts customs dans l'environnement " "virtuel." -#: ../Doc/library/venv.rst:211 +#: ../Doc/library/venv.rst:215 msgid "" "*path* is the path to a directory that should contain subdirectories \"common" "\", \"posix\", \"nt\", each containing scripts destined for the bin " @@ -607,7 +621,7 @@ msgstr "" "dossier \"**common**\" et le dossier correspondant à :data:`os.name` sont " "copiés après quelque remplacement de texte temporaires :" -#: ../Doc/library/venv.rst:217 +#: ../Doc/library/venv.rst:221 msgid "" "``__VENV_DIR__`` is replaced with the absolute path of the environment " "directory." @@ -615,7 +629,7 @@ msgstr "" "``__VENV_DIR__`` est remplacé avec le chemin absolu du dossier de " "l'environnement." -#: ../Doc/library/venv.rst:220 +#: ../Doc/library/venv.rst:224 msgid "" "``__VENV_NAME__`` is replaced with the environment name (final path segment " "of environment directory)." @@ -623,7 +637,7 @@ msgstr "" "``__VENV_NAME__`` est remplacé avec le nom de l'environnement (le dernier " "segment du chemin vers le dossier de l'environnement)." -#: ../Doc/library/venv.rst:223 +#: ../Doc/library/venv.rst:227 msgid "" "``__VENV_PROMPT__`` is replaced with the prompt (the environment name " "surrounded by parentheses and with a following space)" @@ -631,7 +645,7 @@ msgstr "" "``__VENV_PROMPT__`` est remplacé par le prompt (nom de l'environnement " "entouré de parenthèses et avec un espace le suivant)." -#: ../Doc/library/venv.rst:226 +#: ../Doc/library/venv.rst:230 msgid "" "``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either " "``bin`` or ``Scripts``)." @@ -639,7 +653,7 @@ msgstr "" "``__VENV_BIN_NAME__`` est remplacé par le nom du dossier **bin** (soit " "``bin`` soit ``Scripts``)." -#: ../Doc/library/venv.rst:229 +#: ../Doc/library/venv.rst:233 msgid "" "``__VENV_PYTHON__`` is replaced with the absolute path of the environment's " "executable." @@ -647,7 +661,7 @@ msgstr "" "``__VENV_PYTHON__`` est remplacé avec le chemin absolu de l’exécutable de " "l'environnement." -#: ../Doc/library/venv.rst:232 +#: ../Doc/library/venv.rst:236 msgid "" "The directories are allowed to exist (for when an existing environment is " "being upgraded)." @@ -655,11 +669,11 @@ msgstr "" "Les dossiers peuvent exister (pour quand un environnement existant est mis à " "jour)." -#: ../Doc/library/venv.rst:235 +#: ../Doc/library/venv.rst:239 msgid "There is also a module-level convenience function:" msgstr "Il y a aussi une fonction pratique au niveau du module :" -#: ../Doc/library/venv.rst:240 +#: ../Doc/library/venv.rst:244 msgid "" "Create an :class:`EnvBuilder` with the given keyword arguments, and call " "its :meth:`~EnvBuilder.create` method with the *env_dir* argument." @@ -667,11 +681,11 @@ msgstr "" "Crée une :class:`EnvBuilder` avec les arguments donnés, et appelle sa " "méthode :meth:`~EnvBuilder.create` avec l'argument *env_dir*." -#: ../Doc/library/venv.rst:247 +#: ../Doc/library/venv.rst:251 msgid "An example of extending ``EnvBuilder``" msgstr "Un exemple d'extension de ``EnvBuilder``" -#: ../Doc/library/venv.rst:249 +#: ../Doc/library/venv.rst:253 msgid "" "The following script shows how to extend :class:`EnvBuilder` by implementing " "a subclass which installs setuptools and pip into a created virtual " @@ -681,7 +695,7 @@ msgstr "" "implémentant une sous-classe qui installe **setuptools** et **pip** dans un " "environnement créé ::" -#: ../Doc/library/venv.rst:468 +#: ../Doc/library/venv.rst:472 msgid "" "This script is also available for download `online `_." diff --git a/library/warnings.po b/library/warnings.po index 0e228dd2e..b96f0824c 100644 --- a/library/warnings.po +++ b/library/warnings.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-26 13:07+0100\n" +"Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: \n" "X-Generator: Poedit 2.2\n" #: ../Doc/library/warnings.rst:2 diff --git a/library/xml.etree.elementtree.po b/library/xml.etree.elementtree.po index 29701b377..b4fcd3395 100644 --- a/library/xml.etree.elementtree.po +++ b/library/xml.etree.elementtree.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-07-04 11:02+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -472,10 +472,12 @@ msgstr "" #: ../Doc/library/xml.etree.elementtree.rst:495 msgid "" "Parses an XML section from a string constant. Same as :func:`XML`. *text* " -"is a string containing XML data. Returns an :class:`Element` instance." +"is a string containing XML data. *parser* is an optional parser instance. " +"If not given, the standard :class:`XMLParser` parser is used. Returns an :" +"class:`Element` instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:501 +#: ../Doc/library/xml.etree.elementtree.rst:503 msgid "" "Parses an XML document from a sequence of string fragments. *sequence* is a " "list or other sequence containing XML data fragments. *parser* is an " @@ -483,13 +485,13 @@ msgid "" "parser is used. Returns an :class:`Element` instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:511 +#: ../Doc/library/xml.etree.elementtree.rst:513 msgid "" "Checks if an object appears to be a valid element object. *element* is an " "element instance. Returns a true value if this is an element object." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:517 +#: ../Doc/library/xml.etree.elementtree.rst:519 msgid "" "Parses an XML section into an element tree incrementally, and reports what's " "going on to the user. *source* is a filename or :term:`file object` " @@ -503,7 +505,7 @@ msgid "" "target. Returns an :term:`iterator` providing ``(event, elem)`` pairs." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:528 +#: ../Doc/library/xml.etree.elementtree.rst:530 msgid "" "Note that while :func:`iterparse` builds the tree incrementally, it issues " "blocking reads on *source* (or the file it names). As such, it's unsuitable " @@ -511,7 +513,7 @@ msgid "" "parsing, see :class:`XMLPullParser`." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:535 +#: ../Doc/library/xml.etree.elementtree.rst:537 msgid "" ":func:`iterparse` only guarantees that it has seen the \">\" character of a " "starting tag when it emits a \"start\" event, so the attributes are defined, " @@ -520,16 +522,16 @@ msgid "" "present." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:541 -#: ../Doc/library/xml.etree.elementtree.rst:1175 +#: ../Doc/library/xml.etree.elementtree.rst:543 +#: ../Doc/library/xml.etree.elementtree.rst:1177 msgid "If you need a fully populated element, look for \"end\" events instead." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:543 +#: ../Doc/library/xml.etree.elementtree.rst:545 msgid "The *parser* argument." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:548 +#: ../Doc/library/xml.etree.elementtree.rst:550 msgid "" "Parses an XML section into an element tree. *source* is a filename or file " "object containing XML data. *parser* is an optional parser instance. If " @@ -537,7 +539,7 @@ msgid "" "class:`ElementTree` instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:556 +#: ../Doc/library/xml.etree.elementtree.rst:558 msgid "" "PI element factory. This factory function creates a special element that " "will be serialized as an XML processing instruction. *target* is a string " @@ -545,7 +547,7 @@ msgid "" "given. Returns an element instance, representing a processing instruction." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:561 +#: ../Doc/library/xml.etree.elementtree.rst:563 msgid "" "Note that :class:`XMLParser` skips over processing instructions in the input " "instead of creating comment objects for them. An :class:`ElementTree` will " @@ -553,7 +555,7 @@ msgid "" "the tree using one of the :class:`Element` methods." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:569 +#: ../Doc/library/xml.etree.elementtree.rst:571 msgid "" "Registers a namespace prefix. The registry is global, and any existing " "mapping for either the given prefix or the namespace URI will be removed. " @@ -562,13 +564,13 @@ msgid "" "all possible." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:580 +#: ../Doc/library/xml.etree.elementtree.rst:582 msgid "" "Subelement factory. This function creates an element instance, and appends " "it to an existing element." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:583 +#: ../Doc/library/xml.etree.elementtree.rst:585 msgid "" "The element name, attribute names, and attribute values can be either " "bytestrings or Unicode strings. *parent* is the parent element. *tag* is " @@ -577,7 +579,7 @@ msgid "" "arguments. Returns an element instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:593 +#: ../Doc/library/xml.etree.elementtree.rst:595 msgid "" "Generates a string representation of an XML element, including all " "subelements. *element* is an :class:`Element` instance. *encoding* [1]_ is " @@ -588,13 +590,13 @@ msgid "" "write`. Returns an (optionally) encoded string containing the XML data." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:601 -#: ../Doc/library/xml.etree.elementtree.rst:620 -#: ../Doc/library/xml.etree.elementtree.rst:947 +#: ../Doc/library/xml.etree.elementtree.rst:603 +#: ../Doc/library/xml.etree.elementtree.rst:622 +#: ../Doc/library/xml.etree.elementtree.rst:949 msgid "The *short_empty_elements* parameter." msgstr "Le paramètre *short_empty_elements*." -#: ../Doc/library/xml.etree.elementtree.rst:608 +#: ../Doc/library/xml.etree.elementtree.rst:610 msgid "" "Generates a string representation of an XML element, including all " "subelements. *element* is an :class:`Element` instance. *encoding* [1]_ is " @@ -607,7 +609,7 @@ msgid "" "join(tostringlist(element)) == tostring(element)``." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:626 +#: ../Doc/library/xml.etree.elementtree.rst:628 msgid "" "Parses an XML section from a string constant. This function can be used to " "embed \"XML literals\" in Python code. *text* is a string containing XML " @@ -615,7 +617,7 @@ msgid "" "class:`XMLParser` parser is used. Returns an :class:`Element` instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:634 +#: ../Doc/library/xml.etree.elementtree.rst:636 msgid "" "Parses an XML section from a string constant, and also returns a dictionary " "which maps from element id:s to elements. *text* is a string containing XML " @@ -624,17 +626,17 @@ msgid "" "`Element` instance and a dictionary." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:644 +#: ../Doc/library/xml.etree.elementtree.rst:646 msgid "Element Objects" msgstr "Objets Elements" -#: ../Doc/library/xml.etree.elementtree.rst:648 +#: ../Doc/library/xml.etree.elementtree.rst:650 msgid "" "Element class. This class defines the Element interface, and provides a " "reference implementation of this interface." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:651 +#: ../Doc/library/xml.etree.elementtree.rst:653 msgid "" "The element name, attribute names, and attribute values can be either " "bytestrings or Unicode strings. *tag* is the element name. *attrib* is an " @@ -642,13 +644,13 @@ msgid "" "additional attributes, given as keyword arguments." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:659 +#: ../Doc/library/xml.etree.elementtree.rst:661 msgid "" "A string identifying what kind of data this element represents (the element " "type, in other words)." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:666 +#: ../Doc/library/xml.etree.elementtree.rst:668 msgid "" "These attributes can be used to hold additional data associated with the " "element. Their values are usually strings but may be any application-" @@ -659,7 +661,7 @@ msgid "" "the XML data" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:678 +#: ../Doc/library/xml.etree.elementtree.rst:680 msgid "" "the *a* element has ``None`` for both *text* and *tail* attributes, the *b* " "element has *text* ``\"1\"`` and *tail* ``\"4\"``, the *c* element has " @@ -667,17 +669,17 @@ msgid "" "``None`` and *tail* ``\"3\"``." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:683 +#: ../Doc/library/xml.etree.elementtree.rst:685 msgid "" "To collect the inner text of an element, see :meth:`itertext`, for example ``" "\"\".join(element.itertext())``." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:686 +#: ../Doc/library/xml.etree.elementtree.rst:688 msgid "Applications may store arbitrary objects in these attributes." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:691 +#: ../Doc/library/xml.etree.elementtree.rst:693 msgid "" "A dictionary containing the element's attributes. Note that while the " "*attrib* value is always a real mutable Python dictionary, an ElementTree " @@ -686,59 +688,59 @@ msgid "" "implementations, use the dictionary methods below whenever possible." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:697 +#: ../Doc/library/xml.etree.elementtree.rst:699 msgid "The following dictionary-like methods work on the element attributes." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:702 +#: ../Doc/library/xml.etree.elementtree.rst:704 msgid "" "Resets an element. This function removes all subelements, clears all " "attributes, and sets the text and tail attributes to ``None``." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:708 +#: ../Doc/library/xml.etree.elementtree.rst:710 msgid "Gets the element attribute named *key*." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:710 +#: ../Doc/library/xml.etree.elementtree.rst:712 msgid "" "Returns the attribute value, or *default* if the attribute was not found." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:715 +#: ../Doc/library/xml.etree.elementtree.rst:717 msgid "" "Returns the element attributes as a sequence of (name, value) pairs. The " "attributes are returned in an arbitrary order." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:721 +#: ../Doc/library/xml.etree.elementtree.rst:723 msgid "" "Returns the elements attribute names as a list. The names are returned in " "an arbitrary order." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:727 +#: ../Doc/library/xml.etree.elementtree.rst:729 msgid "Set the attribute *key* on the element to *value*." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:729 +#: ../Doc/library/xml.etree.elementtree.rst:731 msgid "The following methods work on the element's children (subelements)." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:734 +#: ../Doc/library/xml.etree.elementtree.rst:736 msgid "" "Adds the element *subelement* to the end of this element's internal list of " "subelements. Raises :exc:`TypeError` if *subelement* is not an :class:" "`Element`." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:741 +#: ../Doc/library/xml.etree.elementtree.rst:743 msgid "" "Appends *subelements* from a sequence object with zero or more elements. " "Raises :exc:`TypeError` if a subelement is not an :class:`Element`." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:749 +#: ../Doc/library/xml.etree.elementtree.rst:751 msgid "" "Finds the first subelement matching *match*. *match* may be a tag name or " "a :ref:`path `. Returns an element instance or " @@ -746,7 +748,7 @@ msgid "" "name." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:757 +#: ../Doc/library/xml.etree.elementtree.rst:759 msgid "" "Finds all matching subelements, by tag name or :ref:`path `. Returns a list containing all matching elements in document " @@ -754,7 +756,7 @@ msgid "" "name." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:765 +#: ../Doc/library/xml.etree.elementtree.rst:767 msgid "" "Finds text for the first subelement matching *match*. *match* may be a tag " "name or a :ref:`path `. Returns the text content of the " @@ -763,21 +765,21 @@ msgid "" "*namespaces* is an optional mapping from namespace prefix to full name." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:775 +#: ../Doc/library/xml.etree.elementtree.rst:777 msgid "Use ``list(elem)`` or iteration." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:781 +#: ../Doc/library/xml.etree.elementtree.rst:783 msgid "Use method :meth:`Element.iter` instead." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:787 +#: ../Doc/library/xml.etree.elementtree.rst:789 msgid "" "Inserts *subelement* at the given position in this element. Raises :exc:" "`TypeError` if *subelement* is not an :class:`Element`." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:793 +#: ../Doc/library/xml.etree.elementtree.rst:795 msgid "" "Creates a tree :term:`iterator` with the current element as the root. The " "iterator iterates over this element and all elements below it, in document " @@ -786,7 +788,7 @@ msgid "" "structure is modified during iteration, the result is undefined." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:804 +#: ../Doc/library/xml.etree.elementtree.rst:806 msgid "" "Finds all matching subelements, by tag name or :ref:`path `. Returns an iterable yielding all matching elements in document " @@ -794,95 +796,95 @@ msgid "" "name." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:815 +#: ../Doc/library/xml.etree.elementtree.rst:817 msgid "" "Creates a text iterator. The iterator loops over this element and all " "subelements, in document order, and returns all inner text." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:823 +#: ../Doc/library/xml.etree.elementtree.rst:825 msgid "" "Creates a new element object of the same type as this element. Do not call " "this method, use the :func:`SubElement` factory function instead." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:829 +#: ../Doc/library/xml.etree.elementtree.rst:831 msgid "" "Removes *subelement* from the element. Unlike the find\\* methods this " "method compares elements based on the instance identity, not on tag value or " "contents." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:833 +#: ../Doc/library/xml.etree.elementtree.rst:835 msgid "" ":class:`Element` objects also support the following sequence type methods " "for working with subelements: :meth:`~object.__delitem__`, :meth:`~object." "__getitem__`, :meth:`~object.__setitem__`, :meth:`~object.__len__`." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:838 +#: ../Doc/library/xml.etree.elementtree.rst:840 msgid "" "Caution: Elements with no subelements will test as ``False``. This behavior " "will change in future versions. Use specific ``len(elem)`` or ``elem is " "None`` test instead. ::" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:854 +#: ../Doc/library/xml.etree.elementtree.rst:856 msgid "ElementTree Objects" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:859 +#: ../Doc/library/xml.etree.elementtree.rst:861 msgid "" "ElementTree wrapper class. This class represents an entire element " "hierarchy, and adds some extra support for serialization to and from " "standard XML." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:863 +#: ../Doc/library/xml.etree.elementtree.rst:865 msgid "" "*element* is the root element. The tree is initialized with the contents of " "the XML *file* if given." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:869 +#: ../Doc/library/xml.etree.elementtree.rst:871 msgid "" "Replaces the root element for this tree. This discards the current contents " "of the tree, and replaces it with the given element. Use with care. " "*element* is an element instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:876 +#: ../Doc/library/xml.etree.elementtree.rst:878 msgid "Same as :meth:`Element.find`, starting at the root of the tree." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:881 +#: ../Doc/library/xml.etree.elementtree.rst:883 msgid "Same as :meth:`Element.findall`, starting at the root of the tree." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:886 +#: ../Doc/library/xml.etree.elementtree.rst:888 msgid "Same as :meth:`Element.findtext`, starting at the root of the tree." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:891 +#: ../Doc/library/xml.etree.elementtree.rst:893 msgid "Use method :meth:`ElementTree.iter` instead." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:897 +#: ../Doc/library/xml.etree.elementtree.rst:899 msgid "Returns the root element for this tree." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:902 +#: ../Doc/library/xml.etree.elementtree.rst:904 msgid "" "Creates and returns a tree iterator for the root element. The iterator " "loops over all elements in this tree, in section order. *tag* is the tag to " "look for (default is to return all elements)." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:909 +#: ../Doc/library/xml.etree.elementtree.rst:911 msgid "Same as :meth:`Element.iterfind`, starting at the root of the tree." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:916 +#: ../Doc/library/xml.etree.elementtree.rst:918 msgid "" "Loads an external XML section into this element tree. *source* is a file " "name or :term:`file object`. *parser* is an optional parser instance. If " @@ -890,7 +892,7 @@ msgid "" "section root element." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:926 +#: ../Doc/library/xml.etree.elementtree.rst:928 msgid "" "Writes the element tree to a file, as XML. *file* is a file name, or a :" "term:`file object` opened for writing. *encoding* [1]_ is the output " @@ -905,7 +907,7 @@ msgid "" "emitted as a pair of start/end tags." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:940 +#: ../Doc/library/xml.etree.elementtree.rst:942 msgid "" "The output is either a string (:class:`str`) or binary (:class:`bytes`). " "This is controlled by the *encoding* argument. If *encoding* is ``\"unicode" @@ -914,21 +916,21 @@ msgid "" "sure you do not try to write a string to a binary stream and vice versa." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:951 +#: ../Doc/library/xml.etree.elementtree.rst:953 msgid "This is the XML file that is going to be manipulated::" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:963 +#: ../Doc/library/xml.etree.elementtree.rst:965 msgid "" "Example of changing the attribute \"target\" of every link in first " "paragraph::" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:982 +#: ../Doc/library/xml.etree.elementtree.rst:984 msgid "QName Objects" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:987 +#: ../Doc/library/xml.etree.elementtree.rst:989 msgid "" "QName wrapper. This can be used to wrap a QName attribute value, in order " "to get proper namespace handling on output. *text_or_uri* is a string " @@ -938,11 +940,11 @@ msgid "" "class:`QName` instances are opaque." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:999 +#: ../Doc/library/xml.etree.elementtree.rst:1001 msgid "TreeBuilder Objects" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1004 +#: ../Doc/library/xml.etree.elementtree.rst:1006 msgid "" "Generic element structure builder. This builder converts a sequence of " "start, data, and end method calls to a well-formed element structure. You " @@ -952,48 +954,48 @@ msgid "" "attributes. It is expected to return a new element instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1013 +#: ../Doc/library/xml.etree.elementtree.rst:1015 msgid "" "Flushes the builder buffers, and returns the toplevel document element. " "Returns an :class:`Element` instance." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1019 +#: ../Doc/library/xml.etree.elementtree.rst:1021 msgid "" "Adds text to the current element. *data* is a string. This should be " "either a bytestring, or a Unicode string." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1025 +#: ../Doc/library/xml.etree.elementtree.rst:1027 msgid "" "Closes the current element. *tag* is the element name. Returns the closed " "element." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1031 +#: ../Doc/library/xml.etree.elementtree.rst:1033 msgid "" "Opens a new element. *tag* is the element name. *attrs* is a dictionary " "containing element attributes. Returns the opened element." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1035 +#: ../Doc/library/xml.etree.elementtree.rst:1037 msgid "" "In addition, a custom :class:`TreeBuilder` object can provide the following " "method:" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1040 +#: ../Doc/library/xml.etree.elementtree.rst:1042 msgid "" "Handles a doctype declaration. *name* is the doctype name. *pubid* is the " "public identifier. *system* is the system identifier. This method does not " "exist on the default :class:`TreeBuilder` class." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1050 +#: ../Doc/library/xml.etree.elementtree.rst:1052 msgid "XMLParser Objects" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1055 +#: ../Doc/library/xml.etree.elementtree.rst:1057 msgid "" "This class is the low-level building block of the module. It uses :mod:`xml." "parsers.expat` for efficient, event-based parsing of XML. It can be fed XML " @@ -1005,29 +1007,29 @@ msgid "" "specified in the XML file." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1064 +#: ../Doc/library/xml.etree.elementtree.rst:1066 msgid "" "The *html* argument. The remaining arguments should be passed via keyword " "to prepare for the removal of the *html* argument." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1070 +#: ../Doc/library/xml.etree.elementtree.rst:1072 msgid "" "Finishes feeding data to the parser. Returns the result of calling the " "``close()`` method of the *target* passed during construction; by default, " "this is the toplevel document element." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1077 +#: ../Doc/library/xml.etree.elementtree.rst:1079 msgid "" "Define the :meth:`TreeBuilder.doctype` method on a custom TreeBuilder target." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1084 +#: ../Doc/library/xml.etree.elementtree.rst:1086 msgid "Feeds data to the parser. *data* is encoded data." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1086 +#: ../Doc/library/xml.etree.elementtree.rst:1088 msgid "" ":meth:`XMLParser.feed` calls *target*\\'s ``start(tag, attrs_dict)`` method " "for each opening tag, its ``end(tag)`` method for each closing tag, and data " @@ -1037,11 +1039,11 @@ msgid "" "of an XML file::" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1129 +#: ../Doc/library/xml.etree.elementtree.rst:1131 msgid "XMLPullParser Objects" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1133 +#: ../Doc/library/xml.etree.elementtree.rst:1135 msgid "" "A pull parser suitable for non-blocking applications. Its input-side API is " "similar to that of :class:`XMLParser`, but instead of pushing calls to a " @@ -1053,11 +1055,11 @@ msgid "" "events are reported." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1144 +#: ../Doc/library/xml.etree.elementtree.rst:1146 msgid "Feed the given bytes data to the parser." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1148 +#: ../Doc/library/xml.etree.elementtree.rst:1150 msgid "" "Signal the parser that the data stream is terminated. Unlike :meth:" "`XMLParser.close`, this method always returns :const:`None`. Any events not " @@ -1065,7 +1067,7 @@ msgid "" "`read_events`." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1155 +#: ../Doc/library/xml.etree.elementtree.rst:1157 msgid "" "Return an iterator over the events which have been encountered in the data " "fed to the parser. The iterator yields ``(event, elem)`` pairs, where " @@ -1073,7 +1075,7 @@ msgid "" "*elem* is the encountered :class:`Element` object." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1161 +#: ../Doc/library/xml.etree.elementtree.rst:1163 msgid "" "Events provided in a previous call to :meth:`read_events` will not be " "yielded again. Events are consumed from the internal queue only when they " @@ -1082,7 +1084,7 @@ msgid "" "results." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1169 +#: ../Doc/library/xml.etree.elementtree.rst:1171 msgid "" ":class:`XMLPullParser` only guarantees that it has seen the \">\" character " "of a starting tag when it emits a \"start\" event, so the attributes are " @@ -1091,11 +1093,11 @@ msgid "" "be present." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1180 +#: ../Doc/library/xml.etree.elementtree.rst:1182 msgid "Exceptions" msgstr "Exceptions" -#: ../Doc/library/xml.etree.elementtree.rst:1184 +#: ../Doc/library/xml.etree.elementtree.rst:1186 msgid "" "XML parse error, raised by the various parsing methods in this module when " "parsing fails. The string representation of an instance of this exception " @@ -1103,22 +1105,22 @@ msgid "" "following attributes available:" msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1191 +#: ../Doc/library/xml.etree.elementtree.rst:1193 msgid "" "A numeric error code from the expat parser. See the documentation of :mod:" "`xml.parsers.expat` for the list of error codes and their meanings." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1196 +#: ../Doc/library/xml.etree.elementtree.rst:1198 msgid "" "A tuple of *line*, *column* numbers, specifying where the error occurred." msgstr "" -#: ../Doc/library/xml.etree.elementtree.rst:1199 +#: ../Doc/library/xml.etree.elementtree.rst:1201 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/xml.etree.elementtree.rst:1200 +#: ../Doc/library/xml.etree.elementtree.rst:1202 msgid "" "The encoding string included in XML output should conform to the appropriate " "standards. For example, \"UTF-8\" is valid, but \"UTF8\" is not. See " diff --git a/reference/datamodel.po b/reference/datamodel.po index 0d88579ce..a911aafee 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-19 22:22+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -2992,12 +2992,15 @@ msgstr "" "``__slots__`` ou présent dans le parent)." #: ../Doc/reference/datamodel.rst:1727 -msgid "The space saved over using *__dict__* can be significant." +#, fuzzy +msgid "" +"The space saved over using *__dict__* can be significant. Attribute lookup " +"speed can be significantly improved as well." msgstr "" "L'espace gagné par rapport à l'utilisation d'un *__dict__* peut être " "significatif." -#: ../Doc/reference/datamodel.rst:1731 +#: ../Doc/reference/datamodel.rst:1732 msgid "" "This class variable can be assigned a string, iterable, or sequence of " "strings with variable names used by instances. *__slots__* reserves space " @@ -3010,11 +3013,11 @@ msgstr "" "interdit la création automatique de *__dict__* et *__weakref__* pour chaque " "instance." -#: ../Doc/reference/datamodel.rst:1738 +#: ../Doc/reference/datamodel.rst:1739 msgid "Notes on using *__slots__*" msgstr "Note sur l'utilisation de *__slots__*" -#: ../Doc/reference/datamodel.rst:1740 +#: ../Doc/reference/datamodel.rst:1741 msgid "" "When inheriting from a class without *__slots__*, the *__dict__* and " "*__weakref__* attribute of the instances will always be accessible." @@ -3022,7 +3025,7 @@ msgstr "" "Lorsque vous héritez d'une classe sans *__slots__*, les attributs *__dict__* " "et *__weakref__* des instances sont toujours accessibles." -#: ../Doc/reference/datamodel.rst:1743 +#: ../Doc/reference/datamodel.rst:1744 msgid "" "Without a *__dict__* variable, instances cannot be assigned new variables " "not listed in the *__slots__* definition. Attempts to assign to an unlisted " @@ -3036,7 +3039,7 @@ msgstr "" "Si l'assignation dynamique de nouvelles variables est nécessaire, ajoutez " "``'__dict__'`` à la séquence de chaînes dans la déclaration *__slots__*." -#: ../Doc/reference/datamodel.rst:1749 +#: ../Doc/reference/datamodel.rst:1750 msgid "" "Without a *__weakref__* variable for each instance, classes defining " "*__slots__* do not support weak references to its instances. If weak " @@ -3049,7 +3052,7 @@ msgstr "" "``'__weakref__'`` à la séquence de chaînes dans la déclaration de " "*__slots__*." -#: ../Doc/reference/datamodel.rst:1754 +#: ../Doc/reference/datamodel.rst:1755 msgid "" "*__slots__* are implemented at the class level by creating descriptors (:ref:" "`descriptors`) for each variable name. As a result, class attributes cannot " @@ -3062,7 +3065,7 @@ msgstr "" "aux variables d'instances définies par *__slots__* ; sinon, l'attribut de " "classe surchargerait l'assignation par descripteur." -#: ../Doc/reference/datamodel.rst:1760 +#: ../Doc/reference/datamodel.rst:1761 msgid "" "The action of a *__slots__* declaration is not limited to the class where it " "is defined. *__slots__* declared in parents are available in child classes. " @@ -3076,7 +3079,7 @@ msgstr "" "et un *__weakref__* à moins qu'elles ne définissent aussi un *__slots__* " "(qui ne doit contenir alors que les noms *supplémentaires* du *slot*)." -#: ../Doc/reference/datamodel.rst:1766 +#: ../Doc/reference/datamodel.rst:1767 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 " @@ -3090,7 +3093,7 @@ msgstr "" "signification du programme indéfinie. Dans le futur, une vérification sera " "ajoutée pour empêcher cela." -#: ../Doc/reference/datamodel.rst:1771 +#: ../Doc/reference/datamodel.rst:1772 msgid "" "Nonempty *__slots__* does not work for classes derived from \"variable-length" "\" built-in types such as :class:`int`, :class:`bytes` and :class:`tuple`." @@ -3099,7 +3102,7 @@ msgstr "" "natifs à longueur variable tels que :class:`int`, :class:`bytes` et :class:" "`tuple`." -#: ../Doc/reference/datamodel.rst:1774 +#: ../Doc/reference/datamodel.rst:1775 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 " @@ -3110,14 +3113,14 @@ msgstr "" "le futur, des significations spéciales pourraient être associées à chacune " "des clés." -#: ../Doc/reference/datamodel.rst:1778 +#: ../Doc/reference/datamodel.rst:1779 msgid "" "*__class__* assignment works only if both classes have the same *__slots__*." msgstr "" "Les assignations de *__class__* ne fonctionnent que si les deux classes ont " "le même *__slots__*." -#: ../Doc/reference/datamodel.rst:1780 +#: ../Doc/reference/datamodel.rst:1781 msgid "" "Multiple inheritance with multiple slotted parent classes can be used, but " "only one parent is allowed to have attributes created by slots (the other " @@ -3128,11 +3131,11 @@ msgstr "" "*__slots__* (les autres classes parentes doivent avoir des *__slots__* " "vides). La violation de cette règle lève :exc:`TypeError`." -#: ../Doc/reference/datamodel.rst:1788 +#: ../Doc/reference/datamodel.rst:1789 msgid "Customizing class creation" msgstr "Personnalisation de la création de classes" -#: ../Doc/reference/datamodel.rst:1790 +#: ../Doc/reference/datamodel.rst:1791 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 " @@ -3149,7 +3152,7 @@ msgstr "" "uniquement sur les futures sous-classes de la classe qui définit cette " "méthode." -#: ../Doc/reference/datamodel.rst:1799 +#: ../Doc/reference/datamodel.rst:1800 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 " @@ -3159,7 +3162,7 @@ msgstr "" "la nouvelle sous-classe. Si elle est définie en tant que méthode d'instance " "normale, cette méthode est implicitement convertie en méthode de classe." -#: ../Doc/reference/datamodel.rst:1803 +#: ../Doc/reference/datamodel.rst:1804 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 " @@ -3172,7 +3175,7 @@ msgstr "" "les arguments nommés dont vous avez besoin et passer les autres à la classe " "de base, comme ci-dessous ::" -#: ../Doc/reference/datamodel.rst:1817 +#: ../Doc/reference/datamodel.rst:1818 msgid "" "The default implementation ``object.__init_subclass__`` does nothing, but " "raises an error if it is called with any arguments." @@ -3180,7 +3183,7 @@ msgstr "" "L'implémentation par défaut ``object.__init_subclass__`` ne fait rien mais " "lève une erreur si elle est appelée avec un argument." -#: ../Doc/reference/datamodel.rst:1822 +#: ../Doc/reference/datamodel.rst:1823 msgid "" "The metaclass hint ``metaclass`` is consumed by the rest of the type " "machinery, and is never passed to ``__init_subclass__`` implementations. The " @@ -3192,11 +3195,11 @@ msgstr "" "``__init_subclass__``. La méta-classe réelle (plutôt que l'indication " "explicite) peut être récupérée par ``type(cls)``." -#: ../Doc/reference/datamodel.rst:1833 +#: ../Doc/reference/datamodel.rst:1834 msgid "Metaclasses" msgstr "Méta-classes" -#: ../Doc/reference/datamodel.rst:1840 +#: ../Doc/reference/datamodel.rst:1841 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 " @@ -3206,7 +3209,7 @@ msgstr "" "de la classe est exécuté dans un nouvel espace de noms et le nom de la " "classe est lié localement au résultat de `type(name, bases, namespace)``." -#: ../Doc/reference/datamodel.rst:1844 +#: ../Doc/reference/datamodel.rst:1845 msgid "" "The class creation process can be customized by passing the ``metaclass`` " "keyword argument in the class definition line, or by inheriting from an " @@ -3219,7 +3222,7 @@ msgstr "" "l'exemple qui suit, ``MyClass`` et ``MySubclass`` sont des instances de " "``Meta`` ::" -#: ../Doc/reference/datamodel.rst:1858 +#: ../Doc/reference/datamodel.rst:1859 msgid "" "Any other keyword arguments that are specified in the class definition are " "passed through to all metaclass operations described below." @@ -3227,37 +3230,37 @@ msgstr "" "Tout autre argument nommé spécifié dans la définition de la classe est passé " "aux opérations de méta-classes décrites auparavant." -#: ../Doc/reference/datamodel.rst:1861 +#: ../Doc/reference/datamodel.rst:1862 msgid "When a class definition is executed, the following steps occur:" msgstr "" "Quand la définition d'une classe est exécutée, les différentes étapes " "suivies sont :" -#: ../Doc/reference/datamodel.rst:1863 +#: ../Doc/reference/datamodel.rst:1864 msgid "MRO entries are resolved" msgstr "Les entrées MRO sont résolues" -#: ../Doc/reference/datamodel.rst:1864 +#: ../Doc/reference/datamodel.rst:1865 msgid "the appropriate metaclass is determined" msgstr "la méta-classe appropriée est déterminée ;" -#: ../Doc/reference/datamodel.rst:1865 +#: ../Doc/reference/datamodel.rst:1866 msgid "the class namespace is prepared" msgstr "l'espace de noms de la classe est préparé ;" -#: ../Doc/reference/datamodel.rst:1866 +#: ../Doc/reference/datamodel.rst:1867 msgid "the class body is executed" msgstr "le corps de la classe est exécuté ;" -#: ../Doc/reference/datamodel.rst:1867 +#: ../Doc/reference/datamodel.rst:1868 msgid "the class object is created" msgstr "l'objet classe est crée." -#: ../Doc/reference/datamodel.rst:1871 +#: ../Doc/reference/datamodel.rst:1872 msgid "Resolving MRO entries" msgstr "Résolution des entrées MRO" -#: ../Doc/reference/datamodel.rst:1873 +#: ../Doc/reference/datamodel.rst:1874 msgid "" "If a base that appears in class definition is not an instance of :class:" "`type`, then an ``__mro_entries__`` method is searched on it. If found, it " @@ -3272,30 +3275,30 @@ msgstr "" "utilisé à la place de la classe de base. Le tuple peut être vide, dans ce " "cas la classe de base originale est ignorée." -#: ../Doc/reference/datamodel.rst:1881 ../Doc/reference/datamodel.rst:2069 +#: ../Doc/reference/datamodel.rst:1882 ../Doc/reference/datamodel.rst:2070 msgid ":pep:`560` - Core support for typing module and generic types" msgstr "" ":pep:`560` -- Gestion de base pour les types modules et les types génériques" -#: ../Doc/reference/datamodel.rst:1885 +#: ../Doc/reference/datamodel.rst:1886 msgid "Determining the appropriate metaclass" msgstr "Détermination de la méta-classe appropriée" -#: ../Doc/reference/datamodel.rst:1889 +#: ../Doc/reference/datamodel.rst:1890 msgid "" "The appropriate metaclass for a class definition is determined as follows:" msgstr "" "La méta-classe appropriée pour une définition de classe est déterminée de la " "manière suivante :" -#: ../Doc/reference/datamodel.rst:1891 +#: ../Doc/reference/datamodel.rst:1892 msgid "" "if no bases and no explicit metaclass are given, then :func:`type` is used" msgstr "" "si aucune classe et aucune méta-classe n'est donnée, alors :func:`type` est " "utilisée ;" -#: ../Doc/reference/datamodel.rst:1892 +#: ../Doc/reference/datamodel.rst:1893 msgid "" "if an explicit metaclass is given and it is *not* an instance of :func:" "`type`, then it is used directly as the metaclass" @@ -3304,7 +3307,7 @@ msgstr "" "de :func:`type`, alors elle est utilisée directement en tant que méta-" "classe ;" -#: ../Doc/reference/datamodel.rst:1894 +#: ../Doc/reference/datamodel.rst:1895 msgid "" "if an instance of :func:`type` is given as the explicit metaclass, or bases " "are defined, then the most derived metaclass is used" @@ -3312,7 +3315,7 @@ msgstr "" "Si une instance de :func:`type` est donnée comme méta-classe explicite ou si " "*bases* est définie, alors la méta-classe la plus dérivée est utilisée." -#: ../Doc/reference/datamodel.rst:1897 +#: ../Doc/reference/datamodel.rst:1898 msgid "" "The most derived metaclass is selected from the explicitly specified " "metaclass (if any) and the metaclasses (i.e. ``type(cls)``) of all specified " @@ -3327,11 +3330,11 @@ msgstr "" "candidates. Si aucune des méta-classes candidates ne remplit ce critère, " "alors la définition de la classe échoue en levant ``TypeError``." -#: ../Doc/reference/datamodel.rst:1907 +#: ../Doc/reference/datamodel.rst:1908 msgid "Preparing the class namespace" msgstr "Préparation de l'espace de noms de la classe" -#: ../Doc/reference/datamodel.rst:1912 +#: ../Doc/reference/datamodel.rst:1913 msgid "" "Once the appropriate metaclass has been identified, then the class namespace " "is prepared. If the metaclass has a ``__prepare__`` attribute, it is called " @@ -3344,7 +3347,7 @@ msgstr "" "__prepare__(name, bases, **kwds)`` (où les arguments nommés supplémentaires, " "s'il y en a, viennent de la définition de la classe)." -#: ../Doc/reference/datamodel.rst:1917 +#: ../Doc/reference/datamodel.rst:1918 msgid "" "If the metaclass has no ``__prepare__`` attribute, then the class namespace " "is initialised as an empty ordered mapping." @@ -3353,20 +3356,20 @@ msgstr "" "de noms de la classe est initialisé en tant que tableau de correspondances " "ordonné." -#: ../Doc/reference/datamodel.rst:1922 +#: ../Doc/reference/datamodel.rst:1923 msgid ":pep:`3115` - Metaclasses in Python 3000" msgstr ":pep:`3115` -- Méta-classes dans Python 3000" -#: ../Doc/reference/datamodel.rst:1923 +#: ../Doc/reference/datamodel.rst:1924 msgid "Introduced the ``__prepare__`` namespace hook" msgstr "" "introduction de la fonction automatique ``__prepare__`` de l'espace de noms" -#: ../Doc/reference/datamodel.rst:1927 +#: ../Doc/reference/datamodel.rst:1928 msgid "Executing the class body" msgstr "Exécution du corps de la classe" -#: ../Doc/reference/datamodel.rst:1932 +#: ../Doc/reference/datamodel.rst:1933 msgid "" "The class body is executed (approximately) as ``exec(body, globals(), " "namespace)``. The key difference from a normal call to :func:`exec` is that " @@ -3381,7 +3384,7 @@ msgstr "" "des portées externes lorsque la définition de classe a lieu dans une " "fonction." -#: ../Doc/reference/datamodel.rst:1938 +#: ../Doc/reference/datamodel.rst:1939 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. " @@ -3396,11 +3399,11 @@ msgstr "" "ou *via* la référence implicite ``__class__`` incluse dans la portée " "lexicale et décrite dans la section suivante." -#: ../Doc/reference/datamodel.rst:1947 +#: ../Doc/reference/datamodel.rst:1948 msgid "Creating the class object" msgstr "Création de l'objet classe" -#: ../Doc/reference/datamodel.rst:1954 +#: ../Doc/reference/datamodel.rst:1955 msgid "" "Once the class namespace has been populated by executing the class body, the " "class object is created by calling ``metaclass(name, bases, namespace, " @@ -3412,7 +3415,7 @@ msgstr "" "**kwds)`` (les arguments nommés supplémentaires passés ici sont les mêmes " "que ceux passés à ``__prepare__``)." -#: ../Doc/reference/datamodel.rst:1959 +#: ../Doc/reference/datamodel.rst:1960 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 " @@ -3431,7 +3434,7 @@ msgstr "" "l'appel en cours est identifiée en fonction du premier argument transmis à " "la méthode." -#: ../Doc/reference/datamodel.rst:1969 +#: ../Doc/reference/datamodel.rst:1970 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 " @@ -3446,7 +3449,7 @@ msgstr "" "traduit par un avertissement :exc:`DeprecationWarning` dans Python 3.6 et " "un :exc:`RuntimeError` dans Python 3.8." -#: ../Doc/reference/datamodel.rst:1976 +#: ../Doc/reference/datamodel.rst:1977 msgid "" "When using the default metaclass :class:`type`, or any metaclass that " "ultimately calls ``type.__new__``, the following additional customisation " @@ -3457,7 +3460,7 @@ msgstr "" "personnalisation supplémentaires suivantes sont suivies après la création de " "l'objet classe :" -#: ../Doc/reference/datamodel.rst:1980 +#: ../Doc/reference/datamodel.rst:1981 msgid "" "first, ``type.__new__`` collects all of the descriptors in the class " "namespace that define a :meth:`~object.__set_name__` method;" @@ -3465,7 +3468,7 @@ msgstr "" "d'abord, ``type.__new__`` récupère, dans l'espace de noms de la classe, tous " "les descripteurs qui définissent une méthode :meth:`~object.__set_name__` ;" -#: ../Doc/reference/datamodel.rst:1982 +#: ../Doc/reference/datamodel.rst:1983 msgid "" "second, all of these ``__set_name__`` methods are called with the class " "being defined and the assigned name of that particular descriptor; and" @@ -3473,7 +3476,7 @@ msgstr "" "ensuite, toutes ces méthodes ``__set_name__`` sont appelées avec la classe " "en cours de définition et le nom assigné à chaque descripteur ;" -#: ../Doc/reference/datamodel.rst:1984 +#: ../Doc/reference/datamodel.rst:1985 msgid "" "finally, the :meth:`~object.__init_subclass__` hook is called on the " "immediate parent of the new class in its method resolution order." @@ -3482,7 +3485,7 @@ msgstr "" "appelée sur le parent immédiat de la nouvelle classe en utilisant l'ordre de " "résolution des méthodes." -#: ../Doc/reference/datamodel.rst:1987 +#: ../Doc/reference/datamodel.rst:1988 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 " @@ -3493,7 +3496,7 @@ msgstr "" "et l'objet résultant est lié à l'espace de noms local en tant que classe " "définie." -#: ../Doc/reference/datamodel.rst:1991 +#: ../Doc/reference/datamodel.rst:1992 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 " @@ -3506,21 +3509,21 @@ msgstr "" "copie est encapsulée dans un mandataire en lecture seule qui devient " "l'attribut :attr:`~object.__dict__` de l'objet classe." -#: ../Doc/reference/datamodel.rst:1998 +#: ../Doc/reference/datamodel.rst:1999 msgid ":pep:`3135` - New super" msgstr ":pep:`3135` -- Nouvelle méthode super" -#: ../Doc/reference/datamodel.rst:1999 +#: ../Doc/reference/datamodel.rst:2000 msgid "Describes the implicit ``__class__`` closure reference" msgstr "" "Décrit la référence à la fermeture (*closure* en anglais) de la " "``__class__`` implicite" -#: ../Doc/reference/datamodel.rst:2003 +#: ../Doc/reference/datamodel.rst:2004 msgid "Uses for metaclasses" msgstr "Cas d'utilisations des métaclasses" -#: ../Doc/reference/datamodel.rst:2005 +#: ../Doc/reference/datamodel.rst:2006 msgid "" "The potential uses for metaclasses are boundless. Some ideas that have been " "explored include enum, logging, interface checking, automatic delegation, " @@ -3533,11 +3536,11 @@ msgstr "" "de propriétés, les mandataires, les *frameworks* ainsi que le verrouillage " "ou la synchronisation automatique de ressources." -#: ../Doc/reference/datamodel.rst:2012 +#: ../Doc/reference/datamodel.rst:2013 msgid "Customizing instance and subclass checks" msgstr "Personnalisation des instances et vérification des sous-classes" -#: ../Doc/reference/datamodel.rst:2014 +#: ../Doc/reference/datamodel.rst:2015 msgid "" "The following methods are used to override the default behavior of the :func:" "`isinstance` and :func:`issubclass` built-in functions." @@ -3545,7 +3548,7 @@ msgstr "" "Les méthodes suivantes sont utilisées pour surcharger le comportement par " "défaut des fonctions natives :func:`isinstance` et :func:`issubclass`." -#: ../Doc/reference/datamodel.rst:2017 +#: ../Doc/reference/datamodel.rst:2018 msgid "" "In particular, the metaclass :class:`abc.ABCMeta` implements these methods " "in order to allow the addition of Abstract Base Classes (ABCs) as \"virtual " @@ -3557,7 +3560,7 @@ msgstr "" "Base Classes* en anglais) en tant que \"classes de base virtuelles\" pour " "toute classe ou type (y compris les types natifs)." -#: ../Doc/reference/datamodel.rst:2024 +#: ../Doc/reference/datamodel.rst:2025 msgid "" "Return true if *instance* should be considered a (direct or indirect) " "instance of *class*. If defined, called to implement ``isinstance(instance, " @@ -3567,7 +3570,7 @@ msgstr "" "(directe ou indirecte) de *class*. Si elle est définie, est elle appelée " "pour implémenter ``isinstance(instance, class)``." -#: ../Doc/reference/datamodel.rst:2031 +#: ../Doc/reference/datamodel.rst:2032 msgid "" "Return true if *subclass* should be considered a (direct or indirect) " "subclass of *class*. If defined, called to implement ``issubclass(subclass, " @@ -3577,7 +3580,7 @@ msgstr "" "(directe ou indirecte) de *class*. Si elle est définie, appelée pour " "implémenter ``issubclass(subclass, class)``." -#: ../Doc/reference/datamodel.rst:2036 +#: ../Doc/reference/datamodel.rst:2037 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 " @@ -3590,11 +3593,11 @@ msgstr "" "spéciales qui sont appelées pour les instances, sauf qu'ici l'instance est " "elle-même une classe." -#: ../Doc/reference/datamodel.rst:2047 +#: ../Doc/reference/datamodel.rst:2048 msgid ":pep:`3119` - Introducing Abstract Base Classes" msgstr ":pep:`3119` -- Introduction aux classes de bases abstraites" -#: ../Doc/reference/datamodel.rst:2044 +#: ../Doc/reference/datamodel.rst:2045 msgid "" "Includes the specification for customizing :func:`isinstance` and :func:" "`issubclass` behavior through :meth:`~class.__instancecheck__` and :meth:" @@ -3608,11 +3611,11 @@ msgstr "" "motivation pour cette fonctionnalité l'ajout les classes de base abstraites " "(voir le module :mod:`abc`) au langage." -#: ../Doc/reference/datamodel.rst:2052 +#: ../Doc/reference/datamodel.rst:2053 msgid "Emulating generic types" msgstr "Émulation de types génériques" -#: ../Doc/reference/datamodel.rst:2054 +#: ../Doc/reference/datamodel.rst:2055 msgid "" "One can implement the generic class syntax as specified by :pep:`484` (for " "example ``List[int]``) by defining a special method" @@ -3621,7 +3624,7 @@ msgstr "" "la :pep:`484` (par exemple ``List[int]``) en définissant une méthode " "spéciale." -#: ../Doc/reference/datamodel.rst:2059 +#: ../Doc/reference/datamodel.rst:2060 msgid "" "Return an object representing the specialization of a generic class by type " "arguments found in *key*." @@ -3629,7 +3632,7 @@ msgstr "" "Renvoie un objet représentant la spécialisation d'une classe générique en " "fonction des arguments types trouvés dans *key*." -#: ../Doc/reference/datamodel.rst:2062 +#: ../Doc/reference/datamodel.rst:2063 msgid "" "This method is looked up on the class object itself, and when defined in the " "class body, this method is implicitly a class method. Note, this mechanism " @@ -3642,11 +3645,11 @@ msgstr "" "principalement réservé à une utilisation avec des indications de type " "statiques, d'autres utilisations sont déconseillées." -#: ../Doc/reference/datamodel.rst:2075 +#: ../Doc/reference/datamodel.rst:2076 msgid "Emulating callable objects" msgstr "Émulation d'objets appelables" -#: ../Doc/reference/datamodel.rst:2082 +#: ../Doc/reference/datamodel.rst:2083 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, " @@ -3656,11 +3659,11 @@ msgstr "" "méthode est définie, ``x(arg1, arg2, ...)`` est un raccourci pour ``x." "__call__(arg1, arg2, ...)``." -#: ../Doc/reference/datamodel.rst:2089 +#: ../Doc/reference/datamodel.rst:2090 msgid "Emulating container types" msgstr "Émulation de types conteneurs" -#: ../Doc/reference/datamodel.rst:2091 +#: ../Doc/reference/datamodel.rst:2092 msgid "" "The following methods can be defined to implement container objects. " "Containers usually are sequences (such as lists or tuples) or mappings (like " @@ -3727,7 +3730,7 @@ msgstr "" "de correspondances, :meth:`__iter__` doit être la même que :meth:`keys` ; " "pour les séquences, elle doit itérer sur les valeurs." -#: ../Doc/reference/datamodel.rst:2126 +#: ../Doc/reference/datamodel.rst:2127 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 " @@ -3739,7 +3742,7 @@ msgstr "" "définit pas de méthode :meth:`__bool__` et dont la méthode :meth:`__len__` " "renvoie zéro est considéré comme valant ``False`` dans un contexte booléen." -#: ../Doc/reference/datamodel.rst:2133 +#: ../Doc/reference/datamodel.rst:2134 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:" @@ -3753,7 +3756,7 @@ msgstr "" "exc:`!OverflowError` lors de tests booléens, un objet doit définir la " "méthode :meth:`__bool__`." -#: ../Doc/reference/datamodel.rst:2142 +#: ../Doc/reference/datamodel.rst:2143 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). " @@ -3766,22 +3769,22 @@ msgstr "" "méthode est utilisée uniquement pour optimiser les traitements et n'est " "jamais tenue de renvoyer un résultat exact." -#: ../Doc/reference/datamodel.rst:2154 +#: ../Doc/reference/datamodel.rst:2155 msgid "" "Slicing is done exclusively with the following three methods. A call like ::" msgstr "" "Le découpage est effectué uniquement à l'aide des trois méthodes suivantes. " "Un appel comme ::" -#: ../Doc/reference/datamodel.rst:2158 +#: ../Doc/reference/datamodel.rst:2159 msgid "is translated to ::" msgstr "est traduit en ::" -#: ../Doc/reference/datamodel.rst:2162 +#: ../Doc/reference/datamodel.rst:2163 msgid "and so forth. Missing slice items are always filled in with ``None``." msgstr "et ainsi de suite. Les éléments manquants sont remplacés par ``None``." -#: ../Doc/reference/datamodel.rst:2167 +#: ../Doc/reference/datamodel.rst:2168 msgid "" "Called to implement evaluation of ``self[key]``. For sequence types, the " "accepted keys should be integers and slice objects. Note that the special " @@ -3802,7 +3805,7 @@ msgstr "" "`IndexError` doit être levée. Pour les tableaux de correspondances, si *key* " "n'existe pas dans le conteneur, une :exc:`KeyError` doit être levée." -#: ../Doc/reference/datamodel.rst:2178 +#: ../Doc/reference/datamodel.rst:2179 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." @@ -3810,7 +3813,7 @@ msgstr "" ":keyword:`for` s'attend à ce qu'une :exc:`IndexError` soit levée en cas " "d'indice illégal afin de détecter correctement la fin de la séquence." -#: ../Doc/reference/datamodel.rst:2184 +#: ../Doc/reference/datamodel.rst:2185 msgid "" "Called to implement assignment to ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -3826,7 +3829,7 @@ msgstr "" "exceptions que pour la méthode :meth:`__getitem__` doivent être levées en " "cas de mauvaises valeurs de clés." -#: ../Doc/reference/datamodel.rst:2193 +#: ../Doc/reference/datamodel.rst:2194 msgid "" "Called to implement deletion of ``self[key]``. Same note as for :meth:" "`__getitem__`. This should only be implemented for mappings if the objects " @@ -3841,7 +3844,7 @@ msgstr "" "Les mêmes exceptions que pour la méthode :meth:`__getitem__` doivent être " "levées en cas de mauvaises valeurs de clés." -#: ../Doc/reference/datamodel.rst:2202 +#: ../Doc/reference/datamodel.rst:2203 msgid "" "Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]`` " "for dict subclasses when key is not in the dictionary." @@ -3850,7 +3853,7 @@ msgstr "" "``self[key]`` dans les sous-classes de dictionnaires lorsque la clé n'est " "pas dans le dictionnaire." -#: ../Doc/reference/datamodel.rst:2208 +#: ../Doc/reference/datamodel.rst:2209 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 " @@ -3862,7 +3865,7 @@ msgstr "" "tous les objets du conteneur. Pour les tableaux de correspondances, elle " "doit itérer sur les clés du conteneur." -#: ../Doc/reference/datamodel.rst:2212 +#: ../Doc/reference/datamodel.rst:2213 msgid "" "Iterator objects also need to implement this method; they are required to " "return themselves. For more information on iterator objects, see :ref:" @@ -3872,7 +3875,7 @@ msgstr "" "alors se renvoyer eux-mêmes. Pour plus d'information sur les objets " "itérateurs, lisez :ref:`typeiter`." -#: ../Doc/reference/datamodel.rst:2218 +#: ../Doc/reference/datamodel.rst:2219 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 " @@ -3882,7 +3885,7 @@ msgstr "" "implémenter l'itération en sens inverse. Elle doit renvoyer un nouvel objet " "itérateur qui itère sur tous les objets du conteneur en sens inverse." -#: ../Doc/reference/datamodel.rst:2222 +#: ../Doc/reference/datamodel.rst:2223 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 :" @@ -3896,7 +3899,7 @@ msgstr "" "doivent fournir :meth:`__reversed__` que si l'implémentation qu'ils " "proposent est plus efficace que celle de :func:`reversed`." -#: ../Doc/reference/datamodel.rst:2229 +#: ../Doc/reference/datamodel.rst:2230 msgid "" "The membership test operators (:keyword:`in` and :keyword:`not in`) are " "normally implemented as an iteration through a sequence. However, container " @@ -3909,7 +3912,7 @@ msgstr "" "suivantes avec une implémentation plus efficace, qui ne requièrent " "d'ailleurs pas que l'objet soit une séquence. " -#: ../Doc/reference/datamodel.rst:2236 +#: ../Doc/reference/datamodel.rst:2237 msgid "" "Called to implement membership test operators. Should return true if *item* " "is in *self*, false otherwise. For mapping objects, this should consider " @@ -3920,7 +3923,7 @@ msgstr "" "tableaux de correspondances, seules les clés sont considérées (pas les " "valeurs des paires clés-valeurs)." -#: ../Doc/reference/datamodel.rst:2240 +#: ../Doc/reference/datamodel.rst:2241 msgid "" "For objects that don't define :meth:`__contains__`, the membership test " "first tries iteration via :meth:`__iter__`, then the old sequence iteration " @@ -3933,11 +3936,11 @@ msgstr "" "reportez-vous à :ref:`cette section dans la référence du langage `." -#: ../Doc/reference/datamodel.rst:2249 +#: ../Doc/reference/datamodel.rst:2250 msgid "Emulating numeric types" msgstr "Émulation de types numériques" -#: ../Doc/reference/datamodel.rst:2251 +#: ../Doc/reference/datamodel.rst:2252 msgid "" "The following methods can be defined to emulate numeric objects. Methods " "corresponding to operations that are not supported by the particular kind of " @@ -3950,7 +3953,7 @@ msgstr "" "opérations bit à bit pour les nombres qui ne sont pas entiers) doivent être " "laissées indéfinies." -#: ../Doc/reference/datamodel.rst:2277 +#: ../Doc/reference/datamodel.rst:2278 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -3973,7 +3976,7 @@ msgstr "" "accepter un troisième argument optionnel si la version ternaire de la " "fonction native :func:`pow` est autorisée." -#: ../Doc/reference/datamodel.rst:2288 +#: ../Doc/reference/datamodel.rst:2289 msgid "" "If one of those methods does not support the operation with the supplied " "arguments, it should return ``NotImplemented``." @@ -3981,7 +3984,7 @@ msgstr "" "Si l'une de ces méthodes n'autorise pas l'opération avec les arguments " "donnés, elle doit renvoyer ``NotImplemented``." -#: ../Doc/reference/datamodel.rst:2311 +#: ../Doc/reference/datamodel.rst:2312 msgid "" "These methods are called to implement the binary arithmetic operations (``" "+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " @@ -4002,7 +4005,7 @@ msgstr "" "`__rsub__`, ``y.__rsub__(x)`` est appelée si ``x.__sub__(y)`` renvoie " "*NotImplemented*." -#: ../Doc/reference/datamodel.rst:2322 +#: ../Doc/reference/datamodel.rst:2323 msgid "" "Note that ternary :func:`pow` will not try calling :meth:`__rpow__` (the " "coercion rules would become too complicated)." @@ -4010,7 +4013,7 @@ msgstr "" "Notez que la fonction ternaire :func:`pow` n'essaie pas d'appeler :meth:" "`__rpow__` (les règles de coercition seraient trop compliquées)." -#: ../Doc/reference/datamodel.rst:2327 +#: ../Doc/reference/datamodel.rst:2328 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 " @@ -4023,7 +4026,7 @@ msgstr "" "l'opérande gauche. Ce comportement permet à des sous-classes de surcharger " "les opérations de leurs ancêtres." -#: ../Doc/reference/datamodel.rst:2347 +#: ../Doc/reference/datamodel.rst:2348 msgid "" "These methods are called to implement the augmented arithmetic assignments " "(``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, ``**=``, ``<<=``, " @@ -4052,7 +4055,7 @@ msgstr "" "erreurs inattendues (voir :ref:`faq-augmented-assignment-tuple-error`), mais " "ce comportement est en fait partie intégrante du modèle de données." -#: ../Doc/reference/datamodel.rst:2368 +#: ../Doc/reference/datamodel.rst:2369 msgid "" "Called to implement the unary arithmetic operations (``-``, ``+``, :func:" "`abs` and ``~``)." @@ -4060,7 +4063,7 @@ msgstr "" "Appelée pour implémenter les opérations arithmétiques unaires (``-``, ``" "+``, :func:`abs` et ``~``)." -#: ../Doc/reference/datamodel.rst:2381 +#: ../Doc/reference/datamodel.rst:2382 msgid "" "Called to implement the built-in functions :func:`complex`, :func:`int` and :" "func:`float`. Should return a value of the appropriate type." @@ -4068,7 +4071,7 @@ msgstr "" "Appelées pour implémenter les fonctions natives :func:`complex`, :func:`int` " "et :func:`float`. Elles doivent renvoyer une valeur du type approprié." -#: ../Doc/reference/datamodel.rst:2388 +#: ../Doc/reference/datamodel.rst:2389 msgid "" "Called to implement :func:`operator.index`, and whenever Python needs to " "losslessly convert the numeric object to an integer object (such as in " @@ -4082,7 +4085,7 @@ msgstr "" "`oct`). La présence de cette méthode indique que l'objet numérique est un " "type entier. Elle doit renvoyer un entier." -#: ../Doc/reference/datamodel.rst:2396 +#: ../Doc/reference/datamodel.rst:2397 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 " @@ -4092,7 +4095,7 @@ msgstr "" "est définie alors :meth:`__int__` doit aussi être définie et les deux " "doivent renvoyer la même valeur." -#: ../Doc/reference/datamodel.rst:2408 +#: ../Doc/reference/datamodel.rst:2409 msgid "" "Called to implement the built-in function :func:`round` and :mod:`math` " "functions :func:`~math.trunc`, :func:`~math.floor` and :func:`~math.ceil`. " @@ -4106,7 +4109,7 @@ msgstr "" "toutes ces méthodes doivent renvoyer la valeur de l'objet tronquée pour " "donner un :class:`~numbers.Integral` (typiquement un :class:`int`)." -#: ../Doc/reference/datamodel.rst:2414 +#: ../Doc/reference/datamodel.rst:2415 msgid "" "If :meth:`__int__` is not defined then the built-in function :func:`int` " "falls back to :meth:`__trunc__`." @@ -4114,11 +4117,11 @@ msgstr "" "Si :meth:`__int__` n'est pas définie, alors la fonction native :func:`int` " "se replie sur :meth:`__trunc__`." -#: ../Doc/reference/datamodel.rst:2421 +#: ../Doc/reference/datamodel.rst:2422 msgid "With Statement Context Managers" msgstr "Gestionnaire de contexte With" -#: ../Doc/reference/datamodel.rst:2423 +#: ../Doc/reference/datamodel.rst:2424 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 " @@ -4135,7 +4138,7 @@ msgstr "" "dans la section :ref:`with`), mais ils peuvent aussi être directement " "invoqués par leurs méthodes." -#: ../Doc/reference/datamodel.rst:2434 +#: ../Doc/reference/datamodel.rst:2435 msgid "" "Typical uses of context managers include saving and restoring various kinds " "of global state, locking and unlocking resources, closing opened files, etc." @@ -4144,14 +4147,14 @@ msgstr "" "et la restauration d'états divers, le verrouillage et le déverrouillage de " "ressources, la fermeture de fichiers ouverts, etc." -#: ../Doc/reference/datamodel.rst:2437 +#: ../Doc/reference/datamodel.rst:2438 msgid "" "For more information on context managers, see :ref:`typecontextmanager`." msgstr "" "Pour plus d'informations sur les gestionnaires de contexte, lisez :ref:" "`typecontextmanager`." -#: ../Doc/reference/datamodel.rst:2442 +#: ../Doc/reference/datamodel.rst:2443 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 " @@ -4162,7 +4165,7 @@ msgstr "" "cible spécifiée par la clause :keyword:`!as` de l'instruction, si elle est " "spécifiée." -#: ../Doc/reference/datamodel.rst:2449 +#: ../Doc/reference/datamodel.rst:2450 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 " @@ -4172,7 +4175,7 @@ msgstr "" "l'exception qui a causé la sortie du contexte. Si l'on sort du contexte sans " "exception, les trois arguments sont à :const:`None`." -#: ../Doc/reference/datamodel.rst:2453 +#: ../Doc/reference/datamodel.rst:2454 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. " @@ -4184,7 +4187,7 @@ msgstr "" "propagée), elle doit renvoyer ``True``. Sinon, l'exception est traitée " "normalement à la sortie de cette méthode." -#: ../Doc/reference/datamodel.rst:2457 +#: ../Doc/reference/datamodel.rst:2458 msgid "" "Note that :meth:`__exit__` methods should not reraise the passed-in " "exception; this is the caller's responsibility." @@ -4192,11 +4195,11 @@ msgstr "" "Notez qu'une méthode :meth:`__exit__` ne doit pas lever à nouveau " "l'exception qu'elle reçoit ; c'est du ressort de l'appelant." -#: ../Doc/reference/datamodel.rst:2464 +#: ../Doc/reference/datamodel.rst:2465 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` -- L'instruction ``with``" -#: ../Doc/reference/datamodel.rst:2464 +#: ../Doc/reference/datamodel.rst:2465 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." @@ -4204,11 +4207,11 @@ msgstr "" "La spécification, les motivations et des exemples de l'instruction :keyword:" "`with` en Python." -#: ../Doc/reference/datamodel.rst:2471 +#: ../Doc/reference/datamodel.rst:2472 msgid "Special method lookup" msgstr "Recherche des méthodes spéciales" -#: ../Doc/reference/datamodel.rst:2473 +#: ../Doc/reference/datamodel.rst:2474 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 " @@ -4220,7 +4223,7 @@ msgstr "" "type d'objet, pas dans le dictionnaire de l'objet instance. Ce comportement " "explique pourquoi le code suivant lève une exception ::" -#: ../Doc/reference/datamodel.rst:2488 +#: ../Doc/reference/datamodel.rst:2489 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 " @@ -4234,7 +4237,7 @@ msgstr "" "méthodes utilisait le processus normal de recherche, elles ne " "fonctionneraient pas si on les appelait sur l'objet type lui-même ::" -#: ../Doc/reference/datamodel.rst:2501 +#: ../Doc/reference/datamodel.rst:2502 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 " @@ -4244,7 +4247,7 @@ msgstr "" "parfois appelé \"confusion de méta-classe\" et se contourne en shuntant " "l'instance lors de la recherche des méthodes spéciales ::" -#: ../Doc/reference/datamodel.rst:2510 +#: ../Doc/reference/datamodel.rst:2511 msgid "" "In addition to bypassing any instance attributes in the interest of " "correctness, implicit special method lookup generally also bypasses the :" @@ -4254,7 +4257,7 @@ msgstr "" "correctement, la recherche des méthodes spéciales implicites shunte aussi la " "méthode :meth:`__getattribute__` même dans la méta-classe de l'objet ::" -#: ../Doc/reference/datamodel.rst:2536 +#: ../Doc/reference/datamodel.rst:2537 msgid "" "Bypassing the :meth:`__getattribute__` machinery in this fashion provides " "significant scope for speed optimisations within the interpreter, at the " @@ -4268,15 +4271,15 @@ msgstr "" "être définie sur l'objet classe lui-même afin d'être invoquée de manière " "cohérente par l'interpréteur)." -#: ../Doc/reference/datamodel.rst:2547 +#: ../Doc/reference/datamodel.rst:2548 msgid "Coroutines" msgstr "Coroutines" -#: ../Doc/reference/datamodel.rst:2551 +#: ../Doc/reference/datamodel.rst:2552 msgid "Awaitable Objects" msgstr "Objets *attendables* (*awaitables*)" -#: ../Doc/reference/datamodel.rst:2553 +#: ../Doc/reference/datamodel.rst:2554 msgid "" "An :term:`awaitable` object generally implements an :meth:`__await__` " "method. :term:`Coroutine` objects returned from :keyword:`async def` " @@ -4286,7 +4289,7 @@ msgstr "" "`__await__`. Les objets :term:`Coroutine` renvoyés par les fonctions :" "keyword:`async def` sont des *awaitables*." -#: ../Doc/reference/datamodel.rst:2559 +#: ../Doc/reference/datamodel.rst:2560 msgid "" "The :term:`generator iterator` objects returned from generators decorated " "with :func:`types.coroutine` or :func:`asyncio.coroutine` are also " @@ -4296,7 +4299,7 @@ msgstr "" "décorés par :func:`types.coroutine` ou :func:`asyncio.coroutine` sont aussi " "des *awaitables*, mais ils n'implémentent pas :meth:`__await__`." -#: ../Doc/reference/datamodel.rst:2565 +#: ../Doc/reference/datamodel.rst:2566 msgid "" "Must return an :term:`iterator`. Should be used to implement :term:" "`awaitable` objects. For instance, :class:`asyncio.Future` implements this " @@ -4306,15 +4309,15 @@ msgstr "" "objets :term:`awaitable`. Par exemple, :class:`asyncio.Future` implémente " "cette méthode pour être compatible avec les expressions :keyword:`await`." -#: ../Doc/reference/datamodel.rst:2571 +#: ../Doc/reference/datamodel.rst:2572 msgid ":pep:`492` for additional information about awaitable objects." msgstr ":pep:`492` pour les informations relatives aux objets *awaitables*." -#: ../Doc/reference/datamodel.rst:2577 +#: ../Doc/reference/datamodel.rst:2578 msgid "Coroutine Objects" msgstr "Objets coroutines" -#: ../Doc/reference/datamodel.rst:2579 +#: ../Doc/reference/datamodel.rst:2580 msgid "" ":term:`Coroutine` objects are :term:`awaitable` objects. A coroutine's " "execution can be controlled by calling :meth:`__await__` and iterating over " @@ -4332,7 +4335,7 @@ msgstr "" "exception, elle est propagée par l'itérateur. Les coroutines ne doivent pas " "lever directement des exceptions :exc:`StopIteration` non gérées." -#: ../Doc/reference/datamodel.rst:2587 +#: ../Doc/reference/datamodel.rst:2588 msgid "" "Coroutines also have the methods listed below, which are analogous to those " "of generators (see :ref:`generator-methods`). However, unlike generators, " @@ -4343,13 +4346,13 @@ msgstr "" "contraire des générateurs, vous ne pouvez pas itérer directement sur des " "coroutines." -#: ../Doc/reference/datamodel.rst:2591 +#: ../Doc/reference/datamodel.rst:2592 msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once." msgstr "" "Utiliser *await* plus d'une fois sur une coroutine lève une :exc:" "`RuntimeError`." -#: ../Doc/reference/datamodel.rst:2597 +#: ../Doc/reference/datamodel.rst:2598 msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " "is equivalent to advancing the iterator returned by :meth:`__await__`. If " @@ -4366,7 +4369,7 @@ msgstr "" "est le même que lorsque vous itérez sur la valeur de retour de :meth:" "`__await__`, décrite ci-dessus." -#: ../Doc/reference/datamodel.rst:2607 +#: ../Doc/reference/datamodel.rst:2608 msgid "" "Raises the specified exception in the coroutine. This method delegates to " "the :meth:`~generator.throw` method of the iterator that caused the " @@ -4384,7 +4387,7 @@ msgstr "" "retour de :meth:`__await__`, décrite ci-dessus. Si l'exception n'est pas " "gérée par la coroutine, elle est propagée à l'appelant." -#: ../Doc/reference/datamodel.rst:2618 +#: ../Doc/reference/datamodel.rst:2619 msgid "" "Causes the coroutine to clean itself up and exit. If the coroutine is " "suspended, this method first delegates to the :meth:`~generator.close` " @@ -4401,7 +4404,7 @@ msgstr "" "la coroutine est marquée comme ayant terminé son exécution, même si elle n'a " "jamais démarré." -#: ../Doc/reference/datamodel.rst:2626 +#: ../Doc/reference/datamodel.rst:2627 msgid "" "Coroutine objects are automatically closed using the above process when they " "are about to be destroyed." @@ -4409,11 +4412,11 @@ msgstr "" "Les objets coroutines sont automatiquement fermés en utilisant le processus " "décrit au-dessus au moment où ils sont détruits." -#: ../Doc/reference/datamodel.rst:2632 +#: ../Doc/reference/datamodel.rst:2633 msgid "Asynchronous Iterators" msgstr "Itérateurs asynchrones" -#: ../Doc/reference/datamodel.rst:2634 +#: ../Doc/reference/datamodel.rst:2635 msgid "" "An *asynchronous iterator* can call asynchronous code in its ``__anext__`` " "method." @@ -4421,18 +4424,18 @@ msgstr "" "Un *itérateur asynchrone* peut appeler du code asynchrone dans sa méthode " "``__anext__``." -#: ../Doc/reference/datamodel.rst:2637 +#: ../Doc/reference/datamodel.rst:2638 msgid "" "Asynchronous iterators can be used in an :keyword:`async for` statement." msgstr "" "Les itérateurs asynchrones peuvent être utilisés dans des instructions :" "keyword:`async for`." -#: ../Doc/reference/datamodel.rst:2641 +#: ../Doc/reference/datamodel.rst:2642 msgid "Must return an *asynchronous iterator* object." msgstr "Doit renvoyer un objet *itérateur asynchrone*." -#: ../Doc/reference/datamodel.rst:2645 +#: ../Doc/reference/datamodel.rst:2646 msgid "" "Must return an *awaitable* resulting in a next value of the iterator. " "Should raise a :exc:`StopAsyncIteration` error when the iteration is over." @@ -4441,11 +4444,11 @@ msgstr "" "l'itérateur. Doit lever une :exc:`StopAsyncIteration` quand l'itération est " "terminée." -#: ../Doc/reference/datamodel.rst:2648 +#: ../Doc/reference/datamodel.rst:2649 msgid "An example of an asynchronous iterable object::" msgstr "Un exemple d'objet itérateur asynchrone ::" -#: ../Doc/reference/datamodel.rst:2665 +#: ../Doc/reference/datamodel.rst:2666 msgid "" "Prior to Python 3.7, ``__aiter__`` could return an *awaitable* that would " "resolve to an :term:`asynchronous iterator `." @@ -4454,7 +4457,7 @@ msgstr "" "résolvait potentiellement en un :term:`itérateur asynchrone `." -#: ../Doc/reference/datamodel.rst:2670 +#: ../Doc/reference/datamodel.rst:2671 msgid "" "Starting with Python 3.7, ``__aiter__`` must return an asynchronous iterator " "object. Returning anything else will result in a :exc:`TypeError` error." @@ -4462,11 +4465,11 @@ msgstr "" "À partir de Python 3.7, ``__aiter__`` doit renvoyer un objet itérateur " "asynchrone. Renvoyer autre chose entraine une erreur :exc:`TypeError`." -#: ../Doc/reference/datamodel.rst:2678 +#: ../Doc/reference/datamodel.rst:2679 msgid "Asynchronous Context Managers" msgstr "Gestionnaires de contexte asynchrones" -#: ../Doc/reference/datamodel.rst:2680 +#: ../Doc/reference/datamodel.rst:2681 msgid "" "An *asynchronous context manager* is a *context manager* that is able to " "suspend execution in its ``__aenter__`` and ``__aexit__`` methods." @@ -4475,7 +4478,7 @@ msgstr "" "qui est capable de suspendre son exécution dans ses méthodes ``__aenter__`` " "et ``__aexit__``." -#: ../Doc/reference/datamodel.rst:2683 +#: ../Doc/reference/datamodel.rst:2684 msgid "" "Asynchronous context managers can be used in an :keyword:`async with` " "statement." @@ -4483,7 +4486,7 @@ msgstr "" "Les gestionnaires de contexte asynchrones peuvent être utilisés dans des " "instructions :keyword:`async with`." -#: ../Doc/reference/datamodel.rst:2687 +#: ../Doc/reference/datamodel.rst:2688 msgid "" "This method is semantically similar to the :meth:`__enter__`, with only " "difference that it must return an *awaitable*." @@ -4491,7 +4494,7 @@ msgstr "" "Cette méthode est sémantiquement équivalente à :meth:`__enter__`, à la seule " "différence près qu'elle doit renvoyer un *awaitable*." -#: ../Doc/reference/datamodel.rst:2692 +#: ../Doc/reference/datamodel.rst:2693 msgid "" "This method is semantically similar to the :meth:`__exit__`, with only " "difference that it must return an *awaitable*." @@ -4499,15 +4502,15 @@ msgstr "" "Cette méthode est sémantiquement équivalente à :meth:`__exit__`, à la seule " "différence près qu'elle doit renvoyer un *awaitable*." -#: ../Doc/reference/datamodel.rst:2695 +#: ../Doc/reference/datamodel.rst:2696 msgid "An example of an asynchronous context manager class::" msgstr "Un exemple de classe de gestionnaire de contexte asynchrone ::" -#: ../Doc/reference/datamodel.rst:2708 +#: ../Doc/reference/datamodel.rst:2709 msgid "Footnotes" msgstr "Notes" -#: ../Doc/reference/datamodel.rst:2709 +#: ../Doc/reference/datamodel.rst:2710 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 " @@ -4518,7 +4521,7 @@ msgstr "" "car cela peut conduire à un comportement très étrange si ce n'est pas géré " "correctement." -#: ../Doc/reference/datamodel.rst:2713 +#: ../Doc/reference/datamodel.rst:2714 msgid "" "The :meth:`__hash__`, :meth:`__iter__`, :meth:`__reversed__`, and :meth:" "`__contains__` methods have special handling for this; others will still " @@ -4530,7 +4533,7 @@ msgstr "" "lèvent toujours :exc:`TypeError`, mais le font en considérant que ``None`` " "n'est pas un appelable." -#: ../Doc/reference/datamodel.rst:2718 +#: ../Doc/reference/datamodel.rst:2719 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 " @@ -4542,7 +4545,7 @@ msgstr "" "``None`` à la méthode si vous voulez un repli vers la méthode symétrique de " "l'opérande de droite -- cela aurait pour effet de *bloquer* un tel repli." -#: ../Doc/reference/datamodel.rst:2724 +#: ../Doc/reference/datamodel.rst:2725 msgid "" "For operands of the same type, it is assumed that if the non-reflected " "method (such as :meth:`__add__`) fails the operation is not supported, which " diff --git a/sphinx.po b/sphinx.po index 82393ad8a..55a4b52f7 100644 --- a/sphinx.po +++ b/sphinx.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-12-14 15:01+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -222,8 +222,8 @@ msgid "Python 3.7 (stable)" msgstr "Python 3.7 (stable)" #: ../Doc/tools/templates/indexsidebar.html:7 -msgid "Python 3.6 (stable)" -msgstr "Python 3.6 (stable)" +msgid "Python 3.6 (security-fixes)" +msgstr "Python 3.6 (correctifs de sécurité)" #: ../Doc/tools/templates/indexsidebar.html:8 msgid "Python 3.5 (security-fixes)" @@ -292,5 +292,8 @@ msgid "" msgstr "" "Créé via Sphinx %(sphinx_version)s." +#~ msgid "Python 3.6 (stable)" +#~ msgstr "Python 3.6 (stable)" + #~ msgid "Python 3.7 (pre-release)" #~ msgstr "Python 3.7 (pré-lancement)" diff --git a/using/windows.po b/using/windows.po index a60e98c22..2f5620e87 100644 --- a/using/windows.po +++ b/using/windows.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-02-27 10:08+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr_FR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Jules Lasne \n" "X-Generator: Poedit 2.2.1\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Poedit-SourceCharset: UTF-8\n" diff --git a/whatsnew/3.6.po b/whatsnew/3.6.po index 91f506d62..bd1069fb7 100644 --- a/whatsnew/3.6.po +++ b/whatsnew/3.6.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2018-10-13 17:48+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -3043,11 +3043,24 @@ msgid "" "Python 3.8." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2320 +#: ../Doc/whatsnew/3.6.rst:2319 +msgid "" +"With the introduction of :exc:`ModuleNotFoundError`, import system consumers " +"may start expecting import system replacements to raise that more specific " +"exception when appropriate, rather than the less-specific :exc:" +"`ImportError`. To provide future compatibility with such consumers, " +"implementors of alternative import systems that completely replace :func:" +"`__import__` will need to update their implementations to raise the new " +"subclass when a module can't be found at all. Implementors of compliant " +"plugins to the default import system shouldn't need to make any changes, as " +"the default import system will raise the new subclass when appropriate." +msgstr "" + +#: ../Doc/whatsnew/3.6.rst:2331 msgid "Changes in the C API" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2322 +#: ../Doc/whatsnew/3.6.rst:2333 msgid "" "The :c:func:`PyMem_Malloc` allocator family now uses the :ref:`pymalloc " "allocator ` rather than the system :c:func:`malloc`. Applications " @@ -3056,29 +3069,29 @@ msgid "" "usage of memory allocators in your application. See :issue:`26249`." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2328 +#: ../Doc/whatsnew/3.6.rst:2339 msgid "" ":c:func:`Py_Exit` (and the main interpreter) now override the exit status " "with 120 if flushing buffered data failed. See :issue:`5319`." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2333 +#: ../Doc/whatsnew/3.6.rst:2344 msgid "CPython bytecode changes" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2335 +#: ../Doc/whatsnew/3.6.rst:2346 msgid "" "There have been several major changes to the :term:`bytecode` in Python 3.6." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2337 +#: ../Doc/whatsnew/3.6.rst:2348 msgid "" "The Python interpreter now uses a 16-bit wordcode instead of bytecode. " "(Contributed by Demur Rumed with input and reviews from Serhiy Storchaka and " "Victor Stinner in :issue:`26647` and :issue:`28050`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2341 +#: ../Doc/whatsnew/3.6.rst:2352 msgid "" "The new :opcode:`FORMAT_VALUE` and :opcode:`BUILD_STRING` opcodes as part of " "the :ref:`formatted string literal ` implementation. " @@ -3086,14 +3099,14 @@ msgid "" "`27078`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2346 +#: ../Doc/whatsnew/3.6.rst:2357 msgid "" "The new :opcode:`BUILD_CONST_KEY_MAP` opcode to optimize the creation of " "dictionaries with constant keys. (Contributed by Serhiy Storchaka in :issue:" "`27140`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2350 +#: ../Doc/whatsnew/3.6.rst:2361 msgid "" "The function call opcodes have been heavily reworked for better performance " "and simpler implementation. The :opcode:`MAKE_FUNCTION`, :opcode:" @@ -3105,22 +3118,22 @@ msgid "" "issue:`27095`, and Serhiy Storchaka in :issue:`27213`, :issue:`28257`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2361 +#: ../Doc/whatsnew/3.6.rst:2372 msgid "" "The new :opcode:`SETUP_ANNOTATIONS` and :opcode:`STORE_ANNOTATION` opcodes " "have been added to support the new :term:`variable annotation` syntax. " "(Contributed by Ivan Levkivskyi in :issue:`27985`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2367 +#: ../Doc/whatsnew/3.6.rst:2378 msgid "Notable changes in Python 3.6.2" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2370 +#: ../Doc/whatsnew/3.6.rst:2381 msgid "New ``make regen-all`` build target" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2372 +#: ../Doc/whatsnew/3.6.rst:2383 msgid "" "To simplify cross-compilation, and to ensure that CPython can reliably be " "compiled without requiring an existing version of Python to already be " @@ -3128,43 +3141,43 @@ msgid "" "recompile generated files based on file modification times." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2377 +#: ../Doc/whatsnew/3.6.rst:2388 msgid "" "Instead, a new ``make regen-all`` command has been added to force " "regeneration of these files when desired (e.g. after an initial version of " "Python has already been built based on the pregenerated versions)." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2381 +#: ../Doc/whatsnew/3.6.rst:2392 msgid "" "More selective regeneration targets are also defined - see :source:`Makefile." "pre.in` for details." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2384 ../Doc/whatsnew/3.6.rst:2397 +#: ../Doc/whatsnew/3.6.rst:2395 ../Doc/whatsnew/3.6.rst:2408 msgid "(Contributed by Victor Stinner in :issue:`23404`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2390 +#: ../Doc/whatsnew/3.6.rst:2401 msgid "Removal of ``make touch`` build target" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2392 +#: ../Doc/whatsnew/3.6.rst:2403 msgid "" "The ``make touch`` build target previously used to request implicit " "regeneration of generated files by updating their modification times has " "been removed." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2395 +#: ../Doc/whatsnew/3.6.rst:2406 msgid "It has been replaced by the new ``make regen-all`` target." msgstr "" -#: ../Doc/whatsnew/3.6.rst:2403 +#: ../Doc/whatsnew/3.6.rst:2414 msgid "Notable changes in Python 3.6.4" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2405 +#: ../Doc/whatsnew/3.6.rst:2416 msgid "" "The ``PyExc_RecursionErrorInst`` singleton that was part of the public API " "has been removed as its members being never cleared may cause a segfault " @@ -3172,22 +3185,22 @@ msgid "" "issue:`22898` and :issue:`30697`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2412 +#: ../Doc/whatsnew/3.6.rst:2423 msgid "Notable changes in Python 3.6.5" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2414 +#: ../Doc/whatsnew/3.6.rst:2425 msgid "" "The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE`` " "locale to the ``LC_NUMERIC`` locale in some cases. (Contributed by Victor " "Stinner in :issue:`31900`.)" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2419 +#: ../Doc/whatsnew/3.6.rst:2430 msgid "Notable changes in Python 3.6.7" msgstr "" -#: ../Doc/whatsnew/3.6.rst:2421 +#: ../Doc/whatsnew/3.6.rst:2432 msgid "" "In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token " "when provided with input that does not have a trailing new line. This " From fa40a1797d9bd213601966c2fe62f08e0ef39e4d Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 20 Mar 2019 09:41:37 +0100 Subject: [PATCH 070/121] Merge from upstream/3.7 (#609) --- .travis.yml | 2 +- c-api/exceptions.po | 525 ++++++++++++------------ c-api/objbuffer.po | 6 +- faq/general.po | 100 ++--- faq/programming.po | 440 ++++++++++---------- howto/unicode.po | 855 +++++++++++++++++++++------------------ library/collections.po | 122 +++--- library/compileall.po | 4 +- library/datetime.po | 791 ++++++++++++++++++------------------ library/functions.po | 366 +++++++++-------- library/inspect.po | 287 ++++++------- library/ssl.po | 304 +++++++------- library/stdtypes.po | 9 +- library/subprocess.po | 6 +- library/time.po | 4 +- library/timeit.po | 4 +- library/typing.po | 4 +- library/unittest.mock.po | 5 +- library/urllib.parse.po | 284 ++++++------- 19 files changed, 2147 insertions(+), 1971 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5d789791..21371c0f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ install: script: - powrap --check --quiet **/*.po - pospell -p dict -l fr_FR **/*.po - - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=902196d867 + - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=ef10f886ae diff --git a/c-api/exceptions.po b/c-api/exceptions.po index 8c862d879..c71dc0981 100644 --- a/c-api/exceptions.po +++ b/c-api/exceptions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2018-10-04 12:24+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -75,22 +75,29 @@ msgstr "" #: ../Doc/c-api/exceptions.rst:55 msgid "" "Print a standard traceback to ``sys.stderr`` and clear the error indicator. " -"Call this function only when the error indicator is set. (Otherwise it will " -"cause a fatal error!)" +"**Unless** the error is a ``SystemExit``. In that case the no traceback is " +"printed and Python process will exit with the error code specified by the " +"``SystemExit`` instance." msgstr "" -#: ../Doc/c-api/exceptions.rst:59 +#: ../Doc/c-api/exceptions.rst:60 +msgid "" +"Call this function **only** when the error indicator is set. Otherwise it " +"will cause a fatal error!" +msgstr "" + +#: ../Doc/c-api/exceptions.rst:63 msgid "" "If *set_sys_last_vars* is nonzero, the variables :data:`sys.last_type`, :" "data:`sys.last_value` and :data:`sys.last_traceback` will be set to the " "type, value and traceback of the printed exception, respectively." msgstr "" -#: ../Doc/c-api/exceptions.rst:66 +#: ../Doc/c-api/exceptions.rst:70 msgid "Alias for ``PyErr_PrintEx(1)``." msgstr "" -#: ../Doc/c-api/exceptions.rst:71 +#: ../Doc/c-api/exceptions.rst:75 msgid "" "This utility function prints a warning message to ``sys.stderr`` when an " "exception has been set but it is impossible for the interpreter to actually " @@ -98,25 +105,25 @@ msgid "" "an :meth:`__del__` method." msgstr "" -#: ../Doc/c-api/exceptions.rst:76 +#: ../Doc/c-api/exceptions.rst:80 msgid "" "The function is called with a single argument *obj* that identifies the " "context in which the unraisable exception occurred. If possible, the repr of " "*obj* will be printed in the warning message." msgstr "" -#: ../Doc/c-api/exceptions.rst:82 +#: ../Doc/c-api/exceptions.rst:86 msgid "Raising exceptions" msgstr "Lever des exceptions" -#: ../Doc/c-api/exceptions.rst:84 +#: ../Doc/c-api/exceptions.rst:88 msgid "" "These functions help you set the current thread's error indicator. For " "convenience, some of these functions will always return a NULL pointer for " "use in a ``return`` statement." msgstr "" -#: ../Doc/c-api/exceptions.rst:91 +#: ../Doc/c-api/exceptions.rst:95 msgid "" "This is the most common way to set the error indicator. The first argument " "specifies the exception type; it is normally one of the standard exceptions, " @@ -125,13 +132,13 @@ msgid "" "``'utf-8``'." msgstr "" -#: ../Doc/c-api/exceptions.rst:99 +#: ../Doc/c-api/exceptions.rst:103 msgid "" "This function is similar to :c:func:`PyErr_SetString` but lets you specify " "an arbitrary Python object for the \"value\" of the exception." msgstr "" -#: ../Doc/c-api/exceptions.rst:105 +#: ../Doc/c-api/exceptions.rst:109 msgid "" "This function sets the error indicator and returns *NULL*. *exception* " "should be a Python exception class. The *format* and subsequent parameters " @@ -139,31 +146,31 @@ msgid "" "c:func:`PyUnicode_FromFormat`. *format* is an ASCII-encoded string." msgstr "" -#: ../Doc/c-api/exceptions.rst:114 +#: ../Doc/c-api/exceptions.rst:118 msgid "" "Same as :c:func:`PyErr_Format`, but taking a :c:type:`va_list` argument " "rather than a variable number of arguments." msgstr "" -#: ../Doc/c-api/exceptions.rst:122 +#: ../Doc/c-api/exceptions.rst:126 msgid "This is a shorthand for ``PyErr_SetObject(type, Py_None)``." msgstr "" -#: ../Doc/c-api/exceptions.rst:127 +#: ../Doc/c-api/exceptions.rst:131 msgid "" "This is a shorthand for ``PyErr_SetString(PyExc_TypeError, message)``, where " "*message* indicates that a built-in operation was invoked with an illegal " "argument. It is mostly for internal use." msgstr "" -#: ../Doc/c-api/exceptions.rst:134 +#: ../Doc/c-api/exceptions.rst:138 msgid "" "This is a shorthand for ``PyErr_SetNone(PyExc_MemoryError)``; it returns " "*NULL* so an object allocation function can write ``return PyErr_NoMemory();" "`` when it runs out of memory." msgstr "" -#: ../Doc/c-api/exceptions.rst:143 +#: ../Doc/c-api/exceptions.rst:147 msgid "" "This is a convenience function to raise an exception when a C library " "function has returned an error and set the C variable :c:data:`errno`. It " @@ -177,7 +184,7 @@ msgid "" "``return PyErr_SetFromErrno(type);`` when the system call returns an error." msgstr "" -#: ../Doc/c-api/exceptions.rst:157 +#: ../Doc/c-api/exceptions.rst:161 msgid "" "Similar to :c:func:`PyErr_SetFromErrno`, with the additional behavior that " "if *filenameObject* is not *NULL*, it is passed to the constructor of *type* " @@ -185,21 +192,21 @@ msgid "" "to define the :attr:`filename` attribute of the exception instance." msgstr "" -#: ../Doc/c-api/exceptions.rst:166 +#: ../Doc/c-api/exceptions.rst:170 msgid "" "Similar to :c:func:`PyErr_SetFromErrnoWithFilenameObject`, but takes a " "second filename object, for raising errors when a function that takes two " "filenames fails." msgstr "" -#: ../Doc/c-api/exceptions.rst:175 +#: ../Doc/c-api/exceptions.rst:179 msgid "" "Similar to :c:func:`PyErr_SetFromErrnoWithFilenameObject`, but the filename " "is given as a C string. *filename* is decoded from the filesystem encoding " "(:func:`os.fsdecode`)." msgstr "" -#: ../Doc/c-api/exceptions.rst:182 +#: ../Doc/c-api/exceptions.rst:186 msgid "" "This is a convenience function to raise :exc:`WindowsError`. If called with " "*ierr* of :c:data:`0`, the error code returned by a call to :c:func:" @@ -212,44 +219,44 @@ msgid "" "returns *NULL*." msgstr "" -#: ../Doc/c-api/exceptions.rst:191 ../Doc/c-api/exceptions.rst:199 -#: ../Doc/c-api/exceptions.rst:208 ../Doc/c-api/exceptions.rst:216 -#: ../Doc/c-api/exceptions.rst:225 ../Doc/c-api/exceptions.rst:234 +#: ../Doc/c-api/exceptions.rst:195 ../Doc/c-api/exceptions.rst:203 +#: ../Doc/c-api/exceptions.rst:212 ../Doc/c-api/exceptions.rst:220 +#: ../Doc/c-api/exceptions.rst:229 ../Doc/c-api/exceptions.rst:238 msgid ":ref:`Availability `: Windows." msgstr ":ref:`Disponibilité ` : Windows." -#: ../Doc/c-api/exceptions.rst:196 +#: ../Doc/c-api/exceptions.rst:200 msgid "" "Similar to :c:func:`PyErr_SetFromWindowsErr`, with an additional parameter " "specifying the exception type to be raised." msgstr "" -#: ../Doc/c-api/exceptions.rst:204 +#: ../Doc/c-api/exceptions.rst:208 msgid "" "Similar to :c:func:`PyErr_SetFromWindowsErrWithFilenameObject`, but the " "filename is given as a C string. *filename* is decoded from the filesystem " "encoding (:func:`os.fsdecode`)." msgstr "" -#: ../Doc/c-api/exceptions.rst:213 +#: ../Doc/c-api/exceptions.rst:217 msgid "" "Similar to :c:func:`PyErr_SetFromWindowsErrWithFilenameObject`, with an " "additional parameter specifying the exception type to be raised." msgstr "" -#: ../Doc/c-api/exceptions.rst:221 +#: ../Doc/c-api/exceptions.rst:225 msgid "" "Similar to :c:func:`PyErr_SetExcFromWindowsErrWithFilenameObject`, but " "accepts a second filename object." msgstr "" -#: ../Doc/c-api/exceptions.rst:231 +#: ../Doc/c-api/exceptions.rst:235 msgid "" "Similar to :c:func:`PyErr_SetFromWindowsErrWithFilename`, with an additional " "parameter specifying the exception type to be raised." msgstr "" -#: ../Doc/c-api/exceptions.rst:239 +#: ../Doc/c-api/exceptions.rst:243 msgid "" "This is a convenience function to raise :exc:`ImportError`. *msg* will be " "set as the exception's message string. *name* and *path*, both of which can " @@ -257,7 +264,7 @@ msgid "" "``path`` attributes." msgstr "" -#: ../Doc/c-api/exceptions.rst:249 +#: ../Doc/c-api/exceptions.rst:253 msgid "" "Set file, line, and offset information for the current exception. If the " "current exception is not a :exc:`SyntaxError`, then it sets additional " @@ -265,19 +272,19 @@ msgid "" "is a :exc:`SyntaxError`." msgstr "" -#: ../Doc/c-api/exceptions.rst:259 +#: ../Doc/c-api/exceptions.rst:263 msgid "" "Like :c:func:`PyErr_SyntaxLocationObject`, but *filename* is a byte string " "decoded from the filesystem encoding (:func:`os.fsdecode`)." msgstr "" -#: ../Doc/c-api/exceptions.rst:267 +#: ../Doc/c-api/exceptions.rst:271 msgid "" "Like :c:func:`PyErr_SyntaxLocationEx`, but the col_offset parameter is " "omitted." msgstr "" -#: ../Doc/c-api/exceptions.rst:273 +#: ../Doc/c-api/exceptions.rst:277 msgid "" "This is a shorthand for ``PyErr_SetString(PyExc_SystemError, message)``, " "where *message* indicates that an internal operation (e.g. a Python/C API " @@ -285,11 +292,11 @@ msgid "" "use." msgstr "" -#: ../Doc/c-api/exceptions.rst:280 +#: ../Doc/c-api/exceptions.rst:284 msgid "Issuing warnings" msgstr "" -#: ../Doc/c-api/exceptions.rst:282 +#: ../Doc/c-api/exceptions.rst:286 msgid "" "Use these functions to issue warnings from C code. They mirror similar " "functions exported by the Python :mod:`warnings` module. They normally " @@ -305,7 +312,7 @@ msgid "" "return an error value)." msgstr "" -#: ../Doc/c-api/exceptions.rst:297 +#: ../Doc/c-api/exceptions.rst:301 msgid "" "Issue a warning message. The *category* argument is a warning category (see " "below) or *NULL*; the *message* argument is a UTF-8 encoded string. " @@ -315,7 +322,7 @@ msgid "" "`PyErr_WarnEx`, 2 is the function above that, and so forth." msgstr "" -#: ../Doc/c-api/exceptions.rst:304 +#: ../Doc/c-api/exceptions.rst:308 msgid "" "Warning categories must be subclasses of :c:data:`PyExc_Warning`; :c:data:" "`PyExc_Warning` is a subclass of :c:data:`PyExc_Exception`; the default " @@ -324,20 +331,20 @@ msgid "" "enumerated at :ref:`standardwarningcategories`." msgstr "" -#: ../Doc/c-api/exceptions.rst:310 +#: ../Doc/c-api/exceptions.rst:314 msgid "" "For information about warning control, see the documentation for the :mod:" "`warnings` module and the :option:`-W` option in the command line " "documentation. There is no C API for warning control." msgstr "" -#: ../Doc/c-api/exceptions.rst:316 +#: ../Doc/c-api/exceptions.rst:320 msgid "" "Much like :c:func:`PyErr_SetImportError` but this function allows for " "specifying a subclass of :exc:`ImportError` to raise." msgstr "" -#: ../Doc/c-api/exceptions.rst:324 +#: ../Doc/c-api/exceptions.rst:328 msgid "" "Issue a warning message with explicit control over all warning attributes. " "This is a straightforward wrapper around the Python function :func:`warnings." @@ -345,31 +352,31 @@ msgid "" "arguments may be set to *NULL* to get the default effect described there." msgstr "" -#: ../Doc/c-api/exceptions.rst:335 +#: ../Doc/c-api/exceptions.rst:339 msgid "" "Similar to :c:func:`PyErr_WarnExplicitObject` except that *message* and " "*module* are UTF-8 encoded strings, and *filename* is decoded from the " "filesystem encoding (:func:`os.fsdecode`)." msgstr "" -#: ../Doc/c-api/exceptions.rst:342 +#: ../Doc/c-api/exceptions.rst:346 msgid "" "Function similar to :c:func:`PyErr_WarnEx`, but use :c:func:" "`PyUnicode_FromFormat` to format the warning message. *format* is an ASCII-" "encoded string." msgstr "" -#: ../Doc/c-api/exceptions.rst:351 +#: ../Doc/c-api/exceptions.rst:355 msgid "" "Function similar to :c:func:`PyErr_WarnFormat`, but *category* is :exc:" "`ResourceWarning` and pass *source* to :func:`warnings.WarningMessage`." msgstr "" -#: ../Doc/c-api/exceptions.rst:358 +#: ../Doc/c-api/exceptions.rst:362 msgid "Querying the error indicator" msgstr "" -#: ../Doc/c-api/exceptions.rst:362 +#: ../Doc/c-api/exceptions.rst:366 msgid "" "Test whether the error indicator is set. If set, return the exception " "*type* (the first argument to the last call to one of the :c:func:`PyErr_Set" @@ -378,7 +385,7 @@ msgid "" "func:`Py_DECREF` it." msgstr "" -#: ../Doc/c-api/exceptions.rst:370 +#: ../Doc/c-api/exceptions.rst:374 msgid "" "Do not compare the return value to a specific exception; use :c:func:" "`PyErr_ExceptionMatches` instead, shown below. (The comparison could easily " @@ -386,14 +393,14 @@ msgid "" "of a class exception, or it may be a subclass of the expected exception.)" msgstr "" -#: ../Doc/c-api/exceptions.rst:378 +#: ../Doc/c-api/exceptions.rst:382 msgid "" "Equivalent to ``PyErr_GivenExceptionMatches(PyErr_Occurred(), exc)``. This " "should only be called when an exception is actually set; a memory access " "violation will occur if no exception has been raised." msgstr "" -#: ../Doc/c-api/exceptions.rst:385 +#: ../Doc/c-api/exceptions.rst:389 msgid "" "Return true if the *given* exception matches the exception type in *exc*. " "If *exc* is a class object, this also returns true when *given* is an " @@ -401,7 +408,7 @@ msgid "" "tuple (and recursively in subtuples) are searched for a match." msgstr "" -#: ../Doc/c-api/exceptions.rst:393 +#: ../Doc/c-api/exceptions.rst:397 msgid "" "Retrieve the error indicator into three variables whose addresses are " "passed. If the error indicator is not set, set all three variables to " @@ -410,14 +417,14 @@ msgid "" "the type object is not." msgstr "" -#: ../Doc/c-api/exceptions.rst:400 +#: ../Doc/c-api/exceptions.rst:404 msgid "" "This function is normally only used by code that needs to catch exceptions " "or by code that needs to save and restore the error indicator temporarily, e." "g.::" msgstr "" -#: ../Doc/c-api/exceptions.rst:415 +#: ../Doc/c-api/exceptions.rst:419 msgid "" "Set the error indicator from the three objects. If the error indicator is " "already set, it is cleared first. If the objects are *NULL*, the error " @@ -430,14 +437,14 @@ msgid "" "function. I warned you.)" msgstr "" -#: ../Doc/c-api/exceptions.rst:427 +#: ../Doc/c-api/exceptions.rst:431 msgid "" "This function is normally only used by code that needs to save and restore " "the error indicator temporarily. Use :c:func:`PyErr_Fetch` to save the " "current error indicator." msgstr "" -#: ../Doc/c-api/exceptions.rst:434 +#: ../Doc/c-api/exceptions.rst:438 msgid "" "Under certain circumstances, the values returned by :c:func:`PyErr_Fetch` " "below can be \"unnormalized\", meaning that ``*exc`` is a class object but " @@ -447,14 +454,14 @@ msgid "" "improve performance." msgstr "" -#: ../Doc/c-api/exceptions.rst:442 +#: ../Doc/c-api/exceptions.rst:446 msgid "" "This function *does not* implicitly set the ``__traceback__`` attribute on " "the exception value. If setting the traceback appropriately is desired, the " "following additional snippet is needed::" msgstr "" -#: ../Doc/c-api/exceptions.rst:453 +#: ../Doc/c-api/exceptions.rst:457 msgid "" "Retrieve the exception info, as known from ``sys.exc_info()``. This refers " "to an exception that was *already caught*, not to an exception that was " @@ -462,7 +469,7 @@ msgid "" "may be *NULL*. Does not modify the exception info state." msgstr "" -#: ../Doc/c-api/exceptions.rst:460 +#: ../Doc/c-api/exceptions.rst:464 msgid "" "This function is not normally used by code that wants to handle exceptions. " "Rather, it can be used when code needs to save and restore the exception " @@ -470,7 +477,7 @@ msgid "" "exception state." msgstr "" -#: ../Doc/c-api/exceptions.rst:470 +#: ../Doc/c-api/exceptions.rst:474 msgid "" "Set the exception info, as known from ``sys.exc_info()``. This refers to an " "exception that was *already caught*, not to an exception that was freshly " @@ -479,7 +486,7 @@ msgid "" "about the three arguments, see :c:func:`PyErr_Restore`." msgstr "" -#: ../Doc/c-api/exceptions.rst:478 +#: ../Doc/c-api/exceptions.rst:482 msgid "" "This function is not normally used by code that wants to handle exceptions. " "Rather, it can be used when code needs to save and restore the exception " @@ -487,11 +494,11 @@ msgid "" "state." msgstr "" -#: ../Doc/c-api/exceptions.rst:487 +#: ../Doc/c-api/exceptions.rst:491 msgid "Signal Handling" msgstr "Traitement des signaux" -#: ../Doc/c-api/exceptions.rst:497 +#: ../Doc/c-api/exceptions.rst:501 msgid "" "This function interacts with Python's signal handling. It checks whether a " "signal has been sent to the processes and if so, invokes the corresponding " @@ -503,7 +510,7 @@ msgid "" "may not be cleared if it was previously set." msgstr "" -#: ../Doc/c-api/exceptions.rst:513 +#: ../Doc/c-api/exceptions.rst:517 msgid "" "This function simulates the effect of a :const:`SIGINT` signal arriving --- " "the next time :c:func:`PyErr_CheckSignals` is called, :exc:" @@ -511,14 +518,14 @@ msgid "" "interpreter lock." msgstr "" -#: ../Doc/c-api/exceptions.rst:523 +#: ../Doc/c-api/exceptions.rst:527 msgid "" "This utility function specifies a file descriptor to which the signal number " "is written as a single byte whenever a signal is received. *fd* must be non-" "blocking. It returns the previous such file descriptor." msgstr "" -#: ../Doc/c-api/exceptions.rst:527 +#: ../Doc/c-api/exceptions.rst:531 msgid "" "The value ``-1`` disables the feature; this is the initial state. This is " "equivalent to :func:`signal.set_wakeup_fd` in Python, but without any error " @@ -526,15 +533,15 @@ msgid "" "be called from the main thread." msgstr "" -#: ../Doc/c-api/exceptions.rst:532 +#: ../Doc/c-api/exceptions.rst:536 msgid "On Windows, the function now also supports socket handles." msgstr "" -#: ../Doc/c-api/exceptions.rst:537 +#: ../Doc/c-api/exceptions.rst:541 msgid "Exception Classes" msgstr "" -#: ../Doc/c-api/exceptions.rst:541 +#: ../Doc/c-api/exceptions.rst:545 msgid "" "This utility function creates and returns a new exception class. The *name* " "argument must be the name of the new exception, a C string of the form " @@ -543,7 +550,7 @@ msgid "" "as :c:data:`PyExc_Exception`)." msgstr "" -#: ../Doc/c-api/exceptions.rst:547 +#: ../Doc/c-api/exceptions.rst:551 msgid "" "The :attr:`__module__` attribute of the new class is set to the first part " "(up to the last dot) of the *name* argument, and the class name is set to " @@ -553,31 +560,31 @@ msgid "" "variables and methods." msgstr "" -#: ../Doc/c-api/exceptions.rst:556 +#: ../Doc/c-api/exceptions.rst:560 msgid "" "Same as :c:func:`PyErr_NewException`, except that the new exception class " "can easily be given a docstring: If *doc* is non-*NULL*, it will be used as " "the docstring for the exception class." msgstr "" -#: ../Doc/c-api/exceptions.rst:564 +#: ../Doc/c-api/exceptions.rst:568 msgid "Exception Objects" msgstr "Objets exception" -#: ../Doc/c-api/exceptions.rst:568 +#: ../Doc/c-api/exceptions.rst:572 msgid "" "Return the traceback associated with the exception as a new reference, as " "accessible from Python through :attr:`__traceback__`. If there is no " "traceback associated, this returns *NULL*." msgstr "" -#: ../Doc/c-api/exceptions.rst:575 +#: ../Doc/c-api/exceptions.rst:579 msgid "" "Set the traceback associated with the exception to *tb*. Use ``Py_None`` to " "clear it." msgstr "" -#: ../Doc/c-api/exceptions.rst:581 +#: ../Doc/c-api/exceptions.rst:585 msgid "" "Return the context (another exception instance during whose handling *ex* " "was raised) associated with the exception as a new reference, as accessible " @@ -585,111 +592,111 @@ msgid "" "this returns *NULL*." msgstr "" -#: ../Doc/c-api/exceptions.rst:589 +#: ../Doc/c-api/exceptions.rst:593 msgid "" "Set the context associated with the exception to *ctx*. Use *NULL* to clear " "it. There is no type check to make sure that *ctx* is an exception " "instance. This steals a reference to *ctx*." msgstr "" -#: ../Doc/c-api/exceptions.rst:596 +#: ../Doc/c-api/exceptions.rst:600 msgid "" "Return the cause (either an exception instance, or :const:`None`, set by " "``raise ... from ...``) associated with the exception as a new reference, as " "accessible from Python through :attr:`__cause__`." msgstr "" -#: ../Doc/c-api/exceptions.rst:603 +#: ../Doc/c-api/exceptions.rst:607 msgid "" "Set the cause associated with the exception to *cause*. Use *NULL* to clear " "it. There is no type check to make sure that *cause* is either an exception " "instance or :const:`None`. This steals a reference to *cause*." msgstr "" -#: ../Doc/c-api/exceptions.rst:607 +#: ../Doc/c-api/exceptions.rst:611 msgid "" ":attr:`__suppress_context__` is implicitly set to ``True`` by this function." msgstr "" -#: ../Doc/c-api/exceptions.rst:613 +#: ../Doc/c-api/exceptions.rst:617 msgid "Unicode Exception Objects" msgstr "Objets exception Unicode" -#: ../Doc/c-api/exceptions.rst:615 +#: ../Doc/c-api/exceptions.rst:619 msgid "" "The following functions are used to create and modify Unicode exceptions " "from C." msgstr "" -#: ../Doc/c-api/exceptions.rst:619 +#: ../Doc/c-api/exceptions.rst:623 msgid "" "Create a :class:`UnicodeDecodeError` object with the attributes *encoding*, " "*object*, *length*, *start*, *end* and *reason*. *encoding* and *reason* are " "UTF-8 encoded strings." msgstr "" -#: ../Doc/c-api/exceptions.rst:625 +#: ../Doc/c-api/exceptions.rst:629 msgid "" "Create a :class:`UnicodeEncodeError` object with the attributes *encoding*, " "*object*, *length*, *start*, *end* and *reason*. *encoding* and *reason* are " "UTF-8 encoded strings." msgstr "" -#: ../Doc/c-api/exceptions.rst:631 +#: ../Doc/c-api/exceptions.rst:635 msgid "" "Create a :class:`UnicodeTranslateError` object with the attributes *object*, " "*length*, *start*, *end* and *reason*. *reason* is a UTF-8 encoded string." msgstr "" -#: ../Doc/c-api/exceptions.rst:637 +#: ../Doc/c-api/exceptions.rst:641 msgid "Return the *encoding* attribute of the given exception object." msgstr "" -#: ../Doc/c-api/exceptions.rst:643 +#: ../Doc/c-api/exceptions.rst:647 msgid "Return the *object* attribute of the given exception object." msgstr "" -#: ../Doc/c-api/exceptions.rst:649 +#: ../Doc/c-api/exceptions.rst:653 msgid "" "Get the *start* attribute of the given exception object and place it into *" "\\*start*. *start* must not be *NULL*. Return ``0`` on success, ``-1`` on " "failure." msgstr "" -#: ../Doc/c-api/exceptions.rst:657 +#: ../Doc/c-api/exceptions.rst:661 msgid "" "Set the *start* attribute of the given exception object to *start*. Return " "``0`` on success, ``-1`` on failure." msgstr "" -#: ../Doc/c-api/exceptions.rst:664 +#: ../Doc/c-api/exceptions.rst:668 msgid "" "Get the *end* attribute of the given exception object and place it into *" "\\*end*. *end* must not be *NULL*. Return ``0`` on success, ``-1`` on " "failure." msgstr "" -#: ../Doc/c-api/exceptions.rst:672 +#: ../Doc/c-api/exceptions.rst:676 msgid "" "Set the *end* attribute of the given exception object to *end*. Return " "``0`` on success, ``-1`` on failure." msgstr "" -#: ../Doc/c-api/exceptions.rst:679 +#: ../Doc/c-api/exceptions.rst:683 msgid "Return the *reason* attribute of the given exception object." msgstr "" -#: ../Doc/c-api/exceptions.rst:685 +#: ../Doc/c-api/exceptions.rst:689 msgid "" "Set the *reason* attribute of the given exception object to *reason*. " "Return ``0`` on success, ``-1`` on failure." msgstr "" -#: ../Doc/c-api/exceptions.rst:690 +#: ../Doc/c-api/exceptions.rst:694 msgid "Recursion Control" msgstr "Contrôle de la récursion" -#: ../Doc/c-api/exceptions.rst:692 +#: ../Doc/c-api/exceptions.rst:696 msgid "" "These two functions provide a way to perform safe recursive calls at the C " "level, both in the core and in extension modules. They are needed if the " @@ -697,38 +704,38 @@ msgid "" "recursion depth automatically)." msgstr "" -#: ../Doc/c-api/exceptions.rst:699 +#: ../Doc/c-api/exceptions.rst:703 msgid "Marks a point where a recursive C-level call is about to be performed." msgstr "" -#: ../Doc/c-api/exceptions.rst:701 +#: ../Doc/c-api/exceptions.rst:705 msgid "" "If :const:`USE_STACKCHECK` is defined, this function checks if the OS stack " "overflowed using :c:func:`PyOS_CheckStack`. In this is the case, it sets a :" "exc:`MemoryError` and returns a nonzero value." msgstr "" -#: ../Doc/c-api/exceptions.rst:705 +#: ../Doc/c-api/exceptions.rst:709 msgid "" "The function then checks if the recursion limit is reached. If this is the " "case, a :exc:`RecursionError` is set and a nonzero value is returned. " "Otherwise, zero is returned." msgstr "" -#: ../Doc/c-api/exceptions.rst:709 +#: ../Doc/c-api/exceptions.rst:713 msgid "" "*where* should be a string such as ``\" in instance check\"`` to be " "concatenated to the :exc:`RecursionError` message caused by the recursion " "depth limit." msgstr "" -#: ../Doc/c-api/exceptions.rst:715 +#: ../Doc/c-api/exceptions.rst:719 msgid "" "Ends a :c:func:`Py_EnterRecursiveCall`. Must be called once for each " "*successful* invocation of :c:func:`Py_EnterRecursiveCall`." msgstr "" -#: ../Doc/c-api/exceptions.rst:718 +#: ../Doc/c-api/exceptions.rst:722 msgid "" "Properly implementing :c:member:`~PyTypeObject.tp_repr` for container types " "requires special recursion handling. In addition to protecting the stack, :" @@ -737,13 +744,13 @@ msgid "" "Effectively, these are the C equivalent to :func:`reprlib.recursive_repr`." msgstr "" -#: ../Doc/c-api/exceptions.rst:726 +#: ../Doc/c-api/exceptions.rst:730 msgid "" "Called at the beginning of the :c:member:`~PyTypeObject.tp_repr` " "implementation to detect cycles." msgstr "" -#: ../Doc/c-api/exceptions.rst:729 +#: ../Doc/c-api/exceptions.rst:733 msgid "" "If the object has already been processed, the function returns a positive " "integer. In that case the :c:member:`~PyTypeObject.tp_repr` implementation " @@ -751,30 +758,30 @@ msgid "" "`dict` objects return ``{...}`` and :class:`list` objects return ``[...]``." msgstr "" -#: ../Doc/c-api/exceptions.rst:735 +#: ../Doc/c-api/exceptions.rst:739 msgid "" "The function will return a negative integer if the recursion limit is " "reached. In that case the :c:member:`~PyTypeObject.tp_repr` implementation " "should typically return ``NULL``." msgstr "" -#: ../Doc/c-api/exceptions.rst:739 +#: ../Doc/c-api/exceptions.rst:743 msgid "" "Otherwise, the function returns zero and the :c:member:`~PyTypeObject." "tp_repr` implementation can continue normally." msgstr "" -#: ../Doc/c-api/exceptions.rst:744 +#: ../Doc/c-api/exceptions.rst:748 msgid "" "Ends a :c:func:`Py_ReprEnter`. Must be called once for each invocation of :" "c:func:`Py_ReprEnter` that returns zero." msgstr "" -#: ../Doc/c-api/exceptions.rst:751 +#: ../Doc/c-api/exceptions.rst:755 msgid "Standard Exceptions" msgstr "Exceptions standards" -#: ../Doc/c-api/exceptions.rst:753 +#: ../Doc/c-api/exceptions.rst:757 msgid "" "All standard Python exceptions are available as global variables whose names " "are ``PyExc_`` followed by the Python exception name. These have the type :" @@ -782,455 +789,455 @@ msgid "" "are all the variables:" msgstr "" -#: ../Doc/c-api/exceptions.rst:814 ../Doc/c-api/exceptions.rst:947 -#: ../Doc/c-api/exceptions.rst:995 +#: ../Doc/c-api/exceptions.rst:818 ../Doc/c-api/exceptions.rst:951 +#: ../Doc/c-api/exceptions.rst:999 msgid "C Name" msgstr "Nom C" -#: ../Doc/c-api/exceptions.rst:814 ../Doc/c-api/exceptions.rst:995 +#: ../Doc/c-api/exceptions.rst:818 ../Doc/c-api/exceptions.rst:999 msgid "Python Name" msgstr "Nom Python" -#: ../Doc/c-api/exceptions.rst:814 ../Doc/c-api/exceptions.rst:947 -#: ../Doc/c-api/exceptions.rst:995 +#: ../Doc/c-api/exceptions.rst:818 ../Doc/c-api/exceptions.rst:951 +#: ../Doc/c-api/exceptions.rst:999 msgid "Notes" msgstr "Notes" -#: ../Doc/c-api/exceptions.rst:816 +#: ../Doc/c-api/exceptions.rst:820 msgid ":c:data:`PyExc_BaseException`" msgstr ":c:data:`PyExc_BaseException`" -#: ../Doc/c-api/exceptions.rst:816 +#: ../Doc/c-api/exceptions.rst:820 msgid ":exc:`BaseException`" msgstr ":exc:`BaseException`" -#: ../Doc/c-api/exceptions.rst:816 ../Doc/c-api/exceptions.rst:818 -#: ../Doc/c-api/exceptions.rst:820 ../Doc/c-api/exceptions.rst:866 -#: ../Doc/c-api/exceptions.rst:878 ../Doc/c-api/exceptions.rst:997 +#: ../Doc/c-api/exceptions.rst:820 ../Doc/c-api/exceptions.rst:822 +#: ../Doc/c-api/exceptions.rst:824 ../Doc/c-api/exceptions.rst:870 +#: ../Doc/c-api/exceptions.rst:882 ../Doc/c-api/exceptions.rst:1001 msgid "\\(1)" msgstr "\\(1)" -#: ../Doc/c-api/exceptions.rst:818 +#: ../Doc/c-api/exceptions.rst:822 msgid ":c:data:`PyExc_Exception`" msgstr ":c:data:`PyExc_Exception`" -#: ../Doc/c-api/exceptions.rst:818 +#: ../Doc/c-api/exceptions.rst:822 msgid ":exc:`Exception`" msgstr ":exc:`Exception`" -#: ../Doc/c-api/exceptions.rst:820 +#: ../Doc/c-api/exceptions.rst:824 msgid ":c:data:`PyExc_ArithmeticError`" msgstr ":c:data:`PyExc_ArithmeticError`" -#: ../Doc/c-api/exceptions.rst:820 +#: ../Doc/c-api/exceptions.rst:824 msgid ":exc:`ArithmeticError`" msgstr ":exc:`ArithmeticError`" -#: ../Doc/c-api/exceptions.rst:822 +#: ../Doc/c-api/exceptions.rst:826 msgid ":c:data:`PyExc_AssertionError`" msgstr ":c:data:`PyExc_AssertionError`" -#: ../Doc/c-api/exceptions.rst:822 +#: ../Doc/c-api/exceptions.rst:826 msgid ":exc:`AssertionError`" msgstr ":exc:`AssertionError`" -#: ../Doc/c-api/exceptions.rst:824 +#: ../Doc/c-api/exceptions.rst:828 msgid ":c:data:`PyExc_AttributeError`" msgstr ":c:data:`PyExc_AttributeError`" -#: ../Doc/c-api/exceptions.rst:824 +#: ../Doc/c-api/exceptions.rst:828 msgid ":exc:`AttributeError`" msgstr ":exc:`AttributeError`" -#: ../Doc/c-api/exceptions.rst:826 +#: ../Doc/c-api/exceptions.rst:830 msgid ":c:data:`PyExc_BlockingIOError`" msgstr ":c:data:`PyExc_BlockingIOError`" -#: ../Doc/c-api/exceptions.rst:826 +#: ../Doc/c-api/exceptions.rst:830 msgid ":exc:`BlockingIOError`" msgstr ":exc:`BlockingIOError`" -#: ../Doc/c-api/exceptions.rst:828 +#: ../Doc/c-api/exceptions.rst:832 msgid ":c:data:`PyExc_BrokenPipeError`" msgstr ":c:data:`PyExc_BrokenPipeError`" -#: ../Doc/c-api/exceptions.rst:828 +#: ../Doc/c-api/exceptions.rst:832 msgid ":exc:`BrokenPipeError`" msgstr ":exc:`BrokenPipeError`" -#: ../Doc/c-api/exceptions.rst:830 +#: ../Doc/c-api/exceptions.rst:834 msgid ":c:data:`PyExc_BufferError`" msgstr ":c:data:`PyExc_BufferError`" -#: ../Doc/c-api/exceptions.rst:830 +#: ../Doc/c-api/exceptions.rst:834 msgid ":exc:`BufferError`" msgstr ":exc:`BufferError`" -#: ../Doc/c-api/exceptions.rst:832 +#: ../Doc/c-api/exceptions.rst:836 msgid ":c:data:`PyExc_ChildProcessError`" msgstr ":c:data:`PyExc_ChildProcessError`" -#: ../Doc/c-api/exceptions.rst:832 +#: ../Doc/c-api/exceptions.rst:836 msgid ":exc:`ChildProcessError`" msgstr ":exc:`ChildProcessError`" -#: ../Doc/c-api/exceptions.rst:834 +#: ../Doc/c-api/exceptions.rst:838 msgid ":c:data:`PyExc_ConnectionAbortedError`" msgstr ":c:data:`PyExc_ConnectionAbortedError`" -#: ../Doc/c-api/exceptions.rst:834 +#: ../Doc/c-api/exceptions.rst:838 msgid ":exc:`ConnectionAbortedError`" msgstr ":exc:`ConnectionAbortedError`" -#: ../Doc/c-api/exceptions.rst:836 +#: ../Doc/c-api/exceptions.rst:840 msgid ":c:data:`PyExc_ConnectionError`" msgstr ":c:data:`PyExc_ConnectionError`" -#: ../Doc/c-api/exceptions.rst:836 +#: ../Doc/c-api/exceptions.rst:840 msgid ":exc:`ConnectionError`" msgstr ":exc:`ConnectionError`" -#: ../Doc/c-api/exceptions.rst:838 +#: ../Doc/c-api/exceptions.rst:842 msgid ":c:data:`PyExc_ConnectionRefusedError`" msgstr ":c:data:`PyExc_ConnectionRefusedError`" -#: ../Doc/c-api/exceptions.rst:838 +#: ../Doc/c-api/exceptions.rst:842 msgid ":exc:`ConnectionRefusedError`" msgstr ":exc:`ConnectionRefusedError`" -#: ../Doc/c-api/exceptions.rst:840 +#: ../Doc/c-api/exceptions.rst:844 msgid ":c:data:`PyExc_ConnectionResetError`" msgstr ":c:data:`PyExc_ConnectionResetError`" -#: ../Doc/c-api/exceptions.rst:840 +#: ../Doc/c-api/exceptions.rst:844 msgid ":exc:`ConnectionResetError`" msgstr ":exc:`ConnectionResetError`" -#: ../Doc/c-api/exceptions.rst:842 +#: ../Doc/c-api/exceptions.rst:846 msgid ":c:data:`PyExc_EOFError`" msgstr ":c:data:`PyExc_EOFError`" -#: ../Doc/c-api/exceptions.rst:842 +#: ../Doc/c-api/exceptions.rst:846 msgid ":exc:`EOFError`" msgstr ":exc:`EOFError`" -#: ../Doc/c-api/exceptions.rst:844 +#: ../Doc/c-api/exceptions.rst:848 msgid ":c:data:`PyExc_FileExistsError`" msgstr ":c:data:`PyExc_FileExistsError`" -#: ../Doc/c-api/exceptions.rst:844 +#: ../Doc/c-api/exceptions.rst:848 msgid ":exc:`FileExistsError`" msgstr ":exc:`FileExistsError`" -#: ../Doc/c-api/exceptions.rst:846 +#: ../Doc/c-api/exceptions.rst:850 msgid ":c:data:`PyExc_FileNotFoundError`" msgstr ":c:data:`PyExc_FloatingPointError`" -#: ../Doc/c-api/exceptions.rst:846 +#: ../Doc/c-api/exceptions.rst:850 msgid ":exc:`FileNotFoundError`" msgstr ":exc:`FileNotFoundError`" -#: ../Doc/c-api/exceptions.rst:848 +#: ../Doc/c-api/exceptions.rst:852 msgid ":c:data:`PyExc_FloatingPointError`" msgstr ":c:data:`PyExc_FloatingPointError`" -#: ../Doc/c-api/exceptions.rst:848 +#: ../Doc/c-api/exceptions.rst:852 msgid ":exc:`FloatingPointError`" msgstr ":exc:`FloatingPointError`" -#: ../Doc/c-api/exceptions.rst:850 +#: ../Doc/c-api/exceptions.rst:854 msgid ":c:data:`PyExc_GeneratorExit`" msgstr ":c:data:`PyExc_GeneratorExit`" -#: ../Doc/c-api/exceptions.rst:850 +#: ../Doc/c-api/exceptions.rst:854 msgid ":exc:`GeneratorExit`" msgstr ":exc:`GeneratorExit`" -#: ../Doc/c-api/exceptions.rst:852 +#: ../Doc/c-api/exceptions.rst:856 msgid ":c:data:`PyExc_ImportError`" msgstr ":c:data:`PyExc_ImportError`" -#: ../Doc/c-api/exceptions.rst:852 +#: ../Doc/c-api/exceptions.rst:856 msgid ":exc:`ImportError`" msgstr ":exc:`ImportError`" -#: ../Doc/c-api/exceptions.rst:854 +#: ../Doc/c-api/exceptions.rst:858 msgid ":c:data:`PyExc_IndentationError`" msgstr ":c:data:`PyExc_IndentationError`" -#: ../Doc/c-api/exceptions.rst:854 +#: ../Doc/c-api/exceptions.rst:858 msgid ":exc:`IndentationError`" msgstr ":exc:`IndentationError`" -#: ../Doc/c-api/exceptions.rst:856 +#: ../Doc/c-api/exceptions.rst:860 msgid ":c:data:`PyExc_IndexError`" msgstr ":c:data:`PyExc_IndexError`" -#: ../Doc/c-api/exceptions.rst:856 +#: ../Doc/c-api/exceptions.rst:860 msgid ":exc:`IndexError`" msgstr ":exc:`IndexError`" -#: ../Doc/c-api/exceptions.rst:858 +#: ../Doc/c-api/exceptions.rst:862 msgid ":c:data:`PyExc_InterruptedError`" msgstr ":c:data:`PyExc_InterruptedError`" -#: ../Doc/c-api/exceptions.rst:858 +#: ../Doc/c-api/exceptions.rst:862 msgid ":exc:`InterruptedError`" msgstr ":exc:`InterruptedError`" -#: ../Doc/c-api/exceptions.rst:860 +#: ../Doc/c-api/exceptions.rst:864 msgid ":c:data:`PyExc_IsADirectoryError`" msgstr ":c:data:`PyExc_IsADirectoryError`" -#: ../Doc/c-api/exceptions.rst:860 +#: ../Doc/c-api/exceptions.rst:864 msgid ":exc:`IsADirectoryError`" msgstr ":exc:`IsADirectoryError`" -#: ../Doc/c-api/exceptions.rst:862 +#: ../Doc/c-api/exceptions.rst:866 msgid ":c:data:`PyExc_KeyError`" msgstr ":c:data:`PyExc_KeyError`" -#: ../Doc/c-api/exceptions.rst:862 +#: ../Doc/c-api/exceptions.rst:866 msgid ":exc:`KeyError`" msgstr ":exc:`KeyError`" -#: ../Doc/c-api/exceptions.rst:864 +#: ../Doc/c-api/exceptions.rst:868 msgid ":c:data:`PyExc_KeyboardInterrupt`" msgstr ":c:data:`PyExc_KeyboardInterrupt`" -#: ../Doc/c-api/exceptions.rst:864 +#: ../Doc/c-api/exceptions.rst:868 msgid ":exc:`KeyboardInterrupt`" msgstr ":exc:`KeyboardInterrupt`" -#: ../Doc/c-api/exceptions.rst:866 +#: ../Doc/c-api/exceptions.rst:870 msgid ":c:data:`PyExc_LookupError`" msgstr ":c:data:`PyExc_LookupError`" -#: ../Doc/c-api/exceptions.rst:866 +#: ../Doc/c-api/exceptions.rst:870 msgid ":exc:`LookupError`" msgstr ":exc:`LookupError`" -#: ../Doc/c-api/exceptions.rst:868 +#: ../Doc/c-api/exceptions.rst:872 msgid ":c:data:`PyExc_MemoryError`" msgstr ":c:data:`PyExc_MemoryError`" -#: ../Doc/c-api/exceptions.rst:868 +#: ../Doc/c-api/exceptions.rst:872 msgid ":exc:`MemoryError`" msgstr ":exc:`MemoryError`" -#: ../Doc/c-api/exceptions.rst:870 +#: ../Doc/c-api/exceptions.rst:874 msgid ":c:data:`PyExc_ModuleNotFoundError`" msgstr "" -#: ../Doc/c-api/exceptions.rst:870 +#: ../Doc/c-api/exceptions.rst:874 msgid ":exc:`ModuleNotFoundError`" msgstr "" -#: ../Doc/c-api/exceptions.rst:872 +#: ../Doc/c-api/exceptions.rst:876 msgid ":c:data:`PyExc_NameError`" msgstr ":c:data:`PyExc_NameError`" -#: ../Doc/c-api/exceptions.rst:872 +#: ../Doc/c-api/exceptions.rst:876 msgid ":exc:`NameError`" msgstr ":exc:`NameError`" -#: ../Doc/c-api/exceptions.rst:874 +#: ../Doc/c-api/exceptions.rst:878 msgid ":c:data:`PyExc_NotADirectoryError`" msgstr ":c:data:`PyExc_NotADirectoryError`" -#: ../Doc/c-api/exceptions.rst:874 +#: ../Doc/c-api/exceptions.rst:878 msgid ":exc:`NotADirectoryError`" msgstr ":exc:`NotADirectoryError`" -#: ../Doc/c-api/exceptions.rst:876 +#: ../Doc/c-api/exceptions.rst:880 msgid ":c:data:`PyExc_NotImplementedError`" msgstr ":c:data:`PyExc_NotImplementedError`" -#: ../Doc/c-api/exceptions.rst:876 +#: ../Doc/c-api/exceptions.rst:880 msgid ":exc:`NotImplementedError`" msgstr ":exc:`NotImplementedError`" -#: ../Doc/c-api/exceptions.rst:878 +#: ../Doc/c-api/exceptions.rst:882 msgid ":c:data:`PyExc_OSError`" msgstr ":c:data:`PyExc_OSError`" -#: ../Doc/c-api/exceptions.rst:878 +#: ../Doc/c-api/exceptions.rst:882 msgid ":exc:`OSError`" msgstr ":exc:`OSError`" -#: ../Doc/c-api/exceptions.rst:880 +#: ../Doc/c-api/exceptions.rst:884 msgid ":c:data:`PyExc_OverflowError`" msgstr ":c:data:`PyExc_OverflowError`" -#: ../Doc/c-api/exceptions.rst:880 +#: ../Doc/c-api/exceptions.rst:884 msgid ":exc:`OverflowError`" msgstr ":exc:`OverflowError`" -#: ../Doc/c-api/exceptions.rst:882 +#: ../Doc/c-api/exceptions.rst:886 msgid ":c:data:`PyExc_PermissionError`" msgstr ":c:data:`PyExc_PermissionError`" -#: ../Doc/c-api/exceptions.rst:882 +#: ../Doc/c-api/exceptions.rst:886 msgid ":exc:`PermissionError`" msgstr ":exc:`PermissionError`" -#: ../Doc/c-api/exceptions.rst:884 +#: ../Doc/c-api/exceptions.rst:888 msgid ":c:data:`PyExc_ProcessLookupError`" msgstr ":c:data:`PyExc_ProcessLookupError`" -#: ../Doc/c-api/exceptions.rst:884 +#: ../Doc/c-api/exceptions.rst:888 msgid ":exc:`ProcessLookupError`" msgstr ":exc:`ProcessLookupError`" -#: ../Doc/c-api/exceptions.rst:886 +#: ../Doc/c-api/exceptions.rst:890 msgid ":c:data:`PyExc_RecursionError`" msgstr ":c:data:`PyExc_ReferenceError`" -#: ../Doc/c-api/exceptions.rst:886 +#: ../Doc/c-api/exceptions.rst:890 msgid ":exc:`RecursionError`" msgstr "" -#: ../Doc/c-api/exceptions.rst:888 +#: ../Doc/c-api/exceptions.rst:892 msgid ":c:data:`PyExc_ReferenceError`" msgstr ":c:data:`PyExc_ReferenceError`" -#: ../Doc/c-api/exceptions.rst:888 +#: ../Doc/c-api/exceptions.rst:892 msgid ":exc:`ReferenceError`" msgstr ":exc:`ReferenceError`" -#: ../Doc/c-api/exceptions.rst:888 +#: ../Doc/c-api/exceptions.rst:892 msgid "\\(2)" msgstr "\\(2)" -#: ../Doc/c-api/exceptions.rst:890 +#: ../Doc/c-api/exceptions.rst:894 msgid ":c:data:`PyExc_RuntimeError`" msgstr ":c:data:`PyExc_RuntimeError`" -#: ../Doc/c-api/exceptions.rst:890 +#: ../Doc/c-api/exceptions.rst:894 msgid ":exc:`RuntimeError`" msgstr ":exc:`RuntimeError`" -#: ../Doc/c-api/exceptions.rst:892 +#: ../Doc/c-api/exceptions.rst:896 msgid ":c:data:`PyExc_StopAsyncIteration`" msgstr ":c:data:`PyExc_StopAsyncIteration`" -#: ../Doc/c-api/exceptions.rst:892 +#: ../Doc/c-api/exceptions.rst:896 msgid ":exc:`StopAsyncIteration`" msgstr ":exc:`StopAsyncIteration`" -#: ../Doc/c-api/exceptions.rst:894 +#: ../Doc/c-api/exceptions.rst:898 msgid ":c:data:`PyExc_StopIteration`" msgstr ":c:data:`PyExc_StopIteration`" -#: ../Doc/c-api/exceptions.rst:894 +#: ../Doc/c-api/exceptions.rst:898 msgid ":exc:`StopIteration`" msgstr ":exc:`StopIteration`" -#: ../Doc/c-api/exceptions.rst:896 +#: ../Doc/c-api/exceptions.rst:900 msgid ":c:data:`PyExc_SyntaxError`" msgstr ":c:data:`PyExc_SyntaxError`" -#: ../Doc/c-api/exceptions.rst:896 +#: ../Doc/c-api/exceptions.rst:900 msgid ":exc:`SyntaxError`" msgstr ":exc:`SyntaxError`" -#: ../Doc/c-api/exceptions.rst:898 +#: ../Doc/c-api/exceptions.rst:902 msgid ":c:data:`PyExc_SystemError`" msgstr ":c:data:`PyExc_SystemError`" -#: ../Doc/c-api/exceptions.rst:898 +#: ../Doc/c-api/exceptions.rst:902 msgid ":exc:`SystemError`" msgstr ":exc:`SystemError`" -#: ../Doc/c-api/exceptions.rst:900 +#: ../Doc/c-api/exceptions.rst:904 msgid ":c:data:`PyExc_SystemExit`" msgstr ":c:data:`PyExc_SystemExit`" -#: ../Doc/c-api/exceptions.rst:900 +#: ../Doc/c-api/exceptions.rst:904 msgid ":exc:`SystemExit`" msgstr ":exc:`SystemExit`" -#: ../Doc/c-api/exceptions.rst:902 +#: ../Doc/c-api/exceptions.rst:906 msgid ":c:data:`PyExc_TabError`" msgstr ":c:data:`PyExc_TabError`" -#: ../Doc/c-api/exceptions.rst:902 +#: ../Doc/c-api/exceptions.rst:906 msgid ":exc:`TabError`" msgstr ":exc:`TabError`" -#: ../Doc/c-api/exceptions.rst:904 +#: ../Doc/c-api/exceptions.rst:908 msgid ":c:data:`PyExc_TimeoutError`" msgstr ":c:data:`PyExc_ImportError`" -#: ../Doc/c-api/exceptions.rst:904 +#: ../Doc/c-api/exceptions.rst:908 msgid ":exc:`TimeoutError`" msgstr ":exc:`TimeoutError`" -#: ../Doc/c-api/exceptions.rst:906 +#: ../Doc/c-api/exceptions.rst:910 msgid ":c:data:`PyExc_TypeError`" msgstr ":c:data:`PyExc_TypeError`" -#: ../Doc/c-api/exceptions.rst:906 +#: ../Doc/c-api/exceptions.rst:910 msgid ":exc:`TypeError`" msgstr ":exc:`TypeError`" -#: ../Doc/c-api/exceptions.rst:908 +#: ../Doc/c-api/exceptions.rst:912 msgid ":c:data:`PyExc_UnboundLocalError`" msgstr ":c:data:`PyExc_UnboundLocalError`" -#: ../Doc/c-api/exceptions.rst:908 +#: ../Doc/c-api/exceptions.rst:912 msgid ":exc:`UnboundLocalError`" msgstr ":exc:`UnboundLocalError`" -#: ../Doc/c-api/exceptions.rst:910 +#: ../Doc/c-api/exceptions.rst:914 msgid ":c:data:`PyExc_UnicodeDecodeError`" msgstr ":c:data:`PyExc_UnicodeDecodeError`" -#: ../Doc/c-api/exceptions.rst:910 +#: ../Doc/c-api/exceptions.rst:914 msgid ":exc:`UnicodeDecodeError`" msgstr ":exc:`UnicodeDecodeError`" -#: ../Doc/c-api/exceptions.rst:912 +#: ../Doc/c-api/exceptions.rst:916 msgid ":c:data:`PyExc_UnicodeEncodeError`" msgstr ":c:data:`PyExc_UnicodeEncodeError`" -#: ../Doc/c-api/exceptions.rst:912 +#: ../Doc/c-api/exceptions.rst:916 msgid ":exc:`UnicodeEncodeError`" msgstr ":exc:`UnicodeEncodeError`" -#: ../Doc/c-api/exceptions.rst:914 +#: ../Doc/c-api/exceptions.rst:918 msgid ":c:data:`PyExc_UnicodeError`" msgstr ":c:data:`PyExc_UnicodeError`" -#: ../Doc/c-api/exceptions.rst:914 +#: ../Doc/c-api/exceptions.rst:918 msgid ":exc:`UnicodeError`" msgstr ":exc:`UnicodeError`" -#: ../Doc/c-api/exceptions.rst:916 +#: ../Doc/c-api/exceptions.rst:920 msgid ":c:data:`PyExc_UnicodeTranslateError`" msgstr ":c:data:`PyExc_UnicodeTranslateError`" -#: ../Doc/c-api/exceptions.rst:916 +#: ../Doc/c-api/exceptions.rst:920 msgid ":exc:`UnicodeTranslateError`" msgstr ":exc:`UnicodeTranslateError`" -#: ../Doc/c-api/exceptions.rst:918 +#: ../Doc/c-api/exceptions.rst:922 msgid ":c:data:`PyExc_ValueError`" msgstr ":c:data:`PyExc_ValueError`" -#: ../Doc/c-api/exceptions.rst:918 +#: ../Doc/c-api/exceptions.rst:922 msgid ":exc:`ValueError`" msgstr ":exc:`ValueError`" -#: ../Doc/c-api/exceptions.rst:920 +#: ../Doc/c-api/exceptions.rst:924 msgid ":c:data:`PyExc_ZeroDivisionError`" msgstr ":c:data:`PyExc_ZeroDivisionError`" -#: ../Doc/c-api/exceptions.rst:920 +#: ../Doc/c-api/exceptions.rst:924 msgid ":exc:`ZeroDivisionError`" msgstr ":exc:`ZeroDivisionError`" -#: ../Doc/c-api/exceptions.rst:923 +#: ../Doc/c-api/exceptions.rst:927 msgid "" ":c:data:`PyExc_BlockingIOError`, :c:data:`PyExc_BrokenPipeError`, :c:data:" "`PyExc_ChildProcessError`, :c:data:`PyExc_ConnectionError`, :c:data:" @@ -1242,61 +1249,61 @@ msgid "" "`PyExc_TimeoutError` were introduced following :pep:`3151`." msgstr "" -#: ../Doc/c-api/exceptions.rst:933 +#: ../Doc/c-api/exceptions.rst:937 msgid ":c:data:`PyExc_StopAsyncIteration` and :c:data:`PyExc_RecursionError`." msgstr ":c:data:`PyExc_StopAsyncIteration` et :c:data:`PyExc_RecursionError`." -#: ../Doc/c-api/exceptions.rst:936 +#: ../Doc/c-api/exceptions.rst:940 msgid ":c:data:`PyExc_ModuleNotFoundError`." msgstr ":c:data:`PyExc_ModuleNotFoundError`." -#: ../Doc/c-api/exceptions.rst:939 +#: ../Doc/c-api/exceptions.rst:943 msgid "These are compatibility aliases to :c:data:`PyExc_OSError`:" msgstr "" -#: ../Doc/c-api/exceptions.rst:949 +#: ../Doc/c-api/exceptions.rst:953 msgid ":c:data:`PyExc_EnvironmentError`" msgstr ":c:data:`PyExc_EnvironmentError`" -#: ../Doc/c-api/exceptions.rst:951 +#: ../Doc/c-api/exceptions.rst:955 msgid ":c:data:`PyExc_IOError`" msgstr ":c:data:`PyExc_IOError`" -#: ../Doc/c-api/exceptions.rst:953 +#: ../Doc/c-api/exceptions.rst:957 msgid ":c:data:`PyExc_WindowsError`" msgstr ":c:data:`PyExc_WindowsError`" -#: ../Doc/c-api/exceptions.rst:953 +#: ../Doc/c-api/exceptions.rst:957 msgid "\\(3)" msgstr "\\(3)" -#: ../Doc/c-api/exceptions.rst:956 +#: ../Doc/c-api/exceptions.rst:960 msgid "These aliases used to be separate exception types." msgstr "" -#: ../Doc/c-api/exceptions.rst:959 ../Doc/c-api/exceptions.rst:1023 +#: ../Doc/c-api/exceptions.rst:963 ../Doc/c-api/exceptions.rst:1027 msgid "Notes:" msgstr "Notes :" -#: ../Doc/c-api/exceptions.rst:962 +#: ../Doc/c-api/exceptions.rst:966 msgid "This is a base class for other standard exceptions." msgstr "C'est la classe de base pour les autres exceptions standards." -#: ../Doc/c-api/exceptions.rst:965 +#: ../Doc/c-api/exceptions.rst:969 msgid "This is the same as :exc:`weakref.ReferenceError`." msgstr "Identique à :exc:`weakref.ReferenceError`." -#: ../Doc/c-api/exceptions.rst:968 +#: ../Doc/c-api/exceptions.rst:972 msgid "" "Only defined on Windows; protect code that uses this by testing that the " "preprocessor macro ``MS_WINDOWS`` is defined." msgstr "" -#: ../Doc/c-api/exceptions.rst:974 +#: ../Doc/c-api/exceptions.rst:978 msgid "Standard Warning Categories" msgstr "" -#: ../Doc/c-api/exceptions.rst:976 +#: ../Doc/c-api/exceptions.rst:980 msgid "" "All standard Python warning categories are available as global variables " "whose names are ``PyExc_`` followed by the Python exception name. These have " @@ -1304,98 +1311,98 @@ msgid "" "completeness, here are all the variables:" msgstr "" -#: ../Doc/c-api/exceptions.rst:997 +#: ../Doc/c-api/exceptions.rst:1001 msgid ":c:data:`PyExc_Warning`" msgstr ":c:data:`PyExc_Warning`" -#: ../Doc/c-api/exceptions.rst:997 +#: ../Doc/c-api/exceptions.rst:1001 msgid ":exc:`Warning`" msgstr ":exc:`Warning`" -#: ../Doc/c-api/exceptions.rst:999 +#: ../Doc/c-api/exceptions.rst:1003 msgid ":c:data:`PyExc_BytesWarning`" msgstr ":c:data:`PyExc_BytesWarning`" -#: ../Doc/c-api/exceptions.rst:999 +#: ../Doc/c-api/exceptions.rst:1003 msgid ":exc:`BytesWarning`" msgstr ":exc:`BytesWarning`" -#: ../Doc/c-api/exceptions.rst:1001 +#: ../Doc/c-api/exceptions.rst:1005 msgid ":c:data:`PyExc_DeprecationWarning`" msgstr ":c:data:`PyExc_DeprecationWarning`" -#: ../Doc/c-api/exceptions.rst:1001 +#: ../Doc/c-api/exceptions.rst:1005 msgid ":exc:`DeprecationWarning`" msgstr ":exc:`DeprecationWarning`" -#: ../Doc/c-api/exceptions.rst:1003 +#: ../Doc/c-api/exceptions.rst:1007 msgid ":c:data:`PyExc_FutureWarning`" msgstr ":c:data:`PyExc_FutureWarning`" -#: ../Doc/c-api/exceptions.rst:1003 +#: ../Doc/c-api/exceptions.rst:1007 msgid ":exc:`FutureWarning`" msgstr ":exc:`FutureWarning`" -#: ../Doc/c-api/exceptions.rst:1005 +#: ../Doc/c-api/exceptions.rst:1009 msgid ":c:data:`PyExc_ImportWarning`" msgstr ":c:data:`PyExc_ImportWarning`" -#: ../Doc/c-api/exceptions.rst:1005 +#: ../Doc/c-api/exceptions.rst:1009 msgid ":exc:`ImportWarning`" msgstr ":exc:`ImportWarning`" -#: ../Doc/c-api/exceptions.rst:1007 +#: ../Doc/c-api/exceptions.rst:1011 msgid ":c:data:`PyExc_PendingDeprecationWarning`" msgstr ":c:data:`PyExc_PendingDeprecationWarning`" -#: ../Doc/c-api/exceptions.rst:1007 +#: ../Doc/c-api/exceptions.rst:1011 msgid ":exc:`PendingDeprecationWarning`" msgstr ":exc:`PendingDeprecationWarning`" -#: ../Doc/c-api/exceptions.rst:1009 +#: ../Doc/c-api/exceptions.rst:1013 msgid ":c:data:`PyExc_ResourceWarning`" msgstr ":c:data:`PyExc_ResourceWarning`" -#: ../Doc/c-api/exceptions.rst:1009 +#: ../Doc/c-api/exceptions.rst:1013 msgid ":exc:`ResourceWarning`" msgstr ":exc:`ResourceWarning`" -#: ../Doc/c-api/exceptions.rst:1011 +#: ../Doc/c-api/exceptions.rst:1015 msgid ":c:data:`PyExc_RuntimeWarning`" msgstr ":c:data:`PyExc_RuntimeWarning`" -#: ../Doc/c-api/exceptions.rst:1011 +#: ../Doc/c-api/exceptions.rst:1015 msgid ":exc:`RuntimeWarning`" msgstr ":exc:`RuntimeWarning`" -#: ../Doc/c-api/exceptions.rst:1013 +#: ../Doc/c-api/exceptions.rst:1017 msgid ":c:data:`PyExc_SyntaxWarning`" msgstr ":c:data:`PyExc_SyntaxWarning`" -#: ../Doc/c-api/exceptions.rst:1013 +#: ../Doc/c-api/exceptions.rst:1017 msgid ":exc:`SyntaxWarning`" msgstr ":exc:`SyntaxWarning`" -#: ../Doc/c-api/exceptions.rst:1015 +#: ../Doc/c-api/exceptions.rst:1019 msgid ":c:data:`PyExc_UnicodeWarning`" msgstr ":c:data:`PyExc_UnicodeWarning`" -#: ../Doc/c-api/exceptions.rst:1015 +#: ../Doc/c-api/exceptions.rst:1019 msgid ":exc:`UnicodeWarning`" msgstr ":exc:`UnicodeWarning`" -#: ../Doc/c-api/exceptions.rst:1017 +#: ../Doc/c-api/exceptions.rst:1021 msgid ":c:data:`PyExc_UserWarning`" msgstr ":c:data:`PyExc_UserWarning`" -#: ../Doc/c-api/exceptions.rst:1017 +#: ../Doc/c-api/exceptions.rst:1021 msgid ":exc:`UserWarning`" msgstr ":exc:`UserWarning`" -#: ../Doc/c-api/exceptions.rst:1020 +#: ../Doc/c-api/exceptions.rst:1024 msgid ":c:data:`PyExc_ResourceWarning`." msgstr ":c:data:`PyExc_ResourceWarning`." -#: ../Doc/c-api/exceptions.rst:1026 +#: ../Doc/c-api/exceptions.rst:1030 msgid "This is a base class for other standard warning categories." msgstr "C'est la classe de base pour les autres catégories de *warning*." diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index 0e5dafd0c..dca52fcfe 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2018-11-30 10:55+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -89,8 +89,8 @@ msgstr "" #: ../Doc/c-api/objbuffer.rst:44 msgid "" "Note that this function tries to get and release a buffer, and exceptions " -"which occur while calling correspoding functions will get suppressed. To get " -"error reporting use :c:func:`PyObject_GetBuffer()` instead." +"which occur while calling corresponding functions will get suppressed. To " +"get error reporting use :c:func:`PyObject_GetBuffer()` instead." msgstr "" #: ../Doc/c-api/objbuffer.rst:51 diff --git a/faq/general.po b/faq/general.po index f8da8d60d..83c25420e 100644 --- a/faq/general.po +++ b/faq/general.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2018-10-15 00:22+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -597,26 +597,16 @@ msgstr "Où www.python.org est-il localisé dans le monde ?" #: ../Doc/faq/general.rst:271 msgid "" -"The Python project's infrastructure is located all over the world. `www." -"python.org `_ is graciously hosted by `Rackspace " -"`_, with CDN caching provided by `Fastly `_. `Upfront Systems `_ " -"hosts `bugs.python.org `_. Many other Python " -"services like `the Wiki `_ are hosted by `Oregon " -"State University Open Source Lab `_." -msgstr "" -"L'infrastructure du projet Python est localisé dans le monde entier. `www." -"python.org `_ est gracieusement hébergé par " -"`Rackspace `_, avec un cache *CDN* fourni par " -"`Fastly `_. `Upfront Systems `_ héberge `bugs.python.org `_." - -#: ../Doc/faq/general.rst:282 +"The Python project's infrastructure is located all over the world and is " +"managed by the Python Infrastructure Team. Details `here `__." +msgstr "" + +#: ../Doc/faq/general.rst:276 msgid "Why is it called Python?" msgstr "Pourquoi le nom Python ?" -#: ../Doc/faq/general.rst:284 +#: ../Doc/faq/general.rst:278 msgid "" "When he began implementing Python, Guido van Rossum was also reading the " "published scripts from `\"Monty Python's Flying Circus\" `_. There are two production-ready " @@ -693,11 +683,11 @@ msgstr "" "que Python 3.x, cependant la tendance s'est inversée et la plupart des " "bibliothèques les plus utilisées abandonnent même le support de Python 2.x." -#: ../Doc/faq/general.rst:325 +#: ../Doc/faq/general.rst:319 msgid "How many people are using Python?" msgstr "Combien de personnes utilisent Python ?" -#: ../Doc/faq/general.rst:327 +#: ../Doc/faq/general.rst:321 msgid "" "There are probably tens of thousands of users, though it's difficult to " "obtain an exact count." @@ -705,7 +695,7 @@ msgstr "" "Il y a probablement des dizaines de milliers d'utilisateurs, cependant c'est " "difficile d'obtenir un nombre exact." -#: ../Doc/faq/general.rst:330 +#: ../Doc/faq/general.rst:324 msgid "" "Python is available for free download, so there are no sales figures, and " "it's available from many different sites and packaged with many Linux " @@ -716,7 +706,7 @@ msgstr "" "il est inclus avec de beaucoup de distributions Linux, donc les statistiques " "de téléchargement ne donnent pas la totalité non plus." -#: ../Doc/faq/general.rst:334 +#: ../Doc/faq/general.rst:328 msgid "" "The comp.lang.python newsgroup is very active, but not all Python users post " "to the group or even read it." @@ -724,11 +714,11 @@ msgstr "" "Le forum *comp.lang.python* est très actif, mais tous les utilisateurs de " "Python ne laissent pas de messages dessus ou même ne le lisent pas." -#: ../Doc/faq/general.rst:339 +#: ../Doc/faq/general.rst:333 msgid "Have any significant projects been done in Python?" msgstr "Y a-t-il un nombre de projets significatif réalisés en Python ?" -#: ../Doc/faq/general.rst:341 +#: ../Doc/faq/general.rst:335 msgid "" "See https://www.python.org/about/success for a list of projects that use " "Python. Consulting the proceedings for `past Python conferences `_ and `the Zope application server `_." @@ -784,12 +774,12 @@ msgstr "" "Le nouveau développement est discuté sur `la liste de diffusion python-dev " "`_." -#: ../Doc/faq/general.rst:368 +#: ../Doc/faq/general.rst:362 msgid "Is it reasonable to propose incompatible changes to Python?" msgstr "" "Est-il raisonnable de proposer des changements incompatibles dans Python ?" -#: ../Doc/faq/general.rst:370 +#: ../Doc/faq/general.rst:364 msgid "" "In general, no. There are already millions of lines of Python code around " "the world, so any change in the language that invalidates more than a very " @@ -806,7 +796,7 @@ msgstr "" "documentations, beaucoup de livres ont été écrits au sujet de Python, et " "nous ne voulons pas les rendre invalides soudainement." -#: ../Doc/faq/general.rst:377 +#: ../Doc/faq/general.rst:371 msgid "" "Providing a gradual upgrade path is necessary if a feature has to be " "changed. :pep:`5` describes the procedure followed for introducing backward-" @@ -815,17 +805,17 @@ msgstr "" "En fournissant un rythme de mise à jour progressif qui est obligatoire si " "une fonctionnalité doit être changée." -#: ../Doc/faq/general.rst:383 +#: ../Doc/faq/general.rst:377 msgid "Is Python a good language for beginning programmers?" msgstr "" "Existe-t-il un meilleur langage de programmation pour les programmeurs " "débutants ?" -#: ../Doc/faq/general.rst:385 +#: ../Doc/faq/general.rst:379 msgid "Yes." msgstr "Oui." -#: ../Doc/faq/general.rst:387 +#: ../Doc/faq/general.rst:381 msgid "" "It is still common to start students with a procedural and statically typed " "language such as Pascal, C, or a subset of C++ or Java. Students may be " @@ -849,7 +839,7 @@ msgstr "" "peuvent même probablement travailler avec des objets définis dans leurs " "premiers cours." -#: ../Doc/faq/general.rst:397 +#: ../Doc/faq/general.rst:391 msgid "" "For a student who has never programmed before, using a statically typed " "language seems unnatural. It presents additional complexity that the " @@ -869,7 +859,7 @@ msgstr "" "terme, ce n'est pas nécessairement la meilleure idée pour s'adresser aux " "étudiants durant leur tout premier cours." -#: ../Doc/faq/general.rst:405 +#: ../Doc/faq/general.rst:399 msgid "" "Many other aspects of Python make it a good first language. Like Java, " "Python has a large standard library so that students can be assigned " @@ -892,7 +882,7 @@ msgstr "" "réutilisation de code. Les modules tiers tels que PyGame sont aussi très " "utiles pour étendre les compétences des étudiants." -#: ../Doc/faq/general.rst:414 +#: ../Doc/faq/general.rst:408 msgid "" "Python's interactive interpreter enables students to test language features " "while they're programming. They can keep a window with the interpreter " @@ -906,7 +896,7 @@ msgstr "" "souvenir des méthodes pour une liste, ils peuvent faire quelque chose comme " "ça ::" -#: ../Doc/faq/general.rst:443 +#: ../Doc/faq/general.rst:437 msgid "" "With the interpreter, documentation is never far from the student as they " "are programming." @@ -914,7 +904,7 @@ msgstr "" "Avec l'interpréteur, la documentation n'est jamais loin des étudiants quand " "ils travaillent." -#: ../Doc/faq/general.rst:446 +#: ../Doc/faq/general.rst:440 msgid "" "There are also good IDEs for Python. IDLE is a cross-platform IDE for " "Python that is written in Python using Tkinter. PythonWin is a Windows-" @@ -934,7 +924,7 @@ msgstr "" "`_ pour une liste complète des " "environnements de développement intégrés." -#: ../Doc/faq/general.rst:454 +#: ../Doc/faq/general.rst:448 msgid "" "If you want to discuss Python's use in education, you may be interested in " "joining `the edu-sig mailing list `_." + +#~ msgid "" +#~ "The Python project's infrastructure is located all over the world. `www." +#~ "python.org `_ is graciously hosted by `Rackspace " +#~ "`_, with CDN caching provided by `Fastly " +#~ "`_. `Upfront Systems `_ hosts `bugs.python.org `_. Many other " +#~ "Python services like `the Wiki `_ are hosted by " +#~ "`Oregon State University Open Source Lab `_." +#~ msgstr "" +#~ "L'infrastructure du projet Python est localisé dans le monde entier. `www." +#~ "python.org `_ est gracieusement hébergé par " +#~ "`Rackspace `_, avec un cache *CDN* fourni par " +#~ "`Fastly `_. `Upfront Systems `_ héberge `bugs.python.org `_." diff --git a/faq/programming.po b/faq/programming.po index 9b9cbcaa6..0010f0513 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2018-11-13 09:44+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -914,15 +914,43 @@ msgstr "" msgid "Don't try this at home, kids!" msgstr "Les enfants, ne faîtes pas ça chez vous !" -#: ../Doc/faq/programming.rst:771 +#: ../Doc/faq/programming.rst:773 +msgid "What does the slash(/) in the parameter list of a function mean?" +msgstr "" + +#: ../Doc/faq/programming.rst:775 +msgid "" +"A slash in the argument list of a function denotes that the parameters prior " +"to it are positional-only. Positional-only parameters are the ones without " +"an externally-usable name. Upon calling a function that accepts positional-" +"only parameters, arguments are mapped to parameters based solely on their " +"position. For example, :func:`pow` is a function that accepts positional-" +"only parameters. Its documentation looks like this::" +msgstr "" + +#: ../Doc/faq/programming.rst:791 +msgid "" +"The slash at the end of the parameter list means that all three parameters " +"are positional-only. Thus, calling :func:`pow` with keyword aguments would " +"lead to an error::" +msgstr "" + +#: ../Doc/faq/programming.rst:800 +msgid "" +"Note that as of this writing this is only documentational and no valid " +"syntax in Python, although there is :pep:`570`, which proposes a syntax for " +"position-only parameters in Python." +msgstr "" + +#: ../Doc/faq/programming.rst:806 msgid "Numbers and strings" msgstr "Nombres et chaînes de caractères" -#: ../Doc/faq/programming.rst:774 +#: ../Doc/faq/programming.rst:809 msgid "How do I specify hexadecimal and octal integers?" msgstr "Comment puis-je écrire des entiers hexadécimaux ou octaux ?" -#: ../Doc/faq/programming.rst:776 +#: ../Doc/faq/programming.rst:811 msgid "" "To specify an octal digit, precede the octal value with a zero, and then a " "lower or uppercase \"o\". For example, to set the variable \"a\" to the " @@ -932,7 +960,7 @@ msgstr "" "puis un \"o\" majuscule ou minuscule. Par exemple assigner la valeur octale " "\"10\" (8 en décimal) à la variable \"a\", tapez ::" -#: ../Doc/faq/programming.rst:784 +#: ../Doc/faq/programming.rst:819 msgid "" "Hexadecimal is just as easy. Simply precede the hexadecimal number with a " "zero, and then a lower or uppercase \"x\". Hexadecimal digits can be " @@ -943,11 +971,11 @@ msgstr "" "peuvent être écrit en majuscules ou en minuscules. Par exemple, dans " "l'interpréteur Python ::" -#: ../Doc/faq/programming.rst:797 +#: ../Doc/faq/programming.rst:832 msgid "Why does -22 // 10 return -3?" msgstr "Pourquoi ``-22 // 10`` donne-t-il ``-3`` ?" -#: ../Doc/faq/programming.rst:799 +#: ../Doc/faq/programming.rst:834 msgid "" "It's primarily driven by the desire that ``i % j`` have the same sign as " "``j``. If you want that, and also want::" @@ -955,7 +983,7 @@ msgstr "" "Cela est principalement due à la volonté que ``i % j`` ait le même signe que " "j. Si vous voulez cela, vous voulez aussi : ::" -#: ../Doc/faq/programming.rst:804 +#: ../Doc/faq/programming.rst:839 msgid "" "then integer division has to return the floor. C also requires that " "identity to hold, and then compilers that truncate ``i // j`` need to make " @@ -965,7 +993,7 @@ msgstr "" "aussi à ce que cette égalité soit vérifiée, et donc les compilateur qui " "tronquent ``i // j`` ont besoin que ``i % j`` ait le même signe que ``i``." -#: ../Doc/faq/programming.rst:808 +#: ../Doc/faq/programming.rst:843 msgid "" "There are few real use cases for ``i % j`` when ``j`` is negative. When " "``j`` is positive, there are many, and in virtually all of them it's more " @@ -979,11 +1007,11 @@ msgstr "" "maintenant, que disait-elle il y a 200 heures? ``-190%12 == 2`` est utile; " "``-192 % 12 == -10`` est un bug qui attends pour mordre." -#: ../Doc/faq/programming.rst:816 +#: ../Doc/faq/programming.rst:851 msgid "How do I convert a string to a number?" msgstr "Comment puis-je convertir une chaine de caractère en nombre?" -#: ../Doc/faq/programming.rst:818 +#: ../Doc/faq/programming.rst:853 msgid "" "For integers, use the built-in :func:`int` type constructor, e.g. " "``int('144') == 144``. Similarly, :func:`float` converts to floating-point, " @@ -993,7 +1021,7 @@ msgstr "" "constructeur, par exemple ``int('144') == 144``. De façon similaire, :func:" "`float` convertit en valeur flottante, par exemple ``float('144') == 144.0``." -#: ../Doc/faq/programming.rst:822 +#: ../Doc/faq/programming.rst:857 msgid "" "By default, these interpret the number as decimal, so that ``int('0144') == " "144`` and ``int('0x144')`` raises :exc:`ValueError`. ``int(string, base)`` " @@ -1010,7 +1038,7 @@ msgstr "" "Python: un préfixe ``0o`` indique de l'octal, et ``0x`` indique de " "l'hexadécimal." -#: ../Doc/faq/programming.rst:828 +#: ../Doc/faq/programming.rst:863 msgid "" "Do not use the built-in function :func:`eval` if all you need is to convert " "strings to numbers. :func:`eval` will be significantly slower and it " @@ -1027,7 +1055,7 @@ msgstr "" "system(\"rm -rf $HOME\")`` ce qui aurait pour effet d'effacer votre " "répertoire personnel." -#: ../Doc/faq/programming.rst:835 +#: ../Doc/faq/programming.rst:870 msgid "" ":func:`eval` also has the effect of interpreting numbers as Python " "expressions, so that e.g. ``eval('09')`` gives a syntax error because Python " @@ -1038,11 +1066,11 @@ msgstr "" "que Python ne permet pas les '0' en tête d'un nombre décimal (à l'exception " "du nombre '0')." -#: ../Doc/faq/programming.rst:841 +#: ../Doc/faq/programming.rst:876 msgid "How do I convert a number to a string?" msgstr "Comment convertir un nombre en chaine de caractère?" -#: ../Doc/faq/programming.rst:843 +#: ../Doc/faq/programming.rst:878 msgid "" "To convert, e.g., the number 144 to the string '144', use the built-in type " "constructor :func:`str`. If you want a hexadecimal or octal representation, " @@ -1052,11 +1080,11 @@ msgid "" "format(1.0/3.0)`` yields ``'0.333'``." msgstr "" -#: ../Doc/faq/programming.rst:852 +#: ../Doc/faq/programming.rst:887 msgid "How do I modify a string in place?" msgstr "Comment modifier une chaine de caractère \"en place\"?" -#: ../Doc/faq/programming.rst:854 +#: ../Doc/faq/programming.rst:889 msgid "" "You can't, because strings are immutable. In most situations, you should " "simply construct a new string from the various parts you want to assemble it " @@ -1065,17 +1093,17 @@ msgid "" "module::" msgstr "" -#: ../Doc/faq/programming.rst:884 +#: ../Doc/faq/programming.rst:919 msgid "How do I use strings to call functions/methods?" msgstr "" "Comment utiliser des chaines de caractères pour appeler des fonctions/" "méthodes?" -#: ../Doc/faq/programming.rst:886 +#: ../Doc/faq/programming.rst:921 msgid "There are various techniques." msgstr "Il y a différentes techniques." -#: ../Doc/faq/programming.rst:888 +#: ../Doc/faq/programming.rst:923 msgid "" "The best is to use a dictionary that maps strings to functions. The primary " "advantage of this technique is that the strings do not need to match the " @@ -1088,11 +1116,11 @@ msgstr "" "fonctions. C'est aussi la principale façon d'imiter la construction \"case" "\" ::" -#: ../Doc/faq/programming.rst:903 +#: ../Doc/faq/programming.rst:938 msgid "Use the built-in function :func:`getattr`::" msgstr "Utiliser la fonction :func:`getattr` ::" -#: ../Doc/faq/programming.rst:908 +#: ../Doc/faq/programming.rst:943 msgid "" "Note that :func:`getattr` works on any object, including classes, class " "instances, modules, and so on." @@ -1100,18 +1128,18 @@ msgstr "" "Notez que :func:`getattr` marche sur n'importe quel objet, ceci inclut les " "classes, les instances de classes, les modules et ainsi de suite." -#: ../Doc/faq/programming.rst:911 +#: ../Doc/faq/programming.rst:946 msgid "This is used in several places in the standard library, like this::" msgstr "" "Ceci est utilisé dans plusieurs endroit de la bibliothèque standard, de " "cette façon ::" -#: ../Doc/faq/programming.rst:924 +#: ../Doc/faq/programming.rst:959 msgid "Use :func:`locals` or :func:`eval` to resolve the function name::" msgstr "" "Utilisez :func:`locals` ou :func:`eval` pour résoudre le nom de fonction ::" -#: ../Doc/faq/programming.rst:937 +#: ../Doc/faq/programming.rst:972 msgid "" "Note: Using :func:`eval` is slow and dangerous. If you don't have absolute " "control over the contents of the string, someone could pass a string that " @@ -1122,7 +1150,7 @@ msgstr "" "passer une chaine de caractère pouvant résulter en l'exécution de code " "arbitraire." -#: ../Doc/faq/programming.rst:942 +#: ../Doc/faq/programming.rst:977 msgid "" "Is there an equivalent to Perl's chomp() for removing trailing newlines from " "strings?" @@ -1130,7 +1158,7 @@ msgstr "" "Existe-t-il un équivalent à la fonction ``chomp()`` de Perl, pour retirer " "les caractères de fin de ligne d'une chaine de caractère ?" -#: ../Doc/faq/programming.rst:944 +#: ../Doc/faq/programming.rst:979 msgid "" "You can use ``S.rstrip(\"\\r\\n\")`` to remove all occurrences of any line " "terminator from the end of the string ``S`` without removing other trailing " @@ -1144,7 +1172,7 @@ msgstr "" "ligne, avec plusieurs lignes vides, les marqueurs de fin de de lignes de " "chaque lignes vides seront retirés : ::" -#: ../Doc/faq/programming.rst:956 +#: ../Doc/faq/programming.rst:991 msgid "" "Since this is typically only desired when reading text one line at a time, " "using ``S.rstrip()`` this way works well." @@ -1152,15 +1180,15 @@ msgstr "" "Du fait que ce soit principalement utile en lisant un texte ligne à ligne, " "utiliser ``S.rstrip()`` devrait marcher correctement." -#: ../Doc/faq/programming.rst:961 +#: ../Doc/faq/programming.rst:996 msgid "Is there a scanf() or sscanf() equivalent?" msgstr "Existe-t-il un équivalent à ``scanf()`` ou ``sscanf()`` ?" -#: ../Doc/faq/programming.rst:963 +#: ../Doc/faq/programming.rst:998 msgid "Not as such." msgstr "Pas exactement." -#: ../Doc/faq/programming.rst:965 +#: ../Doc/faq/programming.rst:1000 msgid "" "For simple input parsing, the easiest approach is usually to split the line " "into whitespace-delimited words using the :meth:`~str.split` method of " @@ -1177,7 +1205,7 @@ msgstr "" "paramètre optionnel \"sep\" qui est utile si la ligne utilise autre chose " "que des espaces comme séparateur." -#: ../Doc/faq/programming.rst:971 +#: ../Doc/faq/programming.rst:1006 msgid "" "For more complicated input parsing, regular expressions are more powerful " "than C's :c:func:`sscanf` and better suited for the task." @@ -1186,81 +1214,81 @@ msgstr "" "puissantes que la fonction :c:func:`sscanf` de C et mieux adaptées à la " "tâche." -#: ../Doc/faq/programming.rst:976 +#: ../Doc/faq/programming.rst:1011 msgid "What does 'UnicodeDecodeError' or 'UnicodeEncodeError' error mean?" msgstr "" "Que signifient les erreurs ``UnicodeDecodeError`` ou ``UnicodeEncodeError`` ?" -#: ../Doc/faq/programming.rst:978 +#: ../Doc/faq/programming.rst:1013 msgid "See the :ref:`unicode-howto`." msgstr "Regardez :ref:`unicode-howto`." -#: ../Doc/faq/programming.rst:982 +#: ../Doc/faq/programming.rst:1017 msgid "Performance" msgstr "" -#: ../Doc/faq/programming.rst:985 +#: ../Doc/faq/programming.rst:1020 msgid "My program is too slow. How do I speed it up?" msgstr "" -#: ../Doc/faq/programming.rst:987 +#: ../Doc/faq/programming.rst:1022 msgid "" "That's a tough one, in general. First, here are a list of things to " "remember before diving further:" msgstr "" -#: ../Doc/faq/programming.rst:990 +#: ../Doc/faq/programming.rst:1025 msgid "" "Performance characteristics vary across Python implementations. This FAQ " "focusses on :term:`CPython`." msgstr "" -#: ../Doc/faq/programming.rst:992 +#: ../Doc/faq/programming.rst:1027 msgid "" "Behaviour can vary across operating systems, especially when talking about I/" "O or multi-threading." msgstr "" -#: ../Doc/faq/programming.rst:994 +#: ../Doc/faq/programming.rst:1029 msgid "" "You should always find the hot spots in your program *before* attempting to " "optimize any code (see the :mod:`profile` module)." msgstr "" -#: ../Doc/faq/programming.rst:996 +#: ../Doc/faq/programming.rst:1031 msgid "" "Writing benchmark scripts will allow you to iterate quickly when searching " "for improvements (see the :mod:`timeit` module)." msgstr "" -#: ../Doc/faq/programming.rst:998 +#: ../Doc/faq/programming.rst:1033 msgid "" "It is highly recommended to have good code coverage (through unit testing or " "any other technique) before potentially introducing regressions hidden in " "sophisticated optimizations." msgstr "" -#: ../Doc/faq/programming.rst:1002 +#: ../Doc/faq/programming.rst:1037 msgid "" "That being said, there are many tricks to speed up Python code. Here are " "some general principles which go a long way towards reaching acceptable " "performance levels:" msgstr "" -#: ../Doc/faq/programming.rst:1006 +#: ../Doc/faq/programming.rst:1041 msgid "" "Making your algorithms faster (or changing to faster ones) can yield much " "larger benefits than trying to sprinkle micro-optimization tricks all over " "your code." msgstr "" -#: ../Doc/faq/programming.rst:1010 +#: ../Doc/faq/programming.rst:1045 msgid "" "Use the right data structures. Study documentation for the :ref:`bltin-" "types` and the :mod:`collections` module." msgstr "" -#: ../Doc/faq/programming.rst:1013 +#: ../Doc/faq/programming.rst:1048 msgid "" "When the standard library provides a primitive for doing something, it is " "likely (although not guaranteed) to be faster than any alternative you may " @@ -1271,7 +1299,7 @@ msgid "" "advanced usage)." msgstr "" -#: ../Doc/faq/programming.rst:1021 +#: ../Doc/faq/programming.rst:1056 msgid "" "Abstractions tend to create indirections and force the interpreter to work " "more. If the levels of indirection outweigh the amount of useful work done, " @@ -1280,7 +1308,7 @@ msgid "" "detrimental to readability)." msgstr "" -#: ../Doc/faq/programming.rst:1027 +#: ../Doc/faq/programming.rst:1062 msgid "" "If you have reached the limit of what pure Python can allow, there are tools " "to take you further away. For example, `Cython `_ can " @@ -1292,17 +1320,17 @@ msgid "" "yourself." msgstr "" -#: ../Doc/faq/programming.rst:1037 +#: ../Doc/faq/programming.rst:1072 msgid "" "The wiki page devoted to `performance tips `_." msgstr "" -#: ../Doc/faq/programming.rst:1043 +#: ../Doc/faq/programming.rst:1078 msgid "What is the most efficient way to concatenate many strings together?" msgstr "" -#: ../Doc/faq/programming.rst:1045 +#: ../Doc/faq/programming.rst:1080 msgid "" ":class:`str` and :class:`bytes` objects are immutable, therefore " "concatenating many strings together is inefficient as each concatenation " @@ -1310,32 +1338,32 @@ msgid "" "quadratic in the total string length." msgstr "" -#: ../Doc/faq/programming.rst:1050 +#: ../Doc/faq/programming.rst:1085 msgid "" "To accumulate many :class:`str` objects, the recommended idiom is to place " "them into a list and call :meth:`str.join` at the end::" msgstr "" -#: ../Doc/faq/programming.rst:1058 +#: ../Doc/faq/programming.rst:1093 msgid "(another reasonably efficient idiom is to use :class:`io.StringIO`)" msgstr "" -#: ../Doc/faq/programming.rst:1060 +#: ../Doc/faq/programming.rst:1095 msgid "" "To accumulate many :class:`bytes` objects, the recommended idiom is to " "extend a :class:`bytearray` object using in-place concatenation (the ``+=`` " "operator)::" msgstr "" -#: ../Doc/faq/programming.rst:1069 +#: ../Doc/faq/programming.rst:1104 msgid "Sequences (Tuples/Lists)" msgstr "Sequences (Tuples/Lists)" -#: ../Doc/faq/programming.rst:1072 +#: ../Doc/faq/programming.rst:1107 msgid "How do I convert between tuples and lists?" msgstr "Comment convertir les listes en tuples et inversement?" -#: ../Doc/faq/programming.rst:1074 +#: ../Doc/faq/programming.rst:1109 msgid "" "The type constructor ``tuple(seq)`` converts any sequence (actually, any " "iterable) into a tuple with the same items in the same order." @@ -1343,7 +1371,7 @@ msgstr "" "Le constructeur de type ``tuple(seq)`` convertit toute séquence (en fait " "tout itérable) en un tuple avec les mêmes éléments dans le même ordre…." -#: ../Doc/faq/programming.rst:1077 +#: ../Doc/faq/programming.rst:1112 msgid "" "For example, ``tuple([1, 2, 3])`` yields ``(1, 2, 3)`` and ``tuple('abc')`` " "yields ``('a', 'b', 'c')``. If the argument is a tuple, it does not make a " @@ -1356,7 +1384,7 @@ msgstr "" "économique à appeler quand vous ne savez pas si votre objet est déjà un " "tuple." -#: ../Doc/faq/programming.rst:1082 +#: ../Doc/faq/programming.rst:1117 msgid "" "The type constructor ``list(seq)`` converts any sequence or iterable into a " "list with the same items in the same order. For example, ``list((1, 2, " @@ -1369,11 +1397,11 @@ msgstr "" "``['a','b','c']``. Si l'argument est une liste, il renvoie une copie, de la " "même façon que ``seq[:]``." -#: ../Doc/faq/programming.rst:1089 +#: ../Doc/faq/programming.rst:1124 msgid "What's a negative index?" msgstr "Qu'est-ce qu'un indexe négatif?" -#: ../Doc/faq/programming.rst:1091 +#: ../Doc/faq/programming.rst:1126 msgid "" "Python sequences are indexed with positive numbers and negative numbers. " "For positive numbers 0 is the first index 1 is the second index and so " @@ -1387,7 +1415,7 @@ msgstr "" "index, ``-2`` est le pénultième (avant dernier), et ainsi de suite. On peut " "aussi dire que ``seq[-n]`` est équivalent à ``seq[len(seq)-n]``." -#: ../Doc/faq/programming.rst:1096 +#: ../Doc/faq/programming.rst:1131 msgid "" "Using negative indices can be very convenient. For example ``S[:-1]`` is " "all of the string except for its last character, which is useful for " @@ -1398,18 +1426,18 @@ msgstr "" "qui est pratique pour retirer un caractère de fin de ligne en fin d'une " "chaine." -#: ../Doc/faq/programming.rst:1102 +#: ../Doc/faq/programming.rst:1137 msgid "How do I iterate over a sequence in reverse order?" msgstr "Comment itérer à rebours sur une séquence?" -#: ../Doc/faq/programming.rst:1104 +#: ../Doc/faq/programming.rst:1139 msgid "" "Use the :func:`reversed` built-in function, which is new in Python 2.4::" msgstr "" "Utilisez la fonction embarquée :func:`reversed`, qui est apparue en Python " "2.4 ::" -#: ../Doc/faq/programming.rst:1109 +#: ../Doc/faq/programming.rst:1144 msgid "" "This won't touch your original sequence, but build a new copy with reversed " "order to iterate over." @@ -1417,25 +1445,25 @@ msgstr "" "Cela ne modifiera pas votre séquence initiale, mais construira à la place " "une copie en ordre inverse pour itérer dessus." -#: ../Doc/faq/programming.rst:1112 +#: ../Doc/faq/programming.rst:1147 msgid "With Python 2.3, you can use an extended slice syntax::" msgstr "Avec Python 2.3 vous pouvez utiliser la syntaxe étendue de tranches ::" -#: ../Doc/faq/programming.rst:1119 +#: ../Doc/faq/programming.rst:1154 msgid "How do you remove duplicates from a list?" msgstr "Comment retirer les doublons d'une liste?" -#: ../Doc/faq/programming.rst:1121 +#: ../Doc/faq/programming.rst:1156 msgid "See the Python Cookbook for a long discussion of many ways to do this:" msgstr "" "Lisez le Python Cookbook pour trouver une longue discussion sur les " "nombreuses façons de faire cela:" -#: ../Doc/faq/programming.rst:1123 +#: ../Doc/faq/programming.rst:1158 msgid "https://code.activestate.com/recipes/52560/" msgstr "" -#: ../Doc/faq/programming.rst:1125 +#: ../Doc/faq/programming.rst:1160 msgid "" "If you don't mind reordering the list, sort it and then scan from the end of " "the list, deleting duplicates as you go::" @@ -1444,7 +1472,7 @@ msgstr "" "celle ci, puis parcourez la d'un bout à l'autre, en supprimant les doublons " "trouvés en chemin ::" -#: ../Doc/faq/programming.rst:1137 +#: ../Doc/faq/programming.rst:1172 msgid "" "If all elements of the list may be used as set keys (i.e. they are all :term:" "`hashable`) this is often faster ::" @@ -1453,7 +1481,7 @@ msgstr "" "dictionnaire (c'est à dire, qu'elles sont toutes :term:`hachables " "`) ceci est souvent plus rapide : ::" -#: ../Doc/faq/programming.rst:1142 +#: ../Doc/faq/programming.rst:1177 msgid "" "This converts the list into a set, thereby removing duplicates, and then " "back into a list." @@ -1461,15 +1489,15 @@ msgstr "" "Ceci convertis la liste en un ensemble, ce qui supprime automatiquement les " "doublons, puis la transforme à nouveau en liste." -#: ../Doc/faq/programming.rst:1147 +#: ../Doc/faq/programming.rst:1182 msgid "How do you make an array in Python?" msgstr "Comment construire un tableau en Python?" -#: ../Doc/faq/programming.rst:1149 +#: ../Doc/faq/programming.rst:1184 msgid "Use a list::" msgstr "Utilisez une liste ::" -#: ../Doc/faq/programming.rst:1153 +#: ../Doc/faq/programming.rst:1188 msgid "" "Lists are equivalent to C or Pascal arrays in their time complexity; the " "primary difference is that a Python list can contain objects of many " @@ -1479,7 +1507,7 @@ msgstr "" "principale différence est qu'une liste Python peut contenir des objets de " "différents types." -#: ../Doc/faq/programming.rst:1156 +#: ../Doc/faq/programming.rst:1191 msgid "" "The ``array`` module also provides methods for creating arrays of fixed " "types with compact representations, but they are slower to index than " @@ -1492,14 +1520,14 @@ msgstr "" "fournissent différentes structures de types tableaux, avec des " "caractéristiques différentes." -#: ../Doc/faq/programming.rst:1161 +#: ../Doc/faq/programming.rst:1196 msgid "" "To get Lisp-style linked lists, you can emulate cons cells using tuples::" msgstr "" "Pour obtenir des listes chainées de type Lisp, vous pouvez émuler les *cons " "cells* en utilisant des tuples ::" -#: ../Doc/faq/programming.rst:1165 +#: ../Doc/faq/programming.rst:1200 msgid "" "If mutability is desired, you could use lists instead of tuples. Here the " "analogue of lisp car is ``lisp_list[0]`` and the analogue of cdr is " @@ -1512,26 +1540,26 @@ msgstr "" "que si vous êtes réellement sûr d'en avoir besoin, cette méthode est en " "générale bien plus lente que les listes Python." -#: ../Doc/faq/programming.rst:1174 +#: ../Doc/faq/programming.rst:1209 msgid "How do I create a multidimensional list?" msgstr "Comment puis-je créer une liste à plusieurs dimensions?" -#: ../Doc/faq/programming.rst:1176 +#: ../Doc/faq/programming.rst:1211 msgid "You probably tried to make a multidimensional array like this::" msgstr "" "Vous avez probablement essayé de créer une liste à plusieurs dimensions de " "cette façon ::" -#: ../Doc/faq/programming.rst:1180 +#: ../Doc/faq/programming.rst:1215 msgid "This looks correct if you print it:" msgstr "" -#: ../Doc/faq/programming.rst:1191 +#: ../Doc/faq/programming.rst:1226 msgid "But when you assign a value, it shows up in multiple places:" msgstr "" "Mais quand vous assignez une valeur, elle apparait en de multiples endroits::" -#: ../Doc/faq/programming.rst:1203 +#: ../Doc/faq/programming.rst:1238 msgid "" "The reason is that replicating a list with ``*`` doesn't create copies, it " "only creates references to the existing objects. The ``*3`` creates a list " @@ -1544,7 +1572,7 @@ msgstr "" "Un changement dans une colonne apparaîtra donc dans toutes les colonnes. Ce " "qui n'est de façon quasi certaine, pas ce que vous souhaitez." -#: ../Doc/faq/programming.rst:1208 +#: ../Doc/faq/programming.rst:1243 msgid "" "The suggested approach is to create a list of the desired length first and " "then fill in each element with a newly created list::" @@ -1552,7 +1580,7 @@ msgstr "" "L'approche suggérée est de créer une liste de la longueur désiré d'abords, " "puis de remplir tous les éléments avec une chaîne nouvellement créée ::" -#: ../Doc/faq/programming.rst:1215 +#: ../Doc/faq/programming.rst:1250 msgid "" "This generates a list containing 3 different lists of length two. You can " "also use a list comprehension::" @@ -1560,44 +1588,44 @@ msgstr "" "Cette liste générée contient trois listes différentes de longueur deux. Vous " "pouvez aussi utilisez la notation de compréhension de listes ::" -#: ../Doc/faq/programming.rst:1221 +#: ../Doc/faq/programming.rst:1256 msgid "" "Or, you can use an extension that provides a matrix datatype; `NumPy `_ is the best known." msgstr "" -#: ../Doc/faq/programming.rst:1226 +#: ../Doc/faq/programming.rst:1261 msgid "How do I apply a method to a sequence of objects?" msgstr "Comment appliquer une méthode à une séquence d'objets?" -#: ../Doc/faq/programming.rst:1228 +#: ../Doc/faq/programming.rst:1263 msgid "Use a list comprehension::" msgstr "Utilisez une compréhension de liste ::" -#: ../Doc/faq/programming.rst:1235 +#: ../Doc/faq/programming.rst:1270 msgid "" "Why does a_tuple[i] += ['item'] raise an exception when the addition works?" msgstr "" -#: ../Doc/faq/programming.rst:1237 +#: ../Doc/faq/programming.rst:1272 msgid "" "This is because of a combination of the fact that augmented assignment " "operators are *assignment* operators, and the difference between mutable and " "immutable objects in Python." msgstr "" -#: ../Doc/faq/programming.rst:1241 +#: ../Doc/faq/programming.rst:1276 msgid "" "This discussion applies in general when augmented assignment operators are " "applied to elements of a tuple that point to mutable objects, but we'll use " "a ``list`` and ``+=`` as our exemplar." msgstr "" -#: ../Doc/faq/programming.rst:1245 +#: ../Doc/faq/programming.rst:1280 msgid "If you wrote::" msgstr "Si vous écrivez : ::" -#: ../Doc/faq/programming.rst:1253 +#: ../Doc/faq/programming.rst:1288 msgid "" "The reason for the exception should be immediately clear: ``1`` is added to " "the object ``a_tuple[0]`` points to (``1``), producing the result object, " @@ -1606,29 +1634,29 @@ msgid "" "an element of a tuple points to." msgstr "" -#: ../Doc/faq/programming.rst:1259 +#: ../Doc/faq/programming.rst:1294 msgid "" "Under the covers, what this augmented assignment statement is doing is " "approximately this::" msgstr "" -#: ../Doc/faq/programming.rst:1268 +#: ../Doc/faq/programming.rst:1303 msgid "" "It is the assignment part of the operation that produces the error, since a " "tuple is immutable." msgstr "" -#: ../Doc/faq/programming.rst:1271 +#: ../Doc/faq/programming.rst:1306 msgid "When you write something like::" msgstr "" -#: ../Doc/faq/programming.rst:1279 +#: ../Doc/faq/programming.rst:1314 msgid "" "The exception is a bit more surprising, and even more surprising is the fact " "that even though there was an error, the append worked::" msgstr "" -#: ../Doc/faq/programming.rst:1285 +#: ../Doc/faq/programming.rst:1320 msgid "" "To see why this happens, you need to know that (a) if an object implements " "an ``__iadd__`` magic method, it gets called when the ``+=`` augmented " @@ -1638,11 +1666,11 @@ msgid "" "that for lists, ``+=`` is a \"shorthand\" for ``list.extend``::" msgstr "" -#: ../Doc/faq/programming.rst:1297 +#: ../Doc/faq/programming.rst:1332 msgid "This is equivalent to::" msgstr "C’est équivalent à ::" -#: ../Doc/faq/programming.rst:1302 +#: ../Doc/faq/programming.rst:1337 msgid "" "The object pointed to by a_list has been mutated, and the pointer to the " "mutated object is assigned back to ``a_list``. The end result of the " @@ -1650,11 +1678,11 @@ msgid "" "``a_list`` was previously pointing to, but the assignment still happens." msgstr "" -#: ../Doc/faq/programming.rst:1307 +#: ../Doc/faq/programming.rst:1342 msgid "Thus, in our tuple example what is happening is equivalent to::" msgstr "" -#: ../Doc/faq/programming.rst:1315 +#: ../Doc/faq/programming.rst:1350 msgid "" "The ``__iadd__`` succeeds, and thus the list is extended, but even though " "``result`` points to the same object that ``a_tuple[0]`` already points to, " @@ -1662,7 +1690,7 @@ msgid "" "immutable." msgstr "" -#: ../Doc/faq/programming.rst:1321 +#: ../Doc/faq/programming.rst:1356 msgid "" "I want to do a complicated sort: can you do a Schwartzian Transform in " "Python?" @@ -1670,7 +1698,7 @@ msgstr "" "Je souhaite faire un tri compliqué: peut on faire une transformation de " "Schwartz en Python?" -#: ../Doc/faq/programming.rst:1323 +#: ../Doc/faq/programming.rst:1358 msgid "" "The technique, attributed to Randal Schwartz of the Perl community, sorts " "the elements of a list by a metric which maps each element to its \"sort " @@ -1678,12 +1706,12 @@ msgid "" "method::" msgstr "" -#: ../Doc/faq/programming.rst:1332 +#: ../Doc/faq/programming.rst:1367 msgid "How can I sort one list by values from another list?" msgstr "" "Comment puis-je trier une liste en fonction des valeurs d'une autre liste?" -#: ../Doc/faq/programming.rst:1334 +#: ../Doc/faq/programming.rst:1369 msgid "" "Merge them into an iterator of tuples, sort the resulting list, and then " "pick out the element you want. ::" @@ -1691,11 +1719,11 @@ msgstr "" "Fusionnez les dans un itérateur de tuples, triez la liste obtenue, puis " "choisissez l'élément que vous voulez. ::" -#: ../Doc/faq/programming.rst:1348 +#: ../Doc/faq/programming.rst:1383 msgid "An alternative for the last step is::" msgstr "Une alternative pour la dernière étape est : ::" -#: ../Doc/faq/programming.rst:1353 +#: ../Doc/faq/programming.rst:1388 msgid "" "If you find this more legible, you might prefer to use this instead of the " "final list comprehension. However, it is almost twice as slow for long " @@ -1714,15 +1742,15 @@ msgstr "" "exige une recherche d'attribut supplémentaire, et enfin, tous ces appels de " "fonction impactent la vitesse d'exécution." -#: ../Doc/faq/programming.rst:1363 +#: ../Doc/faq/programming.rst:1398 msgid "Objects" msgstr "Objets" -#: ../Doc/faq/programming.rst:1366 +#: ../Doc/faq/programming.rst:1401 msgid "What is a class?" msgstr "Qu'est-ce qu'une classe?" -#: ../Doc/faq/programming.rst:1368 +#: ../Doc/faq/programming.rst:1403 msgid "" "A class is the particular object type created by executing a class " "statement. Class objects are used as templates to create instance objects, " @@ -1734,7 +1762,7 @@ msgstr "" "créer des objets, qui incarnent à la fois les données (attributs) et le code " "(méthodes) spécifiques à un type de données." -#: ../Doc/faq/programming.rst:1372 +#: ../Doc/faq/programming.rst:1407 msgid "" "A class can be based on one or more other classes, called its base " "class(es). It then inherits the attributes and methods of its base classes. " @@ -1751,11 +1779,11 @@ msgstr "" "classes telles que ``MboxMailbox``, ``MaildirMailbox``, ``OutlookMailbox`` " "qui gèrent les différents formats de boîtes aux lettres spécifiques." -#: ../Doc/faq/programming.rst:1381 +#: ../Doc/faq/programming.rst:1416 msgid "What is a method?" msgstr "Qu'est-ce qu'une méthode?" -#: ../Doc/faq/programming.rst:1383 +#: ../Doc/faq/programming.rst:1418 msgid "" "A method is a function on some object ``x`` that you normally call as ``x." "name(arguments...)``. Methods are defined as functions inside the class " @@ -1765,11 +1793,11 @@ msgstr "" "``x.name(arguments…)``. Les méthodes sont définies comme des fonctions à " "l'intérieur de la définition de classe ::" -#: ../Doc/faq/programming.rst:1393 +#: ../Doc/faq/programming.rst:1428 msgid "What is self?" msgstr "Qu'est-ce que self?" -#: ../Doc/faq/programming.rst:1395 +#: ../Doc/faq/programming.rst:1430 msgid "" "Self is merely a conventional name for the first argument of a method. A " "method defined as ``meth(self, a, b, c)`` should be called as ``x.meth(a, b, " @@ -1782,11 +1810,11 @@ msgstr "" "laquelle elle est définie, la méthode appelée considérera qu'elle est " "appelée ``meth(x, a, b, c)``." -#: ../Doc/faq/programming.rst:1400 +#: ../Doc/faq/programming.rst:1435 msgid "See also :ref:`why-self`." msgstr "Voir aussi :ref:`why-self`." -#: ../Doc/faq/programming.rst:1404 +#: ../Doc/faq/programming.rst:1439 msgid "" "How do I check if an object is an instance of a given class or of a subclass " "of it?" @@ -1794,7 +1822,7 @@ msgstr "" "Comment puis-je vérifier si un objet est une instance d'une classe donnée ou " "d'une sous-classe de celui-ci?" -#: ../Doc/faq/programming.rst:1406 +#: ../Doc/faq/programming.rst:1441 msgid "" "Use the built-in function ``isinstance(obj, cls)``. You can check if an " "object is an instance of any of a number of classes by providing a tuple " @@ -1809,7 +1837,7 @@ msgstr "" "objet est l'un des types natifs de Python, par exemple, ``isinstance(obj, " "str)`` ou ``isinstance(obj, (int, float, complex))``." -#: ../Doc/faq/programming.rst:1412 +#: ../Doc/faq/programming.rst:1447 msgid "" "Note that most programs do not use :func:`isinstance` on user-defined " "classes very often. If you are developing the classes yourself, a more " @@ -1826,7 +1854,7 @@ msgstr "" "chose de différent en fonction de sa classe. Par exemple, si vous avez une " "fonction qui fait quelque chose : ::" -#: ../Doc/faq/programming.rst:1426 +#: ../Doc/faq/programming.rst:1461 msgid "" "A better approach is to define a ``search()`` method on all the classes and " "just call it::" @@ -1834,11 +1862,11 @@ msgstr "" "Une meilleure approche est de définir une méthode ``search()`` sur toutes " "les classes et qu'il suffit d'appeler ::" -#: ../Doc/faq/programming.rst:1441 +#: ../Doc/faq/programming.rst:1476 msgid "What is delegation?" msgstr "Qu'est-ce que la délégation?" -#: ../Doc/faq/programming.rst:1443 +#: ../Doc/faq/programming.rst:1478 msgid "" "Delegation is an object oriented technique (also called a design pattern). " "Let's say you have an object ``x`` and want to change the behaviour of just " @@ -1853,7 +1881,7 @@ msgstr "" "vous intéresse dans l'évolution et les délégués de toutes les autres " "méthodes la méthode correspondante de ``x``." -#: ../Doc/faq/programming.rst:1449 +#: ../Doc/faq/programming.rst:1484 msgid "" "Python programmers can easily implement delegation. For example, the " "following class implements a class that behaves like a file but converts all " @@ -1863,7 +1891,7 @@ msgstr "" "Par exemple, la classe suivante implémente une classe qui se comporte comme " "un fichier, mais convertit toutes les données écrites en majuscules ::" -#: ../Doc/faq/programming.rst:1464 +#: ../Doc/faq/programming.rst:1499 msgid "" "Here the ``UpperOut`` class redefines the ``write()`` method to convert the " "argument string to uppercase before calling the underlying ``self.__outfile." @@ -1879,7 +1907,7 @@ msgstr "" "``__getattr__``, consulter :ref:`the language reference ` " "pour plus d'informations sur le contrôle d'accès d'attribut." -#: ../Doc/faq/programming.rst:1471 +#: ../Doc/faq/programming.rst:1506 msgid "" "Note that for more general cases delegation can get trickier. When " "attributes must be set as well as retrieved, the class must define a :meth:" @@ -1893,7 +1921,7 @@ msgstr "" "et il doit le faire avec soin. La mise en œuvre basique de la méthode :meth:" "`__setattr__` est à peu près équivalent à ce qui suit ::" -#: ../Doc/faq/programming.rst:1482 +#: ../Doc/faq/programming.rst:1517 msgid "" "Most :meth:`__setattr__` implementations must modify ``self.__dict__`` to " "store local state for self without causing an infinite recursion." @@ -1902,7 +1930,7 @@ msgstr "" "``self.__dict__`` pour stocker l'état locale de self sans provoquer une " "récursion infinie." -#: ../Doc/faq/programming.rst:1487 +#: ../Doc/faq/programming.rst:1522 msgid "" "How do I call a method defined in a base class from a derived class that " "overrides it?" @@ -1910,11 +1938,11 @@ msgstr "" "Comment appeler une méthode définie dans une classe de base depuis une " "classe dérivée qui la surcharge?" -#: ../Doc/faq/programming.rst:1489 +#: ../Doc/faq/programming.rst:1524 msgid "Use the built-in :func:`super` function::" msgstr "Utiliser la fonction native :func:`super` : ::" -#: ../Doc/faq/programming.rst:1495 +#: ../Doc/faq/programming.rst:1530 msgid "" "For version prior to 3.0, you may be using classic classes: For a class " "definition such as ``class Derived(Base): ...`` you can call method " @@ -1929,13 +1957,13 @@ msgstr "" "Ici, ``Base.meth`` est une méthode non liée, vous devez donc fournir " "l'argument ``self``." -#: ../Doc/faq/programming.rst:1503 +#: ../Doc/faq/programming.rst:1538 msgid "How can I organize my code to make it easier to change the base class?" msgstr "" "Comment puis-je organiser mon code pour permettre de changer la classe de " "base plus facilement?" -#: ../Doc/faq/programming.rst:1505 +#: ../Doc/faq/programming.rst:1540 msgid "" "You could define an alias for the base class, assign the real base class to " "it before your class definition, and use the alias throughout your class. " @@ -1951,13 +1979,13 @@ msgstr "" "voulez décider dynamiquement (par exemple en fonction de la disponibilité " "des ressources) la classe de base à utiliser. Exemple ::" -#: ../Doc/faq/programming.rst:1520 +#: ../Doc/faq/programming.rst:1555 msgid "How do I create static class data and static class methods?" msgstr "" "Comment puis-je créer des données statiques de classe et des méthodes " "statiques de classe?" -#: ../Doc/faq/programming.rst:1522 +#: ../Doc/faq/programming.rst:1557 msgid "" "Both static data and static methods (in the sense of C++ or Java) are " "supported in Python." @@ -1965,7 +1993,7 @@ msgstr "" "Tant les données statiques que les méthodes statiques (dans le sens de C + + " "ou Java) sont pris en charge en Python." -#: ../Doc/faq/programming.rst:1525 +#: ../Doc/faq/programming.rst:1560 msgid "" "For static data, simply define a class attribute. To assign a new value to " "the attribute, you have to explicitly use the class name in the assignment::" @@ -1974,7 +2002,7 @@ msgstr "" "attribuer une nouvelle valeur à l'attribut, vous devez explicitement " "utiliser le nom de classe dans l'affectation ::" -#: ../Doc/faq/programming.rst:1537 +#: ../Doc/faq/programming.rst:1572 msgid "" "``c.count`` also refers to ``C.count`` for any ``c`` such that " "``isinstance(c, C)`` holds, unless overridden by ``c`` itself or by some " @@ -1985,7 +2013,7 @@ msgstr "" "une classe sur le chemin de recherche de classe de base de ``c.__class__`` " "jusqu'à ``C``." -#: ../Doc/faq/programming.rst:1541 +#: ../Doc/faq/programming.rst:1576 msgid "" "Caution: within a method of C, an assignment like ``self.count = 42`` " "creates a new and unrelated instance named \"count\" in ``self``'s own " @@ -1998,11 +2026,11 @@ msgstr "" "statique de classe doit toujours spécifier la classe que l'on soit à " "l'intérieur d'une méthode ou non ::" -#: ../Doc/faq/programming.rst:1548 +#: ../Doc/faq/programming.rst:1583 msgid "Static methods are possible::" msgstr "Les méthodes statiques sont possibles : ::" -#: ../Doc/faq/programming.rst:1556 +#: ../Doc/faq/programming.rst:1591 msgid "" "However, a far more straightforward way to get the effect of a static method " "is via a simple module-level function::" @@ -2010,7 +2038,7 @@ msgstr "" "Cependant, d'une manière beaucoup plus simple pour obtenir l'effet d'une " "méthode statique se fait par une simple fonction au niveau du module ::" -#: ../Doc/faq/programming.rst:1562 +#: ../Doc/faq/programming.rst:1597 msgid "" "If your code is structured so as to define one class (or tightly related " "class hierarchy) per module, this supplies the desired encapsulation." @@ -2019,11 +2047,11 @@ msgstr "" "hiérarchie des classes connexes) par module, ceci fournira l'encapsulation " "souhaitée." -#: ../Doc/faq/programming.rst:1567 +#: ../Doc/faq/programming.rst:1602 msgid "How can I overload constructors (or methods) in Python?" msgstr "Comment puis-je surcharger les constructeurs (ou méthodes) en Python?" -#: ../Doc/faq/programming.rst:1569 +#: ../Doc/faq/programming.rst:1604 msgid "" "This answer actually applies to all methods, but the question usually comes " "up first in the context of constructors." @@ -2031,11 +2059,11 @@ msgstr "" "Cette réponse s'applique en fait à toutes les méthodes, mais la question " "vient généralement en premier dans le contexte des constructeurs." -#: ../Doc/faq/programming.rst:1572 +#: ../Doc/faq/programming.rst:1607 msgid "In C++ you'd write" msgstr "In C++ you'd write" -#: ../Doc/faq/programming.rst:1581 +#: ../Doc/faq/programming.rst:1616 msgid "" "In Python you have to write a single constructor that catches all cases " "using default arguments. For example::" @@ -2043,29 +2071,29 @@ msgstr "" "En Python, vous devez écrire un constructeur unique qui considère tous les " "cas en utilisant des arguments par défaut. Par exemple ::" -#: ../Doc/faq/programming.rst:1591 +#: ../Doc/faq/programming.rst:1626 msgid "This is not entirely equivalent, but close enough in practice." msgstr "" "Ce n'est pas tout à fait équivalent, mais suffisamment proche dans la " "pratique." -#: ../Doc/faq/programming.rst:1593 +#: ../Doc/faq/programming.rst:1628 msgid "You could also try a variable-length argument list, e.g. ::" msgstr "" "Vous pouvez aussi utiliser une liste d'arguments de longueur variable, par " "exemple : ::" -#: ../Doc/faq/programming.rst:1598 +#: ../Doc/faq/programming.rst:1633 msgid "The same approach works for all method definitions." msgstr "La même approche fonctionne pour toutes les définitions de méthode." -#: ../Doc/faq/programming.rst:1602 +#: ../Doc/faq/programming.rst:1637 msgid "I try to use __spam and I get an error about _SomeClassName__spam." msgstr "" "J'essaie d'utiliser ``__spam`` et j'obtiens une erreur à propos de " "``_SomeClassName__spam``." -#: ../Doc/faq/programming.rst:1604 +#: ../Doc/faq/programming.rst:1639 msgid "" "Variable names with double leading underscores are \"mangled\" to provide a " "simple but effective way to define class private variables. Any identifier " @@ -2081,7 +2109,7 @@ msgstr "" "``_classname__spam``, où ``classname`` est le nom de la classe en cours dont " "les éventuels tirets bas ont été retirés." -#: ../Doc/faq/programming.rst:1610 +#: ../Doc/faq/programming.rst:1645 msgid "" "This doesn't guarantee privacy: an outside user can still deliberately " "access the \"_classname__spam\" attribute, and private values are visible in " @@ -2094,17 +2122,17 @@ msgstr "" "programmeurs Python ne prennent jamais la peine d'utiliser des noms de " "variable privée." -#: ../Doc/faq/programming.rst:1617 +#: ../Doc/faq/programming.rst:1652 msgid "My class defines __del__ but it is not called when I delete the object." msgstr "" "Ma classe définit ``__del__`` mais il n'est pas appelé lorsque je supprime " "l'objet." -#: ../Doc/faq/programming.rst:1619 +#: ../Doc/faq/programming.rst:1654 msgid "There are several possible reasons for this." msgstr "Il y a plusieurs raisons possibles pour cela." -#: ../Doc/faq/programming.rst:1621 +#: ../Doc/faq/programming.rst:1656 msgid "" "The del statement does not necessarily call :meth:`__del__` -- it simply " "decrements the object's reference count, and if this reaches zero :meth:" @@ -2114,7 +2142,7 @@ msgstr "" "simplement le compteur de références de l'objet, et si celui ci arrive à " "zéro :meth:`__del__` est appelée." -#: ../Doc/faq/programming.rst:1625 +#: ../Doc/faq/programming.rst:1660 msgid "" "If your data structures contain circular links (e.g. a tree where each child " "has a parent reference and each parent has a list of children) the reference " @@ -2128,7 +2156,7 @@ msgid "" "cases where objects will never be collected." msgstr "" -#: ../Doc/faq/programming.rst:1636 +#: ../Doc/faq/programming.rst:1671 msgid "" "Despite the cycle collector, it's still a good idea to define an explicit " "``close()`` method on objects to be called whenever you're done with them. " @@ -2138,7 +2166,7 @@ msgid "" "once for the same object." msgstr "" -#: ../Doc/faq/programming.rst:1643 +#: ../Doc/faq/programming.rst:1678 msgid "" "Another way to avoid cyclical references is to use the :mod:`weakref` " "module, which allows you to point to objects without incrementing their " @@ -2146,28 +2174,28 @@ msgid "" "references for their parent and sibling references (if they need them!)." msgstr "" -#: ../Doc/faq/programming.rst:1656 +#: ../Doc/faq/programming.rst:1691 msgid "" "Finally, if your :meth:`__del__` method raises an exception, a warning " "message is printed to :data:`sys.stderr`." msgstr "" -#: ../Doc/faq/programming.rst:1661 +#: ../Doc/faq/programming.rst:1696 msgid "How do I get a list of all instances of a given class?" msgstr "" -#: ../Doc/faq/programming.rst:1663 +#: ../Doc/faq/programming.rst:1698 msgid "" "Python does not keep track of all instances of a class (or of a built-in " "type). You can program the class's constructor to keep track of all " "instances by keeping a list of weak references to each instance." msgstr "" -#: ../Doc/faq/programming.rst:1669 +#: ../Doc/faq/programming.rst:1704 msgid "Why does the result of ``id()`` appear to be not unique?" msgstr "" -#: ../Doc/faq/programming.rst:1671 +#: ../Doc/faq/programming.rst:1706 msgid "" "The :func:`id` builtin returns an integer that is guaranteed to be unique " "during the lifetime of the object. Since in CPython, this is the object's " @@ -2176,7 +2204,7 @@ msgid "" "memory. This is illustrated by this example:" msgstr "" -#: ../Doc/faq/programming.rst:1682 +#: ../Doc/faq/programming.rst:1717 msgid "" "The two ids belong to different integer objects that are created before, and " "deleted immediately after execution of the ``id()`` call. To be sure that " @@ -2184,15 +2212,15 @@ msgid "" "reference to the object:" msgstr "" -#: ../Doc/faq/programming.rst:1695 +#: ../Doc/faq/programming.rst:1730 msgid "Modules" msgstr "Modules" -#: ../Doc/faq/programming.rst:1698 +#: ../Doc/faq/programming.rst:1733 msgid "How do I create a .pyc file?" msgstr "" -#: ../Doc/faq/programming.rst:1700 +#: ../Doc/faq/programming.rst:1735 msgid "" "When a module is imported for the first time (or when the source file has " "changed since the current compiled file was created) a ``.pyc`` file " @@ -2203,7 +2231,7 @@ msgid "" "particular ``python`` binary that created it. (See :pep:`3147` for details.)" msgstr "" -#: ../Doc/faq/programming.rst:1708 +#: ../Doc/faq/programming.rst:1743 msgid "" "One reason that a ``.pyc`` file may not be created is a permissions problem " "with the directory containing the source file, meaning that the " @@ -2212,7 +2240,7 @@ msgid "" "testing with a web server." msgstr "" -#: ../Doc/faq/programming.rst:1713 +#: ../Doc/faq/programming.rst:1748 msgid "" "Unless the :envvar:`PYTHONDONTWRITEBYTECODE` environment variable is set, " "creation of a .pyc file is automatic if you're importing a module and Python " @@ -2221,7 +2249,7 @@ msgid "" "subdirectory." msgstr "" -#: ../Doc/faq/programming.rst:1718 +#: ../Doc/faq/programming.rst:1753 msgid "" "Running Python on a top level script is not considered an import and no ``." "pyc`` will be created. For example, if you have a top-level module ``foo." @@ -2231,27 +2259,27 @@ msgid "" "for ``foo`` since ``foo.py`` isn't being imported." msgstr "" -#: ../Doc/faq/programming.rst:1725 +#: ../Doc/faq/programming.rst:1760 msgid "" "If you need to create a ``.pyc`` file for ``foo`` -- that is, to create a ``." "pyc`` file for a module that is not imported -- you can, using the :mod:" "`py_compile` and :mod:`compileall` modules." msgstr "" -#: ../Doc/faq/programming.rst:1729 +#: ../Doc/faq/programming.rst:1764 msgid "" "The :mod:`py_compile` module can manually compile any module. One way is to " "use the ``compile()`` function in that module interactively::" msgstr "" -#: ../Doc/faq/programming.rst:1735 +#: ../Doc/faq/programming.rst:1770 msgid "" "This will write the ``.pyc`` to a ``__pycache__`` subdirectory in the same " "location as ``foo.py`` (or you can override that with the optional parameter " "``cfile``)." msgstr "" -#: ../Doc/faq/programming.rst:1739 +#: ../Doc/faq/programming.rst:1774 msgid "" "You can also automatically compile all files in a directory or directories " "using the :mod:`compileall` module. You can do it from the shell prompt by " @@ -2259,11 +2287,11 @@ msgid "" "Python files to compile::" msgstr "" -#: ../Doc/faq/programming.rst:1748 +#: ../Doc/faq/programming.rst:1783 msgid "How do I find the current module name?" msgstr "" -#: ../Doc/faq/programming.rst:1750 +#: ../Doc/faq/programming.rst:1785 msgid "" "A module can find out its own module name by looking at the predefined " "global variable ``__name__``. If this has the value ``'__main__'``, the " @@ -2272,76 +2300,76 @@ msgid "" "only execute this code after checking ``__name__``::" msgstr "" -#: ../Doc/faq/programming.rst:1765 +#: ../Doc/faq/programming.rst:1800 msgid "How can I have modules that mutually import each other?" msgstr "" -#: ../Doc/faq/programming.rst:1767 +#: ../Doc/faq/programming.rst:1802 msgid "Suppose you have the following modules:" msgstr "" -#: ../Doc/faq/programming.rst:1769 +#: ../Doc/faq/programming.rst:1804 msgid "foo.py::" msgstr "" -#: ../Doc/faq/programming.rst:1774 +#: ../Doc/faq/programming.rst:1809 msgid "bar.py::" msgstr "" -#: ../Doc/faq/programming.rst:1779 +#: ../Doc/faq/programming.rst:1814 msgid "The problem is that the interpreter will perform the following steps:" msgstr "" -#: ../Doc/faq/programming.rst:1781 +#: ../Doc/faq/programming.rst:1816 msgid "main imports foo" msgstr "" -#: ../Doc/faq/programming.rst:1782 +#: ../Doc/faq/programming.rst:1817 msgid "Empty globals for foo are created" msgstr "" -#: ../Doc/faq/programming.rst:1783 +#: ../Doc/faq/programming.rst:1818 msgid "foo is compiled and starts executing" msgstr "" -#: ../Doc/faq/programming.rst:1784 +#: ../Doc/faq/programming.rst:1819 msgid "foo imports bar" msgstr "" -#: ../Doc/faq/programming.rst:1785 +#: ../Doc/faq/programming.rst:1820 msgid "Empty globals for bar are created" msgstr "" -#: ../Doc/faq/programming.rst:1786 +#: ../Doc/faq/programming.rst:1821 msgid "bar is compiled and starts executing" msgstr "" -#: ../Doc/faq/programming.rst:1787 +#: ../Doc/faq/programming.rst:1822 msgid "" "bar imports foo (which is a no-op since there already is a module named foo)" msgstr "" -#: ../Doc/faq/programming.rst:1788 +#: ../Doc/faq/programming.rst:1823 msgid "bar.foo_var = foo.foo_var" msgstr "" -#: ../Doc/faq/programming.rst:1790 +#: ../Doc/faq/programming.rst:1825 msgid "" "The last step fails, because Python isn't done with interpreting ``foo`` yet " "and the global symbol dictionary for ``foo`` is still empty." msgstr "" -#: ../Doc/faq/programming.rst:1793 +#: ../Doc/faq/programming.rst:1828 msgid "" "The same thing happens when you use ``import foo``, and then try to access " "``foo.foo_var`` in global code." msgstr "" -#: ../Doc/faq/programming.rst:1796 +#: ../Doc/faq/programming.rst:1831 msgid "There are (at least) three possible workarounds for this problem." msgstr "" -#: ../Doc/faq/programming.rst:1798 +#: ../Doc/faq/programming.rst:1833 msgid "" "Guido van Rossum recommends avoiding all uses of ``from import ..." "``, and placing all code inside functions. Initializations of global " @@ -2350,59 +2378,59 @@ msgid "" "``.``." msgstr "" -#: ../Doc/faq/programming.rst:1803 +#: ../Doc/faq/programming.rst:1838 msgid "" "Jim Roskind suggests performing steps in the following order in each module:" msgstr "" -#: ../Doc/faq/programming.rst:1805 +#: ../Doc/faq/programming.rst:1840 msgid "" "exports (globals, functions, and classes that don't need imported base " "classes)" msgstr "" -#: ../Doc/faq/programming.rst:1807 +#: ../Doc/faq/programming.rst:1842 msgid "``import`` statements" msgstr "" -#: ../Doc/faq/programming.rst:1808 +#: ../Doc/faq/programming.rst:1843 msgid "" "active code (including globals that are initialized from imported values)." msgstr "" -#: ../Doc/faq/programming.rst:1810 +#: ../Doc/faq/programming.rst:1845 msgid "" "van Rossum doesn't like this approach much because the imports appear in a " "strange place, but it does work." msgstr "" -#: ../Doc/faq/programming.rst:1813 +#: ../Doc/faq/programming.rst:1848 msgid "" "Matthias Urlichs recommends restructuring your code so that the recursive " "import is not necessary in the first place." msgstr "" -#: ../Doc/faq/programming.rst:1816 +#: ../Doc/faq/programming.rst:1851 msgid "These solutions are not mutually exclusive." msgstr "" -#: ../Doc/faq/programming.rst:1820 +#: ../Doc/faq/programming.rst:1855 msgid "__import__('x.y.z') returns ; how do I get z?" msgstr "" -#: ../Doc/faq/programming.rst:1822 +#: ../Doc/faq/programming.rst:1857 msgid "" "Consider using the convenience function :func:`~importlib.import_module` " "from :mod:`importlib` instead::" msgstr "" -#: ../Doc/faq/programming.rst:1829 +#: ../Doc/faq/programming.rst:1864 msgid "" "When I edit an imported module and reimport it, the changes don't show up. " "Why does this happen?" msgstr "" -#: ../Doc/faq/programming.rst:1831 +#: ../Doc/faq/programming.rst:1866 msgid "" "For reasons of efficiency as well as consistency, Python only reads the " "module file on the first time a module is imported. If it didn't, in a " @@ -2411,13 +2439,13 @@ msgid "" "re-reading of a changed module, do this::" msgstr "" -#: ../Doc/faq/programming.rst:1841 +#: ../Doc/faq/programming.rst:1876 msgid "" "Warning: this technique is not 100% fool-proof. In particular, modules " "containing statements like ::" msgstr "" -#: ../Doc/faq/programming.rst:1846 +#: ../Doc/faq/programming.rst:1881 msgid "" "will continue to work with the old version of the imported objects. If the " "module contains class definitions, existing class instances will *not* be " @@ -2425,7 +2453,7 @@ msgid "" "paradoxical behaviour::" msgstr "" -#: ../Doc/faq/programming.rst:1859 +#: ../Doc/faq/programming.rst:1894 msgid "" "The nature of the problem is made clear if you print out the \"identity\" of " "the class objects::" diff --git a/howto/unicode.po b/howto/unicode.po index 549c8d2a5..8b46a0dfb 100644 --- a/howto/unicode.po +++ b/howto/unicode.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2019-03-04 16:43+0100\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" @@ -28,178 +28,53 @@ msgid "1.12" msgstr "1.12" #: ../Doc/howto/unicode.rst:9 +#, fuzzy msgid "" -"This HOWTO discusses Python support for Unicode, and explains various " -"problems that people commonly encounter when trying to work with Unicode." +"This HOWTO discusses Python's support for the Unicode specification for " +"representing textual data, and explains various problems that people " +"commonly encounter when trying to work with Unicode." msgstr "" "Ce HOWTO décrit le support d'Unicode par Python et explique les différents " "problèmes généralement rencontrés par les utilisateurs qui travaillent avec " "Unicode." -#: ../Doc/howto/unicode.rst:14 +#: ../Doc/howto/unicode.rst:15 msgid "Introduction to Unicode" msgstr "Introduction à Unicode" -#: ../Doc/howto/unicode.rst:17 -msgid "History of Character Codes" -msgstr "Histoire des codes de caractères" - -#: ../Doc/howto/unicode.rst:19 -msgid "" -"In 1968, the American Standard Code for Information Interchange, better " -"known by its acronym ASCII, was standardized. ASCII defined numeric codes " -"for various characters, with the numeric values running from 0 to 127. For " -"example, the lowercase letter 'a' is assigned 97 as its code value." -msgstr "" -"En 1968, l'*American Standard Code for Information Interchange*, mieux connu " -"sous son acronyme *ASCII*, a été normalisé. L'ASCII définissait des codes " -"numériques pour différents caractères, les valeurs numériques s'étendant de " -"0 à 127. Par exemple, la lettre minuscule « a » est assignée à 97 comme " -"valeur de code." - -#: ../Doc/howto/unicode.rst:24 -msgid "" -"ASCII was an American-developed standard, so it only defined unaccented " -"characters. There was an 'e', but no 'é' or 'Í'. This meant that languages " -"which required accented characters couldn't be faithfully represented in " -"ASCII. (Actually the missing accents matter for English, too, which contains " -"words such as 'naïve' and 'café', and some publications have house styles " -"which require spellings such as 'coöperate'.)" -msgstr "" -"ASCII était une norme développée par les États-Unis, elle ne définissait " -"donc que des caractères non accentués. Il y avait « e », mais pas « é » ou " -"« Í ». Cela signifiait que les langues qui nécessitaient des caractères " -"accentués ne pouvaient pas être fidèlement représentées en ASCII. (En fait, " -"les accents manquants importaient pour l'anglais aussi, qui contient des " -"mots tels que « naïve » et « café », et certaines publications ont des " -"styles propres qui exigent des orthographes tels que « *coöperate* ».)" - -#: ../Doc/howto/unicode.rst:31 -msgid "" -"For a while people just wrote programs that didn't display accents. In the " -"mid-1980s an Apple II BASIC program written by a French speaker might have " -"lines like these:" -msgstr "" -"Pendant un certain temps, les gens ont juste écrit des programmes qui " -"n'affichaient pas d'accents. Au milieu des années 1980, un programme Apple " -"II BASIC écrit par un français pouvait avoir des lignes comme celles-ci : ::" - -#: ../Doc/howto/unicode.rst:40 -msgid "" -"Those messages should contain accents (terminée, paramètre, enregistrés) and " -"they just look wrong to someone who can read French." -msgstr "" -"Ces messages devraient contenir des accents (terminée, paramètre, " -"enregistrés) et ils ont juste l'air anormaux à quelqu'un lisant le français." - -#: ../Doc/howto/unicode.rst:43 -msgid "" -"In the 1980s, almost all personal computers were 8-bit, meaning that bytes " -"could hold values ranging from 0 to 255. ASCII codes only went up to 127, " -"so some machines assigned values between 128 and 255 to accented " -"characters. Different machines had different codes, however, which led to " -"problems exchanging files. Eventually various commonly used sets of values " -"for the 128--255 range emerged. Some were true standards, defined by the " -"International Organization for Standardization, and some were *de facto* " -"conventions that were invented by one company or another and managed to " -"catch on." -msgstr "" -"Dans les années 1980, presque tous les ordinateurs personnels étaient à 8 " -"bits, ce qui signifie que les octets pouvaient contenir des valeurs allant " -"de 0 à 255. Les codes ASCII allaient seulement jusqu'à 127, alors certaines " -"machines ont assigné les valeurs entre 128 et 255 à des caractères " -"accentués. Différentes machines avaient des codes différents, cependant, ce " -"qui a conduit à des problèmes d'échange de fichiers. Finalement, divers " -"ensembles de valeurs couramment utilisés pour la gamme 128--255 ont émergé. " -"Certains étaient de véritables normes, définies par l'Organisation " -"internationale de normalisation, et certaines étaient des conventions *de " -"facto* qui ont été inventées par une entreprise ou une autre et qui ont fini " -"par se répandre." - -#: ../Doc/howto/unicode.rst:52 -msgid "" -"255 characters aren't very many. For example, you can't fit both the " -"accented characters used in Western Europe and the Cyrillic alphabet used " -"for Russian into the 128--255 range because there are more than 128 such " -"characters." -msgstr "" -"255 caractères, ça n'est pas beaucoup. Par exemple, vous ne pouvez pas " -"contenir à la fois les caractères accentués utilisés en Europe occidentale " -"et l'alphabet cyrillique utilisé pour le russe dans la gamme 128--255, car " -"il y a plus de 128 de tous ces caractères." - -#: ../Doc/howto/unicode.rst:56 -msgid "" -"You could write files using different codes (all your Russian files in a " -"coding system called KOI8, all your French files in a different coding " -"system called Latin1), but what if you wanted to write a French document " -"that quotes some Russian text? In the 1980s people began to want to solve " -"this problem, and the Unicode standardization effort began." -msgstr "" -"Vous pouviez écrire les fichiers avec des codes différents (tous vos " -"fichiers russes dans un système de codage appelé *KOI8*, tous vos fichiers " -"français dans un système de codage différent appelé *Latin1*), mais que " -"faire si vous souhaitiez écrire un document français citant du texte russe ? " -"Dans les années 80, les gens ont commencé à vouloir résoudre ce problème, et " -"les efforts de standardisation Unicode ont commencé." - -#: ../Doc/howto/unicode.rst:62 -msgid "" -"Unicode started out using 16-bit characters instead of 8-bit characters. 16 " -"bits means you have 2^16 = 65,536 distinct values available, making it " -"possible to represent many different characters from many different " -"alphabets; an initial goal was to have Unicode contain the alphabets for " -"every single human language. It turns out that even 16 bits isn't enough to " -"meet that goal, and the modern Unicode specification uses a wider range of " -"codes, 0 through 1,114,111 ( ``0x10FFFF`` in base 16)." -msgstr "" -"Unicode a commencé par utiliser des caractères 16 bits au lieu de 8 bits. 16 " -"bits signifie que vous avez 2^16 = 65 536 valeurs distinctes disponibles, ce " -"qui permet de représenter de nombreux caractères différents à partir de " -"nombreux alphabets différents. Un des objectifs initiaux était de faire en " -"sorte que Unicode contienne les alphabets de chaque langue humaine. Il " -"s’avère que même 16 bits ne suffisent pas pour atteindre cet objectif, et la " -"spécification Unicode moderne utilise une gamme de codes plus étendue, " -"allant de 0 à 1 114 111 (``0x10FFFF`` en base 16)." +#: ../Doc/howto/unicode.rst:18 +msgid "Definitions" +msgstr "Définitions" -#: ../Doc/howto/unicode.rst:70 +#: ../Doc/howto/unicode.rst:20 msgid "" -"There's a related ISO standard, ISO 10646. Unicode and ISO 10646 were " -"originally separate efforts, but the specifications were merged with the 1.1 " -"revision of Unicode." +"Today's programs need to be able to handle a wide variety of characters. " +"Applications are often internationalized to display messages and output in a " +"variety of user-selectable languages; the same program might need to output " +"an error message in English, French, Japanese, Hebrew, or Russian. Web " +"content can be written in any of these languages and can also include a " +"variety of emoji symbols. Python's string type uses the Unicode Standard for " +"representing characters, which lets Python programs work with all these " +"different possible characters." msgstr "" -"Il existe une norme ISO connexe, ISO 10646. Unicode et ISO 10646 étaient à " -"l’origine des efforts séparés, mais les spécifications ont été fusionnées " -"avec la révision 1.1 d’Unicode." -#: ../Doc/howto/unicode.rst:74 +#: ../Doc/howto/unicode.rst:30 msgid "" -"(This discussion of Unicode's history is highly simplified. The precise " -"historical details aren't necessary for understanding how to use Unicode " -"effectively, but if you're curious, consult the Unicode consortium site " -"listed in the References or the `Wikipedia entry for Unicode `_ for more information.)" +"Unicode (https://www.unicode.org/) is a specification that aims to list " +"every character used by human languages and give each character its own " +"unique code. The Unicode specifications are continually revised and updated " +"to add new languages and symbols." msgstr "" -"(Cette discussion sur l’historique d’Unicode est extrêmement simplifiée. Les " -"détails historiques précis ne sont pas nécessaires pour comprendre comment " -"utiliser efficacement Unicode, mais si vous êtes curieux, consultez le site " -"du consortium Unicode indiqué dans les références ou la `page Wikipédia pour " -"Unicode `_ (page en anglais) " -"pour plus d’informations.)" - -#: ../Doc/howto/unicode.rst:83 -msgid "Definitions" -msgstr "Définitions" -#: ../Doc/howto/unicode.rst:85 +#: ../Doc/howto/unicode.rst:35 +#, fuzzy msgid "" "A **character** is the smallest possible component of a text. 'A', 'B', " "'C', etc., are all different characters. So are 'È' and 'Í'. Characters " -"are abstractions, and vary depending on the language or context you're " -"talking about. For example, the symbol for ohms (Ω) is usually drawn much " -"like the capital letter omega (Ω) in the Greek alphabet (they may even be " -"the same in some fonts), but these are two different characters that have " -"different meanings." +"vary depending on the language or context you're talking about. For " +"example, there's a character for \"Roman Numeral One\", 'Ⅰ', that's separate " +"from the uppercase letter 'I'. They'll usually look the same, but these are " +"two different characters that have different meanings." msgstr "" "Un **caractère** est le plus petit composant possible d'un texte. « A », " "« B », « C », etc., sont tous des caractères différents. Ainsi sont « È » " @@ -210,14 +85,14 @@ msgstr "" "mais ce sont deux caractères différents qui ont des significations " "différentes." -#: ../Doc/howto/unicode.rst:93 +#: ../Doc/howto/unicode.rst:42 +#, fuzzy msgid "" "The Unicode standard describes how characters are represented by **code " -"points**. A code point is an integer value, usually denoted in base 16. In " -"the standard, a code point is written using the notation ``U+12CA`` to mean " -"the character with value ``0x12ca`` (4,810 decimal). The Unicode standard " -"contains a lot of tables listing characters and their corresponding code " -"points:" +"points**. A code point value is an integer in the range 0 to 0x10FFFF " +"(about 1.1 million values, with some 110 thousand assigned so far). In the " +"standard and in this document, a code point is written using the notation ``U" +"+265E`` to mean the character with value ``0x265e`` (9,822 in decimal)." msgstr "" "Le standard Unicode décrit la façon dont les caractères sont représentés par " "des **points de code**. Un point de code est une valeur entière, " @@ -227,12 +102,19 @@ msgstr "" "nombre de tableaux répertoriant les caractères et leurs points de code " "correspondants :" -#: ../Doc/howto/unicode.rst:107 +#: ../Doc/howto/unicode.rst:49 +msgid "" +"The Unicode standard contains a lot of tables listing characters and their " +"corresponding code points:" +msgstr "" + +#: ../Doc/howto/unicode.rst:70 +#, fuzzy msgid "" "Strictly, these definitions imply that it's meaningless to say 'this is " -"character ``U+12CA``'. ``U+12CA`` is a code point, which represents some " -"particular character; in this case, it represents the character 'ETHIOPIC " -"SYLLABLE WI'. In informal contexts, this distinction between code points " +"character ``U+265E``'. ``U+265E`` is a code point, which represents some " +"particular character; in this case, it represents the character 'BLACK CHESS " +"KNIGHT', '♞'. In informal contexts, this distinction between code points " "and characters will sometimes be forgotten." msgstr "" "De manière stricte, ces définitions impliquent qu'il est inutile de dire " @@ -241,7 +123,7 @@ msgstr "" "caractère « ETHIOPIC SYLLABLE WI ». Dans des contextes informels, cette " "distinction entre les points de code et les caractères est parfois oubliée." -#: ../Doc/howto/unicode.rst:113 +#: ../Doc/howto/unicode.rst:77 msgid "" "A character is represented on a screen or on paper by a set of graphical " "elements that's called a **glyph**. The glyph for an uppercase A, for " @@ -258,17 +140,19 @@ msgstr "" "déterminer le bon glyphe à afficher est généralement le travail d’une " "bibliothèque graphique ou du moteur de rendu des polices d’un terminal." -#: ../Doc/howto/unicode.rst:122 +#: ../Doc/howto/unicode.rst:86 msgid "Encodings" msgstr "Encodages" -#: ../Doc/howto/unicode.rst:124 +#: ../Doc/howto/unicode.rst:88 +#, fuzzy msgid "" "To summarize the previous section: a Unicode string is a sequence of code " "points, which are numbers from 0 through ``0x10FFFF`` (1,114,111 decimal). " -"This sequence needs to be represented as a set of bytes (meaning, values " -"from 0 through 255) in memory. The rules for translating a Unicode string " -"into a sequence of bytes are called an **encoding**." +"This sequence of code points needs to be represented in memory as a set of " +"**code units**, and **code units** are then mapped to 8-bit bytes. The " +"rules for translating a Unicode string into a sequence of bytes are called a " +"**character encoding**, or just an **encoding**." msgstr "" "Pour résumer la section précédente : une chaîne Unicode est une séquence de " "points de code, qui sont des nombres de 0 à ``0x10FFFF`` (1 114 111 en " @@ -277,15 +161,17 @@ msgstr "" "règles de traduction d'une chaîne Unicode en une séquence d'octets sont " "appelées un **encodage**." -#: ../Doc/howto/unicode.rst:130 +#: ../Doc/howto/unicode.rst:96 +#, fuzzy msgid "" -"The first encoding you might think of is an array of 32-bit integers. In " -"this representation, the string \"Python\" would look like this:" +"The first encoding you might think of is using 32-bit integers as the code " +"unit, and then using the CPU's representation of 32-bit integers. In this " +"representation, the string \"Python\" might look like this:" msgstr "" "Le premier encodage auquel vous pouvez penser est un tableau d’entiers sur " "32 bits. Dans cette représentation, la chaîne « Python » ressemble à ceci:" -#: ../Doc/howto/unicode.rst:139 +#: ../Doc/howto/unicode.rst:106 msgid "" "This representation is straightforward but using it presents a number of " "problems." @@ -293,13 +179,13 @@ msgstr "" "Cette représentation est simple mais son utilisation pose un certain nombre " "de problèmes." -#: ../Doc/howto/unicode.rst:142 +#: ../Doc/howto/unicode.rst:109 msgid "It's not portable; different processors order the bytes differently." msgstr "" "Elle n’est pas portable ; des processeurs différents ordonnent les octets " "différemment." -#: ../Doc/howto/unicode.rst:144 +#: ../Doc/howto/unicode.rst:111 msgid "" "It's very wasteful of space. In most texts, the majority of the code points " "are less than 127, or less than 255, so a lot of space is occupied by " @@ -319,7 +205,7 @@ msgstr "" "utilisation du disque et de la bande passante réseau par un facteur de 4 est " "intolérable." -#: ../Doc/howto/unicode.rst:152 +#: ../Doc/howto/unicode.rst:119 msgid "" "It's not compatible with existing C functions such as ``strlen()``, so a new " "family of wide string functions would need to be used." @@ -328,91 +214,20 @@ msgstr "" "``strlen()``, il faudrait donc utiliser une nouvelle famille de fonctions, " "celle des chaînes larges (*wide strings*)." -#: ../Doc/howto/unicode.rst:155 -msgid "" -"Many Internet standards are defined in terms of textual data, and can't " -"handle content with embedded zero bytes." -msgstr "" -"De nombreuses normes Internet sont définies en termes de données textuelles " -"et ne peuvent pas gérer le contenu incorporant des octets *zéro*." - -#: ../Doc/howto/unicode.rst:158 -msgid "" -"Generally people don't use this encoding, instead choosing other encodings " -"that are more efficient and convenient. UTF-8 is probably the most commonly " -"supported encoding; it will be discussed below." -msgstr "" -"Généralement, les gens n’utilisent pas cet encodage, mais optent pour " -"d’autres encodages plus efficaces et pratiques. UTF-8 est probablement " -"l’encodage le plus couramment pris en charge ; celui-ci sera abordé ci-" -"dessous." - -#: ../Doc/howto/unicode.rst:162 -msgid "" -"Encodings don't have to handle every possible Unicode character, and most " -"encodings don't. The rules for converting a Unicode string into the ASCII " -"encoding, for example, are simple; for each code point:" -msgstr "" -"Les encodages n'ont pas à gérer tous les caractères Unicode possibles, et " -"les plupart ne le font pas. Les règles pour convertir une chaîne Unicode en " -"codage ASCII, par exemple, sont simples. pour chaque point de code :" - -#: ../Doc/howto/unicode.rst:166 -msgid "" -"If the code point is < 128, each byte is the same as the value of the code " -"point." -msgstr "" -"Si le point de code est < 128, chaque octet est identique à la valeur du " -"point de code." - -#: ../Doc/howto/unicode.rst:169 -msgid "" -"If the code point is 128 or greater, the Unicode string can't be represented " -"in this encoding. (Python raises a :exc:`UnicodeEncodeError` exception in " -"this case.)" -msgstr "" -"Si le point de code est égal à 128 ou plus, la chaîne Unicode ne peut pas " -"être représentée dans ce codage (Python déclenche une exception :exc:" -"`UnicodeEncodeError` dans ce cas)." - -#: ../Doc/howto/unicode.rst:173 +#: ../Doc/howto/unicode.rst:122 msgid "" -"Latin-1, also known as ISO-8859-1, is a similar encoding. Unicode code " -"points 0--255 are identical to the Latin-1 values, so converting to this " -"encoding simply requires converting code points to byte values; if a code " -"point larger than 255 is encountered, the string can't be encoded into " -"Latin-1." +"Therefore this encoding isn't used very much, and people instead choose " +"other encodings that are more efficient and convenient, such as UTF-8." msgstr "" -"Latin-1, également connu sous le nom de ISO-8859-1, est un encodage " -"similaire. Les points de code Unicode 0–255 étant identiques aux valeurs de " -"Latin-1, la conversion en cet encodage nécessite simplement la conversion " -"des points de code en octets de même valeur ; si un point de code supérieur " -"à 255 est rencontré, la chaîne ne peut pas être codée en latin-1." -#: ../Doc/howto/unicode.rst:178 +#: ../Doc/howto/unicode.rst:125 +#, fuzzy msgid "" -"Encodings don't have to be simple one-to-one mappings like Latin-1. " -"Consider IBM's EBCDIC, which was used on IBM mainframes. Letter values " -"weren't in one block: 'a' through 'i' had values from 129 to 137, but 'j' " -"through 'r' were 145 through 153. If you wanted to use EBCDIC as an " -"encoding, you'd probably use some sort of lookup table to perform the " -"conversion, but this is largely an internal detail." -msgstr "" -"Les encodages ne doivent pas nécessairement être de simples mappages un à " -"un, comme Latin-1. Prenons l’exemple du code EBCDIC d’IBM, utilisé sur les " -"ordinateurs centraux IBM. Les valeurs de lettre ne faisaient pas partie d’un " -"bloc: les lettres « a » à « i » étaient comprises entre 129 et 137, mais les " -"lettres « j » à « r » étaient comprises entre 145 et 153. Si vous vouliez " -"utiliser EBCDIC comme encodage, vous auriez probablement utilisé une sorte " -"de table de correspondance pour effectuer la conversion, mais il s’agit en " -"surtout d’un détail d'implémentation." - -#: ../Doc/howto/unicode.rst:185 -msgid "" -"UTF-8 is one of the most commonly used encodings. UTF stands for \"Unicode " -"Transformation Format\", and the '8' means that 8-bit numbers are used in " -"the encoding. (There are also a UTF-16 and UTF-32 encodings, but they are " -"less frequently used than UTF-8.) UTF-8 uses the following rules:" +"UTF-8 is one of the most commonly used encodings, and Python often defaults " +"to using it. UTF stands for \"Unicode Transformation Format\", and the '8' " +"means that 8-bit values are used in the encoding. (There are also UTF-16 " +"and UTF-32 encodings, but they are less frequently used than UTF-8.) UTF-8 " +"uses the following rules:" msgstr "" "UTF-8 est l’un des encodages les plus couramment utilisés. UTF signifie " "« Unicode Transformation Format » (format de transformation Unicode) et " @@ -420,14 +235,14 @@ msgstr "" "existe également des codages UTF-16 et UTF-32, mais ils sont moins souvent " "utilisés que UTF-8.) UTF-8 utilise les règles suivantes :" -#: ../Doc/howto/unicode.rst:190 +#: ../Doc/howto/unicode.rst:131 msgid "" "If the code point is < 128, it's represented by the corresponding byte value." msgstr "" "Si le point de code est < 128, chaque octet est identique à la valeur du " "point de code." -#: ../Doc/howto/unicode.rst:191 +#: ../Doc/howto/unicode.rst:132 msgid "" "If the code point is >= 128, it's turned into a sequence of two, three, or " "four bytes, where each byte of the sequence is between 128 and 255." @@ -436,15 +251,15 @@ msgstr "" "trois ou quatre octets, où chaque octet de la séquence est compris entre 128 " "et 255." -#: ../Doc/howto/unicode.rst:194 +#: ../Doc/howto/unicode.rst:135 msgid "UTF-8 has several convenient properties:" msgstr "UTF-8 a plusieurs propriétés intéressantes :" -#: ../Doc/howto/unicode.rst:196 +#: ../Doc/howto/unicode.rst:137 msgid "It can handle any Unicode code point." msgstr "Il peut gérer n'importe quel point de code Unicode." -#: ../Doc/howto/unicode.rst:197 +#: ../Doc/howto/unicode.rst:138 msgid "" "A Unicode string is turned into a sequence of bytes containing no embedded " "zero bytes. This avoids byte-ordering issues, and means UTF-8 strings can " @@ -457,11 +272,11 @@ msgstr "" "``strcpy()`` et envoyées via des protocoles qui ne peuvent pas gérer les " "octets *zéro*." -#: ../Doc/howto/unicode.rst:201 +#: ../Doc/howto/unicode.rst:142 msgid "A string of ASCII text is also valid UTF-8 text." msgstr "Une chaîne de texte ASCII est également un texte UTF-8 valide." -#: ../Doc/howto/unicode.rst:202 +#: ../Doc/howto/unicode.rst:143 msgid "" "UTF-8 is fairly compact; the majority of commonly used characters can be " "represented with one or two bytes." @@ -469,7 +284,7 @@ msgstr "" "UTF-8 est assez compact. La majorité des caractères couramment utilisés " "peuvent être représentés avec un ou deux octets." -#: ../Doc/howto/unicode.rst:204 +#: ../Doc/howto/unicode.rst:145 msgid "" "If bytes are corrupted or lost, it's possible to determine the start of the " "next UTF-8-encoded code point and resynchronize. It's also unlikely that " @@ -480,12 +295,12 @@ msgstr "" "est également improbable que des données 8-bits aléatoires ressemblent à du " "UTF-8 valide." -#: ../Doc/howto/unicode.rst:211 ../Doc/howto/unicode.rst:485 -#: ../Doc/howto/unicode.rst:705 +#: ../Doc/howto/unicode.rst:152 ../Doc/howto/unicode.rst:508 +#: ../Doc/howto/unicode.rst:729 msgid "References" msgstr "Références" -#: ../Doc/howto/unicode.rst:213 +#: ../Doc/howto/unicode.rst:154 msgid "" "The `Unicode Consortium site `_ has character " "charts, a glossary, and PDF versions of the Unicode specification. Be " @@ -494,14 +309,21 @@ msgid "" "the site." msgstr "" -#: ../Doc/howto/unicode.rst:218 +#: ../Doc/howto/unicode.rst:159 +msgid "" +"On the Computerphile Youtube channel, Tom Scott briefly `discusses the " +"history of Unicode and UTF-8 ` " +"(9 minutes 36 seconds)." +msgstr "" + +#: ../Doc/howto/unicode.rst:163 msgid "" "To help understand the standard, Jukka Korpela has written `an introductory " "guide `_ to reading the Unicode " "character tables." msgstr "" -#: ../Doc/howto/unicode.rst:222 +#: ../Doc/howto/unicode.rst:167 msgid "" "Another `good introductory article `_\" and `UTF-8 " "`_, for example." msgstr "" -#: ../Doc/howto/unicode.rst:233 +#: ../Doc/howto/unicode.rst:178 msgid "Python's Unicode Support" msgstr "" -#: ../Doc/howto/unicode.rst:235 +#: ../Doc/howto/unicode.rst:180 msgid "" "Now that you've learned the rudiments of Unicode, we can look at Python's " "Unicode features." msgstr "" -#: ../Doc/howto/unicode.rst:239 +#: ../Doc/howto/unicode.rst:184 msgid "The String Type" msgstr "" -#: ../Doc/howto/unicode.rst:241 +#: ../Doc/howto/unicode.rst:186 msgid "" -"Since Python 3.0, the language features a :class:`str` type that contain " -"Unicode characters, meaning any string created using ``\"unicode rocks!\"``, " +"Since Python 3.0, the language's :class:`str` type contains Unicode " +"characters, meaning any string created using ``\"unicode rocks!\"``, " "``'unicode rocks!'``, or the triple-quoted string syntax is stored as " "Unicode." msgstr "" -#: ../Doc/howto/unicode.rst:245 +#: ../Doc/howto/unicode.rst:190 msgid "" "The default encoding for Python source code is UTF-8, so you can simply " "include a Unicode character in a string literal::" msgstr "" -#: ../Doc/howto/unicode.rst:255 -msgid "" -"You can use a different encoding from UTF-8 by putting a specially-formatted " -"comment as the first or second line of the source code::" -msgstr "" - -#: ../Doc/howto/unicode.rst:260 +#: ../Doc/howto/unicode.rst:200 msgid "" "Side note: Python 3 also supports using Unicode characters in identifiers::" msgstr "" -#: ../Doc/howto/unicode.rst:266 +#: ../Doc/howto/unicode.rst:206 msgid "" "If you can't enter a particular character in your editor or want to keep the " "source code ASCII-only for some reason, you can also use escape sequences in " @@ -564,14 +380,14 @@ msgid "" "delta glyph instead of a \\u escape.) ::" msgstr "" -#: ../Doc/howto/unicode.rst:278 +#: ../Doc/howto/unicode.rst:218 msgid "" "In addition, one can create a string using the :func:`~bytes.decode` method " "of :class:`bytes`. This method takes an *encoding* argument, such as " "``UTF-8``, and optionally an *errors* argument." msgstr "" -#: ../Doc/howto/unicode.rst:282 +#: ../Doc/howto/unicode.rst:222 msgid "" "The *errors* argument specifies the response when the input string can't be " "converted according to the encoding's rules. Legal values for this argument " @@ -582,16 +398,16 @@ msgid "" "examples show the differences::" msgstr "" -#: ../Doc/howto/unicode.rst:302 +#: ../Doc/howto/unicode.rst:242 msgid "" "Encodings are specified as strings containing the encoding's name. Python " -"3.2 comes with roughly 100 different encodings; see the Python Library " -"Reference at :ref:`standard-encodings` for a list. Some encodings have " -"multiple names; for example, ``'latin-1'``, ``'iso_8859_1'`` and ``'8859``' " -"are all synonyms for the same encoding." +"comes with roughly 100 different encodings; see the Python Library Reference " +"at :ref:`standard-encodings` for a list. Some encodings have multiple " +"names; for example, ``'latin-1'``, ``'iso_8859_1'`` and ``'8859``' are all " +"synonyms for the same encoding." msgstr "" -#: ../Doc/howto/unicode.rst:308 +#: ../Doc/howto/unicode.rst:248 msgid "" "One-character Unicode strings can also be created with the :func:`chr` built-" "in function, which takes integers and returns a Unicode string of length 1 " @@ -600,18 +416,18 @@ msgid "" "returns the code point value::" msgstr "" -#: ../Doc/howto/unicode.rst:320 +#: ../Doc/howto/unicode.rst:260 msgid "Converting to Bytes" msgstr "" -#: ../Doc/howto/unicode.rst:322 +#: ../Doc/howto/unicode.rst:262 msgid "" "The opposite method of :meth:`bytes.decode` is :meth:`str.encode`, which " "returns a :class:`bytes` representation of the Unicode string, encoded in " "the requested *encoding*." msgstr "" -#: ../Doc/howto/unicode.rst:326 +#: ../Doc/howto/unicode.rst:266 msgid "" "The *errors* parameter is the same as the parameter of the :meth:`~bytes." "decode` method but supports a few more possible handlers. As well as " @@ -622,11 +438,11 @@ msgid "" "``namereplace`` (inserts a ``\\N{...}`` escape sequence)." msgstr "" -#: ../Doc/howto/unicode.rst:334 +#: ../Doc/howto/unicode.rst:274 msgid "The following example shows the different results::" msgstr "" -#: ../Doc/howto/unicode.rst:355 +#: ../Doc/howto/unicode.rst:295 msgid "" "The low-level routines for registering and accessing the available encodings " "are found in the :mod:`codecs` module. Implementing new encodings also " @@ -636,11 +452,11 @@ msgid "" "module won't be covered in this HOWTO." msgstr "" -#: ../Doc/howto/unicode.rst:364 +#: ../Doc/howto/unicode.rst:304 msgid "Unicode Literals in Python Source Code" msgstr "" -#: ../Doc/howto/unicode.rst:366 +#: ../Doc/howto/unicode.rst:306 msgid "" "In Python source code, specific Unicode code points can be written using the " "``\\u`` escape sequence, which is followed by four hex digits giving the " @@ -648,7 +464,7 @@ msgid "" "digits, not four::" msgstr "" -#: ../Doc/howto/unicode.rst:378 +#: ../Doc/howto/unicode.rst:318 msgid "" "Using escape sequences for code points greater than 127 is fine in small " "doses, but becomes an annoyance if you're using many accented characters, as " @@ -657,7 +473,7 @@ msgid "" "function, but this is even more tedious." msgstr "" -#: ../Doc/howto/unicode.rst:384 +#: ../Doc/howto/unicode.rst:324 msgid "" "Ideally, you'd want to be able to write literals in your language's natural " "encoding. You could then edit Python source code with your favorite editor " @@ -665,7 +481,7 @@ msgid "" "characters used at runtime." msgstr "" -#: ../Doc/howto/unicode.rst:389 +#: ../Doc/howto/unicode.rst:329 msgid "" "Python supports writing source code in UTF-8 by default, but you can use " "almost any encoding if you declare the encoding being used. This is done by " @@ -673,7 +489,7 @@ msgid "" "file::" msgstr "" -#: ../Doc/howto/unicode.rst:399 +#: ../Doc/howto/unicode.rst:339 msgid "" "The syntax is inspired by Emacs's notation for specifying variables local to " "a file. Emacs supports many different variables, but Python only supports " @@ -682,37 +498,37 @@ msgid "" "looks for ``coding: name`` or ``coding=name`` in the comment." msgstr "" -#: ../Doc/howto/unicode.rst:405 +#: ../Doc/howto/unicode.rst:345 msgid "" "If you don't include such a comment, the default encoding used will be UTF-8 " "as already mentioned. See also :pep:`263` for more information." msgstr "" -#: ../Doc/howto/unicode.rst:410 +#: ../Doc/howto/unicode.rst:350 msgid "Unicode Properties" msgstr "" -#: ../Doc/howto/unicode.rst:412 +#: ../Doc/howto/unicode.rst:352 msgid "" "The Unicode specification includes a database of information about code " -"points. For each defined code point, the information includes the " -"character's name, its category, the numeric value if applicable (Unicode has " -"characters representing the Roman numerals and fractions such as one-third " -"and four-fifths). There are also properties related to the code point's use " -"in bidirectional text and other display-related properties." +"points. For each defined code point, the information includes the " +"character's name, its category, the numeric value if applicable (for " +"characters representing numeric concepts such as the Roman numerals, " +"fractions such as one-third and four-fifths, etc.). There are also display-" +"related properties, such as how to use the code point in bidirectional text." msgstr "" -#: ../Doc/howto/unicode.rst:419 +#: ../Doc/howto/unicode.rst:360 msgid "" "The following program displays some information about several characters, " "and prints the numeric value of one particular character::" msgstr "" -#: ../Doc/howto/unicode.rst:433 +#: ../Doc/howto/unicode.rst:374 msgid "When run, this prints:" msgstr "" -#: ../Doc/howto/unicode.rst:444 +#: ../Doc/howto/unicode.rst:385 msgid "" "The category codes are abbreviations describing the nature of the character. " "These are grouped into categories such as \"Letter\", \"Number\", " @@ -725,11 +541,67 @@ msgid "" "codes." msgstr "" +#: ../Doc/howto/unicode.rst:396 +msgid "Comparing Strings" +msgstr "" + +#: ../Doc/howto/unicode.rst:398 +msgid "" +"Unicode adds some complication to comparing strings, because the same set of " +"characters can be represented by different sequences of code points. For " +"example, a letter like 'ê' can be represented as a single code point U+00EA, " +"or as U+0065 U+0302, which is the code point for 'e' followed by a code " +"point for 'COMBINING CIRCUMFLEX ACCENT'. These will produce the same output " +"when printed, but one is a string of length 1 and the other is of length 2." +msgstr "" + +#: ../Doc/howto/unicode.rst:406 +msgid "" +"One tool for a case-insensitive comparison is the :meth:`~str.casefold` " +"string method that converts a string to a case-insensitive form following an " +"algorithm described by the Unicode Standard. This algorithm has special " +"handling for characters such as the German letter 'ß' (code point U+00DF), " +"which becomes the pair of lowercase letters 'ss'." +msgstr "" + +#: ../Doc/howto/unicode.rst:419 +msgid "" +"A second tool is the :mod:`unicodedata` module's :func:`~unicodedata." +"normalize` function that converts strings to one of several normal forms, " +"where letters followed by a combining character are replaced with single " +"characters. :func:`normalize` can be used to perform string comparisons " +"that won't falsely report inequality if two strings use combining characters " +"differently:" +msgstr "" + +#: ../Doc/howto/unicode.rst:442 +msgid "When run, this outputs:" +msgstr "" + +#: ../Doc/howto/unicode.rst:451 +msgid "" +"The first argument to the :func:`~unicodedata.normalize` function is a " +"string giving the desired normalization form, which can be one of 'NFC', " +"'NFKC', 'NFD', and 'NFKD'." +msgstr "" + #: ../Doc/howto/unicode.rst:455 +msgid "The Unicode Standard also specifies how to do caseless comparisons::" +msgstr "" + +#: ../Doc/howto/unicode.rst:471 +msgid "" +"This will print ``True``. (Why is :func:`NFD` invoked twice? Because there " +"are a few characters that make :meth:`casefold` return a non-normalized " +"string, so the result needs to be normalized again. See section 3.13 of the " +"Unicode Standard for a discussion and an example.)" +msgstr "" + +#: ../Doc/howto/unicode.rst:478 msgid "Unicode Regular Expressions" msgstr "" -#: ../Doc/howto/unicode.rst:457 +#: ../Doc/howto/unicode.rst:480 msgid "" "The regular expressions supported by the :mod:`re` module can be provided " "either as bytes or strings. Some of the special character sequences such as " @@ -739,57 +611,57 @@ msgid "" "in the ``'Nd'`` category." msgstr "" -#: ../Doc/howto/unicode.rst:464 +#: ../Doc/howto/unicode.rst:487 msgid "" "The string in this example has the number 57 written in both Thai and Arabic " "numerals::" msgstr "" -#: ../Doc/howto/unicode.rst:474 +#: ../Doc/howto/unicode.rst:497 msgid "" "When executed, ``\\d+`` will match the Thai numerals and print them out. If " "you supply the :const:`re.ASCII` flag to :func:`~re.compile`, ``\\d+`` will " "match the substring \"57\" instead." msgstr "" -#: ../Doc/howto/unicode.rst:478 +#: ../Doc/howto/unicode.rst:501 msgid "" "Similarly, ``\\w`` matches a wide variety of Unicode characters but only " "``[a-zA-Z0-9_]`` in bytes or if :const:`re.ASCII` is supplied, and ``\\s`` " "will match either Unicode whitespace characters or ``[ \\t\\n\\r\\f\\v]``." msgstr "" -#: ../Doc/howto/unicode.rst:489 +#: ../Doc/howto/unicode.rst:512 msgid "Some good alternative discussions of Python's Unicode support are:" msgstr "" -#: ../Doc/howto/unicode.rst:491 +#: ../Doc/howto/unicode.rst:514 msgid "" "`Processing Text Files in Python 3 `_, by Nick Coghlan." msgstr "" -#: ../Doc/howto/unicode.rst:492 +#: ../Doc/howto/unicode.rst:515 msgid "" "`Pragmatic Unicode `_, a PyCon " "2012 presentation by Ned Batchelder." msgstr "" -#: ../Doc/howto/unicode.rst:494 +#: ../Doc/howto/unicode.rst:517 msgid "" "The :class:`str` type is described in the Python library reference at :ref:" "`textseq`." msgstr "" -#: ../Doc/howto/unicode.rst:497 +#: ../Doc/howto/unicode.rst:520 msgid "The documentation for the :mod:`unicodedata` module." msgstr "" -#: ../Doc/howto/unicode.rst:499 +#: ../Doc/howto/unicode.rst:522 msgid "The documentation for the :mod:`codecs` module." msgstr "" -#: ../Doc/howto/unicode.rst:501 +#: ../Doc/howto/unicode.rst:524 msgid "" "Marc-André Lemburg gave `a presentation titled \"Python and Unicode\" (PDF " "slides) `_ at " @@ -798,18 +670,18 @@ msgid "" "``unicode`` and literals start with ``u``)." msgstr "" -#: ../Doc/howto/unicode.rst:509 +#: ../Doc/howto/unicode.rst:532 msgid "Reading and Writing Unicode Data" msgstr "" -#: ../Doc/howto/unicode.rst:511 +#: ../Doc/howto/unicode.rst:534 msgid "" "Once you've written some code that works with Unicode data, the next problem " "is input/output. How do you get Unicode strings into your program, and how " "do you convert Unicode into a form suitable for storage or transmission?" msgstr "" -#: ../Doc/howto/unicode.rst:515 +#: ../Doc/howto/unicode.rst:538 msgid "" "It's possible that you may not need to do anything depending on your input " "sources and output destinations; you should check whether the libraries used " @@ -818,7 +690,7 @@ msgid "" "valued columns and can return Unicode values from an SQL query." msgstr "" -#: ../Doc/howto/unicode.rst:521 +#: ../Doc/howto/unicode.rst:544 msgid "" "Unicode data is usually converted to a particular encoding before it gets " "written to disk or sent over a socket. It's possible to do all the work " @@ -827,7 +699,7 @@ msgid "" "recommended." msgstr "" -#: ../Doc/howto/unicode.rst:526 +#: ../Doc/howto/unicode.rst:549 msgid "" "One problem is the multi-byte nature of encodings; one Unicode character can " "be represented by several bytes. If you want to read the file in arbitrary-" @@ -841,7 +713,7 @@ msgid "" "version in memory.)" msgstr "" -#: ../Doc/howto/unicode.rst:536 +#: ../Doc/howto/unicode.rst:559 msgid "" "The solution would be to use the low-level decoding interface to catch the " "case of partial coding sequences. The work of implementing this has already " @@ -853,17 +725,17 @@ msgid "" "meth:`str.encode` and :meth:`bytes.decode`." msgstr "" -#: ../Doc/howto/unicode.rst:545 +#: ../Doc/howto/unicode.rst:568 msgid "Reading Unicode from a file is therefore simple::" msgstr "" -#: ../Doc/howto/unicode.rst:551 +#: ../Doc/howto/unicode.rst:574 msgid "" "It's also possible to open files in update mode, allowing both reading and " "writing::" msgstr "" -#: ../Doc/howto/unicode.rst:559 +#: ../Doc/howto/unicode.rst:582 msgid "" "The Unicode character ``U+FEFF`` is used as a byte-order mark (BOM), and is " "often written as the first character of a file in order to assist with " @@ -876,32 +748,32 @@ msgid "" "the BOM." msgstr "" -#: ../Doc/howto/unicode.rst:568 +#: ../Doc/howto/unicode.rst:591 msgid "" "In some areas, it is also convention to use a \"BOM\" at the start of UTF-8 " "encoded files; the name is misleading since UTF-8 is not byte-order " -"dependent. The mark simply announces that the file is encoded in UTF-8. Use " -"the 'utf-8-sig' codec to automatically skip the mark if present for reading " -"such files." +"dependent. The mark simply announces that the file is encoded in UTF-8. For " +"reading such files, use the 'utf-8-sig' codec to automatically skip the mark " +"if present." msgstr "" -#: ../Doc/howto/unicode.rst:576 +#: ../Doc/howto/unicode.rst:598 msgid "Unicode filenames" msgstr "" -#: ../Doc/howto/unicode.rst:578 +#: ../Doc/howto/unicode.rst:600 msgid "" "Most of the operating systems in common use today support filenames that " "contain arbitrary Unicode characters. Usually this is implemented by " "converting the Unicode string into some encoding that varies depending on " -"the system. For example, Mac OS X uses UTF-8 while Windows uses a " -"configurable encoding; on Windows, Python uses the name \"mbcs\" to refer to " -"whatever the currently configured encoding is. On Unix systems, there will " -"only be a filesystem encoding if you've set the ``LANG`` or ``LC_CTYPE`` " -"environment variables; if you haven't, the default encoding is UTF-8." +"the system. Today Python is converging on using UTF-8: Python on MacOS has " +"used UTF-8 for several versions, and Python 3.6 switched to using UTF-8 on " +"Windows as well. On Unix systems, there will only be a filesystem encoding " +"if you've set the ``LANG`` or ``LC_CTYPE`` environment variables; if you " +"haven't, the default encoding is again UTF-8." msgstr "" -#: ../Doc/howto/unicode.rst:587 +#: ../Doc/howto/unicode.rst:610 msgid "" "The :func:`sys.getfilesystemencoding` function returns the encoding to use " "on your current system, in case you want to do the encoding manually, but " @@ -910,17 +782,17 @@ msgid "" "and it will be automatically converted to the right encoding for you::" msgstr "" -#: ../Doc/howto/unicode.rst:597 +#: ../Doc/howto/unicode.rst:620 msgid "" "Functions in the :mod:`os` module such as :func:`os.stat` will also accept " "Unicode filenames." msgstr "" -#: ../Doc/howto/unicode.rst:600 +#: ../Doc/howto/unicode.rst:623 msgid "" -"The :func:`os.listdir` function returns filenames and raises an issue: " +"The :func:`os.listdir` function returns filenames, which raises an issue: " "should it return the Unicode version of filenames, or should it return bytes " -"containing the encoded versions? :func:`os.listdir` will do both, depending " +"containing the encoded versions? :func:`os.listdir` can do both, depending " "on whether you provided the directory path as bytes or a Unicode string. If " "you pass a Unicode string as the path, filenames will be decoded using the " "filesystem's encoding and a list of Unicode strings will be returned, while " @@ -929,44 +801,45 @@ msgid "" "program::" msgstr "" -#: ../Doc/howto/unicode.rst:618 +#: ../Doc/howto/unicode.rst:641 msgid "will produce the following output:" msgstr "" -#: ../Doc/howto/unicode.rst:626 +#: ../Doc/howto/unicode.rst:649 msgid "" "The first list contains UTF-8-encoded filenames, and the second list " "contains the Unicode versions." msgstr "" -#: ../Doc/howto/unicode.rst:629 +#: ../Doc/howto/unicode.rst:652 msgid "" -"Note that on most occasions, the Unicode APIs should be used. The bytes " -"APIs should only be used on systems where undecodable file names can be " -"present, i.e. Unix systems." +"Note that on most occasions, you should can just stick with using Unicode " +"with these APIs. The bytes APIs should only be used on systems where " +"undecodable file names can be present; that's pretty much only Unix systems " +"now." msgstr "" -#: ../Doc/howto/unicode.rst:635 +#: ../Doc/howto/unicode.rst:659 msgid "Tips for Writing Unicode-aware Programs" msgstr "" -#: ../Doc/howto/unicode.rst:637 +#: ../Doc/howto/unicode.rst:661 msgid "" "This section provides some suggestions on writing software that deals with " "Unicode." msgstr "" -#: ../Doc/howto/unicode.rst:640 +#: ../Doc/howto/unicode.rst:664 msgid "The most important tip is:" msgstr "" -#: ../Doc/howto/unicode.rst:642 +#: ../Doc/howto/unicode.rst:666 msgid "" "Software should only work with Unicode strings internally, decoding the " "input data as soon as possible and encoding the output only at the end." msgstr "" -#: ../Doc/howto/unicode.rst:645 +#: ../Doc/howto/unicode.rst:669 msgid "" "If you attempt to write processing functions that accept both Unicode and " "byte strings, you will find your program vulnerable to bugs wherever you " @@ -975,7 +848,7 @@ msgid "" "raised." msgstr "" -#: ../Doc/howto/unicode.rst:650 +#: ../Doc/howto/unicode.rst:674 msgid "" "When using data coming from a web browser or some other untrusted source, a " "common technique is to check for illegal characters in a string before using " @@ -987,28 +860,28 @@ msgid "" "then choose a clever way to hide malicious text in the encoded bytestream." msgstr "" -#: ../Doc/howto/unicode.rst:661 +#: ../Doc/howto/unicode.rst:685 msgid "Converting Between File Encodings" msgstr "" -#: ../Doc/howto/unicode.rst:663 +#: ../Doc/howto/unicode.rst:687 msgid "" "The :class:`~codecs.StreamRecoder` class can transparently convert between " "encodings, taking a stream that returns data in encoding #1 and behaving " "like a stream returning data in encoding #2." msgstr "" -#: ../Doc/howto/unicode.rst:667 +#: ../Doc/howto/unicode.rst:691 msgid "" "For example, if you have an input file *f* that's in Latin-1, you can wrap " "it with a :class:`~codecs.StreamRecoder` to return bytes encoded in UTF-8::" msgstr "" -#: ../Doc/howto/unicode.rst:681 +#: ../Doc/howto/unicode.rst:705 msgid "Files in an Unknown Encoding" msgstr "" -#: ../Doc/howto/unicode.rst:683 +#: ../Doc/howto/unicode.rst:707 msgid "" "What can you do if you need to make a change to a file, but don't know the " "file's encoding? If you know the encoding is ASCII-compatible and only want " @@ -1016,23 +889,22 @@ msgid "" "``surrogateescape`` error handler::" msgstr "" -#: ../Doc/howto/unicode.rst:697 +#: ../Doc/howto/unicode.rst:721 msgid "" "The ``surrogateescape`` error handler will decode any non-ASCII bytes as " -"code points in the Unicode Private Use Area ranging from U+DC80 to U+DCFF. " -"These private code points will then be turned back into the same bytes when " -"the ``surrogateescape`` error handler is used when encoding the data and " -"writing it back out." +"code points in a special range running from U+DC80 to U+DCFF. These code " +"points will then turn back into the same bytes when the ``surrogateescape`` " +"error handler is used to encode the data and write it back out." msgstr "" -#: ../Doc/howto/unicode.rst:707 +#: ../Doc/howto/unicode.rst:731 msgid "" "One section of `Mastering Python 3 Input/Output `_, a PyCon 2010 talk by David " "Beazley, discusses text processing and binary data handling." msgstr "" -#: ../Doc/howto/unicode.rst:711 +#: ../Doc/howto/unicode.rst:735 msgid "" "The `PDF slides for Marc-André Lemburg's presentation \"Writing Unicode-" "aware Applications in Python\" `_ is a PyCon 2013 talk by Benjamin Peterson that " "discusses the internal Unicode representation in Python 3.3." msgstr "" -#: ../Doc/howto/unicode.rst:724 +#: ../Doc/howto/unicode.rst:748 msgid "Acknowledgements" msgstr "Remerciements" -#: ../Doc/howto/unicode.rst:726 +#: ../Doc/howto/unicode.rst:750 msgid "" "The initial draft of this document was written by Andrew Kuchling. It has " "since been revised further by Alexander Belopolsky, Georg Brandl, Andrew " "Kuchling, and Ezio Melotti." msgstr "" -#: ../Doc/howto/unicode.rst:730 +#: ../Doc/howto/unicode.rst:754 msgid "" "Thanks to the following people who have noted errors or offered suggestions " "on this article: Éric Araujo, Nicholas Bastin, Nick Coghlan, Marius " "Gedminas, Kent Johnson, Ken Krugler, Marc-André Lemburg, Martin von Löwis, " -"Terry J. Reedy, Chad Whitacre." -msgstr "" +"Terry J. Reedy, Serhiy Storchaka, Eryk Sun, Chad Whitacre, Graham Wideman." +msgstr "" + +#~ msgid "History of Character Codes" +#~ msgstr "Histoire des codes de caractères" + +#~ msgid "" +#~ "In 1968, the American Standard Code for Information Interchange, better " +#~ "known by its acronym ASCII, was standardized. ASCII defined numeric " +#~ "codes for various characters, with the numeric values running from 0 to " +#~ "127. For example, the lowercase letter 'a' is assigned 97 as its code " +#~ "value." +#~ msgstr "" +#~ "En 1968, l'*American Standard Code for Information Interchange*, mieux " +#~ "connu sous son acronyme *ASCII*, a été normalisé. L'ASCII définissait " +#~ "des codes numériques pour différents caractères, les valeurs numériques " +#~ "s'étendant de 0 à 127. Par exemple, la lettre minuscule « a » est " +#~ "assignée à 97 comme valeur de code." + +#~ msgid "" +#~ "ASCII was an American-developed standard, so it only defined unaccented " +#~ "characters. There was an 'e', but no 'é' or 'Í'. This meant that " +#~ "languages which required accented characters couldn't be faithfully " +#~ "represented in ASCII. (Actually the missing accents matter for English, " +#~ "too, which contains words such as 'naïve' and 'café', and some " +#~ "publications have house styles which require spellings such as " +#~ "'coöperate'.)" +#~ msgstr "" +#~ "ASCII était une norme développée par les États-Unis, elle ne définissait " +#~ "donc que des caractères non accentués. Il y avait « e », mais pas « é » " +#~ "ou « Í ». Cela signifiait que les langues qui nécessitaient des " +#~ "caractères accentués ne pouvaient pas être fidèlement représentées en " +#~ "ASCII. (En fait, les accents manquants importaient pour l'anglais aussi, " +#~ "qui contient des mots tels que « naïve » et « café », et certaines " +#~ "publications ont des styles propres qui exigent des orthographes tels que " +#~ "« *coöperate* ».)" + +#~ msgid "" +#~ "For a while people just wrote programs that didn't display accents. In " +#~ "the mid-1980s an Apple II BASIC program written by a French speaker might " +#~ "have lines like these:" +#~ msgstr "" +#~ "Pendant un certain temps, les gens ont juste écrit des programmes qui " +#~ "n'affichaient pas d'accents. Au milieu des années 1980, un programme " +#~ "Apple II BASIC écrit par un français pouvait avoir des lignes comme " +#~ "celles-ci : ::" + +#~ msgid "" +#~ "Those messages should contain accents (terminée, paramètre, enregistrés) " +#~ "and they just look wrong to someone who can read French." +#~ msgstr "" +#~ "Ces messages devraient contenir des accents (terminée, paramètre, " +#~ "enregistrés) et ils ont juste l'air anormaux à quelqu'un lisant le " +#~ "français." + +#~ msgid "" +#~ "In the 1980s, almost all personal computers were 8-bit, meaning that " +#~ "bytes could hold values ranging from 0 to 255. ASCII codes only went up " +#~ "to 127, so some machines assigned values between 128 and 255 to accented " +#~ "characters. Different machines had different codes, however, which led " +#~ "to problems exchanging files. Eventually various commonly used sets of " +#~ "values for the 128--255 range emerged. Some were true standards, defined " +#~ "by the International Organization for Standardization, and some were *de " +#~ "facto* conventions that were invented by one company or another and " +#~ "managed to catch on." +#~ msgstr "" +#~ "Dans les années 1980, presque tous les ordinateurs personnels étaient à 8 " +#~ "bits, ce qui signifie que les octets pouvaient contenir des valeurs " +#~ "allant de 0 à 255. Les codes ASCII allaient seulement jusqu'à 127, alors " +#~ "certaines machines ont assigné les valeurs entre 128 et 255 à des " +#~ "caractères accentués. Différentes machines avaient des codes différents, " +#~ "cependant, ce qui a conduit à des problèmes d'échange de fichiers. " +#~ "Finalement, divers ensembles de valeurs couramment utilisés pour la gamme " +#~ "128--255 ont émergé. Certains étaient de véritables normes, définies par " +#~ "l'Organisation internationale de normalisation, et certaines étaient des " +#~ "conventions *de facto* qui ont été inventées par une entreprise ou une " +#~ "autre et qui ont fini par se répandre." + +#~ msgid "" +#~ "255 characters aren't very many. For example, you can't fit both the " +#~ "accented characters used in Western Europe and the Cyrillic alphabet used " +#~ "for Russian into the 128--255 range because there are more than 128 such " +#~ "characters." +#~ msgstr "" +#~ "255 caractères, ça n'est pas beaucoup. Par exemple, vous ne pouvez pas " +#~ "contenir à la fois les caractères accentués utilisés en Europe " +#~ "occidentale et l'alphabet cyrillique utilisé pour le russe dans la gamme " +#~ "128--255, car il y a plus de 128 de tous ces caractères." + +#~ msgid "" +#~ "You could write files using different codes (all your Russian files in a " +#~ "coding system called KOI8, all your French files in a different coding " +#~ "system called Latin1), but what if you wanted to write a French document " +#~ "that quotes some Russian text? In the 1980s people began to want to " +#~ "solve this problem, and the Unicode standardization effort began." +#~ msgstr "" +#~ "Vous pouviez écrire les fichiers avec des codes différents (tous vos " +#~ "fichiers russes dans un système de codage appelé *KOI8*, tous vos " +#~ "fichiers français dans un système de codage différent appelé *Latin1*), " +#~ "mais que faire si vous souhaitiez écrire un document français citant du " +#~ "texte russe ? Dans les années 80, les gens ont commencé à vouloir " +#~ "résoudre ce problème, et les efforts de standardisation Unicode ont " +#~ "commencé." + +#~ msgid "" +#~ "Unicode started out using 16-bit characters instead of 8-bit characters. " +#~ "16 bits means you have 2^16 = 65,536 distinct values available, making it " +#~ "possible to represent many different characters from many different " +#~ "alphabets; an initial goal was to have Unicode contain the alphabets for " +#~ "every single human language. It turns out that even 16 bits isn't enough " +#~ "to meet that goal, and the modern Unicode specification uses a wider " +#~ "range of codes, 0 through 1,114,111 ( ``0x10FFFF`` in base 16)." +#~ msgstr "" +#~ "Unicode a commencé par utiliser des caractères 16 bits au lieu de 8 bits. " +#~ "16 bits signifie que vous avez 2^16 = 65 536 valeurs distinctes " +#~ "disponibles, ce qui permet de représenter de nombreux caractères " +#~ "différents à partir de nombreux alphabets différents. Un des objectifs " +#~ "initiaux était de faire en sorte que Unicode contienne les alphabets de " +#~ "chaque langue humaine. Il s’avère que même 16 bits ne suffisent pas pour " +#~ "atteindre cet objectif, et la spécification Unicode moderne utilise une " +#~ "gamme de codes plus étendue, allant de 0 à 1 114 111 (``0x10FFFF`` en " +#~ "base 16)." + +#~ msgid "" +#~ "There's a related ISO standard, ISO 10646. Unicode and ISO 10646 were " +#~ "originally separate efforts, but the specifications were merged with the " +#~ "1.1 revision of Unicode." +#~ msgstr "" +#~ "Il existe une norme ISO connexe, ISO 10646. Unicode et ISO 10646 étaient " +#~ "à l’origine des efforts séparés, mais les spécifications ont été " +#~ "fusionnées avec la révision 1.1 d’Unicode." + +#~ msgid "" +#~ "(This discussion of Unicode's history is highly simplified. The precise " +#~ "historical details aren't necessary for understanding how to use Unicode " +#~ "effectively, but if you're curious, consult the Unicode consortium site " +#~ "listed in the References or the `Wikipedia entry for Unicode `_ for more information.)" +#~ msgstr "" +#~ "(Cette discussion sur l’historique d’Unicode est extrêmement simplifiée. " +#~ "Les détails historiques précis ne sont pas nécessaires pour comprendre " +#~ "comment utiliser efficacement Unicode, mais si vous êtes curieux, " +#~ "consultez le site du consortium Unicode indiqué dans les références ou la " +#~ "`page Wikipédia pour Unicode `_ (page en anglais) pour plus d’informations.)" + +#~ msgid "" +#~ "Many Internet standards are defined in terms of textual data, and can't " +#~ "handle content with embedded zero bytes." +#~ msgstr "" +#~ "De nombreuses normes Internet sont définies en termes de données " +#~ "textuelles et ne peuvent pas gérer le contenu incorporant des octets " +#~ "*zéro*." + +#~ msgid "" +#~ "Generally people don't use this encoding, instead choosing other " +#~ "encodings that are more efficient and convenient. UTF-8 is probably the " +#~ "most commonly supported encoding; it will be discussed below." +#~ msgstr "" +#~ "Généralement, les gens n’utilisent pas cet encodage, mais optent pour " +#~ "d’autres encodages plus efficaces et pratiques. UTF-8 est probablement " +#~ "l’encodage le plus couramment pris en charge ; celui-ci sera abordé ci-" +#~ "dessous." + +#~ msgid "" +#~ "Encodings don't have to handle every possible Unicode character, and most " +#~ "encodings don't. The rules for converting a Unicode string into the " +#~ "ASCII encoding, for example, are simple; for each code point:" +#~ msgstr "" +#~ "Les encodages n'ont pas à gérer tous les caractères Unicode possibles, et " +#~ "les plupart ne le font pas. Les règles pour convertir une chaîne Unicode " +#~ "en codage ASCII, par exemple, sont simples. pour chaque point de code :" + +#~ msgid "" +#~ "If the code point is < 128, each byte is the same as the value of the " +#~ "code point." +#~ msgstr "" +#~ "Si le point de code est < 128, chaque octet est identique à la valeur du " +#~ "point de code." + +#~ msgid "" +#~ "If the code point is 128 or greater, the Unicode string can't be " +#~ "represented in this encoding. (Python raises a :exc:`UnicodeEncodeError` " +#~ "exception in this case.)" +#~ msgstr "" +#~ "Si le point de code est égal à 128 ou plus, la chaîne Unicode ne peut pas " +#~ "être représentée dans ce codage (Python déclenche une exception :exc:" +#~ "`UnicodeEncodeError` dans ce cas)." + +#~ msgid "" +#~ "Latin-1, also known as ISO-8859-1, is a similar encoding. Unicode code " +#~ "points 0--255 are identical to the Latin-1 values, so converting to this " +#~ "encoding simply requires converting code points to byte values; if a code " +#~ "point larger than 255 is encountered, the string can't be encoded into " +#~ "Latin-1." +#~ msgstr "" +#~ "Latin-1, également connu sous le nom de ISO-8859-1, est un encodage " +#~ "similaire. Les points de code Unicode 0–255 étant identiques aux valeurs " +#~ "de Latin-1, la conversion en cet encodage nécessite simplement la " +#~ "conversion des points de code en octets de même valeur ; si un point de " +#~ "code supérieur à 255 est rencontré, la chaîne ne peut pas être codée en " +#~ "latin-1." + +#~ msgid "" +#~ "Encodings don't have to be simple one-to-one mappings like Latin-1. " +#~ "Consider IBM's EBCDIC, which was used on IBM mainframes. Letter values " +#~ "weren't in one block: 'a' through 'i' had values from 129 to 137, but 'j' " +#~ "through 'r' were 145 through 153. If you wanted to use EBCDIC as an " +#~ "encoding, you'd probably use some sort of lookup table to perform the " +#~ "conversion, but this is largely an internal detail." +#~ msgstr "" +#~ "Les encodages ne doivent pas nécessairement être de simples mappages un à " +#~ "un, comme Latin-1. Prenons l’exemple du code EBCDIC d’IBM, utilisé sur " +#~ "les ordinateurs centraux IBM. Les valeurs de lettre ne faisaient pas " +#~ "partie d’un bloc: les lettres « a » à « i » étaient comprises entre 129 " +#~ "et 137, mais les lettres « j » à « r » étaient comprises entre 145 et " +#~ "153. Si vous vouliez utiliser EBCDIC comme encodage, vous auriez " +#~ "probablement utilisé une sorte de table de correspondance pour effectuer " +#~ "la conversion, mais il s’agit en surtout d’un détail d'implémentation." diff --git a/library/collections.po b/library/collections.po index 38ab64328..9e2d506dc 100644 --- a/library/collections.po +++ b/library/collections.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2019-02-22 15:27+0100\n" "Last-Translator: Guillaume Fayard \n" "Language-Team: FRENCH \n" @@ -1346,22 +1346,16 @@ msgstr "" "`~somenamedtuple._replace` pour personnaliser une instance prototype :" #: ../Doc/library/collections.rst:1019 +#, fuzzy msgid "" -"`Recipe for named tuple abstract base class with a metaclass mix-in `_ by Jan Kaliszewski. Besides providing an :term:`abstract base " -"class` for named tuples, it also supports an alternate :term:`metaclass`-" -"based constructor that is convenient for use cases where named tuples are " -"being subclassed." +"See :class:`typing.NamedTuple` for a way to add type hints for named " +"tuples. It also provides an elegant notation using the :keyword:`class` " +"keyword::" msgstr "" -"`Cas pratique : classe de base abstraite de tuple nommé grâce à une " -"métaclasse mixin `_ par Jan Kaliszewski. En plus de " -"fournir une :term:`abstract base class` pour les tuples nommés, elle gère un " -"constructeur de :term:`metaclass` pratique dans les cas où l'on hérite de " -"tuples nommés." +"Voir :meth:`typing.NamedTuple` pour un moyen d'ajouter des indications de " +"type pour les tuples nommés." -#: ../Doc/library/collections.rst:1026 +#: ../Doc/library/collections.rst:1028 msgid "" "See :meth:`types.SimpleNamespace` for a mutable namespace based on an " "underlying dictionary instead of a tuple." @@ -1369,18 +1363,17 @@ msgstr "" "Voir :meth:`types.SimpleNamespace` pour un espace de noms muable basé sur un " "dictionnaire sous-jacent à la place d'un tuple." -#: ../Doc/library/collections.rst:1029 +#: ../Doc/library/collections.rst:1031 msgid "" -"See :meth:`typing.NamedTuple` for a way to add type hints for named tuples." +"The :mod:`dataclasses` module provides a decorator and functions for " +"automatically adding generated special methods to user-defined classes." msgstr "" -"Voir :meth:`typing.NamedTuple` pour un moyen d'ajouter des indications de " -"type pour les tuples nommés." -#: ../Doc/library/collections.rst:1033 +#: ../Doc/library/collections.rst:1036 msgid ":class:`OrderedDict` objects" msgstr "Objets :class:`OrderedDict`" -#: ../Doc/library/collections.rst:1035 +#: ../Doc/library/collections.rst:1038 msgid "" "Ordered dictionaries are just like regular dictionaries but have some extra " "capabilities relating to ordering operations. They have become less " @@ -1388,24 +1381,24 @@ msgid "" "remember insertion order (this new behavior became guaranteed in Python 3.7)." msgstr "" -#: ../Doc/library/collections.rst:1041 +#: ../Doc/library/collections.rst:1044 msgid "Some differences from :class:`dict` still remain:" msgstr "" -#: ../Doc/library/collections.rst:1043 +#: ../Doc/library/collections.rst:1046 msgid "" "The regular :class:`dict` was designed to be very good at mapping " "operations. Tracking insertion order was secondary." msgstr "" -#: ../Doc/library/collections.rst:1046 +#: ../Doc/library/collections.rst:1049 msgid "" "The :class:`OrderedDict` was designed to be good at reordering operations. " "Space efficiency, iteration speed, and the performance of update operations " "were secondary." msgstr "" -#: ../Doc/library/collections.rst:1050 +#: ../Doc/library/collections.rst:1053 msgid "" "Algorithmically, :class:`OrderedDict` can handle frequent reordering " "operations better than :class:`dict`. This makes it suitable for tracking " @@ -1413,34 +1406,34 @@ msgid "" "@krishankantsinghal/my-first-blog-on-medium-583159139237>`_)." msgstr "" -#: ../Doc/library/collections.rst:1055 +#: ../Doc/library/collections.rst:1058 msgid "" "The equality operation for :class:`OrderedDict` checks for matching order." msgstr "" -#: ../Doc/library/collections.rst:1057 +#: ../Doc/library/collections.rst:1060 msgid "" "The :meth:`popitem` method of :class:`OrderedDict` has a different " "signature. It accepts an optional argument to specify which item is popped." msgstr "" -#: ../Doc/library/collections.rst:1060 +#: ../Doc/library/collections.rst:1063 msgid "" ":class:`OrderedDict` has a :meth:`move_to_end` method to efficiently " "reposition an element to an endpoint." msgstr "" -#: ../Doc/library/collections.rst:1063 +#: ../Doc/library/collections.rst:1066 msgid "Until Python 3.8, :class:`dict` lacked a :meth:`__reversed__` method." msgstr "" -#: ../Doc/library/collections.rst:1068 +#: ../Doc/library/collections.rst:1071 msgid "" "Return an instance of a :class:`dict` subclass that has methods specialized " "for rearranging dictionary order." msgstr "" -#: ../Doc/library/collections.rst:1075 +#: ../Doc/library/collections.rst:1078 msgid "" "The :meth:`popitem` method for ordered dictionaries returns and removes a " "(key, value) pair. The pairs are returned in :abbr:`LIFO (last-in, first-" @@ -1454,7 +1447,7 @@ msgstr "" "paires sont renvoyées comme pour une file, c'est-à-dire premier entré, " "premier sorti (en anglais :abbr:`FIFO (first-in, first-out)`)." -#: ../Doc/library/collections.rst:1082 +#: ../Doc/library/collections.rst:1085 msgid "" "Move an existing *key* to either end of an ordered dictionary. The item is " "moved to the right end if *last* is true (the default) or to the beginning " @@ -1465,7 +1458,7 @@ msgstr "" "à gauche sinon. Lève une exception :exc:`KeyError` si la clé *key* n'est pas " "trouvée : ::" -#: ../Doc/library/collections.rst:1097 +#: ../Doc/library/collections.rst:1100 msgid "" "In addition to the usual mapping methods, ordered dictionaries also support " "reverse iteration using :func:`reversed`." @@ -1473,7 +1466,7 @@ msgstr "" "En plus des méthodes usuelles des dictionnaires, les dictionnaires ordonnés " "gèrent l'itération en sens inverse grâce à :func:`reversed`." -#: ../Doc/library/collections.rst:1100 +#: ../Doc/library/collections.rst:1103 msgid "" "Equality tests between :class:`OrderedDict` objects are order-sensitive and " "are implemented as ``list(od1.items())==list(od2.items())``. Equality tests " @@ -1489,7 +1482,7 @@ msgstr "" "(comme les dictionnaires natifs). Cela permet substituer des objets :class:" "`OrderedDict` partout où les dictionnaires natifs sont utilisés." -#: ../Doc/library/collections.rst:1107 +#: ../Doc/library/collections.rst:1110 msgid "" "The items, keys, and values :term:`views ` of :class:" "`OrderedDict` now support reverse iteration using :func:`reversed`." @@ -1498,7 +1491,7 @@ msgstr "" "class:`OrderedDict` gèrent maintenant l'itération en sens inverse en " "utilisant :func:`reversed`." -#: ../Doc/library/collections.rst:1111 +#: ../Doc/library/collections.rst:1114 msgid "" "With the acceptance of :pep:`468`, order is retained for keyword arguments " "passed to the :class:`OrderedDict` constructor and its :meth:`update` method." @@ -1507,11 +1500,11 @@ msgstr "" "au constructeur et à la méthode :meth:`update` de :class:`OrderedDict` est " "conservé." -#: ../Doc/library/collections.rst:1117 +#: ../Doc/library/collections.rst:1120 msgid ":class:`OrderedDict` Examples and Recipes" msgstr "Exemples et cas pratiques utilisant :class:`OrderDict`" -#: ../Doc/library/collections.rst:1119 +#: ../Doc/library/collections.rst:1122 #, fuzzy msgid "" "It is straightforward to create an ordered dictionary variant that remembers " @@ -1524,17 +1517,17 @@ msgstr "" "nouvelle entrée écrase une existante, la position d'insertion d'origine est " "modifiée et déplacée à la fin : ::" -#: ../Doc/library/collections.rst:1131 +#: ../Doc/library/collections.rst:1134 msgid "" "An :class:`OrderedDict` would also be useful for implementing variants of :" "func:`functools.lru_cache`::" msgstr "" -#: ../Doc/library/collections.rst:1154 +#: ../Doc/library/collections.rst:1157 msgid ":class:`UserDict` objects" msgstr "Objets :class:`UserDict`" -#: ../Doc/library/collections.rst:1156 +#: ../Doc/library/collections.rst:1159 msgid "" "The class, :class:`UserDict` acts as a wrapper around dictionary objects. " "The need for this class has been partially supplanted by the ability to " @@ -1547,7 +1540,7 @@ msgstr "" "travailler avec celle-ci car le dictionnaire sous-jacent est accessible " "comme attribut." -#: ../Doc/library/collections.rst:1164 +#: ../Doc/library/collections.rst:1167 msgid "" "Class that simulates a dictionary. The instance's contents are kept in a " "regular dictionary, which is accessible via the :attr:`data` attribute of :" @@ -1561,7 +1554,7 @@ msgstr "" "initialisé avec son contenu. Remarquez qu'une référence vers *initialdata* " "n'est pas conservée, ce qui permet de l'utiliser pour d'autres tâches." -#: ../Doc/library/collections.rst:1170 +#: ../Doc/library/collections.rst:1173 msgid "" "In addition to supporting the methods and operations of mappings, :class:" "`UserDict` instances provide the following attribute:" @@ -1569,18 +1562,18 @@ msgstr "" "En plus de gérer les méthodes et opérations des dictionnaires, les instance " "de :class:`UserDict` fournissent l'attribut suivant :" -#: ../Doc/library/collections.rst:1175 +#: ../Doc/library/collections.rst:1178 msgid "" "A real dictionary used to store the contents of the :class:`UserDict` class." msgstr "" "Un dictionnaire natif où est stocké le contenu de la classe :class:" "`UserDict`." -#: ../Doc/library/collections.rst:1181 +#: ../Doc/library/collections.rst:1184 msgid ":class:`UserList` objects" msgstr "Objets :class:`UserList`" -#: ../Doc/library/collections.rst:1183 +#: ../Doc/library/collections.rst:1186 msgid "" "This class acts as a wrapper around list objects. It is a useful base class " "for your own list-like classes which can inherit from them and override " @@ -1592,7 +1585,7 @@ msgstr "" "et surcharger les méthodes existantes ou en ajouter de nouvelles. Ainsi, on " "peut ajouter de nouveaux comportements aux listes." -#: ../Doc/library/collections.rst:1188 +#: ../Doc/library/collections.rst:1191 msgid "" "The need for this class has been partially supplanted by the ability to " "subclass directly from :class:`list`; however, this class can be easier to " @@ -1603,7 +1596,7 @@ msgstr "" "de travailler avec cette classe car la liste sous-jacente est accessible via " "un attribut." -#: ../Doc/library/collections.rst:1194 +#: ../Doc/library/collections.rst:1197 msgid "" "Class that simulates a list. The instance's contents are kept in a regular " "list, which is accessible via the :attr:`data` attribute of :class:" @@ -1617,7 +1610,7 @@ msgstr "" "*list* peut être un itérable, par exemple une liste native ou un objet :" "class:`UserList`." -#: ../Doc/library/collections.rst:1200 +#: ../Doc/library/collections.rst:1203 msgid "" "In addition to supporting the methods and operations of mutable sequences, :" "class:`UserList` instances provide the following attribute:" @@ -1625,7 +1618,7 @@ msgstr "" "En plus de gérer les méthodes et opérations des séquences muables, les " "instances de :class:`UserList` possèdent l'attribut suivant :" -#: ../Doc/library/collections.rst:1205 +#: ../Doc/library/collections.rst:1208 msgid "" "A real :class:`list` object used to store the contents of the :class:" "`UserList` class." @@ -1633,7 +1626,7 @@ msgstr "" "Un objet :class:`list` natif utilisé pour stocker le contenu de la classe :" "class:`UserList`." -#: ../Doc/library/collections.rst:1208 +#: ../Doc/library/collections.rst:1211 msgid "" "**Subclassing requirements:** Subclasses of :class:`UserList` are expected " "to offer a constructor which can be called with either no arguments or one " @@ -1649,7 +1642,7 @@ msgstr "" "constructeur doit pouvoir être appelé avec un unique paramètre, un objet " "séquence utilisé comme source de données." -#: ../Doc/library/collections.rst:1215 +#: ../Doc/library/collections.rst:1218 msgid "" "If a derived class does not wish to comply with this requirement, all of the " "special methods supported by this class will need to be overridden; please " @@ -1661,11 +1654,11 @@ msgstr "" "de consulter les sources pour obtenir des informations sur les méthodes qui " "doivent être fournies dans ce cas." -#: ../Doc/library/collections.rst:1221 +#: ../Doc/library/collections.rst:1224 msgid ":class:`UserString` objects" msgstr "Objets :class:`UserString`" -#: ../Doc/library/collections.rst:1223 +#: ../Doc/library/collections.rst:1226 msgid "" "The class, :class:`UserString` acts as a wrapper around string objects. The " "need for this class has been partially supplanted by the ability to subclass " @@ -1678,7 +1671,7 @@ msgstr "" "plus facile de travailler avec cette classe car la chaîne de caractère sous-" "jacente est accessible via un attribut." -#: ../Doc/library/collections.rst:1231 +#: ../Doc/library/collections.rst:1234 msgid "" "Class that simulates a string object. The instance's content is kept in a " "regular string object, which is accessible via the :attr:`data` attribute " @@ -1692,7 +1685,7 @@ msgstr "" "initialement une copie de *seq*, qui peut être n'importe quel objet " "convertible en chaîne de caractère avec la fonction native :func:`str`." -#: ../Doc/library/collections.rst:1238 +#: ../Doc/library/collections.rst:1241 msgid "" "In addition to supporting the methods and operations of strings, :class:" "`UserString` instances provide the following attribute:" @@ -1700,7 +1693,7 @@ msgstr "" "En plus de gérer les méthodes et opérations sur les chaînes de caractères, " "les instances de :class:`UserString` possèdent l'attribut suivant :" -#: ../Doc/library/collections.rst:1243 +#: ../Doc/library/collections.rst:1246 msgid "" "A real :class:`str` object used to store the contents of the :class:" "`UserString` class." @@ -1708,7 +1701,7 @@ msgstr "" "Un objet :class:`str` natif utilisé pour stocker le contenu de la classe :" "class:`UserString`." -#: ../Doc/library/collections.rst:1246 +#: ../Doc/library/collections.rst:1249 msgid "" "New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, " "``isprintable``, and ``maketrans``." @@ -1716,6 +1709,21 @@ msgstr "" "Nouvelles méthodes ``__getnewargs__``, ``__rmod__``, ``casefold``, " "``format_map``, ``isprintable`` et ``maketrans``." +#~ msgid "" +#~ "`Recipe for named tuple abstract base class with a metaclass mix-in " +#~ "`_ by Jan Kaliszewski. Besides providing an :" +#~ "term:`abstract base class` for named tuples, it also supports an " +#~ "alternate :term:`metaclass`-based constructor that is convenient for use " +#~ "cases where named tuples are being subclassed." +#~ msgstr "" +#~ "`Cas pratique : classe de base abstraite de tuple nommé grâce à une " +#~ "métaclasse mixin `_ par Jan " +#~ "Kaliszewski. En plus de fournir une :term:`abstract base class` pour les " +#~ "tuples nommés, elle gère un constructeur de :term:`metaclass` pratique " +#~ "dans les cas où l'on hérite de tuples nommés." + #~ msgid "" #~ "Ordered dictionaries are just like regular dictionaries but they remember " #~ "the order that items were inserted. When iterating over an ordered " diff --git a/library/compileall.po b/library/compileall.po index 3f94d5943..6dec7fb2c 100644 --- a/library/compileall.po +++ b/library/compileall.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -133,7 +133,7 @@ msgid "" msgstr "" #: ../Doc/library/compileall.rst:107 -msgid "Added the ``--invalidation-mode`` parameter." +msgid "Added the ``--invalidation-mode`` option." msgstr "" #: ../Doc/library/compileall.rst:111 diff --git a/library/datetime.po b/library/datetime.po index f90a83e82..50b43a5db 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2019-02-21 17:21+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -375,8 +375,8 @@ msgstr "" "timedelta.min``. ``-timedelta.max`` n'est pas représentable sous la forme " "d'un objet :class:`timedelta`." -#: ../Doc/library/datetime.rst:220 ../Doc/library/datetime.rst:478 -#: ../Doc/library/datetime.rst:886 ../Doc/library/datetime.rst:1447 +#: ../Doc/library/datetime.rst:220 ../Doc/library/datetime.rst:480 +#: ../Doc/library/datetime.rst:888 ../Doc/library/datetime.rst:1449 msgid "Instance attributes (read-only):" msgstr "Attributs de l'instance (en lecture seule) :" @@ -412,18 +412,18 @@ msgstr "``microseconds``" msgid "Between 0 and 999999 inclusive" msgstr "Entre 0 et 999999 inclus" -#: ../Doc/library/datetime.rst:232 ../Doc/library/datetime.rst:495 -#: ../Doc/library/datetime.rst:939 ../Doc/library/datetime.rst:1486 +#: ../Doc/library/datetime.rst:232 ../Doc/library/datetime.rst:497 +#: ../Doc/library/datetime.rst:941 ../Doc/library/datetime.rst:1488 msgid "Supported operations:" msgstr "Opérations gérées :" -#: ../Doc/library/datetime.rst:237 ../Doc/library/datetime.rst:498 -#: ../Doc/library/datetime.rst:942 +#: ../Doc/library/datetime.rst:237 ../Doc/library/datetime.rst:500 +#: ../Doc/library/datetime.rst:944 msgid "Operation" msgstr "Opération" -#: ../Doc/library/datetime.rst:237 ../Doc/library/datetime.rst:498 -#: ../Doc/library/datetime.rst:942 +#: ../Doc/library/datetime.rst:237 ../Doc/library/datetime.rst:500 +#: ../Doc/library/datetime.rst:944 msgid "Result" msgstr "Résultat" @@ -485,14 +485,17 @@ msgid "``f = t2 / t3``" msgstr "``f = t2 / t3``" #: ../Doc/library/datetime.rst:257 -msgid "Division (3) of *t2* by *t3*. Returns a :class:`float` object." +#, fuzzy +msgid "" +"Division (3) of overall duration *t2* by interval unit *t3*. Returns a :" +"class:`float` object." msgstr "Division (3) de *t2* par *t3*. Renvoie un objet :class:`float`." -#: ../Doc/library/datetime.rst:260 +#: ../Doc/library/datetime.rst:261 msgid "``t1 = t2 / f or t1 = t2 / i``" msgstr "``t1 = t2 / f or t1 = t2 / i``" -#: ../Doc/library/datetime.rst:260 +#: ../Doc/library/datetime.rst:261 msgid "" "Delta divided by a float or an int. The result is rounded to the nearest " "multiple of timedelta.resolution using round-half-to-even." @@ -501,11 +504,11 @@ msgstr "" "multiple le plus proche de ``timedelta.resolution`` en utilisant la règle de " "l'arrondi au pair le plus proche." -#: ../Doc/library/datetime.rst:264 +#: ../Doc/library/datetime.rst:265 msgid "``t1 = t2 // i`` or ``t1 = t2 // t3``" msgstr "``t1 = t2 // i`` or ``t1 = t2 // t3``" -#: ../Doc/library/datetime.rst:264 +#: ../Doc/library/datetime.rst:265 msgid "" "The floor is computed and the remainder (if any) is thrown away. In the " "second case, an integer is returned. (3)" @@ -513,19 +516,19 @@ msgstr "" "Le quotient est calculé et le reste (s'il y en a un) est ignoré. Dans le " "second cas, un enter est renvoyé. (3)" -#: ../Doc/library/datetime.rst:268 +#: ../Doc/library/datetime.rst:269 msgid "``t1 = t2 % t3``" msgstr "``t1 = t2 % t3``" -#: ../Doc/library/datetime.rst:268 +#: ../Doc/library/datetime.rst:269 msgid "The remainder is computed as a :class:`timedelta` object. (3)" msgstr "Le reste est calculé comme un objet de type :class:`timedelta`. (3)" -#: ../Doc/library/datetime.rst:271 +#: ../Doc/library/datetime.rst:272 msgid "``q, r = divmod(t1, t2)``" msgstr "``q, r = divmod(t1, t2)``" -#: ../Doc/library/datetime.rst:271 +#: ../Doc/library/datetime.rst:272 msgid "" "Computes the quotient and the remainder: ``q = t1 // t2`` (3) and ``r = t1 % " "t2``. q is an integer and r is a :class:`timedelta` object." @@ -533,19 +536,19 @@ msgstr "" "Calcule le quotient et le reste : ``q = t1 // t2`` (3) et ``r = t1 % t2``. q " "est un entier et r est un objet :class:`timedelta`." -#: ../Doc/library/datetime.rst:276 +#: ../Doc/library/datetime.rst:277 msgid "``+t1``" msgstr "``+t1``" -#: ../Doc/library/datetime.rst:276 +#: ../Doc/library/datetime.rst:277 msgid "Returns a :class:`timedelta` object with the same value. (2)" msgstr "Renvoie un objet :class:`timedelta` avec la même valeur. (2)" -#: ../Doc/library/datetime.rst:279 +#: ../Doc/library/datetime.rst:280 msgid "``-t1``" msgstr "``-t1``" -#: ../Doc/library/datetime.rst:279 +#: ../Doc/library/datetime.rst:280 msgid "" "equivalent to :class:`timedelta`\\ (-*t1.days*, -*t1.seconds*, -*t1." "microseconds*), and to *t1*\\* -1. (1)(4)" @@ -553,11 +556,11 @@ msgstr "" "équivalent à :class:`timedelta`\\ (*-t1.days*, *-t1.seconds*, *-t1." "microseconds*), et à ``t1 * -1``. (1)(4)" -#: ../Doc/library/datetime.rst:284 +#: ../Doc/library/datetime.rst:285 msgid "``abs(t)``" msgstr "``abs(t)``" -#: ../Doc/library/datetime.rst:284 +#: ../Doc/library/datetime.rst:285 msgid "" "equivalent to +\\ *t* when ``t.days >= 0``, and to -*t* when ``t.days < 0``. " "(2)" @@ -565,11 +568,11 @@ msgstr "" "équivalent à ``+t`` quand ``t.days >= 0``, et à ``-t`` quand ``t.days < 0``. " "(2)" -#: ../Doc/library/datetime.rst:287 +#: ../Doc/library/datetime.rst:288 msgid "``str(t)``" msgstr "``str(t)``" -#: ../Doc/library/datetime.rst:287 +#: ../Doc/library/datetime.rst:288 msgid "" "Returns a string in the form ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, where D is " "negative for negative ``t``. (5)" @@ -577,11 +580,11 @@ msgstr "" "Renvoie une chaîne de la forme ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, où D est " "négatif pour ``t`` négatif. (5)" -#: ../Doc/library/datetime.rst:291 +#: ../Doc/library/datetime.rst:292 msgid "``repr(t)``" msgstr "``repr(t)``" -#: ../Doc/library/datetime.rst:291 +#: ../Doc/library/datetime.rst:292 msgid "" "Returns a string representation of the :class:`timedelta` object as a " "constructor call with canonical attribute values." @@ -589,29 +592,29 @@ msgstr "" "Renvoie une chaîne de la forme objet :class:`timedelta` comme un appel " "construit avec des valeurs d'attributs canoniques." -#: ../Doc/library/datetime.rst:297 ../Doc/library/datetime.rst:512 -#: ../Doc/library/datetime.rst:2176 +#: ../Doc/library/datetime.rst:298 ../Doc/library/datetime.rst:514 +#: ../Doc/library/datetime.rst:2178 msgid "Notes:" msgstr "Notes :" -#: ../Doc/library/datetime.rst:300 +#: ../Doc/library/datetime.rst:301 msgid "This is exact, but may overflow." msgstr "Ceci est exact, mais peut provoquer un débordement." -#: ../Doc/library/datetime.rst:303 +#: ../Doc/library/datetime.rst:304 msgid "This is exact, and cannot overflow." msgstr "Ceci est exact, et ne peut pas provoquer un débordement." -#: ../Doc/library/datetime.rst:306 +#: ../Doc/library/datetime.rst:307 msgid "Division by 0 raises :exc:`ZeroDivisionError`." msgstr "Une division par 0 provoque :exc:`ZeroDivisionError`." -#: ../Doc/library/datetime.rst:309 +#: ../Doc/library/datetime.rst:310 msgid "-*timedelta.max* is not representable as a :class:`timedelta` object." msgstr "" "*-timedelta.max* n'est pas représentable avec un objet :class:`timedelta`." -#: ../Doc/library/datetime.rst:312 +#: ../Doc/library/datetime.rst:313 msgid "" "String representations of :class:`timedelta` objects are normalized " "similarly to their internal representation. This leads to somewhat unusual " @@ -621,7 +624,7 @@ msgstr "" "normalisée similairement à leur représentation interne. Cela amène à des " "résultats inhabituels pour des *timedeltas* négatifs. Par exemple :" -#: ../Doc/library/datetime.rst:322 +#: ../Doc/library/datetime.rst:323 msgid "" "The expression ``t2 - t3`` will always be equal to the expression ``t2 + (-" "t3)`` except when t3 is equal to ``timedelta.max``; in that case the former " @@ -631,7 +634,7 @@ msgstr "" "sauf si *t3* vaut ``timedelta.max` ; dans ce cas, la première expression " "produit une valeur alors que la seconde lève une ``OverflowError``." -#: ../Doc/library/datetime.rst:326 +#: ../Doc/library/datetime.rst:327 msgid "" "In addition to the operations listed above :class:`timedelta` objects " "support certain additions and subtractions with :class:`date` and :class:`." @@ -641,7 +644,7 @@ msgstr "" "implémentent certaines additions et soustractions avec des objets :class:" "`date` et :class:`datetime` (voir ci-dessous)." -#: ../Doc/library/datetime.rst:330 +#: ../Doc/library/datetime.rst:331 msgid "" "Floor division and true division of a :class:`timedelta` object by another :" "class:`timedelta` object are now supported, as are remainder operations and " @@ -654,7 +657,7 @@ msgstr "" "division et la multiplication d'un objet :class:`timedelta` par un :class:" "`float` sont maintenant implémentées." -#: ../Doc/library/datetime.rst:337 +#: ../Doc/library/datetime.rst:338 msgid "" "Comparisons of :class:`timedelta` objects are supported with the :class:" "`timedelta` object representing the smaller duration considered to be the " @@ -672,7 +675,7 @@ msgstr "" "est levée à moins que la comparaison soit ``==`` ou ``!=``. Ces derniers " "cas renvoient respectivement :const:`False` et :const:`True`." -#: ../Doc/library/datetime.rst:345 +#: ../Doc/library/datetime.rst:346 msgid "" ":class:`timedelta` objects are :term:`hashable` (usable as dictionary keys), " "support efficient pickling, and in Boolean contexts, a :class:`timedelta` " @@ -684,20 +687,22 @@ msgstr "" "booléen, un :class:`timedelta` est considéré vrai si et seulement si il " "n'est pas égal à ``timedelta(0)``." -#: ../Doc/library/datetime.rst:349 ../Doc/library/datetime.rst:542 -#: ../Doc/library/datetime.rst:1016 ../Doc/library/datetime.rst:1536 +#: ../Doc/library/datetime.rst:350 ../Doc/library/datetime.rst:544 +#: ../Doc/library/datetime.rst:1018 ../Doc/library/datetime.rst:1538 msgid "Instance methods:" msgstr "Méthodes de l'instance :" -#: ../Doc/library/datetime.rst:353 +#: ../Doc/library/datetime.rst:354 +#, fuzzy msgid "" "Return the total number of seconds contained in the duration. Equivalent to " -"``td / timedelta(seconds=1)``." +"``td / timedelta(seconds=1)``. For interval units other than seconds, use " +"the division form directly (e.g. ``td / timedelta(microseconds=1)``)." msgstr "" "Renvoie le nombre total de secondes contenues dans la durée. Équivalent à " "``td / timedelta(seconds=1)``." -#: ../Doc/library/datetime.rst:356 +#: ../Doc/library/datetime.rst:358 msgid "" "Note that for very large time intervals (greater than 270 years on most " "platforms) this method will lose microsecond accuracy." @@ -706,15 +711,15 @@ msgstr "" "sur la plupart des plateformes), cette méthode perdra la précision des " "microsecondes." -#: ../Doc/library/datetime.rst:362 +#: ../Doc/library/datetime.rst:364 msgid "Example usage:" msgstr "Exemple d'utilisation :" -#: ../Doc/library/datetime.rst:388 +#: ../Doc/library/datetime.rst:390 msgid ":class:`date` Objects" msgstr "Objets :class:`date`" -#: ../Doc/library/datetime.rst:390 +#: ../Doc/library/datetime.rst:392 msgid "" "A :class:`date` object represents a date (year, month and day) in an " "idealized calendar, the current Gregorian calendar indefinitely extended in " @@ -734,7 +739,7 @@ msgstr "" "base de tous les calculs. Référez-vous au livre pour les algorithmes de " "conversion entre calendriers grégorien proleptique et les autres systèmes." -#: ../Doc/library/datetime.rst:402 +#: ../Doc/library/datetime.rst:404 msgid "" "All arguments are required. Arguments may be integers, in the following " "ranges:" @@ -742,30 +747,30 @@ msgstr "" "Tous les arguments sont requis. Les arguments peuvent être des entiers, " "dans les intervalles suivant :" -#: ../Doc/library/datetime.rst:405 +#: ../Doc/library/datetime.rst:407 msgid "``MINYEAR <= year <= MAXYEAR``" msgstr "``MINYEAR <= year <= MAXYEAR``" -#: ../Doc/library/datetime.rst:406 +#: ../Doc/library/datetime.rst:408 msgid "``1 <= month <= 12``" msgstr "``1 <= month <= 12``" -#: ../Doc/library/datetime.rst:407 +#: ../Doc/library/datetime.rst:409 msgid "``1 <= day <= number of days in the given month and year``" msgstr "``1 <= day <= nombre de jours dans le mois et l'année donnés``" -#: ../Doc/library/datetime.rst:409 ../Doc/library/datetime.rst:720 +#: ../Doc/library/datetime.rst:411 ../Doc/library/datetime.rst:722 msgid "" "If an argument outside those ranges is given, :exc:`ValueError` is raised." msgstr "" "Si un argument est donné en dehors de ces intervalles, une :exc:`valueError` " "est levée." -#: ../Doc/library/datetime.rst:412 ../Doc/library/datetime.rst:725 +#: ../Doc/library/datetime.rst:414 ../Doc/library/datetime.rst:727 msgid "Other constructors, all class methods:" msgstr "Autres constructeurs, méthodes de classe :" -#: ../Doc/library/datetime.rst:416 +#: ../Doc/library/datetime.rst:418 msgid "" "Return the current local date. This is equivalent to ``date." "fromtimestamp(time.time())``." @@ -773,7 +778,7 @@ msgstr "" "Renvoie la date locale courante. Cela est équivalent à ``date." "fromtimestamp(time.time())``." -#: ../Doc/library/datetime.rst:422 +#: ../Doc/library/datetime.rst:424 msgid "" "Return the local date corresponding to the POSIX timestamp, such as is " "returned by :func:`time.time`. This may raise :exc:`OverflowError`, if the " @@ -792,7 +797,7 @@ msgstr "" "incluent les secondes de décalage dans leur notion d'horodatage, ces " "secondes sont ignorées par :meth:`fromtimestamp`." -#: ../Doc/library/datetime.rst:430 +#: ../Doc/library/datetime.rst:432 msgid "" "Raise :exc:`OverflowError` instead of :exc:`ValueError` if the timestamp is " "out of the range of values supported by the platform C :c:func:`localtime` " @@ -804,7 +809,7 @@ msgstr "" "fonction C :c:func:`localtime` de la plateforme. Lève une :exc:`OSError` " "plutôt qu'une :exc:`ValueError` en cas d'échec de :c:func:`localtime`." -#: ../Doc/library/datetime.rst:439 +#: ../Doc/library/datetime.rst:441 msgid "" "Return the date corresponding to the proleptic Gregorian ordinal, where " "January 1 of year 1 has ordinal 1. :exc:`ValueError` is raised unless ``1 " @@ -816,7 +821,7 @@ msgstr "" "``1 <= ordinal <= date.max.toordinal()``. Pour toute date *d*, ``date." "fromordinal(d.toordinal()) == d``." -#: ../Doc/library/datetime.rst:447 +#: ../Doc/library/datetime.rst:449 msgid "" "Return a :class:`date` corresponding to a *date_string* in the format " "emitted by :meth:`date.isoformat`. Specifically, this function supports " @@ -826,7 +831,7 @@ msgstr "" "par :meth:`date.isoformat`. Spécifiquement, cette fonction gère des chaînes " "dans le(s) format(s) ``YYYY-MM-DD``." -#: ../Doc/library/datetime.rst:453 +#: ../Doc/library/datetime.rst:455 msgid "" "This does not support parsing arbitrary ISO 8601 strings - it is only " "intended as the inverse operation of :meth:`date.isoformat`." @@ -834,20 +839,20 @@ msgstr "" "Ceci n'implémente pas l'analyse de chaînes ISO 8601 arbitraires, ceci est " "seulement destiné à réaliser l'opération inverse de :meth:`date.isoformat`." -#: ../Doc/library/datetime.rst:460 ../Doc/library/datetime.rst:866 -#: ../Doc/library/datetime.rst:1427 ../Doc/library/datetime.rst:1996 +#: ../Doc/library/datetime.rst:462 ../Doc/library/datetime.rst:868 +#: ../Doc/library/datetime.rst:1429 ../Doc/library/datetime.rst:1998 msgid "Class attributes:" msgstr "Attributs de la classe :" -#: ../Doc/library/datetime.rst:464 +#: ../Doc/library/datetime.rst:466 msgid "The earliest representable date, ``date(MINYEAR, 1, 1)``." msgstr "La plus vieille date représentable, ``date(MINYEAR, 1, 1)``." -#: ../Doc/library/datetime.rst:469 +#: ../Doc/library/datetime.rst:471 msgid "The latest representable date, ``date(MAXYEAR, 12, 31)``." msgstr "La dernière date représentable, ``date(MAXYEAR, 12, 31)``." -#: ../Doc/library/datetime.rst:474 +#: ../Doc/library/datetime.rst:476 msgid "" "The smallest possible difference between non-equal date objects, " "``timedelta(days=1)``." @@ -855,48 +860,48 @@ msgstr "" "La plus petite différence possible entre deux objets dates non-égaux, " "``timedelta(days=1)``." -#: ../Doc/library/datetime.rst:482 ../Doc/library/datetime.rst:890 +#: ../Doc/library/datetime.rst:484 ../Doc/library/datetime.rst:892 msgid "Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive." msgstr "Entre :const:`MINYEAR` et :const:`MAXYEAR` inclus." -#: ../Doc/library/datetime.rst:487 ../Doc/library/datetime.rst:895 +#: ../Doc/library/datetime.rst:489 ../Doc/library/datetime.rst:897 msgid "Between 1 and 12 inclusive." msgstr "Entre 1 et 12 inclus." -#: ../Doc/library/datetime.rst:492 ../Doc/library/datetime.rst:900 +#: ../Doc/library/datetime.rst:494 ../Doc/library/datetime.rst:902 msgid "Between 1 and the number of days in the given month of the given year." msgstr "Entre 1 et le nombre de jours du mois donné de l'année donnée." -#: ../Doc/library/datetime.rst:500 +#: ../Doc/library/datetime.rst:502 msgid "``date2 = date1 + timedelta``" msgstr "``date2 = date1 + timedelta``" -#: ../Doc/library/datetime.rst:500 +#: ../Doc/library/datetime.rst:502 msgid "*date2* is ``timedelta.days`` days removed from *date1*. (1)" msgstr "" "*date2* est décalée de ``timedelta.days`` jours par rapport à *date1*. (1)" -#: ../Doc/library/datetime.rst:503 +#: ../Doc/library/datetime.rst:505 msgid "``date2 = date1 - timedelta``" msgstr "``date2 = date1 - timedelta``" -#: ../Doc/library/datetime.rst:503 +#: ../Doc/library/datetime.rst:505 msgid "Computes *date2* such that ``date2 + timedelta == date1``. (2)" msgstr "Calcule *date2* de façon à avoir ``date2 + timedelta == date1``. (2)" -#: ../Doc/library/datetime.rst:506 +#: ../Doc/library/datetime.rst:508 msgid "``timedelta = date1 - date2``" msgstr "``timedelta = date1 - date2``" -#: ../Doc/library/datetime.rst:506 ../Doc/library/datetime.rst:948 +#: ../Doc/library/datetime.rst:508 ../Doc/library/datetime.rst:950 msgid "\\(3)" msgstr "\\(3)" -#: ../Doc/library/datetime.rst:508 +#: ../Doc/library/datetime.rst:510 msgid "``date1 < date2``" msgstr "``date1 < date2``" -#: ../Doc/library/datetime.rst:508 +#: ../Doc/library/datetime.rst:510 msgid "" "*date1* is considered less than *date2* when *date1* precedes *date2* in " "time. (4)" @@ -904,7 +909,7 @@ msgstr "" "*date1* est considérée comme inférieure à *date2* quand *date1* précède " "*date2* dans le temps. (4)" -#: ../Doc/library/datetime.rst:515 +#: ../Doc/library/datetime.rst:517 msgid "" "*date2* is moved forward in time if ``timedelta.days > 0``, or backward if " "``timedelta.days < 0``. Afterward ``date2 - date1 == timedelta.days``. " @@ -918,11 +923,11 @@ msgstr "" "Une :exc:`OverflowError` est levée si ``date2.year`` devait être inférieure " "à :const:`MINYEAR` ou supérieure à :const:`MAXYEAR`." -#: ../Doc/library/datetime.rst:522 +#: ../Doc/library/datetime.rst:524 msgid "``timedelta.seconds`` and ``timedelta.microseconds`` are ignored." msgstr "``timedelta.seconds`` et ``timedelta.microseconds`` sont ignorés." -#: ../Doc/library/datetime.rst:525 +#: ../Doc/library/datetime.rst:527 msgid "" "This is exact, and cannot overflow. timedelta.seconds and timedelta." "microseconds are 0, and date2 + timedelta == date1 after." @@ -931,7 +936,7 @@ msgstr "" "et ``timedelta.microseconds`` valent ``0``, et ``date2 + timedelta == " "date1`` après cela." -#: ../Doc/library/datetime.rst:529 +#: ../Doc/library/datetime.rst:531 msgid "" "In other words, ``date1 < date2`` if and only if ``date1.toordinal() < date2." "toordinal()``. Date comparison raises :exc:`TypeError` if the other " @@ -953,7 +958,7 @@ msgstr "" "`TypeError` est levée à moins que la comparaison soit ``==`` ou ``!=``. Ces " "derniers cas renvoient respectivement :const:`False` et :const:`True`." -#: ../Doc/library/datetime.rst:539 +#: ../Doc/library/datetime.rst:541 msgid "" "Dates can be used as dictionary keys. In Boolean contexts, all :class:`date` " "objects are considered to be true." @@ -961,7 +966,7 @@ msgstr "" "Les dates peuvent être utilisées en tant que clés de dictionnaires. Dans un " "contexte booléen, tous les objets :class:`date` sont considérés comme vrais." -#: ../Doc/library/datetime.rst:546 +#: ../Doc/library/datetime.rst:548 msgid "" "Return a date with the same value, except for those parameters given new " "values by whichever keyword arguments are specified. For example, if ``d == " @@ -971,7 +976,7 @@ msgstr "" "par arguments nommés. Par exemple, si ``d == date(2002, 12, 31)``, alors " "``d.replace(day=26) == date(2002, 12, 26)``." -#: ../Doc/library/datetime.rst:553 +#: ../Doc/library/datetime.rst:555 msgid "" "Return a :class:`time.struct_time` such as returned by :func:`time." "localtime`. The hours, minutes and seconds are 0, and the DST flag is -1. " @@ -987,7 +992,7 @@ msgstr "" "``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` est le numéro " "du jour dans l'année courante, commençant avec ``1`` pour le 1er janvier." -#: ../Doc/library/datetime.rst:563 +#: ../Doc/library/datetime.rst:565 msgid "" "Return the proleptic Gregorian ordinal of the date, where January 1 of year " "1 has ordinal 1. For any :class:`date` object *d*, ``date.fromordinal(d." @@ -997,7 +1002,7 @@ msgstr "" "l'an 1 a l'ordinal 1. Pour tout objet :class:`date` *d*, ``date." "fromordinal(d.toordinal()) == d``." -#: ../Doc/library/datetime.rst:570 +#: ../Doc/library/datetime.rst:572 msgid "" "Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " "For example, ``date(2002, 12, 4).weekday() == 2``, a Wednesday. See also :" @@ -1007,7 +1012,7 @@ msgstr "" "dimanche vaut 6. Par exemple, ``date(2002, 12, 4).weekday() == 2``, un " "mercredi. Voir aussi :meth:`isoweekday`." -#: ../Doc/library/datetime.rst:577 +#: ../Doc/library/datetime.rst:579 msgid "" "Return the day of the week as an integer, where Monday is 1 and Sunday is 7. " "For example, ``date(2002, 12, 4).isoweekday() == 3``, a Wednesday. See also :" @@ -1017,13 +1022,13 @@ msgstr "" "dimanche vaut 7. Par exemple, ``date(2002, 12, 4).isoweekday() == 3``, un " "mercredi. Voir aussi :meth:`weekday`, :meth:`isocalendar`." -#: ../Doc/library/datetime.rst:584 +#: ../Doc/library/datetime.rst:586 msgid "Return a 3-tuple, (ISO year, ISO week number, ISO weekday)." msgstr "" "Renvoie un *tuple* de 3 éléments, (année ISO, numéro de semaine ISO, jour de " "la semaine ISO)." -#: ../Doc/library/datetime.rst:586 +#: ../Doc/library/datetime.rst:588 msgid "" "The ISO calendar is a widely used variant of the Gregorian calendar. See " "https://www.staff.science.uu.nl/~gent0113/calendar/isocalendar.htm for a " @@ -1033,7 +1038,7 @@ msgstr "" "grégorien. Voir https://www.staff.science.uu.nl/~gent0113/calendar/" "isocalendar.htm pour une bonne explication." -#: ../Doc/library/datetime.rst:590 +#: ../Doc/library/datetime.rst:592 msgid "" "The ISO year consists of 52 or 53 full weeks, and where a week starts on a " "Monday and ends on a Sunday. The first week of an ISO year is the first " @@ -1047,7 +1052,7 @@ msgstr "" "un jeudi. Elle est appelée la semaine numéro 1, et l'année ISO de ce " "mercredi est la même que son année grégorienne." -#: ../Doc/library/datetime.rst:595 +#: ../Doc/library/datetime.rst:597 msgid "" "For example, 2004 begins on a Thursday, so the first week of ISO year 2004 " "begins on Monday, 29 Dec 2003 and ends on Sunday, 4 Jan 2004, so that " @@ -1059,7 +1064,7 @@ msgstr "" "4 janvier 2004, ainsi ``date(2003, 12, 29).isocalendar() == (2004, 1, 1)`` " "et ``date(2004, 1, 4).isocalendar() == (2004, 1, 7)``." -#: ../Doc/library/datetime.rst:603 +#: ../Doc/library/datetime.rst:605 msgid "" "Return a string representing the date in ISO 8601 format, 'YYYY-MM-DD'. For " "example, ``date(2002, 12, 4).isoformat() == '2002-12-04'``." @@ -1068,11 +1073,11 @@ msgstr "" "\"YYYY-MM-DD\". Par exemple, ``date(2002, 12, 4).isoformat() == " "'2002-12-04'``." -#: ../Doc/library/datetime.rst:609 +#: ../Doc/library/datetime.rst:611 msgid "For a date *d*, ``str(d)`` is equivalent to ``d.isoformat()``." msgstr "Pour une date *d*, ``str(d)`` est équivalent à ``d.isoformat()``." -#: ../Doc/library/datetime.rst:614 +#: ../Doc/library/datetime.rst:616 msgid "" "Return a string representing the date, for example ``date(2002, 12, 4)." "ctime() == 'Wed Dec 4 00:00:00 2002'``. ``d.ctime()`` is equivalent to " @@ -1086,7 +1091,7 @@ msgstr "" "plateformes où la fonction C native :c:func:`ctime` (que :func:`time.ctime` " "invoque, mais pas :meth:`date.ctime`) est conforme au standard C." -#: ../Doc/library/datetime.rst:623 +#: ../Doc/library/datetime.rst:625 msgid "" "Return a string representing the date, controlled by an explicit format " "string. Format codes referring to hours, minutes or seconds will see 0 " @@ -1098,7 +1103,7 @@ msgstr "" "heures, minutes ou secondes auront pour valeur 0. Pour une liste complète " "des directives de formatage, voir :ref:`strftime-strptime-behavior`." -#: ../Doc/library/datetime.rst:631 +#: ../Doc/library/datetime.rst:633 msgid "" "Same as :meth:`.date.strftime`. This makes it possible to specify a format " "string for a :class:`.date` object in :ref:`formatted string literals 0, or backward if ``timedelta.days`` < 0. " @@ -1546,7 +1551,7 @@ msgstr "" "qu'aucun ajustement de fuseau horaire n'est réalisé même si l'entrée est " "avisée." -#: ../Doc/library/datetime.rst:964 +#: ../Doc/library/datetime.rst:966 msgid "" "Computes the datetime2 such that datetime2 + timedelta == datetime1. As for " "addition, the result has the same :attr:`~.datetime.tzinfo` attribute as the " @@ -1558,7 +1563,7 @@ msgstr "" "que le *datetime* d'entrée, et aucun ajustement de fuseau horaire n'est " "réalisé même si l'entrée est avisée." -#: ../Doc/library/datetime.rst:969 +#: ../Doc/library/datetime.rst:971 msgid "" "Subtraction of a :class:`.datetime` from a :class:`.datetime` is defined " "only if both operands are naive, or if both are aware. If one is aware and " @@ -1569,7 +1574,7 @@ msgstr "" "avisés. Si l'un est avisé et que l'autre est naïf, une :exc:`TypeError` est " "levée." -#: ../Doc/library/datetime.rst:973 +#: ../Doc/library/datetime.rst:975 msgid "" "If both are naive, or both are aware and have the same :attr:`~.datetime." "tzinfo` attribute, the :attr:`~.datetime.tzinfo` attributes are ignored, and " @@ -1582,7 +1587,7 @@ msgstr "" "``datetime2 + t == datetime1``. Aucun ajustement de fuseau horaire n'a lieu " "dans ce cas." -#: ../Doc/library/datetime.rst:978 +#: ../Doc/library/datetime.rst:980 msgid "" "If both are aware and have different :attr:`~.datetime.tzinfo` attributes, " "``a-b`` acts as if *a* and *b* were first converted to naive UTC datetimes " @@ -1596,7 +1601,7 @@ msgstr "" "a.utcoffset()) - (b.replace(tzinfo=None) - b.utcoffset())`` à l'exception " "que l'implémentation ne produit jamais de débordement." -#: ../Doc/library/datetime.rst:984 +#: ../Doc/library/datetime.rst:986 msgid "" "*datetime1* is considered less than *datetime2* when *datetime1* precedes " "*datetime2* in time." @@ -1604,7 +1609,7 @@ msgstr "" "*datetime1* est considéré inférieur à *datetime2* quand il le précède dans " "le temps." -#: ../Doc/library/datetime.rst:987 +#: ../Doc/library/datetime.rst:989 msgid "" "If one comparand is naive and the other is aware, :exc:`TypeError` is raised " "if an order comparison is attempted. For equality comparisons, naive " @@ -1614,7 +1619,7 @@ msgstr "" "une comparaison d'ordre est attendue. Pour les comparaisons d'égalité, les " "instances naïves ne sont jamais égales aux instances avisées." -#: ../Doc/library/datetime.rst:991 +#: ../Doc/library/datetime.rst:993 msgid "" "If both comparands are aware, and have the same :attr:`~.datetime.tzinfo` " "attribute, the common :attr:`~.datetime.tzinfo` attribute is ignored and the " @@ -1630,7 +1635,7 @@ msgstr "" "premièrement ajustés en soustrayant leurs décalages UTC (obtenus depuis " "``self.utcoffset()``)." -#: ../Doc/library/datetime.rst:997 +#: ../Doc/library/datetime.rst:999 msgid "" "Equality comparisons between naive and aware :class:`.datetime` instances " "don't raise :exc:`TypeError`." @@ -1638,7 +1643,7 @@ msgstr "" "Les comparaisons d'égalité entre des instances :class:`.datetime` naïves et " "avisées ne lèvent pas de :exc:`TypeError`." -#: ../Doc/library/datetime.rst:1003 +#: ../Doc/library/datetime.rst:1005 msgid "" "In order to stop comparison from falling back to the default scheme of " "comparing object addresses, datetime comparison normally raises :exc:" @@ -1661,7 +1666,7 @@ msgstr "" "comparaison soit ``==`` ou ``!=``. Ces derniers cas renvoient " "respectivement :const:`False` et :const:`True`." -#: ../Doc/library/datetime.rst:1013 +#: ../Doc/library/datetime.rst:1015 msgid "" ":class:`.datetime` objects can be used as dictionary keys. In Boolean " "contexts, all :class:`.datetime` objects are considered to be true." @@ -1670,11 +1675,11 @@ msgstr "" "dictionnaires. Dans les contextes booléens, tous les objets :class:`." "datetime` sont considérés vrais." -#: ../Doc/library/datetime.rst:1020 +#: ../Doc/library/datetime.rst:1022 msgid "Return :class:`date` object with same year, month and day." msgstr "Renvoie un objet :class:`date` avec les mêmes année, mois et jour." -#: ../Doc/library/datetime.rst:1025 +#: ../Doc/library/datetime.rst:1027 msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond and " "fold. :attr:`.tzinfo` is ``None``. See also method :meth:`timetz`." @@ -1683,11 +1688,11 @@ msgstr "" "microseconde et *fold*. :attr:`.tzinfo` est ``None``. Voir aussi la " "méthode :meth:`timetz`." -#: ../Doc/library/datetime.rst:1028 ../Doc/library/datetime.rst:1037 +#: ../Doc/library/datetime.rst:1030 ../Doc/library/datetime.rst:1039 msgid "The fold value is copied to the returned :class:`.time` object." msgstr "La valeur *fold* est copiée vers l'objet :class:`.time` renvoyé." -#: ../Doc/library/datetime.rst:1034 +#: ../Doc/library/datetime.rst:1036 msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond, " "fold, and tzinfo attributes. See also method :meth:`time`." @@ -1696,7 +1701,7 @@ msgstr "" "seconde, microseconde, *fold* et *tzinfo*. Voir aussi la méthode :meth:" "`time`." -#: ../Doc/library/datetime.rst:1045 +#: ../Doc/library/datetime.rst:1047 msgid "" "Return a datetime with the same attributes, except for those attributes " "given new values by whichever keyword arguments are specified. Note that " @@ -1708,7 +1713,7 @@ msgstr "" "Notez que ``tzinfo=None`` peut être spécifié pour créer un *datetime* naïf " "depuis un *datetime* avisé sans conversion de la date ou de l'heure." -#: ../Doc/library/datetime.rst:1056 +#: ../Doc/library/datetime.rst:1058 msgid "" "Return a :class:`.datetime` object with new :attr:`.tzinfo` attribute *tz*, " "adjusting the date and time data so the result is the same UTC time as " @@ -1718,7 +1723,7 @@ msgstr "" "valant *tz*, ajustant la date et l'heure pour que le résultat soit le même " "temps UTC que *self*, mais dans le temps local au fuseau *tz*." -#: ../Doc/library/datetime.rst:1060 +#: ../Doc/library/datetime.rst:1062 msgid "" "If provided, *tz* must be an instance of a :class:`tzinfo` subclass, and " "its :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If " @@ -1729,7 +1734,7 @@ msgstr "" "``None``. Si *self* est naïf, Python considère que le temps est exprimé " "dans le fuseau horaire du système." -#: ../Doc/library/datetime.rst:1064 +#: ../Doc/library/datetime.rst:1066 msgid "" "If called without arguments (or with ``tz=None``) the system local timezone " "is assumed for the target timezone. The ``.tzinfo`` attribute of the " @@ -1741,7 +1746,7 @@ msgstr "" "l'instance *datetime* convertie aura pour valeur une instance de :class:" "`timezone` avec le nom de fuseau et le décalage obtenus depuis l'OS." -#: ../Doc/library/datetime.rst:1069 +#: ../Doc/library/datetime.rst:1071 msgid "" "If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no " "adjustment of date or time data is performed. Else the result is local time " @@ -1755,7 +1760,7 @@ msgstr "" "après ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` aura les " "mêmes données de date et d'heure que ``dt - dt.utcoffset()``." -#: ../Doc/library/datetime.rst:1075 +#: ../Doc/library/datetime.rst:1077 msgid "" "If you merely want to attach a time zone object *tz* to a datetime *dt* " "without adjustment of date and time data, use ``dt.replace(tzinfo=tz)``. If " @@ -1768,7 +1773,7 @@ msgstr "" "d'un *datetime* *dt* avisé sans conversion des données de date et d'heure, " "utilisez ``dt.replace(tzinfo=None)``." -#: ../Doc/library/datetime.rst:1080 +#: ../Doc/library/datetime.rst:1082 msgid "" "Note that the default :meth:`tzinfo.fromutc` method can be overridden in a :" "class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`. " @@ -1779,11 +1784,11 @@ msgstr "" "meth:`astimezone`. En ignorant les cas d'erreurs, :meth:`astimezone` se " "comporte comme : ::" -#: ../Doc/library/datetime.rst:1092 +#: ../Doc/library/datetime.rst:1094 msgid "*tz* now can be omitted." msgstr "*tz* peut maintenant être omis." -#: ../Doc/library/datetime.rst:1095 +#: ../Doc/library/datetime.rst:1097 msgid "" "The :meth:`astimezone` method can now be called on naive instances that are " "presumed to represent system local time." @@ -1791,7 +1796,7 @@ msgstr "" "La méthode :meth:`astimezone` peut maintenant être appelée sur des instances " "naïves qui sont supposées représenter un temps local au système." -#: ../Doc/library/datetime.rst:1102 +#: ../Doc/library/datetime.rst:1104 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "utcoffset(self)``, and raises an exception if the latter doesn't return " @@ -1802,13 +1807,13 @@ msgstr "" "ne renvoie pas ``None`` ou un objet :class:`timedelta` d'une magnitude " "inférieure à un jour." -#: ../Doc/library/datetime.rst:1106 ../Doc/library/datetime.rst:1618 -#: ../Doc/library/datetime.rst:1717 ../Doc/library/datetime.rst:1958 -#: ../Doc/library/datetime.rst:1969 ../Doc/library/datetime.rst:2232 +#: ../Doc/library/datetime.rst:1108 ../Doc/library/datetime.rst:1620 +#: ../Doc/library/datetime.rst:1719 ../Doc/library/datetime.rst:1960 +#: ../Doc/library/datetime.rst:1971 ../Doc/library/datetime.rst:2234 msgid "The UTC offset is not restricted to a whole number of minutes." msgstr "Le décalage UTC peut aussi être autre chose qu'un ensemble de minutes." -#: ../Doc/library/datetime.rst:1112 +#: ../Doc/library/datetime.rst:1114 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "dst(self)``, and raises an exception if the latter doesn't return ``None`` " @@ -1819,12 +1824,12 @@ msgstr "" "renvoie pas ``None`` ou un objet :class:`timedelta` d'une magnitude " "inférieure à un jour." -#: ../Doc/library/datetime.rst:1116 ../Doc/library/datetime.rst:1628 -#: ../Doc/library/datetime.rst:1769 +#: ../Doc/library/datetime.rst:1118 ../Doc/library/datetime.rst:1630 +#: ../Doc/library/datetime.rst:1771 msgid "The DST offset is not restricted to a whole number of minutes." msgstr "Le décalage DST n'est pas restreint à des minutes entières." -#: ../Doc/library/datetime.rst:1122 +#: ../Doc/library/datetime.rst:1124 msgid "" "If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." "tzname(self)``, raises an exception if the latter doesn't return ``None`` or " @@ -1834,7 +1839,7 @@ msgstr "" "tzinfo.tzname(self)``, lève une exception si l'expression précédente ne " "renvoie pas ``None`` ou une chaîne de caractères." -#: ../Doc/library/datetime.rst:1129 +#: ../Doc/library/datetime.rst:1131 msgid "" "Return a :class:`time.struct_time` such as returned by :func:`time." "localtime`. ``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d." @@ -1857,7 +1862,7 @@ msgstr "" "une valeur non-nulle, :attr:`tm_isdst` est mise à ``1`` ; sinon :attr:" "`tm_isdst` est mise à ``0``." -#: ../Doc/library/datetime.rst:1142 +#: ../Doc/library/datetime.rst:1144 msgid "" "If :class:`.datetime` instance *d* is naive, this is the same as ``d." "timetuple()`` except that :attr:`tm_isdst` is forced to 0 regardless of what " @@ -1868,7 +1873,7 @@ msgstr "" "de ce que renvoie ``d.dst()``. L'heure d'été n'est jamais effective pour un " "temps UTC." -#: ../Doc/library/datetime.rst:1146 +#: ../Doc/library/datetime.rst:1148 msgid "" "If *d* is aware, *d* is normalized to UTC time, by subtracting ``d." "utcoffset()``, and a :class:`time.struct_time` for the normalized time is " @@ -1882,7 +1887,7 @@ msgstr "" "`OverflowError` peut être levée si *d.year* vaut ``MINYEAR``ou ``MAXYEAR`` " "et que l'ajustement UTC fait dépasser les bornes." -#: ../Doc/library/datetime.rst:1156 +#: ../Doc/library/datetime.rst:1158 msgid "" "Return the proleptic Gregorian ordinal of the date. The same as ``self." "date().toordinal()``." @@ -1890,7 +1895,7 @@ msgstr "" "Renvoie l'ordinal du calendrier géorgien proleptique de cette date. " "Identique à ``self.date().toordinal()``." -#: ../Doc/library/datetime.rst:1161 +#: ../Doc/library/datetime.rst:1163 msgid "" "Return POSIX timestamp corresponding to the :class:`.datetime` instance. " "The return value is a :class:`float` similar to that returned by :func:`time." @@ -1900,7 +1905,7 @@ msgstr "" "l'instance :class:`.datetime`. La valeur renvoyée est un :class:`float` " "similaire à ceux renvoyés par :func:`time.time`." -#: ../Doc/library/datetime.rst:1165 +#: ../Doc/library/datetime.rst:1167 msgid "" "Naive :class:`.datetime` instances are assumed to represent local time and " "this method relies on the platform C :c:func:`mktime` function to perform " @@ -1915,14 +1920,14 @@ msgstr "" "plateformes, cette méthode peut lever une :exc:`OverflowError` pour les " "temps trop éloignés dans le passé ou le futur." -#: ../Doc/library/datetime.rst:1172 +#: ../Doc/library/datetime.rst:1174 msgid "" "For aware :class:`.datetime` instances, the return value is computed as::" msgstr "" "Pour les instances :class:`.datetime` avisées, la valeur renvoyée est " "calculée comme suit : ::" -#: ../Doc/library/datetime.rst:1179 +#: ../Doc/library/datetime.rst:1181 msgid "" "The :meth:`timestamp` method uses the :attr:`.fold` attribute to " "disambiguate the times during a repeated interval." @@ -1930,7 +1935,7 @@ msgstr "" "La méthode :meth:`timestamp` utilise l'attribut :attr:`.fold` pour " "désambiguïser le temps dans un intervalle répété." -#: ../Doc/library/datetime.rst:1185 +#: ../Doc/library/datetime.rst:1187 msgid "" "There is no method to obtain the POSIX timestamp directly from a naive :" "class:`.datetime` instance representing UTC time. If your application uses " @@ -1943,11 +1948,11 @@ msgstr "" "que le fuseau horaire de votre système est UTC, vous pouvez obtenir " "l'horodatage *POSIX* en fournissant ``tzinfo=timezone.utc`` : ::" -#: ../Doc/library/datetime.rst:1193 +#: ../Doc/library/datetime.rst:1195 msgid "or by calculating the timestamp directly::" msgstr "ou en calculant l'horodatage (*timestamp* en anglais) directement : ::" -#: ../Doc/library/datetime.rst:1199 +#: ../Doc/library/datetime.rst:1201 msgid "" "Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " "The same as ``self.date().weekday()``. See also :meth:`isoweekday`." @@ -1956,7 +1961,7 @@ msgstr "" "dimanche vaut 6. Identique à ``self.date().weekday()``. Voir aussi :meth:" "`isoweekday`." -#: ../Doc/library/datetime.rst:1205 +#: ../Doc/library/datetime.rst:1207 msgid "" "Return the day of the week as an integer, where Monday is 1 and Sunday is 7. " "The same as ``self.date().isoweekday()``. See also :meth:`weekday`, :meth:" @@ -1966,7 +1971,7 @@ msgstr "" "dimanche vaut 7. Identique à ``self.date().isoweekday()``. Voir aussi :meth:" "`weekday`, :meth:`isocalendar`." -#: ../Doc/library/datetime.rst:1212 +#: ../Doc/library/datetime.rst:1214 msgid "" "Return a 3-tuple, (ISO year, ISO week number, ISO weekday). The same as " "``self.date().isocalendar()``." @@ -1974,7 +1979,7 @@ msgstr "" "Renvoie un *tuple* de 3 éléments, (année ISO, numéro de semaine ISO, jour de " "la semaine ISO). Identique à ``self.date().isocalendar()``." -#: ../Doc/library/datetime.rst:1218 +#: ../Doc/library/datetime.rst:1220 msgid "" "Return a string representing the date and time in ISO 8601 format, YYYY-MM-" "DDTHH:MM:SS.ffffff or, if :attr:`microsecond` is 0, YYYY-MM-DDTHH:MM:SS" @@ -1983,7 +1988,7 @@ msgstr "" "MM-DDTHH:MM:SS.ffffff* ou, si :attr:`microsecond` vaut 0, *YYYY-MM-DDTHH:MM:" "SS*" -#: ../Doc/library/datetime.rst:1222 +#: ../Doc/library/datetime.rst:1224 msgid "" "If :meth:`utcoffset` does not return ``None``, a string is appended, giving " "the UTC offset: YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]] or, if :attr:" @@ -1994,7 +1999,7 @@ msgstr "" "DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]]* ou, si :attr:`microsecond` vaut 0, " "*YYYY-MM-DDTHH:MM:SS+HH:MM[:SS[.ffffff]]*" -#: ../Doc/library/datetime.rst:1227 +#: ../Doc/library/datetime.rst:1229 msgid "" "The optional argument *sep* (default ``'T'``) is a one-character separator, " "placed between the date and time portions of the result. For example," @@ -2003,7 +2008,7 @@ msgstr "" "d'un caractère, placé entre les portions du résultat correspondant à la date " "et à l'heure. Par exemple," -#: ../Doc/library/datetime.rst:1237 ../Doc/library/datetime.rst:1557 +#: ../Doc/library/datetime.rst:1239 ../Doc/library/datetime.rst:1559 msgid "" "The optional argument *timespec* specifies the number of additional " "components of the time to include (the default is ``'auto'``). It can be one " @@ -2013,7 +2018,7 @@ msgstr "" "additionnels de temps à inclure (par défaut ``'auto'``). Il peut valoir " "l'une des valeurs suivantes :" -#: ../Doc/library/datetime.rst:1241 ../Doc/library/datetime.rst:1561 +#: ../Doc/library/datetime.rst:1243 ../Doc/library/datetime.rst:1563 msgid "" "``'auto'``: Same as ``'seconds'`` if :attr:`microsecond` is 0, same as " "``'microseconds'`` otherwise." @@ -2021,15 +2026,15 @@ msgstr "" "``'auto'`` : Identique à ``'seconds'`` si :attr:`microsecond` vaut 0, à " "``'microseconds'`` sinon." -#: ../Doc/library/datetime.rst:1243 ../Doc/library/datetime.rst:1563 +#: ../Doc/library/datetime.rst:1245 ../Doc/library/datetime.rst:1565 msgid "``'hours'``: Include the :attr:`hour` in the two-digit HH format." msgstr "``'hours'`` : Inclut :attr:`hour` au format à deux chiffres HH." -#: ../Doc/library/datetime.rst:1244 ../Doc/library/datetime.rst:1564 +#: ../Doc/library/datetime.rst:1246 ../Doc/library/datetime.rst:1566 msgid "``'minutes'``: Include :attr:`hour` and :attr:`minute` in HH:MM format." msgstr "``'minutes'`` : Inclut :attr:`hour` et :attr:`minute` au format HH:MM." -#: ../Doc/library/datetime.rst:1245 ../Doc/library/datetime.rst:1565 +#: ../Doc/library/datetime.rst:1247 ../Doc/library/datetime.rst:1567 msgid "" "``'seconds'``: Include :attr:`hour`, :attr:`minute`, and :attr:`second` in " "HH:MM:SS format." @@ -2037,7 +2042,7 @@ msgstr "" "``'seconds'`` : Inclut :attr:`hour`, :attr:`minute` et :attr:`second` au " "format ``HH:MM:SS``." -#: ../Doc/library/datetime.rst:1247 ../Doc/library/datetime.rst:1567 +#: ../Doc/library/datetime.rst:1249 ../Doc/library/datetime.rst:1569 msgid "" "``'milliseconds'``: Include full time, but truncate fractional second part " "to milliseconds. HH:MM:SS.sss format." @@ -2045,25 +2050,25 @@ msgstr "" "``'milliseconds'`` : Inclut le temps complet, mais tronque la partie " "fractionnaire des millisecondes, au format ``HH:MM:SS.sss``." -#: ../Doc/library/datetime.rst:1249 ../Doc/library/datetime.rst:1569 +#: ../Doc/library/datetime.rst:1251 ../Doc/library/datetime.rst:1571 msgid "``'microseconds'``: Include full time in HH:MM:SS.ffffff format." msgstr "" "``'microseconds'`` : Inclut le temps complet, au format ``HH:MM:SS.ffffff``." -#: ../Doc/library/datetime.rst:1253 ../Doc/library/datetime.rst:1573 +#: ../Doc/library/datetime.rst:1255 ../Doc/library/datetime.rst:1575 msgid "Excluded time components are truncated, not rounded." msgstr "Les composants de temps exclus sont tronqués et non arrondis." -#: ../Doc/library/datetime.rst:1255 ../Doc/library/datetime.rst:1575 +#: ../Doc/library/datetime.rst:1257 ../Doc/library/datetime.rst:1577 msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument." msgstr "" "Une :exc:`ValueError` sera levée en cas d'argument *timespec* invalide." -#: ../Doc/library/datetime.rst:1265 ../Doc/library/datetime.rst:1587 +#: ../Doc/library/datetime.rst:1267 ../Doc/library/datetime.rst:1589 msgid "Added the *timespec* argument." msgstr "Ajout de l'argument *timespec*." -#: ../Doc/library/datetime.rst:1271 +#: ../Doc/library/datetime.rst:1273 msgid "" "For a :class:`.datetime` instance *d*, ``str(d)`` is equivalent to ``d." "isoformat(' ')``." @@ -2071,7 +2076,7 @@ msgstr "" "Pour une instance *d* de :class:`.datetime`, ``str(d)`` est équivalent à ``d." "isoformat(' ')``." -#: ../Doc/library/datetime.rst:1277 +#: ../Doc/library/datetime.rst:1279 msgid "" "Return a string representing the date and time, for example ``datetime(2002, " "12, 4, 20, 30, 40).ctime() == 'Wed Dec 4 20:30:40 2002'``. ``d.ctime()`` is " @@ -2086,7 +2091,7 @@ msgstr "" "func:`time.ctime` mais pas par :meth:`datetime.ctime`) est conforme au " "standard C." -#: ../Doc/library/datetime.rst:1286 +#: ../Doc/library/datetime.rst:1288 msgid "" "Return a string representing the date and time, controlled by an explicit " "format string. For a complete list of formatting directives, see :ref:" @@ -2096,7 +2101,7 @@ msgstr "" "de format explicite. Pour une liste complète des directives de formatage, " "voir :ref:`strftime-strptime-behavior`." -#: ../Doc/library/datetime.rst:1293 +#: ../Doc/library/datetime.rst:1295 msgid "" "Same as :meth:`.datetime.strftime`. This makes it possible to specify a " "format string for a :class:`.datetime` object in :ref:`formatted string " @@ -2109,19 +2114,19 @@ msgstr "" "une liste complète des directives de formatage, voir :ref:`strftime-strptime-" "behavior`." -#: ../Doc/library/datetime.rst:1300 +#: ../Doc/library/datetime.rst:1302 msgid "Examples of working with datetime objects:" msgstr "Exemples d'utilisation des objets *datetime* :" -#: ../Doc/library/datetime.rst:1347 +#: ../Doc/library/datetime.rst:1349 msgid "Using datetime with tzinfo:" msgstr "Utilisation de *datetime* avec *tzinfo* :" -#: ../Doc/library/datetime.rst:1407 +#: ../Doc/library/datetime.rst:1409 msgid ":class:`.time` Objects" msgstr "Objets :class:`.time`" -#: ../Doc/library/datetime.rst:1409 +#: ../Doc/library/datetime.rst:1411 msgid "" "A time object represents a (local) time of day, independent of any " "particular day, and subject to adjustment via a :class:`tzinfo` object." @@ -2129,7 +2134,7 @@ msgstr "" "Un objet *time* représente une heure (locale) du jour, indépendante de tout " "jour particulier, et sujette à des ajustements par un objet :class:`tzinfo`." -#: ../Doc/library/datetime.rst:1414 +#: ../Doc/library/datetime.rst:1416 msgid "" "All arguments are optional. *tzinfo* may be ``None``, or an instance of a :" "class:`tzinfo` subclass. The remaining arguments may be integers, in the " @@ -2139,7 +2144,7 @@ msgstr "" "instance d'une sous-classe :class:`tzinfo`. Les autres arguments doivent " "être des nombres entiers, dans les intervalles suivants :" -#: ../Doc/library/datetime.rst:1424 +#: ../Doc/library/datetime.rst:1426 msgid "" "If an argument outside those ranges is given, :exc:`ValueError` is raised. " "All default to ``0`` except *tzinfo*, which defaults to :const:`None`." @@ -2148,18 +2153,18 @@ msgstr "" "levée. Ils valent tous ``0`` par défaut, à l'exception de *tzinfo* qui " "vaut :const:`None`." -#: ../Doc/library/datetime.rst:1432 +#: ../Doc/library/datetime.rst:1434 msgid "The earliest representable :class:`.time`, ``time(0, 0, 0, 0)``." msgstr "" "Le plus petit objet :class:`.time` représentable, ``time(0, 0, 0, 0)``." -#: ../Doc/library/datetime.rst:1437 +#: ../Doc/library/datetime.rst:1439 msgid "The latest representable :class:`.time`, ``time(23, 59, 59, 999999)``." msgstr "" "Le plus grand objet :class:`.time` représentable, ``time(23, 59, 59, " "999999)``." -#: ../Doc/library/datetime.rst:1442 +#: ../Doc/library/datetime.rst:1444 msgid "" "The smallest possible difference between non-equal :class:`.time` objects, " "``timedelta(microseconds=1)``, although note that arithmetic on :class:`." @@ -2169,7 +2174,7 @@ msgstr "" "égaux, ``timedelta(microseconds=1)``, notez cependant que les objets :class:" "`.time` n'implémentent pas d'opérations arithmétiques." -#: ../Doc/library/datetime.rst:1471 +#: ../Doc/library/datetime.rst:1473 msgid "" "The object passed as the tzinfo argument to the :class:`.time` constructor, " "or ``None`` if none was passed." @@ -2177,7 +2182,7 @@ msgstr "" "L'objet passé comme argument *tzinfo* au constructeur de :class:`.time`, ou " "``None`` si aucune valeur n'a été passée." -#: ../Doc/library/datetime.rst:1488 +#: ../Doc/library/datetime.rst:1490 msgid "" "comparison of :class:`.time` to :class:`.time`, where *a* is considered less " "than *b* when *a* precedes *b* in time. If one comparand is naive and the " @@ -2191,7 +2196,7 @@ msgstr "" "`TypeError` est levée. Pour les égalités, les instances naïves ne sont " "jamais égales aux instances avisées." -#: ../Doc/library/datetime.rst:1493 +#: ../Doc/library/datetime.rst:1495 msgid "" "If both comparands are aware, and have the same :attr:`~time.tzinfo` " "attribute, the common :attr:`~time.tzinfo` attribute is ignored and the base " @@ -2215,7 +2220,7 @@ msgstr "" "que la comparaison soit ``==`` ou ``!=``. Ces derniers cas renvoient " "respectivement :const:`False` et :const:`True`." -#: ../Doc/library/datetime.rst:1503 +#: ../Doc/library/datetime.rst:1505 msgid "" "Equality comparisons between naive and aware :class:`~datetime.time` " "instances don't raise :exc:`TypeError`." @@ -2223,22 +2228,22 @@ msgstr "" "Les comparaisons d'égalité entre instances de :class:`~datetime.time` naïves " "et avisées ne lèvent pas de :exc:`TypeError`." -#: ../Doc/library/datetime.rst:1507 +#: ../Doc/library/datetime.rst:1509 msgid "hash, use as dict key" msgstr "hachage, utilisation comme clef de dictionnaire" -#: ../Doc/library/datetime.rst:1509 +#: ../Doc/library/datetime.rst:1511 msgid "efficient pickling" msgstr "sérialisation (*pickling*) efficace" -#: ../Doc/library/datetime.rst:1511 +#: ../Doc/library/datetime.rst:1513 msgid "" "In boolean contexts, a :class:`.time` object is always considered to be true." msgstr "" "Dans un contexte booléen, un objet :class:`.time` est toujours considéré " "comme vrai." -#: ../Doc/library/datetime.rst:1513 +#: ../Doc/library/datetime.rst:1515 msgid "" "Before Python 3.5, a :class:`.time` object was considered to be false if it " "represented midnight in UTC. This behavior was considered obscure and error-" @@ -2250,11 +2255,11 @@ msgstr "" "propice aux erreurs, il a été supprimé en Python 3.5. Voir :issue:`13936` " "pour les détails complets." -#: ../Doc/library/datetime.rst:1520 +#: ../Doc/library/datetime.rst:1522 msgid "Other constructor:" msgstr "Autre constructeur :" -#: ../Doc/library/datetime.rst:1524 +#: ../Doc/library/datetime.rst:1526 msgid "" "Return a :class:`time` corresponding to a *time_string* in one of the " "formats emitted by :meth:`time.isoformat`. Specifically, this function " @@ -2266,7 +2271,7 @@ msgstr "" "est compatible avec des chaînes dans le(s) format(s) ``HH[:MM[:SS[." "fff[fff]]]][+HH:MM[:SS[.ffffff]]]``." -#: ../Doc/library/datetime.rst:1530 +#: ../Doc/library/datetime.rst:1532 msgid "" "This does not support parsing arbitrary ISO 8601 strings - it is only " "intended as the inverse operation of :meth:`time.isoformat`." @@ -2274,7 +2279,7 @@ msgstr "" "Ceci ne gère pas l'analyse arbitraire de chaînes ISO 8601, ceci est " "seulement destiné à l'opération inverse de :meth:`time.isoformat`." -#: ../Doc/library/datetime.rst:1541 +#: ../Doc/library/datetime.rst:1543 msgid "" "Return a :class:`.time` with the same value, except for those attributes " "given new values by whichever keyword arguments are specified. Note that " @@ -2287,7 +2292,7 @@ msgstr "" "`.time` naïve à partir d'une instance :class:`.time` avisée, sans conversion " "des données de temps." -#: ../Doc/library/datetime.rst:1552 +#: ../Doc/library/datetime.rst:1554 msgid "" "Return a string representing the time in ISO 8601 format, HH:MM:SS.ffffff " "or, if :attr:`microsecond` is 0, HH:MM:SS If :meth:`utcoffset` does not " @@ -2302,11 +2307,11 @@ msgstr "" "+HH:MM[:SS[.ffffff]]`` ou, si ``self.microsecond`` vaut 0, ``HH:MM:SS+HH:MM[:" "SS[.ffffff]]``" -#: ../Doc/library/datetime.rst:1593 +#: ../Doc/library/datetime.rst:1595 msgid "For a time *t*, ``str(t)`` is equivalent to ``t.isoformat()``." msgstr "Pour un temps *t*, ``str(t)`` est équivalent à ``t.isoformat()``." -#: ../Doc/library/datetime.rst:1598 +#: ../Doc/library/datetime.rst:1600 msgid "" "Return a string representing the time, controlled by an explicit format " "string. For a complete list of formatting directives, see :ref:`strftime-" @@ -2316,7 +2321,7 @@ msgstr "" "chaîne de formatage explicite. Pour une liste complète des directives de " "formatage, voir :ref:`strftime-strptime-behavior`." -#: ../Doc/library/datetime.rst:1605 +#: ../Doc/library/datetime.rst:1607 msgid "" "Same as :meth:`.time.strftime`. This makes it possible to specify a format " "string for a :class:`.time` object in :ref:`formatted string literals ` file there are some examples of :class:`tzinfo` classes:" @@ -2695,7 +2700,7 @@ msgstr "" "Dans le fichier :download:`tzinfo_examples.py <../includes/tzinfo_examples." "py>` il y a des exemples de :class:`tzinfo` classes:" -#: ../Doc/library/datetime.rst:1852 +#: ../Doc/library/datetime.rst:1854 msgid "" "Note that there are unavoidable subtleties twice per year in a :class:" "`tzinfo` subclass accounting for both standard and daylight time, at the DST " @@ -2710,7 +2715,7 @@ msgstr "" "la minute qui suit 1:59 (EST) le second dimanche de mars, et se termine à la " "minute qui suit 1:59 (EDT) le premier dimanche de novembre : ::" -#: ../Doc/library/datetime.rst:1866 +#: ../Doc/library/datetime.rst:1868 msgid "" "When DST starts (the \"start\" line), the local wall clock leaps from 1:59 " "to 3:00. A wall time of the form 2:MM doesn't really make sense on that " @@ -2724,7 +2729,7 @@ msgstr "" "== 2`` pour le jour où débute l'heure d'été. Par exemple, lors de la " "transition du printemps 2016, nous obtenons" -#: ../Doc/library/datetime.rst:1885 +#: ../Doc/library/datetime.rst:1887 msgid "" "When DST ends (the \"end\" line), there's a potentially worse problem: " "there's an hour that can't be spelled unambiguously in local wall time: the " @@ -2751,7 +2756,7 @@ msgstr "" "attr:`~datetime.fold` à 0 et les plus récentes l'ont à 1. Par exemple, lors " "de la transition de l'automne 2016, nous obtenons" -#: ../Doc/library/datetime.rst:1907 +#: ../Doc/library/datetime.rst:1909 msgid "" "Note that the :class:`datetime` instances that differ only by the value of " "the :attr:`~datetime.fold` attribute are considered equal in comparisons." @@ -2760,7 +2765,7 @@ msgstr "" "valeur de leur attribut :attr:`~datetime.fold` sont considérées égales dans " "les comparaisons." -#: ../Doc/library/datetime.rst:1910 +#: ../Doc/library/datetime.rst:1912 msgid "" "Applications that can't bear wall-time ambiguities should explicitly check " "the value of the :attr:`~datetime.fold` attribute or avoid using hybrid :" @@ -2777,11 +2782,11 @@ msgstr "" "représentant uniquement le fuseau EST (de décalage fixe *-5h*) ou uniquement " "EDT (*-4h*))." -#: ../Doc/library/datetime.rst:1923 +#: ../Doc/library/datetime.rst:1925 msgid "`dateutil.tz `_" msgstr "`dateutil.tz `_" -#: ../Doc/library/datetime.rst:1919 +#: ../Doc/library/datetime.rst:1921 msgid "" "The standard library has :class:`timezone` class for handling arbitrary " "fixed offsets from UTC and :attr:`timezone.utc` as UTC timezone instance." @@ -2790,7 +2795,7 @@ msgstr "" "décalages fixes par rapport à UTC et :attr:`timezone.utc` comme instance du " "fuseau horaire UTC." -#: ../Doc/library/datetime.rst:1922 +#: ../Doc/library/datetime.rst:1924 msgid "" "*dateutil.tz* library brings the *IANA timezone database* (also known as the " "Olson database) to Python and its usage is recommended." @@ -2799,13 +2804,13 @@ msgstr "" "fuseaux horaires IANA* (*IANA timezone database*, aussi appelée base de " "données Olson) , et son utilisation est recommandée." -#: ../Doc/library/datetime.rst:1929 +#: ../Doc/library/datetime.rst:1931 msgid "`IANA timezone database `_" msgstr "" "`Base de données des fuseaux horaires de l'IANA `_" -#: ../Doc/library/datetime.rst:1926 +#: ../Doc/library/datetime.rst:1928 msgid "" "The Time Zone Database (often called tz, tzdata or zoneinfo) contains code " "and data that represent the history of local time for many representative " @@ -2820,11 +2825,11 @@ msgstr "" "politiques sur les bornes du fuseau, les décalages UTC, et les règles de " "passage à l'heure d'été." -#: ../Doc/library/datetime.rst:1936 +#: ../Doc/library/datetime.rst:1938 msgid ":class:`timezone` Objects" msgstr "Objets :class:`timezone`" -#: ../Doc/library/datetime.rst:1938 +#: ../Doc/library/datetime.rst:1940 msgid "" "The :class:`timezone` class is a subclass of :class:`tzinfo`, each instance " "of which represents a timezone defined by a fixed offset from UTC. Note " @@ -2839,7 +2844,7 @@ msgstr "" "emplacements où plusieurs décalages sont utilisés au cours de l'année ou où " "des changements historiques ont été opérés sur le temps civil." -#: ../Doc/library/datetime.rst:1948 +#: ../Doc/library/datetime.rst:1950 msgid "" "The *offset* argument must be specified as a :class:`timedelta` object " "representing the difference between the local time and UTC. It must be " @@ -2851,7 +2856,7 @@ msgstr "" "strictement compris entre ``-timedelta(hours=24)`` et " "``timedelta(hours=24)``, autrement une :exc:`ValueError` est levée." -#: ../Doc/library/datetime.rst:1953 +#: ../Doc/library/datetime.rst:1955 msgid "" "The *name* argument is optional. If specified it must be a string that will " "be used as the value returned by the :meth:`datetime.tzname` method." @@ -2860,7 +2865,7 @@ msgstr "" "caractères qui sera utilisée comme valeur de retour de la méthode :meth:" "`datetime.tzname`." -#: ../Doc/library/datetime.rst:1964 +#: ../Doc/library/datetime.rst:1966 msgid "" "Return the fixed value specified when the :class:`timezone` instance is " "constructed. The *dt* argument is ignored. The return value is a :class:" @@ -2871,7 +2876,7 @@ msgstr "" "instance :class:`timedelta` égale à la différence entre le temps local et " "UTC." -#: ../Doc/library/datetime.rst:1974 +#: ../Doc/library/datetime.rst:1976 msgid "" "Return the fixed value specified when the :class:`timezone` instance is " "constructed. If *name* is not provided in the constructor, the name " @@ -2888,7 +2893,7 @@ msgstr "" "et HH et MM sont respectivement les représentations à deux chiffres de " "``offset.hours`` et ``offset.minutes``." -#: ../Doc/library/datetime.rst:1982 +#: ../Doc/library/datetime.rst:1984 msgid "" "Name generated from ``offset=timedelta(0)`` is now plain 'UTC', not 'UTC" "+00:00'." @@ -2896,11 +2901,11 @@ msgstr "" "Le nom généré à partir de ``offset=timedelta(0)`` est maintenant \"UTC\" " "plutôt que \"UTC+00:00\"." -#: ../Doc/library/datetime.rst:1989 +#: ../Doc/library/datetime.rst:1991 msgid "Always returns ``None``." msgstr "Renvoie toujours ``None``." -#: ../Doc/library/datetime.rst:1993 +#: ../Doc/library/datetime.rst:1995 msgid "" "Return ``dt + offset``. The *dt* argument must be an aware :class:`." "datetime` instance, with ``tzinfo`` set to ``self``." @@ -2908,15 +2913,15 @@ msgstr "" "Renvoie ``dt + offset``. L'argument *dt* doit être une instance avisée de :" "class:`datetime`, avec ``tzinfo`` valant ``self``." -#: ../Doc/library/datetime.rst:2000 +#: ../Doc/library/datetime.rst:2002 msgid "The UTC timezone, ``timezone(timedelta(0))``." msgstr "Le fuseau horaire UTC, ``timezone(timedelta(0))``." -#: ../Doc/library/datetime.rst:2009 +#: ../Doc/library/datetime.rst:2011 msgid ":meth:`strftime` and :meth:`strptime` Behavior" msgstr "Comportement de :meth:`strftime` et :meth:`strptime`" -#: ../Doc/library/datetime.rst:2011 +#: ../Doc/library/datetime.rst:2013 msgid "" ":class:`date`, :class:`.datetime`, and :class:`.time` objects all support a " "``strftime(format)`` method, to create a string representing the time under " @@ -2931,7 +2936,7 @@ msgstr "" "la fonction ``time.strftime(fmt, d.timetuple())`` du module :mod:`time`, " "bien que tous les objets ne comportent pas de méthode :meth:`timetuple`." -#: ../Doc/library/datetime.rst:2017 +#: ../Doc/library/datetime.rst:2019 msgid "" "Conversely, the :meth:`datetime.strptime` class method creates a :class:`." "datetime` object from a string representing a date and time and a " @@ -2949,7 +2954,7 @@ msgstr "" "seconde ou une information de fuseau horaire ; ces composantes sont gérées " "par ``datetime.strptime`` mais sont ignorées par ``time.strptime``." -#: ../Doc/library/datetime.rst:2024 +#: ../Doc/library/datetime.rst:2026 msgid "" "For :class:`.time` objects, the format codes for year, month, and day should " "not be used, as time objects have no such values. If they're used anyway, " @@ -2960,7 +2965,7 @@ msgstr "" "possèdent pas de telles valeurs. S'ils sont tout de même utilisés, ``1900`` " "est substitué à l'année, et ``1`` au mois et au jour." -#: ../Doc/library/datetime.rst:2028 +#: ../Doc/library/datetime.rst:2030 msgid "" "For :class:`date` objects, the format codes for hours, minutes, seconds, and " "microseconds should not be used, as :class:`date` objects have no such " @@ -2971,7 +2976,7 @@ msgstr "" "les objets :class:`date` ne possèdent pas de telles valeurs. S'ils sont " "tous de même utilisés, ils sont substitués par ``0``." -#: ../Doc/library/datetime.rst:2032 +#: ../Doc/library/datetime.rst:2034 msgid "" "The full set of format codes supported varies across platforms, because " "Python calls the platform C library's :func:`strftime` function, and " @@ -2984,7 +2989,7 @@ msgstr "" "voir un ensemble complet des codes de formatage implémentés par votre " "plateforme, consultez la documentation de :manpage:`strftime(3)`." -#: ../Doc/library/datetime.rst:2037 +#: ../Doc/library/datetime.rst:2039 msgid "" "For the same reason, handling of format strings containing Unicode code " "points that can't be represented in the charset of the current locale is " @@ -2993,7 +2998,7 @@ msgid "" "`UnicodeError` or return an empty string instead." msgstr "" -#: ../Doc/library/datetime.rst:2043 +#: ../Doc/library/datetime.rst:2045 msgid "" "The following is a list of all the format codes that the C standard (1989 " "version) requires, and these work on all platforms with a standard C " @@ -3005,27 +3010,27 @@ msgstr "" "possédant une implémentation de C standard. Notez que la version 1999 du " "standard C a ajouté des codes de formatage additionnels." -#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 +#: ../Doc/library/datetime.rst:2051 ../Doc/library/datetime.rst:2158 msgid "Directive" msgstr "Directive" -#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 +#: ../Doc/library/datetime.rst:2051 ../Doc/library/datetime.rst:2158 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 +#: ../Doc/library/datetime.rst:2051 ../Doc/library/datetime.rst:2158 msgid "Example" msgstr "Exemple" -#: ../Doc/library/datetime.rst:2049 ../Doc/library/datetime.rst:2156 +#: ../Doc/library/datetime.rst:2051 ../Doc/library/datetime.rst:2158 msgid "Notes" msgstr "Notes" -#: ../Doc/library/datetime.rst:2051 +#: ../Doc/library/datetime.rst:2053 msgid "``%a``" msgstr "``%a``" -#: ../Doc/library/datetime.rst:2051 +#: ../Doc/library/datetime.rst:2053 msgid "Weekday as locale's abbreviated name." msgstr "Jour de la semaine abrégé dans la langue locale." @@ -3037,11 +3042,11 @@ msgstr "Sun, Mon, ..., Sat (en_US);" msgid "So, Mo, ..., Sa (de_DE)" msgstr "Lu, Ma, ..., Di (*fr_FR*)" -#: ../Doc/library/datetime.rst:2056 +#: ../Doc/library/datetime.rst:2058 msgid "``%A``" msgstr "``%A``" -#: ../Doc/library/datetime.rst:2056 +#: ../Doc/library/datetime.rst:2058 msgid "Weekday as locale's full name." msgstr "Jour de la semaine complet dans la langue locale." @@ -3053,36 +3058,36 @@ msgstr "*Sunday*, *Monday*, ..., *Saturday* (*en_US*);" msgid "Sonntag, Montag, ..., Samstag (de_DE)" msgstr "Lundi, Mardi, ..., Dimanche (*fr_FR*)" -#: ../Doc/library/datetime.rst:2061 +#: ../Doc/library/datetime.rst:2063 msgid "``%w``" msgstr "``%w``" -#: ../Doc/library/datetime.rst:2061 +#: ../Doc/library/datetime.rst:2063 msgid "Weekday as a decimal number, where 0 is Sunday and 6 is Saturday." msgstr "" "Jour de la semaine en chiffre, avec 0 pour le dimanche et 6 pour le samedi." -#: ../Doc/library/datetime.rst:2061 +#: ../Doc/library/datetime.rst:2063 msgid "0, 1, ..., 6" msgstr "0, 1, ..., 6" -#: ../Doc/library/datetime.rst:2065 +#: ../Doc/library/datetime.rst:2067 msgid "``%d``" msgstr "``%d``" -#: ../Doc/library/datetime.rst:2065 +#: ../Doc/library/datetime.rst:2067 msgid "Day of the month as a zero-padded decimal number." msgstr "Jour du mois sur deux chiffres." -#: ../Doc/library/datetime.rst:2065 +#: ../Doc/library/datetime.rst:2067 msgid "01, 02, ..., 31" msgstr "01, 02, ..., 31" -#: ../Doc/library/datetime.rst:2068 +#: ../Doc/library/datetime.rst:2070 msgid "``%b``" msgstr "``%b``" -#: ../Doc/library/datetime.rst:2068 +#: ../Doc/library/datetime.rst:2070 msgid "Month as locale's abbreviated name." msgstr "Nom du mois abrégé dans la langue locale." @@ -3094,11 +3099,11 @@ msgstr "Jan, Feb, ..., Dec (*en_US*);" msgid "Jan, Feb, ..., Dez (de_DE)" msgstr "janv., févr., ..., déc. (*fr_FR*)" -#: ../Doc/library/datetime.rst:2073 +#: ../Doc/library/datetime.rst:2075 msgid "``%B``" msgstr "``%B``" -#: ../Doc/library/datetime.rst:2073 +#: ../Doc/library/datetime.rst:2075 msgid "Month as locale's full name." msgstr "Nom complet du mois dans la langue locale." @@ -3110,67 +3115,67 @@ msgstr "*January*, *February*, ..., *December* (*en_US*);" msgid "Januar, Februar, ..., Dezember (de_DE)" msgstr "janvier, février, ..., décembre (*fr_FR*)" -#: ../Doc/library/datetime.rst:2078 +#: ../Doc/library/datetime.rst:2080 msgid "``%m``" msgstr "``%m``" -#: ../Doc/library/datetime.rst:2078 +#: ../Doc/library/datetime.rst:2080 msgid "Month as a zero-padded decimal number." msgstr "Numéro du mois sur deux chiffres." -#: ../Doc/library/datetime.rst:2078 ../Doc/library/datetime.rst:2090 +#: ../Doc/library/datetime.rst:2080 ../Doc/library/datetime.rst:2092 msgid "01, 02, ..., 12" msgstr "01, 02, ..., 12" -#: ../Doc/library/datetime.rst:2081 +#: ../Doc/library/datetime.rst:2083 msgid "``%y``" msgstr "``%y``" -#: ../Doc/library/datetime.rst:2081 +#: ../Doc/library/datetime.rst:2083 msgid "Year without century as a zero-padded decimal number." msgstr "Année sur deux chiffres (sans le siècle)." -#: ../Doc/library/datetime.rst:2081 +#: ../Doc/library/datetime.rst:2083 msgid "00, 01, ..., 99" msgstr "00, 01, ..., 99" -#: ../Doc/library/datetime.rst:2084 +#: ../Doc/library/datetime.rst:2086 msgid "``%Y``" msgstr "``%Y``" -#: ../Doc/library/datetime.rst:2084 +#: ../Doc/library/datetime.rst:2086 msgid "Year with century as a decimal number." msgstr "Année complète sur quatre chiffres." -#: ../Doc/library/datetime.rst:2084 ../Doc/library/datetime.rst:2158 +#: ../Doc/library/datetime.rst:2086 ../Doc/library/datetime.rst:2160 msgid "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" msgstr "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" -#: ../Doc/library/datetime.rst:2087 +#: ../Doc/library/datetime.rst:2089 msgid "``%H``" msgstr "``%H``" -#: ../Doc/library/datetime.rst:2087 +#: ../Doc/library/datetime.rst:2089 msgid "Hour (24-hour clock) as a zero-padded decimal number." msgstr "Heure à deux chiffres de 00 à 23." -#: ../Doc/library/datetime.rst:2087 +#: ../Doc/library/datetime.rst:2089 msgid "00, 01, ..., 23" msgstr "00, 01, ..., 23" -#: ../Doc/library/datetime.rst:2090 +#: ../Doc/library/datetime.rst:2092 msgid "``%I``" msgstr "``%I``" -#: ../Doc/library/datetime.rst:2090 +#: ../Doc/library/datetime.rst:2092 msgid "Hour (12-hour clock) as a zero-padded decimal number." msgstr "Heure à deux chiffres pour les horloges 12h (01 à 12)." -#: ../Doc/library/datetime.rst:2093 +#: ../Doc/library/datetime.rst:2095 msgid "``%p``" msgstr "``%p``" -#: ../Doc/library/datetime.rst:2093 +#: ../Doc/library/datetime.rst:2095 msgid "Locale's equivalent of either AM or PM." msgstr "Équivalent local à AM/PM." @@ -3182,55 +3187,55 @@ msgstr "AM, PM (en_US);" msgid "am, pm (de_DE)" msgstr "am, pm (de_DE)" -#: ../Doc/library/datetime.rst:2093 +#: ../Doc/library/datetime.rst:2095 msgid "\\(1), \\(3)" msgstr "\\(1), \\(3)" -#: ../Doc/library/datetime.rst:2096 +#: ../Doc/library/datetime.rst:2098 msgid "``%M``" msgstr "``%M``" -#: ../Doc/library/datetime.rst:2096 +#: ../Doc/library/datetime.rst:2098 msgid "Minute as a zero-padded decimal number." msgstr "Minutes sur deux chiffres." -#: ../Doc/library/datetime.rst:2096 ../Doc/library/datetime.rst:2099 +#: ../Doc/library/datetime.rst:2098 ../Doc/library/datetime.rst:2101 msgid "00, 01, ..., 59" msgstr "00, 01, ..., 59" -#: ../Doc/library/datetime.rst:2099 +#: ../Doc/library/datetime.rst:2101 msgid "``%S``" msgstr "``%S``" -#: ../Doc/library/datetime.rst:2099 +#: ../Doc/library/datetime.rst:2101 msgid "Second as a zero-padded decimal number." msgstr "Secondes sur deux chiffres." -#: ../Doc/library/datetime.rst:2099 +#: ../Doc/library/datetime.rst:2101 msgid "\\(4)" msgstr "\\(4)" -#: ../Doc/library/datetime.rst:2102 +#: ../Doc/library/datetime.rst:2104 msgid "``%f``" msgstr "``%f``" -#: ../Doc/library/datetime.rst:2102 +#: ../Doc/library/datetime.rst:2104 msgid "Microsecond as a decimal number, zero-padded on the left." msgstr "Microsecondes sur 6 chiffres." -#: ../Doc/library/datetime.rst:2102 +#: ../Doc/library/datetime.rst:2104 msgid "000000, 000001, ..., 999999" msgstr "000000, 000001, ..., 999999" -#: ../Doc/library/datetime.rst:2102 +#: ../Doc/library/datetime.rst:2104 msgid "\\(5)" msgstr "\\(5)" -#: ../Doc/library/datetime.rst:2106 ../Doc/library/datetime.rst:2230 +#: ../Doc/library/datetime.rst:2108 ../Doc/library/datetime.rst:2232 msgid "``%z``" msgstr "``%z``" -#: ../Doc/library/datetime.rst:2106 +#: ../Doc/library/datetime.rst:2108 msgid "" "UTC offset in the form ±HHMM[SS[.ffffff]] (empty string if the object is " "naive)." @@ -3238,43 +3243,43 @@ msgstr "" "Décalage UTC sous la forme ``±HHMM[SS[.ffffff]]`` (chaîne vide si l'instance " "est naïve)." -#: ../Doc/library/datetime.rst:2106 +#: ../Doc/library/datetime.rst:2108 msgid "(empty), +0000, -0400, +1030, +063415, -030712.345216" msgstr "(vide), +0000, -0400, +1030, +063415, -030712.345216" -#: ../Doc/library/datetime.rst:2106 +#: ../Doc/library/datetime.rst:2108 msgid "\\(6)" msgstr "\\(6)" -#: ../Doc/library/datetime.rst:2111 ../Doc/library/datetime.rst:2245 +#: ../Doc/library/datetime.rst:2113 ../Doc/library/datetime.rst:2247 msgid "``%Z``" msgstr "``%Z``" -#: ../Doc/library/datetime.rst:2111 +#: ../Doc/library/datetime.rst:2113 msgid "Time zone name (empty string if the object is naive)." msgstr "Nom du fuseau horaire (chaîne vide si l'instance est naïve)." -#: ../Doc/library/datetime.rst:2111 +#: ../Doc/library/datetime.rst:2113 msgid "(empty), UTC, EST, CST" msgstr "(vide), UTC, EST, CST" -#: ../Doc/library/datetime.rst:2114 +#: ../Doc/library/datetime.rst:2116 msgid "``%j``" msgstr "``%j``" -#: ../Doc/library/datetime.rst:2114 +#: ../Doc/library/datetime.rst:2116 msgid "Day of the year as a zero-padded decimal number." msgstr "Numéro du jour dans l'année sur trois chiffres." -#: ../Doc/library/datetime.rst:2114 +#: ../Doc/library/datetime.rst:2116 msgid "001, 002, ..., 366" msgstr "001, 002, ..., 366" -#: ../Doc/library/datetime.rst:2117 +#: ../Doc/library/datetime.rst:2119 msgid "``%U``" msgstr "``%U``" -#: ../Doc/library/datetime.rst:2117 +#: ../Doc/library/datetime.rst:2119 msgid "" "Week number of the year (Sunday as the first day of the week) as a zero " "padded decimal number. All days in a new year preceding the first Sunday are " @@ -3284,19 +3289,19 @@ msgstr "" "premier jour de la semaine). Tous les jours de l'année précédent le premier " "dimanche sont considérés comme appartenant à la semaine 0." -#: ../Doc/library/datetime.rst:2117 ../Doc/library/datetime.rst:2125 +#: ../Doc/library/datetime.rst:2119 ../Doc/library/datetime.rst:2127 msgid "00, 01, ..., 53" msgstr "00, 01, ..., 53" -#: ../Doc/library/datetime.rst:2117 ../Doc/library/datetime.rst:2125 +#: ../Doc/library/datetime.rst:2119 ../Doc/library/datetime.rst:2127 msgid "\\(7)" msgstr "\\(7)" -#: ../Doc/library/datetime.rst:2125 +#: ../Doc/library/datetime.rst:2127 msgid "``%W``" msgstr "``%W``" -#: ../Doc/library/datetime.rst:2125 +#: ../Doc/library/datetime.rst:2127 msgid "" "Week number of the year (Monday as the first day of the week) as a decimal " "number. All days in a new year preceding the first Monday are considered to " @@ -3306,11 +3311,11 @@ msgstr "" "premier jour de la semaine). Tous les jours de l'année précédent le premier " "lundi sont considérés comme appartenant à la semaine 0." -#: ../Doc/library/datetime.rst:2133 +#: ../Doc/library/datetime.rst:2135 msgid "``%c``" msgstr "``%c``" -#: ../Doc/library/datetime.rst:2133 +#: ../Doc/library/datetime.rst:2135 msgid "Locale's appropriate date and time representation." msgstr "Représentation locale de la date et de l'heure." @@ -3322,11 +3327,11 @@ msgstr "Tue Aug 16 21:30:00 1988 (*en_US*);" msgid "Di 16 Aug 21:30:00 1988 (de_DE)" msgstr "mar. 16 août 1988 21:30:00 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2138 +#: ../Doc/library/datetime.rst:2140 msgid "``%x``" msgstr "``%x``" -#: ../Doc/library/datetime.rst:2138 +#: ../Doc/library/datetime.rst:2140 msgid "Locale's appropriate date representation." msgstr "Représentation locale de la date." @@ -3342,11 +3347,11 @@ msgstr "08/16/1988 (*en_US*);" msgid "16.08.1988 (de_DE)" msgstr "16/08/1988 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2142 +#: ../Doc/library/datetime.rst:2144 msgid "``%X``" msgstr "``%X``" -#: ../Doc/library/datetime.rst:2142 +#: ../Doc/library/datetime.rst:2144 msgid "Locale's appropriate time representation." msgstr "Représentation locale de l'heure." @@ -3358,19 +3363,19 @@ msgstr "21:30:00 (*en_US*) ;" msgid "21:30:00 (de_DE)" msgstr "21:30:00 (*fr_FR*)" -#: ../Doc/library/datetime.rst:2145 +#: ../Doc/library/datetime.rst:2147 msgid "``%%``" msgstr "``%%``" -#: ../Doc/library/datetime.rst:2145 +#: ../Doc/library/datetime.rst:2147 msgid "A literal ``'%'`` character." msgstr "Un caractère ``'%'`` littéral." -#: ../Doc/library/datetime.rst:2145 +#: ../Doc/library/datetime.rst:2147 msgid "%" msgstr "%" -#: ../Doc/library/datetime.rst:2148 +#: ../Doc/library/datetime.rst:2150 msgid "" "Several additional directives not required by the C89 standard are included " "for convenience. These parameters all correspond to ISO 8601 date values. " @@ -3388,11 +3393,11 @@ msgstr "" "directives d'année et de semaine précédentes. Appeler :meth:`strptime` avec " "des directives ISO 8601 incomplètes ou ambiguës lèvera une :exc:`ValueError`." -#: ../Doc/library/datetime.rst:2158 +#: ../Doc/library/datetime.rst:2160 msgid "``%G``" msgstr "``%G``" -#: ../Doc/library/datetime.rst:2158 +#: ../Doc/library/datetime.rst:2160 msgid "" "ISO 8601 year with century representing the year that contains the greater " "part of the ISO week (``%V``)." @@ -3400,27 +3405,27 @@ msgstr "" "Année complète ISO 8601 représentant l'année contenant la plus grande partie " "de la semaine ISO (``%V``)." -#: ../Doc/library/datetime.rst:2158 ../Doc/library/datetime.rst:2166 +#: ../Doc/library/datetime.rst:2160 ../Doc/library/datetime.rst:2168 msgid "\\(8)" msgstr "\\(8)" -#: ../Doc/library/datetime.rst:2163 +#: ../Doc/library/datetime.rst:2165 msgid "``%u``" msgstr "``%u``" -#: ../Doc/library/datetime.rst:2163 +#: ../Doc/library/datetime.rst:2165 msgid "ISO 8601 weekday as a decimal number where 1 is Monday." msgstr "Jour de la semaine ISO 8601 où 1 correspond au lundi." -#: ../Doc/library/datetime.rst:2163 +#: ../Doc/library/datetime.rst:2165 msgid "1, 2, ..., 7" msgstr "1, 2, ..., 7" -#: ../Doc/library/datetime.rst:2166 +#: ../Doc/library/datetime.rst:2168 msgid "``%V``" msgstr "``%V``" -#: ../Doc/library/datetime.rst:2166 +#: ../Doc/library/datetime.rst:2168 msgid "" "ISO 8601 week as a decimal number with Monday as the first day of the week. " "Week 01 is the week containing Jan 4." @@ -3428,15 +3433,15 @@ msgstr "" "Numéro de la semaine ISO 8601, avec lundi étant le premier jour de la " "semaine. La semaine 01 est la semaine contenant le 4 janvier." -#: ../Doc/library/datetime.rst:2166 +#: ../Doc/library/datetime.rst:2168 msgid "01, 02, ..., 53" msgstr "01, 02, ..., 53" -#: ../Doc/library/datetime.rst:2173 +#: ../Doc/library/datetime.rst:2175 msgid "``%G``, ``%u`` and ``%V`` were added." msgstr "``%G``, ``%u`` et ``%V`` ont été ajoutés." -#: ../Doc/library/datetime.rst:2179 +#: ../Doc/library/datetime.rst:2181 msgid "" "Because the format depends on the current locale, care should be taken when " "making assumptions about the output value. Field orderings will vary (for " @@ -3455,7 +3460,7 @@ msgstr "" "utilisez :meth:`locale.getlocale` pour déterminer l'encodage de la locale " "courante)." -#: ../Doc/library/datetime.rst:2188 +#: ../Doc/library/datetime.rst:2190 msgid "" "The :meth:`strptime` method can parse years in the full [1, 9999] range, but " "years < 1000 must be zero-filled to 4-digit width." @@ -3464,7 +3469,7 @@ msgstr "" "[1, 9999], mais toutes les années < 1000 doivent être représentées sur " "quatre chiffres." -#: ../Doc/library/datetime.rst:2191 +#: ../Doc/library/datetime.rst:2193 msgid "" "In previous versions, :meth:`strftime` method was restricted to years >= " "1900." @@ -3472,13 +3477,13 @@ msgstr "" "Dans les versions précédentes, la méthode :meth:`strftime` était limitée aux " "années >= 1900." -#: ../Doc/library/datetime.rst:2195 +#: ../Doc/library/datetime.rst:2197 msgid "" "In version 3.2, :meth:`strftime` method was restricted to years >= 1000." msgstr "" "En version 3.2, la méthode :meth:`strftime` était limitée aux années >= 1000." -#: ../Doc/library/datetime.rst:2200 +#: ../Doc/library/datetime.rst:2202 msgid "" "When used with the :meth:`strptime` method, the ``%p`` directive only " "affects the output hour field if the ``%I`` directive is used to parse the " @@ -3488,7 +3493,7 @@ msgstr "" "n'affecte l'heure extraite que si la directive ``%I`` est utilisée pour " "analyser l'heure." -#: ../Doc/library/datetime.rst:2204 +#: ../Doc/library/datetime.rst:2206 msgid "" "Unlike the :mod:`time` module, the :mod:`datetime` module does not support " "leap seconds." @@ -3496,7 +3501,7 @@ msgstr "" "À l'inverse du module :mod:`time`, le module :mod:`datetime` ne gère pas les " "secondes intercalaires." -#: ../Doc/library/datetime.rst:2208 +#: ../Doc/library/datetime.rst:2210 msgid "" "When used with the :meth:`strptime` method, the ``%f`` directive accepts " "from one to six digits and zero pads on the right. ``%f`` is an extension " @@ -3509,7 +3514,7 @@ msgstr "" "caractères de formatage du standard C (mais implémentée séparément dans les " "objets *datetime*, la rendant ainsi toujours disponible)." -#: ../Doc/library/datetime.rst:2215 +#: ../Doc/library/datetime.rst:2217 msgid "" "For a naive object, the ``%z`` and ``%Z`` format codes are replaced by empty " "strings." @@ -3517,11 +3522,11 @@ msgstr "" "Pour les objets naïfs, les codes de formatage ``%z`` et ``%Z`` sont " "remplacés par des chaînes vides." -#: ../Doc/library/datetime.rst:2218 +#: ../Doc/library/datetime.rst:2220 msgid "For an aware object:" msgstr "Pour un objet avisé :" -#: ../Doc/library/datetime.rst:2221 +#: ../Doc/library/datetime.rst:2223 msgid "" ":meth:`utcoffset` is transformed into a string of the form ±HHMM[SS[." "ffffff]], where HH is a 2-digit string giving the number of UTC offset " @@ -3543,7 +3548,7 @@ msgstr "" "``timedelta(hours=-3, minutes=-30)``, ``%z`` est remplacé par la chaîne " "`'-0330'``." -#: ../Doc/library/datetime.rst:2235 +#: ../Doc/library/datetime.rst:2237 msgid "" "When the ``%z`` directive is provided to the :meth:`strptime` method, the " "UTC offsets can have a colon as a separator between hours, minutes and " @@ -3555,7 +3560,7 @@ msgstr "" "minutes et secondes. Par exemple, ``'+01:00:00'``, est analysé comme un " "décalage d'une heure. Par ailleurs, ``'Z'`` est identique à ``'+00:00'``." -#: ../Doc/library/datetime.rst:2243 +#: ../Doc/library/datetime.rst:2245 msgid "" "If :meth:`tzname` returns ``None``, ``%Z`` is replaced by an empty string. " "Otherwise ``%Z`` is replaced by the returned value, which must be a string." @@ -3564,7 +3569,7 @@ msgstr "" "vide. Autrement ``%Z`` est remplacé par la valeur renvoyée, qui doit être " "une chaîne." -#: ../Doc/library/datetime.rst:2247 +#: ../Doc/library/datetime.rst:2249 msgid "" "When the ``%z`` directive is provided to the :meth:`strptime` method, an " "aware :class:`.datetime` object will be produced. The ``tzinfo`` of the " @@ -3574,7 +3579,7 @@ msgstr "" "objet :class:`.datetime` avisé est construit. L'attribut ``tzinfo`` du " "résultat aura pour valeur une instance de :class:`timezone`." -#: ../Doc/library/datetime.rst:2253 +#: ../Doc/library/datetime.rst:2255 msgid "" "When used with the :meth:`strptime` method, ``%U`` and ``%W`` are only used " "in calculations when the day of the week and the calendar year (``%Y``) are " @@ -3584,7 +3589,7 @@ msgstr "" "utilisés dans les calculs que si le jour de la semaine et l'année calendaire " "(``%Y``) sont spécifiés." -#: ../Doc/library/datetime.rst:2258 +#: ../Doc/library/datetime.rst:2260 msgid "" "Similar to ``%U`` and ``%W``, ``%V`` is only used in calculations when the " "day of the week and the ISO year (``%G``) are specified in a :meth:" @@ -3596,10 +3601,10 @@ msgstr "" "dans la chaîne de formatage :meth:`strptime`. Notez aussi que ``%G`` et ``" "%Y`` ne sont pas interchangeables." -#: ../Doc/library/datetime.rst:2264 +#: ../Doc/library/datetime.rst:2266 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/datetime.rst:2265 +#: ../Doc/library/datetime.rst:2267 msgid "If, that is, we ignore the effects of Relativity" msgstr "Si on ignore les effets de la Relativité" diff --git a/library/functions.po b/library/functions.po index c761b066d..25b5e0152 100644 --- a/library/functions.po +++ b/library/functions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2019-02-21 17:37+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -362,8 +362,8 @@ msgstr "" "Que le préfixe ``0b`` soit souhaité ou non, vous pouvez utiliser les moyens " "suivants." -#: ../Doc/library/functions.rst:101 ../Doc/library/functions.rst:699 -#: ../Doc/library/functions.rst:958 +#: ../Doc/library/functions.rst:101 ../Doc/library/functions.rst:704 +#: ../Doc/library/functions.rst:963 msgid "See also :func:`format` for more information." msgstr "Voir aussi :func:`format` pour plus d'information." @@ -385,7 +385,7 @@ msgstr "" "values`)." #: ../Doc/library/functions.rst:115 ../Doc/library/functions.rst:582 -#: ../Doc/library/functions.rst:770 +#: ../Doc/library/functions.rst:775 msgid "*x* is now a positional-only parameter." msgstr "*x* est désormais un argument exclusivement optionnel." @@ -777,7 +777,7 @@ msgid "The complex type is described in :ref:`typesnumeric`." msgstr "Le type complexe est décrit dans :ref:`typesnumeric`." #: ../Doc/library/functions.rst:314 ../Doc/library/functions.rst:579 -#: ../Doc/library/functions.rst:767 +#: ../Doc/library/functions.rst:772 msgid "Grouping digits with underscores as in code literals is allowed." msgstr "" "Les chiffres peuvent être groupés avec des tirets bas comme dans les " @@ -1337,12 +1337,20 @@ msgstr "" #: ../Doc/library/functions.rst:671 msgid "" +"Note that if a slash(/) appears in the parameter list of a function, when " +"invoking :func:`help`, it means that the parameters prior to the slash are " +"positional-only. For more info, see :ref:`the FAQ entry on positional-only " +"parameters `." +msgstr "" + +#: ../Doc/library/functions.rst:676 +msgid "" "This function is added to the built-in namespace by the :mod:`site` module." msgstr "" "Cette fonction est ajoutée à l'espace de noms natif par le module :mod:" "`site`." -#: ../Doc/library/functions.rst:673 +#: ../Doc/library/functions.rst:678 msgid "" "Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures " "for callables are now more comprehensive and consistent." @@ -1350,7 +1358,7 @@ msgstr "" "Les changements aux modules :mod:`pydoc` et :mod:`inspect` rendent les " "signatures des appelables plus compréhensible et cohérente." -#: ../Doc/library/functions.rst:680 +#: ../Doc/library/functions.rst:685 msgid "" "Convert an integer number to a lowercase hexadecimal string prefixed with " "\"0x\". If *x* is not a Python :class:`int` object, it has to define an :" @@ -1360,7 +1368,7 @@ msgstr "" "pas un :class:`int`, il doit définir une méthode :meth:`__index__` qui " "renvoie un entier. Quelques exemples :" -#: ../Doc/library/functions.rst:689 +#: ../Doc/library/functions.rst:694 msgid "" "If you want to convert an integer number to an uppercase or lower " "hexadecimal string with prefix or not, you can use either of the following " @@ -1369,7 +1377,7 @@ msgstr "" "Si vous voulez convertir un nombre entier en chaîne hexadécimale, en " "majuscule ou non, préfixée ou non, vous pouvez utiliser les moyens suivants :" -#: ../Doc/library/functions.rst:701 +#: ../Doc/library/functions.rst:706 msgid "" "See also :func:`int` for converting a hexadecimal string to an integer using " "a base of 16." @@ -1377,7 +1385,7 @@ msgstr "" "Voir aussi :func:`int` pour convertir une chaîne hexadécimale en un entier " "en lui spécifiant 16 comme base." -#: ../Doc/library/functions.rst:706 +#: ../Doc/library/functions.rst:711 msgid "" "To obtain a hexadecimal string representation for a float, use the :meth:" "`float.hex` method." @@ -1385,7 +1393,7 @@ msgstr "" "Pour obtenir une représentation hexadécimale sous forme de chaîne d'un " "nombre à virgule flottante, utilisez la méthode :meth:`float.hex`." -#: ../Doc/library/functions.rst:712 +#: ../Doc/library/functions.rst:717 msgid "" "Return the \"identity\" of an object. This is an integer which is " "guaranteed to be unique and constant for this object during its lifetime. " @@ -1396,7 +1404,7 @@ msgstr "" "constant pour cet objet durant sa durée de vie. Deux objets sont les durées " "de vie ne se chevauchent pas peuvent partager le même :func:`id`." -#: ../Doc/library/functions.rst:722 +#: ../Doc/library/functions.rst:727 msgid "" "If the *prompt* argument is present, it is written to standard output " "without a trailing newline. The function then reads a line from input, " @@ -1408,7 +1416,7 @@ msgstr "" "standard et la convertit en chaîne (supprimant le retour à la ligne final) " "quelle donne. Lorsque EOF est lu, :exc:`EOFError` est levée. Exemple : ::" -#: ../Doc/library/functions.rst:732 +#: ../Doc/library/functions.rst:737 msgid "" "If the :mod:`readline` module was loaded, then :func:`input` will use it to " "provide elaborate line editing and history features." @@ -1416,7 +1424,7 @@ msgstr "" "Si le module :mod:`readline` est chargé, :func:`input` l'utilisera pour " "fournir des fonctionnalités d'édition et d'historique élaborées." -#: ../Doc/library/functions.rst:739 +#: ../Doc/library/functions.rst:744 msgid "" "Return an integer object constructed from a number or string *x*, or return " "``0`` if no arguments are given. If *x* defines :meth:`__int__`, ``int(x)`` " @@ -1429,7 +1437,7 @@ msgstr "" "``int(x)`` renvoie ``x.__trunc__()``. Les nombres à virgule flottante sont " "tronqués vers zéro." -#: ../Doc/library/functions.rst:745 +#: ../Doc/library/functions.rst:750 msgid "" "If *x* is not a number or if *base* is given, then *x* must be a string, :" "class:`bytes`, or :class:`bytearray` instance representing an :ref:`integer " @@ -1458,11 +1466,11 @@ msgstr "" "0)`` n'est pas légal, alors que ``int('010')`` l'est tout comme ``int('010', " "8)``." -#: ../Doc/library/functions.rst:758 +#: ../Doc/library/functions.rst:763 msgid "The integer type is described in :ref:`typesnumeric`." msgstr "Le type des entiers est décrit dans :ref:`typesnumeric`." -#: ../Doc/library/functions.rst:760 +#: ../Doc/library/functions.rst:765 msgid "" "If *base* is not an instance of :class:`int` and the *base* object has a :" "meth:`base.__index__ ` method, that method is called to " @@ -1475,7 +1483,7 @@ msgstr "" "meth:`base.__int__ ` au lieu de :meth:`base.__index__ " "`." -#: ../Doc/library/functions.rst:776 +#: ../Doc/library/functions.rst:781 msgid "" "Return true if the *object* argument is an instance of the *classinfo* " "argument, or of a (direct, indirect or :term:`virtual `) of *classinfo*. A class is considered a subclass of " @@ -1508,7 +1516,7 @@ msgstr "" "cas la vérification sera faite pour chaque classe de *classinfo*. Dans tous " "les autres cas, :exc:`TypeError` est levée." -#: ../Doc/library/functions.rst:797 +#: ../Doc/library/functions.rst:802 msgid "" "Return an :term:`iterator` object. The first argument is interpreted very " "differently depending on the presence of the second argument. Without a " @@ -1534,11 +1542,11 @@ msgstr "" "est égale à *sentinel* :exc:`StopIteration` est levée, autrement la valeur " "est donnée." -#: ../Doc/library/functions.rst:810 +#: ../Doc/library/functions.rst:815 msgid "See also :ref:`typeiter`." msgstr "Voir aussi :ref:`typeiter`." -#: ../Doc/library/functions.rst:812 +#: ../Doc/library/functions.rst:817 msgid "" "One useful application of the second form of :func:`iter` is to build a " "block-reader. For example, reading fixed-width blocks from a binary database " @@ -1548,7 +1556,7 @@ msgstr "" "construire un lecteur par blocs. Par exemple, lire des blocs de taille fixe " "d'une base de donnée binaire jusqu'à ce que la fin soit atteinte ::" -#: ../Doc/library/functions.rst:824 +#: ../Doc/library/functions.rst:829 msgid "" "Return the length (the number of items) of an object. The argument may be a " "sequence (such as a string, bytes, tuple, list, or range) or a collection " @@ -1558,7 +1566,7 @@ msgstr "" "séquence (tel qu'une chaîne, un objet ``bytes``, ``tuple``, ``list`` ou " "``range``) ou une collection (tel qu'un ``dict``, ``set`` ou ``frozenset``)." -#: ../Doc/library/functions.rst:833 +#: ../Doc/library/functions.rst:838 msgid "" "Rather than being a function, :class:`list` is actually a mutable sequence " "type, as documented in :ref:`typesseq-list` and :ref:`typesseq`." @@ -1566,7 +1574,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`list` est en fait un type de séquence " "variable, tel que documenté dans :ref:`typesseq-list` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:839 +#: ../Doc/library/functions.rst:844 msgid "" "Update and return a dictionary representing the current local symbol table. " "Free variables are returned by :func:`locals` when it is called in function " @@ -1576,7 +1584,7 @@ msgstr "" "locaux. Les variables libres sont données par :func:`locals` lorsqu'elle est " "appelée dans le corps d'une fonction, mais pas dans le corps d'une classe." -#: ../Doc/library/functions.rst:844 +#: ../Doc/library/functions.rst:849 msgid "" "The contents of this dictionary should not be modified; changes may not " "affect the values of local and free variables used by the interpreter." @@ -1585,7 +1593,7 @@ msgstr "" "peuvent ne pas affecter les valeurs des variables locales ou libres " "utilisées par l'interpréteur." -#: ../Doc/library/functions.rst:849 +#: ../Doc/library/functions.rst:854 msgid "" "Return an iterator that applies *function* to every item of *iterable*, " "yielding the results. If additional *iterable* arguments are passed, " @@ -1602,7 +1610,7 @@ msgstr "" "où les arguments seraient déjà rangés sous forme de tuples, voir :func:" "`itertools.starmap`." -#: ../Doc/library/functions.rst:860 +#: ../Doc/library/functions.rst:865 msgid "" "Return the largest item in an iterable or the largest of two or more " "arguments." @@ -1610,7 +1618,7 @@ msgstr "" "Donne l'élément le plus grand dans un itérable, ou l'argument le plus grand " "parmi au moins deux arguments." -#: ../Doc/library/functions.rst:863 +#: ../Doc/library/functions.rst:868 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The largest item in the iterable is returned. If two or more positional " @@ -1620,7 +1628,7 @@ msgstr "" "Le plus grand élément de l'itérable est donné. Si au moins deux arguments " "positionnels sont fournis, l'argument le plus grand sera donné." -#: ../Doc/library/functions.rst:868 ../Doc/library/functions.rst:902 +#: ../Doc/library/functions.rst:873 ../Doc/library/functions.rst:907 msgid "" "There are two optional keyword-only arguments. The *key* argument specifies " "a one-argument ordering function like that used for :meth:`list.sort`. The " @@ -1634,7 +1642,7 @@ msgstr "" "l'itérable fourni est vide. Si l'itérable est vide et que *default* n'est " "pas fourni, :exc:`ValueError` est levée." -#: ../Doc/library/functions.rst:874 +#: ../Doc/library/functions.rst:879 msgid "" "If multiple items are maximal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -1646,11 +1654,11 @@ msgstr "" "stabilité lors du tri, tel que ``sorted(iterable, key=keyfunc, reverse=True)" "[0]`` et ``heapq.nlargest(1, iterable, key=keyfunc)``." -#: ../Doc/library/functions.rst:879 ../Doc/library/functions.rst:913 +#: ../Doc/library/functions.rst:884 ../Doc/library/functions.rst:918 msgid "The *default* keyword-only argument." msgstr "L'argument exclusivement par mot clef *default*." -#: ../Doc/library/functions.rst:887 +#: ../Doc/library/functions.rst:892 msgid "" "Return a \"memory view\" object created from the given argument. See :ref:" "`typememoryview` for more information." @@ -1658,7 +1666,7 @@ msgstr "" "Donne une \"vue mémoire\" (*memory view*) créée depuis l'argument. Voir :ref:" "`typememoryview` pour plus d'informations." -#: ../Doc/library/functions.rst:894 +#: ../Doc/library/functions.rst:899 msgid "" "Return the smallest item in an iterable or the smallest of two or more " "arguments." @@ -1666,7 +1674,7 @@ msgstr "" "Donne le plus petit élément d'un itérable ou le plus petit d'au moins deux " "arguments." -#: ../Doc/library/functions.rst:897 +#: ../Doc/library/functions.rst:902 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The smallest item in the iterable is returned. If two or more positional " @@ -1676,7 +1684,7 @@ msgstr "" "élément de l'itérable est donné. Si au moins deux arguments positionnels " "sont fournis le plus petit argument positionnel est donné." -#: ../Doc/library/functions.rst:908 +#: ../Doc/library/functions.rst:913 msgid "" "If multiple items are minimal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -1688,7 +1696,7 @@ msgstr "" "``sorted(iterable, key=keyfunc)[0]`` et ``heapq.nsmallest(1, iterable, " "key=keyfunc)``." -#: ../Doc/library/functions.rst:919 +#: ../Doc/library/functions.rst:924 msgid "" "Retrieve the next item from the *iterator* by calling its :meth:`~iterator." "__next__` method. If *default* is given, it is returned if the iterator is " @@ -1698,7 +1706,7 @@ msgstr "" "__next__`. Si *default* est fourni, il sera donné si l'itérateur est épousé, " "sinon :exc:`StopIteration` est levée." -#: ../Doc/library/functions.rst:926 +#: ../Doc/library/functions.rst:931 msgid "" "Return a new featureless object. :class:`object` is a base for all classes. " "It has the methods that are common to all instances of Python classes. This " @@ -1708,7 +1716,7 @@ msgstr "" "classes. C'est elle qui porte les méthodes communes à toutes les instances " "de classes en Python. Cette fonction n'accepte aucun argument." -#: ../Doc/library/functions.rst:932 +#: ../Doc/library/functions.rst:937 msgid "" ":class:`object` does *not* have a :attr:`~object.__dict__`, so you can't " "assign arbitrary attributes to an instance of the :class:`object` class." @@ -1717,7 +1725,7 @@ msgstr "" "pouvez donc pas assigner d'attributs arbitraire à une instance d':class:" "`object`." -#: ../Doc/library/functions.rst:938 +#: ../Doc/library/functions.rst:943 msgid "" "Convert an integer number to an octal string prefixed with \"0o\". The " "result is a valid Python expression. If *x* is not a Python :class:`int` " @@ -1729,7 +1737,7 @@ msgstr "" "objet :class:`int`, il doit définir une méthode :meth:`__index__` qui donne " "un entier, par exemple :" -#: ../Doc/library/functions.rst:948 +#: ../Doc/library/functions.rst:953 msgid "" "If you want to convert an integer number to octal string either with prefix " "\"0o\" or not, you can use either of the following ways." @@ -1737,7 +1745,7 @@ msgstr "" "Si vous voulez convertir un nombre entier en chaîne octale, avec ou sans le " "préfixe ``0o``, vous pouvez utiliser les moyens suivants." -#: ../Doc/library/functions.rst:965 +#: ../Doc/library/functions.rst:970 msgid "" "Open *file* and return a corresponding :term:`file object`. If the file " "cannot be opened, an :exc:`OSError` is raised." @@ -1745,7 +1753,7 @@ msgstr "" "Ouvre *file* et donne un :term:`file object` correspondant. Si le fichier ne " "peut pas être ouvert, une :exc:`OSError` est levée." -#: ../Doc/library/functions.rst:968 +#: ../Doc/library/functions.rst:973 msgid "" "*file* is a :term:`path-like object` giving the pathname (absolute or " "relative to the current working directory) of the file to be opened or an " @@ -1759,7 +1767,7 @@ msgstr "" "donné, il sera fermé en même temps que l'objet *I/O* renvoyé, sauf si " "*closefd* est mis à ``False``.)" -#: ../Doc/library/functions.rst:974 +#: ../Doc/library/functions.rst:979 msgid "" "*mode* is an optional string that specifies the mode in which the file is " "opened. It defaults to ``'r'`` which means open for reading in text mode. " @@ -1785,71 +1793,71 @@ msgstr "" "utilisez le mode binaire en laissant *encoding* non spécifié.) Les modes " "disponibles sont :" -#: ../Doc/library/functions.rst:991 +#: ../Doc/library/functions.rst:996 msgid "Character" msgstr "Caractère" -#: ../Doc/library/functions.rst:991 +#: ../Doc/library/functions.rst:996 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/functions.rst:993 +#: ../Doc/library/functions.rst:998 msgid "``'r'``" msgstr "``'r'``" -#: ../Doc/library/functions.rst:993 +#: ../Doc/library/functions.rst:998 msgid "open for reading (default)" msgstr "ouvre en lecture (par défaut)" -#: ../Doc/library/functions.rst:994 +#: ../Doc/library/functions.rst:999 msgid "``'w'``" msgstr "``'w'``" -#: ../Doc/library/functions.rst:994 +#: ../Doc/library/functions.rst:999 msgid "open for writing, truncating the file first" msgstr "ouvre en écriture, tronquant le fichier" -#: ../Doc/library/functions.rst:995 +#: ../Doc/library/functions.rst:1000 msgid "``'x'``" msgstr "``'x'``" -#: ../Doc/library/functions.rst:995 +#: ../Doc/library/functions.rst:1000 msgid "open for exclusive creation, failing if the file already exists" msgstr "ouvre pour une création exclusive, échouant si le fichier existe déjà" -#: ../Doc/library/functions.rst:996 +#: ../Doc/library/functions.rst:1001 msgid "``'a'``" msgstr "``'a'``" -#: ../Doc/library/functions.rst:996 +#: ../Doc/library/functions.rst:1001 msgid "open for writing, appending to the end of the file if it exists" msgstr "ouvre en écriture, ajoutant à la fin du fichier s'il existe" -#: ../Doc/library/functions.rst:997 +#: ../Doc/library/functions.rst:1002 msgid "``'b'``" msgstr "``'b'``" -#: ../Doc/library/functions.rst:997 +#: ../Doc/library/functions.rst:1002 msgid "binary mode" msgstr "mode binaire" -#: ../Doc/library/functions.rst:998 +#: ../Doc/library/functions.rst:1003 msgid "``'t'``" msgstr "``'t'``" -#: ../Doc/library/functions.rst:998 +#: ../Doc/library/functions.rst:1003 msgid "text mode (default)" msgstr "mode texte (par défaut)" -#: ../Doc/library/functions.rst:999 +#: ../Doc/library/functions.rst:1004 msgid "``'+'``" msgstr "``'+'``" -#: ../Doc/library/functions.rst:999 +#: ../Doc/library/functions.rst:1004 msgid "open a disk file for updating (reading and writing)" msgstr "ouvre un fichier pour le modifier (lire et écrire)" -#: ../Doc/library/functions.rst:1002 +#: ../Doc/library/functions.rst:1007 msgid "" "The default mode is ``'r'`` (open for reading text, synonym of ``'rt'``). " "For binary read-write access, the mode ``'w+b'`` opens and truncates the " @@ -1859,7 +1867,7 @@ msgstr "" "``'rt'``). Pour un accès en lecture écriture binaire, le mode ``'w+b'`` " "ouvre et vide le fichier. ``'r+b'`` ouvre le fichier sans le vider." -#: ../Doc/library/functions.rst:1006 +#: ../Doc/library/functions.rst:1011 msgid "" "As mentioned in the :ref:`io-overview`, Python distinguishes between binary " "and text I/O. Files opened in binary mode (including ``'b'`` in the *mode* " @@ -1877,7 +1885,7 @@ msgstr "" "été décodés au préalable en utilisant un encodage déduit de l'environnement " "ou *encoding* s'il est donné." -#: ../Doc/library/functions.rst:1014 +#: ../Doc/library/functions.rst:1019 msgid "" "There is an additional mode character permitted, ``'U'``, which no longer " "has any effect, and is considered deprecated. It previously enabled :term:" @@ -1886,7 +1894,7 @@ msgid "" "parameter>` parameter for further details." msgstr "" -#: ../Doc/library/functions.rst:1022 +#: ../Doc/library/functions.rst:1027 msgid "" "Python doesn't depend on the underlying operating system's notion of text " "files; all the processing is done by Python itself, and is therefore " @@ -1896,7 +1904,7 @@ msgstr "" "jacent, tout est effectué par Python lui même, et ainsi indépendant de la " "plateforme." -#: ../Doc/library/functions.rst:1026 +#: ../Doc/library/functions.rst:1031 msgid "" "*buffering* is an optional integer used to set the buffering policy. Pass 0 " "to switch buffering off (only allowed in binary mode), 1 to select line " @@ -1911,7 +1919,7 @@ msgstr "" "en octets d'un tampon de taille fixe. Sans l'argument *buffering*, les " "comportements par défaut sont les suivants :" -#: ../Doc/library/functions.rst:1032 +#: ../Doc/library/functions.rst:1037 msgid "" "Binary files are buffered in fixed-size chunks; the size of the buffer is " "chosen using a heuristic trying to determine the underlying device's \"block " @@ -1924,7 +1932,7 @@ msgstr "" "DEFAULT_BUFFER_SIZE`. Sur de nombreux systèmes, le tampon sera de 4096 ou " "8192 octets." -#: ../Doc/library/functions.rst:1037 +#: ../Doc/library/functions.rst:1042 msgid "" "\"Interactive\" text files (files for which :meth:`~io.IOBase.isatty` " "returns ``True``) use line buffering. Other text files use the policy " @@ -1934,7 +1942,7 @@ msgstr "" "isatty` donne ``True``) utilisent un tampon par lignes. Les autres fichiers " "texte sont traités comme les fichiers binaires." -#: ../Doc/library/functions.rst:1041 +#: ../Doc/library/functions.rst:1046 msgid "" "*encoding* is the name of the encoding used to decode or encode the file. " "This should only be used in text mode. The default encoding is platform " @@ -1948,7 +1956,7 @@ msgstr "" "mais n'importe quel :term:`text encoding` supporté par Python peut être " "utilisé. Voir :mod:`codecs` pour une liste des encodages supportés." -#: ../Doc/library/functions.rst:1048 +#: ../Doc/library/functions.rst:1053 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled—this cannot be used in binary mode. A variety of " @@ -1963,7 +1971,7 @@ msgstr "" "enregistré avec :func:`codecs.register_error` est aussi un argument valide. " "Les noms standards sont :" -#: ../Doc/library/functions.rst:1056 +#: ../Doc/library/functions.rst:1061 msgid "" "``'strict'`` to raise a :exc:`ValueError` exception if there is an encoding " "error. The default value of ``None`` has the same effect." @@ -1971,7 +1979,7 @@ msgstr "" "``'strict'`` pour lever une :exc:`ValueError` si une erreur d'encodage est " "rencontrée. La valeur par défaut, ``None``, a le même effet." -#: ../Doc/library/functions.rst:1060 +#: ../Doc/library/functions.rst:1065 msgid "" "``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to " "data loss." @@ -1979,7 +1987,7 @@ msgstr "" "``'ignore'`` ignore les erreurs. Notez qu'ignorer les erreurs d'encodage " "peut mener à des pertes de données." -#: ../Doc/library/functions.rst:1063 +#: ../Doc/library/functions.rst:1068 msgid "" "``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted " "where there is malformed data." @@ -1987,7 +1995,7 @@ msgstr "" "``'replace'`` insère un marqueur de substitution (tel que ``'?'``) en place " "des données mal formées." -#: ../Doc/library/functions.rst:1066 +#: ../Doc/library/functions.rst:1071 msgid "" "``'surrogateescape'`` will represent any incorrect bytes as code points in " "the Unicode Private Use Area ranging from U+DC80 to U+DCFF. These private " @@ -2002,7 +2010,7 @@ msgstr "" "l'écriture de la donnée. C'est utile pour traiter des fichiers d'un encodage " "inconnu." -#: ../Doc/library/functions.rst:1073 +#: ../Doc/library/functions.rst:1078 msgid "" "``'xmlcharrefreplace'`` is only supported when writing to a file. Characters " "not supported by the encoding are replaced with the appropriate XML " @@ -2012,7 +2020,7 @@ msgstr "" "Les caractères non gérés par l'encodage sont remplacés par une référence de " "caractère XML ``&#nnn;``." -#: ../Doc/library/functions.rst:1077 +#: ../Doc/library/functions.rst:1082 msgid "" "``'backslashreplace'`` replaces malformed data by Python's backslashed " "escape sequences." @@ -2020,7 +2028,7 @@ msgstr "" "``'backslashreplace'`` remplace les données mal formées par des séquences " "d'échappement Python (utilisant des *backslash*)." -#: ../Doc/library/functions.rst:1080 +#: ../Doc/library/functions.rst:1085 msgid "" "``'namereplace'`` (also only supported when writing) replaces unsupported " "characters with ``\\N{...}`` escape sequences." @@ -2028,7 +2036,7 @@ msgstr "" "``'namereplace'`` (aussi supporté lors de l'écriture) remplace les " "caractères non supportés par des séquences d'échappement ``\\N{...}``." -#: ../Doc/library/functions.rst:1088 +#: ../Doc/library/functions.rst:1093 msgid "" "*newline* controls how :term:`universal newlines` mode works (it only " "applies to text mode). It can be ``None``, ``''``, ``'\\n'``, ``'\\r'``, " @@ -2038,7 +2046,7 @@ msgstr "" "(seulement en mode texte). Il eut être ``None``, ``''``, ``'\\n'``, " "``'\\r'``, et ``'\\r\\n'``. Il fonctionne comme suit :" -#: ../Doc/library/functions.rst:1092 +#: ../Doc/library/functions.rst:1097 msgid "" "When reading input from the stream, if *newline* is ``None``, universal " "newlines mode is enabled. Lines in the input can end in ``'\\n'``, " @@ -2056,7 +2064,7 @@ msgstr "" "autorisée, les lignes sont seulement terminées par la chaîne donnée, qui est " "rendue tel qu'elle." -#: ../Doc/library/functions.rst:1100 +#: ../Doc/library/functions.rst:1105 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -2070,7 +2078,7 @@ msgstr "" "*newline* est un autre caractère valide, chaque ``'\\n'`` sera remplacé par " "la chaîne donnée." -#: ../Doc/library/functions.rst:1106 +#: ../Doc/library/functions.rst:1111 msgid "" "If *closefd* is ``False`` and a file descriptor rather than a filename was " "given, the underlying file descriptor will be kept open when the file is " @@ -2082,7 +2090,7 @@ msgstr "" "le fichier sera fermé. Si un nom de fichier est donné, *closefd* doit rester " "``True`` (la valeur par défaut) sans quoi une erreur est levée." -#: ../Doc/library/functions.rst:1111 +#: ../Doc/library/functions.rst:1116 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 " @@ -2096,13 +2104,13 @@ msgstr "" "descripteur de fichier ouvert (fournir :mod:`os.open` en temps qu'*opener* " "aura le même effet que donner ``None``)." -#: ../Doc/library/functions.rst:1117 +#: ../Doc/library/functions.rst:1122 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/functions.rst:1119 +#: ../Doc/library/functions.rst:1124 msgid "" "The following example uses the :ref:`dir_fd ` parameter of the :func:" "`os.open` function to open a file relative to a given directory::" @@ -2110,7 +2118,7 @@ msgstr "" "L'exemple suivant utilise le paramètre :ref:`dir_fd ` de la " "fonction :func:`os.open` pour ouvrir un fichier relatif au dossier courant ::" -#: ../Doc/library/functions.rst:1132 +#: ../Doc/library/functions.rst:1137 msgid "" "The type of :term:`file object` returned by the :func:`open` function " "depends on the mode. When :func:`open` is used to open a file in a text " @@ -2136,7 +2144,7 @@ msgstr "" "désactivé, le flux brut, une classe fille de :class:`io.RawIOBase`, :class:" "`io.FileIO` est donnée." -#: ../Doc/library/functions.rst:1153 +#: ../Doc/library/functions.rst:1158 msgid "" "See also the file handling modules, such as, :mod:`fileinput`, :mod:`io` " "(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:" @@ -2146,21 +2154,21 @@ msgstr "" "`fileinput`, :mod:`io` (où :func:`open` est déclarée), :mod:`os`, :mod:`os." "path`, :mod:`tmpfile`, et :mod:`shutil`." -#: ../Doc/library/functions.rst:1160 +#: ../Doc/library/functions.rst:1165 msgid "The *opener* parameter was added." msgstr "Le paramètre *opener* a été ajouté." -#: ../Doc/library/functions.rst:1161 +#: ../Doc/library/functions.rst:1166 msgid "The ``'x'`` mode was added." msgstr "Le mode ``'x'`` a été ajouté." -#: ../Doc/library/functions.rst:1162 +#: ../Doc/library/functions.rst:1167 msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." msgstr "" ":exc:`IOError` était normalement levée, elle est maintenant un alias de :exc:" "`OSError`." -#: ../Doc/library/functions.rst:1163 +#: ../Doc/library/functions.rst:1168 msgid "" ":exc:`FileExistsError` is now raised if the file opened in exclusive " "creation mode (``'x'``) already exists." @@ -2168,15 +2176,15 @@ msgstr "" ":exc:`FileExistsError` est maintenant levée si le fichier ouvert en mode " "création exclusive (``'x'``) existe déjà." -#: ../Doc/library/functions.rst:1169 +#: ../Doc/library/functions.rst:1174 msgid "The file is now non-inheritable." msgstr "Il n'est plus possible d'hériter de *file*." -#: ../Doc/library/functions.rst:1173 +#: ../Doc/library/functions.rst:1178 msgid "The ``'U'`` mode." msgstr "Le mode ``'U'``." -#: ../Doc/library/functions.rst:1178 +#: ../Doc/library/functions.rst:1183 msgid "" "If the system call is interrupted and the signal handler does not raise an " "exception, the function now retries the system call instead of raising an :" @@ -2186,15 +2194,15 @@ msgstr "" "aucune exception, la fonction réessaye l'appel système au lieu de lever une :" "exc:`InterruptedError` (voir la :pep:`475` à propos du raisonnement)." -#: ../Doc/library/functions.rst:1181 +#: ../Doc/library/functions.rst:1186 msgid "The ``'namereplace'`` error handler was added." msgstr "Le gestionnaire d'erreurs ``'namereplace'`` a été ajouté." -#: ../Doc/library/functions.rst:1186 +#: ../Doc/library/functions.rst:1191 msgid "Support added to accept objects implementing :class:`os.PathLike`." msgstr "Ajout du support des objets implémentant :class:`os.PathLike`." -#: ../Doc/library/functions.rst:1187 +#: ../Doc/library/functions.rst:1192 msgid "" "On Windows, opening a console buffer may return a subclass of :class:`io." "RawIOBase` other than :class:`io.FileIO`." @@ -2202,7 +2210,7 @@ msgstr "" "Sous Windows, ouvrir un *buffer* du terminal peut renvoyer une sous-classe " "de :class:`io.RawIOBase` autre que :class:`io.FileIO`." -#: ../Doc/library/functions.rst:1192 +#: ../Doc/library/functions.rst:1197 msgid "" "Given a string representing one Unicode character, return an integer " "representing the Unicode code point of that character. For example, " @@ -2214,7 +2222,7 @@ msgstr "" "nombre entier ``97`` et ``ord('€')`` (symbole Euro) renvoie ``8364``. Il " "s'agit de l'inverse de :func:`chr`." -#: ../Doc/library/functions.rst:1200 +#: ../Doc/library/functions.rst:1205 msgid "" "Return *x* to the power *y*; if *z* is present, return *x* to the power *y*, " "modulo *z* (computed more efficiently than ``pow(x, y) % z``). The two-" @@ -2225,7 +2233,7 @@ msgstr "" "modulo *z* (calculé de manière plus efficiente que ``pow(x, y) % z``). La " "forme à deux arguments est équivalent à ``x**y``." -#: ../Doc/library/functions.rst:1204 +#: ../Doc/library/functions.rst:1209 msgid "" "The arguments must have numeric types. With mixed operand types, the " "coercion rules for binary arithmetic operators apply. For :class:`int` " @@ -2246,7 +2254,7 @@ msgstr "" "argument est négatif, le troisième doit être omis. Si *z* est fourni, *x* et " "*y* doivent être des entiers et *y* positif." -#: ../Doc/library/functions.rst:1216 +#: ../Doc/library/functions.rst:1221 msgid "" "Print *objects* to the text stream *file*, separated by *sep* and followed " "by *end*. *sep*, *end*, *file* and *flush*, if present, must be given as " @@ -2256,7 +2264,7 @@ msgstr "" "*end*. *sep*, *end*, *file*, et *flush*, s'ils sont présents, doivent être " "données par mot clef." -#: ../Doc/library/functions.rst:1220 +#: ../Doc/library/functions.rst:1225 msgid "" "All non-keyword arguments are converted to strings like :func:`str` does and " "written to the stream, separated by *sep* and followed by *end*. Both *sep* " @@ -2270,7 +2278,7 @@ msgstr "" "les valeurs par défaut. Si aucun *objects* n'est donné :func:`print` écris " "seulement *end*." -#: ../Doc/library/functions.rst:1226 +#: ../Doc/library/functions.rst:1231 msgid "" "The *file* argument must be an object with a ``write(string)`` method; if it " "is not present or ``None``, :data:`sys.stdout` will be used. Since printed " @@ -2283,7 +2291,7 @@ msgstr "" "peut pas être utilisé avec des fichiers ouverts en mode binaire. Pour ceux " "ci utilisez plutôt ``file.write(...)``." -#: ../Doc/library/functions.rst:1231 +#: ../Doc/library/functions.rst:1236 msgid "" "Whether output is buffered is usually determined by *file*, but if the " "*flush* keyword argument is true, the stream is forcibly flushed." @@ -2291,15 +2299,15 @@ msgstr "" "Que la sortie utilise un *buffer* ou non est souvent décidé par *file*, mais " "si l'argument *flush* est vrai, le tampon du flux est vidé explicitement." -#: ../Doc/library/functions.rst:1234 +#: ../Doc/library/functions.rst:1239 msgid "Added the *flush* keyword argument." msgstr "Ajout de l'argument par mot clef *flush*." -#: ../Doc/library/functions.rst:1240 +#: ../Doc/library/functions.rst:1245 msgid "Return a property attribute." msgstr "Donne un attribut propriété." -#: ../Doc/library/functions.rst:1242 +#: ../Doc/library/functions.rst:1247 msgid "" "*fget* is a function for getting an attribute value. *fset* is a function " "for setting an attribute value. *fdel* is a function for deleting an " @@ -2310,11 +2318,11 @@ msgstr "" "supprimer la valeur d'un attribut, et *doc* créé une *docstring* pour " "l'attribut." -#: ../Doc/library/functions.rst:1246 +#: ../Doc/library/functions.rst:1251 msgid "A typical use is to define a managed attribute ``x``::" msgstr "Une utilisation typique : définir un attribut managé ``x`` : ::" -#: ../Doc/library/functions.rst:1263 +#: ../Doc/library/functions.rst:1268 msgid "" "If *c* is an instance of *C*, ``c.x`` will invoke the getter, ``c.x = " "value`` will invoke the setter and ``del c.x`` the deleter." @@ -2322,7 +2330,7 @@ msgstr "" "Si *c* est une instance de *C*, ``c.x`` appellera le *getter*, ``c.x = " "value`` invoquera le *setter*, et ``del x`` le *deleter*." -#: ../Doc/library/functions.rst:1266 +#: ../Doc/library/functions.rst:1271 msgid "" "If given, *doc* will be the docstring of the property attribute. Otherwise, " "the property will copy *fget*'s docstring (if it exists). This makes it " @@ -2334,7 +2342,7 @@ msgstr "" "création de propriétés en lecture seule en utilisant simplement :func:" "`property` comme un :term:`decorator` : ::" -#: ../Doc/library/functions.rst:1279 +#: ../Doc/library/functions.rst:1284 msgid "" "The ``@property`` decorator turns the :meth:`voltage` method into a \"getter" "\" for a read-only attribute with the same name, and it sets the docstring " @@ -2344,7 +2352,7 @@ msgstr "" "*getter* d'un attribut du même nom, et donne *\"Get the current voltage\"* " "comme *docstring* de *voltage*." -#: ../Doc/library/functions.rst:1283 +#: ../Doc/library/functions.rst:1288 msgid "" "A property object has :attr:`~property.getter`, :attr:`~property.setter`, " "and :attr:`~property.deleter` methods usable as decorators that create a " @@ -2356,7 +2364,7 @@ msgstr "" "une copie de la propriété avec les accesseurs correspondants définis par la " "fonction de décoration. C'est plus clair avec un exemple : ::" -#: ../Doc/library/functions.rst:1305 +#: ../Doc/library/functions.rst:1310 msgid "" "This code is exactly equivalent to the first example. Be sure to give the " "additional functions the same name as the original property (``x`` in this " @@ -2366,7 +2374,7 @@ msgstr "" "donner aux fonctions additionnelles le même nom que la propriété (``x`` dans " "ce cas.)" -#: ../Doc/library/functions.rst:1309 +#: ../Doc/library/functions.rst:1314 msgid "" "The returned property object also has the attributes ``fget``, ``fset``, and " "``fdel`` corresponding to the constructor arguments." @@ -2374,11 +2382,11 @@ msgstr "" "L'objet propriété donné à aussi les attributs ``fget``, ``fset`` et ``fdel`` " "correspondant correspondants aux arguments du constructeur." -#: ../Doc/library/functions.rst:1312 +#: ../Doc/library/functions.rst:1317 msgid "The docstrings of property objects are now writeable." msgstr "Les *docstrings* des objets propriété peuvent maintenant être écrits." -#: ../Doc/library/functions.rst:1321 +#: ../Doc/library/functions.rst:1326 msgid "" "Rather than being a function, :class:`range` is actually an immutable " "sequence type, as documented in :ref:`typesseq-range` and :ref:`typesseq`." @@ -2386,7 +2394,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`range` est en fait une séquence " "immuable, tel que documenté dans :ref:`typesseq-range` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1327 +#: ../Doc/library/functions.rst:1332 msgid "" "Return a string containing a printable representation of an object. For " "many types, this function makes an attempt to return a string that would " @@ -2404,7 +2412,7 @@ msgstr "" "l'objet. Une classe peut contrôler ce que cette fonction donne pour ses " "instances en définissant une méthode :meth:`__repr__`." -#: ../Doc/library/functions.rst:1338 +#: ../Doc/library/functions.rst:1343 msgid "" "Return a reverse :term:`iterator`. *seq* must be an object which has a :" "meth:`__reversed__` method or supports the sequence protocol (the :meth:" @@ -2416,7 +2424,7 @@ msgstr "" "meth:`__len__` et la méthode :meth:`__getitem__` avec des arguments entiers " "commençant à zéro)." -#: ../Doc/library/functions.rst:1346 +#: ../Doc/library/functions.rst:1351 msgid "" "Return *number* rounded to *ndigits* precision after the decimal point. If " "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " @@ -2426,7 +2434,7 @@ msgstr "" "virgule. Si *ndigits* est omis (ou est ``None``), l'entier le plus proche " "est renvoyé." -#: ../Doc/library/functions.rst:1350 +#: ../Doc/library/functions.rst:1355 msgid "" "For the built-in types supporting :func:`round`, values are rounded to the " "closest multiple of 10 to the power minus *ndigits*; if two multiples are " @@ -2444,7 +2452,7 @@ msgstr "" "zéro, ou négatif). La valeur renvoyée est un entier si *ndigits* n'est pas " "donné, (ou est ``None``). Sinon elle est du même type que *number*." -#: ../Doc/library/functions.rst:1359 +#: ../Doc/library/functions.rst:1364 msgid "" "For a general Python object ``number``, ``round`` delegates to ``number." "__round__``." @@ -2452,7 +2460,7 @@ msgstr "" "Pour tout autre objet Python ``number``, ``round`` délègue à ``number." "__round__``." -#: ../Doc/library/functions.rst:1364 +#: ../Doc/library/functions.rst:1369 msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " "``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is " @@ -2466,7 +2474,7 @@ msgstr "" "de décimaux ne peuvent pas être représentés exactement en nombre a virgule " "flottante. Voir :ref:`tut-fp-issues` pour plus d'information." -#: ../Doc/library/functions.rst:1375 +#: ../Doc/library/functions.rst:1380 msgid "" "Return a new :class:`set` object, optionally with elements taken from " "*iterable*. ``set`` is a built-in class. See :class:`set` and :ref:`types-" @@ -2476,7 +2484,7 @@ msgstr "" "d'*iterable*. ``set`` est une classe native. Voir :class:`set` et :ref:" "`types-set` pour la documentation de cette classe." -#: ../Doc/library/functions.rst:1379 +#: ../Doc/library/functions.rst:1384 msgid "" "For other containers see the built-in :class:`frozenset`, :class:`list`, :" "class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections` " @@ -2486,7 +2494,7 @@ msgstr "" "`list`, :class:`tuple`, et :class:`dict`, ainsi que le module :mod:" "`collections`." -#: ../Doc/library/functions.rst:1386 +#: ../Doc/library/functions.rst:1391 msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " "string and an arbitrary value. The string may name an existing attribute or " @@ -2500,7 +2508,7 @@ msgstr "" "si l'objet l'autorise. Par exemple, ``setattr(x, 'foobar', 123)`` équivaut à " "``x.foobar = 123``." -#: ../Doc/library/functions.rst:1398 +#: ../Doc/library/functions.rst:1403 msgid "" "Return a :term:`slice` object representing the set of indices specified by " "``range(start, stop, step)``. The *start* and *step* arguments default to " @@ -2524,16 +2532,16 @@ msgstr "" "étendue. Par exemple ``a[start:stop:step]`` ou ``a[start:stop, i]``. Voir :" "func:`itertools.islice` pour une version alternative donnant un itérateur." -#: ../Doc/library/functions.rst:1411 +#: ../Doc/library/functions.rst:1416 msgid "Return a new sorted list from the items in *iterable*." msgstr "Donne une nouvelle liste triée depuis les éléments d'*iterable*." -#: ../Doc/library/functions.rst:1413 +#: ../Doc/library/functions.rst:1418 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "A deux arguments optionnels qui doivent être fournis par mot clef." -#: ../Doc/library/functions.rst:1415 +#: ../Doc/library/functions.rst:1420 msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each element in *iterable* (for example, ``key=str." @@ -2544,7 +2552,7 @@ msgstr "" "lower``). La valeur par défaut est ``None`` (compare les éléments " "directement)." -#: ../Doc/library/functions.rst:1419 +#: ../Doc/library/functions.rst:1424 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -2552,7 +2560,7 @@ msgstr "" "*reverse*, une valeur booléenne. Si elle est ``True``, la liste d'éléments " "est triée comme si toutes les comparaisons étaient inversées." -#: ../Doc/library/functions.rst:1422 +#: ../Doc/library/functions.rst:1427 msgid "" "Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " "*key* function." @@ -2560,7 +2568,7 @@ msgstr "" "Utilisez :func:`functools.cmp_to_key` pour convertir l'ancienne notation " "*cmp* en une fonction *key*." -#: ../Doc/library/functions.rst:1425 +#: ../Doc/library/functions.rst:1430 msgid "" "The built-in :func:`sorted` function is guaranteed to be stable. A sort is " "stable if it guarantees not to change the relative order of elements that " @@ -2572,17 +2580,17 @@ msgstr "" "eux. C'est utile pour trier en plusieurs passes, par exemple par département " "puis par salaire)." -#: ../Doc/library/functions.rst:1430 +#: ../Doc/library/functions.rst:1435 msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" "Pour des exemples de tris et un bref tutoriel, consultez :ref:`sortinghowto`." -#: ../Doc/library/functions.rst:1434 +#: ../Doc/library/functions.rst:1439 msgid "Transform a method into a static method." msgstr "Transforme une méthode en méthode statique." -#: ../Doc/library/functions.rst:1436 +#: ../Doc/library/functions.rst:1441 msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" @@ -2590,7 +2598,7 @@ msgstr "" "Une méthode statique ne reçoit pas de premier argument implicitement. Voilà " "comment déclarer une méthode statique : ::" -#: ../Doc/library/functions.rst:1443 +#: ../Doc/library/functions.rst:1448 msgid "" "The ``@staticmethod`` form is a function :term:`decorator` -- see the " "description of function definitions in :ref:`function` for details." @@ -2599,7 +2607,7 @@ msgstr "" "description des définitions de fonction dans :ref:`function` pour plus de " "détails." -#: ../Doc/library/functions.rst:1446 +#: ../Doc/library/functions.rst:1451 msgid "" "It can be called either on the class (such as ``C.f()``) or on an instance " "(such as ``C().f()``). The instance is ignored except for its class." @@ -2607,7 +2615,7 @@ msgstr "" "Elle peut être appelée soit sur une classe (tel que ``C.f()``) ou sur une " "instance (tel que ``C().f()``). L'instance est ignorée, sauf pour sa classe." -#: ../Doc/library/functions.rst:1449 +#: ../Doc/library/functions.rst:1454 msgid "" "Static methods in Python are similar to those found in Java or C++. Also " "see :func:`classmethod` for a variant that is useful for creating alternate " @@ -2617,7 +2625,7 @@ msgstr "" "ou en C++. Consultez :func:`classmethod` pour une variante utile pour créer " "des constructeurs alternatifs." -#: ../Doc/library/functions.rst:1453 +#: ../Doc/library/functions.rst:1458 msgid "" "Like all decorators, it is also possible to call ``staticmethod`` as a " "regular function and do something with its result. This is needed in some " @@ -2631,7 +2639,7 @@ msgstr "" "depuis le corps d'une classe, et souhaiteriez éviter sa transformation en " "méthode d'instance. Pour ces cas, faites comme suit ::" -#: ../Doc/library/functions.rst:1462 +#: ../Doc/library/functions.rst:1467 msgid "" "For more information on static methods, consult the documentation on the " "standard type hierarchy in :ref:`types`." @@ -2639,14 +2647,14 @@ msgstr "" "Pour plus d'informations sur les méthodes statiques, consultez la " "documentation de la hiérarchie des types standards dans :ref:`types`." -#: ../Doc/library/functions.rst:1474 +#: ../Doc/library/functions.rst:1479 msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" "Donne une version sous forme de :class:`str` d'*object*. Voir :func:`str` " "pour plus de détails." -#: ../Doc/library/functions.rst:1476 +#: ../Doc/library/functions.rst:1481 msgid "" "``str`` is the built-in string :term:`class`. For general information about " "strings, see :ref:`textseq`." @@ -2654,7 +2662,7 @@ msgstr "" "``str`` est la :term:`class` native des chaînes de caractères. Pour des " "informations générales à propos des chaînes, consultez :ref:`textseq`." -#: ../Doc/library/functions.rst:1482 +#: ../Doc/library/functions.rst:1487 msgid "" "Sums *start* and the items of an *iterable* from left to right and returns " "the total. *start* defaults to ``0``. The *iterable*'s items are normally " @@ -2665,7 +2673,7 @@ msgstr "" "sont normalement des nombres, et la valeur de *start* ne peut pas être une " "chaîne." -#: ../Doc/library/functions.rst:1486 +#: ../Doc/library/functions.rst:1491 msgid "" "For some use cases, there are good alternatives to :func:`sum`. The " "preferred, fast way to concatenate a sequence of strings is by calling ``''." @@ -2679,7 +2687,7 @@ msgstr "" "meilleure précision, voir :func:`math.fsum`. Pour concaténer une série " "d'itérables, utilisez plutôt :func:`itertools.chain`." -#: ../Doc/library/functions.rst:1494 +#: ../Doc/library/functions.rst:1499 msgid "" "Return a proxy object that delegates method calls to a parent or sibling " "class of *type*. This is useful for accessing inherited methods that have " @@ -2692,7 +2700,7 @@ msgstr "" "recherche est le même que celui utilisé par :func:`getattr` sauf que *type* " "lui même est sauté." -#: ../Doc/library/functions.rst:1499 +#: ../Doc/library/functions.rst:1504 msgid "" "The :attr:`~class.__mro__` attribute of the *type* lists the method " "resolution search order used by both :func:`getattr` and :func:`super`. The " @@ -2704,7 +2712,7 @@ msgstr "" "L'attribut est dynamique et peut changer lorsque la hiérarchie d'héritage " "est modifiée." -#: ../Doc/library/functions.rst:1504 +#: ../Doc/library/functions.rst:1509 msgid "" "If the second argument is omitted, the super object returned is unbound. If " "the second argument is an object, ``isinstance(obj, type)`` must be true. " @@ -2716,7 +2724,7 @@ msgstr "" "le second argument est un type, ``issubclass(type2, type)`` doit être vrai " "(c'est utile pour les méthodes de classe)." -#: ../Doc/library/functions.rst:1509 +#: ../Doc/library/functions.rst:1514 msgid "" "There are two typical use cases for *super*. In a class hierarchy with " "single inheritance, *super* can be used to refer to parent classes without " @@ -2729,7 +2737,7 @@ msgstr "" "maintenable. Cet usage se rapproche de l'usage de *super* dans d'autres " "langages de programmation." -#: ../Doc/library/functions.rst:1514 +#: ../Doc/library/functions.rst:1519 msgid "" "The second use case is to support cooperative multiple inheritance in a " "dynamic execution environment. This use case is unique to Python and is not " @@ -2752,12 +2760,12 @@ msgstr "" "changements dans la hiérarchie, et parce que l'ordre peut inclure des " "classes sœurs inconnues avant l'exécution)." -#: ../Doc/library/functions.rst:1524 +#: ../Doc/library/functions.rst:1529 msgid "For both use cases, a typical superclass call looks like this::" msgstr "" "Dans tous les cas, un appel typique à une classe parente ressemble à : ::" -#: ../Doc/library/functions.rst:1531 +#: ../Doc/library/functions.rst:1536 msgid "" "Note that :func:`super` is implemented as part of the binding process for " "explicit dotted attribute lookups such as ``super().__getitem__(name)``. It " @@ -2774,7 +2782,7 @@ msgstr "" "n'est pas défini pour les recherches implicites via des instructions ou des " "opérateurs tel que ``super()[name]``." -#: ../Doc/library/functions.rst:1538 +#: ../Doc/library/functions.rst:1543 msgid "" "Also note that, aside from the zero argument form, :func:`super` is not " "limited to use inside methods. The two argument form specifies the " @@ -2791,7 +2799,7 @@ msgstr "" "propos de la classe en cours de définition, ainsi qu'accéder à l'instance " "courante pour les méthodes ordinaires." -#: ../Doc/library/functions.rst:1545 +#: ../Doc/library/functions.rst:1550 msgid "" "For practical suggestions on how to design cooperative classes using :func:" "`super`, see `guide to using super() `_." -#: ../Doc/library/functions.rst:1554 +#: ../Doc/library/functions.rst:1559 msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." @@ -2809,7 +2817,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`tuple` est en fait un type de séquence " "immuable, tel que documenté dans :ref:`typesseq-tuple` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1563 +#: ../Doc/library/functions.rst:1568 msgid "" "With one argument, return the type of an *object*. The return value is a " "type object and generally the same object as returned by :attr:`object." @@ -2819,7 +2827,7 @@ msgstr "" "type et généralement la même que la valeur de l'attribut :attr:`object." "__class__ `." -#: ../Doc/library/functions.rst:1567 +#: ../Doc/library/functions.rst:1572 msgid "" "The :func:`isinstance` built-in function is recommended for testing the type " "of an object, because it takes subclasses into account." @@ -2827,7 +2835,7 @@ msgstr "" "La fonction native :func:`isinstance` est recommandée pour tester le type " "d'un objet car elle prend en compte l'héritage." -#: ../Doc/library/functions.rst:1571 +#: ../Doc/library/functions.rst:1576 msgid "" "With three arguments, return a new type object. This is essentially a " "dynamic form of the :keyword:`class` statement. The *name* string is the " @@ -2848,11 +2856,11 @@ msgstr "" "exemple, les deux instructions suivantes créent deux instances identiques " "de :class:`type`." -#: ../Doc/library/functions.rst:1585 +#: ../Doc/library/functions.rst:1590 msgid "See also :ref:`bltin-type-objects`." msgstr "Voir aussi :ref:`bltin-type-objects`." -#: ../Doc/library/functions.rst:1587 +#: ../Doc/library/functions.rst:1592 msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." @@ -2861,7 +2869,7 @@ msgstr "" "ne devraient plus utiliser la forme à un argument pour récupérer le type " "d'un objet." -#: ../Doc/library/functions.rst:1593 +#: ../Doc/library/functions.rst:1598 msgid "" "Return the :attr:`~object.__dict__` attribute for a module, class, instance, " "or any other object with a :attr:`~object.__dict__` attribute." @@ -2870,7 +2878,7 @@ msgstr "" "instance ou de n'importe quel objet avec un attribut :attr:`~object." "__dict__`." -#: ../Doc/library/functions.rst:1596 +#: ../Doc/library/functions.rst:1601 msgid "" "Objects such as modules and instances have an updateable :attr:`~object." "__dict__` attribute; however, other objects may have write restrictions on " @@ -2883,7 +2891,7 @@ msgstr "" "exemple, les classes utilisent un :class:`types.MappingProxyType` pour " "éviter les modifications directes du dictionnaire)." -#: ../Doc/library/functions.rst:1601 +#: ../Doc/library/functions.rst:1606 msgid "" "Without an argument, :func:`vars` acts like :func:`locals`. Note, the " "locals dictionary is only useful for reads since updates to the locals " @@ -2893,11 +2901,11 @@ msgstr "" "dictionnaire des variables locales n'est utile qu'en lecture, car ses " "écritures sont ignorées." -#: ../Doc/library/functions.rst:1608 +#: ../Doc/library/functions.rst:1613 msgid "Make an iterator that aggregates elements from each of the iterables." msgstr "Construit un itérateur agrégeant les éléments de tous les itérables." -#: ../Doc/library/functions.rst:1610 +#: ../Doc/library/functions.rst:1615 msgid "" "Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th " "element from each of the argument sequences or iterables. The iterator " @@ -2911,7 +2919,7 @@ msgstr "" "itérable, elle donne un itérateur sur des *tuples* d'un élément. Sans " "arguments, elle donne un itérateur vide. Équivalent à : ::" -#: ../Doc/library/functions.rst:1629 +#: ../Doc/library/functions.rst:1634 msgid "" "The left-to-right evaluation order of the iterables is guaranteed. This " "makes possible an idiom for clustering a data series into n-length groups " @@ -2925,7 +2933,7 @@ msgstr "" "que le tuple obtenu contient le résultat de ``n`` appels à l'itérateur. Cela " "a pour effet de diviser la séquence en morceaux de taille *n*." -#: ../Doc/library/functions.rst:1635 +#: ../Doc/library/functions.rst:1640 msgid "" ":func:`zip` should only be used with unequal length inputs when you don't " "care about trailing, unmatched values from the longer iterables. If those " @@ -2936,7 +2944,7 @@ msgstr "" "peuvent être ignorées. Si c'est valeurs sont importantes, utilisez plutôt :" "func:`itertools.zip_longest`." -#: ../Doc/library/functions.rst:1639 +#: ../Doc/library/functions.rst:1644 msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" @@ -2944,7 +2952,7 @@ msgstr "" ":func:`zip` peut être utilisée conjointement avec l'opérateur ``*`` pour " "dézipper une liste : ::" -#: ../Doc/library/functions.rst:1660 +#: ../Doc/library/functions.rst:1665 msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." @@ -2952,7 +2960,7 @@ msgstr "" "C'est une fonction avancée qui n'est pas fréquemment nécessaire, " "contrairement à :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1663 +#: ../Doc/library/functions.rst:1668 msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " @@ -2972,7 +2980,7 @@ msgstr "" "trouver l'implémentation par défaut. L'usage direct de :func:`__import__` " "est aussi déconseillé en faveur de :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1672 +#: ../Doc/library/functions.rst:1677 msgid "" "The function imports the module *name*, potentially using the given " "*globals* and *locals* to determine how to interpret the name in a package " @@ -2988,7 +2996,7 @@ msgstr "" "l'argument *locals* et n'utilise *globals* que pour déterminer le contexte " "du paquet de l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1679 +#: ../Doc/library/functions.rst:1684 msgid "" "*level* specifies whether to use absolute or relative imports. ``0`` (the " "default) means only perform absolute imports. Positive values for *level* " @@ -3001,7 +3009,7 @@ msgstr "" "le nombre de dossiers parents relativement au dossier du module appelant :" "func:`__import__` (voir la :pep:`328`)." -#: ../Doc/library/functions.rst:1685 +#: ../Doc/library/functions.rst:1690 msgid "" "When the *name* variable is of the form ``package.module``, normally, the " "top-level package (the name up till the first dot) is returned, *not* the " @@ -3013,7 +3021,7 @@ msgstr "" "le module nommé par *name*. Cependant, lorsqu'un argument *fromlist* est " "fourni, le module nommé par *name* est donné." -#: ../Doc/library/functions.rst:1690 +#: ../Doc/library/functions.rst:1695 msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" @@ -3021,11 +3029,11 @@ msgstr "" "Par exemple, l'instruction ``import spam`` donne un code intermédiaire " "(*bytecode* en anglais) ressemblant au code suivant : ::" -#: ../Doc/library/functions.rst:1695 +#: ../Doc/library/functions.rst:1700 msgid "The statement ``import spam.ham`` results in this call::" msgstr "L'instruction ``import ham.ham`` appelle : ::" -#: ../Doc/library/functions.rst:1699 +#: ../Doc/library/functions.rst:1704 msgid "" "Note how :func:`__import__` returns the toplevel module here because this is " "the object that is bound to a name by the :keyword:`import` statement." @@ -3033,7 +3041,7 @@ msgstr "" "Notez comment :func:`__import__` donne le module le plus haut ici parce que " "c'est l'objet lié à un nom par l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1702 +#: ../Doc/library/functions.rst:1707 msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" @@ -3041,7 +3049,7 @@ msgstr "" "En revanche, l'instruction ``from spam.ham import eggs, saucage as saus`` " "donne : ::" -#: ../Doc/library/functions.rst:1709 +#: ../Doc/library/functions.rst:1714 msgid "" "Here, the ``spam.ham`` module is returned from :func:`__import__`. From " "this object, the names to import are retrieved and assigned to their " @@ -3050,7 +3058,7 @@ msgstr "" "Ici le module ``spam.ham`` est donné par :func:`__import__`. De cet objet, " "les noms à importer sont récupérés et assignés à leurs noms respectifs." -#: ../Doc/library/functions.rst:1713 +#: ../Doc/library/functions.rst:1718 msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." @@ -3058,7 +3066,7 @@ msgstr "" "Si vous voulez simplement importer un module (potentiellement dans un " "paquet) par son nom, utilisez :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1716 +#: ../Doc/library/functions.rst:1721 msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." @@ -3066,11 +3074,11 @@ msgstr "" "Des valeurs négatives pour *level* ne sont plus gérées (ce qui change la " "valeur par défaut pour 0)." -#: ../Doc/library/functions.rst:1722 +#: ../Doc/library/functions.rst:1727 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/functions.rst:1723 +#: ../Doc/library/functions.rst:1728 msgid "" "Note that the parser only accepts the Unix-style end of line convention. If " "you are reading the code from a file, make sure to use newline conversion " diff --git a/library/inspect.po b/library/inspect.po index 289f4c848..d4874c55c 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2017-05-27 19:55+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -808,26 +808,33 @@ msgstr "" #: ../Doc/library/inspect.rst:562 msgid "" +"A slash(/) in the signature of a function denotes that the parameters prior " +"to it are positional-only. For more info, see :ref:`the FAQ entry on " +"positional-only parameters `." +msgstr "" + +#: ../Doc/library/inspect.rst:566 +msgid "" "``follow_wrapped`` parameter. Pass ``False`` to get a signature of " "``callable`` specifically (``callable.__wrapped__`` will not be used to " "unwrap decorated callables.)" msgstr "" -#: ../Doc/library/inspect.rst:569 +#: ../Doc/library/inspect.rst:573 msgid "" "Some callables may not be introspectable in certain implementations of " "Python. For example, in CPython, some built-in functions defined in C " "provide no metadata about their arguments." msgstr "" -#: ../Doc/library/inspect.rst:576 +#: ../Doc/library/inspect.rst:580 msgid "" "A Signature object represents the call signature of a function and its " "return annotation. For each parameter accepted by the function it stores a :" "class:`Parameter` object in its :attr:`parameters` collection." msgstr "" -#: ../Doc/library/inspect.rst:580 +#: ../Doc/library/inspect.rst:584 msgid "" "The optional *parameters* argument is a sequence of :class:`Parameter` " "objects, which is validated to check that there are no parameters with " @@ -836,54 +843,54 @@ msgid "" "defaults follow parameters without defaults." msgstr "" -#: ../Doc/library/inspect.rst:586 +#: ../Doc/library/inspect.rst:590 msgid "" "The optional *return_annotation* argument, can be an arbitrary Python " "object, is the \"return\" annotation of the callable." msgstr "" -#: ../Doc/library/inspect.rst:589 +#: ../Doc/library/inspect.rst:593 msgid "" "Signature objects are *immutable*. Use :meth:`Signature.replace` to make a " "modified copy." msgstr "" -#: ../Doc/library/inspect.rst:592 +#: ../Doc/library/inspect.rst:596 msgid "Signature objects are picklable and hashable." msgstr "" -#: ../Doc/library/inspect.rst:597 +#: ../Doc/library/inspect.rst:601 msgid "A special class-level marker to specify absence of a return annotation." msgstr "" -#: ../Doc/library/inspect.rst:601 +#: ../Doc/library/inspect.rst:605 msgid "" "An ordered mapping of parameters' names to the corresponding :class:" "`Parameter` objects. Parameters appear in strict definition order, " "including keyword-only parameters." msgstr "" -#: ../Doc/library/inspect.rst:605 ../Doc/library/inspect.rst:927 +#: ../Doc/library/inspect.rst:609 ../Doc/library/inspect.rst:931 msgid "" "Python only explicitly guaranteed that it preserved the declaration order of " "keyword-only parameters as of version 3.7, although in practice this order " "had always been preserved in Python 3." msgstr "" -#: ../Doc/library/inspect.rst:612 +#: ../Doc/library/inspect.rst:616 msgid "" "The \"return\" annotation for the callable. If the callable has no \"return" "\" annotation, this attribute is set to :attr:`Signature.empty`." msgstr "" -#: ../Doc/library/inspect.rst:617 +#: ../Doc/library/inspect.rst:621 msgid "" "Create a mapping from positional and keyword arguments to parameters. " "Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the " "signature, or raises a :exc:`TypeError`." msgstr "" -#: ../Doc/library/inspect.rst:623 +#: ../Doc/library/inspect.rst:627 msgid "" "Works the same way as :meth:`Signature.bind`, but allows the omission of " "some required arguments (mimics :func:`functools.partial` behavior.) " @@ -891,7 +898,7 @@ msgid "" "arguments do not match the signature." msgstr "" -#: ../Doc/library/inspect.rst:630 +#: ../Doc/library/inspect.rst:634 msgid "" "Create a new Signature instance based on the instance replace was invoked " "on. It is possible to pass different ``parameters`` and/or " @@ -900,137 +907,137 @@ msgid "" "attr:`Signature.empty`." msgstr "" -#: ../Doc/library/inspect.rst:647 +#: ../Doc/library/inspect.rst:651 msgid "" "Return a :class:`Signature` (or its subclass) object for a given callable " "``obj``. Pass ``follow_wrapped=False`` to get a signature of ``obj`` " "without unwrapping its ``__wrapped__`` chain." msgstr "" -#: ../Doc/library/inspect.rst:651 +#: ../Doc/library/inspect.rst:655 msgid "This method simplifies subclassing of :class:`Signature`::" msgstr "" -#: ../Doc/library/inspect.rst:663 +#: ../Doc/library/inspect.rst:667 msgid "" "Parameter objects are *immutable*. Instead of modifying a Parameter object, " "you can use :meth:`Parameter.replace` to create a modified copy." msgstr "" -#: ../Doc/library/inspect.rst:666 +#: ../Doc/library/inspect.rst:670 msgid "Parameter objects are picklable and hashable." msgstr "" -#: ../Doc/library/inspect.rst:671 +#: ../Doc/library/inspect.rst:675 msgid "" "A special class-level marker to specify absence of default values and " "annotations." msgstr "" -#: ../Doc/library/inspect.rst:676 +#: ../Doc/library/inspect.rst:680 msgid "" "The name of the parameter as a string. The name must be a valid Python " "identifier." msgstr "" -#: ../Doc/library/inspect.rst:681 +#: ../Doc/library/inspect.rst:685 msgid "" "CPython generates implicit parameter names of the form ``.0`` on the code " "objects used to implement comprehensions and generator expressions." msgstr "" -#: ../Doc/library/inspect.rst:685 +#: ../Doc/library/inspect.rst:689 msgid "" "These parameter names are exposed by this module as names like ``implicit0``." msgstr "" -#: ../Doc/library/inspect.rst:691 +#: ../Doc/library/inspect.rst:695 msgid "" "The default value for the parameter. If the parameter has no default value, " "this attribute is set to :attr:`Parameter.empty`." msgstr "" -#: ../Doc/library/inspect.rst:696 +#: ../Doc/library/inspect.rst:700 msgid "" "The annotation for the parameter. If the parameter has no annotation, this " "attribute is set to :attr:`Parameter.empty`." msgstr "" -#: ../Doc/library/inspect.rst:701 +#: ../Doc/library/inspect.rst:705 msgid "" "Describes how argument values are bound to the parameter. Possible values " "(accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``):" msgstr "" -#: ../Doc/library/inspect.rst:707 +#: ../Doc/library/inspect.rst:711 msgid "Name" msgstr "Nom" -#: ../Doc/library/inspect.rst:707 +#: ../Doc/library/inspect.rst:711 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/inspect.rst:709 +#: ../Doc/library/inspect.rst:713 msgid "*POSITIONAL_ONLY*" msgstr "" -#: ../Doc/library/inspect.rst:709 +#: ../Doc/library/inspect.rst:713 msgid "Value must be supplied as a positional argument." msgstr "" -#: ../Doc/library/inspect.rst:712 +#: ../Doc/library/inspect.rst:716 msgid "" "Python has no explicit syntax for defining positional-only parameters, but " "many built-in and extension module functions (especially those that accept " "only one or two parameters) accept them." msgstr "" -#: ../Doc/library/inspect.rst:718 +#: ../Doc/library/inspect.rst:722 msgid "*POSITIONAL_OR_KEYWORD*" msgstr "" -#: ../Doc/library/inspect.rst:718 +#: ../Doc/library/inspect.rst:722 msgid "" "Value may be supplied as either a keyword or positional argument (this is " "the standard binding behaviour for functions implemented in Python.)" msgstr "" -#: ../Doc/library/inspect.rst:723 +#: ../Doc/library/inspect.rst:727 msgid "*VAR_POSITIONAL*" msgstr "" -#: ../Doc/library/inspect.rst:723 +#: ../Doc/library/inspect.rst:727 msgid "" "A tuple of positional arguments that aren't bound to any other parameter. " "This corresponds to a ``*args`` parameter in a Python function definition." msgstr "" -#: ../Doc/library/inspect.rst:728 +#: ../Doc/library/inspect.rst:732 msgid "*KEYWORD_ONLY*" msgstr "" -#: ../Doc/library/inspect.rst:728 +#: ../Doc/library/inspect.rst:732 msgid "" "Value must be supplied as a keyword argument. Keyword only parameters are " "those which appear after a ``*`` or ``*args`` entry in a Python function " "definition." msgstr "" -#: ../Doc/library/inspect.rst:733 +#: ../Doc/library/inspect.rst:737 msgid "*VAR_KEYWORD*" msgstr "" -#: ../Doc/library/inspect.rst:733 +#: ../Doc/library/inspect.rst:737 msgid "" "A dict of keyword arguments that aren't bound to any other parameter. This " "corresponds to a ``**kwargs`` parameter in a Python function definition." msgstr "" -#: ../Doc/library/inspect.rst:739 +#: ../Doc/library/inspect.rst:743 msgid "Example: print all keyword-only arguments without default values::" msgstr "" -#: ../Doc/library/inspect.rst:753 +#: ../Doc/library/inspect.rst:757 msgid "" "Create a new Parameter instance based on the instance replaced was invoked " "on. To override a :class:`Parameter` attribute, pass the corresponding " @@ -1038,20 +1045,20 @@ msgid "" "pass :attr:`Parameter.empty`." msgstr "" -#: ../Doc/library/inspect.rst:771 +#: ../Doc/library/inspect.rst:775 msgid "" "In Python 3.3 Parameter objects were allowed to have ``name`` set to " "``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer " "permitted." msgstr "" -#: ../Doc/library/inspect.rst:778 +#: ../Doc/library/inspect.rst:782 msgid "" "Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call. " "Holds the mapping of arguments to the function's parameters." msgstr "" -#: ../Doc/library/inspect.rst:783 +#: ../Doc/library/inspect.rst:787 msgid "" "An ordered, mutable mapping (:class:`collections.OrderedDict`) of " "parameters' names to arguments' values. Contains only explicitly bound " @@ -1059,68 +1066,68 @@ msgid "" "attr:`kwargs`." msgstr "" -#: ../Doc/library/inspect.rst:788 +#: ../Doc/library/inspect.rst:792 msgid "" "Should be used in conjunction with :attr:`Signature.parameters` for any " "argument processing purposes." msgstr "" -#: ../Doc/library/inspect.rst:793 +#: ../Doc/library/inspect.rst:797 msgid "" "Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial` " "relied on a default value are skipped. However, if needed, use :meth:" "`BoundArguments.apply_defaults` to add them." msgstr "" -#: ../Doc/library/inspect.rst:800 +#: ../Doc/library/inspect.rst:804 msgid "" "A tuple of positional arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" -#: ../Doc/library/inspect.rst:805 +#: ../Doc/library/inspect.rst:809 msgid "" "A dict of keyword arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" -#: ../Doc/library/inspect.rst:810 +#: ../Doc/library/inspect.rst:814 msgid "A reference to the parent :class:`Signature` object." msgstr "" -#: ../Doc/library/inspect.rst:814 +#: ../Doc/library/inspect.rst:818 msgid "Set default values for missing arguments." msgstr "" -#: ../Doc/library/inspect.rst:816 +#: ../Doc/library/inspect.rst:820 msgid "" "For variable-positional arguments (``*args``) the default is an empty tuple." msgstr "" -#: ../Doc/library/inspect.rst:819 +#: ../Doc/library/inspect.rst:823 msgid "" "For variable-keyword arguments (``**kwargs``) the default is an empty dict." msgstr "" -#: ../Doc/library/inspect.rst:832 +#: ../Doc/library/inspect.rst:836 msgid "" "The :attr:`args` and :attr:`kwargs` properties can be used to invoke " "functions::" msgstr "" -#: ../Doc/library/inspect.rst:845 +#: ../Doc/library/inspect.rst:849 msgid ":pep:`362` - Function Signature Object." msgstr "" -#: ../Doc/library/inspect.rst:846 +#: ../Doc/library/inspect.rst:850 msgid "The detailed specification, implementation details and examples." msgstr "" -#: ../Doc/library/inspect.rst:852 +#: ../Doc/library/inspect.rst:856 msgid "Classes and functions" msgstr "Classes et fonctions" -#: ../Doc/library/inspect.rst:856 +#: ../Doc/library/inspect.rst:860 msgid "" "Arrange the given list of classes into a hierarchy of nested lists. Where a " "nested list appears, it contains classes derived from the class whose entry " @@ -1131,7 +1138,7 @@ msgid "" "will appear multiple times." msgstr "" -#: ../Doc/library/inspect.rst:867 +#: ../Doc/library/inspect.rst:871 msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` ``ArgSpec(args, varargs, keywords, defaults)`` is returned. " @@ -1142,33 +1149,33 @@ msgid "" "in *args*." msgstr "" -#: ../Doc/library/inspect.rst:875 +#: ../Doc/library/inspect.rst:879 msgid "" "Use :func:`getfullargspec` for an updated API that is usually a drop-in " "replacement, but also correctly handles function annotations and keyword-" "only parameters." msgstr "" -#: ../Doc/library/inspect.rst:880 +#: ../Doc/library/inspect.rst:884 msgid "" "Alternatively, use :func:`signature` and :ref:`Signature Object `, which provide a more structured introspection API for " "callables." msgstr "" -#: ../Doc/library/inspect.rst:887 +#: ../Doc/library/inspect.rst:891 msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` is returned:" msgstr "" -#: ../Doc/library/inspect.rst:890 +#: ../Doc/library/inspect.rst:894 msgid "" "``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, " "annotations)``" msgstr "" -#: ../Doc/library/inspect.rst:893 +#: ../Doc/library/inspect.rst:897 msgid "" "*args* is a list of the positional parameter names. *varargs* is the name of " "the ``*`` parameter or ``None`` if arbitrary positional arguments are not " @@ -1183,7 +1190,7 @@ msgid "" "report the function return value annotation (if any)." msgstr "" -#: ../Doc/library/inspect.rst:908 +#: ../Doc/library/inspect.rst:912 msgid "" "Note that :func:`signature` and :ref:`Signature Object ` provide the recommended API for callable introspection, and support " @@ -1193,14 +1200,14 @@ msgid "" "``inspect`` module API." msgstr "" -#: ../Doc/library/inspect.rst:915 +#: ../Doc/library/inspect.rst:919 msgid "" "This function is now based on :func:`signature`, but still ignores " "``__wrapped__`` attributes and includes the already bound first parameter in " "the signature output for bound methods." msgstr "" -#: ../Doc/library/inspect.rst:920 +#: ../Doc/library/inspect.rst:924 msgid "" "This method was previously documented as deprecated in favour of :func:" "`signature` in Python 3.5, but that decision has been reversed in order to " @@ -1208,7 +1215,7 @@ msgid "" "code migrating away from the legacy :func:`getargspec` API." msgstr "" -#: ../Doc/library/inspect.rst:935 +#: ../Doc/library/inspect.rst:939 msgid "" "Get information about arguments passed into a particular frame. A :term:" "`named tuple` ``ArgInfo(args, varargs, keywords, locals)`` is returned. " @@ -1217,47 +1224,47 @@ msgid "" "dictionary of the given frame." msgstr "" -#: ../Doc/library/inspect.rst:942 ../Doc/library/inspect.rst:979 +#: ../Doc/library/inspect.rst:946 ../Doc/library/inspect.rst:983 msgid "This function was inadvertently marked as deprecated in Python 3.5." msgstr "" -#: ../Doc/library/inspect.rst:947 +#: ../Doc/library/inspect.rst:951 msgid "" "Format a pretty argument spec from the values returned by :func:" "`getfullargspec`." msgstr "" -#: ../Doc/library/inspect.rst:950 +#: ../Doc/library/inspect.rst:954 msgid "" "The first seven arguments are (``args``, ``varargs``, ``varkw``, " "``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``)." msgstr "" -#: ../Doc/library/inspect.rst:953 +#: ../Doc/library/inspect.rst:957 msgid "" "The other six arguments are functions that are called to turn argument " "names, ``*`` argument name, ``**`` argument name, default values, return " "annotation and individual annotations into strings, respectively." msgstr "" -#: ../Doc/library/inspect.rst:957 +#: ../Doc/library/inspect.rst:961 msgid "For example:" msgstr "Par exemple :" -#: ../Doc/library/inspect.rst:966 +#: ../Doc/library/inspect.rst:970 msgid "" "Use :func:`signature` and :ref:`Signature Object `, which provide a better introspecting API for callables." msgstr "" -#: ../Doc/library/inspect.rst:974 +#: ../Doc/library/inspect.rst:978 msgid "" "Format a pretty argument spec from the four values returned by :func:" "`getargvalues`. The format\\* arguments are the corresponding optional " "formatting functions that are called to turn names and values into strings." msgstr "" -#: ../Doc/library/inspect.rst:984 +#: ../Doc/library/inspect.rst:988 msgid "" "Return a tuple of class cls's base classes, including cls, in method " "resolution order. No class appears more than once in this tuple. Note that " @@ -1265,7 +1272,7 @@ msgid "" "user-defined metatype is in use, cls will be the first element of the tuple." msgstr "" -#: ../Doc/library/inspect.rst:992 +#: ../Doc/library/inspect.rst:996 msgid "" "Bind the *args* and *kwds* to the argument names of the Python function or " "method *func*, as if it was called with them. For bound methods, bind also " @@ -1278,11 +1285,11 @@ msgid "" "example::" msgstr "" -#: ../Doc/library/inspect.rst:1015 +#: ../Doc/library/inspect.rst:1019 msgid "Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead." msgstr "" -#: ../Doc/library/inspect.rst:1021 +#: ../Doc/library/inspect.rst:1025 msgid "" "Get the mapping of external name references in a Python function or method " "*func* to their current values. A :term:`named tuple` " @@ -1294,18 +1301,18 @@ msgid "" "builtins." msgstr "" -#: ../Doc/library/inspect.rst:1030 +#: ../Doc/library/inspect.rst:1034 msgid "" ":exc:`TypeError` is raised if *func* is not a Python function or method." msgstr "" -#: ../Doc/library/inspect.rst:1037 +#: ../Doc/library/inspect.rst:1041 msgid "" "Get the object wrapped by *func*. It follows the chain of :attr:" "`__wrapped__` attributes returning the last object in the chain." msgstr "" -#: ../Doc/library/inspect.rst:1040 +#: ../Doc/library/inspect.rst:1044 msgid "" "*stop* is an optional callback accepting an object in the wrapper chain as " "its sole argument that allows the unwrapping to be terminated early if the " @@ -1315,15 +1322,15 @@ msgid "" "``__signature__`` attribute defined." msgstr "" -#: ../Doc/library/inspect.rst:1047 +#: ../Doc/library/inspect.rst:1051 msgid ":exc:`ValueError` is raised if a cycle is encountered." msgstr "" -#: ../Doc/library/inspect.rst:1055 +#: ../Doc/library/inspect.rst:1059 msgid "The interpreter stack" msgstr "" -#: ../Doc/library/inspect.rst:1057 +#: ../Doc/library/inspect.rst:1061 msgid "" "When the following functions return \"frame records,\" each record is a :" "term:`named tuple` ``FrameInfo(frame, filename, lineno, function, " @@ -1333,11 +1340,11 @@ msgid "" "list." msgstr "" -#: ../Doc/library/inspect.rst:1065 +#: ../Doc/library/inspect.rst:1069 msgid "Return a named tuple instead of a tuple." msgstr "" -#: ../Doc/library/inspect.rst:1070 +#: ../Doc/library/inspect.rst:1074 msgid "" "Keeping references to frame objects, as found in the first element of the " "frame records these functions return, can cause your program to create " @@ -1349,7 +1356,7 @@ msgid "" "consumption which occurs." msgstr "" -#: ../Doc/library/inspect.rst:1078 +#: ../Doc/library/inspect.rst:1082 msgid "" "Though the cycle detector will catch these, destruction of the frames (and " "local variables) can be made deterministic by removing the cycle in a :" @@ -1357,27 +1364,27 @@ msgid "" "disabled when Python was compiled or using :func:`gc.disable`. For example::" msgstr "" -#: ../Doc/library/inspect.rst:1090 +#: ../Doc/library/inspect.rst:1094 msgid "" "If you want to keep the frame around (for example to print a traceback " "later), you can also break reference cycles by using the :meth:`frame.clear` " "method." msgstr "" -#: ../Doc/library/inspect.rst:1094 +#: ../Doc/library/inspect.rst:1098 msgid "" "The optional *context* argument supported by most of these functions " "specifies the number of lines of context to return, which are centered " "around the current line." msgstr "" -#: ../Doc/library/inspect.rst:1101 +#: ../Doc/library/inspect.rst:1105 msgid "" "Get information about a frame or traceback object. A :term:`named tuple` " "``Traceback(filename, lineno, function, code_context, index)`` is returned." msgstr "" -#: ../Doc/library/inspect.rst:1107 +#: ../Doc/library/inspect.rst:1111 msgid "" "Get a list of frame records for a frame and all outer frames. These frames " "represent the calls that lead to the creation of *frame*. The first entry in " @@ -1385,14 +1392,14 @@ msgid "" "outermost call on *frame*'s stack." msgstr "" -#: ../Doc/library/inspect.rst:1112 ../Doc/library/inspect.rst:1125 -#: ../Doc/library/inspect.rst:1149 ../Doc/library/inspect.rst:1162 +#: ../Doc/library/inspect.rst:1116 ../Doc/library/inspect.rst:1129 +#: ../Doc/library/inspect.rst:1153 ../Doc/library/inspect.rst:1166 msgid "" "A list of :term:`named tuples ` ``FrameInfo(frame, filename, " "lineno, function, code_context, index)`` is returned." msgstr "" -#: ../Doc/library/inspect.rst:1120 +#: ../Doc/library/inspect.rst:1124 msgid "" "Get a list of frame records for a traceback's frame and all inner frames. " "These frames represent calls made as a consequence of *frame*. The first " @@ -1400,11 +1407,11 @@ msgid "" "the exception was raised." msgstr "" -#: ../Doc/library/inspect.rst:1133 +#: ../Doc/library/inspect.rst:1137 msgid "Return the frame object for the caller's stack frame." msgstr "" -#: ../Doc/library/inspect.rst:1137 +#: ../Doc/library/inspect.rst:1141 msgid "" "This function relies on Python stack frame support in the interpreter, which " "isn't guaranteed to exist in all implementations of Python. If running in " @@ -1412,14 +1419,14 @@ msgid "" "``None``." msgstr "" -#: ../Doc/library/inspect.rst:1145 +#: ../Doc/library/inspect.rst:1149 msgid "" "Return a list of frame records for the caller's stack. The first entry in " "the returned list represents the caller; the last entry represents the " "outermost call on the stack." msgstr "" -#: ../Doc/library/inspect.rst:1157 +#: ../Doc/library/inspect.rst:1161 msgid "" "Return a list of frame records for the stack between the current frame and " "the frame in which an exception currently being handled was raised in. The " @@ -1427,11 +1434,11 @@ msgid "" "where the exception was raised." msgstr "" -#: ../Doc/library/inspect.rst:1169 +#: ../Doc/library/inspect.rst:1173 msgid "Fetching attributes statically" msgstr "" -#: ../Doc/library/inspect.rst:1171 +#: ../Doc/library/inspect.rst:1175 msgid "" "Both :func:`getattr` and :func:`hasattr` can trigger code execution when " "fetching or checking for the existence of attributes. Descriptors, like " @@ -1439,20 +1446,20 @@ msgid "" "`__getattribute__` may be called." msgstr "" -#: ../Doc/library/inspect.rst:1176 +#: ../Doc/library/inspect.rst:1180 msgid "" "For cases where you want passive introspection, like documentation tools, " "this can be inconvenient. :func:`getattr_static` has the same signature as :" "func:`getattr` but avoids executing code when it fetches attributes." msgstr "" -#: ../Doc/library/inspect.rst:1182 +#: ../Doc/library/inspect.rst:1186 msgid "" "Retrieve attributes without triggering dynamic lookup via the descriptor " "protocol, :meth:`__getattr__` or :meth:`__getattribute__`." msgstr "" -#: ../Doc/library/inspect.rst:1185 +#: ../Doc/library/inspect.rst:1189 msgid "" "Note: this function may not be able to retrieve all attributes that getattr " "can fetch (like dynamically created attributes) and may find attributes that " @@ -1460,31 +1467,31 @@ msgid "" "return descriptors objects instead of instance members." msgstr "" -#: ../Doc/library/inspect.rst:1191 +#: ../Doc/library/inspect.rst:1195 msgid "" "If the instance :attr:`~object.__dict__` is shadowed by another member (for " "example a property) then this function will be unable to find instance " "members." msgstr "" -#: ../Doc/library/inspect.rst:1197 +#: ../Doc/library/inspect.rst:1201 msgid "" ":func:`getattr_static` does not resolve descriptors, for example slot " "descriptors or getset descriptors on objects implemented in C. The " "descriptor object is returned instead of the underlying attribute." msgstr "" -#: ../Doc/library/inspect.rst:1201 +#: ../Doc/library/inspect.rst:1205 msgid "" "You can handle these with code like the following. Note that for arbitrary " "getset descriptors invoking these may trigger code execution::" msgstr "" -#: ../Doc/library/inspect.rst:1227 +#: ../Doc/library/inspect.rst:1231 msgid "Current State of Generators and Coroutines" msgstr "" -#: ../Doc/library/inspect.rst:1229 +#: ../Doc/library/inspect.rst:1233 msgid "" "When implementing coroutine schedulers and for other advanced uses of " "generators, it is useful to determine whether a generator is currently " @@ -1493,31 +1500,31 @@ msgid "" "generator to be determined easily." msgstr "" -#: ../Doc/library/inspect.rst:1237 +#: ../Doc/library/inspect.rst:1241 msgid "Get current state of a generator-iterator." msgstr "" -#: ../Doc/library/inspect.rst:1243 ../Doc/library/inspect.rst:1258 +#: ../Doc/library/inspect.rst:1247 ../Doc/library/inspect.rst:1262 msgid "Possible states are:" msgstr "" -#: ../Doc/library/inspect.rst:1240 +#: ../Doc/library/inspect.rst:1244 msgid "GEN_CREATED: Waiting to start execution." msgstr "" -#: ../Doc/library/inspect.rst:1241 +#: ../Doc/library/inspect.rst:1245 msgid "GEN_RUNNING: Currently being executed by the interpreter." msgstr "" -#: ../Doc/library/inspect.rst:1242 +#: ../Doc/library/inspect.rst:1246 msgid "GEN_SUSPENDED: Currently suspended at a yield expression." msgstr "" -#: ../Doc/library/inspect.rst:1243 +#: ../Doc/library/inspect.rst:1247 msgid "GEN_CLOSED: Execution has completed." msgstr "" -#: ../Doc/library/inspect.rst:1249 +#: ../Doc/library/inspect.rst:1253 msgid "" "Get current state of a coroutine object. The function is intended to be " "used with coroutine objects created by :keyword:`async def` functions, but " @@ -1525,30 +1532,30 @@ msgid "" "``cr_frame`` attributes." msgstr "" -#: ../Doc/library/inspect.rst:1255 +#: ../Doc/library/inspect.rst:1259 msgid "CORO_CREATED: Waiting to start execution." msgstr "" -#: ../Doc/library/inspect.rst:1256 +#: ../Doc/library/inspect.rst:1260 msgid "CORO_RUNNING: Currently being executed by the interpreter." msgstr "" -#: ../Doc/library/inspect.rst:1257 +#: ../Doc/library/inspect.rst:1261 msgid "CORO_SUSPENDED: Currently suspended at an await expression." msgstr "" -#: ../Doc/library/inspect.rst:1258 +#: ../Doc/library/inspect.rst:1262 msgid "CORO_CLOSED: Execution has completed." msgstr "" -#: ../Doc/library/inspect.rst:1262 +#: ../Doc/library/inspect.rst:1266 msgid "" "The current internal state of the generator can also be queried. This is " "mostly useful for testing purposes, to ensure that internal state is being " "updated as expected:" msgstr "" -#: ../Doc/library/inspect.rst:1268 +#: ../Doc/library/inspect.rst:1272 msgid "" "Get the mapping of live local variables in *generator* to their current " "values. A dictionary is returned that maps from variable names to values. " @@ -1556,14 +1563,14 @@ msgid "" "generator, and all the same caveats apply." msgstr "" -#: ../Doc/library/inspect.rst:1273 +#: ../Doc/library/inspect.rst:1277 msgid "" "If *generator* is a :term:`generator` with no currently associated frame, " "then an empty dictionary is returned. :exc:`TypeError` is raised if " "*generator* is not a Python generator object." msgstr "" -#: ../Doc/library/inspect.rst:1279 +#: ../Doc/library/inspect.rst:1283 msgid "" "This function relies on the generator exposing a Python stack frame for " "introspection, which isn't guaranteed to be the case in all implementations " @@ -1571,76 +1578,76 @@ msgid "" "dictionary." msgstr "" -#: ../Doc/library/inspect.rst:1288 +#: ../Doc/library/inspect.rst:1292 msgid "" "This function is analogous to :func:`~inspect.getgeneratorlocals`, but works " "for coroutine objects created by :keyword:`async def` functions." msgstr "" -#: ../Doc/library/inspect.rst:1297 +#: ../Doc/library/inspect.rst:1301 msgid "Code Objects Bit Flags" msgstr "" -#: ../Doc/library/inspect.rst:1299 +#: ../Doc/library/inspect.rst:1303 msgid "" "Python code objects have a ``co_flags`` attribute, which is a bitmap of the " "following flags:" msgstr "" -#: ../Doc/library/inspect.rst:1304 +#: ../Doc/library/inspect.rst:1308 msgid "The code object is optimized, using fast locals." msgstr "" -#: ../Doc/library/inspect.rst:1308 +#: ../Doc/library/inspect.rst:1312 msgid "" "If set, a new dict will be created for the frame's ``f_locals`` when the " "code object is executed." msgstr "" -#: ../Doc/library/inspect.rst:1313 +#: ../Doc/library/inspect.rst:1317 msgid "The code object has a variable positional parameter (``*args``-like)." msgstr "" -#: ../Doc/library/inspect.rst:1317 +#: ../Doc/library/inspect.rst:1321 msgid "The code object has a variable keyword parameter (``**kwargs``-like)." msgstr "" -#: ../Doc/library/inspect.rst:1321 +#: ../Doc/library/inspect.rst:1325 msgid "The flag is set when the code object is a nested function." msgstr "" -#: ../Doc/library/inspect.rst:1325 +#: ../Doc/library/inspect.rst:1329 msgid "" "The flag is set when the code object is a generator function, i.e. a " "generator object is returned when the code object is executed." msgstr "" -#: ../Doc/library/inspect.rst:1330 +#: ../Doc/library/inspect.rst:1334 msgid "The flag is set if there are no free or cell variables." msgstr "" -#: ../Doc/library/inspect.rst:1334 +#: ../Doc/library/inspect.rst:1338 msgid "" "The flag is set when the code object is a coroutine function. When the code " "object is executed it returns a coroutine object. See :pep:`492` for more " "details." msgstr "" -#: ../Doc/library/inspect.rst:1342 +#: ../Doc/library/inspect.rst:1346 msgid "" "The flag is used to transform generators into generator-based coroutines. " "Generator objects with this flag can be used in ``await`` expression, and " "can ``yield from`` coroutine objects. See :pep:`492` for more details." msgstr "" -#: ../Doc/library/inspect.rst:1351 +#: ../Doc/library/inspect.rst:1355 msgid "" "The flag is set when the code object is an asynchronous generator function. " "When the code object is executed it returns an asynchronous generator " "object. See :pep:`525` for more details." msgstr "" -#: ../Doc/library/inspect.rst:1358 +#: ../Doc/library/inspect.rst:1362 msgid "" "The flags are specific to CPython, and may not be defined in other Python " "implementations. Furthermore, the flags are an implementation detail, and " @@ -1648,24 +1655,24 @@ msgid "" "use public APIs from the :mod:`inspect` module for any introspection needs." msgstr "" -#: ../Doc/library/inspect.rst:1368 +#: ../Doc/library/inspect.rst:1372 msgid "Command Line Interface" msgstr "Interface en ligne de commande" -#: ../Doc/library/inspect.rst:1370 +#: ../Doc/library/inspect.rst:1374 msgid "" "The :mod:`inspect` module also provides a basic introspection capability " "from the command line." msgstr "" -#: ../Doc/library/inspect.rst:1375 +#: ../Doc/library/inspect.rst:1379 msgid "" "By default, accepts the name of a module and prints the source of that " "module. A class or function within the module can be printed instead by " "appended a colon and the qualified name of the target object." msgstr "" -#: ../Doc/library/inspect.rst:1381 +#: ../Doc/library/inspect.rst:1385 msgid "" "Print information about the specified object rather than the source code" msgstr "" diff --git a/library/ssl.po b/library/ssl.po index 8718b0d0f..ff3eacf05 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2018-11-29 18:27+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -605,7 +605,7 @@ msgid "" "does not send any for client cert authentication." msgstr "" -#: ../Doc/library/ssl.rst:552 ../Doc/library/ssl.rst:2268 +#: ../Doc/library/ssl.rst:552 ../Doc/library/ssl.rst:2272 msgid "See the discussion of :ref:`ssl-security` below." msgstr "" @@ -1431,7 +1431,7 @@ msgid "" "`SSLError` is raised." msgstr "" -#: ../Doc/library/ssl.rst:1334 +#: ../Doc/library/ssl.rst:1332 msgid "" "Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 " "support, the method raises :exc:`NotImplementedError`." @@ -2126,37 +2126,37 @@ msgid "" "`TLSVersion.TLSv1_2` will not be able to establish a TLS 1.2 connection." msgstr "" -#: ../Doc/library/ssl.rst:1922 ../Doc/library/ssl.rst:1932 +#: ../Doc/library/ssl.rst:1922 ../Doc/library/ssl.rst:1934 msgid "" "This attribute is not available unless the ssl module is compiled with " "OpenSSL 1.1.0g or newer." msgstr "" -#: ../Doc/library/ssl.rst:1927 +#: ../Doc/library/ssl.rst:1929 msgid "" "Like :attr:`SSLContext.maximum_version` except it is the lowest supported " "version or :attr:`TLSVersion.MINIMUM_SUPPORTED`." msgstr "" -#: ../Doc/library/ssl.rst:1937 +#: ../Doc/library/ssl.rst:1941 msgid "" "An integer representing the set of SSL options enabled on this context. The " "default value is :data:`OP_ALL`, but you can specify other options such as :" "data:`OP_NO_SSLv2` by ORing them together." msgstr "" -#: ../Doc/library/ssl.rst:1942 +#: ../Doc/library/ssl.rst:1946 msgid "" "With versions of OpenSSL older than 0.9.8m, it is only possible to set " "options, not to clear them. Attempting to clear an option (by resetting the " "corresponding bits) will raise a :exc:`ValueError`." msgstr "" -#: ../Doc/library/ssl.rst:1946 +#: ../Doc/library/ssl.rst:1950 msgid ":attr:`SSLContext.options` returns :class:`Options` flags:" msgstr "" -#: ../Doc/library/ssl.rst:1954 +#: ../Doc/library/ssl.rst:1958 msgid "" "Enable TLS 1.3 post-handshake client authentication. Post-handshake auth is " "disabled by default and a server can only request a TLS client certificate " @@ -2164,13 +2164,13 @@ msgid "" "client certificate at any time after the handshake." msgstr "" -#: ../Doc/library/ssl.rst:1959 +#: ../Doc/library/ssl.rst:1963 msgid "" "When enabled on client-side sockets, the client signals the server that it " "supports post-handshake authentication." msgstr "" -#: ../Doc/library/ssl.rst:1962 +#: ../Doc/library/ssl.rst:1966 msgid "" "When enabled on server-side sockets, :attr:`SSLContext.verify_mode` must be " "set to :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`, too. The actual " @@ -2178,30 +2178,30 @@ msgid "" "verify_client_post_handshake` is called and some I/O is performed." msgstr "" -#: ../Doc/library/ssl.rst:1971 +#: ../Doc/library/ssl.rst:1973 msgid "" "Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 " "support, the property value is None and can't be modified" msgstr "" -#: ../Doc/library/ssl.rst:1976 +#: ../Doc/library/ssl.rst:1980 msgid "" "The protocol version chosen when constructing the context. This attribute " "is read-only." msgstr "" -#: ../Doc/library/ssl.rst:1981 +#: ../Doc/library/ssl.rst:1985 msgid "" "Whether :attr:`~SSLContext.check_hostname` falls back to verify the cert's " "subject common name in the absence of a subject alternative name extension " "(default: true)." msgstr "" -#: ../Doc/library/ssl.rst:1988 +#: ../Doc/library/ssl.rst:1990 msgid "Only writeable with OpenSSL 1.1.0 or higher." msgstr "" -#: ../Doc/library/ssl.rst:1992 +#: ../Doc/library/ssl.rst:1996 msgid "" "The flags for certificate verification operations. You can set flags like :" "data:`VERIFY_CRL_CHECK_LEAF` by ORing them together. By default OpenSSL does " @@ -2209,26 +2209,26 @@ msgid "" "only with openssl version 0.9.8+." msgstr "" -#: ../Doc/library/ssl.rst:1999 +#: ../Doc/library/ssl.rst:2003 msgid ":attr:`SSLContext.verify_flags` returns :class:`VerifyFlags` flags:" msgstr "" -#: ../Doc/library/ssl.rst:2007 +#: ../Doc/library/ssl.rst:2011 msgid "" "Whether to try to verify other peers' certificates and how to behave if " "verification fails. This attribute must be one of :data:`CERT_NONE`, :data:" "`CERT_OPTIONAL` or :data:`CERT_REQUIRED`." msgstr "" -#: ../Doc/library/ssl.rst:2011 +#: ../Doc/library/ssl.rst:2015 msgid ":attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:" msgstr "" -#: ../Doc/library/ssl.rst:2024 +#: ../Doc/library/ssl.rst:2028 msgid "Certificates" msgstr "" -#: ../Doc/library/ssl.rst:2026 +#: ../Doc/library/ssl.rst:2030 msgid "" "Certificates in general are part of a public-key / private-key system. In " "this system, each *principal*, (which may be a machine, or a person, or an " @@ -2239,7 +2239,7 @@ msgid "" "other part, and **only** with the other part." msgstr "" -#: ../Doc/library/ssl.rst:2034 +#: ../Doc/library/ssl.rst:2038 msgid "" "A certificate contains information about two principals. It contains the " "name of a *subject*, and the subject's public key. It also contains a " @@ -2253,7 +2253,7 @@ msgid "" "as two fields, called \"notBefore\" and \"notAfter\"." msgstr "" -#: ../Doc/library/ssl.rst:2044 +#: ../Doc/library/ssl.rst:2048 msgid "" "In the Python use of certificates, a client or server can use a certificate " "to prove who they are. The other side of a network connection can also be " @@ -2266,18 +2266,18 @@ msgid "" "take place." msgstr "" -#: ../Doc/library/ssl.rst:2054 +#: ../Doc/library/ssl.rst:2058 msgid "" "Python uses files to contain certificates. They should be formatted as \"PEM" "\" (see :rfc:`1422`), which is a base-64 encoded form wrapped with a header " "line and a footer line::" msgstr "" -#: ../Doc/library/ssl.rst:2063 +#: ../Doc/library/ssl.rst:2067 msgid "Certificate chains" msgstr "" -#: ../Doc/library/ssl.rst:2065 +#: ../Doc/library/ssl.rst:2069 msgid "" "The Python files which contain certificates can contain a sequence of " "certificates, sometimes called a *certificate chain*. This chain should " @@ -2293,11 +2293,11 @@ msgid "" "agency which issued the certification authority's certificate::" msgstr "" -#: ../Doc/library/ssl.rst:2089 +#: ../Doc/library/ssl.rst:2093 msgid "CA certificates" msgstr "" -#: ../Doc/library/ssl.rst:2091 +#: ../Doc/library/ssl.rst:2095 msgid "" "If you are going to require validation of the other side of the connection's " "certificate, you need to provide a \"CA certs\" file, filled with the " @@ -2309,11 +2309,11 @@ msgid "" "create_default_context`." msgstr "" -#: ../Doc/library/ssl.rst:2100 +#: ../Doc/library/ssl.rst:2104 msgid "Combined key and certificate" msgstr "" -#: ../Doc/library/ssl.rst:2102 +#: ../Doc/library/ssl.rst:2106 msgid "" "Often the private key is stored in the same file as the certificate; in this " "case, only the ``certfile`` parameter to :meth:`SSLContext.load_cert_chain` " @@ -2322,11 +2322,11 @@ msgid "" "certificate chain::" msgstr "" -#: ../Doc/library/ssl.rst:2116 +#: ../Doc/library/ssl.rst:2120 msgid "Self-signed certificates" msgstr "" -#: ../Doc/library/ssl.rst:2118 +#: ../Doc/library/ssl.rst:2122 msgid "" "If you are going to create a server that provides SSL-encrypted connection " "services, you will need to acquire a certificate for that service. There " @@ -2336,51 +2336,51 @@ msgid "" "package, using something like the following::" msgstr "" -#: ../Doc/library/ssl.rst:2147 +#: ../Doc/library/ssl.rst:2151 msgid "" "The disadvantage of a self-signed certificate is that it is its own root " "certificate, and no one else will have it in their cache of known (and " "trusted) root certificates." msgstr "" -#: ../Doc/library/ssl.rst:2153 +#: ../Doc/library/ssl.rst:2157 msgid "Examples" msgstr "Exemples" -#: ../Doc/library/ssl.rst:2156 +#: ../Doc/library/ssl.rst:2160 msgid "Testing for SSL support" msgstr "" -#: ../Doc/library/ssl.rst:2158 +#: ../Doc/library/ssl.rst:2162 msgid "" "To test for the presence of SSL support in a Python installation, user code " "should use the following idiom::" msgstr "" -#: ../Doc/library/ssl.rst:2169 +#: ../Doc/library/ssl.rst:2173 msgid "Client-side operation" msgstr "" -#: ../Doc/library/ssl.rst:2171 +#: ../Doc/library/ssl.rst:2175 msgid "" "This example creates a SSL context with the recommended security settings " "for client sockets, including automatic certificate verification::" msgstr "" -#: ../Doc/library/ssl.rst:2176 +#: ../Doc/library/ssl.rst:2180 msgid "" "If you prefer to tune security settings yourself, you might create a context " "from scratch (but beware that you might not get the settings right)::" msgstr "" -#: ../Doc/library/ssl.rst:2185 +#: ../Doc/library/ssl.rst:2189 msgid "" "(this snippet assumes your operating system places a bundle of all CA " "certificates in ``/etc/ssl/certs/ca-bundle.crt``; if not, you'll get an " "error and have to adjust the location)" msgstr "" -#: ../Doc/library/ssl.rst:2189 +#: ../Doc/library/ssl.rst:2193 msgid "" "When you use the context to connect to a server, :const:`CERT_REQUIRED` " "validates the server certificate: it ensures that the server certificate was " @@ -2388,27 +2388,27 @@ msgid "" "correctness::" msgstr "" -#: ../Doc/library/ssl.rst:2198 +#: ../Doc/library/ssl.rst:2202 msgid "You may then fetch the certificate::" msgstr "" -#: ../Doc/library/ssl.rst:2202 +#: ../Doc/library/ssl.rst:2206 msgid "" "Visual inspection shows that the certificate does identify the desired " "service (that is, the HTTPS host ``www.python.org``)::" msgstr "" -#: ../Doc/library/ssl.rst:2245 +#: ../Doc/library/ssl.rst:2249 msgid "" "Now the SSL channel is established and the certificate verified, you can " "proceed to talk with the server::" msgstr "" -#: ../Doc/library/ssl.rst:2272 +#: ../Doc/library/ssl.rst:2276 msgid "Server-side operation" msgstr "" -#: ../Doc/library/ssl.rst:2274 +#: ../Doc/library/ssl.rst:2278 msgid "" "For server operation, typically you'll need to have a server certificate, " "and private key, each in a file. You'll first create a context holding the " @@ -2417,20 +2417,20 @@ msgid "" "start waiting for clients to connect::" msgstr "" -#: ../Doc/library/ssl.rst:2289 +#: ../Doc/library/ssl.rst:2293 msgid "" "When a client connects, you'll call :meth:`accept` on the socket to get the " "new socket from the other end, and use the context's :meth:`SSLContext." "wrap_socket` method to create a server-side SSL socket for the connection::" msgstr "" -#: ../Doc/library/ssl.rst:2302 +#: ../Doc/library/ssl.rst:2306 msgid "" "Then you'll read data from the ``connstream`` and do something with it till " "you are finished with the client (or the client is finished with you)::" msgstr "" -#: ../Doc/library/ssl.rst:2316 +#: ../Doc/library/ssl.rst:2320 msgid "" "And go back to listening for new client connections (of course, a real " "server would probably handle each client connection in a separate thread, or " @@ -2438,18 +2438,18 @@ msgid "" "event loop)." msgstr "" -#: ../Doc/library/ssl.rst:2324 +#: ../Doc/library/ssl.rst:2328 msgid "Notes on non-blocking sockets" msgstr "" -#: ../Doc/library/ssl.rst:2326 +#: ../Doc/library/ssl.rst:2330 msgid "" "SSL sockets behave slightly different than regular sockets in non-blocking " "mode. When working with non-blocking sockets, there are thus several things " "you need to be aware of:" msgstr "" -#: ../Doc/library/ssl.rst:2330 +#: ../Doc/library/ssl.rst:2334 msgid "" "Most :class:`SSLSocket` methods will raise either :exc:`SSLWantWriteError` " "or :exc:`SSLWantReadError` instead of :exc:`BlockingIOError` if an I/O " @@ -2461,13 +2461,13 @@ msgid "" "require a prior *write* to the underlying socket." msgstr "" -#: ../Doc/library/ssl.rst:2342 +#: ../Doc/library/ssl.rst:2346 msgid "" "In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero " "instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`." msgstr "" -#: ../Doc/library/ssl.rst:2346 +#: ../Doc/library/ssl.rst:2350 msgid "" "Calling :func:`~select.select` tells you that the OS-level socket can be " "read from (or written to), but it does not imply that there is sufficient " @@ -2477,7 +2477,7 @@ msgid "" "`~select.select`." msgstr "" -#: ../Doc/library/ssl.rst:2353 +#: ../Doc/library/ssl.rst:2357 msgid "" "Conversely, since the SSL layer has its own framing, a SSL socket may still " "have data available for reading without :func:`~select.select` being aware " @@ -2486,13 +2486,13 @@ msgid "" "call if still necessary." msgstr "" -#: ../Doc/library/ssl.rst:2359 +#: ../Doc/library/ssl.rst:2363 msgid "" "(of course, similar provisions apply when using other primitives such as :" "func:`~select.poll`, or those in the :mod:`selectors` module)" msgstr "" -#: ../Doc/library/ssl.rst:2362 +#: ../Doc/library/ssl.rst:2366 msgid "" "The SSL handshake itself will be non-blocking: the :meth:`SSLSocket." "do_handshake` method has to be retried until it returns successfully. Here " @@ -2500,7 +2500,7 @@ msgid "" "readiness::" msgstr "" -#: ../Doc/library/ssl.rst:2378 +#: ../Doc/library/ssl.rst:2382 msgid "" "The :mod:`asyncio` module supports :ref:`non-blocking SSL sockets ` and provides a higher level API. It polls for events using " @@ -2509,26 +2509,26 @@ msgid "" "handshake asynchronously as well." msgstr "" -#: ../Doc/library/ssl.rst:2387 +#: ../Doc/library/ssl.rst:2391 msgid "Memory BIO Support" msgstr "" -#: ../Doc/library/ssl.rst:2391 +#: ../Doc/library/ssl.rst:2395 msgid "" "Ever since the SSL module was introduced in Python 2.6, the :class:" "`SSLSocket` class has provided two related but distinct areas of " "functionality:" msgstr "" -#: ../Doc/library/ssl.rst:2394 +#: ../Doc/library/ssl.rst:2398 msgid "SSL protocol handling" msgstr "" -#: ../Doc/library/ssl.rst:2395 +#: ../Doc/library/ssl.rst:2399 msgid "Network IO" msgstr "" -#: ../Doc/library/ssl.rst:2397 +#: ../Doc/library/ssl.rst:2401 msgid "" "The network IO API is identical to that provided by :class:`socket.socket`, " "from which :class:`SSLSocket` also inherits. This allows an SSL socket to be " @@ -2536,7 +2536,7 @@ msgid "" "add SSL support to an existing application." msgstr "" -#: ../Doc/library/ssl.rst:2402 +#: ../Doc/library/ssl.rst:2406 msgid "" "Combining SSL protocol handling and network IO usually works well, but there " "are some cases where it doesn't. An example is async IO frameworks that want " @@ -2548,7 +2548,7 @@ msgid "" "`SSLObject` is provided." msgstr "" -#: ../Doc/library/ssl.rst:2413 +#: ../Doc/library/ssl.rst:2417 msgid "" "A reduced-scope variant of :class:`SSLSocket` representing an SSL protocol " "instance that does not contain any network IO methods. This class is " @@ -2556,7 +2556,7 @@ msgid "" "for SSL through memory buffers." msgstr "" -#: ../Doc/library/ssl.rst:2418 +#: ../Doc/library/ssl.rst:2422 msgid "" "This class implements an interface on top of a low-level SSL object as " "implemented by OpenSSL. This object captures the state of an SSL connection " @@ -2564,7 +2564,7 @@ msgid "" "separate \"BIO\" objects which are OpenSSL's IO abstraction layer." msgstr "" -#: ../Doc/library/ssl.rst:2423 +#: ../Doc/library/ssl.rst:2427 msgid "" "This class has no public constructor. An :class:`SSLObject` instance must " "be created using the :meth:`~SSLContext.wrap_bio` method. This method will " @@ -2573,202 +2573,202 @@ msgid "" "instance, while the *outgoing* BIO is used to pass data the other way around." msgstr "" -#: ../Doc/library/ssl.rst:2430 +#: ../Doc/library/ssl.rst:2434 msgid "The following methods are available:" msgstr "" -#: ../Doc/library/ssl.rst:2432 +#: ../Doc/library/ssl.rst:2436 msgid ":attr:`~SSLSocket.context`" msgstr "" -#: ../Doc/library/ssl.rst:2433 +#: ../Doc/library/ssl.rst:2437 msgid ":attr:`~SSLSocket.server_side`" msgstr "" -#: ../Doc/library/ssl.rst:2434 +#: ../Doc/library/ssl.rst:2438 msgid ":attr:`~SSLSocket.server_hostname`" msgstr "" -#: ../Doc/library/ssl.rst:2435 +#: ../Doc/library/ssl.rst:2439 msgid ":attr:`~SSLSocket.session`" msgstr "" -#: ../Doc/library/ssl.rst:2436 +#: ../Doc/library/ssl.rst:2440 msgid ":attr:`~SSLSocket.session_reused`" msgstr "" -#: ../Doc/library/ssl.rst:2437 +#: ../Doc/library/ssl.rst:2441 msgid ":meth:`~SSLSocket.read`" msgstr "" -#: ../Doc/library/ssl.rst:2438 +#: ../Doc/library/ssl.rst:2442 msgid ":meth:`~SSLSocket.write`" msgstr "" -#: ../Doc/library/ssl.rst:2439 +#: ../Doc/library/ssl.rst:2443 msgid ":meth:`~SSLSocket.getpeercert`" msgstr "" -#: ../Doc/library/ssl.rst:2440 +#: ../Doc/library/ssl.rst:2444 msgid ":meth:`~SSLSocket.selected_npn_protocol`" msgstr "" -#: ../Doc/library/ssl.rst:2441 +#: ../Doc/library/ssl.rst:2445 msgid ":meth:`~SSLSocket.cipher`" msgstr "" -#: ../Doc/library/ssl.rst:2442 +#: ../Doc/library/ssl.rst:2446 msgid ":meth:`~SSLSocket.shared_ciphers`" msgstr "" -#: ../Doc/library/ssl.rst:2443 +#: ../Doc/library/ssl.rst:2447 msgid ":meth:`~SSLSocket.compression`" msgstr "" -#: ../Doc/library/ssl.rst:2444 +#: ../Doc/library/ssl.rst:2448 msgid ":meth:`~SSLSocket.pending`" msgstr "" -#: ../Doc/library/ssl.rst:2445 +#: ../Doc/library/ssl.rst:2449 msgid ":meth:`~SSLSocket.do_handshake`" msgstr "" -#: ../Doc/library/ssl.rst:2446 +#: ../Doc/library/ssl.rst:2450 msgid ":meth:`~SSLSocket.unwrap`" msgstr "" -#: ../Doc/library/ssl.rst:2447 +#: ../Doc/library/ssl.rst:2451 msgid ":meth:`~SSLSocket.get_channel_binding`" msgstr "" -#: ../Doc/library/ssl.rst:2449 +#: ../Doc/library/ssl.rst:2453 msgid "" "When compared to :class:`SSLSocket`, this object lacks the following " "features:" msgstr "" -#: ../Doc/library/ssl.rst:2452 +#: ../Doc/library/ssl.rst:2456 msgid "" "Any form of network IO; ``recv()`` and ``send()`` read and write only to the " "underlying :class:`MemoryBIO` buffers." msgstr "" -#: ../Doc/library/ssl.rst:2455 +#: ../Doc/library/ssl.rst:2459 msgid "" "There is no *do_handshake_on_connect* machinery. You must always manually " "call :meth:`~SSLSocket.do_handshake` to start the handshake." msgstr "" -#: ../Doc/library/ssl.rst:2458 +#: ../Doc/library/ssl.rst:2462 msgid "" "There is no handling of *suppress_ragged_eofs*. All end-of-file conditions " "that are in violation of the protocol are reported via the :exc:" "`SSLEOFError` exception." msgstr "" -#: ../Doc/library/ssl.rst:2462 +#: ../Doc/library/ssl.rst:2466 msgid "" "The method :meth:`~SSLSocket.unwrap` call does not return anything, unlike " "for an SSL socket where it returns the underlying socket." msgstr "" -#: ../Doc/library/ssl.rst:2465 +#: ../Doc/library/ssl.rst:2469 msgid "" "The *server_name_callback* callback passed to :meth:`SSLContext." "set_servername_callback` will get an :class:`SSLObject` instance instead of " "a :class:`SSLSocket` instance as its first parameter." msgstr "" -#: ../Doc/library/ssl.rst:2469 +#: ../Doc/library/ssl.rst:2473 msgid "Some notes related to the use of :class:`SSLObject`:" msgstr "" -#: ../Doc/library/ssl.rst:2471 +#: ../Doc/library/ssl.rst:2475 msgid "" "All IO on an :class:`SSLObject` is :ref:`non-blocking `. " "This means that for example :meth:`~SSLSocket.read` will raise an :exc:" "`SSLWantReadError` if it needs more data than the incoming BIO has available." msgstr "" -#: ../Doc/library/ssl.rst:2476 +#: ../Doc/library/ssl.rst:2480 msgid "" "There is no module-level ``wrap_bio()`` call like there is for :meth:" "`~SSLContext.wrap_socket`. An :class:`SSLObject` is always created via an :" "class:`SSLContext`." msgstr "" -#: ../Doc/library/ssl.rst:2480 +#: ../Doc/library/ssl.rst:2484 msgid "" ":class:`SSLObject` instances must to created with :meth:`~SSLContext." "wrap_bio`. In earlier versions, it was possible to create instances " "directly. This was never documented or officially supported." msgstr "" -#: ../Doc/library/ssl.rst:2486 +#: ../Doc/library/ssl.rst:2490 msgid "" "An SSLObject communicates with the outside world using memory buffers. The " "class :class:`MemoryBIO` provides a memory buffer that can be used for this " "purpose. It wraps an OpenSSL memory BIO (Basic IO) object:" msgstr "" -#: ../Doc/library/ssl.rst:2492 +#: ../Doc/library/ssl.rst:2496 msgid "" "A memory buffer that can be used to pass data between Python and an SSL " "protocol instance." msgstr "" -#: ../Doc/library/ssl.rst:2497 +#: ../Doc/library/ssl.rst:2501 msgid "Return the number of bytes currently in the memory buffer." msgstr "" -#: ../Doc/library/ssl.rst:2501 +#: ../Doc/library/ssl.rst:2505 msgid "" "A boolean indicating whether the memory BIO is current at the end-of-file " "position." msgstr "" -#: ../Doc/library/ssl.rst:2506 +#: ../Doc/library/ssl.rst:2510 msgid "" "Read up to *n* bytes from the memory buffer. If *n* is not specified or " "negative, all bytes are returned." msgstr "" -#: ../Doc/library/ssl.rst:2511 +#: ../Doc/library/ssl.rst:2515 msgid "" "Write the bytes from *buf* to the memory BIO. The *buf* argument must be an " "object supporting the buffer protocol." msgstr "" -#: ../Doc/library/ssl.rst:2514 +#: ../Doc/library/ssl.rst:2518 msgid "" "The return value is the number of bytes written, which is always equal to " "the length of *buf*." msgstr "" -#: ../Doc/library/ssl.rst:2519 +#: ../Doc/library/ssl.rst:2523 msgid "" "Write an EOF marker to the memory BIO. After this method has been called, it " "is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will " "become true after all data currently in the buffer has been read." msgstr "" -#: ../Doc/library/ssl.rst:2525 +#: ../Doc/library/ssl.rst:2529 msgid "SSL session" msgstr "" -#: ../Doc/library/ssl.rst:2531 +#: ../Doc/library/ssl.rst:2535 msgid "Session object used by :attr:`~SSLSocket.session`." msgstr "" -#: ../Doc/library/ssl.rst:2543 +#: ../Doc/library/ssl.rst:2547 msgid "Security considerations" msgstr "" -#: ../Doc/library/ssl.rst:2546 +#: ../Doc/library/ssl.rst:2550 msgid "Best defaults" msgstr "" -#: ../Doc/library/ssl.rst:2548 +#: ../Doc/library/ssl.rst:2552 msgid "" "For **client use**, if you don't have any special requirements for your " "security policy, it is highly recommended that you use the :func:" @@ -2778,19 +2778,19 @@ msgid "" "settings." msgstr "" -#: ../Doc/library/ssl.rst:2555 +#: ../Doc/library/ssl.rst:2559 msgid "" "For example, here is how you would use the :class:`smtplib.SMTP` class to " "create a trusted, secure connection to a SMTP server::" msgstr "" -#: ../Doc/library/ssl.rst:2564 +#: ../Doc/library/ssl.rst:2568 msgid "" "If a client certificate is needed for the connection, it can be added with :" "meth:`SSLContext.load_cert_chain`." msgstr "" -#: ../Doc/library/ssl.rst:2567 +#: ../Doc/library/ssl.rst:2571 msgid "" "By contrast, if you create the SSL context by calling the :class:" "`SSLContext` constructor yourself, it will not have certificate validation " @@ -2798,15 +2798,15 @@ msgid "" "paragraphs below to achieve a good security level." msgstr "" -#: ../Doc/library/ssl.rst:2573 +#: ../Doc/library/ssl.rst:2577 msgid "Manual settings" msgstr "" -#: ../Doc/library/ssl.rst:2576 +#: ../Doc/library/ssl.rst:2580 msgid "Verifying certificates" msgstr "" -#: ../Doc/library/ssl.rst:2578 +#: ../Doc/library/ssl.rst:2582 msgid "" "When calling the :class:`SSLContext` constructor directly, :const:" "`CERT_NONE` is the default. Since it does not authenticate the other peer, " @@ -2821,13 +2821,13 @@ msgid "" "automatically performed when :attr:`SSLContext.check_hostname` is enabled." msgstr "" -#: ../Doc/library/ssl.rst:2591 +#: ../Doc/library/ssl.rst:2595 msgid "" "Hostname matchings is now performed by OpenSSL. Python no longer uses :func:" "`match_hostname`." msgstr "" -#: ../Doc/library/ssl.rst:2595 +#: ../Doc/library/ssl.rst:2599 msgid "" "In server mode, if you want to authenticate your clients using the SSL layer " "(rather than using a higher-level authentication mechanism), you'll also " @@ -2835,11 +2835,11 @@ msgid "" "certificate." msgstr "" -#: ../Doc/library/ssl.rst:2601 +#: ../Doc/library/ssl.rst:2605 msgid "Protocol versions" msgstr "" -#: ../Doc/library/ssl.rst:2603 +#: ../Doc/library/ssl.rst:2607 msgid "" "SSL versions 2 and 3 are considered insecure and are therefore dangerous to " "use. If you want maximum compatibility between clients and servers, it is " @@ -2848,7 +2848,7 @@ msgid "" "by default." msgstr "" -#: ../Doc/library/ssl.rst:2616 +#: ../Doc/library/ssl.rst:2620 msgid "" "The SSL context created above will only allow TLSv1.2 and later (if " "supported by your system) connections to a server. :const:" @@ -2856,11 +2856,11 @@ msgid "" "default. You have to load certificates into the context." msgstr "" -#: ../Doc/library/ssl.rst:2623 +#: ../Doc/library/ssl.rst:2627 msgid "Cipher selection" msgstr "" -#: ../Doc/library/ssl.rst:2625 +#: ../Doc/library/ssl.rst:2629 msgid "" "If you have advanced security requirements, fine-tuning of the ciphers " "enabled when negotiating a SSL session is possible through the :meth:" @@ -2873,11 +2873,11 @@ msgid "" "ciphers`` command on your system." msgstr "" -#: ../Doc/library/ssl.rst:2636 +#: ../Doc/library/ssl.rst:2640 msgid "Multi-processing" msgstr "" -#: ../Doc/library/ssl.rst:2638 +#: ../Doc/library/ssl.rst:2642 msgid "" "If using this module as part of a multi-processed application (using, for " "example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules), be " @@ -2888,18 +2888,18 @@ msgid "" "`~ssl.RAND_pseudo_bytes` is sufficient." msgstr "" -#: ../Doc/library/ssl.rst:2650 +#: ../Doc/library/ssl.rst:2654 msgid "TLS 1.3" msgstr "" -#: ../Doc/library/ssl.rst:2654 +#: ../Doc/library/ssl.rst:2658 msgid "" "Python has provisional and experimental support for TLS 1.3 with OpenSSL " "1.1.1. The new protocol behaves slightly differently than previous version " "of TLS/SSL. Some new TLS 1.3 features are not yet available." msgstr "" -#: ../Doc/library/ssl.rst:2658 +#: ../Doc/library/ssl.rst:2662 msgid "" "TLS 1.3 uses a disjunct set of cipher suites. All AES-GCM and ChaCha20 " "cipher suites are enabled by default. The method :meth:`SSLContext." @@ -2907,14 +2907,14 @@ msgid "" "`SSLContext.get_ciphers` returns them." msgstr "" -#: ../Doc/library/ssl.rst:2662 +#: ../Doc/library/ssl.rst:2666 msgid "" "Session tickets are no longer sent as part of the initial handshake and are " "handled differently. :attr:`SSLSocket.session` and :class:`SSLSession` are " "not compatible with TLS 1.3." msgstr "" -#: ../Doc/library/ssl.rst:2665 +#: ../Doc/library/ssl.rst:2669 msgid "" "Client-side certificates are also no longer verified during the initial " "handshake. A server can request a certificate at any time. Clients process " @@ -2922,127 +2922,127 @@ msgid "" "server." msgstr "" -#: ../Doc/library/ssl.rst:2669 +#: ../Doc/library/ssl.rst:2673 msgid "" "TLS 1.3 features like early data, deferred TLS client cert request, " "signature algorithm configuration, and rekeying are not supported yet." msgstr "" -#: ../Doc/library/ssl.rst:2676 +#: ../Doc/library/ssl.rst:2680 msgid "LibreSSL support" msgstr "" -#: ../Doc/library/ssl.rst:2678 +#: ../Doc/library/ssl.rst:2682 msgid "" "LibreSSL is a fork of OpenSSL 1.0.1. The ssl module has limited support for " "LibreSSL. Some features are not available when the ssl module is compiled " "with LibreSSL." msgstr "" -#: ../Doc/library/ssl.rst:2682 +#: ../Doc/library/ssl.rst:2686 msgid "" "LibreSSL >= 2.6.1 no longer supports NPN. The methods :meth:`SSLContext." "set_npn_protocols` and :meth:`SSLSocket.selected_npn_protocol` are not " "available." msgstr "" -#: ../Doc/library/ssl.rst:2685 +#: ../Doc/library/ssl.rst:2689 msgid "" ":meth:`SSLContext.set_default_verify_paths` ignores the env vars :envvar:" "`SSL_CERT_FILE` and :envvar:`SSL_CERT_PATH` although :func:" "`get_default_verify_paths` still reports them." msgstr "" -#: ../Doc/library/ssl.rst:2693 +#: ../Doc/library/ssl.rst:2697 msgid "Class :class:`socket.socket`" msgstr "" -#: ../Doc/library/ssl.rst:2693 +#: ../Doc/library/ssl.rst:2697 msgid "Documentation of underlying :mod:`socket` class" msgstr "" -#: ../Doc/library/ssl.rst:2696 +#: ../Doc/library/ssl.rst:2700 msgid "" "`SSL/TLS Strong Encryption: An Introduction `_" msgstr "" -#: ../Doc/library/ssl.rst:2696 +#: ../Doc/library/ssl.rst:2700 msgid "Intro from the Apache HTTP Server documentation" msgstr "" -#: ../Doc/library/ssl.rst:2699 +#: ../Doc/library/ssl.rst:2703 msgid "" ":rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: " "Certificate-Based Key Management <1422>`" msgstr "" -#: ../Doc/library/ssl.rst:2699 +#: ../Doc/library/ssl.rst:2703 msgid "Steve Kent" msgstr "" -#: ../Doc/library/ssl.rst:2702 +#: ../Doc/library/ssl.rst:2706 msgid ":rfc:`RFC 4086: Randomness Requirements for Security <4086>`" msgstr "" -#: ../Doc/library/ssl.rst:2702 +#: ../Doc/library/ssl.rst:2706 msgid "Donald E., Jeffrey I. Schiller" msgstr "" -#: ../Doc/library/ssl.rst:2705 +#: ../Doc/library/ssl.rst:2709 msgid "" ":rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and " "Certificate Revocation List (CRL) Profile <5280>`" msgstr "" -#: ../Doc/library/ssl.rst:2705 +#: ../Doc/library/ssl.rst:2709 msgid "D. Cooper" msgstr "" -#: ../Doc/library/ssl.rst:2708 +#: ../Doc/library/ssl.rst:2712 msgid "" ":rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 " "<5246>`" msgstr "" -#: ../Doc/library/ssl.rst:2708 +#: ../Doc/library/ssl.rst:2712 msgid "T. Dierks et. al." msgstr "" -#: ../Doc/library/ssl.rst:2711 +#: ../Doc/library/ssl.rst:2715 msgid ":rfc:`RFC 6066: Transport Layer Security (TLS) Extensions <6066>`" msgstr "" -#: ../Doc/library/ssl.rst:2711 +#: ../Doc/library/ssl.rst:2715 msgid "D. Eastlake" msgstr "" -#: ../Doc/library/ssl.rst:2714 +#: ../Doc/library/ssl.rst:2718 msgid "" "`IANA TLS: Transport Layer Security (TLS) Parameters `_" msgstr "" -#: ../Doc/library/ssl.rst:2714 +#: ../Doc/library/ssl.rst:2718 msgid "IANA" msgstr "" -#: ../Doc/library/ssl.rst:2717 +#: ../Doc/library/ssl.rst:2721 msgid "" ":rfc:`RFC 7525: Recommendations for Secure Use of Transport Layer Security " "(TLS) and Datagram Transport Layer Security (DTLS) <7525>`" msgstr "" -#: ../Doc/library/ssl.rst:2717 +#: ../Doc/library/ssl.rst:2721 msgid "IETF" msgstr "" -#: ../Doc/library/ssl.rst:2719 +#: ../Doc/library/ssl.rst:2723 msgid "" "`Mozilla's Server Side TLS recommendations `_" msgstr "" -#: ../Doc/library/ssl.rst:2720 +#: ../Doc/library/ssl.rst:2724 msgid "Mozilla" msgstr "" diff --git a/library/stdtypes.po b/library/stdtypes.po index 39fe52ba4..197054917 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-24 14:22+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2018-12-24 14:55+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -5651,8 +5651,8 @@ msgstr "" "dans les autres, mais pas dans les deux." #: ../Doc/library/stdtypes.rst:3978 -msgid "Return a new set with a shallow copy of *s*." -msgstr "Renvoie un nouvel ensemble, copie de surface de *s*." +msgid "Return a shallow copy of the set." +msgstr "Renvoie une copie de surface du dictionnaire." #: ../Doc/library/stdtypes.rst:3981 msgid "" @@ -6824,6 +6824,9 @@ msgstr "" "Pour insérer un *tuple*, vous devez donc donner un *tuple* d'un seul " "élément, contenant le *tuple* à insérer." +#~ msgid "Return a new set with a shallow copy of *s*." +#~ msgstr "Renvoie un nouvel ensemble, copie de surface de *s*." + #~ msgid "" #~ "Bitwise operations only make sense for integers. Negative numbers are " #~ "treated as their 2's complement value (this assumes that there are enough " diff --git a/library/subprocess.po b/library/subprocess.po index 92955f5a7..542ee029f 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-05 00:27+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: 2018-11-29 18:27+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -1636,7 +1636,7 @@ msgstr "" #: ../Doc/library/subprocess.rst:961 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " -"will not create a window" +"will not create a window." msgstr "" "Paramètre ``creationflags`` de :class:`Popen` pour spécifier qu'un processus " "ne créera pas une nouvelle fenêtre." @@ -1951,7 +1951,7 @@ msgid ":class:`Popen` raises an exception if the execution fails." msgstr ":class:`Popen` lève une exception si l'exécution échoue." #: ../Doc/library/subprocess.rst:1298 -msgid "the *capturestderr* argument is replaced with the *stderr* argument." +msgid "The *capturestderr* argument is replaced with the *stderr* argument." msgstr "L'argument *capturestderr* est remplacé par *stderr*." #: ../Doc/library/subprocess.rst:1300 diff --git a/library/time.po b/library/time.po index 52f8dc55b..355718eae 100644 --- a/library/time.po +++ b/library/time.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-02-18 14:22+0100\n" "PO-Revision-Date: 2019-03-18 01:17+0100\n" "Last-Translator: Igor Garbuz \n" "Language-Team: FRENCH \n" @@ -1465,7 +1465,7 @@ msgstr "" "Similaire à :data:`CLOCK_MONOTONIC`, mais donne accès à une heure matérielle " "brute qui n’est pas soumise aux ajustements NTP." -#: ../Doc/library/time.rst:775 +#: ../Doc/library/time.rst:776 #, fuzzy msgid "" ":ref:`Availability `: Linux 2.6.28 and newer, macOS 10.12 and " diff --git a/library/timeit.po b/library/timeit.po index 45ce429c6..84e7edbd4 100644 --- a/library/timeit.po +++ b/library/timeit.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -143,7 +143,7 @@ msgstr "" msgid "" "By default, :meth:`.timeit` temporarily turns off :term:`garbage collection` " "during the timing. The advantage of this approach is that it makes " -"independent timings more comparable. This disadvantage is that GC may be an " +"independent timings more comparable. The disadvantage is that GC may be an " "important component of the performance of the function being measured. If " "so, GC can be re-enabled as the first statement in the *setup* string. For " "example::" diff --git a/library/typing.po b/library/typing.po index 576ba8636..183af6838 100644 --- a/library/typing.po +++ b/library/typing.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-05 00:27+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -682,7 +682,7 @@ msgid "" msgstr "" #: ../Doc/library/typing.rst:818 -msgid "Typed version of namedtuple." +msgid "Typed version of :func:`collections.namedtuple`." msgstr "" #: ../Doc/library/typing.rst:826 diff --git a/library/unittest.mock.po b/library/unittest.mock.po index da114ba0d..b9ed3df03 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1176,7 +1176,8 @@ msgstr "" #: ../Doc/library/unittest.mock.rst:1420 msgid "" "If :func:`patch.multiple` is used as a context manager, the value returned " -"by the context manger is a dictionary where created mocks are keyed by name:" +"by the context manager is a dictionary where created mocks are keyed by " +"name::" msgstr "" #: ../Doc/library/unittest.mock.rst:1434 diff --git a/library/urllib.parse.po b/library/urllib.parse.po index 4fef376bb..b5a5ca0bc 100644 --- a/library/urllib.parse.po +++ b/library/urllib.parse.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-20 09:03+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -91,81 +91,81 @@ msgid "" "return value." msgstr "" -#: ../Doc/library/urllib.parse.rst:91 ../Doc/library/urllib.parse.rst:227 -#: ../Doc/library/urllib.parse.rst:315 +#: ../Doc/library/urllib.parse.rst:91 ../Doc/library/urllib.parse.rst:236 +#: ../Doc/library/urllib.parse.rst:333 msgid "" "The return value is actually an instance of a subclass of :class:`tuple`. " "This class has the following additional read-only convenience attributes:" msgstr "" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:231 -#: ../Doc/library/urllib.parse.rst:319 +#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 +#: ../Doc/library/urllib.parse.rst:337 msgid "Attribute" msgstr "Attribut" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:231 -#: ../Doc/library/urllib.parse.rst:319 +#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 +#: ../Doc/library/urllib.parse.rst:337 msgid "Index" msgstr "Index" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:231 -#: ../Doc/library/urllib.parse.rst:319 +#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 +#: ../Doc/library/urllib.parse.rst:337 msgid "Value" msgstr "Valeur" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:231 -#: ../Doc/library/urllib.parse.rst:319 +#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 +#: ../Doc/library/urllib.parse.rst:337 msgid "Value if not present" msgstr "" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:233 +#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 msgid ":attr:`scheme`" msgstr ":attr:`scheme`" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:233 -#: ../Doc/library/urllib.parse.rst:321 +#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 +#: ../Doc/library/urllib.parse.rst:339 msgid "0" msgstr "0" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:233 +#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 msgid "URL scheme specifier" msgstr "" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:233 +#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 msgid "*scheme* parameter" msgstr "" -#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:235 +#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:244 msgid ":attr:`netloc`" msgstr ":attr:`netloc`" -#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:235 -#: ../Doc/library/urllib.parse.rst:323 +#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:244 +#: ../Doc/library/urllib.parse.rst:341 msgid "1" msgstr "1" -#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:235 +#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:244 msgid "Network location part" msgstr "" #: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:101 #: ../Doc/library/urllib.parse.rst:103 ../Doc/library/urllib.parse.rst:106 -#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:235 -#: ../Doc/library/urllib.parse.rst:237 ../Doc/library/urllib.parse.rst:239 -#: ../Doc/library/urllib.parse.rst:241 ../Doc/library/urllib.parse.rst:321 -#: ../Doc/library/urllib.parse.rst:323 +#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:244 +#: ../Doc/library/urllib.parse.rst:246 ../Doc/library/urllib.parse.rst:248 +#: ../Doc/library/urllib.parse.rst:250 ../Doc/library/urllib.parse.rst:339 +#: ../Doc/library/urllib.parse.rst:341 msgid "empty string" msgstr "" -#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:237 +#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:246 msgid ":attr:`path`" msgstr ":attr:`path`" -#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:237 +#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:246 msgid "2" msgstr "2" -#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:237 +#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:246 msgid "Hierarchical path" msgstr "" @@ -173,7 +173,7 @@ msgstr "" msgid ":attr:`params`" msgstr ":attr:`params`" -#: ../Doc/library/urllib.parse.rst:103 ../Doc/library/urllib.parse.rst:239 +#: ../Doc/library/urllib.parse.rst:103 ../Doc/library/urllib.parse.rst:248 msgid "3" msgstr "3" @@ -181,20 +181,20 @@ msgstr "3" msgid "Parameters for last path element" msgstr "" -#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:239 +#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:248 msgid ":attr:`query`" msgstr ":attr:`query`" -#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:241 +#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:250 msgid "4" msgstr "4" -#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:239 +#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:248 msgid "Query component" msgstr "" -#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:241 -#: ../Doc/library/urllib.parse.rst:323 +#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:250 +#: ../Doc/library/urllib.parse.rst:341 msgid ":attr:`fragment`" msgstr ":attr:`fragment`" @@ -202,81 +202,95 @@ msgstr ":attr:`fragment`" msgid "5" msgstr "5" -#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:241 -#: ../Doc/library/urllib.parse.rst:323 +#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:250 +#: ../Doc/library/urllib.parse.rst:341 msgid "Fragment identifier" msgstr "" -#: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:243 +#: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:252 msgid ":attr:`username`" msgstr ":attr:`username`" -#: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:243 +#: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:252 msgid "User name" msgstr "" #: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:112 #: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:116 -#: ../Doc/library/urllib.parse.rst:243 ../Doc/library/urllib.parse.rst:245 -#: ../Doc/library/urllib.parse.rst:247 ../Doc/library/urllib.parse.rst:249 +#: ../Doc/library/urllib.parse.rst:252 ../Doc/library/urllib.parse.rst:254 +#: ../Doc/library/urllib.parse.rst:256 ../Doc/library/urllib.parse.rst:258 msgid ":const:`None`" msgstr "" -#: ../Doc/library/urllib.parse.rst:112 ../Doc/library/urllib.parse.rst:245 +#: ../Doc/library/urllib.parse.rst:112 ../Doc/library/urllib.parse.rst:254 msgid ":attr:`password`" msgstr ":attr:`password`" -#: ../Doc/library/urllib.parse.rst:112 ../Doc/library/urllib.parse.rst:245 +#: ../Doc/library/urllib.parse.rst:112 ../Doc/library/urllib.parse.rst:254 msgid "Password" msgstr "" -#: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:247 +#: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:256 msgid ":attr:`hostname`" msgstr ":attr:`hostname`" -#: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:247 +#: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:256 msgid "Host name (lower case)" msgstr "" -#: ../Doc/library/urllib.parse.rst:116 ../Doc/library/urllib.parse.rst:249 +#: ../Doc/library/urllib.parse.rst:116 ../Doc/library/urllib.parse.rst:258 msgid ":attr:`port`" msgstr ":attr:`port`" -#: ../Doc/library/urllib.parse.rst:116 ../Doc/library/urllib.parse.rst:249 +#: ../Doc/library/urllib.parse.rst:116 ../Doc/library/urllib.parse.rst:258 msgid "Port number as integer, if present" msgstr "" -#: ../Doc/library/urllib.parse.rst:120 ../Doc/library/urllib.parse.rst:253 +#: ../Doc/library/urllib.parse.rst:120 ../Doc/library/urllib.parse.rst:262 msgid "" "Reading the :attr:`port` attribute will raise a :exc:`ValueError` if an " "invalid port is specified in the URL. See section :ref:`urlparse-result-" "object` for more information on the result object." msgstr "" -#: ../Doc/library/urllib.parse.rst:124 ../Doc/library/urllib.parse.rst:257 +#: ../Doc/library/urllib.parse.rst:124 ../Doc/library/urllib.parse.rst:266 msgid "" "Unmatched square brackets in the :attr:`netloc` attribute will raise a :exc:" "`ValueError`." msgstr "" -#: ../Doc/library/urllib.parse.rst:127 +#: ../Doc/library/urllib.parse.rst:127 ../Doc/library/urllib.parse.rst:269 +msgid "" +"Characters in the :attr:`netloc` attribute that decompose under NFKC " +"normalization (as used by the IDNA encoding) into any of ``/``, ``?``, " +"``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is " +"decomposed before parsing, no error will be raised." +msgstr "" + +#: ../Doc/library/urllib.parse.rst:132 msgid "Added IPv6 URL parsing capabilities." msgstr "" -#: ../Doc/library/urllib.parse.rst:130 +#: ../Doc/library/urllib.parse.rst:135 msgid "" "The fragment is now parsed for all URL schemes (unless *allow_fragment* is " "false), in accordance with :rfc:`3986`. Previously, a whitelist of schemes " "that support fragments existed." msgstr "" -#: ../Doc/library/urllib.parse.rst:135 ../Doc/library/urllib.parse.rst:260 +#: ../Doc/library/urllib.parse.rst:140 ../Doc/library/urllib.parse.rst:274 msgid "" "Out-of-range port numbers now raise :exc:`ValueError`, instead of returning :" "const:`None`." msgstr "" -#: ../Doc/library/urllib.parse.rst:142 +#: ../Doc/library/urllib.parse.rst:144 ../Doc/library/urllib.parse.rst:278 +msgid "" +"Characters that affect netloc parsing under NFKC normalization will now " +"raise :exc:`ValueError`." +msgstr "" + +#: ../Doc/library/urllib.parse.rst:151 msgid "" "Parse a query string given as a string argument (data of type :mimetype:" "`application/x-www-form-urlencoded`). Data are returned as a dictionary. " @@ -284,7 +298,7 @@ msgid "" "lists of values for each name." msgstr "" -#: ../Doc/library/urllib.parse.rst:147 ../Doc/library/urllib.parse.rst:182 +#: ../Doc/library/urllib.parse.rst:156 ../Doc/library/urllib.parse.rst:191 msgid "" "The optional argument *keep_blank_values* is a flag indicating whether blank " "values in percent-encoded queries should be treated as blank strings. A true " @@ -293,55 +307,55 @@ msgid "" "treated as if they were not included." msgstr "" -#: ../Doc/library/urllib.parse.rst:153 ../Doc/library/urllib.parse.rst:188 +#: ../Doc/library/urllib.parse.rst:162 ../Doc/library/urllib.parse.rst:197 msgid "" "The optional argument *strict_parsing* is a flag indicating what to do with " "parsing errors. If false (the default), errors are silently ignored. If " "true, errors raise a :exc:`ValueError` exception." msgstr "" -#: ../Doc/library/urllib.parse.rst:157 ../Doc/library/urllib.parse.rst:192 +#: ../Doc/library/urllib.parse.rst:166 ../Doc/library/urllib.parse.rst:201 msgid "" "The optional *encoding* and *errors* parameters specify how to decode " "percent-encoded sequences into Unicode characters, as accepted by the :meth:" "`bytes.decode` method." msgstr "" -#: ../Doc/library/urllib.parse.rst:161 ../Doc/library/urllib.parse.rst:196 +#: ../Doc/library/urllib.parse.rst:170 ../Doc/library/urllib.parse.rst:205 msgid "" "The optional argument *max_num_fields* is the maximum number of fields to " "read. If set, then throws a :exc:`ValueError` if there are more than " "*max_num_fields* fields read." msgstr "" -#: ../Doc/library/urllib.parse.rst:165 +#: ../Doc/library/urllib.parse.rst:174 msgid "" "Use the :func:`urllib.parse.urlencode` function (with the ``doseq`` " "parameter set to ``True``) to convert such dictionaries into query strings." msgstr "" -#: ../Doc/library/urllib.parse.rst:169 ../Doc/library/urllib.parse.rst:203 +#: ../Doc/library/urllib.parse.rst:178 ../Doc/library/urllib.parse.rst:212 msgid "Add *encoding* and *errors* parameters." msgstr "" -#: ../Doc/library/urllib.parse.rst:172 ../Doc/library/urllib.parse.rst:206 +#: ../Doc/library/urllib.parse.rst:181 ../Doc/library/urllib.parse.rst:215 msgid "Added *max_num_fields* parameter." msgstr "" -#: ../Doc/library/urllib.parse.rst:178 +#: ../Doc/library/urllib.parse.rst:187 msgid "" "Parse a query string given as a string argument (data of type :mimetype:" "`application/x-www-form-urlencoded`). Data are returned as a list of name, " "value pairs." msgstr "" -#: ../Doc/library/urllib.parse.rst:200 +#: ../Doc/library/urllib.parse.rst:209 msgid "" "Use the :func:`urllib.parse.urlencode` function to convert such lists of " "pairs into query strings." msgstr "" -#: ../Doc/library/urllib.parse.rst:211 +#: ../Doc/library/urllib.parse.rst:220 msgid "" "Construct a URL from a tuple as returned by ``urlparse()``. The *parts* " "argument can be any six-item iterable. This may result in a slightly " @@ -350,7 +364,7 @@ msgid "" "states that these are equivalent)." msgstr "" -#: ../Doc/library/urllib.parse.rst:220 +#: ../Doc/library/urllib.parse.rst:229 msgid "" "This is similar to :func:`urlparse`, but does not split the params from the " "URL. This should generally be used instead of :func:`urlparse` if the more " @@ -361,7 +375,7 @@ msgid "" "fragment identifier)." msgstr "" -#: ../Doc/library/urllib.parse.rst:267 +#: ../Doc/library/urllib.parse.rst:285 msgid "" "Combine the elements of a tuple as returned by :func:`urlsplit` into a " "complete URL as a string. The *parts* argument can be any five-item " @@ -370,7 +384,7 @@ msgid "" "a ? with an empty query; the RFC states that these are equivalent)." msgstr "" -#: ../Doc/library/urllib.parse.rst:276 +#: ../Doc/library/urllib.parse.rst:294 msgid "" "Construct a full (\"absolute\") URL by combining a \"base URL\" (*base*) " "with another URL (*url*). Informally, this uses components of the base URL, " @@ -378,30 +392,30 @@ msgid "" "path, to provide missing components in the relative URL. For example:" msgstr "" -#: ../Doc/library/urllib.parse.rst:285 +#: ../Doc/library/urllib.parse.rst:303 msgid "" "The *allow_fragments* argument has the same meaning and default as for :func:" "`urlparse`." msgstr "" -#: ../Doc/library/urllib.parse.rst:290 +#: ../Doc/library/urllib.parse.rst:308 msgid "" "If *url* is an absolute URL (that is, starting with ``//`` or ``scheme://" "``), the *url*'s host name and/or scheme will be present in the result. For " "example:" msgstr "" -#: ../Doc/library/urllib.parse.rst:299 +#: ../Doc/library/urllib.parse.rst:317 msgid "" "If you do not want that behavior, preprocess the *url* with :func:`urlsplit` " "and :func:`urlunsplit`, removing possible *scheme* and *netloc* parts." msgstr "" -#: ../Doc/library/urllib.parse.rst:305 +#: ../Doc/library/urllib.parse.rst:323 msgid "Behaviour updated to match the semantics defined in :rfc:`3986`." msgstr "" -#: ../Doc/library/urllib.parse.rst:310 +#: ../Doc/library/urllib.parse.rst:328 msgid "" "If *url* contains a fragment identifier, return a modified version of *url* " "with no fragment identifier, and the fragment identifier as a separate " @@ -409,29 +423,29 @@ msgid "" "unmodified and an empty string." msgstr "" -#: ../Doc/library/urllib.parse.rst:321 +#: ../Doc/library/urllib.parse.rst:339 msgid ":attr:`url`" msgstr ":attr:`url`" -#: ../Doc/library/urllib.parse.rst:321 +#: ../Doc/library/urllib.parse.rst:339 msgid "URL with no fragment" msgstr "" -#: ../Doc/library/urllib.parse.rst:326 +#: ../Doc/library/urllib.parse.rst:344 msgid "" "See section :ref:`urlparse-result-object` for more information on the result " "object." msgstr "" -#: ../Doc/library/urllib.parse.rst:329 +#: ../Doc/library/urllib.parse.rst:347 msgid "Result is a structured object rather than a simple 2-tuple." msgstr "" -#: ../Doc/library/urllib.parse.rst:335 +#: ../Doc/library/urllib.parse.rst:353 msgid "Parsing ASCII Encoded Bytes" msgstr "" -#: ../Doc/library/urllib.parse.rst:337 +#: ../Doc/library/urllib.parse.rst:355 msgid "" "The URL parsing functions were originally designed to operate on character " "strings only. In practice, it is useful to be able to manipulate properly " @@ -440,14 +454,14 @@ msgid "" "`bytearray` objects in addition to :class:`str` objects." msgstr "" -#: ../Doc/library/urllib.parse.rst:343 +#: ../Doc/library/urllib.parse.rst:361 msgid "" "If :class:`str` data is passed in, the result will also contain only :class:" "`str` data. If :class:`bytes` or :class:`bytearray` data is passed in, the " "result will contain only :class:`bytes` data." msgstr "" -#: ../Doc/library/urllib.parse.rst:347 +#: ../Doc/library/urllib.parse.rst:365 msgid "" "Attempting to mix :class:`str` data with :class:`bytes` or :class:" "`bytearray` in a single function call will result in a :exc:`TypeError` " @@ -455,7 +469,7 @@ msgid "" "trigger :exc:`UnicodeDecodeError`." msgstr "" -#: ../Doc/library/urllib.parse.rst:352 +#: ../Doc/library/urllib.parse.rst:370 msgid "" "To support easier conversion of result objects between :class:`str` and :" "class:`bytes`, all return values from URL parsing functions provide either " @@ -468,14 +482,14 @@ msgid "" "`str` data (for :meth:`decode` methods)." msgstr "" -#: ../Doc/library/urllib.parse.rst:363 +#: ../Doc/library/urllib.parse.rst:381 msgid "" "Applications that need to operate on potentially improperly quoted URLs that " "may contain non-ASCII data will need to do their own decoding from bytes to " "characters before invoking the URL parsing methods." msgstr "" -#: ../Doc/library/urllib.parse.rst:367 +#: ../Doc/library/urllib.parse.rst:385 msgid "" "The behaviour described in this section applies only to the URL parsing " "functions. The URL quoting functions use their own rules when producing or " @@ -483,15 +497,15 @@ msgid "" "URL quoting functions." msgstr "" -#: ../Doc/library/urllib.parse.rst:372 +#: ../Doc/library/urllib.parse.rst:390 msgid "URL parsing functions now accept ASCII encoded byte sequences" msgstr "" -#: ../Doc/library/urllib.parse.rst:379 +#: ../Doc/library/urllib.parse.rst:397 msgid "Structured Parse Results" msgstr "" -#: ../Doc/library/urllib.parse.rst:381 +#: ../Doc/library/urllib.parse.rst:399 msgid "" "The result objects from the :func:`urlparse`, :func:`urlsplit` and :func:" "`urldefrag` functions are subclasses of the :class:`tuple` type. These " @@ -500,7 +514,7 @@ msgid "" "section, as well as an additional method:" msgstr "" -#: ../Doc/library/urllib.parse.rst:389 +#: ../Doc/library/urllib.parse.rst:407 msgid "" "Return the re-combined version of the original URL as a string. This may " "differ from the original URL in that the scheme may be normalized to lower " @@ -508,72 +522,72 @@ msgid "" "queries, and fragment identifiers will be removed." msgstr "" -#: ../Doc/library/urllib.parse.rst:394 +#: ../Doc/library/urllib.parse.rst:412 msgid "" "For :func:`urldefrag` results, only empty fragment identifiers will be " "removed. For :func:`urlsplit` and :func:`urlparse` results, all noted " "changes will be made to the URL returned by this method." msgstr "" -#: ../Doc/library/urllib.parse.rst:398 +#: ../Doc/library/urllib.parse.rst:416 msgid "" "The result of this method remains unchanged if passed back through the " "original parsing function:" msgstr "" -#: ../Doc/library/urllib.parse.rst:411 +#: ../Doc/library/urllib.parse.rst:429 msgid "" "The following classes provide the implementations of the structured parse " "results when operating on :class:`str` objects:" msgstr "" -#: ../Doc/library/urllib.parse.rst:416 +#: ../Doc/library/urllib.parse.rst:434 msgid "" "Concrete class for :func:`urldefrag` results containing :class:`str` data. " "The :meth:`encode` method returns a :class:`DefragResultBytes` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:424 +#: ../Doc/library/urllib.parse.rst:442 msgid "" "Concrete class for :func:`urlparse` results containing :class:`str` data. " "The :meth:`encode` method returns a :class:`ParseResultBytes` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:430 +#: ../Doc/library/urllib.parse.rst:448 msgid "" "Concrete class for :func:`urlsplit` results containing :class:`str` data. " "The :meth:`encode` method returns a :class:`SplitResultBytes` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:435 +#: ../Doc/library/urllib.parse.rst:453 msgid "" "The following classes provide the implementations of the parse results when " "operating on :class:`bytes` or :class:`bytearray` objects:" msgstr "" -#: ../Doc/library/urllib.parse.rst:440 +#: ../Doc/library/urllib.parse.rst:458 msgid "" "Concrete class for :func:`urldefrag` results containing :class:`bytes` data. " "The :meth:`decode` method returns a :class:`DefragResult` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:448 +#: ../Doc/library/urllib.parse.rst:466 msgid "" "Concrete class for :func:`urlparse` results containing :class:`bytes` data. " "The :meth:`decode` method returns a :class:`ParseResult` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:456 +#: ../Doc/library/urllib.parse.rst:474 msgid "" "Concrete class for :func:`urlsplit` results containing :class:`bytes` data. " "The :meth:`decode` method returns a :class:`SplitResult` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:464 +#: ../Doc/library/urllib.parse.rst:482 msgid "URL Quoting" msgstr "" -#: ../Doc/library/urllib.parse.rst:466 +#: ../Doc/library/urllib.parse.rst:484 msgid "" "The URL quoting functions focus on taking program data and making it safe " "for use as URL components by quoting special characters and appropriately " @@ -582,7 +596,7 @@ msgid "" "isn't already covered by the URL parsing functions above." msgstr "" -#: ../Doc/library/urllib.parse.rst:474 +#: ../Doc/library/urllib.parse.rst:492 msgid "" "Replace special characters in *string* using the ``%xx`` escape. Letters, " "digits, and the characters ``'_.-~'`` are never quoted. By default, this " @@ -591,17 +605,17 @@ msgid "" "quoted --- its default value is ``'/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:480 ../Doc/library/urllib.parse.rst:550 +#: ../Doc/library/urllib.parse.rst:498 ../Doc/library/urllib.parse.rst:568 msgid "*string* may be either a :class:`str` or a :class:`bytes`." msgstr "" -#: ../Doc/library/urllib.parse.rst:482 +#: ../Doc/library/urllib.parse.rst:500 msgid "" "Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. \"~\" is now " "included in the set of reserved characters." msgstr "" -#: ../Doc/library/urllib.parse.rst:486 +#: ../Doc/library/urllib.parse.rst:504 msgid "" "The optional *encoding* and *errors* parameters specify how to deal with non-" "ASCII characters, as accepted by the :meth:`str.encode` method. *encoding* " @@ -611,17 +625,17 @@ msgid "" "`TypeError` is raised." msgstr "" -#: ../Doc/library/urllib.parse.rst:494 +#: ../Doc/library/urllib.parse.rst:512 msgid "" "Note that ``quote(string, safe, encoding, errors)`` is equivalent to " "``quote_from_bytes(string.encode(encoding, errors), safe)``." msgstr "" -#: ../Doc/library/urllib.parse.rst:497 +#: ../Doc/library/urllib.parse.rst:515 msgid "Example: ``quote('/El Niño/')`` yields ``'/El%20Ni%C3%B1o/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:502 +#: ../Doc/library/urllib.parse.rst:520 msgid "" "Like :func:`quote`, but also replace spaces by plus signs, as required for " "quoting HTML form values when building up a query string to go into a URL. " @@ -629,21 +643,21 @@ msgid "" "*safe*. It also does not have *safe* default to ``'/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:507 +#: ../Doc/library/urllib.parse.rst:525 msgid "Example: ``quote_plus('/El Niño/')`` yields ``'%2FEl+Ni%C3%B1o%2F'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:512 +#: ../Doc/library/urllib.parse.rst:530 msgid "" "Like :func:`quote`, but accepts a :class:`bytes` object rather than a :class:" "`str`, and does not perform string-to-bytes encoding." msgstr "" -#: ../Doc/library/urllib.parse.rst:515 +#: ../Doc/library/urllib.parse.rst:533 msgid "Example: ``quote_from_bytes(b'a&\\xef')`` yields ``'a%26%EF'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:521 +#: ../Doc/library/urllib.parse.rst:539 msgid "" "Replace ``%xx`` escapes by their single-character equivalent. The optional " "*encoding* and *errors* parameters specify how to decode percent-encoded " @@ -651,47 +665,47 @@ msgid "" "method." msgstr "" -#: ../Doc/library/urllib.parse.rst:526 ../Doc/library/urllib.parse.rst:540 +#: ../Doc/library/urllib.parse.rst:544 ../Doc/library/urllib.parse.rst:558 msgid "*string* must be a :class:`str`." msgstr "" -#: ../Doc/library/urllib.parse.rst:528 +#: ../Doc/library/urllib.parse.rst:546 msgid "" "*encoding* defaults to ``'utf-8'``. *errors* defaults to ``'replace'``, " "meaning invalid sequences are replaced by a placeholder character." msgstr "" -#: ../Doc/library/urllib.parse.rst:532 +#: ../Doc/library/urllib.parse.rst:550 msgid "Example: ``unquote('/El%20Ni%C3%B1o/')`` yields ``'/El Niño/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:537 +#: ../Doc/library/urllib.parse.rst:555 msgid "" "Like :func:`unquote`, but also replace plus signs by spaces, as required for " "unquoting HTML form values." msgstr "" -#: ../Doc/library/urllib.parse.rst:542 +#: ../Doc/library/urllib.parse.rst:560 msgid "Example: ``unquote_plus('/El+Ni%C3%B1o/')`` yields ``'/El Niño/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:547 +#: ../Doc/library/urllib.parse.rst:565 msgid "" "Replace ``%xx`` escapes by their single-octet equivalent, and return a :" "class:`bytes` object." msgstr "" -#: ../Doc/library/urllib.parse.rst:552 +#: ../Doc/library/urllib.parse.rst:570 msgid "" "If it is a :class:`str`, unescaped non-ASCII characters in *string* are " "encoded into UTF-8 bytes." msgstr "" -#: ../Doc/library/urllib.parse.rst:555 +#: ../Doc/library/urllib.parse.rst:573 msgid "Example: ``unquote_to_bytes('a%26%EF')`` yields ``b'a&\\xef'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:561 +#: ../Doc/library/urllib.parse.rst:579 msgid "" "Convert a mapping object or a sequence of two-element tuples, which may " "contain :class:`str` or :class:`bytes` objects, to a percent-encoded ASCII " @@ -700,7 +714,7 @@ msgid "" "be encoded to bytes, otherwise it would result in a :exc:`TypeError`." msgstr "" -#: ../Doc/library/urllib.parse.rst:568 +#: ../Doc/library/urllib.parse.rst:586 msgid "" "The resulting string is a series of ``key=value`` pairs separated by ``'&'`` " "characters, where both *key* and *value* are quoted using the *quote_via* " @@ -713,7 +727,7 @@ msgid "" "``quote`` and specify a value for *safe*." msgstr "" -#: ../Doc/library/urllib.parse.rst:578 +#: ../Doc/library/urllib.parse.rst:596 msgid "" "When a sequence of two-element tuples is used as the *query* argument, the " "first element of each tuple is a key and the second is a value. The value " @@ -724,38 +738,38 @@ msgid "" "order of parameter tuples in the sequence." msgstr "" -#: ../Doc/library/urllib.parse.rst:586 +#: ../Doc/library/urllib.parse.rst:604 msgid "" "The *safe*, *encoding*, and *errors* parameters are passed down to " "*quote_via* (the *encoding* and *errors* parameters are only passed when a " "query element is a :class:`str`)." msgstr "" -#: ../Doc/library/urllib.parse.rst:590 +#: ../Doc/library/urllib.parse.rst:608 msgid "" "To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are " "provided in this module to parse query strings into Python data structures." msgstr "" -#: ../Doc/library/urllib.parse.rst:593 +#: ../Doc/library/urllib.parse.rst:611 msgid "" "Refer to :ref:`urllib examples ` to find out how urlencode " "method can be used for generating query string for a URL or data for POST." msgstr "" -#: ../Doc/library/urllib.parse.rst:596 +#: ../Doc/library/urllib.parse.rst:614 msgid "Query parameter supports bytes and string objects." msgstr "" -#: ../Doc/library/urllib.parse.rst:599 +#: ../Doc/library/urllib.parse.rst:617 msgid "*quote_via* parameter." msgstr "" -#: ../Doc/library/urllib.parse.rst:609 +#: ../Doc/library/urllib.parse.rst:627 msgid ":rfc:`3986` - Uniform Resource Identifiers" msgstr "" -#: ../Doc/library/urllib.parse.rst:606 +#: ../Doc/library/urllib.parse.rst:624 msgid "" "This is the current standard (STD66). Any changes to urllib.parse module " "should conform to this. Certain deviations could be observed, which are " @@ -763,47 +777,47 @@ msgid "" "requirements as commonly observed in major browsers." msgstr "" -#: ../Doc/library/urllib.parse.rst:612 +#: ../Doc/library/urllib.parse.rst:630 msgid ":rfc:`2732` - Format for Literal IPv6 Addresses in URL's." msgstr "" -#: ../Doc/library/urllib.parse.rst:612 +#: ../Doc/library/urllib.parse.rst:630 msgid "This specifies the parsing requirements of IPv6 URLs." msgstr "" -#: ../Doc/library/urllib.parse.rst:616 +#: ../Doc/library/urllib.parse.rst:634 msgid ":rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax" msgstr "" -#: ../Doc/library/urllib.parse.rst:615 +#: ../Doc/library/urllib.parse.rst:633 msgid "" "Document describing the generic syntactic requirements for both Uniform " "Resource Names (URNs) and Uniform Resource Locators (URLs)." msgstr "" -#: ../Doc/library/urllib.parse.rst:619 +#: ../Doc/library/urllib.parse.rst:637 msgid ":rfc:`2368` - The mailto URL scheme." msgstr "" -#: ../Doc/library/urllib.parse.rst:619 +#: ../Doc/library/urllib.parse.rst:637 msgid "Parsing requirements for mailto URL schemes." msgstr "" -#: ../Doc/library/urllib.parse.rst:624 +#: ../Doc/library/urllib.parse.rst:642 msgid ":rfc:`1808` - Relative Uniform Resource Locators" msgstr "" -#: ../Doc/library/urllib.parse.rst:622 +#: ../Doc/library/urllib.parse.rst:640 msgid "" "This Request For Comments includes the rules for joining an absolute and a " "relative URL, including a fair number of \"Abnormal Examples\" which govern " "the treatment of border cases." msgstr "" -#: ../Doc/library/urllib.parse.rst:626 +#: ../Doc/library/urllib.parse.rst:644 msgid ":rfc:`1738` - Uniform Resource Locators (URL)" msgstr "" -#: ../Doc/library/urllib.parse.rst:627 +#: ../Doc/library/urllib.parse.rst:645 msgid "This specifies the formal syntax and semantics of absolute URLs." msgstr "" From a023223ade0bae099e6c18bb9ee12c42e7b56ce7 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Thu, 21 Mar 2019 18:59:58 +0100 Subject: [PATCH 071/121] Updated README with potodo instruction (#610) --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index 47a6f2b7b..f0f77a58b 100644 --- a/README.rst +++ b/README.rst @@ -84,6 +84,11 @@ Now you're ready to start a work session, each time you'll start a new task, sta .. code-block:: bash + # First, you need to find a file to work on. You can use `potodo `. + # Install it and then run the command `potodo` in your cloned fork. + # From the list it spits out, you can choose any file that is not reserved. We recommend not starting + # with a file from `c-api as` it is very technical. + # To work, we'll need a branch, based on an up-to-date (freshly fetched) # upstream/3.7 branch, let's say we'll work on glossary so we name # the branch "glossary": From 45d762b78981134db314fcb8062cad3dbac22634 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 21 Mar 2019 19:08:53 +0100 Subject: [PATCH 072/121] README: Tell about opening issue to lock a file. --- README.rst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index f0f77a58b..0a7603fd6 100644 --- a/README.rst +++ b/README.rst @@ -80,15 +80,20 @@ is python 3.7, we don't want to translate directly on the python 3.5 release. If needed translations would be backported on the oldest versions by the `documentation team `. +First, you need to find a file to work on. You can use `potodo +`. Install it (``pip install +potodo`` in a venv) and then run the command `potodo` in your cloned +fork. From the list it spits out, you can choose any file that is not +reserved. We recommend not starting with a file from ``c-api` as it is +very technical. + +Once you've choosen a file, please open an issue telling you're +working on it, to block someone from working on it. + Now you're ready to start a work session, each time you'll start a new task, start here: .. code-block:: bash - # First, you need to find a file to work on. You can use `potodo `. - # Install it and then run the command `potodo` in your cloned fork. - # From the list it spits out, you can choose any file that is not reserved. We recommend not starting - # with a file from `c-api as` it is very technical. - # To work, we'll need a branch, based on an up-to-date (freshly fetched) # upstream/3.7 branch, let's say we'll work on glossary so we name # the branch "glossary": From 26c604f4dd056d95e77c53bbd46ef880a991595b Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Thu, 21 Mar 2019 19:45:35 +0100 Subject: [PATCH 073/121] Update README.rst (#614) --- README.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 0a7603fd6..cf673cacc 100644 --- a/README.rst +++ b/README.rst @@ -80,12 +80,11 @@ is python 3.7, we don't want to translate directly on the python 3.5 release. If needed translations would be backported on the oldest versions by the `documentation team `. -First, you need to find a file to work on. You can use `potodo -`. Install it (``pip install -potodo`` in a venv) and then run the command `potodo` in your cloned -fork. From the list it spits out, you can choose any file that is not -reserved. We recommend not starting with a file from ``c-api` as it is -very technical. +First, you need to find a file to work on. You can use `potodo `. +Install it (``pip install potodo`` in a venv) and then run the command +`potodo` in your cloned fork. +From the list it spits out, you can choose any file that is not +reserved. We recommend not starting with a file from ``c-api`` as it is very technical. Once you've choosen a file, please open an issue telling you're working on it, to block someone from working on it. From 8fa5442c4942e135cea1647269180cfe8d0d5641 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Thu, 21 Mar 2019 21:05:38 +0100 Subject: [PATCH 074/121] Fixed fuzzys in library/re.po (#594) --- library/re.po | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/library/re.po b/library/re.po index e2406ac58..bbd8920bc 100644 --- a/library/re.po +++ b/library/re.po @@ -5,14 +5,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2018-12-07 18:54+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-02-27 11:53+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/re.rst:2 msgid ":mod:`re` --- Regular expression operations" @@ -1349,6 +1349,9 @@ msgid "" "longer depend on the locale at compile time. Only the locale at matching " "time affects the result of matching." msgstr "" +"Les objets d'expressions régulières compilées avec l'indicateur :const:`re." +"LOCALE` ne dépendent plus de la *locale* au moment de la compilation. " +"Seulement la *locale* au moment de la correspondance affecte le résultat." #: ../Doc/library/re.rst:699 msgid "" @@ -1503,6 +1506,9 @@ msgid "" "Empty matches for the pattern split the string only when not adjacent to a " "previous empty match." msgstr "" +"Les correspondances vides pour le motif scindent la chaîne de caractères " +"seulement lorsqu'ils ne sont pas adjacents à une correspondance vide " +"précédente." #: ../Doc/library/re.rst:811 ../Doc/library/re.rst:891 #: ../Doc/library/re.rst:914 @@ -1535,6 +1541,8 @@ msgstr "" #: ../Doc/library/re.rst:826 ../Doc/library/re.rst:837 msgid "Non-empty matches can now start just after a previous empty match." msgstr "" +"Les correspondances non vides peuvent maintenant démarrer juste après une " +"correspondance vide précédente." #: ../Doc/library/re.rst:832 msgid "" @@ -1654,6 +1662,8 @@ msgid "" "Empty matches for the pattern are replaced when adjacent to a previous non-" "empty match." msgstr "" +"Les correspondances vides pour le motif sont remplacées lorsqu'elles sont " +"adjacentes à une correspondance non vide précédente." #: ../Doc/library/re.rst:911 msgid "" From 86719c94d39061920c19b0c3736b70c54ceba9cf Mon Sep 17 00:00:00 2001 From: Andy K Date: Thu, 21 Mar 2019 21:06:41 +0100 Subject: [PATCH 075/121] adding the extra translation for objbuffer.po (#616) --- c-api/objbuffer.po | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index dca52fcfe..db5d91c24 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-20 09:03+0100\n" -"PO-Revision-Date: 2018-11-30 10:55+0100\n" +"PO-Revision-Date: 2019-03-21 20:12+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.0.6\n" #: ../Doc/c-api/objbuffer.rst:4 msgid "Old Buffer Protocol" @@ -78,13 +78,12 @@ msgstr "" "`TypeError` en cas d'erreur." #: ../Doc/c-api/objbuffer.rst:41 -#, fuzzy msgid "" "Returns ``1`` if *o* supports the single-segment readable buffer interface. " "Otherwise returns ``0``. This function always succeeds." msgstr "" "Retourne ``1`` si *o* prend en charge l'interface de mémoire tampon lisible " -"à segment unique. Sinon, renvoie ``0``." +"à segment unique. Sinon, renvoie ``0``. Cette fonction réussit toujours." #: ../Doc/c-api/objbuffer.rst:44 msgid "" @@ -92,6 +91,10 @@ msgid "" "which occur while calling corresponding functions will get suppressed. To " "get error reporting use :c:func:`PyObject_GetBuffer()` instead." msgstr "" +"Notez que cette fonction tente d'obtenir et de libérer une mémoire tampon, " +"et les exceptions qui se produisent lors de l'appel des fonctions " +"correspondantes seront supprimées. Pour obtenir un rapport d'erreur, " +"utilisez à la place :c:func:`PyObject_GetBuffer()`." #: ../Doc/c-api/objbuffer.rst:51 msgid "" From 7a36c822cabc9eb4aabaeec09d91a8854d62bac9 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Thu, 21 Mar 2019 22:35:44 +0100 Subject: [PATCH 076/121] fixed fuzzys in c-api/objbuffer.po (#588) --- c-api/objbuffer.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index db5d91c24..7a2c05d33 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -13,7 +13,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/c-api/objbuffer.rst:4 msgid "Old Buffer Protocol" From 289b0b1b4479f5bc045be35d90c8b58423550130 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 22 Mar 2019 10:21:12 +0100 Subject: [PATCH 077/121] Updated README - More info on the getting started section (#623) --- README.rst | 69 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 26 deletions(-) diff --git a/README.rst b/README.rst index cf673cacc..135d07200 100644 --- a/README.rst +++ b/README.rst @@ -54,10 +54,10 @@ Prerequisites: if you don't already have one). -Let's start: +Getting Started: You'll need to fork the `python-docs-fr -`_ clicking its ``Fork`` +`_ source repository by clicking its ``Fork`` button. This creates a copy of the whole project on your github account: a place where you have the rights to do modifications. @@ -65,49 +65,59 @@ Step by step: .. code-block:: bash - # Git clone your github fork using ssh (replace JulienPalard): - git clone git@github.com:JulienPalard/python-docs-fr.git + # Clone your github fork with `git` using ssh or https: + git clone git@github.com:YOUR_GITHUB_USERNAME/python-docs-fr.git + git clone https://github.com:YOUR_GITHUB_USERNAME/python-docs-fr.git - # Go to the cloned directory: + # Go into the cloned directory: cd python-docs-fr/ # Add the upstream (the public repository) using HTTPS (won't ask for password): + # This is so git knows what/where the upstream is. git remote add upstream https://github.com/python/python-docs-fr.git -All the translations must be made on the latest release. -We never translate on an oldest version, by example, the latest python release -is python 3.7, we don't want to translate directly on the python 3.5 release. -If needed translations would be backported on the oldest versions by the -`documentation team `. +Next, you need to find a file to work on. +You can use `potodo `, a tool made to find ``po`` to do. +Install it using pip (``pip install potodo``) in a ``python3.7`` environement. +Then run the command ``potodo`` in your cloned fork. +From the list returned by the command, you can choose any file that is not reserved. -First, you need to find a file to work on. You can use `potodo `. -Install it (``pip install potodo`` in a venv) and then run the command -`potodo` in your cloned fork. -From the list it spits out, you can choose any file that is not -reserved. We recommend not starting with a file from ``c-api`` as it is very technical. +**We recommend not starting with a file from ``c-api`` as it is very technical.** -Once you've choosen a file, please open an issue telling you're -working on it, to block someone from working on it. +Once you've choosen a file to work one, please open an `issue on github ` in the format of `I'm working on FOLDER/FILE.po`. This is done to update ``potodo`` as it checks the github API for reserved ``.po`` files in issues and pull requests. -Now you're ready to start a work session, each time you'll start a new task, start here: +Now you're ready to start a work session. Each time you'll start a new file, start here: .. code-block:: bash # To work, we'll need a branch, based on an up-to-date (freshly fetched) - # upstream/3.7 branch, let's say we'll work on glossary so we name - # the branch "glossary": + # upstream/3.7 branch. We will name our branch "library-sys" but you shall name yours + # whatever you want. Usually you'll name a branch based on the file you're working on. + # For example, If you're working on "library/venv.po" you can name your branch "library-venv" + + # Update your local version to the latest git fetch upstream - git checkout -b glossary upstream/3.7 + # Create a new branch named "library-sys" based on "upstream/3.7" + git checkout -b library-sys upstream/3.7 # You can now work on the file, typically using poedit, - poedit directory/file.po + # Of course, replace "library/sys.po" by the file you've chose earlier + poedit library/sys.po + + # When you are done translating, you can run pospell (pip install pospell). + # This tool was made to check if you don't have any french mistakes. + # You can run the following command: pospell -p dict -l fr_FR **/*.po to check all files + # or replace **/*.po by your specific file (recommended). + + # You can then run powrap (pip install powrap) which will rewrap + # You modified file to the correct line length of `80`. + # Run this command: `powrap **/*.po` or replace `**/*.po` with your modified file. - # When everything is clear (syntax errors from Sphinx, html rendering, - # semantics, typography), + # When everything powrap and pospell passes without errors, # you can commit your work with a nice explicit message: - git commit -a -m "Working on glossary." + git commit -a -m "Working on library/sys.po." - # Then push your modifications to your github clone, + # Then push your modifications to your github fork, # as they are ephemeral branches, let's not configure git to track them all, # "origin HEAD" is a "special" syntax to say "Push on origin, # on a branch with the same name as the local one", @@ -145,6 +155,13 @@ Before commiting, you should use `grammalecte `_ to check for your translations. +All the translations must be made on the latest release. +We never translate on an oldest version. For example, if the latest python release +is Python 3.7, we don't want to translate directly on the python 3.5 release. +If needed translations would be backported on the oldest versions by the +`documentation team `. + + What to translate ~~~~~~~~~~~~~~~~~ From cfb63f0f70e2ec1abd69a0e8d8dfa3fbfb1abcae Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 15:16:46 +0100 Subject: [PATCH 078/121] J'ai mis a jour la documentation SQLITE3 Co-Authored-By: Bruno LAURENT --- library/sqlite3.po | 98 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 83 insertions(+), 15 deletions(-) diff --git a/library/sqlite3.po b/library/sqlite3.po index 2734aa002..a0db0295e 100644 --- a/library/sqlite3.po +++ b/library/sqlite3.po @@ -6,21 +6,22 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-07-03 11:13+0200\n" +"PO-Revision-Date: 2019-01-11 23:12+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.6\n" #: ../Doc/library/sqlite3.rst:2 msgid ":mod:`sqlite3` --- DB-API 2.0 interface for SQLite databases" -msgstr "" +msgstr ":mod:`sqlite3` --- Interface DB-API 2.0 pour SQLite databases" #: ../Doc/library/sqlite3.rst:9 msgid "**Source code:** :source:`Lib/sqlite3/`" -msgstr "" +msgstr "**Source code:** :source:`Lib/sqlite3/`" #: ../Doc/library/sqlite3.rst:13 msgid "" @@ -31,6 +32,13 @@ msgid "" "application using SQLite and then port the code to a larger database such as " "PostgreSQL or Oracle." msgstr "" +"SQLite est une bibliothèque C qui fournit une base de données légère sur " +"disque ne nécessitant pas de processus serveur distinct et permet d'accéder " +"à la base de données à l'aide d'une variante non standard du langage de " +"requête SQL. Certaines applications peuvent utiliser SQLite pour le stockage " +"de données interne. Il est également possible de créer un une application " +"prototype à l'aide de SQLite, puis de transférer le code dans une base de " +"données plus grande telle que PostgreSQL ou Oracle." #: ../Doc/library/sqlite3.rst:20 msgid "" @@ -38,6 +46,8 @@ msgid "" "interface compliant with the DB-API 2.0 specification described by :pep:" "`249`." msgstr "" +"Le sqlite3 module a été écrit par Gerhard Häring. Il fournit une interface " +"SQL conforme à la spécification DB-API 2.0 décrite par: pep: `249`." #: ../Doc/library/sqlite3.rst:23 msgid "" @@ -45,23 +55,33 @@ msgid "" "represents the database. Here the data will be stored in the :file:`example." "db` file::" msgstr "" +"Pour utiliser le module, vous devez d’abord créer une class: `Connection` " +"qui représente la base de données. Ici les données seront stockées dans: " +"file: `example.db` file ::" #: ../Doc/library/sqlite3.rst:30 msgid "" "You can also supply the special name ``:memory:`` to create a database in " "RAM." msgstr "" +"Vous pouvez également fournir le nom spécial ``: memory: `` pour créer une " +"base de données dans la RAM." #: ../Doc/library/sqlite3.rst:32 msgid "" "Once you have a :class:`Connection`, you can create a :class:`Cursor` " "object and call its :meth:`~Cursor.execute` method to perform SQL commands::" msgstr "" +"Une fois que vous avez une classe: `Connection`, vous pouvez créer un objet: " +"classe:` Cursor` et appeler sa méthode: meth: `~ Cursor.execute` pour " +"exécuter les commandes SQL ::" #: ../Doc/library/sqlite3.rst:51 msgid "" "The data you've saved is persistent and is available in subsequent sessions::" msgstr "" +"Les données que vous avez sauvegardées sont persistantes et disponibles dans " +"les sessions suivantes:" #: ../Doc/library/sqlite3.rst:57 msgid "" @@ -70,6 +90,12 @@ msgid "" "doing so is insecure; it makes your program vulnerable to an SQL injection " "attack (see https://xkcd.com/327/ for humorous example of what can go wrong)." msgstr "" +"Habituellement, vos opérations SQL devront utiliser les valeurs des " +"variables Python. Vous ne devriez pas assembler votre requête à l'aide des " +"opérations sur les chaînes de caractères de Python, car cela n'est pas sûr. " +"cela rend votre programme vulnérable à une attaque par injection SQL (voir " +"https://xkcd.com/327/ pour voir un exemple amusant de ce qui peut mal " +"tourner)." #: ../Doc/library/sqlite3.rst:62 msgid "" @@ -79,6 +105,11 @@ msgid "" "method. (Other database modules may use a different placeholder, such as ``" "%s`` or ``:1``.) For example::" msgstr "" +"A la place, substituer le paramètre de DB-API . Mettez ``? `` Comme espace " +"réservé partout où vous voulez utiliser une valeur, puis fournissez un tuple " +"de valeurs comme second argument de la méthode du curseur: meth: `~ Cursor." +"execute`. (D'autres modules de base de données peuvent utiliser un espace " +"réservé différent, tel que ``% s`` ou ``: 1``.) Par exemple ::" #: ../Doc/library/sqlite3.rst:84 msgid "" @@ -87,77 +118,96 @@ msgid "" "fetchone` method to retrieve a single matching row, or call :meth:`~Cursor." "fetchall` to get a list of the matching rows." msgstr "" +"Pour récupérer des données après avoir exécuté une instruction SELECT, vous " +"pouvez traiter le curseur comme: term: `iterator`, appeler la méthode du " +"curseur: meth:` ~ Cursor.fetchone` pour récupérer une seule ligne " +"correspondante ou appeler: meth: ` ~ Cursor.fetchall` pour obtenir une liste " +"des lignes correspondantes." #: ../Doc/library/sqlite3.rst:89 msgid "This example uses the iterator form::" -msgstr "" +msgstr "Cet exemple utilise la forme itérateur::" #: ../Doc/library/sqlite3.rst:104 msgid "https://github.com/ghaering/pysqlite" -msgstr "" +msgstr "https://github.com/ghaering/pysqlite" #: ../Doc/library/sqlite3.rst:103 msgid "" "The pysqlite web page -- sqlite3 is developed externally under the name " "\"pysqlite\"." msgstr "" +"La page Web pysqlite - sqlite3 est développée en externe sous le nom " +"\"pysqlite\"." #: ../Doc/library/sqlite3.rst:108 msgid "https://www.sqlite.org" -msgstr "" +msgstr "https://www.sqlite.org" #: ../Doc/library/sqlite3.rst:107 msgid "" "The SQLite web page; the documentation describes the syntax and the " "available data types for the supported SQL dialect." msgstr "" +"Dans la page Web de SQLite, la documentation décrit la syntaxe et les types " +"de données disponibles qui sont supporté et pris en charge par SQL." #: ../Doc/library/sqlite3.rst:111 msgid "https://www.w3schools.com/sql/" -msgstr "" +msgstr "https://www.w3schools.com/sql/" #: ../Doc/library/sqlite3.rst:111 msgid "Tutorial, reference and examples for learning SQL syntax." -msgstr "" +msgstr "Tutoriel, référence et exemples pour apprendre la syntaxe SQL." #: ../Doc/library/sqlite3.rst:113 msgid ":pep:`249` - Database API Specification 2.0" -msgstr "" +msgstr ":pep:`249` -Spécification de la Database API 2.0" #: ../Doc/library/sqlite3.rst:114 msgid "PEP written by Marc-André Lemburg." -msgstr "" +msgstr "PEP écrit par Marc-André Lemburg." #: ../Doc/library/sqlite3.rst:120 msgid "Module functions and constants" -msgstr "" +msgstr "Fonctions et constantes du module" #: ../Doc/library/sqlite3.rst:125 msgid "" "The version number of this module, as a string. This is not the version of " "the SQLite library." msgstr "" +"Le numéro de version de ce module, sous forme de chaîne. Ce n'est pas la " +"version de la bibliothèque SQLite." #: ../Doc/library/sqlite3.rst:131 msgid "" "The version number of this module, as a tuple of integers. This is not the " "version of the SQLite library." msgstr "" +"Le numéro de version de ce module, sous forme de tuple d'entiers. Ce n'est " +"pas la version de la bibliothèque SQLite." #: ../Doc/library/sqlite3.rst:137 msgid "The version number of the run-time SQLite library, as a string." msgstr "" +"Le numéro de version de la bibliothèque d'exécution SQLite, sous forme de " +"chaîne." #: ../Doc/library/sqlite3.rst:142 msgid "" "The version number of the run-time SQLite library, as a tuple of integers." msgstr "" +"Le numéro de version de la bibliothèque d'exécution SQLite, sous forme " +"d'entier" #: ../Doc/library/sqlite3.rst:147 ../Doc/library/sqlite3.rst:160 msgid "" "This constant is meant to be used with the *detect_types* parameter of the :" "func:`connect` function." msgstr "" +"Cette constante est destinée à être utilisée avec le paramètre * " +"detect_types * de la fonction: func: `connect`." #: ../Doc/library/sqlite3.rst:150 msgid "" @@ -168,6 +218,12 @@ msgid "" "look into the converters dictionary and use the converter function " "registered for that type there." msgstr "" +"Si vous définissez le module: mod: `sqlite3` analysera le type de donnée " +"déclarée pour chaque colonne. Il analysera le type de données déclaré, par " +"exemple pour \"clé primaire entière\", il analysera en temps qu'entier les " +"nombres comme 10, et ils seront tagué comme \"nombre\". Ensuite, pour cette " +"colonne, il examinera le dictionnaire et utilisera la fonction de " +"convertisseur pour enregistrer ce type donnée." #: ../Doc/library/sqlite3.rst:163 msgid "" @@ -181,12 +237,24 @@ msgid "" "parse out everything until the first blank for the column name: the column " "name would simply be \"x\"." msgstr "" +"Permet à l’interface SQLite d'analyser le nom pour chaque colonne. Il y " +"cherchera une chaîne formée [mytype], puis décidera de quel type est la " +"colonne ‘mytype’. Il essaiera de trouver une entrée de 'mytype' dans le " +"dictionnaire , puis utilisera la fonction de convertisseur qui s'y trouve " +"pour renvoyer la valeur. Le nom de colonne trouvé dans: attr: `Cursor." +"description` n'est que le premier mot du nom de colonne, par exemple si vous " +"utilisez quelque chose comme «x [date / heure]» dans votre code SQL, nous " +"analyserons tout jusqu'au dernier blanc du nom de la colonne: le nom de la " +"colonne sera simplement «x»." #: ../Doc/library/sqlite3.rst:175 msgid "" "Opens a connection to the SQLite database file *database*. By default " "returns a :class:`Connection` object, unless a custom *factory* is given." msgstr "" +"Ouvre une connexion à la base de données SQLite * database *. Par défaut, " +"cette commande retourne un objet: class: `Connection`, sauf si la requête " +"est personnalisée." #: ../Doc/library/sqlite3.rst:178 msgid "" @@ -936,11 +1004,11 @@ msgstr "Type Python" #: ../Doc/library/sqlite3.rst:857 ../Doc/library/sqlite3.rst:874 msgid "SQLite type" -msgstr "" +msgstr "SQLite type" #: ../Doc/library/sqlite3.rst:859 ../Doc/library/sqlite3.rst:876 msgid ":const:`None`" -msgstr "" +msgstr ":const:`None`" #: ../Doc/library/sqlite3.rst:859 ../Doc/library/sqlite3.rst:876 msgid "``NULL``" @@ -964,7 +1032,7 @@ msgstr "``REAL``" #: ../Doc/library/sqlite3.rst:865 msgid ":class:`str`" -msgstr "" +msgstr ":class:`str`" #: ../Doc/library/sqlite3.rst:865 ../Doc/library/sqlite3.rst:882 msgid "``TEXT``" @@ -972,7 +1040,7 @@ msgstr "``TEXT``" #: ../Doc/library/sqlite3.rst:867 ../Doc/library/sqlite3.rst:885 msgid ":class:`bytes`" -msgstr "" +msgstr ":class:`bytes`" #: ../Doc/library/sqlite3.rst:867 ../Doc/library/sqlite3.rst:885 msgid "``BLOB``" From 46d241caf4f6c49b7ebe67463bb664c4e6f6be32 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 16:00:26 +0100 Subject: [PATCH 079/121] Proofreadig sqlite3 --- library/sqlite3.po | 125 ++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 64 deletions(-) diff --git a/library/sqlite3.po b/library/sqlite3.po index a0db0295e..40a07f9df 100644 --- a/library/sqlite3.po +++ b/library/sqlite3.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2019-01-11 23:12+0100\n" +"PO-Revision-Date: 2019-03-26 15:55+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -17,11 +17,11 @@ msgstr "" #: ../Doc/library/sqlite3.rst:2 msgid ":mod:`sqlite3` --- DB-API 2.0 interface for SQLite databases" -msgstr ":mod:`sqlite3` --- Interface DB-API 2.0 pour SQLite databases" +msgstr ":mod:`sqlite3` — Interface DB-API 2.0 pour bases de données SQLite" #: ../Doc/library/sqlite3.rst:9 msgid "**Source code:** :source:`Lib/sqlite3/`" -msgstr "**Source code:** :source:`Lib/sqlite3/`" +msgstr "**Code source :** :source:`Lib/sqlite3/`" #: ../Doc/library/sqlite3.rst:13 msgid "" @@ -33,12 +33,12 @@ msgid "" "PostgreSQL or Oracle." msgstr "" "SQLite est une bibliothèque C qui fournit une base de données légère sur " -"disque ne nécessitant pas de processus serveur distinct et permet d'accéder " -"à la base de données à l'aide d'une variante non standard du langage de " -"requête SQL. Certaines applications peuvent utiliser SQLite pour le stockage " -"de données interne. Il est également possible de créer un une application " -"prototype à l'aide de SQLite, puis de transférer le code dans une base de " -"données plus grande telle que PostgreSQL ou Oracle." +"disque ne nécessitant pas de processus serveur et qui utilise une variante " +"(non standard) du langage de requête SQL pour accéder aux données. Certaines " +"applications peuvent utiliser SQLite pour le stockage de données internes. " +"Il est également possible de créer une application prototype utilisant " +"SQLite, puis de modifier le code pour utiliser une base de données plus " +"robuste telle que PostgreSQL ou Oracle." #: ../Doc/library/sqlite3.rst:20 msgid "" @@ -46,8 +46,8 @@ msgid "" "interface compliant with the DB-API 2.0 specification described by :pep:" "`249`." msgstr "" -"Le sqlite3 module a été écrit par Gerhard Häring. Il fournit une interface " -"SQL conforme à la spécification DB-API 2.0 décrite par: pep: `249`." +"Le module *sqlite3* a été écrit par Gerhard Häring. Il fournit une " +"interface SQL conforme à la spécification DB-API 2.0 décrite par :pep:`249`." #: ../Doc/library/sqlite3.rst:23 msgid "" @@ -55,33 +55,33 @@ msgid "" "represents the database. Here the data will be stored in the :file:`example." "db` file::" msgstr "" -"Pour utiliser le module, vous devez d’abord créer une class: `Connection` " -"qui représente la base de données. Ici les données seront stockées dans: " -"file: `example.db` file ::" +"Pour utiliser le module, vous devez d’abord créer une :class:`Connection` " +"qui représente la base de données. Dans cet exemple, les données sont " +"stockées dans le fichier :file:`example.db` ::" #: ../Doc/library/sqlite3.rst:30 msgid "" "You can also supply the special name ``:memory:`` to create a database in " "RAM." msgstr "" -"Vous pouvez également fournir le nom spécial ``: memory: `` pour créer une " -"base de données dans la RAM." +"Vous pouvez également fournir le nom spécial ``:memory:`` pour créer une " +"base de données dans la mémoire vive." #: ../Doc/library/sqlite3.rst:32 msgid "" "Once you have a :class:`Connection`, you can create a :class:`Cursor` " "object and call its :meth:`~Cursor.execute` method to perform SQL commands::" msgstr "" -"Une fois que vous avez une classe: `Connection`, vous pouvez créer un objet: " -"classe:` Cursor` et appeler sa méthode: meth: `~ Cursor.execute` pour " -"exécuter les commandes SQL ::" +"Une fois que vous avez une instance de :class:`Connection`, vous pouvez " +"créer un objet :class:`Cursor` et appeler sa méthode :meth:`~Cursor.execute` " +"pour exécuter les commandes SQL ::" #: ../Doc/library/sqlite3.rst:51 msgid "" "The data you've saved is persistent and is available in subsequent sessions::" msgstr "" "Les données que vous avez sauvegardées sont persistantes et disponibles dans " -"les sessions suivantes:" +"les sessions suivantes ::" #: ../Doc/library/sqlite3.rst:57 msgid "" @@ -90,12 +90,11 @@ msgid "" "doing so is insecure; it makes your program vulnerable to an SQL injection " "attack (see https://xkcd.com/327/ for humorous example of what can go wrong)." msgstr "" -"Habituellement, vos opérations SQL devront utiliser les valeurs des " -"variables Python. Vous ne devriez pas assembler votre requête à l'aide des " -"opérations sur les chaînes de caractères de Python, car cela n'est pas sûr. " -"cela rend votre programme vulnérable à une attaque par injection SQL (voir " -"https://xkcd.com/327/ pour voir un exemple amusant de ce qui peut mal " -"tourner)." +"Habituellement, vos opérations SQL utilisent les valeurs de variables " +"Python. Vous ne devez pas assembler votre requête à l'aide des opérations " +"sur les chaînes de caractères de Python, car cela n'est pas sûr. Cela rend " +"votre programme vulnérable à une attaque par injection SQL (voir https://" +"xkcd.com/327/ pour un exemple amusant de ce qui peut mal tourner)." #: ../Doc/library/sqlite3.rst:62 msgid "" @@ -105,11 +104,11 @@ msgid "" "method. (Other database modules may use a different placeholder, such as ``" "%s`` or ``:1``.) For example::" msgstr "" -"A la place, substituer le paramètre de DB-API . Mettez ``? `` Comme espace " -"réservé partout où vous voulez utiliser une valeur, puis fournissez un tuple " -"de valeurs comme second argument de la méthode du curseur: meth: `~ Cursor." -"execute`. (D'autres modules de base de données peuvent utiliser un espace " -"réservé différent, tel que ``% s`` ou ``: 1``.) Par exemple ::" +"À la place, utilisez la capacité DB-API de substitution des paramètres. " +"Placez un ``?`` comme indicateur partout où vous voulez utiliser une valeur, " +"puis fournissez un *tuple* de valeurs comme second argument de la méthode :" +"meth:`~Cursor.execute`. D'autres modules de base de données peuvent utiliser " +"un espace réservé différent, tel que ``%s`` ou ``:1``. Par exemple ::" #: ../Doc/library/sqlite3.rst:84 msgid "" @@ -118,15 +117,15 @@ msgid "" "fetchone` method to retrieve a single matching row, or call :meth:`~Cursor." "fetchall` to get a list of the matching rows." msgstr "" -"Pour récupérer des données après avoir exécuté une instruction SELECT, vous " -"pouvez traiter le curseur comme: term: `iterator`, appeler la méthode du " -"curseur: meth:` ~ Cursor.fetchone` pour récupérer une seule ligne " -"correspondante ou appeler: meth: ` ~ Cursor.fetchall` pour obtenir une liste " -"des lignes correspondantes." +"Pour récupérer des données après avoir exécuté une instruction *SELECT*, " +"vous pouvez considérer le curseur comme un :term:`itérateur `, " +"appeler la méthode du curseur :meth:`~Cursor.fetchone` pour récupérer une " +"seule ligne correspondante ou appeler :meth:`~Cursor.fetchall` pour obtenir " +"une liste des lignes correspondantes." #: ../Doc/library/sqlite3.rst:89 msgid "This example uses the iterator form::" -msgstr "Cet exemple utilise la forme itérateur::" +msgstr "Cet exemple utilise la forme itérateur ::" #: ../Doc/library/sqlite3.rst:104 msgid "https://github.com/ghaering/pysqlite" @@ -137,8 +136,8 @@ msgid "" "The pysqlite web page -- sqlite3 is developed externally under the name " "\"pysqlite\"." msgstr "" -"La page Web pysqlite - sqlite3 est développée en externe sous le nom " -"\"pysqlite\"." +"La page web de *pysqlite* — *sqlite3* est développée sur un site tiers sous " +"le nom *pysqlite*." #: ../Doc/library/sqlite3.rst:108 msgid "https://www.sqlite.org" @@ -150,7 +149,7 @@ msgid "" "available data types for the supported SQL dialect." msgstr "" "Dans la page Web de SQLite, la documentation décrit la syntaxe et les types " -"de données disponibles qui sont supporté et pris en charge par SQL." +"de données disponibles qui sont pris en charge par cette variante SQL." #: ../Doc/library/sqlite3.rst:111 msgid "https://www.w3schools.com/sql/" @@ -162,11 +161,11 @@ msgstr "Tutoriel, référence et exemples pour apprendre la syntaxe SQL." #: ../Doc/library/sqlite3.rst:113 msgid ":pep:`249` - Database API Specification 2.0" -msgstr ":pep:`249` -Spécification de la Database API 2.0" +msgstr ":pep:`249` — Spécifications de l'API 2.0 pour la base de données" #: ../Doc/library/sqlite3.rst:114 msgid "PEP written by Marc-André Lemburg." -msgstr "PEP écrit par Marc-André Lemburg." +msgstr "PEP écrite par Marc-André Lemburg." #: ../Doc/library/sqlite3.rst:120 msgid "Module functions and constants" @@ -185,8 +184,8 @@ msgid "" "The version number of this module, as a tuple of integers. This is not the " "version of the SQLite library." msgstr "" -"Le numéro de version de ce module, sous forme de tuple d'entiers. Ce n'est " -"pas la version de la bibliothèque SQLite." +"Le numéro de version de ce module, sous forme d'un n-uplet d'entiers. Ce " +"n'est pas la version de la bibliothèque SQLite." #: ../Doc/library/sqlite3.rst:137 msgid "The version number of the run-time SQLite library, as a string." @@ -199,15 +198,15 @@ msgid "" "The version number of the run-time SQLite library, as a tuple of integers." msgstr "" "Le numéro de version de la bibliothèque d'exécution SQLite, sous forme " -"d'entier" +"d'entier." #: ../Doc/library/sqlite3.rst:147 ../Doc/library/sqlite3.rst:160 msgid "" "This constant is meant to be used with the *detect_types* parameter of the :" "func:`connect` function." msgstr "" -"Cette constante est destinée à être utilisée avec le paramètre * " -"detect_types * de la fonction: func: `connect`." +"Cette constante est destinée à être utilisée avec le paramètre " +"*detect_types* de la fonction :func:`connect`." #: ../Doc/library/sqlite3.rst:150 msgid "" @@ -218,12 +217,11 @@ msgid "" "look into the converters dictionary and use the converter function " "registered for that type there." msgstr "" -"Si vous définissez le module: mod: `sqlite3` analysera le type de donnée " -"déclarée pour chaque colonne. Il analysera le type de données déclaré, par " -"exemple pour \"clé primaire entière\", il analysera en temps qu'entier les " -"nombres comme 10, et ils seront tagué comme \"nombre\". Ensuite, pour cette " -"colonne, il examinera le dictionnaire et utilisera la fonction de " -"convertisseur pour enregistrer ce type donnée." +"Si elle est définie, le module :mod:`sqlite3` analyse le type de donnée " +"déclarée pour chaque colonne. Il déduit le type du premier mot de la " +"déclaration, par exemple de *integer primary key* il gardera *integer*, ou " +"de *number(10)* il gardera *number*. Ensuite, pour cette colonne, il " +"utilisera une fonction de conversion du dictionnaire des convertisseurs." #: ../Doc/library/sqlite3.rst:163 msgid "" @@ -238,23 +236,22 @@ msgid "" "name would simply be \"x\"." msgstr "" "Permet à l’interface SQLite d'analyser le nom pour chaque colonne. Il y " -"cherchera une chaîne formée [mytype], puis décidera de quel type est la " -"colonne ‘mytype’. Il essaiera de trouver une entrée de 'mytype' dans le " -"dictionnaire , puis utilisera la fonction de convertisseur qui s'y trouve " -"pour renvoyer la valeur. Le nom de colonne trouvé dans: attr: `Cursor." -"description` n'est que le premier mot du nom de colonne, par exemple si vous " -"utilisez quelque chose comme «x [date / heure]» dans votre code SQL, nous " -"analyserons tout jusqu'au dernier blanc du nom de la colonne: le nom de la " -"colonne sera simplement «x»." +"cherchera une chaîne comme ``[mytype]`` indiquant que la colonne est de type " +"``mytype``. Il essaiera de trouver une entrée *mytype* dans le dictionnaire, " +"puis utilisera la fonction de conversion qui s'y trouve pour renvoyer la " +"valeur. Le nom de colonne donnée à :attr:`Cursor.description` n'est alors " +"que le premier mot du nom de la colonne, par exemple si vous utilisez ``'as " +"\\\"x [datetime]\\\"'`` dans votre code SQL, le nom de la colonne sera " +"simplement *x*." #: ../Doc/library/sqlite3.rst:175 msgid "" "Opens a connection to the SQLite database file *database*. By default " "returns a :class:`Connection` object, unless a custom *factory* is given." msgstr "" -"Ouvre une connexion à la base de données SQLite * database *. Par défaut, " -"cette commande retourne un objet: class: `Connection`, sauf si la requête " -"est personnalisée." +"Ouvre une connexion à la base de données SQLite *database*. Par défaut, " +"cette commande renvoie un objet :class:`Connection`, sauf si *factory* est " +"donné." #: ../Doc/library/sqlite3.rst:178 msgid "" From 6fc6160deefd3c120836c863a0e6a8c922b3a303 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 16:10:15 +0100 Subject: [PATCH 080/121] Fin de la traduction de tempfile.po Co-Authored-By: Florian Coste --- library/tempfile.po | 91 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 85 insertions(+), 6 deletions(-) diff --git a/library/tempfile.po b/library/tempfile.po index aab0094be..0a8f26e34 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2019-01-11 17:38+0100\n" +"PO-Revision-Date: 2019-01-13 22:58+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -206,7 +206,7 @@ msgstr "" #: ../Doc/library/tempfile.rst:104 msgid "the truncate method now accepts a ``size`` argument." -msgstr "La méthode de troncature accepte maintenant un argument ``size``." +msgstr "la méthode de troncature accepte maintenant un argument ``size``." #: ../Doc/library/tempfile.rst:110 msgid "" @@ -254,12 +254,23 @@ msgid "" "executable by no one. The file descriptor is not inherited by child " "processes." msgstr "" +"Crées un fichier temporaire de la manière la plus sécurisée qu'il soit. Il " +"n'y a pas de situation de compétition (``race condition``) au moment de la " +"création de fichier, en supposant que la plateforme implémente correctement " +"l'option :const:`os.O_EXCL` pour :func:`os.open`. Le fichier est seulement " +"accessible en lecture et écriture par l'ID de l'utilisateur créateur. Si la " +"plateforme utilise des bits de permissions pour indiquer si le fichier est " +"exécutable, alors le fichier n'est exécutable par personne. Le descripteur " +"de fichier n'est pas hérité par les processus fils." #: ../Doc/library/tempfile.rst:137 msgid "" "Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible for " "deleting the temporary file when done with it." msgstr "" +"À la différence de :func:`TemporaryFile`, l'utilisateur de :func:" +"`mkstemp` est responsable de la suppression du fichier temporaire quand il " +"en a fini avec lui." #: ../Doc/library/tempfile.rst:140 msgid "" @@ -268,6 +279,10 @@ msgid "" "between the file name and the suffix; if you need one, put it at the " "beginning of *suffix*." msgstr "" +"Si *suffix* ne vaut pas ``None``, le nom de fichier se terminera avec ce " +"suffixe, sinon il n'y aura pas de suffix. :func:`mkstemp` ne mets pas de " +"point entre le nom du fichier et le suffixe. Si vous en avez besoin, mettez " +"le point au début de *suffix*." #: ../Doc/library/tempfile.rst:145 msgid "" @@ -275,6 +290,9 @@ msgid "" "otherwise, a default prefix is used. The default is the return value of :" "func:`gettempprefix` or :func:`gettempprefixb`, as appropriate." msgstr "" +"Si *prefix* ne vaut pas ``None``, le nom de fichier commencera avec ce " +"préfixe, sinon un préfixe par défaut est utilisé. La valeur par défaut est " +"la valeur retournée par :func:`gettempprefix` ou :func:`gettempprefixb`." #: ../Doc/library/tempfile.rst:149 msgid "" @@ -286,6 +304,14 @@ msgid "" "any nice properties, such as not requiring quoting when passed to external " "commands via ``os.popen()``." msgstr "" +"Si *dir* ne vaut pas ``Ǹone``, le fichier sera crée dans ce répertoire, " +"autrement, un répertoire par défaut sera utilisé. Le répertoire par défaut " +"est choisi depuis une liste dépendante de la plateforme, mais l'utilisateur " +"de l'application peut contrôler l'emplacement du répertoire en spécifiant " +"les variables d'environnement *TMPDIR*, *TEMP* ou *TMP*. Il n'y a pas de " +"garantie que le nom de fichier généré aura de bonnes propriétés telles que " +"ne pas avoir besoin de le mettre entre guillemets lorsque celui-ci est passé " +"à des commandes externes via ``os.popen()``." #: ../Doc/library/tempfile.rst:157 msgid "" @@ -294,12 +320,19 @@ msgid "" "str. If you want to force a bytes return value with otherwise default " "behavior, pass ``suffix=b''``." msgstr "" +"Si aucun des paramètres *suffix*, *prefix* et *dir* ne valent `Ǹone``, ils " +"doivent être du même type. S'ils sont de types **bytes**, la valeur renvoyé " +"sera en **bytes** au lieu de **str**. Si vous voulez forcer la valeur " +"renvoyé en **bytes**, passez ``suffix=b\"``." #: ../Doc/library/tempfile.rst:163 msgid "" "If *text* is specified, it indicates whether to open the file in binary mode " "(the default) or text mode. On some platforms, this makes no difference." msgstr "" +"Si *test* est spécifié, cela indique si le fichier doit être ouvert en mode " +"binaire (par défaut) ou en mode texte. Sur certaines plateformes, cela ne " +"fais aucune différence." #: ../Doc/library/tempfile.rst:167 msgid "" @@ -315,6 +348,10 @@ msgid "" "and *prefix* now accept and default to ``None`` to cause an appropriate " "default value to be used." msgstr "" +"*suffix*, *prefix*, et *dir* peuvent maintenant être spécifiés en *bytes* " +"pour obtenir un résultat en *bytes*. Avant cela, le type *str* était le seul " +"autorisé. *suffix* et *prefix* acceptent maintenant la valeur par défaut " +"``None`` pour que la valeur par défaut appropriée soit utilisé." #: ../Doc/library/tempfile.rst:180 msgid "" @@ -322,22 +359,30 @@ msgid "" "no race conditions in the directory's creation. The directory is readable, " "writable, and searchable only by the creating user ID." msgstr "" +"Crées un répertoire temporaire de la manière la plus sécurisée qu'il soit. " +"Il n'y a pas de situation de compétition (``race condition``) au moment de " +"la création du répertoire. Le répertoire est accessible en lecture, écriture " +"uniquement pour l'ID de l'utilisateur créateur." #: ../Doc/library/tempfile.rst:184 msgid "" "The user of :func:`mkdtemp` is responsible for deleting the temporary " "directory and its contents when done with it." msgstr "" +"L'utilisateur de :func:`mkdtemp` est responsable de la suppression du " +"répertoire temporaire et de son contenu quand il en a fini avec lui." #: ../Doc/library/tempfile.rst:187 msgid "" "The *prefix*, *suffix*, and *dir* arguments are the same as for :func:" "`mkstemp`." msgstr "" +"Les arguments *prefix*, *suffix*, et *dir* sont les mêmes que pour :func:" +"`mkstemp`." #: ../Doc/library/tempfile.rst:190 msgid ":func:`mkdtemp` returns the absolute pathname of the new directory." -msgstr "" +msgstr ":func:`mkdtemp` retourne le chemin absolu du nouveau répertoire." #: ../Doc/library/tempfile.rst:201 msgid "" @@ -405,17 +450,20 @@ msgstr "" #: ../Doc/library/tempfile.rst:229 msgid "Same as :func:`gettempdir` but the return value is in bytes." -msgstr "" +msgstr "Idem que :func:`gettempdir` mais la valeur retournée est en *bytes*." #: ../Doc/library/tempfile.rst:235 msgid "" "Return the filename prefix used to create temporary files. This does not " "contain the directory component." msgstr "" +"Retourne le préfixe utilisé du nom de fichier pour créer les fichiers " +"temporaires. Cela ne contient pas le nom du répertoire." #: ../Doc/library/tempfile.rst:240 msgid "Same as :func:`gettempprefix` but the return value is in bytes." msgstr "" +"Idem que :func:`gettempprefix` mais la valeur retournée est en *bytes*." #: ../Doc/library/tempfile.rst:244 msgid "" @@ -425,12 +473,21 @@ msgid "" "this module take a *dir* argument which can be used to specify the directory " "and this is the recommended approach." msgstr "" +"Le module utilise une variable globale pour stocker le nom du répertoire " +"utilisé pour les fichiers temporaires renvoyés par :func:`gettempdir`. On " +"peut directement utiliser la variable globale pour surcharger le processus " +"de sélection, mais ceci est déconseillé. Toutes les fonctions de ce module " +"prennent un argument *dir qui peut être utilisé pour spécifier le " +"répertoire. Il s'agit de la méthode recommandé." #: ../Doc/library/tempfile.rst:252 msgid "" "When set to a value other than ``None``, this variable defines the default " "value for the *dir* argument to the functions defined in this module." msgstr "" +"Quand une valeur autre que ``None`` est spécifiée, cette variable définit la " +"valeur par défaut pour l'argument *dir* des fonctions définies dans ce " +"module." #: ../Doc/library/tempfile.rst:256 msgid "" @@ -438,6 +495,9 @@ msgid "" "functions except :func:`gettempprefix` it is initialized following the " "algorithm described in :func:`gettempdir`." msgstr "" +"Si ``tempdir`` vaut ``None`` (par défaut) pour n'importe quelle des " +"fonctions ci-dessus, sauf :func:`gettempprefix`, la variable est initialisée " +"suivant l'algorithme décrit dans :func:`gettempdir`." #: ../Doc/library/tempfile.rst:263 msgid "Examples" @@ -446,10 +506,12 @@ msgstr "Exemples" #: ../Doc/library/tempfile.rst:265 msgid "Here are some examples of typical usage of the :mod:`tempfile` module::" msgstr "" +"Voici quelques exemples classiques d'utilisation du module :mod:`tempfile` " +"module::" #: ../Doc/library/tempfile.rst:296 msgid "Deprecated functions and variables" -msgstr "" +msgstr "Fonctions et variables dépréciées" #: ../Doc/library/tempfile.rst:298 msgid "" @@ -461,10 +523,18 @@ msgid "" "to combine the two steps and create the file immediately. This approach is " "used by :func:`mkstemp` and the other functions described above." msgstr "" +"Historiquement, la méthode pour créer des fichiers temporaires consistait à " +"générer un nom de fichier avec la fonction :func:`mktemp` et créer un " +"fichier en utilisant ce nom. Malheureusement, cette méthode n'est pas fiable " +"car un autre processus peut créer un fichier avec ce nom entre l'appel à la " +"fonction :func:`mktemp` et la tentative de création de fichier par le " +"premier processus en cours. La solution est de combiner les deux étapes et " +"de créer le fichier immédiatement. Cette approche est utilisée par :func:" +"`mkstemp` et les autres fonctions décrites plus haut." #: ../Doc/library/tempfile.rst:309 msgid "Use :func:`mkstemp` instead." -msgstr "" +msgstr "Utilisez :func:`mkstemp` à la place." #: ../Doc/library/tempfile.rst:312 msgid "" @@ -473,6 +543,10 @@ msgid "" "those of :func:`mkstemp`, except that bytes file names, ``suffix=None`` and " "``prefix=None`` are not supported." msgstr "" +"Retourne le chemin absolu d'un fichier qui n'existe pas lorsque l'appel est " +"fait. Les arguments *prefix*, *suffix*, et *dir* sont similaires à ceux de :" +"func:`mkstemp` mais les noms de fichiers en _bytes_, ``sufix=None`` et " +"``prefix=None`` ne sont pas supportés." #: ../Doc/library/tempfile.rst:319 msgid "" @@ -482,3 +556,8 @@ msgid "" "easily with :func:`NamedTemporaryFile`, passing it the ``delete=False`` " "parameter::" msgstr "" +"Utiliser cette fonction peut introduire un trou de sécurité dans votre " +"programme. Le temps que vous fassiez quelque chose avec le nom de fichier " +"retourné, quelqu'un d'autre peut vous avoir botté les fesses avant. " +"L'utilisation de :func:`mktemp` peut être remplacé facilement avec :func:" +"`NamedTemporaryFile` en y passant le paramètre ``delete=False``::" From 0cfaf7008dc4fe312bc397f83c5cc162c4d34190 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 16:54:34 +0100 Subject: [PATCH 081/121] Proofreading tempfile --- library/tempfile.po | 129 ++++++++++++++++++++++---------------------- 1 file changed, 63 insertions(+), 66 deletions(-) diff --git a/library/tempfile.po b/library/tempfile.po index 0a8f26e34..c6b2fa175 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2019-01-13 22:58+0100\n" +"PO-Revision-Date: 2019-03-26 16:52+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -177,7 +177,7 @@ msgid "" msgstr "" "Cette fonction se comporte exactement comme :func:`TemporaryFile`, à " "l'exception que les données sont stockées en mémoire jusqu'à ce que leur " -"taille dépasse *max_size*, or que la méthode :func:`fileno` soit appelée. À " +"taille dépasse *max_size*, ou que la méthode :func:`fileno` soit appelée. À " "ce moment, le contenu est écrit sur disque et le fonctionnement redevient " "similaire à celui de :func:`TemporaryFile`." @@ -198,11 +198,11 @@ msgid "" "object can be used in a :keyword:`with` statement, just like a normal file." msgstr "" "L'objet renvoyé est un objet fichier-compatible où l'attribut :attr:`_file` " -"est soit un objet :class:`io.BytesIO` ou :class:`io.StringIO` (cela dépend " -"du *mode* binaire ou texte spécifié) soit un véritable fichier, si la " -"fonction :func:`rollover` a été appelée. Cet objet fichier-compatible peut " -"être utilisé dans un gestionnaire de contexte (instruction :keyword:`with`), " -"juste comme un fichier normal." +"est soit un objet :class:`io.BytesIO` soit un objet :class:`io.StringIO` (en " +"fonction du *mode*) soit un véritable fichier, si la fonction :func:" +"`rollover` a été appelée. Cet objet fichier-compatible peut être utilisé " +"dans un gestionnaire de contexte (instruction :keyword:`with`), comme un " +"fichier normal." #: ../Doc/library/tempfile.rst:104 msgid "the truncate method now accepts a ``size`` argument." @@ -216,12 +216,11 @@ msgid "" "of the temporary directory object the newly created temporary directory and " "all its contents are removed from the filesystem." msgstr "" -"Cette fonction crée de manière sécurisée un répertoire temporaire utilisant " +"Cette fonction crée un répertoire temporaire de manière sécurisée utilisant " "les mêmes règles que :func:`mkdtemp`. L'objet renvoyé peut être utilisé " "comme un gestionnaire de contexte (voir :ref:`tempfile-examples`). À la " -"sortie du contexte d’exécution ou à la destruction du répertoire temporaire, " -"le nouvellement crée répertoire temporaire et tout son contenu sont " -"supprimés du système de fichier." +"sortie du contexte d’exécution ou à la destruction de l'objet, le répertoire " +"temporaire et tout son contenu sont supprimés du système de fichiers." #: ../Doc/library/tempfile.rst:116 msgid "" @@ -230,11 +229,10 @@ msgid "" "the :attr:`name` will be assigned to the target of the :keyword:`!as` clause " "in the :keyword:`with` statement, if there is one." msgstr "" -"Le nom du répertoire peut être récupéré depuis l'attribut :attr:`name` de " -"l'objet renvoyé. \tQuand l'objet retourné est utilisé en comme gestionnaire " -"de contexte, le :attr:`name` aura pour valeur la cible spécifiée par la " -"clause :keyword:`!as` de l'instruction :keyword:`with`, si elle est " -"spécifiée." +"Le nom du répertoire peut être récupéré via l'attribut :attr:`name` de " +"l'objet renvoyé. Quand l'objet renvoyé est utilisé comme gestionnaire de " +"contexte, l'attribut :attr:`name` sera lié au nom donné à la clause :keyword:" +"`!as` de l'instruction :keyword:`with`, si elle est spécifiée." #: ../Doc/library/tempfile.rst:121 msgid "" @@ -254,23 +252,23 @@ msgid "" "executable by no one. The file descriptor is not inherited by child " "processes." msgstr "" -"Crées un fichier temporaire de la manière la plus sécurisée qu'il soit. Il " -"n'y a pas de situation de compétition (``race condition``) au moment de la " -"création de fichier, en supposant que la plateforme implémente correctement " -"l'option :const:`os.O_EXCL` pour :func:`os.open`. Le fichier est seulement " -"accessible en lecture et écriture par l'ID de l'utilisateur créateur. Si la " -"plateforme utilise des bits de permissions pour indiquer si le fichier est " -"exécutable, alors le fichier n'est exécutable par personne. Le descripteur " -"de fichier n'est pas hérité par les processus fils." +"Crée un fichier temporaire de la manière la plus sécurisée qui soit. Il n'y " +"a pas d'accès concurrent (``race condition``) au moment de la création du " +"fichier, en supposant que la plateforme implémente correctement l'option :" +"const:`os.O_EXCL` pour :func:`os.open`. Le fichier est seulement accessible " +"en lecture et écriture par l'ID de l'utilisateur créateur. Si la plateforme " +"utilise des bits de permissions pour indiquer si le fichier est exécutable, " +"alors le fichier n'est exécutable par personne. Le descripteur de fichier " +"n'est pas hérité par les processus fils." #: ../Doc/library/tempfile.rst:137 msgid "" "Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible for " "deleting the temporary file when done with it." msgstr "" -"À la différence de :func:`TemporaryFile`, l'utilisateur de :func:" -"`mkstemp` est responsable de la suppression du fichier temporaire quand il " -"en a fini avec lui." +"À la différence de :func:`TemporaryFile`, l'utilisateur de :func:`mkstemp` " +"est responsable de la suppression du fichier temporaire quand il n'en a plus " +"besoin." #: ../Doc/library/tempfile.rst:140 msgid "" @@ -280,7 +278,7 @@ msgid "" "beginning of *suffix*." msgstr "" "Si *suffix* ne vaut pas ``None``, le nom de fichier se terminera avec ce " -"suffixe, sinon il n'y aura pas de suffix. :func:`mkstemp` ne mets pas de " +"suffixe, sinon il n'y aura pas de suffixe. :func:`mkstemp` ne met pas de " "point entre le nom du fichier et le suffixe. Si vous en avez besoin, mettez " "le point au début de *suffix*." @@ -304,7 +302,7 @@ msgid "" "any nice properties, such as not requiring quoting when passed to external " "commands via ``os.popen()``." msgstr "" -"Si *dir* ne vaut pas ``Ǹone``, le fichier sera crée dans ce répertoire, " +"Si *dir* ne vaut pas ``None``, le fichier sera créé dans ce répertoire, " "autrement, un répertoire par défaut sera utilisé. Le répertoire par défaut " "est choisi depuis une liste dépendante de la plateforme, mais l'utilisateur " "de l'application peut contrôler l'emplacement du répertoire en spécifiant " @@ -320,19 +318,19 @@ msgid "" "str. If you want to force a bytes return value with otherwise default " "behavior, pass ``suffix=b''``." msgstr "" -"Si aucun des paramètres *suffix*, *prefix* et *dir* ne valent `Ǹone``, ils " -"doivent être du même type. S'ils sont de types **bytes**, la valeur renvoyé " -"sera en **bytes** au lieu de **str**. Si vous voulez forcer la valeur " -"renvoyé en **bytes**, passez ``suffix=b\"``." +"Si l'un des paramètres *suffix*, *prefix* et *dir* n'est pas ``None``, ils " +"doivent être du même type. S'ils sont de type ``bytes``, le nom renvoyée " +"sera de type ``bytes`` plutôt que de type ``str``. Si vous voulez forcer la " +"valeur renvoyée en ``bytes``, passez ``suffix=b''``." #: ../Doc/library/tempfile.rst:163 msgid "" "If *text* is specified, it indicates whether to open the file in binary mode " "(the default) or text mode. On some platforms, this makes no difference." msgstr "" -"Si *test* est spécifié, cela indique si le fichier doit être ouvert en mode " +"Si *text* est spécifié, cela indique si le fichier doit être ouvert en mode " "binaire (par défaut) ou en mode texte. Sur certaines plateformes, cela ne " -"fais aucune différence." +"fait aucune différence." #: ../Doc/library/tempfile.rst:167 msgid "" @@ -348,10 +346,10 @@ msgid "" "and *prefix* now accept and default to ``None`` to cause an appropriate " "default value to be used." msgstr "" -"*suffix*, *prefix*, et *dir* peuvent maintenant être spécifiés en *bytes* " -"pour obtenir un résultat en *bytes*. Avant cela, le type *str* était le seul " -"autorisé. *suffix* et *prefix* acceptent maintenant la valeur par défaut " -"``None`` pour que la valeur par défaut appropriée soit utilisé." +"*suffix*, *prefix*, et *dir* peuvent maintenant être spécifiés en ``bytes`` " +"pour obtenir un résultat en ``bytes``. Avant cela, le type ``str`` était le " +"seul autorisé. *suffix* et *prefix* acceptent maintenant la valeur par " +"défaut ``None`` pour que la valeur par défaut appropriée soit utilisée." #: ../Doc/library/tempfile.rst:180 msgid "" @@ -359,10 +357,10 @@ msgid "" "no race conditions in the directory's creation. The directory is readable, " "writable, and searchable only by the creating user ID." msgstr "" -"Crées un répertoire temporaire de la manière la plus sécurisée qu'il soit. " -"Il n'y a pas de situation de compétition (``race condition``) au moment de " -"la création du répertoire. Le répertoire est accessible en lecture, écriture " -"uniquement pour l'ID de l'utilisateur créateur." +"Crée un répertoire temporaire de la manière la plus sécurisée qu'il soit. Il " +"n'y a pas d'accès concurrent (``race condition``) au moment de la création " +"du répertoire. Le répertoire est accessible en lecture, en écriture, et son " +"contenu lisible uniquement pour l'ID de l'utilisateur créateur." #: ../Doc/library/tempfile.rst:184 msgid "" @@ -370,7 +368,7 @@ msgid "" "directory and its contents when done with it." msgstr "" "L'utilisateur de :func:`mkdtemp` est responsable de la suppression du " -"répertoire temporaire et de son contenu quand il en a fini avec lui." +"répertoire temporaire et de son contenu lorsqu'il n'en a plus besoin." #: ../Doc/library/tempfile.rst:187 msgid "" @@ -382,16 +380,15 @@ msgstr "" #: ../Doc/library/tempfile.rst:190 msgid ":func:`mkdtemp` returns the absolute pathname of the new directory." -msgstr ":func:`mkdtemp` retourne le chemin absolu du nouveau répertoire." +msgstr ":func:`mkdtemp` renvoie le chemin absolu du nouveau répertoire." #: ../Doc/library/tempfile.rst:201 msgid "" "Return the name of the directory used for temporary files. This defines the " "default value for the *dir* argument to all functions in this module." msgstr "" -"Renvoie le nom du répertoire utilisé pour les fichiers temporaires. Cela " -"définit la valeur par défaut pour l'argument *dir* de toutes les fonctions " -"de ce module." +"Renvoie le nom du répertoire utilisé pour les fichiers temporaires. C'est la " +"valeur par défaut pour l'argument *dir* de toutes les fonctions de ce module." #: ../Doc/library/tempfile.rst:205 msgid "" @@ -450,20 +447,21 @@ msgstr "" #: ../Doc/library/tempfile.rst:229 msgid "Same as :func:`gettempdir` but the return value is in bytes." -msgstr "Idem que :func:`gettempdir` mais la valeur retournée est en *bytes*." +msgstr "" +"Similaire à :func:`gettempdir` mais la valeur retournée est en *bytes*." #: ../Doc/library/tempfile.rst:235 msgid "" "Return the filename prefix used to create temporary files. This does not " "contain the directory component." msgstr "" -"Retourne le préfixe utilisé du nom de fichier pour créer les fichiers " +"Renvoie le préfixe de nom de fichier utilisé pour créer les fichiers " "temporaires. Cela ne contient pas le nom du répertoire." #: ../Doc/library/tempfile.rst:240 msgid "Same as :func:`gettempprefix` but the return value is in bytes." msgstr "" -"Idem que :func:`gettempprefix` mais la valeur retournée est en *bytes*." +"Similaire à :func:`gettempprefix` mais la valeur retournée est en *bytes*." #: ../Doc/library/tempfile.rst:244 msgid "" @@ -474,11 +472,11 @@ msgid "" "and this is the recommended approach." msgstr "" "Le module utilise une variable globale pour stocker le nom du répertoire " -"utilisé pour les fichiers temporaires renvoyés par :func:`gettempdir`. On " -"peut directement utiliser la variable globale pour surcharger le processus " +"utilisé pour les fichiers temporaires renvoyés par :func:`gettempdir`. Vous " +"pouvez directement utiliser la variable globale pour surcharger le processus " "de sélection, mais ceci est déconseillé. Toutes les fonctions de ce module " -"prennent un argument *dir qui peut être utilisé pour spécifier le " -"répertoire. Il s'agit de la méthode recommandé." +"prennent un argument *dir* qui peut être utilisé pour spécifier le " +"répertoire. Il s'agit de la méthode recommandée." #: ../Doc/library/tempfile.rst:252 msgid "" @@ -506,12 +504,11 @@ msgstr "Exemples" #: ../Doc/library/tempfile.rst:265 msgid "Here are some examples of typical usage of the :mod:`tempfile` module::" msgstr "" -"Voici quelques exemples classiques d'utilisation du module :mod:`tempfile` " -"module::" +"Voici quelques exemples classiques d'utilisation du module :mod:`tempfile` ::" #: ../Doc/library/tempfile.rst:296 msgid "Deprecated functions and variables" -msgstr "Fonctions et variables dépréciées" +msgstr "Fonctions et variables obsolètes" #: ../Doc/library/tempfile.rst:298 msgid "" @@ -524,7 +521,7 @@ msgid "" "used by :func:`mkstemp` and the other functions described above." msgstr "" "Historiquement, la méthode pour créer des fichiers temporaires consistait à " -"générer un nom de fichier avec la fonction :func:`mktemp` et créer un " +"générer un nom de fichier avec la fonction :func:`mktemp` puis créer un " "fichier en utilisant ce nom. Malheureusement, cette méthode n'est pas fiable " "car un autre processus peut créer un fichier avec ce nom entre l'appel à la " "fonction :func:`mktemp` et la tentative de création de fichier par le " @@ -543,10 +540,10 @@ msgid "" "those of :func:`mkstemp`, except that bytes file names, ``suffix=None`` and " "``prefix=None`` are not supported." msgstr "" -"Retourne le chemin absolu d'un fichier qui n'existe pas lorsque l'appel est " +"Renvoie le chemin absolu d'un fichier qui n'existe pas lorsque l'appel est " "fait. Les arguments *prefix*, *suffix*, et *dir* sont similaires à ceux de :" "func:`mkstemp` mais les noms de fichiers en _bytes_, ``sufix=None`` et " -"``prefix=None`` ne sont pas supportés." +"``prefix=None`` ne sont pas implémentées." #: ../Doc/library/tempfile.rst:319 msgid "" @@ -556,8 +553,8 @@ msgid "" "easily with :func:`NamedTemporaryFile`, passing it the ``delete=False`` " "parameter::" msgstr "" -"Utiliser cette fonction peut introduire un trou de sécurité dans votre " -"programme. Le temps que vous fassiez quelque chose avec le nom de fichier " -"retourné, quelqu'un d'autre peut vous avoir botté les fesses avant. " -"L'utilisation de :func:`mktemp` peut être remplacé facilement avec :func:" -"`NamedTemporaryFile` en y passant le paramètre ``delete=False``::" +"Utiliser cette fonction peut introduire une faille de sécurité dans votre " +"programme. Avant que vous n'ayez le temps de faire quoi que ce soit avec le " +"nom de fichier renvoyé, quelqu'un peut l'utiliser. L'utilisation de :func:" +"`mktemp` peut être remplacée facilement avec :func:`NamedTemporaryFile` en y " +"passant le paramètre ``delete=False`` ::" From fbcf17ecb480cb61fe4d9b2ec46ed7fcb121f26b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 16:57:14 +0100 Subject: [PATCH 082/121] translation of c-api/iterator.po Co-Authored-By: afoures --- c-api/iterator.po | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/c-api/iterator.po b/c-api/iterator.po index e5f73fdde..e8a3a3c75 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -6,8 +6,8 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: 2017-12-13 08:47+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-01-21 13:58+0100\n" +"Last-Translator: ANTOINE FOURES \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -26,11 +26,11 @@ msgid "" "sentinel value, calling the callable for each item in the sequence, and " "ending the iteration when the sentinel value is returned." msgstr "" -"Python fournit deux itérateurs génériques. Le premier est un itérateur de " -"séquence, il fonctionne avec n'importe quelle séquence gérant la méthode :" -"meth:`__getitem__`. Le second fonctionne avec un objet appelable et une " -"valeur sentinelle, il appelle l'appelable pour obtenir chaque élément de la " -"séquence, et l'itération se termine lorsque la sentinelle est reçue." +"Python fournit deux itérateurs d'usage générique. Le premier est un " +"itérateur de séquence, il fonctionne avec n'importe quelle séquence gérant " +"la méthode :meth:`__getitem__`. Le second fonctionne avec un objet appelable " +"et une valeur sentinelle, l'appelable permet d'obtenir chaque élément de la " +"séquence, et l'itération se termine lorsque la sentinelle est atteinte." #: ../Doc/c-api/iterator.rst:17 msgid "" @@ -38,10 +38,12 @@ msgid "" "one-argument form of the :func:`iter` built-in function for built-in " "sequence types." msgstr "" +"Type de l'itérateur renvoyé par les fonctions :c:func:`PySeqIter_New` et :" +"func:`iter` à un seul argument." #: ../Doc/c-api/iterator.rst:24 msgid "Return true if the type of *op* is :c:data:`PySeqIter_Type`." -msgstr "" +msgstr "Renvoie vrai si *op* est de type :c:data:`PySeqIter_Type`." #: ../Doc/c-api/iterator.rst:29 msgid "" @@ -49,16 +51,20 @@ msgid "" "iteration ends when the sequence raises :exc:`IndexError` for the " "subscripting operation." msgstr "" +"Renvoie un itérateur de séquence *seq*. L'itération prend fin lorsque la " +"séquence lève :exc:`IndexError` lors d'une tentative d'accès." #: ../Doc/c-api/iterator.rst:36 msgid "" "Type object for iterator objects returned by :c:func:`PyCallIter_New` and " "the two-argument form of the :func:`iter` built-in function." msgstr "" +"Type de l'itérateur renvoyé par les fonctions :c:func:`PyCallIter_New` et :" +"func:`iter` à deux arguments." #: ../Doc/c-api/iterator.rst:42 msgid "Return true if the type of *op* is :c:data:`PyCallIter_Type`." -msgstr "" +msgstr "Renvoie vrai si *op* est de type :c:data:`PyCallIter_Type`." #: ../Doc/c-api/iterator.rst:47 msgid "" @@ -67,3 +73,7 @@ msgid "" "should return the next item in the iteration. When *callable* returns a " "value equal to *sentinel*, the iteration will be terminated." msgstr "" +"Renvoie un nouvel itérateur. Le premier paramètre, *callable*, peut être " +"n'importe quel objet Python appelable sans aucun paramètre ; chaque appel " +"doit renvoyer l'élément suivant de l'itération. Lorsque *callable* renvoie " +"une valeur égale à *sentinel*, l'itération prend fin." From 4f596ce2538a5828a27ebfef5b3014e5ccd0a71b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 17:06:33 +0100 Subject: [PATCH 083/121] Proofreading c-api/iterator. --- c-api/iterator.po | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/c-api/iterator.po b/c-api/iterator.po index e8a3a3c75..3333f1212 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: 2019-01-21 13:58+0100\n" +"PO-Revision-Date: 2019-03-26 17:03+0100\n" "Last-Translator: ANTOINE FOURES \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -27,10 +27,11 @@ msgid "" "ending the iteration when the sentinel value is returned." msgstr "" "Python fournit deux itérateurs d'usage générique. Le premier est un " -"itérateur de séquence, il fonctionne avec n'importe quelle séquence gérant " -"la méthode :meth:`__getitem__`. Le second fonctionne avec un objet appelable " -"et une valeur sentinelle, l'appelable permet d'obtenir chaque élément de la " -"séquence, et l'itération se termine lorsque la sentinelle est atteinte." +"itérateur de séquence, il fonctionne avec n'importe quelle séquence " +"implémentant la méthode :meth:`__getitem__`. Le second fonctionne avec un " +"objet appelable et une valeur sentinelle, l'appelable permet d'obtenir " +"chaque élément de la séquence, et l'itération se termine lorsque la " +"sentinelle est atteinte." #: ../Doc/c-api/iterator.rst:17 msgid "" @@ -38,8 +39,9 @@ msgid "" "one-argument form of the :func:`iter` built-in function for built-in " "sequence types." msgstr "" -"Type de l'itérateur renvoyé par les fonctions :c:func:`PySeqIter_New` et :" -"func:`iter` à un seul argument." +"Type des itérateurs renvoyés par les fonctions :c:func:`PySeqIter_New` et la " +"forme à un argumet de la fonction native :func:`iter` pour les séquences " +"natives." #: ../Doc/c-api/iterator.rst:24 msgid "Return true if the type of *op* is :c:data:`PySeqIter_Type`." @@ -51,7 +53,7 @@ msgid "" "iteration ends when the sequence raises :exc:`IndexError` for the " "subscripting operation." msgstr "" -"Renvoie un itérateur de séquence *seq*. L'itération prend fin lorsque la " +"Renvoie un itérateur sur la séquence *seq*. L'itération prend fin lorsque la " "séquence lève :exc:`IndexError` lors d'une tentative d'accès." #: ../Doc/c-api/iterator.rst:36 @@ -74,6 +76,6 @@ msgid "" "value equal to *sentinel*, the iteration will be terminated." msgstr "" "Renvoie un nouvel itérateur. Le premier paramètre, *callable*, peut être " -"n'importe quel objet Python appelable sans aucun paramètre ; chaque appel " +"n'importe quel objet Python appelable sans aucun paramètre ; chaque appel " "doit renvoyer l'élément suivant de l'itération. Lorsque *callable* renvoie " "une valeur égale à *sentinel*, l'itération prend fin." From f860a3f5bd1e27e76c213330b48be7704ee9bbca Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 17:09:35 +0100 Subject: [PATCH 084/121] howto/clinic translation Co-Authored-By: mrNicky <39512726+mrNicky@users.noreply.github.com> --- howto/clinic.po | 45 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/howto/clinic.po b/howto/clinic.po index a4d913de5..c3c6a96f6 100644 --- a/howto/clinic.po +++ b/howto/clinic.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2018-08-01 23:51+0200\n" +"PO-Revision-Date: 2019-02-21 21:46+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" +"X-Generator: Poedit 2.0.6\n" #: ../Doc/howto/clinic.rst:5 msgid "Argument Clinic How-To" @@ -777,6 +777,9 @@ msgid "" "above it. You should write the opening (and closing) curly braces for the " "function, and the implementation inside." msgstr "" +"L'argument Clinic génère une ligne de contrôle et la fonction prototype " +"juste au dessus. Vous devez écrire les accolades d'ouverture (et de " +"fermeture) pour la fonction, et l’implémentation à l'intérieur. " #: ../Doc/howto/clinic.rst:522 msgid "" @@ -833,27 +836,31 @@ msgstr "" #: ../Doc/howto/clinic.rst:552 msgid "Advanced Topics" -msgstr "" +msgstr "Sujets avancés" #: ../Doc/howto/clinic.rst:554 msgid "" "Now that you've had some experience working with Argument Clinic, it's time " "for some advanced topics." msgstr "" +"Maintenant que vous avez un peu d'expérience avec l’argument clinic, c'est le " +"moment pour des sujets avancés." #: ../Doc/howto/clinic.rst:559 msgid "Symbolic default values" -msgstr "" +msgstr "Valeurs symboliques par défaut" #: ../Doc/howto/clinic.rst:561 msgid "" "The default value you provide for a parameter can't be any arbitrary " "expression. Currently the following are explicitly supported:" msgstr "" +"La valeur par défaut que vous fournissez pour un paramètre ne peut pas être " +"expression arbitraire. Actuellement, ce qui est géré :" #: ../Doc/howto/clinic.rst:564 msgid "Numeric constants (integer and float)" -msgstr "" +msgstr "Constantes numériques (entier ou nombre flottant)" #: ../Doc/howto/clinic.rst:565 msgid "String constants" @@ -861,25 +868,31 @@ msgstr "Chaînes constantes" #: ../Doc/howto/clinic.rst:566 msgid "``True``, ``False``, and ``None``" -msgstr "" +msgstr "``True``, ``False`` et ``None``" #: ../Doc/howto/clinic.rst:567 msgid "" "Simple symbolic constants like ``sys.maxsize``, which must start with the " "name of the module" msgstr "" +"Constantes symboliques simples comme ``sys.maxsize``, qui doivent commencer " +"avec le nom du module" #: ../Doc/howto/clinic.rst:570 msgid "" "In case you're curious, this is implemented in ``from_builtin()`` in ``Lib/" "inspect.py``." msgstr "" +"Dans le cas où vous êtes curieux, ceci est implémenté dans ``from_builtin()`` " +"dans ``Lib/inspect.py``." #: ../Doc/howto/clinic.rst:573 msgid "" "(In the future, this may need to get even more elaborate, to allow full " "expressions like ``CONSTANT - 1``.)" msgstr "" +"(Dans le futur, il est possible que l'on ait besoin de l'améliorer, pour autoriser " +"les expressions complètes comme ``CONSTANT - 1``.)" #: ../Doc/howto/clinic.rst:578 msgid "Renaming the C functions and variables generated by Argument Clinic" @@ -902,12 +915,16 @@ msgid "" "For example, if we wanted to rename the C function names generated for " "``pickle.Pickler.dump``, it'd look like this::" msgstr "" +"Par exemple, si nous voulons renommer les noms de fonction C générés pour " +"``pickle.Pickler.dump``, ça ressemblerait à ça :" #: ../Doc/howto/clinic.rst:596 msgid "" "The base function would now be named ``pickler_dumper()``, and the impl " "function would now be named ``pickler_dumper_impl()``." msgstr "" +"La fonction de base sera maintenant nommée ``pickler_dumper()``, et la " +"fonction *impl* serait maintenant nommé ``pickler_dumper_impl()``." #: ../Doc/howto/clinic.rst:600 msgid "" @@ -916,6 +933,10 @@ msgid "" "Clinic allows you to give a parameter different names in Python and in C, " "using the same ``\"as\"`` syntax::" msgstr "" +"De même, vous pouvez avoir un problème quand vous souhaiterez donner à un " +"paramètre un nom spécifique à Python, mais ce nom peut être gênant en C. " +"L'argument Clinic vous permet de donner à un paramètre des noms différents en " +"Python et en C." #: ../Doc/howto/clinic.rst:614 msgid "" @@ -925,11 +946,11 @@ msgstr "" #: ../Doc/howto/clinic.rst:617 msgid "You can use this to rename the ``self`` parameter too!" -msgstr "" +msgstr "Vous pouvez utiliser ceci pour renommer aussi le paramètre ``self``" #: ../Doc/howto/clinic.rst:621 msgid "Converting functions using PyArg_UnpackTuple" -msgstr "" +msgstr "Conversion des fonctions en utilisant *PyArg_UnpackTuple*" #: ../Doc/howto/clinic.rst:623 msgid "" @@ -945,10 +966,12 @@ msgid "" "Currently the generated code will use :c:func:`PyArg_ParseTuple`, but this " "will change soon." msgstr "" +"Actuellement, le code généré utilise :c:func:`PyArg_ParseTuple`, mais cela " +"va bientôt changer." #: ../Doc/howto/clinic.rst:633 msgid "Optional Groups" -msgstr "" +msgstr "Groupes optionnels " #: ../Doc/howto/clinic.rst:635 msgid "" @@ -1027,6 +1050,8 @@ msgid "" "If there are no required arguments, the optional groups will behave as if " "they're to the right of the required arguments." msgstr "" +"S'il n'y a pas d'arguments requis, les groupes optionnels se comportent " +"comme s'ils étaient à droite des arguments requis." #: ../Doc/howto/clinic.rst:716 msgid "" @@ -1043,6 +1068,8 @@ msgid "" "Optional groups are *only* intended for legacy code. Please do not use " "optional groups for new code." msgstr "" +"Les groupes optionnels sont *seulement* destinés au code hérité. S'il vous plaît " +"ne pas utiliser pour du nouveau code." #: ../Doc/howto/clinic.rst:726 msgid "Using real Argument Clinic converters, instead of \"legacy converters\"" From 044430e93003aa78209161c0988ca00efe77188b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 17:19:04 +0100 Subject: [PATCH 085/121] FIX: Typo. --- c-api/iterator.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c-api/iterator.po b/c-api/iterator.po index 3333f1212..644360afe 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: 2019-03-26 17:03+0100\n" +"PO-Revision-Date: 2019-03-26 17:16+0100\n" "Last-Translator: ANTOINE FOURES \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -40,7 +40,7 @@ msgid "" "sequence types." msgstr "" "Type des itérateurs renvoyés par les fonctions :c:func:`PySeqIter_New` et la " -"forme à un argumet de la fonction native :func:`iter` pour les séquences " +"forme à un argument de la fonction native :func:`iter` pour les séquences " "natives." #: ../Doc/c-api/iterator.rst:24 From 3108ec2a2cca35e2853948c52ab9aaa13623b006 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 17:31:38 +0100 Subject: [PATCH 086/121] Proofreading howto/clinic --- howto/clinic.po | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/howto/clinic.po b/howto/clinic.po index c3c6a96f6..b2100d0b7 100644 --- a/howto/clinic.po +++ b/howto/clinic.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2019-02-21 21:46+0100\n" +"PO-Revision-Date: 2019-03-26 17:29+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -777,9 +777,9 @@ msgid "" "above it. You should write the opening (and closing) curly braces for the " "function, and the implementation inside." msgstr "" -"L'argument Clinic génère une ligne de contrôle et la fonction prototype " -"juste au dessus. Vous devez écrire les accolades d'ouverture (et de " -"fermeture) pour la fonction, et l’implémentation à l'intérieur. " +"Argument Clinic génère une ligne de contrôle et la fonction prototype juste " +"au dessus. Vous devez écrire les accolades d'ouverture (et de fermeture) " +"pour la fonction, et l’implémentation à l'intérieur." #: ../Doc/howto/clinic.rst:522 msgid "" @@ -843,12 +843,12 @@ msgid "" "Now that you've had some experience working with Argument Clinic, it's time " "for some advanced topics." msgstr "" -"Maintenant que vous avez un peu d'expérience avec l’argument clinic, c'est le " +"Maintenant que vous avez un peu d'expérience avec Argument Clinic, c'est le " "moment pour des sujets avancés." #: ../Doc/howto/clinic.rst:559 msgid "Symbolic default values" -msgstr "Valeurs symboliques par défaut" +msgstr "Valeurs par défaut" #: ../Doc/howto/clinic.rst:561 msgid "" @@ -856,7 +856,7 @@ msgid "" "expression. Currently the following are explicitly supported:" msgstr "" "La valeur par défaut que vous fournissez pour un paramètre ne peut pas être " -"expression arbitraire. Actuellement, ce qui est géré :" +"n'importe quelle expression. Actuellement, ce qui est géré :" #: ../Doc/howto/clinic.rst:564 msgid "Numeric constants (integer and float)" @@ -876,14 +876,14 @@ msgid "" "name of the module" msgstr "" "Constantes symboliques simples comme ``sys.maxsize``, qui doivent commencer " -"avec le nom du module" +"par le nom du module" #: ../Doc/howto/clinic.rst:570 msgid "" "In case you're curious, this is implemented in ``from_builtin()`` in ``Lib/" "inspect.py``." msgstr "" -"Dans le cas où vous êtes curieux, ceci est implémenté dans ``from_builtin()`` " +"Si par curiosité vous voulez lire l'implémentation, c'est ``from_builtin()`` " "dans ``Lib/inspect.py``." #: ../Doc/howto/clinic.rst:573 @@ -891,8 +891,8 @@ msgid "" "(In the future, this may need to get even more elaborate, to allow full " "expressions like ``CONSTANT - 1``.)" msgstr "" -"(Dans le futur, il est possible que l'on ait besoin de l'améliorer, pour autoriser " -"les expressions complètes comme ``CONSTANT - 1``.)" +"(Dans le futur, il est possible que l'on ait besoin de l'améliorer, pour " +"autoriser les expressions complètes comme ``CONSTANT - 1``.)" #: ../Doc/howto/clinic.rst:578 msgid "Renaming the C functions and variables generated by Argument Clinic" @@ -935,7 +935,7 @@ msgid "" msgstr "" "De même, vous pouvez avoir un problème quand vous souhaiterez donner à un " "paramètre un nom spécifique à Python, mais ce nom peut être gênant en C. " -"L'argument Clinic vous permet de donner à un paramètre des noms différents en " +"Argument Clinic vous permet de donner à un paramètre des noms différents en " "Python et en C." #: ../Doc/howto/clinic.rst:614 @@ -971,7 +971,7 @@ msgstr "" #: ../Doc/howto/clinic.rst:633 msgid "Optional Groups" -msgstr "Groupes optionnels " +msgstr "Groupes optionnels" #: ../Doc/howto/clinic.rst:635 msgid "" @@ -1068,8 +1068,8 @@ msgid "" "Optional groups are *only* intended for legacy code. Please do not use " "optional groups for new code." msgstr "" -"Les groupes optionnels sont *seulement* destinés au code hérité. S'il vous plaît " -"ne pas utiliser pour du nouveau code." +"Les groupes optionnels sont *seulement* destinés au code hérité. Ne les " +"utilisez pas dans du nouveau code." #: ../Doc/howto/clinic.rst:726 msgid "Using real Argument Clinic converters, instead of \"legacy converters\"" From d0e232885298619f1c3d5ef555cc3ef8543490a6 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Mar 2019 17:36:08 +0100 Subject: [PATCH 087/121] Fixed fuzzys and finished translating faq/design.po (#589) --- faq/design.po | 53 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/faq/design.po b/faq/design.po index d8f4ef49f..822b0fcc6 100644 --- a/faq/design.po +++ b/faq/design.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-12-14 15:10+0100\n" +"PO-Revision-Date: 2019-03-21 21:04+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/faq/design.rst:3 msgid "Design and History FAQ" @@ -1114,6 +1114,11 @@ msgid "" "not. If you fail to meet these restrictions dictionaries and other hash " "based structures will misbehave." msgstr "" +"De plus, il faut toujours que, si ``o1 == o2`` (par exemple ``o1.__eq__(o2) " +"vaut True``) alors ``hash(o1) == hash(o2)`` (par exemple, ``o1.__hash__() == " +"o2.__hash__()``), que l’objet se trouve dans un dictionnaire ou pas. Si vous " +"ne remplissez pas ces conditions, les dictionnaires et autres structures " +"basées sur le hachage se comporteront mal." #: ../Doc/faq/design.rst:583 msgid "" @@ -1122,6 +1127,11 @@ msgid "" "you are prepared to think hard about the requirements and the consequences " "of not meeting them correctly. Consider yourself warned." msgstr "" +"Dans le cas de *ListWrapper*, chaque fois que l'objet *wrapper* est dans un " +"dictionnaire, la liste encapsulée ne doit pas changer pour éviter les " +"anomalies. Ne faites pas cela à moins que vous n’ayez pensé aux potentielles " +"conséquences de ne pas satisfaire entièrement ces conditions. Vous avez été " +"prévenus." #: ../Doc/faq/design.rst:590 msgid "Why doesn't list.sort() return the sorted list?" @@ -1168,6 +1178,10 @@ msgid "" "module. Many feel that compile-time enforcement of interface specifications " "helps in the construction of large programs." msgstr "" +"Une spécification d'interface pour un module fourni par des langages tels " +"que C++ et Java décrit les prototypes pour les méthodes et les fonctions du " +"module. Beaucoup estiment que la vérification au moment de la compilation " +"des spécifications d'interface aide à la construction de grands programmes." #: ../Doc/faq/design.rst:615 msgid "" @@ -1178,6 +1192,13 @@ msgid "" "`~collections.abc.Iterable`, :class:`~collections.abc.Container`, and :class:" "`~collections.abc.MutableMapping`." msgstr "" +"Python 2.6 ajoute un module :mod:`abc` qui vous permet de définir des " +"classes de base abstraites (ABCs). Vous pouvez ensuite utiliser :func:" +"`isinstance` et :func:`issubclass` pour vérifier si une instance ou une " +"classe implémente une ABC particulière. Le module :mod:`collections.abc` " +"définit un ensemble d'ABCs utiles telles que :class:`~collections.abc." +"Iterable`, :class:`~collections.abc.Container` et :class:`collections.abc." +"MutableMapping`." #: ../Doc/faq/design.rst:622 msgid "" @@ -1185,6 +1206,10 @@ msgid "" "obtained by an appropriate test discipline for components. There is also a " "tool, PyChecker, which can be used to find problems due to subclassing." msgstr "" +"Pour Python, la plupart des avantages des spécifications d'interface peuvent " +"être obtenus par une discipline de test appropriée pour les composants. Il " +"existe aussi un outil, PyChecker, qui peut être utilisé pour trouver des " +"problèmes d'héritage." #: ../Doc/faq/design.rst:626 msgid "" @@ -1197,6 +1222,15 @@ msgid "" "be used to construct exhaustive test suites that exercise every line of code " "in a module." msgstr "" +"Une bonne suite de tests pour un module peut à la fois fournir un test de " +"non régression et servir de spécification d'interface de module ainsi qu'un " +"ensemble d'exemples. De nombreux modules Python peuvent être exécutés en " +"tant que script pour fournir un simple « auto-test ». Même les modules qui " +"utilisent des interfaces externes complexes peuvent souvent être testés " +"isolément à l'aide d'émulations triviales embryonnaires de l'interface " +"externe. Les modules :mod:`doctest` et :mod:`UnitTest` ou des frameworks de " +"test tiers peuvent être utilisés pour construire des suites de tests " +"exhaustives qui éprouvent chaque ligne de code dans un module." #: ../Doc/faq/design.rst:634 msgid "" @@ -1208,6 +1242,15 @@ msgid "" "test that your :meth:`append` implementation will actually do this " "correctly, but it's trivial to check this property in a test suite." msgstr "" +"Une discipline de test appropriée peut aider à construire des applications " +"complexes de grande taille en Python aussi bien que le feraient des " +"spécifications d'interface. En fait, c'est peut être même mieux parce qu'une " +"spécification d'interface ne peut pas tester certaines propriétés d'un " +"programme. Par exemple, la méthode :meth:`Append` est censée ajouter de " +"nouveaux éléments à la fin d'une liste « sur place » ; une spécification " +"d'interface ne peut pas tester que votre implémentation de :meth:`append` va " +"réellement le faire correctement, mais il est trivial de vérifier cette " +"propriété dans une suite de tests." #: ../Doc/faq/design.rst:642 msgid "" @@ -1217,6 +1260,12 @@ msgid "" "before you write any of the actual code. Of course Python allows you to be " "sloppy and not write test cases at all." msgstr "" +"L'écriture des suites de tests est très utile, et vous voudrez peut-être " +"concevoir votre code de manière à le rendre facilement testable. Une " +"technique de plus en plus populaire, le développement dirigé par les tests, " +"requiert d'écrire d'abord des éléments de la suite de tests, avant d'écrire " +"le code réel. Bien sûr, Python vous permet d'être laxiste et de ne pas " +"écrire de test du tout." #: ../Doc/faq/design.rst:650 msgid "Why is there no goto?" From 8096d984b8833ccf97399422f750501235b12967 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Mar 2019 17:38:57 +0100 Subject: [PATCH 088/121] Finished translating and fixed fuzzy in library/hashlib.po (#590) --- library/hashlib.po | 74 ++++++++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 32 deletions(-) diff --git a/library/hashlib.po b/library/hashlib.po index 0b7900bf3..62a6ae366 100644 --- a/library/hashlib.po +++ b/library/hashlib.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-11-30 17:58+0100\n" -"Last-Translator: Julien VITARD \n" +"PO-Revision-Date: 2019-03-26 08:53+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/hashlib.rst:2 msgid ":mod:`hashlib` --- Secure hashes and message digests" @@ -203,7 +203,7 @@ msgstr "" #: ../Doc/library/hashlib.rst:144 msgid "The size of the resulting hash in bytes." -msgstr "La taille du *hash* résultant en octets" +msgstr "La taille du *hash* résultant en octets." #: ../Doc/library/hashlib.rst:148 msgid "The internal block size of the hash algorithm in bytes." @@ -420,7 +420,7 @@ msgstr ":ref:`Disponibilité ` : OpenSSL 1.1+." #: ../Doc/library/hashlib.rst:280 msgid "BLAKE2" -msgstr "" +msgstr "BLAKE2" #: ../Doc/library/hashlib.rst:287 msgid "" @@ -506,7 +506,7 @@ msgid "" "bytes for BLAKE2s)." msgstr "" "*salt*: sel pour le hachage randomisé *randomized hashing* (jusqu'à 16 " -"octets pour BLAKE2b, jusqu'à 8 octets pour BLAKE2s). " +"octets pour BLAKE2b, jusqu'à 8 octets pour BLAKE2s)." #: ../Doc/library/hashlib.rst:332 msgid "" @@ -524,43 +524,43 @@ msgstr "" #: ../Doc/library/hashlib.rst:338 msgid "Hash" -msgstr "" +msgstr "Hash" #: ../Doc/library/hashlib.rst:338 msgid "digest_size" -msgstr "" +msgstr "digest_size" #: ../Doc/library/hashlib.rst:338 msgid "len(key)" -msgstr "" +msgstr "len(key)" #: ../Doc/library/hashlib.rst:338 msgid "len(salt)" -msgstr "" +msgstr "len(salt)" #: ../Doc/library/hashlib.rst:338 msgid "len(person)" -msgstr "" +msgstr "len(person)" #: ../Doc/library/hashlib.rst:340 msgid "BLAKE2b" -msgstr "" +msgstr "BLAKE2b" #: ../Doc/library/hashlib.rst:340 msgid "64" -msgstr "" +msgstr "64" #: ../Doc/library/hashlib.rst:340 msgid "16" -msgstr "" +msgstr "16" #: ../Doc/library/hashlib.rst:341 msgid "BLAKE2s" -msgstr "" +msgstr "BLAKE2s" #: ../Doc/library/hashlib.rst:341 msgid "32" -msgstr "" +msgstr "32" #: ../Doc/library/hashlib.rst:341 msgid "8" @@ -748,7 +748,6 @@ msgid "Keyed hashing" msgstr "Code d'authentification de message" #: ../Doc/library/hashlib.rst:484 -#, fuzzy msgid "" "Keyed hashing can be used for authentication as a faster and simpler " "replacement for `Hash-based message authentication code `_ (HMAC). BLAKE2 peut être utilisé de " -"manière sécurisée dans le mode préfixe MAC grâce à la propriété " -"d'indifférentiabilité héritée de BLAKE" +"l'authentification tel quel en lieu et de manière simple et rapide de `code " +"d’authentification d’une empreinte cryptographique de message avec clé " +"`_ " +"(HMAC). BLAKE2 peut être utilisé de manière sécurisée dans le mode préfixe " +"MAC grâce à la propriété d'indifférentiabilité héritée de BLAKE." #: ../Doc/library/hashlib.rst:490 msgid "" @@ -850,6 +849,8 @@ msgid "" "(`NIST SP-800-106 \"Randomized Hashing for Digital Signatures\" `_)" msgstr "" +"(`NIST SP-800-106 \"Randomized Hashing for Digital Signatures\" `_, article en anglais)" #: ../Doc/library/hashlib.rst:568 msgid "" @@ -906,6 +907,8 @@ msgid "" "(`The Skein Hash Function Family `_, p. 21)" msgstr "" +"(`The Skein Hash Function Family `_, p. 21, article en anglais)" #: ../Doc/library/hashlib.rst:613 msgid "BLAKE2 can be personalized by passing bytes to the *person* argument::" @@ -914,13 +917,12 @@ msgstr "" "*person* : ::" #: ../Doc/library/hashlib.rst:627 -#, fuzzy msgid "" "Personalization together with the keyed mode can also be used to derive " "different keys from a single one." msgstr "" -"L'utilisation de la personnalisation avec le *keyed mode* peut être utilisé " -"pour dériver différentes clés à partir d'une seule." +"La personnalisation et le *keyed mode* peuvent être utilisés ensemble pour " +"dériver différentes clés à partir d'une seule." #: ../Doc/library/hashlib.rst:641 msgid "Tree mode" @@ -993,7 +995,11 @@ msgid "" "To the extent possible under law, the author(s) have dedicated all copyright " "and related and neighboring rights to this software to the public domain " "worldwide. This software is distributed without any warranty." -msgstr "A la mesure du possible en vertu du droit, le(s) auteur(s) " +msgstr "" +"Tout en restant dans les limites de la loi, le(s) auteur(s) a (ont) consacré " +"tous les droits d’auteur et droits connexes et voisins de ce logiciel au " +"domaine public dans le monde entier. Ce logiciel est distribué sans aucune " +"garantie." #: ../Doc/library/hashlib.rst:701 msgid "" @@ -1017,11 +1023,11 @@ msgstr "" #: ../Doc/library/hashlib.rst:709 msgid "*Alexandr Sokolovskiy*" -msgstr "" +msgstr "*Alexandr Sokolovskiy*" #: ../Doc/library/hashlib.rst:723 msgid "Module :mod:`hmac`" -msgstr "" +msgstr "Module :mod:`hmac`" #: ../Doc/library/hashlib.rst:723 msgid "A module to generate message authentication codes using hashes." @@ -1040,7 +1046,7 @@ msgstr "" #: ../Doc/library/hashlib.rst:729 msgid "https://blake2.net" -msgstr "" +msgstr "https://blake2.net" #: ../Doc/library/hashlib.rst:729 msgid "Official BLAKE2 website." @@ -1051,16 +1057,20 @@ msgid "" "https://csrc.nist.gov/csrc/media/publications/fips/180/2/archive/2002-08-01/" "documents/fips180-2.pdf" msgstr "" +"https://csrc.nist.gov/csrc/media/publications/fips/180/2/archive/2002-08-01/" +"documents/fips180-2.pdf" #: ../Doc/library/hashlib.rst:732 msgid "The FIPS 180-2 publication on Secure Hash Algorithms." -msgstr "La publication FIPS 180-2 sur les algorithmes de hachage sécurisés" +msgstr "La publication FIPS 180-2 sur les algorithmes de hachage sécurisés." #: ../Doc/library/hashlib.rst:736 msgid "" "https://en.wikipedia.org/wiki/" "Cryptographic_hash_function#Cryptographic_hash_algorithms" msgstr "" +"https://en.wikipedia.org/wiki/" +"Cryptographic_hash_function#Cryptographic_hash_algorithms" #: ../Doc/library/hashlib.rst:735 msgid "" @@ -1072,8 +1082,8 @@ msgstr "" #: ../Doc/library/hashlib.rst:738 msgid "https://www.ietf.org/rfc/rfc2898.txt" -msgstr "" +msgstr "https://www.ietf.org/rfc/rfc2898.txt" #: ../Doc/library/hashlib.rst:739 msgid "PKCS #5: Password-Based Cryptography Specification Version 2.0" -msgstr "" +msgstr "PKCS #5: Password-Based Cryptography Specification Version 2.0" From aa637d11fe612f387abf37496c51809b4f411920 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 26 Mar 2019 17:51:09 +0100 Subject: [PATCH 089/121] Proofreading hashlib --- library/hashlib.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/library/hashlib.po b/library/hashlib.po index 62a6ae366..0cc20a20f 100644 --- a/library/hashlib.po +++ b/library/hashlib.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2019-03-26 08:53+0100\n" +"PO-Revision-Date: 2019-03-26 17:49+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -755,12 +755,12 @@ msgid "" "can be securely used in prefix-MAC mode thanks to the indifferentiability " "property inherited from BLAKE." msgstr "" -"Le code d'authentification de message peut être utilisé pour " -"l'authentification tel quel en lieu et de manière simple et rapide de `code " -"d’authentification d’une empreinte cryptographique de message avec clé " -"`_ " -"(HMAC). BLAKE2 peut être utilisé de manière sécurisée dans le mode préfixe " -"MAC grâce à la propriété d'indifférentiabilité héritée de BLAKE." +"Le hachage avec clé (*keyed hashing* en anglais) est une alternative plus " +"simple et plus rapide à un `code d’authentification d’une empreinte " +"cryptographique de message avec clé `_ (HMAC). BLAKE2 peut être utilisé de " +"manière sécurisée dans le mode préfixe MAC grâce à la propriété " +"d'indifférentiabilité héritée de BLAKE." #: ../Doc/library/hashlib.rst:490 msgid "" From fad39b03acd39d0f4f9705087811f498d6441df1 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Mar 2019 17:52:21 +0100 Subject: [PATCH 090/121] Fixed fuzzys in library/queue.po (#593) --- library/queue.po | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/library/queue.po b/library/queue.po index babbdfbbf..f8d7883d0 100644 --- a/library/queue.po +++ b/library/queue.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-10-05 15:21+0200\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-04 19:04+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.1.1\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/queue.rst:2 msgid ":mod:`queue` --- A synchronized queue class" @@ -67,15 +67,14 @@ msgstr "" "été conçus pour être réentrants au sein d'un fil d'exécution." #: ../Doc/library/queue.rst:30 -#, fuzzy msgid "" "In addition, the module implements a \"simple\" :abbr:`FIFO (first-in, first-" "out)` queue type, :class:`SimpleQueue`, whose specific implementation " "provides additional guarantees in exchange for the smaller functionality." msgstr "" -"De plus, ce module implémente une \"simple\" :abbr:`FIFO (first-in, first-" -"out)`, dont l'implémentation spécifique fournit plus de garanties au " -"détriment des fonctionnalités." +"Le module implémente aussi une :abbr:`FIFO (first-in, first-out)` basique, :" +"class:`SimpleQueue`, dont l’implémentation spécialisée fournit plus de " +"garanties au détriment des fonctionnalités." #: ../Doc/library/queue.rst:35 msgid "The :mod:`queue` module defines the following classes and exceptions:" From 211f724b8ea9ce3b584737d338a66ebffb4eeac8 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Mar 2019 17:53:07 +0100 Subject: [PATCH 091/121] Fixed fuzzys in library/stdtypes.po (#595) --- library/stdtypes.po | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/library/stdtypes.po b/library/stdtypes.po index 197054917..75e2bfe30 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-20 09:03+0100\n" -"PO-Revision-Date: 2018-12-24 14:55+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-02-27 12:19+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/stdtypes.rst:8 msgid "Built-in Types" @@ -103,7 +103,7 @@ msgid "" "empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, " "``range(0)``" msgstr "" -"Les chaînes et collections vides : ``''``, ``()``, ``[]``, ``{}``, " +"les chaînes et collections vides : ``''``, ``()``, ``[]``, ``{}``, " "``set()``, ``range(0)``" #: ../Doc/library/stdtypes.rst:69 @@ -119,10 +119,9 @@ msgstr "" "``or`` et ``and`` renvoient toujours l'une de leurs opérandes.)" #: ../Doc/library/stdtypes.rst:78 -#, fuzzy msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" msgstr "" -"Opérations booléennes --- :keyword:`and`, :keyword:`or`, :keyword:`not`" +"Opérations booléennes --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" #: ../Doc/library/stdtypes.rst:82 msgid "These are the Boolean operations, ordered by ascending priority:" @@ -5223,7 +5222,7 @@ msgstr "" #: ../Doc/library/stdtypes.rst:3531 msgid "memoryviews can now be indexed with tuple of integers." msgstr "" -"Les *memoryviews* peut maintenant être indexées par un tuple d'entiers." +"les *memoryviews* peut maintenant être indexées par un n-uplet d'entiers." #: ../Doc/library/stdtypes.rst:3534 msgid ":class:`memoryview` has several methods:" @@ -5404,7 +5403,6 @@ msgid "The underlying object of the memoryview::" msgstr "L'objet sous-jacent de la *memoryview* : ::" #: ../Doc/library/stdtypes.rst:3768 -#, fuzzy msgid "" "``nbytes == product(shape) * itemsize == len(m.tobytes())``. This is the " "amount of space in bytes that the array would use in a contiguous " @@ -5439,7 +5437,7 @@ msgid "" "format ``'B'`` is now handled according to the struct module syntax. This " "means that ``memoryview(b'abc')[0] == b'abc'[0] == 97``." msgstr "" -"Le format ``'B'`` est maintenant traité selon la syntaxe du module *struct*. " +"le format ``'B'`` est maintenant traité selon la syntaxe du module *struct*. " "Cela signifie que ``memoryview(b'abc')[0] == b'abc'[0] == 97``." #: ../Doc/library/stdtypes.rst:3819 @@ -6147,7 +6145,6 @@ msgstr "" "insérées à la fin. ::" #: ../Doc/library/stdtypes.rst:4289 -#, fuzzy msgid "" "Dictionary order is guaranteed to be insertion order. This behavior was an " "implementation detail of CPython from 3.6." @@ -6269,13 +6266,12 @@ msgid "" "before the statement body is executed and exited when the statement ends:" msgstr "" "L'instruction :keyword:`with` permet l'existence de contextes définis à " -"l'exécution par des gestionnaires de contextes. C'est implémenté via une " +"l'exécution par des gestionnaires de contextes. C'est implémenté via une " "paire de méthodes permettant de définir un contexte, à l'exécution, qui est " "entré avant l'exécution du corps de l'instruction, et qui est quitté lorsque " "l'instruction se termine :" #: ../Doc/library/stdtypes.rst:4394 -#, fuzzy msgid "" "Enter the runtime context and return either this object or another object " "related to the runtime context. The value returned by this method is bound " @@ -6283,8 +6279,8 @@ msgid "" "using this context manager." msgstr "" "Entre dans le contexte à l'exécution, soit se renvoyant lui-même, soit en " -"renvoyant un autre objet en lien avec ce contexte. La valeur renvoyée par " -"cette méthode est liée à l'identifiant donné au :keyword:`as` de " +"renvoyant un autre objet en lien avec ce contexte. La valeur renvoyée par " +"cette méthode est liée à l'identifiant donné au :keyword:`!as` de " "l'instruction :keyword:`with` utilisant ce gestionnaire de contexte." #: ../Doc/library/stdtypes.rst:4399 @@ -6299,7 +6295,6 @@ msgstr "" "keyword:`with`." #: ../Doc/library/stdtypes.rst:4403 -#, fuzzy msgid "" "An example of a context manager that returns a related object is the one " "returned by :func:`decimal.localcontext`. These managers set the active " @@ -6312,7 +6307,7 @@ msgstr "" "renvoyé par :func:`decimal.localcontext`. Ces gestionnaires remplacent le " "contexte décimal courant par une copie de l'original, copie qui est " "renvoyée. Ça permet de changer le contexte courant dans le corps du :keyword:" -"`with` sans affecter le code en dehors de l'instruction :keyword:`with`." +"`with` sans affecter le code en dehors de l'instruction :keyword:`!with`." #: ../Doc/library/stdtypes.rst:4413 msgid "" @@ -6329,7 +6324,6 @@ msgstr "" "trois arguments valent ``None``." #: ../Doc/library/stdtypes.rst:4418 -#, fuzzy msgid "" "Returning a true value from this method will cause the :keyword:`with` " "statement to suppress the exception and continue execution with the " @@ -6341,10 +6335,10 @@ msgid "" msgstr "" "L'instruction :keyword:`with` inhibera l'exception si cette méthode renvoie " "une valeur vraie, l'exécution continuera ainsi à l'instruction suivant " -"immédiatement l'instruction :keyword:`with`. Sinon, l'exception continuera " +"immédiatement l'instruction :keyword:`!with`. Sinon, l'exception continuera " "de se propager après la fin de cette méthode. Les exceptions se produisant " "pendant l'exécution de cette méthode remplaceront toute exception qui s'est " -"produite dans le corps du :keyword:`with`." +"produite dans le corps du :keyword:`!with`." #: ../Doc/library/stdtypes.rst:4425 msgid "" From a985e8ee885c8741ad4d23d5fddd0bdc4692d634 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Mar 2019 17:54:01 +0100 Subject: [PATCH 092/121] Fixed fuzzys in library/subprocess.po (#597) --- library/subprocess.po | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/library/subprocess.po b/library/subprocess.po index 542ee029f..f801b8b44 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-20 09:03+0100\n" -"PO-Revision-Date: 2018-11-29 18:27+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-02-27 12:00+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/subprocess.rst:2 msgid ":mod:`subprocess` --- Subprocess management" @@ -327,7 +327,7 @@ msgstr "" #: ../Doc/library/subprocess.rst:209 ../Doc/library/subprocess.rst:240 msgid "*stdout* and *stderr* attributes added" -msgstr "Ajout des attributs *stdout* et *stderr*." +msgstr "Ajout des attributs *stdout* et *stderr*" #: ../Doc/library/subprocess.rst:214 msgid "" @@ -653,7 +653,7 @@ msgid "" msgstr "" "*bufsize* sera fourni comme l'argument correspondant à la fonction :func:" "`open`, lors de la création des objets de fichiers pour les tubes *stdin*/" -"*stdout*/*stderr*." +"*stdout*/*stderr* :" #: ../Doc/library/subprocess.rst:411 msgid "" @@ -675,7 +675,7 @@ msgstr "" msgid "any other positive value means use a buffer of approximately that size" msgstr "" "toutes les autres valeurs positives indiquent d'utiliser un tampon " -"d'approximativement cette taille ;" +"d'approximativement cette taille ;" #: ../Doc/library/subprocess.rst:417 msgid "" @@ -1022,6 +1022,8 @@ msgid "" "Exceptions raised in the child process, before the new program has started " "to execute, will be re-raised in the parent." msgstr "" +"Les exceptions levées dans le processus fils, avant que le nouveau programme " +"ait commencé à s'exécuter, seront ré-levées dans le parent." #: ../Doc/library/subprocess.rst:577 msgid "" @@ -1919,7 +1921,7 @@ msgstr "Exemple en passant un environnement : ::" #: ../Doc/library/subprocess.rst:1224 msgid "Replacing :func:`os.popen`, :func:`os.popen2`, :func:`os.popen3`" -msgstr "Remplacer :func:`os.popen`, :func:`os.popen2`, :func:`os.popen3` etc." +msgstr "Remplacer :func:`os.popen`, :func:`os.popen2`, :func:`os.popen3`" #: ../Doc/library/subprocess.rst:1254 msgid "Return code handling translates as follows::" @@ -2012,7 +2014,7 @@ msgstr "" #: ../Doc/library/subprocess.rst:1337 ../Doc/library/subprocess.rst:1357 msgid ":ref:`Availability `: POSIX & Windows." -msgstr ":ref:`Disponibilité ` : POSIX et Windows" +msgstr ":ref:`Disponibilité ` : POSIX et Windows." #: ../Doc/library/subprocess.rst:1338 msgid "Windows support was added." @@ -2045,7 +2047,7 @@ msgstr "" #: ../Doc/library/subprocess.rst:1358 msgid "Windows support added" -msgstr "Ajout de la gestion de Windows." +msgstr "Ajout de la gestion de Windows" #: ../Doc/library/subprocess.rst:1363 msgid "Notes" From 929dfe8746c573abecbde66ab7c8b478b673b658 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Mar 2019 17:55:27 +0100 Subject: [PATCH 093/121] Fixed fuzzys in library/sys.po (#598) --- library/sys.po | 51 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/library/sys.po b/library/sys.po index 132307358..55011051b 100644 --- a/library/sys.po +++ b/library/sys.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2019-02-25 23:27+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-02-27 12:03+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.5.4\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/sys.rst:2 msgid ":mod:`sys` --- System-specific parameters and functions" @@ -276,11 +276,8 @@ msgstr "" "définit ici et pourrait changer." #: ../Doc/library/sys.rst:164 -#, fuzzy msgid "Integer specifying the handle of the Python DLL." -msgstr "" -"Nombre entier spécifiant le descripteur de la DLL Python. Disponibilité : " -"Windows." +msgstr "Nombre entier spécifiant le descripteur de la DLL Python." #: ../Doc/library/sys.rst:166 ../Doc/library/sys.rst:657 #: ../Doc/library/sys.rst:1330 ../Doc/library/sys.rst:1494 @@ -938,6 +935,8 @@ msgstr "" #: ../Doc/library/sys.rst:460 msgid "Return the build time API version of Android as an integer." msgstr "" +"Renvoie la version de l'API Android utilisée pour compiler sous forme d'un " +"entier." #: ../Doc/library/sys.rst:463 msgid ":ref:`Availability `: Android." @@ -1300,10 +1299,14 @@ msgstr "" "plus d'informations.)" #: ../Doc/library/sys.rst:685 +#, fuzzy msgid "" "Get the current coroutine origin tracking depth, as set by :func:" "`set_coroutine_origin_tracking_depth`." msgstr "" +"Récupère le nombre de cadres d'exécution conservés par les coroutines pour " +"le suivi de leur création, telle que défini par :func:" +"`set_coroutine_origin_tracking_depth`." #: ../Doc/library/sys.rst:691 ../Doc/library/sys.rst:703 #: ../Doc/library/sys.rst:1275 ../Doc/library/sys.rst:1314 @@ -1328,6 +1331,8 @@ msgid "" "The coroutine wrapper functionality has been deprecated, and will be removed " "in 3.8. See :issue:`32591` for details." msgstr "" +"La fonctionnalité *wrapper* de coroutine est obsolète et sera supprimée dans " +"3.8. Voir :issue:`32591` pour plus de détails." #: ../Doc/library/sys.rst:713 msgid "" @@ -1545,7 +1550,7 @@ msgid "" "base ``2**int_info.bits_per_digit``" msgstr "" "nombre de bits utilisés pour chaque chiffre. Les entiers Python sont " -"stockés en interne en base ``2**int_info.bits_per_digit``." +"stockés en interne en base ``2**int_info.bits_per_digit``" #: ../Doc/library/sys.rst:821 msgid ":const:`sizeof_digit`" @@ -2213,6 +2218,8 @@ msgid "" "If there is any error occurred in the trace function, it will be unset, just " "like ``settrace(None)`` is called." msgstr "" +"Si une erreur se produit dans la fonction de trace, elle sera désactivée, " +"tout comme si ``settrace(None)`` avait été appelée." #: ../Doc/library/sys.rst:1190 msgid "" @@ -2242,8 +2249,8 @@ msgstr "" "appelée, *arg* vaut ``None``, et la valeur de retour donne la nouvelle " "fonction de traçage locale. Voir :file:`Objects/lnotab_notes.txt` pour une " "explication détaillée de ce mécanisme. Les évènements par ligne peuvent être " -"désactivés pour une *frame* en mettant :attr:`f_trace_lines` à :const:" -"`False` pour cette *frame*" +"désactivés pour un cadre d'exécution en mettant :attr:`f_trace_lines` à :" +"const:`False` pour ce cadre d'exécution." #: ../Doc/library/sys.rst:1204 msgid "" @@ -2322,6 +2329,8 @@ msgid "" "``'opcode'`` event type added; :attr:`f_trace_lines` and :attr:" "`f_trace_opcodes` attributes added to frames" msgstr "" +"Ajout du type d’événement ``'opcode'`` ; les attributs :attr:`f_trace_lines` " +"et :attr:`f_trace_opcodes` ont été ajoutés aux cadres d'exécution" #: ../Doc/library/sys.rst:1241 msgid "" @@ -2355,6 +2364,12 @@ msgid "" "the coroutine object was created, with the most recent call first. When " "disabled, ``cr_origin`` will be None." msgstr "" +"Permet d'activer ou de désactiver le suivi d'origine de la coroutine. " +"Lorsque cette option est activée, l'attribut ``cr_origin`` sur les objets de " +"la coroutine contient un tuple (nom de fichier, numéro de ligne, nom de " +"fonction) de tuples gardant la trace d'appels de l'endroit où l'objet " +"coroutine a été créé, avec l'appel le plus récent en premier. Lorsqu'il est " +"désactivé, la valeur de ``cr_origin`` est ``None``." #: ../Doc/library/sys.rst:1266 msgid "" @@ -2362,10 +2377,13 @@ msgid "" "frames whose information will be captured. To disable, pass set *depth* to " "zero." msgstr "" +"Pour l'activer, passez une valeur *depth* supérieure à zéro ; cela définit " +"le nombre de cadres d'exécution dont les informations sont capturées. Pour " +"le désactiver, mettez *depth* à zéro." #: ../Doc/library/sys.rst:1270 msgid "This setting is thread-specific." -msgstr "" +msgstr "Ce paramètre est spécifique au fil d'exécution courant." #: ../Doc/library/sys.rst:1280 msgid "" @@ -2432,8 +2450,8 @@ msgid "" ":term:`File objects ` used by the interpreter for standard " "input, output and errors:" msgstr "" -":term:`objects fichier ` utilisé par l'interpréteur pour " -"l'entrée standard, la sortie standard, et la sortie d'erreurs." +":term:`objets fichiers ` utilisés par l'interpréteur pour " +"l'entrée standard, la sortie standard et la sortie d'erreurs :" #: ../Doc/library/sys.rst:1341 msgid "" @@ -2449,7 +2467,7 @@ msgid "" "statements and for the prompts of :func:`input`;" msgstr "" "``stdout`` est utilisé pour la sortie de :func:`print`, des :term:" -"`expression` et pour les invites de :func:`input`." +"`expression` et pour les invites de :func:`input` ;" #: ../Doc/library/sys.rst:1345 msgid "The interpreter's own prompts and its error messages go to ``stderr``." @@ -2701,7 +2719,6 @@ msgstr "" "plus d'informations sur le gestionnaire d'avertissements." #: ../Doc/library/sys.rst:1488 -#, fuzzy msgid "" "The version number used to form registry keys on Windows platforms. This is " "stored as string resource 1000 in the Python DLL. The value is normally the " @@ -2712,9 +2729,9 @@ msgstr "" "Le numéro de version utilisé pour construire les clefs de registre sous " "Windows. Elle est stockée en tant que *string resource* 1000 dans la DLL " "Python. Cette valeur équivaut typiquement aux trois premiers caractères de :" -"const:`version`. Elle est fournie par le module :mod:`sys` à titre " +"const:`version`. Elle est fournie par le module :mod:`sys` à titre " "d'information, et la modifier n'a aucun effet sur les clés de registre " -"utilisées par Python. Disponibilité: Windows." +"utilisées par Python." #: ../Doc/library/sys.rst:1499 msgid "" From 67ca3692299c7423db268868221f614ae133f238 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Tue, 26 Mar 2019 17:56:08 +0100 Subject: [PATCH 094/121] Fixed fuzzys in library/termios.po (#599) --- library/termios.po | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/library/termios.po b/library/termios.po index fefd5abfb..c7d22e45c 100644 --- a/library/termios.po +++ b/library/termios.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-10-04 16:01+0200\n" -"Last-Translator: \n" +"PO-Revision-Date: 2019-02-27 12:03+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.1.1\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/termios.rst:2 msgid ":mod:`termios` --- POSIX style tty control" @@ -96,14 +96,13 @@ msgstr "" "d’attente et rejeté toutes entrée en file d’attente." #: ../Doc/library/termios.rst:54 -#, fuzzy msgid "" "Send a break on file descriptor *fd*. A zero *duration* sends a break for " "0.25--0.5 seconds; a nonzero *duration* has a system dependent meaning." msgstr "" "Envoie une pause sur le descripteur de fichier *fd*. Une *duration* à zéro " -"envoie une pause de 0.25 —0.5 seconde; Une *duration* différente de zéro a " -"une définition spécifique pour chaque système." +"envoie une pause de 0,25 à 0,5 seconde ; une *duration* différente de zéro " +"possède une signification spécifique sur chaque système." #: ../Doc/library/termios.rst:60 msgid "" From 0c3015de6a3e0df9c0005a4eb2e47fad9a14bd51 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne - seluj78)" Date: Wed, 27 Mar 2019 17:53:14 +0100 Subject: [PATCH 095/121] Fixed translation --- faq/general.po | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/faq/general.po b/faq/general.po index 83c25420e..4b5c47a14 100644 --- a/faq/general.po +++ b/faq/general.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-20 09:03+0100\n" -"PO-Revision-Date: 2018-10-15 00:22+0200\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-27 17:45+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/faq/general.rst:5 msgid "General Python FAQ" @@ -601,6 +601,9 @@ msgid "" "managed by the Python Infrastructure Team. Details `here `__." msgstr "" +"L'infrastructure du projet Python est située dans le monde entier et est " +"gérée par l'équipe python infrastructure. Détails `ici `__." #: ../Doc/faq/general.rst:276 msgid "Why is it called Python?" From 9b70c956ea9617bfeac554fa5751ebcf12bf87b9 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Thu, 28 Mar 2019 08:34:16 +0100 Subject: [PATCH 096/121] Apply suggestions from code review Co-Authored-By: Seluj78 --- faq/general.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/general.po b/faq/general.po index 4b5c47a14..3b7bcd9c4 100644 --- a/faq/general.po +++ b/faq/general.po @@ -602,7 +602,7 @@ msgid "" "io>`__." msgstr "" "L'infrastructure du projet Python est située dans le monde entier et est " -"gérée par l'équipe python infrastructure. Détails `ici `__." #: ../Doc/faq/general.rst:276 From 552463e0c9a80fd88c053c8988dda6772795acdf Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne - seluj78)" Date: Thu, 28 Mar 2019 11:16:52 +0100 Subject: [PATCH 097/121] powrap --- faq/general.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faq/general.po b/faq/general.po index 3b7bcd9c4..005320ab5 100644 --- a/faq/general.po +++ b/faq/general.po @@ -602,8 +602,8 @@ msgid "" "io>`__." msgstr "" "L'infrastructure du projet Python est située dans le monde entier et est " -"gérée par l'équipe Python infrastructure. Plus de détails `ici `__." +"gérée par l'équipe Python infrastructure. Plus de détails `ici `__." #: ../Doc/faq/general.rst:276 msgid "Why is it called Python?" From a9ecbc479057102ace79ae9bcb19f823b5ed314e Mon Sep 17 00:00:00 2001 From: Antoine <43954001+awecx@users.noreply.github.com> Date: Fri, 29 Mar 2019 12:15:02 +0100 Subject: [PATCH 098/121] library/asyncio-task (#548) --- library/asyncio-task.po | 358 +++++++++++++++++++++++++++++++++++----- 1 file changed, 317 insertions(+), 41 deletions(-) diff --git a/library/asyncio-task.po b/library/asyncio-task.po index 142b1eb60..8125c28fb 100644 --- a/library/asyncio-task.po +++ b/library/asyncio-task.po @@ -5,9 +5,9 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-03 16:57+0100\n" -"PO-Revision-Date: 2018-10-13 11:37+0200\n" -"Last-Translator: Julien Palard \n" +"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"PO-Revision-Date: 2019-01-29 23:20+0100\n" +"Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -23,6 +23,8 @@ msgid "" "This section outlines high-level asyncio APIs to work with coroutines and " "Tasks." msgstr "" +"Cette section donne un aperçu des API de haut-niveau du module *asyncio* " +"pour utiliser les coroutines et les tâches." #: ../Doc/library/asyncio-task.rst:19 ../Doc/library/asyncio-task.rst:121 msgid "Coroutines" @@ -34,21 +36,29 @@ msgid "" "asyncio applications. For example, the following snippet of code (requires " "Python 3.7+) prints \"hello\", waits 1 second, and then prints \"world\"::" msgstr "" +"Il est recommandé d'utiliser la syntaxe *async* / *await* pour développer " +"des programmes *asyncio*. Par exemple, le morceau de code suivant " +"(nécessitant Python 3.7 ou supérieur) imprime *hello*, attend une seconde et " +"imprime ensuite *world* ::" #: ../Doc/library/asyncio-task.rst:37 msgid "" "Note that simply calling a coroutine will not schedule it to be executed::" -msgstr "" +msgstr "Appeler une coroutine ne la planifie pas pour exécution ::" #: ../Doc/library/asyncio-task.rst:43 msgid "To actually run a coroutine asyncio provides three main mechanisms:" msgstr "" +"Pour réellement exécuter une coroutine, *asyncio* fournit trois mécanismes " +"principaux ::" #: ../Doc/library/asyncio-task.rst:45 msgid "" "The :func:`asyncio.run` function to run the top-level entry point \"main()\" " "function (see the above example.)" msgstr "" +"La fonction :func:`asyncio.run` pour exécuter la fonction « main() », le " +"point d'entrée de haut-niveau (voir l'exemple ci-dessus)." #: ../Doc/library/asyncio-task.rst:48 msgid "" @@ -56,32 +66,41 @@ msgid "" "after waiting for 1 second, and then print \"world\" after waiting for " "*another* 2 seconds::" msgstr "" +"Attendre une coroutine. Le morceau de code suivant attend une seconde, " +"affiche « hello », attend 2 secondes *supplémentaires*, puis affiche enfin " +"*world* ::" #: ../Doc/library/asyncio-task.rst:69 msgid "Expected output::" -msgstr "" +msgstr "Sortie attendue ::" #: ../Doc/library/asyncio-task.rst:76 msgid "" "The :func:`asyncio.create_task` function to run coroutines concurrently as " "asyncio :class:`Tasks `." msgstr "" +"La fonction :func:`asyncio.create_task` pour exécuter de manière concurrente " +"des coroutines en tant que :class:`tâches ` *asyncio*." #: ../Doc/library/asyncio-task.rst:79 msgid "" "Let's modify the above example and run two ``say_after`` coroutines " "*concurrently*::" msgstr "" +"Modifions l'exemple ci-dessus et lançons deux coroutines ``say_after`` *de " +"manière concurrente* ::" #: ../Doc/library/asyncio-task.rst:98 msgid "" "Note that expected output now shows that the snippet runs 1 second faster " "than before::" msgstr "" +"La sortie attendue montre à présent que ce code s'exécute une seconde plus " +"rapidement que le précédent ::" #: ../Doc/library/asyncio-task.rst:110 msgid "Awaitables" -msgstr "" +msgstr "Awaitables" #: ../Doc/library/asyncio-task.rst:112 msgid "" @@ -89,39 +108,50 @@ msgid "" "keyword:`await` expression. Many asyncio APIs are designed to accept " "awaitables." msgstr "" +"Un objet est dit *awaitable* (*attendable*) s'il peut être utilisé dans une " +"expression :keyword:`await`. Beaucoup d'API d'*asyncio* sont conçues pour " +"accepter des *awaitables*." #: ../Doc/library/asyncio-task.rst:116 msgid "" "There are three main types of *awaitable* objects: **coroutines**, " "**Tasks**, and **Futures**." msgstr "" +"Il existe trois types principaux d'*awaitables* : les **coroutines**, les " +"**tâches** et les **futurs**." #: ../Doc/library/asyncio-task.rst:122 msgid "" "Python coroutines are *awaitables* and therefore can be awaited from other " "coroutines::" msgstr "" +"Les coroutines sont des *awaitables* et peuvent donc être attendues par " +"d'autres coroutines ::" #: ../Doc/library/asyncio-task.rst:143 msgid "" "In this documentation the term \"coroutine\" can be used for two closely " "related concepts:" msgstr "" +"Dans cette documentation, le terme « coroutine » est utilisé pour désigner " +"deux concepts voisins :" #: ../Doc/library/asyncio-task.rst:146 msgid "a *coroutine function*: an :keyword:`async def` function;" -msgstr "" +msgstr "une *fonction coroutine* : une fonction :keyword:`async def`;" #: ../Doc/library/asyncio-task.rst:148 msgid "" "a *coroutine object*: an object returned by calling a *coroutine function*." -msgstr "" +msgstr "un *objet coroutine* : un objet renvoyé par une *fonction coroutine*." #: ../Doc/library/asyncio-task.rst:151 msgid "" "asyncio also supports legacy :ref:`generator-based " "` coroutines." msgstr "" +"*asyncio* implémente également les coroutines :ref:`basées sur des " +"générateurs ` ; celles-ci sont obsolètes." #: ../Doc/library/asyncio-task.rst:156 msgid "Tasks" @@ -130,72 +160,95 @@ msgstr "Tâches" #: ../Doc/library/asyncio-task.rst:157 msgid "*Tasks* are used to schedule coroutines *concurrently*." msgstr "" +"Les *tâches* servent à planifier des coroutines de façon à ce qu'elles " +"s'exécutent de manière concurrente." #: ../Doc/library/asyncio-task.rst:159 msgid "" "When a coroutine is wrapped into a *Task* with functions like :func:`asyncio." "create_task` the coroutine is automatically scheduled to run soon::" msgstr "" +"Lorsqu'une coroutine est encapsulée dans une *tâche* à l'aide de fonctions " +"comme :func:`asyncio.create_task`, la coroutine est automatiquement " +"planifiée pour s'exécuter prochainement ::" #: ../Doc/library/asyncio-task.rst:181 msgid "Futures" -msgstr "" +msgstr "Futurs" #: ../Doc/library/asyncio-task.rst:182 msgid "" "A :class:`Future` is a special **low-level** awaitable object that " "represents an **eventual result** of an asynchronous operation." msgstr "" +"Un :class:`Future` est un objet *awaitable* spécial de **bas-niveau**, qui " +"représente le **résultat final** d'une opération asynchrone." #: ../Doc/library/asyncio-task.rst:185 msgid "" "When a Future object is *awaited* it means that the coroutine will wait " "until the Future is resolved in some other place." msgstr "" +"Quand un objet *Future* est *attendu*, cela signifie que la coroutine " +"attendra que ce futur soit résolu à un autre endroit." #: ../Doc/library/asyncio-task.rst:188 msgid "" "Future objects in asyncio are needed to allow callback-based code to be used " "with async/await." msgstr "" +"Les objets *Future* d'*asyncio* sont nécessaires pour permettre l'exécution " +"de code basé sur les fonctions de rappel avec la syntaxe *async* / *await*." #: ../Doc/library/asyncio-task.rst:191 msgid "" "Normally **there is no need** to create Future objects at the application " "level code." msgstr "" +"Il est normalement **inutile** de créer des objets *Future* dans la couche " +"applicative du code." #: ../Doc/library/asyncio-task.rst:194 msgid "" "Future objects, sometimes exposed by libraries and some asyncio APIs, can be " "awaited::" msgstr "" +"Les objets *Future*, parfois exposés par des bibliothèques et quelques API " +"d'*asyncio*, peuvent être attendus ::" #: ../Doc/library/asyncio-task.rst:206 msgid "" "A good example of a low-level function that returns a Future object is :meth:" "`loop.run_in_executor`." msgstr "" +":meth:`loop.run_in_executor` est l'exemple typique d'une fonction bas-niveau " +"renvoyant un objet *Future*." #: ../Doc/library/asyncio-task.rst:211 msgid "Running an asyncio Program" -msgstr "" +msgstr "Exécution d'un programme *asyncio*" #: ../Doc/library/asyncio-task.rst:215 msgid "" "This function runs the passed coroutine, taking care of managing the asyncio " "event loop and *finalizing asynchronous generators*." msgstr "" +"Cette fonction exécute la coroutine passée en argument. Elle gère la boucle " +"d'événements *asyncio* et *finalise les générateurs asynchrones*." #: ../Doc/library/asyncio-task.rst:219 msgid "" "This function cannot be called when another asyncio event loop is running in " "the same thread." msgstr "" +"Cette fonction ne peut pas être appelée si une autre boucle d'événement " +"s'exécute dans le même fil d'exécution." #: ../Doc/library/asyncio-task.rst:222 msgid "If *debug* is ``True``, the event loop will be run in debug mode." msgstr "" +"Si *debug* vaut ``True``, la boucle d'événement s'exécute en mode de " +"débogage." #: ../Doc/library/asyncio-task.rst:224 msgid "" @@ -203,59 +256,76 @@ msgid "" "should be used as a main entry point for asyncio programs, and should " "ideally only be called once." msgstr "" +"Cette fonction crée toujours une nouvelle boucle d'événement et la clôt à la " +"fin. Elle doit être utilisée comme point d'entrée principal des programmes " +"*asyncio* et ne doit être idéalement appelée qu'une seule fois." #: ../Doc/library/asyncio-task.rst:228 msgid "" "**Important:** this function has been added to asyncio in Python 3.7 on a :" "term:`provisional basis `." msgstr "" +"**Important :** cette fonction a été ajoutée à *asyncio* dans Python 3.7 de :" +"term:`manière provisoire `." #: ../Doc/library/asyncio-task.rst:234 msgid "Creating Tasks" -msgstr "" +msgstr "Création de tâches" #: ../Doc/library/asyncio-task.rst:238 msgid "" "Wrap the *coro* :ref:`coroutine ` into a :class:`Task` and " "schedule its execution. Return the Task object." msgstr "" +"Encapsule la :ref:`coroutine ` *coro* dans une tâche et la " +"planifie pour exécution. Renvoie l'objet :class:`Task`." #: ../Doc/library/asyncio-task.rst:241 msgid "" "The task is executed in the loop returned by :func:`get_running_loop`, :exc:" "`RuntimeError` is raised if there is no running loop in current thread." msgstr "" +"La tâche est exécutée dans la boucle renvoyée par :func:" +"`get_running_loop` ; :exc:`RuntimeError` est levée s'il n'y a pas de boucle " +"en cours d'exécution dans le fil actuel." #: ../Doc/library/asyncio-task.rst:245 msgid "" "This function has been **added in Python 3.7**. Prior to Python 3.7, the " "low-level :func:`asyncio.ensure_future` function can be used instead::" msgstr "" +"Cette fonction a été **ajoutée dans Python 3.7**. Pour les versions " +"antérieures à la 3.7, la fonction de bas-niveau :func:`asyncio." +"ensure_future` peut-être utilisée ::" #: ../Doc/library/asyncio-task.rst:264 msgid "Sleeping" -msgstr "" +msgstr "Attente" #: ../Doc/library/asyncio-task.rst:268 msgid "Block for *delay* seconds." -msgstr "" +msgstr "Attend pendant *delay* secondes." #: ../Doc/library/asyncio-task.rst:270 msgid "" "If *result* is provided, it is returned to the caller when the coroutine " "completes." msgstr "" +"Si *result* est spécifié, il est renvoyé à l'appelant quand la coroutine se " +"termine." #: ../Doc/library/asyncio-task.rst:273 msgid "" "``sleep()`` always suspends the current task, allowing other tasks to run." msgstr "" +"``sleep()`` suspend systématiquement la tâche courante, ce qui permet aux " +"autres tâches de s'exécuter." #: ../Doc/library/asyncio-task.rst:276 ../Doc/library/asyncio-task.rst:434 #: ../Doc/library/asyncio-task.rst:486 msgid "" "The *loop* argument is deprecated and scheduled for removal in Python 3.10." -msgstr "" +msgstr "L'argument *loop* est obsolète et sera supprimé en Python 3.10." #: ../Doc/library/asyncio-task.rst:281 msgid "" @@ -266,19 +336,23 @@ msgstr "" #: ../Doc/library/asyncio-task.rst:300 msgid "Running Tasks Concurrently" -msgstr "" +msgstr "Exécution de tâches de manière concurrente" #: ../Doc/library/asyncio-task.rst:304 msgid "" "Run :ref:`awaitable objects ` in the *aws* sequence " "*concurrently*." msgstr "" +"Exécute les objets :ref:`awaitable ` de la séquence " +"*aws*, *de manière concurrente*." #: ../Doc/library/asyncio-task.rst:307 msgid "" "If any awaitable in *aws* is a coroutine, it is automatically scheduled as a " "Task." msgstr "" +"Si un *awaitable* de *aws* est une coroutine, celui-ci est automatiquement " +"planifié comme une tâche." #: ../Doc/library/asyncio-task.rst:310 msgid "" @@ -286,6 +360,9 @@ msgid "" "list of returned values. The order of result values corresponds to the " "order of awaitables in *aws*." msgstr "" +"Si tous les *awaitables* s'achèvent avec succès, le résultat est la liste " +"des valeurs renvoyées. L'ordre de cette liste correspond à l'ordre des " +"*awaitables* dans *aws*." #: ../Doc/library/asyncio-task.rst:314 msgid "" @@ -294,18 +371,27 @@ msgid "" "awaitables in the *aws* sequence **won't be cancelled** and will continue to " "run." msgstr "" +"Si *return_exceptions* vaut ``False`` (valeur par défaut), la première " +"exception levée est immédiatement propagée vers la tâche en attente dans le " +"``gather()``. Les autres *awaitables* dans la séquence *aws* **ne sont pas " +"annulés** et poursuivent leur exécution." #: ../Doc/library/asyncio-task.rst:319 msgid "" "If *return_exceptions* is ``True``, exceptions are treated the same as " "successful results, and aggregated in the result list." msgstr "" +"Si *return_exceptions* vaut ``True``, les exceptions sont traitées de la " +"même manière que les exécutions normales, et incluses dans la liste des " +"résultats." #: ../Doc/library/asyncio-task.rst:322 msgid "" "If ``gather()`` is *cancelled*, all submitted awaitables (that have not " "completed yet) are also *cancelled*." msgstr "" +"Si ``gather()`` est *annulé*, tous les *awaitables* en cours (ceux qui n'ont " +"pas encore fini de s'exécuter) sont également *annulés*." #: ../Doc/library/asyncio-task.rst:325 msgid "" @@ -314,6 +400,11 @@ msgid "" "cancelled in this case. This is to prevent the cancellation of one " "submitted Task/Future to cause other Tasks/Futures to be cancelled." msgstr "" +"Si n'importe quel *Task* ou *Future* de la séquence *aws* est *annulé*, il " +"est traité comme s'il avait levé :exc:`CancelledError` — l'appel à " +"``gather()`` n'est alors **pas** annulé. Ceci permet d'empêcher que " +"l'annulation d'une tâche ou d'un futur entraîne l'annulation des autres " +"tâches ou futurs." #: ../Doc/library/asyncio-task.rst:333 ../Doc/library/asyncio-task.rst:439 #: ../Doc/library/asyncio-task.rst:561 @@ -325,6 +416,8 @@ msgid "" "If the *gather* itself is cancelled, the cancellation is propagated " "regardless of *return_exceptions*." msgstr "" +"Si *gather* est lui-même annulé, l'annulation est propagée indépendamment de " +"*return_exceptions*." #: ../Doc/library/asyncio-task.rst:373 msgid "Shielding From Cancellation" @@ -335,14 +428,18 @@ msgid "" "Protect an :ref:`awaitable object ` from being :meth:" "`cancelled `." msgstr "" +"Empêche qu'un objet :ref:`awaitable ` puisse être :meth:" +"`annulé `." #: ../Doc/library/asyncio-task.rst:380 ../Doc/library/asyncio-task.rst:417 msgid "If *aw* is a coroutine it is automatically scheduled as a Task." msgstr "" +"Si *aw* est une coroutine, elle est planifiée automatiquement comme une " +"tâche." #: ../Doc/library/asyncio-task.rst:382 msgid "The statement::" -msgstr "L'instruction : ::" +msgstr "L'instruction ::" #: ../Doc/library/asyncio-task.rst:386 msgid "is equivalent to::" @@ -356,12 +453,19 @@ msgid "" "still cancelled, so the \"await\" expression still raises a :exc:" "`CancelledError`." msgstr "" +"*à la différence près* que si la coroutine qui la contient est annulée, la " +"tâche s'exécutant dans ``something()`` n'est pas annulée. Du point de vue " +"de ``something()``, il n'y a pas eu d'annulation. Cependant, son appelant " +"est bien annulé, donc l'expression *await* lève bien une :exc:" +"`CancelledError`." #: ../Doc/library/asyncio-task.rst:396 msgid "" "If ``something()`` is cancelled by other means (i.e. from within itself) " "that would also cancel ``shield()``." msgstr "" +"Si ``something()`` est annulée d'une autre façon (*i.e.* depuis elle-même) " +"ceci annule également ``shield()``." #: ../Doc/library/asyncio-task.rst:399 msgid "" @@ -369,6 +473,9 @@ msgid "" "``shield()`` function should be combined with a try/except clause, as " "follows::" msgstr "" +"Pour ignorer complètement l'annulation (déconseillé), la fonction " +"``shield()`` peut être combinée à une clause *try* / *except*, comme dans le " +"code ci-dessous ::" #: ../Doc/library/asyncio-task.rst:410 msgid "Timeouts" @@ -379,50 +486,67 @@ msgid "" "Wait for the *aw* :ref:`awaitable ` to complete with a " "timeout." msgstr "" +"Attend la fin de l':ref:`awaitable ` *aw* avec délai " +"d'attente." #: ../Doc/library/asyncio-task.rst:419 msgid "" "*timeout* can either be ``None`` or a float or int number of seconds to wait " "for. If *timeout* is ``None``, block until the future completes." msgstr "" +"*timeout* peut-être soit ``None``, soit le nombre de secondes (entier ou " +"décimal) d'attente. Si *timeout* vaut ``None``, la fonction s'interrompt " +"jusqu'à ce que le futur s'achève." #: ../Doc/library/asyncio-task.rst:423 msgid "" "If a timeout occurs, it cancels the task and raises :exc:`asyncio." "TimeoutError`." msgstr "" +"Si le délai d'attente maximal est dépassé, la tâche est annulée et " +"l'exception :exc:`asyncio.TimeoutError` est levée." #: ../Doc/library/asyncio-task.rst:426 msgid "" "To avoid the task :meth:`cancellation `, wrap it in :func:" "`shield`." msgstr "" +"Pour empêcher :meth:`l'annulation ` de la tâche, il est " +"nécessaire de l'encapsuler dans une fonction :func:`shield`." #: ../Doc/library/asyncio-task.rst:429 msgid "" "The function will wait until the future is actually cancelled, so the total " "wait time may exceed the *timeout*." msgstr "" +"Cette fonction attend que le futur soit réellement annulé, donc le temps " +"d'attente total peut être supérieur à *timeout*." #: ../Doc/library/asyncio-task.rst:432 msgid "If the wait is cancelled, the future *aw* is also cancelled." -msgstr "" +msgstr "Si l'attente est annulée, le futur *aw* est également annulé." #: ../Doc/library/asyncio-task.rst:459 msgid "" "When *aw* is cancelled due to a timeout, ``wait_for`` waits for *aw* to be " "cancelled. Previously, it raised :exc:`asyncio.TimeoutError` immediately." msgstr "" +"Si le dépassement du délai d'attente maximal provoque l'annulation de *aw*, " +"``wait_for`` attend que *aw* soit annulée. Auparavant, l'exception :exc:" +"`asyncio.TimeoutError` était immédiatement levée." #: ../Doc/library/asyncio-task.rst:466 msgid "Waiting Primitives" -msgstr "" +msgstr "Primitives d'attente" #: ../Doc/library/asyncio-task.rst:471 msgid "" "Run :ref:`awaitable objects ` in the *aws* set " "concurrently and block until the condition specified by *return_when*." msgstr "" +"Exécute les objets :ref:`awaitables ` de l'ensemble " +"*aws* de manière concurrente, et s'interrompt jusqu'à ce que la condition " +"décrite dans *return_when* soit vraie." #: ../Doc/library/asyncio-task.rst:475 msgid "" @@ -430,10 +554,14 @@ msgid "" "Task. Passing coroutines objects to ``wait()`` directly is deprecated as it " "leads to :ref:`confusing behavior `." msgstr "" +"Si un *awaitable* de *aws* est une coroutine, celle-ci est automatiquement " +"planifiée comme une tâche. Passer directement des objets coroutines à " +"``wait()`` est obsolète, car ceci conduisait :ref:`à un comportement portant " +"à confusion `." #: ../Doc/library/asyncio-task.rst:480 msgid "Returns two sets of Tasks/Futures: ``(done, pending)``." -msgstr "" +msgstr "Renvoie deux ensembles de *Tasks* / *Futures* : ``(done, pending)``." #: ../Doc/library/asyncio-task.rst:482 msgid "Usage::" @@ -444,6 +572,8 @@ msgid "" "*timeout* (a float or int), if specified, can be used to control the maximum " "number of seconds to wait before returning." msgstr "" +"*timeout* (entier ou décimal), si précisé, peut-être utilisé pour contrôler " +"le nombre maximal de secondes d'attente avant de se terminer." #: ../Doc/library/asyncio-task.rst:492 msgid "" @@ -451,12 +581,17 @@ msgid "" "or Tasks that aren't done when the timeout occurs are simply returned in the " "second set." msgstr "" +"Cette fonction ne lève pas :exc:`asyncio.TimeoutError`. Les futurs et les " +"tâches qui ne sont pas finis quand le délai d'attente maximal est dépassé " +"sont tout simplement renvoyés dans le second ensemble." #: ../Doc/library/asyncio-task.rst:496 msgid "" "*return_when* indicates when this function should return. It must be one of " "the following constants:" msgstr "" +"*return_when* indique quand la fonction doit se terminer. Il peut prendre " +"les valeurs suivantes :" #: ../Doc/library/asyncio-task.rst:502 msgid "Constant" @@ -473,6 +608,7 @@ msgstr ":const:`FIRST_COMPLETED`" #: ../Doc/library/asyncio-task.rst:504 msgid "The function will return when any future finishes or is cancelled." msgstr "" +"La fonction se termine lorsque n'importe quel futur se termine ou est annulé." #: ../Doc/library/asyncio-task.rst:507 msgid ":const:`FIRST_EXCEPTION`" @@ -484,6 +620,9 @@ msgid "" "If no future raises an exception then it is equivalent to :const:" "`ALL_COMPLETED`." msgstr "" +"La fonction se termine lorsque n'importe quel futur se termine en levant une " +"exception. Si aucun *futur* ne lève d'exception, équivaut à :const:" +"`ALL_COMPLETED`." #: ../Doc/library/asyncio-task.rst:513 msgid ":const:`ALL_COMPLETED`" @@ -492,12 +631,15 @@ msgstr ":const:`ALL_COMPLETED`" #: ../Doc/library/asyncio-task.rst:513 msgid "The function will return when all futures finish or are cancelled." msgstr "" +"La fonction se termine lorsque les *futurs* sont tous finis ou annulés." #: ../Doc/library/asyncio-task.rst:517 msgid "" "Unlike :func:`~asyncio.wait_for`, ``wait()`` does not cancel the futures " "when a timeout occurs." msgstr "" +"À la différence de :func:`~asyncio.wait_for`, ``wait()`` n'annule pas les " +"futurs quand le délai d'attente est dépassé." #: ../Doc/library/asyncio-task.rst:523 msgid "" @@ -505,14 +647,17 @@ msgid "" "those implicitly created Task objects in ``(done, pending)`` sets. " "Therefore the following code won't work as expected::" msgstr "" +"``wait()`` planifie automatiquement les coroutines comme des tâches et " +"renvoie les objets *Task* ainsi créés dans les ensembles ``(done, " +"pending)``. Le code suivant ne fonctionne donc pas comme voulu ::" #: ../Doc/library/asyncio-task.rst:536 msgid "Here is how the above snippet can be fixed::" -msgstr "" +msgstr "Voici comment corriger le morceau de code ci-dessus ::" #: ../Doc/library/asyncio-task.rst:547 msgid "Passing coroutine objects to ``wait()`` directly is deprecated." -msgstr "" +msgstr "Passer directement des objets coroutines à ``wait()`` est obsolète." #: ../Doc/library/asyncio-task.rst:553 msgid "" @@ -521,87 +666,117 @@ msgid "" "object returned represents the earliest result from the set of the remaining " "awaitables." msgstr "" +"Exécute les objets :ref:`awaitables ` de l'ensemble " +"*aws* de manière concurrente. Renvoie un itérateur sur des objets :class:" +"`Future`. Chaque objet *futur* renvoyé représente le résultat le plus récent " +"de l'ensemble des *awaitables* restants." #: ../Doc/library/asyncio-task.rst:558 msgid "" "Raises :exc:`asyncio.TimeoutError` if the timeout occurs before all Futures " "are done." msgstr "" +"Lève une exception :exc:`asyncio.TimeoutError` si le délai d'attente est " +"dépassé avant que tous les futurs ne soient achevés." #: ../Doc/library/asyncio-task.rst:569 msgid "Scheduling From Other Threads" -msgstr "" +msgstr "Planification depuis d'autres fils d'exécution" #: ../Doc/library/asyncio-task.rst:573 msgid "Submit a coroutine to the given event loop. Thread-safe." msgstr "" +"Enregistre une coroutine dans la boucle d'exécution actuelle. Cette " +"opération est compatible avec les programmes à multiples fils d'exécution " +"(*thread-safe*)." #: ../Doc/library/asyncio-task.rst:575 msgid "" "Return a :class:`concurrent.futures.Future` to wait for the result from " "another OS thread." msgstr "" +"Renvoie un :class:`concurrent.futures.Future` pour attendre le résultat d'un " +"autre fil d'exécution du système d'exploitation." #: ../Doc/library/asyncio-task.rst:578 msgid "" "This function is meant to be called from a different OS thread than the one " "where the event loop is running. Example::" msgstr "" +"Cette fonction est faite pour être appelée par un fil d'exécution distinct " +"de celui dans laquelle la boucle d'événement s'exécute. Exemple ::" #: ../Doc/library/asyncio-task.rst:590 msgid "" "If an exception is raised in the coroutine, the returned Future will be " "notified. It can also be used to cancel the task in the event loop::" msgstr "" +"Si une exception est levée dans une coroutine, le futur renvoyé en sera " +"averti. Elle peut également être utilisée pour annuler la tâche de la boucle " +"d'événement ::" #: ../Doc/library/asyncio-task.rst:604 msgid "" "See the :ref:`concurrency and multithreading ` " "section of the documentation." msgstr "" +"Voir la section :ref:`exécution concurrente et multi-fils d'exécution " +"` de la documentation." #: ../Doc/library/asyncio-task.rst:607 msgid "" "Unlike other asyncio functions this function requires the *loop* argument to " "be passed explicitly." msgstr "" +"À la différence des autres fonction d'*asyncio*, cette fonction requiert que " +"*loop* soit passé de manière explicite." #: ../Doc/library/asyncio-task.rst:614 msgid "Introspection" -msgstr "" +msgstr "Introspection" #: ../Doc/library/asyncio-task.rst:619 msgid "" "Return the currently running :class:`Task` instance, or ``None`` if no task " "is running." msgstr "" +"Renvoie l'instance de la :class:`Task` en cours d'exécution, ou ``None`` " +"s'il n'y a pas de tâche en cours." #: ../Doc/library/asyncio-task.rst:622 msgid "" "If *loop* is ``None`` :func:`get_running_loop` is used to get the current " "loop." msgstr "" +"Si *loop* vaut ``None``, :func:`get_running_loop` est appelée pour récupérer " +"la boucle en cours d'exécution." #: ../Doc/library/asyncio-task.rst:630 msgid "Return a set of not yet finished :class:`Task` objects run by the loop." msgstr "" -"Donne l'ensemble des :class:`Task` non terminées exécutées par la boucle." +"Renvoie l'ensemble des :class:`Task` non terminés en cours d'exécution dans " +"la boucle." #: ../Doc/library/asyncio-task.rst:633 msgid "" "If *loop* is ``None``, :func:`get_running_loop` is used for getting current " "loop." msgstr "" +"Si *loop* vaut ``None``, :func:`get_running_loop` est appelée pour récupérer " +"la boucle en cours d'exécution." #: ../Doc/library/asyncio-task.rst:640 msgid "Task Object" -msgstr "" +msgstr "Objets *Task*" #: ../Doc/library/asyncio-task.rst:644 msgid "" "A :class:`Future-like ` object that runs a Python :ref:`coroutine " "`. Not thread-safe." msgstr "" +"Objet compatible avec :class:`Future ` qui exécute une :ref:" +"`coroutine ` Python. Cet objet n'est pas utilisable dans des " +"programmes à fils d'exécution multiples." #: ../Doc/library/asyncio-task.rst:647 msgid "" @@ -610,6 +785,10 @@ msgid "" "completion of the Future. When the Future is *done*, the execution of the " "wrapped coroutine resumes." msgstr "" +"Les tâches servent à exécuter des coroutines dans des boucles d'événements. " +"Si une coroutine attend un futur, la tâche interrompt son exécution et " +"attend la fin de ce *futur*. Quand celui-ci est terminé, l'exécution de la " +"coroutine encapsulée reprend." #: ../Doc/library/asyncio-task.rst:653 msgid "" @@ -617,6 +796,10 @@ msgid "" "time. While a Task awaits for the completion of a Future, the event loop " "runs other Tasks, callbacks, or performs IO operations." msgstr "" +"Les boucles d'événement fonctionnent de manière *coopérative* : une boucle " +"d'événement exécute une tâche à la fois. Quand une tâche attend la fin d'un " +"futur, la boucle d'événement exécute d'autres tâches, des fonctions de " +"rappel, ou effectue des opérations d'entrées-sorties." #: ../Doc/library/asyncio-task.rst:658 msgid "" @@ -624,6 +807,10 @@ msgid "" "the low-level :meth:`loop.create_task` or :func:`ensure_future` functions. " "Manual instantiation of Tasks is discouraged." msgstr "" +"La fonction de haut niveau :func:`asyncio.create_task` et les fonctions de " +"bas-niveau :meth:`loop.create_task` ou :func:`ensure_future` permettent de " +"créer des tâches. Il est déconseillé d'instancier manuellement des objets " +"*Task*." #: ../Doc/library/asyncio-task.rst:663 msgid "" @@ -632,6 +819,10 @@ msgid "" "coroutine. If a coroutine is awaiting on a Future object during " "cancellation, the Future object will be cancelled." msgstr "" +"La méthode :meth:`cancel` d'une tâche en cours d'exécution permet d'annuler " +"celle-ci. L'appel de cette méthode force la tâche à lever l'exception :exc:" +"`CancelledError` dans la coroutine encapsulée. Si la coroutine attendait un " +"*futur* au moment de l'annulation, celui-ci est annulé." #: ../Doc/library/asyncio-task.rst:668 msgid "" @@ -639,12 +830,17 @@ msgid "" "returns ``True`` if the wrapped coroutine did not suppress the :exc:" "`CancelledError` exception and was actually cancelled." msgstr "" +"La méthode :meth:`cancelled` permet de vérifier si la tâche a été annulée. " +"Elle renvoie ``True`` si la coroutine encapsulée n'a pas ignoré l'exception :" +"exc:`CancelledError` et a bien été annulée." #: ../Doc/library/asyncio-task.rst:673 msgid "" ":class:`asyncio.Task` inherits from :class:`Future` all of its APIs except :" "meth:`Future.set_result` and :meth:`Future.set_exception`." msgstr "" +":class:`asyncio.Task` hérite de :class:`Future`, de toute son API, à " +"l'exception de :meth:`Future.set_result` et de :meth:`Future.set_exception`." #: ../Doc/library/asyncio-task.rst:677 msgid "" @@ -652,20 +848,26 @@ msgid "" "copies the current context and later runs its coroutine in the copied " "context." msgstr "" +"*Task* implémente le module :mod:`contextvars`. Lors de sa création, une " +"tâche effectue une copie du contexte actuel et exécutera ses coroutines dans " +"cette copie." #: ../Doc/library/asyncio-task.rst:681 msgid "Added support for the :mod:`contextvars` module." -msgstr "" +msgstr "Ajout du support du module :mod:`contextvars`." #: ../Doc/library/asyncio-task.rst:686 msgid "Request the Task to be cancelled." -msgstr "Demande à ce qu'une tâche soit annulée." +msgstr "Demande l'annulation d'une tâche." #: ../Doc/library/asyncio-task.rst:688 msgid "" "This arranges for a :exc:`CancelledError` exception to be thrown into the " "wrapped coroutine on the next cycle of the event loop." msgstr "" +"Provisionne la levée de l'exception :exc:`CancelledError` dans la coroutine " +"encapsulée. L'exception sera levée au prochain cycle de la boucle " +"d'exécution." #: ../Doc/library/asyncio-task.rst:691 msgid "" @@ -676,16 +878,24 @@ msgid "" "be cancelled, although suppressing cancellation completely is not common and " "is actively discouraged." msgstr "" +"La coroutine peut alors se nettoyer ou même ignorer la requête en supprimant " +"l'exception à l'aide d'un bloc :keyword:`try` ... ... ``except " +"CancelledError`` ... :keyword:`finally`. Par conséquent, contrairement à :" +"meth:`Future.cancel`, :meth:`Task.cancel` ne garantit pas que la tâche sera " +"annulée, bien qu'ignorer totalement une annulation ne soit ni une pratique " +"courante, ni encouragé." #: ../Doc/library/asyncio-task.rst:701 msgid "" "The following example illustrates how coroutines can intercept the " "cancellation request::" msgstr "" +"L'exemple ci-dessous illustre comment une coroutine peut intercepter une " +"requête d'annulation ::" #: ../Doc/library/asyncio-task.rst:740 msgid "Return ``True`` if the Task is *cancelled*." -msgstr "" +msgstr "Renvoie ``True`` si la tâche est *annulée*." #: ../Doc/library/asyncio-task.rst:742 msgid "" @@ -693,81 +903,105 @@ msgid "" "`cancel` and the wrapped coroutine propagated the :exc:`CancelledError` " "exception thrown into it." msgstr "" +"La tâche est *annulée* quand l'annulation a été demandée avec :meth:`cancel` " +"et la coroutine encapsulée a propagé l'exception :exc:`CancelledError` qui a " +"été levée en son sein." #: ../Doc/library/asyncio-task.rst:748 msgid "Return ``True`` if the Task is *done*." -msgstr "" +msgstr "Renvoie ``True`` si la tâche est *achevée*." #: ../Doc/library/asyncio-task.rst:750 msgid "" "A Task is *done* when the wrapped coroutine either returned a value, raised " "an exception, or the Task was cancelled." msgstr "" +"Une tâche est dite *achevée* quand la coroutine encapsulée a soit renvoyé " +"une valeur, soit levé une exception, ou que la tâche a été annulée." #: ../Doc/library/asyncio-task.rst:755 msgid "Return the result of the Task." -msgstr "" +msgstr "Renvoie le résultat de la tâche." #: ../Doc/library/asyncio-task.rst:757 msgid "" "If the Task is *done*, the result of the wrapped coroutine is returned (or " "if the coroutine raised an exception, that exception is re-raised.)" msgstr "" +"Si la tâche est *achevée*, le résultat de la coroutine encapsulée est " +"renvoyé (sinon, dans le cas où la coroutine a levé une exception, cette " +"exception est de nouveau levée)." #: ../Doc/library/asyncio-task.rst:761 ../Doc/library/asyncio-task.rst:775 msgid "" "If the Task has been *cancelled*, this method raises a :exc:`CancelledError` " "exception." msgstr "" +"Si la tâche a été *annulée*, cette méthode lève une exception :exc:" +"`CancelledError`." #: ../Doc/library/asyncio-task.rst:764 msgid "" "If the Task's result isn't yet available, this method raises a :exc:" "`InvalidStateError` exception." msgstr "" +"Si le résultat de la tâche n'est pas encore disponible, cette méthode lève " +"une exception :exc:`InvalidStateError`." #: ../Doc/library/asyncio-task.rst:769 msgid "Return the exception of the Task." -msgstr "" +msgstr "Renvoie l'exception de la tâche." #: ../Doc/library/asyncio-task.rst:771 msgid "" "If the wrapped coroutine raised an exception that exception is returned. If " "the wrapped coroutine returned normally this method returns ``None``." msgstr "" +"Si la coroutine encapsulée lève une exception, cette exception est renvoyée. " +"Si la coroutine s'est exécutée normalement, cette méthode renvoie ``None``." #: ../Doc/library/asyncio-task.rst:778 msgid "" "If the Task isn't *done* yet, this method raises an :exc:`InvalidStateError` " "exception." msgstr "" +"Si la tâche n'est pas encore *achevée*, cette méthode lève une exception :" +"exc:`InvalidStateError`." #: ../Doc/library/asyncio-task.rst:783 msgid "Add a callback to be run when the Task is *done*." msgstr "" +"Ajoute une fonction de rappel qui sera exécutée quand la tâche sera " +"*achevée*." #: ../Doc/library/asyncio-task.rst:785 ../Doc/library/asyncio-task.rst:794 msgid "This method should only be used in low-level callback-based code." msgstr "" +"Cette méthode ne doit être utilisée que dans du code basé sur les fonctions " +"de rappel de bas-niveau." #: ../Doc/library/asyncio-task.rst:787 msgid "" "See the documentation of :meth:`Future.add_done_callback` for more details." msgstr "" +"Se référer à la documentation de :meth:`Future.add_done_callback` pour plus " +"de détails." #: ../Doc/library/asyncio-task.rst:792 msgid "Remove *callback* from the callbacks list." -msgstr "" +msgstr "Retire *callback* de la liste de fonctions de rappel." #: ../Doc/library/asyncio-task.rst:796 msgid "" "See the documentation of :meth:`Future.remove_done_callback` for more " "details." msgstr "" +"Se référer à la documentation de :meth:`Future.remove_done_callback` pour " +"plus de détails." #: ../Doc/library/asyncio-task.rst:801 msgid "Return the list of stack frames for this Task." -msgstr "" +msgstr "Renvoie une liste représentant la pile d'appels de la tâche." #: ../Doc/library/asyncio-task.rst:803 msgid "" @@ -776,14 +1010,19 @@ msgid "" "this returns an empty list. If the coroutine was terminated by an exception, " "this returns the list of traceback frames." msgstr "" +"Si la coroutine encapsulée n'est pas terminée, cette fonction renvoie la " +"pile d'appels à partir de l'endroit où celle-ci est interrompue. Si la " +"coroutine s'est terminée normalement ou a été annulée, cette fonction " +"renvoie une liste vide. Si la coroutine a été terminée par une exception, " +"ceci renvoie la pile d'erreurs." #: ../Doc/library/asyncio-task.rst:809 msgid "The frames are always ordered from oldest to newest." -msgstr "" +msgstr "La pile est toujours affichée de l'appelant à l'appelé." #: ../Doc/library/asyncio-task.rst:811 msgid "Only one stack frame is returned for a suspended coroutine." -msgstr "" +msgstr "Une seule ligne est renvoyée si la coroutine est suspendue." #: ../Doc/library/asyncio-task.rst:813 msgid "" @@ -793,30 +1032,39 @@ msgid "" "newest frames of a stack are returned, but the oldest frames of a traceback " "are returned. (This matches the behavior of the traceback module.)" msgstr "" +"L'argument facultatif *limit* définit le nombre maximal d'appels à " +"renvoyer ; par défaut, tous sont renvoyés. L'ordre de la liste diffère selon " +"la nature de celle-ci : les appels les plus récents d'une pile d'appels sont " +"renvoyés, si la pile est une pile d'erreurs, ce sont les appels les plus " +"anciens qui le sont (dans un souci de cohérence avec le module *traceback*)." #: ../Doc/library/asyncio-task.rst:822 msgid "Print the stack or traceback for this Task." -msgstr "" +msgstr "Affiche la pile d'appels ou d'erreurs de la tâche." #: ../Doc/library/asyncio-task.rst:824 msgid "" "This produces output similar to that of the traceback module for the frames " "retrieved by :meth:`get_stack`." msgstr "" +"Le format de sortie des appels produits par :meth:`get_stack` est similaire " +"à celui du module *traceback*. " #: ../Doc/library/asyncio-task.rst:827 msgid "The *limit* argument is passed to :meth:`get_stack` directly." -msgstr "" +msgstr "Le paramètre *limit* est directement passé à :meth:`get_stack`." #: ../Doc/library/asyncio-task.rst:829 msgid "" "The *file* argument is an I/O stream to which the output is written; by " "default output is written to :data:`sys.stderr`." msgstr "" +"Le paramètre *file* est un flux d'entrées-sorties sur lequel le résultat est " +"écrit ; par défaut, :data:`sys.stderr`." #: ../Doc/library/asyncio-task.rst:834 msgid "Return a set of all tasks for an event loop." -msgstr "Donne l'ensemble des tâches d'une boucle d'évènements." +msgstr "Renvoie l'ensemble des tâches d'une boucle d'évènements." #: ../Doc/library/asyncio-task.rst:836 msgid "" @@ -824,38 +1072,49 @@ msgid "" "``None``, the :func:`get_event_loop` function is used to get the current " "loop." msgstr "" +"Par défaut, toutes les tâches de la boucle d'exécution actuelle sont " +"renvoyées. Si *loop* vaut ``None``, la fonction :func:`get_event_loop` est " +"appelée pour récupérer la boucle d'exécution actuelle." #: ../Doc/library/asyncio-task.rst:840 msgid "" "This method is **deprecated** and will be removed in Python 3.9. Use the :" "func:`asyncio.all_tasks` function instead." msgstr "" +"Cette méthode est **obsolète** et sera supprimée en Python 3.9. Utilisez la " +"fonction :func:`asyncio.all_tasks` à la place." #: ../Doc/library/asyncio-task.rst:845 msgid "Return the currently running task or ``None``." -msgstr "" +msgstr "Renvoie la tâche en cours d'exécution ou ``None``." #: ../Doc/library/asyncio-task.rst:847 msgid "" "If *loop* is ``None``, the :func:`get_event_loop` function is used to get " "the current loop." msgstr "" +"Si *loop* vaut ``None``, la fonction :func:`get_event_loop` est utilisée " +"pour récupérer la boucle d'exécution actuelle." #: ../Doc/library/asyncio-task.rst:850 msgid "" "This method is **deprecated** and will be removed in Python 3.9. Use the :" "func:`asyncio.current_task` function instead." msgstr "" +"Cette méthode est **obsolète** et sera supprimée en Python 3.9. Utilisez la " +"fonction :func:`asyncio.current_task` à la place." #: ../Doc/library/asyncio-task.rst:858 msgid "Generator-based Coroutines" -msgstr "" +msgstr "Coroutines basées sur des générateurs" #: ../Doc/library/asyncio-task.rst:862 msgid "" "Support for generator-based coroutines is **deprecated** and is scheduled " "for removal in Python 3.10." msgstr "" +"Les coroutines basées sur des générateurs sont **obsolètes** et il est prévu " +"de les supprimer en Python 3.10." #: ../Doc/library/asyncio-task.rst:865 msgid "" @@ -863,31 +1122,43 @@ msgid "" "generators that use ``yield from`` expressions to await on Futures and other " "coroutines." msgstr "" +"Les coroutines basées sur des générateurs sont antérieures à la syntaxe " +"*async* / *await*. Il existe des générateurs Python qui utilisent les " +"expressions ``yield from`` pour attendre des *futurs* et autres coroutines." #: ../Doc/library/asyncio-task.rst:869 msgid "" "Generator-based coroutines should be decorated with :func:`@asyncio." "coroutine `, although this is not enforced." msgstr "" +"Les coroutines basées sur des générateurs doivent être décorées avec :func:" +"`@asyncio.coroutine `, même si ce n'est pas vérifié par " +"l'interpréteur." #: ../Doc/library/asyncio-task.rst:876 msgid "Decorator to mark generator-based coroutines." -msgstr "" +msgstr "Décorateur pour coroutines basées sur des générateurs." #: ../Doc/library/asyncio-task.rst:878 msgid "" "This decorator enables legacy generator-based coroutines to be compatible " "with async/await code::" msgstr "" +"Ce décorateur rend compatibles les coroutines basées sur des générateurs " +"avec le code *async* / *await* ::" #: ../Doc/library/asyncio-task.rst:888 msgid "" "This decorator is **deprecated** and is scheduled for removal in Python 3.10." msgstr "" +"Ce décorateur est **obsolète** et il est prévu de le supprimer en Python " +"3.10." #: ../Doc/library/asyncio-task.rst:891 msgid "This decorator should not be used for :keyword:`async def` coroutines." msgstr "" +"Ce décorateur ne doit pas être utilisé avec des coroutines :keyword:`async " +"def`." #: ../Doc/library/asyncio-task.rst:896 msgid "Return ``True`` if *obj* is a :ref:`coroutine object `." @@ -898,6 +1169,8 @@ msgid "" "This method is different from :func:`inspect.iscoroutine` because it returns " "``True`` for generator-based coroutines." msgstr "" +"Cette méthode est différente de :func:`inspect.iscoroutine` car elle renvoie " +"``True`` pour des coroutines basées sur des générateurs." #: ../Doc/library/asyncio-task.rst:903 msgid "Return ``True`` if *func* is a :ref:`coroutine function `." @@ -910,6 +1183,9 @@ msgid "" "returns ``True`` for generator-based coroutine functions decorated with :" "func:`@coroutine `." msgstr "" +"Cette méthode est différente de :func:`inspect.iscoroutinefunction` car elle " +"renvoie ``True`` pour des coroutines basées sur des générateurs, décorées " +"avec :func:`@coroutine `." #~ msgid "Tasks and coroutines" #~ msgstr "Tâches et coroutines" From 878499a8c391f689d31eb5d4b5b8b9696a9fdf06 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 29 Mar 2019 12:23:57 +0100 Subject: [PATCH 099/121] Proofreading asyncio-task. --- library/asyncio-task.po | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/library/asyncio-task.po b/library/asyncio-task.po index 8125c28fb..e7fba4d2e 100644 --- a/library/asyncio-task.po +++ b/library/asyncio-task.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-10-12 18:59+0200\n" -"PO-Revision-Date: 2019-01-29 23:20+0100\n" +"PO-Revision-Date: 2019-03-29 12:23+0100\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -38,8 +38,8 @@ msgid "" msgstr "" "Il est recommandé d'utiliser la syntaxe *async* / *await* pour développer " "des programmes *asyncio*. Par exemple, le morceau de code suivant " -"(nécessitant Python 3.7 ou supérieur) imprime *hello*, attend une seconde et " -"imprime ensuite *world* ::" +"(nécessitant Python 3.7 ou supérieur) affiche *hello*, attend une seconde et " +"affiche ensuite *world* ::" #: ../Doc/library/asyncio-task.rst:37 msgid "" @@ -50,7 +50,7 @@ msgstr "Appeler une coroutine ne la planifie pas pour exécution ::" msgid "To actually run a coroutine asyncio provides three main mechanisms:" msgstr "" "Pour réellement exécuter une coroutine, *asyncio* fournit trois mécanismes " -"principaux ::" +"principaux :" #: ../Doc/library/asyncio-task.rst:45 msgid "" @@ -108,9 +108,9 @@ msgid "" "keyword:`await` expression. Many asyncio APIs are designed to accept " "awaitables." msgstr "" -"Un objet est dit *awaitable* (*attendable*) s'il peut être utilisé dans une " -"expression :keyword:`await`. Beaucoup d'API d'*asyncio* sont conçues pour " -"accepter des *awaitables*." +"Un objet est dit *awaitable* (qui peut être attendu) s'il peut être utilisé " +"dans une expression :keyword:`await`. Beaucoup d'API d'*asyncio* sont " +"conçues pour accepter des *awaitables*." #: ../Doc/library/asyncio-task.rst:116 msgid "" @@ -134,16 +134,16 @@ msgid "" "related concepts:" msgstr "" "Dans cette documentation, le terme « coroutine » est utilisé pour désigner " -"deux concepts voisins :" +"deux concepts voisins :" #: ../Doc/library/asyncio-task.rst:146 msgid "a *coroutine function*: an :keyword:`async def` function;" -msgstr "une *fonction coroutine* : une fonction :keyword:`async def`;" +msgstr "une *fonction coroutine* : une fonction :keyword:`async def`;" #: ../Doc/library/asyncio-task.rst:148 msgid "" "a *coroutine object*: an object returned by calling a *coroutine function*." -msgstr "un *objet coroutine* : un objet renvoyé par une *fonction coroutine*." +msgstr "un *objet coroutine* : un objet renvoyé par une *fonction coroutine*." #: ../Doc/library/asyncio-task.rst:151 msgid "" @@ -151,7 +151,7 @@ msgid "" "` coroutines." msgstr "" "*asyncio* implémente également les coroutines :ref:`basées sur des " -"générateurs ` ; celles-ci sont obsolètes." +"générateurs ` ; celles-ci sont obsolètes." #: ../Doc/library/asyncio-task.rst:156 msgid "Tasks" @@ -265,7 +265,7 @@ msgid "" "**Important:** this function has been added to asyncio in Python 3.7 on a :" "term:`provisional basis `." msgstr "" -"**Important :** cette fonction a été ajoutée à *asyncio* dans Python 3.7 de :" +"**Important :** cette fonction a été ajoutée à *asyncio* dans Python 3.7 de :" "term:`manière provisoire `." #: ../Doc/library/asyncio-task.rst:234 @@ -286,7 +286,7 @@ msgid "" "`RuntimeError` is raised if there is no running loop in current thread." msgstr "" "La tâche est exécutée dans la boucle renvoyée par :func:" -"`get_running_loop` ; :exc:`RuntimeError` est levée s'il n'y a pas de boucle " +"`get_running_loop` ; :exc:`RuntimeError` est levée s'il n'y a pas de boucle " "en cours d'exécution dans le fil actuel." #: ../Doc/library/asyncio-task.rst:245 @@ -796,7 +796,7 @@ msgid "" "time. While a Task awaits for the completion of a Future, the event loop " "runs other Tasks, callbacks, or performs IO operations." msgstr "" -"Les boucles d'événement fonctionnent de manière *coopérative* : une boucle " +"Les boucles d'événement fonctionnent de manière *coopérative* : une boucle " "d'événement exécute une tâche à la fois. Quand une tâche attend la fin d'un " "futur, la boucle d'événement exécute d'autres tâches, des fonctions de " "rappel, ou effectue des opérations d'entrées-sorties." From 3642203f40b638518f7cb31f1463b2c73ee84d0c Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 29 Mar 2019 12:29:21 +0100 Subject: [PATCH 100/121] Merge from upstream/3.7 --- .travis.yml | 2 +- faq/general.po | 57 ++-- faq/windows.po | 92 +++---- glossary.po | 276 ++++++++++---------- library/asyncio.po | 26 +- library/collections.po | 5 +- library/functions.po | 529 +++++++++++++++++++------------------- library/idle.po | 72 +++--- library/queue.po | 47 ++-- library/subprocess.po | 165 ++++++------ library/unittest.po | 21 +- library/urllib.parse.po | 322 ++++++++++++----------- library/urllib.request.po | 386 ++++++++++++++------------- reference/datamodel.po | 44 ++-- tutorial/controlflow.po | 10 +- tutorial/interpreter.po | 7 +- 16 files changed, 1079 insertions(+), 982 deletions(-) diff --git a/.travis.yml b/.travis.yml index 21371c0f5..5ef9c1a10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ install: script: - powrap --check --quiet **/*.po - pospell -p dict -l fr_FR **/*.po - - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=ef10f886ae + - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=40ee9a3640 diff --git a/faq/general.po b/faq/general.po index 83c25420e..1172050cb 100644 --- a/faq/general.po +++ b/faq/general.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2018-10-15 00:22+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -664,15 +664,14 @@ msgstr "" "versions correctives." #: ../Doc/faq/general.rst:308 +#, fuzzy msgid "" "The latest stable releases can always be found on the `Python download page " "`_. There are two production-ready " -"version of Python: 2.x and 3.x, but the recommended one at this times is " -"Python 3.x. Although Python 2.x is still widely used, `it will not be " -"maintained after January 1, 2020 `_. Python 2.x was known for having more third-party libraries available, " -"however, by the time of this writing, most of the widely used libraries " -"support Python 3.x, and some are even dropping the Python 2.x support." +"versions of Python: 2.x and 3.x. The recommended version is 3.x, which is " +"supported by most widely used libraries. Although 2.x is still widely used, " +"`it will not be maintained after January 1, 2020 `_." msgstr "" "Les dernières versions stables peuvent toujours être trouvées sur la `page " "de téléchargement Python `_. Il existe " @@ -683,11 +682,11 @@ msgstr "" "que Python 3.x, cependant la tendance s'est inversée et la plupart des " "bibliothèques les plus utilisées abandonnent même le support de Python 2.x." -#: ../Doc/faq/general.rst:319 +#: ../Doc/faq/general.rst:315 msgid "How many people are using Python?" msgstr "Combien de personnes utilisent Python ?" -#: ../Doc/faq/general.rst:321 +#: ../Doc/faq/general.rst:317 msgid "" "There are probably tens of thousands of users, though it's difficult to " "obtain an exact count." @@ -695,7 +694,7 @@ msgstr "" "Il y a probablement des dizaines de milliers d'utilisateurs, cependant c'est " "difficile d'obtenir un nombre exact." -#: ../Doc/faq/general.rst:324 +#: ../Doc/faq/general.rst:320 msgid "" "Python is available for free download, so there are no sales figures, and " "it's available from many different sites and packaged with many Linux " @@ -706,7 +705,7 @@ msgstr "" "il est inclus avec de beaucoup de distributions Linux, donc les statistiques " "de téléchargement ne donnent pas la totalité non plus." -#: ../Doc/faq/general.rst:328 +#: ../Doc/faq/general.rst:324 msgid "" "The comp.lang.python newsgroup is very active, but not all Python users post " "to the group or even read it." @@ -714,11 +713,11 @@ msgstr "" "Le forum *comp.lang.python* est très actif, mais tous les utilisateurs de " "Python ne laissent pas de messages dessus ou même ne le lisent pas." -#: ../Doc/faq/general.rst:333 +#: ../Doc/faq/general.rst:329 msgid "Have any significant projects been done in Python?" msgstr "Y a-t-il un nombre de projets significatif réalisés en Python ?" -#: ../Doc/faq/general.rst:335 +#: ../Doc/faq/general.rst:331 msgid "" "See https://www.python.org/about/success for a list of projects that use " "Python. Consulting the proceedings for `past Python conferences `_ and `the Zope application server `_." @@ -774,12 +773,12 @@ msgstr "" "Le nouveau développement est discuté sur `la liste de diffusion python-dev " "`_." -#: ../Doc/faq/general.rst:362 +#: ../Doc/faq/general.rst:358 msgid "Is it reasonable to propose incompatible changes to Python?" msgstr "" "Est-il raisonnable de proposer des changements incompatibles dans Python ?" -#: ../Doc/faq/general.rst:364 +#: ../Doc/faq/general.rst:360 msgid "" "In general, no. There are already millions of lines of Python code around " "the world, so any change in the language that invalidates more than a very " @@ -796,7 +795,7 @@ msgstr "" "documentations, beaucoup de livres ont été écrits au sujet de Python, et " "nous ne voulons pas les rendre invalides soudainement." -#: ../Doc/faq/general.rst:371 +#: ../Doc/faq/general.rst:367 msgid "" "Providing a gradual upgrade path is necessary if a feature has to be " "changed. :pep:`5` describes the procedure followed for introducing backward-" @@ -805,17 +804,17 @@ msgstr "" "En fournissant un rythme de mise à jour progressif qui est obligatoire si " "une fonctionnalité doit être changée." -#: ../Doc/faq/general.rst:377 +#: ../Doc/faq/general.rst:373 msgid "Is Python a good language for beginning programmers?" msgstr "" "Existe-t-il un meilleur langage de programmation pour les programmeurs " "débutants ?" -#: ../Doc/faq/general.rst:379 +#: ../Doc/faq/general.rst:375 msgid "Yes." msgstr "Oui." -#: ../Doc/faq/general.rst:381 +#: ../Doc/faq/general.rst:377 msgid "" "It is still common to start students with a procedural and statically typed " "language such as Pascal, C, or a subset of C++ or Java. Students may be " @@ -839,7 +838,7 @@ msgstr "" "peuvent même probablement travailler avec des objets définis dans leurs " "premiers cours." -#: ../Doc/faq/general.rst:391 +#: ../Doc/faq/general.rst:387 msgid "" "For a student who has never programmed before, using a statically typed " "language seems unnatural. It presents additional complexity that the " @@ -859,7 +858,7 @@ msgstr "" "terme, ce n'est pas nécessairement la meilleure idée pour s'adresser aux " "étudiants durant leur tout premier cours." -#: ../Doc/faq/general.rst:399 +#: ../Doc/faq/general.rst:395 msgid "" "Many other aspects of Python make it a good first language. Like Java, " "Python has a large standard library so that students can be assigned " @@ -882,7 +881,7 @@ msgstr "" "réutilisation de code. Les modules tiers tels que PyGame sont aussi très " "utiles pour étendre les compétences des étudiants." -#: ../Doc/faq/general.rst:408 +#: ../Doc/faq/general.rst:404 msgid "" "Python's interactive interpreter enables students to test language features " "while they're programming. They can keep a window with the interpreter " @@ -896,7 +895,7 @@ msgstr "" "souvenir des méthodes pour une liste, ils peuvent faire quelque chose comme " "ça ::" -#: ../Doc/faq/general.rst:437 +#: ../Doc/faq/general.rst:433 msgid "" "With the interpreter, documentation is never far from the student as they " "are programming." @@ -904,7 +903,7 @@ msgstr "" "Avec l'interpréteur, la documentation n'est jamais loin des étudiants quand " "ils travaillent." -#: ../Doc/faq/general.rst:440 +#: ../Doc/faq/general.rst:436 msgid "" "There are also good IDEs for Python. IDLE is a cross-platform IDE for " "Python that is written in Python using Tkinter. PythonWin is a Windows-" @@ -924,7 +923,7 @@ msgstr "" "`_ pour une liste complète des " "environnements de développement intégrés." -#: ../Doc/faq/general.rst:448 +#: ../Doc/faq/general.rst:444 msgid "" "If you want to discuss Python's use in education, you may be interested in " "joining `the edu-sig mailing list \n" "Language-Team: FRENCH \n" @@ -23,11 +23,11 @@ msgstr "FAQ : Python et Windows" msgid "Contents" msgstr "Sommaire" -#: ../Doc/faq/windows.rst:20 +#: ../Doc/faq/windows.rst:22 msgid "How do I run a Python program under Windows?" msgstr "Comment exécuter un programme Python sous Windows ?" -#: ../Doc/faq/windows.rst:22 +#: ../Doc/faq/windows.rst:24 msgid "" "This is not necessarily a straightforward question. If you are already " "familiar with running programs from the Windows command line then everything " @@ -37,7 +37,7 @@ msgstr "" "le lancement de programmes depuis la ligne de commande de Windows alors tout " "semblera évident ; Sinon, vous pourriez avoir besoin d'être un peu guidé." -#: ../Doc/faq/windows.rst:26 +#: ../Doc/faq/windows.rst:28 msgid "" "Unless you use some sort of integrated development environment, you will end " "up *typing* Windows commands into what is variously referred to as a \"DOS " @@ -54,7 +54,7 @@ msgstr "" "lancé une telle fenêtre parce que vous verrez une invite de commande " "Windows, qui en en général ressemble à ça :" -#: ../Doc/faq/windows.rst:37 +#: ../Doc/faq/windows.rst:39 msgid "" "The letter may be different, and there might be other things after it, so " "you might just as easily see something like:" @@ -62,7 +62,7 @@ msgstr "" "La lettre peut être différente, et il peut y avoir d'autres choses à la " "suite, alors il se peut que ça ressemble également à ça :" -#: ../Doc/faq/windows.rst:44 +#: ../Doc/faq/windows.rst:46 msgid "" "depending on how your computer has been set up and what else you have " "recently done with it. Once you have started such a window, you are well on " @@ -72,7 +72,7 @@ msgstr "" "fait avec. Une fois que vous avez ouvert cette fenêtre, vous êtes bien " "partis pour pouvoir lancer des programmes Python." -#: ../Doc/faq/windows.rst:48 +#: ../Doc/faq/windows.rst:50 msgid "" "You need to realize that your Python scripts have to be processed by another " "program called the Python *interpreter*. The interpreter reads your script, " @@ -85,7 +85,7 @@ msgstr "" "programme. Alors, comment faire pour donner votre code Python à " "l'interpréteur ?" -#: ../Doc/faq/windows.rst:53 +#: ../Doc/faq/windows.rst:55 msgid "" "First, you need to make sure that your command window recognises the word " "\"py\" as an instruction to start the interpreter. If you have opened a " @@ -97,11 +97,11 @@ msgstr "" "l'interpréteur. Si vous avez ouvert une invite de commande, entrez la " "commande ``py``, puis appuyez sur entrée :" -#: ../Doc/faq/windows.rst:62 +#: ../Doc/faq/windows.rst:64 msgid "You should then see something like:" msgstr "Vous devez voir quelque chose comme ça :" -#: ../Doc/faq/windows.rst:70 +#: ../Doc/faq/windows.rst:72 msgid "" "You have started the interpreter in \"interactive mode\". That means you can " "enter Python statements or expressions interactively and have them executed " @@ -114,7 +114,7 @@ msgstr "" "puissantes fonctionnalités de Python. Vous pouvez le vérifier en entrant " "quelques commandes de votre choix et en regardant le résultat :" -#: ../Doc/faq/windows.rst:82 +#: ../Doc/faq/windows.rst:84 msgid "" "Many people use the interactive mode as a convenient yet highly programmable " "calculator. When you want to end your interactive Python session, call the :" @@ -129,7 +129,7 @@ msgstr "" "un :kbd:`Z`, puis appuyez sur la touche \":kbd:`Enter`\" pour revenir à " "votre invite de commande Windows." -#: ../Doc/faq/windows.rst:88 +#: ../Doc/faq/windows.rst:90 msgid "" "You may also find that you have a Start-menu entry such as :menuselection:" "`Start --> Programs --> Python 3.x --> Python (command line)` that results " @@ -146,7 +146,7 @@ msgstr "" "Windows exécute une commande \"python\" dans la fenêtre et ferme celle-ci " "lorsque vous fermez l'interpréteur." -#: ../Doc/faq/windows.rst:95 +#: ../Doc/faq/windows.rst:97 msgid "" "Now that we know the ``py`` command is recognized, you can give your Python " "script to it. You'll have to give either an absolute or a relative path to " @@ -161,7 +161,7 @@ msgstr "" "ouvert dans votre répertoire personnel, alors vous voyez quelque chose " "comme : ::" -#: ../Doc/faq/windows.rst:104 +#: ../Doc/faq/windows.rst:106 msgid "" "So now you'll ask the ``py`` command to give your script to Python by typing " "``py`` followed by your script path::" @@ -169,11 +169,11 @@ msgstr "" "Alors maintenant, vous demanderez à la commande ``py`` de donner votre " "script à Python en tapant ``py`` suivi de votre chemin de script : ::" -#: ../Doc/faq/windows.rst:112 +#: ../Doc/faq/windows.rst:114 msgid "How do I make Python scripts executable?" msgstr "Comment rendre des scripts Python exécutables ?" -#: ../Doc/faq/windows.rst:114 +#: ../Doc/faq/windows.rst:116 msgid "" "On Windows, the standard Python installer already associates the .py " "extension with a file type (Python.File) and gives that file type an open " @@ -191,11 +191,11 @@ msgstr "" "*foo* sans l’extension, vous devez ajouter *.py* au paramètre " "d’environnement PATHEXT." -#: ../Doc/faq/windows.rst:122 +#: ../Doc/faq/windows.rst:124 msgid "Why does Python sometimes take so long to start?" msgstr "Pourquoi Python met-il du temps à démarrer ?" -#: ../Doc/faq/windows.rst:124 +#: ../Doc/faq/windows.rst:126 msgid "" "Usually Python starts very quickly on Windows, but occasionally there are " "bug reports that Python suddenly begins to take a long time to start up. " @@ -207,7 +207,7 @@ msgstr "" "de temps pour démarrer. C'est d'autant plus intrigant que Python fonctionne " "correctement avec d'autres Windows configurés de façon similaire." -#: ../Doc/faq/windows.rst:129 +#: ../Doc/faq/windows.rst:131 msgid "" "The problem may be caused by a misconfiguration of virus checking software " "on the problem machine. Some virus scanners have been known to introduce " @@ -224,11 +224,11 @@ msgstr "" "*McAfee* est particulièrement problématique lorsqu'il est paramétré pour " "surveiller toutes les lectures du système de fichiers." -#: ../Doc/faq/windows.rst:139 +#: ../Doc/faq/windows.rst:141 msgid "How do I make an executable from a Python script?" msgstr "Comment construire un exécutable depuis un script Python ?" -#: ../Doc/faq/windows.rst:141 +#: ../Doc/faq/windows.rst:143 msgid "" "See `cx_Freeze `_ for a " "distutils extension that allows you to create console and GUI executables " @@ -237,11 +237,11 @@ msgid "" "Python 3 but a version that does is in development." msgstr "" -#: ../Doc/faq/windows.rst:149 +#: ../Doc/faq/windows.rst:151 msgid "Is a ``*.pyd`` file the same as a DLL?" msgstr "Est-ce qu'un fichier ``*.pyd`` est la même chose qu'une DLL ?" -#: ../Doc/faq/windows.rst:151 +#: ../Doc/faq/windows.rst:153 msgid "" "Yes, .pyd files are dll's, but there are a few differences. If you have a " "DLL named ``foo.pyd``, then it must have a function ``PyInit_foo()``. You " @@ -251,7 +251,7 @@ msgid "" "as that would cause Windows to require the DLL to be present." msgstr "" -#: ../Doc/faq/windows.rst:158 +#: ../Doc/faq/windows.rst:160 msgid "" "Note that the search path for foo.pyd is PYTHONPATH, not the same as the " "path that Windows uses to search for foo.dll. Also, foo.pyd need not be " @@ -262,17 +262,17 @@ msgid "" "available functions." msgstr "" -#: ../Doc/faq/windows.rst:167 +#: ../Doc/faq/windows.rst:169 msgid "How can I embed Python into a Windows application?" msgstr "" -#: ../Doc/faq/windows.rst:169 +#: ../Doc/faq/windows.rst:171 msgid "" "Embedding the Python interpreter in a Windows app can be summarized as " "follows:" msgstr "" -#: ../Doc/faq/windows.rst:171 +#: ../Doc/faq/windows.rst:173 msgid "" "Do _not_ build Python into your .exe file directly. On Windows, Python must " "be a DLL to handle importing modules that are themselves DLL's. (This is " @@ -281,7 +281,7 @@ msgid "" "version, a number such as \"33\" for Python 3.3." msgstr "" -#: ../Doc/faq/windows.rst:177 +#: ../Doc/faq/windows.rst:179 msgid "" "You can link to Python in two different ways. Load-time linking means " "linking against :file:`python{NN}.lib`, while run-time linking means linking " @@ -290,7 +290,7 @@ msgid "" "merely defines symbols for the linker.)" msgstr "" -#: ../Doc/faq/windows.rst:183 +#: ../Doc/faq/windows.rst:185 msgid "" "Run-time linking greatly simplifies link options; everything happens at run " "time. Your code must load :file:`python{NN}.dll` using the Windows " @@ -301,13 +301,13 @@ msgid "" "API." msgstr "" -#: ../Doc/faq/windows.rst:190 +#: ../Doc/faq/windows.rst:192 msgid "" "Borland note: convert :file:`python{NN}.lib` to OMF format using Coff2Omf." "exe first." msgstr "" -#: ../Doc/faq/windows.rst:195 +#: ../Doc/faq/windows.rst:197 msgid "" "If you use SWIG, it is easy to create a Python \"extension module\" that " "will make the app's data and methods available to Python. SWIG will handle " @@ -316,7 +316,7 @@ msgid "" "this also simplifies linking." msgstr "" -#: ../Doc/faq/windows.rst:201 +#: ../Doc/faq/windows.rst:203 msgid "" "SWIG will create an init function (a C function) whose name depends on the " "name of the extension module. For example, if the name of the module is " @@ -325,26 +325,26 @@ msgid "" "initializes a mostly hidden helper class used by the shadow class." msgstr "" -#: ../Doc/faq/windows.rst:207 +#: ../Doc/faq/windows.rst:209 msgid "" "The reason you can link the C code in step 2 into your .exe file is that " "calling the initialization function is equivalent to importing the module " "into Python! (This is the second key undocumented fact.)" msgstr "" -#: ../Doc/faq/windows.rst:211 +#: ../Doc/faq/windows.rst:213 msgid "" "In short, you can use the following code to initialize the Python " "interpreter with your extension module." msgstr "" -#: ../Doc/faq/windows.rst:222 +#: ../Doc/faq/windows.rst:224 msgid "" "There are two problems with Python's C API which will become apparent if you " "use a compiler other than MSVC, the compiler used to build pythonNN.dll." msgstr "" -#: ../Doc/faq/windows.rst:225 +#: ../Doc/faq/windows.rst:227 msgid "" "Problem 1: The so-called \"Very High Level\" functions that take FILE * " "arguments will not work in a multi-compiler environment because each " @@ -352,27 +352,27 @@ msgid "" "implementation standpoint these are very _low_ level functions." msgstr "" -#: ../Doc/faq/windows.rst:230 +#: ../Doc/faq/windows.rst:232 msgid "" "Problem 2: SWIG generates the following code when generating wrappers to " "void functions:" msgstr "" -#: ../Doc/faq/windows.rst:239 +#: ../Doc/faq/windows.rst:241 msgid "" "Alas, Py_None is a macro that expands to a reference to a complex data " "structure called _Py_NoneStruct inside pythonNN.dll. Again, this code will " "fail in a mult-compiler environment. Replace such code by:" msgstr "" -#: ../Doc/faq/windows.rst:247 +#: ../Doc/faq/windows.rst:249 msgid "" "It may be possible to use SWIG's ``%typemap`` command to make the change " "automatically, though I have not been able to get this to work (I'm a " "complete SWIG newbie)." msgstr "" -#: ../Doc/faq/windows.rst:251 +#: ../Doc/faq/windows.rst:253 msgid "" "Using a Python shell script to put up a Python interpreter window from " "inside your Windows app is not a good idea; the resulting window will be " @@ -384,13 +384,13 @@ msgid "" "and write() methods." msgstr "" -#: ../Doc/faq/windows.rst:260 +#: ../Doc/faq/windows.rst:262 msgid "How do I keep editors from inserting tabs into my Python source?" msgstr "" "Comment empêcher mon éditeur d'utiliser des tabulations dans mes fichiers " "Python ?" -#: ../Doc/faq/windows.rst:262 +#: ../Doc/faq/windows.rst:264 msgid "" "The FAQ does not recommend using tabs, and the Python style guide, :pep:`8`, " "recommends 4 spaces for distributed Python code; this is also the Emacs " @@ -401,7 +401,7 @@ msgstr "" "dans les codes Python. C'est aussi le comportement par défaut d'Emacs avec " "Python." -#: ../Doc/faq/windows.rst:266 +#: ../Doc/faq/windows.rst:268 msgid "" "Under any editor, mixing tabs and spaces is a bad idea. MSVC is no " "different in this respect, and is easily configured to use spaces: Take :" @@ -415,7 +415,7 @@ msgstr "" "Tabs` et pour le type de fichier par défaut, vous devez mettre *Tab size* et " "*Indent size* à 4, puis sélectionner *Insert spaces*." -#: ../Doc/faq/windows.rst:271 +#: ../Doc/faq/windows.rst:273 msgid "" "Python raises :exc:`IndentationError` or :exc:`TabError` if mixed tabs and " "spaces are causing problems in leading whitespace. You may also run the :mod:" @@ -425,13 +425,13 @@ msgstr "" "tabulation et d’indentation pose problème en début de ligne. Vous pouvez " "aussi utiliser le module :mod:`tabnanny` pour détecter ces erreurs." -#: ../Doc/faq/windows.rst:278 +#: ../Doc/faq/windows.rst:280 msgid "How do I check for a keypress without blocking?" msgstr "" "Comment puis-je vérifier de manière non bloquante qu'une touche a été " "pressée ?" -#: ../Doc/faq/windows.rst:280 +#: ../Doc/faq/windows.rst:282 msgid "" "Use the msvcrt module. This is a standard Windows-specific extension " "module. It defines a function ``kbhit()`` which checks whether a keyboard " diff --git a/glossary.po b/glossary.po index d9ef4b129..895f1ff50 100644 --- a/glossary.po +++ b/glossary.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-02-19 19:32+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -1484,7 +1484,7 @@ msgstr "" msgid "keyword argument" msgstr "argument nommé" -#: ../Doc/glossary.rst:624 ../Doc/glossary.rst:883 +#: ../Doc/glossary.rst:624 ../Doc/glossary.rst:888 msgid "See :term:`argument`." msgstr "Voir :term:`argument`." @@ -1585,10 +1585,20 @@ msgstr "" "Loader` pour sa :term:`classe de base abstraite`." #: ../Doc/glossary.rst:661 +#, fuzzy +msgid "magic method" +msgstr "méthode" + +#: ../Doc/glossary.rst:665 +#, fuzzy +msgid "An informal synonym for :term:`special method`." +msgstr "Synonyme de :term:`objet fichier`." + +#: ../Doc/glossary.rst:666 msgid "mapping" msgstr "tableau de correspondances" -#: ../Doc/glossary.rst:663 +#: ../Doc/glossary.rst:668 msgid "" "A container object that supports arbitrary key lookups and implements the " "methods specified in the :class:`~collections.abc.Mapping` or :class:" @@ -1605,11 +1615,11 @@ msgstr "" "`dict`, :class:`collections.defaultdict`, :class:`collections.OrderedDict` " "et :class:`collections.Counter`." -#: ../Doc/glossary.rst:669 +#: ../Doc/glossary.rst:674 msgid "meta path finder" msgstr "chercheur dans les méta-chemins" -#: ../Doc/glossary.rst:671 +#: ../Doc/glossary.rst:676 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:675 +#: ../Doc/glossary.rst:680 msgid "" "See :class:`importlib.abc.MetaPathFinder` for the methods that meta path " "finders implement." @@ -1627,11 +1637,11 @@ msgstr "" "Voir :class:`importlib.abc.MetaPathFinder` pour les méthodes que les " "chercheurs dans les méta-chemins doivent implémenter." -#: ../Doc/glossary.rst:677 +#: ../Doc/glossary.rst:682 msgid "metaclass" msgstr "métaclasse" -#: ../Doc/glossary.rst:679 +#: ../Doc/glossary.rst:684 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 " @@ -1655,15 +1665,15 @@ msgstr "" "suivre la création d'objets, implémenter des singletons et bien d'autres " "tâches." -#: ../Doc/glossary.rst:689 +#: ../Doc/glossary.rst:694 msgid "More information can be found in :ref:`metaclasses`." msgstr "Plus d'informations sont disponibles dans : :ref:`metaclasses`." -#: ../Doc/glossary.rst:690 +#: ../Doc/glossary.rst:695 msgid "method" msgstr "méthode" -#: ../Doc/glossary.rst:692 +#: ../Doc/glossary.rst:697 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 " @@ -1675,11 +1685,11 @@ msgstr "" "premier :term:`argument` (qui, par convention, est habituellement nommé " "``self``). Voir :term:`function` et :term:`nested scope`." -#: ../Doc/glossary.rst:696 +#: ../Doc/glossary.rst:701 msgid "method resolution order" msgstr "ordre de résolution des méthodes" -#: ../Doc/glossary.rst:698 +#: ../Doc/glossary.rst:703 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:702 +#: ../Doc/glossary.rst:707 msgid "module" msgstr "module" -#: ../Doc/glossary.rst:704 +#: ../Doc/glossary.rst:709 msgid "" "An object that serves as an organizational unit of Python code. Modules " "have a namespace containing arbitrary Python objects. Modules are loaded " @@ -1707,15 +1717,15 @@ msgstr "" "modules ont un espace de noms et peuvent contenir n'importe quels objets " "Python. Charger des modules est appelé :term:`importer `." -#: ../Doc/glossary.rst:708 +#: ../Doc/glossary.rst:713 msgid "See also :term:`package`." msgstr "Voir aussi :term:`paquet`." -#: ../Doc/glossary.rst:709 +#: ../Doc/glossary.rst:714 msgid "module spec" msgstr "spécificateur de module" -#: ../Doc/glossary.rst:711 +#: ../Doc/glossary.rst:716 msgid "" "A namespace containing the import-related information used to load a module. " "An instance of :class:`importlib.machinery.ModuleSpec`." @@ -1724,19 +1734,19 @@ msgstr "" "utilisées pour charger un module. C'est une instance de la classe :class:" "`importlib.machinery.ModuleSpec`." -#: ../Doc/glossary.rst:713 +#: ../Doc/glossary.rst:718 msgid "MRO" msgstr "MRO" -#: ../Doc/glossary.rst:715 +#: ../Doc/glossary.rst:720 msgid "See :term:`method resolution order`." msgstr "Voir :term:`ordre de résolution des méthodes`." -#: ../Doc/glossary.rst:716 +#: ../Doc/glossary.rst:721 msgid "mutable" msgstr "muable" -#: ../Doc/glossary.rst:718 +#: ../Doc/glossary.rst:723 msgid "" "Mutable objects can change their value but keep their :func:`id`. See also :" "term:`immutable`." @@ -1744,11 +1754,11 @@ msgstr "" "Un objet muable peut changer de valeur tout en gardant le même :func:`id`. " "Voir aussi :term:`immuable`." -#: ../Doc/glossary.rst:720 +#: ../Doc/glossary.rst:725 msgid "named tuple" msgstr "n-uplet nommé" -#: ../Doc/glossary.rst:722 +#: ../Doc/glossary.rst:727 msgid "" "Any tuple-like class whose indexable elements are also accessible using " "named attributes (for example, :func:`time.localtime` returns a tuple-like " @@ -1761,7 +1771,7 @@ msgstr "" "donne un objet ressemblant à un *n-uplet*, dont *year* est accessible par " "son indice : ``t[0]`` ou par son nom : ``t.tm_year``)." -#: ../Doc/glossary.rst:727 +#: ../Doc/glossary.rst:732 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 " @@ -1777,11 +1787,11 @@ msgstr "" "supplémentaires, tel qu'une représentation lisible comme " "``Employee(name='jones', title='programmer')``." -#: ../Doc/glossary.rst:733 +#: ../Doc/glossary.rst:738 msgid "namespace" msgstr "espace de noms" -#: ../Doc/glossary.rst:735 +#: ../Doc/glossary.rst:740 msgid "" "The place where a variable is stored. Namespaces are implemented as " "dictionaries. There are the local, global and built-in namespaces as well " @@ -1804,11 +1814,11 @@ msgstr "" "`itertools.islice` affiche clairement que ces fonctions sont implémentées " "respectivement dans les modules :mod:`random` et :mod:`itertools`." -#: ../Doc/glossary.rst:745 +#: ../Doc/glossary.rst:750 msgid "namespace package" msgstr "paquet-espace de noms" -#: ../Doc/glossary.rst:747 +#: ../Doc/glossary.rst:752 msgid "" "A :pep:`420` :term:`package` which serves only as a container for " "subpackages. Namespace packages may have no physical representation, and " @@ -1820,15 +1830,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:752 +#: ../Doc/glossary.rst:757 msgid "See also :term:`module`." msgstr "Voir aussi :term:`module`." -#: ../Doc/glossary.rst:753 +#: ../Doc/glossary.rst:758 msgid "nested scope" msgstr "portée imbriquée" -#: ../Doc/glossary.rst:755 +#: ../Doc/glossary.rst:760 msgid "" "The ability to refer to a variable in an enclosing definition. For " "instance, a function defined inside another function can refer to variables " @@ -1846,11 +1856,11 @@ msgstr "" "l'espace de noms global, le mot clef :keyword:`nonlocal` permet d'écrire " "dans l'espace de noms dans lequel est déclarée la variable." -#: ../Doc/glossary.rst:762 +#: ../Doc/glossary.rst:767 msgid "new-style class" msgstr "nouvelle classe" -#: ../Doc/glossary.rst:764 +#: ../Doc/glossary.rst:769 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, " @@ -1863,11 +1873,11 @@ msgstr "" "__slots__`, les descripteurs, les propriétés, :meth:`__getattribute__`, les " "méthodes de classe et les méthodes statiques." -#: ../Doc/glossary.rst:768 +#: ../Doc/glossary.rst:773 msgid "object" msgstr "objet" -#: ../Doc/glossary.rst:770 +#: ../Doc/glossary.rst:775 msgid "" "Any data with state (attributes or value) and defined behavior (methods). " "Also the ultimate base class of any :term:`new-style class`." @@ -1877,11 +1887,11 @@ msgstr "" "l'ancêtre commun à absolument toutes les :term:`nouvelles classes `." -#: ../Doc/glossary.rst:773 +#: ../Doc/glossary.rst:778 msgid "package" msgstr "paquet" -#: ../Doc/glossary.rst:775 +#: ../Doc/glossary.rst:780 msgid "" "A Python :term:`module` which can contain submodules or recursively, " "subpackages. Technically, a package is a Python module with an ``__path__`` " @@ -1891,15 +1901,15 @@ msgstr "" "paquets. Techniquement, un paquet est un module qui possède un attribut " "``__path__``." -#: ../Doc/glossary.rst:779 +#: ../Doc/glossary.rst:784 msgid "See also :term:`regular package` and :term:`namespace package`." msgstr "Voir aussi :term:`paquet classique` et :term:`namespace package`." -#: ../Doc/glossary.rst:780 +#: ../Doc/glossary.rst:785 msgid "parameter" msgstr "paramètre" -#: ../Doc/glossary.rst:782 +#: ../Doc/glossary.rst:787 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 " @@ -1909,7 +1919,7 @@ msgstr "" "décrivant un :term:`argument` (ou dans certains cas des arguments) que la " "fonction accepte. Il existe cinq sortes de paramètres :" -#: ../Doc/glossary.rst:786 +#: ../Doc/glossary.rst:791 msgid "" ":dfn:`positional-or-keyword`: specifies an argument that can be passed " "either :term:`positionally ` or as a :term:`keyword argument " @@ -1921,7 +1931,7 @@ msgstr "" "C'est le type de paramètre par défaut. Par exemple, *foo* et *bar* dans " "l'exemple suivant : ::" -#: ../Doc/glossary.rst:795 +#: ../Doc/glossary.rst:800 msgid "" ":dfn:`positional-only`: specifies an argument that can be supplied only by " "position. Python has no syntax for defining positional-only parameters. " @@ -1932,7 +1942,7 @@ msgstr "" "Python n'a pas de syntaxe pour déclarer de tels paramètres, cependant des " "fonctions natives, comme :func:`abs`, en utilisent." -#: ../Doc/glossary.rst:802 +#: ../Doc/glossary.rst:807 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-" @@ -1946,7 +1956,7 @@ msgstr "" "liste des paramètres avant eux. Par exemple, *kw_only1* et *kw_only2* dans " "le code suivant : ::" -#: ../Doc/glossary.rst:810 +#: ../Doc/glossary.rst:815 msgid "" ":dfn:`var-positional`: specifies that an arbitrary sequence of positional " "arguments can be provided (in addition to any positional arguments already " @@ -1959,7 +1969,7 @@ msgstr "" "d'autres paramètres). Un tel paramètre peut être défini en préfixant son nom " "par une ``*``. Par exemple *args* ci-après : ::" -#: ../Doc/glossary.rst:818 +#: ../Doc/glossary.rst:823 msgid "" ":dfn:`var-keyword`: specifies that arbitrarily many keyword arguments can be " "provided (in addition to any keyword arguments already accepted by other " @@ -1971,7 +1981,7 @@ msgstr "" "d'autres paramètres). Un tel paramètre est défini en préfixant le nom du " "paramètre par ``**``. Par exemple, *kwargs* ci-dessus." -#: ../Doc/glossary.rst:824 +#: ../Doc/glossary.rst:829 msgid "" "Parameters can specify both optional and required arguments, as well as " "default values for some optional arguments." @@ -1979,7 +1989,7 @@ msgstr "" "Les paramètres peuvent spécifier des arguments obligatoires ou optionnels, " "ainsi que des valeurs par défaut pour les arguments optionnels." -#: ../Doc/glossary.rst:827 +#: ../Doc/glossary.rst:832 msgid "" "See also the :term:`argument` glossary entry, the FAQ question on :ref:`the " "difference between arguments and parameters `, " @@ -1991,11 +2001,11 @@ msgstr "" "parameter>` dans la FAQ, la classe :class:`inspect.Parameter`, la section :" "ref:`function` et la :pep:`362`." -#: ../Doc/glossary.rst:831 +#: ../Doc/glossary.rst:836 msgid "path entry" msgstr "entrée de chemin" -#: ../Doc/glossary.rst:833 +#: ../Doc/glossary.rst:838 msgid "" "A single location on the :term:`import path` which the :term:`path based " "finder` consults to find modules for importing." @@ -2004,11 +2014,11 @@ msgstr "" "en anglais, d'où le *path*) que le :term:`chercheur basé sur les chemins " "` consulte pour trouver des modules à importer." -#: ../Doc/glossary.rst:835 +#: ../Doc/glossary.rst:840 msgid "path entry finder" msgstr "chercheur de chemins" -#: ../Doc/glossary.rst:837 +#: ../Doc/glossary.rst:842 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:" @@ -2019,7 +2029,7 @@ msgstr "" "path `) qui sait où trouver des modules lorsqu'on lui donne " "une :term:`entrée de path `." -#: ../Doc/glossary.rst:841 +#: ../Doc/glossary.rst:846 msgid "" "See :class:`importlib.abc.PathEntryFinder` for the methods that path entry " "finders implement." @@ -2027,11 +2037,11 @@ msgstr "" "Voir :class:`importlib.abc.PathEntryFinder` pour les méthodes qu'un " "chercheur d'entrée dans *path* doit implémenter." -#: ../Doc/glossary.rst:843 +#: ../Doc/glossary.rst:848 msgid "path entry hook" msgstr "point d'entrée pour la recherche dans *path*" -#: ../Doc/glossary.rst:845 +#: ../Doc/glossary.rst:850 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 " @@ -2041,11 +2051,11 @@ msgstr "" "d'entrée dans path ` s'il sait où trouver des modules " "pour une :term:`entrée dans path ` donnée." -#: ../Doc/glossary.rst:848 +#: ../Doc/glossary.rst:853 msgid "path based finder" msgstr "chercheur basé sur les chemins" -#: ../Doc/glossary.rst:850 +#: ../Doc/glossary.rst:855 msgid "" "One of the default :term:`meta path finders ` which " "searches an :term:`import path` for modules." @@ -2054,11 +2064,11 @@ msgstr "" "défaut qui cherche des modules dans un :term:`chemin des imports `." -#: ../Doc/glossary.rst:852 +#: ../Doc/glossary.rst:857 msgid "path-like object" msgstr "objet simili-chemin" -#: ../Doc/glossary.rst:854 +#: ../Doc/glossary.rst:859 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 " @@ -2078,11 +2088,11 @@ msgstr "" "peuvent être utilisées, respectivement, pour garantir un résultat de type :" "class:`str` ou :class:`bytes` à la place. A été Introduit par la :pep:`519`." -#: ../Doc/glossary.rst:862 +#: ../Doc/glossary.rst:867 msgid "PEP" msgstr "PEP" -#: ../Doc/glossary.rst:864 +#: ../Doc/glossary.rst:869 msgid "" "Python Enhancement Proposal. A PEP is a design document providing " "information to the Python community, or describing a new feature for Python " @@ -2095,7 +2105,7 @@ msgstr "" "ou son environnement. Les PEP doivent fournir une spécification technique " "concise et une justification des fonctionnalités proposées." -#: ../Doc/glossary.rst:870 +#: ../Doc/glossary.rst:875 msgid "" "PEPs are intended to be the primary mechanisms for proposing major new " "features, for collecting community input on an issue, and for documenting " @@ -2110,15 +2120,15 @@ msgstr "" "l’établissement d’un consensus au sein de la communauté et de documenter les " "opinions contradictoires." -#: ../Doc/glossary.rst:876 +#: ../Doc/glossary.rst:881 msgid "See :pep:`1`." msgstr "Voir :pep:`1`." -#: ../Doc/glossary.rst:877 +#: ../Doc/glossary.rst:882 msgid "portion" msgstr "portion" -#: ../Doc/glossary.rst:879 +#: ../Doc/glossary.rst:884 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`." @@ -2127,15 +2137,15 @@ msgstr "" "fichier zip) qui contribue à l'espace de noms d'un paquet, tel que défini " "dans la :pep:`420`." -#: ../Doc/glossary.rst:881 +#: ../Doc/glossary.rst:886 msgid "positional argument" msgstr "argument positionnel" -#: ../Doc/glossary.rst:884 +#: ../Doc/glossary.rst:889 msgid "provisional API" msgstr "API provisoire" -#: ../Doc/glossary.rst:886 +#: ../Doc/glossary.rst:891 msgid "" "A provisional API is one which has been deliberately excluded from the " "standard library's backwards compatibility guarantees. While major changes " @@ -2154,7 +2164,7 @@ msgstr "" "surviendront que si de sérieux problèmes sont découverts et qu'ils n'avaient " "pas été identifiés avant l'ajout de l'API." -#: ../Doc/glossary.rst:895 +#: ../Doc/glossary.rst:900 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 " @@ -2165,7 +2175,7 @@ msgstr "" "possible sera fait pour tenter de résoudre les problème en conservant la " "rétrocompatibilité." -#: ../Doc/glossary.rst:899 +#: ../Doc/glossary.rst:904 msgid "" "This process allows the standard library to continue to evolve over time, " "without locking in problematic design errors for extended periods of time. " @@ -2175,19 +2185,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:902 +#: ../Doc/glossary.rst:907 msgid "provisional package" msgstr "paquet provisoire" -#: ../Doc/glossary.rst:904 +#: ../Doc/glossary.rst:909 msgid "See :term:`provisional API`." msgstr "Voir :term:`provisional API`." -#: ../Doc/glossary.rst:905 +#: ../Doc/glossary.rst:910 msgid "Python 3000" msgstr "Python 3000" -#: ../Doc/glossary.rst:907 +#: ../Doc/glossary.rst:912 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 " @@ -2196,11 +2206,11 @@ msgstr "" "Surnom donné à la série des Python 3.x (très vieux surnom donné à l'époque " "où Python 3 représentait un futur lointain). Aussi abrégé *Py3k*." -#: ../Doc/glossary.rst:910 +#: ../Doc/glossary.rst:915 msgid "Pythonic" msgstr "*Pythonique*" -#: ../Doc/glossary.rst:912 +#: ../Doc/glossary.rst:917 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 " @@ -2216,17 +2226,17 @@ msgstr "" "les gens qui ne sont pas habitués à Python utilisent parfois un compteur " "numérique à la place : ::" -#: ../Doc/glossary.rst:922 +#: ../Doc/glossary.rst:927 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:926 +#: ../Doc/glossary.rst:931 msgid "qualified name" msgstr "nom qualifié" -#: ../Doc/glossary.rst:928 +#: ../Doc/glossary.rst:933 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 " @@ -2238,7 +2248,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:945 +#: ../Doc/glossary.rst:950 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." @@ -2249,11 +2259,11 @@ msgstr "" "par des points) vers le module, incluant tous les paquets parents. Par " "exemple : ``email.mime.text`` ::" -#: ../Doc/glossary.rst:952 +#: ../Doc/glossary.rst:957 msgid "reference count" msgstr "nombre de références" -#: ../Doc/glossary.rst:954 +#: ../Doc/glossary.rst:959 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 " @@ -2269,11 +2279,11 @@ msgstr "" "func:`~sys.getrefcount` que les développeurs peuvent utiliser pour obtenir " "le nombre de références à un objet donné." -#: ../Doc/glossary.rst:960 +#: ../Doc/glossary.rst:965 msgid "regular package" msgstr "paquet classique" -#: ../Doc/glossary.rst:962 +#: ../Doc/glossary.rst:967 msgid "" "A traditional :term:`package`, such as a directory containing an ``__init__." "py`` file." @@ -2281,15 +2291,15 @@ msgstr "" ":term:`paquet` traditionnel, tel qu'un dossier contenant un fichier " "``__init__.py``." -#: ../Doc/glossary.rst:965 +#: ../Doc/glossary.rst:970 msgid "See also :term:`namespace package`." msgstr "Voir aussi :term:`paquet-espace de noms`." -#: ../Doc/glossary.rst:966 +#: ../Doc/glossary.rst:971 msgid "__slots__" msgstr "``__slots__``" -#: ../Doc/glossary.rst:968 +#: ../Doc/glossary.rst:973 msgid "" "A declaration inside a class that saves memory by pre-declaring space for " "instance attributes and eliminating instance dictionaries. Though popular, " @@ -2304,11 +2314,11 @@ msgstr "" "nombre d'instances dans une application devient un sujet critique pour la " "mémoire." -#: ../Doc/glossary.rst:973 +#: ../Doc/glossary.rst:978 msgid "sequence" msgstr "séquence" -#: ../Doc/glossary.rst:975 +#: ../Doc/glossary.rst:980 msgid "" "An :term:`iterable` which supports efficient element access using integer " "indices via the :meth:`__getitem__` special method and defines a :meth:" @@ -2327,7 +2337,7 @@ msgstr "" "*mapping* plutôt qu'une séquence, car ses accès se font par une clé " "arbitraire :term:`immuable` plutôt qu'un nombre entier." -#: ../Doc/glossary.rst:984 +#: ../Doc/glossary.rst:989 msgid "" "The :class:`collections.abc.Sequence` abstract base class defines a much " "richer interface that goes beyond just :meth:`__getitem__` and :meth:" @@ -2341,11 +2351,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:991 +#: ../Doc/glossary.rst:996 msgid "single dispatch" msgstr "distribution simple" -#: ../Doc/glossary.rst:993 +#: ../Doc/glossary.rst:998 msgid "" "A form of :term:`generic function` dispatch where the implementation is " "chosen based on the type of a single argument." @@ -2354,11 +2364,11 @@ msgstr "" "générique>`, où l'implémentation est choisie en fonction du type d'un seul " "argument." -#: ../Doc/glossary.rst:995 +#: ../Doc/glossary.rst:1000 msgid "slice" msgstr "tranche" -#: ../Doc/glossary.rst:997 +#: ../Doc/glossary.rst:1002 msgid "" "An object usually containing a portion of a :term:`sequence`. A slice is " "created using the subscript notation, ``[]`` with colons between numbers " @@ -2371,11 +2381,11 @@ msgstr "" "``variable_name[1:3:5]``. Cette notation utilise des objets :class:`slice` " "en interne." -#: ../Doc/glossary.rst:1001 +#: ../Doc/glossary.rst:1006 msgid "special method" msgstr "méthode spéciale" -#: ../Doc/glossary.rst:1003 +#: ../Doc/glossary.rst:1010 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 " @@ -2387,11 +2397,11 @@ msgstr "" "ont des noms commençant et terminant par des doubles tirets bas. Les " "méthodes spéciales sont documentées dans :ref:`specialnames`." -#: ../Doc/glossary.rst:1007 +#: ../Doc/glossary.rst:1014 msgid "statement" msgstr "instruction" -#: ../Doc/glossary.rst:1009 +#: ../Doc/glossary.rst:1016 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 :" @@ -2402,11 +2412,11 @@ msgstr "" "constructions basées sur un mot-clé, comme :keyword:`if`, :keyword:`while` " "ou :keyword:`for`." -#: ../Doc/glossary.rst:1012 +#: ../Doc/glossary.rst:1019 msgid "struct sequence" msgstr "*struct sequence*" -#: ../Doc/glossary.rst:1014 +#: ../Doc/glossary.rst:1021 msgid "" "A tuple with named elements. Struct sequences expose an interface similar " "to :term:`named tuple` in that elements can be accessed either by index or " @@ -2423,21 +2433,21 @@ msgstr "" "_asdict`. Par exemple :data:`sys.float_info` ou les valeurs données par :" "func:`os.stat` sont des *struct sequence*." -#: ../Doc/glossary.rst:1020 +#: ../Doc/glossary.rst:1027 msgid "text encoding" msgstr "encodage de texte" -#: ../Doc/glossary.rst:1022 +#: ../Doc/glossary.rst:1029 msgid "A codec which encodes Unicode strings to bytes." msgstr "" "Codec (codeur-décodeur) qui convertit des chaînes de caractères Unicode en " "octets (classe *bytes*)." -#: ../Doc/glossary.rst:1023 +#: ../Doc/glossary.rst:1030 msgid "text file" msgstr "fichier texte" -#: ../Doc/glossary.rst:1025 +#: ../Doc/glossary.rst:1032 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:" @@ -2452,7 +2462,7 @@ msgstr "" "ou ``'w'``), :data:`sys.stdin`, :data:`sys.stdout` et les instances de :" "class:`io.StringIO`." -#: ../Doc/glossary.rst:1032 +#: ../Doc/glossary.rst:1039 msgid "" "See also :term:`binary file` for a file object able to read and write :term:" "`bytes-like objects `." @@ -2460,11 +2470,11 @@ msgstr "" "Voir aussi :term:`binary file` pour un objet fichier capable de lire et " "d'écrire :term:`bytes-like objects `." -#: ../Doc/glossary.rst:1034 +#: ../Doc/glossary.rst:1041 msgid "triple-quoted string" msgstr "chaîne entre triple guillemets" -#: ../Doc/glossary.rst:1036 +#: ../Doc/glossary.rst:1043 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 " @@ -2483,11 +2493,11 @@ msgstr "" "\\``. Elle est ainsi particulièrement utile pour les chaînes de " "documentation (*docstrings*)." -#: ../Doc/glossary.rst:1043 +#: ../Doc/glossary.rst:1050 msgid "type" msgstr "type" -#: ../Doc/glossary.rst:1045 +#: ../Doc/glossary.rst:1052 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." @@ -2497,15 +2507,15 @@ msgstr "" "objets ont un type. Le type d'un objet peut être obtenu via son attribut :" "attr:`~instance.__class__` ou via ``type(obj)``." -#: ../Doc/glossary.rst:1049 +#: ../Doc/glossary.rst:1056 msgid "type alias" msgstr "alias de type" -#: ../Doc/glossary.rst:1051 +#: ../Doc/glossary.rst:1058 msgid "A synonym for a type, created by assigning the type to an identifier." msgstr "Synonyme d'un type, créé en affectant le type à un identifiant." -#: ../Doc/glossary.rst:1053 +#: ../Doc/glossary.rst:1060 msgid "" "Type aliases are useful for simplifying :term:`type hints `. For " "example::" @@ -2513,19 +2523,19 @@ msgstr "" "Les alias de types sont utiles pour simplifier les :term:`indications de " "types `. Par exemple ::" -#: ../Doc/glossary.rst:1062 +#: ../Doc/glossary.rst:1069 msgid "could be made more readable like this::" msgstr "pourrait être rendu plus lisible comme ceci ::" -#: ../Doc/glossary.rst:1071 ../Doc/glossary.rst:1085 +#: ../Doc/glossary.rst:1078 ../Doc/glossary.rst:1092 msgid "See :mod:`typing` and :pep:`484`, which describe this functionality." msgstr "Voir :mod:`typing` et :pep:`484`, qui décrivent cette fonctionnalité." -#: ../Doc/glossary.rst:1072 +#: ../Doc/glossary.rst:1079 msgid "type hint" msgstr "indication de type" -#: ../Doc/glossary.rst:1074 +#: ../Doc/glossary.rst:1081 msgid "" "An :term:`annotation` that specifies the expected type for a variable, a " "class attribute, or a function parameter or return value." @@ -2533,7 +2543,7 @@ msgstr "" "Le :term:`annotation` qui spécifie le type attendu pour une variable, un " "attribut de classe, un paramètre de fonction ou une valeur de retour." -#: ../Doc/glossary.rst:1077 +#: ../Doc/glossary.rst:1084 msgid "" "Type hints are optional and are not enforced by Python but they are useful " "to static type analysis tools, and aid IDEs with code completion and " @@ -2544,7 +2554,7 @@ msgstr "" "statique et aident les IDE à compléter et à réusiner (*code refactoring* en " "anglais) le code." -#: ../Doc/glossary.rst:1081 +#: ../Doc/glossary.rst:1088 msgid "" "Type hints of global variables, class attributes, and functions, but not " "local variables, can be accessed using :func:`typing.get_type_hints`." @@ -2553,11 +2563,11 @@ msgstr "" "fonctions, mais pas de variables locales, peuvent être consultés en " "utilisant :func:`typing.get_type_hints`." -#: ../Doc/glossary.rst:1086 +#: ../Doc/glossary.rst:1093 msgid "universal newlines" msgstr "retours à la ligne universels" -#: ../Doc/glossary.rst:1088 +#: ../Doc/glossary.rst:1095 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 " @@ -2571,22 +2581,22 @@ msgstr "" "``'\\r'``. Voir la :pep:`278` et la :pep:`3116`, ainsi que la fonction :func:" "`bytes.splitlines` pour d'autres usages." -#: ../Doc/glossary.rst:1093 +#: ../Doc/glossary.rst:1100 msgid "variable annotation" msgstr "annotation de variable" -#: ../Doc/glossary.rst:1095 +#: ../Doc/glossary.rst:1102 msgid "An :term:`annotation` of a variable or a class attribute." msgstr ":term:`annotation` d'une variable ou d'un attribut de classe." -#: ../Doc/glossary.rst:1097 +#: ../Doc/glossary.rst:1104 msgid "" "When annotating a variable or a class attribute, assignment is optional::" msgstr "" "Lorsque vous annotez une variable ou un attribut de classe, l'affectation " "est facultative ::" -#: ../Doc/glossary.rst:1102 +#: ../Doc/glossary.rst:1109 msgid "" "Variable annotations are usually used for :term:`type hints `: " "for example this variable is expected to take :class:`int` values::" @@ -2595,13 +2605,13 @@ msgstr "" "`indications de types ` : par exemple, cette variable devrait " "prendre des valeurs de type :class:`int` ::" -#: ../Doc/glossary.rst:1108 +#: ../Doc/glossary.rst:1115 msgid "Variable annotation syntax is explained in section :ref:`annassign`." msgstr "" "La syntaxe d'annotation de la variable est expliquée dans la section :ref:" "`annassign`." -#: ../Doc/glossary.rst:1110 +#: ../Doc/glossary.rst:1117 msgid "" "See :term:`function annotation`, :pep:`484` and :pep:`526`, which describe " "this functionality." @@ -2609,11 +2619,11 @@ msgstr "" "Reportez-vous à :term:`function annotation`, à la :pep:` 484` et à la :pep:" "`526` qui décrivent cette fonctionnalité." -#: ../Doc/glossary.rst:1112 +#: ../Doc/glossary.rst:1119 msgid "virtual environment" msgstr "environnement virtuel" -#: ../Doc/glossary.rst:1114 +#: ../Doc/glossary.rst:1121 msgid "" "A cooperatively isolated runtime environment that allows Python users and " "applications to install and upgrade Python distribution packages without " @@ -2625,15 +2635,15 @@ msgstr "" "des paquets sans interférer avec d'autres applications Python fonctionnant " "sur le même système." -#: ../Doc/glossary.rst:1119 +#: ../Doc/glossary.rst:1126 msgid "See also :mod:`venv`." msgstr "Voir aussi :mod:`venv`." -#: ../Doc/glossary.rst:1120 +#: ../Doc/glossary.rst:1127 msgid "virtual machine" msgstr "machine virtuelle" -#: ../Doc/glossary.rst:1122 +#: ../Doc/glossary.rst:1129 msgid "" "A computer defined entirely in software. Python's virtual machine executes " "the :term:`bytecode` emitted by the bytecode compiler." @@ -2642,11 +2652,11 @@ msgstr "" "(*virtual machine*) de Python exécute le :term:`bytecode` produit par le " "compilateur de *bytecode*." -#: ../Doc/glossary.rst:1124 +#: ../Doc/glossary.rst:1131 msgid "Zen of Python" msgstr "Le zen de Python" -#: ../Doc/glossary.rst:1126 +#: ../Doc/glossary.rst:1133 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/asyncio.po b/library/asyncio.po index b6e320aee..6d8cb05da 100644 --- a/library/asyncio.po +++ b/library/asyncio.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2018-12-16 16:19+0100\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" @@ -15,6 +15,18 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.0.6\n" +#: ../Doc/library/asyncio.rst:66 +msgid "High-level APIs" +msgstr "Bibliothèques de haut-niveau" + +#: ../Doc/library/asyncio.rst:77 +msgid "Low-level APIs" +msgstr "Bibliothèques de bas-niveau" + +#: ../Doc/library/asyncio.rst:87 +msgid "Guides and Tutorials" +msgstr "Guides et tutoriels" + #: ../Doc/library/asyncio.rst:2 msgid ":mod:`asyncio` --- Asynchronous I/O" msgstr ":mod:`asyncio` — Entrées/Sorties asynchrones" @@ -123,18 +135,6 @@ msgstr "" msgid "Reference" msgstr "Sommaire" -#: ../Doc/library/asyncio.rst:66 -msgid "High-level APIs" -msgstr "Bibliothèques de haut-niveau" - -#: ../Doc/library/asyncio.rst:77 -msgid "Low-level APIs" -msgstr "Bibliothèques de bas-niveau" - -#: ../Doc/library/asyncio.rst:87 -msgid "Guides and Tutorials" -msgstr "Guides et tutoriels" - #~ msgid "**Source code:** :source:`Lib/asyncio/`" #~ msgstr "**Code source :** :source:`Lib/asyncio/`" diff --git a/library/collections.po b/library/collections.po index 9e2d506dc..228390cc9 100644 --- a/library/collections.po +++ b/library/collections.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-02-22 15:27+0100\n" "Last-Translator: Guillaume Fayard \n" "Language-Team: FRENCH \n" @@ -1288,8 +1288,9 @@ msgstr "" "la fonction :func:`getattr` :" #: ../Doc/library/collections.rst:962 +#, fuzzy msgid "" -"To convert a dictionary to a named tuple, use the double-star-operator (as " +"To convert a dictionary to a named tuple, use the ``**`` operator (as " "described in :ref:`tut-unpacking-arguments`):" msgstr "" "Pour convertir un dictionnaire en tuple nommé, utilisez l'opérateur double-" diff --git a/library/functions.po b/library/functions.po index 25b5e0152..afd28980f 100644 --- a/library/functions.po +++ b/library/functions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-02-21 17:37+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -362,8 +362,8 @@ msgstr "" "Que le préfixe ``0b`` soit souhaité ou non, vous pouvez utiliser les moyens " "suivants." -#: ../Doc/library/functions.rst:101 ../Doc/library/functions.rst:704 -#: ../Doc/library/functions.rst:963 +#: ../Doc/library/functions.rst:101 ../Doc/library/functions.rst:703 +#: ../Doc/library/functions.rst:962 msgid "See also :func:`format` for more information." msgstr "Voir aussi :func:`format` pour plus d'information." @@ -384,8 +384,8 @@ msgstr "" "seules instances sont ``False`` et ``True`` (voir :ref:`bltin-boolean-" "values`)." -#: ../Doc/library/functions.rst:115 ../Doc/library/functions.rst:582 -#: ../Doc/library/functions.rst:775 +#: ../Doc/library/functions.rst:115 ../Doc/library/functions.rst:581 +#: ../Doc/library/functions.rst:774 msgid "*x* is now a positional-only parameter." msgstr "*x* est désormais un argument exclusivement optionnel." @@ -562,20 +562,22 @@ msgstr "" "une méthode de classe : ::" #: ../Doc/library/functions.rst:213 +#, fuzzy msgid "" -"The ``@classmethod`` form is a function :term:`decorator` -- see the " -"description of function definitions in :ref:`function` for details." +"The ``@classmethod`` form is a function :term:`decorator` -- see :ref:" +"`function` for details." msgstr "" "La forme ``@classmethod`` est un :term:`decorator` -- consultez la " "documentation sur la définition de fonctions dans :ref:`function` pour plus " "de détails." #: ../Doc/library/functions.rst:216 +#, fuzzy msgid "" -"It can be called either on the class (such as ``C.f()``) or on an instance " -"(such as ``C().f()``). The instance is ignored except for its class. If a " -"class method is called for a derived class, the derived class object is " -"passed as the implied first argument." +"A class method can be called either on the class (such as ``C.f()``) or on " +"an instance (such as ``C().f()``). The instance is ignored except for its " +"class. If a class method is called for a derived class, the derived class " +"object is passed as the implied first argument." msgstr "" "Elle peut être appelée soit sur la classe (comme ``C.f()``) ou sur une " "instance (comme ``C().f()``). L'instance est ignorée, sauf pour déterminer " @@ -583,23 +585,23 @@ msgstr "" "la classe fille qui sera donnée en premier argument implicite." #: ../Doc/library/functions.rst:221 +#, fuzzy msgid "" "Class methods are different than C++ or Java static methods. If you want " -"those, see :func:`staticmethod` in this section." +"those, see :func:`staticmethod`." msgstr "" "Les méthodes de classe sont différentes des méthodes statiques du C++ ou du " "Java. Si c'est elles sont vous avez besoin, regardez du côté de :func:" "`staticmethod`." #: ../Doc/library/functions.rst:224 -msgid "" -"For more information on class methods, consult the documentation on the " -"standard type hierarchy in :ref:`types`." +#, fuzzy +msgid "For more information on class methods, see :ref:`types`." msgstr "" "Pour plus d'informations sur les méthodes de classe, consultez la " "documentation sur la hiérarchie des types standards dans :ref:`types`." -#: ../Doc/library/functions.rst:230 +#: ../Doc/library/functions.rst:229 msgid "" "Compile the *source* into a code or AST object. Code objects can be " "executed by :func:`exec` or :func:`eval`. *source* can either be a normal " @@ -611,7 +613,7 @@ msgstr "" "chaîne, un objet *bytes*, ou un objet AST. Consultez la documentation du " "module :mod:`ast` pour des informations sur la manipulation d'objets AST." -#: ../Doc/library/functions.rst:235 +#: ../Doc/library/functions.rst:234 msgid "" "The *filename* argument should give the file from which the code was read; " "pass some recognizable value if it wasn't read from a file (``''`` " @@ -621,7 +623,7 @@ msgstr "" "quelque chose de reconnaissable lorsqu'il n'a pas été lu depuis un fichier " "(typiquement ``\"\"``)." -#: ../Doc/library/functions.rst:239 +#: ../Doc/library/functions.rst:238 msgid "" "The *mode* argument specifies what kind of code must be compiled; it can be " "``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if " @@ -635,7 +637,7 @@ msgstr "" "(dans ce dernier cas, les résultats d'expressions donnant autre chose que " "``None`` seront affichés)." -#: ../Doc/library/functions.rst:245 +#: ../Doc/library/functions.rst:244 msgid "" "The optional arguments *flags* and *dont_inherit* control which :ref:`future " "statements ` affect the compilation of *source*. If neither is " @@ -657,7 +659,7 @@ msgstr "" "un entier différent de zéro, *flags* est utilisé seul -- les instructions " "futures déclarées autour de l'appel à *compile* sont ignorées." -#: ../Doc/library/functions.rst:255 +#: ../Doc/library/functions.rst:254 msgid "" "Future statements are specified by bits which can be bitwise ORed together " "to specify multiple statements. The bitfield required to specify a given " @@ -671,7 +673,7 @@ msgstr "" "l'attribut :attr:`~__future__._Feature.compiler_flag` de la classe :class:" "`~__future__.Feature` du module :mod:`__future__`." -#: ../Doc/library/functions.rst:260 +#: ../Doc/library/functions.rst:259 msgid "" "The argument *optimize* specifies the optimization level of the compiler; " "the default value of ``-1`` selects the optimization level of the " @@ -686,7 +688,7 @@ msgstr "" "``assert`` sont supprimés, ``__debug__`` est ``False``) ou ``2`` (les " "*docstrings* sont également supprimés)." -#: ../Doc/library/functions.rst:266 +#: ../Doc/library/functions.rst:265 msgid "" "This function raises :exc:`SyntaxError` if the compiled source is invalid, " "and :exc:`ValueError` if the source contains null bytes." @@ -694,7 +696,7 @@ msgstr "" "Cette fonction lève une :exc:`SyntaxError` si la source n'est pas valide, " "et :exc:`ValueError` si la source contient des octets *null*." -#: ../Doc/library/functions.rst:269 +#: ../Doc/library/functions.rst:268 msgid "" "If you want to parse Python code into its AST representation, see :func:`ast." "parse`." @@ -702,7 +704,7 @@ msgstr "" "Si vous voulez transformer du code Python en sa représentation AST, voyez :" "func:`ast.parse`." -#: ../Doc/library/functions.rst:274 +#: ../Doc/library/functions.rst:273 msgid "" "When compiling a string with multi-line code in ``'single'`` or ``'eval'`` " "mode, input must be terminated by at least one newline character. This is " @@ -714,7 +716,7 @@ msgstr "" "retour à la ligne. Cela permet de faciliter la distinction entre les " "instructions complètes et incomplètes dans le module :mod:`code`." -#: ../Doc/library/functions.rst:281 +#: ../Doc/library/functions.rst:280 msgid "" "It is possible to crash the Python interpreter with a sufficiently large/" "complex string when compiling to an AST object due to stack depth " @@ -724,7 +726,7 @@ msgstr "" "suffisamment grandes ou complexes lors de la compilation d'un objet AST à " "cause de la limitation de la profondeur de la pile d'appels." -#: ../Doc/library/functions.rst:285 +#: ../Doc/library/functions.rst:284 msgid "" "Allowed use of Windows and Mac newlines. Also input in ``'exec'`` mode does " "not have to end in a newline anymore. Added the *optimize* parameter." @@ -733,7 +735,7 @@ msgstr "" "chaîne donnée à ``'exec'`` n'a plus besoin de terminer par un retour à la " "ligne. Ajout du paramètre *optimize*." -#: ../Doc/library/functions.rst:289 +#: ../Doc/library/functions.rst:288 msgid "" "Previously, :exc:`TypeError` was raised when null bytes were encountered in " "*source*." @@ -741,7 +743,7 @@ msgstr "" "Précédemment, l'exception :exc:`TypeError` était levée quand un caractère " "nul était rencontré dans *source*." -#: ../Doc/library/functions.rst:296 +#: ../Doc/library/functions.rst:295 msgid "" "Return a complex number with the value *real* + *imag*\\*1j or convert a " "string or number to a complex number. If the first parameter is a string, " @@ -761,7 +763,7 @@ msgstr "" "constructeur effectue alors une simple conversion numérique comme le font :" "class:`int` ou :class:`float`. Si aucun argument n'est fourni, donne ``0j``." -#: ../Doc/library/functions.rst:307 +#: ../Doc/library/functions.rst:306 msgid "" "When converting from a string, the string must not contain whitespace around " "the central ``+`` or ``-`` operator. For example, ``complex('1+2j')`` is " @@ -772,18 +774,18 @@ msgstr "" "``complex('1+2j')`` est bon, mais ``complex('1 + 2j')`` lève une :exc:" "`ValueError`." -#: ../Doc/library/functions.rst:312 +#: ../Doc/library/functions.rst:311 msgid "The complex type is described in :ref:`typesnumeric`." msgstr "Le type complexe est décrit dans :ref:`typesnumeric`." -#: ../Doc/library/functions.rst:314 ../Doc/library/functions.rst:579 -#: ../Doc/library/functions.rst:772 +#: ../Doc/library/functions.rst:313 ../Doc/library/functions.rst:578 +#: ../Doc/library/functions.rst:771 msgid "Grouping digits with underscores as in code literals is allowed." msgstr "" "Les chiffres peuvent être groupés avec des tirets bas comme dans les " "expressions littérales." -#: ../Doc/library/functions.rst:320 +#: ../Doc/library/functions.rst:319 msgid "" "This is a relative of :func:`setattr`. The arguments are an object and a " "string. The string must be the name of one of the object's attributes. The " @@ -795,7 +797,7 @@ msgstr "" "fonction supprime l'attribut nommé, si l'objet l'y autorise. Par exemple " "``delattr(x, 'foobar')`` est l'équivalent de ``del x.foobar``." -#: ../Doc/library/functions.rst:332 +#: ../Doc/library/functions.rst:331 msgid "" "Create a new dictionary. The :class:`dict` object is the dictionary class. " "See :class:`dict` and :ref:`typesmapping` for documentation about this class." @@ -804,7 +806,7 @@ msgstr "" "dictionnaire. Voir :class:`dict` et :ref:`typesmapping` pour vous documenter " "sur cette classe." -#: ../Doc/library/functions.rst:335 +#: ../Doc/library/functions.rst:334 msgid "" "For other containers see the built-in :class:`list`, :class:`set`, and :" "class:`tuple` classes, as well as the :mod:`collections` module." @@ -812,7 +814,7 @@ msgstr "" "Pour les autres conteneurs, voir les classes natives :class:`list`, :class:" "`set`, et :class:`typle`. ainsi que le module :mod:`collections`." -#: ../Doc/library/functions.rst:341 +#: ../Doc/library/functions.rst:340 msgid "" "Without arguments, return the list of names in the current local scope. " "With an argument, attempt to return a list of valid attributes for that " @@ -822,7 +824,7 @@ msgstr "" "Avec un argument, elle essaye de donner une liste d'attributs valides pour " "cet objet." -#: ../Doc/library/functions.rst:344 +#: ../Doc/library/functions.rst:343 msgid "" "If the object has a method named :meth:`__dir__`, this method will be called " "and must return the list of attributes. This allows objects that implement a " @@ -834,7 +836,7 @@ msgstr "" "`__getattr__` ou :func:`__getattribute__` de personnaliser ce que donnera :" "func:`dir`." -#: ../Doc/library/functions.rst:349 +#: ../Doc/library/functions.rst:348 msgid "" "If the object does not provide :meth:`__dir__`, the function tries its best " "to gather information from the object's :attr:`~object.__dict__` attribute, " @@ -848,7 +850,7 @@ msgstr "" "n'est pas nécessairement complète, et peut être inadaptée quand l'objet a " "un :func:`__getattr__` personnalisé." -#: ../Doc/library/functions.rst:354 +#: ../Doc/library/functions.rst:353 msgid "" "The default :func:`dir` mechanism behaves differently with different types " "of objects, as it attempts to produce the most relevant, rather than " @@ -858,7 +860,7 @@ msgstr "" "différents types d'objets, car elle préfère donner une information " "pertinente plutôt qu'exhaustive :" -#: ../Doc/library/functions.rst:358 +#: ../Doc/library/functions.rst:357 msgid "" "If the object is a module object, the list contains the names of the " "module's attributes." @@ -866,7 +868,7 @@ msgstr "" "Si l'objet est un module, la liste contiendra les noms des attributs du " "module." -#: ../Doc/library/functions.rst:361 +#: ../Doc/library/functions.rst:360 msgid "" "If the object is a type or class object, the list contains the names of its " "attributes, and recursively of the attributes of its bases." @@ -874,7 +876,7 @@ msgstr "" "Si l'objet est un type ou une classe, la liste contiendra les noms de ses " "attributs, et récursivement, des attributs de ses parents." -#: ../Doc/library/functions.rst:364 +#: ../Doc/library/functions.rst:363 msgid "" "Otherwise, the list contains the object's attributes' names, the names of " "its class's attributes, and recursively of the attributes of its class's " @@ -884,11 +886,11 @@ msgstr "" "attributs de la classe, et récursivement des attributs des parents de la " "classe." -#: ../Doc/library/functions.rst:368 +#: ../Doc/library/functions.rst:367 msgid "The resulting list is sorted alphabetically. For example:" msgstr "La liste donnée est triée par ordre alphabétique, par exemple :" -#: ../Doc/library/functions.rst:387 +#: ../Doc/library/functions.rst:386 msgid "" "Because :func:`dir` is supplied primarily as a convenience for use at an " "interactive prompt, it tries to supply an interesting set of names more than " @@ -902,7 +904,7 @@ msgstr "" "aussi changer d'une version à l'autre. Par exemple, les attributs de méta-" "classes ne sont pas données lorsque l'argument est une classe." -#: ../Doc/library/functions.rst:397 +#: ../Doc/library/functions.rst:396 msgid "" "Take two (non complex) numbers as arguments and return a pair of numbers " "consisting of their quotient and remainder when using integer division. " @@ -922,7 +924,7 @@ msgstr "" "b + a % b`` est très proche de *a*. Si ``a % b`` est différent de zéro, il a " "le même signe que *b*, et ``0 <= abs(a % b) < abs(b)``." -#: ../Doc/library/functions.rst:409 +#: ../Doc/library/functions.rst:408 msgid "" "Return an enumerate object. *iterable* must be a sequence, an :term:" "`iterator`, or some other object which supports iteration. The :meth:" @@ -936,11 +938,11 @@ msgstr "" "tuple contenant un compte (démarrant à *start*, 0 par défaut) et les valeurs " "obtenues de l'itération sur *iterable*." -#: ../Doc/library/functions.rst:421 +#: ../Doc/library/functions.rst:420 msgid "Equivalent to::" msgstr "Équivalent à : ::" -#: ../Doc/library/functions.rst:432 +#: ../Doc/library/functions.rst:431 msgid "" "The arguments are a string and optional globals and locals. If provided, " "*globals* must be a dictionary. If provided, *locals* can be any mapping " @@ -950,7 +952,7 @@ msgstr "" "globales. S'il est fourni, *globals* doit être un dictionnaire. S'il est " "fourni, *locals* peut être n'importe quel objet *mapping*." -#: ../Doc/library/functions.rst:436 +#: ../Doc/library/functions.rst:435 msgid "" "The *expression* argument is parsed and evaluated as a Python expression " "(technically speaking, a condition list) using the *globals* and *locals* " @@ -979,7 +981,7 @@ msgstr "" "est le résultat de l'expression évaluée. Les erreurs de syntaxe sont " "rapportées via des exceptions. Exemple :" -#: ../Doc/library/functions.rst:453 +#: ../Doc/library/functions.rst:452 msgid "" "This function can also be used to execute arbitrary code objects (such as " "those created by :func:`compile`). In this case pass a code object instead " @@ -991,7 +993,7 @@ msgstr "" "code plutôt qu'une chaîne. Si l'objet code à été compilé avec ``'exec'`` en " "argument pour *mode*, :func:`eval` donnera ``None``." -#: ../Doc/library/functions.rst:458 +#: ../Doc/library/functions.rst:457 msgid "" "Hints: dynamic execution of statements is supported by the :func:`exec` " "function. The :func:`globals` and :func:`locals` functions returns the " @@ -1003,7 +1005,7 @@ msgstr "" "respectivement les dictionnaires globaux et locaux, qui peuvent être utiles " "lors de l'usage de :func:`eval` et :func:`exec`." -#: ../Doc/library/functions.rst:463 +#: ../Doc/library/functions.rst:462 msgid "" "See :func:`ast.literal_eval` for a function that can safely evaluate strings " "with expressions containing only literals." @@ -1012,7 +1014,7 @@ msgstr "" "peut évaluer en toute sécurité des chaînes avec des expressions ne contenant " "que des valeurs littérales." -#: ../Doc/library/functions.rst:470 +#: ../Doc/library/functions.rst:469 msgid "" "This function supports dynamic execution of Python code. *object* must be " "either a string or a code object. If it is a string, the string is parsed " @@ -1034,7 +1036,7 @@ msgstr "" "`return` et :keyword:`yield` ne peuvent pas être utilisés en dehors d'une " "fonction, même dans du code passé à :func:`exec`. La fonction donne ``None``." -#: ../Doc/library/functions.rst:480 +#: ../Doc/library/functions.rst:479 msgid "" "In all cases, if the optional parts are omitted, the code is executed in the " "current scope. If only *globals* is provided, it must be a dictionary, " @@ -1055,7 +1057,7 @@ msgstr "" "*globals* et *locals*, le code sera exécuté comme s'il était inclus dans une " "définition de classe." -#: ../Doc/library/functions.rst:489 +#: ../Doc/library/functions.rst:488 msgid "" "If the *globals* dictionary does not contain a value for the key " "``__builtins__``, a reference to the dictionary of the built-in module :mod:" @@ -1069,7 +1071,7 @@ msgstr "" "exposées au code exécuté en insérant votre propre dictionnaire " "``__builtins__`` dans *globals* avant de le donner à :func:`exec`." -#: ../Doc/library/functions.rst:497 +#: ../Doc/library/functions.rst:496 msgid "" "The built-in functions :func:`globals` and :func:`locals` return the current " "global and local dictionary, respectively, which may be useful to pass " @@ -1079,7 +1081,7 @@ msgstr "" "respectivement les dictionnaires globaux et locaux, qui peuvent être utiles " "en deuxième et troisième argument de :func:`exec`." -#: ../Doc/library/functions.rst:503 +#: ../Doc/library/functions.rst:502 msgid "" "The default *locals* act as described for function :func:`locals` below: " "modifications to the default *locals* dictionary should not be attempted. " @@ -1092,7 +1094,7 @@ msgstr "" "observer l'effet du code sur les variables locales, après que :func:`exec` " "soit terminée." -#: ../Doc/library/functions.rst:511 +#: ../Doc/library/functions.rst:510 msgid "" "Construct an iterator from those elements of *iterable* for which *function* " "returns true. *iterable* may be either a sequence, a container which " @@ -1106,7 +1108,7 @@ msgstr "" "``None``, la fonction identité est prise, c'est à dire que tous les éléments " "faux d'*iterable* sont supprimés." -#: ../Doc/library/functions.rst:517 +#: ../Doc/library/functions.rst:516 msgid "" "Note that ``filter(function, iterable)`` is equivalent to the generator " "expression ``(item for item in iterable if function(item))`` if function is " @@ -1118,7 +1120,7 @@ msgstr "" "``None`` et de ``(item for item in iterable if item)`` si *function* est " "``None``." -#: ../Doc/library/functions.rst:522 +#: ../Doc/library/functions.rst:521 msgid "" "See :func:`itertools.filterfalse` for the complementary function that " "returns elements of *iterable* for which *function* returns false." @@ -1126,12 +1128,12 @@ msgstr "" "Voir :func:`itertools.filterfalse` pour la fonction complémentaire qui donne " "les éléments d'*iterable* pour lesquels *fonction* donne ``False``." -#: ../Doc/library/functions.rst:532 +#: ../Doc/library/functions.rst:531 msgid "Return a floating point number constructed from a number or string *x*." msgstr "" "Donne un nombre a virgule flottante depuis un nombre ou une chaîne *x*." -#: ../Doc/library/functions.rst:534 +#: ../Doc/library/functions.rst:533 msgid "" "If the argument is a string, it should contain a decimal number, optionally " "preceded by a sign, and optionally embedded in whitespace. The optional " @@ -1149,7 +1151,7 @@ msgstr "" "Plus précisément, l'argument doit se conformer à la grammaire suivante, " "après que les espaces en début et fin de chaîne aient été retirés :" -#: ../Doc/library/functions.rst:549 +#: ../Doc/library/functions.rst:548 msgid "" "Here ``floatnumber`` is the form of a Python floating-point literal, " "described in :ref:`floating`. Case is not significant, so, for example, " @@ -1161,7 +1163,7 @@ msgstr "" "exemple, ``\"inf\"``, ``\" Inf\"``, ``\"INFINITY\"``, et ``\" iNfiNity\"`` " "sont tous des orthographes valides pour un infini positif." -#: ../Doc/library/functions.rst:554 +#: ../Doc/library/functions.rst:553 msgid "" "Otherwise, if the argument is an integer or a floating point number, a " "floating point number with the same value (within Python's floating point " @@ -1174,26 +1176,26 @@ msgstr "" "dehors de l'intervalle d'un nombre a virgule flottante pour Python, :exc:" "`OverflowError` est levée." -#: ../Doc/library/functions.rst:559 +#: ../Doc/library/functions.rst:558 msgid "" "For a general Python object ``x``, ``float(x)`` delegates to ``x." "__float__()``." msgstr "" "Pour un objet Python ``x``, ``float(x)`` est délégué à ``x.__float__()``." -#: ../Doc/library/functions.rst:562 +#: ../Doc/library/functions.rst:561 msgid "If no argument is given, ``0.0`` is returned." msgstr "Dans argument, ``0.0`` est donné." -#: ../Doc/library/functions.rst:564 +#: ../Doc/library/functions.rst:563 msgid "Examples::" msgstr "Exemples : ::" -#: ../Doc/library/functions.rst:577 +#: ../Doc/library/functions.rst:576 msgid "The float type is described in :ref:`typesnumeric`." msgstr "Le type *float* est décrit dans :ref:`typesnumeric`." -#: ../Doc/library/functions.rst:592 +#: ../Doc/library/functions.rst:591 msgid "" "Convert a *value* to a \"formatted\" representation, as controlled by " "*format_spec*. The interpretation of *format_spec* will depend on the type " @@ -1205,7 +1207,7 @@ msgstr "" "valeur, cependant il existe une syntaxe standard utilisée par la plupart des " "types natifs : :ref:`formatspec`." -#: ../Doc/library/functions.rst:597 +#: ../Doc/library/functions.rst:596 msgid "" "The default *format_spec* is an empty string which usually gives the same " "effect as calling :func:`str(value) `." @@ -1213,7 +1215,7 @@ msgstr "" "Par défaut, *format_spec* est une chaîne vide qui généralement donne le même " "effet qu'appeler :func:`str(value) `." -#: ../Doc/library/functions.rst:600 +#: ../Doc/library/functions.rst:599 msgid "" "A call to ``format(value, format_spec)`` is translated to ``type(value)." "__format__(value, format_spec)`` which bypasses the instance dictionary when " @@ -1229,7 +1231,7 @@ msgstr "" "mod:`object` et que *format_spec* n'est pas vide, ou si soit *format_spec* " "soit la le résultat ne sont pas des chaînes." -#: ../Doc/library/functions.rst:607 +#: ../Doc/library/functions.rst:606 msgid "" "``object().__format__(format_spec)`` raises :exc:`TypeError` if " "*format_spec* is not an empty string." @@ -1237,7 +1239,7 @@ msgstr "" "``object().__format__(format_spec)`` lève :exc:`TypeError` si *format_spec* " "n'est pas une chaîne vide." -#: ../Doc/library/functions.rst:616 +#: ../Doc/library/functions.rst:615 msgid "" "Return a new :class:`frozenset` object, optionally with elements taken from " "*iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and :" @@ -1247,7 +1249,7 @@ msgstr "" "tirés d'*iterable*. ``frozenset`` est une classe native. Voir :class:" "`frozenset` et :ref:`types-set` pour leurs documentation." -#: ../Doc/library/functions.rst:620 +#: ../Doc/library/functions.rst:619 msgid "" "For other containers see the built-in :class:`set`, :class:`list`, :class:" "`tuple`, and :class:`dict` classes, as well as the :mod:`collections` module." @@ -1256,7 +1258,7 @@ msgstr "" "`list`, :class:`tuple`, et :class:`dict`, ainsi que le module :mod:" "`collections`." -#: ../Doc/library/functions.rst:627 +#: ../Doc/library/functions.rst:626 msgid "" "Return the value of the named attribute of *object*. *name* must be a " "string. If the string is the name of one of the object's attributes, the " @@ -1272,7 +1274,7 @@ msgstr "" "que *default* est fourni, il est renvoyé, sinon l'exception :exc:" "`AttributeError` est levée." -#: ../Doc/library/functions.rst:636 +#: ../Doc/library/functions.rst:635 msgid "" "Return a dictionary representing the current global symbol table. This is " "always the dictionary of the current module (inside a function or method, " @@ -1284,7 +1286,7 @@ msgstr "" "fonction ou méthode, c'est le module où elle est définie, et non le module " "d'où elle est appelée)." -#: ../Doc/library/functions.rst:643 +#: ../Doc/library/functions.rst:642 msgid "" "The arguments are an object and a string. The result is ``True`` if the " "string is the name of one of the object's attributes, ``False`` if not. " @@ -1296,7 +1298,7 @@ msgstr "" "(L'implémentation appelle ``getattr(object, name)`` et regarde si une " "exception :exc:`AttributeError` à été levée.)" -#: ../Doc/library/functions.rst:651 +#: ../Doc/library/functions.rst:650 msgid "" "Return the hash value of the object (if it has one). Hash values are " "integers. They are used to quickly compare dictionary keys during a " @@ -1309,7 +1311,7 @@ msgstr "" "même *hash* (même si leurs types sont différents, comme pour ``1`` et " "``1.0``)." -#: ../Doc/library/functions.rst:658 +#: ../Doc/library/functions.rst:657 msgid "" "For objects with custom :meth:`__hash__` methods, note that :func:`hash` " "truncates the return value based on the bit width of the host machine. See :" @@ -1319,7 +1321,7 @@ msgstr "" "func:`hash` tronque la valeur donnée en fonction du nombre de bits de la " "machine hôte. Voir :meth:`__hash__` pour plus d'informations." -#: ../Doc/library/functions.rst:664 +#: ../Doc/library/functions.rst:663 msgid "" "Invoke the built-in help system. (This function is intended for interactive " "use.) If no argument is given, the interactive help system starts on the " @@ -1335,7 +1337,7 @@ msgstr "" "ce nom est recherché, et une page d'aide est affichée sur la console. Si " "l'argument est d'un autre type, une page d'aide sur cet objet est générée." -#: ../Doc/library/functions.rst:671 +#: ../Doc/library/functions.rst:670 msgid "" "Note that if a slash(/) appears in the parameter list of a function, when " "invoking :func:`help`, it means that the parameters prior to the slash are " @@ -1343,14 +1345,14 @@ msgid "" "parameters `." msgstr "" -#: ../Doc/library/functions.rst:676 +#: ../Doc/library/functions.rst:675 msgid "" "This function is added to the built-in namespace by the :mod:`site` module." msgstr "" "Cette fonction est ajoutée à l'espace de noms natif par le module :mod:" "`site`." -#: ../Doc/library/functions.rst:678 +#: ../Doc/library/functions.rst:677 msgid "" "Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures " "for callables are now more comprehensive and consistent." @@ -1358,7 +1360,7 @@ msgstr "" "Les changements aux modules :mod:`pydoc` et :mod:`inspect` rendent les " "signatures des appelables plus compréhensible et cohérente." -#: ../Doc/library/functions.rst:685 +#: ../Doc/library/functions.rst:684 msgid "" "Convert an integer number to a lowercase hexadecimal string prefixed with " "\"0x\". If *x* is not a Python :class:`int` object, it has to define an :" @@ -1368,7 +1370,7 @@ msgstr "" "pas un :class:`int`, il doit définir une méthode :meth:`__index__` qui " "renvoie un entier. Quelques exemples :" -#: ../Doc/library/functions.rst:694 +#: ../Doc/library/functions.rst:693 msgid "" "If you want to convert an integer number to an uppercase or lower " "hexadecimal string with prefix or not, you can use either of the following " @@ -1377,7 +1379,7 @@ msgstr "" "Si vous voulez convertir un nombre entier en chaîne hexadécimale, en " "majuscule ou non, préfixée ou non, vous pouvez utiliser les moyens suivants :" -#: ../Doc/library/functions.rst:706 +#: ../Doc/library/functions.rst:705 msgid "" "See also :func:`int` for converting a hexadecimal string to an integer using " "a base of 16." @@ -1385,7 +1387,7 @@ msgstr "" "Voir aussi :func:`int` pour convertir une chaîne hexadécimale en un entier " "en lui spécifiant 16 comme base." -#: ../Doc/library/functions.rst:711 +#: ../Doc/library/functions.rst:710 msgid "" "To obtain a hexadecimal string representation for a float, use the :meth:" "`float.hex` method." @@ -1393,7 +1395,7 @@ msgstr "" "Pour obtenir une représentation hexadécimale sous forme de chaîne d'un " "nombre à virgule flottante, utilisez la méthode :meth:`float.hex`." -#: ../Doc/library/functions.rst:717 +#: ../Doc/library/functions.rst:716 msgid "" "Return the \"identity\" of an object. This is an integer which is " "guaranteed to be unique and constant for this object during its lifetime. " @@ -1404,7 +1406,7 @@ msgstr "" "constant pour cet objet durant sa durée de vie. Deux objets sont les durées " "de vie ne se chevauchent pas peuvent partager le même :func:`id`." -#: ../Doc/library/functions.rst:727 +#: ../Doc/library/functions.rst:726 msgid "" "If the *prompt* argument is present, it is written to standard output " "without a trailing newline. The function then reads a line from input, " @@ -1416,7 +1418,7 @@ msgstr "" "standard et la convertit en chaîne (supprimant le retour à la ligne final) " "quelle donne. Lorsque EOF est lu, :exc:`EOFError` est levée. Exemple : ::" -#: ../Doc/library/functions.rst:737 +#: ../Doc/library/functions.rst:736 msgid "" "If the :mod:`readline` module was loaded, then :func:`input` will use it to " "provide elaborate line editing and history features." @@ -1424,7 +1426,7 @@ msgstr "" "Si le module :mod:`readline` est chargé, :func:`input` l'utilisera pour " "fournir des fonctionnalités d'édition et d'historique élaborées." -#: ../Doc/library/functions.rst:744 +#: ../Doc/library/functions.rst:743 msgid "" "Return an integer object constructed from a number or string *x*, or return " "``0`` if no arguments are given. If *x* defines :meth:`__int__`, ``int(x)`` " @@ -1437,7 +1439,7 @@ msgstr "" "``int(x)`` renvoie ``x.__trunc__()``. Les nombres à virgule flottante sont " "tronqués vers zéro." -#: ../Doc/library/functions.rst:750 +#: ../Doc/library/functions.rst:749 msgid "" "If *x* is not a number or if *base* is given, then *x* must be a string, :" "class:`bytes`, or :class:`bytearray` instance representing an :ref:`integer " @@ -1466,11 +1468,11 @@ msgstr "" "0)`` n'est pas légal, alors que ``int('010')`` l'est tout comme ``int('010', " "8)``." -#: ../Doc/library/functions.rst:763 +#: ../Doc/library/functions.rst:762 msgid "The integer type is described in :ref:`typesnumeric`." msgstr "Le type des entiers est décrit dans :ref:`typesnumeric`." -#: ../Doc/library/functions.rst:765 +#: ../Doc/library/functions.rst:764 msgid "" "If *base* is not an instance of :class:`int` and the *base* object has a :" "meth:`base.__index__ ` method, that method is called to " @@ -1483,7 +1485,7 @@ msgstr "" "meth:`base.__int__ ` au lieu de :meth:`base.__index__ " "`." -#: ../Doc/library/functions.rst:781 +#: ../Doc/library/functions.rst:780 msgid "" "Return true if the *object* argument is an instance of the *classinfo* " "argument, or of a (direct, indirect or :term:`virtual `) of *classinfo*. A class is considered a subclass of " @@ -1516,7 +1518,7 @@ msgstr "" "cas la vérification sera faite pour chaque classe de *classinfo*. Dans tous " "les autres cas, :exc:`TypeError` est levée." -#: ../Doc/library/functions.rst:802 +#: ../Doc/library/functions.rst:801 msgid "" "Return an :term:`iterator` object. The first argument is interpreted very " "differently depending on the presence of the second argument. Without a " @@ -1542,11 +1544,11 @@ msgstr "" "est égale à *sentinel* :exc:`StopIteration` est levée, autrement la valeur " "est donnée." -#: ../Doc/library/functions.rst:815 +#: ../Doc/library/functions.rst:814 msgid "See also :ref:`typeiter`." msgstr "Voir aussi :ref:`typeiter`." -#: ../Doc/library/functions.rst:817 +#: ../Doc/library/functions.rst:816 msgid "" "One useful application of the second form of :func:`iter` is to build a " "block-reader. For example, reading fixed-width blocks from a binary database " @@ -1556,7 +1558,7 @@ msgstr "" "construire un lecteur par blocs. Par exemple, lire des blocs de taille fixe " "d'une base de donnée binaire jusqu'à ce que la fin soit atteinte ::" -#: ../Doc/library/functions.rst:829 +#: ../Doc/library/functions.rst:828 msgid "" "Return the length (the number of items) of an object. The argument may be a " "sequence (such as a string, bytes, tuple, list, or range) or a collection " @@ -1566,7 +1568,7 @@ msgstr "" "séquence (tel qu'une chaîne, un objet ``bytes``, ``tuple``, ``list`` ou " "``range``) ou une collection (tel qu'un ``dict``, ``set`` ou ``frozenset``)." -#: ../Doc/library/functions.rst:838 +#: ../Doc/library/functions.rst:837 msgid "" "Rather than being a function, :class:`list` is actually a mutable sequence " "type, as documented in :ref:`typesseq-list` and :ref:`typesseq`." @@ -1574,7 +1576,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`list` est en fait un type de séquence " "variable, tel que documenté dans :ref:`typesseq-list` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:844 +#: ../Doc/library/functions.rst:843 msgid "" "Update and return a dictionary representing the current local symbol table. " "Free variables are returned by :func:`locals` when it is called in function " @@ -1584,7 +1586,7 @@ msgstr "" "locaux. Les variables libres sont données par :func:`locals` lorsqu'elle est " "appelée dans le corps d'une fonction, mais pas dans le corps d'une classe." -#: ../Doc/library/functions.rst:849 +#: ../Doc/library/functions.rst:848 msgid "" "The contents of this dictionary should not be modified; changes may not " "affect the values of local and free variables used by the interpreter." @@ -1593,7 +1595,7 @@ msgstr "" "peuvent ne pas affecter les valeurs des variables locales ou libres " "utilisées par l'interpréteur." -#: ../Doc/library/functions.rst:854 +#: ../Doc/library/functions.rst:853 msgid "" "Return an iterator that applies *function* to every item of *iterable*, " "yielding the results. If additional *iterable* arguments are passed, " @@ -1610,7 +1612,7 @@ msgstr "" "où les arguments seraient déjà rangés sous forme de tuples, voir :func:" "`itertools.starmap`." -#: ../Doc/library/functions.rst:865 +#: ../Doc/library/functions.rst:864 msgid "" "Return the largest item in an iterable or the largest of two or more " "arguments." @@ -1618,7 +1620,7 @@ msgstr "" "Donne l'élément le plus grand dans un itérable, ou l'argument le plus grand " "parmi au moins deux arguments." -#: ../Doc/library/functions.rst:868 +#: ../Doc/library/functions.rst:867 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The largest item in the iterable is returned. If two or more positional " @@ -1628,7 +1630,7 @@ msgstr "" "Le plus grand élément de l'itérable est donné. Si au moins deux arguments " "positionnels sont fournis, l'argument le plus grand sera donné." -#: ../Doc/library/functions.rst:873 ../Doc/library/functions.rst:907 +#: ../Doc/library/functions.rst:872 ../Doc/library/functions.rst:906 msgid "" "There are two optional keyword-only arguments. The *key* argument specifies " "a one-argument ordering function like that used for :meth:`list.sort`. The " @@ -1642,7 +1644,7 @@ msgstr "" "l'itérable fourni est vide. Si l'itérable est vide et que *default* n'est " "pas fourni, :exc:`ValueError` est levée." -#: ../Doc/library/functions.rst:879 +#: ../Doc/library/functions.rst:878 msgid "" "If multiple items are maximal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -1654,11 +1656,11 @@ msgstr "" "stabilité lors du tri, tel que ``sorted(iterable, key=keyfunc, reverse=True)" "[0]`` et ``heapq.nlargest(1, iterable, key=keyfunc)``." -#: ../Doc/library/functions.rst:884 ../Doc/library/functions.rst:918 +#: ../Doc/library/functions.rst:883 ../Doc/library/functions.rst:917 msgid "The *default* keyword-only argument." msgstr "L'argument exclusivement par mot clef *default*." -#: ../Doc/library/functions.rst:892 +#: ../Doc/library/functions.rst:891 msgid "" "Return a \"memory view\" object created from the given argument. See :ref:" "`typememoryview` for more information." @@ -1666,7 +1668,7 @@ msgstr "" "Donne une \"vue mémoire\" (*memory view*) créée depuis l'argument. Voir :ref:" "`typememoryview` pour plus d'informations." -#: ../Doc/library/functions.rst:899 +#: ../Doc/library/functions.rst:898 msgid "" "Return the smallest item in an iterable or the smallest of two or more " "arguments." @@ -1674,7 +1676,7 @@ msgstr "" "Donne le plus petit élément d'un itérable ou le plus petit d'au moins deux " "arguments." -#: ../Doc/library/functions.rst:902 +#: ../Doc/library/functions.rst:901 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The smallest item in the iterable is returned. If two or more positional " @@ -1684,7 +1686,7 @@ msgstr "" "élément de l'itérable est donné. Si au moins deux arguments positionnels " "sont fournis le plus petit argument positionnel est donné." -#: ../Doc/library/functions.rst:913 +#: ../Doc/library/functions.rst:912 msgid "" "If multiple items are minimal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -1696,7 +1698,7 @@ msgstr "" "``sorted(iterable, key=keyfunc)[0]`` et ``heapq.nsmallest(1, iterable, " "key=keyfunc)``." -#: ../Doc/library/functions.rst:924 +#: ../Doc/library/functions.rst:923 msgid "" "Retrieve the next item from the *iterator* by calling its :meth:`~iterator." "__next__` method. If *default* is given, it is returned if the iterator is " @@ -1706,7 +1708,7 @@ msgstr "" "__next__`. Si *default* est fourni, il sera donné si l'itérateur est épousé, " "sinon :exc:`StopIteration` est levée." -#: ../Doc/library/functions.rst:931 +#: ../Doc/library/functions.rst:930 msgid "" "Return a new featureless object. :class:`object` is a base for all classes. " "It has the methods that are common to all instances of Python classes. This " @@ -1716,7 +1718,7 @@ msgstr "" "classes. C'est elle qui porte les méthodes communes à toutes les instances " "de classes en Python. Cette fonction n'accepte aucun argument." -#: ../Doc/library/functions.rst:937 +#: ../Doc/library/functions.rst:936 msgid "" ":class:`object` does *not* have a :attr:`~object.__dict__`, so you can't " "assign arbitrary attributes to an instance of the :class:`object` class." @@ -1725,7 +1727,7 @@ msgstr "" "pouvez donc pas assigner d'attributs arbitraire à une instance d':class:" "`object`." -#: ../Doc/library/functions.rst:943 +#: ../Doc/library/functions.rst:942 msgid "" "Convert an integer number to an octal string prefixed with \"0o\". The " "result is a valid Python expression. If *x* is not a Python :class:`int` " @@ -1737,7 +1739,7 @@ msgstr "" "objet :class:`int`, il doit définir une méthode :meth:`__index__` qui donne " "un entier, par exemple :" -#: ../Doc/library/functions.rst:953 +#: ../Doc/library/functions.rst:952 msgid "" "If you want to convert an integer number to octal string either with prefix " "\"0o\" or not, you can use either of the following ways." @@ -1745,7 +1747,7 @@ msgstr "" "Si vous voulez convertir un nombre entier en chaîne octale, avec ou sans le " "préfixe ``0o``, vous pouvez utiliser les moyens suivants." -#: ../Doc/library/functions.rst:970 +#: ../Doc/library/functions.rst:969 msgid "" "Open *file* and return a corresponding :term:`file object`. If the file " "cannot be opened, an :exc:`OSError` is raised." @@ -1753,7 +1755,7 @@ msgstr "" "Ouvre *file* et donne un :term:`file object` correspondant. Si le fichier ne " "peut pas être ouvert, une :exc:`OSError` est levée." -#: ../Doc/library/functions.rst:973 +#: ../Doc/library/functions.rst:972 msgid "" "*file* is a :term:`path-like object` giving the pathname (absolute or " "relative to the current working directory) of the file to be opened or an " @@ -1767,7 +1769,7 @@ msgstr "" "donné, il sera fermé en même temps que l'objet *I/O* renvoyé, sauf si " "*closefd* est mis à ``False``.)" -#: ../Doc/library/functions.rst:979 +#: ../Doc/library/functions.rst:978 msgid "" "*mode* is an optional string that specifies the mode in which the file is " "opened. It defaults to ``'r'`` which means open for reading in text mode. " @@ -1793,71 +1795,71 @@ msgstr "" "utilisez le mode binaire en laissant *encoding* non spécifié.) Les modes " "disponibles sont :" -#: ../Doc/library/functions.rst:996 +#: ../Doc/library/functions.rst:995 msgid "Character" msgstr "Caractère" -#: ../Doc/library/functions.rst:996 +#: ../Doc/library/functions.rst:995 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/functions.rst:998 +#: ../Doc/library/functions.rst:997 msgid "``'r'``" msgstr "``'r'``" -#: ../Doc/library/functions.rst:998 +#: ../Doc/library/functions.rst:997 msgid "open for reading (default)" msgstr "ouvre en lecture (par défaut)" -#: ../Doc/library/functions.rst:999 +#: ../Doc/library/functions.rst:998 msgid "``'w'``" msgstr "``'w'``" -#: ../Doc/library/functions.rst:999 +#: ../Doc/library/functions.rst:998 msgid "open for writing, truncating the file first" msgstr "ouvre en écriture, tronquant le fichier" -#: ../Doc/library/functions.rst:1000 +#: ../Doc/library/functions.rst:999 msgid "``'x'``" msgstr "``'x'``" -#: ../Doc/library/functions.rst:1000 +#: ../Doc/library/functions.rst:999 msgid "open for exclusive creation, failing if the file already exists" msgstr "ouvre pour une création exclusive, échouant si le fichier existe déjà" -#: ../Doc/library/functions.rst:1001 +#: ../Doc/library/functions.rst:1000 msgid "``'a'``" msgstr "``'a'``" -#: ../Doc/library/functions.rst:1001 +#: ../Doc/library/functions.rst:1000 msgid "open for writing, appending to the end of the file if it exists" msgstr "ouvre en écriture, ajoutant à la fin du fichier s'il existe" -#: ../Doc/library/functions.rst:1002 +#: ../Doc/library/functions.rst:1001 msgid "``'b'``" msgstr "``'b'``" -#: ../Doc/library/functions.rst:1002 +#: ../Doc/library/functions.rst:1001 msgid "binary mode" msgstr "mode binaire" -#: ../Doc/library/functions.rst:1003 +#: ../Doc/library/functions.rst:1002 msgid "``'t'``" msgstr "``'t'``" -#: ../Doc/library/functions.rst:1003 +#: ../Doc/library/functions.rst:1002 msgid "text mode (default)" msgstr "mode texte (par défaut)" -#: ../Doc/library/functions.rst:1004 +#: ../Doc/library/functions.rst:1003 msgid "``'+'``" msgstr "``'+'``" -#: ../Doc/library/functions.rst:1004 +#: ../Doc/library/functions.rst:1003 msgid "open a disk file for updating (reading and writing)" msgstr "ouvre un fichier pour le modifier (lire et écrire)" -#: ../Doc/library/functions.rst:1007 +#: ../Doc/library/functions.rst:1006 msgid "" "The default mode is ``'r'`` (open for reading text, synonym of ``'rt'``). " "For binary read-write access, the mode ``'w+b'`` opens and truncates the " @@ -1867,7 +1869,7 @@ msgstr "" "``'rt'``). Pour un accès en lecture écriture binaire, le mode ``'w+b'`` " "ouvre et vide le fichier. ``'r+b'`` ouvre le fichier sans le vider." -#: ../Doc/library/functions.rst:1011 +#: ../Doc/library/functions.rst:1010 msgid "" "As mentioned in the :ref:`io-overview`, Python distinguishes between binary " "and text I/O. Files opened in binary mode (including ``'b'`` in the *mode* " @@ -1885,7 +1887,7 @@ msgstr "" "été décodés au préalable en utilisant un encodage déduit de l'environnement " "ou *encoding* s'il est donné." -#: ../Doc/library/functions.rst:1019 +#: ../Doc/library/functions.rst:1018 msgid "" "There is an additional mode character permitted, ``'U'``, which no longer " "has any effect, and is considered deprecated. It previously enabled :term:" @@ -1894,7 +1896,7 @@ msgid "" "parameter>` parameter for further details." msgstr "" -#: ../Doc/library/functions.rst:1027 +#: ../Doc/library/functions.rst:1026 msgid "" "Python doesn't depend on the underlying operating system's notion of text " "files; all the processing is done by Python itself, and is therefore " @@ -1904,7 +1906,7 @@ msgstr "" "jacent, tout est effectué par Python lui même, et ainsi indépendant de la " "plateforme." -#: ../Doc/library/functions.rst:1031 +#: ../Doc/library/functions.rst:1030 msgid "" "*buffering* is an optional integer used to set the buffering policy. Pass 0 " "to switch buffering off (only allowed in binary mode), 1 to select line " @@ -1919,7 +1921,7 @@ msgstr "" "en octets d'un tampon de taille fixe. Sans l'argument *buffering*, les " "comportements par défaut sont les suivants :" -#: ../Doc/library/functions.rst:1037 +#: ../Doc/library/functions.rst:1036 msgid "" "Binary files are buffered in fixed-size chunks; the size of the buffer is " "chosen using a heuristic trying to determine the underlying device's \"block " @@ -1932,7 +1934,7 @@ msgstr "" "DEFAULT_BUFFER_SIZE`. Sur de nombreux systèmes, le tampon sera de 4096 ou " "8192 octets." -#: ../Doc/library/functions.rst:1042 +#: ../Doc/library/functions.rst:1041 msgid "" "\"Interactive\" text files (files for which :meth:`~io.IOBase.isatty` " "returns ``True``) use line buffering. Other text files use the policy " @@ -1942,7 +1944,7 @@ msgstr "" "isatty` donne ``True``) utilisent un tampon par lignes. Les autres fichiers " "texte sont traités comme les fichiers binaires." -#: ../Doc/library/functions.rst:1046 +#: ../Doc/library/functions.rst:1045 msgid "" "*encoding* is the name of the encoding used to decode or encode the file. " "This should only be used in text mode. The default encoding is platform " @@ -1956,7 +1958,7 @@ msgstr "" "mais n'importe quel :term:`text encoding` supporté par Python peut être " "utilisé. Voir :mod:`codecs` pour une liste des encodages supportés." -#: ../Doc/library/functions.rst:1053 +#: ../Doc/library/functions.rst:1052 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled—this cannot be used in binary mode. A variety of " @@ -1971,7 +1973,7 @@ msgstr "" "enregistré avec :func:`codecs.register_error` est aussi un argument valide. " "Les noms standards sont :" -#: ../Doc/library/functions.rst:1061 +#: ../Doc/library/functions.rst:1060 msgid "" "``'strict'`` to raise a :exc:`ValueError` exception if there is an encoding " "error. The default value of ``None`` has the same effect." @@ -1979,7 +1981,7 @@ msgstr "" "``'strict'`` pour lever une :exc:`ValueError` si une erreur d'encodage est " "rencontrée. La valeur par défaut, ``None``, a le même effet." -#: ../Doc/library/functions.rst:1065 +#: ../Doc/library/functions.rst:1064 msgid "" "``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to " "data loss." @@ -1987,7 +1989,7 @@ msgstr "" "``'ignore'`` ignore les erreurs. Notez qu'ignorer les erreurs d'encodage " "peut mener à des pertes de données." -#: ../Doc/library/functions.rst:1068 +#: ../Doc/library/functions.rst:1067 msgid "" "``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted " "where there is malformed data." @@ -1995,7 +1997,7 @@ msgstr "" "``'replace'`` insère un marqueur de substitution (tel que ``'?'``) en place " "des données mal formées." -#: ../Doc/library/functions.rst:1071 +#: ../Doc/library/functions.rst:1070 msgid "" "``'surrogateescape'`` will represent any incorrect bytes as code points in " "the Unicode Private Use Area ranging from U+DC80 to U+DCFF. These private " @@ -2010,7 +2012,7 @@ msgstr "" "l'écriture de la donnée. C'est utile pour traiter des fichiers d'un encodage " "inconnu." -#: ../Doc/library/functions.rst:1078 +#: ../Doc/library/functions.rst:1077 msgid "" "``'xmlcharrefreplace'`` is only supported when writing to a file. Characters " "not supported by the encoding are replaced with the appropriate XML " @@ -2020,7 +2022,7 @@ msgstr "" "Les caractères non gérés par l'encodage sont remplacés par une référence de " "caractère XML ``&#nnn;``." -#: ../Doc/library/functions.rst:1082 +#: ../Doc/library/functions.rst:1081 msgid "" "``'backslashreplace'`` replaces malformed data by Python's backslashed " "escape sequences." @@ -2028,7 +2030,7 @@ msgstr "" "``'backslashreplace'`` remplace les données mal formées par des séquences " "d'échappement Python (utilisant des *backslash*)." -#: ../Doc/library/functions.rst:1085 +#: ../Doc/library/functions.rst:1084 msgid "" "``'namereplace'`` (also only supported when writing) replaces unsupported " "characters with ``\\N{...}`` escape sequences." @@ -2036,7 +2038,7 @@ msgstr "" "``'namereplace'`` (aussi supporté lors de l'écriture) remplace les " "caractères non supportés par des séquences d'échappement ``\\N{...}``." -#: ../Doc/library/functions.rst:1093 +#: ../Doc/library/functions.rst:1092 msgid "" "*newline* controls how :term:`universal newlines` mode works (it only " "applies to text mode). It can be ``None``, ``''``, ``'\\n'``, ``'\\r'``, " @@ -2046,7 +2048,7 @@ msgstr "" "(seulement en mode texte). Il eut être ``None``, ``''``, ``'\\n'``, " "``'\\r'``, et ``'\\r\\n'``. Il fonctionne comme suit :" -#: ../Doc/library/functions.rst:1097 +#: ../Doc/library/functions.rst:1096 msgid "" "When reading input from the stream, if *newline* is ``None``, universal " "newlines mode is enabled. Lines in the input can end in ``'\\n'``, " @@ -2064,7 +2066,7 @@ msgstr "" "autorisée, les lignes sont seulement terminées par la chaîne donnée, qui est " "rendue tel qu'elle." -#: ../Doc/library/functions.rst:1105 +#: ../Doc/library/functions.rst:1104 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -2078,7 +2080,7 @@ msgstr "" "*newline* est un autre caractère valide, chaque ``'\\n'`` sera remplacé par " "la chaîne donnée." -#: ../Doc/library/functions.rst:1111 +#: ../Doc/library/functions.rst:1110 msgid "" "If *closefd* is ``False`` and a file descriptor rather than a filename was " "given, the underlying file descriptor will be kept open when the file is " @@ -2090,7 +2092,7 @@ msgstr "" "le fichier sera fermé. Si un nom de fichier est donné, *closefd* doit rester " "``True`` (la valeur par défaut) sans quoi une erreur est levée." -#: ../Doc/library/functions.rst:1116 +#: ../Doc/library/functions.rst:1115 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 " @@ -2104,13 +2106,13 @@ msgstr "" "descripteur de fichier ouvert (fournir :mod:`os.open` en temps qu'*opener* " "aura le même effet que donner ``None``)." -#: ../Doc/library/functions.rst:1122 +#: ../Doc/library/functions.rst:1121 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/functions.rst:1124 +#: ../Doc/library/functions.rst:1123 msgid "" "The following example uses the :ref:`dir_fd ` parameter of the :func:" "`os.open` function to open a file relative to a given directory::" @@ -2118,7 +2120,7 @@ msgstr "" "L'exemple suivant utilise le paramètre :ref:`dir_fd ` de la " "fonction :func:`os.open` pour ouvrir un fichier relatif au dossier courant ::" -#: ../Doc/library/functions.rst:1137 +#: ../Doc/library/functions.rst:1136 msgid "" "The type of :term:`file object` returned by the :func:`open` function " "depends on the mode. When :func:`open` is used to open a file in a text " @@ -2144,7 +2146,7 @@ msgstr "" "désactivé, le flux brut, une classe fille de :class:`io.RawIOBase`, :class:" "`io.FileIO` est donnée." -#: ../Doc/library/functions.rst:1158 +#: ../Doc/library/functions.rst:1157 msgid "" "See also the file handling modules, such as, :mod:`fileinput`, :mod:`io` " "(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:" @@ -2154,21 +2156,21 @@ msgstr "" "`fileinput`, :mod:`io` (où :func:`open` est déclarée), :mod:`os`, :mod:`os." "path`, :mod:`tmpfile`, et :mod:`shutil`." -#: ../Doc/library/functions.rst:1165 +#: ../Doc/library/functions.rst:1164 msgid "The *opener* parameter was added." msgstr "Le paramètre *opener* a été ajouté." -#: ../Doc/library/functions.rst:1166 +#: ../Doc/library/functions.rst:1165 msgid "The ``'x'`` mode was added." msgstr "Le mode ``'x'`` a été ajouté." -#: ../Doc/library/functions.rst:1167 +#: ../Doc/library/functions.rst:1166 msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." msgstr "" ":exc:`IOError` était normalement levée, elle est maintenant un alias de :exc:" "`OSError`." -#: ../Doc/library/functions.rst:1168 +#: ../Doc/library/functions.rst:1167 msgid "" ":exc:`FileExistsError` is now raised if the file opened in exclusive " "creation mode (``'x'``) already exists." @@ -2176,15 +2178,15 @@ msgstr "" ":exc:`FileExistsError` est maintenant levée si le fichier ouvert en mode " "création exclusive (``'x'``) existe déjà." -#: ../Doc/library/functions.rst:1174 +#: ../Doc/library/functions.rst:1173 msgid "The file is now non-inheritable." msgstr "Il n'est plus possible d'hériter de *file*." -#: ../Doc/library/functions.rst:1178 +#: ../Doc/library/functions.rst:1177 msgid "The ``'U'`` mode." msgstr "Le mode ``'U'``." -#: ../Doc/library/functions.rst:1183 +#: ../Doc/library/functions.rst:1182 msgid "" "If the system call is interrupted and the signal handler does not raise an " "exception, the function now retries the system call instead of raising an :" @@ -2194,15 +2196,15 @@ msgstr "" "aucune exception, la fonction réessaye l'appel système au lieu de lever une :" "exc:`InterruptedError` (voir la :pep:`475` à propos du raisonnement)." -#: ../Doc/library/functions.rst:1186 +#: ../Doc/library/functions.rst:1185 msgid "The ``'namereplace'`` error handler was added." msgstr "Le gestionnaire d'erreurs ``'namereplace'`` a été ajouté." -#: ../Doc/library/functions.rst:1191 +#: ../Doc/library/functions.rst:1190 msgid "Support added to accept objects implementing :class:`os.PathLike`." msgstr "Ajout du support des objets implémentant :class:`os.PathLike`." -#: ../Doc/library/functions.rst:1192 +#: ../Doc/library/functions.rst:1191 msgid "" "On Windows, opening a console buffer may return a subclass of :class:`io." "RawIOBase` other than :class:`io.FileIO`." @@ -2210,7 +2212,7 @@ msgstr "" "Sous Windows, ouvrir un *buffer* du terminal peut renvoyer une sous-classe " "de :class:`io.RawIOBase` autre que :class:`io.FileIO`." -#: ../Doc/library/functions.rst:1197 +#: ../Doc/library/functions.rst:1196 msgid "" "Given a string representing one Unicode character, return an integer " "representing the Unicode code point of that character. For example, " @@ -2222,7 +2224,7 @@ msgstr "" "nombre entier ``97`` et ``ord('€')`` (symbole Euro) renvoie ``8364``. Il " "s'agit de l'inverse de :func:`chr`." -#: ../Doc/library/functions.rst:1205 +#: ../Doc/library/functions.rst:1204 msgid "" "Return *x* to the power *y*; if *z* is present, return *x* to the power *y*, " "modulo *z* (computed more efficiently than ``pow(x, y) % z``). The two-" @@ -2233,7 +2235,7 @@ msgstr "" "modulo *z* (calculé de manière plus efficiente que ``pow(x, y) % z``). La " "forme à deux arguments est équivalent à ``x**y``." -#: ../Doc/library/functions.rst:1209 +#: ../Doc/library/functions.rst:1208 msgid "" "The arguments must have numeric types. With mixed operand types, the " "coercion rules for binary arithmetic operators apply. For :class:`int` " @@ -2254,7 +2256,7 @@ msgstr "" "argument est négatif, le troisième doit être omis. Si *z* est fourni, *x* et " "*y* doivent être des entiers et *y* positif." -#: ../Doc/library/functions.rst:1221 +#: ../Doc/library/functions.rst:1220 msgid "" "Print *objects* to the text stream *file*, separated by *sep* and followed " "by *end*. *sep*, *end*, *file* and *flush*, if present, must be given as " @@ -2264,7 +2266,7 @@ msgstr "" "*end*. *sep*, *end*, *file*, et *flush*, s'ils sont présents, doivent être " "données par mot clef." -#: ../Doc/library/functions.rst:1225 +#: ../Doc/library/functions.rst:1224 msgid "" "All non-keyword arguments are converted to strings like :func:`str` does and " "written to the stream, separated by *sep* and followed by *end*. Both *sep* " @@ -2278,7 +2280,7 @@ msgstr "" "les valeurs par défaut. Si aucun *objects* n'est donné :func:`print` écris " "seulement *end*." -#: ../Doc/library/functions.rst:1231 +#: ../Doc/library/functions.rst:1230 msgid "" "The *file* argument must be an object with a ``write(string)`` method; if it " "is not present or ``None``, :data:`sys.stdout` will be used. Since printed " @@ -2291,7 +2293,7 @@ msgstr "" "peut pas être utilisé avec des fichiers ouverts en mode binaire. Pour ceux " "ci utilisez plutôt ``file.write(...)``." -#: ../Doc/library/functions.rst:1236 +#: ../Doc/library/functions.rst:1235 msgid "" "Whether output is buffered is usually determined by *file*, but if the " "*flush* keyword argument is true, the stream is forcibly flushed." @@ -2299,15 +2301,15 @@ msgstr "" "Que la sortie utilise un *buffer* ou non est souvent décidé par *file*, mais " "si l'argument *flush* est vrai, le tampon du flux est vidé explicitement." -#: ../Doc/library/functions.rst:1239 +#: ../Doc/library/functions.rst:1238 msgid "Added the *flush* keyword argument." msgstr "Ajout de l'argument par mot clef *flush*." -#: ../Doc/library/functions.rst:1245 +#: ../Doc/library/functions.rst:1244 msgid "Return a property attribute." msgstr "Donne un attribut propriété." -#: ../Doc/library/functions.rst:1247 +#: ../Doc/library/functions.rst:1246 msgid "" "*fget* is a function for getting an attribute value. *fset* is a function " "for setting an attribute value. *fdel* is a function for deleting an " @@ -2318,11 +2320,11 @@ msgstr "" "supprimer la valeur d'un attribut, et *doc* créé une *docstring* pour " "l'attribut." -#: ../Doc/library/functions.rst:1251 +#: ../Doc/library/functions.rst:1250 msgid "A typical use is to define a managed attribute ``x``::" msgstr "Une utilisation typique : définir un attribut managé ``x`` : ::" -#: ../Doc/library/functions.rst:1268 +#: ../Doc/library/functions.rst:1267 msgid "" "If *c* is an instance of *C*, ``c.x`` will invoke the getter, ``c.x = " "value`` will invoke the setter and ``del c.x`` the deleter." @@ -2330,7 +2332,7 @@ msgstr "" "Si *c* est une instance de *C*, ``c.x`` appellera le *getter*, ``c.x = " "value`` invoquera le *setter*, et ``del x`` le *deleter*." -#: ../Doc/library/functions.rst:1271 +#: ../Doc/library/functions.rst:1270 msgid "" "If given, *doc* will be the docstring of the property attribute. Otherwise, " "the property will copy *fget*'s docstring (if it exists). This makes it " @@ -2342,7 +2344,7 @@ msgstr "" "création de propriétés en lecture seule en utilisant simplement :func:" "`property` comme un :term:`decorator` : ::" -#: ../Doc/library/functions.rst:1284 +#: ../Doc/library/functions.rst:1283 msgid "" "The ``@property`` decorator turns the :meth:`voltage` method into a \"getter" "\" for a read-only attribute with the same name, and it sets the docstring " @@ -2352,7 +2354,7 @@ msgstr "" "*getter* d'un attribut du même nom, et donne *\"Get the current voltage\"* " "comme *docstring* de *voltage*." -#: ../Doc/library/functions.rst:1288 +#: ../Doc/library/functions.rst:1287 msgid "" "A property object has :attr:`~property.getter`, :attr:`~property.setter`, " "and :attr:`~property.deleter` methods usable as decorators that create a " @@ -2364,7 +2366,7 @@ msgstr "" "une copie de la propriété avec les accesseurs correspondants définis par la " "fonction de décoration. C'est plus clair avec un exemple : ::" -#: ../Doc/library/functions.rst:1310 +#: ../Doc/library/functions.rst:1309 msgid "" "This code is exactly equivalent to the first example. Be sure to give the " "additional functions the same name as the original property (``x`` in this " @@ -2374,7 +2376,7 @@ msgstr "" "donner aux fonctions additionnelles le même nom que la propriété (``x`` dans " "ce cas.)" -#: ../Doc/library/functions.rst:1314 +#: ../Doc/library/functions.rst:1313 msgid "" "The returned property object also has the attributes ``fget``, ``fset``, and " "``fdel`` corresponding to the constructor arguments." @@ -2382,11 +2384,11 @@ msgstr "" "L'objet propriété donné à aussi les attributs ``fget``, ``fset`` et ``fdel`` " "correspondant correspondants aux arguments du constructeur." -#: ../Doc/library/functions.rst:1317 +#: ../Doc/library/functions.rst:1316 msgid "The docstrings of property objects are now writeable." msgstr "Les *docstrings* des objets propriété peuvent maintenant être écrits." -#: ../Doc/library/functions.rst:1326 +#: ../Doc/library/functions.rst:1325 msgid "" "Rather than being a function, :class:`range` is actually an immutable " "sequence type, as documented in :ref:`typesseq-range` and :ref:`typesseq`." @@ -2394,7 +2396,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`range` est en fait une séquence " "immuable, tel que documenté dans :ref:`typesseq-range` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1332 +#: ../Doc/library/functions.rst:1331 msgid "" "Return a string containing a printable representation of an object. For " "many types, this function makes an attempt to return a string that would " @@ -2412,7 +2414,7 @@ msgstr "" "l'objet. Une classe peut contrôler ce que cette fonction donne pour ses " "instances en définissant une méthode :meth:`__repr__`." -#: ../Doc/library/functions.rst:1343 +#: ../Doc/library/functions.rst:1342 msgid "" "Return a reverse :term:`iterator`. *seq* must be an object which has a :" "meth:`__reversed__` method or supports the sequence protocol (the :meth:" @@ -2424,7 +2426,7 @@ msgstr "" "meth:`__len__` et la méthode :meth:`__getitem__` avec des arguments entiers " "commençant à zéro)." -#: ../Doc/library/functions.rst:1351 +#: ../Doc/library/functions.rst:1350 msgid "" "Return *number* rounded to *ndigits* precision after the decimal point. If " "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " @@ -2434,7 +2436,7 @@ msgstr "" "virgule. Si *ndigits* est omis (ou est ``None``), l'entier le plus proche " "est renvoyé." -#: ../Doc/library/functions.rst:1355 +#: ../Doc/library/functions.rst:1354 msgid "" "For the built-in types supporting :func:`round`, values are rounded to the " "closest multiple of 10 to the power minus *ndigits*; if two multiples are " @@ -2452,7 +2454,7 @@ msgstr "" "zéro, ou négatif). La valeur renvoyée est un entier si *ndigits* n'est pas " "donné, (ou est ``None``). Sinon elle est du même type que *number*." -#: ../Doc/library/functions.rst:1364 +#: ../Doc/library/functions.rst:1363 msgid "" "For a general Python object ``number``, ``round`` delegates to ``number." "__round__``." @@ -2460,7 +2462,7 @@ msgstr "" "Pour tout autre objet Python ``number``, ``round`` délègue à ``number." "__round__``." -#: ../Doc/library/functions.rst:1369 +#: ../Doc/library/functions.rst:1368 msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " "``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is " @@ -2474,7 +2476,7 @@ msgstr "" "de décimaux ne peuvent pas être représentés exactement en nombre a virgule " "flottante. Voir :ref:`tut-fp-issues` pour plus d'information." -#: ../Doc/library/functions.rst:1380 +#: ../Doc/library/functions.rst:1379 msgid "" "Return a new :class:`set` object, optionally with elements taken from " "*iterable*. ``set`` is a built-in class. See :class:`set` and :ref:`types-" @@ -2484,7 +2486,7 @@ msgstr "" "d'*iterable*. ``set`` est une classe native. Voir :class:`set` et :ref:" "`types-set` pour la documentation de cette classe." -#: ../Doc/library/functions.rst:1384 +#: ../Doc/library/functions.rst:1383 msgid "" "For other containers see the built-in :class:`frozenset`, :class:`list`, :" "class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections` " @@ -2494,7 +2496,7 @@ msgstr "" "`list`, :class:`tuple`, et :class:`dict`, ainsi que le module :mod:" "`collections`." -#: ../Doc/library/functions.rst:1391 +#: ../Doc/library/functions.rst:1390 msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " "string and an arbitrary value. The string may name an existing attribute or " @@ -2508,7 +2510,7 @@ msgstr "" "si l'objet l'autorise. Par exemple, ``setattr(x, 'foobar', 123)`` équivaut à " "``x.foobar = 123``." -#: ../Doc/library/functions.rst:1403 +#: ../Doc/library/functions.rst:1402 msgid "" "Return a :term:`slice` object representing the set of indices specified by " "``range(start, stop, step)``. The *start* and *step* arguments default to " @@ -2532,16 +2534,16 @@ msgstr "" "étendue. Par exemple ``a[start:stop:step]`` ou ``a[start:stop, i]``. Voir :" "func:`itertools.islice` pour une version alternative donnant un itérateur." -#: ../Doc/library/functions.rst:1416 +#: ../Doc/library/functions.rst:1415 msgid "Return a new sorted list from the items in *iterable*." msgstr "Donne une nouvelle liste triée depuis les éléments d'*iterable*." -#: ../Doc/library/functions.rst:1418 +#: ../Doc/library/functions.rst:1417 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "A deux arguments optionnels qui doivent être fournis par mot clef." -#: ../Doc/library/functions.rst:1420 +#: ../Doc/library/functions.rst:1419 msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each element in *iterable* (for example, ``key=str." @@ -2552,7 +2554,7 @@ msgstr "" "lower``). La valeur par défaut est ``None`` (compare les éléments " "directement)." -#: ../Doc/library/functions.rst:1424 +#: ../Doc/library/functions.rst:1423 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -2560,7 +2562,7 @@ msgstr "" "*reverse*, une valeur booléenne. Si elle est ``True``, la liste d'éléments " "est triée comme si toutes les comparaisons étaient inversées." -#: ../Doc/library/functions.rst:1427 +#: ../Doc/library/functions.rst:1426 msgid "" "Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " "*key* function." @@ -2568,7 +2570,7 @@ msgstr "" "Utilisez :func:`functools.cmp_to_key` pour convertir l'ancienne notation " "*cmp* en une fonction *key*." -#: ../Doc/library/functions.rst:1430 +#: ../Doc/library/functions.rst:1429 msgid "" "The built-in :func:`sorted` function is guaranteed to be stable. A sort is " "stable if it guarantees not to change the relative order of elements that " @@ -2580,17 +2582,17 @@ msgstr "" "eux. C'est utile pour trier en plusieurs passes, par exemple par département " "puis par salaire)." -#: ../Doc/library/functions.rst:1435 +#: ../Doc/library/functions.rst:1434 msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" "Pour des exemples de tris et un bref tutoriel, consultez :ref:`sortinghowto`." -#: ../Doc/library/functions.rst:1439 +#: ../Doc/library/functions.rst:1438 msgid "Transform a method into a static method." msgstr "Transforme une méthode en méthode statique." -#: ../Doc/library/functions.rst:1441 +#: ../Doc/library/functions.rst:1440 msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" @@ -2598,24 +2600,26 @@ msgstr "" "Une méthode statique ne reçoit pas de premier argument implicitement. Voilà " "comment déclarer une méthode statique : ::" -#: ../Doc/library/functions.rst:1448 +#: ../Doc/library/functions.rst:1447 +#, fuzzy msgid "" -"The ``@staticmethod`` form is a function :term:`decorator` -- see the " -"description of function definitions in :ref:`function` for details." +"The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:" +"`function` for details." msgstr "" "La forme ``@staticmethod`` est un :term:`decorator` de fonction. Voir la " "description des définitions de fonction dans :ref:`function` pour plus de " "détails." -#: ../Doc/library/functions.rst:1451 +#: ../Doc/library/functions.rst:1450 +#, fuzzy msgid "" -"It can be called either on the class (such as ``C.f()``) or on an instance " -"(such as ``C().f()``). The instance is ignored except for its class." +"A static method can be called either on the class (such as ``C.f()``) or on " +"an instance (such as ``C().f()``)." msgstr "" "Elle peut être appelée soit sur une classe (tel que ``C.f()``) ou sur une " "instance (tel que ``C().f()``). L'instance est ignorée, sauf pour sa classe." -#: ../Doc/library/functions.rst:1454 +#: ../Doc/library/functions.rst:1453 msgid "" "Static methods in Python are similar to those found in Java or C++. Also " "see :func:`classmethod` for a variant that is useful for creating alternate " @@ -2625,7 +2629,7 @@ msgstr "" "ou en C++. Consultez :func:`classmethod` pour une variante utile pour créer " "des constructeurs alternatifs." -#: ../Doc/library/functions.rst:1458 +#: ../Doc/library/functions.rst:1457 msgid "" "Like all decorators, it is also possible to call ``staticmethod`` as a " "regular function and do something with its result. This is needed in some " @@ -2639,22 +2643,21 @@ msgstr "" "depuis le corps d'une classe, et souhaiteriez éviter sa transformation en " "méthode d'instance. Pour ces cas, faites comme suit ::" -#: ../Doc/library/functions.rst:1467 -msgid "" -"For more information on static methods, consult the documentation on the " -"standard type hierarchy in :ref:`types`." +#: ../Doc/library/functions.rst:1466 +#, fuzzy +msgid "For more information on static methods, see :ref:`types`." msgstr "" "Pour plus d'informations sur les méthodes statiques, consultez la " "documentation de la hiérarchie des types standards dans :ref:`types`." -#: ../Doc/library/functions.rst:1479 +#: ../Doc/library/functions.rst:1477 msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" "Donne une version sous forme de :class:`str` d'*object*. Voir :func:`str` " "pour plus de détails." -#: ../Doc/library/functions.rst:1481 +#: ../Doc/library/functions.rst:1479 msgid "" "``str`` is the built-in string :term:`class`. For general information about " "strings, see :ref:`textseq`." @@ -2662,7 +2665,7 @@ msgstr "" "``str`` est la :term:`class` native des chaînes de caractères. Pour des " "informations générales à propos des chaînes, consultez :ref:`textseq`." -#: ../Doc/library/functions.rst:1487 +#: ../Doc/library/functions.rst:1485 msgid "" "Sums *start* and the items of an *iterable* from left to right and returns " "the total. *start* defaults to ``0``. The *iterable*'s items are normally " @@ -2673,7 +2676,7 @@ msgstr "" "sont normalement des nombres, et la valeur de *start* ne peut pas être une " "chaîne." -#: ../Doc/library/functions.rst:1491 +#: ../Doc/library/functions.rst:1489 msgid "" "For some use cases, there are good alternatives to :func:`sum`. The " "preferred, fast way to concatenate a sequence of strings is by calling ``''." @@ -2687,7 +2690,7 @@ msgstr "" "meilleure précision, voir :func:`math.fsum`. Pour concaténer une série " "d'itérables, utilisez plutôt :func:`itertools.chain`." -#: ../Doc/library/functions.rst:1499 +#: ../Doc/library/functions.rst:1497 msgid "" "Return a proxy object that delegates method calls to a parent or sibling " "class of *type*. This is useful for accessing inherited methods that have " @@ -2700,7 +2703,7 @@ msgstr "" "recherche est le même que celui utilisé par :func:`getattr` sauf que *type* " "lui même est sauté." -#: ../Doc/library/functions.rst:1504 +#: ../Doc/library/functions.rst:1502 msgid "" "The :attr:`~class.__mro__` attribute of the *type* lists the method " "resolution search order used by both :func:`getattr` and :func:`super`. The " @@ -2712,7 +2715,7 @@ msgstr "" "L'attribut est dynamique et peut changer lorsque la hiérarchie d'héritage " "est modifiée." -#: ../Doc/library/functions.rst:1509 +#: ../Doc/library/functions.rst:1507 msgid "" "If the second argument is omitted, the super object returned is unbound. If " "the second argument is an object, ``isinstance(obj, type)`` must be true. " @@ -2724,7 +2727,7 @@ msgstr "" "le second argument est un type, ``issubclass(type2, type)`` doit être vrai " "(c'est utile pour les méthodes de classe)." -#: ../Doc/library/functions.rst:1514 +#: ../Doc/library/functions.rst:1512 msgid "" "There are two typical use cases for *super*. In a class hierarchy with " "single inheritance, *super* can be used to refer to parent classes without " @@ -2737,7 +2740,7 @@ msgstr "" "maintenable. Cet usage se rapproche de l'usage de *super* dans d'autres " "langages de programmation." -#: ../Doc/library/functions.rst:1519 +#: ../Doc/library/functions.rst:1517 msgid "" "The second use case is to support cooperative multiple inheritance in a " "dynamic execution environment. This use case is unique to Python and is not " @@ -2760,12 +2763,12 @@ msgstr "" "changements dans la hiérarchie, et parce que l'ordre peut inclure des " "classes sœurs inconnues avant l'exécution)." -#: ../Doc/library/functions.rst:1529 +#: ../Doc/library/functions.rst:1527 msgid "For both use cases, a typical superclass call looks like this::" msgstr "" "Dans tous les cas, un appel typique à une classe parente ressemble à : ::" -#: ../Doc/library/functions.rst:1536 +#: ../Doc/library/functions.rst:1534 msgid "" "Note that :func:`super` is implemented as part of the binding process for " "explicit dotted attribute lookups such as ``super().__getitem__(name)``. It " @@ -2782,7 +2785,7 @@ msgstr "" "n'est pas défini pour les recherches implicites via des instructions ou des " "opérateurs tel que ``super()[name]``." -#: ../Doc/library/functions.rst:1543 +#: ../Doc/library/functions.rst:1541 msgid "" "Also note that, aside from the zero argument form, :func:`super` is not " "limited to use inside methods. The two argument form specifies the " @@ -2799,7 +2802,7 @@ msgstr "" "propos de la classe en cours de définition, ainsi qu'accéder à l'instance " "courante pour les méthodes ordinaires." -#: ../Doc/library/functions.rst:1550 +#: ../Doc/library/functions.rst:1548 msgid "" "For practical suggestions on how to design cooperative classes using :func:" "`super`, see `guide to using super() `_." -#: ../Doc/library/functions.rst:1559 +#: ../Doc/library/functions.rst:1557 msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." @@ -2817,7 +2820,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`tuple` est en fait un type de séquence " "immuable, tel que documenté dans :ref:`typesseq-tuple` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1568 +#: ../Doc/library/functions.rst:1566 msgid "" "With one argument, return the type of an *object*. The return value is a " "type object and generally the same object as returned by :attr:`object." @@ -2827,7 +2830,7 @@ msgstr "" "type et généralement la même que la valeur de l'attribut :attr:`object." "__class__ `." -#: ../Doc/library/functions.rst:1572 +#: ../Doc/library/functions.rst:1570 msgid "" "The :func:`isinstance` built-in function is recommended for testing the type " "of an object, because it takes subclasses into account." @@ -2835,7 +2838,7 @@ msgstr "" "La fonction native :func:`isinstance` est recommandée pour tester le type " "d'un objet car elle prend en compte l'héritage." -#: ../Doc/library/functions.rst:1576 +#: ../Doc/library/functions.rst:1574 msgid "" "With three arguments, return a new type object. This is essentially a " "dynamic form of the :keyword:`class` statement. The *name* string is the " @@ -2856,11 +2859,11 @@ msgstr "" "exemple, les deux instructions suivantes créent deux instances identiques " "de :class:`type`." -#: ../Doc/library/functions.rst:1590 +#: ../Doc/library/functions.rst:1588 msgid "See also :ref:`bltin-type-objects`." msgstr "Voir aussi :ref:`bltin-type-objects`." -#: ../Doc/library/functions.rst:1592 +#: ../Doc/library/functions.rst:1590 msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." @@ -2869,7 +2872,7 @@ msgstr "" "ne devraient plus utiliser la forme à un argument pour récupérer le type " "d'un objet." -#: ../Doc/library/functions.rst:1598 +#: ../Doc/library/functions.rst:1596 msgid "" "Return the :attr:`~object.__dict__` attribute for a module, class, instance, " "or any other object with a :attr:`~object.__dict__` attribute." @@ -2878,7 +2881,7 @@ msgstr "" "instance ou de n'importe quel objet avec un attribut :attr:`~object." "__dict__`." -#: ../Doc/library/functions.rst:1601 +#: ../Doc/library/functions.rst:1599 msgid "" "Objects such as modules and instances have an updateable :attr:`~object." "__dict__` attribute; however, other objects may have write restrictions on " @@ -2891,7 +2894,7 @@ msgstr "" "exemple, les classes utilisent un :class:`types.MappingProxyType` pour " "éviter les modifications directes du dictionnaire)." -#: ../Doc/library/functions.rst:1606 +#: ../Doc/library/functions.rst:1604 msgid "" "Without an argument, :func:`vars` acts like :func:`locals`. Note, the " "locals dictionary is only useful for reads since updates to the locals " @@ -2901,11 +2904,11 @@ msgstr "" "dictionnaire des variables locales n'est utile qu'en lecture, car ses " "écritures sont ignorées." -#: ../Doc/library/functions.rst:1613 +#: ../Doc/library/functions.rst:1611 msgid "Make an iterator that aggregates elements from each of the iterables." msgstr "Construit un itérateur agrégeant les éléments de tous les itérables." -#: ../Doc/library/functions.rst:1615 +#: ../Doc/library/functions.rst:1613 msgid "" "Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th " "element from each of the argument sequences or iterables. The iterator " @@ -2919,7 +2922,7 @@ msgstr "" "itérable, elle donne un itérateur sur des *tuples* d'un élément. Sans " "arguments, elle donne un itérateur vide. Équivalent à : ::" -#: ../Doc/library/functions.rst:1634 +#: ../Doc/library/functions.rst:1632 msgid "" "The left-to-right evaluation order of the iterables is guaranteed. This " "makes possible an idiom for clustering a data series into n-length groups " @@ -2933,7 +2936,7 @@ msgstr "" "que le tuple obtenu contient le résultat de ``n`` appels à l'itérateur. Cela " "a pour effet de diviser la séquence en morceaux de taille *n*." -#: ../Doc/library/functions.rst:1640 +#: ../Doc/library/functions.rst:1638 msgid "" ":func:`zip` should only be used with unequal length inputs when you don't " "care about trailing, unmatched values from the longer iterables. If those " @@ -2944,7 +2947,7 @@ msgstr "" "peuvent être ignorées. Si c'est valeurs sont importantes, utilisez plutôt :" "func:`itertools.zip_longest`." -#: ../Doc/library/functions.rst:1644 +#: ../Doc/library/functions.rst:1642 msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" @@ -2952,7 +2955,7 @@ msgstr "" ":func:`zip` peut être utilisée conjointement avec l'opérateur ``*`` pour " "dézipper une liste : ::" -#: ../Doc/library/functions.rst:1665 +#: ../Doc/library/functions.rst:1663 msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." @@ -2960,7 +2963,7 @@ msgstr "" "C'est une fonction avancée qui n'est pas fréquemment nécessaire, " "contrairement à :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1668 +#: ../Doc/library/functions.rst:1666 msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " @@ -2980,7 +2983,7 @@ msgstr "" "trouver l'implémentation par défaut. L'usage direct de :func:`__import__` " "est aussi déconseillé en faveur de :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1677 +#: ../Doc/library/functions.rst:1675 msgid "" "The function imports the module *name*, potentially using the given " "*globals* and *locals* to determine how to interpret the name in a package " @@ -2996,7 +2999,7 @@ msgstr "" "l'argument *locals* et n'utilise *globals* que pour déterminer le contexte " "du paquet de l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1684 +#: ../Doc/library/functions.rst:1682 msgid "" "*level* specifies whether to use absolute or relative imports. ``0`` (the " "default) means only perform absolute imports. Positive values for *level* " @@ -3009,7 +3012,7 @@ msgstr "" "le nombre de dossiers parents relativement au dossier du module appelant :" "func:`__import__` (voir la :pep:`328`)." -#: ../Doc/library/functions.rst:1690 +#: ../Doc/library/functions.rst:1688 msgid "" "When the *name* variable is of the form ``package.module``, normally, the " "top-level package (the name up till the first dot) is returned, *not* the " @@ -3021,7 +3024,7 @@ msgstr "" "le module nommé par *name*. Cependant, lorsqu'un argument *fromlist* est " "fourni, le module nommé par *name* est donné." -#: ../Doc/library/functions.rst:1695 +#: ../Doc/library/functions.rst:1693 msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" @@ -3029,11 +3032,11 @@ msgstr "" "Par exemple, l'instruction ``import spam`` donne un code intermédiaire " "(*bytecode* en anglais) ressemblant au code suivant : ::" -#: ../Doc/library/functions.rst:1700 +#: ../Doc/library/functions.rst:1698 msgid "The statement ``import spam.ham`` results in this call::" msgstr "L'instruction ``import ham.ham`` appelle : ::" -#: ../Doc/library/functions.rst:1704 +#: ../Doc/library/functions.rst:1702 msgid "" "Note how :func:`__import__` returns the toplevel module here because this is " "the object that is bound to a name by the :keyword:`import` statement." @@ -3041,7 +3044,7 @@ msgstr "" "Notez comment :func:`__import__` donne le module le plus haut ici parce que " "c'est l'objet lié à un nom par l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1707 +#: ../Doc/library/functions.rst:1705 msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" @@ -3049,7 +3052,7 @@ msgstr "" "En revanche, l'instruction ``from spam.ham import eggs, saucage as saus`` " "donne : ::" -#: ../Doc/library/functions.rst:1714 +#: ../Doc/library/functions.rst:1712 msgid "" "Here, the ``spam.ham`` module is returned from :func:`__import__`. From " "this object, the names to import are retrieved and assigned to their " @@ -3058,7 +3061,7 @@ msgstr "" "Ici le module ``spam.ham`` est donné par :func:`__import__`. De cet objet, " "les noms à importer sont récupérés et assignés à leurs noms respectifs." -#: ../Doc/library/functions.rst:1718 +#: ../Doc/library/functions.rst:1716 msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." @@ -3066,7 +3069,7 @@ msgstr "" "Si vous voulez simplement importer un module (potentiellement dans un " "paquet) par son nom, utilisez :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1721 +#: ../Doc/library/functions.rst:1719 msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." @@ -3074,11 +3077,11 @@ msgstr "" "Des valeurs négatives pour *level* ne sont plus gérées (ce qui change la " "valeur par défaut pour 0)." -#: ../Doc/library/functions.rst:1727 +#: ../Doc/library/functions.rst:1725 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/functions.rst:1728 +#: ../Doc/library/functions.rst:1726 msgid "" "Note that the parser only accepts the Unix-style end of line convention. If " "you are reading the code from a file, make sure to use newline conversion " diff --git a/library/idle.po b/library/idle.po index 69bc97a86..fcb14d06d 100644 --- a/library/idle.po +++ b/library/idle.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -719,7 +719,7 @@ msgstr "" #: ../Doc/library/idle.rst:359 msgid "" -"The Shell window also has an output squeezing facility explained in the the " +"The Shell window also has an output squeezing facility explained in the " "*Python Shell window* subsection below." msgstr "" @@ -1266,18 +1266,18 @@ msgstr "" #: ../Doc/library/idle.rst:719 msgid "" "A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) " -"in the the BMP (Basic Multilingual Plane) subset of Unicode. Which " -"characters are displayed with a proper glyph and which with a replacement " -"box depends on the operating system and installed fonts. Tab characters " -"cause the following text to begin after the next tab stop. (They occur every " -"8 'characters'). Newline characters cause following text to appear on a new " -"line. Other control characters are ignored or displayed as a space, box, or " -"something else, depending on the operating system and font. (Moving the text " -"cursor through such output with arrow keys may exhibit some surprising " +"in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters " +"are displayed with a proper glyph and which with a replacement box depends " +"on the operating system and installed fonts. Tab characters cause the " +"following text to begin after the next tab stop. (They occur every 8 " +"'characters'). Newline characters cause following text to appear on a new " +"line. Other control characters are ignored or displayed as a space, box, or " +"something else, depending on the operating system and font. (Moving the " +"text cursor through such output with arrow keys may exhibit some surprising " "spacing behavior.)" msgstr "" -#: ../Doc/library/idle.rst:741 +#: ../Doc/library/idle.rst:739 msgid "" "The ``repr`` function is used for interactive echo of expression values. It " "returns an altered version of the input string in which control codes, some " @@ -1286,13 +1286,13 @@ msgid "" "regardless of how they are displayed." msgstr "" -#: ../Doc/library/idle.rst:747 +#: ../Doc/library/idle.rst:745 msgid "" "Normal and error output are generally kept separate (on separate lines) from " "code input and each other. They each get different highlight colors." msgstr "" -#: ../Doc/library/idle.rst:750 +#: ../Doc/library/idle.rst:748 msgid "" "For SyntaxError tracebacks, the normal '^' marking where the error was " "detected is replaced by coloring the text with an error highlight. When code " @@ -1301,7 +1301,7 @@ msgid "" "opened if necessary." msgstr "" -#: ../Doc/library/idle.rst:756 +#: ../Doc/library/idle.rst:754 msgid "" "Shell has a special facility for squeezing output lines down to a 'Squeezed " "text' label. This is done automatically for output over N lines (N = 50 by " @@ -1310,18 +1310,18 @@ msgid "" "on the output. This can be useful lines long enough to slow down scrolling." msgstr "" -#: ../Doc/library/idle.rst:764 +#: ../Doc/library/idle.rst:762 msgid "" "Squeezed output is expanded in place by double-clicking the label. It can " "also be sent to the clipboard or a separate view window by right-clicking " "the label." msgstr "" -#: ../Doc/library/idle.rst:769 +#: ../Doc/library/idle.rst:767 msgid "Developing tkinter applications" msgstr "" -#: ../Doc/library/idle.rst:771 +#: ../Doc/library/idle.rst:769 msgid "" "IDLE is intentionally different from standard Python in order to facilitate " "development of tkinter programs. Enter ``import tkinter as tk; root = tk." @@ -1333,7 +1333,7 @@ msgid "" "changes in standard Python until one enters ``root.update()``." msgstr "" -#: ../Doc/library/idle.rst:780 +#: ../Doc/library/idle.rst:778 msgid "" "Most tkinter programs run ``root.mainloop()``, which usually does not return " "until the tk app is destroyed. If the program is run with ``python -i`` or " @@ -1341,7 +1341,7 @@ msgid "" "``mainloop()`` returns, at which time there is nothing left to interact with." msgstr "" -#: ../Doc/library/idle.rst:786 +#: ../Doc/library/idle.rst:784 msgid "" "When running a tkinter program from an IDLE editor, one can comment out the " "mainloop call. One then gets a shell prompt immediately and can interact " @@ -1349,11 +1349,11 @@ msgid "" "mainloop call when running in standard Python." msgstr "" -#: ../Doc/library/idle.rst:792 +#: ../Doc/library/idle.rst:790 msgid "Running without a subprocess" msgstr "" -#: ../Doc/library/idle.rst:794 +#: ../Doc/library/idle.rst:792 msgid "" "By default, IDLE executes user code in a separate subprocess via a socket, " "which uses the internal loopback interface. This connection is not " @@ -1361,7 +1361,7 @@ msgid "" "firewall software complains anyway, you can ignore it." msgstr "" -#: ../Doc/library/idle.rst:799 +#: ../Doc/library/idle.rst:797 msgid "" "If the attempt to make the socket connection fails, Idle will notify you. " "Such failures are sometimes transient, but if persistent, the problem may be " @@ -1370,7 +1370,7 @@ msgid "" "command line switch." msgstr "" -#: ../Doc/library/idle.rst:805 +#: ../Doc/library/idle.rst:803 msgid "" "If IDLE is started with the -n command line switch it will run in a single " "process and will not create the subprocess which runs the RPC Python " @@ -1384,15 +1384,15 @@ msgid "" "at all possible." msgstr "" -#: ../Doc/library/idle.rst:820 +#: ../Doc/library/idle.rst:818 msgid "Help and preferences" msgstr "" -#: ../Doc/library/idle.rst:825 +#: ../Doc/library/idle.rst:823 msgid "Help sources" msgstr "" -#: ../Doc/library/idle.rst:827 +#: ../Doc/library/idle.rst:825 msgid "" "Help menu entry \"IDLE Help\" displays a formatted html version of the IDLE " "chapter of the Library Reference. The result, in a read-only tkinter text " @@ -1402,7 +1402,7 @@ msgid "" "the opened box." msgstr "" -#: ../Doc/library/idle.rst:835 +#: ../Doc/library/idle.rst:833 msgid "" "Help menu entry \"Python Docs\" opens the extensive sources of help, " "including tutorials, available at docs.python.org/x.y, where 'x.y' is the " @@ -1410,17 +1410,17 @@ msgid "" "the docs (this may be an installation option), that will be opened instead." msgstr "" -#: ../Doc/library/idle.rst:841 +#: ../Doc/library/idle.rst:839 msgid "" "Selected URLs can be added or removed from the help menu at any time using " "the General tab of the Configure IDLE dialog ." msgstr "" -#: ../Doc/library/idle.rst:847 +#: ../Doc/library/idle.rst:845 msgid "Setting preferences" msgstr "" -#: ../Doc/library/idle.rst:849 +#: ../Doc/library/idle.rst:847 msgid "" "The font preferences, highlighting, keys, and general preferences can be " "changed via Configure IDLE on the Option menu. Non-default user settings are " @@ -1429,7 +1429,7 @@ msgid "" "more of the files in .idlerc." msgstr "" -#: ../Doc/library/idle.rst:855 +#: ../Doc/library/idle.rst:853 msgid "" "On the Font tab, see the text sample for the effect of font face and size on " "multiple characters in multiple languages. Edit the sample to add other " @@ -1438,7 +1438,7 @@ msgid "" "them to the top of the sample and try changing first size and then font." msgstr "" -#: ../Doc/library/idle.rst:862 +#: ../Doc/library/idle.rst:860 msgid "" "On the Highlights and Keys tab, select a built-in or custom color theme and " "key set. To use a newer built-in color theme or key set with older IDLEs, " @@ -1446,22 +1446,22 @@ msgid "" "IDLEs." msgstr "" -#: ../Doc/library/idle.rst:868 +#: ../Doc/library/idle.rst:866 msgid "IDLE on macOS" msgstr "" -#: ../Doc/library/idle.rst:870 +#: ../Doc/library/idle.rst:868 msgid "" "Under System Preferences: Dock, one can set \"Prefer tabs when opening " "documents\" to \"Always\". This setting is not compatible with the tk/" "tkinter GUI framework used by IDLE, and it breaks a few IDLE features." msgstr "" -#: ../Doc/library/idle.rst:875 +#: ../Doc/library/idle.rst:873 msgid "Extensions" msgstr "" -#: ../Doc/library/idle.rst:877 +#: ../Doc/library/idle.rst:875 msgid "" "IDLE contains an extension facility. Preferences for extensions can be " "changed with the Extensions tab of the preferences dialog. See the beginning " diff --git a/library/queue.po b/library/queue.po index f8d7883d0..98979dd88 100644 --- a/library/queue.po +++ b/library/queue.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-03-04 19:04+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -258,11 +258,20 @@ msgstr "" "Si ce n'est pas le cas, elle lève l'exception :exc:`Empty` (*timeout* est " "ignoré dans ce cas)." -#: ../Doc/library/queue.rst:158 ../Doc/library/queue.rst:269 +#: ../Doc/library/queue.rst:155 +msgid "" +"Prior to 3.0 on POSIX systems, and for all versions on Windows, if *block* " +"is true and *timeout* is ``None``, this operation goes into an " +"uninterruptible wait on an underlying lock. This means that no exceptions " +"can occur, and in particular a SIGINT will not trigger a :exc:" +"`KeyboardInterrupt`." +msgstr "" + +#: ../Doc/library/queue.rst:163 ../Doc/library/queue.rst:274 msgid "Equivalent to ``get(False)``." msgstr "Équivalent à ``get(False)``." -#: ../Doc/library/queue.rst:160 +#: ../Doc/library/queue.rst:165 msgid "" "Two methods are offered to support tracking whether enqueued tasks have been " "fully processed by daemon consumer threads." @@ -270,7 +279,7 @@ msgstr "" "Deux méthodes sont proposées afin de savoir si les tâches mises dans la file " "ont été entièrement traitées par les fils d'exécution consommateurs du démon." -#: ../Doc/library/queue.rst:166 +#: ../Doc/library/queue.rst:171 msgid "" "Indicate that a formerly enqueued task is complete. Used by queue consumer " "threads. For each :meth:`get` used to fetch a task, a subsequent call to :" @@ -281,7 +290,7 @@ msgstr "" "`get` effectué afin de récupérer une tâche, un appel ultérieur à :meth:" "`task_done` informe la file que le traitement de la tâche est terminé." -#: ../Doc/library/queue.rst:170 +#: ../Doc/library/queue.rst:175 msgid "" "If a :meth:`join` is currently blocking, it will resume when all items have " "been processed (meaning that a :meth:`task_done` call was received for every " @@ -291,7 +300,7 @@ msgstr "" "éléments auront été traités (ce qui signifie qu'un appel à :meth:`task_done` " "a été effectué pour chaque élément qui a été :meth:`put` dans la file)." -#: ../Doc/library/queue.rst:174 +#: ../Doc/library/queue.rst:179 msgid "" "Raises a :exc:`ValueError` if called more times than there were items placed " "in the queue." @@ -299,13 +308,13 @@ msgstr "" "Lève une exception :exc:`ValueError` si appelée plus de fois qu'il y avait " "d'éléments dans la file." -#: ../Doc/library/queue.rst:180 +#: ../Doc/library/queue.rst:185 msgid "Blocks until all items in the queue have been gotten and processed." msgstr "" "Bloque jusqu'à ce que tous les éléments de la file aient été obtenus et " "traités." -#: ../Doc/library/queue.rst:182 +#: ../Doc/library/queue.rst:187 msgid "" "The count of unfinished tasks goes up whenever an item is added to the " "queue. The count goes down whenever a consumer thread calls :meth:" @@ -319,24 +328,24 @@ msgstr "" "tout le travail à effectuer dessus est terminé. Lorsque le nombre de tâches " "non terminées devient nul, :meth:`join` débloque." -#: ../Doc/library/queue.rst:188 +#: ../Doc/library/queue.rst:193 msgid "Example of how to wait for enqueued tasks to be completed::" msgstr "" "Exemple montrant comment attendre que les tâches mises dans la file soient " "terminées ::" -#: ../Doc/library/queue.rst:219 +#: ../Doc/library/queue.rst:224 msgid "SimpleQueue Objects" msgstr "Objets ``SimpleQueue``" -#: ../Doc/library/queue.rst:221 +#: ../Doc/library/queue.rst:226 msgid "" ":class:`SimpleQueue` objects provide the public methods described below." msgstr "" "Les objets :class:`SimpleQueue` fournissent les méthodes publiques décrites " "ci-dessous." -#: ../Doc/library/queue.rst:225 +#: ../Doc/library/queue.rst:230 msgid "" "Return the approximate size of the queue. Note, qsize() > 0 doesn't " "guarantee that a subsequent get() will not block." @@ -344,7 +353,7 @@ msgstr "" "Renvoie la taille approximative de la file. Notez que ``qsize() > 0`` ne " "garantit pas qu'un ``get()`` ultérieur ne soit pas bloquant." -#: ../Doc/library/queue.rst:231 +#: ../Doc/library/queue.rst:236 msgid "" "Return ``True`` if the queue is empty, ``False`` otherwise. If empty() " "returns ``False`` it doesn't guarantee that a subsequent call to get() will " @@ -354,7 +363,7 @@ msgstr "" "renvoie ``False``, cela ne garantit pas qu'un appel ultérieur à ``get()`` ne " "soit pas bloquant." -#: ../Doc/library/queue.rst:238 +#: ../Doc/library/queue.rst:243 msgid "" "Put *item* into the queue. The method never blocks and always succeeds " "(except for potential low-level errors such as failure to allocate memory). " @@ -366,7 +375,7 @@ msgstr "" "d'allocation de mémoire). Les arguments optionnels *block* et *timeout* sont " "ignorés et fournis uniquement pour la compatibilité avec :meth:`Queue.put`." -#: ../Doc/library/queue.rst:253 +#: ../Doc/library/queue.rst:258 msgid "" "Equivalent to ``put(item)``, provided for compatibility with :meth:`Queue." "put_nowait`." @@ -374,7 +383,7 @@ msgstr "" "Équivalent de `` put(item)``, fourni pour la compatibilité avec :meth:`Queue." "put_nowait`." -#: ../Doc/library/queue.rst:259 +#: ../Doc/library/queue.rst:264 msgid "" "Remove and return an item from the queue. If optional args *block* is true " "and *timeout* is ``None`` (the default), block if necessary until an item is " @@ -394,11 +403,11 @@ msgstr "" "Si ce n'est pas le cas, elle lève l'exception :exc:`Empty` (*timeout* est " "ignoré dans ce cas)." -#: ../Doc/library/queue.rst:276 +#: ../Doc/library/queue.rst:281 msgid "Class :class:`multiprocessing.Queue`" msgstr "Classe :class:`multiprocessing.Queue`" -#: ../Doc/library/queue.rst:275 +#: ../Doc/library/queue.rst:280 msgid "" "A queue class for use in a multi-processing (rather than multi-threading) " "context." @@ -406,7 +415,7 @@ msgstr "" "Une file à utiliser dans un contexte multi-processus (plutôt que *multi-" "thread*)." -#: ../Doc/library/queue.rst:278 +#: ../Doc/library/queue.rst:283 msgid "" ":class:`collections.deque` is an alternative implementation of unbounded " "queues with fast atomic :meth:`~collections.deque.append` and :meth:" diff --git a/library/subprocess.po b/library/subprocess.po index f801b8b44..e3ba522ac 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-02-27 12:00+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -97,11 +97,12 @@ msgstr "" "travers cette interface." #: ../Doc/library/subprocess.rst:55 +#, fuzzy msgid "" "If *capture_output* is true, stdout and stderr will be captured. When used, " "the internal :class:`Popen` object is automatically created with " "``stdout=PIPE`` and ``stderr=PIPE``. The *stdout* and *stderr* arguments may " -"not be used as well." +"not be supplied at the same time as *capture_output*." msgstr "" "Si *capture_output* est vrai, la sortie et l'erreur standard sont capturées. " "Dans ce cas, l'objet interne :class:`Popen est automatiquement créé avec les " @@ -928,7 +929,7 @@ msgstr "" msgid "*encoding* and *errors* were added." msgstr "Ajout d'*encoding* et *errors*." -#: ../Doc/library/subprocess.rst:536 ../Doc/library/subprocess.rst:1103 +#: ../Doc/library/subprocess.rst:536 ../Doc/library/subprocess.rst:1104 msgid "*text* was added as a more readable alias for *universal_newlines*." msgstr "" "*text* a été ajouté comme un alias plus lisible de *universal_newlines*." @@ -1167,7 +1168,7 @@ msgstr "" #: ../Doc/library/subprocess.rst:649 ../Doc/library/subprocess.rst:689 #: ../Doc/library/subprocess.rst:1023 ../Doc/library/subprocess.rst:1051 -#: ../Doc/library/subprocess.rst:1094 +#: ../Doc/library/subprocess.rst:1095 msgid "*timeout* was added." msgstr "Ajout de *timeout*." @@ -1698,20 +1699,25 @@ msgstr "" "son attribut :attr:`~Popen.returncode`." #: ../Doc/library/subprocess.rst:1005 ../Doc/library/subprocess.rst:1033 -#: ../Doc/library/subprocess.rst:1066 -msgid "This is equivalent to::" -msgstr "C’est équivalent à ::" +msgid "" +"Code needing to capture stdout or stderr should use :func:`run` instead:" +msgstr "" -#: ../Doc/library/subprocess.rst:1009 -msgid "(except that the *input* and *check* parameters are not supported)" -msgstr "(excepté que les paramètres *input* et *check* ne sont pas gérés)" +#: ../Doc/library/subprocess.rst:1007 +msgid "run(...).returncode" +msgstr "" + +#: ../Doc/library/subprocess.rst:1009 ../Doc/library/subprocess.rst:1037 +msgid "To suppress stdout or stderr, supply a value of :data:`DEVNULL`." +msgstr "" #: ../Doc/library/subprocess.rst:1011 ../Doc/library/subprocess.rst:1039 +#, fuzzy msgid "" -"The arguments shown above are merely the most common ones. The full function " -"signature is largely the same as that of the :class:`Popen` constructor - " -"this function passes all supplied arguments other than *timeout* directly " -"through to that interface." +"The arguments shown above are merely some common ones. The full function " +"signature is the same as that of the :class:`Popen` constructor - this " +"function passes all supplied arguments other than *timeout* directly through " +"to that interface." msgstr "" "Les arguments montrés plus haut sont sûrement les plus communs. La signature " "complète de la fonction est en grande partie la même que le constructeur de :" @@ -1740,9 +1746,9 @@ msgstr "" "`CalledProcessError` autrement. L'objet :exc:`CalledProcessError` contiendra " "le code de retour dans son attribut :attr:`~CalledProcessError.returncode`." -#: ../Doc/library/subprocess.rst:1037 -msgid "(except that the *input* parameter is not supported)" -msgstr "(excepté que le paramètre *input* n'est pas géré)" +#: ../Doc/library/subprocess.rst:1035 +msgid "run(..., check=True)" +msgstr "" #: ../Doc/library/subprocess.rst:1059 msgid "Run command with arguments and return its output." @@ -1760,9 +1766,14 @@ msgstr "" "de retour dans son attribut :attr:`~CalledProcessError.returncode`, et la " "sortie du programme dans son attribut :attr:`~CalledProcessError.output`." +#: ../Doc/library/subprocess.rst:1066 +msgid "This is equivalent to::" +msgstr "C’est équivalent à ::" + #: ../Doc/library/subprocess.rst:1070 +#, fuzzy msgid "" -"The arguments shown above are merely the most common ones. The full function " +"The arguments shown above are merely some common ones. The full function " "signature is largely the same as that of :func:`run` - most arguments are " "passed directly through to that interface. However, explicitly passing " "``input=None`` to inherit the parent's standard input file handle is not " @@ -1786,14 +1797,16 @@ msgstr "" "l'application." #: ../Doc/library/subprocess.rst:1080 +#, fuzzy msgid "" -"This behaviour may be overridden by setting *universal_newlines* to ``True`` " -"as described above in :ref:`frequently-used-arguments`." +"This behaviour may be overridden by setting *text*, *encoding*, *errors*, or " +"*universal_newlines* to ``True`` as described in :ref:`frequently-used-" +"arguments` and :func:`run`." msgstr "" "Ce comportement peut être redéfini en mettant *universal_newlines* à " "``True`` comme décrit ci-dessus dans :ref:`frequently-used-arguments`." -#: ../Doc/library/subprocess.rst:1083 +#: ../Doc/library/subprocess.rst:1084 msgid "" "To also capture standard error in the result, use ``stderr=subprocess." "STDOUT``::" @@ -1801,21 +1814,21 @@ msgstr "" "Pour capturer aussi la sortie d'erreur dans le résultat, utilisez " "``stderr=subprocess.STDOUT`` : ::" -#: ../Doc/library/subprocess.rst:1097 +#: ../Doc/library/subprocess.rst:1098 msgid "Support for the *input* keyword argument was added." msgstr "Ajout de la gestion de l'argument nommé *input*." -#: ../Doc/library/subprocess.rst:1100 +#: ../Doc/library/subprocess.rst:1101 msgid "*encoding* and *errors* were added. See :func:`run` for details." msgstr "" "Ajout d'*encoding* et *errors*. Consultez :func:`run` pour plus " "d'informations." -#: ../Doc/library/subprocess.rst:1110 +#: ../Doc/library/subprocess.rst:1111 msgid "Replacing Older Functions with the :mod:`subprocess` Module" msgstr "Remplacer les fonctions plus anciennes par le module :mod:`subprocess`" -#: ../Doc/library/subprocess.rst:1112 +#: ../Doc/library/subprocess.rst:1113 msgid "" "In this section, \"a becomes b\" means that b can be used as a replacement " "for a." @@ -1823,7 +1836,7 @@ msgstr "" "Dans cette section, « a devient b » signifie que b peut être utilisée en " "remplacement de a." -#: ../Doc/library/subprocess.rst:1116 +#: ../Doc/library/subprocess.rst:1117 msgid "" "All \"a\" functions in this section fail (more or less) silently if the " "executed program cannot be found; the \"b\" replacements raise :exc:" @@ -1833,7 +1846,7 @@ msgstr "" "silencieusement si le programme à exécuter ne peut être trouvé ; les " "fonctions « b » de remplacement lèvent à la place une :exc:`OSError`." -#: ../Doc/library/subprocess.rst:1120 +#: ../Doc/library/subprocess.rst:1121 msgid "" "In addition, the replacements using :func:`check_output` will fail with a :" "exc:`CalledProcessError` if the requested operation produces a non-zero " @@ -1845,7 +1858,7 @@ msgstr "" "retour non-nul. La sortie est toujours disponible par l'attribut :attr:" "`~CalledProcessError.output` de l'exception levée." -#: ../Doc/library/subprocess.rst:1125 +#: ../Doc/library/subprocess.rst:1126 msgid "" "In the following examples, we assume that the relevant functions have " "already been imported from the :mod:`subprocess` module." @@ -1853,20 +1866,20 @@ msgstr "" "Dans les exemples suivants, nous supposons que les fonctions utilisées ont " "déjà été importées depuis le module :mod:`subprocess`." -#: ../Doc/library/subprocess.rst:1130 +#: ../Doc/library/subprocess.rst:1131 msgid "Replacing /bin/sh shell backquote" msgstr "Remplacement des *backquotes* des *shells /bin/sh*" -#: ../Doc/library/subprocess.rst:1136 ../Doc/library/subprocess.rst:1147 -#: ../Doc/library/subprocess.rst:1164 +#: ../Doc/library/subprocess.rst:1137 ../Doc/library/subprocess.rst:1148 +#: ../Doc/library/subprocess.rst:1165 msgid "becomes::" msgstr "devient : ::" -#: ../Doc/library/subprocess.rst:1141 +#: ../Doc/library/subprocess.rst:1142 msgid "Replacing shell pipeline" msgstr "Remplacer les *pipes* du *shell*" -#: ../Doc/library/subprocess.rst:1154 +#: ../Doc/library/subprocess.rst:1155 msgid "" "The p1.stdout.close() call after starting the p2 is important in order for " "p1 to receive a SIGPIPE if p2 exits before p1." @@ -1874,7 +1887,7 @@ msgstr "" "L'appel à *p1.stdout.close()* après le démarrage de *p2* est important pour " "que *p1* reçoive un *SIGPIPE* si *p2* se termine avant lui." -#: ../Doc/library/subprocess.rst:1157 +#: ../Doc/library/subprocess.rst:1158 msgid "" "Alternatively, for trusted input, the shell's own pipeline support may still " "be used directly:" @@ -1882,56 +1895,56 @@ msgstr "" "Alternativement, pour des entrées fiables, la gestion des tubes du *shell* " "peut directement être utilisé :" -#: ../Doc/library/subprocess.rst:1170 +#: ../Doc/library/subprocess.rst:1171 msgid "Replacing :func:`os.system`" msgstr "Remplacer :func:`os.system`" -#: ../Doc/library/subprocess.rst:1178 +#: ../Doc/library/subprocess.rst:1179 msgid "Notes:" msgstr "Notes :" -#: ../Doc/library/subprocess.rst:1180 +#: ../Doc/library/subprocess.rst:1181 msgid "Calling the program through the shell is usually not required." msgstr "" "Appeler le programme à travers un *shell* n'est habituellement pas requis." -#: ../Doc/library/subprocess.rst:1182 +#: ../Doc/library/subprocess.rst:1183 msgid "A more realistic example would look like this::" msgstr "Un exemple plus réaliste ressemblerait à cela : ::" -#: ../Doc/library/subprocess.rst:1195 +#: ../Doc/library/subprocess.rst:1196 msgid "Replacing the :func:`os.spawn ` family" msgstr "Remplacer les fonctions de la famille :func:`os.spawn `" -#: ../Doc/library/subprocess.rst:1197 +#: ../Doc/library/subprocess.rst:1198 msgid "P_NOWAIT example::" msgstr "Exemple avec *P_NOWAIT* : ::" -#: ../Doc/library/subprocess.rst:1203 +#: ../Doc/library/subprocess.rst:1204 msgid "P_WAIT example::" msgstr "Exemple avec *P_WAIT* : ::" -#: ../Doc/library/subprocess.rst:1209 +#: ../Doc/library/subprocess.rst:1210 msgid "Vector example::" msgstr "Exemple avec un tableau : ::" -#: ../Doc/library/subprocess.rst:1215 +#: ../Doc/library/subprocess.rst:1216 msgid "Environment example::" msgstr "Exemple en passant un environnement : ::" -#: ../Doc/library/subprocess.rst:1224 +#: ../Doc/library/subprocess.rst:1225 msgid "Replacing :func:`os.popen`, :func:`os.popen2`, :func:`os.popen3`" msgstr "Remplacer :func:`os.popen`, :func:`os.popen2`, :func:`os.popen3`" -#: ../Doc/library/subprocess.rst:1254 +#: ../Doc/library/subprocess.rst:1255 msgid "Return code handling translates as follows::" msgstr "La gestion du code de retour se traduit comme suit : ::" -#: ../Doc/library/subprocess.rst:1270 +#: ../Doc/library/subprocess.rst:1271 msgid "Replacing functions from the :mod:`popen2` module" msgstr "Remplacer les fonctions du module :mod:`popen2`" -#: ../Doc/library/subprocess.rst:1274 +#: ../Doc/library/subprocess.rst:1275 msgid "" "If the cmd argument to popen2 functions is a string, the command is executed " "through /bin/sh. If it is a list, the command is directly executed." @@ -1940,7 +1953,7 @@ msgstr "" "la commande est exécutée à travers */bin/sh*. Si c'est une liste, la " "commande est directement exécutée." -#: ../Doc/library/subprocess.rst:1293 +#: ../Doc/library/subprocess.rst:1294 msgid "" ":class:`popen2.Popen3` and :class:`popen2.Popen4` basically work as :class:" "`subprocess.Popen`, except that:" @@ -1948,19 +1961,19 @@ msgstr "" ":class:`popen2.Popen3` et :class:`popen2.Popen4` fonctionnent basiquement " "comme :class:`subprocess.Popen`, excepté que :" -#: ../Doc/library/subprocess.rst:1296 +#: ../Doc/library/subprocess.rst:1297 msgid ":class:`Popen` raises an exception if the execution fails." msgstr ":class:`Popen` lève une exception si l'exécution échoue." -#: ../Doc/library/subprocess.rst:1298 +#: ../Doc/library/subprocess.rst:1299 msgid "The *capturestderr* argument is replaced with the *stderr* argument." msgstr "L'argument *capturestderr* est remplacé par *stderr*." -#: ../Doc/library/subprocess.rst:1300 +#: ../Doc/library/subprocess.rst:1301 msgid "``stdin=PIPE`` and ``stdout=PIPE`` must be specified." msgstr "``stdin=PIPE`` et ``stdout=PIPE`` doivent être spécifiés." -#: ../Doc/library/subprocess.rst:1302 +#: ../Doc/library/subprocess.rst:1303 msgid "" "popen2 closes all file descriptors by default, but you have to specify " "``close_fds=True`` with :class:`Popen` to guarantee this behavior on all " @@ -1970,11 +1983,11 @@ msgstr "" "spécifier ``close_fds=True`` avec :class:`Popen` pour garantir ce " "comportement sur toutes les plateformes ou les anciennes versions de Python." -#: ../Doc/library/subprocess.rst:1308 +#: ../Doc/library/subprocess.rst:1309 msgid "Legacy Shell Invocation Functions" msgstr "Remplacement des fonctions originales d'invocation du *shell*" -#: ../Doc/library/subprocess.rst:1310 +#: ../Doc/library/subprocess.rst:1311 msgid "" "This module also provides the following legacy functions from the 2.x " "``commands`` module. These operations implicitly invoke the system shell and " @@ -1986,13 +1999,13 @@ msgstr "" "*shell* du système et n'apportent aucune des garanties décrites ci-dessus " "par rapport à la sécurité ou la cohérence de la gestion des exceptions." -#: ../Doc/library/subprocess.rst:1317 +#: ../Doc/library/subprocess.rst:1318 msgid "Return ``(exitcode, output)`` of executing *cmd* in a shell." msgstr "" "Renvoie les valeurs ``(exitcode, output)`` de l'exécution de *cmd* dans un " "*shell*." -#: ../Doc/library/subprocess.rst:1319 +#: ../Doc/library/subprocess.rst:1320 msgid "" "Execute the string *cmd* in a shell with :meth:`Popen.check_output` and " "return a 2-tuple ``(exitcode, output)``. The locale encoding is used; see " @@ -2003,7 +2016,7 @@ msgstr "" "est utilisé, voir les notes de la section :ref:`frequently-used-arguments` " "pour plus de détails." -#: ../Doc/library/subprocess.rst:1323 +#: ../Doc/library/subprocess.rst:1324 msgid "" "A trailing newline is stripped from the output. The exit code for the " "command can be interpreted as the return code of subprocess. Example::" @@ -2012,15 +2025,15 @@ msgstr "" "supprimé. Le code de statut de la commande peut être interprété comme le " "code de retour de *subprocess*. Par exemple : ::" -#: ../Doc/library/subprocess.rst:1337 ../Doc/library/subprocess.rst:1357 +#: ../Doc/library/subprocess.rst:1338 ../Doc/library/subprocess.rst:1358 msgid ":ref:`Availability `: POSIX & Windows." msgstr ":ref:`Disponibilité ` : POSIX et Windows." -#: ../Doc/library/subprocess.rst:1338 +#: ../Doc/library/subprocess.rst:1339 msgid "Windows support was added." msgstr "Ajout de la gestion de Windows." -#: ../Doc/library/subprocess.rst:1341 +#: ../Doc/library/subprocess.rst:1342 msgid "" "The function now returns (exitcode, output) instead of (status, output) as " "it did in Python 3.3.3 and earlier. exitcode has the same value as :attr:" @@ -2030,13 +2043,13 @@ msgstr "" "output)`` comme dans les versions de Python 3.3.3 ou antérieures. " "*exitcode* vaut la même valeur que :attr:`~Popen.returncode`." -#: ../Doc/library/subprocess.rst:1348 +#: ../Doc/library/subprocess.rst:1349 msgid "Return output (stdout and stderr) of executing *cmd* in a shell." msgstr "" "Renvoie la sortie (standard et d'erreur) de l'exécution de *cmd* dans un " "*shell*." -#: ../Doc/library/subprocess.rst:1350 +#: ../Doc/library/subprocess.rst:1351 msgid "" "Like :func:`getstatusoutput`, except the exit code is ignored and the return " "value is a string containing the command's output. Example::" @@ -2045,20 +2058,20 @@ msgstr "" "ignoré et que la valeur de retour est une chaîne contenant la sortie de la " "commande. Exemple : ::" -#: ../Doc/library/subprocess.rst:1358 +#: ../Doc/library/subprocess.rst:1359 msgid "Windows support added" msgstr "Ajout de la gestion de Windows" -#: ../Doc/library/subprocess.rst:1363 +#: ../Doc/library/subprocess.rst:1364 msgid "Notes" msgstr "Notes" -#: ../Doc/library/subprocess.rst:1368 +#: ../Doc/library/subprocess.rst:1369 msgid "Converting an argument sequence to a string on Windows" msgstr "" "Convertir une séquence d'arguments vers une chaîne de caractères sous Windows" -#: ../Doc/library/subprocess.rst:1370 +#: ../Doc/library/subprocess.rst:1371 msgid "" "On Windows, an *args* sequence is converted to a string that can be parsed " "using the following rules (which correspond to the rules used by the MS C " @@ -2068,14 +2081,14 @@ msgstr "" "être analysée avec les règles suivantes (qui correspondent aux règles " "utilisées par l'environnement *MS C*) :" -#: ../Doc/library/subprocess.rst:1374 +#: ../Doc/library/subprocess.rst:1375 msgid "" "Arguments are delimited by white space, which is either a space or a tab." msgstr "" "Les arguments sont délimités par des espacements, qui peuvent être des " "espaces ou des tabulations." -#: ../Doc/library/subprocess.rst:1377 +#: ../Doc/library/subprocess.rst:1378 msgid "" "A string surrounded by double quotation marks is interpreted as a single " "argument, regardless of white space contained within. A quoted string can " @@ -2085,7 +2098,7 @@ msgstr "" "seul, qu'elle contienne ou non des espacements. Une chaîne entre guillemets " "peut être intégrée dans un argument." -#: ../Doc/library/subprocess.rst:1382 +#: ../Doc/library/subprocess.rst:1383 msgid "" "A double quotation mark preceded by a backslash is interpreted as a literal " "double quotation mark." @@ -2093,7 +2106,7 @@ msgstr "" "Un guillemet double précédé d'un *backslash* est interprété comme un " "guillemet double littéral." -#: ../Doc/library/subprocess.rst:1385 +#: ../Doc/library/subprocess.rst:1386 msgid "" "Backslashes are interpreted literally, unless they immediately precede a " "double quotation mark." @@ -2101,7 +2114,7 @@ msgstr "" "Les *backslashs* sont interprétés littéralement, à moins qu'ils précèdent " "immédiatement un guillemet double." -#: ../Doc/library/subprocess.rst:1388 +#: ../Doc/library/subprocess.rst:1389 msgid "" "If backslashes immediately precede a double quotation mark, every pair of " "backslashes is interpreted as a literal backslash. If the number of " @@ -2113,16 +2126,22 @@ msgstr "" "de *backslashs* est impair, le dernier *backslash* échappe le prochain " "guillemet double comme décrit en règle 3." -#: ../Doc/library/subprocess.rst:1397 +#: ../Doc/library/subprocess.rst:1398 msgid ":mod:`shlex`" msgstr ":mod:`shlex`" -#: ../Doc/library/subprocess.rst:1398 +#: ../Doc/library/subprocess.rst:1399 msgid "Module which provides function to parse and escape command lines." msgstr "" "Module qui fournit des fonctions pour analyser et échapper les lignes de " "commandes." +#~ msgid "(except that the *input* and *check* parameters are not supported)" +#~ msgstr "(excepté que les paramètres *input* et *check* ne sont pas gérés)" + +#~ msgid "(except that the *input* parameter is not supported)" +#~ msgstr "(excepté que le paramètre *input* n'est pas géré)" + #~ msgid "" #~ "Exceptions raised in the child process, before the new program has " #~ "started to execute, will be re-raised in the parent. Additionally, the " diff --git a/library/unittest.po b/library/unittest.po index 942758345..9b4056a5c 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-01-28 21:58+0100\n" "Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" @@ -1595,7 +1595,8 @@ msgid "or::" msgstr "ou  ::" #: ../Doc/library/unittest.rst:1002 -msgid "under the name ``assertRaisesRegexp``." +#, fuzzy +msgid "Added under the name ``assertRaisesRegexp``." msgstr "Sous le nom ``assertRaisesRegexp``" #: ../Doc/library/unittest.rst:1005 @@ -1809,9 +1810,10 @@ msgid ":meth:`assertCountEqual(a, b) `" msgstr ":meth:`assertCountEqual(a, b) `" #: ../Doc/library/unittest.rst:1146 +#, fuzzy msgid "" "*a* and *b* have the same elements in the same number, regardless of their " -"order" +"order." msgstr "" "*a* et *b* ont les mêmes éléments dans le même nombre, quel que soit leur " "ordre." @@ -1878,7 +1880,8 @@ msgstr "" "func:`re.search`." #: ../Doc/library/unittest.rst:1195 -msgid "under the name ``assertRegexpMatches``." +#, fuzzy +msgid "Added under the name ``assertRegexpMatches``." msgstr "Sous le nom ``assertRegexpMatches``." #: ../Doc/library/unittest.rst:1197 @@ -2431,11 +2434,13 @@ msgid "assertRaisesRegexp" msgstr "assertRaisesRegexp" #: ../Doc/library/unittest.rst:1485 -msgid "the fail* aliases listed in the second column." +#, fuzzy +msgid "The fail* aliases listed in the second column have been deprecated." msgstr "les alias ``fail*`` sont énumérés dans la deuxième colonne." #: ../Doc/library/unittest.rst:1487 -msgid "the assert* aliases listed in the third column." +#, fuzzy +msgid "The assert* aliases listed in the third column have been deprecated." msgstr "les alias ``assert*`` sont énumérés dans la troisième colonne." #: ../Doc/library/unittest.rst:1489 @@ -2447,8 +2452,10 @@ msgstr "" "renommées en :meth:`.assertRegex` et :meth:`.assertRaisesRegex`." #: ../Doc/library/unittest.rst:1492 +#, fuzzy msgid "" -"the ``assertNotRegexpMatches`` name in favor of :meth:`.assertNotRegex`." +"The ``assertNotRegexpMatches`` name is deprecated in favor of :meth:`." +"assertNotRegex`." msgstr "``assertNotRegexpMatches`` en faveur de :meth:`.assertNotRegex`." #: ../Doc/library/unittest.rst:1498 diff --git a/library/urllib.parse.po b/library/urllib.parse.po index b5a5ca0bc..485ea2b45 100644 --- a/library/urllib.parse.po +++ b/library/urllib.parse.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -59,23 +59,23 @@ msgstr "" #: ../Doc/library/urllib.parse.rst:42 msgid "" -"Parse a URL into six components, returning a 6-tuple. This corresponds to " -"the general structure of a URL: ``scheme://netloc/path;parameters?" -"query#fragment``. Each tuple item is a string, possibly empty. The " -"components are not broken up in smaller parts (for example, the network " +"Parse a URL into six components, returning a 6-item :term:`named tuple`. " +"This corresponds to the general structure of a URL: ``scheme://netloc/path;" +"parameters?query#fragment``. Each tuple item is a string, possibly empty. " +"The components are not broken up in smaller parts (for example, the network " "location is a single string), and % escapes are not expanded. The delimiters " "as shown above are not part of the result, except for a leading slash in the " "*path* component, which is retained if present. For example:" msgstr "" -#: ../Doc/library/urllib.parse.rst:62 +#: ../Doc/library/urllib.parse.rst:63 msgid "" "Following the syntax specifications in :rfc:`1808`, urlparse recognizes a " "netloc only if it is properly introduced by '//'. Otherwise the input is " "presumed to be a relative URL and thus to start with a path component." msgstr "" -#: ../Doc/library/urllib.parse.rst:81 +#: ../Doc/library/urllib.parse.rst:82 msgid "" "The *scheme* argument gives the default addressing scheme, to be used only " "if the URL does not specify one. It should be the same type (text or bytes) " @@ -83,7 +83,7 @@ msgid "" "is automatically converted to ``b''`` if appropriate." msgstr "" -#: ../Doc/library/urllib.parse.rst:86 +#: ../Doc/library/urllib.parse.rst:87 msgid "" "If the *allow_fragments* argument is false, fragment identifiers are not " "recognized. Instead, they are parsed as part of the path, parameters or " @@ -91,175 +91,174 @@ msgid "" "return value." msgstr "" -#: ../Doc/library/urllib.parse.rst:91 ../Doc/library/urllib.parse.rst:236 -#: ../Doc/library/urllib.parse.rst:333 +#: ../Doc/library/urllib.parse.rst:92 msgid "" -"The return value is actually an instance of a subclass of :class:`tuple`. " -"This class has the following additional read-only convenience attributes:" +"The return value is a :term:`named tuple`, which means that its items can be " +"accessed by index or as named attributes, which are:" msgstr "" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 -#: ../Doc/library/urllib.parse.rst:337 +#: ../Doc/library/urllib.parse.rst:96 ../Doc/library/urllib.parse.rst:261 +#: ../Doc/library/urllib.parse.rst:358 msgid "Attribute" msgstr "Attribut" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 -#: ../Doc/library/urllib.parse.rst:337 +#: ../Doc/library/urllib.parse.rst:96 ../Doc/library/urllib.parse.rst:261 +#: ../Doc/library/urllib.parse.rst:358 msgid "Index" msgstr "Index" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 -#: ../Doc/library/urllib.parse.rst:337 +#: ../Doc/library/urllib.parse.rst:96 ../Doc/library/urllib.parse.rst:261 +#: ../Doc/library/urllib.parse.rst:358 msgid "Value" msgstr "Valeur" -#: ../Doc/library/urllib.parse.rst:95 ../Doc/library/urllib.parse.rst:240 -#: ../Doc/library/urllib.parse.rst:337 +#: ../Doc/library/urllib.parse.rst:96 ../Doc/library/urllib.parse.rst:261 +#: ../Doc/library/urllib.parse.rst:358 msgid "Value if not present" msgstr "" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 +#: ../Doc/library/urllib.parse.rst:98 ../Doc/library/urllib.parse.rst:263 msgid ":attr:`scheme`" msgstr ":attr:`scheme`" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 -#: ../Doc/library/urllib.parse.rst:339 +#: ../Doc/library/urllib.parse.rst:98 ../Doc/library/urllib.parse.rst:263 +#: ../Doc/library/urllib.parse.rst:360 msgid "0" msgstr "0" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 +#: ../Doc/library/urllib.parse.rst:98 ../Doc/library/urllib.parse.rst:263 msgid "URL scheme specifier" msgstr "" -#: ../Doc/library/urllib.parse.rst:97 ../Doc/library/urllib.parse.rst:242 +#: ../Doc/library/urllib.parse.rst:98 ../Doc/library/urllib.parse.rst:263 msgid "*scheme* parameter" msgstr "" -#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:244 +#: ../Doc/library/urllib.parse.rst:100 ../Doc/library/urllib.parse.rst:265 msgid ":attr:`netloc`" msgstr ":attr:`netloc`" -#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:244 -#: ../Doc/library/urllib.parse.rst:341 +#: ../Doc/library/urllib.parse.rst:100 ../Doc/library/urllib.parse.rst:265 +#: ../Doc/library/urllib.parse.rst:362 msgid "1" msgstr "1" -#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:244 +#: ../Doc/library/urllib.parse.rst:100 ../Doc/library/urllib.parse.rst:265 msgid "Network location part" msgstr "" -#: ../Doc/library/urllib.parse.rst:99 ../Doc/library/urllib.parse.rst:101 -#: ../Doc/library/urllib.parse.rst:103 ../Doc/library/urllib.parse.rst:106 -#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:244 -#: ../Doc/library/urllib.parse.rst:246 ../Doc/library/urllib.parse.rst:248 -#: ../Doc/library/urllib.parse.rst:250 ../Doc/library/urllib.parse.rst:339 -#: ../Doc/library/urllib.parse.rst:341 +#: ../Doc/library/urllib.parse.rst:100 ../Doc/library/urllib.parse.rst:102 +#: ../Doc/library/urllib.parse.rst:104 ../Doc/library/urllib.parse.rst:107 +#: ../Doc/library/urllib.parse.rst:109 ../Doc/library/urllib.parse.rst:265 +#: ../Doc/library/urllib.parse.rst:267 ../Doc/library/urllib.parse.rst:269 +#: ../Doc/library/urllib.parse.rst:271 ../Doc/library/urllib.parse.rst:360 +#: ../Doc/library/urllib.parse.rst:362 msgid "empty string" msgstr "" -#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:246 +#: ../Doc/library/urllib.parse.rst:102 ../Doc/library/urllib.parse.rst:267 msgid ":attr:`path`" msgstr ":attr:`path`" -#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:246 +#: ../Doc/library/urllib.parse.rst:102 ../Doc/library/urllib.parse.rst:267 msgid "2" msgstr "2" -#: ../Doc/library/urllib.parse.rst:101 ../Doc/library/urllib.parse.rst:246 +#: ../Doc/library/urllib.parse.rst:102 ../Doc/library/urllib.parse.rst:267 msgid "Hierarchical path" msgstr "" -#: ../Doc/library/urllib.parse.rst:103 +#: ../Doc/library/urllib.parse.rst:104 msgid ":attr:`params`" msgstr ":attr:`params`" -#: ../Doc/library/urllib.parse.rst:103 ../Doc/library/urllib.parse.rst:248 +#: ../Doc/library/urllib.parse.rst:104 ../Doc/library/urllib.parse.rst:269 msgid "3" msgstr "3" -#: ../Doc/library/urllib.parse.rst:103 +#: ../Doc/library/urllib.parse.rst:104 msgid "Parameters for last path element" msgstr "" -#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:248 +#: ../Doc/library/urllib.parse.rst:107 ../Doc/library/urllib.parse.rst:269 msgid ":attr:`query`" msgstr ":attr:`query`" -#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:250 +#: ../Doc/library/urllib.parse.rst:107 ../Doc/library/urllib.parse.rst:271 msgid "4" msgstr "4" -#: ../Doc/library/urllib.parse.rst:106 ../Doc/library/urllib.parse.rst:248 +#: ../Doc/library/urllib.parse.rst:107 ../Doc/library/urllib.parse.rst:269 msgid "Query component" msgstr "" -#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:250 -#: ../Doc/library/urllib.parse.rst:341 +#: ../Doc/library/urllib.parse.rst:109 ../Doc/library/urllib.parse.rst:271 +#: ../Doc/library/urllib.parse.rst:362 msgid ":attr:`fragment`" msgstr ":attr:`fragment`" -#: ../Doc/library/urllib.parse.rst:108 +#: ../Doc/library/urllib.parse.rst:109 msgid "5" msgstr "5" -#: ../Doc/library/urllib.parse.rst:108 ../Doc/library/urllib.parse.rst:250 -#: ../Doc/library/urllib.parse.rst:341 +#: ../Doc/library/urllib.parse.rst:109 ../Doc/library/urllib.parse.rst:271 +#: ../Doc/library/urllib.parse.rst:362 msgid "Fragment identifier" msgstr "" -#: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:252 +#: ../Doc/library/urllib.parse.rst:111 ../Doc/library/urllib.parse.rst:273 msgid ":attr:`username`" msgstr ":attr:`username`" -#: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:252 +#: ../Doc/library/urllib.parse.rst:111 ../Doc/library/urllib.parse.rst:273 msgid "User name" msgstr "" -#: ../Doc/library/urllib.parse.rst:110 ../Doc/library/urllib.parse.rst:112 -#: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:116 -#: ../Doc/library/urllib.parse.rst:252 ../Doc/library/urllib.parse.rst:254 -#: ../Doc/library/urllib.parse.rst:256 ../Doc/library/urllib.parse.rst:258 +#: ../Doc/library/urllib.parse.rst:111 ../Doc/library/urllib.parse.rst:113 +#: ../Doc/library/urllib.parse.rst:115 ../Doc/library/urllib.parse.rst:117 +#: ../Doc/library/urllib.parse.rst:273 ../Doc/library/urllib.parse.rst:275 +#: ../Doc/library/urllib.parse.rst:277 ../Doc/library/urllib.parse.rst:279 msgid ":const:`None`" msgstr "" -#: ../Doc/library/urllib.parse.rst:112 ../Doc/library/urllib.parse.rst:254 +#: ../Doc/library/urllib.parse.rst:113 ../Doc/library/urllib.parse.rst:275 msgid ":attr:`password`" msgstr ":attr:`password`" -#: ../Doc/library/urllib.parse.rst:112 ../Doc/library/urllib.parse.rst:254 +#: ../Doc/library/urllib.parse.rst:113 ../Doc/library/urllib.parse.rst:275 msgid "Password" msgstr "" -#: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:256 +#: ../Doc/library/urllib.parse.rst:115 ../Doc/library/urllib.parse.rst:277 msgid ":attr:`hostname`" msgstr ":attr:`hostname`" -#: ../Doc/library/urllib.parse.rst:114 ../Doc/library/urllib.parse.rst:256 +#: ../Doc/library/urllib.parse.rst:115 ../Doc/library/urllib.parse.rst:277 msgid "Host name (lower case)" msgstr "" -#: ../Doc/library/urllib.parse.rst:116 ../Doc/library/urllib.parse.rst:258 +#: ../Doc/library/urllib.parse.rst:117 ../Doc/library/urllib.parse.rst:279 msgid ":attr:`port`" msgstr ":attr:`port`" -#: ../Doc/library/urllib.parse.rst:116 ../Doc/library/urllib.parse.rst:258 +#: ../Doc/library/urllib.parse.rst:117 ../Doc/library/urllib.parse.rst:279 msgid "Port number as integer, if present" msgstr "" -#: ../Doc/library/urllib.parse.rst:120 ../Doc/library/urllib.parse.rst:262 +#: ../Doc/library/urllib.parse.rst:121 ../Doc/library/urllib.parse.rst:283 msgid "" "Reading the :attr:`port` attribute will raise a :exc:`ValueError` if an " "invalid port is specified in the URL. See section :ref:`urlparse-result-" "object` for more information on the result object." msgstr "" -#: ../Doc/library/urllib.parse.rst:124 ../Doc/library/urllib.parse.rst:266 +#: ../Doc/library/urllib.parse.rst:125 ../Doc/library/urllib.parse.rst:287 msgid "" "Unmatched square brackets in the :attr:`netloc` attribute will raise a :exc:" "`ValueError`." msgstr "" -#: ../Doc/library/urllib.parse.rst:127 ../Doc/library/urllib.parse.rst:269 +#: ../Doc/library/urllib.parse.rst:128 ../Doc/library/urllib.parse.rst:290 msgid "" "Characters in the :attr:`netloc` attribute that decompose under NFKC " "normalization (as used by the IDNA encoding) into any of ``/``, ``?``, " @@ -267,30 +266,38 @@ msgid "" "decomposed before parsing, no error will be raised." msgstr "" -#: ../Doc/library/urllib.parse.rst:132 +#: ../Doc/library/urllib.parse.rst:133 +msgid "" +"As is the case with all named tuples, the subclass has a few additional " +"methods and attributes that are particularly useful. One such method is :" +"meth:`_replace`. The :meth:`_replace` method will return a new ParseResult " +"object replacing specified fields with new values." +msgstr "" + +#: ../Doc/library/urllib.parse.rst:151 msgid "Added IPv6 URL parsing capabilities." msgstr "" -#: ../Doc/library/urllib.parse.rst:135 +#: ../Doc/library/urllib.parse.rst:154 msgid "" "The fragment is now parsed for all URL schemes (unless *allow_fragment* is " "false), in accordance with :rfc:`3986`. Previously, a whitelist of schemes " "that support fragments existed." msgstr "" -#: ../Doc/library/urllib.parse.rst:140 ../Doc/library/urllib.parse.rst:274 +#: ../Doc/library/urllib.parse.rst:159 ../Doc/library/urllib.parse.rst:295 msgid "" "Out-of-range port numbers now raise :exc:`ValueError`, instead of returning :" "const:`None`." msgstr "" -#: ../Doc/library/urllib.parse.rst:144 ../Doc/library/urllib.parse.rst:278 +#: ../Doc/library/urllib.parse.rst:163 ../Doc/library/urllib.parse.rst:299 msgid "" "Characters that affect netloc parsing under NFKC normalization will now " "raise :exc:`ValueError`." msgstr "" -#: ../Doc/library/urllib.parse.rst:151 +#: ../Doc/library/urllib.parse.rst:170 msgid "" "Parse a query string given as a string argument (data of type :mimetype:" "`application/x-www-form-urlencoded`). Data are returned as a dictionary. " @@ -298,7 +305,7 @@ msgid "" "lists of values for each name." msgstr "" -#: ../Doc/library/urllib.parse.rst:156 ../Doc/library/urllib.parse.rst:191 +#: ../Doc/library/urllib.parse.rst:175 ../Doc/library/urllib.parse.rst:210 msgid "" "The optional argument *keep_blank_values* is a flag indicating whether blank " "values in percent-encoded queries should be treated as blank strings. A true " @@ -307,55 +314,55 @@ msgid "" "treated as if they were not included." msgstr "" -#: ../Doc/library/urllib.parse.rst:162 ../Doc/library/urllib.parse.rst:197 +#: ../Doc/library/urllib.parse.rst:181 ../Doc/library/urllib.parse.rst:216 msgid "" "The optional argument *strict_parsing* is a flag indicating what to do with " "parsing errors. If false (the default), errors are silently ignored. If " "true, errors raise a :exc:`ValueError` exception." msgstr "" -#: ../Doc/library/urllib.parse.rst:166 ../Doc/library/urllib.parse.rst:201 +#: ../Doc/library/urllib.parse.rst:185 ../Doc/library/urllib.parse.rst:220 msgid "" "The optional *encoding* and *errors* parameters specify how to decode " "percent-encoded sequences into Unicode characters, as accepted by the :meth:" "`bytes.decode` method." msgstr "" -#: ../Doc/library/urllib.parse.rst:170 ../Doc/library/urllib.parse.rst:205 +#: ../Doc/library/urllib.parse.rst:189 ../Doc/library/urllib.parse.rst:224 msgid "" "The optional argument *max_num_fields* is the maximum number of fields to " "read. If set, then throws a :exc:`ValueError` if there are more than " "*max_num_fields* fields read." msgstr "" -#: ../Doc/library/urllib.parse.rst:174 +#: ../Doc/library/urllib.parse.rst:193 msgid "" "Use the :func:`urllib.parse.urlencode` function (with the ``doseq`` " "parameter set to ``True``) to convert such dictionaries into query strings." msgstr "" -#: ../Doc/library/urllib.parse.rst:178 ../Doc/library/urllib.parse.rst:212 +#: ../Doc/library/urllib.parse.rst:197 ../Doc/library/urllib.parse.rst:231 msgid "Add *encoding* and *errors* parameters." msgstr "" -#: ../Doc/library/urllib.parse.rst:181 ../Doc/library/urllib.parse.rst:215 +#: ../Doc/library/urllib.parse.rst:200 ../Doc/library/urllib.parse.rst:234 msgid "Added *max_num_fields* parameter." msgstr "" -#: ../Doc/library/urllib.parse.rst:187 +#: ../Doc/library/urllib.parse.rst:206 msgid "" "Parse a query string given as a string argument (data of type :mimetype:" "`application/x-www-form-urlencoded`). Data are returned as a list of name, " "value pairs." msgstr "" -#: ../Doc/library/urllib.parse.rst:209 +#: ../Doc/library/urllib.parse.rst:228 msgid "" "Use the :func:`urllib.parse.urlencode` function to convert such lists of " "pairs into query strings." msgstr "" -#: ../Doc/library/urllib.parse.rst:220 +#: ../Doc/library/urllib.parse.rst:239 msgid "" "Construct a URL from a tuple as returned by ``urlparse()``. The *parts* " "argument can be any six-item iterable. This may result in a slightly " @@ -364,18 +371,23 @@ msgid "" "states that these are equivalent)." msgstr "" -#: ../Doc/library/urllib.parse.rst:229 +#: ../Doc/library/urllib.parse.rst:248 msgid "" "This is similar to :func:`urlparse`, but does not split the params from the " "URL. This should generally be used instead of :func:`urlparse` if the more " "recent URL syntax allowing parameters to be applied to each segment of the " "*path* portion of the URL (see :rfc:`2396`) is wanted. A separate function " "is needed to separate the path segments and parameters. This function " -"returns a 5-tuple: (addressing scheme, network location, path, query, " -"fragment identifier)." +"returns a 5-item :term:`named tuple`::" +msgstr "" + +#: ../Doc/library/urllib.parse.rst:257 ../Doc/library/urllib.parse.rst:354 +msgid "" +"The return value is a :term:`named tuple`, its items can be accessed by " +"index or as named attributes:" msgstr "" -#: ../Doc/library/urllib.parse.rst:285 +#: ../Doc/library/urllib.parse.rst:306 msgid "" "Combine the elements of a tuple as returned by :func:`urlsplit` into a " "complete URL as a string. The *parts* argument can be any five-item " @@ -384,7 +396,7 @@ msgid "" "a ? with an empty query; the RFC states that these are equivalent)." msgstr "" -#: ../Doc/library/urllib.parse.rst:294 +#: ../Doc/library/urllib.parse.rst:315 msgid "" "Construct a full (\"absolute\") URL by combining a \"base URL\" (*base*) " "with another URL (*url*). Informally, this uses components of the base URL, " @@ -392,30 +404,30 @@ msgid "" "path, to provide missing components in the relative URL. For example:" msgstr "" -#: ../Doc/library/urllib.parse.rst:303 +#: ../Doc/library/urllib.parse.rst:324 msgid "" "The *allow_fragments* argument has the same meaning and default as for :func:" "`urlparse`." msgstr "" -#: ../Doc/library/urllib.parse.rst:308 +#: ../Doc/library/urllib.parse.rst:329 msgid "" "If *url* is an absolute URL (that is, starting with ``//`` or ``scheme://" "``), the *url*'s host name and/or scheme will be present in the result. For " "example:" msgstr "" -#: ../Doc/library/urllib.parse.rst:317 +#: ../Doc/library/urllib.parse.rst:338 msgid "" "If you do not want that behavior, preprocess the *url* with :func:`urlsplit` " "and :func:`urlunsplit`, removing possible *scheme* and *netloc* parts." msgstr "" -#: ../Doc/library/urllib.parse.rst:323 +#: ../Doc/library/urllib.parse.rst:344 msgid "Behaviour updated to match the semantics defined in :rfc:`3986`." msgstr "" -#: ../Doc/library/urllib.parse.rst:328 +#: ../Doc/library/urllib.parse.rst:349 msgid "" "If *url* contains a fragment identifier, return a modified version of *url* " "with no fragment identifier, and the fragment identifier as a separate " @@ -423,29 +435,29 @@ msgid "" "unmodified and an empty string." msgstr "" -#: ../Doc/library/urllib.parse.rst:339 +#: ../Doc/library/urllib.parse.rst:360 msgid ":attr:`url`" msgstr ":attr:`url`" -#: ../Doc/library/urllib.parse.rst:339 +#: ../Doc/library/urllib.parse.rst:360 msgid "URL with no fragment" msgstr "" -#: ../Doc/library/urllib.parse.rst:344 +#: ../Doc/library/urllib.parse.rst:365 msgid "" "See section :ref:`urlparse-result-object` for more information on the result " "object." msgstr "" -#: ../Doc/library/urllib.parse.rst:347 +#: ../Doc/library/urllib.parse.rst:368 msgid "Result is a structured object rather than a simple 2-tuple." msgstr "" -#: ../Doc/library/urllib.parse.rst:353 +#: ../Doc/library/urllib.parse.rst:374 msgid "Parsing ASCII Encoded Bytes" msgstr "" -#: ../Doc/library/urllib.parse.rst:355 +#: ../Doc/library/urllib.parse.rst:376 msgid "" "The URL parsing functions were originally designed to operate on character " "strings only. In practice, it is useful to be able to manipulate properly " @@ -454,14 +466,14 @@ msgid "" "`bytearray` objects in addition to :class:`str` objects." msgstr "" -#: ../Doc/library/urllib.parse.rst:361 +#: ../Doc/library/urllib.parse.rst:382 msgid "" "If :class:`str` data is passed in, the result will also contain only :class:" "`str` data. If :class:`bytes` or :class:`bytearray` data is passed in, the " "result will contain only :class:`bytes` data." msgstr "" -#: ../Doc/library/urllib.parse.rst:365 +#: ../Doc/library/urllib.parse.rst:386 msgid "" "Attempting to mix :class:`str` data with :class:`bytes` or :class:" "`bytearray` in a single function call will result in a :exc:`TypeError` " @@ -469,7 +481,7 @@ msgid "" "trigger :exc:`UnicodeDecodeError`." msgstr "" -#: ../Doc/library/urllib.parse.rst:370 +#: ../Doc/library/urllib.parse.rst:391 msgid "" "To support easier conversion of result objects between :class:`str` and :" "class:`bytes`, all return values from URL parsing functions provide either " @@ -482,14 +494,14 @@ msgid "" "`str` data (for :meth:`decode` methods)." msgstr "" -#: ../Doc/library/urllib.parse.rst:381 +#: ../Doc/library/urllib.parse.rst:402 msgid "" "Applications that need to operate on potentially improperly quoted URLs that " "may contain non-ASCII data will need to do their own decoding from bytes to " "characters before invoking the URL parsing methods." msgstr "" -#: ../Doc/library/urllib.parse.rst:385 +#: ../Doc/library/urllib.parse.rst:406 msgid "" "The behaviour described in this section applies only to the URL parsing " "functions. The URL quoting functions use their own rules when producing or " @@ -497,15 +509,15 @@ msgid "" "URL quoting functions." msgstr "" -#: ../Doc/library/urllib.parse.rst:390 +#: ../Doc/library/urllib.parse.rst:411 msgid "URL parsing functions now accept ASCII encoded byte sequences" msgstr "" -#: ../Doc/library/urllib.parse.rst:397 +#: ../Doc/library/urllib.parse.rst:418 msgid "Structured Parse Results" msgstr "" -#: ../Doc/library/urllib.parse.rst:399 +#: ../Doc/library/urllib.parse.rst:420 msgid "" "The result objects from the :func:`urlparse`, :func:`urlsplit` and :func:" "`urldefrag` functions are subclasses of the :class:`tuple` type. These " @@ -514,7 +526,7 @@ msgid "" "section, as well as an additional method:" msgstr "" -#: ../Doc/library/urllib.parse.rst:407 +#: ../Doc/library/urllib.parse.rst:428 msgid "" "Return the re-combined version of the original URL as a string. This may " "differ from the original URL in that the scheme may be normalized to lower " @@ -522,72 +534,72 @@ msgid "" "queries, and fragment identifiers will be removed." msgstr "" -#: ../Doc/library/urllib.parse.rst:412 +#: ../Doc/library/urllib.parse.rst:433 msgid "" "For :func:`urldefrag` results, only empty fragment identifiers will be " "removed. For :func:`urlsplit` and :func:`urlparse` results, all noted " "changes will be made to the URL returned by this method." msgstr "" -#: ../Doc/library/urllib.parse.rst:416 +#: ../Doc/library/urllib.parse.rst:437 msgid "" "The result of this method remains unchanged if passed back through the " "original parsing function:" msgstr "" -#: ../Doc/library/urllib.parse.rst:429 +#: ../Doc/library/urllib.parse.rst:450 msgid "" "The following classes provide the implementations of the structured parse " "results when operating on :class:`str` objects:" msgstr "" -#: ../Doc/library/urllib.parse.rst:434 +#: ../Doc/library/urllib.parse.rst:455 msgid "" "Concrete class for :func:`urldefrag` results containing :class:`str` data. " "The :meth:`encode` method returns a :class:`DefragResultBytes` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:442 +#: ../Doc/library/urllib.parse.rst:463 msgid "" "Concrete class for :func:`urlparse` results containing :class:`str` data. " "The :meth:`encode` method returns a :class:`ParseResultBytes` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:448 +#: ../Doc/library/urllib.parse.rst:469 msgid "" "Concrete class for :func:`urlsplit` results containing :class:`str` data. " "The :meth:`encode` method returns a :class:`SplitResultBytes` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:453 +#: ../Doc/library/urllib.parse.rst:474 msgid "" "The following classes provide the implementations of the parse results when " "operating on :class:`bytes` or :class:`bytearray` objects:" msgstr "" -#: ../Doc/library/urllib.parse.rst:458 +#: ../Doc/library/urllib.parse.rst:479 msgid "" "Concrete class for :func:`urldefrag` results containing :class:`bytes` data. " "The :meth:`decode` method returns a :class:`DefragResult` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:466 +#: ../Doc/library/urllib.parse.rst:487 msgid "" "Concrete class for :func:`urlparse` results containing :class:`bytes` data. " "The :meth:`decode` method returns a :class:`ParseResult` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:474 +#: ../Doc/library/urllib.parse.rst:495 msgid "" "Concrete class for :func:`urlsplit` results containing :class:`bytes` data. " "The :meth:`decode` method returns a :class:`SplitResult` instance." msgstr "" -#: ../Doc/library/urllib.parse.rst:482 +#: ../Doc/library/urllib.parse.rst:503 msgid "URL Quoting" msgstr "" -#: ../Doc/library/urllib.parse.rst:484 +#: ../Doc/library/urllib.parse.rst:505 msgid "" "The URL quoting functions focus on taking program data and making it safe " "for use as URL components by quoting special characters and appropriately " @@ -596,7 +608,7 @@ msgid "" "isn't already covered by the URL parsing functions above." msgstr "" -#: ../Doc/library/urllib.parse.rst:492 +#: ../Doc/library/urllib.parse.rst:513 msgid "" "Replace special characters in *string* using the ``%xx`` escape. Letters, " "digits, and the characters ``'_.-~'`` are never quoted. By default, this " @@ -605,17 +617,17 @@ msgid "" "quoted --- its default value is ``'/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:498 ../Doc/library/urllib.parse.rst:568 +#: ../Doc/library/urllib.parse.rst:519 ../Doc/library/urllib.parse.rst:589 msgid "*string* may be either a :class:`str` or a :class:`bytes`." msgstr "" -#: ../Doc/library/urllib.parse.rst:500 +#: ../Doc/library/urllib.parse.rst:521 msgid "" "Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. \"~\" is now " "included in the set of reserved characters." msgstr "" -#: ../Doc/library/urllib.parse.rst:504 +#: ../Doc/library/urllib.parse.rst:525 msgid "" "The optional *encoding* and *errors* parameters specify how to deal with non-" "ASCII characters, as accepted by the :meth:`str.encode` method. *encoding* " @@ -625,17 +637,17 @@ msgid "" "`TypeError` is raised." msgstr "" -#: ../Doc/library/urllib.parse.rst:512 +#: ../Doc/library/urllib.parse.rst:533 msgid "" "Note that ``quote(string, safe, encoding, errors)`` is equivalent to " "``quote_from_bytes(string.encode(encoding, errors), safe)``." msgstr "" -#: ../Doc/library/urllib.parse.rst:515 +#: ../Doc/library/urllib.parse.rst:536 msgid "Example: ``quote('/El Niño/')`` yields ``'/El%20Ni%C3%B1o/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:520 +#: ../Doc/library/urllib.parse.rst:541 msgid "" "Like :func:`quote`, but also replace spaces by plus signs, as required for " "quoting HTML form values when building up a query string to go into a URL. " @@ -643,21 +655,21 @@ msgid "" "*safe*. It also does not have *safe* default to ``'/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:525 +#: ../Doc/library/urllib.parse.rst:546 msgid "Example: ``quote_plus('/El Niño/')`` yields ``'%2FEl+Ni%C3%B1o%2F'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:530 +#: ../Doc/library/urllib.parse.rst:551 msgid "" "Like :func:`quote`, but accepts a :class:`bytes` object rather than a :class:" "`str`, and does not perform string-to-bytes encoding." msgstr "" -#: ../Doc/library/urllib.parse.rst:533 +#: ../Doc/library/urllib.parse.rst:554 msgid "Example: ``quote_from_bytes(b'a&\\xef')`` yields ``'a%26%EF'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:539 +#: ../Doc/library/urllib.parse.rst:560 msgid "" "Replace ``%xx`` escapes by their single-character equivalent. The optional " "*encoding* and *errors* parameters specify how to decode percent-encoded " @@ -665,47 +677,47 @@ msgid "" "method." msgstr "" -#: ../Doc/library/urllib.parse.rst:544 ../Doc/library/urllib.parse.rst:558 +#: ../Doc/library/urllib.parse.rst:565 ../Doc/library/urllib.parse.rst:579 msgid "*string* must be a :class:`str`." msgstr "" -#: ../Doc/library/urllib.parse.rst:546 +#: ../Doc/library/urllib.parse.rst:567 msgid "" "*encoding* defaults to ``'utf-8'``. *errors* defaults to ``'replace'``, " "meaning invalid sequences are replaced by a placeholder character." msgstr "" -#: ../Doc/library/urllib.parse.rst:550 +#: ../Doc/library/urllib.parse.rst:571 msgid "Example: ``unquote('/El%20Ni%C3%B1o/')`` yields ``'/El Niño/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:555 +#: ../Doc/library/urllib.parse.rst:576 msgid "" "Like :func:`unquote`, but also replace plus signs by spaces, as required for " "unquoting HTML form values." msgstr "" -#: ../Doc/library/urllib.parse.rst:560 +#: ../Doc/library/urllib.parse.rst:581 msgid "Example: ``unquote_plus('/El+Ni%C3%B1o/')`` yields ``'/El Niño/'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:565 +#: ../Doc/library/urllib.parse.rst:586 msgid "" "Replace ``%xx`` escapes by their single-octet equivalent, and return a :" "class:`bytes` object." msgstr "" -#: ../Doc/library/urllib.parse.rst:570 +#: ../Doc/library/urllib.parse.rst:591 msgid "" "If it is a :class:`str`, unescaped non-ASCII characters in *string* are " "encoded into UTF-8 bytes." msgstr "" -#: ../Doc/library/urllib.parse.rst:573 +#: ../Doc/library/urllib.parse.rst:594 msgid "Example: ``unquote_to_bytes('a%26%EF')`` yields ``b'a&\\xef'``." msgstr "" -#: ../Doc/library/urllib.parse.rst:579 +#: ../Doc/library/urllib.parse.rst:600 msgid "" "Convert a mapping object or a sequence of two-element tuples, which may " "contain :class:`str` or :class:`bytes` objects, to a percent-encoded ASCII " @@ -714,7 +726,7 @@ msgid "" "be encoded to bytes, otherwise it would result in a :exc:`TypeError`." msgstr "" -#: ../Doc/library/urllib.parse.rst:586 +#: ../Doc/library/urllib.parse.rst:607 msgid "" "The resulting string is a series of ``key=value`` pairs separated by ``'&'`` " "characters, where both *key* and *value* are quoted using the *quote_via* " @@ -727,7 +739,7 @@ msgid "" "``quote`` and specify a value for *safe*." msgstr "" -#: ../Doc/library/urllib.parse.rst:596 +#: ../Doc/library/urllib.parse.rst:617 msgid "" "When a sequence of two-element tuples is used as the *query* argument, the " "first element of each tuple is a key and the second is a value. The value " @@ -738,38 +750,38 @@ msgid "" "order of parameter tuples in the sequence." msgstr "" -#: ../Doc/library/urllib.parse.rst:604 +#: ../Doc/library/urllib.parse.rst:625 msgid "" "The *safe*, *encoding*, and *errors* parameters are passed down to " "*quote_via* (the *encoding* and *errors* parameters are only passed when a " "query element is a :class:`str`)." msgstr "" -#: ../Doc/library/urllib.parse.rst:608 +#: ../Doc/library/urllib.parse.rst:629 msgid "" "To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are " "provided in this module to parse query strings into Python data structures." msgstr "" -#: ../Doc/library/urllib.parse.rst:611 +#: ../Doc/library/urllib.parse.rst:632 msgid "" "Refer to :ref:`urllib examples ` to find out how urlencode " "method can be used for generating query string for a URL or data for POST." msgstr "" -#: ../Doc/library/urllib.parse.rst:614 +#: ../Doc/library/urllib.parse.rst:635 msgid "Query parameter supports bytes and string objects." msgstr "" -#: ../Doc/library/urllib.parse.rst:617 +#: ../Doc/library/urllib.parse.rst:638 msgid "*quote_via* parameter." msgstr "" -#: ../Doc/library/urllib.parse.rst:627 +#: ../Doc/library/urllib.parse.rst:648 msgid ":rfc:`3986` - Uniform Resource Identifiers" msgstr "" -#: ../Doc/library/urllib.parse.rst:624 +#: ../Doc/library/urllib.parse.rst:645 msgid "" "This is the current standard (STD66). Any changes to urllib.parse module " "should conform to this. Certain deviations could be observed, which are " @@ -777,47 +789,47 @@ msgid "" "requirements as commonly observed in major browsers." msgstr "" -#: ../Doc/library/urllib.parse.rst:630 +#: ../Doc/library/urllib.parse.rst:651 msgid ":rfc:`2732` - Format for Literal IPv6 Addresses in URL's." msgstr "" -#: ../Doc/library/urllib.parse.rst:630 +#: ../Doc/library/urllib.parse.rst:651 msgid "This specifies the parsing requirements of IPv6 URLs." msgstr "" -#: ../Doc/library/urllib.parse.rst:634 +#: ../Doc/library/urllib.parse.rst:655 msgid ":rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax" msgstr "" -#: ../Doc/library/urllib.parse.rst:633 +#: ../Doc/library/urllib.parse.rst:654 msgid "" "Document describing the generic syntactic requirements for both Uniform " "Resource Names (URNs) and Uniform Resource Locators (URLs)." msgstr "" -#: ../Doc/library/urllib.parse.rst:637 +#: ../Doc/library/urllib.parse.rst:658 msgid ":rfc:`2368` - The mailto URL scheme." msgstr "" -#: ../Doc/library/urllib.parse.rst:637 +#: ../Doc/library/urllib.parse.rst:658 msgid "Parsing requirements for mailto URL schemes." msgstr "" -#: ../Doc/library/urllib.parse.rst:642 +#: ../Doc/library/urllib.parse.rst:663 msgid ":rfc:`1808` - Relative Uniform Resource Locators" msgstr "" -#: ../Doc/library/urllib.parse.rst:640 +#: ../Doc/library/urllib.parse.rst:661 msgid "" "This Request For Comments includes the rules for joining an absolute and a " "relative URL, including a fair number of \"Abnormal Examples\" which govern " "the treatment of border cases." msgstr "" -#: ../Doc/library/urllib.parse.rst:644 +#: ../Doc/library/urllib.parse.rst:665 msgid ":rfc:`1738` - Uniform Resource Locators (URL)" msgstr "" -#: ../Doc/library/urllib.parse.rst:645 +#: ../Doc/library/urllib.parse.rst:666 msgid "This specifies the formal syntax and semantics of absolute URLs." msgstr "" diff --git a/library/urllib.request.po b/library/urllib.request.po index b37ec9c54..deab0b082 100644 --- a/library/urllib.request.po +++ b/library/urllib.request.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -546,7 +546,7 @@ msgstr "" msgid "A catch-all class to handle unknown URLs." msgstr "" -#: ../Doc/library/urllib.request.rst:455 ../Doc/library/urllib.request.rst:1130 +#: ../Doc/library/urllib.request.rst:455 ../Doc/library/urllib.request.rst:1150 msgid "Process HTTP error responses." msgstr "" @@ -709,40 +709,60 @@ msgstr "" msgid "" "*handler* should be an instance of :class:`BaseHandler`. The following " "methods are searched, and added to the possible chains (note that HTTP " -"errors are a special case)." +"errors are a special case). Note that, in the following, *protocol* should " +"be replaced with the actual protocol to handle, for example :meth:" +"`http_response` would be the HTTP protocol response handler. Also *type* " +"should be replaced with the actual HTTP code, for example :meth:" +"`http_error_404` would handle HTTP 404 errors." msgstr "" -#: ../Doc/library/urllib.request.rst:613 +#: ../Doc/library/urllib.request.rst:617 msgid "" -":meth:`protocol_open` --- signal that the handler knows how to open " +":meth:`_open` --- signal that the handler knows how to open " "*protocol* URLs." msgstr "" -#: ../Doc/library/urllib.request.rst:616 +#: ../Doc/library/urllib.request.rst:620 +msgid "See |protocol_open|_ for more information." +msgstr "" + +#: ../Doc/library/urllib.request.rst:622 msgid "" -":meth:`http_error_type` --- signal that the handler knows how to handle HTTP " -"errors with HTTP error code *type*." +":meth:`http_error_\\` --- signal that the handler knows how to " +"handle HTTP errors with HTTP error code *type*." +msgstr "" + +#: ../Doc/library/urllib.request.rst:625 +msgid "See |http_error_nnn|_ for more information." msgstr "" -#: ../Doc/library/urllib.request.rst:619 +#: ../Doc/library/urllib.request.rst:627 msgid "" -":meth:`protocol_error` --- signal that the handler knows how to handle " +":meth:`_error` --- signal that the handler knows how to handle " "errors from (non-\\ ``http``) *protocol*." msgstr "" -#: ../Doc/library/urllib.request.rst:622 +#: ../Doc/library/urllib.request.rst:630 msgid "" -":meth:`protocol_request` --- signal that the handler knows how to pre-" +":meth:`_request` --- signal that the handler knows how to pre-" "process *protocol* requests." msgstr "" -#: ../Doc/library/urllib.request.rst:625 +#: ../Doc/library/urllib.request.rst:633 +msgid "See |protocol_request|_ for more information." +msgstr "" + +#: ../Doc/library/urllib.request.rst:635 msgid "" -":meth:`protocol_response` --- signal that the handler knows how to post-" +":meth:`_response` --- signal that the handler knows how to post-" "process *protocol* responses." msgstr "" -#: ../Doc/library/urllib.request.rst:631 +#: ../Doc/library/urllib.request.rst:638 +msgid "See |protocol_response|_ for more information." +msgstr "" + +#: ../Doc/library/urllib.request.rst:647 msgid "" "Open the given *url* (which can be a request object or a string), optionally " "passing the given *data*. Arguments, return values and exceptions raised are " @@ -754,111 +774,111 @@ msgid "" "HTTP, HTTPS and FTP connections)." msgstr "" -#: ../Doc/library/urllib.request.rst:643 +#: ../Doc/library/urllib.request.rst:659 msgid "" "Handle an error of the given protocol. This will call the registered error " "handlers for the given protocol with the given arguments (which are protocol " "specific). The HTTP protocol is a special case which uses the HTTP response " "code to determine the specific error handler; refer to the :meth:`http_error_" -"\\*` methods of the handler classes." +"\\` methods of the handler classes." msgstr "" -#: ../Doc/library/urllib.request.rst:649 +#: ../Doc/library/urllib.request.rst:665 msgid "" "Return values and exceptions raised are the same as those of :func:`urlopen`." msgstr "" -#: ../Doc/library/urllib.request.rst:651 +#: ../Doc/library/urllib.request.rst:667 msgid "OpenerDirector objects open URLs in three stages:" msgstr "" -#: ../Doc/library/urllib.request.rst:653 +#: ../Doc/library/urllib.request.rst:669 msgid "" "The order in which these methods are called within each stage is determined " "by sorting the handler instances." msgstr "" -#: ../Doc/library/urllib.request.rst:656 +#: ../Doc/library/urllib.request.rst:672 msgid "" -"Every handler with a method named like :meth:`protocol_request` has that " +"Every handler with a method named like :meth:`_request` has that " "method called to pre-process the request." msgstr "" -#: ../Doc/library/urllib.request.rst:659 +#: ../Doc/library/urllib.request.rst:675 msgid "" -"Handlers with a method named like :meth:`protocol_open` are called to handle " -"the request. This stage ends when a handler either returns a non-\\ :const:" -"`None` value (ie. a response), or raises an exception (usually :exc:`~urllib." -"error.URLError`). Exceptions are allowed to propagate." +"Handlers with a method named like :meth:`_open` are called to " +"handle the request. This stage ends when a handler either returns a non-\\ :" +"const:`None` value (ie. a response), or raises an exception (usually :exc:" +"`~urllib.error.URLError`). Exceptions are allowed to propagate." msgstr "" -#: ../Doc/library/urllib.request.rst:664 +#: ../Doc/library/urllib.request.rst:680 msgid "" "In fact, the above algorithm is first tried for methods named :meth:" "`default_open`. If all such methods return :const:`None`, the algorithm is " -"repeated for methods named like :meth:`protocol_open`. If all such methods " -"return :const:`None`, the algorithm is repeated for methods named :meth:" -"`unknown_open`." +"repeated for methods named like :meth:`_open`. If all such " +"methods return :const:`None`, the algorithm is repeated for methods named :" +"meth:`unknown_open`." msgstr "" -#: ../Doc/library/urllib.request.rst:670 +#: ../Doc/library/urllib.request.rst:686 msgid "" "Note that the implementation of these methods may involve calls of the " "parent :class:`OpenerDirector` instance's :meth:`~OpenerDirector.open` and :" "meth:`~OpenerDirector.error` methods." msgstr "" -#: ../Doc/library/urllib.request.rst:674 +#: ../Doc/library/urllib.request.rst:690 msgid "" -"Every handler with a method named like :meth:`protocol_response` has that " +"Every handler with a method named like :meth:`_response` has that " "method called to post-process the response." msgstr "" -#: ../Doc/library/urllib.request.rst:681 +#: ../Doc/library/urllib.request.rst:697 msgid "BaseHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:683 +#: ../Doc/library/urllib.request.rst:699 msgid "" ":class:`BaseHandler` objects provide a couple of methods that are directly " "useful, and others that are meant to be used by derived classes. These are " "intended for direct use:" msgstr "" -#: ../Doc/library/urllib.request.rst:690 +#: ../Doc/library/urllib.request.rst:706 msgid "Add a director as parent." msgstr "" -#: ../Doc/library/urllib.request.rst:695 +#: ../Doc/library/urllib.request.rst:711 msgid "Remove any parents." msgstr "" -#: ../Doc/library/urllib.request.rst:697 +#: ../Doc/library/urllib.request.rst:713 msgid "" "The following attribute and methods should only be used by classes derived " "from :class:`BaseHandler`." msgstr "" -#: ../Doc/library/urllib.request.rst:702 +#: ../Doc/library/urllib.request.rst:718 msgid "" "The convention has been adopted that subclasses defining :meth:" -"`protocol_request` or :meth:`protocol_response` methods are named :class:`" -"\\*Processor`; all others are named :class:`\\*Handler`." +"`_request` or :meth:`_response` methods are named :class:" +"`\\*Processor`; all others are named :class:`\\*Handler`." msgstr "" -#: ../Doc/library/urllib.request.rst:709 +#: ../Doc/library/urllib.request.rst:725 msgid "" "A valid :class:`OpenerDirector`, which can be used to open using a different " "protocol, or handle errors." msgstr "" -#: ../Doc/library/urllib.request.rst:715 +#: ../Doc/library/urllib.request.rst:731 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " "define it if they want to catch all URLs." msgstr "" -#: ../Doc/library/urllib.request.rst:718 +#: ../Doc/library/urllib.request.rst:734 msgid "" "This method, if implemented, will be called by the parent :class:" "`OpenerDirector`. It should return a file-like object as described in the " @@ -868,38 +888,38 @@ msgid "" "`URLError`)." msgstr "" -#: ../Doc/library/urllib.request.rst:725 +#: ../Doc/library/urllib.request.rst:741 msgid "This method will be called before any protocol-specific open method." msgstr "" -#: ../Doc/library/urllib.request.rst:731 +#: ../Doc/library/urllib.request.rst:748 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " "define it if they want to handle URLs with the given protocol." msgstr "" -#: ../Doc/library/urllib.request.rst:734 +#: ../Doc/library/urllib.request.rst:751 msgid "" "This method, if defined, will be called by the parent :class:" "`OpenerDirector`. Return values should be the same as for :meth:" "`default_open`." msgstr "" -#: ../Doc/library/urllib.request.rst:740 +#: ../Doc/library/urllib.request.rst:757 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " "define it if they want to catch all URLs with no specific registered handler " "to open it." msgstr "" -#: ../Doc/library/urllib.request.rst:744 +#: ../Doc/library/urllib.request.rst:761 msgid "" "This method, if implemented, will be called by the :attr:`parent` :class:" "`OpenerDirector`. Return values should be the same as for :meth:" "`default_open`." msgstr "" -#: ../Doc/library/urllib.request.rst:751 +#: ../Doc/library/urllib.request.rst:768 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " "override it if they intend to provide a catch-all for otherwise unhandled " @@ -908,7 +928,7 @@ msgid "" "other circumstances." msgstr "" -#: ../Doc/library/urllib.request.rst:756 +#: ../Doc/library/urllib.request.rst:773 msgid "" "*req* will be a :class:`Request` object, *fp* will be a file-like object " "with the HTTP error body, *code* will be the three-digit code of the error, " @@ -916,49 +936,49 @@ msgid "" "mapping object with the headers of the error." msgstr "" -#: ../Doc/library/urllib.request.rst:761 +#: ../Doc/library/urllib.request.rst:778 msgid "" "Return values and exceptions raised should be the same as those of :func:" "`urlopen`." msgstr "" -#: ../Doc/library/urllib.request.rst:767 +#: ../Doc/library/urllib.request.rst:785 msgid "" "*nnn* should be a three-digit HTTP error code. This method is also not " "defined in :class:`BaseHandler`, but will be called, if it exists, on an " "instance of a subclass, when an HTTP error with code *nnn* occurs." msgstr "" -#: ../Doc/library/urllib.request.rst:771 +#: ../Doc/library/urllib.request.rst:789 msgid "Subclasses should override this method to handle specific HTTP errors." msgstr "" -#: ../Doc/library/urllib.request.rst:773 +#: ../Doc/library/urllib.request.rst:791 msgid "" "Arguments, return values and exceptions raised should be the same as for :" "meth:`http_error_default`." msgstr "" -#: ../Doc/library/urllib.request.rst:780 +#: ../Doc/library/urllib.request.rst:799 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " "define it if they want to pre-process requests of the given protocol." msgstr "" -#: ../Doc/library/urllib.request.rst:783 +#: ../Doc/library/urllib.request.rst:802 msgid "" "This method, if defined, will be called by the parent :class:" "`OpenerDirector`. *req* will be a :class:`Request` object. The return value " "should be a :class:`Request` object." msgstr "" -#: ../Doc/library/urllib.request.rst:791 +#: ../Doc/library/urllib.request.rst:811 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " "define it if they want to post-process responses of the given protocol." msgstr "" -#: ../Doc/library/urllib.request.rst:794 +#: ../Doc/library/urllib.request.rst:814 msgid "" "This method, if defined, will be called by the parent :class:" "`OpenerDirector`. *req* will be a :class:`Request` object. *response* will " @@ -967,25 +987,25 @@ msgid "" "return value of :func:`urlopen`." msgstr "" -#: ../Doc/library/urllib.request.rst:804 +#: ../Doc/library/urllib.request.rst:824 msgid "HTTPRedirectHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:808 +#: ../Doc/library/urllib.request.rst:828 msgid "" "Some HTTP redirections require action from this module's client code. If " "this is the case, :exc:`~urllib.error.HTTPError` is raised. See :rfc:`2616` " "for details of the precise meanings of the various redirection codes." msgstr "" -#: ../Doc/library/urllib.request.rst:812 +#: ../Doc/library/urllib.request.rst:832 msgid "" "An :class:`HTTPError` exception raised as a security consideration if the " "HTTPRedirectHandler is presented with a redirected URL which is not an HTTP, " "HTTPS or FTP URL." msgstr "" -#: ../Doc/library/urllib.request.rst:819 +#: ../Doc/library/urllib.request.rst:839 msgid "" "Return a :class:`Request` or ``None`` in response to a redirect. This is " "called by the default implementations of the :meth:`http_error_30\\*` " @@ -996,7 +1016,7 @@ msgid "" "URL, or return ``None`` if you can't but another handler might." msgstr "" -#: ../Doc/library/urllib.request.rst:829 +#: ../Doc/library/urllib.request.rst:849 msgid "" "The default implementation of this method does not strictly follow :rfc:" "`2616`, which says that 301 and 302 responses to ``POST`` requests must not " @@ -1005,65 +1025,65 @@ msgid "" "POST to a ``GET``, and the default implementation reproduces this behavior." msgstr "" -#: ../Doc/library/urllib.request.rst:838 +#: ../Doc/library/urllib.request.rst:858 msgid "" "Redirect to the ``Location:`` or ``URI:`` URL. This method is called by the " "parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' " "response." msgstr "" -#: ../Doc/library/urllib.request.rst:844 +#: ../Doc/library/urllib.request.rst:864 msgid "" "The same as :meth:`http_error_301`, but called for the 'found' response." msgstr "" -#: ../Doc/library/urllib.request.rst:849 +#: ../Doc/library/urllib.request.rst:869 msgid "" "The same as :meth:`http_error_301`, but called for the 'see other' response." msgstr "" -#: ../Doc/library/urllib.request.rst:854 +#: ../Doc/library/urllib.request.rst:874 msgid "" "The same as :meth:`http_error_301`, but called for the 'temporary redirect' " "response." msgstr "" -#: ../Doc/library/urllib.request.rst:861 +#: ../Doc/library/urllib.request.rst:881 msgid "HTTPCookieProcessor Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:863 +#: ../Doc/library/urllib.request.rst:883 msgid ":class:`HTTPCookieProcessor` instances have one attribute:" msgstr "" -#: ../Doc/library/urllib.request.rst:867 +#: ../Doc/library/urllib.request.rst:887 msgid "The :class:`http.cookiejar.CookieJar` in which cookies are stored." msgstr "" -#: ../Doc/library/urllib.request.rst:873 +#: ../Doc/library/urllib.request.rst:893 msgid "ProxyHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:879 +#: ../Doc/library/urllib.request.rst:899 msgid "" -"The :class:`ProxyHandler` will have a method :meth:`protocol_open` for every " -"*protocol* which has a proxy in the *proxies* dictionary given in the " +"The :class:`ProxyHandler` will have a method :meth:`_open` for " +"every *protocol* which has a proxy in the *proxies* dictionary given in the " "constructor. The method will modify requests to go through the proxy, by " "calling ``request.set_proxy()``, and call the next handler in the chain to " "actually execute the protocol." msgstr "" -#: ../Doc/library/urllib.request.rst:889 +#: ../Doc/library/urllib.request.rst:909 msgid "HTTPPasswordMgr Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:891 +#: ../Doc/library/urllib.request.rst:911 msgid "" "These methods are available on :class:`HTTPPasswordMgr` and :class:" "`HTTPPasswordMgrWithDefaultRealm` objects." msgstr "" -#: ../Doc/library/urllib.request.rst:897 +#: ../Doc/library/urllib.request.rst:917 msgid "" "*uri* can be either a single URI, or a sequence of URIs. *realm*, *user* and " "*passwd* must be strings. This causes ``(user, passwd)`` to be used as " @@ -1071,30 +1091,30 @@ msgid "" "of the given URIs is given." msgstr "" -#: ../Doc/library/urllib.request.rst:905 +#: ../Doc/library/urllib.request.rst:925 msgid "" "Get user/password for given realm and URI, if any. This method will return " "``(None, None)`` if there is no matching user/password." msgstr "" -#: ../Doc/library/urllib.request.rst:908 +#: ../Doc/library/urllib.request.rst:928 msgid "" "For :class:`HTTPPasswordMgrWithDefaultRealm` objects, the realm ``None`` " "will be searched if the given *realm* has no matching user/password." msgstr "" -#: ../Doc/library/urllib.request.rst:915 +#: ../Doc/library/urllib.request.rst:935 msgid "HTTPPasswordMgrWithPriorAuth Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:917 +#: ../Doc/library/urllib.request.rst:937 msgid "" "This password manager extends :class:`HTTPPasswordMgrWithDefaultRealm` to " "support tracking URIs for which authentication credentials should always be " "sent." msgstr "" -#: ../Doc/library/urllib.request.rst:924 +#: ../Doc/library/urllib.request.rst:944 msgid "" "*realm*, *uri*, *user*, *passwd* are as for :meth:`HTTPPasswordMgr." "add_password`. *is_authenticated* sets the initial value of the " @@ -1102,25 +1122,25 @@ msgid "" "*is_authenticated* is specified as ``True``, *realm* is ignored." msgstr "" -#: ../Doc/library/urllib.request.rst:932 +#: ../Doc/library/urllib.request.rst:952 msgid "Same as for :class:`HTTPPasswordMgrWithDefaultRealm` objects" msgstr "" -#: ../Doc/library/urllib.request.rst:938 +#: ../Doc/library/urllib.request.rst:958 msgid "" "Update the ``is_authenticated`` flag for the given *uri* or list of URIs." msgstr "" -#: ../Doc/library/urllib.request.rst:944 +#: ../Doc/library/urllib.request.rst:964 msgid "" "Returns the current state of the ``is_authenticated`` flag for the given URI." msgstr "" -#: ../Doc/library/urllib.request.rst:951 +#: ../Doc/library/urllib.request.rst:971 msgid "AbstractBasicAuthHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:956 +#: ../Doc/library/urllib.request.rst:976 msgid "" "Handle an authentication request by getting a user/password pair, and re-" "trying the request. *authreq* should be the name of the header where the " @@ -1129,7 +1149,7 @@ msgid "" "`Request` object, and *headers* should be the error headers." msgstr "" -#: ../Doc/library/urllib.request.rst:962 +#: ../Doc/library/urllib.request.rst:982 msgid "" "*host* is either an authority (e.g. ``\"python.org\"``) or a URL containing " "an authority component (e.g. ``\"http://python.org/\"``). In either case, " @@ -1137,25 +1157,25 @@ msgid "" "and ``\"python.org:80\"`` are fine, ``\"joe:password@python.org\"`` is not)." msgstr "" -#: ../Doc/library/urllib.request.rst:971 +#: ../Doc/library/urllib.request.rst:991 msgid "HTTPBasicAuthHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:976 ../Doc/library/urllib.request.rst:987 -#: ../Doc/library/urllib.request.rst:1012 -#: ../Doc/library/urllib.request.rst:1023 +#: ../Doc/library/urllib.request.rst:996 ../Doc/library/urllib.request.rst:1007 +#: ../Doc/library/urllib.request.rst:1032 +#: ../Doc/library/urllib.request.rst:1043 msgid "Retry the request with authentication information, if available." msgstr "" -#: ../Doc/library/urllib.request.rst:982 +#: ../Doc/library/urllib.request.rst:1002 msgid "ProxyBasicAuthHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:993 +#: ../Doc/library/urllib.request.rst:1013 msgid "AbstractDigestAuthHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:998 +#: ../Doc/library/urllib.request.rst:1018 msgid "" "*authreq* should be the name of the header where the information about the " "realm is included in the request, *host* should be the host to authenticate " @@ -1163,55 +1183,55 @@ msgid "" "should be the error headers." msgstr "" -#: ../Doc/library/urllib.request.rst:1007 +#: ../Doc/library/urllib.request.rst:1027 msgid "HTTPDigestAuthHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1018 +#: ../Doc/library/urllib.request.rst:1038 msgid "ProxyDigestAuthHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1029 +#: ../Doc/library/urllib.request.rst:1049 msgid "HTTPHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1034 +#: ../Doc/library/urllib.request.rst:1054 msgid "" "Send an HTTP request, which can be either GET or POST, depending on ``req." "has_data()``." msgstr "" -#: ../Doc/library/urllib.request.rst:1041 +#: ../Doc/library/urllib.request.rst:1061 msgid "HTTPSHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1046 +#: ../Doc/library/urllib.request.rst:1066 msgid "" "Send an HTTPS request, which can be either GET or POST, depending on ``req." "has_data()``." msgstr "" -#: ../Doc/library/urllib.request.rst:1053 +#: ../Doc/library/urllib.request.rst:1073 msgid "FileHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1058 +#: ../Doc/library/urllib.request.rst:1078 msgid "" "Open the file locally, if there is no host name, or the host name is " "``'localhost'``." msgstr "" -#: ../Doc/library/urllib.request.rst:1061 +#: ../Doc/library/urllib.request.rst:1081 msgid "" "This method is applicable only for local hostnames. When a remote hostname " "is given, an :exc:`~urllib.error.URLError` is raised." msgstr "" -#: ../Doc/library/urllib.request.rst:1069 +#: ../Doc/library/urllib.request.rst:1089 msgid "DataHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1073 +#: ../Doc/library/urllib.request.rst:1093 msgid "" "Read a data URL. This kind of URL contains the content encoded in the URL " "itself. The data URL syntax is specified in :rfc:`2397`. This implementation " @@ -1221,83 +1241,83 @@ msgid "" "implementation will raise an :exc:`ValueError` in that case." msgstr "" -#: ../Doc/library/urllib.request.rst:1084 +#: ../Doc/library/urllib.request.rst:1104 msgid "FTPHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1089 +#: ../Doc/library/urllib.request.rst:1109 msgid "" "Open the FTP file indicated by *req*. The login is always done with empty " "username and password." msgstr "" -#: ../Doc/library/urllib.request.rst:1096 +#: ../Doc/library/urllib.request.rst:1116 msgid "CacheFTPHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1098 +#: ../Doc/library/urllib.request.rst:1118 msgid "" ":class:`CacheFTPHandler` objects are :class:`FTPHandler` objects with the " "following additional methods:" msgstr "" -#: ../Doc/library/urllib.request.rst:1104 +#: ../Doc/library/urllib.request.rst:1124 msgid "Set timeout of connections to *t* seconds." msgstr "" -#: ../Doc/library/urllib.request.rst:1109 +#: ../Doc/library/urllib.request.rst:1129 msgid "Set maximum number of cached connections to *m*." msgstr "" -#: ../Doc/library/urllib.request.rst:1115 +#: ../Doc/library/urllib.request.rst:1135 msgid "UnknownHandler Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1120 +#: ../Doc/library/urllib.request.rst:1140 msgid "Raise a :exc:`~urllib.error.URLError` exception." msgstr "" -#: ../Doc/library/urllib.request.rst:1126 +#: ../Doc/library/urllib.request.rst:1146 msgid "HTTPErrorProcessor Objects" msgstr "" -#: ../Doc/library/urllib.request.rst:1132 +#: ../Doc/library/urllib.request.rst:1152 msgid "For 200 error codes, the response object is returned immediately." msgstr "" -#: ../Doc/library/urllib.request.rst:1134 +#: ../Doc/library/urllib.request.rst:1154 msgid "" "For non-200 error codes, this simply passes the job on to the :meth:" -"`protocol_error_code` handler methods, via :meth:`OpenerDirector.error`. " +"`http_error_\\` handler methods, via :meth:`OpenerDirector.error`. " "Eventually, :class:`HTTPDefaultErrorHandler` will raise an :exc:`~urllib." "error.HTTPError` if no other handler handles the error." msgstr "" -#: ../Doc/library/urllib.request.rst:1142 +#: ../Doc/library/urllib.request.rst:1162 msgid "Process HTTPS error responses." msgstr "" -#: ../Doc/library/urllib.request.rst:1144 +#: ../Doc/library/urllib.request.rst:1164 msgid "The behavior is same as :meth:`http_response`." msgstr "" -#: ../Doc/library/urllib.request.rst:1150 +#: ../Doc/library/urllib.request.rst:1170 msgid "Examples" msgstr "Exemples" -#: ../Doc/library/urllib.request.rst:1152 +#: ../Doc/library/urllib.request.rst:1172 msgid "" "In addition to the examples below, more examples are given in :ref:`urllib-" "howto`." msgstr "" -#: ../Doc/library/urllib.request.rst:1155 +#: ../Doc/library/urllib.request.rst:1175 msgid "" "This example gets the python.org main page and displays the first 300 bytes " "of it. ::" msgstr "" -#: ../Doc/library/urllib.request.rst:1168 +#: ../Doc/library/urllib.request.rst:1188 msgid "" "Note that urlopen returns a bytes object. This is because there is no way " "for urlopen to automatically determine the encoding of the byte stream it " @@ -1306,45 +1326,45 @@ msgid "" "appropriate encoding." msgstr "" -#: ../Doc/library/urllib.request.rst:1174 +#: ../Doc/library/urllib.request.rst:1194 msgid "" "The following W3C document, https://www.w3.org/International/O-charset\\ , " "lists the various ways in which an (X)HTML or an XML document could have " "specified its encoding information." msgstr "" -#: ../Doc/library/urllib.request.rst:1178 +#: ../Doc/library/urllib.request.rst:1198 msgid "" "As the python.org website uses *utf-8* encoding as specified in its meta " "tag, we will use the same for decoding the bytes object. ::" msgstr "" -#: ../Doc/library/urllib.request.rst:1187 +#: ../Doc/library/urllib.request.rst:1207 msgid "" "It is also possible to achieve the same result without using the :term:" "`context manager` approach. ::" msgstr "" -#: ../Doc/library/urllib.request.rst:1196 +#: ../Doc/library/urllib.request.rst:1216 msgid "" "In the following example, we are sending a data-stream to the stdin of a CGI " "and reading the data it returns to us. Note that this example will only work " "when the Python installation supports SSL. ::" msgstr "" -#: ../Doc/library/urllib.request.rst:1208 +#: ../Doc/library/urllib.request.rst:1228 msgid "The code for the sample CGI used in the above example is::" msgstr "" -#: ../Doc/library/urllib.request.rst:1215 +#: ../Doc/library/urllib.request.rst:1235 msgid "Here is an example of doing a ``PUT`` request using :class:`Request`::" msgstr "" -#: ../Doc/library/urllib.request.rst:1225 +#: ../Doc/library/urllib.request.rst:1245 msgid "Use of Basic HTTP Authentication::" msgstr "" -#: ../Doc/library/urllib.request.rst:1239 +#: ../Doc/library/urllib.request.rst:1259 msgid "" ":func:`build_opener` provides many handlers by default, including a :class:" "`ProxyHandler`. By default, :class:`ProxyHandler` uses the environment " @@ -1353,71 +1373,71 @@ msgid "" "read to obtain the HTTP proxy's URL." msgstr "" -#: ../Doc/library/urllib.request.rst:1245 +#: ../Doc/library/urllib.request.rst:1265 msgid "" "This example replaces the default :class:`ProxyHandler` with one that uses " "programmatically-supplied proxy URLs, and adds proxy authorization support " "with :class:`ProxyBasicAuthHandler`. ::" msgstr "" -#: ../Doc/library/urllib.request.rst:1257 +#: ../Doc/library/urllib.request.rst:1277 msgid "Adding HTTP headers:" msgstr "" -#: ../Doc/library/urllib.request.rst:1259 +#: ../Doc/library/urllib.request.rst:1279 msgid "Use the *headers* argument to the :class:`Request` constructor, or::" msgstr "" -#: ../Doc/library/urllib.request.rst:1268 +#: ../Doc/library/urllib.request.rst:1288 msgid "" ":class:`OpenerDirector` automatically adds a :mailheader:`User-Agent` header " "to every :class:`Request`. To change this::" msgstr "" -#: ../Doc/library/urllib.request.rst:1276 +#: ../Doc/library/urllib.request.rst:1296 msgid "" "Also, remember that a few standard headers (:mailheader:`Content-Length`, :" "mailheader:`Content-Type` and :mailheader:`Host`) are added when the :class:" "`Request` is passed to :func:`urlopen` (or :meth:`OpenerDirector.open`)." msgstr "" -#: ../Doc/library/urllib.request.rst:1283 +#: ../Doc/library/urllib.request.rst:1303 msgid "" "Here is an example session that uses the ``GET`` method to retrieve a URL " "containing parameters::" msgstr "" -#: ../Doc/library/urllib.request.rst:1294 +#: ../Doc/library/urllib.request.rst:1314 msgid "" "The following example uses the ``POST`` method instead. Note that params " "output from urlencode is encoded to bytes before it is sent to urlopen as " "data::" msgstr "" -#: ../Doc/library/urllib.request.rst:1305 +#: ../Doc/library/urllib.request.rst:1325 msgid "" "The following example uses an explicitly specified HTTP proxy, overriding " "environment settings::" msgstr "" -#: ../Doc/library/urllib.request.rst:1315 +#: ../Doc/library/urllib.request.rst:1335 msgid "" "The following example uses no proxies at all, overriding environment " "settings::" msgstr "" -#: ../Doc/library/urllib.request.rst:1325 +#: ../Doc/library/urllib.request.rst:1345 msgid "Legacy interface" msgstr "" -#: ../Doc/library/urllib.request.rst:1327 +#: ../Doc/library/urllib.request.rst:1347 msgid "" "The following functions and classes are ported from the Python 2 module " "``urllib`` (as opposed to ``urllib2``). They might become deprecated at " "some point in the future." msgstr "" -#: ../Doc/library/urllib.request.rst:1333 +#: ../Doc/library/urllib.request.rst:1353 msgid "" "Copy a network object denoted by a URL to a local file. If the URL points to " "a local file, the object will not be copied unless filename is supplied. " @@ -1427,7 +1447,7 @@ msgid "" "remote object). Exceptions are the same as for :func:`urlopen`." msgstr "" -#: ../Doc/library/urllib.request.rst:1340 +#: ../Doc/library/urllib.request.rst:1360 msgid "" "The second argument, if present, specifies the file location to copy to (if " "absent, the location will be a tempfile with a generated name). The third " @@ -1439,11 +1459,11 @@ msgid "" "file size in response to a retrieval request." msgstr "" -#: ../Doc/library/urllib.request.rst:1349 +#: ../Doc/library/urllib.request.rst:1369 msgid "The following example illustrates the most common usage scenario::" msgstr "" -#: ../Doc/library/urllib.request.rst:1356 +#: ../Doc/library/urllib.request.rst:1376 msgid "" "If the *url* uses the :file:`http:` scheme identifier, the optional *data* " "argument may be given to specify a ``POST`` request (normally the request " @@ -1452,7 +1472,7 @@ msgid "" "parse.urlencode` function." msgstr "" -#: ../Doc/library/urllib.request.rst:1362 +#: ../Doc/library/urllib.request.rst:1382 msgid "" ":func:`urlretrieve` will raise :exc:`ContentTooShortError` when it detects " "that the amount of data available was less than the expected amount (which " @@ -1460,40 +1480,40 @@ msgid "" "example, when the download is interrupted." msgstr "" -#: ../Doc/library/urllib.request.rst:1367 +#: ../Doc/library/urllib.request.rst:1387 msgid "" "The *Content-Length* is treated as a lower bound: if there's more data to " "read, urlretrieve reads more data, but if less data is available, it raises " "the exception." msgstr "" -#: ../Doc/library/urllib.request.rst:1371 +#: ../Doc/library/urllib.request.rst:1391 msgid "" "You can still retrieve the downloaded data in this case, it is stored in " "the :attr:`content` attribute of the exception instance." msgstr "" -#: ../Doc/library/urllib.request.rst:1374 +#: ../Doc/library/urllib.request.rst:1394 msgid "" "If no *Content-Length* header was supplied, urlretrieve can not check the " "size of the data it has downloaded, and just returns it. In this case you " "just have to assume that the download was successful." msgstr "" -#: ../Doc/library/urllib.request.rst:1380 +#: ../Doc/library/urllib.request.rst:1400 msgid "" "Cleans up temporary files that may have been left behind by previous calls " "to :func:`urlretrieve`." msgstr "" -#: ../Doc/library/urllib.request.rst:1387 +#: ../Doc/library/urllib.request.rst:1407 msgid "" "Base class for opening and reading URLs. Unless you need to support opening " "objects using schemes other than :file:`http:`, :file:`ftp:`, or :file:`file:" "`, you probably want to use :class:`FancyURLopener`." msgstr "" -#: ../Doc/library/urllib.request.rst:1391 +#: ../Doc/library/urllib.request.rst:1411 msgid "" "By default, the :class:`URLopener` class sends a :mailheader:`User-Agent` " "header of ``urllib/VVV``, where *VVV* is the :mod:`urllib` version number. " @@ -1503,7 +1523,7 @@ msgid "" "subclass definition." msgstr "" -#: ../Doc/library/urllib.request.rst:1397 +#: ../Doc/library/urllib.request.rst:1417 msgid "" "The optional *proxies* parameter should be a dictionary mapping scheme names " "to proxy URLs, where an empty dictionary turns proxies off completely. Its " @@ -1511,7 +1531,7 @@ msgid "" "be used if present, as discussed in the definition of :func:`urlopen`, above." msgstr "" -#: ../Doc/library/urllib.request.rst:1402 +#: ../Doc/library/urllib.request.rst:1422 msgid "" "Additional keyword parameters, collected in *x509*, may be used for " "authentication of the client when using the :file:`https:` scheme. The " @@ -1519,13 +1539,13 @@ msgid "" "certificate; both are needed to support client authentication." msgstr "" -#: ../Doc/library/urllib.request.rst:1407 +#: ../Doc/library/urllib.request.rst:1427 msgid "" ":class:`URLopener` objects will raise an :exc:`OSError` exception if the " "server returns an error code." msgstr "" -#: ../Doc/library/urllib.request.rst:1412 +#: ../Doc/library/urllib.request.rst:1432 msgid "" "Open *fullurl* using the appropriate protocol. This method sets up cache " "and proxy information, then calls the appropriate open method with its input " @@ -1534,11 +1554,11 @@ msgid "" "`urlopen`." msgstr "" -#: ../Doc/library/urllib.request.rst:1421 +#: ../Doc/library/urllib.request.rst:1441 msgid "Overridable interface to open unknown URL types." msgstr "" -#: ../Doc/library/urllib.request.rst:1426 +#: ../Doc/library/urllib.request.rst:1446 msgid "" "Retrieves the contents of *url* and places it in *filename*. The return " "value is a tuple consisting of a local filename and either an :class:`email." @@ -1555,7 +1575,7 @@ msgid "" "*reporthook* is ignored for local URLs." msgstr "" -#: ../Doc/library/urllib.request.rst:1439 +#: ../Doc/library/urllib.request.rst:1459 msgid "" "If the *url* uses the :file:`http:` scheme identifier, the optional *data* " "argument may be given to specify a ``POST`` request (normally the request " @@ -1564,7 +1584,7 @@ msgid "" "urlencode` function." msgstr "" -#: ../Doc/library/urllib.request.rst:1448 +#: ../Doc/library/urllib.request.rst:1468 msgid "" "Variable that specifies the user agent of the opener object. To get :mod:" "`urllib` to tell servers that it is a particular user agent, set this in a " @@ -1572,7 +1592,7 @@ msgid "" "constructor." msgstr "" -#: ../Doc/library/urllib.request.rst:1458 +#: ../Doc/library/urllib.request.rst:1478 msgid "" ":class:`FancyURLopener` subclasses :class:`URLopener` providing default " "handling for the following HTTP response codes: 301, 302, 303, 307 and 401. " @@ -1583,14 +1603,14 @@ msgid "" "defaults to 10." msgstr "" -#: ../Doc/library/urllib.request.rst:1465 +#: ../Doc/library/urllib.request.rst:1485 msgid "" "For all other response codes, the method :meth:`http_error_default` is " "called which you can override in subclasses to handle the error " "appropriately." msgstr "" -#: ../Doc/library/urllib.request.rst:1470 +#: ../Doc/library/urllib.request.rst:1490 msgid "" "According to the letter of :rfc:`2616`, 301 and 302 responses to POST " "requests must not be automatically redirected without confirmation by the " @@ -1599,13 +1619,13 @@ msgid "" "behaviour." msgstr "" -#: ../Doc/library/urllib.request.rst:1475 +#: ../Doc/library/urllib.request.rst:1495 msgid "" "The parameters to the constructor are the same as those for :class:" "`URLopener`." msgstr "" -#: ../Doc/library/urllib.request.rst:1479 +#: ../Doc/library/urllib.request.rst:1499 msgid "" "When performing basic authentication, a :class:`FancyURLopener` instance " "calls its :meth:`prompt_user_passwd` method. The default implementation " @@ -1614,59 +1634,59 @@ msgid "" "needed." msgstr "" -#: ../Doc/library/urllib.request.rst:1484 +#: ../Doc/library/urllib.request.rst:1504 msgid "" "The :class:`FancyURLopener` class offers one additional method that should " "be overloaded to provide the appropriate behavior:" msgstr "" -#: ../Doc/library/urllib.request.rst:1489 +#: ../Doc/library/urllib.request.rst:1509 msgid "" "Return information needed to authenticate the user at the given host in the " "specified security realm. The return value should be a tuple, ``(user, " "password)``, which can be used for basic authentication." msgstr "" -#: ../Doc/library/urllib.request.rst:1493 +#: ../Doc/library/urllib.request.rst:1513 msgid "" "The implementation prompts for this information on the terminal; an " "application should override this method to use an appropriate interaction " "model in the local environment." msgstr "" -#: ../Doc/library/urllib.request.rst:1499 +#: ../Doc/library/urllib.request.rst:1519 msgid ":mod:`urllib.request` Restrictions" msgstr "" -#: ../Doc/library/urllib.request.rst:1505 +#: ../Doc/library/urllib.request.rst:1525 msgid "" "Currently, only the following protocols are supported: HTTP (versions 0.9 " "and 1.0), FTP, local files, and data URLs." msgstr "" -#: ../Doc/library/urllib.request.rst:1508 +#: ../Doc/library/urllib.request.rst:1528 msgid "Added support for data URLs." msgstr "" -#: ../Doc/library/urllib.request.rst:1510 +#: ../Doc/library/urllib.request.rst:1530 msgid "" "The caching feature of :func:`urlretrieve` has been disabled until someone " "finds the time to hack proper processing of Expiration time headers." msgstr "" -#: ../Doc/library/urllib.request.rst:1513 +#: ../Doc/library/urllib.request.rst:1533 msgid "" "There should be a function to query whether a particular URL is in the cache." msgstr "" -#: ../Doc/library/urllib.request.rst:1515 +#: ../Doc/library/urllib.request.rst:1535 msgid "" "For backward compatibility, if a URL appears to point to a local file but " "the file can't be opened, the URL is re-interpreted using the FTP protocol. " "This can sometimes cause confusing error messages." msgstr "" -#: ../Doc/library/urllib.request.rst:1519 +#: ../Doc/library/urllib.request.rst:1539 msgid "" "The :func:`urlopen` and :func:`urlretrieve` functions can cause arbitrarily " "long delays while waiting for a network connection to be set up. This means " @@ -1674,7 +1694,7 @@ msgid "" "functions without using threads." msgstr "" -#: ../Doc/library/urllib.request.rst:1528 +#: ../Doc/library/urllib.request.rst:1548 msgid "" "The data returned by :func:`urlopen` or :func:`urlretrieve` is the raw data " "returned by the server. This may be binary data (such as an image), plain " @@ -1684,7 +1704,7 @@ msgid "" "module :mod:`html.parser` to parse it." msgstr "" -#: ../Doc/library/urllib.request.rst:1537 +#: ../Doc/library/urllib.request.rst:1557 msgid "" "The code handling the FTP protocol cannot differentiate between a file and a " "directory. This can lead to unexpected behavior when attempting to read a " @@ -1702,11 +1722,11 @@ msgid "" "meet your needs." msgstr "" -#: ../Doc/library/urllib.request.rst:1554 +#: ../Doc/library/urllib.request.rst:1574 msgid ":mod:`urllib.response` --- Response classes used by urllib" msgstr "" -#: ../Doc/library/urllib.request.rst:1559 +#: ../Doc/library/urllib.request.rst:1579 msgid "" "The :mod:`urllib.response` module defines functions and classes which define " "a minimal file like interface, including ``read()`` and ``readline()``. The " diff --git a/reference/datamodel.po b/reference/datamodel.po index a911aafee..43f04889e 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-02-19 22:22+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -807,9 +807,10 @@ msgid ":attr:`__doc__`" msgstr ":attr:`__doc__`" #: ../Doc/reference/datamodel.rst:475 +#, fuzzy msgid "" "The function's documentation string, or ``None`` if unavailable; not " -"inherited by subclasses" +"inherited by subclasses." msgstr "" "Chaîne de documentation de la fonction ou ``None`` s'il n'en existe pas ; " "n'est pas héritée par les sous-classes" @@ -827,7 +828,8 @@ msgid ":attr:`~definition.\\ __name__`" msgstr ":attr:`~definition.\\ __name__`" #: ../Doc/reference/datamodel.rst:480 -msgid "The function's name" +#, fuzzy +msgid "The function's name." msgstr "Nom de la fonction" #: ../Doc/reference/datamodel.rst:483 @@ -835,7 +837,8 @@ msgid ":attr:`~definition.\\ __qualname__`" msgstr ":attr:`~definition.\\ __qualname__`" #: ../Doc/reference/datamodel.rst:483 -msgid "The function's :term:`qualified name`" +#, fuzzy +msgid "The function's :term:`qualified name`." msgstr ":term:`qualified name` de la fonction" #: ../Doc/reference/datamodel.rst:488 @@ -855,9 +858,10 @@ msgid ":attr:`__defaults__`" msgstr ":attr:`__defaults__`" #: ../Doc/reference/datamodel.rst:492 +#, fuzzy msgid "" "A tuple containing default argument values for those arguments that have " -"defaults, or ``None`` if no arguments have a default value" +"defaults, or ``None`` if no arguments have a default value." msgstr "" "Tuple contenant les valeurs des arguments par défaut pour ceux qui en sont " "dotés ou ``None`` si aucun argument n'a de valeur par défaut." @@ -3237,23 +3241,28 @@ msgstr "" "suivies sont :" #: ../Doc/reference/datamodel.rst:1864 -msgid "MRO entries are resolved" +#, fuzzy +msgid "MRO entries are resolved;" msgstr "Les entrées MRO sont résolues" #: ../Doc/reference/datamodel.rst:1865 -msgid "the appropriate metaclass is determined" +#, fuzzy +msgid "the appropriate metaclass is determined;" msgstr "la méta-classe appropriée est déterminée ;" #: ../Doc/reference/datamodel.rst:1866 -msgid "the class namespace is prepared" +#, fuzzy +msgid "the class namespace is prepared;" msgstr "l'espace de noms de la classe est préparé ;" #: ../Doc/reference/datamodel.rst:1867 -msgid "the class body is executed" +#, fuzzy +msgid "the class body is executed;" msgstr "le corps de la classe est exécuté ;" #: ../Doc/reference/datamodel.rst:1868 -msgid "the class object is created" +#, fuzzy +msgid "the class object is created." msgstr "l'objet classe est crée." #: ../Doc/reference/datamodel.rst:1872 @@ -3292,25 +3301,28 @@ msgstr "" "manière suivante :" #: ../Doc/reference/datamodel.rst:1892 +#, fuzzy msgid "" -"if no bases and no explicit metaclass are given, then :func:`type` is used" +"if no bases and no explicit metaclass are given, then :func:`type` is used;" msgstr "" "si aucune classe et aucune méta-classe n'est donnée, alors :func:`type` est " "utilisée ;" #: ../Doc/reference/datamodel.rst:1893 +#, fuzzy msgid "" "if an explicit metaclass is given and it is *not* an instance of :func:" -"`type`, then it is used directly as the metaclass" +"`type`, then it is used directly as the metaclass;" msgstr "" "si une méta-classe explicite est donnée et que *ce n'est pas* une instance " "de :func:`type`, alors elle est utilisée directement en tant que méta-" "classe ;" #: ../Doc/reference/datamodel.rst:1895 +#, fuzzy msgid "" "if an instance of :func:`type` is given as the explicit metaclass, or bases " -"are defined, then the most derived metaclass is used" +"are defined, then the most derived metaclass is used." msgstr "" "Si une instance de :func:`type` est donnée comme méta-classe explicite ou si " "*bases* est définie, alors la méta-classe la plus dérivée est utilisée." @@ -3469,9 +3481,10 @@ msgstr "" "les descripteurs qui définissent une méthode :meth:`~object.__set_name__` ;" #: ../Doc/reference/datamodel.rst:1983 +#, fuzzy msgid "" "second, all of these ``__set_name__`` methods are called with the class " -"being defined and the assigned name of that particular descriptor; and" +"being defined and the assigned name of that particular descriptor;" msgstr "" "ensuite, toutes ces méthodes ``__set_name__`` sont appelées avec la classe " "en cours de définition et le nom assigné à chaque descripteur ;" @@ -3616,9 +3629,10 @@ msgid "Emulating generic types" msgstr "Émulation de types génériques" #: ../Doc/reference/datamodel.rst:2055 +#, fuzzy msgid "" "One can implement the generic class syntax as specified by :pep:`484` (for " -"example ``List[int]``) by defining a special method" +"example ``List[int]``) by defining a special method:" msgstr "" "Vous pouvez implémenter la syntaxe générique des classes comme spécifié par " "la :pep:`484` (par exemple ``List[int]``) en définissant une méthode " diff --git a/tutorial/controlflow.po b/tutorial/controlflow.po index fd4a761f9..0e3ba0d8e 100644 --- a/tutorial/controlflow.po +++ b/tutorial/controlflow.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-24 14:22+0100\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2019-02-10 06:38+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -651,13 +651,14 @@ msgid "Unpacking Argument Lists" msgstr "Séparation des listes d'arguments" #: ../Doc/tutorial/controlflow.rst:559 +#, fuzzy msgid "" "The reverse situation occurs when the arguments are already in a list or " "tuple but need to be unpacked for a function call requiring separate " "positional arguments. For instance, the built-in :func:`range` function " "expects separate *start* and *stop* arguments. If they are not available " -"separately, write the function call with the ``*``\\ -operator to unpack " -"the arguments out of a list or tuple::" +"separately, write the function call with the ``*`` operator to unpack the " +"arguments out of a list or tuple::" msgstr "" "La situation inverse intervient lorsque les arguments sont déjà dans une " "liste ou un tuple mais doivent être séparés pour un appel de fonction " @@ -668,9 +669,10 @@ msgstr "" "tuple : ::" #: ../Doc/tutorial/controlflow.rst:575 +#, fuzzy msgid "" "In the same fashion, dictionaries can deliver keyword arguments with the " -"``**``\\ -operator::" +"``**`` operator::" msgstr "" "De la même façon, les dictionnaires peuvent fournir des arguments nommés en " "utilisant l'opérateur ``**`` ::" diff --git a/tutorial/interpreter.po b/tutorial/interpreter.po index 9641dfc9e..21f693d32 100644 --- a/tutorial/interpreter.po +++ b/tutorial/interpreter.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-12 18:59+0200\n" +"POT-Creation-Date: 2019-03-29 12:24+0100\n" "PO-Revision-Date: 2018-10-13 17:50+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -48,11 +48,12 @@ msgstr "" "file:`/usr/local/python` est un endroit courant)." #: ../Doc/tutorial/interpreter.rst:26 +#, fuzzy msgid "" "On Windows machines, the Python installation is usually placed in :file:`C:\\" "\\Python37`, though you can change this when you're running the installer. " -"To add this directory to your path, you can type the following command into " -"the command prompt in a DOS box::" +"To add this directory to your path, you can type the following command " +"into :ref:`a command prompt window `::" msgstr "" "Sur les machines Windows, Python est habituellement installé dans :file:`C:\\" "\\Python37`, même si vous pouvez changer cela lorsque vous lancez " From 25f7d6929f138d4c13c1a096339428e412f64f00 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 29 Mar 2019 12:40:31 +0100 Subject: [PATCH 101/121] Fixed fuzzys in library/venv.po (#600) --- library/venv.po | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/library/venv.po b/library/venv.po index 347f1abc8..d40f1a587 100644 --- a/library/venv.po +++ b/library/venv.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2018-12-17 21:52+0100\n" +"PO-Revision-Date: 2019-03-21 21:16+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/venv.rst:2 msgid ":mod:`venv` --- Creation of virtual environments" @@ -76,7 +76,6 @@ msgstr "" "exécutant la commande ``venv`` ::" #: ../Doc/using/venv-create.inc:6 -#, fuzzy msgid "" "Running this command creates the target directory (creating any parent " "directories that don't exist already) and places a ``pyvenv.cfg`` file in it " @@ -155,6 +154,10 @@ msgid "" "particular note is that double-clicking ``python.exe`` in File Explorer will " "resolve the symlink eagerly and ignore the virtual environment." msgstr "" +"Bien que les liens symboliques soient pris en charge sous Windows, ils ne " +"sont pas recommandés. Il est particulièrement à noter que le double-clic sur " +"``python.exe`` dans l'Explorateur de fichiers suivra le lien symbolique et " +"ignorera l'environnement virtuel." #: ../Doc/using/venv-create.inc:80 msgid "" @@ -185,7 +188,6 @@ msgstr "" "chemin donné." #: ../Doc/using/venv-create.inc:91 -#, fuzzy msgid "" "Once a virtual environment has been created, it can be \"activated\" using a " "script in the virtual environment's binary directory. The invocation of the " @@ -441,14 +443,12 @@ msgstr "" "n'importe quel dossier existant cible, avant de créer l'environnement." #: ../Doc/library/venv.rst:116 -#, fuzzy msgid "" "``symlinks`` -- a Boolean value indicating whether to attempt to symlink the " "Python binary rather than copying." msgstr "" "``symlinks`` -- Une valeur booléenne qui indique si il faut créer un lien " -"symbolique de la bibliothèque (et tous les DLLs ou autres binaires " -"nécessaires, par exemple ``pythonw.exe``), plutôt que de la copier." +"symbolique sur le binaire Python au lieu de le copier." #: ../Doc/library/venv.rst:119 msgid "" @@ -550,26 +550,24 @@ msgid "Creates the ``pyvenv.cfg`` configuration file in the environment." msgstr "Crée le fichier de configuration ``pyenv.cfg`` dans l'environnement." #: ../Doc/library/venv.rst:183 -#, fuzzy msgid "" "Creates a copy or symlink to the Python executable in the environment. On " "POSIX systems, if a specific executable ``python3.x`` was used, symlinks to " "``python`` and ``python3`` will be created pointing to that executable, " "unless files with those names already exist." msgstr "" -"Crée une copie de l’exécutable Python (et, sous Windows, les DLLs) dans " -"l'environnement. Sur un système POSIX, si un exécutable ``python3.x`` a été " -"utilisé, des liens symboliques vers ``python`` et ``python3`` seront crées " -"pointant vers cet exécutable, sauf si des fichiers avec ces noms existent " -"déjà." +"Crée une copie ou un lien symbolique vers l'exécutable Python dans " +"l'environnement. Sur les systèmes POSIX, si un exécutable spécifique " +"``python3.x`` a été utilisé, des liens symboliques vers ``python`` et " +"``python3`` seront créés pointant vers cet exécutable, sauf si des fichiers " +"avec ces noms existent déjà." #: ../Doc/library/venv.rst:190 -#, fuzzy msgid "" "Installs activation scripts appropriate to the platform into the virtual " "environment." msgstr "" -"Installe des scripts d'activation appropriés pour la plateforme dans " +"Installe les scripts d'activation appropriés à la plateforme dans " "l'environnement virtuel." #: ../Doc/library/venv.rst:195 @@ -588,6 +586,10 @@ msgid "" "the actual binaries. In 3.7.2 only :meth:`setup_python` does nothing unless " "running from a build in the source tree." msgstr "" +"Windows utilise maintenant des scripts de redirection pour ``python[w].exe`` " +"au lieu de copier les fichiers binaires. En 3.7.2 seulement :meth:" +"`setup_python` ne fait rien sauf s'il s'exécute à partir d'un *build* dans " +"l'arborescence source." #: ../Doc/library/venv.rst:204 msgid "" @@ -595,6 +597,10 @@ msgid "" "instead of :meth:`setup_scripts`. This was not the case in 3.7.2. When using " "symlinks, the original executables will be linked." msgstr "" +"Windows copie les scripts de redirection dans le cadre de :meth:" +"`setup_python` au lieu de :meth:`setup_scripts`. Ce n'était pas le cas en " +"3.7.2. Lorsque vous utilisez des liens symboliques, les exécutables " +"originaux seront liés." #: ../Doc/library/venv.rst:209 msgid "" From 5238d09f7faeed8a996d55e86c456029c551c670 Mon Sep 17 00:00:00 2001 From: Zepmanbc Date: Fri, 29 Mar 2019 14:01:22 +0100 Subject: [PATCH 102/121] translation of filecmp.po (#618) --- library/filecmp.po | 85 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 73 insertions(+), 12 deletions(-) diff --git a/library/filecmp.po b/library/filecmp.po index 248ee48de..6e491098e 100644 --- a/library/filecmp.po +++ b/library/filecmp.po @@ -28,28 +28,38 @@ msgid "" "directories, with various optional time/correctness trade-offs. For " "comparing files, see also the :mod:`difflib` module." msgstr "" +"Le module :mod:`filecmp` définit les fonctions permettant de comparer les " +"fichiers et les répertoires, avec différents compromis optionnels durée / " +"exactitude. Pour comparer des fichiers, voir aussi le module :mod:`difflib`" #: ../Doc/library/filecmp.rst:17 msgid "The :mod:`filecmp` module defines the following functions:" -msgstr "" +msgstr "Le module :mod:`filecmp` définit les fonctions suivantes :" #: ../Doc/library/filecmp.rst:22 msgid "" "Compare the files named *f1* and *f2*, returning ``True`` if they seem " "equal, ``False`` otherwise." msgstr "" +"Compare les fichiers nommés *f1* et *f2* , renvoie ``True`` s’ils semblent " +"égaux, ``False`` sinon." #: ../Doc/library/filecmp.rst:25 msgid "" "If *shallow* is true, files with identical :func:`os.stat` signatures are " "taken to be equal. Otherwise, the contents of the files are compared." msgstr "" +"Si *shallow* est vrai, les fichiers avec des signatures :func:`os.stat()` " +"identiques sont considérés comme égaux. Sinon, le contenu des fichiers est " +"comparé." #: ../Doc/library/filecmp.rst:28 msgid "" "Note that no external programs are called from this function, giving it " "portability and efficiency." msgstr "" +"Notez qu'aucun programme externe n'est appelé à partir de cette fonction, ce " +"qui lui confère des qualités de portabilité et d'efficacité." #: ../Doc/library/filecmp.rst:31 msgid "" @@ -57,12 +67,18 @@ msgid "" "entries invalidated if the :func:`os.stat` information for the file " "changes. The entire cache may be cleared using :func:`clear_cache`." msgstr "" +"Cette fonction utilise un cache pour les comparaisons antérieures et les " +"résultats, les entrées du cache étant invalidées si les informations :func:" +"`os.stat()` du fichier sont modifiées. La totalité du cache peut être " +"effacée avec :func:`clear_cache()`." #: ../Doc/library/filecmp.rst:38 msgid "" "Compare the files in the two directories *dir1* and *dir2* whose names are " "given by *common*." msgstr "" +"Compare les fichiers des deux répertoires *dir1* et *dir2* dont les noms " +"sont donnés par *common*." #: ../Doc/library/filecmp.rst:41 msgid "" @@ -73,12 +89,21 @@ msgid "" "directories, the user lacks permission to read them or if the comparison " "could not be done for some other reason." msgstr "" +"Renvoie trois listes de noms de fichiers : *match* , *mismatch*, *errors*. " +"*match* contient la liste des fichiers qui correspondent, *mismatch* " +"contient les noms de ceux qui ne correspondent pas et *errors* répertorie " +"les noms des fichiers qui n'ont pas pu être comparés. Les fichiers sont " +"répertoriés dans *errors* s'ils n'existent pas dans l'un des répertoires, si " +"l'utilisateur ne dispose pas de l'autorisation nécessaire pour les lire ou " +"si la comparaison n'a pas pu être effectuée pour une autre raison." #: ../Doc/library/filecmp.rst:48 msgid "" "The *shallow* parameter has the same meaning and default value as for :func:" "`filecmp.cmp`." msgstr "" +"Le paramètre *shallow* a la même signification et la même valeur par défaut " +"que pour :func:`filecmp.cmp`." #: ../Doc/library/filecmp.rst:51 msgid "" @@ -86,6 +111,9 @@ msgid "" "``b/c`` and ``a/d/e`` with ``b/d/e``. ``'c'`` and ``'d/e'`` will each be in " "one of the three returned lists." msgstr "" +"Par exemple, ``cmpfiles('a', 'b', ['c', 'd/e'])`` compare ``a/c`` et ``b/" +"c`` et ``a/d/e`` avec ``b/d/e``. ``'c'`` et ``'d/e'`` seront chacun dans " +"l'une des trois listes renvoyées." #: ../Doc/library/filecmp.rst:58 msgid "" @@ -93,10 +121,13 @@ msgid "" "after it is modified that it is within the mtime resolution of the " "underlying filesystem." msgstr "" +"Efface le cache *filecmp*. Cela peut être utile si un fichier est comparé " +"juste après avoir été modifié (dans un délai inférieur à la résolution " +"*mtime* du système de fichiers sous-jacent)." #: ../Doc/library/filecmp.rst:68 msgid "The :class:`dircmp` class" -msgstr "" +msgstr "La classe :class:`dircmp`" #: ../Doc/library/filecmp.rst:72 msgid "" @@ -105,31 +136,41 @@ msgid "" "`filecmp.DEFAULT_IGNORES`. *hide* is a list of names to hide, and defaults " "to ``[os.curdir, os.pardir]``." msgstr "" +"Construit un nouvel objet de comparaison de répertoires, pour comparer les " +"répertoires *a* et *b*. *ignore* est une liste de noms à ignorer, par défaut " +"à :attr:`filecmp.DEFAULT_IGNORES`. *hide* est une liste de noms à cacher, " +"par défaut à ``[os.curdir, os.pardir]``." #: ../Doc/library/filecmp.rst:77 msgid "" "The :class:`dircmp` class compares files by doing *shallow* comparisons as " "described for :func:`filecmp.cmp`." msgstr "" +"La classe :class:`dircmp` compare les fichiers en faisant des comparaisons " +"*superficielles* comme décrit pour :func:`filecmp.cmp`." #: ../Doc/library/filecmp.rst:80 msgid "The :class:`dircmp` class provides the following methods:" -msgstr "" +msgstr "La classe :class:`dircmp` fournit les méthodes suivantes :" #: ../Doc/library/filecmp.rst:84 msgid "Print (to :data:`sys.stdout`) a comparison between *a* and *b*." -msgstr "" +msgstr "Affiche (sur :data:`sys.stdout`) une comparaison entre *a* et *b*." #: ../Doc/library/filecmp.rst:88 msgid "" "Print a comparison between *a* and *b* and common immediate subdirectories." msgstr "" +"Affiche une comparaison entre *a* et *b* et les sous-répertoires immédiats " +"communs." #: ../Doc/library/filecmp.rst:93 msgid "" "Print a comparison between *a* and *b* and common subdirectories " "(recursively)." msgstr "" +"Affiche une comparaison entre a et b et les sous-répertoires communs " +"(récursivement)." #: ../Doc/library/filecmp.rst:96 msgid "" @@ -137,6 +178,9 @@ msgid "" "be used to get various bits of information about the directory trees being " "compared." msgstr "" +"La classe :class:`dircmp` offre un certain nombre d'attributs intéressants " +"qui peuvent être utilisés pour obtenir diverses informations sur les " +"arborescences de répertoires comparées." #: ../Doc/library/filecmp.rst:100 msgid "" @@ -144,76 +188,93 @@ msgid "" "so there is no speed penalty if only those attributes which are lightweight " "to compute are used." msgstr "" +"Notez que, via les points d'ancrage :meth:`__getattr__`, tous les attributs " +"sont calculés de manière paresseuse. Il n'y a donc pas de pénalité en " +"vitesse si seuls les attributs rapides à calculer sont utilisés." #: ../Doc/library/filecmp.rst:107 msgid "The directory *a*." -msgstr "" +msgstr "Le répertoire *a*." #: ../Doc/library/filecmp.rst:112 msgid "The directory *b*." -msgstr "" +msgstr "Le répertoire *b*." #: ../Doc/library/filecmp.rst:117 msgid "Files and subdirectories in *a*, filtered by *hide* and *ignore*." msgstr "" +"Fichiers et sous-répertoires dans *a* , filtrés par *hide* et *ignore*." #: ../Doc/library/filecmp.rst:122 msgid "Files and subdirectories in *b*, filtered by *hide* and *ignore*." msgstr "" +"Fichiers et sous-répertoires dans *b* , filtrés par *hide* et *ignore*." #: ../Doc/library/filecmp.rst:127 msgid "Files and subdirectories in both *a* and *b*." -msgstr "" +msgstr "Fichiers et sous-répertoires à la fois dans *a* et *b*." #: ../Doc/library/filecmp.rst:132 msgid "Files and subdirectories only in *a*." -msgstr "" +msgstr "Fichiers et sous-répertoires uniquement dans *a*." #: ../Doc/library/filecmp.rst:137 msgid "Files and subdirectories only in *b*." -msgstr "" +msgstr "Fichiers et sous-répertoires uniquement dans *b*." #: ../Doc/library/filecmp.rst:142 msgid "Subdirectories in both *a* and *b*." -msgstr "" +msgstr "Sous-répertoires à la fois dans *a* et *b*." #: ../Doc/library/filecmp.rst:147 msgid "Files in both *a* and *b*." -msgstr "" +msgstr "Fichiers à la fois dans *a* et *b*." #: ../Doc/library/filecmp.rst:152 msgid "" "Names in both *a* and *b*, such that the type differs between the " "directories, or names for which :func:`os.stat` reports an error." msgstr "" +"Noms dans *a* et *b* , tels que le type diffère entre les répertoires, ou " +"noms pour lesquels :func:`os.stat` signale une erreur." #: ../Doc/library/filecmp.rst:158 msgid "" "Files which are identical in both *a* and *b*, using the class's file " "comparison operator." msgstr "" +"Fichiers identiques dans *a* et *b*, en utilisant l'opérateur de comparaison " +"de fichiers de la classe." #: ../Doc/library/filecmp.rst:164 msgid "" "Files which are in both *a* and *b*, whose contents differ according to the " "class's file comparison operator." msgstr "" +"Fichiers figurant à la fois dans *a* et dans *b* , dont le contenu diffère " +"en fonction de l'opérateur de comparaison de fichiers de la classe." #: ../Doc/library/filecmp.rst:170 msgid "Files which are in both *a* and *b*, but could not be compared." msgstr "" +"Fichiers à la fois dans *a* et dans *b* , mais ne pouvant pas être comparés." #: ../Doc/library/filecmp.rst:175 msgid "" "A dictionary mapping names in :attr:`common_dirs` to :class:`dircmp` objects." msgstr "" +"Un dictionnaire faisant correspondre les noms dans :attr:`common_dirs` vers " +"des objets :class:`dircmp`." #: ../Doc/library/filecmp.rst:182 msgid "List of directories ignored by :class:`dircmp` by default." -msgstr "" +msgstr "Liste des répertoires ignorés par défaut par :class:`dircmp`" #: ../Doc/library/filecmp.rst:185 msgid "" "Here is a simplified example of using the ``subdirs`` attribute to search " "recursively through two directories to show common different files::" msgstr "" +"Voici un exemple simplifié d'utilisation de l'attribut ``subdirs`` pour " +"effectuer une recherche récursive dans deux répertoires afin d'afficher des " +"fichiers communs différents ::" From 96741e19a6bc8bbc7418cdaba2d5c2659481a61d Mon Sep 17 00:00:00 2001 From: Andy K Date: Fri, 29 Mar 2019 15:27:55 +0100 Subject: [PATCH 103/121] translation of the weakref.po (#624) --- TRANSLATORS | 1 + c-api/weakref.po | 44 ++++++++++++++++++++++++++++++++++++++------ dict | 1 + 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/TRANSLATORS b/TRANSLATORS index 1a5140659..e93446bf9 100644 --- a/TRANSLATORS +++ b/TRANSLATORS @@ -10,3 +10,4 @@ Vincent Poulailleau Jules Lasne Mathieu Dupuy Vivien Lambert +Andy Kwok diff --git a/c-api/weakref.po b/c-api/weakref.po index b2bd1d742..0dfc0c723 100644 --- a/c-api/weakref.po +++ b/c-api/weakref.po @@ -6,17 +6,18 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2019-03-29 14:17+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Andy Kwok \n" +"X-Generator: Poedit 2.0.6\n" #: ../Doc/c-api/weakref.rst:6 msgid "Weak Reference Objects" -msgstr "" +msgstr "Objets à références faibles" #: ../Doc/c-api/weakref.rst:8 msgid "" @@ -25,18 +26,22 @@ msgid "" "is a simple reference object, and the second acts as a proxy for the " "original object as much as it can." msgstr "" +"Python gère les *références faibles* comme des objets de première classe. Il " +"existe deux types d'objets spécifiques qui implémentent directement les " +"références faibles. Le premier est un objet de référence simple, et le " +"second agit autant que possible comme un mandataire vers l'objet original." #: ../Doc/c-api/weakref.rst:16 msgid "Return true if *ob* is either a reference or proxy object." -msgstr "" +msgstr "Renvoie vrai si *ob* est soit une référence, soit un objet proxy." #: ../Doc/c-api/weakref.rst:21 msgid "Return true if *ob* is a reference object." -msgstr "" +msgstr "Retourne vrai si *ob* est un objet référence." #: ../Doc/c-api/weakref.rst:26 msgid "Return true if *ob* is a proxy object." -msgstr "" +msgstr "Retourne vrai si *ob* est un objet proxy" #: ../Doc/c-api/weakref.rst:31 msgid "" @@ -49,6 +54,16 @@ msgid "" "referencable object, or if *callback* is not callable, ``None``, or *NULL*, " "this will return *NULL* and raise :exc:`TypeError`." msgstr "" +"Retourne un objet de référence faible pour l'objet *ob*. Elle renvoie " +"toujours une nouvelle référence, mais cela ne signifie pas qu'un nouvel " +"objet est créé ; un objet référence existant peut être renvoyé. Le second " +"paramètre, *callback*, peut être un objet appelable qui reçoit une " +"notification lorsque *ob* est collecté par le ramasse-miette (*garbage " +"collected* en anglais) ; il doit accepter un paramètre unique, qui est " +"l'objet référence faible lui-même. *callback* peut aussi être positionné à " +"``None`` ou à *NULL*. Si *ob* n'est pas un objet faiblement référençable, " +"ou si *callback* n'est pas appelable, ``None``` ou *NULL*, ceci retourne " +"*NULL* et lève une :exc:`TypeError`." #: ../Doc/c-api/weakref.rst:43 msgid "" @@ -61,12 +76,23 @@ msgid "" "is not a weakly-referencable object, or if *callback* is not callable, " "``None``, or *NULL*, this will return *NULL* and raise :exc:`TypeError`." msgstr "" +"Retourne un objet mandataire à référence faible pour l'objet *ob*. Ceci " +"renvoie toujours une nouvelle référence, mais ne garantit pas la création " +"d'un nouvel objet ; un objet proxy existant peut être retourné. Le second " +"paramètre, *callback*, peut être un objet appelable qui reçoit une " +"notification lorsque *ob* est collecté ; il doit accepter un seul paramètre, " +"qui sera l'objet de référence faible lui-même. *callback* peut aussi être " +"``None`` ou *NULLL*. Si *ob* n'est pas un objet faiblement référençable, ou " +"si *callback* n'est pas appelable, ``None``` ou *NULL*, ceci renvoie *NULL* " +"et lève une :exc:`TypeError`." #: ../Doc/c-api/weakref.rst:55 msgid "" "Return the referenced object from a weak reference, *ref*. If the referent " "is no longer live, returns :const:`Py_None`." msgstr "" +"Retourne l'objet référencé à partir d'une référence faible, *ref*. Si le " +"référence n'existe plus, alors l'objet renvoie :const:`Py_None`." #: ../Doc/c-api/weakref.rst:60 msgid "" @@ -74,9 +100,15 @@ msgid "" "This means that you should always call :c:func:`Py_INCREF` on the object " "except if you know that it cannot be destroyed while you are still using it." msgstr "" +"Cette fonction renvoie une **référence empruntée** à l'objet référencé. Cela " +"signifie que vous devez toujours appeler :c:func:`Py_INCREF` sur l'objet " +"sauf si vous savez qu'il ne peut pas être détruit tant que vous l'utilisez " +"encore." #: ../Doc/c-api/weakref.rst:68 msgid "" "Similar to :c:func:`PyWeakref_GetObject`, but implemented as a macro that " "does no error checking." msgstr "" +"Similaire à :c:func:`PyWeakref_GetObject`, mais implémenté comme une macro " +"qui ne vérifie pas les erreurs." diff --git a/dict b/dict index 012c83e19..1701d75e5 100644 --- a/dict +++ b/dict @@ -79,6 +79,7 @@ recompilation réentrants réessayable réexécuter +référençable référençables réimplémenter résolveurs From 9490a56dcf8028a58475ceb352e611bf83fd8f99 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 29 Mar 2019 16:46:47 +0100 Subject: [PATCH 104/121] Fixed translation for library/functions (#650) --- library/functions.po | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/library/functions.po b/library/functions.po index afd28980f..b538f73e0 100644 --- a/library/functions.po +++ b/library/functions.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-29 12:24+0100\n" -"PO-Revision-Date: 2019-02-21 17:37+0100\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-27 17:52+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/functions.rst:5 ../Doc/library/functions.rst:11 msgid "Built-in Functions" @@ -1344,6 +1344,11 @@ msgid "" "positional-only. For more info, see :ref:`the FAQ entry on positional-only " "parameters `." msgstr "" +"Notez que si une barre oblique (/) apparaît dans la liste des paramètres " +"d'une fonction, lorsque vous appelez :func:`help`, cela signifie que les " +"paramètres placés avant la barre oblique sont uniquement positionnels. Pour " +"plus d'informations, voir :ref:`La FAQ sur les arguments positionels `." #: ../Doc/library/functions.rst:675 msgid "" @@ -1895,6 +1900,11 @@ msgid "" "Python 3.0. Refer to the documentation of the :ref:`newline ` parameter for further details." msgstr "" +"Il y a un mode « caractères » supplémentaire autorisé, ``’U’``, qui n'a plus " +"d'effet, et est considéré comme obsolète. Auparavant, il activait les :term:" +"`universal newlines` en mode texte, qui est devenu le comportement par " +"défaut dans Python 3.0. Référez-vous à la documentation du paramètre :ref:" +"`newline ` pour plus de détails." #: ../Doc/library/functions.rst:1026 msgid "" @@ -2855,9 +2865,9 @@ msgstr "" "*tuple* *bases* contient les classes mères et deviendra l'attribut :attr:" "`~class.__bases__` ; et le dictionnaire *dict* est l'espace de noms " "contenant les définitions du corps de la classe, il est copié vers un " -"dictionnaire standard pour devenir l'attribut :attr:`~object.__dict__`. Par " +"dictionnaire standard pour devenir l'attribut :attr:`~object.__dict__`. Par " "exemple, les deux instructions suivantes créent deux instances identiques " -"de :class:`type`." +"de :class:`type` :" #: ../Doc/library/functions.rst:1588 msgid "See also :ref:`bltin-type-objects`." From b5211c90f69fcd2927a332aee075bf15b6d1383b Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 29 Mar 2019 16:48:08 +0100 Subject: [PATCH 105/121] Fixed translations for library/multiprocessing.po (#651) --- library/multiprocessing.po | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/library/multiprocessing.po b/library/multiprocessing.po index e3c71a9c9..cd1f8b65f 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2018-10-15 21:48+0200\n" -"Last-Translator: Julien Palard \n" +"PO-Revision-Date: 2019-03-27 17:24+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.1.1\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/multiprocessing.rst:2 msgid ":mod:`multiprocessing` --- Process-based parallelism" @@ -272,6 +272,10 @@ msgid "" "**PyInstaller** and **cx_Freeze**) on Unix. The ``'fork'`` start method does " "work." msgstr "" +"Les méthodes de démarrage ``’spawn’`` et ``’forkserver’`` ne peuvent pas " +"être utilisées avec des exécutables \"congelés\" (c'est-à-dire des binaires " +"produits par des paquets comme **PyInstaller** et **cx_Freeze**) sur Unix. " +"La méthode de démarrage ``’fork’`` fonctionne." #: ../Doc/library/multiprocessing.rst:198 msgid "Exchanging objects between processes" @@ -3262,13 +3266,16 @@ msgid "" "using :meth:`imap` or :meth:`imap_unordered` with explicit *chunksize* " "option for better efficiency." msgstr "" +"Notez que cela peut entraîner une grosse consommation de mémoire pour les " +"itérables très longs. Envisagez d'utiliser :meth:`imap` ou :meth:" +"`imap_unordered` avec l'option *chunksize* explicite pour une meilleure " +"efficacité." #: ../Doc/library/multiprocessing.rst:2157 msgid "A variant of the :meth:`.map` method which returns a result object." msgstr "Une variante de la méthode :meth:`.map` qui renvoie un objet résultat." #: ../Doc/library/multiprocessing.rst:2173 -#, fuzzy msgid "A lazier version of :meth:`.map`." msgstr "Une version paresseuse de :meth:`map`." From 72cf37955687767f0a2ff240461eb7aab6790134 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 29 Mar 2019 16:48:38 +0100 Subject: [PATCH 106/121] Fixed translations for library/pdb.po (#652) --- library/pdb.po | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/library/pdb.po b/library/pdb.po index 1333a68e6..6b8b11293 100644 --- a/library/pdb.po +++ b/library/pdb.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2018-09-28 19:18+0200\n" -"Last-Translator: Stéphane Wirtel \n" +"PO-Revision-Date: 2019-03-27 17:22+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.9\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/pdb.rst:4 msgid ":mod:`pdb` --- The Python Debugger" @@ -134,6 +134,9 @@ msgid "" "The built-in :func:`breakpoint()`, when called with defaults, can be used " "instead of ``import pdb; pdb.set_trace()``." msgstr "" +"La fonction standard :func:`breakpoint()`, quand elle est appelée avec les " +"valeurs par défaut, peut être utilisée en lieu et place de ``import pdb; pdb." +"set_trace()``." #: ../Doc/library/pdb.rst:83 msgid "The typical usage to inspect a crashed program is::" From 3aa2aa073831b0ee1b24131416db6274a3a8af23 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 29 Mar 2019 16:51:38 +0100 Subject: [PATCH 107/121] Fixed translations for library/sys.po (#653) --- library/sys.po | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/library/sys.po b/library/sys.po index 55011051b..c4f33f044 100644 --- a/library/sys.po +++ b/library/sys.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2019-02-27 12:03+0100\n" +"PO-Revision-Date: 2019-03-28 11:21+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -961,16 +961,14 @@ msgstr "" "l'implémentation *Unicode* pour coder les chaînes." #: ../Doc/library/sys.rst:483 -#, fuzzy msgid "" "Return the current value of the flags that are used for :c:func:`dlopen` " "calls. Symbolic names for the flag values can be found in the :mod:`os` " "module (``RTLD_xxx`` constants, e.g. :data:`os.RTLD_LAZY`)." msgstr "" -"Renvoie la valeur actuelle des *flags* utilisés par les appels de :c:func:" +"Renvoie la valeur actuelle des drapeaux utilisés par les appels de :c:func:" "`dlopen`. Les noms symboliques valeurs peuvent être trouvées dans le module :" -"mod:`os`. (Ce sont les constantes ``RTLD_xxx`` e.g. :data:`os.RTLD_LAZY`). " -"Disponibilité: Unix." +"mod:`os`. (Ce sont les constantes ``RTLD_xxx`` e.g. :data:`os.RTLD_LAZY`)." #: ../Doc/library/sys.rst:488 ../Doc/library/sys.rst:1083 msgid ":ref:`Availability `: Unix." @@ -1299,7 +1297,6 @@ msgstr "" "plus d'informations.)" #: ../Doc/library/sys.rst:685 -#, fuzzy msgid "" "Get the current coroutine origin tracking depth, as set by :func:" "`set_coroutine_origin_tracking_depth`." @@ -2489,6 +2486,9 @@ msgid "" "The character encoding is platform-dependent. Non-Windows platforms use the " "locale encoding (see :meth:`locale.getpreferredencoding()`)." msgstr "" +"L'encodage des caractères dépend de la plateforme. Les plateformes non " +"Windows utilisent l'encodage défini dans les paramètres régionaux (voir :" +"meth:`locale.getpreferredencoding()`)." #: ../Doc/library/sys.rst:1355 msgid "" @@ -2499,6 +2499,15 @@ msgid "" "startup, respectively for stdin and stdout/stderr. This defaults to the " "system locale encoding if the process is not initially attached to a console." msgstr "" +"Sous Windows, UTF-8 est utilisé pour le périphérique de console. Les " +"périphériques non-caractères tels que les fichiers de disque et les tubes " +"(*pipe* en anglais) utilisent l'encodage des paramètres régionaux du système " +"(c'est-à-dire la page de codes ANSI). Les périphériques de caractères non-" +"console tels que NUL (par exemple où ``isatty()`` retourne ``True``) " +"utilisent la valeur des pages de code d'entrée et de sortie de la console au " +"démarrage, respectivement pour l’entrée standard et *stdout/stderr*. Cette " +"valeur par défaut est l'encodage des paramètres régionaux système si le " +"processus n'est pas attaché initialement à une console." #: ../Doc/library/sys.rst:1364 msgid "" @@ -2506,6 +2515,10 @@ msgid "" "environment variable PYTHONLEGACYWINDOWSSTDIO before starting Python. In " "that case, the console codepages are used as for any other character device." msgstr "" +"Le comportement spécial de la console peut être redéfini en assignant la " +"variable d'environnement *PYTHONLEGACYWINDOWSSTDIO* avant de démarrer " +"Python. Dans ce cas, les pages de code de la console sont utilisées comme " +"pour tout autre périphérique de caractères." #: ../Doc/library/sys.rst:1369 msgid "" @@ -2515,6 +2528,12 @@ msgid "" "`PYTHONUTF8` environment variable. However, for the Windows console, this " "only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set." msgstr "" +"Sous toutes les plateformes, vous pouvez redéfinir le codage de caractères " +"en assignant la variable d'environnement :envvar:`PYTHONIOENCODING` avant de " +"démarrer Python ou en utilisant la nouvelle option de ligne de commande :" +"option:`-X` ``utf8`` et la variable d'environnement :envvar:`PYTHONUTF8`. " +"Toutefois, pour la console Windows, cela s'applique uniquement lorsque :" +"envvar:`PYTHONLEGACYWINDOWSSTDIO` est également défini." #: ../Doc/library/sys.rst:1376 msgid "" From 097143e161708db70da977a6281e19f86cdc12a4 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Fri, 29 Mar 2019 17:01:45 +0100 Subject: [PATCH 108/121] Fixed translations in library/tempfile.po (#654) --- library/tempfile.po | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/library/tempfile.po b/library/tempfile.po index c6b2fa175..a83cb0934 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2019-03-26 16:52+0100\n" -"Last-Translator: \n" +"PO-Revision-Date: 2019-03-27 13:37+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/tempfile.rst:2 msgid ":mod:`tempfile` --- Generate temporary files and directories" @@ -338,6 +338,10 @@ msgid "" "file (as would be returned by :func:`os.open`) and the absolute pathname of " "that file, in that order." msgstr "" +":func:`mkstemp` renvoie un n-uplet contenant un descripteur (*handle* en " +"anglais) au niveau du système d'exploitation vers un fichier ouvert (le même " +"que renvoie :func:`os.open`) et le chemin d'accès absolu de ce fichier, dans " +"cet ordre." #: ../Doc/library/tempfile.rst:171 ../Doc/library/tempfile.rst:192 msgid "" From e6da265f7478ee1d0d3d311d3effd8d9e053a8d8 Mon Sep 17 00:00:00 2001 From: louisparis <48298425+louisparis@users.noreply.github.com> Date: Sat, 30 Mar 2019 10:29:22 +0200 Subject: [PATCH 109/121] Programmation fonctionelle (#625) --- howto/functional.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/howto/functional.po b/howto/functional.po index 245745535..b7bcbd28e 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -16,7 +16,7 @@ msgstr "" #: ../Doc/howto/functional.rst:3 msgid "Functional Programming HOWTO" -msgstr "" +msgstr "Guide pratique : programmation fonctionnelle" #: ../Doc/howto/functional.rst:0 msgid "Author" From 596b7d4aff2210288e8ca96634313a89284da1f2 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Sat, 30 Mar 2019 09:30:23 +0100 Subject: [PATCH 110/121] Add checks to Makefile (#642) --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index 3b445a99f..0ab2b1b16 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ # # - make # Automatically build an html local version # - make todo # To list remaining tasks +# - make verifs # To check for correctness: wrapping, spelling +# - make powrap # To check for wrapping +# - make pospell # To check for spelling # - make merge # To merge pot from upstream # - make fuzzy # To find fuzzy strings # - make progress # To compute current progression @@ -42,6 +45,7 @@ $(SPHINX_CONF): .PHONY: upgrade_venv upgrade_venv: $(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv + $(VENV)/bin/pip install -U potodo powrap pospell $(VENV)/bin/activate: $(SPHINX_CONF) @@ -58,10 +62,27 @@ progress: $(VENV)/bin/potodo: $(VENV)/bin/activate $(VENV)/bin/pip install potodo +$(VENV)/bin/powrap: $(VENV)/bin/activate + $(VENV)/bin/pip install powrap + +$(VENV)/bin/pospell: $(VENV)/bin/activate + $(VENV)/bin/pip install pospell + .PHONY: todo todo: $(VENV)/bin/potodo $(VENV)/bin/potodo --github python/python-docs-fr +.PHONY: verifs +verifs: powrap pospell + +.PHONY: powrap +powrap: $(VENV)/bin/powrap + $(VENV)/bin/powrap --check --quiet *.po */*.po + +.PHONY: pospell +pospell: $(VENV)/bin/pospell + $(VENV)/bin/pospell -p dict -l fr_FR *.po */*.po + .PHONY: merge merge: upgrade_venv ifneq "$(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD)" "$(BRANCH)" From f78e1298ecde0e7e91896752544a3ffe95f6c0b0 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Mon, 1 Apr 2019 10:00:48 +0200 Subject: [PATCH 111/121] Update faq/general.po --- faq/general.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/general.po b/faq/general.po index ea90fc6d0..d609be3ba 100644 --- a/faq/general.po +++ b/faq/general.po @@ -602,7 +602,7 @@ msgid "" "io>`__." msgstr "" "L'infrastructure du projet Python est située dans le monde entier et est " -"gérée par l'équipe Python infrastructure. Plus de détails `ici `__." #: ../Doc/faq/general.rst:276 From 701846b71aac339ad8269ace16fc5ddce2e30fdf Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 2 Apr 2019 18:37:39 +0200 Subject: [PATCH 112/121] Use nice badge for % translated. --- README.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 135d07200..b8e5f0b4a 100644 --- a/README.rst +++ b/README.rst @@ -1,10 +1,14 @@ French Translation of the Python Documentation ============================================== -.. image:: https://travis-ci.org/python/python-docs-fr.svg?branch=3.7 - :target: https://travis-ci.org/python/python-docs-fr +|build| |progression| -**Translated: 39%** +.. |build| image:: https://travis-ci.org/python/python-docs-fr.svg?branch=3.7 + :target: https://travis-ci.org/python/python-docs-fr + :width: 45% + +.. |progression| image:: https://img.shields.io/badge/dynamic/json.svg?label=fr&query=%24.fr&url=http%3A%2F%2Fgce.zhsj.me%2Fpython/newest + :width: 45% Documentation Contribution Agreement ------------------------------------ From e1fec6dc0915528be4a6a1e188fb8cd7cc29a3f4 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne - seluj78)" Date: Wed, 3 Apr 2019 13:04:03 +0200 Subject: [PATCH 113/121] powrap --- faq/general.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faq/general.po b/faq/general.po index d609be3ba..411ca5201 100644 --- a/faq/general.po +++ b/faq/general.po @@ -602,8 +602,8 @@ msgid "" "io>`__." msgstr "" "L'infrastructure du projet Python est située dans le monde entier et est " -"gérée par l'équipe de l'infrastructure Python. Plus de détails `ici `__." +"gérée par l'équipe de l'infrastructure Python. Plus de détails `ici `__." #: ../Doc/faq/general.rst:276 msgid "Why is it called Python?" From b8ad3836290ba7ec6eff0641a0aec1c05d549398 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 3 Apr 2019 23:49:19 +0200 Subject: [PATCH 114/121] Working on howto/sockets.po (#621) --- howto/sockets.po | 100 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 94 insertions(+), 6 deletions(-) diff --git a/howto/sockets.po b/howto/sockets.po index ad3d9ff77..54c791095 100644 --- a/howto/sockets.po +++ b/howto/sockets.po @@ -24,7 +24,7 @@ msgstr "Auteur" #: ../Doc/howto/sockets.rst:7 msgid "Gordon McMillan" -msgstr "" +msgstr "Gordon McMillan" #: ../Doc/howto/sockets.rst:None msgid "Abstract" @@ -55,6 +55,17 @@ msgid "" "blocking sockets. But I'll start by talking about blocking sockets. You'll " "need to know how they work before dealing with non-blocking sockets." msgstr "" +"Je ne vais aborder que les connecteurs INET (i.e. IPv4), mais ils " +"représentent au moins 99% des connecteurs (*socket* en anglais) utilisés. Et " +"je n'aborderai que les connecteurs STREAM (i.e. TCP) — à moins que vous ne " +"sachiez vraiment ce que vous faites (auquel cas ce HOWTO n'est pas pour " +"vous !), vous obtiendrez un meilleur comportement et de meilleures " +"performances avec un connecteur STREAM que tout autre. Je vais essayer " +"d'éclaircir le mystère de ce qu'est un connecteur, ainsi que quelques " +"conseils sur la façon de travailler avec des connecteurs bloquants et non " +"bloquants. Mais je vais commencer par aborder les connecteurs bloquants. " +"Nous avons besoin de savoir comment ils fonctionnent avant de traiter les " +"connecteurs non bloquants." #: ../Doc/howto/sockets.rst:31 msgid "" @@ -89,7 +100,7 @@ msgstr "" #: ../Doc/howto/sockets.rst:54 msgid "Creating a Socket" -msgstr "Créer un *socket*" +msgstr "Créer un connecteur" #: ../Doc/howto/sockets.rst:56 msgid "" @@ -120,6 +131,12 @@ msgid "" "machine. ``s.bind(('', 80))`` specifies that the socket is reachable by any " "address the machine happens to have." msgstr "" +"Quelques remarques : nous avons utilisé ``socket.gethostname()`` pour que le " +"connecteur soit visible par le monde extérieur. Si nous avions utilisé ``s." +"bind((('localhost', 80))`` ou ``s.bind((('127.0.0.0.1', 80))`` nous aurions " +"encore un connecteur \"serveur\", mais qui ne serait visible que sur la " +"machine même. ``s.bind('', 80)]`` spécifie que le socket est accessible par " +"toute adresse que la machine possède." #: ../Doc/howto/sockets.rst:87 msgid "" @@ -127,6 +144,9 @@ msgid "" "known\" services (HTTP, SNMP etc). If you're playing around, use a nice high " "number (4 digits)." msgstr "" +"Une deuxième chose à noter : les ports dont le numéro est petit sont " +"généralement réservés aux services \"bien connus\" (HTTP, SNMP, etc.). Si " +"vous expérimentez, utilisez un nombre suffisamment élevé (4 chiffres)." #: ../Doc/howto/sockets.rst:91 msgid "" @@ -135,6 +155,10 @@ msgid "" "outside connections. If the rest of the code is written properly, that " "should be plenty." msgstr "" +"Enfin, l'argument ``listen`` indique à la bibliothèque de connecteurs que " +"nous voulons qu'elle mette en file d'attente jusqu'à 5 requêtes de connexion " +"(le maximum normal) avant de refuser les connexions externes. Si le reste du " +"code est écrit correctement, cela devrait suffire." #: ../Doc/howto/sockets.rst:95 msgid "" @@ -160,7 +184,7 @@ msgstr "" #: ../Doc/howto/sockets.rst:121 msgid "IPC" -msgstr "" +msgstr "Communication Entre Processus" #: ../Doc/howto/sockets.rst:123 msgid "" @@ -170,6 +194,11 @@ msgid "" "a shortcut around a couple of layers of network code and be quite a bit " "faster." msgstr "" +"Si vous avez besoin d'une communication rapide entre deux processus sur une " +"même machine, vous devriez regarder comment utiliser les *pipes* ou la " +"mémoire partagée. Si vous décidez d'utiliser les sockets AF_INET, liez le " +"connecteur \"serveur\" à ``'localhost'``. Sur la plupart des plates-formes, " +"cela court-circuitera quelques couches réseau et sera un peu plus rapide." #: ../Doc/howto/sockets.rst:129 msgid "" @@ -229,6 +258,10 @@ msgid "" "request, then reads a reply. That's it. The socket is discarded. This means " "that a client can detect the end of the reply by receiving 0 bytes." msgstr "" +"Un protocole comme HTTP utilise un connecteur pour un seul transfert. Le " +"client envoie une demande, puis lit une réponse. C'est tout. Le connecteur " +"est mis au rebut. Cela signifie qu'un client peut détecter la fin de la " +"réponse en recevant 0 octet." #: ../Doc/howto/sockets.rst:169 msgid "" @@ -243,12 +276,27 @@ msgid "" "they are* (much better), *or end by shutting down the connection*. The " "choice is entirely yours, (but some ways are righter than others)." msgstr "" +"Mais si vous prévoyez de réutiliser votre connecteur pour d'autres " +"transferts, vous devez réaliser que il n'y a *pas* d':abbr:`EOT (End of " +"Transfer)` sur un connecteur. Je répète : si un connecteur ``send`` ou " +"``recv`` retourne après avoir manipulé 0 octets, la connexion a été " +"interrompue. Si la connexion n'a *pas* été interrompue, vous pouvez attendre " +"sur un ``recv`` pour toujours, car le connecteur ne vous dira pas qu'il n'y " +"a plus rien à lire (pour le moment). Maintenant, si vous y réfléchissez un " +"peu, vous allez vous rendre compte d'une vérité fondamentale sur les " +"connecteurs : *les messages doivent être de longueur fixe* (beurk), *ou être " +"délimités* (haussement d'épaules), *ou indiquer de quelle longueur ils sont* " +"(beaucoup mieux), *ou terminer en coupant la connexion*. Le choix est " +"entièrement de votre côté, (mais certaines façons sont plus justes que " +"d'autres)." #: ../Doc/howto/sockets.rst:180 msgid "" "Assuming you don't want to end the connection, the simplest solution is a " "fixed length message::" msgstr "" +"En supposant que vous ne vouliez pas terminer la connexion, la solution la " +"plus simple est un message de longueur fixe ::" #: ../Doc/howto/sockets.rst:217 msgid "" @@ -300,7 +348,7 @@ msgstr "" #: ../Doc/howto/sockets.rst:252 msgid "Binary Data" -msgstr "" +msgstr "Données binaires" #: ../Doc/howto/sockets.rst:254 msgid "" @@ -326,7 +374,7 @@ msgstr "" #: ../Doc/howto/sockets.rst:272 msgid "Disconnecting" -msgstr "" +msgstr "Déconnexion" #: ../Doc/howto/sockets.rst:274 msgid "" @@ -390,6 +438,10 @@ msgid "" "calls, in much the same ways. It's just that, if you do it right, your app " "will be almost inside-out." msgstr "" +"Si vous avez compris ce qui précède, vous savez déjà tout ce que vous devez " +"savoir sur la mécanique de l'utilisation des connecteurs. Vous utiliserez " +"toujours les mêmes appels, de la même façon. C'est juste que, si vous le " +"faites bien, votre application sera presque dans la poche." #: ../Doc/howto/sockets.rst:320 msgid "" @@ -400,6 +452,13 @@ msgid "" "the exact same idea. You do this after creating the socket, but before using " "it. (Actually, if you're nuts, you can switch back and forth.)" msgstr "" +"En Python, vous utilisez ``socket.setblocking(0)`` pour le rendre non-" +"bloquant. En C, c'est plus complexe, (pour commencer, vous devez choisir " +"entre la version BSD ``O_NONBLOCK`` et la version Posix presque impossible à " +"distinguer ``O_NDELAY``, qui est complètement différente de " +"``TCP_NODELAY``), mais c'est exactement la même idée. Vous le faites après " +"avoir créé le connecteur mais avant de l'utiliser (en fait, si vous êtes " +"fou, vous pouvez alterner)." #: ../Doc/howto/sockets.rst:327 msgid "" @@ -413,7 +472,7 @@ msgstr "" #: ../Doc/howto/sockets.rst:334 msgid "Use ``select``." -msgstr "" +msgstr "Utiliser ``select``." #: ../Doc/howto/sockets.rst:336 msgid "" @@ -421,6 +480,9 @@ msgid "" "but it's close enough to the C version that if you understand ``select`` in " "Python, you'll have little trouble with it in C::" msgstr "" +"En C, implémenter ``select`` est assez complexe. En Python, c'est du gâteau, " +"mais c'est assez proche de la version C ; aussi, si vous comprenez " +"``select`` en Python, vous aurez peu de problèmes avec lui en C ::" #: ../Doc/howto/sockets.rst:347 msgid "" @@ -449,6 +511,14 @@ msgid "" "nothing. (Actually, any reasonably healthy socket will return as writable - " "it just means outbound network buffer space is available.)" msgstr "" +"Si un connecteur se trouve dans la liste des sorties que vous pouvez lire, " +"vous pouvez être pratiquement certain qu'un ``recv`` sur ce connecteur " +"retournera *quelque chose*. Même chose pour la liste des sorties sur " +"lesquelles vous pouvez écrire. Vous pourrez envoyer *quelque chose*. Peut-" +"être pas tout ce que vous voudrez, mais *quelque chose* est mieux que rien. " +"(En fait, n'importe quel connecteur raisonnablement sain retournera en " +"écriture — cela signifie simplement que l'espace tampon réseau sortant est " +"disponible)." #: ../Doc/howto/sockets.rst:366 msgid "" @@ -458,6 +528,13 @@ msgid "" "it in the potential_writers list. If it shows up in the writable list, you " "have a decent chance that it has connected." msgstr "" +"Si vous avez un connecteur \"serveur\", mettez-le dans la liste des lecteurs " +"potentiels. Si il apparaît dans la liste des sorties que vous pouvez lire, " +"votre ``accept`` fonctionnera (presque certainement). Si vous avez créé un " +"nouveau connecteur pour ``connect`` à quelqu'un d'autre, mettez-le dans la " +"liste des éditeurs potentiels. Si il apparaît dans la liste des sorties sur " +"lesquelles vous pouvez écrire, vous avez une bonne chance qu'il se soit " +"connecté." #: ../Doc/howto/sockets.rst:372 msgid "" @@ -467,6 +544,11 @@ msgid "" "problem of determining whether the other end is done, or just busy with " "something else." msgstr "" +"En fait, ``select`` peut être pratique même avec des connecteurs bloquants. " +"C'est une façon de déterminer si vous allez bloquer — le socket redevient " +"lisible lorsqu'il y a quelque chose dans les tampons. Cependant, cela n'aide " +"pas encore à déterminer si l'autre extrémité a terminé, ou si elle est " +"simplement occupée par autre chose." #: ../Doc/howto/sockets.rst:377 msgid "" @@ -476,3 +558,9 @@ msgid "" "differently on Windows. In fact, on Windows I usually use threads (which " "work very, very well) with my sockets." msgstr "" +"**Alerte de portabilité** : Sous Unix, ``select`` fonctionne aussi bien avec " +"les connecteurs qu'avec les fichiers. N'essayez pas cela sous Windows. Sous " +"Windows, ``select`` ne fonctionne qu'avec les connecteurs. Notez également " +"qu'en C, la plupart des options de connecteurs les plus avancées se font " +"différemment sous Windows. En fait, sous Windows, j'utilise habituellement " +"des fils d'exécution (qui fonctionnent très, très bien) avec mes connecteurs." From 33cb2dd861fae786c9475171953a8fb658a9e5c1 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Wed, 3 Apr 2019 23:49:45 +0200 Subject: [PATCH 115/121] Traduction de namespace par espace de nommage, sauf pour le XML (#626) --- README.rst | 5 +- faq/design.po | 6 +- faq/programming.po | 2 +- glossary.po | 49 ++++++------ library/collections.po | 4 +- library/functions.po | 8 +- library/gettext.po | 46 +++++------ library/multiprocessing.po | 14 ++-- library/stdtypes.po | 8 +- library/types.po | 3 +- library/unittest.po | 6 +- library/xml.dom.po | 20 ++--- reference/compound_stmts.po | 26 +++---- reference/datamodel.po | 64 +++++++-------- reference/executionmodel.po | 40 +++++----- reference/import.po | 65 ++++++++-------- reference/simple_stmts.po | 9 ++- reference/toplevel_components.po | 6 +- tutorial/appendix.po | 4 +- tutorial/classes.po | 130 ++++++++++++++++--------------- tutorial/modules.po | 8 +- using/cmdline.po | 18 ++--- 22 files changed, 277 insertions(+), 264 deletions(-) diff --git a/README.rst b/README.rst index b8e5f0b4a..84bb6855f 100644 --- a/README.rst +++ b/README.rst @@ -98,7 +98,7 @@ Now you're ready to start a work session. Each time you'll start a new file, sta # upstream/3.7 branch. We will name our branch "library-sys" but you shall name yours # whatever you want. Usually you'll name a branch based on the file you're working on. # For example, If you're working on "library/venv.po" you can name your branch "library-venv" - + # Update your local version to the latest git fetch upstream # Create a new branch named "library-sys" based on "upstream/3.7" @@ -274,7 +274,8 @@ list comprehension liste en compréhension (liste en intension est little-endian, big-endian `petit-boutiste, gros-boutiste `_ mutable muable -namespace *namespace*, espace de noms +namespace espace de nommage + (sauf pour le XML où c'est espace de noms) parameter paramètre prompt invite raise lever diff --git a/faq/design.po b/faq/design.po index 822b0fcc6..e74597edf 100644 --- a/faq/design.po +++ b/faq/design.po @@ -303,7 +303,7 @@ msgstr "" "les références vers des noms non-qualifiés au sein d'une méthode n'ont pas à " "être cherchés dans l'annuaire d'instances. En d'autres termes, les variables " "locales et les variables d'instance vivent dans deux différents espaces de " -"noms, et vous devez dire à Python quel espace de noms utiliser." +"nommage, et vous devez dire à Python quel espace de nommage utiliser." #: ../Doc/faq/design.rst:150 msgid "Why can't I use an assignment in an expression?" @@ -823,8 +823,8 @@ msgid "" "about these). Python is, however, aggressive about cleaning up memory on " "exit and does try to destroy every single object." msgstr "" -"Les objets référencés depuis les espaces de noms globaux des modules Python " -"ne sont pas toujours désalloués lorsque Python s'arrête. Cela peut se " +"Les objets référencés depuis les espaces de nommage globaux des modules " +"Python ne sont pas toujours désalloués lorsque Python s'arrête. Cela peut se " "produire s'il y a des références circulaires. Il y a aussi certaines parties " "de mémoire qui sont alloués par la bibliothèque C qui sont impossibles à " "libérer (par exemple un outil comme *Purify* s'en plaindra). Python est, " diff --git a/faq/programming.po b/faq/programming.po index 0010f0513..bb14f60ac 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -832,7 +832,7 @@ msgstr "" "C'est pareil que trouver le nom du chat qui traîne devant votre porte : Le " "chat (objet) ne peux pas vous dire lui même son nom, et il s'en moque un peu " "-- alors le meilleur moyen de savoir comment il s'appelle est de demander à " -"tous vos voisins (espaces de noms) si c'est leur chat (objet)…." +"tous vos voisins (espaces de nommage) si c'est leur chat (objet)…." #: ../Doc/faq/programming.rst:692 msgid "" diff --git a/glossary.po b/glossary.po index 895f1ff50..b829cfb11 100644 --- a/glossary.po +++ b/glossary.po @@ -1714,7 +1714,7 @@ msgid "" "into Python by the process of :term:`importing`." msgstr "" "Objet utilisé pour organiser une portion unitaire de code en Python. Les " -"modules ont un espace de noms et peuvent contenir n'importe quels objets " +"modules ont un espace de nommage et peuvent contenir n'importe quels objets " "Python. Charger des modules est appelé :term:`importer `." #: ../Doc/glossary.rst:713 @@ -1730,7 +1730,7 @@ msgid "" "A namespace containing the import-related information used to load a module. " "An instance of :class:`importlib.machinery.ModuleSpec`." msgstr "" -"Espace de noms contenant les informations, relatives à l'importation, " +"Espace de nommage contenant les informations, relatives à l'importation, " "utilisées pour charger un module. C'est une instance de la classe :class:" "`importlib.machinery.ModuleSpec`." @@ -1789,7 +1789,7 @@ msgstr "" #: ../Doc/glossary.rst:738 msgid "namespace" -msgstr "espace de noms" +msgstr "espace de nommage" #: ../Doc/glossary.rst:740 msgid "" @@ -1803,20 +1803,21 @@ msgid "" "func:`itertools.islice` makes it clear that those functions are implemented " "by the :mod:`random` and :mod:`itertools` modules, respectively." msgstr "" -"L'endroit où une variable est stockée. Les espaces de noms sont implémentés " -"avec des dictionnaires. Il existe des espaces de noms globaux, natifs ou " -"imbriqués dans les objets (dans les méthodes). Les espaces de noms " -"favorisent la modularité car ils permettent d'éviter les conflits de noms. " -"Par exemple, les fonctions :func:`builtins.open <.open>` et :func:`os.open` " -"sont différenciées par leurs espaces de nom. Les espaces de noms aident " -"aussi à la lisibilité et la maintenabilité en rendant clair quel module " -"implémente une fonction. Par exemple, écrire :func:`random.seed` ou :func:" -"`itertools.islice` affiche clairement que ces fonctions sont implémentées " -"respectivement dans les modules :mod:`random` et :mod:`itertools`." +"L'endroit où une variable est stockée. Les espaces de nommage sont " +"implémentés avec des dictionnaires. Il existe des espaces de nommage " +"globaux, natifs ou imbriqués dans les objets (dans les méthodes). Les " +"espaces de nommage favorisent la modularité car ils permettent d'éviter les " +"conflits de noms. Par exemple, les fonctions :func:`builtins.open <.open>` " +"et :func:`os.open` sont différenciées par leurs espaces de nom. Les espaces " +"de nommage aident aussi à la lisibilité et la maintenabilité en rendant " +"clair quel module implémente une fonction. Par exemple, écrire :func:`random." +"seed` ou :func:`itertools.islice` affiche clairement que ces fonctions sont " +"implémentées respectivement dans les modules :mod:`random` et :mod:" +"`itertools`." #: ../Doc/glossary.rst:750 msgid "namespace package" -msgstr "paquet-espace de noms" +msgstr "paquet-espace de nommage" #: ../Doc/glossary.rst:752 msgid "" @@ -1826,9 +1827,9 @@ msgid "" "``__init__.py`` file." msgstr "" "Un :term:`paquet` tel que défini dans la :pep:`421` qui ne sert qu'à " -"contenir des sous-paquets. Les paquets-espace de noms peuvent n'avoir aucune " -"représentation physique et, plus spécifiquement, ne sont pas comme un :term:" -"`paquet classique` puisqu'ils n'ont pas de fichier ``__init__.py``." +"contenir des sous-paquets. Les paquets-espace de nommage peuvent n'avoir " +"aucune 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:757 msgid "See also :term:`module`." @@ -1851,10 +1852,10 @@ msgstr "" "englobante. Typiquement, une fonction définie à l'intérieur d'une autre " "fonction a accès aux variables de cette dernière. Souvenez-vous cependant " "que cela ne fonctionne que pour accéder à des variables, pas pour les " -"assigner. Les variables locales sont lues et assignées dans l'espace de noms " -"le plus proche. Tout comme les variables globales qui sont stockés dans " -"l'espace de noms global, le mot clef :keyword:`nonlocal` permet d'écrire " -"dans l'espace de noms dans lequel est déclarée la variable." +"assigner. Les variables locales sont lues et assignées dans l'espace de " +"nommage le plus proche. Tout comme les variables globales qui sont stockés " +"dans l'espace de nommage global, le mot clef :keyword:`nonlocal` permet " +"d'écrire dans l'espace de nommage dans lequel est déclarée la variable." #: ../Doc/glossary.rst:767 msgid "new-style class" @@ -2134,7 +2135,7 @@ msgid "" "contribute to a namespace package, as defined in :pep:`420`." msgstr "" "Jeu de fichiers dans un seul dossier (pouvant être stocké sous forme de " -"fichier zip) qui contribue à l'espace de noms d'un paquet, tel que défini " +"fichier zip) qui contribue à l'espace de nommage d'un paquet, tel que défini " "dans la :pep:`420`." #: ../Doc/glossary.rst:886 @@ -2243,7 +2244,7 @@ msgid "" "top-level functions and classes, the qualified name is the same as the " "object's name::" msgstr "" -"Nom, comprenant des points, montrant le \"chemin\" de l'espace de noms " +"Nom, comprenant des points, montrant le \"chemin\" de l'espace de nommage " "global d'un module vers une classe, fonction ou méthode définie dans ce " "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 : ::" @@ -2293,7 +2294,7 @@ msgstr "" #: ../Doc/glossary.rst:970 msgid "See also :term:`namespace package`." -msgstr "Voir aussi :term:`paquet-espace de noms`." +msgstr "Voir aussi :term:`paquet-espace de nommage `." #: ../Doc/glossary.rst:971 msgid "__slots__" diff --git a/library/collections.po b/library/collections.po index 228390cc9..8ded9f4e3 100644 --- a/library/collections.po +++ b/library/collections.po @@ -1361,8 +1361,8 @@ msgid "" "See :meth:`types.SimpleNamespace` for a mutable namespace based on an " "underlying dictionary instead of a tuple." msgstr "" -"Voir :meth:`types.SimpleNamespace` pour un espace de noms muable basé sur un " -"dictionnaire sous-jacent à la place d'un tuple." +"Voir :meth:`types.SimpleNamespace` pour un espace de nommage muable basé sur " +"un dictionnaire sous-jacent à la place d'un tuple." #: ../Doc/library/collections.rst:1031 msgid "" diff --git a/library/functions.po b/library/functions.po index b538f73e0..66447c440 100644 --- a/library/functions.po +++ b/library/functions.po @@ -820,7 +820,7 @@ msgid "" "With an argument, attempt to return a list of valid attributes for that " "object." msgstr "" -"Sans arguments, elle donne la liste des noms dans l'espace de noms local. " +"Sans arguments, elle donne la liste des noms dans l'espace de nommage local. " "Avec un argument, elle essaye de donner une liste d'attributs valides pour " "cet objet." @@ -969,7 +969,7 @@ msgid "" msgstr "" "L'argument *expression* est analysé et évalué comme une expression Python " "(techniquement, une *condition list*) en utilisant les dictionnaires " -"*globals* et *locals* comme espaces de noms globaux et locaux. Si le " +"*globals* et *locals* comme espaces de nommage globaux et locaux. Si le " "dictionnaire *globals* est présent mais ne contient pas de valeur pour la " "clé ``'__builtins__'``, une référence au dictionnaire du module :mod:" "`builtins` y est inséré avant qu'*expression* ne soit évalué. Cela signifie " @@ -1354,7 +1354,7 @@ msgstr "" msgid "" "This function is added to the built-in namespace by the :mod:`site` module." msgstr "" -"Cette fonction est ajoutée à l'espace de noms natif par le module :mod:" +"Cette fonction est ajoutée à l'espace de nommage natif par le module :mod:" "`site`." #: ../Doc/library/functions.rst:677 @@ -2863,7 +2863,7 @@ msgstr "" "forme dynamique de l'instruction :keyword:`class`. La chaîne *name* est le " "nom de la classe et deviendra l'attribut :attr:`~definition.__name__` ; le " "*tuple* *bases* contient les classes mères et deviendra l'attribut :attr:" -"`~class.__bases__` ; et le dictionnaire *dict* est l'espace de noms " +"`~class.__bases__` ; et le dictionnaire *dict* est l'espace de nommage " "contenant les définitions du corps de la classe, il est copié vers un " "dictionnaire standard pour devenir l'attribut :attr:`~object.__dict__`. Par " "exemple, les deux instructions suivantes créent deux instances identiques " diff --git a/library/gettext.po b/library/gettext.po index 62226d6f8..831aa40ce 100644 --- a/library/gettext.po +++ b/library/gettext.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-09-28 12:39+0200\n" +"PO-Revision-Date: 2019-03-27 16:17+0100\n" "Last-Translator: François Magimel \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -237,8 +237,8 @@ msgstr "" "Python. :mod:`!gettext` définit une classe \"translations\" qui analyse " "syntaxiquement les fichiers au format GNU :file:`.mo`, et qui possède des " "méthodes pour renvoyer des chaînes de caractères. Les instances de cette " -"classe \"translations\" peuvent également s'installer dans l'espace de noms " -"natif en tant que fonction :func:`_`." +"classe \"translations\" peuvent également s'installer dans l'espace de " +"nommage natif en tant que fonction :func:`_`." #: ../Doc/library/gettext.rst:147 msgid "" @@ -354,9 +354,9 @@ msgid "" "on *domain*, *localedir*, and *codeset* which are passed to the function :" "func:`translation`." msgstr "" -"Positionne la fonction :func:`_` dans l'espace de noms natif à Python, en se " -"basant sur *domain*, *localedir* et *codeset*, qui sont passés en argument " -"de la fonction :func:`translation`." +"Positionne la fonction :func:`_` dans l'espace de nommage natif de Python, " +"en se basant sur *domain*, *localedir* et *codeset*, qui sont passés en " +"argument de la fonction :func:`translation`." #: ../Doc/library/gettext.rst:202 msgid "" @@ -382,8 +382,8 @@ msgid "" "application." msgstr "" "Pour plus de confort, il vaut mieux positionner la fonction :func:`_` dans " -"l'espace de noms natif à Python pour la rendre plus accessible dans tous les " -"modules de votre application." +"l'espace de nommage natif de Python pour la rendre plus accessible dans tous " +"les modules de votre application." #: ../Doc/library/gettext.rst:217 msgid "The :class:`NullTranslations` class" @@ -503,8 +503,8 @@ msgid "" "This method installs :meth:`.gettext` into the built-in namespace, binding " "it to ``_``." msgstr "" -"Cette méthode positionne :meth:`.gettext` dans l'espace de noms natif, en le " -"liant à ``_``." +"Cette méthode positionne :meth:`.gettext` dans l'espace de nommage natif, en " +"le liant à ``_``." #: ../Doc/library/gettext.rst:302 msgid "" @@ -515,8 +515,8 @@ msgid "" msgstr "" "Si le paramètre *names* est renseigné, celui-ci doit être une séquence " "contenant les noms des fonctions que vous souhaitez positionner dans " -"l'espace de noms natif, en plus de :func:`_`. Les noms pris en charge sont " -"``'gettext'``, ``'ngettext'``, ``'lgettext'`` et ``'lngettext'``." +"l'espace de nommage natif, en plus de :func:`_`. Les noms pris en charge " +"sont ``'gettext'``, ``'ngettext'``, ``'lgettext'`` et ``'lngettext'``." #: ../Doc/library/gettext.rst:307 msgid "" @@ -528,18 +528,18 @@ msgid "" msgstr "" "Notez que ce n'est là qu'un moyen parmi d'autres, quoique le plus pratique, " "pour rendre la fonction :func:`_` accessible à votre application. Puisque " -"cela affecte toute l'application, et plus particulièrement l'espace de noms " -"natif, les modules localisés ne devraient jamais y positionner :func:`_`. " -"Au lieu de cela, ces derniers doivent plutôt utiliser le code suivant pour " -"rendre :func:`_` accessible par leurs modules : ::" +"cela affecte toute l'application, et plus particulièrement l'espace de " +"nommage natif, les modules localisés ne devraient jamais y positionner :func:" +"`_`. Au lieu de cela, ces derniers doivent plutôt utiliser le code suivant " +"pour rendre :func:`_` accessible par leurs modules : ::" #: ../Doc/library/gettext.rst:317 msgid "" "This puts :func:`_` only in the module's global namespace and so only " "affects calls within this module." msgstr "" -"Cela met :func:`_` dans l'espace de noms global du module uniquement et donc " -"n'affectera ses appels que dans ce module." +"Cela met :func:`_` dans l'espace de nommage global du module uniquement et " +"donc n'affectera ses appels que dans ce module." #: ../Doc/library/gettext.rst:322 msgid "The :class:`GNUTranslations` class" @@ -880,7 +880,7 @@ msgid "" "``gettext`` API but instead the class-based API." msgstr "" "Si vous localisez votre module, veillez à ne pas faire de changements " -"globaux, e.g. dans l'espace de nom natif. Vous ne devriez pas utiliser " +"globaux, e.g. dans l'espace de nommage natif. Vous ne devriez pas utiliser " "l'API GNU ``gettext`` mais plutôt celle basée sur les classes." #: ../Doc/library/gettext.rst:505 @@ -907,8 +907,8 @@ msgid "" "just use ``_('...')`` without having to explicitly install it in each file." msgstr "" "Si vous localisez votre application, vous pouvez positionner la fonction :" -"func:`_` de manière globale dans l'espace de noms natif, généralement dans " -"le fichier principal de votre application. Cela permettra à tous les " +"func:`_` de manière globale dans l'espace de nommage natif, généralement " +"dans le fichier principal de votre application. Cela permettra à tous les " "fichiers de votre application de n'utiliser que ``_('...')`` sans devoir le " "redéfinir explicitement dans chaque fichier." @@ -981,9 +981,9 @@ msgstr "" "Cela fonctionne car la définition factice de :func:`_` renvoie simplement la " "chaîne de caractères passée en entrée. Et cette définition factice va " "temporairement outrepasser toute autre définition de :func:`_` dans l'espace " -"de noms natif (jusqu'à l'utilisation de la commande :keyword:`del`). " +"de nommage natif (jusqu'à l'utilisation de la commande :keyword:`del`). " "Attention toutefois si vous avez déjà une autre définition de :func:`_` dans " -"l'espace de noms local." +"l'espace de nommage local." #: ../Doc/library/gettext.rst:601 msgid "" diff --git a/library/multiprocessing.po b/library/multiprocessing.po index cd1f8b65f..33ed7ea1b 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -947,8 +947,8 @@ msgid "" msgstr "" ":mod:`multiprocessing` utilise les exceptions habituelles :exc:`queue.Empty` " "et :exc:`queue.Full` pour signaler un dépassement du temps maximal autorisé. " -"Elles ne sont pas disponibles dans l'espace de nom :mod:`multiprocessing` " -"donc vous devez les importer depuis le module :mod:`queue`." +"Elles ne sont pas disponibles dans l'espace de nommage :mod:" +"`multiprocessing` donc vous devez les importer depuis le module :mod:`queue`." #: ../Doc/library/multiprocessing.rst:700 msgid "" @@ -2830,9 +2830,9 @@ msgid "" "A namespace object has no public methods, but does have writable attributes. " "Its representation shows the values of its attributes." msgstr "" -"Un espace de nom n'a pas de méthodes publiques, mais possède des attributs " -"accessibles en écriture. Sa représentation montre les valeurs de ses " -"attributs." +"Un espace de nommage n'a pas de méthodes publiques, mais possède des " +"attributs accessibles en écriture. Sa représentation montre les valeurs de " +"ses attributs." #: ../Doc/library/multiprocessing.rst:1801 msgid "" @@ -2840,8 +2840,8 @@ msgid "" "with ``'_'`` will be an attribute of the proxy and not an attribute of the " "referent:" msgstr "" -"Cependant, en utilisant un mandataire pour un espace de nom, un attribut " -"débutant par ``'_'`` sera un attribut du mandataire et non de l'objet cible." +"Cependant, en utilisant un mandataire pour un espace de nommage, un attribut " +"débutant par ``'_'`` est un attribut du mandataire et non de l'objet cible :" #: ../Doc/library/multiprocessing.rst:1817 msgid "Customized managers" diff --git a/library/stdtypes.po b/library/stdtypes.po index 75e2bfe30..d5e99618e 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -5,9 +5,9 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" -"PO-Revision-Date: 2019-02-27 12:19+0100\n" -"Last-Translator: Jules Lasne \n" +"POT-Creation-Date: 2018-12-24 14:22+0100\n" +"PO-Revision-Date: 2019-03-19 23:31+0100\n" +"Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -6526,7 +6526,7 @@ msgid "" "n)`` is completely equivalent to calling ``m.__func__(m.__self__, arg-1, " "arg-2, ..., arg-n)``." msgstr "" -"Si vous accédez à une méthode (une fonction définie dans l'espace de nom " +"Si vous accédez à une méthode (une fonction définie dans l'espace de nommage " "d'une classe) via une instance, vous obtenez un objet spécial, une :dfn:" "`bound method` (aussi appelée :dfn:`instance method`). Lorsqu'elle est " "appelée, elle ajoute l'argument ``self`` à la liste des arguments. Les " diff --git a/library/types.po b/library/types.po index 88c24d9bb..748e3e28e 100644 --- a/library/types.po +++ b/library/types.po @@ -109,7 +109,8 @@ msgstr ":pep:`3115` -- Méta-classes dans Python 3000" #: ../Doc/library/types.rst:70 msgid "Introduced the ``__prepare__`` namespace hook" msgstr "" -"introduction de la fonction automatique ``__prepare__`` de l'espace de noms" +"introduction de la fonction automatique ``__prepare__`` de l'espace de " +"nommage" #: ../Doc/library/types.rst:74 msgid "Resolve MRO entries dynamically as specified by :pep:`560`." diff --git a/library/unittest.po b/library/unittest.po index 9b4056a5c..ea5452b9b 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -484,7 +484,7 @@ msgstr "" "*Unittest* prend en charge une découverte simple des tests. Afin d'être " "compatible avec le système de découverte de tests, tous les fichiers de test " "doivent être des :ref:`modules ` ou des :ref:`paquets ` (incluant des :term:`paquets-espaces de noms ` (incluant des :term:`paquets-espaces de nommage `) importables du répertoire du projet (cela signifie que leurs noms " "doivent être des :ref:`identifiants ` valables)." @@ -595,7 +595,7 @@ msgstr "" #: ../Doc/library/unittest.rst:332 msgid "Test discovery supports :term:`namespace packages `." msgstr "" -"La découverte de tests prend en charge :term:`les paquets-espaces de noms " +"La découverte de tests prend en charge :term:`les paquets-espaces de nommage " "`." #: ../Doc/library/unittest.rst:339 @@ -2893,7 +2893,7 @@ msgid "" msgstr "" "Les modules qui lèvent :exc:`SkipTest` lors de l'importation sont " "enregistrés comme des sauts et non des erreurs. Le mécanisme de découverte " -"fonctionne pour les :term:`paquets d'espaces de noms `. " +"fonctionne pour les :term:`paquets-espaces de nommage `. " "Les chemins sont triés avant d'être importés pour que l'ordre d'exécution " "soit le même, même si l'ordre du système de fichiers sous-jacent ne dépend " "pas du nom du fichier." diff --git a/library/xml.dom.po b/library/xml.dom.po index 4f0d2c030..17dad0ee4 100644 --- a/library/xml.dom.po +++ b/library/xml.dom.po @@ -6,13 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2018-09-29 19:36+0200\n" +"PO-Revision-Date: 2019-03-27 16:19+0100\n" "Last-Translator: Cyprien Le Pannérer \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/xml.dom.rst:2 msgid ":mod:`xml.dom` --- The Document Object Model API" @@ -236,17 +237,17 @@ msgid "" "the DOM. This is typically found as the :attr:`namespaceURI` of a node, or " "used as the *namespaceURI* parameter to a namespaces-specific method." msgstr "" -"La valeur utilisée pour indiquer qu'aucun espace de nom n'est associé à un " +"La valeur utilisée pour indiquer qu'aucun espace de noms n'est associé à un " "nœud dans le DOM. Typiquement, ceci est trouvé comme :attr:`namespaceURI` " "dans un nœud ou utilisé comme le paramètre *namespaceURI* dans une méthode " -"spécifique aux espaces de nom." +"spécifique aux espaces de noms." #: ../Doc/library/xml.dom.rst:121 msgid "" "The namespace URI associated with the reserved prefix ``xml``, as defined by " "`Namespaces in XML `_ (section 4)." msgstr "" -"L'URI de l'espace de nom associé avec le préfixe réservé ``xml`` comme " +"L'URI de l'espace de noms associé avec le préfixe réservé ``xml`` comme " "défini par `Namespaces in XML `_ " "(section 4)." @@ -256,7 +257,7 @@ msgid "" "Model (DOM) Level 2 Core Specification `_ (section 1.1.8)." msgstr "" -"L'URI de l'espace de nom pour la déclaration des espaces de noms, tel que " +"L'URI de l'espace de noms pour la déclaration des espaces de noms, tel que " "défini par `Document Object Model (DOM) Level 2 Core Specification `_ (section 1.1.8)." @@ -265,8 +266,9 @@ msgid "" "The URI of the XHTML namespace as defined by `XHTML 1.0: The Extensible " "HyperText Markup Language `_ (section 3.1.1)." msgstr "" -"L'URI de l'espace de nom XHTML tel que défini par `XHTML 1.0: The Extensible " -"HyperText Markup Language `_ (section 3.1.1)." +"L'URI de l'espace de noms XHTML tel que défini par `XHTML 1.0: The " +"Extensible HyperText Markup Language `_ " +"(section 3.1.1)." #: ../Doc/library/xml.dom.rst:138 msgid "" @@ -620,8 +622,8 @@ msgid "" "The namespace associated with the element name. This will be a string or " "``None``. This is a read-only attribute." msgstr "" -"L'espace de nom associé (*namespace*) au nom de l'élément. Cette valeur sera " -"une chaîne ou ``None``. Cet attribut est en lecture seule." +"L'espace de noms associé (*namespace* en anglais) au nom de l'élément. Cette " +"valeur est une chaîne ou ``None``. Cet attribut est en lecture seule." #: ../Doc/library/xml.dom.rst:322 msgid "" diff --git a/reference/compound_stmts.po b/reference/compound_stmts.po index 7636c3466..599ebf71b 100644 --- a/reference/compound_stmts.po +++ b/reference/compound_stmts.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-24 14:22+0100\n" -"PO-Revision-Date: 2019-02-19 22:16+0100\n" +"PO-Revision-Date: 2019-03-19 23:19+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -651,8 +651,8 @@ msgid "" "used when the function is called." msgstr "" "Une définition de fonction est une instruction qui est exécutée. Son " -"exécution lie le nom de la fonction, dans l'espace de noms local courant, à " -"un objet fonction (un objet qui encapsule le code exécutable de la " +"exécution lie le nom de la fonction, dans l'espace de nommage local courant, " +"à un objet fonction (un objet qui encapsule le code exécutable de la " "fonction). Cet objet fonction contient une référence à l'espace des noms " "globaux courant comme espace des noms globaux à utiliser lorsque la fonction " "est appelée." @@ -913,14 +913,14 @@ msgid "" "original local namespace." msgstr "" "La suite de la classe est ensuite exécutée dans un nouveau cadre d'exécution " -"(voir :ref:`naming`), en utilisant un espace de noms local nouvellement créé " -"et l'espace de noms global d'origine (habituellement, la suite contient " -"principalement des définitions de fonctions). Lorsque la suite de la classe " -"termine son exécution, son cadre d'exécution est abandonné mais son espace " -"des noms locaux est sauvegardé [#]_. Un objet classe est alors créé en " -"utilisant la liste d'héritage pour les classes de base et l'espace de noms " -"sauvegardé comme dictionnaire des attributs. Le nom de classe est lié à " -"l'objet classe dans l'espace de noms local original." +"(voir :ref:`naming`), en utilisant un espace de nommage local nouvellement " +"créé et l'espace de nommage global d'origine (habituellement, la suite " +"contient principalement des définitions de fonctions). Lorsque la suite de " +"la classe termine son exécution, son cadre d'exécution est abandonné mais " +"son espace des noms locaux est sauvegardé [#]_. Un objet classe est alors " +"créé en utilisant la liste d'héritage pour les classes de base et l'espace " +"de nommage sauvegardé comme dictionnaire des attributs. Le nom de classe est " +"lié à l'objet classe dans l'espace de nommage local original." #: ../Doc/reference/compound_stmts.rst:667 msgid "" @@ -1165,8 +1165,8 @@ msgid "" "term:`docstring`." msgstr "" "Une chaîne littérale apparaissant comme première instruction dans le corps " -"de la classe est transformée en élément ``__doc__`` de l'espace de noms et " -"donc en :term:`docstring` de la classe." +"de la classe est transformée en élément ``__doc__`` de l'espace de nommage " +"et donc en :term:`docstring` de la classe." #~ msgid "" #~ "Currently, control \"flows off the end\" except in the case of an " diff --git a/reference/datamodel.po b/reference/datamodel.po index 43f04889e..9fd9eaad4 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -884,8 +884,8 @@ msgid "" "the global namespace of the module in which the function was defined." msgstr "" "Référence pointant vers le dictionnaire contenant les variables globales de " -"la fonction -- l'espace de noms global du module dans lequel la fonction est " -"définie." +"la fonction -- l'espace de nommage global du module dans lequel la fonction " +"est définie." #: ../Doc/reference/datamodel.rst:501 ../Doc/reference/datamodel.rst:512 msgid "Read-only" @@ -897,7 +897,7 @@ msgstr ":attr:`~object.__dict__`" #: ../Doc/reference/datamodel.rst:508 msgid "The namespace supporting arbitrary function attributes." -msgstr "Espace de noms accueillant les attributs de la fonction." +msgstr "Espace de nommage accueillant les attributs de la fonction." #: ../Doc/reference/datamodel.rst:512 msgid ":attr:`__closure__`" @@ -1285,7 +1285,7 @@ msgstr "" "par le :ref:`mécanisme d'import ` soit avec l'instruction :" "keyword:`import`, soit en appelant des fonctions telles que :func:`importlib." "import_module` ou la fonction native :func:`__import__`. Un objet module " -"possède un espace de noms implémenté par un objet dictionnaire (c'est le " +"possède un espace de nommage implémenté par un objet dictionnaire (c'est le " "dictionnaire référencé par l'attribut ``__globals__`` des fonctions définies " "dans le module). Les références à un attribut sont traduites en recherches " "dans ce dictionnaire, par exemple ``m.x`` est équivalent à ``m.__dict__[\"x" @@ -1298,8 +1298,9 @@ msgid "" "Attribute assignment updates the module's namespace dictionary, e.g., ``m.x " "= 1`` is equivalent to ``m.__dict__[\"x\"] = 1``." msgstr "" -"L'assignation d'un attribut met à jour le dictionnaire d'espace de noms du " -"module, par exemple ``m.x = 1`` est équivalent à ``m.__dict__[\"x\"] = 1``." +"L'assignation d'un attribut met à jour le dictionnaire d'espace de nommage " +"du module, par exemple ``m.x = 1`` est équivalent à ``m.__dict__[\"x\"] = " +"1``." #: ../Doc/reference/datamodel.rst:723 msgid "" @@ -1332,7 +1333,7 @@ msgid "" "namespace as a dictionary object." msgstr "" "Attribut spécial en lecture seule : :attr:`~object.__dict__` est l'objet " -"dictionnaire répertoriant l'espace de noms du module." +"dictionnaire répertoriant l'espace de nommage du module." #: ../Doc/reference/datamodel.rst:741 msgid "" @@ -1368,7 +1369,7 @@ msgid "" msgstr "" "Le type d'une classe déclarée par le développeur est créé au moment de la " "définition de la classe (voir la section :ref:`class`). Une classe possède " -"un espace de noms implémenté sous la forme d'un objet dictionnaire. Les " +"un espace de nommage implémenté sous la forme d'un objet dictionnaire. Les " "références vers les attributs de la classe sont traduits en recherches dans " "ce dictionnaire, par exemple ``C.x`` est traduit en ``C.__dict__[\"x\"]`` " "(bien qu'il existe un certain nombre de fonctions automatiques qui " @@ -1429,8 +1430,8 @@ msgid "" msgstr "" "Attributs spéciaux : :attr:`~definition.__name__` est le nom de la classe ; :" "attr:`__module__` est le nom du module dans lequel la classe est définie ; :" -"attr:`~object.__dict__` est le dictionnaire contenant l'espace de noms de la " -"classe ; :attr:`~class.__bases__` est un tuple contenant les classes de " +"attr:`~object.__dict__` est le dictionnaire contenant l'espace de nommage de " +"la classe ; :attr:`~class.__bases__` est un tuple contenant les classes de " "base, dans l'ordre d'apparition dans la liste des classes de base ; :attr:" "`__doc__` est la chaîne de documentation de la classe (ou ``None`` si elle " "n'existe pas) ; :attr:`__annotations__` (optionnel) est un dictionnaire " @@ -1458,9 +1459,9 @@ msgid "" "method, that is called to satisfy the lookup." msgstr "" "Une instance de classe est créée en appelant un objet classe (voir ci-" -"dessus). Une instance de classe possède un espace de noms implémenté sous la " -"forme d'un dictionnaire qui est le premier endroit où sont recherchées les " -"références aux attributs. Quand un attribut n'est pas trouvé dans ce " +"dessus). Une instance de classe possède un espace de nommage implémenté sous " +"la forme d'un dictionnaire qui est le premier endroit où sont recherchées " +"les références aux attributs. Quand un attribut n'est pas trouvé dans ce " "dictionnaire et que la classe de l'instance contient un attribut avec ce " "nom, la recherche continue avec les attributs de la classe. Si un attribut " "de classe est trouvé et que c'est un objet fonction définie par " @@ -3210,7 +3211,7 @@ msgid "" "result of ``type(name, bases, namespace)``." msgstr "" "Par défaut, les classes sont construites en utilisant :func:`type`. Le corps " -"de la classe est exécuté dans un nouvel espace de noms et le nom de la " +"de la classe est exécuté dans un nouvel espace de nommage et le nom de la " "classe est lié localement au résultat de `type(name, bases, namespace)``." #: ../Doc/reference/datamodel.rst:1845 @@ -3251,9 +3252,8 @@ msgid "the appropriate metaclass is determined;" msgstr "la méta-classe appropriée est déterminée ;" #: ../Doc/reference/datamodel.rst:1866 -#, fuzzy msgid "the class namespace is prepared;" -msgstr "l'espace de noms de la classe est préparé ;" +msgstr "l'espace de nommage de la classe est préparé ;" #: ../Doc/reference/datamodel.rst:1867 #, fuzzy @@ -3344,7 +3344,7 @@ msgstr "" #: ../Doc/reference/datamodel.rst:1908 msgid "Preparing the class namespace" -msgstr "Préparation de l'espace de noms de la classe" +msgstr "Préparation de l'espace de nommage de la classe" #: ../Doc/reference/datamodel.rst:1913 msgid "" @@ -3353,8 +3353,8 @@ msgid "" "as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the " "additional keyword arguments, if any, come from the class definition)." msgstr "" -"Une fois que la méta-classe appropriée est identifiée, l'espace de noms de " -"la classe est préparé. Si la méta-classe possède un attribut " +"Une fois que la méta-classe appropriée est identifiée, l'espace de nommage " +"de la classe est préparé. Si la méta-classe possède un attribut " "``__prepare__``, il est appelé avec ``namespace = metaclass." "__prepare__(name, bases, **kwds)`` (où les arguments nommés supplémentaires, " "s'il y en a, viennent de la définition de la classe)." @@ -3365,8 +3365,8 @@ msgid "" "is initialised as an empty ordered mapping." msgstr "" "Si la méta-classe ne possède pas d'attribut ``__prepare__``, alors l'espace " -"de noms de la classe est initialisé en tant que tableau de correspondances " -"ordonné." +"de nommage de la classe est initialisé en tant que tableau de " +"correspondances ordonné." #: ../Doc/reference/datamodel.rst:1923 msgid ":pep:`3115` - Metaclasses in Python 3000" @@ -3375,7 +3375,8 @@ msgstr ":pep:`3115` -- Méta-classes dans Python 3000" #: ../Doc/reference/datamodel.rst:1924 msgid "Introduced the ``__prepare__`` namespace hook" msgstr "" -"introduction de la fonction automatique ``__prepare__`` de l'espace de noms" +"introduction de la fonction automatique ``__prepare__`` de l'espace de " +"nommage" #: ../Doc/reference/datamodel.rst:1928 msgid "Executing the class body" @@ -3422,7 +3423,7 @@ msgid "" "**kwds)`` (the additional keywords passed here are the same as those passed " "to ``__prepare__``)." msgstr "" -"Quand l'espace de noms a été rempli en exécutant le corps de la classe, " +"Quand l'espace de nommage a été rempli en exécutant le corps de la classe, " "l'objet classe est créé en appelant ``metaclass(name, bases, namespace, " "**kwds)`` (les arguments nommés supplémentaires passés ici sont les mêmes " "que ceux passés à ``__prepare__``)." @@ -3455,7 +3456,7 @@ msgid "" "`DeprecationWarning` in Python 3.6, and a :exc:`RuntimeError` in Python 3.8." msgstr "" "Dans CPython 3.6 et suivants, la cellule ``__class__`` est passée à la méta-" -"classe en tant qu'entrée ``__classcell__`` dans l'espace de noms de la " +"classe en tant qu'entrée ``__classcell__`` dans l'espace de nommage de la " "classe. Si elle est présente, elle doit être propagée à l'appel ``type .__ " "new__`` pour que la classe soit correctement initialisée. Ne pas le faire se " "traduit par un avertissement :exc:`DeprecationWarning` dans Python 3.6 et " @@ -3477,8 +3478,9 @@ msgid "" "first, ``type.__new__`` collects all of the descriptors in the class " "namespace that define a :meth:`~object.__set_name__` method;" msgstr "" -"d'abord, ``type.__new__`` récupère, dans l'espace de noms de la classe, tous " -"les descripteurs qui définissent une méthode :meth:`~object.__set_name__` ;" +"d'abord, ``type.__new__`` récupère, dans l'espace de nommage de la classe, " +"tous les descripteurs qui définissent une méthode :meth:`~object." +"__set_name__` ;" #: ../Doc/reference/datamodel.rst:1983 #, fuzzy @@ -3506,7 +3508,7 @@ msgid "" msgstr "" "Après la création de l'objet classe, il est passé aux décorateurs de la " "classe, y compris ceux inclus dans la définition de la classe (s'il y en a) " -"et l'objet résultant est lié à l'espace de noms local en tant que classe " +"et l'objet résultant est lié à l'espace de nommage local en tant que classe " "définie." #: ../Doc/reference/datamodel.rst:1992 @@ -3517,10 +3519,10 @@ msgid "" "becomes the :attr:`~object.__dict__` attribute of the class object." msgstr "" "Quand une nouvelle classe est créée *via* ``type.__new__``, l'objet fourni " -"en tant que paramètre d'espace de noms est copié vers un nouveau tableau de " -"correspondances ordonné et l'objet original est laissé de côté. La nouvelle " -"copie est encapsulée dans un mandataire en lecture seule qui devient " -"l'attribut :attr:`~object.__dict__` de l'objet classe." +"en tant que paramètre d'espace de nommage est copié vers un nouveau tableau " +"de correspondances ordonné et l'objet original est laissé de côté. La " +"nouvelle copie est encapsulée dans un mandataire en lecture seule qui " +"devient l'attribut :attr:`~object.__dict__` de l'objet classe." #: ../Doc/reference/datamodel.rst:1999 msgid ":pep:`3135` - New super" diff --git a/reference/executionmodel.po b/reference/executionmodel.po index acf64ef32..30107db65 100644 --- a/reference/executionmodel.po +++ b/reference/executionmodel.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2019-02-19 22:27+0100\n" +"PO-Revision-Date: 2019-03-19 23:21+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -211,14 +211,14 @@ msgid "" msgstr "" "Si l'instruction :keyword:`global` apparaît dans un bloc, toutes les " "utilisations du nom spécifié dans l'instruction font référence à la liaison " -"de ce nom dans l'espace de noms de plus haut niveau. Les noms sont résolus " -"dans cet espace de noms de plus haut niveau en recherchant l'espace des noms " -"globaux, c'est-à-dire l'espace de noms du module contenant le bloc de code " -"ainsi que dans l'espace de noms natifs, celui du module :mod:`builtins`. La " -"recherche commence dans l'espace de noms globaux. Si le nom n'y est pas " -"trouvé, la recherche se poursuit dans l'espace de noms natifs. " -"L'instruction :keyword:`!global` doit précéder toute utilisation du nom " -"considéré." +"de ce nom dans l'espace de nommage de plus haut niveau. Les noms sont " +"résolus dans cet espace de nommage de plus haut niveau en recherchant " +"l'espace des noms globaux, c'est-à-dire l'espace de nommage du module " +"contenant le bloc de code ainsi que dans l'espace de nommage natif, celui du " +"module :mod:`builtins`. La recherche commence dans l'espace de nommage " +"globaux. Si le nom n'y est pas trouvé, la recherche se poursuit dans " +"l'espace de nommage natif. L'instruction :keyword:`!global` doit précéder " +"toute utilisation du nom considéré." #: ../Doc/reference/executionmodel.rst:129 msgid "" @@ -249,7 +249,7 @@ msgid "" "The namespace for a module is automatically created the first time a module " "is imported. The main module for a script is always called :mod:`__main__`." msgstr "" -"L'espace de noms pour un module est créé automatiquement la première fois " +"L'espace de nommage pour un module est créé automatiquement la première fois " "que le module est importé. Le module principal d'un script s'appelle " "toujours :mod:`__main__`." @@ -272,7 +272,7 @@ msgstr "" "qui peut utiliser et définir des noms. Toutes ces références suivent les " "règles normales de la résolution des noms à l'exception des variables " "locales non liées qui sont recherchées dans l'espace des noms globaux. " -"L'espace de noms de la définition de classe devient le dictionnaire des " +"L'espace de nommage de la définition de classe devient le dictionnaire des " "attributs de la classe. La portée des noms définis dans un bloc de classe " "est limitée au bloc de la classe ; elle ne s'étend pas aux blocs de code des " "méthodes -- y compris les compréhensions et les expressions générateurs " @@ -292,7 +292,7 @@ msgid "" msgstr "" "L'utilisateur ne doit pas toucher à ``__builtins__``; c'est et cela doit " "rester réservé aux besoins de l'implémentation. Les utilisateurs qui " -"souhaitent surcharger des valeurs dans l'espace de noms natifs doivent :" +"souhaitent surcharger des valeurs dans l'espace de nommage natif doivent :" "keyword:`importer ` le module :mod:`builtins` et modifier ses " "attributs judicieusement." @@ -306,9 +306,9 @@ msgid "" "other module, ``__builtins__`` is an alias for the dictionary of the :mod:" "`builtins` module itself." msgstr "" -"L'espace de noms natifs associé à l'exécution d'un bloc de code est " +"L'espace de nommage natif associé à l'exécution d'un bloc de code est " "effectivement trouvé en cherchant le nom ``__builtins__`` dans l'espace de " -"noms globaux ; ce doit être un dictionnaire ou un module (dans ce dernier " +"nommage globaux ; ce doit être un dictionnaire ou un module (dans ce dernier " "cas, le dictionnaire du module est utilisé). Par défaut, lorsque l'on se " "trouve dans le module :mod:`__main__`, ``__builtins__`` est le module natif :" "mod:`builtins` ; lorsque l'on se trouve dans tout autre module, " @@ -339,12 +339,12 @@ msgid "" msgstr "" "Les fonctions :func:`eval` et :func:`exec` n'ont pas accès à l'environnement " "complet pour résoudre les noms. Les noms doivent être résolus dans les " -"espaces de noms locaux et globaux de l'appelant. Les variables libres ne " -"sont pas résolues dans l'espace de noms englobant le plus proche mais dans " -"l'espace de noms globaux [#]_. Les fonctions :func:`eval` et :func:`exec` " -"possèdent des arguments optionnels pour surcharger les espaces de noms " -"globaux et locaux. Si seulement un espace de noms est spécifié, il est " -"utilisé pour les deux." +"espaces de nommage locaux et globaux de l'appelant. Les variables libres ne " +"sont pas résolues dans l'espace de nommage englobant le plus proche mais " +"dans l'espace de nommage globaux [#]_. Les fonctions :func:`eval` et :func:" +"`exec` possèdent des arguments optionnels pour surcharger les espaces de " +"nommage globaux et locaux. Si seulement un espace de nommage est spécifié, " +"il est utilisé pour les deux." #: ../Doc/reference/executionmodel.rst:210 msgid "Exceptions" diff --git a/reference/import.po b/reference/import.po index 9863501ed..0c413f39c 100644 --- a/reference/import.po +++ b/reference/import.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2019-02-20 23:23+0100\n" +"PO-Revision-Date: 2019-03-19 23:14+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -210,7 +210,7 @@ msgid "" "additional attributes to the module when it is imported." msgstr "" "Python définit deux types de paquets, les :term:`paquets classiques ` et les :term:`paquets espaces de noms `. Les " +"package>` et les :term:`paquets espaces de nommage `. Les " "paquets classiques sont les paquets traditionnels tels qu'ils existaient " "dans Python 3.2 et antérieurs. Un paquet classique est typiquement " "implémenté sous la forme d'un répertoire contenant un fichier ``__init__." @@ -239,7 +239,7 @@ msgstr "" #: ../Doc/reference/import.rst:127 msgid "Namespace packages" -msgstr "Paquets espaces de noms" +msgstr "Paquets espaces de nommage" #: ../Doc/reference/import.rst:133 msgid "" @@ -251,14 +251,14 @@ msgid "" "objects on the file system; they may be virtual modules that have no " "concrete representation." msgstr "" -"Un paquet-espace de noms est la combinaison de plusieurs :term:`portions " +"Un paquet-espace de nommage est la combinaison de plusieurs :term:`portions " "` où chaque portion fournit un sous-paquet au paquet parent. Les " "portions peuvent être situées à différents endroits du système de fichiers. " "Les portions peuvent aussi être stockées dans des fichiers zip, sur le " "réseau ou à tout autre endroit dans lequel Python cherche pendant " -"l'importation. Les paquets-espaces de noms peuvent correspondre directement " -"à des objets du système de fichiers, ou pas ; ils peuvent être des modules " -"virtuels qui n'ont aucune représentation concrète." +"l'importation. Les paquets-espaces de nommage peuvent correspondre " +"directement à des objets du système de fichiers, ou pas ; ils peuvent être " +"des modules virtuels qui n'ont aucune représentation concrète." #: ../Doc/reference/import.rst:141 msgid "" @@ -268,7 +268,7 @@ msgid "" "that package if the path of their parent package (or :data:`sys.path` for a " "top level package) changes." msgstr "" -"Les paquets-espaces de noms n'utilisent pas une liste ordinaire pour leur " +"Les paquets-espaces de nommage n'utilisent pas une liste ordinaire pour leur " "attribut ``__path__``. Ils utilisent en lieu et place un type itérable " "personnalisé qui effectue automatiquement une nouvelle recherche de portions " "de paquets à la tentative suivante d'importation dans le paquet si le chemin " @@ -284,18 +284,19 @@ msgid "" "create a namespace package for the top-level ``parent`` package whenever it " "or one of its subpackages is imported." msgstr "" -"Pour les paquets-espaces de noms, il n'existe pas de fichier ``parent/" +"Pour les paquets-espaces de nommage, il n'existe pas de fichier ``parent/" "__init__.py``. En fait, il peut y avoir plusieurs répertoires ``parent`` " "trouvés pendant le processus d'importation, où chacun est apporté par une " "portion différente. Ainsi, ``parent/one`` n'est pas forcément physiquement à " -"côté de ``parent/two``. Dans ce cas, Python crée un paquet-espace de noms " +"côté de ``parent/two``. Dans ce cas, Python crée un paquet-espace de nommage " "pour le paquet de plus haut niveau ``parent`` dès que lui ou l'un de ses " "sous-paquet est importé." #: ../Doc/reference/import.rst:154 msgid "See also :pep:`420` for the namespace package specification." msgstr "" -"Voir aussi la :pep:`420` pour les spécifications des paquets-espaces de noms." +"Voir aussi la :pep:`420` pour les spécifications des paquets-espaces de " +"nommage." #: ../Doc/reference/import.rst:158 msgid "Searching" @@ -718,7 +719,7 @@ msgid "" "which gets to decide what gets populated and how." msgstr "" "L'exécution du module est le moment clé du chargement dans lequel l'espace " -"de noms du module est peuplé. L'exécution est entièrement déléguée au " +"de nommage du module est peuplé. L'exécution est entièrement déléguée au " "chargeur qui doit décider ce qui est peuplé et comment." #: ../Doc/reference/import.rst:395 @@ -909,7 +910,7 @@ msgid "" msgstr "" "Quand un sous-module est chargé, quel que soit le mécanisme (par exemple " "avec les instructions ``import``, ``import-from`` ou avec la fonction native " -"``__import__()``), une liaison est créée dans l'espace de noms du module " +"``__import__()``), une liaison est créée dans l'espace de nommage du module " "parent vers l'objet sous-module. Par exemple, si le paquet ``spam`` possède " "un sous-module ``foo``, après l'importation de ``spam.foo``, ``spam`` " "possède un attribut ``foo`` qui est lié au sous-module. Supposons que nous " @@ -1095,7 +1096,7 @@ msgid "" "details on the semantics of ``__path__`` are given :ref:`below `." msgstr "" -"Si le module est un paquet (classique ou espace de noms), l'attribut " +"Si le module est un paquet (classique ou espace de nommage), l'attribut " "``__path__`` de l'objet module doit être défini. La valeur doit être un " "itérable mais peut être vide si ``__path__`` n'a pas de sens dans le " "contexte. Si ``__path__`` n'est pas vide, il doit produire des chaînes " @@ -1195,11 +1196,11 @@ msgid "" msgstr "" "Le fichier ``__init__.py`` d'un paquet peut définir ou modifier l'attribut " "``__path__`` d'un paquet, et c'est ainsi qu'étaient implémentés les paquets-" -"espaces de noms avant la :pep:`420`. Depuis l'adoption de la :pep:`420`, les " -"paquets-espaces de noms n'ont plus besoin d'avoir des fichiers ``__init__." -"py`` qui ne font que de la manipulation de ``__path__`` ; le mécanisme " -"d'importation définit automatiquement ``__path__`` correctement pour un " -"paquet-espace de noms." +"espaces de nommage avant la :pep:`420`. Depuis l'adoption de la :pep:`420`, " +"les paquets-espaces de nommage n'ont plus besoin d'avoir des fichiers " +"``__init__.py`` qui ne font que de la manipulation de ``__path__`` ; le " +"mécanisme d'importation définit automatiquement ``__path__`` correctement " +"pour un paquet-espace de nommage." #: ../Doc/reference/import.rst:640 msgid "Module reprs" @@ -1671,8 +1672,8 @@ msgid "" "the :meth:`~importlib.abc.PathEntryFinder.find_spec` method." msgstr "" "Afin de gérer les importations de modules, l'initialisation des paquets et " -"d'être capables de contribuer aux portions des paquets-espaces de noms, les " -"chercheurs d'entrée dans *path* doivent implémenter la méthode :meth:" +"d'être capables de contribuer aux portions des paquets-espaces de nommage, " +"les chercheurs d'entrée dans *path* doivent implémenter la méthode :meth:" "`~importlib.abc.PathEntryFinder.find_spec`." #: ../Doc/reference/import.rst:853 @@ -1695,7 +1696,7 @@ msgid "" "``None`` and \"submodule_search_locations\" to a list containing the portion." msgstr "" "Pour indiquer au mécanisme d'importation que le spécificateur représente " -"une :term:`portion ` d'un espace de noms, le chercheur d'entrée " +"une :term:`portion ` d'un espace de nommage, le chercheur d'entrée " "dans *path* définit le chargeur du spécificateur à ``None`` et l'attribut " "*submodule_search_locations* à une liste contenant la portion." @@ -1741,15 +1742,15 @@ msgstr "" "La méthode :meth:`~importlib.abc.PathEntryFinder.find_loader` prend un " "argument, le nom complètement qualifié du module en cours d'importation. " "``find_loader()`` renvoie un couple dont le premier élément est le chargeur " -"et le second est une :term:`portion ` d'espace de noms. Quand le " +"et le second est une :term:`portion ` d'espace de nommage. Quand le " "premier élément (c'est-à-dire le chargeur) est ``None``, cela signifie que, " "bien que le chercheur d'entrée dans *path* n'a pas de chargeur pour le " "module considéré, il sait que cette entrée contribue à une portion d'espace " -"de noms pour le module considéré. C'est presque toujours le cas quand vous " -"demandez à Python d'importer un paquet-espace de noms qui n'est pas présent " -"physiquement sur le système de fichiers. Quand un chercheur d'entrée dans " -"*path* renvoie ``None`` pour le chargeur, la valeur du second élément du " -"couple renvoyé doit être une séquence, éventuellement vide." +"de nommage pour le module considéré. C'est presque toujours le cas quand " +"vous demandez à Python d'importer un paquet-espace de nommage qui n'est pas " +"présent physiquement sur le système de fichiers. Quand un chercheur d'entrée " +"dans *path* renvoie ``None`` pour le chargeur, la valeur du second élément " +"du couple renvoyé doit être une séquence, éventuellement vide." #: ../Doc/reference/import.rst:886 msgid "" @@ -1788,8 +1789,8 @@ msgid "" msgstr "" "La méthode ``find_module()`` des chercheurs d'entrée dans *path* est " "obsolète car elle n'autorise pas le chercheur d'entrée dans *path* à " -"contribuer aux portions d'espaces de noms des paquets-espaces de noms. Si à " -"la fois ``find_loader()`` et ``find_module()`` sont définies pour un " +"contribuer aux portions d'espaces de nommage des paquets-espaces de nommage. " +"Si à la fois ``find_loader()`` et ``find_module()`` sont définies pour un " "chercheur d'entrée dans *path*, le système d'importation utilise toujours " "``find_loader()`` plutôt que ``find_module()``." @@ -1935,7 +1936,7 @@ msgstr "" "que ``__main__.__spec__`` est défini en conséquence, ils seront toujours " "considérés comme des modules *distincts*. Cela est dû au fait que le bloc " "encadré par ``if __name__ == \"__main__\":`` ne s'exécute que quand le " -"module est utilisé pour peupler l'espace de noms de ``__main__``, et pas " +"module est utilisé pour peupler l'espace de nommage de ``__main__``, et pas " "durant une importation normale." #: ../Doc/reference/import.rst:971 @@ -2011,7 +2012,7 @@ msgid "" "Python 3.3. :pep:`420` also introduced the :meth:`find_loader` protocol as " "an alternative to :meth:`find_module`." msgstr "" -"La :pep:`420` a introduit les :term:`paquets-espaces de noms ` pour Python 3.3. :pep:`420` a aussi introduit le protocole :meth:" "`recherche du chargeur ` comme une alternative à :meth:" "`find_module`." diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index 684b72d8f..b0ec7f5c8 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-24 14:22+0100\n" -"PO-Revision-Date: 2019-02-20 23:27+0100\n" +"PO-Revision-Date: 2019-03-19 23:15+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -190,7 +190,8 @@ msgid "" "outer namespace determined by :keyword:`nonlocal`, respectively." msgstr "" "Sinon : le nom est lié à l'objet dans l'espace des noms globaux ou dans un " -"espace de noms plus large déterminé par :keyword:`nonlocal`, respectivement." +"espace de nommage plus large déterminé par :keyword:`nonlocal`, " +"respectivement." #: ../Doc/reference/simple_stmts.rst:156 msgid "" @@ -1009,7 +1010,7 @@ msgid "" "in the local namespace in one of three ways:" msgstr "" "Si le module requis est bien récupéré, il est mis à disposition de l'espace " -"de noms locaux suivant l'une des trois façons suivantes :" +"de nommage local suivant l'une des trois façons suivantes :" #: ../Doc/reference/simple_stmts.rst:759 msgid "" @@ -1111,7 +1112,7 @@ msgid "" "API (such as library modules which were imported and used within the module)." msgstr "" "Les *noms publics* définis par un module sont déterminés en cherchant dans " -"l'espace de noms du module une variable nommée ``__all__`` ; Si elle est " +"l'espace de nommage du module une variable nommée ``__all__`` ; Si elle est " "définie, elle doit être une séquence de chaînes désignant les noms définis " "ou importés par ce module. Les noms donnés dans ``__all__`` sont tous " "considérés publics et doivent exister. Si ``__all__`` n'est pas définie, " diff --git a/reference/toplevel_components.po b/reference/toplevel_components.po index 2f66d6443..1ea4ade89 100644 --- a/reference/toplevel_components.po +++ b/reference/toplevel_components.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2018-07-02 22:54+0200\n" +"PO-Revision-Date: 2019-03-19 23:26+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -53,7 +53,7 @@ msgstr "" "modules intégrés et standard sont disponibles mais aucun n'a été initialisé, " "à l'exception de :mod:`sys` (divers services système), :mod:`builtins` " "(fonctions natives, exceptions et ``None``) et :mod:`__main__`. Ce dernier " -"est utilisé pour avoir des espaces de noms locaux et globaux pour " +"est utilisé pour avoir des espaces de nommage locaux et globaux pour " "l'exécution du programme complet." #: ../Doc/reference/toplevel_components.rst:36 @@ -76,7 +76,7 @@ msgstr "" "il ne lit et n'exécute pas un programme complet mais lit et exécute une " "seule instruction (éventuellement composée) à la fois. L'environnement " "initial est identique à celui d'un programme complet ; chaque instruction " -"est exécutée dans l'espace de noms de :mod:`__main__`." +"est exécutée dans l'espace de nommage de :mod:`__main__`." #: ../Doc/reference/toplevel_components.rst:55 msgid "" diff --git a/tutorial/appendix.po b/tutorial/appendix.po index 85ece9847..e844075c3 100644 --- a/tutorial/appendix.po +++ b/tutorial/appendix.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" -"PO-Revision-Date: 2018-08-01 00:29+0200\n" +"PO-Revision-Date: 2019-03-19 23:11+0100\n" "Last-Translator: Christophe Nanteuil \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -147,7 +147,7 @@ msgstr "" "instructions depuis un fichier, ni quand :file:`/dev/tty` est donné " "explicitement comme fichier source (pour tout le reste, Python se comporte " "alors comme dans une session interactive). Les instructions de ce fichier " -"sont exécutées dans le même espace de noms que vos commandes, donc les " +"sont exécutées dans le même espace de nommage que vos commandes, donc les " "objets définis et modules importés peuvent être utilisés directement dans la " "session interactive. Dans ce fichier, il est aussi possible de changer les " "invites de commande ``sys.ps1`` et ``sys.ps2``." diff --git a/tutorial/classes.po b/tutorial/classes.po index b876a9b2a..752b21d8a 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2019-01-03 17:13+0100\n" +"PO-Revision-Date: 2019-03-19 23:10+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -135,7 +135,7 @@ msgstr "" #: ../Doc/tutorial/classes.rst:61 msgid "Python Scopes and Namespaces" -msgstr "Portées et espaces de noms en Python" +msgstr "Portées et espaces de nommage en Python" #: ../Doc/tutorial/classes.rst:63 msgid "" @@ -147,9 +147,9 @@ msgid "" msgstr "" "Avant de présenter les classes, nous devons aborder la notion de portée en " "Python. Les définitions de classes font d'habiles manipulations avec les " -"espaces de noms, vous devez donc savoir comment les portées et les espaces " -"de noms fonctionnent. Soit dit en passant, la connaissance de ce sujet est " -"aussi utile aux développeurs Python expérimentés." +"espaces de nommage, vous devez donc savoir comment les portées et les " +"espaces de nommage fonctionnent. Soit dit en passant, la connaissance de ce " +"sujet est aussi utile aux développeurs Python expérimentés." #: ../Doc/tutorial/classes.rst:69 msgid "Let's begin with some definitions." @@ -169,19 +169,19 @@ msgid "" "may both define a function ``maximize`` without confusion --- users of the " "modules must prefix it with the module name." msgstr "" -"Un *espace de noms* est une table de correspondance entre des noms et des " -"objets. La plupart des espaces de noms sont actuellement implémentés sous " +"Un *espace de nommage* est une table de correspondance entre des noms et des " +"objets. La plupart des espaces de nommage sont actuellement implémentés sous " "forme de dictionnaires Python, mais ceci n'est normalement pas visible (sauf " "pour les performances) et peut changer dans le futur. Comme exemples " -"d'espaces de noms, nous pouvons citer les primitives (fonctions comme :func:" -"`abs` et les noms des exceptions de base) ; les noms globaux dans un " +"d'espaces de nommage, nous pouvons citer les primitives (fonctions comme :" +"func:`abs` et les noms des exceptions de base) ; les noms globaux dans un " "module ; et les noms locaux lors d'un appel de fonction. D'une certaine " "manière, l'ensemble des attributs d'un objet forme lui-même un espace de " -"noms. L'important à retenir concernant les espaces de noms est qu'il n'y a " -"absolument aucun lien entre les noms de différents espaces de noms ; par " -"exemple, deux modules différents peuvent définir une fonction ``maximize`` " -"sans qu'il n'y ait de confusion. Les utilisateurs des modules doivent " -"préfixer le nom de la fonction avec celui du module." +"nommage. L'important à retenir concernant les espaces de nommage est qu'il " +"n'y a absolument aucun lien entre les noms de différents espaces de " +"nommage ; par exemple, deux modules différents peuvent définir une fonction " +"``maximize`` sans qu'il n'y ait de confusion. Les utilisateurs des modules " +"doivent préfixer le nom de la fonction avec celui du module." #: ../Doc/tutorial/classes.rst:82 msgid "" @@ -200,7 +200,7 @@ msgstr "" "nomfonction``, ``nommodule`` est un objet module et ``nomfonction`` est un " "attribut de cet objet. Dans ces conditions, il existe une correspondance " "directe entre les attributs du module et les noms globaux définis dans le " -"module : ils partagent le même espace de noms [#]_ !" +"module : ils partagent le même espace de nommage [#]_ !" #: ../Doc/tutorial/classes.rst:90 msgid "" @@ -229,17 +229,17 @@ msgid "" "`__main__`, so they have their own global namespace. (The built-in names " "actually also live in a module; this is called :mod:`builtins`.)" msgstr "" -"Les espaces de noms sont créés à différents moments et ont différentes " -"durées de vie. L'espace de noms contenant les primitives est créé au " -"démarrage de l'interpréteur Python et n'est jamais effacé. L'espace de noms " -"globaux pour un module est créé lorsque la définition du module est lue. " -"Habituellement, les espaces de noms des modules durent aussi jusqu'à l'arrêt " -"de l'interpréteur. Les instructions exécutées par la première invocation de " -"l'interpréteur, qu'elles soient lues depuis un fichier de script ou de " -"manière interactive, sont considérées comme faisant partie d'un module " -"appelé :mod:`__main__`, de façon qu'elles possèdent leur propre espace de " -"noms (les primitives vivent elles-mêmes dans un module, appelé :mod:" -"`builtins`)." +"Les espaces de nommage sont créés à différents moments et ont différentes " +"durées de vie. L'espace de nommage contenant les primitives est créé au " +"démarrage de l'interpréteur Python et n'est jamais effacé. L'espace de " +"nommage globaux pour un module est créé lorsque la définition du module est " +"lue. Habituellement, les espaces de nommage des modules durent aussi jusqu'à " +"l'arrêt de l'interpréteur. Les instructions exécutées par la première " +"invocation de l'interpréteur, qu'elles soient lues depuis un fichier de " +"script ou de manière interactive, sont considérées comme faisant partie d'un " +"module appelé :mod:`__main__`, de façon qu'elles possèdent leur propre " +"espace de nommage (les primitives vivent elles-mêmes dans un module, appelé :" +"mod:`builtins`)." #: ../Doc/tutorial/classes.rst:106 msgid "" @@ -253,7 +253,7 @@ msgstr "" "effacé lorsqu'elle renvoie un résultat ou lève une exception non prise en " "charge (en fait, « oublié » serait une meilleure façon de décrire ce qui se " "passe réellement). Bien sûr, des invocations récursives ont chacune leur " -"propre espace de noms." +"propre espace de nommage." #: ../Doc/tutorial/classes.rst:112 msgid "" @@ -261,9 +261,10 @@ msgid "" "directly accessible. \"Directly accessible\" here means that an unqualified " "reference to a name attempts to find the name in the namespace." msgstr "" -"La *portée* est la zone textuelle d'un programme Python où un espace de noms " -"est directement accessible. « Directement accessible » signifie ici qu'une " -"référence non qualifiée à un nom est cherchée dans l'espace de noms." +"La *portée* est la zone textuelle d'un programme Python où un espace de " +"nommage est directement accessible. « Directement accessible » signifie ici " +"qu'une référence non qualifiée à un nom est cherchée dans l'espace de " +"nommage." #: ../Doc/tutorial/classes.rst:116 msgid "" @@ -273,7 +274,7 @@ msgid "" msgstr "" "Bien que les portées soient déterminées de manière statique, elles sont " "utilisées de manière dynamique. À n'importe quel moment de l'exécution, il y " -"a au minimum trois portées imbriquées dont les espaces de noms sont " +"a au minimum trois portées imbriquées dont les espaces de nommage sont " "directement accessibles :" #: ../Doc/tutorial/classes.rst:120 @@ -300,8 +301,8 @@ msgid "" "the outermost scope (searched last) is the namespace containing built-in " "names" msgstr "" -"la portée englobante, consultée en dernier, est l'espace de noms contenant " -"les primitives." +"la portée englobante, consultée en dernier, est l'espace de nommage " +"contenant les primitives." #: ../Doc/tutorial/classes.rst:126 msgid "" @@ -331,8 +332,9 @@ msgid "" msgstr "" "Habituellement, la portée locale référence les noms locaux de la fonction " "courante. En dehors des fonctions, la portée locale référence le même espace " -"de noms que la portée globale : l'espace de noms du module. Les définitions " -"de classes créent un nouvel espace de noms dans la portée locale." +"de nommage que la portée globale : l'espace de nommage du module. Les " +"définitions de classes créent un nouvel espace de nommage dans la portée " +"locale." #: ../Doc/tutorial/classes.rst:138 msgid "" @@ -346,11 +348,11 @@ msgid "" msgstr "" "Il est important de réaliser que les portées sont déterminées de manière " "textuelle : la portée globale d'une fonction définie dans un module est " -"l'espace de noms de ce module, quelle que soit la provenance de l'appel à la " -"fonction. En revanche, la recherche réelle des noms est faite dynamiquement " -"au moment de l'exécution. Cependant la définition du langage est en train " -"d'évoluer vers une résolution statique des noms au moment de la « " -"compilation », donc ne vous basez pas sur une résolution dynamique (en " +"l'espace de nommage de ce module, quelle que soit la provenance de l'appel à " +"la fonction. En revanche, la recherche réelle des noms est faite " +"dynamiquement au moment de l'exécution. Cependant la définition du langage " +"est en train d'évoluer vers une résolution statique des noms au moment de la " +"« compilation », donc ne vous basez pas sur une résolution dynamique (en " "réalité, les variables locales sont déjà déterminées de manière statique) !" #: ../Doc/tutorial/classes.rst:146 @@ -368,11 +370,12 @@ msgstr "" "n'est active, les affectations de noms vont toujours dans la portée la plus " "proche. Les affectations ne copient aucune donnée : elles se contentent de " "lier des noms à des objets. Ceci est également vrai pour l'effacement : " -"l'instruction ``del x`` supprime la liaison de ``x`` dans l'espace de noms " -"référencé par la portée locale. En réalité, toutes les opérations qui " -"impliquent des nouveaux noms utilisent la portée locale : en particulier, " -"les instructions :keyword:`import` et les définitions de fonctions " -"effectuent une liaison du module ou du nom de fonction dans la portée locale." +"l'instruction ``del x`` supprime la liaison de ``x`` dans l'espace de " +"nommage référencé par la portée locale. En réalité, toutes les opérations " +"qui impliquent des nouveaux noms utilisent la portée locale : en " +"particulier, les instructions :keyword:`import` et les définitions de " +"fonctions effectuent une liaison du module ou du nom de fonction dans la " +"portée locale." #: ../Doc/tutorial/classes.rst:154 msgid "" @@ -388,7 +391,7 @@ msgstr "" #: ../Doc/tutorial/classes.rst:162 msgid "Scopes and Namespaces Example" -msgstr "Exemple de portées et d'espaces de noms" +msgstr "Exemple de portées et d'espaces de nommage" #: ../Doc/tutorial/classes.rst:164 msgid "" @@ -397,7 +400,7 @@ msgid "" "variable binding::" msgstr "" "Ceci est un exemple montrant comment utiliser les différentes portées et " -"espaces de noms, et comment :keyword:`global` et :keyword:`nonlocal` " +"espaces de nommage, et comment :keyword:`global` et :keyword:`nonlocal` " "modifient l'affectation de variable ::" #: ../Doc/tutorial/classes.rst:191 @@ -480,10 +483,10 @@ msgid "" "new namespace. In particular, function definitions bind the name of the new " "function here." msgstr "" -"Quand une classe est définie, un nouvel espace de noms est créé et utilisé " -"comme portée locale --- Ainsi, toutes les affectations de variables locales " -"entrent dans ce nouvel espace de noms. En particulier, les définitions de " -"fonctions y lient le nom de la nouvelle fonction." +"Quand une classe est définie, un nouvel espace de nommage est créé et " +"utilisé comme portée locale --- Ainsi, toutes les affectations de variables " +"locales entrent dans ce nouvel espace de nommage. En particulier, les " +"définitions de fonctions y lient le nom de la nouvelle fonction." #: ../Doc/tutorial/classes.rst:247 msgid "" @@ -496,12 +499,12 @@ msgid "" "`ClassName` in the example)." msgstr "" "À la fin de la définition d'une classe, un *objet classe* est créé. C'est, " -"pour simplifier, une encapsulation du contenu de l'espace de noms créé par " -"la définition de classe. Nous revoyons les objets classes dans la prochaine " -"section. La portée locale initiale (celle qui prévaut avant le début de la " -"définition de la classe) est ré-instanciée et l'objet de classe est lié ici " -"au nom de classe donné dans l'en-tête de définition de classe (:class:" -"`ClassName` dans l'exemple)." +"pour simplifier, une encapsulation du contenu de l'espace de nommage créé " +"par la définition de classe. Nous revoyons les objets classes dans la " +"prochaine section. La portée locale initiale (celle qui prévaut avant le " +"début de la définition de la classe) est ré-instanciée et l'objet de classe " +"est lié ici au nom de classe donné dans l'en-tête de définition de classe (:" +"class:`ClassName` dans l'exemple)." #: ../Doc/tutorial/classes.rst:259 msgid "Class Objects" @@ -525,8 +528,8 @@ msgstr "" "Les *références d'attributs* utilisent la syntaxe standard utilisée pour " "toutes les références d'attributs en Python : ``obj.nom``. Les noms " "d'attribut valides sont tous les noms qui se trouvaient dans l'espace de " -"noms de la classe quand l'objet classe a été créé. Donc, si la définition de " -"classe est de cette forme ::" +"nommage de la classe quand l'objet classe a été créé. Donc, si la définition " +"de classe est de cette forme ::" #: ../Doc/tutorial/classes.rst:276 msgid "" @@ -1405,10 +1408,11 @@ msgid "" msgstr "" "Il existe une exception : les modules disposent d'un attribut secret en " "lecture seule appelé :attr:`~object.__dict__` qui renvoie le dictionnaire " -"utilisé pour implémenter l'espace de noms du module ; le nom :attr:`~object." -"__dict__` est un attribut mais pas un nom global. Évidemment, si vous " -"l'utilisez, vous brisez l'abstraction de l'implémentation des espaces de " -"noms. Il est donc réservé à des choses comme les débogueurs post-mortem." +"utilisé pour implémenter l'espace de nommage du module ; le nom :attr:" +"`~object.__dict__` est un attribut mais pas un nom global. Évidemment, si " +"vous l'utilisez, vous brisez l'abstraction de l'implémentation des espaces " +"de nommage. Il est donc réservé à des choses comme les débogueurs post-" +"mortem." #~ msgid "Exceptions Are Classes Too" #~ msgstr "Les exceptions sont aussi des classes" diff --git a/tutorial/modules.po b/tutorial/modules.po index 6fc1f3575..244be4f6a 100644 --- a/tutorial/modules.po +++ b/tutorial/modules.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-12-21 09:48+0100\n" -"PO-Revision-Date: 2019-01-03 17:11+0100\n" +"PO-Revision-Date: 2019-03-19 23:12+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -530,7 +530,7 @@ msgid "" "authors of multi-module packages like NumPy or Pillow from having to worry " "about each other's module names." msgstr "" -"Les paquets sont un moyen de structurer les espaces de noms des modules " +"Les paquets sont un moyen de structurer les espaces de nommage des modules " "Python en utilisant une notation \"pointée\". Par exemple, le nom de module :" "mod:`A.B` désigne le sous-module ``B`` du paquet ``A``. De la même manière " "que l'utilisation des modules évite aux auteurs de différents modules " @@ -729,7 +729,7 @@ msgid "" msgstr "" "Si ``__all__`` n'est pas définie, l'instruction ``from sound.effects import " "*`` n'importe *pas* tous les sous-modules du paquet :mod:`sound.effects` " -"dans l'espace de noms courant mais s'assure seulement que le paquet :mod:" +"dans l'espace de nommage courant mais s'assure seulement que le paquet :mod:" "`sound.effects` a été importé (i.e. que tout le code du fichier :file:" "`__init__.py` a été exécuté) et importe ensuite les noms définis dans le " "paquet. Cela inclut tous les noms définis (et sous-modules chargés " @@ -745,7 +745,7 @@ msgid "" "when ``__all__`` is defined.)" msgstr "" "Dans cet exemple, les modules :mod:`echo` et :mod:`surround` sont importés " -"dans l'espace de noms courant lorsque ``from...import`` est exécuté parce " +"dans l'espace de nommage courant lorsque ``from...import`` est exécuté parce " "qu'ils sont définis dans le paquet :mod:`sound.effects` (cela fonctionne " "aussi lorsque ``__all__`` est définie)." diff --git a/using/cmdline.po b/using/cmdline.po index c69fe466c..aa9573abd 100644 --- a/using/cmdline.po +++ b/using/cmdline.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-29 16:06+0100\n" -"PO-Revision-Date: 2018-11-29 18:25+0100\n" +"PO-Revision-Date: 2019-03-19 23:22+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -182,11 +182,11 @@ msgid "" "passed to the interpreter as the script argument." msgstr "" "Les noms de paquets sont aussi autorisés (ainsi que les paquets-espace de " -"noms, *namespace packages* en anglais). Quand un nom de paquet est donné à " -"la place d'un simple module, l'interpréteur exécute ``.__main__`` comme " -"module principal. Ce comportement est délibérément identique au traitement " -"d'un dossier ou d'un fichier zip donné en argument à l'interpréteur comme " -"script." +"nommage, *namespace packages* en anglais). Quand un nom de paquet est donné " +"à la place d'un simple module, l'interpréteur exécute ``.__main__`` " +"comme module principal. Ce comportement est délibérément identique au " +"traitement d'un dossier ou d'un fichier zip donné en argument à " +"l'interpréteur comme script." #: ../Doc/using/cmdline.rst:93 msgid "" @@ -240,7 +240,7 @@ msgstr "Fournir le nom d'un paquet pour exécuter un sous-module ``__main__``." #: ../Doc/using/cmdline.rst:119 msgid "namespace packages are also supported" -msgstr "les paquets-espaces de noms sont aussi gérés" +msgstr "les paquets-espaces de nommage sont aussi gérés" #: ../Doc/using/cmdline.rst:125 msgid "" @@ -936,8 +936,8 @@ msgid "" msgstr "" "S'il s'agit d'un nom de fichier accessible en lecture, les commandes Python " "de ce fichier sont exécutées avant que la première invite ne soit affichée " -"en mode interactif. Le fichier est exécuté dans le même espace de noms que " -"les commandes interactives, de manière à ce que les objets définis ou " +"en mode interactif. Le fichier est exécuté dans le même espace de nommage " +"que les commandes interactives, de manière à ce que les objets définis ou " "importés puissent être utilisés sans qualificatif dans la session " "interactive. Vous pouvez aussi changer les invites :data:`sys.ps1` et :data:" "`sys.ps2` ainsi que le point d'entrée (*hook* en anglais) :data:`sys." From 1892c1763c430ebeaf273563d14fdf9a60b34969 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Thu, 4 Apr 2019 00:14:39 +0200 Subject: [PATCH 116/121] Suivi des 'fuzzy' (#641) --- howto/regex.po | 12 +++++----- library/collections.po | 53 ++++++++++++++++++++++++++++++++--------- library/datetime.po | 18 ++++++++++---- library/re.po | 18 +++++++------- reference/datamodel.po | 54 +++++++++++++++++++++--------------------- 5 files changed, 98 insertions(+), 57 deletions(-) diff --git a/howto/regex.po b/howto/regex.po index eaa08e03c..b90af9bc1 100644 --- a/howto/regex.po +++ b/howto/regex.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2018-09-27 23:16+0200\n" +"PO-Revision-Date: 2019-03-26 22:48+0100\n" "Last-Translator: Nabil Bendafi \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -210,7 +210,6 @@ msgstr "" "classe de caractères, il est dépourvu de sa signification spéciale." #: ../Doc/howto/regex.rst:97 -#, fuzzy msgid "" "You can match the characters not listed within the class by :dfn:" "`complementing` the set. This is indicated by including a ``'^'`` as the " @@ -221,10 +220,11 @@ msgid "" msgstr "" "Vous pouvez trouver une correspondance avec les caractères non listés dans " "une classe en spécifiant le :dfn:`complément` de l'ensemble. Ceci est " -"indiqué en plaçant un ``'^'`` en tant que premier caractère de la classe ; " -"``'^'`` en dehors d'une classe de caractères correspond au caractère " -"``'^'``. Par exemple, ``[^5]`` correspond à tous les caractères, sauf " -"``'5'``." +"indiqué en plaçant un ``'^'`` en tant que premier caractère de la classe. " +"Par exemple, ``[^5]`` correspond à tous les caractères, sauf ``'5'``. Si le " +"caret se trouve ailleurs dans la classe de caractères, il ne possède pas de " +"signification spéciale. Ainsi, ``[5^]`` correspond au ``'5'`` ou au " +"caractère ``'^'``." #: ../Doc/howto/regex.rst:103 msgid "" diff --git a/library/collections.po b/library/collections.po index 8ded9f4e3..bf249719c 100644 --- a/library/collections.po +++ b/library/collections.po @@ -261,12 +261,16 @@ msgid "" "Note, the iteration order of a :class:`ChainMap()` is determined by scanning " "the mappings last to first::" msgstr "" +"Notez que l'itération de :class:`ChainMap()` se fait en parcourant les " +"tableaux de correspondances du dernier jusqu'au premier ::" #: ../Doc/library/collections.rst:111 msgid "" "This gives the same ordering as a series of :meth:`dict.update` calls " "starting with the last mapping::" msgstr "" +"Cela produit le même ordre qu'une suite d'appels à :meth:`dict.update` en " +"commençant par le dernier tableau de correspondances ::" #: ../Doc/library/collections.rst:121 msgid "" @@ -1246,13 +1250,12 @@ msgstr "" "séquence ou d'un itérable existant." #: ../Doc/library/collections.rst:905 -#, fuzzy msgid "" "Return a new :class:`dict` which maps field names to their corresponding " "values:" msgstr "" -"Renvoie un nouvel :class:`OrderedDict` qui associe chaque nom de champ à sa " -"valeur correspondante :" +"Renvoie un nouveau :class:`dict` qui associe chaque nom de champ à sa valeur " +"correspondante :" #: ../Doc/library/collections.rst:914 msgid "Returns an :class:`OrderedDict` instead of a regular :class:`dict`." @@ -1347,14 +1350,14 @@ msgstr "" "`~somenamedtuple._replace` pour personnaliser une instance prototype :" #: ../Doc/library/collections.rst:1019 -#, fuzzy msgid "" "See :class:`typing.NamedTuple` for a way to add type hints for named " "tuples. It also provides an elegant notation using the :keyword:`class` " "keyword::" msgstr "" "Voir :meth:`typing.NamedTuple` pour un moyen d'ajouter des indications de " -"type pour les tuples nommés." +"type pour les tuples nommés. Cela fournit aussi une notation élégante en " +"utilisant le mot-clé :keyword:`class` ::" #: ../Doc/library/collections.rst:1028 msgid "" @@ -1369,6 +1372,9 @@ msgid "" "The :mod:`dataclasses` module provides a decorator and functions for " "automatically adding generated special methods to user-defined classes." msgstr "" +"Le module :mod:`dataclasses` fournit un décorateur et des fonctions pour " +"ajouter automatiquement des méthodes spéciales aux classes définies par " +"l'utilisateur." #: ../Doc/library/collections.rst:1036 msgid ":class:`OrderedDict` objects" @@ -1381,16 +1387,23 @@ msgid "" "important now that the built-in :class:`dict` class gained the ability to " "remember insertion order (this new behavior became guaranteed in Python 3.7)." msgstr "" +"Les dictionnaires ordonnés sont des dictionnaires comme les autres mais " +"possèdent des capacités supplémentaires pour s'ordonner. Ils sont maintenant " +"moins importants puisque la classe native :class:`dict` sait se souvenir de " +"l'ordre d'insertion (cette fonctionnalité a été garantie par Python 3.7)." #: ../Doc/library/collections.rst:1044 msgid "Some differences from :class:`dict` still remain:" -msgstr "" +msgstr "Quelques différences persistent vis-à-vis de :class:`dict` :" #: ../Doc/library/collections.rst:1046 msgid "" "The regular :class:`dict` was designed to be very good at mapping " "operations. Tracking insertion order was secondary." msgstr "" +"Les :class:`dict` classiques ont été conçus pour être performants dans les " +"opérations de correspondance. Garder une trace de l'ordre d'insertion était " +"secondaire." #: ../Doc/library/collections.rst:1049 msgid "" @@ -1398,6 +1411,9 @@ msgid "" "Space efficiency, iteration speed, and the performance of update operations " "were secondary." msgstr "" +"Les :class:`OrderedDict` ont été conçus pour être performants dans les " +"opérations de ré-arrangement. L'occupation mémoire, la vitesse de parcours " +"et les performances de mise à jour étaient secondaires." #: ../Doc/library/collections.rst:1053 msgid "" @@ -1406,33 +1422,47 @@ msgid "" "recent accesses (for example in an `LRU cache `_)." msgstr "" +"Algorithmiquement, :class:`OrderedDict` gère mieux les ré-arrangements " +"fréquents que :class:`dict`. Ceci la rend adaptée pour suivre les accès les " +"plus récents (par exemple pour implémenter un `cache LRU `_ pour *Least " +"Recently Used* en anglais)." #: ../Doc/library/collections.rst:1058 msgid "" "The equality operation for :class:`OrderedDict` checks for matching order." msgstr "" +"Le test d'égalité de :class:`OrderedDict` vérifie si l'ordre correspond." #: ../Doc/library/collections.rst:1060 msgid "" "The :meth:`popitem` method of :class:`OrderedDict` has a different " "signature. It accepts an optional argument to specify which item is popped." msgstr "" +"La méthode :meth:`popitem` de :class:`OrderedDict` possède une signature " +"différente. Elle accepte un argument optionnel pour spécifier quel élément " +"doit être enlevé." #: ../Doc/library/collections.rst:1063 msgid "" ":class:`OrderedDict` has a :meth:`move_to_end` method to efficiently " "reposition an element to an endpoint." msgstr "" +":class:`OrderedDict` possède une méthode :meth:`move_to_end` pour déplacer " +"efficacement un élément à la fin." #: ../Doc/library/collections.rst:1066 msgid "Until Python 3.8, :class:`dict` lacked a :meth:`__reversed__` method." msgstr "" +"Avant Python 3.8, :class:`dict` n'a pas de méthode :meth:`__reversed__`." #: ../Doc/library/collections.rst:1071 msgid "" "Return an instance of a :class:`dict` subclass that has methods specialized " "for rearranging dictionary order." msgstr "" +"Renvoie une instance d'une sous-classe de :class:`dict` qui possède des " +"méthodes spécialisées pour redéfinir l'ordre du dictionnaire." #: ../Doc/library/collections.rst:1078 msgid "" @@ -1506,23 +1536,24 @@ msgid ":class:`OrderedDict` Examples and Recipes" msgstr "Exemples et cas pratiques utilisant :class:`OrderDict`" #: ../Doc/library/collections.rst:1122 -#, fuzzy msgid "" "It is straightforward to create an ordered dictionary variant that remembers " "the order the keys were *last* inserted. If a new entry overwrites an " "existing entry, the original insertion position is changed and moved to the " "end::" msgstr "" -"Il est également facile de créer une variante de dictionnaire ordonné qui " -"retient l'ordre dans lequel les clés ont été insérées *en dernier*. Si une " -"nouvelle entrée écrase une existante, la position d'insertion d'origine est " -"modifiée et déplacée à la fin : ::" +"Il est facile de créer une variante de dictionnaire ordonné qui retient " +"l'ordre dans lequel les clés ont été insérées *en dernier*. Si une nouvelle " +"entrée écrase une existante, la position d'insertion d'origine est modifiée " +"et déplacée à la fin : ::" #: ../Doc/library/collections.rst:1134 msgid "" "An :class:`OrderedDict` would also be useful for implementing variants of :" "func:`functools.lru_cache`::" msgstr "" +"Un :class:`OrderedDict` peut aussi être utile pour implémenter des variantes " +"de :func:`functools.lru_cache` ::" #: ../Doc/library/collections.rst:1157 msgid ":class:`UserDict` objects" diff --git a/library/datetime.po b/library/datetime.po index 50b43a5db..1a389ee5f 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-20 09:03+0100\n" -"PO-Revision-Date: 2019-02-21 17:21+0100\n" +"PO-Revision-Date: 2019-03-27 15:18+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -485,11 +485,12 @@ msgid "``f = t2 / t3``" msgstr "``f = t2 / t3``" #: ../Doc/library/datetime.rst:257 -#, fuzzy msgid "" "Division (3) of overall duration *t2* by interval unit *t3*. Returns a :" "class:`float` object." -msgstr "Division (3) de *t2* par *t3*. Renvoie un objet :class:`float`." +msgstr "" +"Division (3) de la durée totale *t2* par l'unité d'intervalle *t3*. Renvoie " +"un objet :class:`float`." #: ../Doc/library/datetime.rst:261 msgid "``t1 = t2 / f or t1 = t2 / i``" @@ -693,14 +694,15 @@ msgid "Instance methods:" msgstr "Méthodes de l'instance :" #: ../Doc/library/datetime.rst:354 -#, fuzzy msgid "" "Return the total number of seconds contained in the duration. Equivalent to " "``td / timedelta(seconds=1)``. For interval units other than seconds, use " "the division form directly (e.g. ``td / timedelta(microseconds=1)``)." msgstr "" "Renvoie le nombre total de secondes contenues dans la durée. Équivalent à " -"``td / timedelta(seconds=1)``." +"``td / timedelta(seconds=1)``. Pour un intervalle dont l'unité n'est pas la " +"seconde, utilisez directement la division (par exemple, ``td / " +"timedelta(microseconds=1)``)." #: ../Doc/library/datetime.rst:358 msgid "" @@ -2997,6 +2999,12 @@ msgid "" "intact in the output, while on others ``strftime`` may raise :exc:" "`UnicodeError` or return an empty string instead." msgstr "" +"Pour la même raison, la gestion des chaînes contenant des caractères (ou " +"points) Unicode qui ne peuvent pas être représentés dans la *locale* " +"actuelle dépend aussi de la plateforme. Sur certaines plateformes, ces " +"caractères sont conservés tels quels dans la sortie, alors que sur d'autres " +"plateformes ``strftime`` lève une :exc:`UnicodeError` ou renvoie une chaîne " +"vide." #: ../Doc/library/datetime.rst:2045 msgid "" diff --git a/library/re.po b/library/re.po index bbd8920bc..9a1c65fc4 100644 --- a/library/re.po +++ b/library/re.po @@ -5,14 +5,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-11 12:59+0100\n" -"PO-Revision-Date: 2019-02-27 11:53+0100\n" +"PO-Revision-Date: 2019-03-27 15:23+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2.1\n" +"X-Generator: Poedit 2.0.2\n" #: ../Doc/library/re.rst:2 msgid ":mod:`re` --- Regular expression operations" @@ -1141,14 +1141,15 @@ msgstr "" "caractères.)" #: ../Doc/library/re.rst:572 -#, fuzzy msgid "" "``'\\u'`` and ``'\\U'`` escape sequences are only recognized in Unicode " "patterns. In bytes patterns they are errors. Unknown escapes of ASCII " "letters are reserved for future use and treated as errors." msgstr "" "Les séquences d'échappement ``'\\u'`` et ``'\\U'`` sont seulement reconnues " -"dans les motifs Unicode. Dans les motifs de *byte*, ce sont des erreurs." +"dans les motifs Unicode. Dans les motifs de *byte*, ce sont des erreurs. " +"Les échappements inconnus de lettres ASCII sont réservés pour une " +"utilisation future et sont considérés comme des erreurs." #: ../Doc/library/re.rst:576 msgid "" @@ -1559,7 +1560,6 @@ msgstr "" "dans le résultat." #: ../Doc/library/re.rst:843 -#, fuzzy msgid "" "Return the string obtained by replacing the leftmost non-overlapping " "occurrences of *pattern* in *string* by the replacement *repl*. If the " @@ -1578,9 +1578,11 @@ msgstr "" "être une chaîne de caractères ou une fonction ; si c'est une chaîne, toutes " "les séquences d'échappement qu'elle contient sont traduites. Ainsi, ``\\n`` " "est convertie en un simple saut de ligne, ``\\r`` en un retour chariot, et " -"ainsi de suite. Les séquences inconnues telles que ``\\&`` sont laissées " -"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 ::" +"ainsi de suite. Les échappements inconnus de lettres ASCII sont réservés " +"pour une utilisation future et sont considérés comme des erreurs. Les autres " +"échappements tels que ``\\&`` sont laissés intacts. 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:859 msgid "" diff --git a/reference/datamodel.po b/reference/datamodel.po index 9fd9eaad4..c079d7ddd 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -105,7 +105,7 @@ msgstr "" "Un objet n'est jamais explicitement détruit ; cependant, lorsqu'il ne peut " "plus être atteint, il a vocation à être supprimé par le ramasse-miettes " "(*garbage-collector* en anglais). L'implémentation peut retarder cette " -"opération ou même ne pas la faire du tout --- la façon dont fonctionne le " +"opération ou même ne pas la faire du tout — la façon dont fonctionne le " "ramasse-miette est particulière à chaque implémentation, l'important étant " "qu'il ne supprime pas d'objet qui peut encore être atteint." @@ -242,7 +242,7 @@ msgstr "" #: ../Doc/reference/datamodel.rst:150 msgid "None" -msgstr "*None*" +msgstr "``None``" #: ../Doc/reference/datamodel.rst:147 msgid "" @@ -884,8 +884,8 @@ msgid "" "the global namespace of the module in which the function was defined." msgstr "" "Référence pointant vers le dictionnaire contenant les variables globales de " -"la fonction -- l'espace de nommage global du module dans lequel la fonction " -"est définie." +"la fonction — l'espace de noms global du module dans lequel la fonction est " +"définie." #: ../Doc/reference/datamodel.rst:501 ../Doc/reference/datamodel.rst:512 msgid "Read-only" @@ -910,7 +910,7 @@ msgid "" msgstr "" "``None`` ou tuple de cellules qui contient un lien pour chaque variable " "libre de la fonction. Voir ci-dessous pour les informations relatives à " -"l'attribut ``cell_contents``" +"l'attribut ``cell_contents``." #: ../Doc/reference/datamodel.rst:519 msgid ":attr:`__annotations__`" @@ -1699,7 +1699,7 @@ msgstr "" "Attributs spéciaux en lecture-écriture : :attr:`f_trace`, s'il n'est pas " "``None``, c'est une fonction appelée à différentes occasions durant " "l'exécution du code (elle est utilisée par le débogueur). Normalement, un " -"événement est déclenché pour chaque ligne de code source -- ce comportement " +"événement est déclenché pour chaque ligne de code source — ce comportement " "peut être désactivé en définissant :attr:`f_trace_lines` à :const:`False`." #: ../Doc/reference/datamodel.rst:984 @@ -1722,11 +1722,11 @@ msgid "" "most frame). A debugger can implement a Jump command (aka Set Next " "Statement) by writing to f_lineno." msgstr "" -":attr:`f_lineno` est le numéro de la ligne courante du cadre --- écrire " -"dedans depuis une fonction trace fait sauter à la ligne demandée (seulement " -"pour le cadre le plus bas). Un débogueur peut implémenter une commande " -"\"sauter vers\" (aussi appelée \"Définir la prochaine instruction\" ou *Set " -"Next Statement* en anglais) en écrivant dans ``f_lineno``." +":attr:`f_lineno` est le numéro de la ligne courante du cadre — écrire dedans " +"depuis une fonction trace fait sauter à la ligne demandée (seulement pour le " +"cadre le plus bas). Un débogueur peut implémenter une commande \"sauter vers" +"\" (aussi appelée \"Définir la prochaine instruction\" ou *Set Next " +"Statement* en anglais) en écrivant dans ``f_lineno``." #: ../Doc/reference/datamodel.rst:994 msgid "Frame objects support one method:" @@ -2122,9 +2122,9 @@ msgid "" "the reference count for ``x`` by one, and the latter is only called when " "``x``'s reference count reaches zero." msgstr "" -"``del x`` n'appelle pas directement ``x.__del__()`` --- la première " -"décrémente le compteur de références de ``x``. La seconde n'est appelée que " -"quand le compteur de références de ``x`` atteint zéro." +"``del x`` n'appelle pas directement ``x.__del__()`` — la première décrémente " +"le compteur de références de ``x``. La seconde n'est appelée que quand le " +"compteur de références de ``x`` atteint zéro." #: ../Doc/reference/datamodel.rst:1236 msgid "Documentation for the :mod:`gc` module." @@ -2725,7 +2725,7 @@ msgid "" "module's globals dictionary) is unaffected." msgstr "" "Définir ``__getattr__`` du module et ``__class__`` pour le module affecte " -"uniquement les recherches qui utilisent la syntaxe d'accès aux attributs -- " +"uniquement les recherches qui utilisent la syntaxe d'accès aux attributs — " "accéder directement aux globales d'un module (soit par le code dans le " "module, soit *via* une référence au dictionnaire des variables globales du " "module) fonctionne toujours de la même façon." @@ -2736,11 +2736,11 @@ msgstr "l'attribut ``__class__`` du module est maintenant en lecture-écriture." #: ../Doc/reference/datamodel.rst:1596 msgid "``__getattr__`` and ``__dir__`` module attributes." -msgstr "attributs ``__getattr__`` et ``__dir__`` du module " +msgstr "attributs ``__getattr__`` et ``__dir__`` du module." #: ../Doc/reference/datamodel.rst:1601 msgid ":pep:`562` - Module __getattr__ and __dir__" -msgstr ":pep:`562` -- ``__getattr__`` et ``__dir__`` pour un module" +msgstr ":pep:`562` — ``__getattr__`` et ``__dir__`` pour un module" #: ../Doc/reference/datamodel.rst:1602 msgid "Describes the ``__getattr__`` and ``__dir__`` functions on modules." @@ -2997,13 +2997,13 @@ msgstr "" "``__slots__`` ou présent dans le parent)." #: ../Doc/reference/datamodel.rst:1727 -#, fuzzy msgid "" "The space saved over using *__dict__* can be significant. Attribute lookup " "speed can be significantly improved as well." msgstr "" "L'espace gagné par rapport à l'utilisation d'un *__dict__* peut être " -"significatif." +"significatif. La recherche d'attribut peut aussi s'avérer beaucoup plus " +"rapide." #: ../Doc/reference/datamodel.rst:1732 msgid "" @@ -3287,7 +3287,7 @@ msgstr "" #: ../Doc/reference/datamodel.rst:1882 ../Doc/reference/datamodel.rst:2070 msgid ":pep:`560` - Core support for typing module and generic types" msgstr "" -":pep:`560` -- Gestion de base pour les types modules et les types génériques" +":pep:`560` — Gestion de base pour les types modules et les types génériques" #: ../Doc/reference/datamodel.rst:1886 msgid "Determining the appropriate metaclass" @@ -3370,7 +3370,7 @@ msgstr "" #: ../Doc/reference/datamodel.rst:1923 msgid ":pep:`3115` - Metaclasses in Python 3000" -msgstr ":pep:`3115` -- Méta-classes dans Python 3000" +msgstr ":pep:`3115` — Méta-classes dans Python 3000" #: ../Doc/reference/datamodel.rst:1924 msgid "Introduced the ``__prepare__`` namespace hook" @@ -3526,7 +3526,7 @@ msgstr "" #: ../Doc/reference/datamodel.rst:1999 msgid ":pep:`3135` - New super" -msgstr ":pep:`3135` -- Nouvelle méthode super" +msgstr ":pep:`3135` — Nouvelle méthode super" #: ../Doc/reference/datamodel.rst:2000 msgid "Describes the implicit ``__class__`` closure reference" @@ -3610,7 +3610,7 @@ msgstr "" #: ../Doc/reference/datamodel.rst:2048 msgid ":pep:`3119` - Introducing Abstract Base Classes" -msgstr ":pep:`3119` -- Introduction aux classes de bases abstraites" +msgstr ":pep:`3119` — Introduction aux classes de bases abstraites" #: ../Doc/reference/datamodel.rst:2045 msgid "" @@ -3638,7 +3638,7 @@ msgid "" msgstr "" "Vous pouvez implémenter la syntaxe générique des classes comme spécifié par " "la :pep:`484` (par exemple ``List[int]``) en définissant une méthode " -"spéciale." +"spéciale :" #: ../Doc/reference/datamodel.rst:2060 msgid "" @@ -3926,7 +3926,7 @@ msgstr "" "sont normalement implémentés comme des itérations sur la séquence. " "Cependant, les objets conteneurs peuvent fournir les méthodes spéciales " "suivantes avec une implémentation plus efficace, qui ne requièrent " -"d'ailleurs pas que l'objet soit une séquence. " +"d'ailleurs pas que l'objet soit une séquence." #: ../Doc/reference/datamodel.rst:2237 msgid "" @@ -4213,7 +4213,7 @@ msgstr "" #: ../Doc/reference/datamodel.rst:2465 msgid ":pep:`343` - The \"with\" statement" -msgstr ":pep:`343` -- L'instruction ``with``" +msgstr ":pep:`343` — L'instruction ``with``" #: ../Doc/reference/datamodel.rst:2465 msgid "" @@ -4559,7 +4559,7 @@ msgstr "" "*n'autorise pas* signifie ici que la classe ne possède pas de méthode " "adéquate ou que la méthode renvoie ``NotImplemented``. N'assignez pas " "``None`` à la méthode si vous voulez un repli vers la méthode symétrique de " -"l'opérande de droite -- cela aurait pour effet de *bloquer* un tel repli." +"l'opérande de droite — cela aurait pour effet de *bloquer* un tel repli." #: ../Doc/reference/datamodel.rst:2725 msgid "" From 6787bca86392e4af25105f580c11e7341d656cc4 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Sun, 7 Apr 2019 11:44:47 +0200 Subject: [PATCH 117/121] Fixed translation on library/unittest.po (#630) --- library/unittest.po | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/library/unittest.po b/library/unittest.po index ea5452b9b..166f847d8 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -6,8 +6,8 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-29 12:24+0100\n" -"PO-Revision-Date: 2019-01-28 21:58+0100\n" -"Last-Translator: Bousquié Pierre \n" +"PO-Revision-Date: 2019-03-27 11:46+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -183,7 +183,7 @@ msgstr "" msgid "" "A special-interest-group for discussion of testing, and testing tools, in " "Python." -msgstr "un groupe de discussion dédié aux tests, et outils de test, en Python." +msgstr "Un groupe de discussion dédié aux tests, et outils de test, en Python." #: ../Doc/library/unittest.rst:71 msgid "" @@ -525,7 +525,7 @@ msgstr "Motif de détection des fichiers de test (``test*.py`` par défaut)" #: ../Doc/library/unittest.rst:299 msgid "Top level directory of project (defaults to start directory)" -msgstr "" +msgstr "Dossier du premier niveau du projet (Par défaut le dossier de départ)" #: ../Doc/library/unittest.rst:301 msgid "" @@ -714,7 +714,6 @@ msgstr "" "appelées qu'une fois par test." #: ../Doc/library/unittest.rst:418 -#, fuzzy msgid "" "It is recommended that you use TestCase implementations to group tests " "together according to the features they test. :mod:`unittest` provides a " @@ -725,7 +724,7 @@ msgid "" msgstr "" "Il est recommandé d'utiliser *TestCase* pour regrouper les tests en fonction " "des fonctionnalités qu'ils testent. :mod:`unittest` fournit un mécanisme " -"pour cela : la :dfn:`suite de tests`, représentée par :class:`TestSuite` du " +"pour cela : la :dfn:`suite de tests`, représentée par :class:`TestSuite` du " "module :mod:`unittest`. Dans la plupart des cas, appeler :func:`unittest." "main` fait correctement les choses et trouve tous les scénarios de test du " "module pour vous et les exécute." @@ -1433,7 +1432,7 @@ msgstr "" #: ../Doc/library/unittest.rst:900 msgid "Test that *expr* is (or is not) ``None``." -msgstr "Vérifie que *expr* est (ou n'est pas) la valeur ``Ǹone``" +msgstr "Vérifie que *expr* est (ou n'est pas) la valeur ``None``." #: ../Doc/library/unittest.rst:908 msgid "Test that *first* is (or is not) in *second*." @@ -1595,7 +1594,6 @@ msgid "or::" msgstr "ou  ::" #: ../Doc/library/unittest.rst:1002 -#, fuzzy msgid "Added under the name ``assertRaisesRegexp``." msgstr "Sous le nom ``assertRaisesRegexp``" @@ -1994,7 +1992,7 @@ msgstr ":meth:`assertListEqual(a, b) `" #: ../Doc/library/unittest.rst:1255 msgid "lists" -msgstr "Listes" +msgstr "listes" #: ../Doc/library/unittest.rst:1258 msgid ":meth:`assertTupleEqual(a, b) `" @@ -3415,17 +3413,16 @@ msgstr "" "classe de résultat est instanciée avec les arguments suivants  ::" #: ../Doc/library/unittest.rst:2053 -#, fuzzy msgid "" "This method is the main public interface to the ``TextTestRunner``. This " "method takes a :class:`TestSuite` or :class:`TestCase` instance. A :class:" "`TestResult` is created by calling :func:`_makeResult` and the test(s) are " "run and the results printed to stdout." msgstr "" -"Cette méthode est l'interface publique principale du `TextTestRunner`. Cette " -"méthode prend une instance :class:`TestSuite` ou :class:`TestCase`. Une " -"classe :class:`TestResult` est créée en appelant :func:`_makeResult` et le " -"ou les tests sont exécutés et les résultats affiché dans la sortie standard." +"Cette méthode est l'interface publique principale du ``TextTestRunner``. " +"Cette méthode prend une instance :class:`TestSuite` ou :class:`TestCase`. " +"Un :class:`TestResult` est créé en appelant :func:`_makeResult` et le ou les " +"tests sont exécutés et les résultats affichés sur la sortie standard." #: ../Doc/library/unittest.rst:2064 msgid "" From 81dc584ac3cb2eb53fd9e3ea0b0390c330664390 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Sun, 7 Apr 2019 11:45:10 +0200 Subject: [PATCH 118/121] Updated library/time.po for fuzzys (#648) --- library/time.po | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/library/time.po b/library/time.po index 355718eae..df6d69278 100644 --- a/library/time.po +++ b/library/time.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-18 14:22+0100\n" -"PO-Revision-Date: 2019-03-18 01:17+0100\n" -"Last-Translator: Igor Garbuz \n" +"PO-Revision-Date: 2019-03-27 13:21+0100\n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/time.rst:2 msgid ":mod:`time` --- Time access and conversions" @@ -268,6 +268,10 @@ msgid "" "meaning of \"processor time\", depends on that of the C function of the same " "name." msgstr "" +"Sous UNIX, renvoie le temps processeur actuel, en secondes, sous la forme " +"d'un nombre à virgule flottante exprimé en secondes. La précision, et en " +"fait la définition même de la signification de \"temps processeur\", dépend " +"de celle de la fonction C du même nom." #: ../Doc/library/time.rst:151 msgid "" @@ -276,6 +280,11 @@ msgid "" "function :c:func:`QueryPerformanceCounter`. The resolution is typically " "better than one microsecond." msgstr "" +"Sous Windows, cette fonction renvoie les secondes réelles (type horloge " +"murale) écoulées depuis le premier appel à cette fonction, en tant que " +"nombre à virgule flottante, en fonction de la fonction *Win32* :c:func:" +"`QueryPerformanceCounter`. La résolution est généralement meilleure qu'une " +"microseconde." #: ../Doc/library/time.rst:156 msgid "" @@ -283,12 +292,17 @@ msgid "" "`perf_counter` or :func:`process_time` instead, depending on your " "requirements, to have a well defined behaviour." msgstr "" +"Le comportement de cette fonction dépend de la plate-forme : utilisez " +"plutôt :func:`perf_counter` ou :func:`process_time`, selon vos besoins, pour " +"avoir un comportement bien défini." #: ../Doc/library/time.rst:163 msgid "" "Return the *clk_id* of the thread-specific CPU-time clock for the specified " "*thread_id*." msgstr "" +"Renvoie le *clk_id* de l'horloge du temps CPU spécifique au fil d'exécution " +"pour le *thread_id* spécifié." #: ../Doc/library/time.rst:165 msgid "" @@ -805,7 +819,7 @@ msgstr "``%y``" #: ../Doc/library/time.rst:447 msgid "Year without century as a decimal number [00,99]." -msgstr "" +msgstr "Année sans siècle comme un nombre décimal [00, 99]." #: ../Doc/library/time.rst:450 msgid "``%Y``" @@ -1466,11 +1480,12 @@ msgstr "" "brute qui n’est pas soumise aux ajustements NTP." #: ../Doc/library/time.rst:776 -#, fuzzy msgid "" ":ref:`Availability `: Linux 2.6.28 and newer, macOS 10.12 and " "newer." -msgstr ":ref:`Disponibilité ` : Linux 2.6.39 et ultérieures." +msgstr "" +":ref:`Disponibilité `: Linux 2.6.28 et ultérieur, MacOS 10.12 " +"et ultérieur." #: ../Doc/library/time.rst:782 ../Doc/library/time.rst:791 msgid "High-resolution per-process timer from the CPU." @@ -1624,3 +1639,11 @@ msgid "" "digit year has been first recommended by :rfc:`1123` and then mandated by :" "rfc:`2822`." msgstr "" +"L'utilisation de ``%Z`` est maintenant obsolète, mais l'échappement ``%z`` " +"qui donne le décalage horaire jusqu'à la minute et dépendant des paramètres " +"régionaux n'est pas pris en charge par toutes les bibliothèques C ANSI. En " +"outre, une lecture stricte du standard :rfc:`822` de 1982 milite pour une " +"année à deux chiffres (%y plutôt que %Y), mais la pratique a migré vers des " +"années à 4 chiffres de long avant l'année 2000. Après cela, la :rfc:`822` " +"est devenue obsolète et l'année à 4 chiffres a été recommandée pour la " +"première fois par la :rfc:`1123` puis rendue obligatoire par la :rfc:`2822`." From 9e2cca272debf47e652588893fe2bc092ac2203f Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sun, 7 Apr 2019 11:59:41 +0200 Subject: [PATCH 119/121] Documenting smartquotes and compose key. --- README.rst | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/README.rst b/README.rst index 84bb6855f..59711f6aa 100644 --- a/README.rst +++ b/README.rst @@ -186,6 +186,22 @@ translate untranslated ones (find them using ``make todo``).. title. +The case of "---" +~~~~~~~~~~~~~~~~~ + +The english version uses a thing named `smartquotes +`_, that +tries to be smart, works in english, but soon causes issues in other +languages. So we desactivated it. + +Smartquotes is also responsible for the transformation of ``--`` to +en-dash (``–``), ``---`` to em-dash (``—``), and `...` to `…`. + +As we don't have smartquotes we'll also have to "translate" those +manually, so if you see ``---`` in english, you have to translate it +to ``—`` in french. + + The case of "::" ~~~~~~~~~~~~~~~~ @@ -211,6 +227,32 @@ space, so it's still not really valid french. Yes, better learn how to type no-break space. +How to input em-dash, ellipsis, french quotes, or no-break spaces? +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +It really depends on your OS and your keyboard sadly. On Linux you can +use a `Compose Key `_, it's +easy to configure either using your graphical keyboard configuration +tool or via ``dpkg-reconfigure keyboard-configuration`. On Windows you +can use `wincompose `_. + +With a compose key (I use ``alt-gr``, you can also use ``caps lock``) +you can use the following compositions: + +- Compose ``<`` ``<`` gives ``«`` +- Compose ``>`` ``>`` gives ``»`` +- Compose space space gives an no-break space +- Compose ``.`` ``.`` ``.`` gives ``…`` + +As you noted, almost all compositions are easy to remember, so you can +try others and they should just work: + +- Compose ``C`` ``=`` gives ``€`` +- Compose ``1`` ``2`` gives ``½`` +- Compose ``'`` ``E`` gives ``É`` +- … … + + Where to get help ~~~~~~~~~~~~~~~~~ From 3cd2a5efeeaa4d31fc6e7a6119ed46ad97978153 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Mon, 8 Apr 2019 09:54:47 +0200 Subject: [PATCH 120/121] Add auto make merge (#660) --- make-merge.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 make-merge.sh diff --git a/make-merge.sh b/make-merge.sh new file mode 100755 index 000000000..11ace5a22 --- /dev/null +++ b/make-merge.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +rm -rf /tmp/cpython +git clone --depth 1 --branch 3.7 --single-branch https://github.com/python/cpython /tmp/cpython + +CPYTHON_LATEST_SHA=$(git -C /tmp/cpython rev-parse --short HEAD) + +git checkout -b make-merge-$CPYTHON_LATEST_SHA + +sed -i "s/COMMIT=[a-z0-9]*/COMMIT=$CPYTHON_LATEST_SHA/" .travis.yml + +make merge + +pip install -U pyhub-pr + +git add -A + +git commit -m "merge pot files." + +git push --set-upstream origin make-merge-$CPYTHON_LATEST_SHA + +pyhub_pr --organisation python --repo python-docs-fr --token $GITHUB_TOKEN --title "Merge from upstream doc" --body "This PR was created from the command line with pyhub-pr." --head $TOKEN_OWNER_USERNAME:make-merge-$(git rev-parse --short HEAD) From 005e87911abb0ac73d805f0e3c47e8addf9adbe1 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Wed, 10 Apr 2019 16:52:58 +0200 Subject: [PATCH 121/121] Upstream merge (#659) --- .travis.yml | 2 +- c-api/exceptions.po | 2 +- c-api/init.po | 514 +++++++++++++-------------- c-api/objbuffer.po | 3 +- c-api/typeobj.po | 6 +- c-api/veryhigh.po | 87 ++--- c-api/weakref.po | 4 +- faq/general.po | 18 +- faq/programming.po | 2 +- faq/windows.po | 2 +- glossary.po | 2 +- howto/unicode.po | 2 +- library/asyncio.po | 2 +- library/collections.po | 9 +- library/compileall.po | 2 +- library/configparser.po | 177 +++++----- library/datetime.po | 4 +- library/exceptions.po | 29 +- library/functions.po | 316 ++++++++--------- library/idle.po | 2 +- library/inspect.po | 2 +- library/io.po | 249 +++++++------ library/operator.po | 6 +- library/queue.po | 2 +- library/ssl.po | 2 +- library/stdtypes.po | 4 +- library/subprocess.po | 2 +- library/sys.po | 694 +++++++++++++++++++------------------ library/timeit.po | 2 +- library/typing.po | 2 +- library/unittest.mock.po | 2 +- library/unittest.po | 4 +- library/urllib.parse.po | 2 +- library/urllib.request.po | 2 +- library/xml.dom.minidom.po | 57 ++- reference/datamodel.po | 3 +- tutorial/controlflow.po | 2 +- tutorial/interpreter.po | 2 +- 38 files changed, 1121 insertions(+), 1103 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5ef9c1a10..85b5b50b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ install: script: - powrap --check --quiet **/*.po - pospell -p dict -l fr_FR **/*.po - - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=40ee9a3640 + - make CPYTHON_CLONE=/tmp/cpython/ COMMIT=796698adf diff --git a/c-api/exceptions.po b/c-api/exceptions.po index c71dc0981..271dec721 100644 --- a/c-api/exceptions.po +++ b/c-api/exceptions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-10-04 12:24+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" diff --git a/c-api/init.po b/c-api/init.po index ae2debb7c..4a3586916 100644 --- a/c-api/init.po +++ b/c-api/init.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-11-29 18:22+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -96,62 +96,66 @@ msgid "Informative functions:" msgstr "" #: ../Doc/c-api/init.rst:40 -msgid ":c:func:`PyMem_GetAllocator`" +msgid ":c:func:`Py_IsInitialized`" msgstr "" #: ../Doc/c-api/init.rst:41 -msgid ":c:func:`PyObject_GetArenaAllocator`" +msgid ":c:func:`PyMem_GetAllocator`" msgstr "" #: ../Doc/c-api/init.rst:42 -msgid ":c:func:`Py_GetBuildInfo`" +msgid ":c:func:`PyObject_GetArenaAllocator`" msgstr "" #: ../Doc/c-api/init.rst:43 -msgid ":c:func:`Py_GetCompiler`" +msgid ":c:func:`Py_GetBuildInfo`" msgstr "" #: ../Doc/c-api/init.rst:44 -msgid ":c:func:`Py_GetCopyright`" +msgid ":c:func:`Py_GetCompiler`" msgstr "" #: ../Doc/c-api/init.rst:45 -msgid ":c:func:`Py_GetPlatform`" +msgid ":c:func:`Py_GetCopyright`" msgstr "" #: ../Doc/c-api/init.rst:46 +msgid ":c:func:`Py_GetPlatform`" +msgstr "" + +#: ../Doc/c-api/init.rst:47 msgid ":c:func:`Py_GetVersion`" msgstr "" -#: ../Doc/c-api/init.rst:48 +#: ../Doc/c-api/init.rst:49 msgid "Utilities:" msgstr "" -#: ../Doc/c-api/init.rst:50 +#: ../Doc/c-api/init.rst:51 msgid ":c:func:`Py_DecodeLocale`" msgstr "" -#: ../Doc/c-api/init.rst:52 +#: ../Doc/c-api/init.rst:53 msgid "Memory allocators:" msgstr "" -#: ../Doc/c-api/init.rst:54 +#: ../Doc/c-api/init.rst:55 msgid ":c:func:`PyMem_RawMalloc`" msgstr "" -#: ../Doc/c-api/init.rst:55 +#: ../Doc/c-api/init.rst:56 msgid ":c:func:`PyMem_RawRealloc`" msgstr "" -#: ../Doc/c-api/init.rst:56 +#: ../Doc/c-api/init.rst:57 msgid ":c:func:`PyMem_RawCalloc`" msgstr "" -#: ../Doc/c-api/init.rst:57 +#: ../Doc/c-api/init.rst:58 msgid ":c:func:`PyMem_RawFree`" msgstr "" -#: ../Doc/c-api/init.rst:61 +#: ../Doc/c-api/init.rst:62 msgid "" "The following functions **should not be called** before :c:func:" "`Py_Initialize`: :c:func:`Py_EncodeLocale`, :c:func:`Py_GetPath`, :c:func:" @@ -160,18 +164,18 @@ msgid "" "`Py_GetProgramName` and :c:func:`PyEval_InitThreads`." msgstr "" -#: ../Doc/c-api/init.rst:71 +#: ../Doc/c-api/init.rst:72 msgid "Global configuration variables" msgstr "" -#: ../Doc/c-api/init.rst:73 +#: ../Doc/c-api/init.rst:74 msgid "" "Python has variables for the global configuration to control different " "features and options. By default, these flags are controlled by :ref:" "`command line options `." msgstr "" -#: ../Doc/c-api/init.rst:77 +#: ../Doc/c-api/init.rst:78 msgid "" "When a flag is set by an option, the value of the flag is the number of " "times that the option was set. For example, ``-b`` sets :c:data:" @@ -179,64 +183,64 @@ msgid "" "2." msgstr "" -#: ../Doc/c-api/init.rst:83 +#: ../Doc/c-api/init.rst:84 msgid "" "Issue a warning when comparing :class:`bytes` or :class:`bytearray` with :" "class:`str` or :class:`bytes` with :class:`int`. Issue an error if greater " "or equal to ``2``." msgstr "" -#: ../Doc/c-api/init.rst:87 +#: ../Doc/c-api/init.rst:88 msgid "Set by the :option:`-b` option." msgstr "" -#: ../Doc/c-api/init.rst:91 +#: ../Doc/c-api/init.rst:92 msgid "" "Turn on parser debugging output (for expert only, depending on compilation " "options)." msgstr "" -#: ../Doc/c-api/init.rst:94 +#: ../Doc/c-api/init.rst:95 msgid "" "Set by the :option:`-d` option and the :envvar:`PYTHONDEBUG` environment " "variable." msgstr "" -#: ../Doc/c-api/init.rst:99 +#: ../Doc/c-api/init.rst:100 msgid "" "If set to non-zero, Python won't try to write ``.pyc`` files on the import " "of source modules." msgstr "" -#: ../Doc/c-api/init.rst:102 +#: ../Doc/c-api/init.rst:103 msgid "" "Set by the :option:`-B` option and the :envvar:`PYTHONDONTWRITEBYTECODE` " "environment variable." msgstr "" -#: ../Doc/c-api/init.rst:107 +#: ../Doc/c-api/init.rst:108 msgid "" "Suppress error messages when calculating the module search path in :c:func:" "`Py_GetPath`." msgstr "" -#: ../Doc/c-api/init.rst:110 +#: ../Doc/c-api/init.rst:111 msgid "Private flag used by ``_freeze_importlib`` and ``frozenmain`` programs." msgstr "" -#: ../Doc/c-api/init.rst:114 +#: ../Doc/c-api/init.rst:115 msgid "" "Set to ``1`` if the :envvar:`PYTHONHASHSEED` environment variable is set to " "a non-empty string." msgstr "" -#: ../Doc/c-api/init.rst:117 +#: ../Doc/c-api/init.rst:118 msgid "" "If the flag is non-zero, read the :envvar:`PYTHONHASHSEED` environment " "variable to initialize the secret hash seed." msgstr "" -#: ../Doc/c-api/init.rst:122 +#: ../Doc/c-api/init.rst:123 msgid "" "Ignore all :envvar:`PYTHON*` environment variables, e.g. :envvar:" "`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set." @@ -244,74 +248,74 @@ msgstr "" "Ignore toutes les variables d'environnement :envvar:`PYTHON*` qui pourraient " "être définies. Par exemple, :envvar:`PYTHONPATH` et :envvar:`PYTHONHOME`." -#: ../Doc/c-api/init.rst:125 +#: ../Doc/c-api/init.rst:126 msgid "Set by the :option:`-E` and :option:`-I` options." msgstr "" -#: ../Doc/c-api/init.rst:129 +#: ../Doc/c-api/init.rst:130 msgid "" "When a script is passed as first argument or the :option:`-c` option is " "used, enter interactive mode after executing the script or the command, even " "when :data:`sys.stdin` does not appear to be a terminal." msgstr "" -#: ../Doc/c-api/init.rst:133 +#: ../Doc/c-api/init.rst:134 msgid "" "Set by the :option:`-i` option and the :envvar:`PYTHONINSPECT` environment " "variable." msgstr "" -#: ../Doc/c-api/init.rst:138 +#: ../Doc/c-api/init.rst:139 msgid "Set by the :option:`-i` option." msgstr "" -#: ../Doc/c-api/init.rst:142 +#: ../Doc/c-api/init.rst:143 msgid "" "Run Python in isolated mode. In isolated mode :data:`sys.path` contains " "neither the script's directory nor the user's site-packages directory." msgstr "" -#: ../Doc/c-api/init.rst:145 +#: ../Doc/c-api/init.rst:146 msgid "Set by the :option:`-I` option." msgstr "" -#: ../Doc/c-api/init.rst:151 +#: ../Doc/c-api/init.rst:152 msgid "" "If the flag is non-zero, use the ``mbcs`` encoding instead of the UTF-8 " "encoding for the filesystem encoding." msgstr "" -#: ../Doc/c-api/init.rst:154 +#: ../Doc/c-api/init.rst:155 msgid "" "Set to ``1`` if the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment " "variable is set to a non-empty string." msgstr "" -#: ../Doc/c-api/init.rst:157 +#: ../Doc/c-api/init.rst:158 msgid "See :pep:`529` for more details." msgstr "Voir la :pep:`529` pour plus d'informations." -#: ../Doc/c-api/init.rst:159 ../Doc/c-api/init.rst:171 +#: ../Doc/c-api/init.rst:160 ../Doc/c-api/init.rst:172 msgid ":ref:`Availability `: Windows." msgstr ":ref:`Disponibilité ` : Windows." -#: ../Doc/c-api/init.rst:163 +#: ../Doc/c-api/init.rst:164 msgid "" "If the flag is non-zero, use :class:`io.FileIO` instead of :class:" "`WindowsConsoleIO` for :mod:`sys` standard streams." msgstr "" -#: ../Doc/c-api/init.rst:166 +#: ../Doc/c-api/init.rst:167 msgid "" "Set to ``1`` if the :envvar:`PYTHONLEGACYWINDOWSSTDIO` environment variable " "is set to a non-empty string." msgstr "" -#: ../Doc/c-api/init.rst:169 +#: ../Doc/c-api/init.rst:170 msgid "See :pep:`528` for more details." msgstr "" -#: ../Doc/c-api/init.rst:175 +#: ../Doc/c-api/init.rst:176 msgid "" "Disable the import of the module :mod:`site` and the site-dependent " "manipulations of :data:`sys.path` that it entails. Also disable these " @@ -323,11 +327,11 @@ msgstr "" "mod:`site` est importé explicitement plus tard (appelez :func:`site.main` si " "vous voulez les déclencher)." -#: ../Doc/c-api/init.rst:180 +#: ../Doc/c-api/init.rst:181 msgid "Set by the :option:`-S` option." msgstr "" -#: ../Doc/c-api/init.rst:184 +#: ../Doc/c-api/init.rst:185 msgid "" "Don't add the :data:`user site-packages directory ` to :data:" "`sys.path`." @@ -335,38 +339,38 @@ msgstr "" "N'ajoute pas le répertoire utilisateur :data:`site-packages ` à :data:`sys.path`." -#: ../Doc/c-api/init.rst:187 +#: ../Doc/c-api/init.rst:188 msgid "" "Set by the :option:`-s` and :option:`-I` options, and the :envvar:" "`PYTHONNOUSERSITE` environment variable." msgstr "" -#: ../Doc/c-api/init.rst:192 +#: ../Doc/c-api/init.rst:193 msgid "" "Set by the :option:`-O` option and the :envvar:`PYTHONOPTIMIZE` environment " "variable." msgstr "" -#: ../Doc/c-api/init.rst:197 +#: ../Doc/c-api/init.rst:198 msgid "" "Don't display the copyright and version messages even in interactive mode." msgstr "N'affiche pas le copyright et la version, même en mode interactif." -#: ../Doc/c-api/init.rst:199 +#: ../Doc/c-api/init.rst:200 msgid "Set by the :option:`-q` option." msgstr "" -#: ../Doc/c-api/init.rst:205 +#: ../Doc/c-api/init.rst:206 msgid "Force the stdout and stderr streams to be unbuffered." msgstr "" -#: ../Doc/c-api/init.rst:207 +#: ../Doc/c-api/init.rst:208 msgid "" "Set by the :option:`-u` option and the :envvar:`PYTHONUNBUFFERED` " "environment variable." msgstr "" -#: ../Doc/c-api/init.rst:212 +#: ../Doc/c-api/init.rst:213 msgid "" "Print a message each time a module is initialized, showing the place " "(filename or built-in module) from which it is loaded. If greater or equal " @@ -374,24 +378,24 @@ msgid "" "for a module. Also provides information on module cleanup at exit." msgstr "" -#: ../Doc/c-api/init.rst:217 +#: ../Doc/c-api/init.rst:218 msgid "" "Set by the :option:`-v` option and the :envvar:`PYTHONVERBOSE` environment " "variable." msgstr "" -#: ../Doc/c-api/init.rst:222 +#: ../Doc/c-api/init.rst:223 msgid "Initializing and finalizing the interpreter" msgstr "" -#: ../Doc/c-api/init.rst:240 +#: ../Doc/c-api/init.rst:241 msgid "" "Initialize the Python interpreter. In an application embedding Python, " "this should be called before using any other Python/C API functions; see :" "ref:`Before Python Initialization ` for the few exceptions." msgstr "" -#: ../Doc/c-api/init.rst:244 +#: ../Doc/c-api/init.rst:245 msgid "" "This initializes the table of loaded modules (``sys.modules``), and creates " "the fundamental modules :mod:`builtins`, :mod:`__main__` and :mod:`sys`. It " @@ -401,27 +405,27 @@ msgid "" "There is no return value; it is a fatal error if the initialization fails." msgstr "" -#: ../Doc/c-api/init.rst:253 +#: ../Doc/c-api/init.rst:254 msgid "" "On Windows, changes the console mode from ``O_TEXT`` to ``O_BINARY``, which " "will also affect non-Python uses of the console using the C Runtime." msgstr "" -#: ../Doc/c-api/init.rst:259 +#: ../Doc/c-api/init.rst:260 msgid "" "This function works like :c:func:`Py_Initialize` if *initsigs* is ``1``. If " "*initsigs* is ``0``, it skips initialization registration of signal " "handlers, which might be useful when Python is embedded." msgstr "" -#: ../Doc/c-api/init.rst:266 +#: ../Doc/c-api/init.rst:267 msgid "" "Return true (nonzero) when the Python interpreter has been initialized, " "false (zero) if not. After :c:func:`Py_FinalizeEx` is called, this returns " "false until :c:func:`Py_Initialize` is called again." msgstr "" -#: ../Doc/c-api/init.rst:273 +#: ../Doc/c-api/init.rst:274 msgid "" "Undo all initializations made by :c:func:`Py_Initialize` and subsequent use " "of Python/C API functions, and destroy all sub-interpreters (see :c:func:" @@ -433,7 +437,7 @@ msgid "" "(flushing buffered data), ``-1`` is returned." msgstr "" -#: ../Doc/c-api/init.rst:282 +#: ../Doc/c-api/init.rst:283 msgid "" "This function is provided for a number of reasons. An embedding application " "might want to restart Python without having to restart the application " @@ -444,7 +448,7 @@ msgid "" "Python before exiting from the application." msgstr "" -#: ../Doc/c-api/init.rst:290 +#: ../Doc/c-api/init.rst:291 msgid "" "**Bugs and caveats:** The destruction of modules and objects in modules is " "done in random order; this may cause destructors (:meth:`__del__` methods) " @@ -459,54 +463,54 @@ msgid "" "than once." msgstr "" -#: ../Doc/c-api/init.rst:306 +#: ../Doc/c-api/init.rst:307 msgid "" "This is a backwards-compatible version of :c:func:`Py_FinalizeEx` that " "disregards the return value." msgstr "" -#: ../Doc/c-api/init.rst:311 +#: ../Doc/c-api/init.rst:312 msgid "Process-wide parameters" msgstr "" -#: ../Doc/c-api/init.rst:321 +#: ../Doc/c-api/init.rst:322 msgid "" "This function should be called before :c:func:`Py_Initialize`, if it is " "called at all. It specifies which encoding and error handling to use with " "standard IO, with the same meanings as in :func:`str.encode`." msgstr "" -#: ../Doc/c-api/init.rst:325 +#: ../Doc/c-api/init.rst:326 msgid "" "It overrides :envvar:`PYTHONIOENCODING` values, and allows embedding code to " "control IO encoding when the environment variable does not work." msgstr "" -#: ../Doc/c-api/init.rst:328 +#: ../Doc/c-api/init.rst:329 msgid "" "``encoding`` and/or ``errors`` may be NULL to use :envvar:`PYTHONIOENCODING` " "and/or default values (depending on other settings)." msgstr "" -#: ../Doc/c-api/init.rst:332 +#: ../Doc/c-api/init.rst:333 msgid "" "Note that :data:`sys.stderr` always uses the \"backslashreplace\" error " "handler, regardless of this (or any other) setting." msgstr "" -#: ../Doc/c-api/init.rst:335 +#: ../Doc/c-api/init.rst:336 msgid "" "If :c:func:`Py_FinalizeEx` is called, this function will need to be called " "again in order to affect subsequent calls to :c:func:`Py_Initialize`." msgstr "" -#: ../Doc/c-api/init.rst:338 +#: ../Doc/c-api/init.rst:339 msgid "" "Returns ``0`` if successful, a nonzero value on error (e.g. calling after " "the interpreter has already been initialized)." msgstr "" -#: ../Doc/c-api/init.rst:351 +#: ../Doc/c-api/init.rst:352 msgid "" "This function should be called before :c:func:`Py_Initialize` is called for " "the first time, if it is called at all. It tells the interpreter the value " @@ -520,22 +524,22 @@ msgid "" "this storage." msgstr "" -#: ../Doc/c-api/init.rst:362 ../Doc/c-api/init.rst:476 -#: ../Doc/c-api/init.rst:578 ../Doc/c-api/init.rst:605 -#: ../Doc/c-api/init.rst:622 +#: ../Doc/c-api/init.rst:363 ../Doc/c-api/init.rst:477 +#: ../Doc/c-api/init.rst:579 ../Doc/c-api/init.rst:606 +#: ../Doc/c-api/init.rst:623 msgid "" "Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a :c:type:" "`wchar_*` string." msgstr "" -#: ../Doc/c-api/init.rst:370 +#: ../Doc/c-api/init.rst:371 msgid "" "Return the program name set with :c:func:`Py_SetProgramName`, or the " "default. The returned string points into static storage; the caller should " "not modify its value." msgstr "" -#: ../Doc/c-api/init.rst:377 +#: ../Doc/c-api/init.rst:378 msgid "" "Return the *prefix* for installed platform-independent files. This is " "derived through a number of complicated rules from the program name set " @@ -549,7 +553,7 @@ msgid "" "function." msgstr "" -#: ../Doc/c-api/init.rst:390 +#: ../Doc/c-api/init.rst:391 msgid "" "Return the *exec-prefix* for installed platform-*dependent* files. This is " "derived through a number of complicated rules from the program name set " @@ -563,7 +567,7 @@ msgid "" "on Unix." msgstr "" -#: ../Doc/c-api/init.rst:400 +#: ../Doc/c-api/init.rst:401 msgid "" "Background: The exec-prefix differs from the prefix when platform dependent " "files (such as executables and shared libraries) are installed in a " @@ -572,7 +576,7 @@ msgid "" "independent may be installed in :file:`/usr/local`." msgstr "" -#: ../Doc/c-api/init.rst:406 +#: ../Doc/c-api/init.rst:407 msgid "" "Generally speaking, a platform is a combination of hardware and software " "families, e.g. Sparc machines running the Solaris 2.x operating system are " @@ -586,7 +590,7 @@ msgid "" "independent from the Python version by which they were compiled!)." msgstr "" -#: ../Doc/c-api/init.rst:417 +#: ../Doc/c-api/init.rst:418 msgid "" "System administrators will know how to configure the :program:`mount` or :" "program:`automount` programs to share :file:`/usr/local` between platforms " @@ -594,7 +598,7 @@ msgid "" "platform." msgstr "" -#: ../Doc/c-api/init.rst:429 +#: ../Doc/c-api/init.rst:430 msgid "" "Return the full program name of the Python executable; this is computed as " "a side-effect of deriving the default module search path from the program " @@ -603,7 +607,7 @@ msgid "" "available to Python code as ``sys.executable``." msgstr "" -#: ../Doc/c-api/init.rst:443 +#: ../Doc/c-api/init.rst:444 msgid "" "Return the default module search path; this is computed from the program " "name (set by :c:func:`Py_SetProgramName` above) and some environment " @@ -616,7 +620,7 @@ msgid "" "for loading modules." msgstr "" -#: ../Doc/c-api/init.rst:463 +#: ../Doc/c-api/init.rst:464 msgid "" "Set the default module search path. If this function is called before :c:" "func:`Py_Initialize`, then :c:func:`Py_GetPath` won't attempt to compute a " @@ -627,7 +631,7 @@ msgid "" "``';'`` on Windows." msgstr "" -#: ../Doc/c-api/init.rst:471 +#: ../Doc/c-api/init.rst:472 msgid "" "This also causes :data:`sys.executable` to be set only to the raw program " "name (see :c:func:`Py_SetProgramName`) and for :data:`sys.prefix` and :data:" @@ -635,19 +639,19 @@ msgid "" "required after calling :c:func:`Py_Initialize`." msgstr "" -#: ../Doc/c-api/init.rst:479 +#: ../Doc/c-api/init.rst:480 msgid "" "The path argument is copied internally, so the caller may free it after the " "call completes." msgstr "" -#: ../Doc/c-api/init.rst:485 +#: ../Doc/c-api/init.rst:486 msgid "" "Return the version of this Python interpreter. This is a string that looks " "something like ::" msgstr "" -#: ../Doc/c-api/init.rst:492 +#: ../Doc/c-api/init.rst:493 msgid "" "The first word (up to the first space character) is the current Python " "version; the first three characters are the major and minor version " @@ -656,7 +660,7 @@ msgid "" "as :data:`sys.version`." msgstr "" -#: ../Doc/c-api/init.rst:502 +#: ../Doc/c-api/init.rst:503 msgid "" "Return the platform identifier for the current platform. On Unix, this is " "formed from the \"official\" name of the operating system, converted to " @@ -667,42 +671,42 @@ msgid "" "value is available to Python code as ``sys.platform``." msgstr "" -#: ../Doc/c-api/init.rst:513 +#: ../Doc/c-api/init.rst:514 msgid "" "Return the official copyright string for the current Python version, for " "example" msgstr "" -#: ../Doc/c-api/init.rst:515 +#: ../Doc/c-api/init.rst:516 msgid "``'Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam'``" msgstr "" -#: ../Doc/c-api/init.rst:519 +#: ../Doc/c-api/init.rst:520 msgid "" "The returned string points into static storage; the caller should not modify " "its value. The value is available to Python code as ``sys.copyright``." msgstr "" -#: ../Doc/c-api/init.rst:525 +#: ../Doc/c-api/init.rst:526 msgid "" "Return an indication of the compiler used to build the current Python " "version, in square brackets, for example::" msgstr "" -#: ../Doc/c-api/init.rst:532 ../Doc/c-api/init.rst:546 +#: ../Doc/c-api/init.rst:533 ../Doc/c-api/init.rst:547 msgid "" "The returned string points into static storage; the caller should not modify " "its value. The value is available to Python code as part of the variable " "``sys.version``." msgstr "" -#: ../Doc/c-api/init.rst:539 +#: ../Doc/c-api/init.rst:540 msgid "" "Return information about the sequence number and build date and time of the " "current Python interpreter instance, for example ::" msgstr "" -#: ../Doc/c-api/init.rst:558 +#: ../Doc/c-api/init.rst:559 msgid "" "Set :data:`sys.argv` based on *argc* and *argv*. These parameters are " "similar to those passed to the program's :c:func:`main` function with the " @@ -713,28 +717,28 @@ msgid "" "fatal condition is signalled using :c:func:`Py_FatalError`." msgstr "" -#: ../Doc/c-api/init.rst:566 +#: ../Doc/c-api/init.rst:567 msgid "" "If *updatepath* is zero, this is all the function does. If *updatepath* is " "non-zero, the function also modifies :data:`sys.path` according to the " "following algorithm:" msgstr "" -#: ../Doc/c-api/init.rst:570 +#: ../Doc/c-api/init.rst:571 msgid "" "If the name of an existing script is passed in ``argv[0]``, the absolute " "path of the directory where the script is located is prepended to :data:`sys." "path`." msgstr "" -#: ../Doc/c-api/init.rst:573 +#: ../Doc/c-api/init.rst:574 msgid "" "Otherwise (that is, if *argc* is ``0`` or ``argv[0]`` doesn't point to an " "existing file name), an empty string is prepended to :data:`sys.path`, which " "is the same as prepending the current working directory (``\".\"``)." msgstr "" -#: ../Doc/c-api/init.rst:582 +#: ../Doc/c-api/init.rst:583 msgid "" "It is recommended that applications embedding the Python interpreter for " "purposes other than executing a single script pass ``0`` as *updatepath*, " @@ -742,32 +746,32 @@ msgid "" "`_." msgstr "" -#: ../Doc/c-api/init.rst:587 +#: ../Doc/c-api/init.rst:588 msgid "" "On versions before 3.1.3, you can achieve the same effect by manually " "popping the first :data:`sys.path` element after having called :c:func:" "`PySys_SetArgv`, for example using::" msgstr "" -#: ../Doc/c-api/init.rst:601 +#: ../Doc/c-api/init.rst:602 msgid "" "This function works like :c:func:`PySys_SetArgvEx` with *updatepath* set to " "``1`` unless the :program:`python` interpreter was started with the :option:" "`-I`." msgstr "" -#: ../Doc/c-api/init.rst:608 +#: ../Doc/c-api/init.rst:609 msgid "The *updatepath* value depends on :option:`-I`." msgstr "" -#: ../Doc/c-api/init.rst:613 +#: ../Doc/c-api/init.rst:614 msgid "" "Set the default \"home\" directory, that is, the location of the standard " "Python libraries. See :envvar:`PYTHONHOME` for the meaning of the argument " "string." msgstr "" -#: ../Doc/c-api/init.rst:617 +#: ../Doc/c-api/init.rst:618 msgid "" "The argument should point to a zero-terminated character string in static " "storage whose contents will not change for the duration of the program's " @@ -775,18 +779,18 @@ msgid "" "this storage." msgstr "" -#: ../Doc/c-api/init.rst:628 +#: ../Doc/c-api/init.rst:629 msgid "" "Return the default \"home\", that is, the value set by a previous call to :c:" "func:`Py_SetPythonHome`, or the value of the :envvar:`PYTHONHOME` " "environment variable if it is set." msgstr "" -#: ../Doc/c-api/init.rst:636 +#: ../Doc/c-api/init.rst:637 msgid "Thread State and the Global Interpreter Lock" msgstr "" -#: ../Doc/c-api/init.rst:643 +#: ../Doc/c-api/init.rst:644 msgid "" "The Python interpreter is not fully thread-safe. In order to support multi-" "threaded Python programs, there's a global lock, called the :term:`global " @@ -798,7 +802,7 @@ msgid "" "once instead of twice." msgstr "" -#: ../Doc/c-api/init.rst:653 +#: ../Doc/c-api/init.rst:654 msgid "" "Therefore, the rule exists that only the thread that has acquired the :term:" "`GIL` may operate on Python objects or call Python/C API functions. In order " @@ -808,7 +812,7 @@ msgid "" "a file, so that other Python threads can run in the meantime." msgstr "" -#: ../Doc/c-api/init.rst:664 +#: ../Doc/c-api/init.rst:665 msgid "" "The Python interpreter keeps some thread-specific bookkeeping information " "inside a data structure called :c:type:`PyThreadState`. There's also one " @@ -816,32 +820,32 @@ msgid "" "retrieved using :c:func:`PyThreadState_Get`." msgstr "" -#: ../Doc/c-api/init.rst:670 +#: ../Doc/c-api/init.rst:671 msgid "Releasing the GIL from extension code" msgstr "" -#: ../Doc/c-api/init.rst:672 +#: ../Doc/c-api/init.rst:673 msgid "" "Most extension code manipulating the :term:`GIL` has the following simple " "structure::" msgstr "" -#: ../Doc/c-api/init.rst:681 +#: ../Doc/c-api/init.rst:682 msgid "This is so common that a pair of macros exists to simplify it::" msgstr "" -#: ../Doc/c-api/init.rst:691 +#: ../Doc/c-api/init.rst:692 msgid "" "The :c:macro:`Py_BEGIN_ALLOW_THREADS` macro opens a new block and declares a " "hidden local variable; the :c:macro:`Py_END_ALLOW_THREADS` macro closes the " "block." msgstr "" -#: ../Doc/c-api/init.rst:695 +#: ../Doc/c-api/init.rst:696 msgid "The block above expands to the following code::" msgstr "" -#: ../Doc/c-api/init.rst:707 +#: ../Doc/c-api/init.rst:708 msgid "" "Here is how these functions work: the global interpreter lock is used to " "protect the pointer to the current thread state. When releasing the lock " @@ -852,7 +856,7 @@ msgid "" "state, the lock must be acquired before storing the thread state pointer." msgstr "" -#: ../Doc/c-api/init.rst:716 +#: ../Doc/c-api/init.rst:717 msgid "" "Calling system I/O functions is the most common use case for releasing the " "GIL, but it can also be useful before calling long-running computations " @@ -862,11 +866,11 @@ msgid "" "compressing or hashing data." msgstr "" -#: ../Doc/c-api/init.rst:727 +#: ../Doc/c-api/init.rst:728 msgid "Non-Python created threads" msgstr "" -#: ../Doc/c-api/init.rst:729 +#: ../Doc/c-api/init.rst:730 msgid "" "When threads are created using the dedicated Python APIs (such as the :mod:" "`threading` module), a thread state is automatically associated to them and " @@ -876,7 +880,7 @@ msgid "" "for them." msgstr "" -#: ../Doc/c-api/init.rst:736 +#: ../Doc/c-api/init.rst:737 msgid "" "If you need to call Python code from these threads (often this will be part " "of a callback API provided by the aforementioned third-party library), you " @@ -887,14 +891,14 @@ msgid "" "finally free the thread state data structure." msgstr "" -#: ../Doc/c-api/init.rst:744 +#: ../Doc/c-api/init.rst:745 msgid "" "The :c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release` functions " "do all of the above automatically. The typical idiom for calling into " "Python from a C thread is::" msgstr "" -#: ../Doc/c-api/init.rst:758 +#: ../Doc/c-api/init.rst:759 msgid "" "Note that the :c:func:`PyGILState_\\*` functions assume there is only one " "global interpreter (created automatically by :c:func:`Py_Initialize`). " @@ -903,7 +907,7 @@ msgid "" "`PyGILState_\\*` API is unsupported." msgstr "" -#: ../Doc/c-api/init.rst:764 +#: ../Doc/c-api/init.rst:765 msgid "" "Another important thing to note about threads is their behaviour in the face " "of the C :c:func:`fork` call. On most systems with :c:func:`fork`, after a " @@ -923,17 +927,17 @@ msgid "" "able to." msgstr "" -#: ../Doc/c-api/init.rst:783 +#: ../Doc/c-api/init.rst:784 msgid "High-level API" msgstr "" -#: ../Doc/c-api/init.rst:785 +#: ../Doc/c-api/init.rst:786 msgid "" "These are the most commonly used types and functions when writing C " "extension code, or when embedding the Python interpreter:" msgstr "" -#: ../Doc/c-api/init.rst:790 +#: ../Doc/c-api/init.rst:791 msgid "" "This data structure represents the state shared by a number of cooperating " "threads. Threads belonging to the same interpreter share their module " @@ -941,7 +945,7 @@ msgid "" "in this structure." msgstr "" -#: ../Doc/c-api/init.rst:795 +#: ../Doc/c-api/init.rst:796 msgid "" "Threads belonging to different interpreters initially share nothing, except " "process state like available memory, open file descriptors and such. The " @@ -949,14 +953,14 @@ msgid "" "which interpreter they belong." msgstr "" -#: ../Doc/c-api/init.rst:803 +#: ../Doc/c-api/init.rst:804 msgid "" "This data structure represents the state of a single thread. The only " "public data member is :c:type:`PyInterpreterState \\*`:attr:`interp`, which " "points to this thread's interpreter state." msgstr "" -#: ../Doc/c-api/init.rst:816 +#: ../Doc/c-api/init.rst:817 msgid "" "Initialize and acquire the global interpreter lock. It should be called in " "the main thread before creating a second thread or engaging in any other " @@ -964,33 +968,33 @@ msgid "" "before calling :c:func:`PyEval_SaveThread` or :c:func:`PyEval_RestoreThread`." msgstr "" -#: ../Doc/c-api/init.rst:821 +#: ../Doc/c-api/init.rst:822 msgid "This is a no-op when called for a second time." msgstr "" -#: ../Doc/c-api/init.rst:823 +#: ../Doc/c-api/init.rst:824 msgid "" "This function is now called by :c:func:`Py_Initialize()`, so you don't have " "to call it yourself anymore." msgstr "" -#: ../Doc/c-api/init.rst:827 +#: ../Doc/c-api/init.rst:828 msgid "" "This function cannot be called before :c:func:`Py_Initialize()` anymore." msgstr "" -#: ../Doc/c-api/init.rst:835 +#: ../Doc/c-api/init.rst:836 msgid "" "Returns a non-zero value if :c:func:`PyEval_InitThreads` has been called. " "This function can be called without holding the GIL, and therefore can be " "used to avoid calls to the locking API when running single-threaded." msgstr "" -#: ../Doc/c-api/init.rst:839 +#: ../Doc/c-api/init.rst:840 msgid "The :term:`GIL` is now initialized by :c:func:`Py_Initialize()`." msgstr "" -#: ../Doc/c-api/init.rst:845 +#: ../Doc/c-api/init.rst:846 msgid "" "Release the global interpreter lock (if it has been created and thread " "support is enabled) and reset the thread state to *NULL*, returning the " @@ -998,7 +1002,7 @@ msgid "" "the current thread must have acquired it." msgstr "" -#: ../Doc/c-api/init.rst:853 +#: ../Doc/c-api/init.rst:854 msgid "" "Acquire the global interpreter lock (if it has been created and thread " "support is enabled) and set the thread state to *tstate*, which must not be " @@ -1006,34 +1010,34 @@ msgid "" "acquired it, otherwise deadlock ensues." msgstr "" -#: ../Doc/c-api/init.rst:861 +#: ../Doc/c-api/init.rst:862 msgid "" "Return the current thread state. The global interpreter lock must be held. " "When the current thread state is *NULL*, this issues a fatal error (so that " "the caller needn't check for *NULL*)." msgstr "" -#: ../Doc/c-api/init.rst:868 +#: ../Doc/c-api/init.rst:869 msgid "" "Swap the current thread state with the thread state given by the argument " "*tstate*, which may be *NULL*. The global interpreter lock must be held and " "is not released." msgstr "" -#: ../Doc/c-api/init.rst:875 +#: ../Doc/c-api/init.rst:876 msgid "" "This function is called from :c:func:`PyOS_AfterFork_Child` to ensure that " "newly created child processes don't hold locks referring to threads which " "are not running in the child process." msgstr "" -#: ../Doc/c-api/init.rst:880 +#: ../Doc/c-api/init.rst:881 msgid "" "The following functions use thread-local storage, and are not compatible " "with sub-interpreters:" msgstr "" -#: ../Doc/c-api/init.rst:885 +#: ../Doc/c-api/init.rst:886 msgid "" "Ensure that the current thread is ready to call the Python C API regardless " "of the current state of Python, or of the global interpreter lock. This may " @@ -1046,7 +1050,7 @@ msgid "" "is acceptable." msgstr "" -#: ../Doc/c-api/init.rst:895 +#: ../Doc/c-api/init.rst:896 msgid "" "The return value is an opaque \"handle\" to the thread state when :c:func:" "`PyGILState_Ensure` was called, and must be passed to :c:func:" @@ -1056,13 +1060,13 @@ msgid "" "func:`PyGILState_Release`." msgstr "" -#: ../Doc/c-api/init.rst:902 +#: ../Doc/c-api/init.rst:903 msgid "" "When the function returns, the current thread will hold the GIL and be able " "to call arbitrary Python code. Failure is a fatal error." msgstr "" -#: ../Doc/c-api/init.rst:908 +#: ../Doc/c-api/init.rst:909 msgid "" "Release any resources previously acquired. After this call, Python's state " "will be the same as it was prior to the corresponding :c:func:" @@ -1070,13 +1074,13 @@ msgid "" "caller, hence the use of the GILState API)." msgstr "" -#: ../Doc/c-api/init.rst:913 +#: ../Doc/c-api/init.rst:914 msgid "" "Every call to :c:func:`PyGILState_Ensure` must be matched by a call to :c:" "func:`PyGILState_Release` on the same thread." msgstr "" -#: ../Doc/c-api/init.rst:919 +#: ../Doc/c-api/init.rst:920 msgid "" "Get the current thread state for this thread. May return ``NULL`` if no " "GILState API has been used on the current thread. Note that the main thread " @@ -1084,7 +1088,7 @@ msgid "" "made on the main thread. This is mainly a helper/diagnostic function." msgstr "" -#: ../Doc/c-api/init.rst:927 +#: ../Doc/c-api/init.rst:928 msgid "" "Return ``1`` if the current thread is holding the GIL and ``0`` otherwise. " "This function can be called from any thread at any time. Only if it has had " @@ -1095,13 +1099,13 @@ msgid "" "otherwise behave differently." msgstr "" -#: ../Doc/c-api/init.rst:939 +#: ../Doc/c-api/init.rst:940 msgid "" "The following macros are normally used without a trailing semicolon; look " "for example usage in the Python source distribution." msgstr "" -#: ../Doc/c-api/init.rst:945 +#: ../Doc/c-api/init.rst:946 msgid "" "This macro expands to ``{ PyThreadState *_save; _save = PyEval_SaveThread();" "``. Note that it contains an opening brace; it must be matched with a " @@ -1109,7 +1113,7 @@ msgid "" "discussion of this macro." msgstr "" -#: ../Doc/c-api/init.rst:953 +#: ../Doc/c-api/init.rst:954 msgid "" "This macro expands to ``PyEval_RestoreThread(_save); }``. Note that it " "contains a closing brace; it must be matched with an earlier :c:macro:" @@ -1117,79 +1121,79 @@ msgid "" "macro." msgstr "" -#: ../Doc/c-api/init.rst:961 +#: ../Doc/c-api/init.rst:962 msgid "" "This macro expands to ``PyEval_RestoreThread(_save);``: it is equivalent to :" "c:macro:`Py_END_ALLOW_THREADS` without the closing brace." msgstr "" -#: ../Doc/c-api/init.rst:967 +#: ../Doc/c-api/init.rst:968 msgid "" "This macro expands to ``_save = PyEval_SaveThread();``: it is equivalent to :" "c:macro:`Py_BEGIN_ALLOW_THREADS` without the opening brace and variable " "declaration." msgstr "" -#: ../Doc/c-api/init.rst:973 +#: ../Doc/c-api/init.rst:974 msgid "Low-level API" msgstr "" -#: ../Doc/c-api/init.rst:975 +#: ../Doc/c-api/init.rst:976 msgid "" "All of the following functions must be called after :c:func:`Py_Initialize`." msgstr "" -#: ../Doc/c-api/init.rst:977 +#: ../Doc/c-api/init.rst:978 msgid ":c:func:`Py_Initialize()` now initializes the :term:`GIL`." msgstr "" -#: ../Doc/c-api/init.rst:983 +#: ../Doc/c-api/init.rst:984 msgid "" "Create a new interpreter state object. The global interpreter lock need not " "be held, but may be held if it is necessary to serialize calls to this " "function." msgstr "" -#: ../Doc/c-api/init.rst:990 +#: ../Doc/c-api/init.rst:991 msgid "" "Reset all information in an interpreter state object. The global " "interpreter lock must be held." msgstr "" -#: ../Doc/c-api/init.rst:996 +#: ../Doc/c-api/init.rst:997 msgid "" "Destroy an interpreter state object. The global interpreter lock need not " "be held. The interpreter state must have been reset with a previous call " "to :c:func:`PyInterpreterState_Clear`." msgstr "" -#: ../Doc/c-api/init.rst:1003 +#: ../Doc/c-api/init.rst:1004 msgid "" "Create a new thread state object belonging to the given interpreter object. " "The global interpreter lock need not be held, but may be held if it is " "necessary to serialize calls to this function." msgstr "" -#: ../Doc/c-api/init.rst:1010 +#: ../Doc/c-api/init.rst:1011 msgid "" "Reset all information in a thread state object. The global interpreter lock " "must be held." msgstr "" -#: ../Doc/c-api/init.rst:1016 +#: ../Doc/c-api/init.rst:1017 msgid "" "Destroy a thread state object. The global interpreter lock need not be " "held. The thread state must have been reset with a previous call to :c:func:" "`PyThreadState_Clear`." msgstr "" -#: ../Doc/c-api/init.rst:1023 +#: ../Doc/c-api/init.rst:1024 msgid "" "Return the interpreter's unique ID. If there was any error in doing so then " "``-1`` is returned and an error is set." msgstr "" -#: ../Doc/c-api/init.rst:1031 +#: ../Doc/c-api/init.rst:1032 msgid "" "Return a dictionary in which extensions can store thread-specific state " "information. Each extension should use a unique key to use to store state " @@ -1198,7 +1202,7 @@ msgid "" "raised and the caller should assume no current thread state is available." msgstr "" -#: ../Doc/c-api/init.rst:1040 +#: ../Doc/c-api/init.rst:1041 msgid "" "Asynchronously raise an exception in a thread. The *id* argument is the " "thread id of the target thread; *exc* is the exception object to be raised. " @@ -1210,26 +1214,26 @@ msgid "" "raises no exceptions." msgstr "" -#: ../Doc/c-api/init.rst:1048 +#: ../Doc/c-api/init.rst:1049 msgid "" "The type of the *id* parameter changed from :c:type:`long` to :c:type:" "`unsigned long`." msgstr "" -#: ../Doc/c-api/init.rst:1054 +#: ../Doc/c-api/init.rst:1055 msgid "" "Acquire the global interpreter lock and set the current thread state to " "*tstate*, which should not be *NULL*. The lock must have been created " "earlier. If this thread already has the lock, deadlock ensues." msgstr "" -#: ../Doc/c-api/init.rst:1058 +#: ../Doc/c-api/init.rst:1059 msgid "" ":c:func:`PyEval_RestoreThread` is a higher-level function which is always " "available (even when threads have not been initialized)." msgstr "" -#: ../Doc/c-api/init.rst:1064 +#: ../Doc/c-api/init.rst:1065 msgid "" "Reset the current thread state to *NULL* and release the global interpreter " "lock. The lock must have been created earlier and must be held by the " @@ -1238,41 +1242,41 @@ msgid "" "fatal error is reported." msgstr "" -#: ../Doc/c-api/init.rst:1070 +#: ../Doc/c-api/init.rst:1071 msgid "" ":c:func:`PyEval_SaveThread` is a higher-level function which is always " "available (even when threads have not been initialized)." msgstr "" -#: ../Doc/c-api/init.rst:1076 +#: ../Doc/c-api/init.rst:1077 msgid "" "Acquire the global interpreter lock. The lock must have been created " "earlier. If this thread already has the lock, a deadlock ensues." msgstr "" -#: ../Doc/c-api/init.rst:1079 +#: ../Doc/c-api/init.rst:1080 msgid "" "This function does not update the current thread state. Please use :c:func:" "`PyEval_RestoreThread` or :c:func:`PyEval_AcquireThread` instead." msgstr "" -#: ../Doc/c-api/init.rst:1087 +#: ../Doc/c-api/init.rst:1088 msgid "" "Release the global interpreter lock. The lock must have been created " "earlier." msgstr "" -#: ../Doc/c-api/init.rst:1089 +#: ../Doc/c-api/init.rst:1090 msgid "" "This function does not update the current thread state. Please use :c:func:" "`PyEval_SaveThread` or :c:func:`PyEval_ReleaseThread` instead." msgstr "" -#: ../Doc/c-api/init.rst:1098 +#: ../Doc/c-api/init.rst:1099 msgid "Sub-interpreter support" msgstr "" -#: ../Doc/c-api/init.rst:1100 +#: ../Doc/c-api/init.rst:1101 msgid "" "While in most uses, you will only embed a single Python interpreter, there " "are cases where you need to create several independent interpreters in the " @@ -1282,7 +1286,7 @@ msgid "" "following functions:" msgstr "" -#: ../Doc/c-api/init.rst:1118 +#: ../Doc/c-api/init.rst:1119 msgid "" "Create a new sub-interpreter. This is an (almost) totally separate " "environment for the execution of Python code. In particular, the new " @@ -1295,7 +1299,7 @@ msgid "" "underlying file descriptors)." msgstr "" -#: ../Doc/c-api/init.rst:1128 +#: ../Doc/c-api/init.rst:1129 msgid "" "The return value points to the first thread state created in the new sub-" "interpreter. This thread state is made in the current thread state. Note " @@ -1309,7 +1313,7 @@ msgid "" "state on entry.)" msgstr "" -#: ../Doc/c-api/init.rst:1143 +#: ../Doc/c-api/init.rst:1144 msgid "" "Extension modules are shared between (sub-)interpreters as follows: the " "first time a particular extension is imported, it is initialized normally, " @@ -1323,7 +1327,7 @@ msgid "" "called again." msgstr "" -#: ../Doc/c-api/init.rst:1160 +#: ../Doc/c-api/init.rst:1161 msgid "" "Destroy the (sub-)interpreter represented by the given thread state. The " "given thread state must be the current thread state. See the discussion of " @@ -1334,11 +1338,11 @@ msgid "" "sub-interpreters that haven't been explicitly destroyed at that point." msgstr "" -#: ../Doc/c-api/init.rst:1170 +#: ../Doc/c-api/init.rst:1171 msgid "Bugs and caveats" msgstr "" -#: ../Doc/c-api/init.rst:1172 +#: ../Doc/c-api/init.rst:1173 msgid "" "Because sub-interpreters (and the main interpreter) are part of the same " "process, the insulation between them isn't perfect --- for example, using " @@ -1355,7 +1359,7 @@ msgid "" "of loaded modules." msgstr "" -#: ../Doc/c-api/init.rst:1186 +#: ../Doc/c-api/init.rst:1187 msgid "" "Also note that combining this functionality with :c:func:`PyGILState_\\*` " "APIs is delicate, because these APIs assume a bijection between Python " @@ -1367,25 +1371,25 @@ msgid "" "created threads will probably be broken when using sub-interpreters." msgstr "" -#: ../Doc/c-api/init.rst:1197 +#: ../Doc/c-api/init.rst:1198 msgid "Asynchronous Notifications" msgstr "" -#: ../Doc/c-api/init.rst:1199 +#: ../Doc/c-api/init.rst:1200 msgid "" "A mechanism is provided to make asynchronous notifications to the main " "interpreter thread. These notifications take the form of a function pointer " "and a void pointer argument." msgstr "" -#: ../Doc/c-api/init.rst:1208 +#: ../Doc/c-api/init.rst:1209 msgid "" "Schedule a function to be called from the main interpreter thread. On " "success, ``0`` is returned and *func* is queued for being called in the main " "thread. On failure, ``-1`` is returned without setting any exception." msgstr "" -#: ../Doc/c-api/init.rst:1212 +#: ../Doc/c-api/init.rst:1213 msgid "" "When successfully queued, *func* will be *eventually* called from the main " "interpreter thread with the argument *arg*. It will be called " @@ -1393,17 +1397,17 @@ msgid "" "these conditions met:" msgstr "" -#: ../Doc/c-api/init.rst:1217 +#: ../Doc/c-api/init.rst:1218 msgid "on a :term:`bytecode` boundary;" msgstr "" -#: ../Doc/c-api/init.rst:1218 +#: ../Doc/c-api/init.rst:1219 msgid "" "with the main thread holding the :term:`global interpreter lock` (*func* can " "therefore use the full C API)." msgstr "" -#: ../Doc/c-api/init.rst:1221 +#: ../Doc/c-api/init.rst:1222 msgid "" "*func* must return ``0`` on success, or ``-1`` on failure with an exception " "set. *func* won't be interrupted to perform another asynchronous " @@ -1411,13 +1415,13 @@ msgid "" "if the global interpreter lock is released." msgstr "" -#: ../Doc/c-api/init.rst:1226 +#: ../Doc/c-api/init.rst:1227 msgid "" "This function doesn't need a current thread state to run, and it doesn't " "need the global interpreter lock." msgstr "" -#: ../Doc/c-api/init.rst:1230 +#: ../Doc/c-api/init.rst:1231 msgid "" "This is a low-level function, only useful for very special cases. There is " "no guarantee that *func* will be called as quick as possible. If the main " @@ -1427,18 +1431,18 @@ msgid "" "`PyGILState API`." msgstr "" -#: ../Doc/c-api/init.rst:1242 +#: ../Doc/c-api/init.rst:1243 msgid "Profiling and Tracing" msgstr "" -#: ../Doc/c-api/init.rst:1247 +#: ../Doc/c-api/init.rst:1248 msgid "" "The Python interpreter provides some low-level support for attaching " "profiling and execution tracing facilities. These are used for profiling, " "debugging, and coverage analysis tools." msgstr "" -#: ../Doc/c-api/init.rst:1251 +#: ../Doc/c-api/init.rst:1252 msgid "" "This C interface allows the profiling or tracing code to avoid the overhead " "of calling through Python-level callable objects, making a direct C function " @@ -1448,7 +1452,7 @@ msgid "" "reported to the Python-level trace functions in previous versions." msgstr "" -#: ../Doc/c-api/init.rst:1261 +#: ../Doc/c-api/init.rst:1262 msgid "" "The type of the trace function registered using :c:func:`PyEval_SetProfile` " "and :c:func:`PyEval_SetTrace`. The first parameter is the object passed to " @@ -1459,66 +1463,66 @@ msgid "" "or :const:`PyTrace_OPCODE`, and *arg* depends on the value of *what*:" msgstr "" -#: ../Doc/c-api/init.rst:1270 +#: ../Doc/c-api/init.rst:1271 msgid "Value of *what*" msgstr "" -#: ../Doc/c-api/init.rst:1270 +#: ../Doc/c-api/init.rst:1271 msgid "Meaning of *arg*" msgstr "" -#: ../Doc/c-api/init.rst:1272 +#: ../Doc/c-api/init.rst:1273 msgid ":const:`PyTrace_CALL`" msgstr "" -#: ../Doc/c-api/init.rst:1272 ../Doc/c-api/init.rst:1277 -#: ../Doc/c-api/init.rst:1288 +#: ../Doc/c-api/init.rst:1273 ../Doc/c-api/init.rst:1278 +#: ../Doc/c-api/init.rst:1289 msgid "Always :c:data:`Py_None`." msgstr "" -#: ../Doc/c-api/init.rst:1274 +#: ../Doc/c-api/init.rst:1275 msgid ":const:`PyTrace_EXCEPTION`" msgstr "" -#: ../Doc/c-api/init.rst:1274 +#: ../Doc/c-api/init.rst:1275 msgid "Exception information as returned by :func:`sys.exc_info`." msgstr "" -#: ../Doc/c-api/init.rst:1277 +#: ../Doc/c-api/init.rst:1278 msgid ":const:`PyTrace_LINE`" msgstr "" -#: ../Doc/c-api/init.rst:1279 +#: ../Doc/c-api/init.rst:1280 msgid ":const:`PyTrace_RETURN`" msgstr "" -#: ../Doc/c-api/init.rst:1279 +#: ../Doc/c-api/init.rst:1280 msgid "" "Value being returned to the caller, or *NULL* if caused by an exception." msgstr "" -#: ../Doc/c-api/init.rst:1282 +#: ../Doc/c-api/init.rst:1283 msgid ":const:`PyTrace_C_CALL`" msgstr "" -#: ../Doc/c-api/init.rst:1282 ../Doc/c-api/init.rst:1284 -#: ../Doc/c-api/init.rst:1286 +#: ../Doc/c-api/init.rst:1283 ../Doc/c-api/init.rst:1285 +#: ../Doc/c-api/init.rst:1287 msgid "Function object being called." msgstr "" -#: ../Doc/c-api/init.rst:1284 +#: ../Doc/c-api/init.rst:1285 msgid ":const:`PyTrace_C_EXCEPTION`" msgstr "" -#: ../Doc/c-api/init.rst:1286 +#: ../Doc/c-api/init.rst:1287 msgid ":const:`PyTrace_C_RETURN`" msgstr "" -#: ../Doc/c-api/init.rst:1288 +#: ../Doc/c-api/init.rst:1289 msgid ":const:`PyTrace_OPCODE`" msgstr "" -#: ../Doc/c-api/init.rst:1293 +#: ../Doc/c-api/init.rst:1294 msgid "" "The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " "a new call to a function or method is being reported, or a new entry into a " @@ -1527,7 +1531,7 @@ msgid "" "the corresponding frame." msgstr "" -#: ../Doc/c-api/init.rst:1302 +#: ../Doc/c-api/init.rst:1303 msgid "" "The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " "an exception has been raised. The callback function is called with this " @@ -1539,7 +1543,7 @@ msgid "" "profiler." msgstr "" -#: ../Doc/c-api/init.rst:1313 +#: ../Doc/c-api/init.rst:1314 msgid "" "The value passed as the *what* parameter to a :c:type:`Py_tracefunc` " "function (but not a profiling function) when a line-number event is being " @@ -1547,31 +1551,31 @@ msgid "" "*0* on that frame." msgstr "" -#: ../Doc/c-api/init.rst:1320 +#: ../Doc/c-api/init.rst:1321 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a call is about to return." msgstr "" -#: ../Doc/c-api/init.rst:1326 +#: ../Doc/c-api/init.rst:1327 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function is about to be called." msgstr "" -#: ../Doc/c-api/init.rst:1332 +#: ../Doc/c-api/init.rst:1333 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has raised an exception." msgstr "" -#: ../Doc/c-api/init.rst:1338 +#: ../Doc/c-api/init.rst:1339 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " "a C function has returned." msgstr "" -#: ../Doc/c-api/init.rst:1344 +#: ../Doc/c-api/init.rst:1345 msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions (but " "not profiling functions) when a new opcode is about to be executed. This " @@ -1579,7 +1583,7 @@ msgid "" "attr:`f_trace_opcodes` to *1* on the frame." msgstr "" -#: ../Doc/c-api/init.rst:1352 +#: ../Doc/c-api/init.rst:1353 msgid "" "Set the profiler function to *func*. The *obj* parameter is passed to the " "function as its first parameter, and may be any Python object, or *NULL*. " @@ -1589,7 +1593,7 @@ msgid "" "`PyTrace_LINE` :const:`PyTrace_OPCODE` and :const:`PyTrace_EXCEPTION`." msgstr "" -#: ../Doc/c-api/init.rst:1362 +#: ../Doc/c-api/init.rst:1363 msgid "" "Set the tracing function to *func*. This is similar to :c:func:" "`PyEval_SetProfile`, except the tracing function does receive line-number " @@ -1600,44 +1604,48 @@ msgid "" "parameter." msgstr "" -#: ../Doc/c-api/init.rst:1372 +#: ../Doc/c-api/init.rst:1373 msgid "Advanced Debugger Support" msgstr "Support avancé du débogueur" -#: ../Doc/c-api/init.rst:1377 +#: ../Doc/c-api/init.rst:1378 msgid "" "These functions are only intended to be used by advanced debugging tools." msgstr "" -#: ../Doc/c-api/init.rst:1382 +#: ../Doc/c-api/init.rst:1383 msgid "" "Return the interpreter state object at the head of the list of all such " "objects." msgstr "" -#: ../Doc/c-api/init.rst:1387 +#: ../Doc/c-api/init.rst:1388 +msgid "Return the main interpreter state object." +msgstr "" + +#: ../Doc/c-api/init.rst:1393 msgid "" "Return the next interpreter state object after *interp* from the list of all " "such objects." msgstr "" -#: ../Doc/c-api/init.rst:1393 +#: ../Doc/c-api/init.rst:1399 msgid "" "Return the pointer to the first :c:type:`PyThreadState` object in the list " "of threads associated with the interpreter *interp*." msgstr "" -#: ../Doc/c-api/init.rst:1399 +#: ../Doc/c-api/init.rst:1405 msgid "" "Return the next thread state object after *tstate* from the list of all such " "objects belonging to the same :c:type:`PyInterpreterState` object." msgstr "" -#: ../Doc/c-api/init.rst:1406 +#: ../Doc/c-api/init.rst:1412 msgid "Thread Local Storage Support" msgstr "" -#: ../Doc/c-api/init.rst:1410 +#: ../Doc/c-api/init.rst:1416 msgid "" "The Python interpreter provides low-level support for thread-local storage " "(TLS) which wraps the underlying native TLS implementation to support the " @@ -1647,19 +1655,19 @@ msgid "" "thread." msgstr "" -#: ../Doc/c-api/init.rst:1417 +#: ../Doc/c-api/init.rst:1423 msgid "" "The GIL does *not* need to be held when calling these functions; they supply " "their own locking." msgstr "" -#: ../Doc/c-api/init.rst:1420 +#: ../Doc/c-api/init.rst:1426 msgid "" "Note that :file:`Python.h` does not include the declaration of the TLS APIs, " "you need to include :file:`pythread.h` to use thread-local storage." msgstr "" -#: ../Doc/c-api/init.rst:1424 +#: ../Doc/c-api/init.rst:1430 msgid "" "None of these API functions handle memory management on behalf of the :c:" "type:`void\\*` values. You need to allocate and deallocate them yourself. " @@ -1667,22 +1675,22 @@ msgid "" "functions don't do refcount operations on them either." msgstr "" -#: ../Doc/c-api/init.rst:1432 +#: ../Doc/c-api/init.rst:1438 msgid "Thread Specific Storage (TSS) API" msgstr "" -#: ../Doc/c-api/init.rst:1434 +#: ../Doc/c-api/init.rst:1440 msgid "" "TSS API is introduced to supersede the use of the existing TLS API within " "the CPython interpreter. This API uses a new type :c:type:`Py_tss_t` " "instead of :c:type:`int` to represent thread keys." msgstr "" -#: ../Doc/c-api/init.rst:1440 +#: ../Doc/c-api/init.rst:1446 msgid "\"A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)" msgstr "" -#: ../Doc/c-api/init.rst:1445 +#: ../Doc/c-api/init.rst:1451 msgid "" "This data structure represents the state of a thread key, the definition of " "which may depend on the underlying TLS implementation, and it has an " @@ -1690,52 +1698,52 @@ msgid "" "public members in this structure." msgstr "" -#: ../Doc/c-api/init.rst:1450 +#: ../Doc/c-api/init.rst:1456 msgid "" "When :ref:`Py_LIMITED_API ` is not defined, static allocation of " "this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed." msgstr "" -#: ../Doc/c-api/init.rst:1456 +#: ../Doc/c-api/init.rst:1462 msgid "" "This macro expands to the initializer for :c:type:`Py_tss_t` variables. Note " "that this macro won't be defined with :ref:`Py_LIMITED_API `." msgstr "" -#: ../Doc/c-api/init.rst:1461 +#: ../Doc/c-api/init.rst:1467 msgid "Dynamic Allocation" msgstr "" -#: ../Doc/c-api/init.rst:1463 +#: ../Doc/c-api/init.rst:1469 msgid "" "Dynamic allocation of the :c:type:`Py_tss_t`, required in extension modules " "built with :ref:`Py_LIMITED_API `, where static allocation of this " "type is not possible due to its implementation being opaque at build time." msgstr "" -#: ../Doc/c-api/init.rst:1470 +#: ../Doc/c-api/init.rst:1476 msgid "" "Return a value which is the same state as a value initialized with :c:macro:" "`Py_tss_NEEDS_INIT`, or *NULL* in the case of dynamic allocation failure." msgstr "" -#: ../Doc/c-api/init.rst:1477 +#: ../Doc/c-api/init.rst:1483 msgid "" "Free the given *key* allocated by :c:func:`PyThread_tss_alloc`, after first " "calling :c:func:`PyThread_tss_delete` to ensure any associated thread locals " "have been unassigned. This is a no-op if the *key* argument is `NULL`." msgstr "" -#: ../Doc/c-api/init.rst:1483 +#: ../Doc/c-api/init.rst:1489 msgid "" "A freed key becomes a dangling pointer, you should reset the key to `NULL`." msgstr "" -#: ../Doc/c-api/init.rst:1488 +#: ../Doc/c-api/init.rst:1494 msgid "Methods" msgstr "Méthodes" -#: ../Doc/c-api/init.rst:1490 +#: ../Doc/c-api/init.rst:1496 msgid "" "The parameter *key* of these functions must not be *NULL*. Moreover, the " "behaviors of :c:func:`PyThread_tss_set` and :c:func:`PyThread_tss_get` are " @@ -1743,13 +1751,13 @@ msgid "" "func:`PyThread_tss_create`." msgstr "" -#: ../Doc/c-api/init.rst:1498 +#: ../Doc/c-api/init.rst:1504 msgid "" "Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized " "by :c:func:`PyThread_tss_create`." msgstr "" -#: ../Doc/c-api/init.rst:1504 +#: ../Doc/c-api/init.rst:1510 msgid "" "Return a zero value on successful initialization of a TSS key. The behavior " "is undefined if the value pointed to by the *key* argument is not " @@ -1758,7 +1766,7 @@ msgid "" "no-op and immediately returns success." msgstr "" -#: ../Doc/c-api/init.rst:1513 +#: ../Doc/c-api/init.rst:1519 msgid "" "Destroy a TSS key to forget the values associated with the key across all " "threads, and change the key's initialization state to uninitialized. A " @@ -1767,31 +1775,31 @@ msgid "" "key -- calling it on an already destroyed key is a no-op." msgstr "" -#: ../Doc/c-api/init.rst:1522 +#: ../Doc/c-api/init.rst:1528 msgid "" "Return a zero value to indicate successfully associating a :c:type:`void\\*` " "value with a TSS key in the current thread. Each thread has a distinct " "mapping of the key to a :c:type:`void\\*` value." msgstr "" -#: ../Doc/c-api/init.rst:1529 +#: ../Doc/c-api/init.rst:1535 msgid "" "Return the :c:type:`void\\*` value associated with a TSS key in the current " "thread. This returns *NULL* if no value is associated with the key in the " "current thread." msgstr "" -#: ../Doc/c-api/init.rst:1537 +#: ../Doc/c-api/init.rst:1543 msgid "Thread Local Storage (TLS) API" msgstr "" -#: ../Doc/c-api/init.rst:1539 +#: ../Doc/c-api/init.rst:1545 msgid "" "This API is superseded by :ref:`Thread Specific Storage (TSS) API `." msgstr "" -#: ../Doc/c-api/init.rst:1544 +#: ../Doc/c-api/init.rst:1550 msgid "" "This version of the API does not support platforms where the native TLS key " "is defined in a way that cannot be safely cast to ``int``. On such " @@ -1800,7 +1808,7 @@ msgid "" "platforms." msgstr "" -#: ../Doc/c-api/init.rst:1549 +#: ../Doc/c-api/init.rst:1555 msgid "" "Due to the compatibility problem noted above, this version of the API should " "not be used in new code." diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index 7a2c05d33..ecd0cd84d 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-21 20:12+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -86,6 +86,7 @@ msgstr "" "à segment unique. Sinon, renvoie ``0``. Cette fonction réussit toujours." #: ../Doc/c-api/objbuffer.rst:44 +#, fuzzy msgid "" "Note that this function tries to get and release a buffer, and exceptions " "which occur while calling corresponding functions will get suppressed. To " diff --git a/c-api/typeobj.po b/c-api/typeobj.po index fabd8965d..89058cbda 100644 --- a/c-api/typeobj.po +++ b/c-api/typeobj.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-28 15:29+0200\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -1505,7 +1505,7 @@ msgid "" "signature. It should modify its first operand, and return it. This slot " "may be left to *NULL*, in this case :c:func:`!PySequence_InPlaceConcat` will " "fall back to :c:func:`PySequence_Concat`. It is also used by the augmented " -"assignment ``+=``, after trying numeric inplace addition via the :c:member:" +"assignment ``+=``, after trying numeric in-place addition via the :c:member:" "`~PyNumberMethods.nb_inplace_add` slot." msgstr "" @@ -1515,7 +1515,7 @@ msgid "" "signature. It should modify its first operand, and return it. This slot " "may be left to *NULL*, in this case :c:func:`!PySequence_InPlaceRepeat` will " "fall back to :c:func:`PySequence_Repeat`. It is also used by the augmented " -"assignment ``*=``, after trying numeric inplace multiplication via the :c:" +"assignment ``*=``, after trying numeric in-place multiplication via the :c:" "member:`~PyNumberMethods.nb_inplace_multiply` slot." msgstr "" diff --git a/c-api/veryhigh.po b/c-api/veryhigh.po index ed1781b4a..23fc0d531 100644 --- a/c-api/veryhigh.po +++ b/c-api/veryhigh.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 16:06+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -136,13 +136,20 @@ msgid "" "PyRun_SimpleFileExFlags returns." msgstr "" -#: ../Doc/c-api/veryhigh.rst:115 +#: ../Doc/c-api/veryhigh.rst:113 +msgid "" +"On Windows, *fp* should be opened as binary mode (e.g. ``fopen(filename, \"rb" +"\")``. Otherwise, Python may not handle script file with LF line ending " +"correctly." +msgstr "" + +#: ../Doc/c-api/veryhigh.rst:119 msgid "" "This is a simplified interface to :c:func:`PyRun_InteractiveOneFlags` below, " "leaving *flags* set to *NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:121 +#: ../Doc/c-api/veryhigh.rst:125 msgid "" "Read and execute a single statement from a file associated with an " "interactive device according to the *flags* argument. The user will be " @@ -150,7 +157,7 @@ msgid "" "filesystem encoding (:func:`sys.getfilesystemencoding`)." msgstr "" -#: ../Doc/c-api/veryhigh.rst:126 +#: ../Doc/c-api/veryhigh.rst:130 msgid "" "Returns ``0`` when the input was executed successfully, ``-1`` if there was " "an exception, or an error code from the :file:`errcode.h` include file " @@ -159,13 +166,13 @@ msgid "" "specifically if needed.)" msgstr "" -#: ../Doc/c-api/veryhigh.rst:135 +#: ../Doc/c-api/veryhigh.rst:139 msgid "" "This is a simplified interface to :c:func:`PyRun_InteractiveLoopFlags` " "below, leaving *flags* set to *NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:141 +#: ../Doc/c-api/veryhigh.rst:145 msgid "" "Read and execute statements from a file associated with an interactive " "device until EOF is reached. The user will be prompted using ``sys.ps1`` " @@ -174,7 +181,7 @@ msgid "" "upon failure." msgstr "" -#: ../Doc/c-api/veryhigh.rst:150 +#: ../Doc/c-api/veryhigh.rst:154 msgid "" "Can be set to point to a function with the prototype ``int func(void)``. " "The function will be called when Python's interpreter prompt is about to " @@ -184,7 +191,7 @@ msgid "" "the Python source code." msgstr "" -#: ../Doc/c-api/veryhigh.rst:161 +#: ../Doc/c-api/veryhigh.rst:165 msgid "" "Can be set to point to a function with the prototype ``char *func(FILE " "*stdin, FILE *stdout, char *prompt)``, overriding the default function used " @@ -195,34 +202,34 @@ msgid "" "line-editing and tab-completion features." msgstr "" -#: ../Doc/c-api/veryhigh.rst:170 +#: ../Doc/c-api/veryhigh.rst:174 msgid "" "The result must be a string allocated by :c:func:`PyMem_RawMalloc` or :c:" "func:`PyMem_RawRealloc`, or *NULL* if an error occurred." msgstr "" -#: ../Doc/c-api/veryhigh.rst:173 +#: ../Doc/c-api/veryhigh.rst:177 msgid "" "The result must be allocated by :c:func:`PyMem_RawMalloc` or :c:func:" "`PyMem_RawRealloc`, instead of being allocated by :c:func:`PyMem_Malloc` or :" "c:func:`PyMem_Realloc`." msgstr "" -#: ../Doc/c-api/veryhigh.rst:181 +#: ../Doc/c-api/veryhigh.rst:185 msgid "" "This is a simplified interface to :c:func:" "`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename* set to " "*NULL* and *flags* set to ``0``." msgstr "" -#: ../Doc/c-api/veryhigh.rst:188 +#: ../Doc/c-api/veryhigh.rst:192 msgid "" "This is a simplified interface to :c:func:" "`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename* set to " "*NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:195 +#: ../Doc/c-api/veryhigh.rst:199 msgid "" "Parse Python source code from *str* using the start token *start* according " "to the *flags* argument. The result can be used to create a code object " @@ -231,25 +238,25 @@ msgid "" "(:func:`sys.getfilesystemencoding`)." msgstr "" -#: ../Doc/c-api/veryhigh.rst:204 +#: ../Doc/c-api/veryhigh.rst:208 msgid "" "This is a simplified interface to :c:func:`PyParser_SimpleParseFileFlags` " "below, leaving *flags* set to ``0``." msgstr "" -#: ../Doc/c-api/veryhigh.rst:210 +#: ../Doc/c-api/veryhigh.rst:214 msgid "" "Similar to :c:func:`PyParser_SimpleParseStringFlagsFilename`, but the Python " "source code is read from *fp* instead of an in-memory string." msgstr "" -#: ../Doc/c-api/veryhigh.rst:216 +#: ../Doc/c-api/veryhigh.rst:220 msgid "" "This is a simplified interface to :c:func:`PyRun_StringFlags` below, leaving " "*flags* set to *NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:222 +#: ../Doc/c-api/veryhigh.rst:226 msgid "" "Execute Python source code from *str* in the context specified by the " "objects *globals* and *locals* with the compiler flags specified by " @@ -258,31 +265,31 @@ msgid "" "token that should be used to parse the source code." msgstr "" -#: ../Doc/c-api/veryhigh.rst:228 +#: ../Doc/c-api/veryhigh.rst:232 msgid "" "Returns the result of executing the code as a Python object, or *NULL* if an " "exception was raised." msgstr "" -#: ../Doc/c-api/veryhigh.rst:234 +#: ../Doc/c-api/veryhigh.rst:238 msgid "" "This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving " "*closeit* set to ``0`` and *flags* set to *NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:240 +#: ../Doc/c-api/veryhigh.rst:244 msgid "" "This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving " "*flags* set to *NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:246 +#: ../Doc/c-api/veryhigh.rst:250 msgid "" "This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving " "*closeit* set to ``0``." msgstr "" -#: ../Doc/c-api/veryhigh.rst:252 +#: ../Doc/c-api/veryhigh.rst:256 msgid "" "Similar to :c:func:`PyRun_StringFlags`, but the Python source code is read " "from *fp* instead of an in-memory string. *filename* should be the name of " @@ -291,19 +298,19 @@ msgid "" "func:`PyRun_FileExFlags` returns." msgstr "" -#: ../Doc/c-api/veryhigh.rst:261 +#: ../Doc/c-api/veryhigh.rst:265 msgid "" "This is a simplified interface to :c:func:`Py_CompileStringFlags` below, " "leaving *flags* set to *NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:267 +#: ../Doc/c-api/veryhigh.rst:271 msgid "" "This is a simplified interface to :c:func:`Py_CompileStringExFlags` below, " "with *optimize* set to ``-1``." msgstr "" -#: ../Doc/c-api/veryhigh.rst:273 +#: ../Doc/c-api/veryhigh.rst:277 msgid "" "Parse and compile the Python source code in *str*, returning the resulting " "code object. The start token is given by *start*; this can be used to " @@ -314,7 +321,7 @@ msgid "" "returns *NULL* if the code cannot be parsed or compiled." msgstr "" -#: ../Doc/c-api/veryhigh.rst:281 +#: ../Doc/c-api/veryhigh.rst:285 msgid "" "The integer *optimize* specifies the optimization level of the compiler; a " "value of ``-1`` selects the optimization level of the interpreter as given " @@ -323,20 +330,20 @@ msgid "" "or ``2`` (docstrings are removed too)." msgstr "" -#: ../Doc/c-api/veryhigh.rst:292 +#: ../Doc/c-api/veryhigh.rst:296 msgid "" "Like :c:func:`Py_CompileStringObject`, but *filename* is a byte string " "decoded from the filesystem encoding (:func:`os.fsdecode`)." msgstr "" -#: ../Doc/c-api/veryhigh.rst:299 +#: ../Doc/c-api/veryhigh.rst:303 msgid "" "This is a simplified interface to :c:func:`PyEval_EvalCodeEx`, with just the " "code object, and global and local variables. The other arguments are set to " "*NULL*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:306 +#: ../Doc/c-api/veryhigh.rst:310 msgid "" "Evaluate a precompiled code object, given a particular environment for its " "evaluation. This environment consists of a dictionary of global variables, " @@ -345,19 +352,19 @@ msgid "" "only_parameter>` arguments and a closure tuple of cells." msgstr "" -#: ../Doc/c-api/veryhigh.rst:315 +#: ../Doc/c-api/veryhigh.rst:319 msgid "" "The C structure of the objects used to describe frame objects. The fields of " "this type are subject to change at any time." msgstr "" -#: ../Doc/c-api/veryhigh.rst:321 +#: ../Doc/c-api/veryhigh.rst:325 msgid "" "Evaluate an execution frame. This is a simplified interface to :c:func:" "`PyEval_EvalFrameEx`, for backward compatibility." msgstr "" -#: ../Doc/c-api/veryhigh.rst:327 +#: ../Doc/c-api/veryhigh.rst:331 msgid "" "This is the main, unvarnished function of Python interpretation. It is " "literally 2000 lines long. The code object associated with the execution " @@ -367,7 +374,7 @@ msgid "" "`~generator.throw` methods of generator objects." msgstr "" -#: ../Doc/c-api/veryhigh.rst:334 +#: ../Doc/c-api/veryhigh.rst:338 msgid "" "This function now includes a debug assertion to help ensure that it does not " "silently discard an active exception." @@ -375,33 +382,33 @@ msgstr "" "Cette fonction inclut maintenant une assertion de débogage afin d'assurer " "qu'elle ne passe pas sous silence une exception active." -#: ../Doc/c-api/veryhigh.rst:341 +#: ../Doc/c-api/veryhigh.rst:345 msgid "" "This function changes the flags of the current evaluation frame, and returns " "true on success, false on failure." msgstr "" -#: ../Doc/c-api/veryhigh.rst:349 +#: ../Doc/c-api/veryhigh.rst:353 msgid "" "The start symbol from the Python grammar for isolated expressions; for use " "with :c:func:`Py_CompileString`." msgstr "" -#: ../Doc/c-api/veryhigh.rst:357 +#: ../Doc/c-api/veryhigh.rst:361 msgid "" "The start symbol from the Python grammar for sequences of statements as read " "from a file or other source; for use with :c:func:`Py_CompileString`. This " "is the symbol to use when compiling arbitrarily long Python source code." msgstr "" -#: ../Doc/c-api/veryhigh.rst:366 +#: ../Doc/c-api/veryhigh.rst:370 msgid "" "The start symbol from the Python grammar for a single statement; for use " "with :c:func:`Py_CompileString`. This is the symbol used for the interactive " "interpreter loop." msgstr "" -#: ../Doc/c-api/veryhigh.rst:373 +#: ../Doc/c-api/veryhigh.rst:377 msgid "" "This is the structure used to hold compiler flags. In cases where code is " "only being compiled, it is passed as ``int flags``, and in cases where code " @@ -409,14 +416,14 @@ msgid "" "case, ``from __future__ import`` can modify *flags*." msgstr "" -#: ../Doc/c-api/veryhigh.rst:378 +#: ../Doc/c-api/veryhigh.rst:382 msgid "" "Whenever ``PyCompilerFlags *flags`` is *NULL*, :attr:`cf_flags` is treated " "as equal to ``0``, and any modification due to ``from __future__ import`` is " "discarded. ::" msgstr "" -#: ../Doc/c-api/veryhigh.rst:389 +#: ../Doc/c-api/veryhigh.rst:393 msgid "" "This bit can be set in *flags* to cause division operator ``/`` to be " "interpreted as \"true division\" according to :pep:`238`." diff --git a/c-api/weakref.po b/c-api/weakref.po index 0dfc0c723..d3a18d9ca 100644 --- a/c-api/weakref.po +++ b/c-api/weakref.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-02 22:11+0200\n" +"POT-Creation-Date: 2019-03-11 12:59+0100\n" "PO-Revision-Date: 2019-03-29 14:17+0100\n" +"Last-Translator: Andy Kwok \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Last-Translator: Andy Kwok \n" "X-Generator: Poedit 2.0.6\n" #: ../Doc/c-api/weakref.rst:6 diff --git a/faq/general.po b/faq/general.po index 411ca5201..ef8244081 100644 --- a/faq/general.po +++ b/faq/general.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-27 17:45+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -935,19 +935,3 @@ msgstr "" "Si vous voulez discuter de l'usage de Python dans l'éducation, vous devriez " "intéressé pour rejoindre `la liste de diffusion pour l'enseignement `_." - -#~ msgid "" -#~ "The Python project's infrastructure is located all over the world. `www." -#~ "python.org `_ is graciously hosted by `Rackspace " -#~ "`_, with CDN caching provided by `Fastly " -#~ "`_. `Upfront Systems `_ hosts `bugs.python.org `_. Many other " -#~ "Python services like `the Wiki `_ are hosted by " -#~ "`Oregon State University Open Source Lab `_." -#~ msgstr "" -#~ "L'infrastructure du projet Python est localisé dans le monde entier. `www." -#~ "python.org `_ est gracieusement hébergé par " -#~ "`Rackspace `_, avec un cache *CDN* fourni par " -#~ "`Fastly `_. `Upfront Systems `_ héberge `bugs.python.org `_." diff --git a/faq/programming.po b/faq/programming.po index bb14f60ac..5860de41a 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-11-13 09:44+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" diff --git a/faq/windows.po b/faq/windows.po index fba6085b3..46e57693e 100644 --- a/faq/windows.po +++ b/faq/windows.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-12-10 14:17+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" diff --git a/glossary.po b/glossary.po index b829cfb11..6875fdad3 100644 --- a/glossary.po +++ b/glossary.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-02-19 19:32+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" diff --git a/howto/unicode.po b/howto/unicode.po index 8b46a0dfb..109c060b1 100644 --- a/howto/unicode.po +++ b/howto/unicode.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-04 16:43+0100\n" "Last-Translator: Mathieu Dupuy \n" "Language-Team: FRENCH \n" diff --git a/library/asyncio.po b/library/asyncio.po index 6d8cb05da..aa5c10ad6 100644 --- a/library/asyncio.po +++ b/library/asyncio.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-03 13:15+0200\n" "PO-Revision-Date: 2018-12-16 16:19+0100\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" diff --git a/library/collections.po b/library/collections.po index bf249719c..7bff86c25 100644 --- a/library/collections.po +++ b/library/collections.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-02-22 15:27+0100\n" "Last-Translator: Guillaume Fayard \n" "Language-Team: FRENCH \n" @@ -1350,14 +1350,14 @@ msgstr "" "`~somenamedtuple._replace` pour personnaliser une instance prototype :" #: ../Doc/library/collections.rst:1019 +#, fuzzy msgid "" "See :class:`typing.NamedTuple` for a way to add type hints for named " "tuples. It also provides an elegant notation using the :keyword:`class` " "keyword::" msgstr "" "Voir :meth:`typing.NamedTuple` pour un moyen d'ajouter des indications de " -"type pour les tuples nommés. Cela fournit aussi une notation élégante en " -"utilisant le mot-clé :keyword:`class` ::" +"type pour les tuples nommés." #: ../Doc/library/collections.rst:1028 msgid "" @@ -1372,9 +1372,6 @@ msgid "" "The :mod:`dataclasses` module provides a decorator and functions for " "automatically adding generated special methods to user-defined classes." msgstr "" -"Le module :mod:`dataclasses` fournit un décorateur et des fonctions pour " -"ajouter automatiquement des méthodes spéciales aux classes définies par " -"l'utilisateur." #: ../Doc/library/collections.rst:1036 msgid ":class:`OrderedDict` objects" diff --git a/library/compileall.po b/library/compileall.po index 6dec7fb2c..ec8fd8d0f 100644 --- a/library/compileall.po +++ b/library/compileall.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" diff --git a/library/configparser.po b/library/configparser.po index e8d19adbd..35d1312d3 100644 --- a/library/configparser.po +++ b/library/configparser.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -587,7 +587,14 @@ msgid "" "method if that's unsuitable. For example:" msgstr "" -#: ../Doc/library/configparser.rst:728 +#: ../Doc/library/configparser.rst:727 +msgid "" +"The optionxform function transforms option names to a canonical form. This " +"should be an idempotent function: if the name is already in canonical form, " +"it should be returned unchanged." +msgstr "" + +#: ../Doc/library/configparser.rst:734 msgid "" "A compiled regular expression used to parse section headers. The default " "matches ``[section]`` to the name ``\"section\"``. Whitespace is considered " @@ -596,18 +603,18 @@ msgid "" "example:" msgstr "" -#: ../Doc/library/configparser.rst:756 +#: ../Doc/library/configparser.rst:762 msgid "" "While ConfigParser objects also use an ``OPTCRE`` attribute for recognizing " "option lines, it's not recommended to override it because that would " "interfere with constructor options *allow_no_value* and *delimiters*." msgstr "" -#: ../Doc/library/configparser.rst:762 +#: ../Doc/library/configparser.rst:768 msgid "Legacy API Examples" msgstr "" -#: ../Doc/library/configparser.rst:764 +#: ../Doc/library/configparser.rst:770 msgid "" "Mainly because of backwards compatibility concerns, :mod:`configparser` " "provides also a legacy API with explicit ``get``/``set`` methods. While " @@ -616,29 +623,29 @@ msgid "" "advanced, low-level and downright counterintuitive." msgstr "" -#: ../Doc/library/configparser.rst:770 +#: ../Doc/library/configparser.rst:776 msgid "An example of writing to a configuration file::" msgstr "" -#: ../Doc/library/configparser.rst:793 +#: ../Doc/library/configparser.rst:799 msgid "An example of reading the configuration file again::" msgstr "" -#: ../Doc/library/configparser.rst:811 +#: ../Doc/library/configparser.rst:817 msgid "To get interpolation, use :class:`ConfigParser`::" msgstr "" -#: ../Doc/library/configparser.rst:844 +#: ../Doc/library/configparser.rst:850 msgid "" "Default values are available in both types of ConfigParsers. They are used " "in interpolation if an option used is not defined elsewhere. ::" msgstr "" -#: ../Doc/library/configparser.rst:862 +#: ../Doc/library/configparser.rst:868 msgid "ConfigParser Objects" msgstr "" -#: ../Doc/library/configparser.rst:866 +#: ../Doc/library/configparser.rst:872 msgid "" "The main configuration parser. When *defaults* is given, it is initialized " "into the dictionary of intrinsic defaults. When *dict_type* is given, it " @@ -646,7 +653,7 @@ msgid "" "the options within a section, and for the default values." msgstr "" -#: ../Doc/library/configparser.rst:871 +#: ../Doc/library/configparser.rst:877 msgid "" "When *delimiters* is given, it is used as the set of substrings that divide " "keys from values. When *comment_prefixes* is given, it will be used as the " @@ -655,7 +662,7 @@ msgid "" "as the set of substrings that prefix comments in non-empty lines." msgstr "" -#: ../Doc/library/configparser.rst:877 +#: ../Doc/library/configparser.rst:883 msgid "" "When *strict* is ``True`` (the default), the parser won't allow for any " "section or option duplicates while reading from a single source (file, " @@ -668,7 +675,7 @@ msgid "" "without the trailing delimiter." msgstr "" -#: ../Doc/library/configparser.rst:887 +#: ../Doc/library/configparser.rst:893 msgid "" "When *default_section* is given, it specifies the name for the special " "section holding default values for other sections and interpolation purposes " @@ -676,7 +683,7 @@ msgid "" "on runtime using the ``default_section`` instance attribute." msgstr "" -#: ../Doc/library/configparser.rst:892 +#: ../Doc/library/configparser.rst:898 msgid "" "Interpolation behaviour may be customized by providing a custom handler " "through the *interpolation* argument. ``None`` can be used to turn off " @@ -685,7 +692,7 @@ msgid "" "`dedicated documentation section <#interpolation-of-values>`_." msgstr "" -#: ../Doc/library/configparser.rst:898 +#: ../Doc/library/configparser.rst:904 msgid "" "All option names used in interpolation will be passed through the :meth:" "`optionxform` method just like any other option name reference. For " @@ -694,7 +701,7 @@ msgid "" "%(BAR)s`` are equivalent." msgstr "" -#: ../Doc/library/configparser.rst:904 +#: ../Doc/library/configparser.rst:910 msgid "" "When *converters* is given, it should be a dictionary where each key " "represents the name of a type converter and each value is a callable " @@ -703,38 +710,38 @@ msgid "" "object and section proxies." msgstr "" -#: ../Doc/library/configparser.rst:910 +#: ../Doc/library/configparser.rst:916 msgid "The default *dict_type* is :class:`collections.OrderedDict`." msgstr "" -#: ../Doc/library/configparser.rst:913 +#: ../Doc/library/configparser.rst:919 msgid "" "*allow_no_value*, *delimiters*, *comment_prefixes*, *strict*, " "*empty_lines_in_values*, *default_section* and *interpolation* were added." msgstr "" -#: ../Doc/library/configparser.rst:918 +#: ../Doc/library/configparser.rst:924 msgid "The *converters* argument was added." msgstr "" -#: ../Doc/library/configparser.rst:921 +#: ../Doc/library/configparser.rst:927 msgid "" "The *defaults* argument is read with :meth:`read_dict()`, providing " "consistent behavior across the parser: non-string keys and values are " "implicitly converted to strings." msgstr "" -#: ../Doc/library/configparser.rst:928 +#: ../Doc/library/configparser.rst:934 msgid "Return a dictionary containing the instance-wide defaults." msgstr "" -#: ../Doc/library/configparser.rst:933 +#: ../Doc/library/configparser.rst:939 msgid "" "Return a list of the sections available; the *default section* is not " "included in the list." msgstr "" -#: ../Doc/library/configparser.rst:939 +#: ../Doc/library/configparser.rst:945 msgid "" "Add a section named *section* to the instance. If a section by the given " "name already exists, :exc:`DuplicateSectionError` is raised. If the " @@ -742,34 +749,34 @@ msgid "" "the section must be a string; if not, :exc:`TypeError` is raised." msgstr "" -#: ../Doc/library/configparser.rst:944 +#: ../Doc/library/configparser.rst:950 msgid "Non-string section names raise :exc:`TypeError`." msgstr "" -#: ../Doc/library/configparser.rst:950 +#: ../Doc/library/configparser.rst:956 msgid "" "Indicates whether the named *section* is present in the configuration. The " "*default section* is not acknowledged." msgstr "" -#: ../Doc/library/configparser.rst:956 +#: ../Doc/library/configparser.rst:962 msgid "Return a list of options available in the specified *section*." msgstr "" -#: ../Doc/library/configparser.rst:961 +#: ../Doc/library/configparser.rst:967 msgid "" "If the given *section* exists, and contains the given *option*, return :" "const:`True`; otherwise return :const:`False`. If the specified *section* " "is :const:`None` or an empty string, DEFAULT is assumed." msgstr "" -#: ../Doc/library/configparser.rst:968 +#: ../Doc/library/configparser.rst:974 msgid "" "Attempt to read and parse an iterable of filenames, returning a list of " "filenames which were successfully parsed." msgstr "" -#: ../Doc/library/configparser.rst:971 +#: ../Doc/library/configparser.rst:977 msgid "" "If *filenames* is a string, a :class:`bytes` object or a :term:`path-like " "object`, it is treated as a single filename. If a file named in *filenames* " @@ -780,7 +787,7 @@ msgid "" "be read." msgstr "" -#: ../Doc/library/configparser.rst:980 +#: ../Doc/library/configparser.rst:986 msgid "" "If none of the named files exist, the :class:`ConfigParser` instance will " "contain an empty dataset. An application which requires initial values to " @@ -788,49 +795,49 @@ msgid "" "`read_file` before calling :meth:`read` for any optional files::" msgstr "" -#: ../Doc/library/configparser.rst:993 +#: ../Doc/library/configparser.rst:999 msgid "" "The *encoding* parameter. Previously, all files were read using the default " "encoding for :func:`open`." msgstr "" -#: ../Doc/library/configparser.rst:997 +#: ../Doc/library/configparser.rst:1003 msgid "The *filenames* parameter accepts a :term:`path-like object`." msgstr "" -#: ../Doc/library/configparser.rst:1000 +#: ../Doc/library/configparser.rst:1006 msgid "The *filenames* parameter accepts a :class:`bytes` object." msgstr "" -#: ../Doc/library/configparser.rst:1006 +#: ../Doc/library/configparser.rst:1012 msgid "" "Read and parse configuration data from *f* which must be an iterable " "yielding Unicode strings (for example files opened in text mode)." msgstr "" -#: ../Doc/library/configparser.rst:1009 +#: ../Doc/library/configparser.rst:1015 msgid "" "Optional argument *source* specifies the name of the file being read. If " "not given and *f* has a :attr:`name` attribute, that is used for *source*; " "the default is ``''``." msgstr "" -#: ../Doc/library/configparser.rst:1013 +#: ../Doc/library/configparser.rst:1019 msgid "Replaces :meth:`readfp`." msgstr "" -#: ../Doc/library/configparser.rst:1018 +#: ../Doc/library/configparser.rst:1024 msgid "Parse configuration data from a string." msgstr "" -#: ../Doc/library/configparser.rst:1020 +#: ../Doc/library/configparser.rst:1026 msgid "" "Optional argument *source* specifies a context-specific name of the string " "passed. If not given, ``''`` is used. This should commonly be a " "filesystem path or a URL." msgstr "" -#: ../Doc/library/configparser.rst:1029 +#: ../Doc/library/configparser.rst:1035 msgid "" "Load configuration from any object that provides a dict-like ``items()`` " "method. Keys are section names, values are dictionaries with keys and " @@ -839,17 +846,17 @@ msgid "" "automatically converted to strings." msgstr "" -#: ../Doc/library/configparser.rst:1035 +#: ../Doc/library/configparser.rst:1041 msgid "" "Optional argument *source* specifies a context-specific name of the " "dictionary passed. If not given, ```` is used." msgstr "" -#: ../Doc/library/configparser.rst:1038 +#: ../Doc/library/configparser.rst:1044 msgid "This method can be used to copy state between parsers." msgstr "" -#: ../Doc/library/configparser.rst:1045 +#: ../Doc/library/configparser.rst:1051 msgid "" "Get an *option* value for the named *section*. If *vars* is provided, it " "must be a dictionary. The *option* is looked up in *vars* (if provided), " @@ -858,35 +865,35 @@ msgid "" "provided as a *fallback* value." msgstr "" -#: ../Doc/library/configparser.rst:1051 +#: ../Doc/library/configparser.rst:1057 msgid "" "All the ``'%'`` interpolations are expanded in the return values, unless the " "*raw* argument is true. Values for interpolation keys are looked up in the " "same manner as the option." msgstr "" -#: ../Doc/library/configparser.rst:1055 +#: ../Doc/library/configparser.rst:1061 msgid "" "Arguments *raw*, *vars* and *fallback* are keyword only to protect users " "from trying to use the third argument as the *fallback* fallback (especially " "when using the mapping protocol)." msgstr "" -#: ../Doc/library/configparser.rst:1063 +#: ../Doc/library/configparser.rst:1069 msgid "" "A convenience method which coerces the *option* in the specified *section* " "to an integer. See :meth:`get` for explanation of *raw*, *vars* and " "*fallback*." msgstr "" -#: ../Doc/library/configparser.rst:1070 +#: ../Doc/library/configparser.rst:1076 msgid "" "A convenience method which coerces the *option* in the specified *section* " "to a floating point number. See :meth:`get` for explanation of *raw*, " "*vars* and *fallback*." msgstr "" -#: ../Doc/library/configparser.rst:1077 +#: ../Doc/library/configparser.rst:1083 msgid "" "A convenience method which coerces the *option* in the specified *section* " "to a Boolean value. Note that the accepted values for the option are " @@ -898,27 +905,27 @@ msgid "" "*fallback*." msgstr "" -#: ../Doc/library/configparser.rst:1090 +#: ../Doc/library/configparser.rst:1096 msgid "" "When *section* is not given, return a list of *section_name*, " "*section_proxy* pairs, including DEFAULTSECT." msgstr "" -#: ../Doc/library/configparser.rst:1093 +#: ../Doc/library/configparser.rst:1099 msgid "" "Otherwise, return a list of *name*, *value* pairs for the options in the " "given *section*. Optional arguments have the same meaning as for the :meth:" "`get` method." msgstr "" -#: ../Doc/library/configparser.rst:1100 +#: ../Doc/library/configparser.rst:1106 msgid "" "If the given section exists, set the given option to the specified value; " "otherwise raise :exc:`NoSectionError`. *option* and *value* must be " "strings; if not, :exc:`TypeError` is raised." msgstr "" -#: ../Doc/library/configparser.rst:1107 +#: ../Doc/library/configparser.rst:1113 msgid "" "Write a representation of the configuration to the specified :term:`file " "object`, which must be opened in text mode (accepting strings). This " @@ -927,20 +934,20 @@ msgid "" "surrounded by spaces." msgstr "" -#: ../Doc/library/configparser.rst:1116 +#: ../Doc/library/configparser.rst:1122 msgid "" "Remove the specified *option* from the specified *section*. If the section " "does not exist, raise :exc:`NoSectionError`. If the option existed to be " "removed, return :const:`True`; otherwise return :const:`False`." msgstr "" -#: ../Doc/library/configparser.rst:1124 +#: ../Doc/library/configparser.rst:1130 msgid "" "Remove the specified *section* from the configuration. If the section in " "fact existed, return ``True``. Otherwise return ``False``." msgstr "" -#: ../Doc/library/configparser.rst:1130 +#: ../Doc/library/configparser.rst:1136 msgid "" "Transforms the option name *option* as found in an input file or as passed " "in by client code to the form that should be used in the internal " @@ -949,7 +956,7 @@ msgid "" "of this name on instances to affect this behavior." msgstr "" -#: ../Doc/library/configparser.rst:1136 +#: ../Doc/library/configparser.rst:1142 msgid "" "You don't need to subclass the parser to use this method, you can also set " "it on an instance, to a function that takes a string argument and returns a " @@ -957,46 +964,46 @@ msgid "" "sensitive::" msgstr "" -#: ../Doc/library/configparser.rst:1144 +#: ../Doc/library/configparser.rst:1150 msgid "" "Note that when reading configuration files, whitespace around the option " "names is stripped before :meth:`optionxform` is called." msgstr "" -#: ../Doc/library/configparser.rst:1150 +#: ../Doc/library/configparser.rst:1156 msgid "Use :meth:`read_file` instead." msgstr "" -#: ../Doc/library/configparser.rst:1153 +#: ../Doc/library/configparser.rst:1159 msgid "" ":meth:`readfp` now iterates on *fp* instead of calling ``fp.readline()``." msgstr "" -#: ../Doc/library/configparser.rst:1156 +#: ../Doc/library/configparser.rst:1162 msgid "" "For existing code calling :meth:`readfp` with arguments which don't support " "iteration, the following generator may be used as a wrapper around the file-" "like object::" msgstr "" -#: ../Doc/library/configparser.rst:1166 +#: ../Doc/library/configparser.rst:1172 msgid "" "Instead of ``parser.readfp(fp)`` use ``parser." "read_file(readline_generator(fp))``." msgstr "" -#: ../Doc/library/configparser.rst:1172 +#: ../Doc/library/configparser.rst:1178 msgid "" "The maximum depth for recursive interpolation for :meth:`get` when the *raw* " "parameter is false. This is relevant only when the default *interpolation* " "is used." msgstr "" -#: ../Doc/library/configparser.rst:1180 +#: ../Doc/library/configparser.rst:1186 msgid "RawConfigParser Objects" msgstr "" -#: ../Doc/library/configparser.rst:1190 +#: ../Doc/library/configparser.rst:1196 msgid "" "Legacy variant of the :class:`ConfigParser`. It has interpolation disabled " "by default and allows for non-string section names, option names, and values " @@ -1004,27 +1011,27 @@ msgid "" "``defaults=`` keyword argument handling." msgstr "" -#: ../Doc/library/configparser.rst:1196 +#: ../Doc/library/configparser.rst:1202 msgid "" "Consider using :class:`ConfigParser` instead which checks types of the " "values to be stored internally. If you don't want interpolation, you can " "use ``ConfigParser(interpolation=None)``." msgstr "" -#: ../Doc/library/configparser.rst:1203 +#: ../Doc/library/configparser.rst:1209 msgid "" "Add a section named *section* to the instance. If a section by the given " "name already exists, :exc:`DuplicateSectionError` is raised. If the " "*default section* name is passed, :exc:`ValueError` is raised." msgstr "" -#: ../Doc/library/configparser.rst:1207 +#: ../Doc/library/configparser.rst:1213 msgid "" "Type of *section* is not checked which lets users create non-string named " "sections. This behaviour is unsupported and may cause internal errors." msgstr "" -#: ../Doc/library/configparser.rst:1213 +#: ../Doc/library/configparser.rst:1219 msgid "" "If the given section exists, set the given option to the specified value; " "otherwise raise :exc:`NoSectionError`. While it is possible to use :class:" @@ -1034,7 +1041,7 @@ msgid "" "string values." msgstr "" -#: ../Doc/library/configparser.rst:1220 +#: ../Doc/library/configparser.rst:1226 msgid "" "This method lets users assign non-string values to keys internally. This " "behaviour is unsupported and will cause errors when attempting to write to a " @@ -1042,32 +1049,32 @@ msgid "" "not allow such assignments to take place." msgstr "" -#: ../Doc/library/configparser.rst:1227 +#: ../Doc/library/configparser.rst:1233 msgid "Exceptions" msgstr "Exceptions" -#: ../Doc/library/configparser.rst:1231 +#: ../Doc/library/configparser.rst:1237 msgid "Base class for all other :mod:`configparser` exceptions." msgstr "" -#: ../Doc/library/configparser.rst:1236 +#: ../Doc/library/configparser.rst:1242 msgid "Exception raised when a specified section is not found." msgstr "" -#: ../Doc/library/configparser.rst:1241 +#: ../Doc/library/configparser.rst:1247 msgid "" "Exception raised if :meth:`add_section` is called with the name of a section " "that is already present or in strict parsers when a section if found more " "than once in a single input file, string or dictionary." msgstr "" -#: ../Doc/library/configparser.rst:1245 +#: ../Doc/library/configparser.rst:1251 msgid "" "Optional ``source`` and ``lineno`` attributes and arguments to :meth:" "`__init__` were added." msgstr "" -#: ../Doc/library/configparser.rst:1252 +#: ../Doc/library/configparser.rst:1258 msgid "" "Exception raised by strict parsers if a single option appears twice during " "reading from a single file, string or dictionary. This catches misspellings " @@ -1075,58 +1082,58 @@ msgid "" "representing the same case-insensitive configuration key." msgstr "" -#: ../Doc/library/configparser.rst:1260 +#: ../Doc/library/configparser.rst:1266 msgid "" "Exception raised when a specified option is not found in the specified " "section." msgstr "" -#: ../Doc/library/configparser.rst:1266 +#: ../Doc/library/configparser.rst:1272 msgid "" "Base class for exceptions raised when problems occur performing string " "interpolation." msgstr "" -#: ../Doc/library/configparser.rst:1272 +#: ../Doc/library/configparser.rst:1278 msgid "" "Exception raised when string interpolation cannot be completed because the " "number of iterations exceeds :const:`MAX_INTERPOLATION_DEPTH`. Subclass of :" "exc:`InterpolationError`." msgstr "" -#: ../Doc/library/configparser.rst:1279 +#: ../Doc/library/configparser.rst:1285 msgid "" "Exception raised when an option referenced from a value does not exist. " "Subclass of :exc:`InterpolationError`." msgstr "" -#: ../Doc/library/configparser.rst:1285 +#: ../Doc/library/configparser.rst:1291 msgid "" "Exception raised when the source text into which substitutions are made does " "not conform to the required syntax. Subclass of :exc:`InterpolationError`." msgstr "" -#: ../Doc/library/configparser.rst:1291 +#: ../Doc/library/configparser.rst:1297 msgid "" "Exception raised when attempting to parse a file which has no section " "headers." msgstr "" -#: ../Doc/library/configparser.rst:1297 +#: ../Doc/library/configparser.rst:1303 msgid "Exception raised when errors occur attempting to parse a file." msgstr "" -#: ../Doc/library/configparser.rst:1299 +#: ../Doc/library/configparser.rst:1305 msgid "" "The ``filename`` attribute and :meth:`__init__` argument were renamed to " "``source`` for consistency." msgstr "" -#: ../Doc/library/configparser.rst:1305 +#: ../Doc/library/configparser.rst:1311 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/configparser.rst:1306 +#: ../Doc/library/configparser.rst:1312 msgid "" "Config parsers allow for heavy customization. If you are interested in " "changing the behaviour outlined by the footnote reference, consult the " diff --git a/library/datetime.po b/library/datetime.po index 1a389ee5f..aa2305d3d 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-27 15:18+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -485,6 +485,7 @@ msgid "``f = t2 / t3``" msgstr "``f = t2 / t3``" #: ../Doc/library/datetime.rst:257 +#, fuzzy msgid "" "Division (3) of overall duration *t2* by interval unit *t3*. Returns a :" "class:`float` object." @@ -694,6 +695,7 @@ msgid "Instance methods:" msgstr "Méthodes de l'instance :" #: ../Doc/library/datetime.rst:354 +#, fuzzy msgid "" "Return the total number of seconds contained in the duration. Equivalent to " "``td / timedelta(seconds=1)``. For interval units other than seconds, use " diff --git a/library/exceptions.po b/library/exceptions.po index c37ed91aa..a400040b3 100644 --- a/library/exceptions.po +++ b/library/exceptions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-17 21:38+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-12-17 21:45+0100\n" "Last-Translator: \n" "Language-Team: FRENCH \n" @@ -1131,17 +1131,26 @@ msgstr "" "Classe de base pour les avertissements sur les fonctionnalités qui seront " "obsolètes dans le futur." -#: ../Doc/library/exceptions.rst:700 +#: ../Doc/library/exceptions.rst:698 +msgid "" +"PendingDeprecationWarning was introduced as an \"ignored by default\" " +"version of DeprecationWarning. But :exc:`DeprecationWarning` is also " +"ignored by default since Python 2.7 and 3.2. There is not much difference " +"between PendingDeprecationWarning and DeprecationWarning nowadays. " +"DeprecationWarning is recommended in general." +msgstr "" + +#: ../Doc/library/exceptions.rst:708 msgid "Base class for warnings about dubious syntax." msgstr "Classe de base pour les avertissements sur de la syntaxe douteuse." -#: ../Doc/library/exceptions.rst:705 +#: ../Doc/library/exceptions.rst:713 msgid "Base class for warnings about dubious runtime behavior." msgstr "" "Classe de base pour les avertissements sur les comportements d'exécution " "douteux." -#: ../Doc/library/exceptions.rst:710 +#: ../Doc/library/exceptions.rst:718 msgid "" "Base class for warnings about deprecated features when those warnings are " "intended for end users of applications that are written in Python." @@ -1150,24 +1159,24 @@ msgstr "" "seront obsolètes dans le futur quand ces avertissements destinés aux " "utilisateurs finaux des applications écrites en Python." -#: ../Doc/library/exceptions.rst:716 +#: ../Doc/library/exceptions.rst:724 msgid "Base class for warnings about probable mistakes in module imports." msgstr "" "Classe de base pour les avertissements sur des erreurs probables dans les " "imports de modules." -#: ../Doc/library/exceptions.rst:721 +#: ../Doc/library/exceptions.rst:729 msgid "Base class for warnings related to Unicode." msgstr "Classe de base pour les avertissements liés à l'Unicode." -#: ../Doc/library/exceptions.rst:726 +#: ../Doc/library/exceptions.rst:734 msgid "" "Base class for warnings related to :class:`bytes` and :class:`bytearray`." msgstr "" "Classe de base pour les avertissements liés à :class:`bytes` et :class:" "`bytearray`." -#: ../Doc/library/exceptions.rst:731 +#: ../Doc/library/exceptions.rst:739 msgid "" "Base class for warnings related to resource usage. Ignored by the default " "warning filters." @@ -1175,11 +1184,11 @@ msgstr "" "Classe de base pour les avertissements liés à l'utilisation de ressources. " "Ignorée par les filtres d’avertissements par défaut." -#: ../Doc/library/exceptions.rst:739 +#: ../Doc/library/exceptions.rst:747 msgid "Exception hierarchy" msgstr "Hiérarchie des exceptions" -#: ../Doc/library/exceptions.rst:741 +#: ../Doc/library/exceptions.rst:749 msgid "The class hierarchy for built-in exceptions is:" msgstr "La hiérarchie de classes pour les exceptions natives est la suivante :" diff --git a/library/functions.po b/library/functions.po index 66447c440..be08d9372 100644 --- a/library/functions.po +++ b/library/functions.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-27 17:52+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -363,7 +363,7 @@ msgstr "" "suivants." #: ../Doc/library/functions.rst:101 ../Doc/library/functions.rst:703 -#: ../Doc/library/functions.rst:962 +#: ../Doc/library/functions.rst:963 msgid "See also :func:`format` for more information." msgstr "Voir aussi :func:`format` pour plus d'information." @@ -1582,16 +1582,18 @@ msgstr "" "variable, tel que documenté dans :ref:`typesseq-list` et :ref:`typesseq`." #: ../Doc/library/functions.rst:843 +#, fuzzy msgid "" "Update and return a dictionary representing the current local symbol table. " "Free variables are returned by :func:`locals` when it is called in function " -"blocks, but not in class blocks." +"blocks, but not in class blocks. Note that at the module level, :func:" +"`locals` and :func:`globals` are the same dictionary." msgstr "" "Met à jour et donne un dictionnaire représentant la table des symboles " "locaux. Les variables libres sont données par :func:`locals` lorsqu'elle est " "appelée dans le corps d'une fonction, mais pas dans le corps d'une classe." -#: ../Doc/library/functions.rst:848 +#: ../Doc/library/functions.rst:849 msgid "" "The contents of this dictionary should not be modified; changes may not " "affect the values of local and free variables used by the interpreter." @@ -1600,7 +1602,7 @@ msgstr "" "peuvent ne pas affecter les valeurs des variables locales ou libres " "utilisées par l'interpréteur." -#: ../Doc/library/functions.rst:853 +#: ../Doc/library/functions.rst:854 msgid "" "Return an iterator that applies *function* to every item of *iterable*, " "yielding the results. If additional *iterable* arguments are passed, " @@ -1617,7 +1619,7 @@ msgstr "" "où les arguments seraient déjà rangés sous forme de tuples, voir :func:" "`itertools.starmap`." -#: ../Doc/library/functions.rst:864 +#: ../Doc/library/functions.rst:865 msgid "" "Return the largest item in an iterable or the largest of two or more " "arguments." @@ -1625,7 +1627,7 @@ msgstr "" "Donne l'élément le plus grand dans un itérable, ou l'argument le plus grand " "parmi au moins deux arguments." -#: ../Doc/library/functions.rst:867 +#: ../Doc/library/functions.rst:868 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The largest item in the iterable is returned. If two or more positional " @@ -1635,7 +1637,7 @@ msgstr "" "Le plus grand élément de l'itérable est donné. Si au moins deux arguments " "positionnels sont fournis, l'argument le plus grand sera donné." -#: ../Doc/library/functions.rst:872 ../Doc/library/functions.rst:906 +#: ../Doc/library/functions.rst:873 ../Doc/library/functions.rst:907 msgid "" "There are two optional keyword-only arguments. The *key* argument specifies " "a one-argument ordering function like that used for :meth:`list.sort`. The " @@ -1649,7 +1651,7 @@ msgstr "" "l'itérable fourni est vide. Si l'itérable est vide et que *default* n'est " "pas fourni, :exc:`ValueError` est levée." -#: ../Doc/library/functions.rst:878 +#: ../Doc/library/functions.rst:879 msgid "" "If multiple items are maximal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -1661,11 +1663,11 @@ msgstr "" "stabilité lors du tri, tel que ``sorted(iterable, key=keyfunc, reverse=True)" "[0]`` et ``heapq.nlargest(1, iterable, key=keyfunc)``." -#: ../Doc/library/functions.rst:883 ../Doc/library/functions.rst:917 +#: ../Doc/library/functions.rst:884 ../Doc/library/functions.rst:918 msgid "The *default* keyword-only argument." msgstr "L'argument exclusivement par mot clef *default*." -#: ../Doc/library/functions.rst:891 +#: ../Doc/library/functions.rst:892 msgid "" "Return a \"memory view\" object created from the given argument. See :ref:" "`typememoryview` for more information." @@ -1673,7 +1675,7 @@ msgstr "" "Donne une \"vue mémoire\" (*memory view*) créée depuis l'argument. Voir :ref:" "`typememoryview` pour plus d'informations." -#: ../Doc/library/functions.rst:898 +#: ../Doc/library/functions.rst:899 msgid "" "Return the smallest item in an iterable or the smallest of two or more " "arguments." @@ -1681,7 +1683,7 @@ msgstr "" "Donne le plus petit élément d'un itérable ou le plus petit d'au moins deux " "arguments." -#: ../Doc/library/functions.rst:901 +#: ../Doc/library/functions.rst:902 msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The smallest item in the iterable is returned. If two or more positional " @@ -1691,7 +1693,7 @@ msgstr "" "élément de l'itérable est donné. Si au moins deux arguments positionnels " "sont fournis le plus petit argument positionnel est donné." -#: ../Doc/library/functions.rst:912 +#: ../Doc/library/functions.rst:913 msgid "" "If multiple items are minimal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " @@ -1703,7 +1705,7 @@ msgstr "" "``sorted(iterable, key=keyfunc)[0]`` et ``heapq.nsmallest(1, iterable, " "key=keyfunc)``." -#: ../Doc/library/functions.rst:923 +#: ../Doc/library/functions.rst:924 msgid "" "Retrieve the next item from the *iterator* by calling its :meth:`~iterator." "__next__` method. If *default* is given, it is returned if the iterator is " @@ -1713,7 +1715,7 @@ msgstr "" "__next__`. Si *default* est fourni, il sera donné si l'itérateur est épousé, " "sinon :exc:`StopIteration` est levée." -#: ../Doc/library/functions.rst:930 +#: ../Doc/library/functions.rst:931 msgid "" "Return a new featureless object. :class:`object` is a base for all classes. " "It has the methods that are common to all instances of Python classes. This " @@ -1723,7 +1725,7 @@ msgstr "" "classes. C'est elle qui porte les méthodes communes à toutes les instances " "de classes en Python. Cette fonction n'accepte aucun argument." -#: ../Doc/library/functions.rst:936 +#: ../Doc/library/functions.rst:937 msgid "" ":class:`object` does *not* have a :attr:`~object.__dict__`, so you can't " "assign arbitrary attributes to an instance of the :class:`object` class." @@ -1732,7 +1734,7 @@ msgstr "" "pouvez donc pas assigner d'attributs arbitraire à une instance d':class:" "`object`." -#: ../Doc/library/functions.rst:942 +#: ../Doc/library/functions.rst:943 msgid "" "Convert an integer number to an octal string prefixed with \"0o\". The " "result is a valid Python expression. If *x* is not a Python :class:`int` " @@ -1744,7 +1746,7 @@ msgstr "" "objet :class:`int`, il doit définir une méthode :meth:`__index__` qui donne " "un entier, par exemple :" -#: ../Doc/library/functions.rst:952 +#: ../Doc/library/functions.rst:953 msgid "" "If you want to convert an integer number to octal string either with prefix " "\"0o\" or not, you can use either of the following ways." @@ -1752,7 +1754,7 @@ msgstr "" "Si vous voulez convertir un nombre entier en chaîne octale, avec ou sans le " "préfixe ``0o``, vous pouvez utiliser les moyens suivants." -#: ../Doc/library/functions.rst:969 +#: ../Doc/library/functions.rst:970 msgid "" "Open *file* and return a corresponding :term:`file object`. If the file " "cannot be opened, an :exc:`OSError` is raised." @@ -1760,7 +1762,7 @@ msgstr "" "Ouvre *file* et donne un :term:`file object` correspondant. Si le fichier ne " "peut pas être ouvert, une :exc:`OSError` est levée." -#: ../Doc/library/functions.rst:972 +#: ../Doc/library/functions.rst:973 msgid "" "*file* is a :term:`path-like object` giving the pathname (absolute or " "relative to the current working directory) of the file to be opened or an " @@ -1774,7 +1776,7 @@ msgstr "" "donné, il sera fermé en même temps que l'objet *I/O* renvoyé, sauf si " "*closefd* est mis à ``False``.)" -#: ../Doc/library/functions.rst:978 +#: ../Doc/library/functions.rst:979 msgid "" "*mode* is an optional string that specifies the mode in which the file is " "opened. It defaults to ``'r'`` which means open for reading in text mode. " @@ -1800,71 +1802,71 @@ msgstr "" "utilisez le mode binaire en laissant *encoding* non spécifié.) Les modes " "disponibles sont :" -#: ../Doc/library/functions.rst:995 +#: ../Doc/library/functions.rst:996 msgid "Character" msgstr "Caractère" -#: ../Doc/library/functions.rst:995 +#: ../Doc/library/functions.rst:996 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/functions.rst:997 +#: ../Doc/library/functions.rst:998 msgid "``'r'``" msgstr "``'r'``" -#: ../Doc/library/functions.rst:997 +#: ../Doc/library/functions.rst:998 msgid "open for reading (default)" msgstr "ouvre en lecture (par défaut)" -#: ../Doc/library/functions.rst:998 +#: ../Doc/library/functions.rst:999 msgid "``'w'``" msgstr "``'w'``" -#: ../Doc/library/functions.rst:998 +#: ../Doc/library/functions.rst:999 msgid "open for writing, truncating the file first" msgstr "ouvre en écriture, tronquant le fichier" -#: ../Doc/library/functions.rst:999 +#: ../Doc/library/functions.rst:1000 msgid "``'x'``" msgstr "``'x'``" -#: ../Doc/library/functions.rst:999 +#: ../Doc/library/functions.rst:1000 msgid "open for exclusive creation, failing if the file already exists" msgstr "ouvre pour une création exclusive, échouant si le fichier existe déjà" -#: ../Doc/library/functions.rst:1000 +#: ../Doc/library/functions.rst:1001 msgid "``'a'``" msgstr "``'a'``" -#: ../Doc/library/functions.rst:1000 +#: ../Doc/library/functions.rst:1001 msgid "open for writing, appending to the end of the file if it exists" msgstr "ouvre en écriture, ajoutant à la fin du fichier s'il existe" -#: ../Doc/library/functions.rst:1001 +#: ../Doc/library/functions.rst:1002 msgid "``'b'``" msgstr "``'b'``" -#: ../Doc/library/functions.rst:1001 +#: ../Doc/library/functions.rst:1002 msgid "binary mode" msgstr "mode binaire" -#: ../Doc/library/functions.rst:1002 +#: ../Doc/library/functions.rst:1003 msgid "``'t'``" msgstr "``'t'``" -#: ../Doc/library/functions.rst:1002 +#: ../Doc/library/functions.rst:1003 msgid "text mode (default)" msgstr "mode texte (par défaut)" -#: ../Doc/library/functions.rst:1003 +#: ../Doc/library/functions.rst:1004 msgid "``'+'``" msgstr "``'+'``" -#: ../Doc/library/functions.rst:1003 +#: ../Doc/library/functions.rst:1004 msgid "open a disk file for updating (reading and writing)" msgstr "ouvre un fichier pour le modifier (lire et écrire)" -#: ../Doc/library/functions.rst:1006 +#: ../Doc/library/functions.rst:1007 msgid "" "The default mode is ``'r'`` (open for reading text, synonym of ``'rt'``). " "For binary read-write access, the mode ``'w+b'`` opens and truncates the " @@ -1874,7 +1876,7 @@ msgstr "" "``'rt'``). Pour un accès en lecture écriture binaire, le mode ``'w+b'`` " "ouvre et vide le fichier. ``'r+b'`` ouvre le fichier sans le vider." -#: ../Doc/library/functions.rst:1010 +#: ../Doc/library/functions.rst:1011 msgid "" "As mentioned in the :ref:`io-overview`, Python distinguishes between binary " "and text I/O. Files opened in binary mode (including ``'b'`` in the *mode* " @@ -1892,7 +1894,7 @@ msgstr "" "été décodés au préalable en utilisant un encodage déduit de l'environnement " "ou *encoding* s'il est donné." -#: ../Doc/library/functions.rst:1018 +#: ../Doc/library/functions.rst:1019 msgid "" "There is an additional mode character permitted, ``'U'``, which no longer " "has any effect, and is considered deprecated. It previously enabled :term:" @@ -1906,7 +1908,7 @@ msgstr "" "défaut dans Python 3.0. Référez-vous à la documentation du paramètre :ref:" "`newline ` pour plus de détails." -#: ../Doc/library/functions.rst:1026 +#: ../Doc/library/functions.rst:1027 msgid "" "Python doesn't depend on the underlying operating system's notion of text " "files; all the processing is done by Python itself, and is therefore " @@ -1916,7 +1918,7 @@ msgstr "" "jacent, tout est effectué par Python lui même, et ainsi indépendant de la " "plateforme." -#: ../Doc/library/functions.rst:1030 +#: ../Doc/library/functions.rst:1031 msgid "" "*buffering* is an optional integer used to set the buffering policy. Pass 0 " "to switch buffering off (only allowed in binary mode), 1 to select line " @@ -1931,7 +1933,7 @@ msgstr "" "en octets d'un tampon de taille fixe. Sans l'argument *buffering*, les " "comportements par défaut sont les suivants :" -#: ../Doc/library/functions.rst:1036 +#: ../Doc/library/functions.rst:1037 msgid "" "Binary files are buffered in fixed-size chunks; the size of the buffer is " "chosen using a heuristic trying to determine the underlying device's \"block " @@ -1944,7 +1946,7 @@ msgstr "" "DEFAULT_BUFFER_SIZE`. Sur de nombreux systèmes, le tampon sera de 4096 ou " "8192 octets." -#: ../Doc/library/functions.rst:1041 +#: ../Doc/library/functions.rst:1042 msgid "" "\"Interactive\" text files (files for which :meth:`~io.IOBase.isatty` " "returns ``True``) use line buffering. Other text files use the policy " @@ -1954,7 +1956,7 @@ msgstr "" "isatty` donne ``True``) utilisent un tampon par lignes. Les autres fichiers " "texte sont traités comme les fichiers binaires." -#: ../Doc/library/functions.rst:1045 +#: ../Doc/library/functions.rst:1046 msgid "" "*encoding* is the name of the encoding used to decode or encode the file. " "This should only be used in text mode. The default encoding is platform " @@ -1968,7 +1970,7 @@ msgstr "" "mais n'importe quel :term:`text encoding` supporté par Python peut être " "utilisé. Voir :mod:`codecs` pour une liste des encodages supportés." -#: ../Doc/library/functions.rst:1052 +#: ../Doc/library/functions.rst:1053 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled—this cannot be used in binary mode. A variety of " @@ -1983,7 +1985,7 @@ msgstr "" "enregistré avec :func:`codecs.register_error` est aussi un argument valide. " "Les noms standards sont :" -#: ../Doc/library/functions.rst:1060 +#: ../Doc/library/functions.rst:1061 msgid "" "``'strict'`` to raise a :exc:`ValueError` exception if there is an encoding " "error. The default value of ``None`` has the same effect." @@ -1991,7 +1993,7 @@ msgstr "" "``'strict'`` pour lever une :exc:`ValueError` si une erreur d'encodage est " "rencontrée. La valeur par défaut, ``None``, a le même effet." -#: ../Doc/library/functions.rst:1064 +#: ../Doc/library/functions.rst:1065 msgid "" "``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to " "data loss." @@ -1999,7 +2001,7 @@ msgstr "" "``'ignore'`` ignore les erreurs. Notez qu'ignorer les erreurs d'encodage " "peut mener à des pertes de données." -#: ../Doc/library/functions.rst:1067 +#: ../Doc/library/functions.rst:1068 msgid "" "``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted " "where there is malformed data." @@ -2007,7 +2009,7 @@ msgstr "" "``'replace'`` insère un marqueur de substitution (tel que ``'?'``) en place " "des données mal formées." -#: ../Doc/library/functions.rst:1070 +#: ../Doc/library/functions.rst:1071 msgid "" "``'surrogateescape'`` will represent any incorrect bytes as code points in " "the Unicode Private Use Area ranging from U+DC80 to U+DCFF. These private " @@ -2022,7 +2024,7 @@ msgstr "" "l'écriture de la donnée. C'est utile pour traiter des fichiers d'un encodage " "inconnu." -#: ../Doc/library/functions.rst:1077 +#: ../Doc/library/functions.rst:1078 msgid "" "``'xmlcharrefreplace'`` is only supported when writing to a file. Characters " "not supported by the encoding are replaced with the appropriate XML " @@ -2032,7 +2034,7 @@ msgstr "" "Les caractères non gérés par l'encodage sont remplacés par une référence de " "caractère XML ``&#nnn;``." -#: ../Doc/library/functions.rst:1081 +#: ../Doc/library/functions.rst:1082 msgid "" "``'backslashreplace'`` replaces malformed data by Python's backslashed " "escape sequences." @@ -2040,7 +2042,7 @@ msgstr "" "``'backslashreplace'`` remplace les données mal formées par des séquences " "d'échappement Python (utilisant des *backslash*)." -#: ../Doc/library/functions.rst:1084 +#: ../Doc/library/functions.rst:1085 msgid "" "``'namereplace'`` (also only supported when writing) replaces unsupported " "characters with ``\\N{...}`` escape sequences." @@ -2048,7 +2050,7 @@ msgstr "" "``'namereplace'`` (aussi supporté lors de l'écriture) remplace les " "caractères non supportés par des séquences d'échappement ``\\N{...}``." -#: ../Doc/library/functions.rst:1092 +#: ../Doc/library/functions.rst:1093 msgid "" "*newline* controls how :term:`universal newlines` mode works (it only " "applies to text mode). It can be ``None``, ``''``, ``'\\n'``, ``'\\r'``, " @@ -2058,7 +2060,7 @@ msgstr "" "(seulement en mode texte). Il eut être ``None``, ``''``, ``'\\n'``, " "``'\\r'``, et ``'\\r\\n'``. Il fonctionne comme suit :" -#: ../Doc/library/functions.rst:1096 +#: ../Doc/library/functions.rst:1097 msgid "" "When reading input from the stream, if *newline* is ``None``, universal " "newlines mode is enabled. Lines in the input can end in ``'\\n'``, " @@ -2076,7 +2078,7 @@ msgstr "" "autorisée, les lignes sont seulement terminées par la chaîne donnée, qui est " "rendue tel qu'elle." -#: ../Doc/library/functions.rst:1104 +#: ../Doc/library/functions.rst:1105 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -2090,7 +2092,7 @@ msgstr "" "*newline* est un autre caractère valide, chaque ``'\\n'`` sera remplacé par " "la chaîne donnée." -#: ../Doc/library/functions.rst:1110 +#: ../Doc/library/functions.rst:1111 msgid "" "If *closefd* is ``False`` and a file descriptor rather than a filename was " "given, the underlying file descriptor will be kept open when the file is " @@ -2102,7 +2104,7 @@ msgstr "" "le fichier sera fermé. Si un nom de fichier est donné, *closefd* doit rester " "``True`` (la valeur par défaut) sans quoi une erreur est levée." -#: ../Doc/library/functions.rst:1115 +#: ../Doc/library/functions.rst:1116 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 " @@ -2116,13 +2118,13 @@ msgstr "" "descripteur de fichier ouvert (fournir :mod:`os.open` en temps qu'*opener* " "aura le même effet que donner ``None``)." -#: ../Doc/library/functions.rst:1121 +#: ../Doc/library/functions.rst:1122 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/functions.rst:1123 +#: ../Doc/library/functions.rst:1124 msgid "" "The following example uses the :ref:`dir_fd ` parameter of the :func:" "`os.open` function to open a file relative to a given directory::" @@ -2130,7 +2132,7 @@ msgstr "" "L'exemple suivant utilise le paramètre :ref:`dir_fd ` de la " "fonction :func:`os.open` pour ouvrir un fichier relatif au dossier courant ::" -#: ../Doc/library/functions.rst:1136 +#: ../Doc/library/functions.rst:1137 msgid "" "The type of :term:`file object` returned by the :func:`open` function " "depends on the mode. When :func:`open` is used to open a file in a text " @@ -2156,7 +2158,7 @@ msgstr "" "désactivé, le flux brut, une classe fille de :class:`io.RawIOBase`, :class:" "`io.FileIO` est donnée." -#: ../Doc/library/functions.rst:1157 +#: ../Doc/library/functions.rst:1158 msgid "" "See also the file handling modules, such as, :mod:`fileinput`, :mod:`io` " "(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:" @@ -2166,21 +2168,21 @@ msgstr "" "`fileinput`, :mod:`io` (où :func:`open` est déclarée), :mod:`os`, :mod:`os." "path`, :mod:`tmpfile`, et :mod:`shutil`." -#: ../Doc/library/functions.rst:1164 +#: ../Doc/library/functions.rst:1165 msgid "The *opener* parameter was added." msgstr "Le paramètre *opener* a été ajouté." -#: ../Doc/library/functions.rst:1165 +#: ../Doc/library/functions.rst:1166 msgid "The ``'x'`` mode was added." msgstr "Le mode ``'x'`` a été ajouté." -#: ../Doc/library/functions.rst:1166 +#: ../Doc/library/functions.rst:1167 msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." msgstr "" ":exc:`IOError` était normalement levée, elle est maintenant un alias de :exc:" "`OSError`." -#: ../Doc/library/functions.rst:1167 +#: ../Doc/library/functions.rst:1168 msgid "" ":exc:`FileExistsError` is now raised if the file opened in exclusive " "creation mode (``'x'``) already exists." @@ -2188,15 +2190,15 @@ msgstr "" ":exc:`FileExistsError` est maintenant levée si le fichier ouvert en mode " "création exclusive (``'x'``) existe déjà." -#: ../Doc/library/functions.rst:1173 +#: ../Doc/library/functions.rst:1174 msgid "The file is now non-inheritable." msgstr "Il n'est plus possible d'hériter de *file*." -#: ../Doc/library/functions.rst:1177 +#: ../Doc/library/functions.rst:1178 msgid "The ``'U'`` mode." msgstr "Le mode ``'U'``." -#: ../Doc/library/functions.rst:1182 +#: ../Doc/library/functions.rst:1183 msgid "" "If the system call is interrupted and the signal handler does not raise an " "exception, the function now retries the system call instead of raising an :" @@ -2206,15 +2208,15 @@ msgstr "" "aucune exception, la fonction réessaye l'appel système au lieu de lever une :" "exc:`InterruptedError` (voir la :pep:`475` à propos du raisonnement)." -#: ../Doc/library/functions.rst:1185 +#: ../Doc/library/functions.rst:1186 msgid "The ``'namereplace'`` error handler was added." msgstr "Le gestionnaire d'erreurs ``'namereplace'`` a été ajouté." -#: ../Doc/library/functions.rst:1190 +#: ../Doc/library/functions.rst:1191 msgid "Support added to accept objects implementing :class:`os.PathLike`." msgstr "Ajout du support des objets implémentant :class:`os.PathLike`." -#: ../Doc/library/functions.rst:1191 +#: ../Doc/library/functions.rst:1192 msgid "" "On Windows, opening a console buffer may return a subclass of :class:`io." "RawIOBase` other than :class:`io.FileIO`." @@ -2222,7 +2224,7 @@ msgstr "" "Sous Windows, ouvrir un *buffer* du terminal peut renvoyer une sous-classe " "de :class:`io.RawIOBase` autre que :class:`io.FileIO`." -#: ../Doc/library/functions.rst:1196 +#: ../Doc/library/functions.rst:1197 msgid "" "Given a string representing one Unicode character, return an integer " "representing the Unicode code point of that character. For example, " @@ -2234,7 +2236,7 @@ msgstr "" "nombre entier ``97`` et ``ord('€')`` (symbole Euro) renvoie ``8364``. Il " "s'agit de l'inverse de :func:`chr`." -#: ../Doc/library/functions.rst:1204 +#: ../Doc/library/functions.rst:1205 msgid "" "Return *x* to the power *y*; if *z* is present, return *x* to the power *y*, " "modulo *z* (computed more efficiently than ``pow(x, y) % z``). The two-" @@ -2245,7 +2247,7 @@ msgstr "" "modulo *z* (calculé de manière plus efficiente que ``pow(x, y) % z``). La " "forme à deux arguments est équivalent à ``x**y``." -#: ../Doc/library/functions.rst:1208 +#: ../Doc/library/functions.rst:1209 msgid "" "The arguments must have numeric types. With mixed operand types, the " "coercion rules for binary arithmetic operators apply. For :class:`int` " @@ -2266,7 +2268,7 @@ msgstr "" "argument est négatif, le troisième doit être omis. Si *z* est fourni, *x* et " "*y* doivent être des entiers et *y* positif." -#: ../Doc/library/functions.rst:1220 +#: ../Doc/library/functions.rst:1221 msgid "" "Print *objects* to the text stream *file*, separated by *sep* and followed " "by *end*. *sep*, *end*, *file* and *flush*, if present, must be given as " @@ -2276,7 +2278,7 @@ msgstr "" "*end*. *sep*, *end*, *file*, et *flush*, s'ils sont présents, doivent être " "données par mot clef." -#: ../Doc/library/functions.rst:1224 +#: ../Doc/library/functions.rst:1225 msgid "" "All non-keyword arguments are converted to strings like :func:`str` does and " "written to the stream, separated by *sep* and followed by *end*. Both *sep* " @@ -2290,7 +2292,7 @@ msgstr "" "les valeurs par défaut. Si aucun *objects* n'est donné :func:`print` écris " "seulement *end*." -#: ../Doc/library/functions.rst:1230 +#: ../Doc/library/functions.rst:1231 msgid "" "The *file* argument must be an object with a ``write(string)`` method; if it " "is not present or ``None``, :data:`sys.stdout` will be used. Since printed " @@ -2303,7 +2305,7 @@ msgstr "" "peut pas être utilisé avec des fichiers ouverts en mode binaire. Pour ceux " "ci utilisez plutôt ``file.write(...)``." -#: ../Doc/library/functions.rst:1235 +#: ../Doc/library/functions.rst:1236 msgid "" "Whether output is buffered is usually determined by *file*, but if the " "*flush* keyword argument is true, the stream is forcibly flushed." @@ -2311,15 +2313,15 @@ msgstr "" "Que la sortie utilise un *buffer* ou non est souvent décidé par *file*, mais " "si l'argument *flush* est vrai, le tampon du flux est vidé explicitement." -#: ../Doc/library/functions.rst:1238 +#: ../Doc/library/functions.rst:1239 msgid "Added the *flush* keyword argument." msgstr "Ajout de l'argument par mot clef *flush*." -#: ../Doc/library/functions.rst:1244 +#: ../Doc/library/functions.rst:1245 msgid "Return a property attribute." msgstr "Donne un attribut propriété." -#: ../Doc/library/functions.rst:1246 +#: ../Doc/library/functions.rst:1247 msgid "" "*fget* is a function for getting an attribute value. *fset* is a function " "for setting an attribute value. *fdel* is a function for deleting an " @@ -2330,11 +2332,11 @@ msgstr "" "supprimer la valeur d'un attribut, et *doc* créé une *docstring* pour " "l'attribut." -#: ../Doc/library/functions.rst:1250 +#: ../Doc/library/functions.rst:1251 msgid "A typical use is to define a managed attribute ``x``::" msgstr "Une utilisation typique : définir un attribut managé ``x`` : ::" -#: ../Doc/library/functions.rst:1267 +#: ../Doc/library/functions.rst:1268 msgid "" "If *c* is an instance of *C*, ``c.x`` will invoke the getter, ``c.x = " "value`` will invoke the setter and ``del c.x`` the deleter." @@ -2342,7 +2344,7 @@ msgstr "" "Si *c* est une instance de *C*, ``c.x`` appellera le *getter*, ``c.x = " "value`` invoquera le *setter*, et ``del x`` le *deleter*." -#: ../Doc/library/functions.rst:1270 +#: ../Doc/library/functions.rst:1271 msgid "" "If given, *doc* will be the docstring of the property attribute. Otherwise, " "the property will copy *fget*'s docstring (if it exists). This makes it " @@ -2354,7 +2356,7 @@ msgstr "" "création de propriétés en lecture seule en utilisant simplement :func:" "`property` comme un :term:`decorator` : ::" -#: ../Doc/library/functions.rst:1283 +#: ../Doc/library/functions.rst:1284 msgid "" "The ``@property`` decorator turns the :meth:`voltage` method into a \"getter" "\" for a read-only attribute with the same name, and it sets the docstring " @@ -2364,7 +2366,7 @@ msgstr "" "*getter* d'un attribut du même nom, et donne *\"Get the current voltage\"* " "comme *docstring* de *voltage*." -#: ../Doc/library/functions.rst:1287 +#: ../Doc/library/functions.rst:1288 msgid "" "A property object has :attr:`~property.getter`, :attr:`~property.setter`, " "and :attr:`~property.deleter` methods usable as decorators that create a " @@ -2376,7 +2378,7 @@ msgstr "" "une copie de la propriété avec les accesseurs correspondants définis par la " "fonction de décoration. C'est plus clair avec un exemple : ::" -#: ../Doc/library/functions.rst:1309 +#: ../Doc/library/functions.rst:1310 msgid "" "This code is exactly equivalent to the first example. Be sure to give the " "additional functions the same name as the original property (``x`` in this " @@ -2386,7 +2388,7 @@ msgstr "" "donner aux fonctions additionnelles le même nom que la propriété (``x`` dans " "ce cas.)" -#: ../Doc/library/functions.rst:1313 +#: ../Doc/library/functions.rst:1314 msgid "" "The returned property object also has the attributes ``fget``, ``fset``, and " "``fdel`` corresponding to the constructor arguments." @@ -2394,11 +2396,11 @@ msgstr "" "L'objet propriété donné à aussi les attributs ``fget``, ``fset`` et ``fdel`` " "correspondant correspondants aux arguments du constructeur." -#: ../Doc/library/functions.rst:1316 +#: ../Doc/library/functions.rst:1317 msgid "The docstrings of property objects are now writeable." msgstr "Les *docstrings* des objets propriété peuvent maintenant être écrits." -#: ../Doc/library/functions.rst:1325 +#: ../Doc/library/functions.rst:1326 msgid "" "Rather than being a function, :class:`range` is actually an immutable " "sequence type, as documented in :ref:`typesseq-range` and :ref:`typesseq`." @@ -2406,7 +2408,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`range` est en fait une séquence " "immuable, tel que documenté dans :ref:`typesseq-range` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1331 +#: ../Doc/library/functions.rst:1332 msgid "" "Return a string containing a printable representation of an object. For " "many types, this function makes an attempt to return a string that would " @@ -2424,7 +2426,7 @@ msgstr "" "l'objet. Une classe peut contrôler ce que cette fonction donne pour ses " "instances en définissant une méthode :meth:`__repr__`." -#: ../Doc/library/functions.rst:1342 +#: ../Doc/library/functions.rst:1343 msgid "" "Return a reverse :term:`iterator`. *seq* must be an object which has a :" "meth:`__reversed__` method or supports the sequence protocol (the :meth:" @@ -2436,7 +2438,7 @@ msgstr "" "meth:`__len__` et la méthode :meth:`__getitem__` avec des arguments entiers " "commençant à zéro)." -#: ../Doc/library/functions.rst:1350 +#: ../Doc/library/functions.rst:1351 msgid "" "Return *number* rounded to *ndigits* precision after the decimal point. If " "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " @@ -2446,7 +2448,7 @@ msgstr "" "virgule. Si *ndigits* est omis (ou est ``None``), l'entier le plus proche " "est renvoyé." -#: ../Doc/library/functions.rst:1354 +#: ../Doc/library/functions.rst:1355 msgid "" "For the built-in types supporting :func:`round`, values are rounded to the " "closest multiple of 10 to the power minus *ndigits*; if two multiples are " @@ -2464,7 +2466,7 @@ msgstr "" "zéro, ou négatif). La valeur renvoyée est un entier si *ndigits* n'est pas " "donné, (ou est ``None``). Sinon elle est du même type que *number*." -#: ../Doc/library/functions.rst:1363 +#: ../Doc/library/functions.rst:1364 msgid "" "For a general Python object ``number``, ``round`` delegates to ``number." "__round__``." @@ -2472,7 +2474,7 @@ msgstr "" "Pour tout autre objet Python ``number``, ``round`` délègue à ``number." "__round__``." -#: ../Doc/library/functions.rst:1368 +#: ../Doc/library/functions.rst:1369 msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " "``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is " @@ -2486,7 +2488,7 @@ msgstr "" "de décimaux ne peuvent pas être représentés exactement en nombre a virgule " "flottante. Voir :ref:`tut-fp-issues` pour plus d'information." -#: ../Doc/library/functions.rst:1379 +#: ../Doc/library/functions.rst:1380 msgid "" "Return a new :class:`set` object, optionally with elements taken from " "*iterable*. ``set`` is a built-in class. See :class:`set` and :ref:`types-" @@ -2496,7 +2498,7 @@ msgstr "" "d'*iterable*. ``set`` est une classe native. Voir :class:`set` et :ref:" "`types-set` pour la documentation de cette classe." -#: ../Doc/library/functions.rst:1383 +#: ../Doc/library/functions.rst:1384 msgid "" "For other containers see the built-in :class:`frozenset`, :class:`list`, :" "class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections` " @@ -2506,7 +2508,7 @@ msgstr "" "`list`, :class:`tuple`, et :class:`dict`, ainsi que le module :mod:" "`collections`." -#: ../Doc/library/functions.rst:1390 +#: ../Doc/library/functions.rst:1391 msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " "string and an arbitrary value. The string may name an existing attribute or " @@ -2520,7 +2522,7 @@ msgstr "" "si l'objet l'autorise. Par exemple, ``setattr(x, 'foobar', 123)`` équivaut à " "``x.foobar = 123``." -#: ../Doc/library/functions.rst:1402 +#: ../Doc/library/functions.rst:1403 msgid "" "Return a :term:`slice` object representing the set of indices specified by " "``range(start, stop, step)``. The *start* and *step* arguments default to " @@ -2544,16 +2546,16 @@ msgstr "" "étendue. Par exemple ``a[start:stop:step]`` ou ``a[start:stop, i]``. Voir :" "func:`itertools.islice` pour une version alternative donnant un itérateur." -#: ../Doc/library/functions.rst:1415 +#: ../Doc/library/functions.rst:1416 msgid "Return a new sorted list from the items in *iterable*." msgstr "Donne une nouvelle liste triée depuis les éléments d'*iterable*." -#: ../Doc/library/functions.rst:1417 +#: ../Doc/library/functions.rst:1418 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "A deux arguments optionnels qui doivent être fournis par mot clef." -#: ../Doc/library/functions.rst:1419 +#: ../Doc/library/functions.rst:1420 msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each element in *iterable* (for example, ``key=str." @@ -2564,7 +2566,7 @@ msgstr "" "lower``). La valeur par défaut est ``None`` (compare les éléments " "directement)." -#: ../Doc/library/functions.rst:1423 +#: ../Doc/library/functions.rst:1424 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -2572,7 +2574,7 @@ msgstr "" "*reverse*, une valeur booléenne. Si elle est ``True``, la liste d'éléments " "est triée comme si toutes les comparaisons étaient inversées." -#: ../Doc/library/functions.rst:1426 +#: ../Doc/library/functions.rst:1427 msgid "" "Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " "*key* function." @@ -2580,7 +2582,7 @@ msgstr "" "Utilisez :func:`functools.cmp_to_key` pour convertir l'ancienne notation " "*cmp* en une fonction *key*." -#: ../Doc/library/functions.rst:1429 +#: ../Doc/library/functions.rst:1430 msgid "" "The built-in :func:`sorted` function is guaranteed to be stable. A sort is " "stable if it guarantees not to change the relative order of elements that " @@ -2592,17 +2594,17 @@ msgstr "" "eux. C'est utile pour trier en plusieurs passes, par exemple par département " "puis par salaire)." -#: ../Doc/library/functions.rst:1434 +#: ../Doc/library/functions.rst:1435 msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" "Pour des exemples de tris et un bref tutoriel, consultez :ref:`sortinghowto`." -#: ../Doc/library/functions.rst:1438 +#: ../Doc/library/functions.rst:1439 msgid "Transform a method into a static method." msgstr "Transforme une méthode en méthode statique." -#: ../Doc/library/functions.rst:1440 +#: ../Doc/library/functions.rst:1441 msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" @@ -2610,7 +2612,7 @@ msgstr "" "Une méthode statique ne reçoit pas de premier argument implicitement. Voilà " "comment déclarer une méthode statique : ::" -#: ../Doc/library/functions.rst:1447 +#: ../Doc/library/functions.rst:1448 #, fuzzy msgid "" "The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:" @@ -2620,7 +2622,7 @@ msgstr "" "description des définitions de fonction dans :ref:`function` pour plus de " "détails." -#: ../Doc/library/functions.rst:1450 +#: ../Doc/library/functions.rst:1451 #, fuzzy msgid "" "A static method can be called either on the class (such as ``C.f()``) or on " @@ -2629,7 +2631,7 @@ msgstr "" "Elle peut être appelée soit sur une classe (tel que ``C.f()``) ou sur une " "instance (tel que ``C().f()``). L'instance est ignorée, sauf pour sa classe." -#: ../Doc/library/functions.rst:1453 +#: ../Doc/library/functions.rst:1454 msgid "" "Static methods in Python are similar to those found in Java or C++. Also " "see :func:`classmethod` for a variant that is useful for creating alternate " @@ -2639,7 +2641,7 @@ msgstr "" "ou en C++. Consultez :func:`classmethod` pour une variante utile pour créer " "des constructeurs alternatifs." -#: ../Doc/library/functions.rst:1457 +#: ../Doc/library/functions.rst:1458 msgid "" "Like all decorators, it is also possible to call ``staticmethod`` as a " "regular function and do something with its result. This is needed in some " @@ -2653,21 +2655,21 @@ msgstr "" "depuis le corps d'une classe, et souhaiteriez éviter sa transformation en " "méthode d'instance. Pour ces cas, faites comme suit ::" -#: ../Doc/library/functions.rst:1466 +#: ../Doc/library/functions.rst:1467 #, fuzzy msgid "For more information on static methods, see :ref:`types`." msgstr "" "Pour plus d'informations sur les méthodes statiques, consultez la " "documentation de la hiérarchie des types standards dans :ref:`types`." -#: ../Doc/library/functions.rst:1477 +#: ../Doc/library/functions.rst:1478 msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" "Donne une version sous forme de :class:`str` d'*object*. Voir :func:`str` " "pour plus de détails." -#: ../Doc/library/functions.rst:1479 +#: ../Doc/library/functions.rst:1480 msgid "" "``str`` is the built-in string :term:`class`. For general information about " "strings, see :ref:`textseq`." @@ -2675,7 +2677,7 @@ msgstr "" "``str`` est la :term:`class` native des chaînes de caractères. Pour des " "informations générales à propos des chaînes, consultez :ref:`textseq`." -#: ../Doc/library/functions.rst:1485 +#: ../Doc/library/functions.rst:1486 msgid "" "Sums *start* and the items of an *iterable* from left to right and returns " "the total. *start* defaults to ``0``. The *iterable*'s items are normally " @@ -2686,7 +2688,7 @@ msgstr "" "sont normalement des nombres, et la valeur de *start* ne peut pas être une " "chaîne." -#: ../Doc/library/functions.rst:1489 +#: ../Doc/library/functions.rst:1490 msgid "" "For some use cases, there are good alternatives to :func:`sum`. The " "preferred, fast way to concatenate a sequence of strings is by calling ``''." @@ -2700,7 +2702,7 @@ msgstr "" "meilleure précision, voir :func:`math.fsum`. Pour concaténer une série " "d'itérables, utilisez plutôt :func:`itertools.chain`." -#: ../Doc/library/functions.rst:1497 +#: ../Doc/library/functions.rst:1498 msgid "" "Return a proxy object that delegates method calls to a parent or sibling " "class of *type*. This is useful for accessing inherited methods that have " @@ -2713,7 +2715,7 @@ msgstr "" "recherche est le même que celui utilisé par :func:`getattr` sauf que *type* " "lui même est sauté." -#: ../Doc/library/functions.rst:1502 +#: ../Doc/library/functions.rst:1503 msgid "" "The :attr:`~class.__mro__` attribute of the *type* lists the method " "resolution search order used by both :func:`getattr` and :func:`super`. The " @@ -2725,7 +2727,7 @@ msgstr "" "L'attribut est dynamique et peut changer lorsque la hiérarchie d'héritage " "est modifiée." -#: ../Doc/library/functions.rst:1507 +#: ../Doc/library/functions.rst:1508 msgid "" "If the second argument is omitted, the super object returned is unbound. If " "the second argument is an object, ``isinstance(obj, type)`` must be true. " @@ -2737,7 +2739,7 @@ msgstr "" "le second argument est un type, ``issubclass(type2, type)`` doit être vrai " "(c'est utile pour les méthodes de classe)." -#: ../Doc/library/functions.rst:1512 +#: ../Doc/library/functions.rst:1513 msgid "" "There are two typical use cases for *super*. In a class hierarchy with " "single inheritance, *super* can be used to refer to parent classes without " @@ -2750,7 +2752,7 @@ msgstr "" "maintenable. Cet usage se rapproche de l'usage de *super* dans d'autres " "langages de programmation." -#: ../Doc/library/functions.rst:1517 +#: ../Doc/library/functions.rst:1518 msgid "" "The second use case is to support cooperative multiple inheritance in a " "dynamic execution environment. This use case is unique to Python and is not " @@ -2773,12 +2775,12 @@ msgstr "" "changements dans la hiérarchie, et parce que l'ordre peut inclure des " "classes sœurs inconnues avant l'exécution)." -#: ../Doc/library/functions.rst:1527 +#: ../Doc/library/functions.rst:1528 msgid "For both use cases, a typical superclass call looks like this::" msgstr "" "Dans tous les cas, un appel typique à une classe parente ressemble à : ::" -#: ../Doc/library/functions.rst:1534 +#: ../Doc/library/functions.rst:1535 msgid "" "Note that :func:`super` is implemented as part of the binding process for " "explicit dotted attribute lookups such as ``super().__getitem__(name)``. It " @@ -2795,7 +2797,7 @@ msgstr "" "n'est pas défini pour les recherches implicites via des instructions ou des " "opérateurs tel que ``super()[name]``." -#: ../Doc/library/functions.rst:1541 +#: ../Doc/library/functions.rst:1542 msgid "" "Also note that, aside from the zero argument form, :func:`super` is not " "limited to use inside methods. The two argument form specifies the " @@ -2812,7 +2814,7 @@ msgstr "" "propos de la classe en cours de définition, ainsi qu'accéder à l'instance " "courante pour les méthodes ordinaires." -#: ../Doc/library/functions.rst:1548 +#: ../Doc/library/functions.rst:1549 msgid "" "For practical suggestions on how to design cooperative classes using :func:" "`super`, see `guide to using super() `_." -#: ../Doc/library/functions.rst:1557 +#: ../Doc/library/functions.rst:1558 msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." @@ -2830,7 +2832,7 @@ msgstr "" "Plutôt qu'être une fonction, :class:`tuple` est en fait un type de séquence " "immuable, tel que documenté dans :ref:`typesseq-tuple` et :ref:`typesseq`." -#: ../Doc/library/functions.rst:1566 +#: ../Doc/library/functions.rst:1567 msgid "" "With one argument, return the type of an *object*. The return value is a " "type object and generally the same object as returned by :attr:`object." @@ -2840,7 +2842,7 @@ msgstr "" "type et généralement la même que la valeur de l'attribut :attr:`object." "__class__ `." -#: ../Doc/library/functions.rst:1570 +#: ../Doc/library/functions.rst:1571 msgid "" "The :func:`isinstance` built-in function is recommended for testing the type " "of an object, because it takes subclasses into account." @@ -2848,7 +2850,7 @@ msgstr "" "La fonction native :func:`isinstance` est recommandée pour tester le type " "d'un objet car elle prend en compte l'héritage." -#: ../Doc/library/functions.rst:1574 +#: ../Doc/library/functions.rst:1575 msgid "" "With three arguments, return a new type object. This is essentially a " "dynamic form of the :keyword:`class` statement. The *name* string is the " @@ -2869,11 +2871,11 @@ msgstr "" "exemple, les deux instructions suivantes créent deux instances identiques " "de :class:`type` :" -#: ../Doc/library/functions.rst:1588 +#: ../Doc/library/functions.rst:1589 msgid "See also :ref:`bltin-type-objects`." msgstr "Voir aussi :ref:`bltin-type-objects`." -#: ../Doc/library/functions.rst:1590 +#: ../Doc/library/functions.rst:1591 msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." @@ -2882,7 +2884,7 @@ msgstr "" "ne devraient plus utiliser la forme à un argument pour récupérer le type " "d'un objet." -#: ../Doc/library/functions.rst:1596 +#: ../Doc/library/functions.rst:1597 msgid "" "Return the :attr:`~object.__dict__` attribute for a module, class, instance, " "or any other object with a :attr:`~object.__dict__` attribute." @@ -2891,7 +2893,7 @@ msgstr "" "instance ou de n'importe quel objet avec un attribut :attr:`~object." "__dict__`." -#: ../Doc/library/functions.rst:1599 +#: ../Doc/library/functions.rst:1600 msgid "" "Objects such as modules and instances have an updateable :attr:`~object." "__dict__` attribute; however, other objects may have write restrictions on " @@ -2904,7 +2906,7 @@ msgstr "" "exemple, les classes utilisent un :class:`types.MappingProxyType` pour " "éviter les modifications directes du dictionnaire)." -#: ../Doc/library/functions.rst:1604 +#: ../Doc/library/functions.rst:1605 msgid "" "Without an argument, :func:`vars` acts like :func:`locals`. Note, the " "locals dictionary is only useful for reads since updates to the locals " @@ -2914,11 +2916,11 @@ msgstr "" "dictionnaire des variables locales n'est utile qu'en lecture, car ses " "écritures sont ignorées." -#: ../Doc/library/functions.rst:1611 +#: ../Doc/library/functions.rst:1612 msgid "Make an iterator that aggregates elements from each of the iterables." msgstr "Construit un itérateur agrégeant les éléments de tous les itérables." -#: ../Doc/library/functions.rst:1613 +#: ../Doc/library/functions.rst:1614 msgid "" "Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th " "element from each of the argument sequences or iterables. The iterator " @@ -2932,7 +2934,7 @@ msgstr "" "itérable, elle donne un itérateur sur des *tuples* d'un élément. Sans " "arguments, elle donne un itérateur vide. Équivalent à : ::" -#: ../Doc/library/functions.rst:1632 +#: ../Doc/library/functions.rst:1633 msgid "" "The left-to-right evaluation order of the iterables is guaranteed. This " "makes possible an idiom for clustering a data series into n-length groups " @@ -2946,7 +2948,7 @@ msgstr "" "que le tuple obtenu contient le résultat de ``n`` appels à l'itérateur. Cela " "a pour effet de diviser la séquence en morceaux de taille *n*." -#: ../Doc/library/functions.rst:1638 +#: ../Doc/library/functions.rst:1639 msgid "" ":func:`zip` should only be used with unequal length inputs when you don't " "care about trailing, unmatched values from the longer iterables. If those " @@ -2957,7 +2959,7 @@ msgstr "" "peuvent être ignorées. Si c'est valeurs sont importantes, utilisez plutôt :" "func:`itertools.zip_longest`." -#: ../Doc/library/functions.rst:1642 +#: ../Doc/library/functions.rst:1643 msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" @@ -2965,7 +2967,7 @@ msgstr "" ":func:`zip` peut être utilisée conjointement avec l'opérateur ``*`` pour " "dézipper une liste : ::" -#: ../Doc/library/functions.rst:1663 +#: ../Doc/library/functions.rst:1664 msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." @@ -2973,7 +2975,7 @@ msgstr "" "C'est une fonction avancée qui n'est pas fréquemment nécessaire, " "contrairement à :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1666 +#: ../Doc/library/functions.rst:1667 msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " @@ -2993,7 +2995,7 @@ msgstr "" "trouver l'implémentation par défaut. L'usage direct de :func:`__import__` " "est aussi déconseillé en faveur de :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1675 +#: ../Doc/library/functions.rst:1676 msgid "" "The function imports the module *name*, potentially using the given " "*globals* and *locals* to determine how to interpret the name in a package " @@ -3009,7 +3011,7 @@ msgstr "" "l'argument *locals* et n'utilise *globals* que pour déterminer le contexte " "du paquet de l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1682 +#: ../Doc/library/functions.rst:1683 msgid "" "*level* specifies whether to use absolute or relative imports. ``0`` (the " "default) means only perform absolute imports. Positive values for *level* " @@ -3022,7 +3024,7 @@ msgstr "" "le nombre de dossiers parents relativement au dossier du module appelant :" "func:`__import__` (voir la :pep:`328`)." -#: ../Doc/library/functions.rst:1688 +#: ../Doc/library/functions.rst:1689 msgid "" "When the *name* variable is of the form ``package.module``, normally, the " "top-level package (the name up till the first dot) is returned, *not* the " @@ -3034,7 +3036,7 @@ msgstr "" "le module nommé par *name*. Cependant, lorsqu'un argument *fromlist* est " "fourni, le module nommé par *name* est donné." -#: ../Doc/library/functions.rst:1693 +#: ../Doc/library/functions.rst:1694 msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" @@ -3042,11 +3044,11 @@ msgstr "" "Par exemple, l'instruction ``import spam`` donne un code intermédiaire " "(*bytecode* en anglais) ressemblant au code suivant : ::" -#: ../Doc/library/functions.rst:1698 +#: ../Doc/library/functions.rst:1699 msgid "The statement ``import spam.ham`` results in this call::" msgstr "L'instruction ``import ham.ham`` appelle : ::" -#: ../Doc/library/functions.rst:1702 +#: ../Doc/library/functions.rst:1703 msgid "" "Note how :func:`__import__` returns the toplevel module here because this is " "the object that is bound to a name by the :keyword:`import` statement." @@ -3054,7 +3056,7 @@ msgstr "" "Notez comment :func:`__import__` donne le module le plus haut ici parce que " "c'est l'objet lié à un nom par l'instruction :keyword:`import`." -#: ../Doc/library/functions.rst:1705 +#: ../Doc/library/functions.rst:1706 msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" @@ -3062,7 +3064,7 @@ msgstr "" "En revanche, l'instruction ``from spam.ham import eggs, saucage as saus`` " "donne : ::" -#: ../Doc/library/functions.rst:1712 +#: ../Doc/library/functions.rst:1713 msgid "" "Here, the ``spam.ham`` module is returned from :func:`__import__`. From " "this object, the names to import are retrieved and assigned to their " @@ -3071,7 +3073,7 @@ msgstr "" "Ici le module ``spam.ham`` est donné par :func:`__import__`. De cet objet, " "les noms à importer sont récupérés et assignés à leurs noms respectifs." -#: ../Doc/library/functions.rst:1716 +#: ../Doc/library/functions.rst:1717 msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." @@ -3079,7 +3081,7 @@ msgstr "" "Si vous voulez simplement importer un module (potentiellement dans un " "paquet) par son nom, utilisez :func:`importlib.import_module`." -#: ../Doc/library/functions.rst:1719 +#: ../Doc/library/functions.rst:1720 msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." @@ -3087,11 +3089,11 @@ msgstr "" "Des valeurs négatives pour *level* ne sont plus gérées (ce qui change la " "valeur par défaut pour 0)." -#: ../Doc/library/functions.rst:1725 +#: ../Doc/library/functions.rst:1726 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/functions.rst:1726 +#: ../Doc/library/functions.rst:1727 msgid "" "Note that the parser only accepts the Unix-style end of line convention. If " "you are reading the code from a file, make sure to use newline conversion " diff --git a/library/idle.po b/library/idle.po index fcb14d06d..e98d3f463 100644 --- a/library/idle.po +++ b/library/idle.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" diff --git a/library/inspect.po b/library/inspect.po index d4874c55c..78bad953d 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2017-05-27 19:55+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" diff --git a/library/io.po b/library/io.po index 6b0312b77..571e73c13 100644 --- a/library/io.po +++ b/library/io.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-07-03 11:13+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" @@ -60,7 +60,7 @@ msgid "" msgstr "" #: ../Doc/library/io.rst:51 ../Doc/library/io.rst:755 -#: ../Doc/library/io.rst:1011 +#: ../Doc/library/io.rst:1010 msgid "Text I/O" msgstr "" @@ -89,7 +89,7 @@ msgid "" "`TextIOBase`." msgstr "" -#: ../Doc/library/io.rst:72 ../Doc/library/io.rst:999 +#: ../Doc/library/io.rst:72 ../Doc/library/io.rst:998 msgid "Binary I/O" msgstr "" @@ -346,29 +346,27 @@ msgstr "" #: ../Doc/library/io.rst:229 msgid "" -"Even though :class:`IOBase` does not declare :meth:`read`, :meth:`readinto`, " -"or :meth:`write` because their signatures will vary, implementations and " -"clients should consider those methods part of the interface. Also, " -"implementations may raise a :exc:`ValueError` (or :exc:" -"`UnsupportedOperation`) when operations they do not support are called." +"Even though :class:`IOBase` does not declare :meth:`read` or :meth:`write` " +"because their signatures will vary, implementations and clients should " +"consider those methods part of the interface. Also, implementations may " +"raise a :exc:`ValueError` (or :exc:`UnsupportedOperation`) when operations " +"they do not support are called." msgstr "" #: ../Doc/library/io.rst:235 msgid "" "The basic type used for binary data read from or written to a file is :class:" "`bytes`. Other :term:`bytes-like objects ` are accepted " -"as method arguments too. In some cases, such as :meth:`~RawIOBase." -"readinto`, a writable object such as :class:`bytearray` is required. Text I/" -"O classes work with :class:`str` data." +"as method arguments too. Text I/O classes work with :class:`str` data." msgstr "" -#: ../Doc/library/io.rst:241 +#: ../Doc/library/io.rst:239 msgid "" "Note that calling any method (even inquiries) on a closed stream is " "undefined. Implementations may raise :exc:`ValueError` in this case." msgstr "" -#: ../Doc/library/io.rst:244 +#: ../Doc/library/io.rst:242 msgid "" ":class:`IOBase` (and its subclasses) supports the iterator protocol, meaning " "that an :class:`IOBase` object can be iterated over yielding the lines in a " @@ -377,135 +375,135 @@ msgid "" "character strings). See :meth:`~IOBase.readline` below." msgstr "" -#: ../Doc/library/io.rst:250 +#: ../Doc/library/io.rst:248 msgid "" ":class:`IOBase` is also a context manager and therefore supports the :" "keyword:`with` statement. In this example, *file* is closed after the :" "keyword:`!with` statement's suite is finished---even if an exception occurs::" msgstr "" -#: ../Doc/library/io.rst:257 +#: ../Doc/library/io.rst:255 msgid ":class:`IOBase` provides these data attributes and methods:" msgstr "" -#: ../Doc/library/io.rst:261 +#: ../Doc/library/io.rst:259 msgid "" "Flush and close this stream. This method has no effect if the file is " "already closed. Once the file is closed, any operation on the file (e.g. " "reading or writing) will raise a :exc:`ValueError`." msgstr "" -#: ../Doc/library/io.rst:265 +#: ../Doc/library/io.rst:263 msgid "" "As a convenience, it is allowed to call this method more than once; only the " "first call, however, will have an effect." msgstr "" -#: ../Doc/library/io.rst:270 +#: ../Doc/library/io.rst:268 msgid "``True`` if the stream is closed." msgstr "" -#: ../Doc/library/io.rst:274 +#: ../Doc/library/io.rst:272 msgid "" "Return the underlying file descriptor (an integer) of the stream if it " "exists. An :exc:`OSError` is raised if the IO object does not use a file " "descriptor." msgstr "" -#: ../Doc/library/io.rst:280 +#: ../Doc/library/io.rst:278 msgid "" "Flush the write buffers of the stream if applicable. This does nothing for " "read-only and non-blocking streams." msgstr "" -#: ../Doc/library/io.rst:285 +#: ../Doc/library/io.rst:283 msgid "" "Return ``True`` if the stream is interactive (i.e., connected to a terminal/" "tty device)." msgstr "" -#: ../Doc/library/io.rst:290 +#: ../Doc/library/io.rst:288 msgid "" "Return ``True`` if the stream can be read from. If ``False``, :meth:`read` " "will raise :exc:`OSError`." msgstr "" -#: ../Doc/library/io.rst:295 +#: ../Doc/library/io.rst:293 msgid "" "Read and return one line from the stream. If *size* is specified, at most " "*size* bytes will be read." msgstr "" -#: ../Doc/library/io.rst:298 +#: ../Doc/library/io.rst:296 msgid "" "The line terminator is always ``b'\\n'`` for binary files; for text files, " "the *newline* argument to :func:`open` can be used to select the line " "terminator(s) recognized." msgstr "" -#: ../Doc/library/io.rst:304 +#: ../Doc/library/io.rst:302 msgid "" "Read and return a list of lines from the stream. *hint* can be specified to " "control the number of lines read: no more lines will be read if the total " "size (in bytes/characters) of all lines so far exceeds *hint*." msgstr "" -#: ../Doc/library/io.rst:308 +#: ../Doc/library/io.rst:306 msgid "" "Note that it's already possible to iterate on file objects using ``for line " "in file: ...`` without calling ``file.readlines()``." msgstr "" -#: ../Doc/library/io.rst:313 +#: ../Doc/library/io.rst:311 msgid "" "Change the stream position to the given byte *offset*. *offset* is " "interpreted relative to the position indicated by *whence*. The default " "value for *whence* is :data:`SEEK_SET`. Values for *whence* are:" msgstr "" -#: ../Doc/library/io.rst:317 +#: ../Doc/library/io.rst:315 msgid "" ":data:`SEEK_SET` or ``0`` -- start of the stream (the default); *offset* " "should be zero or positive" msgstr "" -#: ../Doc/library/io.rst:319 +#: ../Doc/library/io.rst:317 msgid "" ":data:`SEEK_CUR` or ``1`` -- current stream position; *offset* may be " "negative" msgstr "" -#: ../Doc/library/io.rst:321 +#: ../Doc/library/io.rst:319 msgid "" ":data:`SEEK_END` or ``2`` -- end of the stream; *offset* is usually negative" msgstr "" -#: ../Doc/library/io.rst:324 +#: ../Doc/library/io.rst:322 msgid "Return the new absolute position." msgstr "" -#: ../Doc/library/io.rst:326 ../Doc/library/io.rst:832 +#: ../Doc/library/io.rst:324 ../Doc/library/io.rst:831 msgid "The ``SEEK_*`` constants." msgstr "" -#: ../Doc/library/io.rst:329 +#: ../Doc/library/io.rst:327 msgid "" "Some operating systems could support additional values, like :data:`os." "SEEK_HOLE` or :data:`os.SEEK_DATA`. The valid values for a file could depend " "on it being open in text or binary mode." msgstr "" -#: ../Doc/library/io.rst:336 +#: ../Doc/library/io.rst:334 msgid "" "Return ``True`` if the stream supports random access. If ``False``, :meth:" "`seek`, :meth:`tell` and :meth:`truncate` will raise :exc:`OSError`." msgstr "" -#: ../Doc/library/io.rst:341 +#: ../Doc/library/io.rst:339 msgid "Return the current stream position." msgstr "" -#: ../Doc/library/io.rst:345 +#: ../Doc/library/io.rst:343 msgid "" "Resize the stream to the given *size* in bytes (or the current position if " "*size* is not specified). The current stream position isn't changed. This " @@ -514,49 +512,49 @@ msgid "" "additional bytes are zero-filled). The new file size is returned." msgstr "" -#: ../Doc/library/io.rst:352 +#: ../Doc/library/io.rst:350 msgid "Windows will now zero-fill files when extending." msgstr "" -#: ../Doc/library/io.rst:357 +#: ../Doc/library/io.rst:355 msgid "" "Return ``True`` if the stream supports writing. If ``False``, :meth:`write` " "and :meth:`truncate` will raise :exc:`OSError`." msgstr "" -#: ../Doc/library/io.rst:362 +#: ../Doc/library/io.rst:360 msgid "" "Write a list of lines to the stream. Line separators are not added, so it " "is usual for each of the lines provided to have a line separator at the end." msgstr "" -#: ../Doc/library/io.rst:368 +#: ../Doc/library/io.rst:366 msgid "" "Prepare for object destruction. :class:`IOBase` provides a default " "implementation of this method that calls the instance's :meth:`~IOBase." "close` method." msgstr "" -#: ../Doc/library/io.rst:375 +#: ../Doc/library/io.rst:373 msgid "" "Base class for raw binary I/O. It inherits :class:`IOBase`. There is no " "public constructor." msgstr "" -#: ../Doc/library/io.rst:378 +#: ../Doc/library/io.rst:376 msgid "" "Raw binary I/O typically provides low-level access to an underlying OS " "device or API, and does not try to encapsulate it in high-level primitives " "(this is left to Buffered I/O and Text I/O, described later in this page)." msgstr "" -#: ../Doc/library/io.rst:382 +#: ../Doc/library/io.rst:380 msgid "" "In addition to the attributes and methods from :class:`IOBase`, :class:" "`RawIOBase` provides the following methods:" msgstr "" -#: ../Doc/library/io.rst:387 +#: ../Doc/library/io.rst:385 msgid "" "Read up to *size* bytes from the object and return them. As a convenience, " "if *size* is unspecified or -1, all bytes until EOF are returned. Otherwise, " @@ -564,32 +562,33 @@ msgid "" "if the operating system call returns fewer than *size* bytes." msgstr "" -#: ../Doc/library/io.rst:392 +#: ../Doc/library/io.rst:390 msgid "" "If 0 bytes are returned, and *size* was not 0, this indicates end of file. " "If the object is in non-blocking mode and no bytes are available, ``None`` " "is returned." msgstr "" -#: ../Doc/library/io.rst:396 +#: ../Doc/library/io.rst:394 msgid "" "The default implementation defers to :meth:`readall` and :meth:`readinto`." msgstr "" -#: ../Doc/library/io.rst:401 +#: ../Doc/library/io.rst:399 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:406 +#: ../Doc/library/io.rst:404 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." +"return the number of bytes read. For example, *b* might be a :class:" +"`bytearray`. If the object is in non-blocking mode and no bytes are " +"available, ``None`` is returned." msgstr "" -#: ../Doc/library/io.rst:413 +#: ../Doc/library/io.rst:412 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 " @@ -600,13 +599,13 @@ msgid "" "the implementation should only access *b* during the method call." msgstr "" -#: ../Doc/library/io.rst:426 +#: ../Doc/library/io.rst:425 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:429 +#: ../Doc/library/io.rst:428 msgid "" "The main difference with :class:`RawIOBase` is that methods :meth:`read`, :" "meth:`readinto` and :meth:`write` will try (respectively) to read as much " @@ -614,7 +613,7 @@ msgid "" "perhaps more than one system call." msgstr "" -#: ../Doc/library/io.rst:434 +#: ../Doc/library/io.rst:433 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 " @@ -622,55 +621,55 @@ msgid "" "``None``." msgstr "" -#: ../Doc/library/io.rst:439 +#: ../Doc/library/io.rst:438 msgid "" "Besides, the :meth:`read` method does not have a default implementation that " "defers to :meth:`readinto`." msgstr "" -#: ../Doc/library/io.rst:442 +#: ../Doc/library/io.rst:441 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:446 +#: ../Doc/library/io.rst:445 msgid "" ":class:`BufferedIOBase` provides or overrides these methods and attribute in " "addition to those from :class:`IOBase`:" msgstr "" -#: ../Doc/library/io.rst:451 +#: ../Doc/library/io.rst:450 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:457 +#: ../Doc/library/io.rst:456 msgid "Separate the underlying raw stream from the buffer and return it." msgstr "" -#: ../Doc/library/io.rst:459 +#: ../Doc/library/io.rst:458 msgid "" "After the raw stream has been detached, the buffer is in an unusable state." msgstr "" -#: ../Doc/library/io.rst:462 +#: ../Doc/library/io.rst:461 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:470 +#: ../Doc/library/io.rst:469 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:474 +#: ../Doc/library/io.rst:473 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 " @@ -679,14 +678,14 @@ msgid "" "imminent." msgstr "" -#: ../Doc/library/io.rst:480 ../Doc/library/io.rst:502 +#: ../Doc/library/io.rst:479 ../Doc/library/io.rst:502 #: ../Doc/library/io.rst:512 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:485 +#: ../Doc/library/io.rst:484 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`) " @@ -694,16 +693,17 @@ msgid "" "top of a :class:`BufferedIOBase` object." msgstr "" -#: ../Doc/library/io.rst:491 +#: ../Doc/library/io.rst:490 msgid "" "If *size* is ``-1`` (the default), an arbitrary number of bytes are returned " "(more than zero unless EOF is reached)." msgstr "" -#: ../Doc/library/io.rst:496 +#: ../Doc/library/io.rst:495 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b* and " -"return the number of bytes read." +"return the number of bytes read. For example, *b* might be a :class:" +"`bytearray`." msgstr "" #: ../Doc/library/io.rst:499 @@ -1043,131 +1043,130 @@ msgstr "" #: ../Doc/library/io.rst:759 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 " -"Python's character strings are immutable. It inherits :class:`IOBase`. " -"There is no public constructor." +"interface to stream I/O. It inherits :class:`IOBase`. There is no public " +"constructor." msgstr "" -#: ../Doc/library/io.rst:764 +#: ../Doc/library/io.rst:763 msgid "" ":class:`TextIOBase` provides or overrides these data attributes and methods " "in addition to those from :class:`IOBase`:" msgstr "" -#: ../Doc/library/io.rst:769 +#: ../Doc/library/io.rst:768 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:774 +#: ../Doc/library/io.rst:773 msgid "The error setting of the decoder or encoder." msgstr "" -#: ../Doc/library/io.rst:778 +#: ../Doc/library/io.rst:777 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:784 +#: ../Doc/library/io.rst:783 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:790 +#: ../Doc/library/io.rst:789 msgid "" "Separate the underlying binary buffer from the :class:`TextIOBase` and " "return it." msgstr "" -#: ../Doc/library/io.rst:793 +#: ../Doc/library/io.rst:792 msgid "" "After the underlying buffer has been detached, the :class:`TextIOBase` is in " "an unusable state." msgstr "" -#: ../Doc/library/io.rst:796 +#: ../Doc/library/io.rst:795 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:804 +#: ../Doc/library/io.rst:803 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:809 +#: ../Doc/library/io.rst:808 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:812 +#: ../Doc/library/io.rst:811 msgid "If *size* is specified, at most *size* characters will be read." msgstr "" -#: ../Doc/library/io.rst:816 +#: ../Doc/library/io.rst:815 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:820 +#: ../Doc/library/io.rst:819 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:824 +#: ../Doc/library/io.rst:823 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:827 +#: ../Doc/library/io.rst:826 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:830 +#: ../Doc/library/io.rst:829 msgid "Return the new absolute position as an opaque number." msgstr "" -#: ../Doc/library/io.rst:837 +#: ../Doc/library/io.rst:836 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:843 +#: ../Doc/library/io.rst:842 msgid "" "Write the string *s* to the stream and return the number of characters " "written." msgstr "" -#: ../Doc/library/io.rst:850 +#: ../Doc/library/io.rst:849 msgid "" "A buffered text stream over a :class:`BufferedIOBase` binary stream. It " "inherits :class:`TextIOBase`." msgstr "" -#: ../Doc/library/io.rst:853 +#: ../Doc/library/io.rst:852 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:857 +#: ../Doc/library/io.rst:856 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled. Pass ``'strict'`` to raise a :exc:`ValueError` " @@ -1182,13 +1181,13 @@ msgid "" "that has been registered with :func:`codecs.register_error` is also valid." msgstr "" -#: ../Doc/library/io.rst:873 +#: ../Doc/library/io.rst:872 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:876 +#: ../Doc/library/io.rst:875 msgid "" "When reading input from the stream, if *newline* is ``None``, :term:" "`universal newlines` mode is enabled. Lines in the input can end in " @@ -1207,7 +1206,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:885 +#: ../Doc/library/io.rst:884 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " "characters written are translated to the system default line separator, :" @@ -1221,24 +1220,24 @@ msgstr "" "*newline* est un autre caractère valide, chaque ``'\\n'`` sera remplacé par " "la chaîne donnée." -#: ../Doc/library/io.rst:891 +#: ../Doc/library/io.rst:890 msgid "" "If *line_buffering* is ``True``, :meth:`flush` is implied when a call to " "write contains a newline character or a carriage return." msgstr "" -#: ../Doc/library/io.rst:894 +#: ../Doc/library/io.rst:893 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:898 +#: ../Doc/library/io.rst:897 msgid "The *write_through* argument has been added." msgstr "" -#: ../Doc/library/io.rst:901 +#: ../Doc/library/io.rst:900 msgid "" "The default *encoding* is now ``locale.getpreferredencoding(False)`` instead " "of ``locale.getpreferredencoding()``. Don't change temporary the locale " @@ -1246,58 +1245,58 @@ msgid "" "instead of the user preferred encoding." msgstr "" -#: ../Doc/library/io.rst:907 +#: ../Doc/library/io.rst:906 msgid "" ":class:`TextIOWrapper` provides these members in addition to those of :class:" "`TextIOBase` and its parents:" msgstr "" -#: ../Doc/library/io.rst:912 +#: ../Doc/library/io.rst:911 msgid "Whether line buffering is enabled." msgstr "" -#: ../Doc/library/io.rst:916 +#: ../Doc/library/io.rst:915 msgid "Whether writes are passed immediately to the underlying binary buffer." msgstr "" -#: ../Doc/library/io.rst:924 +#: ../Doc/library/io.rst:923 msgid "" "Reconfigure this text stream using new settings for *encoding*, *errors*, " "*newline*, *line_buffering* and *write_through*." msgstr "" -#: ../Doc/library/io.rst:927 +#: ../Doc/library/io.rst:926 msgid "" "Parameters not specified keep current settings, except ``errors='strict`` is " "used when *encoding* is specified but *errors* is not specified." msgstr "" -#: ../Doc/library/io.rst:931 +#: ../Doc/library/io.rst:930 msgid "" "It is not possible to change the encoding or newline if some data has " "already been read from the stream. On the other hand, changing encoding " "after write is possible." msgstr "" -#: ../Doc/library/io.rst:935 +#: ../Doc/library/io.rst:934 msgid "" "This method does an implicit stream flush before setting the new parameters." msgstr "" -#: ../Doc/library/io.rst:943 +#: ../Doc/library/io.rst:942 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:946 +#: ../Doc/library/io.rst:945 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:951 +#: ../Doc/library/io.rst:950 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 " @@ -1306,40 +1305,40 @@ msgid "" "performed when reading." msgstr "" -#: ../Doc/library/io.rst:957 +#: ../Doc/library/io.rst:956 msgid "" ":class:`StringIO` provides this method in addition to those from :class:" "`TextIOBase` and its parents:" msgstr "" -#: ../Doc/library/io.rst:962 +#: ../Doc/library/io.rst:961 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:966 +#: ../Doc/library/io.rst:965 msgid "Example usage::" msgstr "" -#: ../Doc/library/io.rst:988 +#: ../Doc/library/io.rst:987 msgid "" "A helper codec that decodes newlines for :term:`universal newlines` mode. It " "inherits :class:`codecs.IncrementalDecoder`." msgstr "" -#: ../Doc/library/io.rst:993 +#: ../Doc/library/io.rst:992 msgid "Performance" msgstr "" -#: ../Doc/library/io.rst:995 +#: ../Doc/library/io.rst:994 msgid "" "This section discusses the performance of the provided concrete I/O " "implementations." msgstr "" -#: ../Doc/library/io.rst:1001 +#: ../Doc/library/io.rst:1000 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 " @@ -1352,7 +1351,7 @@ msgid "" "data." msgstr "" -#: ../Doc/library/io.rst:1013 +#: ../Doc/library/io.rst:1012 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 " @@ -1362,23 +1361,23 @@ msgid "" "to the reconstruction algorithm used." msgstr "" -#: ../Doc/library/io.rst:1020 +#: ../Doc/library/io.rst:1019 msgid "" ":class:`StringIO`, however, is a native in-memory unicode container and will " "exhibit similar speed to :class:`BytesIO`." msgstr "" -#: ../Doc/library/io.rst:1024 +#: ../Doc/library/io.rst:1023 msgid "Multi-threading" msgstr "Fils d'exécution" -#: ../Doc/library/io.rst:1026 +#: ../Doc/library/io.rst:1025 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:1029 +#: ../Doc/library/io.rst:1028 msgid "" "Binary buffered objects (instances of :class:`BufferedReader`, :class:" "`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) " @@ -1386,15 +1385,15 @@ msgid "" "them from multiple threads at once." msgstr "" -#: ../Doc/library/io.rst:1034 +#: ../Doc/library/io.rst:1033 msgid ":class:`TextIOWrapper` objects are not thread-safe." msgstr "" -#: ../Doc/library/io.rst:1037 +#: ../Doc/library/io.rst:1036 msgid "Reentrancy" msgstr "" -#: ../Doc/library/io.rst:1039 +#: ../Doc/library/io.rst:1038 msgid "" "Binary buffered objects (instances of :class:`BufferedReader`, :class:" "`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) are " @@ -1405,7 +1404,7 @@ msgid "" "from entering the buffered object." msgstr "" -#: ../Doc/library/io.rst:1047 +#: ../Doc/library/io.rst:1046 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/operator.po b/library/operator.po index d9d222220..1822ea887 100644 --- a/library/operator.po +++ b/library/operator.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-18 10:21+0200\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-12-11 22:46+0100\n" "Last-Translator: Antoine Wecxsteen\n" "Language-Team: FRENCH \n" @@ -781,7 +781,7 @@ msgid "``gt(a, b)``" msgstr "``gt(a, b)``" #: ../Doc/library/operator.rst:442 -msgid "Inplace Operators" +msgid "In-place Operators" msgstr "Opérateurs en-place" #: ../Doc/library/operator.rst:444 @@ -824,7 +824,7 @@ msgstr "" #: ../Doc/library/operator.rst:465 msgid "" -"For mutable targets such as lists and dictionaries, the inplace method will " +"For mutable targets such as lists and dictionaries, the in-place method will " "perform the update, so no subsequent assignment is necessary:" msgstr "" "Pour des paramètres mutables comme les listes et les dictionnaires, la " diff --git a/library/queue.po b/library/queue.po index 98979dd88..dca0fa565 100644 --- a/library/queue.po +++ b/library/queue.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-04 19:04+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" diff --git a/library/ssl.po b/library/ssl.po index ff3eacf05..3038fa436 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-11-29 18:27+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" diff --git a/library/stdtypes.po b/library/stdtypes.po index d5e99618e..f4a9f09f4 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -5,9 +5,9 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-24 14:22+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-19 23:31+0100\n" -"Last-Translator: Julien Palard \n" +"Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" diff --git a/library/subprocess.po b/library/subprocess.po index e3ba522ac..6f45d80fe 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-02-27 12:00+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" diff --git a/library/sys.po b/library/sys.po index c4f33f044..a02032911 100644 --- a/library/sys.po +++ b/library/sys.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 12:59+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-28 11:21+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -61,7 +61,15 @@ msgstr "" "Pour boucler sur l'entrée standard, ou la liste des fichiers donnés sur la " "ligne de commande, utilisez le module :mod:`fileinput`." -#: ../Doc/library/sys.rst:36 +#: ../Doc/library/sys.rst:34 +msgid "" +"On Unix, command line arguments are passed by bytes from OS. Python decodes " +"them with filesystem encoding and \"surrogateescape\" error handler. When " +"you need original bytes, you can get it by ``[os.fsencode(arg) for arg in " +"sys.argv]``." +msgstr "" + +#: ../Doc/library/sys.rst:42 msgid "" "Set during Python startup, before ``site.py`` is run, to the same value as :" "data:`exec_prefix`. If not running in a :ref:`virtual environment `, " @@ -99,7 +107,7 @@ msgstr "" "à la racine de l'installation de Python (celui utilisé pour créer " "l'environnement virtuel)." -#: ../Doc/library/sys.rst:63 +#: ../Doc/library/sys.rst:69 msgid "" "An indicator of the native byte order. This will have the value ``'big'`` " "on big-endian (most-significant byte first) platforms, and ``'little'`` on " @@ -110,7 +118,7 @@ msgstr "" "``'little'`` sur les plateformes petit-boutiste (octet le moins significatif " "en premier)." -#: ../Doc/library/sys.rst:70 +#: ../Doc/library/sys.rst:76 msgid "" "A tuple of strings giving the names of all modules that are compiled into " "this Python interpreter. (This information is not available in any other " @@ -121,7 +129,7 @@ msgstr "" "disponible autrement --- ```modules.keys()`` liste seulement les modules " "importés.)" -#: ../Doc/library/sys.rst:77 +#: ../Doc/library/sys.rst:83 msgid "" "Call ``func(*args)``, while tracing is enabled. The tracing state is saved, " "and restored afterwards. This is intended to be called from a debugger from " @@ -132,11 +140,11 @@ msgstr "" "un débogueur à partir d'un point de contrôle, pour déboguer récursivement un " "autre code." -#: ../Doc/library/sys.rst:84 +#: ../Doc/library/sys.rst:90 msgid "A string containing the copyright pertaining to the Python interpreter." msgstr "Une chaîne contenant le copyright relatif à l'interpréteur Python." -#: ../Doc/library/sys.rst:89 +#: ../Doc/library/sys.rst:95 msgid "" "Clear the internal type cache. The type cache is used to speed up attribute " "and method lookups. Use the function *only* to drop unnecessary references " @@ -147,14 +155,14 @@ msgstr "" "pour libérer des références inutiles durant le débogage de fuite de " "référence." -#: ../Doc/library/sys.rst:93 ../Doc/library/sys.rst:109 +#: ../Doc/library/sys.rst:99 ../Doc/library/sys.rst:115 msgid "" "This function should be used for internal and specialized purposes only." msgstr "" "Cette fonction ne devrait être utilisée que pour un usage interne et " "spécialisé." -#: ../Doc/library/sys.rst:98 +#: ../Doc/library/sys.rst:104 msgid "" "Return a dictionary mapping each thread's identifier to the topmost stack " "frame currently active in that thread at the time the function is called. " @@ -166,7 +174,7 @@ msgstr "" "au moment où la fonction est appelée. Notez que les fonctions du module :mod:" "`traceback` peuvent construire une *call stack* à partir d'une telle *frame*." -#: ../Doc/library/sys.rst:103 +#: ../Doc/library/sys.rst:109 msgid "" "This is most useful for debugging deadlock: this function does not require " "the deadlocked threads' cooperation, and such threads' call stacks are " @@ -181,7 +189,7 @@ msgstr "" "l'activité courante du fil d'exécution au moment où le code appelant examine " "la *frame*." -#: ../Doc/library/sys.rst:114 +#: ../Doc/library/sys.rst:120 msgid "" "This hook function is called by built-in :func:`breakpoint`. By default, it " "drops you into the :mod:`pdb` debugger, but it can be set to any other " @@ -192,7 +200,7 @@ msgstr "" "débogueur :mod:`pdb`, mais elle peut être dirigée vers n'importe quelle " "autre fonction pour que vous puissiez choisir le débogueur utilisé." -#: ../Doc/library/sys.rst:118 +#: ../Doc/library/sys.rst:124 msgid "" "The signature of this function is dependent on what it calls. For example, " "the default binding (e.g. ``pdb.set_trace()``) expects no arguments, but you " @@ -208,7 +216,7 @@ msgstr "" "`breakpoint()` passe ses ``*args`` et ``**kws`` directement au travers. Tout " "ce que renvoie ``breakpointhooks()`` est renvoyé par ``breakpoint()``." -#: ../Doc/library/sys.rst:125 +#: ../Doc/library/sys.rst:131 msgid "" "The default implementation first consults the environment variable :envvar:" "`PYTHONBREAKPOINT`. If that is set to ``\"0\"`` then this function returns " @@ -233,7 +241,7 @@ msgstr "" "quoique renvoie ``function()``, ``sys.breakpointhook()`` retourne à la " "fonction native :func:`breakpoint`." -#: ../Doc/library/sys.rst:137 +#: ../Doc/library/sys.rst:143 msgid "" "Note that if anything goes wrong while importing the callable named by :" "envvar:`PYTHONBREAKPOINT`, a :exc:`RuntimeWarning` is reported and the " @@ -243,7 +251,7 @@ msgstr "" "nommée dans :envvar:`PYTHONBREAKPOINT`, une alerte :exc:`RuntimeWarning` est " "indiquée et le point d'arrêt est ignoré." -#: ../Doc/library/sys.rst:141 +#: ../Doc/library/sys.rst:147 msgid "" "Also note that if ``sys.breakpointhook()`` is overridden programmatically, :" "envvar:`PYTHONBREAKPOINT` is *not* consulted." @@ -251,7 +259,7 @@ msgstr "" "Notez également que si ``sys.breakpointhook()`` est surchargé de manière " "programmatique, :envvar:`PYTHONBREAKPOINT` *n'est pas* consulté." -#: ../Doc/library/sys.rst:148 +#: ../Doc/library/sys.rst:154 msgid "" "Print low-level information to stderr about the state of CPython's memory " "allocator." @@ -259,7 +267,7 @@ msgstr "" "Affiche des informations bas-niveau sur la sortie d'erreur à propos de " "l'état de l'allocateur de mémoire de CPython." -#: ../Doc/library/sys.rst:151 +#: ../Doc/library/sys.rst:157 msgid "" "If Python is configured --with-pydebug, it also performs some expensive " "internal consistency checks." @@ -267,7 +275,7 @@ msgstr "" "Si Python est configuré avec l'option *--with-pydebug*, il effectuera aussi " "quelques coûteuses vérifications de cohérence interne." -#: ../Doc/library/sys.rst:158 +#: ../Doc/library/sys.rst:164 msgid "" "This function is specific to CPython. The exact output format is not " "defined here, and may change." @@ -275,16 +283,16 @@ msgstr "" "Cette fonction est spécifique à CPython. Le format de sa sortie n'est pas " "définit ici et pourrait changer." -#: ../Doc/library/sys.rst:164 +#: ../Doc/library/sys.rst:170 msgid "Integer specifying the handle of the Python DLL." msgstr "Nombre entier spécifiant le descripteur de la DLL Python." -#: ../Doc/library/sys.rst:166 ../Doc/library/sys.rst:657 -#: ../Doc/library/sys.rst:1330 ../Doc/library/sys.rst:1494 +#: ../Doc/library/sys.rst:172 ../Doc/library/sys.rst:663 +#: ../Doc/library/sys.rst:1336 ../Doc/library/sys.rst:1500 msgid ":ref:`Availability `: Windows." msgstr ":ref:`Disponibilité ` : Windows." -#: ../Doc/library/sys.rst:171 +#: ../Doc/library/sys.rst:177 msgid "" "If *value* is not ``None``, this function prints ``repr(value)`` to ``sys." "stdout``, and saves *value* in ``builtins._``. If ``repr(value)`` is not " @@ -299,7 +307,7 @@ msgstr "" "``'strict'``), elle sera encodée par ``sys.stdout.encoding`` avec le " "gestionnaire d'erreur ``'backslashreplace'``." -#: ../Doc/library/sys.rst:177 +#: ../Doc/library/sys.rst:183 msgid "" "``sys.displayhook`` is called on the result of evaluating an :term:" "`expression` entered in an interactive Python session. The display of these " @@ -311,17 +319,17 @@ msgstr "" "valeurs peut être personnalisé en assignant une autre fonction d'un argument " "à ``sys.displayhook``." -#: ../Doc/library/sys.rst:181 +#: ../Doc/library/sys.rst:187 msgid "Pseudo-code::" msgstr "Pseudo-code ::" -#: ../Doc/library/sys.rst:201 +#: ../Doc/library/sys.rst:207 msgid "Use ``'backslashreplace'`` error handler on :exc:`UnicodeEncodeError`." msgstr "" "Utiliser le gestionnaire d'erreur ``'backslashreplace'`` en cas d':exc:" "`UnicodeEncodeError`." -#: ../Doc/library/sys.rst:207 +#: ../Doc/library/sys.rst:213 msgid "" "If this is true, Python won't try to write ``.pyc`` files on the import of " "source modules. This value is initially set to ``True`` or ``False`` " @@ -336,14 +344,14 @@ msgstr "" "pouvez aussi la modifier vous-même pour contrôler la génération des fichiers " "de *bytecode*." -#: ../Doc/library/sys.rst:216 +#: ../Doc/library/sys.rst:222 msgid "" "This function prints out a given traceback and exception to ``sys.stderr``." msgstr "" "Cette fonction affiche la *traceback* et l'exception donnée sur ``sys." "stderr``." -#: ../Doc/library/sys.rst:218 +#: ../Doc/library/sys.rst:224 msgid "" "When an exception is raised and uncaught, the interpreter calls ``sys." "excepthook`` with three arguments, the exception class, exception instance, " @@ -361,7 +369,7 @@ msgstr "" "quitte. La gestion de ces exceptions peut être personnalisé en affectant une " "autre fonction de trois arguments à ``sys.excepthook``." -#: ../Doc/library/sys.rst:230 +#: ../Doc/library/sys.rst:236 msgid "" "These objects contain the original values of ``breakpointhook``, " "``displayhook``, and ``excepthook`` at the start of the program. They are " @@ -375,11 +383,11 @@ msgstr "" "``excepthook`` puissent être restaurés au cas où ils seraient remplacés par " "des objets cassés ou alternatifs." -#: ../Doc/library/sys.rst:236 +#: ../Doc/library/sys.rst:242 msgid "__breakpointhook__" msgstr "__breakpointhook__" -#: ../Doc/library/sys.rst:242 +#: ../Doc/library/sys.rst:248 msgid "" "This function returns a tuple of three values that give information about " "the exception that is currently being handled. The information returned is " @@ -400,7 +408,7 @@ msgstr "" "*except*\". Pour chaque *stack frame*, seule l'information à propos d'une " "exception actuellement traitée est accessible." -#: ../Doc/library/sys.rst:253 +#: ../Doc/library/sys.rst:259 msgid "" "If no exception is being handled anywhere on the stack, a tuple containing " "three ``None`` values is returned. Otherwise, the values returned are " @@ -419,7 +427,7 @@ msgstr "" "encapsule la pile d'appels au point où l'exception s'est produite à " "l'origine." -#: ../Doc/library/sys.rst:264 +#: ../Doc/library/sys.rst:270 msgid "" "A string giving the site-specific directory prefix where the platform-" "dependent Python files are installed; by default, this is also ``'/usr/" @@ -440,7 +448,7 @@ msgstr "" "python{X.Y}/lib-dynload`, où *X.Y* est le numéro de version de Python, par " "exemple ``3.2``." -#: ../Doc/library/sys.rst:275 +#: ../Doc/library/sys.rst:281 msgid "" "If a :ref:`virtual environment ` is in effect, this value will be " "changed in ``site.py`` to point to the virtual environment. The value for " @@ -451,7 +459,7 @@ msgstr "" "modifiée par ``site.py`` pour pointer vers l'environnement virtuel. La " "valeur d'origine sera toujours disponible via :data:`base_exec_prefix`." -#: ../Doc/library/sys.rst:283 +#: ../Doc/library/sys.rst:289 msgid "" "A string giving the absolute path of the executable binary for the Python " "interpreter, on systems where this makes sense. If Python is unable to " @@ -463,7 +471,7 @@ msgstr "" "n'est pas capable de récupérer le chemin réel de son exécutable, :data:`sys." "executable` sera une chaîne vide ou ``None``." -#: ../Doc/library/sys.rst:291 +#: ../Doc/library/sys.rst:297 msgid "" "Exit from Python. This is implemented by raising the :exc:`SystemExit` " "exception, so cleanup actions specified by finally clauses of :keyword:`try` " @@ -476,7 +484,7 @@ msgstr "" "est aussi possible d'intercepter la tentative de sortie à un niveau au " "dessus." -#: ../Doc/library/sys.rst:296 +#: ../Doc/library/sys.rst:302 msgid "" "The optional argument *arg* can be an integer giving the exit status " "(defaulting to zero), or another type of object. If it is an integer, zero " @@ -505,7 +513,7 @@ msgstr "" "1. Typiquement, ``sys.exit(\"some error message\")`` est un moyen rapide de " "quitter un programme en cas d'erreur." -#: ../Doc/library/sys.rst:309 +#: ../Doc/library/sys.rst:315 msgid "" "Since :func:`exit` ultimately \"only\" raises an exception, it will only " "exit the process when called from the main thread, and the exception is not " @@ -515,7 +523,7 @@ msgstr "" "ne fera quitter le processus que si elle est appelée depuis le fil " "d'exécution principal, et que l'exception n'est pas interceptée." -#: ../Doc/library/sys.rst:313 +#: ../Doc/library/sys.rst:319 msgid "" "If an error occurs in the cleanup after the Python interpreter has caught :" "exc:`SystemExit` (such as an error flushing buffered data in the standard " @@ -525,7 +533,7 @@ msgstr "" "intercepté un :exc:`SystemExit` (typiquement une erreur en vidant les " "tampons des sorties standard), le code de sortie est changé à 120." -#: ../Doc/library/sys.rst:321 +#: ../Doc/library/sys.rst:327 msgid "" "The :term:`struct sequence` *flags* exposes the status of command line " "flags. The attributes are read only." @@ -533,149 +541,149 @@ msgstr "" "La :term:`struct sequence` *flags* expose l'état des options de ligne de " "commande. Ces attributs sont en lecture seule." -#: ../Doc/library/sys.rst:325 ../Doc/library/sys.rst:373 -#: ../Doc/library/sys.rst:718 +#: ../Doc/library/sys.rst:331 ../Doc/library/sys.rst:379 +#: ../Doc/library/sys.rst:724 msgid "attribute" msgstr "attribut" -#: ../Doc/library/sys.rst:325 +#: ../Doc/library/sys.rst:331 msgid "flag" msgstr "option" -#: ../Doc/library/sys.rst:327 +#: ../Doc/library/sys.rst:333 msgid ":const:`debug`" msgstr ":const:`debug`" -#: ../Doc/library/sys.rst:327 +#: ../Doc/library/sys.rst:333 msgid ":option:`-d`" msgstr ":option:`-d`" -#: ../Doc/library/sys.rst:328 +#: ../Doc/library/sys.rst:334 msgid ":const:`inspect`" msgstr ":const:`inspect`" -#: ../Doc/library/sys.rst:328 ../Doc/library/sys.rst:329 +#: ../Doc/library/sys.rst:334 ../Doc/library/sys.rst:335 msgid ":option:`-i`" msgstr ":option:`-i`" -#: ../Doc/library/sys.rst:329 +#: ../Doc/library/sys.rst:335 msgid ":const:`interactive`" msgstr ":const:`interactive`" -#: ../Doc/library/sys.rst:330 +#: ../Doc/library/sys.rst:336 msgid ":const:`isolated`" msgstr ":const:`isolated`" -#: ../Doc/library/sys.rst:330 +#: ../Doc/library/sys.rst:336 msgid ":option:`-I`" msgstr ":option:`-I`" -#: ../Doc/library/sys.rst:331 +#: ../Doc/library/sys.rst:337 msgid ":const:`optimize`" msgstr ":const:`optimize`" -#: ../Doc/library/sys.rst:331 +#: ../Doc/library/sys.rst:337 msgid ":option:`-O` or :option:`-OO`" msgstr ":option:`-O` or :option:`-OO`" -#: ../Doc/library/sys.rst:332 +#: ../Doc/library/sys.rst:338 msgid ":const:`dont_write_bytecode`" msgstr ":const:`dont_write_bytecode`" -#: ../Doc/library/sys.rst:332 +#: ../Doc/library/sys.rst:338 msgid ":option:`-B`" msgstr ":option:`-B`" -#: ../Doc/library/sys.rst:333 +#: ../Doc/library/sys.rst:339 msgid ":const:`no_user_site`" msgstr ":const:`no_user_site`" -#: ../Doc/library/sys.rst:333 +#: ../Doc/library/sys.rst:339 msgid ":option:`-s`" msgstr ":option:`-s`" -#: ../Doc/library/sys.rst:334 +#: ../Doc/library/sys.rst:340 msgid ":const:`no_site`" msgstr ":const:`no_site`" -#: ../Doc/library/sys.rst:334 +#: ../Doc/library/sys.rst:340 msgid ":option:`-S`" msgstr ":option:`-S`" -#: ../Doc/library/sys.rst:335 +#: ../Doc/library/sys.rst:341 msgid ":const:`ignore_environment`" msgstr ":const:`ignore_environment`" -#: ../Doc/library/sys.rst:335 +#: ../Doc/library/sys.rst:341 msgid ":option:`-E`" msgstr ":option:`-E`" -#: ../Doc/library/sys.rst:336 +#: ../Doc/library/sys.rst:342 msgid ":const:`verbose`" msgstr ":const:`verbose`" -#: ../Doc/library/sys.rst:336 +#: ../Doc/library/sys.rst:342 msgid ":option:`-v`" msgstr ":option:`-v`" -#: ../Doc/library/sys.rst:337 +#: ../Doc/library/sys.rst:343 msgid ":const:`bytes_warning`" msgstr ":const:`bytes_warning`" -#: ../Doc/library/sys.rst:337 +#: ../Doc/library/sys.rst:343 msgid ":option:`-b`" msgstr ":option:`-b`" -#: ../Doc/library/sys.rst:338 +#: ../Doc/library/sys.rst:344 msgid ":const:`quiet`" msgstr ":const:`quiet`" -#: ../Doc/library/sys.rst:338 +#: ../Doc/library/sys.rst:344 msgid ":option:`-q`" msgstr ":option:`-q`" -#: ../Doc/library/sys.rst:339 +#: ../Doc/library/sys.rst:345 msgid ":const:`hash_randomization`" msgstr ":const:`hash_randomization`" -#: ../Doc/library/sys.rst:339 +#: ../Doc/library/sys.rst:345 msgid ":option:`-R`" msgstr ":option:`-R`" -#: ../Doc/library/sys.rst:340 +#: ../Doc/library/sys.rst:346 msgid ":const:`dev_mode`" msgstr ":const:`dev_mode`" -#: ../Doc/library/sys.rst:340 +#: ../Doc/library/sys.rst:346 msgid ":option:`-X` ``dev``" msgstr ":option:`-X` ``dev``" -#: ../Doc/library/sys.rst:341 +#: ../Doc/library/sys.rst:347 msgid ":const:`utf8_mode`" msgstr ":const:`utf8_mode`" -#: ../Doc/library/sys.rst:341 +#: ../Doc/library/sys.rst:347 msgid ":option:`-X` ``utf8``" msgstr ":option:`-X` ``utf8``" -#: ../Doc/library/sys.rst:344 +#: ../Doc/library/sys.rst:350 msgid "Added ``quiet`` attribute for the new :option:`-q` flag." msgstr "Ajout de l'attribut ``quiet`` pour la nouvelle option :option:`-q`." -#: ../Doc/library/sys.rst:347 +#: ../Doc/library/sys.rst:353 msgid "The ``hash_randomization`` attribute." msgstr "L'attribut ``hash_randomization``." -#: ../Doc/library/sys.rst:350 +#: ../Doc/library/sys.rst:356 msgid "Removed obsolete ``division_warning`` attribute." msgstr "Suppression de l'attribut obsolète ``division_warning``." -#: ../Doc/library/sys.rst:353 +#: ../Doc/library/sys.rst:359 msgid "Added ``isolated`` attribute for :option:`-I` ``isolated`` flag." msgstr "" "Ajout de l'attribut ``isolated`` pour l'option :option:`-I` ``isolated``." -#: ../Doc/library/sys.rst:356 +#: ../Doc/library/sys.rst:362 msgid "" "Added ``dev_mode`` attribute for the new :option:`-X` ``dev`` flag and " "``utf8_mode`` attribute for the new :option:`-X` ``utf8`` flag." @@ -684,7 +692,7 @@ msgstr "" "``dev`` et l'attribut ``utf8_mode`` pour la nouvelle option :option:`-X` " "``utf8``." -#: ../Doc/library/sys.rst:363 +#: ../Doc/library/sys.rst:369 msgid "" "A :term:`struct sequence` holding information about the float type. It " "contains low level information about the precision and internal " @@ -701,23 +709,23 @@ msgstr "" "IEC C standard* [C99]_, *Characteristics of floating types*, pour plus de " "détails." -#: ../Doc/library/sys.rst:373 +#: ../Doc/library/sys.rst:379 msgid "float.h macro" msgstr "macro *float.h*" -#: ../Doc/library/sys.rst:373 ../Doc/library/sys.rst:718 +#: ../Doc/library/sys.rst:379 ../Doc/library/sys.rst:724 msgid "explanation" msgstr "explication" -#: ../Doc/library/sys.rst:375 +#: ../Doc/library/sys.rst:381 msgid ":const:`epsilon`" msgstr ":const:`epsilon`" -#: ../Doc/library/sys.rst:375 +#: ../Doc/library/sys.rst:381 msgid "DBL_EPSILON" msgstr "DBL_EPSILON" -#: ../Doc/library/sys.rst:375 +#: ../Doc/library/sys.rst:381 msgid "" "difference between 1 and the least value greater than 1 that is " "representable as a float" @@ -725,15 +733,15 @@ msgstr "" "différence entre 1 et la plus petite valeur plus grande que 1 représentable " "en *float*" -#: ../Doc/library/sys.rst:378 +#: ../Doc/library/sys.rst:384 msgid ":const:`dig`" msgstr ":const:`dig`" -#: ../Doc/library/sys.rst:378 +#: ../Doc/library/sys.rst:384 msgid "DBL_DIG" msgstr "DBL_DIG" -#: ../Doc/library/sys.rst:378 +#: ../Doc/library/sys.rst:384 msgid "" "maximum number of decimal digits that can be faithfully represented in a " "float; see below" @@ -741,15 +749,15 @@ msgstr "" "nombre maximum de décimales pouvant être représentées fidèlement dans un " "*float* (voir ci-dessous)" -#: ../Doc/library/sys.rst:381 +#: ../Doc/library/sys.rst:387 msgid ":const:`mant_dig`" msgstr ":const:`mant_dig`" -#: ../Doc/library/sys.rst:381 +#: ../Doc/library/sys.rst:387 msgid "DBL_MANT_DIG" msgstr "DBL_MANT_DIG" -#: ../Doc/library/sys.rst:381 +#: ../Doc/library/sys.rst:387 msgid "" "float precision: the number of base-``radix`` digits in the significand of a " "float" @@ -757,42 +765,42 @@ msgstr "" "précision : nombre de *base-*\\ ``radix`` chiffres dans la mantisse du " "*float*" -#: ../Doc/library/sys.rst:384 +#: ../Doc/library/sys.rst:390 msgid ":const:`max`" msgstr ":const:`max`" -#: ../Doc/library/sys.rst:384 +#: ../Doc/library/sys.rst:390 msgid "DBL_MAX" msgstr "DBL_MAX" -#: ../Doc/library/sys.rst:384 +#: ../Doc/library/sys.rst:390 msgid "maximum representable finite float" msgstr "plus grand `float` fini représentable" -#: ../Doc/library/sys.rst:386 +#: ../Doc/library/sys.rst:392 msgid ":const:`max_exp`" msgstr ":const:`max_exp`" -#: ../Doc/library/sys.rst:386 +#: ../Doc/library/sys.rst:392 msgid "DBL_MAX_EXP" msgstr "DBL_MAX_EXP" -#: ../Doc/library/sys.rst:386 +#: ../Doc/library/sys.rst:392 msgid "" "maximum integer e such that ``radix**(e-1)`` is a representable finite float" msgstr "" "plus grand nombre entier *e* tel que ``radix**(e-1)`` soit représentable " "sous forme de *float* finit" -#: ../Doc/library/sys.rst:389 +#: ../Doc/library/sys.rst:395 msgid ":const:`max_10_exp`" msgstr ":const:`max_10_exp`" -#: ../Doc/library/sys.rst:389 +#: ../Doc/library/sys.rst:395 msgid "DBL_MAX_10_EXP" msgstr "DBL_MAX_10_EXP" -#: ../Doc/library/sys.rst:389 +#: ../Doc/library/sys.rst:395 msgid "" "maximum integer e such that ``10**e`` is in the range of representable " "finite floats" @@ -800,66 +808,66 @@ msgstr "" "plus grand nombre entier *e* tel que ``10**e`` est dans l'intervalle des " "nombre flottants finis" -#: ../Doc/library/sys.rst:392 +#: ../Doc/library/sys.rst:398 msgid ":const:`min`" msgstr ":const:`min`" -#: ../Doc/library/sys.rst:392 +#: ../Doc/library/sys.rst:398 msgid "DBL_MIN" msgstr "DBL_MIN" -#: ../Doc/library/sys.rst:392 +#: ../Doc/library/sys.rst:398 msgid "minimum positive normalized float" msgstr "plus petit nombre à virgule flottante positif normalisé" -#: ../Doc/library/sys.rst:394 +#: ../Doc/library/sys.rst:400 msgid ":const:`min_exp`" msgstr ":const:`min_exp`" -#: ../Doc/library/sys.rst:394 +#: ../Doc/library/sys.rst:400 msgid "DBL_MIN_EXP" msgstr "DBL_MIN_EXP" -#: ../Doc/library/sys.rst:394 +#: ../Doc/library/sys.rst:400 msgid "minimum integer e such that ``radix**(e-1)`` is a normalized float" msgstr "" "plus petit entier *e* tel que ``radix**(e-1)`` est un *float* normalisé" -#: ../Doc/library/sys.rst:397 +#: ../Doc/library/sys.rst:403 msgid ":const:`min_10_exp`" msgstr ":const:`min_10_exp`" -#: ../Doc/library/sys.rst:397 +#: ../Doc/library/sys.rst:403 msgid "DBL_MIN_10_EXP" msgstr "DBL_MIN_10_EXP" -#: ../Doc/library/sys.rst:397 +#: ../Doc/library/sys.rst:403 msgid "minimum integer e such that ``10**e`` is a normalized float" msgstr "" "plus petit nombre entier *e* tel que ``10**e`` est un nombre à virgule " "flottante normalisé" -#: ../Doc/library/sys.rst:400 +#: ../Doc/library/sys.rst:406 msgid ":const:`radix`" msgstr ":const:`radix`" -#: ../Doc/library/sys.rst:400 +#: ../Doc/library/sys.rst:406 msgid "FLT_RADIX" msgstr "FLT_RADIX" -#: ../Doc/library/sys.rst:400 +#: ../Doc/library/sys.rst:406 msgid "radix of exponent representation" msgstr "base de la représentation de l'exposant" -#: ../Doc/library/sys.rst:402 +#: ../Doc/library/sys.rst:408 msgid ":const:`rounds`" msgstr ":const:`rounds`" -#: ../Doc/library/sys.rst:402 +#: ../Doc/library/sys.rst:408 msgid "FLT_ROUNDS" msgstr "FLT_ROUNDS" -#: ../Doc/library/sys.rst:402 +#: ../Doc/library/sys.rst:408 msgid "" "integer constant representing the rounding mode used for arithmetic " "operations. This reflects the value of the system FLT_ROUNDS macro at " @@ -872,7 +880,7 @@ msgstr "" "5.2.4.4.2.2 de la norme C99 pour une explication des valeurs possibles et de " "leurs significations." -#: ../Doc/library/sys.rst:410 +#: ../Doc/library/sys.rst:416 msgid "" "The attribute :attr:`sys.float_info.dig` needs further explanation. If " "``s`` is any string representing a decimal number with at most :attr:`sys." @@ -884,7 +892,7 @@ msgstr "" "float_info.dig` chiffres significatifs, alors, convertir ``s`` en un nombre " "à virgule flottante puis à nouveau en chaîne redonnera la même valeur ::" -#: ../Doc/library/sys.rst:423 +#: ../Doc/library/sys.rst:429 msgid "" "But for strings with more than :attr:`sys.float_info.dig` significant " "digits, this isn't always true::" @@ -892,7 +900,7 @@ msgstr "" "Cependant, pour les chaînes avec plus de :attr:`sys.float_info.dig` chiffres " "significatifs, ce n'est pas toujours vrai : ::" -#: ../Doc/library/sys.rst:432 +#: ../Doc/library/sys.rst:438 msgid "" "A string indicating how the :func:`repr` function behaves for floats. If " "the string has value ``'short'`` then for a finite float ``x``, ``repr(x)`` " @@ -908,7 +916,7 @@ msgstr "" "Python 3.1. Autrement, ``float_repr_style`` a la valeur ``'legacy'`` et\n" "``repr(x)`` se comporte comme les versions antérieures à 3.1." -#: ../Doc/library/sys.rst:445 +#: ../Doc/library/sys.rst:451 msgid "" "Return the number of memory blocks currently allocated by the interpreter, " "regardless of their size. This function is mainly useful for tracking and " @@ -924,7 +932,7 @@ msgstr "" "`_clear_type_cache()` et :func:`gc.collect()` peut permettre d'obtenir des " "résultats plus prévisibles." -#: ../Doc/library/sys.rst:452 +#: ../Doc/library/sys.rst:458 msgid "" "If a Python build or implementation cannot reasonably compute this " "information, :func:`getallocatedblocks()` is allowed to return 0 instead." @@ -932,27 +940,27 @@ msgstr "" "Si Python n'arrive pas a calculer raisonnablement cette information, :func:" "`getallocatedblocks()` est autorisé à renvoyer 0 à la place." -#: ../Doc/library/sys.rst:460 +#: ../Doc/library/sys.rst:466 msgid "Return the build time API version of Android as an integer." msgstr "" "Renvoie la version de l'API Android utilisée pour compiler sous forme d'un " "entier." -#: ../Doc/library/sys.rst:463 +#: ../Doc/library/sys.rst:469 msgid ":ref:`Availability `: Android." msgstr ":ref:`Disponibilité ` : Android." -#: ../Doc/library/sys.rst:469 +#: ../Doc/library/sys.rst:475 msgid "" "Return the interpreter's \"check interval\"; see :func:`setcheckinterval`." msgstr "" "Renvoie le *check interval* de l'interpréteur, voir :func:`setcheckinterval`." -#: ../Doc/library/sys.rst:471 +#: ../Doc/library/sys.rst:477 msgid "Use :func:`getswitchinterval` instead." msgstr "Utilisez plutôt :func:`getswitchinterval`." -#: ../Doc/library/sys.rst:477 +#: ../Doc/library/sys.rst:483 msgid "" "Return the name of the current default string encoding used by the Unicode " "implementation." @@ -960,7 +968,7 @@ msgstr "" "Renvoie le nom du codage par défaut actuellement utilisé par " "l'implémentation *Unicode* pour coder les chaînes." -#: ../Doc/library/sys.rst:483 +#: ../Doc/library/sys.rst:489 msgid "" "Return the current value of the flags that are used for :c:func:`dlopen` " "calls. Symbolic names for the flag values can be found in the :mod:`os` " @@ -970,11 +978,11 @@ msgstr "" "`dlopen`. Les noms symboliques valeurs peuvent être trouvées dans le module :" "mod:`os`. (Ce sont les constantes ``RTLD_xxx`` e.g. :data:`os.RTLD_LAZY`)." -#: ../Doc/library/sys.rst:488 ../Doc/library/sys.rst:1083 +#: ../Doc/library/sys.rst:494 ../Doc/library/sys.rst:1089 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilité ` : Unix." -#: ../Doc/library/sys.rst:493 +#: ../Doc/library/sys.rst:499 msgid "" "Return the name of the encoding used to convert between Unicode filenames " "and bytes filenames. For best compatibility, str should be used for " @@ -990,11 +998,11 @@ msgstr "" "fichiers devraient supporter les deux (*str* ou *bytes*), et convertir en " "interne dans la représentation du système." -#: ../Doc/library/sys.rst:500 +#: ../Doc/library/sys.rst:506 msgid "This encoding is always ASCII-compatible." msgstr "Cet encodage est toujours compatible avec ASCII." -#: ../Doc/library/sys.rst:502 ../Doc/library/sys.rst:531 +#: ../Doc/library/sys.rst:508 ../Doc/library/sys.rst:537 msgid "" ":func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that " "the correct encoding and errors mode are used." @@ -1003,20 +1011,20 @@ msgstr "" "utilisées pour s'assurer qu'un encodage et un gestionnaire d'erreurs correct " "sont utilisés." -#: ../Doc/library/sys.rst:505 +#: ../Doc/library/sys.rst:511 msgid "In the UTF-8 mode, the encoding is ``utf-8`` on any platform." msgstr "" "Dans le mode UTF-8, l'encodage est ``'utf-8'`` sur toutes les plate-formes." -#: ../Doc/library/sys.rst:507 +#: ../Doc/library/sys.rst:513 msgid "On Mac OS X, the encoding is ``'utf-8'``." msgstr "Sur Mac OS X, l'encodage est ``'utf-8'``." -#: ../Doc/library/sys.rst:509 +#: ../Doc/library/sys.rst:515 msgid "On Unix, the encoding is the locale encoding." msgstr "Sur Unix, l'encodage est celui des paramètres régionaux." -#: ../Doc/library/sys.rst:511 +#: ../Doc/library/sys.rst:517 msgid "" "On Windows, the encoding may be ``'utf-8'`` or ``'mbcs'``, depending on user " "configuration." @@ -1024,11 +1032,11 @@ msgstr "" "Sur Windows, l'encodage peut être ``'utf-8'`` ou ``'mbcs'``, en fonction des " "paramètres de l'utilisateur." -#: ../Doc/library/sys.rst:514 +#: ../Doc/library/sys.rst:520 msgid ":func:`getfilesystemencoding` result cannot be ``None`` anymore." msgstr ":func:`getfilesystemencoding` ne peut plus renvoyer ``None``." -#: ../Doc/library/sys.rst:517 +#: ../Doc/library/sys.rst:523 msgid "" "Windows is no longer guaranteed to return ``'mbcs'``. See :pep:`529` and :" "func:`_enablelegacywindowsfsencoding` for more information." @@ -1036,11 +1044,11 @@ msgstr "" "Sur Windows, on est plus assurés d'obtenir ``'mbcs'``. Voir la :pep:`529` " "et :func:`_enablelegacywindowsfsencoding` pour plus d'informations." -#: ../Doc/library/sys.rst:521 +#: ../Doc/library/sys.rst:527 msgid "Return 'utf-8' in the UTF-8 mode." msgstr "Renvoie `\"utf-8\"` en mode UTF-8." -#: ../Doc/library/sys.rst:527 +#: ../Doc/library/sys.rst:533 msgid "" "Return the name of the error mode used to convert between Unicode filenames " "and bytes filenames. The encoding name is returned from :func:" @@ -1050,7 +1058,7 @@ msgstr "" "noms de fichiers entre Unicode et octets. Le nom de l'encodage est renvoyé " "par :func:`getfilesystemencoding`." -#: ../Doc/library/sys.rst:538 +#: ../Doc/library/sys.rst:544 msgid "" "Return the reference count of the *object*. The count returned is generally " "one higher than you might expect, because it includes the (temporary) " @@ -1060,7 +1068,7 @@ msgstr "" "généralement d'une référence de plus qu'attendu, puisqu'il compte la " "référence (temporaire) de l'argument à :func:`getrefcount`." -#: ../Doc/library/sys.rst:545 +#: ../Doc/library/sys.rst:551 msgid "" "Return the current value of the recursion limit, the maximum depth of the " "Python interpreter stack. This limit prevents infinite recursion from " @@ -1072,7 +1080,7 @@ msgstr "" "d'une récursion infinie à cause d'un débordement de la pile. Elle peut être " "modifiée par :func:`setrecursionlimit`." -#: ../Doc/library/sys.rst:553 +#: ../Doc/library/sys.rst:559 msgid "" "Return the size of an object in bytes. The object can be any type of object. " "All built-in objects will return correct results, but this does not have to " @@ -1083,7 +1091,7 @@ msgstr "" "peut ne pas être toujours vrai pour les extensions, la valeur étant " "dépendante de l'implémentation." -#: ../Doc/library/sys.rst:558 +#: ../Doc/library/sys.rst:564 msgid "" "Only the memory consumption directly attributed to the object is accounted " "for, not the memory consumption of objects it refers to." @@ -1091,7 +1099,7 @@ msgstr "" "Seule la mémoire directement attribuée à l'objet est prise en compte, pas la " "mémoire consommée par les objets vers lesquels il a des références." -#: ../Doc/library/sys.rst:561 +#: ../Doc/library/sys.rst:567 msgid "" "If given, *default* will be returned if the object does not provide means to " "retrieve the size. Otherwise a :exc:`TypeError` will be raised." @@ -1099,7 +1107,7 @@ msgstr "" "S'il est fourni, *default* sera renvoyé si l'objet ne fournit aucun moyen de " "récupérer sa taille. Sinon, une exception :exc:`TypeError` sera levée." -#: ../Doc/library/sys.rst:564 +#: ../Doc/library/sys.rst:570 msgid "" ":func:`getsizeof` calls the object's ``__sizeof__`` method and adds an " "additional garbage collector overhead if the object is managed by the " @@ -1108,7 +1116,7 @@ msgstr "" ":func:`getsizeof` appelle la méthode ``__sizeof__`` de l'objet, et s'il est " "géré par lui, ajoute le surcoût du ramasse-miettes." -#: ../Doc/library/sys.rst:568 +#: ../Doc/library/sys.rst:574 msgid "" "See `recursive sizeof recipe `_ " "for an example of using :func:`getsizeof` recursively to find the size of " @@ -1118,7 +1126,7 @@ msgstr "" "recipes/577504>`_ pour un exemple d'utilisation récursive de :func:" "`getsizeof` pour trouver la taille d'un contenant et de son contenu." -#: ../Doc/library/sys.rst:574 +#: ../Doc/library/sys.rst:580 msgid "" "Return the interpreter's \"thread switch interval\"; see :func:" "`setswitchinterval`." @@ -1126,7 +1134,7 @@ msgstr "" "Renvoie la valeur du *thread switch interval* de l'interpréteur, voir :func:" "`setswitchinterval`." -#: ../Doc/library/sys.rst:582 +#: ../Doc/library/sys.rst:588 msgid "" "Return a frame object from the call stack. If optional integer *depth* is " "given, return the frame object that many calls below the top of the stack. " @@ -1140,7 +1148,7 @@ msgstr "" "exc:`ValueError` est levée. La profondeur par défaut est zéro, donnant ainsi " "la *frame* du dessus de la pile." -#: ../Doc/library/sys.rst:589 +#: ../Doc/library/sys.rst:595 msgid "" "This function should be used for internal and specialized purposes only. It " "is not guaranteed to exist in all implementations of Python." @@ -1149,16 +1157,16 @@ msgstr "" "spécifique. Il n'est pas garanti qu'elle existe dans toutes les " "implémentations de Python." -#: ../Doc/library/sys.rst:599 +#: ../Doc/library/sys.rst:605 msgid "Get the profiler function as set by :func:`setprofile`." msgstr "" "Renvoie la fonction de profilage tel que défini par :func:`setprofile`." -#: ../Doc/library/sys.rst:608 +#: ../Doc/library/sys.rst:614 msgid "Get the trace function as set by :func:`settrace`." msgstr "Renvoie la fonction de traçage tel que définie par :func:`settrace`." -#: ../Doc/library/sys.rst:612 +#: ../Doc/library/sys.rst:618 msgid "" "The :func:`gettrace` function is intended only for implementing debuggers, " "profilers, coverage tools and the like. Its behavior is part of the " @@ -1170,7 +1178,7 @@ msgstr "" "dépend de l'implémentation et non du langage, elle n'est donc pas forcément " "disponible dans toutes les implémentations de Python." -#: ../Doc/library/sys.rst:620 +#: ../Doc/library/sys.rst:626 msgid "" "Return a named tuple describing the Windows version currently running. The " "named elements are *major*, *minor*, *build*, *platform*, *service_pack*, " @@ -1193,47 +1201,47 @@ msgstr "" "les versions antérieures, seuls les 5 premiers éléments sont accessibles par " "leur indice." -#: ../Doc/library/sys.rst:631 +#: ../Doc/library/sys.rst:637 msgid "*platform* will be :const:`2 (VER_PLATFORM_WIN32_NT)`." msgstr "*platform* sera :const:`2 (VER_PLATFORM_WIN32_NT)`." -#: ../Doc/library/sys.rst:633 +#: ../Doc/library/sys.rst:639 msgid "*product_type* may be one of the following values:" msgstr "*product_type* peut être une des valeurs suivantes :" -#: ../Doc/library/sys.rst:636 +#: ../Doc/library/sys.rst:642 msgid "Constant" msgstr "Constante" -#: ../Doc/library/sys.rst:636 +#: ../Doc/library/sys.rst:642 msgid "Meaning" msgstr "Signification" -#: ../Doc/library/sys.rst:638 +#: ../Doc/library/sys.rst:644 msgid ":const:`1 (VER_NT_WORKSTATION)`" msgstr ":const:`1 (VER_NT_WORKSTATION)`" -#: ../Doc/library/sys.rst:638 +#: ../Doc/library/sys.rst:644 msgid "The system is a workstation." msgstr "Le système une station de travail." -#: ../Doc/library/sys.rst:640 +#: ../Doc/library/sys.rst:646 msgid ":const:`2 (VER_NT_DOMAIN_CONTROLLER)`" msgstr ":const:`2 (VER_NT_DOMAIN_CONTROLLER)`" -#: ../Doc/library/sys.rst:640 +#: ../Doc/library/sys.rst:646 msgid "The system is a domain controller." msgstr "Le système est un contrôleur de domaine." -#: ../Doc/library/sys.rst:643 +#: ../Doc/library/sys.rst:649 msgid ":const:`3 (VER_NT_SERVER)`" msgstr ":const:`3 (VER_NT_SERVER)`" -#: ../Doc/library/sys.rst:643 +#: ../Doc/library/sys.rst:649 msgid "The system is a server, but not a domain controller." msgstr "Le système est un serveur, mais pas un contrôleur de domaine." -#: ../Doc/library/sys.rst:647 +#: ../Doc/library/sys.rst:653 msgid "" "This function wraps the Win32 :c:func:`GetVersionEx` function; see the " "Microsoft documentation on :c:func:`OSVERSIONINFOEX` for more information " @@ -1244,7 +1252,7 @@ msgstr "" "de Microsoft sur :c:func:`OSVERSIONINFOEX` pour plus d'informations sur ces " "champs." -#: ../Doc/library/sys.rst:651 +#: ../Doc/library/sys.rst:657 msgid "" "*platform_version* returns the accurate major version, minor version and " "build number of the current operating system, rather than the version that " @@ -1256,7 +1264,7 @@ msgstr "" "émulée pour ce processus. Il est destiné à être utilisé pour de la " "journalisation plutôt que pour la détection de fonctionnalités." -#: ../Doc/library/sys.rst:658 +#: ../Doc/library/sys.rst:664 msgid "" "Changed to a named tuple and added *service_pack_minor*, " "*service_pack_major*, *suite_mask*, and *product_type*." @@ -1264,11 +1272,11 @@ msgstr "" "Changé en un *tuple* nommé, et ajout de *service_pack_minor*, " "*service_pack_major*, *suite_mask*, et *product_type*." -#: ../Doc/library/sys.rst:662 +#: ../Doc/library/sys.rst:668 msgid "Added *platform_version*" msgstr "Ajout de *platform_version*" -#: ../Doc/library/sys.rst:668 +#: ../Doc/library/sys.rst:674 msgid "" "Returns an *asyncgen_hooks* object, which is similar to a :class:" "`~collections.namedtuple` of the form `(firstiter, finalizer)`, where " @@ -1284,11 +1292,11 @@ msgstr "" "pour planifier la finalisation d'un générateur asynchrone par un *event " "loop*." -#: ../Doc/library/sys.rst:675 +#: ../Doc/library/sys.rst:681 msgid "See :pep:`525` for more details." msgstr "Voir la :pep:`525` pour plus d'informations." -#: ../Doc/library/sys.rst:679 ../Doc/library/sys.rst:1254 +#: ../Doc/library/sys.rst:685 ../Doc/library/sys.rst:1260 msgid "" "This function has been added on a provisional basis (see :pep:`411` for " "details.)" @@ -1296,7 +1304,7 @@ msgstr "" "Cette fonction à été ajoutée à titre provisoire (voir la :pep:`411` pour " "plus d'informations.)" -#: ../Doc/library/sys.rst:685 +#: ../Doc/library/sys.rst:691 msgid "" "Get the current coroutine origin tracking depth, as set by :func:" "`set_coroutine_origin_tracking_depth`." @@ -1305,8 +1313,8 @@ msgstr "" "le suivi de leur création, telle que défini par :func:" "`set_coroutine_origin_tracking_depth`." -#: ../Doc/library/sys.rst:691 ../Doc/library/sys.rst:703 -#: ../Doc/library/sys.rst:1275 ../Doc/library/sys.rst:1314 +#: ../Doc/library/sys.rst:697 ../Doc/library/sys.rst:709 +#: ../Doc/library/sys.rst:1281 ../Doc/library/sys.rst:1320 msgid "" "This function has been added on a provisional basis (see :pep:`411` for " "details.) Use it only for debugging purposes." @@ -1314,16 +1322,16 @@ msgstr "" "Cette fonction à été ajoutée à titre provisoire (Voir la :pep:`411` pour " "plus d'informations.) Utilisez la uniquement à des fins de débogage." -#: ../Doc/library/sys.rst:697 +#: ../Doc/library/sys.rst:703 msgid "Returns ``None``, or a wrapper set by :func:`set_coroutine_wrapper`." msgstr "" "Renvoie ``None``, ou un *wrapper* donné via :func:`set_coroutine_wrapper`." -#: ../Doc/library/sys.rst:699 ../Doc/library/sys.rst:1310 +#: ../Doc/library/sys.rst:705 ../Doc/library/sys.rst:1316 msgid "See :pep:`492` for more details." msgstr "Voir la :pep:`492` pour plus d'informations." -#: ../Doc/library/sys.rst:706 ../Doc/library/sys.rst:1317 +#: ../Doc/library/sys.rst:712 ../Doc/library/sys.rst:1323 msgid "" "The coroutine wrapper functionality has been deprecated, and will be removed " "in 3.8. See :issue:`32591` for details." @@ -1331,7 +1339,7 @@ msgstr "" "La fonctionnalité *wrapper* de coroutine est obsolète et sera supprimée dans " "3.8. Voir :issue:`32591` pour plus de détails." -#: ../Doc/library/sys.rst:713 +#: ../Doc/library/sys.rst:719 msgid "" "A :term:`struct sequence` giving parameters of the numeric hash " "implementation. For more details about hashing of numeric types, see :ref:" @@ -1341,77 +1349,77 @@ msgstr "" "fonction de hachage de nombres. Pour plus d'informations sur le hachage des " "types numériques, consultez :ref:`numeric-hash`." -#: ../Doc/library/sys.rst:720 +#: ../Doc/library/sys.rst:726 msgid ":const:`width`" msgstr ":const:`width`" -#: ../Doc/library/sys.rst:720 +#: ../Doc/library/sys.rst:726 msgid "width in bits used for hash values" msgstr "Nombre de bits des valeurs de *hash*" -#: ../Doc/library/sys.rst:722 +#: ../Doc/library/sys.rst:728 msgid ":const:`modulus`" msgstr ":const:`modulus`" -#: ../Doc/library/sys.rst:722 +#: ../Doc/library/sys.rst:728 msgid "prime modulus P used for numeric hash scheme" msgstr "" "contient le premier P utilisé dans le modulo pour les *hash* numériques" -#: ../Doc/library/sys.rst:724 +#: ../Doc/library/sys.rst:730 msgid ":const:`inf`" msgstr ":const:`inf`" -#: ../Doc/library/sys.rst:724 +#: ../Doc/library/sys.rst:730 msgid "hash value returned for a positive infinity" msgstr "valeur du *hash* pour un infini positif" -#: ../Doc/library/sys.rst:726 +#: ../Doc/library/sys.rst:732 msgid ":const:`nan`" msgstr ":const:`nan`" -#: ../Doc/library/sys.rst:726 +#: ../Doc/library/sys.rst:732 msgid "hash value returned for a nan" msgstr "valeur du *hash* pour un *nan*" -#: ../Doc/library/sys.rst:728 +#: ../Doc/library/sys.rst:734 msgid ":const:`imag`" msgstr ":const:`imag`" -#: ../Doc/library/sys.rst:728 +#: ../Doc/library/sys.rst:734 msgid "multiplier used for the imaginary part of a complex number" msgstr "multiplicateur utilisé pour la partie imaginaire d'un nombre complexe" -#: ../Doc/library/sys.rst:731 +#: ../Doc/library/sys.rst:737 msgid ":const:`algorithm`" msgstr ":const:`algorithm`" -#: ../Doc/library/sys.rst:731 +#: ../Doc/library/sys.rst:737 msgid "name of the algorithm for hashing of str, bytes, and memoryview" msgstr "" "nom de l'algorithme pour le hachage des *str*, *bytes*, et *memoryview*" -#: ../Doc/library/sys.rst:734 +#: ../Doc/library/sys.rst:740 msgid ":const:`hash_bits`" msgstr ":const:`hash_bits`" -#: ../Doc/library/sys.rst:734 +#: ../Doc/library/sys.rst:740 msgid "internal output size of the hash algorithm" msgstr "taille de la sortie interne de l'algorithme de hachage" -#: ../Doc/library/sys.rst:736 +#: ../Doc/library/sys.rst:742 msgid ":const:`seed_bits`" msgstr ":const:`seed_bits`" -#: ../Doc/library/sys.rst:736 +#: ../Doc/library/sys.rst:742 msgid "size of the seed key of the hash algorithm" msgstr "taille de la *seed key* utilisée par l'algorithme de hachage" -#: ../Doc/library/sys.rst:742 +#: ../Doc/library/sys.rst:748 msgid "Added *algorithm*, *hash_bits* and *seed_bits*" msgstr "Ajout de *algorithm*, *hash_bits* et *seed_bits*" -#: ../Doc/library/sys.rst:748 +#: ../Doc/library/sys.rst:754 msgid "" "The version number encoded as a single integer. This is guaranteed to " "increase with each version, including proper support for non-production " @@ -1423,7 +1431,7 @@ msgstr "" "Par exemple, pour vérifier que l'interpréteur Python est au moins la version " "1.5, utilisez : ::" -#: ../Doc/library/sys.rst:759 +#: ../Doc/library/sys.rst:765 msgid "" "This is called ``hexversion`` since it only really looks meaningful when " "viewed as the result of passing it to the built-in :func:`hex` function. " @@ -1435,12 +1443,12 @@ msgstr "" "`hex`. La :term:`struct sequence` :data:`sys.version_info` représente la " "même information d'une manière plus humaine." -#: ../Doc/library/sys.rst:764 +#: ../Doc/library/sys.rst:770 msgid "More details of ``hexversion`` can be found at :ref:`apiabiversion`." msgstr "" "Consultez :ref:`apiabiversion` pour plus d'informations sur ``hexversion``." -#: ../Doc/library/sys.rst:769 +#: ../Doc/library/sys.rst:775 msgid "" "An object containing information about the implementation of the currently " "running Python interpreter. The following attributes are required to exist " @@ -1450,7 +1458,7 @@ msgstr "" "actuelle de l'interpréteur Python. Les attributs suivants existent " "obligatoirement sur toutes les implémentations Python." -#: ../Doc/library/sys.rst:773 +#: ../Doc/library/sys.rst:779 msgid "" "*name* is the implementation's identifier, e.g. ``'cpython'``. The actual " "string is defined by the Python implementation, but it is guaranteed to be " @@ -1460,7 +1468,7 @@ msgstr "" "chaîne est définie par l'implémentation de Python, mais sera toujours en " "minuscule." -#: ../Doc/library/sys.rst:777 +#: ../Doc/library/sys.rst:783 msgid "" "*version* is a named tuple, in the same format as :data:`sys.version_info`. " "It represents the version of the Python *implementation*. This has a " @@ -1480,7 +1488,7 @@ msgstr "" "valoir ``sys.version_info(2, 7, 2, 'final', 0)``. Pour CPython ces deux " "valeurs sont identiques puisque c'est l'implémentation de référence." -#: ../Doc/library/sys.rst:787 +#: ../Doc/library/sys.rst:793 msgid "" "*hexversion* is the implementation version in hexadecimal format, like :data:" "`sys.hexversion`." @@ -1488,7 +1496,7 @@ msgstr "" "*hexversion* est la version de l'implémentation sous forme hexadécimale, " "comme :data:`sys.hexversion`." -#: ../Doc/library/sys.rst:790 +#: ../Doc/library/sys.rst:796 msgid "" "*cache_tag* is the tag used by the import machinery in the filenames of " "cached modules. By convention, it would be a composite of the " @@ -1503,7 +1511,7 @@ msgstr "" "autre valeur si nécessaire. ``cache_tag`` à ``None`` signifie que la mise " "en cache des modules doit être désactivée." -#: ../Doc/library/sys.rst:797 +#: ../Doc/library/sys.rst:803 msgid "" ":data:`sys.implementation` may contain additional attributes specific to the " "Python implementation. These non-standard attributes must start with an " @@ -1520,7 +1528,7 @@ msgstr "" "cependant changer entre les versions du langage Python.) Voir la :pep:`421` " "pour plus d'informations." -#: ../Doc/library/sys.rst:809 +#: ../Doc/library/sys.rst:815 msgid "" "A :term:`struct sequence` that holds information about Python's internal " "representation of integers. The attributes are read only." @@ -1529,19 +1537,19 @@ msgstr "" "représentation interne des entiers de Python. Les attributs sont en lecture " "seule." -#: ../Doc/library/sys.rst:815 ../Doc/library/sys.rst:1421 +#: ../Doc/library/sys.rst:821 ../Doc/library/sys.rst:1427 msgid "Attribute" msgstr "Attribut" -#: ../Doc/library/sys.rst:815 ../Doc/library/sys.rst:1421 +#: ../Doc/library/sys.rst:821 ../Doc/library/sys.rst:1427 msgid "Explanation" msgstr "Explication" -#: ../Doc/library/sys.rst:817 +#: ../Doc/library/sys.rst:823 msgid ":const:`bits_per_digit`" msgstr ":const:`bits_per_digit`" -#: ../Doc/library/sys.rst:817 +#: ../Doc/library/sys.rst:823 msgid "" "number of bits held in each digit. Python integers are stored internally in " "base ``2**int_info.bits_per_digit``" @@ -1549,15 +1557,15 @@ msgstr "" "nombre de bits utilisés pour chaque chiffre. Les entiers Python sont " "stockés en interne en base ``2**int_info.bits_per_digit``" -#: ../Doc/library/sys.rst:821 +#: ../Doc/library/sys.rst:827 msgid ":const:`sizeof_digit`" msgstr ":const:`sizeof_digit`" -#: ../Doc/library/sys.rst:821 +#: ../Doc/library/sys.rst:827 msgid "size in bytes of the C type used to represent a digit" msgstr "taille en octets du type C utilisé pour représenter un chiffre" -#: ../Doc/library/sys.rst:830 +#: ../Doc/library/sys.rst:836 msgid "" "When this attribute exists, its value is automatically called (with no " "arguments) when the interpreter is launched in :ref:`interactive mode ` par le module :mod:`site`." -#: ../Doc/library/sys.rst:841 +#: ../Doc/library/sys.rst:847 msgid "" "Enter *string* in the table of \"interned\" strings and return the interned " "string -- which is *string* itself or a copy. Interning strings is useful to " @@ -1593,7 +1601,7 @@ msgstr "" "attributs de modules, de classes, ou d'instances ont aussi leurs clés " "internées." -#: ../Doc/library/sys.rst:849 +#: ../Doc/library/sys.rst:855 msgid "" "Interned strings are not immortal; you must keep a reference to the return " "value of :func:`intern` around to benefit from it." @@ -1601,7 +1609,7 @@ msgstr "" "Les chaînes internées ne sont pas immortelles; vous devez garder une " "référence à la valeur renvoyée par :func:`intern` pour en bénéficier." -#: ../Doc/library/sys.rst:855 +#: ../Doc/library/sys.rst:861 msgid "" "Return :const:`True` if the Python interpreter is :term:`shutting down " "`, :const:`False` otherwise." @@ -1609,7 +1617,7 @@ msgstr "" "Donne :const:`True` si l'interpréteur Python est :term:`en train de " "s'arrêter `, et :const:`False` dans le cas contraire." -#: ../Doc/library/sys.rst:865 +#: ../Doc/library/sys.rst:871 msgid "" "These three variables are not always defined; they are set when an exception " "is not handled and the interpreter prints an error message and a stack " @@ -1628,7 +1636,7 @@ msgstr "" "mortem est ``import pdb; pdb.pm()``, voir :mod:`pdb` pour plus " "d'informations.)." -#: ../Doc/library/sys.rst:873 +#: ../Doc/library/sys.rst:879 msgid "" "The meaning of the variables is the same as that of the return values from :" "func:`exc_info` above." @@ -1636,7 +1644,7 @@ msgstr "" "La signification de ces variables est la même que celle des valeurs " "renvoyées par :func:`exc_info` ci-dessus." -#: ../Doc/library/sys.rst:879 +#: ../Doc/library/sys.rst:885 msgid "" "An integer giving the maximum value a variable of type :c:type:`Py_ssize_t` " "can take. It's usually ``2**31 - 1`` on a 32-bit platform and ``2**63 - 1`` " @@ -1646,7 +1654,7 @@ msgstr "" "`Py_ssize_t` peut prendre. C'est typiquement ``2**31 - 1`` sur une " "plateforme 32 bits et ``2**63 - 1``` sur une plateforme 64 bits." -#: ../Doc/library/sys.rst:886 +#: ../Doc/library/sys.rst:892 msgid "" "An integer giving the value of the largest Unicode code point, i.e. " "``1114111`` (``0x10FFFF`` in hexadecimal)." @@ -1654,7 +1662,7 @@ msgstr "" "Un entier donnant la valeur du plus grand point de code Unicode, c'est-à-" "dire ``1114111`` (```0x10FFFF`` en hexadécimal)." -#: ../Doc/library/sys.rst:889 +#: ../Doc/library/sys.rst:895 msgid "" "Before :pep:`393`, ``sys.maxunicode`` used to be either ``0xFFFF`` or " "``0x10FFFF``, depending on the configuration option that specified whether " @@ -1664,7 +1672,7 @@ msgstr "" "``0x10FFFF``, en fonction l'option de configuration qui spécifiait si les " "caractères Unicode étaient stockés en UCS-2 ou UCS-4." -#: ../Doc/library/sys.rst:897 +#: ../Doc/library/sys.rst:903 msgid "" "A list of :term:`meta path finder` objects that have their :meth:`~importlib." "abc.MetaPathFinder.find_spec` methods called to see if one of the objects " @@ -1683,11 +1691,11 @@ msgstr "" "attr:`__path__` du paquet parent est donné en deuxième argument. La méthode " "renvoie un :term:`module spec`, ou ``None`` si le module ne peut être trouvé." -#: ../Doc/library/sys.rst:909 +#: ../Doc/library/sys.rst:915 msgid ":class:`importlib.abc.MetaPathFinder`" msgstr ":class:`importlib.abc.MetaPathFinder`" -#: ../Doc/library/sys.rst:909 +#: ../Doc/library/sys.rst:915 msgid "" "The abstract base class defining the interface of finder objects on :data:" "`meta_path`." @@ -1695,11 +1703,11 @@ msgstr "" "La classe de base abstraite définissant l'interface des objets *finder* de :" "data:`meta_path`." -#: ../Doc/library/sys.rst:913 +#: ../Doc/library/sys.rst:919 msgid ":class:`importlib.machinery.ModuleSpec`" msgstr ":class:`importlib.machinery.ModuleSpec`" -#: ../Doc/library/sys.rst:912 +#: ../Doc/library/sys.rst:918 msgid "" "The concrete class which :meth:`~importlib.abc.MetaPathFinder.find_spec` " "should return instances of." @@ -1707,7 +1715,7 @@ msgstr "" "La classe concrète dont :meth:`~importlib.abc.MetaPathFinder.find_spec` " "devrait renvoyer des instances." -#: ../Doc/library/sys.rst:918 +#: ../Doc/library/sys.rst:924 msgid "" ":term:`Module specs ` were introduced in Python 3.4, by :pep:" "`451`. Earlier versions of Python looked for a method called :meth:" @@ -1721,7 +1729,7 @@ msgstr "" "toujours appelée en dernier recours, dans le cas où une :data:`meta_path` " "n'a pas de méthode :meth:`~importlib.abc.MetaPathFinder.find_spec`." -#: ../Doc/library/sys.rst:926 +#: ../Doc/library/sys.rst:932 msgid "" "This is a dictionary that maps module names to modules which have already " "been loaded. This can be manipulated to force reloading of modules and " @@ -1734,7 +1742,7 @@ msgstr "" "rechargé. Cependant, le remplacer ne fonctionnera pas forcément comme prévu " "et en supprimer des éléments essentiels peut planter Python." -#: ../Doc/library/sys.rst:936 +#: ../Doc/library/sys.rst:942 msgid "" "A list of strings that specifies the search path for modules. Initialized " "from the environment variable :envvar:`PYTHONPATH`, plus an installation-" @@ -1744,7 +1752,7 @@ msgstr "" "modules, initialisée à partir de la variable d'environnement :envvar:" "`PYTHONPATH` et d'une valeur par défaut dépendante de l'installation." -#: ../Doc/library/sys.rst:940 +#: ../Doc/library/sys.rst:946 msgid "" "As initialized upon program startup, the first item of this list, " "``path[0]``, is the directory containing the script that was used to invoke " @@ -1764,7 +1772,7 @@ msgstr "" "actuel. Notez que le dossier du script est inséré *avant* les dossiers de :" "envvar:`PYTHONPATH`." -#: ../Doc/library/sys.rst:948 +#: ../Doc/library/sys.rst:954 msgid "" "A program is free to modify this list for its own purposes. Only strings " "and bytes should be added to :data:`sys.path`; all other data types are " @@ -1774,7 +1782,7 @@ msgstr "" "Seuls des *str* ou des *bytes* ne devraient être ajoutés à :data:`sys.path`, " "tous les autres types de données étant ignorés durant l'importation." -#: ../Doc/library/sys.rst:954 +#: ../Doc/library/sys.rst:960 msgid "" "Module :mod:`site` This describes how to use .pth files to extend :data:`sys." "path`." @@ -1782,7 +1790,7 @@ msgstr "" "Le module :mod:`site` décrit comment utiliser les fichiers *.pth* pour " "étendre :data:`sys.path`." -#: ../Doc/library/sys.rst:960 +#: ../Doc/library/sys.rst:966 msgid "" "A list of callables that take a path argument to try to create a :term:" "`finder` for the path. If a finder can be created, it is to be returned by " @@ -1792,11 +1800,11 @@ msgstr "" "`finder` pour ce chemin. Si un *finder* peut être créé, il doit être renvoyé " "par l'appelable, sinon une :exc:`ImportError` doit être levée." -#: ../Doc/library/sys.rst:964 ../Doc/library/sys.rst:975 +#: ../Doc/library/sys.rst:970 ../Doc/library/sys.rst:981 msgid "Originally specified in :pep:`302`." msgstr "Précisé à l'origine dans la :pep:`302`." -#: ../Doc/library/sys.rst:969 +#: ../Doc/library/sys.rst:975 msgid "" "A dictionary acting as a cache for :term:`finder` objects. The keys are " "paths that have been passed to :data:`sys.path_hooks` and the values are the " @@ -1809,7 +1817,7 @@ msgstr "" "de fichiers mais qu'aucun *finder* n'est trouvé dans :data:`sys.path_hooks`, " "``None`` est stocké." -#: ../Doc/library/sys.rst:977 +#: ../Doc/library/sys.rst:983 msgid "" "``None`` is stored instead of :class:`imp.NullImporter` when no finder is " "found." @@ -1817,7 +1825,7 @@ msgstr "" "``None`` est stocké à la place de :class:`imp.NullImporter` si aucun " "localisateur n'est trouvé." -#: ../Doc/library/sys.rst:984 +#: ../Doc/library/sys.rst:990 msgid "" "This string contains a platform identifier that can be used to append " "platform-specific components to :data:`sys.path`, for instance." @@ -1826,7 +1834,7 @@ msgstr "" "typiquement utilisé pour ajouter des composants spécifiques à :data:`sys." "path`." -#: ../Doc/library/sys.rst:987 +#: ../Doc/library/sys.rst:993 msgid "" "For Unix systems, except on Linux, this is the lowercased OS name as " "returned by ``uname -s`` with the first part of the version as returned by " @@ -1840,51 +1848,51 @@ msgstr "" "moment où Python a été compilé*. A moins que vous ne souhaitiez tester pour " "une version spécifique du système, vous pouvez faire comme suit : ::" -#: ../Doc/library/sys.rst:998 +#: ../Doc/library/sys.rst:1004 msgid "For other systems, the values are:" msgstr "Pour les autres systèmes, les valeurs sont:" -#: ../Doc/library/sys.rst:1001 +#: ../Doc/library/sys.rst:1007 msgid "System" msgstr "Système" -#: ../Doc/library/sys.rst:1001 +#: ../Doc/library/sys.rst:1007 msgid "``platform`` value" msgstr "Valeur pour ``plateforme``" -#: ../Doc/library/sys.rst:1003 +#: ../Doc/library/sys.rst:1009 msgid "Linux" msgstr "Linux" -#: ../Doc/library/sys.rst:1003 +#: ../Doc/library/sys.rst:1009 msgid "``'linux'``" msgstr "``'linux'``" -#: ../Doc/library/sys.rst:1004 +#: ../Doc/library/sys.rst:1010 msgid "Windows" msgstr "Windows" -#: ../Doc/library/sys.rst:1004 +#: ../Doc/library/sys.rst:1010 msgid "``'win32'``" msgstr "``'win32'``" -#: ../Doc/library/sys.rst:1005 +#: ../Doc/library/sys.rst:1011 msgid "Windows/Cygwin" msgstr "Windows/Cygwin" -#: ../Doc/library/sys.rst:1005 +#: ../Doc/library/sys.rst:1011 msgid "``'cygwin'``" msgstr "``'cygwin'``" -#: ../Doc/library/sys.rst:1006 +#: ../Doc/library/sys.rst:1012 msgid "Mac OS X" msgstr "Mac OS X" -#: ../Doc/library/sys.rst:1006 +#: ../Doc/library/sys.rst:1012 msgid "``'darwin'``" msgstr "``'darwin'``" -#: ../Doc/library/sys.rst:1009 +#: ../Doc/library/sys.rst:1015 msgid "" "On Linux, :attr:`sys.platform` doesn't contain the major version anymore. It " "is always ``'linux'``, instead of ``'linux2'`` or ``'linux3'``. Since older " @@ -1896,7 +1904,7 @@ msgstr "" "anciennes versions de Python incluent le numéro de version, il est " "recommandé de toujours utiliser ``startswith``, tel qu'utilisé ci-dessus." -#: ../Doc/library/sys.rst:1017 +#: ../Doc/library/sys.rst:1023 msgid "" ":attr:`os.name` has a coarser granularity. :func:`os.uname` gives system-" "dependent version information." @@ -1904,7 +1912,7 @@ msgstr "" ":attr:`os.name` a une granularité plus grossière. :func:`os.uname` donne des " "informations sur la version dépendantes du système." -#: ../Doc/library/sys.rst:1020 +#: ../Doc/library/sys.rst:1026 msgid "" "The :mod:`platform` module provides detailed checks for the system's " "identity." @@ -1912,7 +1920,7 @@ msgstr "" "Le module :mod:`platform` fournit des vérifications détaillées pour " "l'identité du système." -#: ../Doc/library/sys.rst:1026 +#: ../Doc/library/sys.rst:1032 msgid "" "A string giving the site-specific directory prefix where the platform " "independent Python files are installed; by default, this is the string ``'/" @@ -1933,7 +1941,7 @@ msgstr "" "stockées dans :file:`{prefix}/include/python{X.Y}`, où *X.Y* est le numéro " "de version de Python, par exemple ``3.2``." -#: ../Doc/library/sys.rst:1035 +#: ../Doc/library/sys.rst:1041 msgid "" "If a :ref:`virtual environment ` is in effect, this value will be " "changed in ``site.py`` to point to the virtual environment. The value for " @@ -1944,7 +1952,7 @@ msgstr "" "donnée au moment de la compilation de Python sera toujours disponible, dans :" "data:`base_prefix`." -#: ../Doc/library/sys.rst:1050 +#: ../Doc/library/sys.rst:1056 msgid "" "Strings specifying the primary and secondary prompt of the interpreter. " "These are only defined if the interpreter is in interactive mode. Their " @@ -1961,7 +1969,7 @@ msgstr "" "à lire une nouvelle commande interactive, c'est donc utilisable pour " "implémenter une invite dynamique." -#: ../Doc/library/sys.rst:1060 +#: ../Doc/library/sys.rst:1066 msgid "" "Set the interpreter's \"check interval\". This integer value determines how " "often the interpreter checks for periodic things such as thread switches and " @@ -1981,7 +1989,7 @@ msgstr "" "tâches à chaque instruction virtuelle, maximisant ainsi la réactivité mais " "aussi son surcoût." -#: ../Doc/library/sys.rst:1067 +#: ../Doc/library/sys.rst:1073 msgid "" "This function doesn't have an effect anymore, as the internal logic for " "thread switching and asynchronous tasks has been rewritten. Use :func:" @@ -1991,7 +1999,7 @@ msgstr "" "fils d'exécution et de gestion des tâches asynchrones ayant été réécrite. " "Utilisez :func:`setswitchinterval` à la place." -#: ../Doc/library/sys.rst:1075 +#: ../Doc/library/sys.rst:1081 msgid "" "Set the flags used by the interpreter for :c:func:`dlopen` calls, such as " "when the interpreter loads extension modules. Among other things, this will " @@ -2010,7 +2018,7 @@ msgstr "" "module :mod:`os` (ce sont les constantes ``RTLD_xxx``, comme :data:`os." "RTLD_LAZY`)." -#: ../Doc/library/sys.rst:1091 +#: ../Doc/library/sys.rst:1097 msgid "" "Set the system's profile function, which allows you to implement a Python " "source code profiler in Python. See chapter :ref:`profile` for more " @@ -2038,7 +2046,7 @@ msgstr "" "*multithread*. Sa valeur de retour n'est pas utilisée, elle peut simplement " "renvoyer ``None``." -#: ../Doc/library/sys.rst:1102 +#: ../Doc/library/sys.rst:1108 msgid "" "Profile functions should have three arguments: *frame*, *event*, and *arg*. " "*frame* is the current stack frame. *event* is a string: ``'call'``, " @@ -2050,15 +2058,15 @@ msgstr "" "caractères pouvant valoir : ``'call'``, ``'return'``, ``'c_call'``, " "``'c_return'`` ou ``'c_exception'``. *arg* dépend du type de l'évènement." -#: ../Doc/library/sys.rst:1107 ../Doc/library/sys.rst:1187 +#: ../Doc/library/sys.rst:1113 ../Doc/library/sys.rst:1193 msgid "The events have the following meaning:" msgstr "Les événements ont la signification suivante :" -#: ../Doc/library/sys.rst:1111 ../Doc/library/sys.rst:1192 +#: ../Doc/library/sys.rst:1117 ../Doc/library/sys.rst:1198 msgid "``'call'``" msgstr "``'call'``" -#: ../Doc/library/sys.rst:1110 +#: ../Doc/library/sys.rst:1116 msgid "" "A function is called (or some other code block entered). The profile " "function is called; *arg* is ``None``." @@ -2066,11 +2074,11 @@ msgstr "" "Une fonction est appelée (ou Python entre dans un autre bloc de code). La " "fonction de traçage est appelée, *arg* est ``None``." -#: ../Doc/library/sys.rst:1116 ../Doc/library/sys.rst:1207 +#: ../Doc/library/sys.rst:1122 ../Doc/library/sys.rst:1213 msgid "``'return'``" msgstr "``'return'``" -#: ../Doc/library/sys.rst:1114 +#: ../Doc/library/sys.rst:1120 msgid "" "A function (or other code block) is about to return. The profile function " "is called; *arg* is the value that will be returned, or ``None`` if the " @@ -2080,11 +2088,11 @@ msgstr "" "fonction de traçage est appelée, *arg* est la valeur qui sera renvoyée, ou " "``None`` si l'événement est causé par la levée d'une exception." -#: ../Doc/library/sys.rst:1120 +#: ../Doc/library/sys.rst:1126 msgid "``'c_call'``" msgstr "``'c_call'``" -#: ../Doc/library/sys.rst:1119 +#: ../Doc/library/sys.rst:1125 msgid "" "A C function is about to be called. This may be an extension function or a " "built-in. *arg* is the C function object." @@ -2092,23 +2100,23 @@ msgstr "" "Une fonction C est sur le point d'être appelée. C'est soit une fonction " "d'extension ou une fonction native. *arg* représente la fonction C." -#: ../Doc/library/sys.rst:1123 +#: ../Doc/library/sys.rst:1129 msgid "``'c_return'``" msgstr "``'c_return'``" -#: ../Doc/library/sys.rst:1123 +#: ../Doc/library/sys.rst:1129 msgid "A C function has returned. *arg* is the C function object." msgstr "Une fonction C a renvoyé une valeur. *arg* représente la fonction C." -#: ../Doc/library/sys.rst:1125 +#: ../Doc/library/sys.rst:1131 msgid "``'c_exception'``" msgstr "``'c_exception'``" -#: ../Doc/library/sys.rst:1126 +#: ../Doc/library/sys.rst:1132 msgid "A C function has raised an exception. *arg* is the C function object." msgstr "Une fonction C a levé une exception. *arg* représente la fonction C." -#: ../Doc/library/sys.rst:1130 +#: ../Doc/library/sys.rst:1136 msgid "" "Set the maximum depth of the Python interpreter stack to *limit*. This " "limit prevents infinite recursion from causing an overflow of the C stack " @@ -2118,7 +2126,7 @@ msgstr "" "*limit*. Cette limite empêche une récursion infinie de provoquer un " "débordement de la pile C et ainsi un crash de Python." -#: ../Doc/library/sys.rst:1134 +#: ../Doc/library/sys.rst:1140 msgid "" "The highest possible limit is platform-dependent. A user may need to set " "the limit higher when they have a program that requires deep recursion and a " @@ -2130,7 +2138,7 @@ msgstr "" "profonde, si sa plate-forme le permet. Cela doit être fait avec précaution, " "car une limite trop élevée peut conduire à un crash." -#: ../Doc/library/sys.rst:1139 +#: ../Doc/library/sys.rst:1145 msgid "" "If the new limit is too low at the current recursion depth, a :exc:" "`RecursionError` exception is raised." @@ -2138,7 +2146,7 @@ msgstr "" "Si la nouvelle limite est plus basse que la profondeur actuelle, une :exc:" "`RecursionError` est levée." -#: ../Doc/library/sys.rst:1142 +#: ../Doc/library/sys.rst:1148 msgid "" "A :exc:`RecursionError` exception is now raised if the new limit is too low " "at the current recursion depth." @@ -2146,7 +2154,7 @@ msgstr "" "Une :exc:`RecursionError` est maintenant levée si la nouvelle limite est " "plus basse que la profondeur de récursion actuelle." -#: ../Doc/library/sys.rst:1149 +#: ../Doc/library/sys.rst:1155 msgid "" "Set the interpreter's thread switch interval (in seconds). This floating-" "point value determines the ideal duration of the \"timeslices\" allocated to " @@ -2164,7 +2172,7 @@ msgstr "" "d'exécution prenant la main à la fin de l'intervalle revient au système " "d'exploitation. L'interpréteur n'a pas son propre ordonnanceur." -#: ../Doc/library/sys.rst:1166 +#: ../Doc/library/sys.rst:1172 msgid "" "Set the system's trace function, which allows you to implement a Python " "source code debugger in Python. The function is thread-specific; for a " @@ -2177,7 +2185,7 @@ msgstr "" "d'exécution, il doit enregistrer sa fonction en appelant :func:`settrace` " "pour chaque fil d'exécution qu'il souhaite surveiller." -#: ../Doc/library/sys.rst:1171 +#: ../Doc/library/sys.rst:1177 msgid "" "Trace functions should have three arguments: *frame*, *event*, and *arg*. " "*frame* is the current stack frame. *event* is a string: ``'call'``, " @@ -2189,7 +2197,7 @@ msgstr "" "caractères pouvant valoir : ``'call'``, ``'line'``, ``'return'``, " "``'exception'`` ou ``'opcode'``. *arg* dépend du type de l'évènement." -#: ../Doc/library/sys.rst:1176 +#: ../Doc/library/sys.rst:1182 msgid "" "The trace function is invoked (with *event* set to ``'call'``) whenever a " "new local scope is entered; it should return a reference to a local trace " @@ -2200,7 +2208,7 @@ msgstr "" "référence à une fonction de traçage locale à utiliser pour ce *scope*, ou " "``None`` si le *Scope* ne doit pas être tracé." -#: ../Doc/library/sys.rst:1180 +#: ../Doc/library/sys.rst:1186 msgid "" "The local trace function should return a reference to itself (or to another " "function for further tracing in that scope), or ``None`` to turn off tracing " @@ -2210,7 +2218,7 @@ msgstr "" "autre fonction de traçage pour un traçage ultérieur dans cette portée), ou " "``None`` pour désactiver le traçage dans cette portée." -#: ../Doc/library/sys.rst:1184 +#: ../Doc/library/sys.rst:1190 msgid "" "If there is any error occurred in the trace function, it will be unset, just " "like ``settrace(None)`` is called." @@ -2218,7 +2226,7 @@ msgstr "" "Si une erreur se produit dans la fonction de trace, elle sera désactivée, " "tout comme si ``settrace(None)`` avait été appelée." -#: ../Doc/library/sys.rst:1190 +#: ../Doc/library/sys.rst:1196 msgid "" "A function is called (or some other code block entered). The global trace " "function is called; *arg* is ``None``; the return value specifies the local " @@ -2228,11 +2236,11 @@ msgstr "" "globale est appelée, *arg* est ``None``, la valeur renvoyée donne la " "fonction de traçage locale." -#: ../Doc/library/sys.rst:1201 +#: ../Doc/library/sys.rst:1207 msgid "``'line'``" msgstr "``'line'``" -#: ../Doc/library/sys.rst:1195 +#: ../Doc/library/sys.rst:1201 msgid "" "The interpreter is about to execute a new line of code or re-execute the " "condition of a loop. The local trace function is called; *arg* is ``None``; " @@ -2249,7 +2257,7 @@ msgstr "" "désactivés pour un cadre d'exécution en mettant :attr:`f_trace_lines` à :" "const:`False` pour ce cadre d'exécution." -#: ../Doc/library/sys.rst:1204 +#: ../Doc/library/sys.rst:1210 msgid "" "A function (or other code block) is about to return. The local trace " "function is called; *arg* is the value that will be returned, or ``None`` if " @@ -2261,11 +2269,11 @@ msgstr "" "renvoyée, ou ``None`` si l'événement est causé par la levée d'une exception. " "La valeur renvoyée par la fonction de traçage est ignorée." -#: ../Doc/library/sys.rst:1212 +#: ../Doc/library/sys.rst:1218 msgid "``'exception'``" msgstr "``'exception'``" -#: ../Doc/library/sys.rst:1210 +#: ../Doc/library/sys.rst:1216 msgid "" "An exception has occurred. The local trace function is called; *arg* is a " "tuple ``(exception, value, traceback)``; the return value specifies the new " @@ -2275,11 +2283,11 @@ msgstr "" "est le *tuple* ``(exception, valeur, traceback)``, la valeur renvoyée " "spécifie la nouvelle fonction de traçage locale." -#: ../Doc/library/sys.rst:1220 +#: ../Doc/library/sys.rst:1226 msgid "``'opcode'``" msgstr "``'opcode'``" -#: ../Doc/library/sys.rst:1215 +#: ../Doc/library/sys.rst:1221 msgid "" "The interpreter is about to execute a new opcode (see :mod:`dis` for opcode " "details). The local trace function is called; *arg* is ``None``; the return " @@ -2294,7 +2302,7 @@ msgstr "" "explicitement requis en mettant :attr:`f_trace_opcodes` à :const:`True` pour " "cette *frame*." -#: ../Doc/library/sys.rst:1222 +#: ../Doc/library/sys.rst:1228 msgid "" "Note that as an exception is propagated down the chain of callers, an " "``'exception'`` event is generated at each level." @@ -2302,13 +2310,13 @@ msgstr "" "Remarquez que, comme une exception se propage au travers de toute chaîne " "d'appelants, un événement ``'exception'`` est généré à chaque niveau." -#: ../Doc/library/sys.rst:1225 +#: ../Doc/library/sys.rst:1231 msgid "For more information on code and frame objects, refer to :ref:`types`." msgstr "" "Pour plus d'informations sur les objets code et objets représentant une " "*frame* de la pile, consultez :ref:`types`." -#: ../Doc/library/sys.rst:1229 +#: ../Doc/library/sys.rst:1235 msgid "" "The :func:`settrace` function is intended only for implementing debuggers, " "profilers, coverage tools and the like. Its behavior is part of the " @@ -2321,7 +2329,7 @@ msgstr "" "que de la définition du langage, et peut donc ne pas être disponible dans " "toutes les implémentations de Python." -#: ../Doc/library/sys.rst:1236 +#: ../Doc/library/sys.rst:1242 msgid "" "``'opcode'`` event type added; :attr:`f_trace_lines` and :attr:" "`f_trace_opcodes` attributes added to frames" @@ -2329,7 +2337,7 @@ msgstr "" "Ajout du type d’événement ``'opcode'`` ; les attributs :attr:`f_trace_lines` " "et :attr:`f_trace_opcodes` ont été ajoutés aux cadres d'exécution" -#: ../Doc/library/sys.rst:1241 +#: ../Doc/library/sys.rst:1247 msgid "" "Accepts two optional keyword arguments which are callables that accept an :" "term:`asynchronous generator iterator` as an argument. The *firstiter* " @@ -2343,7 +2351,7 @@ msgstr "" "première fois, et l'appelable *finalizer* sera appelé lorsqu'un générateur " "asynchrone est sur le point d'être détruit." -#: ../Doc/library/sys.rst:1247 +#: ../Doc/library/sys.rst:1253 msgid "" "See :pep:`525` for more details, and for a reference example of a " "*finalizer* method see the implementation of ``asyncio.Loop." @@ -2353,7 +2361,7 @@ msgstr "" "voir l'implémentation de ``asyncio.Loop.shutdown_asyncgens`` dans :source:" "`Lib/asyncio/base_events.py`" -#: ../Doc/library/sys.rst:1259 +#: ../Doc/library/sys.rst:1265 msgid "" "Allows enabling or disabling coroutine origin tracking. When enabled, the " "``cr_origin`` attribute on coroutine objects will contain a tuple of " @@ -2368,7 +2376,7 @@ msgstr "" "coroutine a été créé, avec l'appel le plus récent en premier. Lorsqu'il est " "désactivé, la valeur de ``cr_origin`` est ``None``." -#: ../Doc/library/sys.rst:1266 +#: ../Doc/library/sys.rst:1272 msgid "" "To enable, pass a *depth* value greater than zero; this sets the number of " "frames whose information will be captured. To disable, pass set *depth* to " @@ -2378,11 +2386,11 @@ msgstr "" "le nombre de cadres d'exécution dont les informations sont capturées. Pour " "le désactiver, mettez *depth* à zéro." -#: ../Doc/library/sys.rst:1270 +#: ../Doc/library/sys.rst:1276 msgid "This setting is thread-specific." msgstr "Ce paramètre est spécifique au fil d'exécution courant." -#: ../Doc/library/sys.rst:1280 +#: ../Doc/library/sys.rst:1286 msgid "" "Allows intercepting creation of :term:`coroutine` objects (only ones that " "are created by an :keyword:`async def` function; generators decorated with :" @@ -2392,36 +2400,36 @@ msgstr "" "créés via :keyword:`async def`, les générateurs décorés par :func:`types." "coroutine` ou :func:`asyncio.coroutine` ne seront pas interceptés)." -#: ../Doc/library/sys.rst:1285 +#: ../Doc/library/sys.rst:1291 msgid "The *wrapper* argument must be either:" msgstr "L'argument *wrapper* doit être soit :" -#: ../Doc/library/sys.rst:1287 +#: ../Doc/library/sys.rst:1293 msgid "a callable that accepts one argument (a coroutine object);" msgstr "un appelable qui accepte un argument (une coroutine);" -#: ../Doc/library/sys.rst:1288 +#: ../Doc/library/sys.rst:1294 msgid "``None``, to reset the wrapper." msgstr "``None``, pour réinitialiser le *wrapper*." -#: ../Doc/library/sys.rst:1290 +#: ../Doc/library/sys.rst:1296 msgid "" "If called twice, the new wrapper replaces the previous one. The function is " "thread-specific." msgstr "S'il est appelé deux fois, le nouveau *wrapper* remplace le précédent." -#: ../Doc/library/sys.rst:1293 +#: ../Doc/library/sys.rst:1299 msgid "" "The *wrapper* callable cannot define new coroutines directly or indirectly::" msgstr "" "L'appelable *wrapper* ne peut pas définir de nouvelles coroutines, ni " "directement, ni indirectement : ::" -#: ../Doc/library/sys.rst:1308 +#: ../Doc/library/sys.rst:1314 msgid "See also :func:`get_coroutine_wrapper`." msgstr "Voir aussi :func:`get_coroutine_wrapper`." -#: ../Doc/library/sys.rst:1323 +#: ../Doc/library/sys.rst:1329 msgid "" "Changes the default filesystem encoding and errors mode to 'mbcs' and " "'replace' respectively, for consistency with versions of Python prior to 3.6." @@ -2430,7 +2438,7 @@ msgstr "" "fichiers à *mbcs* et *replace* respectivement, par cohérence avec les " "versions de Python antérieures à la 3.6." -#: ../Doc/library/sys.rst:1326 +#: ../Doc/library/sys.rst:1332 msgid "" "This is equivalent to defining the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` " "environment variable before launching Python." @@ -2438,11 +2446,11 @@ msgstr "" "Équivaut à définir la variable d'environnement :envvar:" "`PYTHONLEGACYWINDOWSFSENCODING` avant de lancer Python." -#: ../Doc/library/sys.rst:1331 +#: ../Doc/library/sys.rst:1337 msgid "See :pep:`529` for more details." msgstr "Voir la :pep:`529` pour plus d'informations." -#: ../Doc/library/sys.rst:1338 +#: ../Doc/library/sys.rst:1344 msgid "" ":term:`File objects ` used by the interpreter for standard " "input, output and errors:" @@ -2450,7 +2458,7 @@ msgstr "" ":term:`objets fichiers ` utilisés par l'interpréteur pour " "l'entrée standard, la sortie standard et la sortie d'erreurs :" -#: ../Doc/library/sys.rst:1341 +#: ../Doc/library/sys.rst:1347 msgid "" "``stdin`` is used for all interactive input (including calls to :func:" "`input`);" @@ -2458,7 +2466,7 @@ msgstr "" "``stdin`` est utilisé pour toutes les entrées interactives (y compris les " "appels à :func:`input`)" -#: ../Doc/library/sys.rst:1343 +#: ../Doc/library/sys.rst:1349 msgid "" "``stdout`` is used for the output of :func:`print` and :term:`expression` " "statements and for the prompts of :func:`input`;" @@ -2466,13 +2474,13 @@ msgstr "" "``stdout`` est utilisé pour la sortie de :func:`print`, des :term:" "`expression` et pour les invites de :func:`input` ;" -#: ../Doc/library/sys.rst:1345 +#: ../Doc/library/sys.rst:1351 msgid "The interpreter's own prompts and its error messages go to ``stderr``." msgstr "" "Les invites de l'interpréteur et ses messages d'erreur sont écrits sur " "``stderr``." -#: ../Doc/library/sys.rst:1347 +#: ../Doc/library/sys.rst:1353 msgid "" "These streams are regular :term:`text files ` like those returned " "by the :func:`open` function. Their parameters are chosen as follows:" @@ -2481,7 +2489,7 @@ msgstr "" "renvoyés par la fonction :func:`open`. Leurs paramètres sont choisis comme " "suit :" -#: ../Doc/library/sys.rst:1351 +#: ../Doc/library/sys.rst:1357 msgid "" "The character encoding is platform-dependent. Non-Windows platforms use the " "locale encoding (see :meth:`locale.getpreferredencoding()`)." @@ -2490,7 +2498,7 @@ msgstr "" "Windows utilisent l'encodage défini dans les paramètres régionaux (voir :" "meth:`locale.getpreferredencoding()`)." -#: ../Doc/library/sys.rst:1355 +#: ../Doc/library/sys.rst:1361 msgid "" "On Windows, UTF-8 is used for the console device. Non-character devices " "such as disk files and pipes use the system locale encoding (i.e. the ANSI " @@ -2509,7 +2517,7 @@ msgstr "" "valeur par défaut est l'encodage des paramètres régionaux système si le " "processus n'est pas attaché initialement à une console." -#: ../Doc/library/sys.rst:1364 +#: ../Doc/library/sys.rst:1370 msgid "" "The special behaviour of the console can be overridden by setting the " "environment variable PYTHONLEGACYWINDOWSSTDIO before starting Python. In " @@ -2520,7 +2528,7 @@ msgstr "" "Python. Dans ce cas, les pages de code de la console sont utilisées comme " "pour tout autre périphérique de caractères." -#: ../Doc/library/sys.rst:1369 +#: ../Doc/library/sys.rst:1375 msgid "" "Under all platforms, you can override the character encoding by setting the :" "envvar:`PYTHONIOENCODING` environment variable before starting Python or by " @@ -2535,7 +2543,7 @@ msgstr "" "Toutefois, pour la console Windows, cela s'applique uniquement lorsque :" "envvar:`PYTHONLEGACYWINDOWSSTDIO` est également défini." -#: ../Doc/library/sys.rst:1376 +#: ../Doc/library/sys.rst:1382 msgid "" "When interactive, ``stdout`` and ``stderr`` streams are line-buffered. " "Otherwise, they are block-buffered like regular text files. You can " @@ -2546,7 +2554,7 @@ msgstr "" "fichiers textes classiques. Vous pouvez remplacer cette valeur avec " "l'option :option:`-u` en ligne de commande." -#: ../Doc/library/sys.rst:1382 +#: ../Doc/library/sys.rst:1388 msgid "" "To write or read binary data from/to the standard streams, use the " "underlying binary :data:`~io.TextIOBase.buffer` object. For example, to " @@ -2557,7 +2565,7 @@ msgstr "" "pour écrire des octets sur :data:`stdout`, utilisez ``sys.stdout.buffer." "write(b'abc')``." -#: ../Doc/library/sys.rst:1386 +#: ../Doc/library/sys.rst:1392 msgid "" "However, if you are writing a library (and do not control in which context " "its code will be executed), be aware that the standard streams may be " @@ -2569,7 +2577,7 @@ msgstr "" "remplacés par des objets de type fichier tel un :class:`io.StringIO` qui " "n'ont pas l'attribut :attr:`~io.BufferedIOBase.buffer`." -#: ../Doc/library/sys.rst:1396 +#: ../Doc/library/sys.rst:1402 msgid "" "These objects contain the original values of ``stdin``, ``stderr`` and " "``stdout`` at the start of the program. They are used during finalization, " @@ -2581,7 +2589,7 @@ msgstr "" "pendant la finalisation, et peuvent être utiles pour écrire dans le vrai " "flux standard, peu importe si l'objet ``sys.std*`` a été redirigé." -#: ../Doc/library/sys.rst:1401 +#: ../Doc/library/sys.rst:1407 msgid "" "It can also be used to restore the actual files to known working file " "objects in case they have been overwritten with a broken object. However, " @@ -2593,7 +2601,7 @@ msgstr "" "cependant la bonne façon de faire serait de sauvegarder explicitement les " "flux avant de les remplacer et ainsi pouvoir les restaurer." -#: ../Doc/library/sys.rst:1407 +#: ../Doc/library/sys.rst:1413 msgid "" "Under some conditions ``stdin``, ``stdout`` and ``stderr`` as well as the " "original values ``__stdin__``, ``__stdout__`` and ``__stderr__`` can be " @@ -2606,7 +2614,7 @@ msgstr "" "Windows qui ne sont pas connectées à une console, ou les applications Python " "démarrées avec :program:`pythonw`." -#: ../Doc/library/sys.rst:1415 +#: ../Doc/library/sys.rst:1421 msgid "" "A :term:`struct sequence` holding information about the thread " "implementation." @@ -2614,52 +2622,52 @@ msgstr "" "Une :term:`struct sequence` contenant des informations sur l'implémentation " "des fils d'exécution." -#: ../Doc/library/sys.rst:1423 +#: ../Doc/library/sys.rst:1429 msgid ":const:`name`" msgstr ":const:`name`" -#: ../Doc/library/sys.rst:1423 +#: ../Doc/library/sys.rst:1429 msgid "Name of the thread implementation:" msgstr "Nom de l'implémentation des fils d'exécution :" -#: ../Doc/library/sys.rst:1425 +#: ../Doc/library/sys.rst:1431 msgid "``'nt'``: Windows threads" msgstr "``'nt'``: Fils d'exécution Windows" -#: ../Doc/library/sys.rst:1426 +#: ../Doc/library/sys.rst:1432 msgid "``'pthread'``: POSIX threads" msgstr "``'pthread'``: Fils d'exécution POSIX" -#: ../Doc/library/sys.rst:1427 +#: ../Doc/library/sys.rst:1433 msgid "``'solaris'``: Solaris threads" msgstr "``'solaris'``: Fils d'exécution Solaris" -#: ../Doc/library/sys.rst:1429 +#: ../Doc/library/sys.rst:1435 msgid ":const:`lock`" msgstr ":const:`lock`" -#: ../Doc/library/sys.rst:1429 +#: ../Doc/library/sys.rst:1435 msgid "Name of the lock implementation:" msgstr "Nom de l'implémentation du système de verrou :" -#: ../Doc/library/sys.rst:1431 +#: ../Doc/library/sys.rst:1437 msgid "``'semaphore'``: a lock uses a semaphore" msgstr "``'semaphore'``: Verrou utilisant une sémaphore" -#: ../Doc/library/sys.rst:1432 +#: ../Doc/library/sys.rst:1438 msgid "``'mutex+cond'``: a lock uses a mutex and a condition variable" msgstr "" "``'mutex+cond'``: Un verrou utilisant un *mutex* et une *condition variable*" -#: ../Doc/library/sys.rst:1434 +#: ../Doc/library/sys.rst:1440 msgid "``None`` if this information is unknown" msgstr "``None`` si cette information n'est pas connue" -#: ../Doc/library/sys.rst:1436 +#: ../Doc/library/sys.rst:1442 msgid ":const:`version`" msgstr ":const:`version`" -#: ../Doc/library/sys.rst:1436 +#: ../Doc/library/sys.rst:1442 msgid "" "Name and version of the thread library. It is a string, or ``None`` if this " "information is unknown." @@ -2667,7 +2675,7 @@ msgstr "" "Nom et version de l'implémentation des fils d'exécution, c'est une chaîne, " "ou ``None`` si ces informations sont inconnues." -#: ../Doc/library/sys.rst:1445 +#: ../Doc/library/sys.rst:1451 msgid "" "When this variable is set to an integer value, it determines the maximum " "number of levels of traceback information printed when an unhandled " @@ -2681,7 +2689,7 @@ msgstr "" "est égale ou inférieure à ``0``, la pile d'appels n'est pas affichée, seul " "seuls le type et la valeur de l'exception sont le sont." -#: ../Doc/library/sys.rst:1453 +#: ../Doc/library/sys.rst:1459 msgid "" "A string containing the version number of the Python interpreter plus " "additional information on the build number and compiler used. This string " @@ -2696,7 +2704,7 @@ msgstr "" "utilisez plutôt :data:`version_info` et les fonctions fournies par le " "module :mod:`platform`." -#: ../Doc/library/sys.rst:1462 +#: ../Doc/library/sys.rst:1468 msgid "" "The C API version for this interpreter. Programmers may find this useful " "when debugging version conflicts between Python and extension modules." @@ -2705,7 +2713,7 @@ msgstr "" "trouver cette information utile en déboguant des conflits de versions entre " "Python et des modules d'extension." -#: ../Doc/library/sys.rst:1468 +#: ../Doc/library/sys.rst:1474 msgid "" "A tuple containing the five components of the version number: *major*, " "*minor*, *micro*, *releaselevel*, and *serial*. All values except " @@ -2723,11 +2731,11 @@ msgstr "" "attributs sont aussi accessibles par leur nom, ainsi ``sys.version_info[0]`` " "est équivalent à ``sys.version_info.major``, et ainsi de suite." -#: ../Doc/library/sys.rst:1476 +#: ../Doc/library/sys.rst:1482 msgid "Added named component attributes." msgstr "Ajout des attributs nommés." -#: ../Doc/library/sys.rst:1481 +#: ../Doc/library/sys.rst:1487 msgid "" "This is an implementation detail of the warnings framework; do not modify " "this value. Refer to the :mod:`warnings` module for more information on the " @@ -2737,7 +2745,7 @@ msgstr "" "Ne modifiez pas cette valeur. Reportez-vous au module :mod:`warnings` pour " "plus d'informations sur le gestionnaire d'avertissements." -#: ../Doc/library/sys.rst:1488 +#: ../Doc/library/sys.rst:1494 msgid "" "The version number used to form registry keys on Windows platforms. This is " "stored as string resource 1000 in the Python DLL. The value is normally the " @@ -2752,7 +2760,7 @@ msgstr "" "d'information, et la modifier n'a aucun effet sur les clés de registre " "utilisées par Python." -#: ../Doc/library/sys.rst:1499 +#: ../Doc/library/sys.rst:1505 msgid "" "A dictionary of the various implementation-specific flags passed through " "the :option:`-X` command-line option. Option names are either mapped to " @@ -2763,7 +2771,7 @@ msgstr "" "correspondent soit leur valeur, si elle est donnée explicitement, soit à :" "const:`True`. Exemple:" -#: ../Doc/library/sys.rst:1515 +#: ../Doc/library/sys.rst:1521 msgid "" "This is a CPython-specific way of accessing options passed through :option:`-" "X`. Other implementations may export them through other means, or not at " @@ -2773,11 +2781,11 @@ msgstr "" "l'option :option:`-X`. D'autres implémentations pourraient les exposer par " "d'autres moyens, ou pas du tout." -#: ../Doc/library/sys.rst:1523 +#: ../Doc/library/sys.rst:1529 msgid "Citations" msgstr "Citations" -#: ../Doc/library/sys.rst:1524 +#: ../Doc/library/sys.rst:1530 msgid "" "ISO/IEC 9899:1999. \"Programming languages -- C.\" A public draft of this " "standard is available at http://www.open-std.org/jtc1/sc22/wg14/www/docs/" diff --git a/library/timeit.po b/library/timeit.po index 84e7edbd4..ad236b302 100644 --- a/library/timeit.po +++ b/library/timeit.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" diff --git a/library/typing.po b/library/typing.po index 183af6838..7627eaf12 100644 --- a/library/typing.po +++ b/library/typing.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" diff --git a/library/unittest.mock.po b/library/unittest.mock.po index b9ed3df03..910b2618d 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-20 09:03+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" diff --git a/library/unittest.po b/library/unittest.po index 166f847d8..f8a2bf317 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -5,9 +5,9 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-03-27 11:46+0100\n" -"Last-Translator: Jules Lasne \n" +"Last-Translator: Bousquié Pierre \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" diff --git a/library/urllib.parse.po b/library/urllib.parse.po index 485ea2b45..bde6e29ed 100644 --- a/library/urllib.parse.po +++ b/library/urllib.parse.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" diff --git a/library/urllib.request.po b/library/urllib.request.po index deab0b082..8db2dab99 100644 --- a/library/urllib.request.po +++ b/library/urllib.request.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" diff --git a/library/xml.dom.minidom.po b/library/xml.dom.minidom.po index 04ee4f7c3..760f4e173 100644 --- a/library/xml.dom.minidom.po +++ b/library/xml.dom.minidom.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-21 09:48+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-09-29 19:35+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" @@ -298,48 +298,20 @@ msgid ":class:`DOMTimeStamp`" msgstr ":class:`DOMTimeStamp`" #: ../Doc/library/xml.dom.minidom.rst:230 -msgid ":class:`DocumentType`" -msgstr ":class:`DocumentType`" - -#: ../Doc/library/xml.dom.minidom.rst:232 -msgid ":class:`DOMImplementation`" -msgstr ":class:`DOMImplementation`" - -#: ../Doc/library/xml.dom.minidom.rst:234 -msgid ":class:`CharacterData`" -msgstr ":class:`CharacterData`" - -#: ../Doc/library/xml.dom.minidom.rst:236 -msgid ":class:`CDATASection`" -msgstr ":class:`CDATASection`" - -#: ../Doc/library/xml.dom.minidom.rst:238 -msgid ":class:`Notation`" -msgstr ":class:`Notation`" - -#: ../Doc/library/xml.dom.minidom.rst:240 -msgid ":class:`Entity`" -msgstr ":class:`Entity`" - -#: ../Doc/library/xml.dom.minidom.rst:242 msgid ":class:`EntityReference`" msgstr ":class:`EntityReference`" -#: ../Doc/library/xml.dom.minidom.rst:244 -msgid ":class:`DocumentFragment`" -msgstr ":class:`DocumentFragment`" - -#: ../Doc/library/xml.dom.minidom.rst:246 +#: ../Doc/library/xml.dom.minidom.rst:232 msgid "" "Most of these reflect information in the XML document that is not of general " "utility to most DOM users." msgstr "" -#: ../Doc/library/xml.dom.minidom.rst:250 +#: ../Doc/library/xml.dom.minidom.rst:236 msgid "Footnotes" msgstr "Notes" -#: ../Doc/library/xml.dom.minidom.rst:251 +#: ../Doc/library/xml.dom.minidom.rst:237 msgid "" "The encoding name included in the XML output should conform to the " "appropriate standards. For example, \"UTF-8\" is valid, but \"UTF8\" is not " @@ -348,3 +320,24 @@ msgid "" "EncodingDecl and https://www.iana.org/assignments/character-sets/character-" "sets.xhtml." msgstr "" + +#~ msgid ":class:`DocumentType`" +#~ msgstr ":class:`DocumentType`" + +#~ msgid ":class:`DOMImplementation`" +#~ msgstr ":class:`DOMImplementation`" + +#~ msgid ":class:`CharacterData`" +#~ msgstr ":class:`CharacterData`" + +#~ msgid ":class:`CDATASection`" +#~ msgstr ":class:`CDATASection`" + +#~ msgid ":class:`Notation`" +#~ msgstr ":class:`Notation`" + +#~ msgid ":class:`Entity`" +#~ msgstr ":class:`Entity`" + +#~ msgid ":class:`DocumentFragment`" +#~ msgstr ":class:`DocumentFragment`" diff --git a/reference/datamodel.po b/reference/datamodel.po index c079d7ddd..79a1828fa 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-02-19 22:22+0100\n" "Last-Translator: Jules Lasne \n" "Language-Team: FRENCH \n" @@ -3252,6 +3252,7 @@ msgid "the appropriate metaclass is determined;" msgstr "la méta-classe appropriée est déterminée ;" #: ../Doc/reference/datamodel.rst:1866 +#, fuzzy msgid "the class namespace is prepared;" msgstr "l'espace de nommage de la classe est préparé ;" diff --git a/tutorial/controlflow.po b/tutorial/controlflow.po index 0e3ba0d8e..0f1cb9666 100644 --- a/tutorial/controlflow.po +++ b/tutorial/controlflow.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2019-02-10 06:38+0100\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n" diff --git a/tutorial/interpreter.po b/tutorial/interpreter.po index 21f693d32..55c812672 100644 --- a/tutorial/interpreter.po +++ b/tutorial/interpreter.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 12:24+0100\n" +"POT-Creation-Date: 2019-04-10 09:35+0200\n" "PO-Revision-Date: 2018-10-13 17:50+0200\n" "Last-Translator: Julien Palard \n" "Language-Team: FRENCH \n"