This commit is contained in:
Julien Palard 2018-12-24 14:20:55 +01:00 committed by GitHub
commit 527c1242a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-12-12 22:00+0100\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -1184,10 +1184,11 @@ msgid ""
"the ``Mapping`` class and ``_MappingSubclass__update`` in the "
"``MappingSubclass`` class respectively."
msgstr ""
"L'exemple si dessus fonctionnerait même si ``MappingSubclass`` introduisait un "
"identifieur ``__update`` puisqu'il a été remplacé avec ``_Mapping__update`` "
"dans la classe ``Mapping`` et ``_MappingSubclass__update`` dans la classe "
"``MappingSubclass`` respectivement."
"L'exemple si dessus fonctionnerait même si ``MappingSubclass`` introduisait "
"un identifieur ``__update`` puisqu'il a été remplacé avec "
"``_Mapping__update`` dans la classe ``Mapping`` et "
"``_MappingSubclass__update`` dans la classe ``MappingSubclass`` "
"respectivement."
#: ../Doc/tutorial/classes.rst:714
msgid ""
@ -1271,6 +1272,7 @@ msgstr ""
"plupart des objets conteneurs en utilisant une instruction :keyword:`for` ::"
#: ../Doc/tutorial/classes.rst:780
#, fuzzy
msgid ""
"This style of access is clear, concise, and convenient. The use of "
"iterators pervades and unifies Python. Behind the scenes, the :keyword:"
@ -1278,9 +1280,9 @@ msgid ""
"returns an iterator object that defines the method :meth:`~iterator."
"__next__` which accesses elements in the container one at a time. When "
"there are no more elements, :meth:`~iterator.__next__` raises a :exc:"
"`StopIteration` exception which tells the :keyword:`for` loop to terminate. "
"You can call the :meth:`~iterator.__next__` method using the :func:`next` "
"built-in function; this example shows how it all works::"
"`StopIteration` exception which tells the :keyword:`!for` loop to "
"terminate. You can call the :meth:`~iterator.__next__` method using the :"
"func:`next` built-in function; this example shows how it all works::"
msgstr ""
"Ce style est simple, concis et pratique. L'utilisation d'itérateurs imprègne "
"et unifie Python. En arrière plan, l'instruction :keyword:`for` appelle la "

View file

@ -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: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-07-31 23:54+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -29,7 +29,8 @@ msgstr ""
"d'autres langages, mais toujours avec ses propres tournures."
#: ../Doc/tutorial/controlflow.rst:14
msgid ":keyword:`if` Statements"
#, fuzzy
msgid ":keyword:`!if` Statements"
msgstr "L'instruction :keyword:`if`"
#: ../Doc/tutorial/controlflow.rst:16
@ -40,12 +41,13 @@ msgstr ""
"L'instruction :keyword:`if` est sans doute la plus connue. Par exemple ::"
#: ../Doc/tutorial/controlflow.rst:33
#, fuzzy
msgid ""
"There can be zero or more :keyword:`elif` parts, and the :keyword:`else` "
"part is optional. The keyword ':keyword:`elif`' is short for 'else if', and "
"is useful to avoid excessive indentation. An :keyword:`if` ... :keyword:"
"`elif` ... :keyword:`elif` ... sequence is a substitute for the ``switch`` "
"or ``case`` statements found in other languages."
"part is optional. The keyword ':keyword:`!elif`' is short for 'else if', "
"and is useful to avoid excessive indentation. An :keyword:`!if` ... :"
"keyword:`!elif` ... :keyword:`!elif` ... sequence is a substitute for the "
"``switch`` or ``case`` statements found in other languages."
msgstr ""
"Il peut y avoir un nombre quelconque de parties :keyword:`elif` et la "
"partie :keyword:`else` est facultative. Le mot clé :keyword:`elif` est un "
@ -55,18 +57,20 @@ msgstr ""
"dans d'autres langages."
#: ../Doc/tutorial/controlflow.rst:43
msgid ":keyword:`for` Statements"
#, fuzzy
msgid ":keyword:`!for` Statements"
msgstr "L'instruction :keyword:`for`"
#: ../Doc/tutorial/controlflow.rst:48
#, fuzzy
msgid ""
"The :keyword:`for` statement in Python differs a bit from what you may be "
"used to in C or Pascal. Rather than always iterating over an arithmetic "
"progression of numbers (like in Pascal), or giving the user the ability to "
"define both the iteration step and halting condition (as C), Python's :"
"keyword:`for` statement iterates over the items of any sequence (a list or a "
"string), in the order that they appear in the sequence. For example (no pun "
"intended):"
"keyword:`!for` statement iterates over the items of any sequence (a list or "
"a string), in the order that they appear in the sequence. For example (no "
"pun intended):"
msgstr ""
"L'instruction :keyword:`for` que propose Python est un peu différente de "
"celle que l'on peut trouver en C ou en Pascal. Au lieu de toujours itérer "
@ -179,8 +183,9 @@ msgstr ""
"prennent en paramètre."
#: ../Doc/tutorial/controlflow.rst:158
#, fuzzy
msgid ""
":keyword:`break` and :keyword:`continue` Statements, and :keyword:`else` "
":keyword:`!break` and :keyword:`!continue` Statements, and :keyword:`!else` "
"Clauses on Loops"
msgstr ""
"Les instructions :keyword:`break`, :keyword:`continue` et les clauses :"
@ -195,11 +200,12 @@ msgstr ""
"`for` ou :keyword:`while` la plus profonde."
#: ../Doc/tutorial/controlflow.rst:163
#, fuzzy
msgid ""
"Loop statements may have an ``else`` clause; it is executed when the loop "
"terminates through exhaustion of the list (with :keyword:`for`) or when the "
"condition becomes false (with :keyword:`while`), but not when the loop is "
"terminated by a :keyword:`break` statement. This is exemplified by the "
"Loop statements may have an :keyword:`!else` clause; it is executed when the "
"loop terminates through exhaustion of the list (with :keyword:`for`) or when "
"the condition becomes false (with :keyword:`while`), but not when the loop "
"is terminated by a :keyword:`break` statement. This is exemplified by the "
"following loop, which searches for prime numbers::"
msgstr ""
"Les boucles peuvent également disposer d'une instruction ``else`` ; celle-ci "
@ -219,12 +225,13 @@ msgstr ""
"keyword:`if`.)"
#: ../Doc/tutorial/controlflow.rst:190
#, fuzzy
msgid ""
"When used with a loop, the ``else`` clause has more in common with the "
"``else`` clause of a :keyword:`try` statement than it does that of :keyword:"
"`if` statements: a :keyword:`try` statement's ``else`` clause runs when no "
"`if` statements: a :keyword:`!try` statement's ``else`` clause runs when no "
"exception occurs, and a loop's ``else`` clause runs when no ``break`` "
"occurs. For more on the :keyword:`try` statement and exceptions, see :ref:"
"occurs. For more on the :keyword:`!try` statement and exceptions, see :ref:"
"`tut-handling`."
msgstr ""
"Lorsqu'elle utilisée dans une boucle, la clause ``else`` est donc plus "
@ -244,7 +251,8 @@ msgstr ""
"boucle à son itération suivante : ::"
#: ../Doc/tutorial/controlflow.rst:217
msgid ":keyword:`pass` Statements"
#, fuzzy
msgid ":keyword:`!pass` Statements"
msgstr "L'instruction :keyword:`pass`"
#: ../Doc/tutorial/controlflow.rst:219
@ -262,10 +270,11 @@ msgstr ""
"On utilise couramment cette instruction pour créer des classes minimales : ::"
#: ../Doc/tutorial/controlflow.rst:232
#, fuzzy
msgid ""
"Another place :keyword:`pass` can be used is as a place-holder for a "
"function or conditional body when you are working on new code, allowing you "
"to keep thinking at a more abstract level. The :keyword:`pass` is silently "
"to keep thinking at a more abstract level. The :keyword:`!pass` is silently "
"ignored::"
msgstr ""
"Un autre cas d'utilisation du :keyword:`pass` est de réserver un espace en "
@ -401,9 +410,10 @@ msgstr ""
"Python :"
#: ../Doc/tutorial/controlflow.rst:333
#, fuzzy
msgid ""
"The :keyword:`return` statement returns with a value from a function. :"
"keyword:`return` without an expression argument returns ``None``. Falling "
"keyword:`!return` without an expression argument returns ``None``. Falling "
"off the end of a function also returns ``None``."
msgstr ""
"L'instruction :keyword:`return` provoque la sortie de la fonction en "

View file

@ -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: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-12-12 22:05+0100\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -69,8 +69,8 @@ msgid ""
"Remove the first item from the list whose value is equal to *x*. It raises "
"a :exc:`ValueError` if there is no such item."
msgstr ""
"Supprime de la liste le premier élément dont la valeur est égale à *x*. Une "
":exc:`ValueError` est levée s'il n'existe aucun élément avec cette valeur."
"Supprime de la liste le premier élément dont la valeur est égale à *x*. Une :"
"exc:`ValueError` est levée s'il n'existe aucun élément avec cette valeur."
#: ../Doc/tutorial/datastructures.rst:50
msgid ""
@ -238,11 +238,12 @@ msgid "which is more concise and readable."
msgstr "qui est plus court et lisible."
#: ../Doc/tutorial/datastructures.rst:218
#, fuzzy
msgid ""
"A list comprehension consists of brackets containing an expression followed "
"by a :keyword:`for` clause, then zero or more :keyword:`for` or :keyword:"
"`if` clauses. The result will be a new list resulting from evaluating the "
"expression in the context of the :keyword:`for` and :keyword:`if` clauses "
"by a :keyword:`!for` clause, then zero or more :keyword:`!for` or :keyword:`!"
"if` clauses. The result will be a new list resulting from evaluating the "
"expression in the context of the :keyword:`!for` and :keyword:`!if` clauses "
"which follow it. For example, this listcomp combines the elements of two "
"lists if they are not equal::"
msgstr ""
@ -335,16 +336,18 @@ msgstr ""
"de cette ligne."
#: ../Doc/tutorial/datastructures.rst:334
msgid "The :keyword:`del` statement"
#, fuzzy
msgid "The :keyword:`!del` statement"
msgstr "L'instruction :keyword:`del`"
#: ../Doc/tutorial/datastructures.rst:336
#, fuzzy
msgid ""
"There is a way to remove an item from a list given its index instead of its "
"value: the :keyword:`del` statement. This differs from the :meth:`pop` "
"method which returns a value. The :keyword:`del` statement can also be used "
"to remove slices from a list or clear the entire list (which we did earlier "
"by assignment of an empty list to the slice). For example::"
"method which returns a value. The :keyword:`!del` statement can also be "
"used to remove slices from a list or clear the entire list (which we did "
"earlier by assignment of an empty list to the slice). For example::"
msgstr ""
"Il existe un moyen de retirer un élément d'une liste à partir de sa position "
"au lieu de sa valeur : l'instruction :keyword:`del`. Elle diffère de la "

View file

@ -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: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-12-12 22:06+0100\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -197,11 +197,12 @@ msgstr ""
"comme indiqué ci-dessus."
#: ../Doc/tutorial/errors.rst:114
#, fuzzy
msgid ""
"A :keyword:`try` statement may have more than one except clause, to specify "
"handlers for different exceptions. At most one handler will be executed. "
"Handlers only handle exceptions that occur in the corresponding try clause, "
"not in other handlers of the same :keyword:`try` statement. An except "
"not in other handlers of the same :keyword:`!try` statement. An except "
"clause may name multiple exceptions as a parenthesized tuple, for example::"
msgstr ""
"Une instruction :keyword:`try` peut comporter plusieurs clauses ``except`` "
@ -263,11 +264,12 @@ msgstr ""
"Par exemple : ::"
#: ../Doc/tutorial/errors.rst:183
#, fuzzy
msgid ""
"The use of the :keyword:`else` clause is better than adding additional code "
"The use of the :keyword:`!else` clause is better than adding additional code "
"to the :keyword:`try` clause because it avoids accidentally catching an "
"exception that wasn't raised by the code being protected by the :keyword:"
"`try` ... :keyword:`except` statement."
"exception that wasn't raised by the code being protected by the :keyword:`!"
"try` ... :keyword:`!except` statement."
msgstr ""
"Il vaut mieux utiliser la clause :keyword:`else` plutôt que d'ajouter du "
"code à la clause :keyword:`try` car cela évite de capturer accidentellement "
@ -425,14 +427,15 @@ msgstr ""
"circonstances. Par exemple : ::"
#: ../Doc/tutorial/errors.rst:344
#, fuzzy
msgid ""
"A *finally clause* is always executed before leaving the :keyword:`try` "
"statement, whether an exception has occurred or not. When an exception has "
"occurred in the :keyword:`try` clause and has not been handled by an :"
"keyword:`except` clause (or it has occurred in an :keyword:`except` or :"
"keyword:`else` clause), it is re-raised after the :keyword:`finally` clause "
"has been executed. The :keyword:`finally` clause is also executed \"on the "
"way out\" when any other clause of the :keyword:`try` statement is left via "
"occurred in the :keyword:`!try` clause and has not been handled by an :"
"keyword:`except` clause (or it has occurred in an :keyword:`!except` or :"
"keyword:`!else` clause), it is re-raised after the :keyword:`finally` clause "
"has been executed. The :keyword:`!finally` clause is also executed \"on the "
"way out\" when any other clause of the :keyword:`!try` statement is left via "
"a :keyword:`break`, :keyword:`continue` or :keyword:`return` statement. A "
"more complicated example::"
msgstr ""
@ -448,11 +451,12 @@ msgstr ""
"compliqué : ::"
#: ../Doc/tutorial/errors.rst:377
#, fuzzy
msgid ""
"As you can see, the :keyword:`finally` clause is executed in any event. "
"The :exc:`TypeError` raised by dividing two strings is not handled by the :"
"keyword:`except` clause and therefore re-raised after the :keyword:`finally` "
"clause has been executed."
"keyword:`except` clause and therefore re-raised after the :keyword:`!"
"finally` clause has been executed."
msgstr ""
"Comme vous pouvez le voir, la clause :keyword:`finally` est exécutée dans "
"tous les cas. L'exception de type :exc:`TypeError`, déclenchée en divisant "

View file

@ -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: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-10-04 15:54+0200\n"
"Last-Translator: \n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -414,12 +414,13 @@ msgstr ""
"mode binaire."
#: ../Doc/tutorial/inputoutput.rst:317
#, fuzzy
msgid ""
"It is good practice to use the :keyword:`with` keyword when dealing with "
"file objects. The advantage is that the file is properly closed after its "
"suite finishes, even if an exception is raised at some point. Using :"
"keyword:`with` is also much shorter than writing equivalent :keyword:`try`\\ "
"-\\ :keyword:`finally` blocks::"
"keyword:`!with` is also much shorter than writing equivalent :keyword:`try`"
"\\ -\\ :keyword:`finally` blocks::"
msgstr ""
"C'est une bonne pratique d'utiliser le mot-clé :keyword:`with` lorsque vous "
"traitez des fichiers. Vous fermez ainsi toujours correctement le fichier, "

View file

@ -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: 2018-12-21 09:48+0100\n"
"PO-Revision-Date: 2018-07-31 23:47+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -187,9 +187,10 @@ msgstr ""
"en mode interactif est acceptée pour gagner quelques secondes."
#: ../Doc/tutorial/modules.rst:115
#, fuzzy
msgid ""
"If the module name is followed by :keyword:`as`, then the name following :"
"keyword:`as` is bound directly to the imported module."
"If the module name is followed by :keyword:`!as`, then the name following :"
"keyword:`!as` is bound directly to the imported module."
msgstr ""
"Si le nom du module est suivi par :keyword:`as`, alors le nom suivant :"
"keyword:`as` est directement lié au module importé."