-
Notifications
You must be signed in to change notification settings - Fork 266
Done: library/bisect. #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
library/bisect.po
Outdated
"trier à chaque insertion. Il pourrait être plus rapide que l'approche " | ||
"classique pour de longues listes d'éléments dont les opérations de " | ||
"comparaison sont lourdes. Le module se nomme :mod:`bisect` car il utilise " | ||
"une approche simple par bisection. Si vous voulez un exemple de cet " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
« bissection » en français, non ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exact.
library/bisect.po
Outdated
"comparaison sont lourdes. Le module se nomme :mod:`bisect` car il utilise " | ||
"une approche simple par bisection. Si vous voulez un exemple de cet " | ||
"algorithme, le mieux est d'aller lire le code source de ce module (les " | ||
"conditions sur les limites y étant justes!)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ajouterais une petite espace insécable avant le point d'exclamation 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Et un espace insécable, un !
library/bisect.po
Outdated
|
||
#: ../Doc/library/bisect.rst:33 | ||
msgid "" | ||
"The returned insertion point *i* partitions the array *a* into two halves so " | ||
"that ``all(val < x for val in a[lo:i])`` for the left side and ``all(val >= " | ||
"x for val in a[i:hi])`` for the right side." | ||
msgstr "" | ||
"Le point d'insertion renvoyé, *i*, coupe la liste *a* en deux moitiés tel " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tel → telles
library/bisect.po
Outdated
|
||
#: ../Doc/library/bisect.rst:43 | ||
msgid "" | ||
"The returned insertion point *i* partitions the array *a* into two halves so " | ||
"that ``all(val <= x for val in a[lo:i])`` for the left side and ``all(val > " | ||
"x for val in a[i:hi])`` for the right side." | ||
msgstr "" | ||
"Le point d'insertion renvoyé, *i*, coupe la liste *a* en deux moitiés tel " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tel → telles
library/bisect.po
Outdated
@@ -92,6 +119,11 @@ msgid "" | |||
"The keys are precomputed to save unnecessary calls to the key function " | |||
"during searches." | |||
msgstr "" | |||
"`SortedCollection recipe <https://code.activestate.com/recipes/577197-" | |||
"sortedcollection/>`_ utilise le module *bisect* pour construire une class " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class → classe ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roh oui merci
library/bisect.po
Outdated
"sortedcollection/>`_ utilise le module *bisect* pour construire une class " | ||
"collection exposant des méthodes de recherches naturelles et gèrant une " | ||
"fonctions clef. Les clefs sont précalculées pour économiser des appels " | ||
"innutils à la fonction clef durant les recherches." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
innutils → inutiles
library/bisect.po
Outdated
@@ -104,6 +136,10 @@ msgid "" | |||
"following five functions show how to transform them into the standard " | |||
"lookups for sorted lists::" | |||
msgstr "" | |||
"Les fonctions :func:`bisect` ci-dessus sont utiles insérer des éléments, " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il manque un « pour » devant « insérer »
library/bisect.po
Outdated
@@ -124,9 +165,16 @@ msgid "" | |||
"lead to an inefficient design (successive calls to bisect functions would " | |||
"not \"remember\" all of the previous key lookups)." | |||
msgstr "" | |||
"Contrairement à la fonction :func:`sorted`, ça n'aurait pas de sens pour la " | |||
"fonction :func:`bisect` d'avoir un paramètre *key* ou *reversed*, qui " | |||
"conduiraient à une utilisation innefficace (des appels successifs à la " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
innefficace → inefficace
library/bisect.po
Outdated
"fonction :func:`bisect` d'avoir un paramètre *key* ou *reversed*, qui " | ||
"conduiraient à une utilisation innefficace (des appels successifs à la " | ||
"fonction *bisect* n'auraient aucun moyen de se \"souvenir\" des recherches " | ||
"de clef précédetes)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
précédetes → précédentes
library/bisect.po
Outdated
|
||
#: ../Doc/library/bisect.rst:135 | ||
msgid "" | ||
"Instead, it is better to search a list of precomputed keys to find the index " | ||
"of the record in question::" | ||
msgstr "" | ||
"Il est préférable d'utiliser une liste de clef précalculée pour chercher " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clef → clefs
Co-authored-by: nicolastala <contact@nicolastala.fr> Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/87 Co-authored-by: nicolas talabardon <contact@nicolastala.fr> Co-committed-by: nicolas talabardon <contact@nicolastala.fr>
No description provided.