Skip to content

Commit ce54797

Browse files
Update translations
1 parent 91429cb commit ce54797

File tree

5 files changed

+126
-34
lines changed

5 files changed

+126
-34
lines changed

library/multiprocessing.po

Lines changed: 100 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,16 +2286,24 @@ msgid ""
22862286
"method is set to ``None``. If *method* is ``None`` and *force* is ``False`` "
22872287
"then the context is set to the default context."
22882288
msgstr ""
2289+
"Define o método que deve ser usado para iniciar processos filho. O argumento "
2290+
"*method* pode ser ``'fork'``, ``'spawn'`` ou ``'forkserver'``. Levanta :exc:"
2291+
"`RuntimeError` se o método de início já tiver sido definido e *force* não "
2292+
"for ``True``. Se *method* for ``None`` e *force* for ``True``, o método de "
2293+
"início será definido como ``None``. Se *method* for ``None`` e *force* for "
2294+
"``False``, o contexto será definido como o contexto padrão."
22892295

22902296
#: ../../library/multiprocessing.rst:1150
22912297
msgid ""
22922298
"Note that this should be called at most once, and it should be protected "
22932299
"inside the ``if __name__ == '__main__'`` clause of the main module."
22942300
msgstr ""
2301+
"Observe que isso deve ser chamado no máximo uma vez e deve ser protegido "
2302+
"dentro da cláusula ``if __name__ == '__main__'`` do módulo principal."
22952303

22962304
#: ../../library/multiprocessing.rst:1154
22972305
msgid "See :ref:`multiprocessing-start-methods`."
2298-
msgstr ""
2306+
msgstr "Veja :ref:`multiprocessing-start-methods`."
22992307

23002308
#: ../../library/multiprocessing.rst:1160
23012309
msgid ""
@@ -2304,74 +2312,100 @@ msgid ""
23042312
"func:`threading.setprofile`, :class:`threading.Timer`, or :class:`threading."
23052313
"local`."
23062314
msgstr ""
2315+
":mod:`multiprocessing` contém nenhum análogo de :func:`threading."
2316+
"active_count`, :func:`threading.enumerate`, :func:`threading.settrace`, :"
2317+
"func:`threading.setprofile`, :class:`threading.Timer` ou :class:`threading."
2318+
"local`."
23072319

23082320
#: ../../library/multiprocessing.rst:1167
23092321
msgid "Connection Objects"
2310-
msgstr ""
2322+
msgstr "Objetos de conexão"
23112323

23122324
#: ../../library/multiprocessing.rst:1171
23132325
msgid ""
23142326
"Connection objects allow the sending and receiving of picklable objects or "
23152327
"strings. They can be thought of as message oriented connected sockets."
23162328
msgstr ""
2329+
"Objetos de conexão permitem o envio e recebimento de strings e objetos que "
2330+
"podem ser serializados com pickle. Eles podem ser pensados ​​como sockets "
2331+
"conectados orientados a mensagens."
23172332

23182333
#: ../../library/multiprocessing.rst:1174
23192334
msgid ""
23202335
"Connection objects are usually created using :func:`Pipe <multiprocessing."
23212336
"Pipe>` -- see also :ref:`multiprocessing-listeners-clients`."
23222337
msgstr ""
2338+
"Objetos de conexão geralmente são criados usando :func:`Pipe "
2339+
"<multiprocessing.Pipe>` -- veja também :ref:`multiprocessing-listeners-"
2340+
"clients`."
23232341

23242342
#: ../../library/multiprocessing.rst:1182
23252343
msgid ""
23262344
"Send an object to the other end of the connection which should be read "
23272345
"using :meth:`recv`."
23282346
msgstr ""
2347+
"Envia um objeto para a outra extremidade da conexão que deve ser lido "
2348+
"usando :meth:`recv`."
23292349

23302350
#: ../../library/multiprocessing.rst:1185
23312351
msgid ""
23322352
"The object must be picklable. Very large pickles (approximately 32 MiB+, "
23332353
"though it depends on the OS) may raise a :exc:`ValueError` exception."
23342354
msgstr ""
2355+
"O objeto deve poder ser serializado com pickle. Serializações muito grandes "
2356+
"com pickles (aproximadamente 32 MiB+, embora isso dependa do sistema "
2357+
"operacional) podem levantar uma exceção :exc:`ValueError`."
23352358

23362359
#: ../../library/multiprocessing.rst:1190
23372360
msgid ""
23382361
"Return an object sent from the other end of the connection using :meth:"
23392362
"`send`. Blocks until there is something to receive. Raises :exc:`EOFError` "
23402363
"if there is nothing left to receive and the other end was closed."
23412364
msgstr ""
2365+
"Retorna um objeto enviado a partir da outra extremidade da conexão usando :"
2366+
"meth:`send`. Bloqueia até que haja algo para receber. Levanta :exc:"
2367+
"`EOFError` se não houver mais nada para receber e a outra extremidade tenha "
2368+
"sido fechada."
23422369

23432370
#: ../../library/multiprocessing.rst:1197
23442371
msgid "Return the file descriptor or handle used by the connection."
2345-
msgstr ""
2372+
msgstr "Retorna o descritor de arquivo ou identificador usado pela conexão."
23462373

23472374
#: ../../library/multiprocessing.rst:1201
23482375
msgid "Close the connection."
2349-
msgstr ""
2376+
msgstr "Fecha a conexão."
23502377

23512378
#: ../../library/multiprocessing.rst:1203
23522379
msgid "This is called automatically when the connection is garbage collected."
2353-
msgstr ""
2380+
msgstr "Isso é chamado automaticamente quando a conexão é coletada como lixo."
23542381

23552382
#: ../../library/multiprocessing.rst:1207
23562383
msgid "Return whether there is any data available to be read."
2357-
msgstr ""
2384+
msgstr "Retorna se há algum dado disponível para leitura."
23582385

23592386
#: ../../library/multiprocessing.rst:1209
23602387
msgid ""
23612388
"If *timeout* is not specified then it will return immediately. If *timeout* "
23622389
"is a number then this specifies the maximum time in seconds to block. If "
23632390
"*timeout* is ``None`` then an infinite timeout is used."
23642391
msgstr ""
2392+
"Se *timeout* não for especificado, ele retornará imediatamente. Se *timeout* "
2393+
"for um número, isso especificará o tempo máximo em segundos para bloquear. "
2394+
"Se *timeout* for ``None``, um tempo limite infinito será usado."
23652395

23662396
#: ../../library/multiprocessing.rst:1213
23672397
msgid ""
23682398
"Note that multiple connection objects may be polled at once by using :func:"
23692399
"`multiprocessing.connection.wait`."
23702400
msgstr ""
2401+
"Observe que vários objetos de conexão podem ser pesquisados ​​ao mesmo tempo "
2402+
"usando :func:`multiprocessing.connection.wait`."
23712403

23722404
#: ../../library/multiprocessing.rst:1218
23732405
msgid "Send byte data from a :term:`bytes-like object` as a complete message."
23742406
msgstr ""
2407+
"Enviar dados de bytes de um :term:`objeto byte ou similar` como uma mensagem "
2408+
"completa."
23752409

23762410
#: ../../library/multiprocessing.rst:1220
23772411
msgid ""
@@ -2380,6 +2414,10 @@ msgid ""
23802414
"buffers (approximately 32 MiB+, though it depends on the OS) may raise a :"
23812415
"exc:`ValueError` exception"
23822416
msgstr ""
2417+
"Se *offset* for fornecido, os dados serão lidos daquela posição em *buffer*. "
2418+
"Se *size* for fornecido, essa quantidade de bytes será lida do buffer. "
2419+
"Buffers muito grandes (aproximadamente 32 MiB+, embora isso dependa do "
2420+
"sistema operacional) podem levantar uma exceção :exc:`ValueError`"
23832421

23842422
#: ../../library/multiprocessing.rst:1227
23852423
msgid ""
@@ -2388,18 +2426,26 @@ msgid ""
23882426
"exc:`EOFError` if there is nothing left to receive and the other end has "
23892427
"closed."
23902428
msgstr ""
2429+
"Retorna uma mensagem completa de dados como bytes enviados a partir da outra "
2430+
"extremidade da conexão como uma string. Bloqueia até que haja algo para "
2431+
"receber. Levanta :exc:`EOFError` se não houver mais nada para receber e a "
2432+
"outra extremidade tenha sido fechada."
23912433

23922434
#: ../../library/multiprocessing.rst:1232
23932435
msgid ""
23942436
"If *maxlength* is specified and the message is longer than *maxlength* then :"
23952437
"exc:`OSError` is raised and the connection will no longer be readable."
23962438
msgstr ""
2439+
"Se *maxlength* for especificado e a mensagem for maior que *maxlength*, :exc:"
2440+
"`OSError` será levantada e a conexão não será mais legível."
23972441

23982442
#: ../../library/multiprocessing.rst:1236
23992443
msgid ""
24002444
"This function used to raise :exc:`IOError`, which is now an alias of :exc:"
24012445
"`OSError`."
24022446
msgstr ""
2447+
"Esta função costumava levantada :exc:`IOError`, que agora é um apelido de :"
2448+
"exc:`OSError`."
24032449

24042450
#: ../../library/multiprocessing.rst:1243
24052451
msgid ""
@@ -2408,33 +2454,50 @@ msgid ""
24082454
"until there is something to receive. Raises :exc:`EOFError` if there is "
24092455
"nothing left to receive and the other end was closed."
24102456
msgstr ""
2457+
"Lê para *buffer* uma mensagem completa de dados como bytes enviados a partir "
2458+
"da outra extremidade da conexão e retorna o número de bytes na mensagem. "
2459+
"Bloqueia até que haja algo para receber. Levanta :exc:`EOFError` se não "
2460+
"houver mais nada para receber e a outra extremidade tenha sido fechada."
24112461

24122462
#: ../../library/multiprocessing.rst:1249
24132463
msgid ""
24142464
"*buffer* must be a writable :term:`bytes-like object`. If *offset* is given "
24152465
"then the message will be written into the buffer from that position. Offset "
24162466
"must be a non-negative integer less than the length of *buffer* (in bytes)."
24172467
msgstr ""
2468+
"*buffer* deve ser um :term:`objeto byte ou similar` gravável. Se *offset* "
2469+
"for fornecido, a mensagem será escrita no buffer a partir dessa posição. A "
2470+
"posição deve ser um inteiro não negativo menor que o comprimento de *buffer* "
2471+
"(em bytes)."
24182472

24192473
#: ../../library/multiprocessing.rst:1254
24202474
msgid ""
24212475
"If the buffer is too short then a :exc:`BufferTooShort` exception is raised "
24222476
"and the complete message is available as ``e.args[0]`` where ``e`` is the "
24232477
"exception instance."
24242478
msgstr ""
2479+
"Se o buffer for muito curto, uma exceção :exc:`BufferTooShort` será "
2480+
"levantada e a mensagem completa estará disponível como ``e.args[0]``, onde "
2481+
"``e`` é a instância da exceção."
24252482

24262483
#: ../../library/multiprocessing.rst:1258
24272484
msgid ""
24282485
"Connection objects themselves can now be transferred between processes "
24292486
"using :meth:`Connection.send` and :meth:`Connection.recv`."
24302487
msgstr ""
2488+
"Os próprios objetos de conexão agora podem ser transferidos entre processos "
2489+
"usando :meth:`Connection.send` e :meth:`Connection.recv`."
24312490

24322491
#: ../../library/multiprocessing.rst:1262
24332492
msgid ""
24342493
"Connection objects also now support the context management protocol -- see :"
24352494
"ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the "
24362495
"connection object, and :meth:`~contextmanager.__exit__` calls :meth:`close`."
24372496
msgstr ""
2497+
"Objetos de conexão agora também oferecem suporte ao protocolo de "
2498+
"gerenciamento de contexto — veja :ref:`typecontextmanager`. :meth:"
2499+
"`~contextmanager.__enter__` retorna o objeto de conexão, e :meth:"
2500+
"`~contextmanager.__exit__` chama :meth:`close`."
24382501

24392502
#: ../../library/multiprocessing.rst:1266
24402503
msgid "For example:"
@@ -2459,13 +2522,32 @@ msgid ""
24592522
">>> arr2\n"
24602523
"array('i', [0, 1, 2, 3, 4, 0, 0, 0, 0, 0])"
24612524
msgstr ""
2525+
">>> from multiprocessing import Pipe\n"
2526+
">>> a, b = Pipe()\n"
2527+
">>> a.send([1, 'hello', None])\n"
2528+
">>> b.recv()\n"
2529+
"[1, 'hello', None]\n"
2530+
">>> b.send_bytes(b'thank you')\n"
2531+
">>> a.recv_bytes()\n"
2532+
"b'thank you'\n"
2533+
">>> import array\n"
2534+
">>> arr1 = array.array('i', range(5))\n"
2535+
">>> arr2 = array.array('i', [0] * 10)\n"
2536+
">>> a.send_bytes(arr1)\n"
2537+
">>> count = b.recv_bytes_into(arr2)\n"
2538+
">>> assert count == len(arr1) * arr1.itemsize\n"
2539+
">>> arr2\n"
2540+
"array('i', [0, 1, 2, 3, 4, 0, 0, 0, 0, 0])"
24622541

24632542
#: ../../library/multiprocessing.rst:1291
24642543
msgid ""
24652544
"The :meth:`Connection.recv` method automatically unpickles the data it "
24662545
"receives, which can be a security risk unless you can trust the process "
24672546
"which sent the message."
24682547
msgstr ""
2548+
"O método :meth:`Connection.recv` deserializa com picke automaticamente os "
2549+
"dados recebidos, o que pode ser um risco à segurança, a menos que você possa "
2550+
"confiar no processo que enviou a mensagem."
24692551

24702552
#: ../../library/multiprocessing.rst:1295
24712553
msgid ""
@@ -2474,24 +2556,35 @@ msgid ""
24742556
"methods after performing some sort of authentication. See :ref:"
24752557
"`multiprocessing-auth-keys`."
24762558
msgstr ""
2559+
"Portanto, a menos que o objeto de conexão tenha sido produzido usando :func:"
2560+
"`Pipe`, você deve usar apenas os métodos :meth:`~Connection.recv` e :meth:"
2561+
"`~Connection.send` após executar algum tipo de autenticação. Veja :ref:"
2562+
"`multiprocessing-auth-keys`."
24772563

24782564
#: ../../library/multiprocessing.rst:1302
24792565
msgid ""
24802566
"If a process is killed while it is trying to read or write to a pipe then "
24812567
"the data in the pipe is likely to become corrupted, because it may become "
24822568
"impossible to be sure where the message boundaries lie."
24832569
msgstr ""
2570+
"Se um processo for encerrado enquanto estiver tentando ler ou escrever em um "
2571+
"encadeamento, os dados no encadeameto provavelmente serão corrompidos, "
2572+
"porque pode se tornar impossível ter certeza de onde estão os limites do "
2573+
"encadeamento da mensagem."
24842574

24852575
#: ../../library/multiprocessing.rst:1308
24862576
msgid "Synchronization primitives"
2487-
msgstr ""
2577+
msgstr "Primitivas de sincronização"
24882578

24892579
#: ../../library/multiprocessing.rst:1312
24902580
msgid ""
24912581
"Generally synchronization primitives are not as necessary in a multiprocess "
24922582
"program as they are in a multithreaded program. See the documentation for :"
24932583
"mod:`threading` module."
24942584
msgstr ""
2585+
"Geralmente, primitivas de sincronização não são tão necessárias em um "
2586+
"programa multiprocesso quanto em um programa multithread. Veja a "
2587+
"documentação do módulo :mod:`threading`."
24952588

24962589
#: ../../library/multiprocessing.rst:1316
24972590
msgid ""

library/multiprocessing.shared_memory.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ msgstr ":class:`bool`"
589589

590590
#: ../../library/multiprocessing.shared_memory.rst:295
591591
msgid ":class:`str` (less than 10M bytes each when encoded as UTF-8)"
592-
msgstr ":class:`str` (menos de 10M bytes cada quando codificado como UTF-8) "
592+
msgstr ":class:`str` (menos de 10M bytes cada quando codificado como UTF-8)"
593593

594594
#: ../../library/multiprocessing.shared_memory.rst:296
595595
msgid ":class:`bytes` (less than 10M bytes each)"

library/re.po

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ msgid ""
1818
msgstr ""
1919
"Project-Id-Version: Python 3.13\n"
2020
"Report-Msgid-Bugs-To: \n"
21-
"POT-Creation-Date: 2024-11-19 01:00+0000\n"
21+
"POT-Creation-Date: 2024-11-22 14:17+0000\n"
2222
"PO-Revision-Date: 2021-06-28 01:12+0000\n"
2323
"Last-Translator: Adorilson Bezerra <[email protected]>, 2024\n"
2424
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -2887,11 +2887,10 @@ msgid ""
28872887
" return None\n"
28882888
" return '<Match: %r, groups=%r>' % (match.group(), match.groups())"
28892889
msgstr ""
2890-
"def exibe_correspondencia(correspondencia):\n"
2891-
" if correspondencia is None:\n"
2890+
"def displaymatch(match):\n"
2891+
" if match is None:\n"
28922892
" return None\n"
2893-
" return '<Correspondencia: %r, grupos=%r>' % (correspondencia.group(), "
2894-
"correspondencia.groups())"
2893+
" return '<Match: %r, groups=%r>' % (match.group(), match.groups())"
28952894

28962895
#: ../../library/re.rst:1592
28972896
msgid ""
@@ -2922,13 +2921,13 @@ msgid ""
29222921
">>> displaymatch(valid.match(\"727ak\")) # Valid.\n"
29232922
"\"<Match: '727ak', groups=()>\""
29242923
msgstr ""
2925-
">>> válida = re.compile(r\"^[a2-9tjqk]{5}$\")\n"
2926-
">>> exibe_correspondencia(válida.match(\"akt5q\")) # Válida.\n"
2927-
"\"<Correspondencia: 'akt5q', grupos=()>\"\n"
2928-
">>> exibe_correspondencia(válida.match(\"akt5e\")) # Inválida.\n"
2929-
">>> exibe_correspondencia(válida.match(\"akt\")) # Inválida.\n"
2930-
">>> exibe_correspondencia(válida.match(\"727ak\")) # Válida.\n"
2931-
"\"<Correspondencia: '727ak', grupos=()>\""
2924+
">>> valid = re.compile(r\"^[a2-9tjqk]{5}$\")\n"
2925+
">>> displaymatch(valid.match(\"akt5q\")) # Válida.\n"
2926+
"\"<Match: 'akt5q', groups=()>\"\n"
2927+
">>> displaymatch(valid.match(\"akt5e\")) # Inválida.\n"
2928+
">>> displaymatch(valid.match(\"akt\")) # Inválida.\n"
2929+
">>> displaymatch(valid.match(\"727ak\")) # Válida.\n"
2930+
"\"<Match: '727ak', groups=()>\""
29322931

29332932
#: ../../library/re.rst:1607
29342933
msgid ""
@@ -2949,12 +2948,12 @@ msgid ""
29492948
">>> displaymatch(pair.match(\"354aa\")) # Pair of aces.\n"
29502949
"\"<Match: '354aa', groups=('a',)>\""
29512950
msgstr ""
2952-
">>> par = re.compile(r\".*(.).*\\1\")\n"
2953-
">>> exibe_correspondencia(par.match(\"717ak\")) # Par de 7s.\n"
2954-
"\"<Correspondencia: '717', grupos=('7',)>\"\n"
2955-
">>> exibe_correspondencia(par.match(\"718ak\")) # Sem pares.\n"
2956-
">>> exibe_correspondencia(par.match(\"354aa\")) # Par de áses.\n"
2957-
"\"<Correspondencia: '354aa', grupos=('a',)>\""
2951+
">>> pair = re.compile(r\".*(.).*\\1\")\n"
2952+
">>> displaymatch(pair.match(\"717ak\")) # Par de 7s.\n"
2953+
"\"<Match: '717', groups=('7',)>\"\n"
2954+
">>> displaymatch(pair.match(\"718ak\")) # Sem pares.\n"
2955+
">>> displaymatch(pair.match(\"354aa\")) # Par de áses.\n"
2956+
"\"<Match: '354aa', groups=('a',)>\""
29582957

29592958
#: ../../library/re.rst:1617
29602959
msgid ""
@@ -2981,18 +2980,18 @@ msgid ""
29812980
">>> pair.match(\"354aa\").group(1)\n"
29822981
"'a'"
29832982
msgstr ""
2984-
">>> par = re.compile(r\".*(.).*\\1\")\n"
2985-
">>> par.match(\"717ak\").group(1)\n"
2983+
">>> pair = re.compile(r\".*(.).*\\1\")\n"
2984+
">>> pair.match(\"717ak\").group(1)\n"
29862985
"'7'\n"
29872986
"\n"
2988-
"# Erro porque re.match() retorna None, que não tem um método group():\n"
2989-
">>> par.match(\"718ak\").group(1)\n"
2987+
"# Erro porque re.match() retorna None, que não tem um método group()::\n"
2988+
">>> pair.match(\"718ak\").group(1)\n"
29902989
"Traceback (most recent call last):\n"
29912990
" File \"<pyshell#23>\", line 1, in <module>\n"
29922991
" re.match(r\".*(.).*\\1\", \"718ak\").group(1)\n"
29932992
"AttributeError: 'NoneType' object has no attribute 'group'\n"
29942993
"\n"
2995-
">>> par.match(\"354aa\").group(1)\n"
2994+
">>> pair.match(\"354aa\").group(1)\n"
29962995
"'a'"
29972996

29982997
#: ../../library/re.rst:1636

0 commit comments

Comments
 (0)