Skip to content

Commit eb7e468

Browse files
github-actions[bot]rffontenelleadorilson
committed
Update translation
Co-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com> Co-Authored-By: Adorilson Bezerra <adorilson@gmail.com>
1 parent ac88784 commit eb7e468

File tree

10 files changed

+15145
-15010
lines changed

10 files changed

+15145
-15010
lines changed

library/bisect.po

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-05-09 14:19+0000\n"
14+
"POT-Creation-Date: 2025-07-31 14:20+0000\n"
1515
"PO-Revision-Date: 2025-07-18 18:48+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -62,10 +62,20 @@ msgstr ""
6262
"`~object.__lt__` e retornarão um ponto de inserção entre valores em um vetor."
6363

6464
#: ../../library/bisect.rst:29
65+
msgid ""
66+
"The functions in this module are not thread-safe. If multiple threads "
67+
"concurrently use :mod:`bisect` functions on the same sequence, this may "
68+
"result in undefined behaviour. Likewise, if the provided sequence is mutated "
69+
"by a different thread while a :mod:`bisect` function is operating on it, the "
70+
"result is undefined. For example, using :py:func:`~bisect.insort_left` on "
71+
"the same list from multiple threads may result in the list becoming unsorted."
72+
msgstr ""
73+
74+
#: ../../library/bisect.rst:39
6575
msgid "The following functions are provided:"
6676
msgstr "As seguintes funções são fornecidas:"
6777

68-
#: ../../library/bisect.rst:34
78+
#: ../../library/bisect.rst:44
6979
msgid ""
7080
"Locate the insertion point for *x* in *a* to maintain sorted order. The "
7181
"parameters *lo* and *hi* may be used to specify a subset of the list which "
@@ -82,7 +92,7 @@ msgstr ""
8292
"para uso como o primeiro parâmetro para ``list.insert()`` supondo que *a* já "
8393
"esteja ordenado."
8494

85-
#: ../../library/bisect.rst:41
95+
#: ../../library/bisect.rst:51
8696
msgid ""
8797
"The returned insertion point *ip* partitions the array *a* into two slices "
8898
"such that ``all(elem < x for elem in a[lo : ip])`` is true for the left "
@@ -94,7 +104,7 @@ msgstr ""
94104
"fatia esquerda e ``all(elem >= x for elem in a[ip : hi])`` é verdadeiro para "
95105
"a fatia certa."
96106

97-
#: ../../library/bisect.rst:46
107+
#: ../../library/bisect.rst:56
98108
msgid ""
99109
"*key* specifies a :term:`key function` of one argument that is used to "
100110
"extract a comparison key from each element in the array. To support "
@@ -105,20 +115,20 @@ msgstr ""
105115
"suporte à pesquisa de registros complexos, a função chave não é aplicada ao "
106116
"valor *x*."
107117

108-
#: ../../library/bisect.rst:50
118+
#: ../../library/bisect.rst:60
109119
msgid ""
110120
"If *key* is ``None``, the elements are compared directly and no key function "
111121
"is called."
112122
msgstr ""
113123
"Se *key* for ``None``, os elementos serão comparados diretamente e nenhuma "
114124
"função chave será chamada."
115125

116-
#: ../../library/bisect.rst:53 ../../library/bisect.rst:67
117-
#: ../../library/bisect.rst:85 ../../library/bisect.rst:105
126+
#: ../../library/bisect.rst:63 ../../library/bisect.rst:77
127+
#: ../../library/bisect.rst:95 ../../library/bisect.rst:115
118128
msgid "Added the *key* parameter."
119129
msgstr "Adicionado o parâmetro *key*."
120130

121-
#: ../../library/bisect.rst:60
131+
#: ../../library/bisect.rst:70
122132
msgid ""
123133
"Similar to :py:func:`~bisect.bisect_left`, but returns an insertion point "
124134
"which comes after (to the right of) any existing entries of *x* in *a*."
@@ -127,7 +137,7 @@ msgstr ""
127137
"inserção que vem depois (à direita de) qualquer entrada existente de *x* em "
128138
"*a*."
129139

130-
#: ../../library/bisect.rst:63
140+
#: ../../library/bisect.rst:73
131141
msgid ""
132142
"The returned insertion point *ip* partitions the array *a* into two slices "
133143
"such that ``all(elem <= x for elem in a[lo : ip])`` is true for the left "
@@ -139,11 +149,11 @@ msgstr ""
139149
"fatia esquerda e ``all(elem > x for elem in a[ip : hi])`` é verdadeiro para "
140150
"a fatia certa."
141151

142-
#: ../../library/bisect.rst:73
152+
#: ../../library/bisect.rst:83
143153
msgid "Insert *x* in *a* in sorted order."
144154
msgstr "Insere *x* em *a* na ordem de classificação."
145155

146-
#: ../../library/bisect.rst:75
156+
#: ../../library/bisect.rst:85
147157
msgid ""
148158
"This function first runs :py:func:`~bisect.bisect_left` to locate an "
149159
"insertion point. Next, it runs the :meth:`!insert` method on *a* to insert "
@@ -154,7 +164,7 @@ msgstr ""
154164
"*a* para inserir *x* na posição apropriada para manter a ordem de "
155165
"classificação."
156166

157-
#: ../../library/bisect.rst:79 ../../library/bisect.rst:99
167+
#: ../../library/bisect.rst:89 ../../library/bisect.rst:109
158168
msgid ""
159169
"To support inserting records in a table, the *key* function (if any) is "
160170
"applied to *x* for the search step but not for the insertion step."
@@ -163,23 +173,23 @@ msgstr ""
163173
"(se houver) é aplicada a *x* para a etapa de pesquisa, mas não para a etapa "
164174
"de inserção."
165175

166-
#: ../../library/bisect.rst:82 ../../library/bisect.rst:102
176+
#: ../../library/bisect.rst:92 ../../library/bisect.rst:112
167177
msgid ""
168178
"Keep in mind that the *O*\\ (log *n*) search is dominated by the slow *O*\\ "
169179
"(*n*) insertion step."
170180
msgstr ""
171181
"Tenha em mente que a busca *O*\\ (log *n*) é dominada pelo etapa de inserção "
172182
"lenta O(n)."
173183

174-
#: ../../library/bisect.rst:92
184+
#: ../../library/bisect.rst:102
175185
msgid ""
176186
"Similar to :py:func:`~bisect.insort_left`, but inserting *x* in *a* after "
177187
"any existing entries of *x*."
178188
msgstr ""
179189
"Semelhante a :py:func:`~bisect.insort_left`, mas inserindo *x* em *a* após "
180190
"qualquer entrada existente de *x*."
181191

182-
#: ../../library/bisect.rst:95
192+
#: ../../library/bisect.rst:105
183193
msgid ""
184194
"This function first runs :py:func:`~bisect.bisect_right` to locate an "
185195
"insertion point. Next, it runs the :meth:`!insert` method on *a* to insert "
@@ -190,35 +200,35 @@ msgstr ""
190200
"*a* para inserir *x* na posição apropriada para manter a ordem de "
191201
"classificação."
192202

193-
#: ../../library/bisect.rst:110
203+
#: ../../library/bisect.rst:120
194204
msgid "Performance Notes"
195205
msgstr "Observações sobre desempenho"
196206

197-
#: ../../library/bisect.rst:112
207+
#: ../../library/bisect.rst:122
198208
msgid ""
199209
"When writing time sensitive code using *bisect()* and *insort()*, keep these "
200210
"thoughts in mind:"
201211
msgstr ""
202212
"Ao escrever um código sensível ao tempo usando *bisect()* e *insort()*, "
203213
"lembre-se do seguinte:"
204214

205-
#: ../../library/bisect.rst:115
215+
#: ../../library/bisect.rst:125
206216
msgid ""
207217
"Bisection is effective for searching ranges of values. For locating specific "
208218
"values, dictionaries are more performant."
209219
msgstr ""
210220
"A bisseção é eficaz para pesquisar intervalos de valores. Para localizar "
211221
"valores específicos, os dicionários são mais eficientes."
212222

213-
#: ../../library/bisect.rst:118
223+
#: ../../library/bisect.rst:128
214224
msgid ""
215225
"The *insort()* functions are *O*\\ (*n*) because the logarithmic search step "
216226
"is dominated by the linear time insertion step."
217227
msgstr ""
218228
"As funções *insort()* são *O*\\ (*n*) porque a etapa de busca logarítmica é "
219229
"dominada pela etapa de inserção de tempo linear."
220230

221-
#: ../../library/bisect.rst:121
231+
#: ../../library/bisect.rst:131
222232
msgid ""
223233
"The search functions are stateless and discard key function results after "
224234
"they are used. Consequently, if the search functions are used in a loop, "
@@ -237,7 +247,7 @@ msgstr ""
237247
"localizar o ponto de inserção (conforme mostrado na seção de exemplos "
238248
"abaixo)."
239249

240-
#: ../../library/bisect.rst:131
250+
#: ../../library/bisect.rst:141
241251
msgid ""
242252
"`Sorted Collections <https://grantjenks.com/docs/sortedcollections/>`_ is a "
243253
"high performance module that uses *bisect* to managed sorted collections of "
@@ -247,7 +257,7 @@ msgstr ""
247257
"módulo de alto desempenho que usa bisseção para gerenciar coleções de dados "
248258
"classificadas."
249259

250-
#: ../../library/bisect.rst:135
260+
#: ../../library/bisect.rst:145
251261
msgid ""
252262
"The `SortedCollection recipe <https://code.activestate.com/recipes/577197-"
253263
"sortedcollection/>`_ uses bisect to build a full-featured collection class "
@@ -261,11 +271,11 @@ msgstr ""
261271
"chaves são pré-calculadas para economizar em chamadas desnecessárias para a "
262272
"função chave durante as buscas."
263273

264-
#: ../../library/bisect.rst:143
274+
#: ../../library/bisect.rst:153
265275
msgid "Searching Sorted Lists"
266276
msgstr "Buscando em listas ordenadas"
267277

268-
#: ../../library/bisect.rst:145
278+
#: ../../library/bisect.rst:155
269279
msgid ""
270280
"The above `bisect functions`_ are useful for finding insertion points but "
271281
"can be tricky or awkward to use for common searching tasks. The following "
@@ -277,7 +287,7 @@ msgstr ""
277287
"As cinco funções a seguir mostram como transformá-las nas buscas padrão para "
278288
"listas ordenadas::"
279289

280-
#: ../../library/bisect.rst:150
290+
#: ../../library/bisect.rst:160
281291
msgid ""
282292
"def index(a, x):\n"
283293
" 'Locate the leftmost value exactly equal to x'\n"
@@ -349,11 +359,11 @@ msgstr ""
349359
" return a[i]\n"
350360
" raise ValueError"
351361

352-
#: ../../library/bisect.rst:187
362+
#: ../../library/bisect.rst:197
353363
msgid "Examples"
354364
msgstr "Exemplos"
355365

356-
#: ../../library/bisect.rst:191
366+
#: ../../library/bisect.rst:201
357367
msgid ""
358368
"The :py:func:`~bisect.bisect` function can be useful for numeric table "
359369
"lookups. This example uses :py:func:`~bisect.bisect` to look up a letter "
@@ -366,7 +376,7 @@ msgstr ""
366376
"pontos de interrupção numéricos ordenados: 90 e acima é um \"A\", 80 a 89 é "
367377
"um \"B\" e por aí vai::"
368378

369-
#: ../../library/bisect.rst:196
379+
#: ../../library/bisect.rst:206
370380
msgid ""
371381
">>> def grade(score, breakpoints=[60, 70, 80, 90], grades='FDCBA'):\n"
372382
"... i = bisect(breakpoints, score)\n"
@@ -382,7 +392,7 @@ msgstr ""
382392
">>> [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]]\n"
383393
"['F', 'A', 'C', 'C', 'B', 'A', 'A']"
384394

385-
#: ../../library/bisect.rst:203
395+
#: ../../library/bisect.rst:213
386396
msgid ""
387397
"The :py:func:`~bisect.bisect` and :py:func:`~bisect.insort` functions also "
388398
"work with lists of tuples. The *key* argument can serve to extract the "
@@ -392,7 +402,7 @@ msgstr ""
392402
"funcionam com listas de tuplas. O argumento *key* pode servir para extrair o "
393403
"campo usado para ordenar registros em uma tabela::"
394404

395-
#: ../../library/bisect.rst:207
405+
#: ../../library/bisect.rst:217
396406
msgid ""
397407
">>> from collections import namedtuple\n"
398408
">>> from operator import attrgetter\n"
@@ -454,7 +464,7 @@ msgstr ""
454464
" Movie(name='Aliens', released=1986, director='Cameron'),\n"
455465
" Movie(name='Titanic', released=1997, director='Cameron')]"
456466

457-
#: ../../library/bisect.rst:237
467+
#: ../../library/bisect.rst:247
458468
msgid ""
459469
"If the key function is expensive, it is possible to avoid repeated function "
460470
"calls by searching a list of precomputed keys to find the index of a record::"
@@ -463,7 +473,7 @@ msgstr ""
463473
"repetidas buscando uma lista de chaves pré-calculadas para encontrar o "
464474
"índice de um registro::"
465475

466-
#: ../../library/bisect.rst:240
476+
#: ../../library/bisect.rst:250
467477
msgid ""
468478
">>> data = [('red', 5), ('blue', 1), ('yellow', 8), ('black', 0)]\n"
469479
">>> data.sort(key=lambda r: r[1]) # Or use operator.itemgetter(1).\n"

0 commit comments

Comments
 (0)