You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
"sortedcollection/>`_ que usa bisección para construir una \"clase-colección"
"\" con todas las funcionalidades, con métodos de búsqueda directos y con "
"soporte para una función-clave (*key-function*). Las claves son procesadas "
"de antemano, para ahorrar llamadas innecesarias a la función clave durante "
"las búsquedas."
"El `SortedCollection recipe <https://code.activestate.com/recipes/577197-"
"sortedcollection/>`_ usa bisect para construir una clase de colección con "
"todas las funciones con métodos de búsqueda sencillos y soporte para una "
"función clave. Las teclas se calculan previamente para ahorrar llamadas "
"innecesarias a la función de la tecla durante las búsquedas."
#: ../Doc/library/bisect.rst:137
msgid "Searching Sorted Lists"
Expand All
@@ -216,9 +240,8 @@ msgstr ""
"convertirlas en búsquedas estándar para listas ordenadas::"
#: ../Doc/library/bisect.rst:181
#, fuzzy
msgid "Examples"
msgstr "Otros ejemplos"
msgstr "Ejemplos"
#: ../Doc/library/bisect.rst:185
msgid ""
Expand All
@@ -233,32 +256,9 @@ msgstr ""
"ordenadas: 90 o más es una 'A', de 80 a 89 es una 'B', y así sucesivamente::"
#: ../Doc/library/bisect.rst:197
#, fuzzy
msgid ""
"One technique to avoid repeated calls to a key function is to search a list "
"of precomputed keys to find the index of a record::"
msgstr ""
"En su lugar, es mejor buscar en una lista de claves procesadas de antemano "
"para encontrar el índice del registro en cuestión::"
#~ msgid ""
#~ "Insert *x* in *a* in sorted order. This is equivalent to ``a."
#~ "insert(bisect.bisect_left(a, x, lo, hi), x)`` assuming that *a* is "
#~ "already sorted. Keep in mind that the O(log n) search is dominated by "
#~ "the slow O(n) insertion step."
#~ msgstr ""
#~ "Inserta *x* en *a* de forma ordenada. Esto equivale a ``a.insert(bisect."
#~ "bisect_left(a, x, lo, hi), x)``, suponiendo que *a* ya está ordenada. "
#~ "Tenga presente que la búsqueda O(log n) está dominada por el paso de "
#~ "inserción O(n) lento."
#~ msgid ""
#~ "Unlike the :func:`sorted` function, it does not make sense for the :func:"
#~ "`bisect` functions to have *key* or *reversed* arguments because that "
#~ "would lead to an inefficient design (successive calls to bisect functions "
#~ "would not \"remember\" all of the previous key lookups)."
#~ msgstr ""
#~ "A diferencia de la función :func:`sorted`, no tiene sentido para las "
#~ "funciones :func:`bisect` tener los argumentos *key* o *reversed*, porque "
#~ "conduciría a un diseño ineficiente (llamadas sucesivas a funciones de "
#~ "bisección no \"recordarían\" todas las búsquedas previas con clave)."
"Una técnica para evitar llamadas repetidas a una función de tecla es buscar "
"en una lista de teclas precalculadas para encontrar el índice de un registro:"
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.