17
17
# Katyanna Moura <amelie.kn@gmail.com>, 2021
18
18
# Vinicius Gubiani Ferreira <vini.g.fer@gmail.com>, 2021
19
19
# Porfirio_Prodigy, 2021
20
- # Rafael Fontenelle <rffontenelle@gmail.com>, 2021
20
+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2022
21
21
#
22
22
#, fuzzy
23
23
msgid ""
@@ -26,7 +26,7 @@ msgstr ""
26
26
"Report-Msgid-Bugs-To : \n "
27
27
"POT-Creation-Date : 2021-08-10 13:16+0000\n "
28
28
"PO-Revision-Date : 2021-06-28 01:06+0000\n "
29
- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2021 \n "
29
+ "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2022 \n "
30
30
"Language-Team : Portuguese (Brazil) (https://www.transifex.com/python-doc/ "
31
31
"teams/5390/pt_BR/)\n "
32
32
"MIME-Version : 1.0\n "
@@ -1190,7 +1190,7 @@ msgid ""
1190
1190
"Raises an :ref:`auditing event <auditing>` ``exec`` with the code object as "
1191
1191
"the argument. Code compilation events may also be raised."
1192
1192
msgstr ""
1193
- "Levanta um :ref:`evento de auditioria <auditing>` ``exec`` com o código "
1193
+ "Levanta um :ref:`evento de auditoria <auditing>` ``exec`` com o código "
1194
1194
"objeto como argumento. Eventos de compilação de código também podem ser "
1195
1195
"levantados."
1196
1196
@@ -1634,8 +1634,8 @@ msgid ""
1634
1634
"Raises an :ref:`auditing event <auditing>` ``builtins.input/result`` with "
1635
1635
"argument ``result``."
1636
1636
msgstr ""
1637
- "Levanta um evento de auditoria `` builtins.input/result`` com argumento "
1638
- "``result``."
1637
+ "Levanta um :ref:` evento de auditoria <auditing>` `` builtins.input/result`` "
1638
+ "com argumento ``result``."
1639
1639
1640
1640
#: ../../library/functions.rst:852
1641
1641
msgid ""
@@ -2365,7 +2365,7 @@ msgid ""
2365
2365
"Raises an :ref:`auditing event <auditing>` ``open`` with arguments ``file``, "
2366
2366
"``mode``, ``flags``."
2367
2367
msgstr ""
2368
- "Levanta um :ref:`auditing event <auditing>` ``open`` com os argumentos "
2368
+ "Levanta um :ref:`evento de auditoria <auditing>` ``open`` com os argumentos "
2369
2369
"``file``, ``mode``, ``flags``."
2370
2370
2371
2371
#: ../../library/functions.rst:1304
@@ -3139,8 +3139,8 @@ msgid ""
3139
3139
"Subclasses of :class:`type` which don't override ``type.__new__`` may no "
3140
3140
"longer use the one-argument form to get the type of an object."
3141
3141
msgstr ""
3142
- "Sub-classes de :class:`type` que não fazem sobrecarga de ``type.__new__`` "
3143
- "não podem mais usar a forma com apenas um argumento para obter o tipo de um "
3142
+ "Subclasses de :class:`type` que não fazem sobrecarga de ``type.__new__`` não "
3143
+ "podem mais usar a forma com apenas um argumento para obter o tipo de um "
3144
3144
"objeto."
3145
3145
3146
3146
#: ../../library/functions.rst:1800
@@ -3198,20 +3198,29 @@ msgid ""
3198
3198
"More formally: :func:`zip` returns an iterator of tuples, where the *i*-th "
3199
3199
"tuple contains the *i*-th element from each of the argument iterables."
3200
3200
msgstr ""
3201
+ "Mais formalmente: :func:`zip` retorna um iterador de tuplas, onde a *i*-"
3202
+ "ésima tupla contém o *i*-ésimo elemento de cada um dos iteráveis do "
3203
+ "argumento."
3201
3204
3202
3205
#: ../../library/functions.rst:1833
3203
3206
msgid ""
3204
3207
"Another way to think of :func:`zip` is that it turns rows into columns, and "
3205
3208
"columns into rows. This is similar to `transposing a matrix <https://en."
3206
3209
"wikipedia.org/wiki/Transpose>`_."
3207
3210
msgstr ""
3211
+ "Outra maneira de pensar em :func:`zip` é que ela transforma linhas em "
3212
+ "colunas e colunas em linhas. Isso é semelhante a `transpor uma matriz "
3213
+ "<https://en.wikipedia.org/wiki/Transpose>`_."
3208
3214
3209
3215
#: ../../library/functions.rst:1837
3210
3216
msgid ""
3211
3217
":func:`zip` is lazy: The elements won't be processed until the iterable is "
3212
3218
"iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a :class:"
3213
3219
"`list`."
3214
3220
msgstr ""
3221
+ ":func:`zip` é preguiçoso: Os elementos não serão processados até que o "
3222
+ "iterável seja iterado. Por exemplo, por um loop :keyword:`!for` ou por um :"
3223
+ "class:`list`."
3215
3224
3216
3225
#: ../../library/functions.rst:1841
3217
3226
msgid ""
@@ -3220,50 +3229,71 @@ msgid ""
3220
3229
"the code that prepared these iterables. Python offers three different "
3221
3230
"approaches to dealing with this issue:"
3222
3231
msgstr ""
3232
+ "Uma coisa a considerar é que os iteráveis passados para :func:`zip` podem "
3233
+ "ter comprimentos diferentes; às vezes por design e às vezes por causa de um "
3234
+ "bug no código que preparou esses iteráveis. Python oferece três abordagens "
3235
+ "diferentes para lidar com esse problema:"
3223
3236
3224
3237
#: ../../library/functions.rst:1846
3225
3238
msgid ""
3226
3239
"By default, :func:`zip` stops when the shortest iterable is exhausted. It "
3227
3240
"will ignore the remaining items in the longer iterables, cutting off the "
3228
3241
"result to the length of the shortest iterable::"
3229
3242
msgstr ""
3243
+ "Por padrão, :func:`zip` para quando o iterável mais curto se esgota. Ele irá "
3244
+ "ignorar os itens restantes nos iteráveis mais longos, cortando o resultado "
3245
+ "para o comprimento do iterável mais curto::"
3230
3246
3231
3247
#: ../../library/functions.rst:1853
3232
3248
msgid ""
3233
3249
":func:`zip` is often used in cases where the iterables are assumed to be of "
3234
3250
"equal length. In such cases, it's recommended to use the ``strict=True`` "
3235
3251
"option. Its output is the same as regular :func:`zip`::"
3236
3252
msgstr ""
3253
+ ":func:`zip` é frequentemente usado em casos onde os iteráveis são "
3254
+ "considerados de tamanho igual. Nesses casos, é recomendado usar a opção "
3255
+ "``strict=True``. Sua saída é a mesma do :func:`zip`:: normal"
3237
3256
3238
3257
#: ../../library/functions.rst:1860
3239
3258
msgid ""
3240
3259
"Unlike the default behavior, it checks that the lengths of iterables are "
3241
3260
"identical, raising a :exc:`ValueError` if they aren't:"
3242
3261
msgstr ""
3262
+ "Ao contrário do comportamento padrão, ele verifica se os comprimentos dos "
3263
+ "iteráveis são idênticos, levantando uma exceção :exc:`ValueError` se não "
3264
+ "forem:"
3243
3265
3244
3266
#: ../../library/functions.rst:1868
3245
3267
msgid ""
3246
3268
"Without the ``strict=True`` argument, any bug that results in iterables of "
3247
3269
"different lengths will be silenced, possibly manifesting as a hard-to-find "
3248
3270
"bug in another part of the program."
3249
3271
msgstr ""
3272
+ "Sem o argumento ``strict=True``, qualquer bug que resulte em iteráveis de "
3273
+ "diferentes comprimentos será silenciado, possivelmente se manifestando como "
3274
+ "um bug difícil de encontrar em outra parte do programa."
3250
3275
3251
3276
#: ../../library/functions.rst:1872
3252
3277
msgid ""
3253
3278
"Shorter iterables can be padded with a constant value to make all the "
3254
3279
"iterables have the same length. This is done by :func:`itertools."
3255
3280
"zip_longest`."
3256
3281
msgstr ""
3282
+ "Iteráveis mais curtos podem ser preenchidos com um valor constante para "
3283
+ "fazer com que todos os iteráveis tenham o mesmo comprimento. Isso é feito "
3284
+ "por :func:`itertools.zip_longest`."
3257
3285
3258
3286
#: ../../library/functions.rst:1876
3259
3287
msgid ""
3260
3288
"Edge cases: With a single iterable argument, :func:`zip` returns an iterator "
3261
3289
"of 1-tuples. With no arguments, it returns an empty iterator."
3262
3290
msgstr ""
3291
+ "Casos extremos: Com um único argumento iterável, :func:`zip` retorna um "
3292
+ "iterador de tuplas de um elemento. Sem argumentos, retorna um iterador vazio."
3263
3293
3264
3294
#: ../../library/functions.rst:1879
3265
3295
msgid "Tips and tricks:"
3266
- msgstr ""
3296
+ msgstr "Dicas e truques: "
3267
3297
3268
3298
#: ../../library/functions.rst:1881
3269
3299
msgid ""
@@ -3273,6 +3303,12 @@ msgid ""
3273
3303
"``n`` times so that each output tuple has the result of ``n`` calls to the "
3274
3304
"iterator. This has the effect of dividing the input into n-length chunks."
3275
3305
msgstr ""
3306
+ "A ordem de avaliação da esquerda para a direita dos iteráveis é garantida. "
3307
+ "Isso torna possível um idioma para agrupar uma série de dados em grupos de "
3308
+ "comprimento n usando ``zip(*[iter(s)]*n, strict=True)``. Isso repete o "
3309
+ "*mesmo* iterador ``n`` vezes para que cada tupla de saída tenha o resultado "
3310
+ "de chamadas ``n`` para o iterador. Isso tem o efeito de dividir a entrada em "
3311
+ "pedaços de n comprimentos."
3276
3312
3277
3313
#: ../../library/functions.rst:1887
3278
3314
msgid ""
@@ -3284,7 +3320,7 @@ msgstr ""
3284
3320
3285
3321
#: ../../library/functions.rst:1898
3286
3322
msgid "Added the ``strict`` argument."
3287
- msgstr ""
3323
+ msgstr "Adicionado o argumento ``strict``. "
3288
3324
3289
3325
#: ../../library/functions.rst:1910
3290
3326
msgid ""
@@ -3323,6 +3359,12 @@ msgid ""
3323
3359
"does not use its *locals* argument at all and uses its *globals* only to "
3324
3360
"determine the package context of the :keyword:`import` statement."
3325
3361
msgstr ""
3362
+ "A função importa o módulo *name*, potencialmente usando os dados *globals* e "
3363
+ "*locals* para determinar como interpretar o nome em um contexto de pacote. O "
3364
+ "*fromlist* fornece os nomes de objetos ou submódulos que devem ser "
3365
+ "importados do módulo, fornecidos por *name*. A implementação padrão não usa "
3366
+ "seu argumento *locals* e usa seus *globals* apenas para determinar o "
3367
+ "contexto do pacote da instrução :keyword:`import`."
3326
3368
3327
3369
#: ../../library/functions.rst:1929
3328
3370
msgid ""
0 commit comments