1
0
Fork 0
python-docs-fr/library/itertools.po

1048 lines
40 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
2023-04-14 11:20:40 +00:00
"POT-Creation-Date: 2023-04-14 13:19+0200\n"
"PO-Revision-Date: 2023-02-17 11:56+0100\n"
"Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.2.2\n"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:2
2016-10-30 09:46:26 +00:00
msgid ":mod:`itertools` --- Functions creating iterators for efficient looping"
msgstr ""
2019-10-09 19:29:12 +00:00
":mod:`itertools` — Fonctions créant des itérateurs pour boucler efficacement"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:20
2016-10-30 09:46:26 +00:00
msgid ""
"This module implements a number of :term:`iterator` building blocks inspired "
"by constructs from APL, Haskell, and SML. Each has been recast in a form "
"suitable for Python."
msgstr ""
2017-09-22 08:05:00 +00:00
"Ce module implémente de nombreuses briques :term:`d'itérateurs <itérateur>` "
2019-10-09 19:29:12 +00:00
"inspirées par des éléments de APL, Haskell et SML. Toutes ont été "
"retravaillées dans un format adapté à Python."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:24
2016-10-30 09:46:26 +00:00
msgid ""
"The module standardizes a core set of fast, memory efficient tools that are "
"useful by themselves or in combination. Together, they form an \"iterator "
"algebra\" making it possible to construct specialized tools succinctly and "
"efficiently in pure Python."
msgstr ""
2019-10-09 19:29:12 +00:00
"Ce module standardise un ensemble de base d'outils rapides et efficaces en "
"mémoire qui peuvent être utilisés individuellement ou en les combinant. "
"Ensemble, ils forment une « algèbre d'itérateurs » rendant possible la "
"construction rapide et efficace d'outils spécialisés en Python."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:29
2016-10-30 09:46:26 +00:00
msgid ""
"For instance, SML provides a tabulation tool: ``tabulate(f)`` which produces "
"a sequence ``f(0), f(1), ...``. The same effect can be achieved in Python "
"by combining :func:`map` and :func:`count` to form ``map(f, count())``."
msgstr ""
"Par exemple, SML fournit un outil de tabulation ``tabulate(f)`` qui produit "
2019-10-09 19:29:12 +00:00
"une séquence ``f(0), f(1), ...``. Le même résultat peut être obtenu en "
2017-09-24 21:19:43 +00:00
"Python en combinant :func:`map` et :func:`count` pour former ``map(f, "
"count())``."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:33
2016-10-30 09:46:26 +00:00
msgid ""
"These tools and their built-in counterparts also work well with the high-"
"speed functions in the :mod:`operator` module. For example, the "
"multiplication operator can be mapped across two vectors to form an "
"efficient dot-product: ``sum(starmap(operator.mul, zip(vec1, vec2, "
"strict=True)))``."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Ces outils et leurs équivalents natifs fonctionnent également bien avec les "
"fonctions optimisées du module :mod:`operator`. Par exemple, l'opérateur de "
"multiplication peut être appliqué à deux vecteurs pour créer un produit "
"scalaire efficace : ``sum(map(operator.mul, vecteur1, vecteur2))``."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:39
2018-01-04 14:57:05 +00:00
msgid "**Infinite iterators:**"
2018-05-08 18:27:09 +00:00
msgstr "**Itérateurs infinis :**"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:52 library/itertools.rst:72
2016-10-30 09:46:26 +00:00
msgid "Iterator"
msgstr "Itérateur"
#: library/itertools.rst:52 library/itertools.rst:72
2016-10-30 09:46:26 +00:00
msgid "Arguments"
msgstr "Arguments"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:52 library/itertools.rst:81
2016-10-30 09:46:26 +00:00
msgid "Results"
msgstr "Résultats"
#: library/itertools.rst:52
2016-10-30 09:46:26 +00:00
msgid "Example"
msgstr "Exemple"
#: library/itertools.rst:44
2016-10-30 09:46:26 +00:00
msgid ":func:`count`"
msgstr ":func:`count`"
#: library/itertools.rst:44
2016-10-30 09:46:26 +00:00
msgid "start, [step]"
msgstr "start, [step]"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:44
2016-10-30 09:46:26 +00:00
msgid "start, start+step, start+2*step, ..."
msgstr "start, start+step, start+2*step, ..."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:44
2016-10-30 09:46:26 +00:00
msgid "``count(10) --> 10 11 12 13 14 ...``"
msgstr "``count(10) --> 10 11 12 13 14 ...``"
#: library/itertools.rst:45
2016-10-30 09:46:26 +00:00
msgid ":func:`cycle`"
msgstr ":func:`cycle`"
#: library/itertools.rst:45
2016-10-30 09:46:26 +00:00
msgid "p"
msgstr "p"
#: library/itertools.rst:45
2016-10-30 09:46:26 +00:00
msgid "p0, p1, ... plast, p0, p1, ..."
msgstr "p0, p1, ... plast, p0, p1, ..."
#: library/itertools.rst:45
2016-10-30 09:46:26 +00:00
msgid "``cycle('ABCD') --> A B C D A B C D ...``"
msgstr "``cycle('ABCD') --> A B C D A B C D ...``"
#: library/itertools.rst:46
2016-10-30 09:46:26 +00:00
msgid ":func:`repeat`"
msgstr ":func:`repeat`"
#: library/itertools.rst:46
2016-10-30 09:46:26 +00:00
msgid "elem [,n]"
msgstr "elem [,n]"
#: library/itertools.rst:46
2016-10-30 09:46:26 +00:00
msgid "elem, elem, elem, ... endlessly or up to n times"
2018-09-28 12:32:48 +00:00
msgstr "*elem*, *elem*, *elem*, ... à l'infini ou jusqu'à n fois"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:46
2016-10-30 09:46:26 +00:00
msgid "``repeat(10, 3) --> 10 10 10``"
msgstr "``repeat(10, 3) --> 10 10 10``"
#: library/itertools.rst:49
2016-10-30 09:46:26 +00:00
msgid "**Iterators terminating on the shortest input sequence:**"
msgstr "**Itérateurs se terminant par la séquence d'entrée la plus courte :**"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:54
2016-10-30 09:46:26 +00:00
msgid ":func:`accumulate`"
msgstr ":func:`accumulate`"
#: library/itertools.rst:54
2016-10-30 09:46:26 +00:00
msgid "p [,func]"
msgstr "p [,func]"
#: library/itertools.rst:54
2016-10-30 09:46:26 +00:00
msgid "p0, p0+p1, p0+p1+p2, ..."
msgstr "p0, p0+p1, p0+p1+p2, ..."
#: library/itertools.rst:54
2016-10-30 09:46:26 +00:00
msgid "``accumulate([1,2,3,4,5]) --> 1 3 6 10 15``"
msgstr "``accumulate([1,2,3,4,5]) --> 1 3 6 10 15``"
#: library/itertools.rst:55
2016-10-30 09:46:26 +00:00
msgid ":func:`chain`"
msgstr ":func:`chain`"
#: library/itertools.rst:66
2016-10-30 09:46:26 +00:00
msgid "p, q, ..."
msgstr "p, q, ..."
#: library/itertools.rst:56
2016-10-30 09:46:26 +00:00
msgid "p0, p1, ... plast, q0, q1, ..."
msgstr "p0, p1, ... plast, q0, q1, ..."
#: library/itertools.rst:55
2016-10-30 09:46:26 +00:00
msgid "``chain('ABC', 'DEF') --> A B C D E F``"
msgstr "``chain('ABC', 'DEF') --> A B C D E F``"
#: library/itertools.rst:56
2016-10-30 09:46:26 +00:00
msgid ":func:`chain.from_iterable`"
msgstr ":func:`chain.from_iterable`"
#: library/itertools.rst:62
2016-10-30 09:46:26 +00:00
msgid "iterable"
msgstr "itérable"
#: library/itertools.rst:56
2016-10-30 09:46:26 +00:00
msgid "``chain.from_iterable(['ABC', 'DEF']) --> A B C D E F``"
msgstr "``chain.from_iterable(['ABC', 'DEF']) --> A B C D E F``"
#: library/itertools.rst:57
2016-10-30 09:46:26 +00:00
msgid ":func:`compress`"
msgstr ":func:`compress`"
#: library/itertools.rst:57
2016-10-30 09:46:26 +00:00
msgid "data, selectors"
msgstr "data, selectors"
#: library/itertools.rst:57
2016-10-30 09:46:26 +00:00
msgid "(d[0] if s[0]), (d[1] if s[1]), ..."
msgstr "(d[0] if s[0]), (d[1] if s[1]), ..."
#: library/itertools.rst:57
2016-10-30 09:46:26 +00:00
msgid "``compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F``"
msgstr "``compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F``"
#: library/itertools.rst:58
2016-10-30 09:46:26 +00:00
msgid ":func:`dropwhile`"
msgstr ":func:`dropwhile`"
#: library/itertools.rst:59 library/itertools.rst:64
2016-10-30 09:46:26 +00:00
msgid "pred, seq"
msgstr "pred, seq"
#: library/itertools.rst:58
2016-10-30 09:46:26 +00:00
msgid "seq[n], seq[n+1], starting when pred fails"
2018-09-28 12:23:02 +00:00
msgstr "``seq[n]``, ``seq[n+1]``, commençant quand *pred* échoue"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:58
2016-10-30 09:46:26 +00:00
msgid "``dropwhile(lambda x: x<5, [1,4,6,4,1]) --> 6 4 1``"
msgstr "``dropwhile(lambda x: x<5, [1,4,6,4,1]) --> 6 4 1``"
#: library/itertools.rst:59
2016-10-30 09:46:26 +00:00
msgid ":func:`filterfalse`"
msgstr ":func:`filterfalse`"
#: library/itertools.rst:59
2016-10-30 09:46:26 +00:00
msgid "elements of seq where pred(elem) is false"
2019-10-09 19:29:12 +00:00
msgstr "éléments de *seq* pour lesquels *pred(elem)* est faux"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:59
2016-10-30 09:46:26 +00:00
msgid "``filterfalse(lambda x: x%2, range(10)) --> 0 2 4 6 8``"
msgstr "``filterfalse(lambda x: x%2, range(10)) --> 0 2 4 6 8``"
#: library/itertools.rst:60
2016-10-30 09:46:26 +00:00
msgid ":func:`groupby`"
msgstr ":func:`groupby`"
#: library/itertools.rst:60
2017-12-01 06:48:13 +00:00
msgid "iterable[, key]"
2017-12-03 13:00:24 +00:00
msgstr "iterable[, key]"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:60
2017-12-01 06:48:13 +00:00
msgid "sub-iterators grouped by value of key(v)"
2017-12-03 13:00:24 +00:00
msgstr "sous-itérateurs groupés par la valeur de *key(v)*"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:61
2016-10-30 09:46:26 +00:00
msgid ":func:`islice`"
msgstr ":func:`islice`"
#: library/itertools.rst:61
2016-10-30 09:46:26 +00:00
msgid "seq, [start,] stop [, step]"
msgstr "seq, [start,] stop [, step]"
#: library/itertools.rst:61
2016-10-30 09:46:26 +00:00
msgid "elements from seq[start:stop:step]"
2018-09-28 12:23:02 +00:00
msgstr "éléments de ``seq[start:stop:step]``"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:61
2016-10-30 09:46:26 +00:00
msgid "``islice('ABCDEFG', 2, None) --> C D E F G``"
msgstr "``islice('ABCDEFG', 2, None) --> C D E F G``"
#: library/itertools.rst:62
msgid ":func:`pairwise`"
msgstr ":func:`pairwise`"
#: library/itertools.rst:62
msgid "(p[0], p[1]), (p[1], p[2])"
msgstr "(p[0], p[1]), (p[1], p[2])"
#: library/itertools.rst:62
msgid "``pairwise('ABCDEFG') --> AB BC CD DE EF FG``"
msgstr "``pairwise('ABCDEFG') --> AB BC CD DE EF FG``"
#: library/itertools.rst:63
2016-10-30 09:46:26 +00:00
msgid ":func:`starmap`"
msgstr ":func:`starmap`"
#: library/itertools.rst:63
2016-10-30 09:46:26 +00:00
msgid "func, seq"
msgstr "func, seq"
#: library/itertools.rst:63
2016-10-30 09:46:26 +00:00
msgid "func(\\*seq[0]), func(\\*seq[1]), ..."
msgstr "func(\\*seq[0]), func(\\*seq[1]), ..."
#: library/itertools.rst:63
2016-10-30 09:46:26 +00:00
msgid "``starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000``"
msgstr "``starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000``"
#: library/itertools.rst:64
2016-10-30 09:46:26 +00:00
msgid ":func:`takewhile`"
msgstr ":func:`takewhile`"
#: library/itertools.rst:64
2016-10-30 09:46:26 +00:00
msgid "seq[0], seq[1], until pred fails"
2018-09-28 12:23:02 +00:00
msgstr "``seq[0]``, ``seq[1]``, jusqu'à ce que *pred* échoue"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:64
2016-10-30 09:46:26 +00:00
msgid "``takewhile(lambda x: x<5, [1,4,6,4,1]) --> 1 4``"
msgstr "``takewhile(lambda x: x<5, [1,4,6,4,1]) --> 1 4``"
#: library/itertools.rst:65
2016-10-30 09:46:26 +00:00
msgid ":func:`tee`"
msgstr ":func:`tee`"
#: library/itertools.rst:65
2016-10-30 09:46:26 +00:00
msgid "it, n"
msgstr "it, n"
#: library/itertools.rst:65
2016-10-30 09:46:26 +00:00
msgid "it1, it2, ... itn splits one iterator into n"
msgstr "*it1*, *it2*, ... *itn* sépare un itérateur en *n*"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:66
2016-10-30 09:46:26 +00:00
msgid ":func:`zip_longest`"
msgstr ":func:`zip_longest`"
#: library/itertools.rst:66
2016-10-30 09:46:26 +00:00
msgid "(p[0], q[0]), (p[1], q[1]), ..."
msgstr "(p[0], q[0]), (p[1], q[1]), ..."
#: library/itertools.rst:66
2016-10-30 09:46:26 +00:00
msgid "``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-``"
msgstr "``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-``"
#: library/itertools.rst:69
2018-01-04 14:57:05 +00:00
msgid "**Combinatoric iterators:**"
2018-05-08 18:27:09 +00:00
msgstr "**Itérateurs combinatoires :**"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:74
2016-10-30 09:46:26 +00:00
msgid ":func:`product`"
msgstr ":func:`product`"
#: library/itertools.rst:74
2016-10-30 09:46:26 +00:00
msgid "p, q, ... [repeat=1]"
msgstr "p, q, ... [repeat=1]"
#: library/itertools.rst:74
2016-10-30 09:46:26 +00:00
msgid "cartesian product, equivalent to a nested for-loop"
msgstr "produit cartésien, équivalent à une boucle *for* imbriquée"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:75
2016-10-30 09:46:26 +00:00
msgid ":func:`permutations`"
msgstr ":func:`permutations`"
#: library/itertools.rst:75
2016-10-30 09:46:26 +00:00
msgid "p[, r]"
msgstr "p[, r]"
#: library/itertools.rst:75
2016-10-30 09:46:26 +00:00
msgid "r-length tuples, all possible orderings, no repeated elements"
msgstr ""
"*n*-uplets de longueur r, tous les ré-arrangements possibles, sans "
"répétition d'éléments"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:76
2016-10-30 09:46:26 +00:00
msgid ":func:`combinations`"
msgstr ":func:`combinations`"
#: library/itertools.rst:77
2016-10-30 09:46:26 +00:00
msgid "p, r"
msgstr "p, r"
#: library/itertools.rst:76
2016-10-30 09:46:26 +00:00
msgid "r-length tuples, in sorted order, no repeated elements"
msgstr "*n*-uplets de longueur r, ordonnés, sans répétition d'éléments"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:77
2016-10-30 09:46:26 +00:00
msgid ":func:`combinations_with_replacement`"
msgstr ":func:`combinations_with_replacement`"
#: library/itertools.rst:77
2016-10-30 09:46:26 +00:00
msgid "r-length tuples, in sorted order, with repeated elements"
msgstr "*n*-uplets de longueur r, ordonnés, avec répétition d'éléments"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:81
2019-09-04 09:35:23 +00:00
msgid "Examples"
2019-10-09 19:29:12 +00:00
msgstr "Exemples"
2019-09-04 09:35:23 +00:00
#: library/itertools.rst:83
2016-10-30 09:46:26 +00:00
msgid "``product('ABCD', repeat=2)``"
msgstr "``product('ABCD', repeat=2)``"
#: library/itertools.rst:83
2016-10-30 09:46:26 +00:00
msgid "``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``"
msgstr "``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``"
#: library/itertools.rst:84
2016-10-30 09:46:26 +00:00
msgid "``permutations('ABCD', 2)``"
msgstr "``permutations('ABCD', 2)``"
#: library/itertools.rst:84
2016-10-30 09:46:26 +00:00
msgid "``AB AC AD BA BC BD CA CB CD DA DB DC``"
msgstr "``AB AC AD BA BC BD CA CB CD DA DB DC``"
#: library/itertools.rst:85
2016-10-30 09:46:26 +00:00
msgid "``combinations('ABCD', 2)``"
msgstr "``combinations('ABCD', 2)``"
#: library/itertools.rst:85
2016-10-30 09:46:26 +00:00
msgid "``AB AC AD BC BD CD``"
msgstr "``AB AC AD BC BD CD``"
#: library/itertools.rst:86
2019-09-04 09:35:23 +00:00
msgid "``combinations_with_replacement('ABCD', 2)``"
2016-10-30 09:46:26 +00:00
msgstr "``combinations_with_replacement('ABCD', 2)``"
#: library/itertools.rst:86
2016-10-30 09:46:26 +00:00
msgid "``AA AB AC AD BB BC BD CC CD DD``"
msgstr "``AA AB AC AD BB BC BD CC CD DD``"
#: library/itertools.rst:93
2016-10-30 09:46:26 +00:00
msgid "Itertool functions"
msgstr "Fonctions d'*itertool*"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:95
2016-10-30 09:46:26 +00:00
msgid ""
"The following module functions all construct and return iterators. Some "
"provide streams of infinite length, so they should only be accessed by "
"functions or loops that truncate the stream."
msgstr ""
2019-10-09 19:29:12 +00:00
"Toutes les fonctions du module qui suivent construisent et renvoient des "
"itérateurs. Certaines produisent des flux de longueur infinie ; celles-ci ne "
"doivent donc être contrôlées que par des fonctions ou boucles qui "
"interrompent le flux."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:101
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that returns accumulated sums, or accumulated results of "
2019-09-04 09:35:23 +00:00
"other binary functions (specified via the optional *func* argument)."
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie les sommes cumulées, ou les résultats cumulés "
"d'autres fonctions binaires (spécifiées par l'argument optionnel *func*)."
2019-09-04 09:35:23 +00:00
#: library/itertools.rst:105
2019-09-04 09:35:23 +00:00
msgid ""
"If *func* is supplied, it should be a function of two arguments. Elements of "
2016-10-30 09:46:26 +00:00
"the input *iterable* may be any type that can be accepted as arguments to "
"*func*. (For example, with the default operation of addition, elements may "
"be any addable type including :class:`~decimal.Decimal` or :class:"
2019-09-04 09:35:23 +00:00
"`~fractions.Fraction`.)"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Si *func* est renseigné, il doit être une fonction à deux arguments. Les "
"éléments de *iterable* peuvent être de n'importe quel type acceptable comme "
"arguments de *func*. Par exemple, avec l'opération par défaut d'addition, "
"les éléments peuvent être de n'importe quel type additionnable, :class:"
"`~decimal.Decimal` ou :class:`~fractions.Fraction` inclus."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:112
2019-09-04 09:35:23 +00:00
msgid ""
"Usually, the number of elements output matches the input iterable. However, "
"if the keyword argument *initial* is provided, the accumulation leads off "
"with the *initial* value so that the output has one more element than the "
"input iterable."
msgstr ""
2019-10-09 19:29:12 +00:00
"De manière générale, le nombre d'éléments produits par la sortie correspond "
"au nombre d'éléments de *'iterable* en entrée. Cependant, si le paramètre "
"nommé *initial* est fourni, l'accumulation conserve comme premier élément la "
"valeur de *initial* et donc la sortie compte un élément de plus que ce qui "
"est produit par l'entrée *iterable*."
2019-09-04 09:35:23 +00:00
#: library/itertools.rst:203 library/itertools.rst:452
#: library/itertools.rst:515 library/itertools.rst:595
2016-10-30 09:46:26 +00:00
msgid "Roughly equivalent to::"
msgstr "À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:136
2016-10-30 09:46:26 +00:00
msgid ""
"There are a number of uses for the *func* argument. It can be set to :func:"
"`min` for a running minimum, :func:`max` for a running maximum, or :func:"
"`operator.mul` for a running product. Amortization tables can be built by "
"accumulating interest and applying payments:"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Il y a de nombreuses utilisations à l'argument *func*. Celui-ci peut être :"
"func:`min` pour calculer un minimum glissant, :func:`max` pour un maximum "
"glissant ou :func:`operator.mul` pour un produit glissant. Des tableaux de "
"remboursements peuvent être construits en ajoutant les intérêts et en "
"soustrayant les paiements :"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:154
2016-10-30 09:46:26 +00:00
msgid ""
"See :func:`functools.reduce` for a similar function that returns only the "
"final accumulated value."
msgstr ""
"Voir :func:`functools.reduce` pour une fonction similaire qui ne renvoie que "
"la valeur accumulée finale."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:159
2016-10-30 09:46:26 +00:00
msgid "Added the optional *func* parameter."
2019-10-09 19:29:12 +00:00
msgstr "Ajout du paramètre optionnel *func*."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:162
2019-09-04 09:35:23 +00:00
msgid "Added the optional *initial* parameter."
2019-10-09 19:29:12 +00:00
msgstr "Ajout du paramètre optionnel *initial*."
2019-09-04 09:35:23 +00:00
#: library/itertools.rst:167
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that returns elements from the first iterable until it is "
"exhausted, then proceeds to the next iterable, until all of the iterables "
"are exhausted. Used for treating consecutive sequences as a single "
"sequence. Roughly equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie les éléments du premier itérable jusqu'à son "
"épuisement, puis continue avec l'itérable suivant jusqu'à ce que tous les "
"itérables soient épuisés. Utilisée pour traiter des séquences consécutives "
"comme une seule séquence. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:181
2016-10-30 09:46:26 +00:00
msgid ""
"Alternate constructor for :func:`chain`. Gets chained inputs from a single "
"iterable argument that is evaluated lazily. Roughly equivalent to::"
msgstr ""
"Constructeur alternatif pour :func:`chain`. Récupère des entrées chaînées "
2019-10-09 19:29:12 +00:00
"depuis un unique itérable passé en argument, qui est évalué de manière "
"paresseuse. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:193
2016-10-30 09:46:26 +00:00
msgid "Return *r* length subsequences of elements from the input *iterable*."
2019-10-09 19:29:12 +00:00
msgstr "Renvoie les combinaisons de longueur *r* de *iterable*."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:244
2016-10-30 09:46:26 +00:00
msgid ""
2020-06-05 07:32:47 +00:00
"The combination tuples are emitted in lexicographic ordering according to "
"the order of the input *iterable*. So, if the input *iterable* is sorted, "
"the output tuples will be produced in sorted order."
2016-10-30 09:46:26 +00:00
msgstr ""
"Les combinaisons sont produites dans l'ordre lexicographique dérivé de "
"l'ordre des éléments de *iterable*. Ainsi, si *iterable* est ordonné, les "
"*n*-uplets de combinaison produits le sont aussi."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:199
2016-10-30 09:46:26 +00:00
msgid ""
"Elements are treated as unique based on their position, not on their value. "
"So if the input elements are unique, there will be no repeated values in "
"each combination."
2016-10-30 09:46:26 +00:00
msgstr ""
"Les éléments sont considérés comme uniques en fonction de leur position, et "
"non pas de leur valeur. Ainsi, si les éléments en entrée sont uniques, il "
"n'y aura pas de valeurs répétées dans chaque combinaison."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:225
2016-10-30 09:46:26 +00:00
msgid ""
"The code for :func:`combinations` can be also expressed as a subsequence of :"
"func:`permutations` after filtering entries where the elements are not in "
"sorted order (according to their position in the input pool)::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Un appel à :func:`combinations` peut aussi être vu comme à un appel à :func:"
"`permutations` en excluant les sorties dans lesquelles les éléments ne sont "
"pas ordonnés (avec la même relation d'ordre que pour l'entrée) ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:236
2016-10-30 09:46:26 +00:00
msgid ""
"The number of items returned is ``n! / r! / (n-r)!`` when ``0 <= r <= n`` or "
"zero when ``r > n``."
msgstr ""
"Le nombre d'éléments renvoyés est ``n! / r! / (n-r)!`` quand ``0 <= r <= n`` "
"ou zéro quand ``r > n``."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:241
2016-10-30 09:46:26 +00:00
msgid ""
"Return *r* length subsequences of elements from the input *iterable* "
"allowing individual elements to be repeated more than once."
msgstr ""
"Renvoyer les sous-séquences de longueur *r* des éléments de l'itérable "
"*iterable* d'entrée, permettant aux éléments individuels d'être répétés plus "
"d'une fois."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:248
2016-10-30 09:46:26 +00:00
msgid ""
"Elements are treated as unique based on their position, not on their value. "
"So if the input elements are unique, the generated combinations will also be "
"unique."
msgstr ""
"Les éléments sont considérés comme uniques en fonction de leur position, et "
2017-09-21 13:57:54 +00:00
"non pas de leur valeur. Ainsi si les éléments d'entrée sont uniques, les "
"combinaisons générées seront aussi uniques."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:271
2016-10-30 09:46:26 +00:00
msgid ""
"The code for :func:`combinations_with_replacement` can be also expressed as "
"a subsequence of :func:`product` after filtering entries where the elements "
"are not in sorted order (according to their position in the input pool)::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Un appel à :func:`combinations_with_replacement` peut aussi être vu comme un "
"appel à :func:`product` en excluant les sorties dans lesquelles les éléments "
"ne sont pas dans ordonnés (avec la même relation d'ordre que pour "
"l'entrée) ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:282
2016-10-30 09:46:26 +00:00
msgid ""
"The number of items returned is ``(n+r-1)! / r! / (n-1)!`` when ``n > 0``."
msgstr ""
"Le nombre d'éléments renvoyés est ``(n+r-1)! / r! / (n-1)!`` quand ``n > 0``."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:289
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that filters elements from *data* returning only those that "
"have a corresponding element in *selectors* that evaluates to ``True``. "
"Stops when either the *data* or *selectors* iterables has been exhausted. "
"Roughly equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui filtre les éléments de *data*, en ne renvoyant que "
"ceux dont l'élément correspondant dans *selectors* s'évalue à ``True``. "
"S'arrête quand l'itérable *data* ou *selectors* a été épuisé. À peu près "
"équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:303
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that returns evenly spaced values starting with number "
"*start*. Often used as an argument to :func:`map` to generate consecutive "
"data points. Also, used with :func:`zip` to add sequence numbers. Roughly "
"equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie des valeurs espacées régulièrement, en "
"commençant par le nombre *start*. Souvent utilisé comme un argument de :func:"
"`map` pour générer des points de données consécutifs. Aussi utilisé avec :"
"func:`zip` pour ajouter des nombres de séquence. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:315
2016-10-30 09:46:26 +00:00
msgid ""
"When counting with floating point numbers, better accuracy can sometimes be "
"achieved by substituting multiplicative code such as: ``(start + step * i "
"for i in count())``."
msgstr ""
2019-10-09 19:29:12 +00:00
"Pour compter avec des nombres à virgule flottante, il est parfois préférable "
"d'utiliser le code : ``(start + step * i for i in count())`` pour obtenir "
"une meilleure précision."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:319
2016-10-30 09:46:26 +00:00
msgid "Added *step* argument and allowed non-integer arguments."
msgstr ""
"Ajout de l'argument *step* et ajout du support pour les arguments non-"
"entiers."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:324
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator returning elements from the iterable and saving a copy of "
"each. When the iterable is exhausted, return elements from the saved copy. "
"Repeats indefinitely. Roughly equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie les éléments de l'itérable en en sauvegardant "
"une copie. Quand l'itérable est épuisé, renvoie les éléments depuis la "
"sauvegarde. Répète à l'infini. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:338
2016-10-30 09:46:26 +00:00
msgid ""
"Note, this member of the toolkit may require significant auxiliary storage "
"(depending on the length of the iterable)."
msgstr ""
2019-10-09 19:29:12 +00:00
"Note, cette fonction peut avoir besoin d'un stockage auxiliaire important "
"(en fonction de la longueur de l'itérable)."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:344
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that drops elements from the iterable as long as the "
"predicate is true; afterwards, returns every element. Note, the iterator "
"does not produce *any* output until the predicate first becomes false, so it "
"may have a lengthy start-up time. Roughly equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui saute les éléments de l'itérable tant que le prédicat "
"est vrai ; renvoie ensuite chaque élément. Notez que l'itérateur ne produit "
"*aucune* sortie avant que le prédicat ne devienne faux, il peut donc avoir "
"un temps de démarrage long. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:361
2023-04-14 11:20:40 +00:00
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that filters elements from iterable returning only those "
2023-04-14 11:20:40 +00:00
"for which the predicate is false. If *predicate* is ``None``, return the "
2016-10-30 09:46:26 +00:00
"items that are false. Roughly equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui filtre les éléments de *iterable*, ne renvoyant "
"seulement ceux pour lesquels le prédicat est ``False``. Si *predicate* vaut "
"``None``, renvoie les éléments qui sont faux. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:376
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that returns consecutive keys and groups from the "
"*iterable*. The *key* is a function computing a key value for each element. "
"If not specified or is ``None``, *key* defaults to an identity function and "
"returns the element unchanged. Generally, the iterable needs to already be "
"sorted on the same key function."
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie les clés et les groupes de l'itérable "
"*iterable*. La clé *key* est une fonction qui génère une clé pour chaque "
2019-10-09 19:29:12 +00:00
"élément. Si *key* n'est pas spécifiée ou est ``None``, elle vaut par défaut "
"une fonction d'identité qui renvoie l'élément sans le modifier. "
2019-10-09 19:29:12 +00:00
"Généralement, l'itérable a besoin d'avoir ses éléments déjà classés selon "
"cette même fonction de clé."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:382
2016-10-30 09:46:26 +00:00
msgid ""
"The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix. "
"It generates a break or new group every time the value of the key function "
"changes (which is why it is usually necessary to have sorted the data using "
"the same key function). That behavior differs from SQL's GROUP BY which "
"aggregates common elements regardless of their input order."
msgstr ""
"L'opération de :func:`groupby` est similaire au filtre ``uniq`` dans Unix. "
"Elle génère un nouveau groupe à chaque fois que la valeur de la fonction "
"*key* change (ce pourquoi il est souvent nécessaire d'avoir trié les données "
"selon la même fonction de clé). Ce comportement est différent de celui de "
"GROUP BY de SQL qui agrège les éléments sans prendre compte de leur ordre "
"d'entrée."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:388
2016-10-30 09:46:26 +00:00
msgid ""
"The returned group is itself an iterator that shares the underlying iterable "
"with :func:`groupby`. Because the source is shared, when the :func:"
"`groupby` object is advanced, the previous group is no longer visible. So, "
"if that data is needed later, it should be stored as a list::"
msgstr ""
"Le groupe renvoyé est lui-même un itérateur qui partage l'itérable sous-"
"jacent avec :func:`groupby`. Puisque que la source est partagée, quand "
"l'objet :func:`groupby` est avancé, le groupe précédent n'est plus visible. "
2019-10-09 19:29:12 +00:00
"Ainsi, si cette donnée doit être utilisée plus tard, elle doit être stockée "
"comme une liste ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:400
2016-10-30 09:46:26 +00:00
msgid ":func:`groupby` is roughly equivalent to::"
msgstr ":func:`groupby` est à peu près équivalente à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:437
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that returns selected elements from the iterable. If "
"*start* is non-zero, then elements from the iterable are skipped until start "
"is reached. Afterward, elements are returned consecutively unless *step* is "
"set higher than one which results in items being skipped. If *stop* is "
"``None``, then iteration continues until the iterator is exhausted, if at "
"all; otherwise, it stops at the specified position."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie les élément sélectionnés de l'itérable. Si "
"*start* est différent de zéro, alors les éléments de l'itérable sont ignorés "
"jusqu'à ce que *start* soit atteint. Ensuite, les éléments sont renvoyés "
"consécutivement sauf si *step* est plus grand que 1, auquel cas certains "
2019-10-09 19:29:12 +00:00
"éléments seront ignorés. Si *stop* est ``None``, alors l'itération continue "
"jusqu'à ce que l'itérateur soit épuisé s'il ne l'est pas déjà ; sinon, il "
"s'arrête à la position spécifiée."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:444
2016-10-30 09:46:26 +00:00
msgid ""
"If *start* is ``None``, then iteration starts at zero. If *step* is "
"``None``, then the step defaults to one."
msgstr ""
"Si *start* vaut ``None``, alors l'itération commence à zéro. Si *step* vaut "
"``None``, alors le pas est à 1 par défaut."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:447
msgid ""
"Unlike regular slicing, :func:`islice` does not support negative values for "
"*start*, *stop*, or *step*. Can be used to extract related fields from data "
"where the internal structure has been flattened (for example, a multi-line "
"report may list a name field on every third line)."
msgstr ""
#: library/itertools.rst:482
msgid "Return successive overlapping pairs taken from the input *iterable*."
msgstr "Renvoie des paires successives d'éléments consécutifs de *iterable*."
#: library/itertools.rst:484
msgid ""
"The number of 2-tuples in the output iterator will be one fewer than the "
"number of inputs. It will be empty if the input iterable has fewer than two "
"values."
msgstr ""
"En toute logique, il y a une paire de moins que d'éléments dans l'itérable. "
"Aucune paire n'est renvoyée si l'itérable a zéro ou une valeur."
#: library/itertools.rst:501
2016-10-30 09:46:26 +00:00
msgid ""
"Return successive *r* length permutations of elements in the *iterable*."
msgstr ""
2019-10-09 19:29:12 +00:00
"Renvoie les arrangements successifs de longueur *r* des éléments de "
"*iterable*."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:503
2016-10-30 09:46:26 +00:00
msgid ""
"If *r* is not specified or is ``None``, then *r* defaults to the length of "
"the *iterable* and all possible full-length permutations are generated."
msgstr ""
"Si *r* n'est pas spécifié ou vaut ``None``, alors *r* a pour valeur la "
"longueur de *iterable* et toutes les permutations de longueur *r* possibles "
"sont générées."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:507
2016-10-30 09:46:26 +00:00
msgid ""
"The permutation tuples are emitted in lexicographic order according to the "
"order of the input *iterable*. So, if the input *iterable* is sorted, the "
"output tuples will be produced in sorted order."
2016-10-30 09:46:26 +00:00
msgstr ""
"Les combinaisons sont produites dans l'ordre lexicographique qui provient de "
"l'ordre des éléments de *iterable*. Ainsi, si *iterable* est ordonné, les "
"*n*-uplets de combinaison produits le sont aussi."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:511
2016-10-30 09:46:26 +00:00
msgid ""
"Elements are treated as unique based on their position, not on their value. "
"So if the input elements are unique, there will be no repeated values within "
"a permutation."
2016-10-30 09:46:26 +00:00
msgstr ""
"Les éléments sont considérés comme uniques en fonction de leur position, et "
"non pas de leur valeur. Ainsi, si l'élément est unique, il n'y aura pas de "
"valeurs répétées dans chaque permutation."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:542
2016-10-30 09:46:26 +00:00
msgid ""
"The code for :func:`permutations` can be also expressed as a subsequence of :"
"func:`product`, filtered to exclude entries with repeated elements (those "
"from the same position in the input pool)::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Un appel à :func:`permutations` peut aussi être vu un appel à :func:"
"`product` en excluant les sorties avec des doublons (avec la même relation "
"d'ordre que pour l'entrée) ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:554
2016-10-30 09:46:26 +00:00
msgid ""
"The number of items returned is ``n! / (n-r)!`` when ``0 <= r <= n`` or zero "
"when ``r > n``."
msgstr ""
"Le nombre d'éléments renvoyés est ``n! / (n-r)!`` quand ``0 <= r <= n`` ou "
"zéro quand ``r > n``."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:559
2016-10-30 09:46:26 +00:00
msgid "Cartesian product of input iterables."
msgstr "Produit cartésien des itérables d'entrée."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:561
2016-10-30 09:46:26 +00:00
msgid ""
"Roughly equivalent to nested for-loops in a generator expression. For "
"example, ``product(A, B)`` returns the same as ``((x,y) for x in A for y in "
"B)``."
msgstr ""
2019-10-09 19:29:12 +00:00
"À peu près équivalent à des boucles *for* imbriquées dans une expression de "
"générateur. Par exemple ``product(A, B)`` renvoie la même chose que ``((x, "
"y) for x in A for y in B)``."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:564
2016-10-30 09:46:26 +00:00
msgid ""
"The nested loops cycle like an odometer with the rightmost element advancing "
"on every iteration. This pattern creates a lexicographic ordering so that "
"if the input's iterables are sorted, the product tuples are emitted in "
"sorted order."
msgstr ""
"Les boucles imbriquées tournent comme un compteur kilométrique avec "
2019-10-09 19:29:12 +00:00
"l'élément le plus à droite avançant à chaque itération. Ce motif défini un "
"ordre lexicographique afin que, si les éléments des itérables en l'entrée "
"sont ordonnés, les *n*-uplets produits le sont aussi."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:569
2016-10-30 09:46:26 +00:00
msgid ""
"To compute the product of an iterable with itself, specify the number of "
"repetitions with the optional *repeat* keyword argument. For example, "
"``product(A, repeat=4)`` means the same as ``product(A, A, A, A)``."
msgstr ""
2019-10-09 19:29:12 +00:00
"Pour générer le produit d'un itérable avec lui-même, spécifiez le nombre de "
"répétitions avec le paramètre nommé optionnel *repeat*. Par exemple, "
2019-10-09 19:29:12 +00:00
"``product(A, repeat=4)`` est équivalent à ``product(A, A, A, A)``."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:573
2016-10-30 09:46:26 +00:00
msgid ""
"This function is roughly equivalent to the following code, except that the "
"actual implementation does not build up intermediate results in memory::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Cette fonction est à peu près équivalente au code suivant, à la différence "
"près que la vraie implémentation ne crée pas de résultats intermédiaires en "
"mémoire ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:586
2020-07-20 08:56:42 +00:00
msgid ""
"Before :func:`product` runs, it completely consumes the input iterables, "
"keeping pools of values in memory to generate the products. Accordingly, it "
2021-01-27 19:42:04 +00:00
"is only useful with finite inputs."
2020-07-20 08:56:42 +00:00
msgstr ""
":func:`product` commence par consommer totalement les itérables qui lui sont "
"passés et les conserve en mémoire pour générer les produits. Par conséquent, "
"cette fonction ne sert que sur des itérables finis."
2020-07-20 08:56:42 +00:00
#: library/itertools.rst:592
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that returns *object* over and over again. Runs "
"indefinitely unless the *times* argument is specified."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie *object* à l'infini. S'exécute indéfiniment "
"sauf si l'argument *times* est spécifié."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:606
2016-10-30 09:46:26 +00:00
msgid ""
"A common use for *repeat* is to supply a stream of constant values to *map* "
"or *zip*:"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Une utilisation courante de *repeat* est de fournir un flux constant de "
"valeurs à *map* ou *zip* :"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:616
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that computes the function using arguments obtained from "
"the iterable. Used instead of :func:`map` when argument parameters are "
"already grouped in tuples from a single iterable (when the data has been "
"\"pre-zipped\")."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui exécute la fonction avec les arguments obtenus depuis "
"l'itérable. Utilisée à la place de :func:`map` quand les arguments sont déjà "
"groupés en *n*-uplets depuis un seul itérable  la donnée a déjà été « pré-"
"zippée »."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:621
msgid ""
"The difference between :func:`map` and :func:`starmap` parallels the "
"distinction between ``function(a,b)`` and ``function(*c)``. Roughly "
"equivalent to::"
msgstr ""
#: library/itertools.rst:633
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that returns elements from the iterable as long as the "
"predicate is true. Roughly equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui renvoie les éléments d'un itérable tant que le "
"prédicat est vrai. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:647
2016-10-30 09:46:26 +00:00
msgid "Return *n* independent iterators from a single iterable."
2019-10-09 19:29:12 +00:00
msgstr "Renvoie *n* itérateurs indépendants depuis un unique itérable."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:649
2016-10-30 09:46:26 +00:00
msgid ""
"The following Python code helps explain what *tee* does (although the actual "
"implementation is more complex and uses only a single underlying :abbr:`FIFO "
"(first-in, first-out)` queue)::"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 19:29:12 +00:00
"Le code Python qui suit aide à expliquer ce que fait *tee*, bien que la "
"vraie implémentation soit plus complexe et n'utilise qu'une file :abbr:`FIFO "
"(premier entré, premier sorti ou *first-in, first-out* en anglais)` ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:668
2016-10-30 09:46:26 +00:00
msgid ""
"Once a :func:`tee` has been created, the original *iterable* should not be "
2016-10-30 09:46:26 +00:00
"used anywhere else; otherwise, the *iterable* could get advanced without the "
"tee objects being informed."
msgstr ""
"Une fois quun :func:`tee` a été créé, loriginal de *iterable* ne doit être "
"utilisé nulle part ailleurs ; sinon *iterable* pourrait être avancé sans que "
"les objets *tee* nen soient informés."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:672
2016-10-30 09:46:26 +00:00
msgid ""
2019-10-09 16:10:12 +00:00
"``tee`` iterators are not threadsafe. A :exc:`RuntimeError` may be raised "
"when using simultaneously iterators returned by the same :func:`tee` call, "
"even if the original *iterable* is threadsafe."
msgstr ""
"Les itérateurs ``tee`` ne sont pas protégés contre les accès parallèles. "
"L'utilisation simultanée de plusieurs itérateurs renvoyés par le même appel "
"à :func:`tee` est susceptible de lever :exc:`RuntimeError`, même si "
"*iterable* fonctionne avec les accès parallèles."
2019-10-09 16:10:12 +00:00
#: library/itertools.rst:676
2019-10-09 16:10:12 +00:00
msgid ""
2016-10-30 09:46:26 +00:00
"This itertool may require significant auxiliary storage (depending on how "
"much temporary data needs to be stored). In general, if one iterator uses "
"most or all of the data before another iterator starts, it is faster to use :"
"func:`list` instead of :func:`tee`."
msgstr ""
2019-10-09 19:29:12 +00:00
"Cet outil peut avoir besoin d'un stockage auxiliaire important (en fonction "
"de la taille des données temporaires nécessaires). En général, si un "
"itérateur utilise la majorité ou toute la donnée avant qu'un autre itérateur "
"ne commence, il est plus rapide d'utiliser :func:`list` à la place de :func:"
"`tee`."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:684
2016-10-30 09:46:26 +00:00
msgid ""
"Make an iterator that aggregates elements from each of the iterables. If the "
"iterables are of uneven length, missing values are filled-in with "
"*fillvalue*. Iteration continues until the longest iterable is exhausted. "
"Roughly equivalent to::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Crée un itérateur qui agrège les éléments de chacun des itérables. Si les "
"itérables sont de longueurs différentes, les valeurs manquantes sont "
"remplacées par *fillvalue*. L'itération continue jusqu'à ce que l'itérable "
"le plus long soit épuisé. À peu près équivalent à ::"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:708
2016-10-30 09:46:26 +00:00
msgid ""
"If one of the iterables is potentially infinite, then the :func:"
"`zip_longest` function should be wrapped with something that limits the "
"number of calls (for example :func:`islice` or :func:`takewhile`). If not "
"specified, *fillvalue* defaults to ``None``."
msgstr ""
"Si un des itérables est potentiellement infini, alors la fonction :func:"
2019-10-09 19:29:12 +00:00
"`zip_longest` doit être encapsulée dans un code qui limite le nombre "
"d'appels (par exemple, :func:`islice` ou :func:`takewhile`). Si *fillvalue* "
"n'est pas spécifié, il vaut ``None`` par défaut."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:717
2016-10-30 09:46:26 +00:00
msgid "Itertools Recipes"
msgstr "Recettes *itertools*"
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:719
2016-10-30 09:46:26 +00:00
msgid ""
"This section shows recipes for creating an extended toolset using the "
"existing itertools as building blocks."
msgstr ""
2019-10-09 19:29:12 +00:00
"Cette section présente des recettes pour créer une vaste boîte à outils en "
"se servant des *itertools* existants comme des briques."
2016-10-30 09:46:26 +00:00
#: library/itertools.rst:722
msgid ""
"The primary purpose of the itertools recipes is educational. The recipes "
"show various ways of thinking about individual tools — for example, that "
"``chain.from_iterable`` is related to the concept of flattening. The "
"recipes also give ideas about ways that the tools can be combined — for "
"example, how ``compress()`` and ``range()`` can work together. The recipes "
"also show patterns for using itertools with the :mod:`operator` and :mod:"
"`collections` modules as well as with the built-in itertools such as "
"``map()``, ``filter()``, ``reversed()``, and ``enumerate()``."
msgstr ""
#: library/itertools.rst:731
msgid ""
"A secondary purpose of the recipes is to serve as an incubator. The "
"``accumulate()``, ``compress()``, and ``pairwise()`` itertools started out "
"as recipes. Currently, the ``iter_index()`` recipe is being tested to see "
"whether it proves its worth."
msgstr ""
#: library/itertools.rst:736
2019-09-04 09:35:23 +00:00
msgid ""
"Substantially all of these recipes and many, many others can be installed "
"from the `more-itertools project <https://pypi.org/project/more-itertools/"
">`_ found on the Python Package Index::"
msgstr ""
2019-10-09 19:29:12 +00:00
"Toutes ces recettes  et encore beaucoup d'autres  sont regroupées dans le "
"`projet more-itertools <https://pypi.org/project/more-itertools/>`_, "
"disponible dans le Python Package Index ::"
2019-09-04 09:35:23 +00:00
#: library/itertools.rst:742
2016-10-30 09:46:26 +00:00
msgid ""
"Many of the recipes offer the same high performance as the underlying "
"toolset. Superior memory performance is kept by processing elements one at a "
"time rather than bringing the whole iterable into memory all at once. Code "
"volume is kept small by linking the tools together in a functional style "
"which helps eliminate temporary variables. High speed is retained by "
2016-10-30 09:46:26 +00:00
"preferring \"vectorized\" building blocks over the use of for-loops and :"
"term:`generator`\\s which incur interpreter overhead."
msgstr ""
"Ces outils dérivés offrent la même bonne performance que les outils sous-"
"jacents. La performance mémoire supérieure est gardée en traitant les "
"éléments un à la fois plutôt que de charger tout l'itérable en mémoire en "
"même temps. Le volume de code reste bas grâce à un chaînage de style "
2019-10-09 19:29:12 +00:00
"fonctionnel qui aide à éliminer les variables temporaires. La grande vitesse "
"est gardée en préférant les briques « vectorisées » plutôt que les boucles "
"*for* et les :term:`générateurs <generator>` qui engendrent un surcoût de "
"traitement."