8000 Traduction de library/bisect.po (#1721) · python/python-docs-fr@e024e94 · GitHub
[go: up one dir, main page]

Skip to content

Commit e024e94

Browse files
Traduction de library/bisect.po (#1721)
Automerge of PR #1721 by @jean-abou-samra #1720 Closes #1720. Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
1 parent cb43975 commit e024e94

File tree

1 file changed

+46
-21
lines changed

1 file changed

+46
-21
lines changed

library/bisect.po

Lines changed: 46 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ msgstr ""
66
"Project-Id-Version: Python 3\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2021-09-23 16:16+0200\n"
9-
"PO-Revision-Date: 2018-07-29 01:03+0200\n"
10-
"Last-Translator: Julien Palard <julien@palard.fr>\n"
9+
"PO-Revision-Date: 2021-10-17 12:13+0200\n"
10+
"Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n"
1111
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
1212
"Language: fr\n"
1313
"MIME-Version: 1.0\n"
1414
"Content-Type: text/plain; charset=UTF-8\n"
1515
"Content-Transfer-Encoding: 8bit\n"
16+
"X-Generator: Poedit 3.0\n"
1617

1718
#: library/bisect.rst:2
1819
msgid ":mod:`bisect` --- Array bisection algorithm"
@@ -42,7 +43,7 @@ msgstr ""
4243

4344
#: library/bisect.rst:21
4445
msgid "The following functions are provided:"
45-
msgstr "Les fonctions suivantes sont fournies :"
46+
msgstr "Les fonctions suivantes sont fournies :"
4647

4748
#: library/bisect.rst:26
4849
msgid ""
@@ -61,26 +62,29 @@ msgstr ""
6162
"directement être utilisée comme premier paramètre de ``list.insert()``."
6263

6364
#: library/bisect.rst:33
64-
#, fuzzy
6565
msgid ""
6666
"The returned insertion point *i* partitions the array *a* into two halves so "
6767
"that ``all(val < x for val in a[lo : i])`` for the left side and ``all(val "
6868
">= x for val in a[i : hi])`` for the right side."
6969
msgstr ""
7070
"Le point d'insertion renvoyé, *i*, coupe la liste *a* en deux moitiés telles "
71-
"que, pour la moitié de gauche : ``all(val < x for val in a[lo:i])``, et pour "
72-
"la partie de droite : ``all(val >= x for val in a[i:hi])``."
71+
"que, pour la moitié de gauche : ``all(val < x for val in a[lo : i])``, et "
72+
"pour la partie de droite : ``all(val >= x for val in a[i : hi])``."
7373

7474
#: library/bisect.rst:55 library/bisect.rst:88
7575
msgid ""
7676
"*key* specifies a :term:`key function` of one argument that is used to "
7777
"extract a comparison key from each input element. The default value is "
7878
"``None`` (compare the elements directly)."
7979
msgstr ""
80+
"Le paramètre facultatif *key* est une :term:`fonction clé <key function>` "
81+
"prenant un argument. S'il est fourni, les comparaisons se font sur les "
82+
"valeurs renvoyées par la fonction clé. Par défaut, les éléments sont "
83+
"comparés directement."
8084

8185
#: library/bisect.rst:59 library/bisect.rst:99
8286
msgid "Added the *key* parameter."
83-
msgstr ""
87+
msgstr "ajout du paramètre *key*."
8488

8589
#: library/bisect.rst:48
8690
msgid ""
@@ -91,32 +95,37 @@ msgstr ""
9195
"droite) d'une potentielle entrée existante valant *x* dans *a*."
9296

9397
#: library/bisect.rst:51
94-
#, fuzzy
9598
msgid ""
9699
"The returned insertion point *i* partitions the array *a* into two halves so "
97100
"that ``all(val <= x for val in a[lo : i])`` for the left side and ``all(val "
98101
"> x for val in a[i : hi])`` for the right side."
99102
msgstr ""
100103
"Le point d'insertion renvoyé, *i*, coupe la liste *a* en deux moitiés telles "
101-
"que, pour la moitié de gauche : ``all(val <= x for val in a[lo:i])`` et pour "
102-
"la moitié de droite : ``all(val > x for val in a[i:hi])``."
104+
"que, pour la moitié de gauche : ``all(val <= x for val in a[lo : i])`` et "
105+
"pour la moitié de droite : ``all(val > x for val in a[i : hi])``."
103106

104107
#: library/bisect.rst:65
105108
msgid "Insert *x* in *a* in sorted order."
106-
msgstr ""
109+
msgstr "Insère *x* dans *a* en préservant l'ordre."
107110

108111
#: library/bisect.rst:71
109112
msgid ""
110113
"This function first runs :func:`bisect_left` to locate an insertion point. "
111114
"Next, it runs the :meth:`insert` method on *a* to insert *x* at the "
112115
"appropriate position to maintain sort order."
113116
msgstr ""
117+
"Cette fonction commence par appliquer :func:`bisect_left` pour déterminer la "
118+
"position de l'insertion, puis appelle la méthode :meth:`insert` de *a* pour "
119+
"ajouter *x* à l'endroit adéquat."
114120

115121
#: library/bisect.rst:96
116122
msgid ""
117123
"Keep in mind that the ``O(log n)`` search is dominated by the slow O(n) "
118124
"insertion step."
119125
msgstr ""
126+
"Gardez à l'esprit que la complexité logarithmique :math:`O(\\ln(n))` de la "
127+
"recherche est dominée par la lenteur de l'insertion, de complexité linéaire :"
128+
"math:`O(n)`."
120129

121130
#: library/bisect.rst:85
122131
msgid ""
@@ -132,28 +141,36 @@ msgid ""
132141
"Next, it runs the :meth:`insert` method on *a* to insert *x* at the "
133142
"appropriate position to maintain sort order."
134143
msgstr ""
144+
"Le principe est le même que :func:`insort_left`, mais avec :func:"
145+
"`bisect_right`."
135146

136147
#: library/bisect.rst:104
137148
msgid "Performance Notes"
138-
msgstr ""
149+
msgstr "Notes sur la performance"
139150

140151
#: library/bisect.rst:106
141152
msgid ""
142153
"When writing time sensitive code using *bisect()* and *insort()*, keep these "
143154
"thoughts in mind:"
144155
msgstr ""
156+
"Pour écrire du code sensible à la performance utilisant ``bisect()`` et "
157+
"``insort()``, prenez en compte ces quelques considérations :"
145158

146159
#: library/bisect.rst:109
147160
msgid ""
148161
"Bisection is effective for searching ranges of values. For locating specific "
149162
"values, dictionaries are more performant."
150163
msgstr ""
164+
"La bissection est une bonne idée pour rechercher une plage de valeurs. Pour "
165+
"une seule valeur, mieux vaut un dictionnaire."
151166

152167
#: library/bisect.rst:112
153168
msgid ""
154169
"The *insort()* functions are ``O(n)`` because the logarithmic search step is "
155170
"dominated by the linear time insertion step."
156171
msgstr ""
172+
"Les fonctions d'insertion dans une liste classée ont une complexité linéaire "
173+
"car c'est le coût d'une insertion, même si la recherche est logarithmique."
157174

158175
#: library/bisect.rst:115
159176
msgid ""
@@ -165,16 +182,26 @@ msgid ""
165182
"an array of precomputed keys to locate the insertion point (as shown in the "
166183
"examples section below)."
167184
msgstr ""
185+
"Les fonctions de recherche ne maintiennent pas d'état et ne conservent pas "
186+
"le résultat de la fonction clé après utilisation. Par conséquent, si elles "
187+
"sont appelées dans une boucle, la fonction clé peut être appelée de "
188+
"nombreuses fois sur les mêmes entrées. Si cette fonction clé est lente, une "
189+
"possibilité est de l'encapsuler dans :func:`functools.cache` pour éviter de "
190+
"répéter les opérations. Une autre possibilité est d'effectuer la recherche "
191+
"sur un tableau de clés pré-calculées pour trouver le point d'insertion (voir "
192+
"les exemples plus bas)."
168193

169194
#: library/bisect.rst:125
170195
msgid ""
171196
"`Sorted Collections <http://www.grantjenks.com/docs/sortedcollections/>`_ is "
172197
"a high performance module that uses *bisect* to managed sorted collections "
173198
"of data."
174199
msgstr ""
200+
"`Sorted Collections <http://www.grantjenks.com/docs/sortedcollections/>`_ "
201+
"est un module de haute performance qui fait appel à *bisect* pour maintenir "
202+
"des données ordonnées."
175203

176204
#: library/bisect.rst:129
177-
#, fuzzy
178205
msgid ""
179206
"The `SortedCollection recipe <https://code.activestate.com/recipes/577197-"
180207
"sortedcollection/>`_ uses bisect to build a full-featured collection class "
@@ -205,9 +232,8 @@ msgstr ""
205232
"transformer en recherche plus classique pour les listes triées ::"
206233

207234
#: library/bisect.rst:181
208-
#, fuzzy
209235
msgid "Examples"
210-
msgstr "Autres Exemples"
236+
msgstr "Exemples"
211237

212238
#: library/bisect.rst:185
213239
msgid ""
@@ -218,18 +244,17 @@ msgid ""
218244
msgstr ""
219245
"La fonction :func:`bisect` peut être utile pour des recherches dans des "
220246
"tableaux de nombres. Cet exemple utilise :func:`bisect` pour rechercher la "
221-
"note (sous forme de lettre) correspondant à un note sous forme de points, en "
222-
"se basant sur une échelle prédéfinie : plus de 90 vaut 'A', de 80 à 89 vaut "
223-
"'B', etc ::"
247+
"note (sous forme de lettre) correspondant à une note sous forme de points, "
248+
"en se basant sur une échelle prédéfinie : plus de 90 vaut 'A', de 80 à 89 "
249+
"vaut 'B', etc. ::"
224250

225251
#: library/bisect.rst:197
226-
#, fuzzy
227252
msgid ""
228253
"One technique to avoid repeated calls to a key function is to search a list "
229254
"of precomputed keys to find the index of a record::"
230255
msgstr ""
231-
"Il est préférable d'utiliser une liste de clefs pré-calculée pour chercher "
232-
"l'index de l'enregistrement en question ::"
256+
"Une technique consiste à utiliser une liste de clefs pré-calculée pour "
257+
"chercher l'indice de l'enregistrement en question ::"
233258

234259
#~ msgid ""
235260
#~ "Insert *x* in *a* in sorted order. This is equivalent to ``a."

0 commit comments

Comments
 (0)
0