Skip to content

Commit 9f59038

Browse files
authored
Traducido archivo library/asyncio-sync (#2315)
Closes #1877
1 parent 9b34b8c commit 9f59038

File tree

2 files changed

+43
-16
lines changed

2 files changed

+43
-16
lines changed

dictionaries/library_asyncio-sync.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
BoundedSemaphore
22
Condition
3+
filling
34
Lock
4-
Semaphore
5+
Semaphore

library/asyncio-sync.po

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2021-11-25 01:47+0800\n"
14+
"PO-Revision-Date: 2023-02-18 23:53+0100\n"
1515
"Last-Translator: Rodrigo Tobar <rtobarc@gmail.com>\n"
16-
"Language: es\n"
1716
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
21+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.10.3\n"
23+
"X-Generator: Poedit 3.2.2\n"
2324

2425
#: ../Doc/library/asyncio-sync.rst:7
2526
msgid "Synchronization Primitives"
@@ -34,7 +35,7 @@ msgid ""
3435
"asyncio synchronization primitives are designed to be similar to those of "
3536
"the :mod:`threading` module with two important caveats:"
3637
msgstr ""
37-
"Las primitivas de sincronización de asyncio están diseñadas para ser "
38+
"las primitivas de sincronización de asyncio están diseñadas para ser "
3839
"similares a las del módulo :mod:`threading`, con dos importantes "
3940
"advertencias:"
4041

@@ -82,9 +83,8 @@ msgid ":class:`BoundedSemaphore`"
8283
msgstr ":class:`BoundedSemaphore`"
8384

8485
#: ../Doc/library/asyncio-sync.rst:31
85-
#, fuzzy
8686
msgid ":class:`Barrier`"
87-
msgstr ":class:`Event`"
87+
msgstr ":class:`Barrier`"
8888

8989
#: ../Doc/library/asyncio-sync.rst:38
9090
msgid "Lock"
@@ -119,7 +119,7 @@ msgstr "lo que es equivalente a::"
119119
#: ../Doc/library/asyncio-sync.rst:187 ../Doc/library/asyncio-sync.rst:286
120120
#: ../Doc/library/asyncio-sync.rst:341
121121
msgid "Removed the *loop* parameter."
122-
msgstr ""
122+
msgstr "Eliminado el parámetro *loop*."
123123

124124
#: ../Doc/library/asyncio-sync.rst:72
125125
msgid "Acquire the lock."
@@ -463,12 +463,11 @@ msgstr ""
463463

464464
#: ../Doc/library/asyncio-sync.rst:346
465465
msgid "Barrier"
466-
msgstr ""
466+
msgstr "Barrera"
467467

468468
#: ../Doc/library/asyncio-sync.rst:350
469-
#, fuzzy
470469
msgid "A barrier object. Not thread-safe."
471-
msgstr "Un objeto de eventos. No es seguro en hilos."
470+
msgstr "Un objeto barrera. No es seguro en hilos."
472471

473472
#: ../Doc/library/asyncio-sync.rst:352
474473
msgid ""
@@ -478,84 +477,111 @@ msgid ""
478477
"tasks end up waiting on :meth:`~Barrier.wait`. At that point all of the "
479478
"waiting tasks would unblock simultaneously."
480479
msgstr ""
480+
"Una barrera es una primitiva de sincronización simple que permite bloquear "
481+
"hasta que un número *parties* de tareas estén esperando en ella. Las tareas "
482+
"pueden esperar en el método :meth:`~Barrier.wait` y se bloquearán hasta que "
483+
"el número especificado de tareas termine esperando en :meth:`~Barrier.wait`. "
484+
"En ese momento, todas las tareas en espera se desbloquearán simultáneamente."
481485

482486
#: ../Doc/library/asyncio-sync.rst:358
483487
msgid ""
484488
":keyword:`async with` can be used as an alternative to awaiting on :meth:"
485489
"`~Barrier.wait`."
486490
msgstr ""
491+
":keyword:`async with` puede utilizarse como alternativa a esperar en :meth:"
492+
"`~Barrier.wait`."
487493

488494
#: ../Doc/library/asyncio-sync.rst:361
489495
msgid "The barrier can be reused any number of times."
490-
msgstr ""
496+
msgstr "La barrera puede reutilizarse tantas veces como se desee."
491497

492498
#: ../Doc/library/asyncio-sync.rst:388
493499
msgid "Result of this example is::"
494-
msgstr ""
500+
msgstr "El resultado de este ejemplo es::"
495501

496502
#: ../Doc/library/asyncio-sync.rst:399
497503
msgid ""
498504
"Pass the barrier. When all the tasks party to the barrier have called this "
499505
"function, they are all unblocked simultaneously."
500506
msgstr ""
507+
"Pasa la barrera. Cuando todas las tareas que forman parte de la barrera han "
508+
"llamado a esta función, todas se desbloquean simultáneamente."
501509

502510
#: ../Doc/library/asyncio-sync.rst:402
503511
msgid ""
504512
"When a waiting or blocked task in the barrier is cancelled, this task exits "
505513
"the barrier which stays in the same state. If the state of the barrier is "
506514
"\"filling\", the number of waiting task decreases by 1."
507515
msgstr ""
516+
"Cuando se cancela una tarea en espera o bloqueada en la barrera, esta tarea "
517+
"sale de la barrera que permanece en el mismo estado. Si el estado de la "
518+
"barrera es \"filling\", el número de tareas en espera disminuye en 1."
508519

509520
#: ../Doc/library/asyncio-sync.rst:407
510521
msgid ""
511522
"The return value is an integer in the range of 0 to ``parties-1``, different "
512523
"for each task. This can be used to select a task to do some special "
513524
"housekeeping, e.g.::"
514525
msgstr ""
526+
"El valor de retorno es un entero en el rango de 0 a ``parties-1``, diferente "
527+
"para cada tarea. Esto se puede utilizar para seleccionar una tarea para "
528+
"hacer algún mantenimiento especial, por ejemplo::"
515529

516530
#: ../Doc/library/asyncio-sync.rst:417
517531
msgid ""
518532
"This method may raise a :class:`BrokenBarrierError` exception if the barrier "
519533
"is broken or reset while a task is waiting. It could raise a :exc:"
520534
"`CancelledError` if a task is cancelled."
521535
msgstr ""
536+
"Este método puede lanzar una excepción :class:`BrokenBarrierError` si la "
537+
"barrera se rompe o se restablece mientras una tarea está en espera. Podría "
538+
"lanzar una excepción :exc:`CancelledError` si se cancela una tarea."
522539

523540
#: ../Doc/library/asyncio-sync.rst:423
524541
msgid ""
525542
"Return the barrier to the default, empty state. Any tasks waiting on it "
526543
"will receive the :class:`BrokenBarrierError` exception."
527544
msgstr ""
545+
"Devuelve la barrera al estado vacío por defecto. Cualquier tarea que espere "
546+
"en ella recibirá la excepción :class:`BrokenBarrierError`."
528547

529548
#: ../Doc/library/asyncio-sync.rst:426
530549
msgid ""
531550
"If a barrier is broken it may be better to just leave it and create a new "
532551
"one."
533-
msgstr ""
552+
msgstr "Si se rompe una barrera, puede ser mejor dejarla y crear una nueva."
534553

535554
#: ../Doc/library/asyncio-sync.rst:430
536555
msgid ""
537556
"Put the barrier into a broken state. This causes any active or future calls "
538557
"to :meth:`wait` to fail with the :class:`BrokenBarrierError`. Use this for "
539558
"example if one of the tasks needs to abort, to avoid infinite waiting tasks."
540559
msgstr ""
560+
"Pone la barrera en estado roto. Esto hace que cualquier llamada activa o "
561+
"futura a :meth:`wait` falle con el :class:`BrokenBarrierError`. Use esto por "
562+
"ejemplo si una de las tareas necesita abortar, para evitar tareas en espera "
563+
"infinita."
541564

542565
#: ../Doc/library/asyncio-sync.rst:437
543566
msgid "The number of tasks required to pass the barrier."
544-
msgstr ""
567+
msgstr "El número de tareas necesarias para pasar la barrera."
545568

546569
#: ../Doc/library/asyncio-sync.rst:441
547570
msgid "The number of tasks currently waiting in the barrier while filling."
548571
msgstr ""
572+
"El número de tareas que esperan actualmente en la barrera mientras se llena."
549573

550574
#: ../Doc/library/asyncio-sync.rst:445
551575
msgid "A boolean that is ``True`` if the barrier is in the broken state."
552-
msgstr ""
576+
msgstr "Un booleano que es ``True`` si la barrera está en estado roto."
553577

554578
#: ../Doc/library/asyncio-sync.rst:450
555579
msgid ""
556580
"This exception, a subclass of :exc:`RuntimeError`, is raised when the :class:"
557581
"`Barrier` object is reset or broken."
558582
msgstr ""
583+
"Esta excepción, una subclase de :exc:`RuntimeError`, se lanza cuando el "
584+
"objeto :class:`Barrier` se reinicia o se rompe."
559585

560586
#: ../Doc/library/asyncio-sync.rst:458
561587
msgid ""

0 commit comments

Comments
 (0)