whatsnew 3.9 (#1367)

* suggestions de ChristopheNan

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
This commit is contained in:
Mathieu Dupuy 2020-08-07 16:09:53 +02:00 committed by GitHub
parent 3ac585e90f
commit 608f750486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,17 +6,18 @@ msgstr ""
"Project-Id-Version: Python 3\n" "Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-07-20 10:51+0200\n" "POT-Creation-Date: 2020-07-20 10:51+0200\n"
"PO-Revision-Date: 2020-07-20 15:07+0200\n" "PO-Revision-Date: 2020-08-06 00:39+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" "Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n" "Language: fr\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Last-Translator: \n"
"X-Generator: Poedit 2.4\n"
#: whatsnew/3.9.rst:3 #: whatsnew/3.9.rst:3
msgid "What's New In Python 3.9" msgid "What's New In Python 3.9"
msgstr "" msgstr "Les nouveautés de Python 3.9"
#: whatsnew/3.9.rst:0 #: whatsnew/3.9.rst:0
msgid "Release" msgid "Release"
@ -37,10 +38,12 @@ msgstr "|today|"
#: whatsnew/3.9.rst:48 #: whatsnew/3.9.rst:48
msgid "This article explains the new features in Python 3.9, compared to 3.8." msgid "This article explains the new features in Python 3.9, compared to 3.8."
msgstr "" msgstr ""
"Cet article explique les nouvelles fonctionnalités de Python 3.9 par rapport "
"à la version 3.8."
#: whatsnew/3.9.rst:50 #: whatsnew/3.9.rst:50
msgid "For full details, see the :ref:`changelog <changelog>`." msgid "For full details, see the :ref:`changelog <changelog>`."
msgstr "" msgstr "Pour plus de détails, voir le :ref:`changelog <changelog>`."
#: whatsnew/3.9.rst:54 #: whatsnew/3.9.rst:54
msgid "" msgid ""
@ -48,14 +51,19 @@ msgid ""
"form. It will be updated substantially as Python 3.9 moves towards release, " "form. It will be updated substantially as Python 3.9 moves towards release, "
"so it's worth checking back even after reading earlier versions." "so it's worth checking back even after reading earlier versions."
msgstr "" msgstr ""
"Les utilisateurs de la prépublication doivent savoir que ce document est "
"actuellement à l'état de brouillon. Il sera mis à jour de manière "
"substantielle au fur et à mesure que Python 3.9 se rapprochera de sa version "
"finale, il est donc utile de le consulter même après avoir lu les versions "
"précédentes."
#: whatsnew/3.9.rst:60 #: whatsnew/3.9.rst:60
msgid "Summary -- Release highlights" msgid "Summary -- Release highlights"
msgstr "" msgstr "Résumé Points forts de la publication"
#: whatsnew/3.9.rst:70 #: whatsnew/3.9.rst:70
msgid "You should check for DeprecationWarning in your code" msgid "You should check for DeprecationWarning in your code"
msgstr "" msgstr "Vous devez vérifier la présence de DeprecationWarning dans votre code"
#: whatsnew/3.9.rst:72 #: whatsnew/3.9.rst:72
msgid "" msgid ""
@ -67,6 +75,14 @@ msgid ""
"Mapping`` emits a :exc:`DeprecationWarning` since Python 3.3, released in " "Mapping`` emits a :exc:`DeprecationWarning` since Python 3.3, released in "
"2012." "2012."
msgstr "" msgstr ""
"Lorsque Python 2.7 était encore supporté, de nombreuses fonctions ont été "
"conservées pour assurer la rétrocompatibilité avec Python 2.7. Avec la fin "
"du support de Python 2.7, ces couches de rétrocompatibilité ont été "
"supprimées, ou le seront bientôt. La plupart d'entre elles ont émis un "
"avertissement :exc:`DeprecationWarning` pendant plusieurs années. Par "
"exemple, l'utilisation de ``collections.Mapping`` au lieu de ``collections."
"abc.Mapping`` émet un :exc:`DeprecationWarning` depuis Python 3.3, sorti en "
"2012."
#: whatsnew/3.9.rst:79 #: whatsnew/3.9.rst:79
msgid "" msgid ""
@ -76,6 +92,12 @@ msgid ""
"Filter <warning-filter>` can be used to ignore warnings from third-party " "Filter <warning-filter>` can be used to ignore warnings from third-party "
"code." "code."
msgstr "" msgstr ""
"Testez votre application avec l'option de ligne de commande :option:`-W` "
"``default`` pour voir les :exc:`DeprecationWarning` et les :exc:"
"`PendingDeprecationWarning`, ou même avec :option:`-W` ``error`` pour les "
"traiter comme des erreurs. :ref:`Le filtre des avertissements <warning-"
"filter>` peut être utilisé pour ignorer les avertissements provenant de code "
"de tierces parties."
#: whatsnew/3.9.rst:84 #: whatsnew/3.9.rst:84
msgid "" msgid ""
@ -83,6 +105,10 @@ msgid ""
"release, to give more time to Python projects maintainers to organize the " "release, to give more time to Python projects maintainers to organize the "
"removal of the Python 2 support and add support for Python 3.9." "removal of the Python 2 support and add support for Python 3.9."
msgstr "" msgstr ""
"Il a été décidé de conserver quelques couches de compatibilité ascendante "
"pour une dernière version, afin de donner plus de temps aux responsables des "
"projets Python pour organiser la suppression du support de Python 2 et "
"ajouter le support de Python 3.9."
#: whatsnew/3.9.rst:88 #: whatsnew/3.9.rst:88
msgid "" msgid ""
@ -91,6 +117,11 @@ msgid ""
"class:`collections.abc.Mapping`, are kept for one last release for backward " "class:`collections.abc.Mapping`, are kept for one last release for backward "
"compatibility. They will be removed from Python 3.10." "compatibility. They will be removed from Python 3.10."
msgstr "" msgstr ""
"Les alias vers :ref:`Abstract Base Classes <collections-abstract-base-"
"classes>` dans le module :mod:`collections`, comme l'alias ``collections."
"Mapping`` vers :class:`collections.abc.Mapping`, sont conservés pour une "
"dernière version au titre de la rétrocompatibilité. Ils seront supprimés de "
"Python 3.10."
#: whatsnew/3.9.rst:93 #: whatsnew/3.9.rst:93
msgid "" msgid ""
@ -98,6 +129,9 @@ msgid ""
"<devmode>` which helps to prepare your code to make it compatible with the " "<devmode>` which helps to prepare your code to make it compatible with the "
"next Python version." "next Python version."
msgstr "" msgstr ""
"Plus généralement, essayez d'exécuter vos tests dans le :ref:`Python "
"Development Mode <devmode>` qui aide à préparer votre code pour le rendre "
"compatible avec la prochaine version de Python."
#: whatsnew/3.9.rst:99 whatsnew/3.9.rst:1031 #: whatsnew/3.9.rst:99 whatsnew/3.9.rst:1031
msgid "New Features" msgid "New Features"
@ -105,7 +139,7 @@ msgstr "Nouvelles fonctionnalités"
#: whatsnew/3.9.rst:102 #: whatsnew/3.9.rst:102
msgid "Dictionary Merge & Update Operators" msgid "Dictionary Merge & Update Operators"
msgstr "" msgstr "Opérateurs de fusion et de mise à jour de dictionnaires"
#: whatsnew/3.9.rst:104 #: whatsnew/3.9.rst:104
msgid "" msgid ""
@ -113,10 +147,15 @@ msgid ""
"class:`dict` class. See :pep:`584` for a full description. (Contributed by " "class:`dict` class. See :pep:`584` for a full description. (Contributed by "
"Brandt Bucher in :issue:`36144`.)" "Brandt Bucher in :issue:`36144`.)"
msgstr "" msgstr ""
"Les opérateurs de fusion (``|``) et de mise à jour (``|=``) ont été ajoutés "
"à la classe native :class:`dict`. Voir :pep:`584` pour une description "
"complète (contribution de Brandt Bucher dans :issue:`36144`)."
#: whatsnew/3.9.rst:109 #: whatsnew/3.9.rst:109
msgid "PEP 616: New removeprefix() and removesuffix() string methods" msgid "PEP 616: New removeprefix() and removesuffix() string methods"
msgstr "" msgstr ""
"PEP 616 : nouvelles méthodes de chaînes de caractères removeprefix() et "
"removesuffix()"
#: whatsnew/3.9.rst:111 #: whatsnew/3.9.rst:111
msgid "" msgid ""
@ -127,10 +166,16 @@ msgid ""
"See :pep:`616` for a full description. (Contributed by Dennis Sweeney in :" "See :pep:`616` for a full description. (Contributed by Dennis Sweeney in :"
"issue:`39939`.)" "issue:`39939`.)"
msgstr "" msgstr ""
":meth:`str.removeprefix(préfixe)<str.removeprefix>` et :meth:`str."
"removesuffix(suffixe)<str.removesuffix>` ont été ajoutées pour supprimer "
"facilement un préfixe ou un suffixe inutile d'une chaîne. Les méthodes "
"correspondantes de ``bytes``, ``bytearray`` et ``collections.UserString`` "
"ont également été ajoutées. Voir :pep:`616` pour une description complète "
"(contribution de Dennis Sweeney dans :issue:`39939`)."
#: whatsnew/3.9.rst:119 #: whatsnew/3.9.rst:119
msgid "PEP 585: Builtin Generic Types" msgid "PEP 585: Builtin Generic Types"
msgstr "" msgstr "PEP 585 : Types génériques natifs"
#: whatsnew/3.9.rst:121 #: whatsnew/3.9.rst:121
msgid "" msgid ""
@ -140,6 +185,11 @@ msgid ""
"``typing``. Some other types in the standard library are also now generic, " "``typing``. Some other types in the standard library are also now generic, "
"for example ``queue.Queue``." "for example ``queue.Queue``."
msgstr "" msgstr ""
"Dans les annotations de type, vous pouvez maintenant utiliser les types de "
"collection natifs tels que ``list`` et ``dict`` comme types génériques au "
"lieu d'importer les types en majuscules correspondants (par exemple ``List`` "
"ou ``Dict``) à partir de ``typing``. D'autres types de la bibliothèque "
"standard sont maintenant génériques, par exemple ``queue.Queue``."
#: whatsnew/3.9.rst:127 whatsnew/3.9.rst:963 #: whatsnew/3.9.rst:127 whatsnew/3.9.rst:963
msgid "Example:" msgid "Example:"
@ -150,10 +200,12 @@ msgid ""
"See :pep:`585` for more details. (Contributed by Guido van Rossum, Ethan " "See :pep:`585` for more details. (Contributed by Guido van Rossum, Ethan "
"Smith, and Batuhan Taşkaya in :issue:`39481`.)" "Smith, and Batuhan Taşkaya in :issue:`39481`.)"
msgstr "" msgstr ""
"Voir :pep:`585` pour plus de détails (contribution de Guido van Rossum, "
"Ethan Smith et Batuhan Taşkaya dans :issue:`39481`)."
#: whatsnew/3.9.rst:139 #: whatsnew/3.9.rst:139
msgid "PEP 617: New Parser" msgid "PEP 617: New Parser"
msgstr "" msgstr "PEP 617 : Nouvel analyseur syntaxique"
#: whatsnew/3.9.rst:141 #: whatsnew/3.9.rst:141
msgid "" msgid ""
@ -164,12 +216,21 @@ msgid ""
"when it comes to designing new language features. We'll start using this " "when it comes to designing new language features. We'll start using this "
"flexibility in Python 3.10 and later." "flexibility in Python 3.10 and later."
msgstr "" msgstr ""
"Python 3.9 utilise un nouvel analyseur syntaxique, basé sur `PEG <https://en."
"wikipedia.org/wiki/Parsing_expression_grammar>`_ au lieu de `LL(1) <https://"
"fr.wikipedia.org/wiki/Analyse_LL>`_. Les performances du nouvel analyseur "
"sont à peu près comparables à celles de l'ancien, mais le formalisme PEG est "
"plus souple que LL(1) lorsqu'il s'agit de concevoir de nouvelles "
"fonctionnalités du langage. Nous commencerons à utiliser cette flexibilité "
"en Python 3.10 et supérieur."
#: whatsnew/3.9.rst:149 #: whatsnew/3.9.rst:149
msgid "" msgid ""
"The :mod:`ast` module uses the new parser and produces the same AST as the " "The :mod:`ast` module uses the new parser and produces the same AST as the "
"old parser." "old parser."
msgstr "" msgstr ""
"Le module :mod:`ast` utilise le nouvel analyseur syntaxique et produit le "
"même AST que l'ancien analyseur."
#: whatsnew/3.9.rst:152 #: whatsnew/3.9.rst:152
msgid "" msgid ""
@ -179,12 +240,19 @@ msgid ""
"using a command line switch (``-X oldparser``) or an environment variable " "using a command line switch (``-X oldparser``) or an environment variable "
"(``PYTHONOLDPARSER=1``)." "(``PYTHONOLDPARSER=1``)."
msgstr "" msgstr ""
"En Python 3.10, l'ancien analyseur sera supprimé ainsi que toutes les "
"fonctionnalités qui en dépendent (principalement le module :mod:`parser`, "
"qui est obsolète depuis longtemps). En Python 3.9 *seulement*, vous pouvez "
"revenir à l'analyseur LL(1) en utilisant une option en ligne de commande (``-"
"X oldparser``) ou une variable d'environnement (``PYTHONOLDPARSER=1``)."
#: whatsnew/3.9.rst:158 #: whatsnew/3.9.rst:158
msgid "" msgid ""
"See :pep:`617` for more details. (Contributed by Guido van Rossum, Pablo " "See :pep:`617` for more details. (Contributed by Guido van Rossum, Pablo "
"Galindo and Lysandros Nikolaou in :issue:`40334`.)" "Galindo and Lysandros Nikolaou in :issue:`40334`.)"
msgstr "" msgstr ""
"Voir :pep:`617` pour plus de détails (contribution de Guido van Rossum, "
"Pablo Galindo et Lysandros Nikolaou dans :issue:`40334`)."
#: whatsnew/3.9.rst:163 #: whatsnew/3.9.rst:163
msgid "Other Language Changes" msgid "Other Language Changes"