diff --git a/whatsnew/3.10.po b/whatsnew/3.10.po index 79a9970979..ad2acf75fe 100644 --- a/whatsnew/3.10.po +++ b/whatsnew/3.10.po @@ -11,12 +11,12 @@ msgstr "" "POT-Creation-Date: 2026-02-26 18:44-0300\n" "PO-Revision-Date: 2022-10-31 18:04-0300\n" "Last-Translator: Cristián Maureira-Fredes \n" -"Language: es\n" "Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: Babel 2.18.0\n" #: ../Doc/whatsnew/3.10.rst:3 @@ -34,8 +34,8 @@ msgstr "Pablo Galindo Salgado" #: ../Doc/whatsnew/3.10.rst:47 msgid "" "This article explains the new features in Python 3.10, compared to 3.9. " -"Python 3.10 was released on October 4, 2021. For full details, see the :ref:" -"`changelog `." +"Python 3.10 was released on October 4, 2021. For full details, see " +"the :ref:`changelog `." msgstr "" "Este artículo explica las nuevas características de Python 3.10, en " "comparación con la 3.9. Python 3.10 se publicó el 4 de octubre de 2021. Para " @@ -103,9 +103,8 @@ msgid ":pep:`613`, Explicit Type Aliases" msgstr ":pep:`613`, alias de tipo explícito" #: ../Doc/whatsnew/3.10.rst:80 -#, fuzzy msgid ":pep:`647`, User-Defined Type Guards" -msgstr "PEP 647: protectores de tipo definidos por el usuario" +msgstr ":pep:`647`, protectores de tipo definidos por el usuario" #: ../Doc/whatsnew/3.10.rst:82 msgid "Important deprecations, removals or restrictions:" @@ -182,6 +181,28 @@ msgid "" "):\n" " ..." msgstr "" +"with (CtxManager() as ejemplo):\n" +" ...\n" +"\n" +"with (\n" +" CtxManager1(),\n" +" CtxManager2()\n" +"):\n" +" ...\n" +"\n" +"with (CtxManager1() as ejemplo,\n" +" CtxManager2()):\n" +" ...\n" +"\n" +"with (CtxManager1(),\n" +" CtxManager2() as ejemplo):\n" +" ...\n" +"\n" +"with (\n" +" CtxManager1() as ejemplo1,\n" +" CtxManager2() as ejemplo2\n" +"):\n" +" ..." #: ../Doc/whatsnew/3.10.rst:130 msgid "" @@ -197,22 +218,28 @@ msgid "" "):\n" " ..." msgstr "" +"with (\n" +" CtxManager1() as ejemplo1,\n" +" CtxManager2() as ejemplo2,\n" +" CtxManager3() as ejemplo3,\n" +"):\n" +" ..." #: ../Doc/whatsnew/3.10.rst:142 msgid "" -"This new syntax uses the non LL(1) capacities of the new parser. Check :pep:" -"`617` for more details." +"This new syntax uses the non LL(1) capacities of the new parser. " +"Check :pep:`617` for more details." msgstr "" "Esta nueva sintaxis utiliza las capacidades no LL (1) del nuevo analizador. " "Consulte :pep:`617` para obtener más detalles." #: ../Doc/whatsnew/3.10.rst:145 msgid "" -"(Contributed by Guido van Rossum, Pablo Galindo and Lysandros Nikolaou in :" -"issue:`12782` and :issue:`40334`.)" +"(Contributed by Guido van Rossum, Pablo Galindo and Lysandros Nikolaou " +"in :issue:`12782` and :issue:`40334`.)" msgstr "" -"(Contribuido por Guido van Rossum, Pablo Galindo y Lysandros Nikolaou en :" -"issue:`12782` y :issue:`40334`.)" +"(Contribuido por Guido van Rossum, Pablo Galindo y Lysandros Nikolaou " +"en :issue:`12782` y :issue:`40334`.)" #: ../Doc/whatsnew/3.10.rst:150 msgid "Better error messages" @@ -242,6 +269,9 @@ msgid "" " 38: 4, 39: 4, 45: 5, 46: 5, 47: 5, 48: 5, 49: 5, 54: 6,\n" "some_other_code = foo()" msgstr "" +"expected = {9: 1, 18: 2, 19: 2, 27: 3, 28: 3, 29: 3, 36: 4, 37: 4,\n" +" 38: 4, 39: 4, 45: 5, 46: 5, 47: 5, 48: 5, 49: 5, 54: 6,\n" +"some_other_code = foo()" #: ../Doc/whatsnew/3.10.rst:166 msgid "" @@ -258,6 +288,10 @@ msgid "" " ^\n" "SyntaxError: invalid syntax" msgstr "" +"File \"example.py\", line 3\n" +" some_other_code = foo()\n" +" ^\n" +"SyntaxError: invalid syntax" #: ../Doc/whatsnew/3.10.rst:176 msgid "but in Python 3.10 a more informative error is emitted:" @@ -270,6 +304,10 @@ msgid "" " ^\n" "SyntaxError: '{' was never closed" msgstr "" +"File \"example.py\", line 1\n" +" expected = {9: 1, 18: 2, 19: 2, 27: 3, 28: 3, 29: 3, 36: 4, 37: 4,\n" +" ^\n" +"SyntaxError: '{' was never closed" #: ../Doc/whatsnew/3.10.rst:186 msgid "" @@ -290,11 +328,11 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:191 msgid "" -"(Contributed by Pablo Galindo in :issue:`42864` and Batuhan Taskaya in :" -"issue:`40176`.)" +"(Contributed by Pablo Galindo in :issue:`42864` and Batuhan Taskaya " +"in :issue:`40176`.)" msgstr "" -"(Contribuido por Pablo Galindo en :issue:`42864` y Batuhan Taskaya en :issue:" -"`40176`.)" +"(Contribuido por Pablo Galindo en :issue:`42864` y Batuhan Taskaya " +"en :issue:`40176`.)" #: ../Doc/whatsnew/3.10.rst:194 msgid "" @@ -316,6 +354,11 @@ msgid "" " ^\n" "SyntaxError: Generator expression must be parenthesized" msgstr "" +">>> foo(x, z for z in range(10), t, w)\n" +" File \"\", line 1\n" +" foo(x, z for z in range(10), t, w)\n" +" ^\n" +"SyntaxError: Generator expression must be parenthesized" #: ../Doc/whatsnew/3.10.rst:207 msgid "now Python 3.10 will display the exception as:" @@ -329,6 +372,11 @@ msgid "" " ^^^^^^^^^^^^^^^^^^^^\n" "SyntaxError: Generator expression must be parenthesized" msgstr "" +">>> foo(x, z for z in range(10), t, w)\n" +" File \"\", line 1\n" +" foo(x, z for z in range(10), t, w)\n" +" ^^^^^^^^^^^^^^^^^^^^\n" +"SyntaxError: Generator expression must be parenthesized" #: ../Doc/whatsnew/3.10.rst:217 msgid "This improvement was contributed by Pablo Galindo in :issue:`43914`." @@ -356,6 +404,10 @@ msgid "" " ^\n" "SyntaxError: expected ':'" msgstr "" +">>> if rocket.position > event_horizon\n" +" File \"\", line 1\n" +" if rocket.position > event_horizon\n" +" ^\n" #: ../Doc/whatsnew/3.10.rst:232 msgid "(Contributed by Pablo Galindo in :issue:`42997`.)" @@ -374,6 +426,11 @@ msgid "" " ^\n" "SyntaxError: did you forget parentheses around the comprehension target?" msgstr "" +">>> {x,y for x,y in zip('abcd', '1234')}\n" +" File \"\", line 1\n" +" {x,y for x,y in zip('abcd', '1234')}\n" +" ^\n" +"SyntaxError: did you forget parentheses around the comprehension target?" #: ../Doc/whatsnew/3.10.rst:244 msgid "(Contributed by Pablo Galindo in :issue:`43017`.)" @@ -394,6 +451,14 @@ msgid "" " ^\n" "SyntaxError: invalid syntax. Perhaps you forgot a comma?" msgstr "" +">>> items = {\n" +"... x: 1,\n" +"... y: 2\n" +"... z: 3,\n" +" File \"\", line 3\n" +" y: 2\n" +" ^\n" +"SyntaxError: invalid syntax. Perhaps you forgot a comma?" #: ../Doc/whatsnew/3.10.rst:259 msgid "(Contributed by Pablo Galindo in :issue:`43822`.)" @@ -413,6 +478,13 @@ msgid "" " ^\n" "SyntaxError: multiple exception types must be parenthesized" msgstr "" +">>> prueba:\n" +"... build_dyson_sphere()\n" +"... excepto NotEnoughScienceError, NotEnoughResourcesError:\n" +" Archivo \"\", línea 3\n" +" excepto NotEnoughScienceError, NotEnoughResourcesError:\n" +" ^\n" +"SyntaxError: varios tipos de excepción deben estar entre paréntesis" #: ../Doc/whatsnew/3.10.rst:273 msgid "(Contributed by Pablo Galindo in :issue:`43149`.)" @@ -441,6 +513,21 @@ msgid "" " ^\n" "SyntaxError: ':' expected after dictionary key" msgstr "" +">>> valores = {\n" +"... x: 1,\n" +"... y: 2,\n" +"...z:\n" +"... }\n" +" Archivo \"\", línea 4\n" +" z:\n" +" ^\n" +"SyntaxError: expresión esperada después de la clave del diccionario y ':'\n" +"\n" +">>> valores = {x:1, y:2, z w:3}\n" +" Archivo \"\", línea 1\n" +" valores = {x:1, y:2, z w:3}\n" +" ^\n" +"SyntaxError: ':' esperado después de la clave del diccionario" #: ../Doc/whatsnew/3.10.rst:295 msgid "(Contributed by Pablo Galindo in :issue:`43823`.)" @@ -460,6 +547,13 @@ msgid "" " ^^^^^^^^^\n" "SyntaxError: expected 'except' or 'finally' block" msgstr "" +">>> prueba:\n" +"... x = 2\n" +"... algo = 3\n" +" Archivo \"\", línea 3\n" +" algo = 3\n" +" ^^^^^^^^^\n" +"SyntaxError: bloque esperado 'excepto' o 'finalmente'" #: ../Doc/whatsnew/3.10.rst:309 msgid "(Contributed by Pablo Galindo in :issue:`44305`.)" @@ -478,6 +572,12 @@ msgid "" "SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead " "of '='?" msgstr "" +">>> si cohete.posicion = event_horizon:\n" +" Archivo \"\", línea 1\n" +" si cohete.posición = event_horizon:\n" +" ^\n" +"SyntaxError: no se puede asignar el atributo aquí. ¿Quizás quisiste decir " +"'==' en lugar de '='?" #: ../Doc/whatsnew/3.10.rst:321 msgid "(Contributed by Pablo Galindo in :issue:`43797`.)" @@ -496,6 +596,11 @@ msgid "" " ^\n" "SyntaxError: f-string: cannot use starred expression here" msgstr "" +">>> f\"Agujeros negros {*all_black_holes} and revelations\"\n" +" File \"\", line 1\n" +" (*all_black_holes)\n" +" ^\n" +"SyntaxError: f-string: no se puede utilizar la expresión destacada aquí" #: ../Doc/whatsnew/3.10.rst:333 msgid "(Contributed by Pablo Galindo in :issue:`41064`.)" @@ -525,19 +630,26 @@ msgid "" " ^\n" "IndentationError: expected an indented block after 'if' statement in line 2" msgstr "" +">>> def foo():\n" +"... si lel:\n" +"... x = 2\n" +" Archivo \"\", línea 3\n" +" x = 2\n" +" ^\n" +"IndentationError: se esperaba un bloque con sangría después de la " +"declaración 'if' en la línea 2" #: ../Doc/whatsnew/3.10.rst:353 msgid "AttributeErrors" msgstr "AttributeErrors" #: ../Doc/whatsnew/3.10.rst:355 -#, fuzzy msgid "" "When printing :exc:`AttributeError`, :c:func:`!PyErr_Display` will offer " "suggestions of similar attribute names in the object that the exception was " "raised from:" msgstr "" -"Al imprimir :exc:`AttributeError`, :c:func:`PyErr_Display` ofrecerá " +"Al imprimir :exc:`AttributeError`, :c:func:`!PyErr_Display` ofrecerá " "sugerencias de nombres de atributos similares en el objeto desde el que se " "generó la excepción:" @@ -549,21 +661,25 @@ msgid "" "AttributeError: module 'collections' has no attribute 'namedtoplo'. Did you " "mean: namedtuple?" msgstr "" +">>> colecciones.namedtoplo\n" +"Rastreo (última llamada más reciente):\n" +" Archivo \"\", línea 1, en \n" +"AttributeError: el módulo 'colecciones' no tiene el atributo 'namedtoplo'. " +"Quiso decir: nametuple?" #: ../Doc/whatsnew/3.10.rst:366 ../Doc/whatsnew/3.10.rst:388 msgid "(Contributed by Pablo Galindo in :issue:`38530`.)" msgstr "(Contribuido por Pablo Galindo en :issue:`38530`.)" #: ../Doc/whatsnew/3.10.rst:369 -#, fuzzy msgid "" "Notice this won't work if :c:func:`!PyErr_Display` is not called to display " "the error which can happen if some other custom error display function is " "used. This is a common scenario in some REPLs like IPython." msgstr "" -"Tenga en cuenta que esto no funcionará si no se llama a :c:func:" -"`PyErr_Display` para mostrar el error, lo que puede suceder si se utiliza " -"alguna otra función de visualización de error personalizada. Este es un " +"Tenga en cuenta que esto no funcionará si no se llama a :c:func:`!" +"PyErr_Display` para mostrar el error, lo que puede ocurrir si se utiliza " +"alguna otra función de visualización de errores personalizada. Este es un " "escenario común en algunos REPL como IPython." #: ../Doc/whatsnew/3.10.rst:374 @@ -571,14 +687,13 @@ msgid "NameErrors" msgstr "NameErrors" #: ../Doc/whatsnew/3.10.rst:376 -#, fuzzy msgid "" "When printing :exc:`NameError` raised by the interpreter, :c:func:`!" "PyErr_Display` will offer suggestions of similar variable names in the " "function that the exception was raised from:" msgstr "" -"Al imprimir :exc:`NameError` generado por el intérprete, :c:func:" -"`PyErr_Display` ofrecerá sugerencias de nombres de variable similares en la " +"Al imprimir :exc:`NameError` generado por el intérprete, :c:func:`!" +"PyErr_Display` ofrecerá sugerencias de nombres de variables similares en la " "función desde la que se generó la excepción:" #: ../Doc/whatsnew/3.10.rst:380 @@ -590,17 +705,22 @@ msgid "" "NameError: name 'schwarschild_black_hole' is not defined. Did you mean: " "schwarzschild_black_hole?" msgstr "" +">>> schwarzschild_black_hole = Ninguno\n" +">>> schwarschild_negro_agujero\n" +"Rastreo (última llamada más reciente):\n" +" Archivo \"\", línea 1, en \n" +"NameError: el nombre 'schwarschild_black_hole' no está definido. ¿Quiso " +"decir: schwarzschild_black_hole?" #: ../Doc/whatsnew/3.10.rst:391 -#, fuzzy msgid "" "Notice this won't work if :c:func:`!PyErr_Display` is not called to display " "the error, which can happen if some other custom error display function is " "used. This is a common scenario in some REPLs like IPython." msgstr "" -"Tenga en cuenta que esto no funcionará si no se llama a :c:func:" -"`PyErr_Display` para mostrar el error, lo que puede suceder si se utiliza " -"alguna otra función de visualización de error personalizada. Este es un " +"Tenga en cuenta que esto no funcionará si no se llama a :c:func:`!" +"PyErr_Display` para mostrar el error, lo que puede ocurrir si se utiliza " +"alguna otra función de visualización de errores personalizada. Este es un " "escenario común en algunos REPL como IPython." #: ../Doc/whatsnew/3.10.rst:397 @@ -621,25 +741,24 @@ msgstr "" "ejecutadas y solo para las líneas de código que se ejecutan." #: ../Doc/whatsnew/3.10.rst:402 -#, fuzzy msgid "" "The :attr:`~frame.f_lineno` attribute of frame objects will always contain " "the expected line number." msgstr "" -"El atributo ``f_lineno`` de los objetos marco siempre contendrá el número de " -"línea esperado." +"El atributo :attr:`~frame.f_lineno` de los objetos de marco siempre " +"contendrá el número de línea esperado." #: ../Doc/whatsnew/3.10.rst:405 -#, fuzzy msgid "" "The :attr:`~codeobject.co_lnotab` attribute of :ref:`code objects ` is deprecated and will be removed in 3.12. Code that needs to " -"convert from offset to line number should use the new :meth:`~codeobject." -"co_lines` method instead." +"convert from offset to line number should use the " +"new :meth:`~codeobject.co_lines` method instead." msgstr "" -"El atributo ``co_lnotab`` de los objetos de código está obsoleto y se " -"eliminará en 3.12. El código que necesita convertir de desplazamiento a " -"número de línea debe usar el nuevo método ``co_lines()`` en su lugar." +"El atributo :attr:`~codeobject.co_lnotab` de :ref:`code objects ` está obsoleto y se eliminará en 3.12. El código que necesita " +"convertirse de desplazamiento a número de línea debe utilizar el nuevo " +"método :meth:`~codeobject.co_lines`." #: ../Doc/whatsnew/3.10.rst:412 msgid "PEP 634: Structural Pattern Matching" @@ -682,6 +801,15 @@ msgid "" " case _:\n" " " msgstr "" +"Asunto del partido:\n" +" caso :\n" +" \n" +" caso :\n" +" \n" +" caso :\n" +" \n" +" caso _:\n" +" " #: ../Doc/whatsnew/3.10.rst:436 msgid "" @@ -810,6 +938,16 @@ msgid "" " case _:\n" " return \"Something's wrong with the internet\"" msgstr "" +"def http_error(estado):\n" +" estado del partido:\n" +" caso 400:\n" +" devolver \"Solicitud incorrecta\"\n" +" caso 404:\n" +" devolver \"No encontrado\"\n" +" caso 418:\n" +" volver \"soy una tetera\"\n" +" caso _:\n" +" devolver \"Algo anda mal con Internet\"" #: ../Doc/whatsnew/3.10.rst:492 msgid "" @@ -838,6 +976,8 @@ msgid "" "case 401 | 403 | 404:\n" " return \"Not allowed\"" msgstr "" +"caso 401 | 403 | 404:\n" +" devolver \"No permitido\"" #: ../Doc/whatsnew/3.10.rst:505 msgid "Behavior without the wildcard" @@ -862,6 +1002,14 @@ msgid "" " case 418:\n" " return \"I'm a teapot\"" msgstr "" +"def http_error(estado):\n" +" estado del partido:\n" +" caso 400:\n" +" devolver \"Solicitud incorrecta\"\n" +" caso 404:\n" +" devolver \"No encontrado\"\n" +" caso 418:\n" +" volver \"soy una tetera\"" #: ../Doc/whatsnew/3.10.rst:519 msgid "" @@ -904,6 +1052,18 @@ msgid "" " case _:\n" " raise ValueError(\"Not a point\")" msgstr "" +"# punto es una tupla (x, y)\n" +"punto de partido:\n" +" caso (0, 0):\n" +" imprimir(\"Origen\")\n" +" caso (0, y):\n" +" imprimir(f\"Y={y}\")\n" +" caso (x, 0):\n" +" imprimir(f\"X={x}\")\n" +" caso (x, y):\n" +" imprimir(f\"X={x}, Y={y}\")\n" +" caso _:\n" +" elevar ValueError (\"No es un punto\")" #: ../Doc/whatsnew/3.10.rst:543 msgid "" @@ -924,16 +1084,15 @@ msgid "Patterns and classes" msgstr "Patrones y clases" #: ../Doc/whatsnew/3.10.rst:552 -#, fuzzy msgid "" "If you are using classes to structure your data, you can use as a pattern " "the class name followed by an argument list resembling a constructor. This " "pattern has the ability to capture instance attributes into variables::" msgstr "" -"Si está usando clases para estructurar sus datos, puede usar como patrón el " -"nombre de la clase seguido de una lista de argumentos que se asemeja a un " -"constructor. Este patrón tiene la capacidad de capturar atributos de clase " -"en variables:" +"Si está utilizando clases para estructurar sus datos, puede usar como patrón " +"el nombre de la clase seguido de una lista de argumentos que se asemeja a un " +"constructor. Este patrón tiene la capacidad de capturar atributos de " +"instancia en variables::" #: ../Doc/whatsnew/3.10.rst:556 #, python-brace-format @@ -956,6 +1115,23 @@ msgid "" " case _:\n" " print(\"Not a point\")" msgstr "" +"Punto de clase:\n" +" def __init__(yo, x, y):\n" +" yo.x = x\n" +" yo.y = y\n" +"\n" +"ubicación definida (punto):\n" +" punto de partido:\n" +" caso Punto(x=0, y=0):\n" +" print(\"El origen es la ubicación del punto.\")\n" +" caso Punto(x=0, y=y):\n" +" print(f\"Y={y} y el punto está en el eje y.\")\n" +" caso Punto(x=x, y=0):\n" +" print(f\"X={x} y el punto está en el eje x.\")\n" +" Punto de caso():\n" +" print(\"El punto está ubicado en algún otro lugar del avión.\")\n" +" caso _:\n" +" print(\"No es punto\")" #: ../Doc/whatsnew/3.10.rst:575 msgid "Patterns with positional parameters" @@ -984,6 +1160,10 @@ msgid "" "Point(x=1, y=var)\n" "Point(y=var, x=1)" msgstr "" +"Punto(1, var)\n" +"Punto(1, y=var)\n" +"Punto(x=1, y=var)\n" +"Punto(y=var, x=1)" #: ../Doc/whatsnew/3.10.rst:589 msgid "Nested patterns" @@ -1012,6 +1192,17 @@ msgid "" " case _:\n" " print(\"Something else is found in the list.\")" msgstr "" +"puntos de partido:\n" +" caso []:\n" +" print(\"No hay puntos en la lista.\")\n" +" caso [Punto (0, 0)]:\n" +" print(\"El origen es el único punto de la lista.\")\n" +" caso [Punto (x, y)]:\n" +" print(f\"Un solo punto {x}, {y} está en la lista.\")\n" +" caso [Punto (0, y1), Punto (0, y2)]:\n" +" print(f\"Dos puntos en el eje Y en {y1}, {y2} están en la lista.\")\n" +" caso _:\n" +" print(\"Se encuentra algo más en la lista.\")" #: ../Doc/whatsnew/3.10.rst:607 msgid "Complex patterns and the wildcard" @@ -1036,6 +1227,11 @@ msgid "" " case ('error', code, _):\n" " print(f\"An error {code} occurred.\")" msgstr "" +"coincide con test_variable:\n" +" caso ('advertencia', código, 40):\n" +" print(\"Se ha recibido una advertencia.\")\n" +" caso ('error', código, _):\n" +" print(f\"Ocurrió un error {código}.\")" #: ../Doc/whatsnew/3.10.rst:619 msgid "" @@ -1069,6 +1265,11 @@ msgid "" " case Point(x, y):\n" " print(f\"Point is not on the diagonal.\")" msgstr "" +"punto de partido:\n" +" caso Punto(x, y) si x == y:\n" +" print(f\"El punto está ubicado en la diagonal Y=X en {x}.\")\n" +" caso Punto (x, y):\n" +" print(f\"El punto no está en la diagonal.\")" #: ../Doc/whatsnew/3.10.rst:636 msgid "Other Key Features" @@ -1126,7 +1327,7 @@ msgstr "Los subpatrones se pueden capturar utilizando la palabra clave ``as``:" #: ../Doc/whatsnew/3.10.rst:658 msgid "case (Point(x1, y1), Point(x2, y2) as p2): ..." -msgstr "" +msgstr "caso (Punto (x1, y1), Punto (x2, y2) como p2): ..." #: ../Doc/whatsnew/3.10.rst:660 msgid "" @@ -1171,33 +1372,46 @@ msgid "" " case Color.BLUE:\n" " print(\"I'm feeling the blues :(\")" msgstr "" +"desde enumeración importar enumeración\n" +"Color de clase (Enumeración):\n" +" ROJO = 0\n" +" VERDE = 1\n" +" AZUL = 2\n" +"\n" +"color = Color.VERDE\n" +"color del partido:\n" +" Color de la caja.ROJO:\n" +" print(\"¡Veo rojo!\")\n" +" Color de la caja.VERDE:\n" +" imprimir(\"La hierba es verde\")\n" +" Color de la caja.AZUL:\n" +" print(\"Estoy sintiendo tristeza :()\"" #: ../Doc/whatsnew/3.10.rst:685 msgid "" -"For the full specification see :pep:`634`. Motivation and rationale are in :" -"pep:`635`, and a longer tutorial is in :pep:`636`." +"For the full specification see :pep:`634`. Motivation and rationale are " +"in :pep:`635`, and a longer tutorial is in :pep:`636`." msgstr "" "Para obtener la especificación completa, consulte :pep:`634`. La motivación " -"y el fundamento están en :pep:`635`, y un tutorial más largo está en :pep:" -"`636`." +"y el fundamento están en :pep:`635`, y un tutorial más largo está " +"en :pep:`636`." #: ../Doc/whatsnew/3.10.rst:692 msgid "Optional ``EncodingWarning`` and ``encoding=\"locale\"`` option" msgstr "Opción opcional ``EncodingWarning`` y ``encoding=\"locale\"``" #: ../Doc/whatsnew/3.10.rst:694 -#, fuzzy msgid "" "The default encoding of :class:`~io.TextIOWrapper` and :func:`open` is " "platform and locale dependent. Since UTF-8 is used on most Unix platforms, " "omitting ``encoding`` option when opening UTF-8 files (e.g. JSON, YAML, " "TOML, Markdown) is a very common bug. For example::" msgstr "" -"La codificación predeterminada de :class:`TextIOWrapper` y :func:`open` " -"depende de la plataforma y la configuración regional. Dado que UTF-8 se usa " -"en la mayoría de las plataformas Unix, omitir la opción ``encoding`` al " -"abrir archivos UTF-8 (por ejemplo, JSON, YAML, TOML, Markdown) es un error " -"muy común. Por ejemplo::" +"La codificación predeterminada de :class:`~io.TextIOWrapper` y :func:`open` " +"depende de la plataforma y la configuración regional. Dado que UTF-8 se " +"utiliza en la mayoría de las plataformas Unix, omitir la opción ``encoding`` " +"al abrir archivos UTF-8 (por ejemplo, JSON, YAML, TOML, Markdown) es un " +"error muy común. Por ejemplo::" #: ../Doc/whatsnew/3.10.rst:699 msgid "" @@ -1205,6 +1419,9 @@ msgid "" "with open(\"data.json\") as f:\n" " data = json.load(f)" msgstr "" +"# ERROR: se debe utilizar el modo \"rb\" o codificación=\"utf-8\".\n" +"con open(\"data.json\") como f:\n" +" datos = json.cargar(f)" #: ../Doc/whatsnew/3.10.rst:703 msgid "" @@ -1213,17 +1430,17 @@ msgid "" "locale-specific default encoding is used." msgstr "" "Para encontrar este tipo de error, se agrega un ``EncodingWarning`` " -"opcional. Se emite cuando :data:`sys.flags.warn_default_encoding ` es verdadero y se utiliza la codificación predeterminada específica " -"de la configuración regional." +"opcional. Se emite cuando :data:`sys.flags.warn_default_encoding " +"` es verdadero y se utiliza la codificación predeterminada " +"específica de la configuración regional." #: ../Doc/whatsnew/3.10.rst:707 msgid "" "``-X warn_default_encoding`` option and :envvar:`PYTHONWARNDEFAULTENCODING` " "are added to enable the warning." msgstr "" -"Se agregan la opción ``-X warn_default_encoding`` y :envvar:" -"`PYTHONWARNDEFAULTENCODING` para habilitar la advertencia." +"Se agregan la opción ``-X warn_default_encoding`` " +"y :envvar:`PYTHONWARNDEFAULTENCODING` para habilitar la advertencia." #: ../Doc/whatsnew/3.10.rst:710 msgid "See :ref:`io-text-encoding` for more information." @@ -1235,8 +1452,8 @@ msgstr "Nuevas funciones relacionadas con las sugerencias de tipos" #: ../Doc/whatsnew/3.10.rst:717 msgid "" -"This section covers major changes affecting :pep:`484` type hints and the :" -"mod:`typing` module." +"This section covers major changes affecting :pep:`484` type hints and " +"the :mod:`typing` module." msgstr "" "Esta sección cubre los cambios importantes que afectan a las sugerencias de " "tipo :pep:`484` y al módulo :mod:`typing`." @@ -1246,32 +1463,31 @@ msgid "PEP 604: New Type Union Operator" msgstr "PEP 604: Nuevo tipo de operador unión" #: ../Doc/whatsnew/3.10.rst:724 -#, fuzzy msgid "" "A new type union operator was introduced which enables the syntax ``X | Y``. " "This provides a cleaner way of expressing 'either type X or type Y' instead " "of using :class:`typing.Union`, especially in type hints." msgstr "" -"Se introdujo un nuevo operador de unión de tipos que habilita la sintaxis " -"``X | Y``. Esto proporciona una forma más limpia de expresar 'tipo X o tipo " -"Y' en lugar de usar :data:`typing.Union`, especialmente en sugerencias de " -"tipo." +"Se introdujo un nuevo tipo de operador de unión que habilita la sintaxis ``X " +"| Y``. Esto proporciona una forma más clara de expresar \"tipo X o tipo Y\" " +"en lugar de usar :class:`typing.Union`, especialmente en sugerencias de tipo." #: ../Doc/whatsnew/3.10.rst:728 -#, fuzzy msgid "" "In previous versions of Python, to apply a type hint for functions accepting " "arguments of multiple types, :class:`typing.Union` was used::" msgstr "" "En versiones anteriores de Python, para aplicar una sugerencia de tipo para " -"funciones que aceptan argumentos de múltiples tipos, se usó :data:`typing." -"Union`:" +"funciones que aceptan argumentos de múltiples tipos, se " +"usaba :class:`typing.Union`::" #: ../Doc/whatsnew/3.10.rst:731 msgid "" "def square(number: Union[int, float]) -> Union[int, float]:\n" " return number ** 2" msgstr "" +"def cuadrado(número: Unión[int, float]) -> Unión[int, float]:\n" +" número de devolución ** 2" #: ../Doc/whatsnew/3.10.rst:735 msgid "Type hints can now be written in a more succinct manner::" @@ -1283,20 +1499,24 @@ msgid "" "def square(number: int | float) -> int | float:\n" " return number ** 2" msgstr "" +"def cuadrado(número: int | float) -> int | flotar:\n" +" número de devolución ** 2" #: ../Doc/whatsnew/3.10.rst:741 msgid "" -"This new syntax is also accepted as the second argument to :func:" -"`isinstance` and :func:`issubclass`::" +"This new syntax is also accepted as the second argument " +"to :func:`isinstance` and :func:`issubclass`::" msgstr "" -"Esta nueva sintaxis también se acepta como segundo argumento para :func:" -"`isinstance` y :func:`issubclass`:" +"Esta nueva sintaxis también se acepta como segundo argumento " +"para :func:`isinstance` y :func:`issubclass`:" #: ../Doc/whatsnew/3.10.rst:744 msgid "" ">>> isinstance(1, int | str)\n" "True" msgstr "" +">>> isinstancia(1, int | cadena)\n" +"Verdadero" #: ../Doc/whatsnew/3.10.rst:747 msgid "See :ref:`types-union` and :pep:`604` for more details." @@ -1320,8 +1540,8 @@ msgid "" "for :pep:`484`\\ 's ``Callable`` have been added to the :mod:`typing` module." msgstr "" "Se han agregado al módulo :mod:`typing` dos nuevas opciones para mejorar la " -"información proporcionada a los verificadores de tipo estático para :pep:" -"`484` \\ 's ``Callable``." +"información proporcionada a los verificadores de tipo estático " +"para :pep:`484` \\ 's ``Callable``." #: ../Doc/whatsnew/3.10.rst:759 msgid "" @@ -1352,12 +1572,10 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:770 msgid "" -"See :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing." -"Concatenate`, :class:`typing.ParamSpecArgs`, :class:`typing." -"ParamSpecKwargs`, and :pep:`612` for more details." +"See :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing.Concatenate`, :class:`typing.ParamSpecArgs`, :class:`typing.ParamSpecKwargs`, " +"and :pep:`612` for more details." msgstr "" -"Consulte :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing." -"Concatenate`, :class:`typing.ParamSpecArgs`, :class:`typing.ParamSpecKwargs` " +"Consulte :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing.Concatenate`, :class:`typing.ParamSpecArgs`, :class:`typing.ParamSpecKwargs` " "y :pep:`612` para obtener más detalles." #: ../Doc/whatsnew/3.10.rst:774 @@ -1391,21 +1609,25 @@ msgid "" "StrCache = 'Cache[str]' # a type alias\n" "LOG_PREFIX = 'LOG[DEBUG]' # a module constant" msgstr "" +"StrCache = 'Cache[str]' # un alias de tipo\n" +"LOG_PREFIX = 'LOG[DEBUG]' # una constante del módulo" #: ../Doc/whatsnew/3.10.rst:789 -#, fuzzy msgid "" "Now the :mod:`typing` module has a special value :data:`~typing.TypeAlias` " "which lets you declare type aliases more explicitly::" msgstr "" -"Ahora el módulo :mod:`typing` tiene un valor especial :data:`TypeAlias` que " -"le permite declarar los alias de tipo de forma más explícita:" +"Ahora el módulo :mod:`typing` tiene un valor " +"especial :data:`~typing.TypeAlias` que le permite declarar alias de tipo de " +"forma más explícita:" #: ../Doc/whatsnew/3.10.rst:792 msgid "" "StrCache: TypeAlias = 'Cache[str]' # a type alias\n" "LOG_PREFIX = 'LOG[DEBUG]' # a module constant" msgstr "" +"StrCache: TypeAlias = 'Cache[str]' # un alias de tipo\n" +"LOG_PREFIX = 'LOG[DEBUG]' # una constante del módulo" #: ../Doc/whatsnew/3.10.rst:795 msgid "See :pep:`613` for more details." @@ -1420,18 +1642,17 @@ msgid "PEP 647: User-Defined Type Guards" msgstr "PEP 647: protectores de tipo definidos por el usuario" #: ../Doc/whatsnew/3.10.rst:802 -#, fuzzy msgid "" ":data:`~typing.TypeGuard` has been added to the :mod:`typing` module to " "annotate type guard functions and improve information provided to static " -"type checkers during type narrowing. For more information, please see :data:" -"`~typing.TypeGuard`\\ 's documentation, and :pep:`647`." +"type checkers during type narrowing. For more information, please " +"see :data:`~typing.TypeGuard`\\ 's documentation, and :pep:`647`." msgstr "" -"Se ha agregado :data:`TypeGuard` al módulo :mod:`typing` para anotar las " +"Se agregó :data:`~typing.TypeGuard` al módulo :mod:`typing` para anotar " "funciones de protección de tipos y mejorar la información proporcionada a " -"los verificadores de tipos estáticos durante el estrechamiento de tipos. " -"Para obtener más información, consulte la documentación de :data:`TypeGuard` " -"y :pep:`647`." +"los verificadores de tipos estáticos durante la reducción de tipos. Para " +"obtener más información, consulte la documentación " +"de :data:`~typing.TypeGuard` y :pep:`647`." #: ../Doc/whatsnew/3.10.rst:807 msgid "" @@ -1458,15 +1679,15 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:817 msgid "" -"The views returned by :meth:`dict.keys`, :meth:`dict.values` and :meth:`dict." -"items` now all have a ``mapping`` attribute that gives a :class:`types." -"MappingProxyType` object wrapping the original dictionary. (Contributed by " -"Dennis Sweeney in :issue:`40890`.)" +"The views returned by :meth:`dict.keys`, :meth:`dict.values` " +"and :meth:`dict.items` now all have a ``mapping`` attribute that gives " +"a :class:`types.MappingProxyType` object wrapping the original dictionary. " +"(Contributed by Dennis Sweeney in :issue:`40890`.)" msgstr "" -"Las vistas devueltas por :meth:`dict.keys`, :meth:`dict.values` y :meth:" -"`dict.items` ahora tienen todas un atributo ``mapping`` que proporciona un " -"objeto :class:`types.MappingProxyType` que envuelve el diccionario original. " -"(Contribuido por Dennis Sweeney en :issue:`40890`.)" +"Las vistas devueltas por :meth:`dict.keys`, :meth:`dict.values` " +"y :meth:`dict.items` ahora tienen todas un atributo ``mapping`` que " +"proporciona un objeto :class:`types.MappingProxyType` que envuelve el " +"diccionario original. (Contribuido por Dennis Sweeney en :issue:`40890`.)" #: ../Doc/whatsnew/3.10.rst:822 msgid "" @@ -1482,26 +1703,26 @@ msgid "" "Builtin and extension functions that take integer arguments no longer " "accept :class:`~decimal.Decimal`\\ s, :class:`~fractions.Fraction`\\ s and " "other objects that can be converted to integers only with a loss (e.g. that " -"have the :meth:`~object.__int__` method but do not have the :meth:`~object." -"__index__` method). (Contributed by Serhiy Storchaka in :issue:`37999`.)" +"have the :meth:`~object.__int__` method but do not have " +"the :meth:`~object.__index__` method). (Contributed by Serhiy Storchaka " +"in :issue:`37999`.)" msgstr "" "Las funciones integradas y de extensión que toman argumentos enteros ya no " "aceptan :class:`~decimal.Decimal` \\ s, :class:`~fractions.Fraction` \\ sy " "otros objetos que se pueden convertir a números enteros solo con una pérdida " "(por ejemplo, que tienen el método :meth:`~object.__int__` pero no tienen el " -"método :meth:`~object.__index__`). (Contribuido por Serhiy Storchaka en :" -"issue:`37999`.)" +"método :meth:`~object.__index__`). (Contribuido por Serhiy Storchaka " +"en :issue:`37999`.)" #: ../Doc/whatsnew/3.10.rst:832 -#, fuzzy msgid "" "If :func:`object.__ipow__` returns :data:`NotImplemented`, the operator will " "correctly fall back to :func:`object.__pow__` and :func:`object.__rpow__` as " "expected. (Contributed by Alex Shkop in :issue:`38302`.)" msgstr "" -"Si :func:`object.__ipow__` devuelve :const:`NotImplemented`, el operador " -"retrocederá correctamente a :func:`object.__pow__` y :func:`object.__rpow__` " -"como se esperaba. (Contribuido por Alex Shkop en :issue:`38302`.)" +"Si :func:`object.__ipow__` devuelve :data:`NotImplemented`, el operador " +"recurrirá correctamente a :func:`object.__pow__` y :func:`object.__rpow__` " +"como se esperaba. (Aportado por Alex Shkop en :issue:`38302`.)" #: ../Doc/whatsnew/3.10.rst:836 msgid "" @@ -1533,15 +1754,15 @@ msgid "" "respectively. (Contributed by Joshua Bronson, Daniel Pope, and Justin Wang " "in :issue:`31861`.)" msgstr "" -"Se han agregado dos nuevas funciones integradas: :func:`aiter` y :func:" -"`anext` para proporcionar contrapartes asíncronas a :func:`iter` y :func:" -"`next`, respectivamente. (Contribuido por Joshua Bronson, Daniel Pope y " -"Justin Wang en :issue:`31861`.)" +"Se han agregado dos nuevas funciones integradas: :func:`aiter` " +"y :func:`anext` para proporcionar contrapartes asíncronas a :func:`iter` " +"y :func:`next`, respectivamente. (Contribuido por Joshua Bronson, Daniel " +"Pope y Justin Wang en :issue:`31861`.)" #: ../Doc/whatsnew/3.10.rst:850 msgid "" -"Static methods (:func:`@staticmethod `) and class methods (:" -"func:`@classmethod `) now inherit the method attributes " +"Static methods (:func:`@staticmethod `) and class methods " +"(:func:`@classmethod `) now inherit the method attributes " "(``__module__``, ``__name__``, ``__qualname__``, ``__doc__``, " "``__annotations__``) and have a new ``__wrapped__`` attribute. Moreover, " "static methods are now callable as regular functions. (Contributed by Victor " @@ -1558,8 +1779,8 @@ msgstr "" msgid "" "Annotations for complex targets (everything beside ``simple name`` targets " "defined by :pep:`526`) no longer cause any runtime effects with ``from " -"__future__ import annotations``. (Contributed by Batuhan Taskaya in :issue:" -"`42737`.)" +"__future__ import annotations``. (Contributed by Batuhan Taskaya " +"in :issue:`42737`.)" msgstr "" "Las anotaciones para objetivos complejos (todo junto a los objetivos " "``simple name`` definidos por :pep:`526`) ya no causan ningún efecto de " @@ -1585,8 +1806,8 @@ msgstr "" msgid "" "Annotations consist of ``yield``, ``yield from``, ``await`` or named " "expressions are now forbidden under ``from __future__ import annotations`` " -"due to their side effects. (Contributed by Batuhan Taskaya in :issue:" -"`42725`.)" +"due to their side effects. (Contributed by Batuhan Taskaya " +"in :issue:`42725`.)" msgstr "" "Las anotaciones consisten en ``yield``, ``yield from``, ``await`` o " "expresiones con nombre ahora están prohibidas bajo ``from __future__ import " @@ -1607,31 +1828,30 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:878 msgid "" -"Hashes of NaN values of both :class:`float` type and :class:`decimal." -"Decimal` type now depend on object identity. Formerly, they always hashed to " -"``0`` even though NaN values are not equal to one another. This caused " -"potentially quadratic runtime behavior due to excessive hash collisions when " -"creating dictionaries and sets containing multiple NaNs. (Contributed by " -"Raymond Hettinger in :issue:`43475`.)" -msgstr "" -"Los valores hash de NaN tanto del tipo :class:`float` como del tipo :class:" -"`decimal.Decimal` ahora dependen de la identidad del objeto. Anteriormente, " -"siempre tenían hash en ``0`` aunque los valores de NaN no son iguales entre " -"sí. Esto provocó un comportamiento de tiempo de ejecución potencialmente " -"cuadrático debido a colisiones de hash excesivas al crear diccionarios y " -"conjuntos que contienen varios NaN. (Contribuido por Raymond Hettinger en :" -"issue:`43475`.)" +"Hashes of NaN values of both :class:`float` type " +"and :class:`decimal.Decimal` type now depend on object identity. Formerly, " +"they always hashed to ``0`` even though NaN values are not equal to one " +"another. This caused potentially quadratic runtime behavior due to excessive " +"hash collisions when creating dictionaries and sets containing multiple " +"NaNs. (Contributed by Raymond Hettinger in :issue:`43475`.)" +msgstr "" +"Los valores hash de NaN tanto del tipo :class:`float` como del " +"tipo :class:`decimal.Decimal` ahora dependen de la identidad del objeto. " +"Anteriormente, siempre tenían hash en ``0`` aunque los valores de NaN no son " +"iguales entre sí. Esto provocó un comportamiento de tiempo de ejecución " +"potencialmente cuadrático debido a colisiones de hash excesivas al crear " +"diccionarios y conjuntos que contienen varios NaN. (Contribuido por Raymond " +"Hettinger en :issue:`43475`.)" #: ../Doc/whatsnew/3.10.rst:885 -#, fuzzy msgid "" "A :exc:`SyntaxError` (instead of a :exc:`NameError`) will be raised when " -"deleting the :const:`__debug__` constant. (Contributed by Donghee Na in :" -"issue:`45000`.)" +"deleting the :const:`__debug__` constant. (Contributed by Donghee Na " +"in :issue:`45000`.)" msgstr "" -"Un :exc:`SyntaxError` (en lugar de una constante :exc:`NameError`) se " -"lanzara cuando se elimine la constante :const:`__debug__`. (Contribuido por " -"Dong-hee Na en :issue:`45000`)." +"Se generará un :exc:`SyntaxError` (en lugar de un :exc:`NameError`) al " +"eliminar la constante :const:`__debug__`. (Aportado por Donghee Na " +"en :issue:`45000`.)" #: ../Doc/whatsnew/3.10.rst:888 msgid "" @@ -1648,7 +1868,6 @@ msgid "New Modules" msgstr "Nuevos módulos" #: ../Doc/whatsnew/3.10.rst:895 -#, fuzzy msgid "None." msgstr "Ninguno todavía." @@ -1661,14 +1880,12 @@ msgid "asyncio" msgstr "asyncio" #: ../Doc/whatsnew/3.10.rst:904 -#, fuzzy msgid "" "Add missing :meth:`~asyncio.loop.connect_accepted_socket` method. " "(Contributed by Alex Grönholm in :issue:`41332`.)" msgstr "" -"Agregue el método :meth:`~asyncio.events.AbstractEventLoop." -"connect_accepted_socket` faltante. (Contribuido por Alex Grönholm en :issue:" -"`41332`.)" +"Agregue el método :meth:`~asyncio.loop.connect_accepted_socket` que falta. " +"(Aportado por Alex Grönholm en :issue:`41332`.)" #: ../Doc/whatsnew/3.10.rst:909 msgid "argparse" @@ -1730,14 +1947,12 @@ msgid "bdb" msgstr "bdb" #: ../Doc/whatsnew/3.10.rst:936 -#, fuzzy msgid "" "Add :meth:`!clearBreakpoints` to reset all set breakpoints. (Contributed by " "Irit Katriel in :issue:`24160`.)" msgstr "" -"Agregue :meth:`~bdb.Breakpoint.clearBreakpoints` para restablecer todos los " -"puntos de interrupción establecidos. (Contribuido por Irit Katriel en :issue:" -"`24160`.)" +"Agregue :meth:`!clearBreakpoints` para restablecer todos los puntos de " +"interrupción establecidos. (Aportado por Irit Katriel en :issue:`24160`.)" #: ../Doc/whatsnew/3.10.rst:940 msgid "bisect" @@ -1745,8 +1960,9 @@ msgstr "bisecar" #: ../Doc/whatsnew/3.10.rst:942 msgid "" -"Added the possibility of providing a *key* function to the APIs in the :mod:" -"`bisect` module. (Contributed by Raymond Hettinger in :issue:`4356`.)" +"Added the possibility of providing a *key* function to the APIs in " +"the :mod:`bisect` module. (Contributed by Raymond Hettinger " +"in :issue:`4356`.)" msgstr "" "Se agregó la posibilidad de proporcionar una función *key* a las API en el " "módulo :mod:`bisect`. (Contribuido por Raymond Hettinger en :issue:`4356`.)" @@ -1770,30 +1986,31 @@ msgstr "colecciones.abc" #: ../Doc/whatsnew/3.10.rst:954 msgid "" "The ``__args__`` of the :ref:`parameterized generic ` " -"for :class:`collections.abc.Callable` are now consistent with :data:`typing." -"Callable`. :class:`collections.abc.Callable` generic now flattens type " -"parameters, similar to what :data:`typing.Callable` currently does. This " -"means that ``collections.abc.Callable[[int, str], str]`` will have " -"``__args__`` of ``(int, str, str)``; previously this was ``([int, str], " +"for :class:`collections.abc.Callable` are now consistent " +"with :data:`typing.Callable`. :class:`collections.abc.Callable` generic now " +"flattens type parameters, similar to what :data:`typing.Callable` currently " +"does. This means that ``collections.abc.Callable[[int, str], str]`` will " +"have ``__args__`` of ``(int, str, str)``; previously this was ``([int, str], " "str)``. To allow this change, :class:`types.GenericAlias` can now be " -"subclassed, and a subclass will be returned when subscripting the :class:" -"`collections.abc.Callable` type. Note that a :exc:`TypeError` may be raised " -"for invalid forms of parameterizing :class:`collections.abc.Callable` which " -"may have passed silently in Python 3.9. (Contributed by Ken Jin in :issue:" -"`42195`.)" -msgstr "" -"El ``__args__`` del :ref:`parameterized generic ` para :" -"class:`collections.abc.Callable` ahora es consistente con :data:`typing." -"Callable`. :class:`collections.abc.Callable` genérico ahora aplana los " -"parámetros de tipo, similar a lo que hace actualmente :data:`typing." -"Callable`. Esto significa que ``collections.abc.Callable[[int, str], str]`` " -"tendrá ``__args__`` de ``(int, str, str)``; anteriormente esto era ``([int, " -"str], str)``. Para permitir este cambio, :class:`types.GenericAlias` ahora " -"puede ser subclasificado, y se devolverá una subclase al subíndice el tipo :" -"class:`collections.abc.Callable`. Tenga en cuenta que se puede generar un :" -"exc:`TypeError` para formas no válidas de parametrizar :class:`collections." -"abc.Callable` que pueden haber pasado silenciosamente en Python 3.9. " -"(Contribuido por Ken Jin en :issue:`42195`.)" +"subclassed, and a subclass will be returned when subscripting " +"the :class:`collections.abc.Callable` type. Note that a :exc:`TypeError` " +"may be raised for invalid forms of " +"parameterizing :class:`collections.abc.Callable` which may have passed " +"silently in Python 3.9. (Contributed by Ken Jin in :issue:`42195`.)" +msgstr "" +"El ``__args__`` del :ref:`parameterized generic ` " +"para :class:`collections.abc.Callable` ahora es consistente " +"con :data:`typing.Callable`. :class:`collections.abc.Callable` genérico " +"ahora aplana los parámetros de tipo, similar a lo que hace " +"actualmente :data:`typing.Callable`. Esto significa que " +"``collections.abc.Callable[[int, str], str]`` tendrá ``__args__`` de ``(int, " +"str, str)``; anteriormente esto era ``([int, str], str)``. Para permitir " +"este cambio, :class:`types.GenericAlias` ahora puede ser subclasificado, y " +"se devolverá una subclase al subíndice el " +"tipo :class:`collections.abc.Callable`. Tenga en cuenta que se puede generar " +"un :exc:`TypeError` para formas no válidas de " +"parametrizar :class:`collections.abc.Callable` que pueden haber pasado " +"silenciosamente en Python 3.9. (Contribuido por Ken Jin en :issue:`42195`.)" #: ../Doc/whatsnew/3.10.rst:967 msgid "contextlib" @@ -1815,16 +2032,16 @@ msgid "" "Add asynchronous context manager support to :func:`contextlib.nullcontext`. " "(Contributed by Tom Gringauz in :issue:`41543`.)" msgstr "" -"Agregue soporte de administrador de contexto asincrónico a :func:`contextlib." -"nullcontext`. (Contribuido por Tom Gringauz en :issue:`41543`.)" +"Agregue soporte de administrador de contexto asincrónico " +"a :func:`contextlib.nullcontext`. (Contribuido por Tom Gringauz " +"en :issue:`41543`.)" #: ../Doc/whatsnew/3.10.rst:976 -#, fuzzy msgid "" "Add :class:`~contextlib.AsyncContextDecorator`, for supporting usage of " "async context managers as decorators." msgstr "" -"Agregue :class:`AsyncContextDecorator`, para admitir el uso de " +"Agregue :class:`~contextlib.AsyncContextDecorator` para admitir el uso de " "administradores de contexto asíncronos como decoradores." #: ../Doc/whatsnew/3.10.rst:980 @@ -1834,17 +2051,18 @@ msgstr "maldiciones" #: ../Doc/whatsnew/3.10.rst:982 msgid "" "The extended color functions added in ncurses 6.1 will be used transparently " -"by :func:`curses.color_content`, :func:`curses.init_color`, :func:`curses." -"init_pair`, and :func:`curses.pair_content`. A new function, :func:`curses." -"has_extended_color_support`, indicates whether extended color support is " -"provided by the underlying ncurses library. (Contributed by Jeffrey " -"Kintscher and Hans Petter Jansson in :issue:`36982`.)" +"by :func:`curses.color_content`, :func:`curses.init_color`, :func:`curses.init_pair`, " +"and :func:`curses.pair_content`. A new " +"function, :func:`curses.has_extended_color_support`, indicates whether " +"extended color support is provided by the underlying ncurses library. " +"(Contributed by Jeffrey Kintscher and Hans Petter Jansson in :issue:`36982`.)" msgstr "" "Las funciones de color extendidas agregadas en ncurses 6.1 serán utilizadas " -"de forma transparente por :func:`curses.color_content`, :func:`curses." -"init_color`, :func:`curses.init_pair` y :func:`curses.pair_content`. Una " -"nueva función, :func:`curses.has_extended_color_support`, indica si la " -"biblioteca ncurses subyacente proporciona compatibilidad de color ampliada. " +"de forma transparente " +"por :func:`curses.color_content`, :func:`curses.init_color`, :func:`curses.init_pair` " +"y :func:`curses.pair_content`. Una nueva " +"función, :func:`curses.has_extended_color_support`, indica si la biblioteca " +"ncurses subyacente proporciona compatibilidad de color ampliada. " "(Contribuido por Jeffrey Kintscher y Hans Petter Jansson en :issue:`36982`.)" #: ../Doc/whatsnew/3.10.rst:989 @@ -1870,8 +2088,9 @@ msgid "" "Added ``slots`` parameter in :func:`dataclasses.dataclass` decorator. " "(Contributed by Yurii Karabas in :issue:`42269`)" msgstr "" -"Se agregó el parámetro ``slots`` en el decorador :func:`dataclasses." -"dataclass`. (Contribuido por Yurii Karabas en :issue:`42269`)" +"Se agregó el parámetro ``slots`` en el " +"decorador :func:`dataclasses.dataclass`. (Contribuido por Yurii Karabas " +"en :issue:`42269`)" #: ../Doc/whatsnew/3.10.rst:1003 msgid "Keyword-only fields" @@ -1900,6 +2119,12 @@ msgid "" " name: str\n" " birthday: datetime.date" msgstr "" +"desde clases de datos importar clase de datos\n" +"\n" +"@dataclass(kw_only=Verdadero)\n" +"Cumpleaños de clase:\n" +" nombre: cadena\n" +" cumpleaños: fechahora.fecha" #: ../Doc/whatsnew/3.10.rst:1020 msgid "" @@ -1922,6 +2147,12 @@ msgid "" " name: str\n" " birthday: datetime.date = field(kw_only=True)" msgstr "" +"desde clases de datos importar clase de datos, campo\n" +"\n" +"@clasededatos\n" +"Cumpleaños de clase:\n" +" nombre: cadena\n" +" cumpleaños: fechahora.fecha = campo(kw_only=True)" #: ../Doc/whatsnew/3.10.rst:1034 msgid "" @@ -1957,6 +2188,15 @@ msgid "" " z: float = 0.0\n" " t: float = 0.0" msgstr "" +"desde clases de datos importar clase de datos, KW_ONLY\n" +"\n" +"@clasededatos\n" +"Punto de clase:\n" +" x: flotar\n" +" y: flotar\n" +" _: KW_ONLY\n" +" z: flotante = 0,0\n" +" t: flotante = 0,0" #: ../Doc/whatsnew/3.10.rst:1054 msgid "" @@ -1976,21 +2216,21 @@ msgid "" "3.12. Its functionality for specifying package builds has already been " "completely replaced by third-party packages ``setuptools`` and " "``packaging``, and most other commonly used APIs are available elsewhere in " -"the standard library (such as :mod:`platform`, :mod:`shutil`, :mod:" -"`subprocess` or :mod:`sysconfig`). There are no plans to migrate any other " -"functionality from ``distutils``, and applications that are using other " -"functions should plan to make private copies of the code. Refer to :pep:" -"`632` for discussion." +"the standard library (such " +"as :mod:`platform`, :mod:`shutil`, :mod:`subprocess` or :mod:`sysconfig`). " +"There are no plans to migrate any other functionality from ``distutils``, " +"and applications that are using other functions should plan to make private " +"copies of the code. Refer to :pep:`632` for discussion." msgstr "" "Todo el paquete ``distutils`` está obsoleto y se eliminará en Python 3.12. " "Su funcionalidad para especificar compilaciones de paquetes ya ha sido " "completamente reemplazada por paquetes de terceros ``setuptools`` y " "``packaging``, y la mayoría de las otras API de uso común están disponibles " -"en otras partes de la biblioteca estándar (como :mod:`platform`, :mod:" -"`shutil`, :mod:`subprocess` o :mod:`sysconfig`). No hay planes para migrar " -"ninguna otra funcionalidad de ``distutils``, y las aplicaciones que utilizan " -"otras funciones deben planificar la realización de copias privadas del " -"código. Consulte :pep:`632` para obtener más información." +"en otras partes de la biblioteca estándar " +"(como :mod:`platform`, :mod:`shutil`, :mod:`subprocess` o :mod:`sysconfig`). " +"No hay planes para migrar ninguna otra funcionalidad de ``distutils``, y las " +"aplicaciones que utilizan otras funciones deben planificar la realización de " +"copias privadas del código. Consulte :pep:`632` para obtener más información." #: ../Doc/whatsnew/3.10.rst:1073 msgid "" @@ -2009,8 +2249,8 @@ msgstr "doctest" #: ../Doc/whatsnew/3.10.rst:1081 ../Doc/whatsnew/3.10.rst:1216 #: ../Doc/whatsnew/3.10.rst:1243 ../Doc/whatsnew/3.10.rst:1342 msgid "" -"When a module does not define ``__loader__``, fall back to ``__spec__." -"loader``. (Contributed by Brett Cannon in :issue:`42133`.)" +"When a module does not define ``__loader__``, fall back to " +"``__spec__.loader``. (Contributed by Brett Cannon in :issue:`42133`.)" msgstr "" "Cuando un módulo no define ``__loader__``, recurre a ``__spec__.loader``. " "(Contribuido por Brett Cannon en :issue:`42133`.)" @@ -2032,18 +2272,18 @@ msgid "enum" msgstr "enum" #: ../Doc/whatsnew/3.10.rst:1093 -#, fuzzy msgid "" -":class:`~enum.Enum` :func:`~object.__repr__` now returns ``enum_name." -"member_name`` and :func:`~object.__str__` now returns ``member_name``. " -"Stdlib enums available as module constants have a :func:`repr` of " -"``module_name.member_name``. (Contributed by Ethan Furman in :issue:`40066`.)" +":class:`~enum.Enum` :func:`~object.__repr__` now returns " +"``enum_name.member_name`` and :func:`~object.__str__` now returns " +"``member_name``. Stdlib enums available as module constants have " +"a :func:`repr` of ``module_name.member_name``. (Contributed by Ethan Furman " +"in :issue:`40066`.)" msgstr "" -":class:`Enum` :func:`__repr__` ahora devuelve ``enum_name.member_name`` y :" -"func:`__str__` ahora devuelve ``member_name``. Los enums de Stdlib " -"disponibles como constantes de módulo tienen un :func:`repr` de " -"``module_name.member_name``. (Contribuido por Ethan Furman en :issue:" -"`40066`.)" +":class:`~enum.Enum` :func:`~object.__repr__` ahora devuelve " +"``enum_name.member_name`` y :func:`~object.__str__` ahora devuelve " +"``member_name``. Las enumeraciones Stdlib disponibles como constantes de " +"módulo tienen un :func:`repr` de ``module_name.member_name``. (Aportado por " +"Ethan Furman en :issue:`40066`.)" #: ../Doc/whatsnew/3.10.rst:1098 msgid "" @@ -2059,22 +2299,24 @@ msgstr "entrada de archivo" #: ../Doc/whatsnew/3.10.rst:1104 msgid "" -"Add *encoding* and *errors* parameters in :func:`fileinput.input` and :class:" -"`fileinput.FileInput`. (Contributed by Inada Naoki in :issue:`43712`.)" +"Add *encoding* and *errors* parameters in :func:`fileinput.input` " +"and :class:`fileinput.FileInput`. (Contributed by Inada Naoki " +"in :issue:`43712`.)" msgstr "" -"Agregue los parámetros *encoding* and *errors* en :func:`fileinput.input` y :" -"class:`fileinput.FileInput`. (Contribuido por Inada Naoki en :issue:`43712`.)" +"Agregue los parámetros *encoding* and *errors* en :func:`fileinput.input` " +"y :class:`fileinput.FileInput`. (Contribuido por Inada Naoki " +"en :issue:`43712`.)" #: ../Doc/whatsnew/3.10.rst:1108 -#, fuzzy msgid "" ":func:`fileinput.hook_compressed` now returns :class:`~io.TextIOWrapper` " "object when *mode* is \"r\" and file is compressed, like uncompressed files. " "(Contributed by Inada Naoki in :issue:`5758`.)" msgstr "" -":func:`fileinput.hook_compressed` ahora devuelve el objeto :class:" -"`TextIOWrapper` cuando *mode* es \"r\" y el archivo está comprimido, como " -"archivos sin comprimir. (Contribuido por Inada Naoki en :issue:`5758`.)" +":func:`fileinput.hook_compressed` ahora devuelve el " +"objeto :class:`~io.TextIOWrapper` cuando *mode* es \"r\" y el archivo está " +"comprimido, como archivos sin comprimir. (Aportado por Inada Naoki " +"en :issue:`5758`.)" #: ../Doc/whatsnew/3.10.rst:1113 msgid "faulthandler" @@ -2083,8 +2325,8 @@ msgstr "manipulador de faltas" #: ../Doc/whatsnew/3.10.rst:1115 msgid "" "The :mod:`faulthandler` module now detects if a fatal error occurs during a " -"garbage collector collection. (Contributed by Victor Stinner in :issue:" -"`44466`.)" +"garbage collector collection. (Contributed by Victor Stinner " +"in :issue:`44466`.)" msgstr "" "El módulo :mod:`faulthandler` ahora detecta si ocurre un error fatal durante " "la recolección de un recolector de basura. (Contribuido por Victor Stinner " @@ -2096,11 +2338,13 @@ msgstr "GC" #: ../Doc/whatsnew/3.10.rst:1122 msgid "" -"Add audit hooks for :func:`gc.get_objects`, :func:`gc.get_referrers` and :" -"func:`gc.get_referents`. (Contributed by Pablo Galindo in :issue:`43439`.)" +"Add audit hooks for :func:`gc.get_objects`, :func:`gc.get_referrers` " +"and :func:`gc.get_referents`. (Contributed by Pablo Galindo " +"in :issue:`43439`.)" msgstr "" -"Agregue ganchos de auditoría para :func:`gc.get_objects`, :func:`gc." -"get_referrers` y :func:`gc.get_referents`. (Contribuido por Pablo Galindo " +"Agregue ganchos de auditoría " +"para :func:`gc.get_objects`, :func:`gc.get_referrers` " +"y :func:`gc.get_referents`. (Contribuido por Pablo Galindo " "en :issue:`43439`.)" #: ../Doc/whatsnew/3.10.rst:1126 @@ -2109,13 +2353,13 @@ msgstr "glob" #: ../Doc/whatsnew/3.10.rst:1128 msgid "" -"Add the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and :func:" -"`~glob.iglob` which allow to specify the root directory for searching. " -"(Contributed by Serhiy Storchaka in :issue:`38144`.)" +"Add the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` " +"and :func:`~glob.iglob` which allow to specify the root directory for " +"searching. (Contributed by Serhiy Storchaka in :issue:`38144`.)" msgstr "" -"Agregue los parámetros *root_dir* and *dir_fd* en :func:`~glob.glob` y :func:" -"`~glob.iglob` que permiten especificar el directorio raíz para la búsqueda. " -"(Contribuido por Serhiy Storchaka en :issue:`38144`.)" +"Agregue los parámetros *root_dir* and *dir_fd* en :func:`~glob.glob` " +"y :func:`~glob.iglob` que permiten especificar el directorio raíz para la " +"búsqueda. (Contribuido por Serhiy Storchaka en :issue:`38144`.)" #: ../Doc/whatsnew/3.10.rst:1133 msgid "hashlib" @@ -2145,8 +2389,8 @@ msgid "" msgstr "" "El respaldo de Python puro de :func:`~hashlib.pbkdf2_hmac` está en desuso. " "En el futuro, PBKDF2-HMAC solo estará disponible cuando Python se haya " -"construido con soporte OpenSSL. (Contribuido por Christian Heimes en :issue:" -"`43880`.)" +"construido con soporte OpenSSL. (Contribuido por Christian Heimes " +"en :issue:`43880`.)" #: ../Doc/whatsnew/3.10.rst:1147 msgid "hmac" @@ -2167,8 +2411,8 @@ msgstr "IDLE e idlelib" #: ../Doc/whatsnew/3.10.rst:1155 msgid "" "Make IDLE invoke :func:`sys.excepthook` (when started without '-n'). User " -"hooks were previously ignored. (Contributed by Ken Hilton in :issue:" -"`43008`.)" +"hooks were previously ignored. (Contributed by Ken Hilton " +"in :issue:`43008`.)" msgstr "" "Hacer que IDLE invoque :func:`sys.excepthook` (cuando se inicia sin '-n'). " "Los ganchos de usuario se ignoraban anteriormente. (Aportado por Ken Hilton " @@ -2179,10 +2423,10 @@ msgid "" "Rearrange the settings dialog. Split the General tab into Windows and Shell/" "Ed tabs. Move help sources, which extend the Help menu, to the Extensions " "tab. Make space for new options and shorten the dialog. The latter makes " -"the dialog better fit small screens. (Contributed by Terry Jan Reedy in :" -"issue:`40468`.) Move the indent space setting from the Font tab to the new " -"Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy in :issue:" -"`33962`.)" +"the dialog better fit small screens. (Contributed by Terry Jan Reedy " +"in :issue:`40468`.) Move the indent space setting from the Font tab to the " +"new Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy " +"in :issue:`33962`.)" msgstr "" "Reorganizar el diálogo de configuración. Dividir la pestaña General en las " "pestañas Windows y Shell/Ed. Mover las fuentes de ayuda, que amplían el " @@ -2215,8 +2459,8 @@ msgstr "" "derecho después de seleccionar líneas de texto, se muestra un menú " "contextual con 'copiar con indicaciones'. Esto comprime los mensajes de la " "barra lateral con líneas del texto seleccionado. Esta opción también aparece " -"en el menú contextual del texto. (Contribuido por Tal Einat en :issue:" -"`37903`.)" +"en el menú contextual del texto. (Contribuido por Tal Einat " +"en :issue:`37903`.)" #: ../Doc/whatsnew/3.10.rst:1178 msgid "" @@ -2232,17 +2476,19 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:1183 msgid "" -"Highlight the new :ref:`soft keywords ` :keyword:`match`, :" -"keyword:`case `, and :keyword:`_ ` in pattern-" -"matching statements. However, this highlighting is not perfect and will be " -"incorrect in some rare cases, including some ``_``-s in ``case`` patterns. " -"(Contributed by Tal Einat in :issue:`44010`.)" +"Highlight the new :ref:`soft keywords ` :keyword:`match`, :keyword:`case `, and :keyword:`_ " +"` in pattern-matching statements. However, this " +"highlighting is not perfect and will be incorrect in some rare cases, " +"including some ``_``-s in ``case`` patterns. (Contributed by Tal Einat " +"in :issue:`44010`.)" msgstr "" -"Resalte los nuevos :ref:`soft keywords ` :keyword:`match`, :" -"keyword:`case ` y :keyword:`_ ` en declaraciones " -"de coincidencia de patrones. Sin embargo, este resaltado no es perfecto y " -"será incorrecto en algunos casos excepcionales, incluidos algunos ``_``-s en " -"patrones ``case``. (Aportado por Tal Einat en :issue:`44010`.)" +"Resalte los nuevos :ref:`soft keywords ` :keyword:`match`, :keyword:`case ` y :keyword:`_ ` en declaraciones de coincidencia de patrones. Sin embargo, este " +"resaltado no es perfecto y será incorrecto en algunos casos excepcionales, " +"incluidos algunos ``_``-s en patrones ``case``. (Aportado por Tal Einat " +"en :issue:`44010`.)" #: ../Doc/whatsnew/3.10.rst:1189 msgid "New in 3.10 maintenance releases." @@ -2277,79 +2523,77 @@ msgstr "" "importlib-metadata.readthedocs.io/en/latest/history.html>`_)." #: ../Doc/whatsnew/3.10.rst:1203 -#, fuzzy msgid "" ":ref:`importlib.metadata entry points ` now provide a nicer " -"experience for selecting entry points by group and name through a new :ref:" -"`importlib.metadata.EntryPoints ` class. See the Compatibility " -"Note in the docs for more info on the deprecation and usage." +"experience for selecting entry points by group and name through a " +"new :ref:`importlib.metadata.EntryPoints ` class. See the " +"Compatibility Note in the docs for more info on the deprecation and usage." msgstr "" ":ref:`importlib.metadata entry points ` ahora brinda una mejor " "experiencia para seleccionar puntos de entrada por grupo y nombre a través " -"de una nueva clase :class:`importlib.metadata.EntryPoints`. Consulte la Nota " -"de compatibilidad en los documentos para obtener más información sobre la " -"obsolescencia y el uso." +"de una nueva clase :ref:`importlib.metadata.EntryPoints `. " +"Consulte la Nota de compatibilidad en los documentos para obtener más " +"información sobre la desactivación y el uso." #: ../Doc/whatsnew/3.10.rst:1209 -#, fuzzy msgid "" "Added :ref:`importlib.metadata.packages_distributions() ` for resolving top-level Python modules and packages to " "their :ref:`importlib.metadata.Distribution `." msgstr "" -"Se agregó :func:`importlib.metadata.packages_distributions` para resolver " -"módulos y paquetes de Python de nivel superior en su :class:`importlib." -"metadata.Distribution`." +"Se agregó :ref:`importlib.metadata.packages_distributions() ` para resolver módulos y paquetes de Python de nivel superior " +"en su :ref:`importlib.metadata.Distribution `." #: ../Doc/whatsnew/3.10.rst:1214 msgid "inspect" msgstr "inspeccionar" #: ../Doc/whatsnew/3.10.rst:1219 -#, fuzzy msgid "" "Add :func:`inspect.get_annotations`, which safely computes the annotations " "defined on an object. It works around the quirks of accessing the " "annotations on various types of objects, and makes very few assumptions " "about the object it examines. :func:`inspect.get_annotations` can also " -"correctly un-stringize stringized annotations. :func:`inspect." -"get_annotations` is now considered best practice for accessing the " -"annotations dict defined on any Python object; for more information on best " -"practices for working with annotations, please see :ref:`annotations-howto`. " -"Relatedly, :func:`inspect.signature`, :func:`inspect.Signature." -"from_callable`, and :func:`!inspect.Signature.from_function` now call :func:" -"`inspect.get_annotations` to retrieve annotations. This means :func:`inspect." -"signature` and :func:`inspect.Signature.from_callable` can also now un-" -"stringize stringized annotations. (Contributed by Larry Hastings in :issue:" -"`43817`.)" -msgstr "" -"Agregue :func:`inspect.get_annotations`, que calcula de manera segura las " -"anotaciones definidas en un objeto. Resuelve las peculiaridades de acceder a " -"las anotaciones en varios tipos de objetos y hace muy pocas suposiciones " +"correctly un-stringize stringized " +"annotations. :func:`inspect.get_annotations` is now considered best " +"practice for accessing the annotations dict defined on any Python object; " +"for more information on best practices for working with annotations, please " +"see :ref:`annotations-howto`. " +"Relatedly, :func:`inspect.signature`, :func:`inspect.Signature.from_callable`, " +"and :func:`!inspect.Signature.from_function` now " +"call :func:`inspect.get_annotations` to retrieve annotations. This " +"means :func:`inspect.signature` and :func:`inspect.Signature.from_callable` " +"can also now un-stringize stringized annotations. (Contributed by Larry " +"Hastings in :issue:`43817`.)" +msgstr "" +"Agregue :func:`inspect.get_annotations`, que calcula de forma segura las " +"anotaciones definidas en un objeto. Evita las peculiaridades de acceder a " +"las anotaciones de varios tipos de objetos y hace muy pocas suposiciones " "sobre el objeto que examina. :func:`inspect.get_annotations` también puede " -"eliminar correctamente las cadenas de anotaciones. :func:`inspect." -"get_annotations` ahora se considera la mejor práctica para acceder al " -"dictado de anotaciones definido en cualquier objeto de Python; Para obtener " -"más información sobre las mejores prácticas para trabajar con anotaciones, " -"consulte :ref:`annotations-howto`. De manera relacionada, :func:`inspect." -"signature`, :func:`inspect.Signature.from_callable` y :func:`inspect." -"Signature.from_function` ahora llaman a :func:`inspect.get_annotations` para " -"recuperar anotaciones. Esto significa que :func:`inspect.signature` y :func:" -"`inspect.Signature.from_callable` ahora también pueden anular cadenas de " -"anotaciones. (Contribuido por Larry Hastings en :issue:`43817`.)" +"eliminar correctamente las anotaciones en " +"cadena. :func:`inspect.get_annotations` ahora se considera la mejor " +"práctica para acceder al dictado de anotaciones definido en cualquier objeto " +"de Python; Para obtener más información sobre las mejores prácticas para " +"trabajar con anotaciones, consulte :ref:`annotations-howto`. De manera " +"relacionada, :func:`inspect.signature`, :func:`inspect.Signature.from_callable` " +"y :func:`!inspect.Signature.from_function` ahora llaman " +"a :func:`inspect.get_annotations` para recuperar anotaciones. Esto significa " +"que :func:`inspect.signature` y :func:`inspect.Signature.from_callable` " +"ahora también pueden eliminar las anotaciones en cadena. (Aportado por Larry " +"Hastings en :issue:`43817`.)" #: ../Doc/whatsnew/3.10.rst:1235 msgid "itertools" msgstr "itertools" #: ../Doc/whatsnew/3.10.rst:1237 -#, fuzzy msgid "" -"Add :func:`itertools.pairwise`. (Contributed by Raymond Hettinger in :issue:" -"`38200`.)" +"Add :func:`itertools.pairwise`. (Contributed by Raymond Hettinger " +"in :issue:`38200`.)" msgstr "" -"Añadir :func:`itertools.pairwise()`. (Contribución de Raymond Hettinger en :" -"issue:`38200`.)" +"Agregue :func:`itertools.pairwise`. (Aportado por Raymond Hettinger " +"en :issue:`38200`.)" #: ../Doc/whatsnew/3.10.rst:1241 msgid "linecache" @@ -2360,48 +2604,45 @@ msgid "os" msgstr "os" #: ../Doc/whatsnew/3.10.rst:1249 -#, fuzzy msgid "" "Add :func:`os.cpu_count` support for VxWorks RTOS. (Contributed by Peixing " "Xin in :issue:`41440`.)" msgstr "" -"Agregue soporte :func:`os.cpu_count()` para VxWorks RTOS. (Contribuido por " +"Agregue soporte :func:`os.cpu_count` para VxWorks RTOS. (Aportado por " "Peixing Xin en :issue:`41440`.)" #: ../Doc/whatsnew/3.10.rst:1252 msgid "" "Add a new function :func:`os.eventfd` and related helpers to wrap the " -"``eventfd2`` syscall on Linux. (Contributed by Christian Heimes in :issue:" -"`41001`.)" +"``eventfd2`` syscall on Linux. (Contributed by Christian Heimes " +"in :issue:`41001`.)" msgstr "" "Agregue una nueva función :func:`os.eventfd` y ayudantes relacionados para " "envolver el syscall ``eventfd2`` en Linux. (Contribuido por Christian Heimes " "en :issue:`41001`.)" #: ../Doc/whatsnew/3.10.rst:1256 -#, fuzzy msgid "" "Add :func:`os.splice` that allows to move data between two file descriptors " "without copying between kernel address space and user address space, where " "one of the file descriptors must refer to a pipe. (Contributed by Pablo " "Galindo in :issue:`41625`.)" msgstr "" -"Agregue :func:`os.splice()` que permite mover datos entre dos descriptores " -"de archivos sin copiar entre el espacio de direcciones del kernel y el " -"espacio de direcciones del usuario, donde uno de los descriptores de " -"archivos debe hacer referencia a una tubería. (Contribuido por Pablo Galindo " +"Agregue :func:`os.splice` que permite mover datos entre dos descriptores de " +"archivos sin copiar entre el espacio de direcciones del kernel y el espacio " +"de direcciones del usuario, donde uno de los descriptores de archivos debe " +"hacer referencia a una tubería. (Aportado por Pablo Galindo " "en :issue:`41625`.)" #: ../Doc/whatsnew/3.10.rst:1261 -#, fuzzy msgid "" "Add :const:`~os.O_EVTONLY`, :const:`~os.O_FSYNC`, :const:`~os.O_SYMLINK` " -"and :const:`~os.O_NOFOLLOW_ANY` for macOS. (Contributed by Donghee Na in :" -"issue:`43106`.)" +"and :const:`~os.O_NOFOLLOW_ANY` for macOS. (Contributed by Donghee Na " +"in :issue:`43106`.)" msgstr "" -"Agregue :data:`~os.O_EVTONLY`, :data:`~os.O_FSYNC`, :data:`~os.O_SYMLINK` y :" -"data:`~os.O_NOFOLLOW_ANY` para macOS. (Contribuido por Dong-hee Na en :issue:" -"`43106`.)" +"Agregue :const:`~os.O_EVTONLY`, :const:`~os.O_FSYNC`, :const:`~os.O_SYMLINK` " +"y :const:`~os.O_NOFOLLOW_ANY` para macOS. (Aportado por Donghee Na " +"en :issue:`43106`.)" #: ../Doc/whatsnew/3.10.rst:1266 msgid "os.path" @@ -2427,36 +2668,37 @@ msgid "" "Add slice support to :attr:`PurePath.parents `. " "(Contributed by Joshua Cannon in :issue:`35498`.)" msgstr "" -"Agregue soporte de división a :attr:`PurePath.parents `. (Aportado por Joshua Cannon en :issue:`35498`.)" +"Agregue soporte de división a :attr:`PurePath.parents " +"`. (Aportado por Joshua Cannon en :issue:`35498`.)" #: ../Doc/whatsnew/3.10.rst:1279 msgid "" -"Add negative indexing support to :attr:`PurePath.parents `. (Contributed by Yaroslav Pankovych in :issue:`21041`.)" +"Add negative indexing support to :attr:`PurePath.parents " +"`. (Contributed by Yaroslav Pankovych " +"in :issue:`21041`.)" msgstr "" -"Agregue soporte de indexación negativa a :attr:`PurePath.parents `. (Aportado por Yaroslav Pankovych en :issue:`21041`.)" +"Agregue soporte de indexación negativa a :attr:`PurePath.parents " +"`. (Aportado por Yaroslav Pankovych " +"en :issue:`21041`.)" #: ../Doc/whatsnew/3.10.rst:1283 -#, fuzzy msgid "" "Add :meth:`Path.hardlink_to ` method that " -"supersedes :meth:`!link_to`. The new method has the same argument order as :" -"meth:`~pathlib.Path.symlink_to`. (Contributed by Barney Gale in :issue:" -"`39950`.)" +"supersedes :meth:`!link_to`. The new method has the same argument order " +"as :meth:`~pathlib.Path.symlink_to`. (Contributed by Barney Gale " +"in :issue:`39950`.)" msgstr "" "Agregue el método :meth:`Path.hardlink_to ` que " -"reemplaza a :meth:`~pathlib.Path.link_to`. El nuevo método tiene el mismo " -"orden de argumentos que :meth:`~pathlib.Path.symlink_to`. (Contribuido por " -"Barney Gale en :issue:`39950`.)" +"reemplaza a :meth:`!link_to`. El nuevo método tiene el mismo orden de " +"argumentos que :meth:`~pathlib.Path.symlink_to`. (Aportado por Barney Gale " +"en :issue:`39950`.)" #: ../Doc/whatsnew/3.10.rst:1288 msgid "" ":meth:`pathlib.Path.stat` and :meth:`~pathlib.Path.chmod` now accept a " "*follow_symlinks* keyword-only argument for consistency with corresponding " -"functions in the :mod:`os` module. (Contributed by Barney Gale in :issue:" -"`39906`.)" +"functions in the :mod:`os` module. (Contributed by Barney Gale " +"in :issue:`39906`.)" msgstr "" ":meth:`pathlib.Path.stat` y :meth:`~pathlib.Path.chmod` ahora aceptan un " "argumento de solo palabra clave *follow_symlinks* para mantener la " @@ -2468,17 +2710,16 @@ msgid "platform" msgstr "plataforma" #: ../Doc/whatsnew/3.10.rst:1296 -#, fuzzy msgid "" "Add :func:`platform.freedesktop_os_release` to retrieve operation system " "identification from `freedesktop.org os-release `_ standard file. (Contributed by " "Christian Heimes in :issue:`28468`.)" msgstr "" -"Agregue :func:`platform.freedesktop_os_release()` para recuperar la " +"Agregue :func:`platform.freedesktop_os_release` para recuperar la " "identificación del sistema operativo del archivo estándar `freedesktop.org " -"os-release `_. (Aportado por Christian Heimes en :issue:`28468`.)" +"os-release `_. (Aportado por Christian Heimes en :issue:`28468`.)" #: ../Doc/whatsnew/3.10.rst:1302 msgid "pprint" @@ -2497,8 +2738,9 @@ msgid "" ":mod:`pprint` can now pretty-print :class:`dataclasses.dataclass` instances. " "(Contributed by Lewis Gaul in :issue:`43080`.)" msgstr "" -":mod:`pprint` ahora puede imprimir de forma bonita instancias de :class:" -"`dataclasses.dataclass`. (Contribuido por Lewis Gaul en :issue:`43080`.)" +":mod:`pprint` ahora puede imprimir de forma bonita instancias " +"de :class:`dataclasses.dataclass`. (Contribuido por Lewis Gaul " +"en :issue:`43080`.)" #: ../Doc/whatsnew/3.10.rst:1311 msgid "py_compile" @@ -2509,40 +2751,39 @@ msgid "" "Add ``--quiet`` option to command-line interface of :mod:`py_compile`. " "(Contributed by Gregory Schevchenko in :issue:`38731`.)" msgstr "" -"Agregue la opción ``--quiet`` a la interfaz de línea de comandos de :mod:" -"`py_compile`. (Contribuido por Gregory Schevchenko en :issue:`38731`.)" +"Agregue la opción ``--quiet`` a la interfaz de línea de comandos " +"de :mod:`py_compile`. (Contribuido por Gregory Schevchenko " +"en :issue:`38731`.)" #: ../Doc/whatsnew/3.10.rst:1317 msgid "pyclbr" msgstr "pyclbr" #: ../Doc/whatsnew/3.10.rst:1319 -#, fuzzy msgid "" "Add an ``end_lineno`` attribute to the ``Function`` and ``Class`` objects in " -"the tree returned by :func:`pyclbr.readmodule` and :func:`pyclbr." -"readmodule_ex`. It matches the existing (start) ``lineno``. (Contributed by " -"Aviral Srivastava in :issue:`38307`.)" +"the tree returned by :func:`pyclbr.readmodule` " +"and :func:`pyclbr.readmodule_ex`. It matches the existing (start) " +"``lineno``. (Contributed by Aviral Srivastava in :issue:`38307`.)" msgstr "" "Agregue un atributo ``end_lineno`` a los objetos ``Function`` y ``Class`` en " -"el árbol devuelto por :func:`pyclbr.readline` y :func:`pyclbr.readline_ex`. " -"Coincide con el ``lineno`` existente (inicio). (Contribuido por Aviral " -"Srivastava en :issue:`38307`.)" +"el árbol devuelto por :func:`pyclbr.readmodule` " +"y :func:`pyclbr.readmodule_ex`. Coincide con el ``lineno`` existente " +"(inicio). (Aportado por Aviral Srivastava en :issue:`38307`.)" #: ../Doc/whatsnew/3.10.rst:1325 msgid "shelve" msgstr "dejar de lado" #: ../Doc/whatsnew/3.10.rst:1327 -#, fuzzy msgid "" "The :mod:`shelve` module now uses :const:`pickle.DEFAULT_PROTOCOL` by " "default instead of :mod:`pickle` protocol ``3`` when creating shelves. " "(Contributed by Zackery Spytz in :issue:`34204`.)" msgstr "" -"El módulo :mod:`shelve` ahora usa :data:`pickle.DEFAULT_PROTOCOL` por " -"defecto en lugar del protocolo :mod:`pickle` ``3`` al crear estantes. " -"(Contribuido por Zackery Spytz en :issue:`34204`.)" +"El módulo :mod:`shelve` ahora usa :const:`pickle.DEFAULT_PROTOCOL` de forma " +"predeterminada en lugar del protocolo :mod:`pickle` ``3`` al crear estantes. " +"(Aportado por Zackery Spytz en :issue:`34204`.)" #: ../Doc/whatsnew/3.10.rst:1332 msgid "statistics" @@ -2550,13 +2791,15 @@ msgstr "Estadísticas" #: ../Doc/whatsnew/3.10.rst:1334 msgid "" -"Add :func:`~statistics.covariance`, Pearson's :func:`~statistics." -"correlation`, and simple :func:`~statistics.linear_regression` functions. " -"(Contributed by Tymoteusz Wołodźko in :issue:`38490`.)" +"Add :func:`~statistics.covariance`, " +"Pearson's :func:`~statistics.correlation`, and " +"simple :func:`~statistics.linear_regression` functions. (Contributed by " +"Tymoteusz Wołodźko in :issue:`38490`.)" msgstr "" -"Agregue las funciones :func:`~statistics.covariance`, :func:`~statistics." -"correlation` de Pearson y :func:`~statistics.linear_regression` simple. " -"(Contribuido por Tymoteusz Wołodźko en :issue:`38490`.)" +"Agregue las " +"funciones :func:`~statistics.covariance`, :func:`~statistics.correlation` de " +"Pearson y :func:`~statistics.linear_regression` simple. (Contribuido por " +"Tymoteusz Wołodźko en :issue:`38490`.)" #: ../Doc/whatsnew/3.10.rst:1340 msgid "site" @@ -2603,26 +2846,27 @@ msgstr "" "Christian Heimes en :pep:`644` y :issue:`43669`.)" #: ../Doc/whatsnew/3.10.rst:1363 -#, fuzzy msgid "" -"The ssl module has preliminary support for OpenSSL 3.0.0 and new option :" -"const:`~ssl.OP_IGNORE_UNEXPECTED_EOF`. (Contributed by Christian Heimes in :" -"issue:`38820`, :issue:`43794`, :issue:`43788`, :issue:`43791`, :issue:" -"`43799`, :issue:`43920`, :issue:`43789`, and :issue:`43811`.)" +"The ssl module has preliminary support for OpenSSL 3.0.0 and new " +"option :const:`~ssl.OP_IGNORE_UNEXPECTED_EOF`. (Contributed by Christian " +"Heimes " +"in :issue:`38820`, :issue:`43794`, :issue:`43788`, :issue:`43791`, :issue:`43799`, :issue:`43920`, :issue:`43789`, " +"and :issue:`43811`.)" msgstr "" -"El módulo ssl tiene soporte preliminar para OpenSSL 3.0.0 y la nueva opción :" -"data:`~ssl.OP_IGNORE_UNEXPECTED_EOF`. (Contribuido por Christian Heimes en :" -"issue:`38820`, :issue:`43794`, :issue:`43788`, :issue:`43791`, :issue:" -"`43799`, :issue:`43920`, :issue:`43789` y :issue:`43811`.)" +"El módulo SSL tiene soporte preliminar para OpenSSL 3.0.0 y la nueva " +"opción :const:`~ssl.OP_IGNORE_UNEXPECTED_EOF`. (Aportado por Christian " +"Heimes " +"en :issue:`38820`, :issue:`43794`, :issue:`43788`, :issue:`43791`, :issue:`43799`, :issue:`43920`, :issue:`43789` " +"y :issue:`43811`)." #: ../Doc/whatsnew/3.10.rst:1369 msgid "" -"Deprecated function and use of deprecated constants now result in a :exc:" -"`DeprecationWarning`. :attr:`ssl.SSLContext.options` has :data:`~ssl." -"OP_NO_SSLv2` and :data:`~ssl.OP_NO_SSLv3` set by default and therefore " -"cannot warn about setting the flag again. The :ref:`deprecation section " -"` has a list of deprecated features. (Contributed by " -"Christian Heimes in :issue:`43880`.)" +"Deprecated function and use of deprecated constants now result in " +"a :exc:`DeprecationWarning`. :attr:`ssl.SSLContext.options` " +"has :data:`~ssl.OP_NO_SSLv2` and :data:`~ssl.OP_NO_SSLv3` set by default and " +"therefore cannot warn about setting the flag again. The :ref:`deprecation " +"section ` has a list of deprecated features. " +"(Contributed by Christian Heimes in :issue:`43880`.)" msgstr "" "La función obsoleta y el uso de constantes obsoletas ahora dan como " "resultado un :exc:`DeprecationWarning`. :attr:`ssl.SSLContext.options` " @@ -2636,18 +2880,18 @@ msgstr "" msgid "" "The ssl module now has more secure default settings. Ciphers without forward " "secrecy or SHA-1 MAC are disabled by default. Security level 2 prohibits " -"weak RSA, DH, and ECC keys with less than 112 bits of security. :class:`~ssl." -"SSLContext` defaults to minimum protocol version TLS 1.2. Settings are based " -"on Hynek Schlawack's research. (Contributed by Christian Heimes in :issue:" -"`43998`.)" +"weak RSA, DH, and ECC keys with less than 112 bits of " +"security. :class:`~ssl.SSLContext` defaults to minimum protocol version TLS " +"1.2. Settings are based on Hynek Schlawack's research. (Contributed by " +"Christian Heimes in :issue:`43998`.)" msgstr "" "El módulo ssl ahora tiene una configuración predeterminada más segura. Los " "cifrados sin confidencialidad directa o SHA-1 MAC están deshabilitados de " "forma predeterminada. El nivel de seguridad 2 prohíbe claves RSA, DH y ECC " "débiles con menos de 112 bits de seguridad. :class:`~ssl.SSLContext` tiene " "por defecto la versión mínima del protocolo TLS 1.2. Los ajustes se basan en " -"la investigación de Hynek Schlawack. (Contribuido por Christian Heimes en :" -"issue:`43998`.)" +"la investigación de Hynek Schlawack. (Contribuido por Christian Heimes " +"en :issue:`43998`.)" #: ../Doc/whatsnew/3.10.rst:1384 msgid "" @@ -2667,8 +2911,9 @@ msgid "" "Add a *timeout* parameter to the :func:`ssl.get_server_certificate` " "function. (Contributed by Zackery Spytz in :issue:`31870`.)" msgstr "" -"Agregue un parámetro *timeout* a la función :func:`ssl." -"get_server_certificate`. (Contribuido por Zackery Spytz en :issue:`31870`.)" +"Agregue un parámetro *timeout* a la " +"función :func:`ssl.get_server_certificate`. (Contribuido por Zackery Spytz " +"en :issue:`31870`.)" #: ../Doc/whatsnew/3.10.rst:1392 msgid "" @@ -2679,28 +2924,29 @@ msgstr "" "por Christian Heimes en :issue:`42333`.)" #: ../Doc/whatsnew/3.10.rst:1395 -#, fuzzy msgid "" "A new verify flag :const:`~ssl.VERIFY_X509_PARTIAL_CHAIN` has been added. " "(Contributed by l0x in :issue:`40849`.)" msgstr "" -"Se ha agregado un nuevo indicador de verificación :data:`~ssl." -"VERIFY_X509_PARTIAL_CHAIN`. (Contribuido por l0x en :issue:`40849`.)" +"Se agregó una nueva bandera de " +"verificación :const:`~ssl.VERIFY_X509_PARTIAL_CHAIN`. (Aportado por l0x " +"en :issue:`40849`.)" #: ../Doc/whatsnew/3.10.rst:1399 msgid "sqlite3" msgstr "sqlite3" #: ../Doc/whatsnew/3.10.rst:1401 -#, fuzzy msgid "" -"Add audit events for :func:`~sqlite3.connect`, :meth:`~sqlite3.Connection." -"enable_load_extension`, and :meth:`~sqlite3.Connection.load_extension`. " -"(Contributed by Erlend E. Aasland in :issue:`43762`.)" +"Add audit events " +"for :func:`~sqlite3.connect`, :meth:`~sqlite3.Connection.enable_load_extension`, " +"and :meth:`~sqlite3.Connection.load_extension`. (Contributed by Erlend E. " +"Aasland in :issue:`43762`.)" msgstr "" -"Agregue eventos de auditoría para :func:`~sqlite3.connect/handle`, :meth:" -"`~sqlite3.Connection.enable_load_extension` y :meth:`~sqlite3.Connection." -"load_extension`. (Contribuido por Erlend E. Aasland en :issue:`43762`.)" +"Agregue eventos de auditoría " +"para :func:`~sqlite3.connect`, :meth:`~sqlite3.Connection.enable_load_extension` " +"y :meth:`~sqlite3.Connection.load_extension`. (Aportado por Erlend E. " +"Aasland en :issue:`43762`.)" #: ../Doc/whatsnew/3.10.rst:1407 msgid "sys" @@ -2722,23 +2968,22 @@ msgid "" "library module names. (Contributed by Victor Stinner in :issue:`42955`.)" msgstr "" "Agregue :data:`sys.stdlib_module_names`, que contiene la lista de nombres de " -"módulos de biblioteca estándar. (Contribuido por Victor Stinner en :issue:" -"`42955`.)" +"módulos de biblioteca estándar. (Contribuido por Victor Stinner " +"en :issue:`42955`.)" #: ../Doc/whatsnew/3.10.rst:1418 msgid "_thread" msgstr "_hilo" #: ../Doc/whatsnew/3.10.rst:1420 -#, fuzzy msgid "" ":func:`_thread.interrupt_main` now takes an optional signal number to " "simulate (the default is still :const:`signal.SIGINT`). (Contributed by " "Antoine Pitrou in :issue:`43356`.)" msgstr "" ":func:`_thread.interrupt_main` ahora toma un número de señal opcional para " -"simular (el predeterminado sigue siendo :data:`signal.SIGINT`). (Contribuido " -"por Antoine Pitrou en :issue:`43356`.)" +"simular (el valor predeterminado sigue siendo :const:`signal.SIGINT`). " +"(Aportado por Antoine Pitrou en :issue:`43356`.)" #: ../Doc/whatsnew/3.10.rst:1425 msgid "threading" @@ -2747,13 +2992,14 @@ msgstr "enhebrar" #: ../Doc/whatsnew/3.10.rst:1427 msgid "" "Add :func:`threading.gettrace` and :func:`threading.getprofile` to retrieve " -"the functions set by :func:`threading.settrace` and :func:`threading." -"setprofile` respectively. (Contributed by Mario Corchero in :issue:`42251`.)" +"the functions set by :func:`threading.settrace` " +"and :func:`threading.setprofile` respectively. (Contributed by Mario " +"Corchero in :issue:`42251`.)" msgstr "" "Agregue :func:`threading.gettrace` y :func:`threading.getprofile` para " -"recuperar las funciones establecidas por :func:`threading.settrace` y :func:" -"`threading.setprofile` respectivamente. (Contribuido por Mario Corchero en :" -"issue:`42251`.)" +"recuperar las funciones establecidas por :func:`threading.settrace` " +"y :func:`threading.setprofile` respectivamente. (Contribuido por Mario " +"Corchero en :issue:`42251`.)" #: ../Doc/whatsnew/3.10.rst:1432 msgid "" @@ -2763,8 +3009,8 @@ msgid "" msgstr "" "Agregue :data:`threading.__excepthook__` para permitir recuperar el valor " "original de :func:`threading.excepthook` en caso de que esté configurado en " -"un valor roto o diferente. (Contribuido por Mario Corchero en :issue:" -"`42308`.)" +"un valor roto o diferente. (Contribuido por Mario Corchero " +"en :issue:`42308`.)" #: ../Doc/whatsnew/3.10.rst:1438 msgid "traceback" @@ -2772,15 +3018,16 @@ msgstr "rastrear" #: ../Doc/whatsnew/3.10.rst:1440 msgid "" -"The :func:`~traceback.format_exception`, :func:`~traceback." -"format_exception_only`, and :func:`~traceback.print_exception` functions can " -"now take an exception object as a positional-only argument. (Contributed by " -"Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" +"The :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, " +"and :func:`~traceback.print_exception` functions can now take an exception " +"object as a positional-only argument. (Contributed by Zackery Spytz and " +"Matthias Bussonnier in :issue:`26389`.)" msgstr "" -"Las funciones :func:`~traceback.format_exception`, :func:`~traceback." -"format_exception_only` y :func:`~traceback.print_exception` ahora pueden " -"tomar un objeto de excepción como un argumento solo posicional. (Contribuido " -"por Zackery Spytz y Matthias Bussonnier en :issue:`26389`.)" +"Las " +"funciones :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only` " +"y :func:`~traceback.print_exception` ahora pueden tomar un objeto de " +"excepción como un argumento solo posicional. (Contribuido por Zackery Spytz " +"y Matthias Bussonnier en :issue:`26389`.)" #: ../Doc/whatsnew/3.10.rst:1447 msgid "types" @@ -2788,10 +3035,10 @@ msgstr "tipos" #: ../Doc/whatsnew/3.10.rst:1449 msgid "" -"Reintroduce the :data:`types.EllipsisType`, :data:`types.NoneType` and :data:" -"`types.NotImplementedType` classes, providing a new set of types readily " -"interpretable by type checkers. (Contributed by Bas van Beek in :issue:" -"`41810`.)" +"Reintroduce the :data:`types.EllipsisType`, :data:`types.NoneType` " +"and :data:`types.NotImplementedType` classes, providing a new set of types " +"readily interpretable by type checkers. (Contributed by Bas van Beek " +"in :issue:`41810`.)" msgstr "" "Reintroduzca las clases :data:`types.EllipsisType`, :data:`types.NoneType` " "y :data:`types.NotImplementedType`, proporcionando un nuevo conjunto de " @@ -2810,12 +3057,13 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:1459 msgid "" -"The behavior of :class:`typing.Literal` was changed to conform with :pep:" -"`586` and to match the behavior of static type checkers specified in the PEP." +"The behavior of :class:`typing.Literal` was changed to conform " +"with :pep:`586` and to match the behavior of static type checkers specified " +"in the PEP." msgstr "" -"El comportamiento de :class:`typing.Literal` se modificó para cumplir con :" -"pep:`586` y para coincidir con el comportamiento de los verificadores de " -"tipo estático especificados en el PEP." +"El comportamiento de :class:`typing.Literal` se modificó para cumplir " +"con :pep:`586` y para coincidir con el comportamiento de los verificadores " +"de tipo estático especificados en el PEP." #: ../Doc/whatsnew/3.10.rst:1462 msgid "``Literal`` now de-duplicates parameters." @@ -2848,9 +3096,9 @@ msgid "" "error::" msgstr "" "Los objetos ``Literal`` ahora generarán una excepción :exc:`TypeError` " -"durante las comparaciones de igualdad si alguno de sus parámetros no es :" -"term:`hashable`. Tenga en cuenta que declarar ``Literal`` con parámetros que " -"no se pueden aplicar hash no arrojará un error:" +"durante las comparaciones de igualdad si alguno de sus parámetros no " +"es :term:`hashable`. Tenga en cuenta que declarar ``Literal`` con parámetros " +"que no se pueden aplicar hash no arrojará un error:" #: ../Doc/whatsnew/3.10.rst:1473 #, python-brace-format @@ -2862,6 +3110,12 @@ msgid "" " File \"\", line 1, in \n" "TypeError: unhashable type: 'set'" msgstr "" +">>> escribiendo importar Literal\n" +">>> Literal[{0}]\n" +">>> Literal[{0}] == Literal[{Falso}]\n" +"Rastreo (última llamada más reciente):\n" +" Archivo \"\", línea 1, en \n" +"TypeError: tipo no comparable: 'establecer'" #: ../Doc/whatsnew/3.10.rst:1480 msgid "(Contributed by Yurii Karabas in :issue:`42345`.)" @@ -2870,35 +3124,34 @@ msgstr "(Contribuido por Yurii Karabas en :issue:`42345`.)" #: ../Doc/whatsnew/3.10.rst:1482 msgid "" "Add new function :func:`typing.is_typeddict` to introspect if an annotation " -"is a :class:`typing.TypedDict`. (Contributed by Patrick Reader in :issue:" -"`41792`.)" +"is a :class:`typing.TypedDict`. (Contributed by Patrick Reader " +"in :issue:`41792`.)" msgstr "" "Agregue la nueva función :func:`typing.is_typeddict` a la introspección si " "una anotación es :class:`typing.TypedDict`. (Contribuido por Patrick Reader " "en :issue:`41792`.)" #: ../Doc/whatsnew/3.10.rst:1486 -#, fuzzy msgid "" "Subclasses of ``typing.Protocol`` which only have data variables declared " "will now raise a ``TypeError`` when checked with ``isinstance`` unless they " "are decorated with :func:`~typing.runtime_checkable`. Previously, these " -"checks passed silently. Users should decorate their subclasses with the :" -"func:`!runtime_checkable` decorator if they want runtime protocols. " +"checks passed silently. Users should decorate their subclasses with " +"the :func:`!runtime_checkable` decorator if they want runtime protocols. " "(Contributed by Yurii Karabas in :issue:`38908`.)" msgstr "" "Las subclases de ``typing.Protocol`` que solo tienen variables de datos " "declaradas ahora generarán un ``TypeError`` cuando se verifiquen con " -"``isinstance`` a menos que estén decoradas con :func:`runtime_checkable`. " -"Anteriormente, estos controles pasaban en silencio. Los usuarios deben " -"decorar sus subclases con el decorador :func:`runtime_checkable` si quieren " -"protocolos de tiempo de ejecución. (Aportado por Yurii Karabas en :issue:" -"`38908`.)" +"``isinstance`` a menos que estén decoradas " +"con :func:`~typing.runtime_checkable`. Anteriormente, estos controles se " +"realizaban en silencio. Los usuarios deben decorar sus subclases con el " +"decorador :func:`!runtime_checkable` si quieren protocolos de tiempo de " +"ejecución. (Aportado por Yurii Karabas en :issue:`38908`.)" #: ../Doc/whatsnew/3.10.rst:1494 msgid "" -"Importing from the ``typing.io`` and ``typing.re`` submodules will now emit :" -"exc:`DeprecationWarning`. These submodules have been deprecated since " +"Importing from the ``typing.io`` and ``typing.re`` submodules will now " +"emit :exc:`DeprecationWarning`. These submodules have been deprecated since " "Python 3.8 and will be removed in a future version of Python. Anything " "belonging to those submodules should be imported directly from :mod:`typing` " "instead. (Contributed by Sebastian Rittau in :issue:`38291`.)" @@ -2906,8 +3159,8 @@ msgstr "" "La importación desde los submódulos ``typing.io`` y ``typing.re`` ahora " "emitirá :exc:`DeprecationWarning`. Estos submódulos quedaron obsoletos desde " "Python 3.8 y se eliminarán en una versión futura de Python. Todo lo que " -"pertenezca a esos submódulos debe importarse directamente desde :mod:" -"`typing`. (Aportado por Sebastian Rittau en :issue:`38291`.)" +"pertenezca a esos submódulos debe importarse directamente " +"desde :mod:`typing`. (Aportado por Sebastian Rittau en :issue:`38291`.)" #: ../Doc/whatsnew/3.10.rst:1502 msgid "unittest" @@ -2928,37 +3181,45 @@ msgid "urllib.parse" msgstr "urllib.parse" #: ../Doc/whatsnew/3.10.rst:1511 -#, fuzzy msgid "" "Python versions earlier than Python 3.10 allowed using both ``;`` and ``&`` " -"as query parameter separators in :func:`urllib.parse.parse_qs` and :func:" -"`urllib.parse.parse_qsl`. Due to security concerns, and to conform with " -"newer W3C recommendations, this has been changed to allow only a single " -"separator key, with ``&`` as the default. This change also affects :func:`!" -"cgi.parse` and :func:`!cgi.parse_multipart` as they use the affected " -"functions internally. For more details, please see their respective " -"documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin " -"in :issue:`42967`.)" -msgstr "" -"Las versiones de Python anteriores a Python 3.10 permitían el uso de ``;`` y " -"``&`` como separadores de parámetros de consulta en :func:`urllib.parse." -"parse_qs` y :func:`urllib.parse.parse_qsl`. Debido a problemas de seguridad " -"y para cumplir con las recomendaciones más recientes del W3C, esto se ha " -"cambiado para permitir solo una clave separadora, con ``&`` como " -"predeterminado. Este cambio también afecta a :func:`cgi.parse` y :func:`cgi." -"parse_multipart` ya que utilizan las funciones afectadas internamente. Para " -"obtener más detalles, consulte su documentación respectiva. (Contribuido por " -"Adam Goldschmidt, Senthil Kumaran y Ken Jin en :issue:`42967`.)" +"as query parameter separators in :func:`urllib.parse.parse_qs` " +"and :func:`urllib.parse.parse_qsl`. Due to security concerns, and to " +"conform with newer W3C recommendations, this has been changed to allow only " +"a single separator key, with ``&`` as the default. This change also " +"affects :func:`!cgi.parse` and :func:`!cgi.parse_multipart` as they use the " +"affected functions internally. For more details, please see their " +"respective documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran " +"and Ken Jin in :issue:`42967`.)" +msgstr "" +"Las versiones de Python anteriores a Python 3.10 permitían usar ``;`` y " +"``&`` como separadores de parámetros de consulta " +"en :func:`urllib.parse.parse_qs` y :func:`urllib.parse.parse_qsl`. Debido a " +"preocupaciones de seguridad y para cumplir con las recomendaciones más " +"recientes del W3C, esto se ha cambiado para permitir solo una única clave " +"separadora, con ``&`` como valor predeterminado. Este cambio también afecta " +"a :func:`!cgi.parse` y :func:`!cgi.parse_multipart` ya que utilizan las " +"funciones afectadas internamente. Para obtener más detalles, consulte su " +"documentación respectiva. (Contribución de Adam Goldschmidt, Senthil Kumaran " +"y Ken Jin en :issue:`42967`)." #: ../Doc/whatsnew/3.10.rst:1521 msgid "" "The presence of newline or tab characters in parts of a URL allows for some " -"forms of attacks. Following the WHATWG specification that updates :rfc:" -"`3986`, ASCII newline ``\\n``, ``\\r`` and tab ``\\t`` characters are " -"stripped from the URL by the parser in :mod:`urllib.parse` preventing such " -"attacks. The removal characters are controlled by a new module level " -"variable ``urllib.parse._UNSAFE_URL_BYTES_TO_REMOVE``. (See :gh:`88048`)" -msgstr "" +"forms of attacks. Following the WHATWG specification that " +"updates :rfc:`3986`, ASCII newline ``\\n``, ``\\r`` and tab ``\\t`` " +"characters are stripped from the URL by the parser in :mod:`urllib.parse` " +"preventing such attacks. The removal characters are controlled by a new " +"module level variable ``urllib.parse._UNSAFE_URL_BYTES_TO_REMOVE``. " +"(See :gh:`88048`)" +msgstr "" +"La presencia de caracteres de nueva línea o tabulación en partes de una URL " +"permite algunas formas de ataques. Siguiendo la especificación WHATWG que " +"actualiza :rfc:`3986`, el analizador en :mod:`urllib.parse` elimina de la " +"URL los caracteres de nueva línea ASCII ``\\n``, ``\\r`` y tab ``\\t`` para " +"evitar tales ataques. Los caracteres de eliminación están controlados por " +"una nueva variable de nivel de módulo " +"``urllib.parse._UNSAFE_URL_BYTES_TO_REMOVE``. (Ver :gh:`88048`)" #: ../Doc/whatsnew/3.10.rst:1529 msgid "xml" @@ -2966,13 +3227,13 @@ msgstr "xml" #: ../Doc/whatsnew/3.10.rst:1531 msgid "" -"Add a :class:`~xml.sax.handler.LexicalHandler` class to the :mod:`xml.sax." -"handler` module. (Contributed by Jonathan Gossage and Zackery Spytz in :" -"issue:`35018`.)" +"Add a :class:`~xml.sax.handler.LexicalHandler` class to " +"the :mod:`xml.sax.handler` module. (Contributed by Jonathan Gossage and " +"Zackery Spytz in :issue:`35018`.)" msgstr "" -"Agregue una clase :class:`~xml.sax.handler.LexicalHandler` al módulo :mod:" -"`xml.sax.handler`. (Contribuido por Jonathan Gossage y Zackery Spytz en :" -"issue:`35018`.)" +"Agregue una clase :class:`~xml.sax.handler.LexicalHandler` al " +"módulo :mod:`xml.sax.handler`. (Contribuido por Jonathan Gossage y Zackery " +"Spytz en :issue:`35018`.)" #: ../Doc/whatsnew/3.10.rst:1536 msgid "zipimport" @@ -2980,14 +3241,15 @@ msgstr "zipimport" #: ../Doc/whatsnew/3.10.rst:1537 msgid "" -"Add methods related to :pep:`451`: :meth:`~zipimport.zipimporter." -"find_spec`, :meth:`zipimport.zipimporter.create_module`, and :meth:" -"`zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon in :issue:" -"`42131`.)" +"Add methods related " +"to :pep:`451`: :meth:`~zipimport.zipimporter.find_spec`, :meth:`zipimport.zipimporter.create_module`, " +"and :meth:`zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon " +"in :issue:`42131`.)" msgstr "" -"Agregue métodos relacionados con :pep:`451`: :meth:`~zipimport.zipimporter." -"find_spec`, :meth:`zipimport.zipimporter.create_module` y :meth:`zipimport." -"zipimporter.exec_module`. (Contribuido por Brett Cannon en :issue:`42131`.)" +"Agregue métodos relacionados " +"con :pep:`451`: :meth:`~zipimport.zipimporter.find_spec`, :meth:`zipimport.zipimporter.create_module` " +"y :meth:`zipimport.zipimporter.exec_module`. (Contribuido por Brett Cannon " +"en :issue:`42131`.)" #: ../Doc/whatsnew/3.10.rst:1542 msgid "" @@ -3005,8 +3267,8 @@ msgstr "Optimizaciones" #, python-format msgid "" "Constructors :func:`str`, :func:`bytes` and :func:`bytearray` are now faster " -"(around 30--40% for small objects). (Contributed by Serhiy Storchaka in :" -"issue:`41334`.)" +"(around 30--40% for small objects). (Contributed by Serhiy Storchaka " +"in :issue:`41334`.)" msgstr "" "Los constructores :func:`str`, :func:`bytes` y :func:`bytearray` ahora son " "más rápidos (alrededor del 30-40% para objetos pequeños). (Contribuido por " @@ -3015,10 +3277,10 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:1553 msgid "" "The :mod:`runpy` module now imports fewer modules. The ``python3 -m module-" -"name`` command startup time is 1.4x faster in average. On Linux, ``python3 -" -"I -m module-name`` imports 69 modules on Python 3.9, whereas it only imports " -"51 modules (-18) on Python 3.10. (Contributed by Victor Stinner in :issue:" -"`41006` and :issue:`41718`.)" +"name`` command startup time is 1.4x faster in average. On Linux, ``python3 " +"-I -m module-name`` imports 69 modules on Python 3.9, whereas it only " +"imports 51 modules (-18) on Python 3.10. (Contributed by Victor Stinner " +"in :issue:`41006` and :issue:`41718`.)" msgstr "" "El módulo :mod:`runpy` ahora importa menos módulos. El tiempo de inicio del " "comando ``python3 -m module-name`` es 1,4 veces más rápido en promedio. En " @@ -3038,8 +3300,8 @@ msgstr "" "La instrucción ``LOAD_ATTR`` ahora usa un nuevo mecanismo \"por caché de " "código de operación\". Es aproximadamente un 36% más rápido ahora para los " "atributos regulares y un 44% más rápido para las tragamonedas. (Contribuido " -"por Pablo Galindo y Yury Selivanov en :issue:`42093` y Guido van Rossum en :" -"issue:`42927`, basado en ideas implementadas originalmente en PyPy y " +"por Pablo Galindo y Yury Selivanov en :issue:`42093` y Guido van Rossum " +"en :issue:`42927`, basado en ideas implementadas originalmente en PyPy y " "MicroPython)." #: ../Doc/whatsnew/3.10.rst:1565 @@ -3047,10 +3309,10 @@ msgid "" "When building Python with :option:`--enable-optimizations` now ``-fno-" "semantic-interposition`` is added to both the compile and link line. This " "speeds builds of the Python interpreter created with :option:`--enable-" -"shared` with ``gcc`` by up to 30%. See `this article `_ for more details. (Contributed by Victor Stinner " -"and Pablo Galindo in :issue:`38980`.)" +"shared` with ``gcc`` by up to 30%. See `this article `_ for more details. (Contributed by Victor " +"Stinner and Pablo Galindo in :issue:`38980`.)" msgstr "" "Al compilar Python con :option:`--enable-optimizations`, ahora ``-fno-" "semantic-interposition`` se agrega tanto a la línea de compilación como a la " @@ -3062,19 +3324,20 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:1573 msgid "" -"Use a new output buffer management code for :mod:`bz2` / :mod:`lzma` / :mod:" -"`zlib` modules, and add ``.readall()`` function to ``_compression." -"DecompressReader`` class. bz2 decompression is now 1.09x ~ 1.17x faster, " -"lzma decompression 1.20x ~ 1.32x faster, ``GzipFile.read(-1)`` 1.11x ~ 1.18x " -"faster. (Contributed by Ma Lin, reviewed by Gregory P. Smith, in :issue:" -"`41486`)" -msgstr "" -"Utilice un nuevo código de gestión del búfer de salida para los módulos :mod:" -"`bz2` / :mod:`lzma` / :mod:`zlib` y agregue la función ``.readall()`` a la " -"clase ``_compression.DecompressReader``. La descompresión de bz2 ahora es " -"1.09x ~ 1.17x más rápida, la descompresión de lzma 1.20x ~ 1.32x más rápida, " -"``GzipFile.read(-1)`` 1.11x ~ 1.18x más rápida. (Contribuido por Ma Lin, " -"revisado por Gregory P. Smith, en :issue:`41486`)" +"Use a new output buffer management code " +"for :mod:`bz2` / :mod:`lzma` / :mod:`zlib` modules, and add ``.readall()`` " +"function to ``_compression.DecompressReader`` class. bz2 decompression is " +"now 1.09x ~ 1.17x faster, lzma decompression 1.20x ~ 1.32x faster, " +"``GzipFile.read(-1)`` 1.11x ~ 1.18x faster. (Contributed by Ma Lin, reviewed " +"by Gregory P. Smith, in :issue:`41486`)" +msgstr "" +"Utilice un nuevo código de gestión del búfer de salida para los " +"módulos :mod:`bz2` / :mod:`lzma` / :mod:`zlib` y agregue la función " +"``.readall()`` a la clase ``_compression.DecompressReader``. La " +"descompresión de bz2 ahora es 1.09x ~ 1.17x más rápida, la descompresión de " +"lzma 1.20x ~ 1.32x más rápida, ``GzipFile.read(-1)`` 1.11x ~ 1.18x más " +"rápida. (Contribuido por Ma Lin, revisado por Gregory P. Smith, " +"en :issue:`41486`)" #: ../Doc/whatsnew/3.10.rst:1579 msgid "" @@ -3099,18 +3362,18 @@ msgid "" "algorithm to avoid quadratic behavior on long strings. (Contributed by " "Dennis Sweeney in :issue:`41972`)" msgstr "" -"Las funciones de búsqueda de subcadenas como ``str1 in str2`` y ``str2." -"find(str1)`` ahora utilizan a veces el algoritmo de búsqueda de cadenas " -"\"bidireccional\" de Crochemore & Perrin para evitar el comportamiento " -"cuadrático en cadenas largas. (Contribuido por Dennis Sweeney en :issue:" -"`41972`)" +"Las funciones de búsqueda de subcadenas como ``str1 in str2`` y " +"``str2.find(str1)`` ahora utilizan a veces el algoritmo de búsqueda de " +"cadenas \"bidireccional\" de Crochemore & Perrin para evitar el " +"comportamiento cuadrático en cadenas largas. (Contribuido por Dennis Sweeney " +"en :issue:`41972`)" #: ../Doc/whatsnew/3.10.rst:1591 msgid "" "Add micro-optimizations to ``_PyType_Lookup()`` to improve type attribute " "cache lookup performance in the common case of cache hits. This makes the " -"interpreter 1.04 times faster on average. (Contributed by Dino Viehland in :" -"issue:`43452`.)" +"interpreter 1.04 times faster on average. (Contributed by Dino Viehland " +"in :issue:`43452`.)" msgstr "" "Agregue microoptimizaciones a ``_PyType_Lookup()`` para mejorar el " "rendimiento de búsqueda de caché de atributos de tipo en el caso común de " @@ -3118,22 +3381,22 @@ msgstr "" "rápido de media. (Aportado por Dino Viehland en :issue:`43452`.)" #: ../Doc/whatsnew/3.10.rst:1595 -#, fuzzy msgid "" "The following built-in functions now support the faster :pep:`590` " -"vectorcall calling convention: :func:`map`, :func:`filter`, :func:" -"`reversed`, :func:`bool` and :func:`float`. (Contributed by Donghee Na and " -"Jeroen Demeyer in :issue:`43575`, :issue:`43287`, :issue:`41922`, :issue:" -"`41873` and :issue:`41870`.)" -msgstr "" -"Las siguientes funciones integradas ahora son compatibles con la convención " -"de llamada de llamada vectorial :pep:`590` más rápida: :func:`map`, :func:" -"`filter`, :func:`reversed`, :func:`bool` y :func:`float`. (Aportado por Dong-" -"hee Na y Jeroen Demeyer en :issue:`43575`, :issue:`43287`, :issue:`41922`, :" -"issue:`41873` y :issue:`41870`)." +"vectorcall calling " +"convention: :func:`map`, :func:`filter`, :func:`reversed`, :func:`bool` " +"and :func:`float`. (Contributed by Donghee Na and Jeroen Demeyer " +"in :issue:`43575`, :issue:`43287`, :issue:`41922`, :issue:`41873` " +"and :issue:`41870`.)" +msgstr "" +"Las siguientes funciones integradas ahora admiten la convención de llamada " +"de vectorcall :pep:`590` más " +"rápida: :func:`map`, :func:`filter`, :func:`reversed`, :func:`bool` " +"y :func:`float`. (Aportado por Donghee Na y Jeroen Demeyer " +"en :issue:`43575`, :issue:`43287`, :issue:`41922`, :issue:`41873` " +"y :issue:`41870`.)" #: ../Doc/whatsnew/3.10.rst:1599 -#, fuzzy msgid "" ":class:`~bz2.BZ2File` performance is improved by removing internal " "``RLock``. This makes :class:`!BZ2File` thread unsafe in the face of " @@ -3141,11 +3404,11 @@ msgid "" "in :mod:`gzip` and :mod:`lzma` have always been. (Contributed by Inada " "Naoki in :issue:`43785`.)" msgstr "" -"El rendimiento de :class:`BZ2File` se mejora al eliminar el ``RLock`` " -"interno. Esto hace que el subproceso :class:`BZ2File` no sea seguro frente a " -"múltiples lectores o escritores simultáneos, al igual que siempre lo han " -"sido sus clases equivalentes en :mod:`gzip` y :mod:`lzma`. (Aportado por " -"Inada Naoki en :issue:`43785`.)" +"El rendimiento de :class:`~bz2.BZ2File` se mejora eliminando el ``RLock`` " +"interno. Esto hace que el subproceso :class:`!BZ2File` sea inseguro frente a " +"múltiples lectores o escritores simultáneos, tal como siempre lo han sido " +"sus clases equivalentes en :mod:`gzip` y :mod:`lzma`. (Aportado por Inada " +"Naoki en :issue:`43785`.)" #: ../Doc/whatsnew/3.10.rst:1607 ../Doc/whatsnew/3.10.rst:2213 msgid "Deprecated" @@ -3158,53 +3421,52 @@ msgid "" "ambiguous expressions like ``[0x1for x in y]`` (which can be interpreted as " "``[0x1 for x in y]`` or ``[0x1f or x in y]``). Starting in this release, a " "deprecation warning is raised if the numeric literal is immediately followed " -"by one of keywords :keyword:`and`, :keyword:`else`, :keyword:`for`, :keyword:" -"`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`. In future releases it " -"will be changed to syntax warning, and finally to syntax error. (Contributed " -"by Serhiy Storchaka in :issue:`43833`.)" +"by one of " +"keywords :keyword:`and`, :keyword:`else`, :keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` " +"and :keyword:`or`. In future releases it will be changed to syntax warning, " +"and finally to syntax error. (Contributed by Serhiy Storchaka " +"in :issue:`43833`.)" msgstr "" "Actualmente, Python acepta literales numéricos seguidos inmediatamente de " "palabras clave, por ejemplo, ``0in x``, ``1or x``, ``0if 1else 2``. Permite " "expresiones confusas y ambiguas como ``[0x1for x in y]`` (que puede " "interpretarse como ``[0x1 for x in y]`` o ``[0x1f or x in y]``). A partir de " "esta versión, se genera una advertencia de desuso si el literal numérico va " -"seguido inmediatamente por una de las palabras clave :keyword:`and`, :" -"keyword:`else`, :keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` " +"seguido inmediatamente por una de las palabras " +"clave :keyword:`and`, :keyword:`else`, :keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` " "y :keyword:`or`. En versiones futuras, se cambiará a advertencia de sintaxis " -"y, finalmente, a error de sintaxis. (Aportado por Serhiy Storchaka en :issue:" -"`43833`.)" +"y, finalmente, a error de sintaxis. (Aportado por Serhiy Storchaka " +"en :issue:`43833`.)" #: ../Doc/whatsnew/3.10.rst:1620 -#, fuzzy msgid "" "Starting in this release, there will be a concerted effort to begin cleaning " "up old import semantics that were kept for Python 2.7 compatibility. " -"Specifically, :meth:`!find_loader`/:meth:`!find_module` (superseded by :meth:" -"`~importlib.abc.MetaPathFinder.find_spec`), :meth:`~importlib.abc.Loader." -"load_module` (superseded by :meth:`~importlib.abc.Loader.exec_module`), :" -"meth:`!module_repr` (which the import system takes care of for you), the " +"Specifically, :meth:`!find_loader`/:meth:`!find_module` (superseded " +"by :meth:`~importlib.abc.MetaPathFinder.find_spec`), :meth:`~importlib.abc.Loader.load_module` " +"(superseded by :meth:`~importlib.abc.Loader.exec_module`), :meth:`!" +"module_repr` (which the import system takes care of for you), the " "``__package__`` attribute (superseded by ``__spec__.parent``), the " "``__loader__`` attribute (superseded by ``__spec__.loader``), and the " "``__cached__`` attribute (superseded by ``__spec__.cached``) will slowly be " -"removed (as well as other classes and methods in :mod:`importlib`). :exc:" -"`ImportWarning` and/or :exc:`DeprecationWarning` will be raised as " -"appropriate to help identify code which needs updating during this " -"transition." +"removed (as well as other classes and methods " +"in :mod:`importlib`). :exc:`ImportWarning` and/or :exc:`DeprecationWarning` " +"will be raised as appropriate to help identify code which needs updating " +"during this transition." msgstr "" "A partir de esta versión, habrá un esfuerzo concertado para comenzar a " "limpiar la semántica de importación antigua que se mantuvo para la " -"compatibilidad con Python 2.7. Específicamente, :meth:`~importlib.abc." -"PathEntryFinder.find_loader` / :meth:`~importlib.abc.Finder.find_module` " -"(reemplazado por :meth:`~importlib.abc.Finder.find_spec`), :meth:`~importlib." -"abc.Loader.load_module` (reemplazado por :meth:`~importlib.abc.Loader." -"exec_module`), :meth:`~importlib.abc.Loader.module_repr` (que el sistema de " -"importación se ocupa por usted), el atributo ``__package__`` (reemplazado " -"por ``__spec__.parent``), el atributo ``__loader__`` (reemplazado por " -"``__spec__.loader``) y el atributo ``__cached__`` (reemplazado por " -"``__spec__.cached``) se eliminará lentamente (así como otras clases y " -"métodos en :mod:`importlib`). :exc:`ImportWarning` y / o :exc:" -"`DeprecationWarning` se generarán según corresponda para ayudar a " -"identificar el código que debe actualizarse durante esta transición." +"compatibilidad con Python 2.7. Específicamente, :meth:`!find_loader`/:meth:`!" +"find_module` (reemplazado " +"por :meth:`~importlib.abc.MetaPathFinder.find_spec`), :meth:`~importlib.abc.Loader.load_module` " +"(reemplazado por :meth:`~importlib.abc.Loader.exec_module`), :meth:`!" +"module_repr` (que el sistema de importación se encarga de usted), el " +"atributo ``__package__`` (reemplazado por ``__spec__.parent``), el atributo " +"``__loader__`` (reemplazado por ``__spec__.loader``) y el atributo " +"``__cached__`` (reemplazado por ``__spec__.cached``) eliminarse lentamente " +"(así como otras clases y métodos en :mod:`importlib`). :exc:`ImportWarning` " +"y/o :exc:`DeprecationWarning` se generarán según corresponda para ayudar a " +"identificar el código que necesita actualización durante esta transición." #: ../Doc/whatsnew/3.10.rst:1637 msgid "" @@ -3218,9 +3480,9 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:1641 msgid "" -"Non-integer arguments to :func:`random.randrange` are deprecated. The :exc:" -"`ValueError` is deprecated in favor of a :exc:`TypeError`. (Contributed by " -"Serhiy Storchaka and Raymond Hettinger in :issue:`37319`.)" +"Non-integer arguments to :func:`random.randrange` are deprecated. " +"The :exc:`ValueError` is deprecated in favor of a :exc:`TypeError`. " +"(Contributed by Serhiy Storchaka and Raymond Hettinger in :issue:`37319`.)" msgstr "" "Los argumentos que no son enteros para :func:`random.randrange` están en " "desuso. El :exc:`ValueError` está en desuso en favor de un :exc:`TypeError`. " @@ -3229,39 +3491,39 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:1645 msgid "" "The various ``load_module()`` methods of :mod:`importlib` have been " -"documented as deprecated since Python 3.6, but will now also trigger a :exc:" -"`DeprecationWarning`. Use :meth:`~importlib.abc.Loader.exec_module` instead. " -"(Contributed by Brett Cannon in :issue:`26131`.)" +"documented as deprecated since Python 3.6, but will now also trigger " +"a :exc:`DeprecationWarning`. Use :meth:`~importlib.abc.Loader.exec_module` " +"instead. (Contributed by Brett Cannon in :issue:`26131`.)" msgstr "" "Los diversos métodos ``load_module()`` de :mod:`importlib` se han " "documentado como obsoletos desde Python 3.6, pero ahora también activarán " -"un :exc:`DeprecationWarning`. Utilice :meth:`~importlib.abc.Loader." -"exec_module` en su lugar. (Contribuido por Brett Cannon en :issue:`26131`.)" +"un :exc:`DeprecationWarning`. " +"Utilice :meth:`~importlib.abc.Loader.exec_module` en su lugar. (Contribuido " +"por Brett Cannon en :issue:`26131`.)" #: ../Doc/whatsnew/3.10.rst:1651 -#, fuzzy msgid "" ":meth:`!zimport.zipimporter.load_module` has been deprecated in preference " "for :meth:`~zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon " "in :issue:`26131`.)" msgstr "" -":meth:`zimport.zipimporter.load_module` ha quedado obsoleto en preferencia " -"a :meth:`~zipimport.zipimporter.exec_module`. (Contribuido por Brett Cannon " -"en :issue:`26131`.)" +":meth:`!zimport.zipimporter.load_module` ha quedado obsoleto y se " +"prefiere :meth:`~zipimport.zipimporter.exec_module`. (Aportado por Brett " +"Cannon en :issue:`26131`.)" #: ../Doc/whatsnew/3.10.rst:1655 msgid "" "The use of :meth:`~importlib.abc.Loader.load_module` by the import system " -"now triggers an :exc:`ImportWarning` as :meth:`~importlib.abc.Loader." -"exec_module` is preferred. (Contributed by Brett Cannon in :issue:`26131`.)" +"now triggers an :exc:`ImportWarning` " +"as :meth:`~importlib.abc.Loader.exec_module` is preferred. (Contributed by " +"Brett Cannon in :issue:`26131`.)" msgstr "" "El uso de :meth:`~importlib.abc.Loader.load_module` por parte del sistema de " -"importación ahora activa un :exc:`ImportWarning` ya que se prefiere :meth:" -"`~importlib.abc.Loader.exec_module`. (Contribuido por Brett Cannon en :issue:" -"`26131`.)" +"importación ahora activa un :exc:`ImportWarning` ya que se " +"prefiere :meth:`~importlib.abc.Loader.exec_module`. (Contribuido por Brett " +"Cannon en :issue:`26131`.)" #: ../Doc/whatsnew/3.10.rst:1660 -#, fuzzy msgid "" "The use of :meth:`!importlib.abc.MetaPathFinder.find_module` and :meth:`!" "importlib.abc.PathEntryFinder.find_module` by the import system now trigger " @@ -3270,123 +3532,126 @@ msgid "" "respectively. You can use :func:`importlib.util.spec_from_loader` to help in " "porting. (Contributed by Brett Cannon in :issue:`42134`.)" msgstr "" -"El uso de :meth:`importlib.abc.MetaPathFinder.find_module` y :meth:" -"`importlib.abc.PathEntryFinder.find_module` por parte del sistema de " -"importación ahora activa un :exc:`ImportWarning`, ya que se prefieren :meth:" -"`importlib.abc.MetaPathFinder.find_spec` y :meth:`importlib.abc." -"PathEntryFinder.find_spec`, respectivamente. Puede utilizar :func:`importlib." -"util.spec_from_loader` para ayudar en la migración. (Contribuido por Brett " -"Cannon en :issue:`42134`.)" +"El uso de :meth:`!importlib.abc.MetaPathFinder.find_module` y :meth:`!" +"importlib.abc.PathEntryFinder.find_module` por parte del sistema de " +"importación ahora activa un :exc:`ImportWarning`, ya que se " +"prefieren :meth:`importlib.abc.MetaPathFinder.find_spec` " +"y :meth:`importlib.abc.PathEntryFinder.find_spec`, respectivamente. Puede " +"utilizar :func:`importlib.util.spec_from_loader` para ayudar en la " +"migración. (Aportado por Brett Cannon en :issue:`42134`.)" #: ../Doc/whatsnew/3.10.rst:1669 -#, fuzzy msgid "" "The use of :meth:`!importlib.abc.PathEntryFinder.find_loader` by the import " -"system now triggers an :exc:`ImportWarning` as :meth:`importlib.abc." -"PathEntryFinder.find_spec` is preferred. You can use :func:`importlib.util." -"spec_from_loader` to help in porting. (Contributed by Brett Cannon in :issue:" -"`43672`.)" +"system now triggers an :exc:`ImportWarning` " +"as :meth:`importlib.abc.PathEntryFinder.find_spec` is preferred. You can " +"use :func:`importlib.util.spec_from_loader` to help in porting. (Contributed " +"by Brett Cannon in :issue:`43672`.)" msgstr "" -"El uso de :meth:`importlib.abc.PathEntryFinder.find_loader` por parte del " +"El uso de :meth:`!importlib.abc.PathEntryFinder.find_loader` por parte del " "sistema de importación ahora activa un :exc:`ImportWarning`, ya que se " -"prefiere :meth:`importlib.abc.PathEntryFinder.find_spec`. Puede utilizar :" -"func:`importlib.util.spec_from_loader` para ayudar en la migración. " -"(Contribuido por Brett Cannon en :issue:`43672`.)" +"prefiere :meth:`importlib.abc.PathEntryFinder.find_spec`. Puede " +"utilizar :func:`importlib.util.spec_from_loader` para ayudar en la " +"migración. (Aportado por Brett Cannon en :issue:`43672`.)" #: ../Doc/whatsnew/3.10.rst:1675 -#, fuzzy -msgid "" -"The various implementations of :meth:`!importlib.abc.MetaPathFinder." -"find_module` ( :meth:`!importlib.machinery.BuiltinImporter.find_module`, :" -"meth:`!importlib.machinery.FrozenImporter.find_module`, :meth:`!importlib." -"machinery.WindowsRegistryFinder.find_module`, :meth:`!importlib.machinery." -"PathFinder.find_module`, :meth:`!importlib.abc.MetaPathFinder." -"find_module` ), :meth:`!importlib.abc.PathEntryFinder.find_module` ( :meth:`!" -"importlib.machinery.FileFinder.find_module` ), and :meth:`!importlib.abc." -"PathEntryFinder.find_loader` ( :meth:`!importlib.machinery.FileFinder." -"find_loader` ) now raise :exc:`DeprecationWarning` and are slated for " -"removal in Python 3.12 (previously they were documented as deprecated in " -"Python 3.4). (Contributed by Brett Cannon in :issue:`42135`.)" -msgstr "" -"Las diversas implementaciones de :meth:`importlib.abc.MetaPathFinder." -"find_module` ( :meth:`importlib.machinery.BuiltinImporter.find_module`, :" -"meth:`importlib.machinery.FrozenImporter.find_module`, :meth:`importlib." -"machinery.WindowsRegistryFinder.find_module`, :meth:`importlib.machinery." -"PathFinder.find_module`, :meth:`importlib.abc.MetaPathFinder." -"find_module` ), :meth:`importlib.abc.PathEntryFinder.find_module` ( :meth:" -"`importlib.machinery.FileFinder.find_module` ) y :meth:`importlib.abc." -"PathEntryFinder.find_loader` ( :meth:`importlib.machinery.FileFinder." -"find_loader` ) ahora generan :exc:`DeprecationWarning` y están programadas " -"para su eliminación en Python 3.12 (anteriormente se documentaron como " -"obsoletas en Python 3.4). (Aportado por Brett Cannon en :issue:`42135`.)" +msgid "" +"The various implementations of :meth:`!" +"importlib.abc.MetaPathFinder.find_module` ( :meth:`!" +"importlib.machinery.BuiltinImporter.find_module`, :meth:`!" +"importlib.machinery.FrozenImporter.find_module`, :meth:`!" +"importlib.machinery.WindowsRegistryFinder.find_module`, :meth:`!" +"importlib.machinery.PathFinder.find_module`, :meth:`!" +"importlib.abc.MetaPathFinder.find_module` ), :meth:`!" +"importlib.abc.PathEntryFinder.find_module` ( :meth:`!" +"importlib.machinery.FileFinder.find_module` ), and :meth:`!" +"importlib.abc.PathEntryFinder.find_loader` ( :meth:`!" +"importlib.machinery.FileFinder.find_loader` ) now " +"raise :exc:`DeprecationWarning` and are slated for removal in Python 3.12 " +"(previously they were documented as deprecated in Python 3.4). (Contributed " +"by Brett Cannon in :issue:`42135`.)" +msgstr "" +"Las diversas implementaciones de :meth:`!" +"importlib.abc.MetaPathFinder.find_module` ( :meth:`!" +"importlib.machinery.BuiltinImporter.find_module`, :meth:`!" +"importlib.machinery.FrozenImporter.find_module`, :meth:`!" +"importlib.machinery.WindowsRegistryFinder.find_module`, :meth:`!" +"importlib.machinery.PathFinder.find_module`, :meth:`!" +"importlib.abc.MetaPathFinder.find_module` ), :meth:`!" +"importlib.abc.PathEntryFinder.find_module` ( :meth:`!" +"importlib.machinery.FileFinder.find_module` ) y :meth:`!" +"importlib.abc.PathEntryFinder.find_loader` ( :meth:`!" +"importlib.machinery.FileFinder.find_loader` ) ahora " +"generan :exc:`DeprecationWarning` y están programadas para su eliminación en " +"Python 3.12 (anteriormente estaban documentadas como obsoletas en Python " +"3.4). (Aportado por Brett Cannon en :issue:`42135`.)" #: ../Doc/whatsnew/3.10.rst:1690 -#, fuzzy msgid "" -":class:`!importlib.abc.Finder` is deprecated (including its sole method, :" -"meth:`!find_module`). Both :class:`importlib.abc.MetaPathFinder` and :class:" -"`importlib.abc.PathEntryFinder` no longer inherit from the class. Users " -"should inherit from one of these two classes as appropriate instead. " +":class:`!importlib.abc.Finder` is deprecated (including its sole " +"method, :meth:`!find_module`). Both :class:`importlib.abc.MetaPathFinder` " +"and :class:`importlib.abc.PathEntryFinder` no longer inherit from the class. " +"Users should inherit from one of these two classes as appropriate instead. " "(Contributed by Brett Cannon in :issue:`42135`.)" msgstr "" -":class:`importlib.abc.Finder` está en desuso (incluido su único método, :" -"meth:`~importlib.abc.Finder.find_module`). Tanto :class:`importlib.abc." -"MetaPathFinder` como :class:`importlib.abc.PathEntryFinder` ya no heredan de " -"la clase. Los usuarios deben heredar de una de estas dos clases según " -"corresponda. (Contribuido por Brett Cannon en :issue:`42135`.)" +":class:`!importlib.abc.Finder` está en desuso (incluido su único " +"método, :meth:`!find_module`). Tanto :class:`importlib.abc.MetaPathFinder` " +"como :class:`importlib.abc.PathEntryFinder` ya no heredan de la clase. En su " +"lugar, los usuarios deben heredar de una de estas dos clases según " +"corresponda. (Aportado por Brett Cannon en :issue:`42135`.)" #: ../Doc/whatsnew/3.10.rst:1697 -#, fuzzy msgid "" "The deprecations of :mod:`!imp`, :func:`!importlib.find_loader`, :func:`!" -"importlib.util.set_package_wrapper`, :func:`!importlib.util." -"set_loader_wrapper`, :func:`!importlib.util.module_for_loader`, :class:`!" -"pkgutil.ImpImporter`, and :class:`!pkgutil.ImpLoader` have all been updated " -"to list Python 3.12 as the slated version of removal (they began raising :" -"exc:`DeprecationWarning` in previous versions of Python). (Contributed by " -"Brett Cannon in :issue:`43720`.)" -msgstr "" -"Las bajas de :mod:`imp`, :func:`importlib.find_loader`, :func:`importlib." -"util.set_package_wrapper`, :func:`importlib.util.set_loader_wrapper`, :func:" -"`importlib.util.module_for_loader`, :class:`pkgutil.ImpImporter` y :class:" -"`pkgutil.ImpLoader` se han actualizado para incluir Python 3.12 como la " -"versión programada de eliminación (comenzaron a generar :exc:" -"`DeprecationWarning` en versiones anteriores de Python). (Contribuido por " -"Brett Cannon en :issue:`43720`.)" +"importlib.util.set_package_wrapper`, :func:`!" +"importlib.util.set_loader_wrapper`, :func:`!" +"importlib.util.module_for_loader`, :class:`!pkgutil.ImpImporter`, " +"and :class:`!pkgutil.ImpLoader` have all been updated to list Python 3.12 as " +"the slated version of removal (they began raising :exc:`DeprecationWarning` " +"in previous versions of Python). (Contributed by Brett Cannon " +"in :issue:`43720`.)" +msgstr "" +"Las obsolescencias de :mod:`!imp`, :func:`!importlib.find_loader`, :func:`!" +"importlib.util.set_package_wrapper`, :func:`!" +"importlib.util.set_loader_wrapper`, :func:`!" +"importlib.util.module_for_loader`, :class:`!pkgutil.ImpImporter` y :class:`!" +"pkgutil.ImpLoader` se han actualizado para incluir Python 3.12 como la " +"versión programada de eliminación (comenzaron a " +"generar :exc:`DeprecationWarning` en versiones anteriores de Python). " +"(Aportado por Brett Cannon en :issue:`43720`.)" #: ../Doc/whatsnew/3.10.rst:1707 -#, fuzzy msgid "" "The import system now uses the ``__spec__`` attribute on modules before " "falling back on :meth:`!module_repr` for a module's ``__repr__()`` method. " "Removal of the use of ``module_repr()`` is scheduled for Python 3.12. " "(Contributed by Brett Cannon in :issue:`42137`.)" msgstr "" -"El sistema de importación ahora usa el atributo ``__spec__`` en los módulos " -"antes de recurrir a :meth:`~importlib.abc.Loader.module_repr` para el método " +"El sistema de importación ahora utiliza el atributo ``__spec__`` en los " +"módulos antes de recurrir a :meth:`!module_repr` para el método " "``__repr__()`` de un módulo. La eliminación del uso de ``module_repr()`` " -"está programada para Python 3.12. (Contribuido por Brett Cannon en :issue:" -"`42137`.)" +"está prevista para Python 3.12. (Aportado por Brett Cannon " +"en :issue:`42137`.)" #: ../Doc/whatsnew/3.10.rst:1713 -#, fuzzy msgid "" -":meth:`!importlib.abc.Loader.module_repr`, :meth:`!importlib.machinery." -"FrozenLoader.module_repr`, and :meth:`!importlib.machinery.BuiltinLoader." -"module_repr` are deprecated and slated for removal in Python 3.12. " -"(Contributed by Brett Cannon in :issue:`42136`.)" +":meth:`!importlib.abc.Loader.module_repr`, :meth:`!" +"importlib.machinery.FrozenLoader.module_repr`, and :meth:`!" +"importlib.machinery.BuiltinLoader.module_repr` are deprecated and slated for " +"removal in Python 3.12. (Contributed by Brett Cannon in :issue:`42136`.)" msgstr "" -":meth:`importlib.abc.Loader.module_repr`, :meth:`importlib.machinery." -"FrozenLoader.module_repr` y :meth:`importlib.machinery.BuiltinLoader." -"module_repr` están en desuso y están programados para su eliminación en " -"Python 3.12. (Contribuido por Brett Cannon en :issue:`42136`.)" +":meth:`!importlib.abc.Loader.module_repr`, :meth:`!" +"importlib.machinery.FrozenLoader.module_repr` y :meth:`!" +"importlib.machinery.BuiltinLoader.module_repr` están obsoletos y su " +"eliminación está prevista en Python 3.12. (Aportado por Brett Cannon " +"en :issue:`42136`.)" #: ../Doc/whatsnew/3.10.rst:1719 msgid "" "``sqlite3.OptimizedUnicode`` has been undocumented and obsolete since Python " "3.3, when it was made an alias to :class:`str`. It is now deprecated, " -"scheduled for removal in Python 3.12. (Contributed by Erlend E. Aasland in :" -"issue:`42264`.)" +"scheduled for removal in Python 3.12. (Contributed by Erlend E. Aasland " +"in :issue:`42264`.)" msgstr "" "``sqlite3.OptimizedUnicode`` ha sido indocumentado y obsoleto desde Python " "3.3, cuando se convirtió en un alias para :class:`str`. Ahora está en " @@ -3453,15 +3718,14 @@ msgid "(Contributed by Jelle Zijlstra in :gh:`87889`.)" msgstr "(Aportado por Jelle Zijlstra en :gh:`87889`.)" #: ../Doc/whatsnew/3.10.rst:1753 -#, fuzzy msgid "" ":meth:`!pathlib.Path.link_to` is deprecated and slated for removal in Python " "3.12. Use :meth:`pathlib.Path.hardlink_to` instead. (Contributed by Barney " "Gale in :issue:`39950`.)" msgstr "" -":meth:`pathlib.Path.link_to` está en desuso y está programado para su " -"eliminación en Python 3.12. Utilice :meth:`pathlib.Path.hardlink_to` en su " -"lugar. (Contribuido por Barney Gale en :issue:`39950`.)" +":meth:`!pathlib.Path.link_to` está en desuso y está previsto su eliminación " +"en Python 3.12. Utilice :meth:`pathlib.Path.hardlink_to` en su lugar. " +"(Aportado por Barney Gale en :issue:`39950`.)" #: ../Doc/whatsnew/3.10.rst:1757 msgid "" @@ -3480,75 +3744,69 @@ msgstr "" "3.6, Python 3.7 u OpenSSL 1.1.0 y se eliminarán en 3.11:" #: ../Doc/whatsnew/3.10.rst:1763 -#, fuzzy msgid "" ":data:`!OP_NO_SSLv2`, :data:`!OP_NO_SSLv3`, :data:`!OP_NO_TLSv1`, :data:`!" "OP_NO_TLSv1_1`, :data:`!OP_NO_TLSv1_2`, and :data:`!OP_NO_TLSv1_3` are " -"replaced by :attr:`~ssl.SSLContext.minimum_version` and :attr:`~ssl." -"SSLContext.maximum_version`." +"replaced by :attr:`~ssl.SSLContext.minimum_version` " +"and :attr:`~ssl.SSLContext.maximum_version`." msgstr "" -":data:`~ssl.OP_NO_SSLv2`, :data:`~ssl.OP_NO_SSLv3`, :data:`~ssl." -"OP_NO_TLSv1`, :data:`~ssl.OP_NO_TLSv1_1`, :data:`~ssl.OP_NO_TLSv1_2` y :data:" -"`~ssl.OP_NO_TLSv1_3` se reemplazan por :attr:`sslSSLContext.minimum_version` " -"y :attr:`sslSSLContext.maximum_version`." +":data:`!OP_NO_SSLv2`, :data:`!OP_NO_SSLv3`, :data:`!OP_NO_TLSv1`, :data:`!" +"OP_NO_TLSv1_1`, :data:`!OP_NO_TLSv1_2` y :data:`!OP_NO_TLSv1_3` se " +"reemplazan por :attr:`~ssl.SSLContext.minimum_version` " +"y :attr:`~ssl.SSLContext.maximum_version`." #: ../Doc/whatsnew/3.10.rst:1769 -#, fuzzy msgid "" -":data:`!PROTOCOL_SSLv2`, :data:`!PROTOCOL_SSLv3`, :data:`!PROTOCOL_SSLv23`, :" -"data:`!PROTOCOL_TLSv1`, :data:`!PROTOCOL_TLSv1_1`, :data:`!" -"PROTOCOL_TLSv1_2`, and :const:`!PROTOCOL_TLS` are deprecated in favor of :" -"const:`~ssl.PROTOCOL_TLS_CLIENT` and :const:`~ssl.PROTOCOL_TLS_SERVER`" +":data:`!PROTOCOL_SSLv2`, :data:`!PROTOCOL_SSLv3`, :data:`!" +"PROTOCOL_SSLv23`, :data:`!PROTOCOL_TLSv1`, :data:`!" +"PROTOCOL_TLSv1_1`, :data:`!PROTOCOL_TLSv1_2`, and :const:`!PROTOCOL_TLS` are " +"deprecated in favor of :const:`~ssl.PROTOCOL_TLS_CLIENT` " +"and :const:`~ssl.PROTOCOL_TLS_SERVER`" msgstr "" -":data:`~ssl.PROTOCOL_SSLv2`, :data:`~ssl.PROTOCOL_SSLv3`, :data:`~ssl." -"PROTOCOL_SSLv23`, :data:`~ssl.PROTOCOL_TLSv1`, :data:`~ssl." -"PROTOCOL_TLSv1_1`, :data:`~ssl.PROTOCOL_TLSv1_2` y :data:`~ssl.PROTOCOL_TLS` " -"están en desuso a favor de :data:`~ssl.PROTOCOL_TLS_CLIENT` y :data:`~ssl." -"PROTOCOL_TLS_SERVER`" +":data:`!PROTOCOL_SSLv2`, :data:`!PROTOCOL_SSLv3`, :data:`!" +"PROTOCOL_SSLv23`, :data:`!PROTOCOL_TLSv1`, :data:`!" +"PROTOCOL_TLSv1_1`, :data:`!PROTOCOL_TLSv1_2` y :const:`!PROTOCOL_TLS` están " +"en desuso en favor de :const:`~ssl.PROTOCOL_TLS_CLIENT` " +"y :const:`~ssl.PROTOCOL_TLS_SERVER`" #: ../Doc/whatsnew/3.10.rst:1775 -#, fuzzy msgid ":func:`!wrap_socket` is replaced by :meth:`ssl.SSLContext.wrap_socket`" msgstr "" -":func:`~ssl.wrap_socket` es reemplazado por :meth:`ssl.SSLContext." -"wrap_socket`" +":func:`!wrap_socket` es reemplazado por :meth:`ssl.SSLContext.wrap_socket`" #: ../Doc/whatsnew/3.10.rst:1777 -#, fuzzy msgid ":func:`!match_hostname`" -msgstr ":func:`~ssl.match_hostname`" +msgstr ":func:`!match_hostname`" #: ../Doc/whatsnew/3.10.rst:1779 -#, fuzzy msgid ":func:`!RAND_pseudo_bytes`, :func:`!RAND_egd`" -msgstr ":func:`~ssl.RAND_pseudo_bytes`, :func:`~ssl.RAND_egd`" +msgstr ":func:`!RAND_pseudo_bytes`, :func:`!RAND_egd`" #: ../Doc/whatsnew/3.10.rst:1781 msgid "" -"NPN features like :meth:`ssl.SSLSocket.selected_npn_protocol` and :meth:`ssl." -"SSLContext.set_npn_protocols` are replaced by ALPN." +"NPN features like :meth:`ssl.SSLSocket.selected_npn_protocol` " +"and :meth:`ssl.SSLContext.set_npn_protocols` are replaced by ALPN." msgstr "" -"Las funciones NPN como :meth:`ssl.SSLSocket.selected_npn_protocol` y :meth:" -"`ssl.SSLContext.set_npn_protocols` son reemplazadas por ALPN." +"Las funciones NPN como :meth:`ssl.SSLSocket.selected_npn_protocol` " +"y :meth:`ssl.SSLContext.set_npn_protocols` son reemplazadas por ALPN." #: ../Doc/whatsnew/3.10.rst:1784 -#, fuzzy msgid "" "The threading debug (:envvar:`!PYTHONTHREADDEBUG` environment variable) is " "deprecated in Python 3.10 and will be removed in Python 3.12. This feature " "requires a :ref:`debug build of Python `. (Contributed by " "Victor Stinner in :issue:`44584`.)" msgstr "" -"La depuración de subprocesos (variable de entorno :envvar:" -"`PYTHONTHREADDEBUG`) está obsoleta en Python 3.10 y se eliminará en Python " +"La depuración de subprocesos (variable de entorno :envvar:`!" +"PYTHONTHREADDEBUG`) está obsoleta en Python 3.10 y se eliminará en Python " "3.12. Esta característica requiere un :ref:`debug build of Python `. (Contribuido por Victor Stinner en :issue:`44584`.)" +"build>`. (Aportado por Victor Stinner en :issue:`44584`.)" #: ../Doc/whatsnew/3.10.rst:1789 msgid "" -"Importing from the ``typing.io`` and ``typing.re`` submodules will now emit :" -"exc:`DeprecationWarning`. These submodules will be removed in a future " -"version of Python. Anything belonging to these submodules should be " +"Importing from the ``typing.io`` and ``typing.re`` submodules will now " +"emit :exc:`DeprecationWarning`. These submodules will be removed in a " +"future version of Python. Anything belonging to these submodules should be " "imported directly from :mod:`typing` instead. (Contributed by Sebastian " "Rittau in :issue:`38291`.)" msgstr "" @@ -3566,22 +3824,22 @@ msgstr "Eliminado" msgid "" "Removed special methods ``__int__``, ``__float__``, ``__floordiv__``, " "``__mod__``, ``__divmod__``, ``__rfloordiv__``, ``__rmod__`` and " -"``__rdivmod__`` of the :class:`complex` class. They always raised a :exc:" -"`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.)" +"``__rdivmod__`` of the :class:`complex` class. They always raised " +"a :exc:`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.)" msgstr "" "Se eliminaron los métodos especiales ``__int__``, ``__float__``, " "``__floordiv__``, ``__mod__``, ``__divmod__``, ``__rfloordiv__``, " "``__rmod__`` y ``__rdivmod__`` de la clase :class:`complex`. Siempre " -"levantaron un :exc:`TypeError`. (Contribuido por Serhiy Storchaka en :issue:" -"`41974`.)" +"levantaron un :exc:`TypeError`. (Contribuido por Serhiy Storchaka " +"en :issue:`41974`.)" #: ../Doc/whatsnew/3.10.rst:1806 msgid "" "The ``ParserBase.error()`` method from the private and undocumented " "``_markupbase`` module has been removed. :class:`html.parser.HTMLParser` is " "the only subclass of ``ParserBase`` and its ``error()`` implementation was " -"already removed in Python 3.5. (Contributed by Berker Peksag in :issue:" -"`31844`.)" +"already removed in Python 3.5. (Contributed by Berker Peksag " +"in :issue:`31844`.)" msgstr "" "Se ha eliminado el método ``ParserBase.error()`` del módulo ``_markupbase`` " "privado e indocumentado. :class:`html.parser.HTMLParser` es la única " @@ -3592,13 +3850,13 @@ msgstr "" msgid "" "Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal " "PyCapsule object. The related private ``_PyUnicode_Name_CAPI`` structure was " -"moved to the internal C API. (Contributed by Victor Stinner in :issue:" -"`42157`.)" +"moved to the internal C API. (Contributed by Victor Stinner " +"in :issue:`42157`.)" msgstr "" "Se eliminó el atributo ``unicodedata.ucnhash_CAPI`` que era un objeto " "interno de PyCapsule. La estructura ``_PyUnicode_Name_CAPI`` privada " -"relacionada se movió a la API C interna. (Contribuido por Victor Stinner en :" -"issue:`42157`.)" +"relacionada se movió a la API C interna. (Contribuido por Victor Stinner " +"en :issue:`42157`.)" #: ../Doc/whatsnew/3.10.rst:1817 msgid "" @@ -3626,7 +3884,6 @@ msgstr "" "en 3.9 debido al cambio al nuevo analizador PEG." #: ../Doc/whatsnew/3.10.rst:1827 -#, fuzzy msgid "" "Removed the ``formatter`` module, which was deprecated in Python 3.4. It is " "somewhat obsolete, little used, and not tested. It was originally scheduled " @@ -3634,42 +3891,41 @@ msgid "" "Python 2.7 EOL. Existing users should copy whatever classes they use into " "their code. (Contributed by Donghee Na and Terry J. Reedy in :issue:`42299`.)" msgstr "" -"Se eliminó el módulo ``formatter``, que estaba en desuso en Python 3.4. Es " -"algo obsoleto, poco usado y no probado. Originalmente estaba programado para " -"ser eliminado en Python 3.6, pero tales eliminaciones se retrasaron hasta " -"después de Python 2.7 EOL. Los usuarios existentes deben copiar cualquier " -"clase que utilicen en su código. (Contribuido por Dong-hee Na y Terry J. " -"Reedy en :issue:`42299`.)" +"Se eliminó el módulo ``formatter``, que quedó obsoleto en Python 3.4. Está " +"algo obsoleto, poco utilizado y no probado. Originalmente estaba programado " +"para eliminarse en Python 3.6, pero dichas eliminaciones se retrasaron hasta " +"después del EOL de Python 2.7. Los usuarios existentes deben copiar las " +"clases que utilicen en su código. (Contribución de Donghee Na y Terry J. " +"Reedy en :issue:`42299`)." #: ../Doc/whatsnew/3.10.rst:1834 -#, fuzzy msgid "" "Removed the :c:func:`!PyModule_GetWarningsModule` function that was useless " "now due to the :mod:`!_warnings` module was converted to a builtin module in " "2.6. (Contributed by Hai Shi in :issue:`42599`.)" msgstr "" -"Se eliminó la función :c:func:`PyModule_GetWarningsModule` que ahora era " -"inútil debido a que el módulo _warnings se convirtió en un módulo " -"incorporado en 2.6. (Contribuido por Hai Shi en :issue:`42599`.)" +"Se eliminó la función :c:func:`!PyModule_GetWarningsModule` que ahora era " +"inútil debido a que el módulo :mod:`!_warnings` se convirtió en un módulo " +"integrado en 2.6. (Aportado por Hai Shi en :issue:`42599`.)" #: ../Doc/whatsnew/3.10.rst:1838 msgid "" "Remove deprecated aliases to :ref:`collections-abstract-base-classes` from " -"the :mod:`collections` module. (Contributed by Victor Stinner in :issue:" -"`37324`.)" +"the :mod:`collections` module. (Contributed by Victor Stinner " +"in :issue:`37324`.)" msgstr "" "Elimine los alias obsoletos a :ref:`collections-abstract-base-classes` del " -"módulo :mod:`collections`. (Contribuido por Victor Stinner en :issue:" -"`37324`.)" +"módulo :mod:`collections`. (Contribuido por Victor Stinner " +"en :issue:`37324`.)" #: ../Doc/whatsnew/3.10.rst:1842 msgid "" -"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" -"doc:`high-level API <../library/asyncio-api-index>` following deprecation in " -"Python 3.8. The motivation behind this change is multifold:" +"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ " +"'s :doc:`high-level API <../library/asyncio-api-index>` following " +"deprecation in Python 3.8. The motivation behind this change is multifold:" msgstr "" -"El parámetro ``loop`` se ha eliminado de la mayoría de :mod:`asyncio`\\ 's :" -"doc:`API de alto nivel <../library/asyncio-api-index>` después de la " +"El parámetro ``loop`` se ha eliminado de la mayoría de :mod:`asyncio`\\ " +"'s :doc:`API de alto nivel <../library/asyncio-api-index>` después de la " "desaprobación en Python 3.8. La motivación detrás de este cambio es múltiple:" #: ../Doc/whatsnew/3.10.rst:1846 @@ -3743,8 +3999,8 @@ msgstr "" "a advertencia de sintaxis y, finalmente, a error de sintaxis. Para " "deshacerse de la advertencia y hacer que el código sea compatible con " "versiones futuras, simplemente agregue un espacio entre el literal numérico " -"y la siguiente palabra clave. (Aportado por Serhiy Storchaka en :issue:" -"`43833`.)" +"y la siguiente palabra clave. (Aportado por Serhiy Storchaka " +"en :issue:`43833`.)" #: ../Doc/whatsnew/3.10.rst:1881 msgid "Changes in the Python API" @@ -3752,29 +4008,30 @@ msgstr "Cambios en la API de Python" #: ../Doc/whatsnew/3.10.rst:1883 msgid "" -"The *etype* parameters of the :func:`~traceback.format_exception`, :func:" -"`~traceback.format_exception_only`, and :func:`~traceback.print_exception` " -"functions in the :mod:`traceback` module have been renamed to *exc*. " -"(Contributed by Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" +"The *etype* parameters of " +"the :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, " +"and :func:`~traceback.print_exception` functions in the :mod:`traceback` " +"module have been renamed to *exc*. (Contributed by Zackery Spytz and " +"Matthias Bussonnier in :issue:`26389`.)" msgstr "" -"Los parámetros *etype* de las funciones :func:`~traceback." -"format_exception`, :func:`~traceback.format_exception_only`, y :func:" -"`~traceback.print_exception` en el módulo :mod:`traceback` han sido " +"Los parámetros *etype* de las " +"funciones :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, " +"y :func:`~traceback.print_exception` en el módulo :mod:`traceback` han sido " "renombradas a *exc*. (Contribuido por Zackery Spytz y Matthias Bussonnier " "en :issue:`26389`.)" #: ../Doc/whatsnew/3.10.rst:1889 msgid "" -":mod:`atexit`: At Python exit, if a callback registered with :func:`atexit." -"register` fails, its exception is now logged. Previously, only some " -"exceptions were logged, and the last exception was always silently ignored. " -"(Contributed by Victor Stinner in :issue:`42639`.)" +":mod:`atexit`: At Python exit, if a callback registered " +"with :func:`atexit.register` fails, its exception is now logged. Previously, " +"only some exceptions were logged, and the last exception was always silently " +"ignored. (Contributed by Victor Stinner in :issue:`42639`.)" msgstr "" ":mod:`atexit`: en la salida de Python, si falla una devolución de llamada " "registrada con :func:`atexit.register`, ahora se registra su excepción. " "Anteriormente, solo se registraban algunas excepciones y la última excepción " -"siempre se ignoraba en silencio. (Contribuido por Victor Stinner en :issue:" -"`42639`.)" +"siempre se ignoraba en silencio. (Contribuido por Victor Stinner " +"en :issue:`42639`.)" #: ../Doc/whatsnew/3.10.rst:1895 msgid "" @@ -3785,39 +4042,39 @@ msgid "" "accesses the arguments via :func:`typing.get_args` or ``__args__`` need to " "account for this change. Furthermore, :exc:`TypeError` may be raised for " "invalid forms of parameterizing :class:`collections.abc.Callable` which may " -"have passed silently in Python 3.9. (Contributed by Ken Jin in :issue:" -"`42195`.)" +"have passed silently in Python 3.9. (Contributed by Ken Jin " +"in :issue:`42195`.)" msgstr "" ":class:`collections.abc.Callable` genérico ahora aplana los parámetros de " "tipo, similar a lo que hace actualmente :data:`typing.Callable`. Esto " "significa que ``collections.abc.Callable[[int, str], str]`` tendrá " "``__args__`` de ``(int, str, str)``; anteriormente esto era ``([int, str], " -"str)``. El código que accede a los argumentos a través de :func:`typing." -"get_args` o ``__args__`` debe tener en cuenta este cambio. Además, :exc:" -"`TypeError` se puede generar para formas no válidas de parametrizar :class:" -"`collections.abc.Callable` que pueden haber pasado silenciosamente en Python " -"3.9. (Contribuido por Ken Jin en :issue:`42195`.)" +"str)``. El código que accede a los argumentos a través " +"de :func:`typing.get_args` o ``__args__`` debe tener en cuenta este cambio. " +"Además, :exc:`TypeError` se puede generar para formas no válidas de " +"parametrizar :class:`collections.abc.Callable` que pueden haber pasado " +"silenciosamente en Python 3.9. (Contribuido por Ken Jin en :issue:`42195`.)" #: ../Doc/whatsnew/3.10.rst:1905 msgid "" ":meth:`socket.htons` and :meth:`socket.ntohs` now raise :exc:`OverflowError` " "instead of :exc:`DeprecationWarning` if the given parameter will not fit in " -"a 16-bit unsigned integer. (Contributed by Erlend E. Aasland in :issue:" -"`42393`.)" +"a 16-bit unsigned integer. (Contributed by Erlend E. Aasland " +"in :issue:`42393`.)" msgstr "" -":meth:`socket.htons` y :meth:`socket.ntohs` ahora generan :exc:" -"`OverflowError` en lugar de :exc:`DeprecationWarning` si el parámetro dado " -"no cabe en un entero sin signo de 16 bits. (Contribuido por Erlend E. " -"Aasland en :issue:`42393`.)" +":meth:`socket.htons` y :meth:`socket.ntohs` ahora " +"generan :exc:`OverflowError` en lugar de :exc:`DeprecationWarning` si el " +"parámetro dado no cabe en un entero sin signo de 16 bits. (Contribuido por " +"Erlend E. Aasland en :issue:`42393`.)" #: ../Doc/whatsnew/3.10.rst:1910 msgid "" -"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" -"doc:`high-level API <../library/asyncio-api-index>` following deprecation in " -"Python 3.8." +"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ " +"'s :doc:`high-level API <../library/asyncio-api-index>` following " +"deprecation in Python 3.8." msgstr "" -"El parámetro ``loop`` se ha eliminado de la mayoría de :mod:`asyncio`\\ 's :" -"doc:`API de alto nivel <../library/asyncio-api-index>` después de la " +"El parámetro ``loop`` se ha eliminado de la mayoría de :mod:`asyncio`\\ " +"'s :doc:`API de alto nivel <../library/asyncio-api-index>` después de la " "desaprobación en Python 3.8." #: ../Doc/whatsnew/3.10.rst:1914 @@ -3829,6 +4086,8 @@ msgid "" "async def foo(loop):\n" " await asyncio.sleep(1, loop=loop)" msgstr "" +"asíncrono def foo (bucle):\n" +" espere asyncio.sleep (1, bucle = bucle)" #: ../Doc/whatsnew/3.10.rst:1919 msgid "Should be replaced with this::" @@ -3839,6 +4098,8 @@ msgid "" "async def foo():\n" " await asyncio.sleep(1)" msgstr "" +"asíncrono def foo():\n" +" espera asyncio.sleep(1)" #: ../Doc/whatsnew/3.10.rst:1924 msgid "" @@ -3848,19 +4109,19 @@ msgid "" msgstr "" "Si ``foo()`` fue diseñado específicamente *not* para ejecutarse en el bucle " "de eventos en ejecución del hilo actual (por ejemplo, ejecutándose en el " -"bucle de eventos de otro hilo), considere usar :func:`asyncio." -"run_coroutine_threadsafe` en su lugar." +"bucle de eventos de otro hilo), considere " +"usar :func:`asyncio.run_coroutine_threadsafe` en su lugar." #: ../Doc/whatsnew/3.10.rst:1931 #, python-brace-format msgid "" "The :data:`types.FunctionType` constructor now inherits the current builtins " "if the *globals* dictionary has no ``\"__builtins__\"`` key, rather than " -"using ``{\"None\": None}`` as builtins: same behavior as :func:`eval` and :" -"func:`exec` functions. Defining a function with ``def function(...): ...`` " -"in Python is not affected, globals cannot be overridden with this syntax: it " -"also inherits the current builtins. (Contributed by Victor Stinner in :issue:" -"`42990`.)" +"using ``{\"None\": None}`` as builtins: same behavior as :func:`eval` " +"and :func:`exec` functions. Defining a function with ``def " +"function(...): ...`` in Python is not affected, globals cannot be overridden " +"with this syntax: it also inherits the current builtins. (Contributed by " +"Victor Stinner in :issue:`42990`.)" msgstr "" "El constructor :data:`types.FunctionType` ahora hereda las incorporaciones " "actuales si el diccionario *globals* no tiene clave ``\"__builtins__\"``, en " @@ -3896,8 +4157,8 @@ msgid "" msgstr "" "La fuente debe compilarse ahora directamente en un objeto de código " "utilizando, por ejemplo, :c:func:`Py_CompileString`. A continuación, el " -"objeto de código resultante se puede evaluar utilizando, por ejemplo, :c:" -"func:`PyEval_EvalCode`." +"objeto de código resultante se puede evaluar utilizando, por " +"ejemplo, :c:func:`PyEval_EvalCode`." #: ../Doc/whatsnew/3.10.rst:1952 msgid "Specifically:" @@ -3925,16 +4186,17 @@ msgstr "" msgid "" "To compile a file given a ``char *`` filename, explicitly open the file, " "read it and compile the result. One way to do this is using the :py:mod:`io` " -"module with :c:func:`PyImport_ImportModule`, :c:func:`PyObject_CallMethod`, :" -"c:func:`PyBytes_AsString` and :c:func:`Py_CompileString`, as sketched below. " -"(Declarations and error handling are omitted.) ::" +"module " +"with :c:func:`PyImport_ImportModule`, :c:func:`PyObject_CallMethod`, :c:func:`PyBytes_AsString` " +"and :c:func:`Py_CompileString`, as sketched below. (Declarations and error " +"handling are omitted.) ::" msgstr "" "Para compilar un archivo con un nombre de archivo ``char *``, abra " "explícitamente el archivo, léalo y compile el resultado. Una forma de " -"hacerlo es utilizando el módulo :py:mod:`io` con :c:func:" -"`PyImport_ImportModule`, :c:func:`PyObject_CallMethod`, :c:func:" -"`PyBytes_AsString` y :c:func:`Py_CompileString`, como se muestra a " -"continuación. (Se omiten las declaraciones y el manejo de errores). ::" +"hacerlo es utilizando el módulo :py:mod:`io` " +"con :c:func:`PyImport_ImportModule`, :c:func:`PyObject_CallMethod`, :c:func:`PyBytes_AsString` " +"y :c:func:`Py_CompileString`, como se muestra a continuación. (Se omiten las " +"declaraciones y el manejo de errores). ::" #: ../Doc/whatsnew/3.10.rst:1967 msgid "" @@ -3946,25 +4208,33 @@ msgid "" "source_buf = PyBytes_AsString(source_bytes_object);\n" "code = Py_CompileString(source_buf, filename, Py_file_input);" msgstr "" +"io_module = Import_ImportModule(\"io\");\n" +"objetoarchivo = PyObject_CallMethod(io_module, \"open\", \"ss\", nombre de " +"archivo, \"rb\");\n" +"source_bytes_object = PyObject_CallMethod(objeto de archivo, \"leer\", " +"\"\");\n" +"resultado = PyObject_CallMethod (objeto de archivo, \"cerrar\", \"\");\n" +"fuente_buf = PyBytes_AsString(fuente_bytes_objeto);\n" +"código = Py_CompileString(source_buf, nombre de archivo, Py_file_input);" #: ../Doc/whatsnew/3.10.rst:1974 -#, fuzzy msgid "" "For ``FrameObject`` objects, the :attr:`~frame.f_lasti` member now " "represents a wordcode offset instead of a simple offset into the bytecode " "string. This means that this number needs to be multiplied by 2 to be used " "with APIs that expect a byte offset instead (like :c:func:`PyCode_Addr2Line` " "for example). Notice as well that the :attr:`!f_lasti` member of " -"``FrameObject`` objects is not considered stable: please use :c:func:" -"`PyFrame_GetLineNumber` instead." -msgstr "" -"Para los objetos ``FrameObject``, el miembro ``f_lasti`` ahora representa un " -"desplazamiento de código de palabra en lugar de un desplazamiento simple en " -"la cadena de código de bytes. Esto significa que este número debe " -"multiplicarse por 2 para usarse con API que esperan un desplazamiento de " -"bytes en su lugar (como :c:func:`PyCode_Addr2Line`, por ejemplo). Tenga en " -"cuenta también que el miembro ``f_lasti`` de los objetos ``FrameObject`` no " -"se considera estable: utilice :c:func:`PyFrame_GetLineNumber` en su lugar." +"``FrameObject`` objects is not considered stable: please " +"use :c:func:`PyFrame_GetLineNumber` instead." +msgstr "" +"Para los objetos ``FrameObject``, el miembro :attr:`~frame.f_lasti` ahora " +"representa un desplazamiento de código de palabra en lugar de un " +"desplazamiento simple en la cadena de código de bytes. Esto significa que " +"este número debe multiplicarse por 2 para usarse con API que esperan un " +"desplazamiento de bytes (como :c:func:`PyCode_Addr2Line`, por ejemplo). " +"Tenga en cuenta también que el miembro :attr:`!f_lasti` de los objetos " +"``FrameObject`` no se considera estable: " +"utilice :c:func:`PyFrame_GetLineNumber` en su lugar." #: ../Doc/whatsnew/3.10.rst:1982 msgid "CPython bytecode changes" @@ -3990,8 +4260,8 @@ msgid "" "longer supported. (Contributed by Christian Heimes in :issue:`43669`.)" msgstr "" ":pep:`644`: Python ahora requiere OpenSSL 1.1.1 o más reciente. OpenSSL " -"1.0.2 ya no es compatible. (Contribuido por Christian Heimes en :issue:" -"`43669`.)" +"1.0.2 ya no es compatible. (Contribuido por Christian Heimes " +"en :issue:`43669`.)" #: ../Doc/whatsnew/3.10.rst:1995 msgid "" @@ -3999,8 +4269,8 @@ msgid "" "required to build Python. (Contributed by Victor Stinner in :issue:`36020`.)" msgstr "" "Las funciones C99 :c:func:`snprintf` y :c:func:`vsnprintf` ahora son " -"necesarias para construir Python. (Contribuido por Victor Stinner en :issue:" -"`36020`.)" +"necesarias para construir Python. (Contribuido por Victor Stinner " +"en :issue:`36020`.)" #: ../Doc/whatsnew/3.10.rst:1999 msgid "" @@ -4046,13 +4316,13 @@ msgstr "" msgid "" "Some Linux distribution packaging policies recommend against bundling " "dependencies. For example, Fedora installs wheel packages in the ``/usr/" -"share/python-wheels/`` directory and don't install the ``ensurepip." -"_bundled`` package." +"share/python-wheels/`` directory and don't install the " +"``ensurepip._bundled`` package." msgstr "" "Algunas políticas de empaquetado de distribución de Linux recomiendan no " "empaquetar dependencias. Por ejemplo, Fedora instala paquetes de rueda en el " -"directorio ``/usr/share/python-wheels/`` y no instala el paquete ``ensurepip." -"_bundled``." +"directorio ``/usr/share/python-wheels/`` y no instala el paquete " +"``ensurepip._bundled``." #: ../Doc/whatsnew/3.10.rst:2020 msgid "(Contributed by Victor Stinner in :issue:`42856`.)" @@ -4096,8 +4366,8 @@ msgstr "" "Agregue la opción :option:`--with-openssl-rpath` al script ``configure``. La " "opción simplifica la construcción de Python con una instalación " "personalizada de OpenSSL, p. Ej. ``./configure --with-openssl=/path/to/" -"openssl --with-openssl-rpath=auto``. (Contribuido por Christian Heimes en :" -"issue:`43466`.)" +"openssl --with-openssl-rpath=auto``. (Contribuido por Christian Heimes " +"en :issue:`43466`.)" #: ../Doc/whatsnew/3.10.rst:2041 msgid "C API Changes" @@ -4125,14 +4395,14 @@ msgstr "(Contribuido por Petr Viktorin en :pep:`652` y :issue:`43795`.)" #: ../Doc/whatsnew/3.10.rst:2056 msgid "" -"The result of :c:func:`PyNumber_Index` now always has exact type :class:" -"`int`. Previously, the result could have been an instance of a subclass of " -"``int``. (Contributed by Serhiy Storchaka in :issue:`40792`.)" +"The result of :c:func:`PyNumber_Index` now always has exact " +"type :class:`int`. Previously, the result could have been an instance of a " +"subclass of ``int``. (Contributed by Serhiy Storchaka in :issue:`40792`.)" msgstr "" -"El resultado de :c:func:`PyNumber_Index` ahora siempre tiene el tipo exacto :" -"class:`int`. Anteriormente, el resultado podría haber sido una instancia de " -"una subclase de ``int``. (Contribuido por Serhiy Storchaka en :issue:" -"`40792`.)" +"El resultado de :c:func:`PyNumber_Index` ahora siempre tiene el tipo " +"exacto :class:`int`. Anteriormente, el resultado podría haber sido una " +"instancia de una subclase de ``int``. (Contribuido por Serhiy Storchaka " +"en :issue:`40792`.)" #: ../Doc/whatsnew/3.10.rst:2060 msgid "" @@ -4140,22 +4410,23 @@ msgid "" "structure: the list of the original command line arguments passed to the " "Python executable. (Contributed by Victor Stinner in :issue:`23427`.)" msgstr "" -"Agregue un nuevo miembro :c:member:`~PyConfig.orig_argv` a la estructura :c:" -"type:`PyConfig`: la lista de los argumentos originales de la línea de " -"comandos pasados al ejecutable de Python. (Contribuido por Victor Stinner " -"en :issue:`23427`.)" +"Agregue un nuevo miembro :c:member:`~PyConfig.orig_argv` a la " +"estructura :c:type:`PyConfig`: la lista de los argumentos originales de la " +"línea de comandos pasados al ejecutable de Python. (Contribuido por Victor " +"Stinner en :issue:`23427`.)" #: ../Doc/whatsnew/3.10.rst:2065 msgid "" -"The :c:func:`PyDateTime_DATE_GET_TZINFO` and :c:func:" -"`PyDateTime_TIME_GET_TZINFO` macros have been added for accessing the " -"``tzinfo`` attributes of :class:`datetime.datetime` and :class:`datetime." -"time` objects. (Contributed by Zackery Spytz in :issue:`30155`.)" +"The :c:func:`PyDateTime_DATE_GET_TZINFO` " +"and :c:func:`PyDateTime_TIME_GET_TZINFO` macros have been added for " +"accessing the ``tzinfo`` attributes of :class:`datetime.datetime` " +"and :class:`datetime.time` objects. (Contributed by Zackery Spytz " +"in :issue:`30155`.)" msgstr "" -"Se han agregado las macros :c:func:`PyDateTime_DATE_GET_TZINFO` y :c:func:" -"`PyDateTime_TIME_GET_TZINFO` para acceder a los atributos ``tzinfo`` de los " -"objetos :class:`datetime.datetime` y :class:`datetime.time`. (Contribuido " -"por Zackery Spytz en :issue:`30155`.)" +"Se han agregado las macros :c:func:`PyDateTime_DATE_GET_TZINFO` " +"y :c:func:`PyDateTime_TIME_GET_TZINFO` para acceder a los atributos " +"``tzinfo`` de los objetos :class:`datetime.datetime` " +"y :class:`datetime.time`. (Contribuido por Zackery Spytz en :issue:`30155`.)" #: ../Doc/whatsnew/3.10.rst:2071 msgid "" @@ -4163,8 +4434,8 @@ msgid "" "function. (Contributed by Hai Shi in :issue:`41842`.)" msgstr "" "Agregue una función :c:func:`PyCodec_Unregister` para anular el registro de " -"una función de búsqueda de códec. (Contribuido por Hai Shi en :issue:" -"`41842`.)" +"una función de búsqueda de códec. (Contribuido por Hai Shi " +"en :issue:`41842`.)" #: ../Doc/whatsnew/3.10.rst:2075 msgid "" @@ -4186,13 +4457,13 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2082 msgid "" -"Add :c:func:`PyModule_AddObjectRef` function: similar to :c:func:" -"`PyModule_AddObject` but don't steal a reference to the value on success. " -"(Contributed by Victor Stinner in :issue:`1635741`.)" +"Add :c:func:`PyModule_AddObjectRef` function: similar " +"to :c:func:`PyModule_AddObject` but don't steal a reference to the value on " +"success. (Contributed by Victor Stinner in :issue:`1635741`.)" msgstr "" -"Agregue la función :c:func:`PyModule_AddObjectRef`: similar a :c:func:" -"`PyModule_AddObject` pero no robe una referencia al valor en caso de éxito. " -"(Contribuido por Victor Stinner en :issue:`1635741`.)" +"Agregue la función :c:func:`PyModule_AddObjectRef`: similar " +"a :c:func:`PyModule_AddObject` pero no robe una referencia al valor en caso " +"de éxito. (Contribuido por Victor Stinner en :issue:`1635741`.)" #: ../Doc/whatsnew/3.10.rst:2087 msgid "" @@ -4206,13 +4477,13 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2091 msgid "" -"The :c:func:`PyType_FromSpecWithBases` and :c:func:" -"`PyType_FromModuleAndSpec` functions now accept a single class as the " -"*bases* argument. (Contributed by Serhiy Storchaka in :issue:`42423`.)" +"The :c:func:`PyType_FromSpecWithBases` " +"and :c:func:`PyType_FromModuleAndSpec` functions now accept a single class " +"as the *bases* argument. (Contributed by Serhiy Storchaka in :issue:`42423`.)" msgstr "" -"Las funciones :c:func:`PyType_FromSpecWithBases` y :c:func:" -"`PyType_FromModuleAndSpec` ahora aceptan una sola clase como argumento " -"*bases*. (Contribuido por Serhiy Storchaka en :issue:`42423`.)" +"Las funciones :c:func:`PyType_FromSpecWithBases` " +"y :c:func:`PyType_FromModuleAndSpec` ahora aceptan una sola clase como " +"argumento *bases*. (Contribuido por Serhiy Storchaka en :issue:`42423`.)" #: ../Doc/whatsnew/3.10.rst:2095 msgid "" @@ -4253,12 +4524,12 @@ msgid "" "The limited C API is now supported if :ref:`Python is built in debug mode " "` (if the ``Py_DEBUG`` macro is defined). In the limited C API, " "the :c:func:`Py_INCREF` and :c:func:`Py_DECREF` functions are now " -"implemented as opaque function calls, rather than accessing directly the :c:" -"member:`PyObject.ob_refcnt` member, if Python is built in debug mode and the " -"``Py_LIMITED_API`` macro targets Python 3.10 or newer. It became possible to " -"support the limited C API in debug mode because the :c:type:`PyObject` " -"structure is the same in release and debug mode since Python 3.8 (see :issue:" -"`36465`)." +"implemented as opaque function calls, rather than accessing directly " +"the :c:member:`PyObject.ob_refcnt` member, if Python is built in debug mode " +"and the ``Py_LIMITED_API`` macro targets Python 3.10 or newer. It became " +"possible to support the limited C API in debug mode because " +"the :c:type:`PyObject` structure is the same in release and debug mode since " +"Python 3.8 (see :issue:`36465`)." msgstr "" "La API C limitada ahora es compatible si :ref:`Python is built in debug mode " "` (si se define la macro ``Py_DEBUG``). En la API C limitada, " @@ -4273,21 +4544,21 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2121 msgid "" "The limited C API is still not supported in the :option:`--with-trace-refs` " -"special build (``Py_TRACE_REFS`` macro). (Contributed by Victor Stinner in :" -"issue:`43688`.)" +"special build (``Py_TRACE_REFS`` macro). (Contributed by Victor Stinner " +"in :issue:`43688`.)" msgstr "" -"La API C limitada todavía no es compatible con la compilación especial :" -"option:`--with-trace-refs` (macro ``Py_TRACE_REFS``). (Contribuido por " -"Victor Stinner en :issue:`43688`.)" +"La API C limitada todavía no es compatible con la compilación " +"especial :option:`--with-trace-refs` (macro ``Py_TRACE_REFS``). (Contribuido " +"por Victor Stinner en :issue:`43688`.)" #: ../Doc/whatsnew/3.10.rst:2125 msgid "" "Add the :c:func:`Py_Is(x, y) ` function to test if the *x* object is " -"the *y* object, the same as ``x is y`` in Python. Add also the :c:func:" -"`Py_IsNone`, :c:func:`Py_IsTrue`, :c:func:`Py_IsFalse` functions to test if " -"an object is, respectively, the ``None`` singleton, the ``True`` singleton " -"or the ``False`` singleton. (Contributed by Victor Stinner in :issue:" -"`43753`.)" +"the *y* object, the same as ``x is y`` in Python. Add also " +"the :c:func:`Py_IsNone`, :c:func:`Py_IsTrue`, :c:func:`Py_IsFalse` functions " +"to test if an object is, respectively, the ``None`` singleton, the ``True`` " +"singleton or the ``False`` singleton. (Contributed by Victor Stinner " +"in :issue:`43753`.)" msgstr "" "Agregue la función :c:func:`Py_Is(x, y) ` para probar si el objeto " "*x* object is the *y*, lo mismo que ``x is y`` en Python. Agregue también " @@ -4298,51 +4569,52 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2132 msgid "" -"Add new functions to control the garbage collector from C code: :c:func:" -"`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`. These " -"functions allow to activate, deactivate and query the state of the garbage " -"collector from C code without having to import the :mod:`gc` module." +"Add new functions to control the garbage collector from C " +"code: :c:func:`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`. " +"These functions allow to activate, deactivate and query the state of the " +"garbage collector from C code without having to import the :mod:`gc` module." msgstr "" "Agregue nuevas funciones para controlar el recolector de basura desde el " -"código C: :c:func:`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:" -"`PyGC_IsEnabled()`. Estas funciones permiten activar, desactivar y consultar " -"el estado del recolector de basura desde código C sin tener que importar el " +"código " +"C: :c:func:`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`. " +"Estas funciones permiten activar, desactivar y consultar el estado del " +"recolector de basura desde código C sin tener que importar el " "módulo :mod:`gc`." #: ../Doc/whatsnew/3.10.rst:2139 -#, fuzzy msgid "" "Add a new :c:macro:`Py_TPFLAGS_DISALLOW_INSTANTIATION` type flag to disallow " "creating type instances. (Contributed by Victor Stinner in :issue:`43916`.)" msgstr "" -"Agregue un nuevo indicador de tipo :c:data:" -"`Py_TPFLAGS_DISALLOW_INSTANTIATION` para no permitir la creación de " -"instancias de tipo. (Contribuido por Victor Stinner en :issue:`43916`.)" +"Agregue un nuevo indicador de " +"tipo :c:macro:`Py_TPFLAGS_DISALLOW_INSTANTIATION` para no permitir la " +"creación de instancias de tipo. (Aportado por Victor Stinner " +"en :issue:`43916`.)" #: ../Doc/whatsnew/3.10.rst:2143 -#, fuzzy msgid "" "Add a new :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` type flag for creating " "immutable type objects: type attributes cannot be set nor deleted. " "(Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908`.)" msgstr "" -"Agregue un nuevo indicador de tipo :c:data:`Py_TPFLAGS_IMMUTABLETYPE` para " -"crear objetos de tipo inmutables: los atributos de tipo no se pueden " -"establecer ni eliminar. (Contribuido por Victor Stinner y Erlend E. Aasland " +"Agregue un nuevo indicador de tipo :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` para " +"crear objetos de tipo inmutable: los atributos de tipo no se pueden " +"establecer ni eliminar. (Aportado por Victor Stinner y Erlend E. Aasland " "en :issue:`43908`.)" #: ../Doc/whatsnew/3.10.rst:2150 msgid "" -"The ``PY_SSIZE_T_CLEAN`` macro must now be defined to use :c:func:" -"`PyArg_ParseTuple` and :c:func:`Py_BuildValue` formats which use ``#``: " -"``es#``, ``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` and ``Z#``. See :" -"ref:`arg-parsing` and :pep:`353`. (Contributed by Victor Stinner in :issue:" -"`40943`.)" +"The ``PY_SSIZE_T_CLEAN`` macro must now be defined to " +"use :c:func:`PyArg_ParseTuple` and :c:func:`Py_BuildValue` formats which use " +"``#``: ``es#``, ``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` and ``Z#``. " +"See :ref:`arg-parsing` and :pep:`353`. (Contributed by Victor Stinner " +"in :issue:`40943`.)" msgstr "" -"La macro ``PY_SSIZE_T_CLEAN`` ahora debe definirse para usar los formatos :c:" -"func:`PyArg_ParseTuple` y :c:func:`Py_BuildValue` que usan ``#``: ``es#``, " -"``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` y ``Z#``. Consulte :ref:`arg-" -"parsing` y :pep:`353`. (Aportado por Victor Stinner en :issue:`40943`.)" +"La macro ``PY_SSIZE_T_CLEAN`` ahora debe definirse para usar los " +"formatos :c:func:`PyArg_ParseTuple` y :c:func:`Py_BuildValue` que usan " +"``#``: ``es#``, ``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` y ``Z#``. " +"Consulte :ref:`arg-parsing` y :pep:`353`. (Aportado por Victor Stinner " +"en :issue:`40943`.)" #: ../Doc/whatsnew/3.10.rst:2156 msgid "" @@ -4363,6 +4635,9 @@ msgid "" "# define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)\n" "#endif" msgstr "" +"#si PY_VERSION_HEX < 0x030900A4\n" +"# define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)\n" +"#endif" #: ../Doc/whatsnew/3.10.rst:2165 msgid "(Contributed by Victor Stinner in :issue:`39573`.)" @@ -4386,9 +4661,9 @@ msgid "" "data. (Contributed by Inada Naoki in :issue:`36346`.)" msgstr "" "``PyUnicode_FromUnicode(NULL, size)`` y ``PyUnicode_FromStringAndSize(NULL, " -"size)`` generan ``DeprecationWarning`` ahora. Utilice :c:func:" -"`PyUnicode_New` para asignar un objeto Unicode sin datos iniciales. " -"(Contribuido por Inada Naoki en :issue:`36346`.)" +"size)`` generan ``DeprecationWarning`` ahora. " +"Utilice :c:func:`PyUnicode_New` para asignar un objeto Unicode sin datos " +"iniciales. (Contribuido por Inada Naoki en :issue:`36346`.)" #: ../Doc/whatsnew/3.10.rst:2176 msgid "" @@ -4396,74 +4671,72 @@ msgid "" "``unicodedata.ucnhash_CAPI`` has been moved to the internal C API. " "(Contributed by Victor Stinner in :issue:`42157`.)" msgstr "" -"La estructura ``_PyUnicode_Name_CAPI`` privada de la API ``unicodedata." -"ucnhash_CAPI`` de PyCapsule se ha movido a la API C interna. (Contribuido " -"por Victor Stinner en :issue:`42157`.)" +"La estructura ``_PyUnicode_Name_CAPI`` privada de la API " +"``unicodedata.ucnhash_CAPI`` de PyCapsule se ha movido a la API C interna. " +"(Contribuido por Victor Stinner en :issue:`42157`.)" #: ../Doc/whatsnew/3.10.rst:2180 msgid "" -":c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:" -"func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` and :c:func:" -"`Py_GetProgramName` functions now return ``NULL`` if called before :c:func:" -"`Py_Initialize` (before Python is initialized). Use the new :ref:`init-" -"config` API to get the :ref:`init-path-config`. (Contributed by Victor " -"Stinner in :issue:`42260`.)" +":c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` " +"and :c:func:`Py_GetProgramName` functions now return ``NULL`` if called " +"before :c:func:`Py_Initialize` (before Python is initialized). Use the " +"new :ref:`init-config` API to get the :ref:`init-path-config`. (Contributed " +"by Victor Stinner in :issue:`42260`.)" msgstr "" -"Las funciones :c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:" -"`Py_GetExecPrefix`, :c:func:`Py_GetProgramFullPath`, :c:func:" -"`Py_GetPythonHome` y :c:func:`Py_GetProgramName` ahora devuelven ``NULL`` si " -"se llama antes de :c:func:`Py_Initialize` (antes de que se inicialice " -"Python). Utilice la nueva API :ref:`init-config` para obtener el :ref:`init-" -"path-config`. (Aportado por Victor Stinner en :issue:`42260`.)" +"Las " +"funciones :c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` " +"y :c:func:`Py_GetProgramName` ahora devuelven ``NULL`` si se llama antes " +"de :c:func:`Py_Initialize` (antes de que se inicialice Python). Utilice la " +"nueva API :ref:`init-config` para obtener el :ref:`init-path-config`. " +"(Aportado por Victor Stinner en :issue:`42260`.)" #: ../Doc/whatsnew/3.10.rst:2187 msgid "" -":c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` and :c:func:" -"`PyCell_SET` macros can no longer be used as l-value or r-value. For " -"example, ``x = PyList_SET_ITEM(a, b, c)`` and ``PyList_SET_ITEM(a, b, c) = " -"x`` now fail with a compiler error. It prevents bugs like ``if " +":c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` " +"and :c:func:`PyCell_SET` macros can no longer be used as l-value or r-value. " +"For example, ``x = PyList_SET_ITEM(a, b, c)`` and ``PyList_SET_ITEM(a, b, c) " +"= x`` now fail with a compiler error. It prevents bugs like ``if " "(PyList_SET_ITEM (a, b, c) < 0) ...`` test. (Contributed by Zackery Spytz " "and Victor Stinner in :issue:`30459`.)" msgstr "" -"Las macros :c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` y :c:func:" -"`PyCell_SET` ya no se pueden utilizar como valor l o valor r. Por ejemplo, " -"``x = PyList_SET_ITEM(a, b, c)`` y ``PyList_SET_ITEM(a, b, c) = x`` ahora " -"fallan con un error del compilador. Previene errores como la prueba ``if " -"(PyList_SET_ITEM (a, b, c) < 0) ...``. (Contribuido por Zackery Spytz y " +"Las macros :c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` " +"y :c:func:`PyCell_SET` ya no se pueden utilizar como valor l o valor r. Por " +"ejemplo, ``x = PyList_SET_ITEM(a, b, c)`` y ``PyList_SET_ITEM(a, b, c) = x`` " +"ahora fallan con un error del compilador. Previene errores como la prueba " +"``if (PyList_SET_ITEM (a, b, c) < 0) ...``. (Contribuido por Zackery Spytz y " "Victor Stinner en :issue:`30459`.)" #: ../Doc/whatsnew/3.10.rst:2194 msgid "" "The non-limited API files ``odictobject.h``, ``parser_interface.h``, " -"``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, ``pyfpe." -"h``, and ``pytime.h`` have been moved to the ``Include/cpython`` directory. " -"These files must not be included directly, as they are already included in " -"``Python.h``; see :ref:`api-includes`. If they have been included directly, " -"consider including ``Python.h`` instead. (Contributed by Nicholas Sim in :" -"issue:`35134`.)" +"``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, " +"``pyfpe.h``, and ``pytime.h`` have been moved to the ``Include/cpython`` " +"directory. These files must not be included directly, as they are already " +"included in ``Python.h``; see :ref:`api-includes`. If they have been " +"included directly, consider including ``Python.h`` instead. (Contributed by " +"Nicholas Sim in :issue:`35134`.)" msgstr "" "Los archivos de API no limitados ``odictobject.h``, ``parser_interface.h``, " -"``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, ``pyfpe." -"h`` y ``pytime.h`` se han movido al directorio ``Include/cpython``. Estos " -"archivos no deben incluirse directamente, ya que ya están incluidos en " +"``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, " +"``pyfpe.h`` y ``pytime.h`` se han movido al directorio ``Include/cpython``. " +"Estos archivos no deben incluirse directamente, ya que ya están incluidos en " "``Python.h``; ver :ref:`api-includes`. Si se han incluido directamente, " -"considere incluir ``Python.h`` en su lugar. (Aportado por Nicholas Sim en :" -"issue:`35134`.)" +"considere incluir ``Python.h`` en su lugar. (Aportado por Nicholas Sim " +"en :issue:`35134`.)" #: ../Doc/whatsnew/3.10.rst:2202 -#, fuzzy msgid "" "Use the :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable " "type objects. Do not rely on :c:macro:`Py_TPFLAGS_HEAPTYPE` to decide if a " "type object is mutable or not; check if :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` " -"is set instead. (Contributed by Victor Stinner and Erlend E. Aasland in :" -"issue:`43908`.)" +"is set instead. (Contributed by Victor Stinner and Erlend E. Aasland " +"in :issue:`43908`.)" msgstr "" -"Utilice el indicador de tipo :c:data:`Py_TPFLAGS_IMMUTABLETYPE` para crear " -"objetos de tipo inmutable. No confíe en :c:data:`Py_TPFLAGS_HEAPTYPE` para " -"decidir si un objeto de tipo es mutable o no; compruebe si :c:data:" -"`Py_TPFLAGS_IMMUTABLETYPE` está configurado en su lugar. (Contribuido por " -"Victor Stinner y Erlend E. Aasland en :issue:`43908`.)" +"Utilice el indicador de tipo :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` para crear " +"objetos de tipo inmutable. No confíe en :c:macro:`Py_TPFLAGS_HEAPTYPE` para " +"decidir si un objeto de tipo es mutable o no; compruebe " +"si :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` está configurado en su lugar. " +"(Aportado por Victor Stinner y Erlend E. Aasland en :issue:`43908`.)" #: ../Doc/whatsnew/3.10.rst:2208 msgid "" @@ -4495,27 +4768,27 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2226 msgid "" -"``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or :c:macro:" -"`PyUnicode_GET_LENGTH`" +"``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` " +"or :c:macro:`PyUnicode_GET_LENGTH`" msgstr "" -"``Py_UNICODE_strlen``: utilice :c:func:`PyUnicode_GetLength` o :c:macro:" -"`PyUnicode_GET_LENGTH`" +"``Py_UNICODE_strlen``: utilice :c:func:`PyUnicode_GetLength` " +"o :c:macro:`PyUnicode_GET_LENGTH`" #: ../Doc/whatsnew/3.10.rst:2228 msgid "" -"``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or :c:func:" -"`PyUnicode_FromFormat`" +"``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` " +"or :c:func:`PyUnicode_FromFormat`" msgstr "" -"``Py_UNICODE_strcat``: utilice :c:func:`PyUnicode_CopyCharacters` o :c:func:" -"`PyUnicode_FromFormat`" +"``Py_UNICODE_strcat``: utilice :c:func:`PyUnicode_CopyCharacters` " +"o :c:func:`PyUnicode_FromFormat`" #: ../Doc/whatsnew/3.10.rst:2230 msgid "" -"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use :c:func:" -"`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`" +"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: " +"use :c:func:`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`" msgstr "" -"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: utilice :c:func:" -"`PyUnicode_CopyCharacters` o :c:func:`PyUnicode_Substring`" +"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: " +"utilice :c:func:`PyUnicode_CopyCharacters` o :c:func:`PyUnicode_Substring`" #: ../Doc/whatsnew/3.10.rst:2232 msgid "``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare`" @@ -4527,11 +4800,11 @@ msgstr "``Py_UNICODE_strncmp``: utilice :c:func:`PyUnicode_Tailmatch`" #: ../Doc/whatsnew/3.10.rst:2234 msgid "" -"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use :c:func:" -"`PyUnicode_FindChar`" +"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: " +"use :c:func:`PyUnicode_FindChar`" msgstr "" -"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: utilice :c:func:" -"`PyUnicode_FindChar`" +"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: " +"utilice :c:func:`PyUnicode_FindChar`" #: ../Doc/whatsnew/3.10.rst:2237 msgid "" @@ -4543,21 +4816,24 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2240 msgid "" -"Removed ``PyLong_FromUnicode()``. Please migrate to :c:func:" -"`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki in :issue:`41103`.)" +"Removed ``PyLong_FromUnicode()``. Please migrate " +"to :c:func:`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki " +"in :issue:`41103`.)" msgstr "" -"Eliminado ``PyLong_FromUnicode()``. Migra a :c:func:" -"`PyLong_FromUnicodeObject`. (Contribuido por Inada Naoki en :issue:`41103`.)" +"Eliminado ``PyLong_FromUnicode()``. Migra " +"a :c:func:`PyLong_FromUnicodeObject`. (Contribuido por Inada Naoki " +"en :issue:`41103`.)" #: ../Doc/whatsnew/3.10.rst:2243 msgid "" -"Removed ``PyUnicode_AsUnicodeCopy()``. Please use :c:func:" -"`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` (Contributed " -"by Inada Naoki in :issue:`41103`.)" +"Removed ``PyUnicode_AsUnicodeCopy()``. Please " +"use :c:func:`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` " +"(Contributed by Inada Naoki in :issue:`41103`.)" msgstr "" -"Eliminado ``PyUnicode_AsUnicodeCopy()``. Utilice :c:func:" -"`PyUnicode_AsUCS4Copy` o :c:func:`PyUnicode_AsWideCharString` (contribución " -"de Inada Naoki en :issue:`41103`)." +"Eliminado ``PyUnicode_AsUnicodeCopy()``. " +"Utilice :c:func:`PyUnicode_AsUCS4Copy` " +"o :c:func:`PyUnicode_AsWideCharString` (contribución de Inada Naoki " +"en :issue:`41103`)." #: ../Doc/whatsnew/3.10.rst:2247 msgid "" @@ -4572,19 +4848,21 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2251 msgid "" "Removed undocumented macros ``Py_ALLOW_RECURSION`` and " -"``Py_END_ALLOW_RECURSION`` and the ``recursion_critical`` field of the :c:" -"type:`PyInterpreterState` structure. (Contributed by Serhiy Storchaka in :" -"issue:`41936`.)" +"``Py_END_ALLOW_RECURSION`` and the ``recursion_critical`` field of " +"the :c:type:`PyInterpreterState` structure. (Contributed by Serhiy Storchaka " +"in :issue:`41936`.)" msgstr "" "Se eliminaron las macros ``Py_ALLOW_RECURSION`` y ``Py_END_ALLOW_RECURSION`` " -"sin documentar y el campo ``recursion_critical`` de la estructura :c:type:" -"`PyInterpreterState`. (Contribuido por Serhiy Storchaka en :issue:`41936`.)" +"sin documentar y el campo ``recursion_critical`` de la " +"estructura :c:type:`PyInterpreterState`. (Contribuido por Serhiy Storchaka " +"en :issue:`41936`.)" #: ../Doc/whatsnew/3.10.rst:2256 msgid "" "Removed the undocumented ``PyOS_InitInterrupts()`` function. Initializing " -"Python already implicitly installs signal handlers: see :c:member:`PyConfig." -"install_signal_handlers`. (Contributed by Victor Stinner in :issue:`41713`.)" +"Python already implicitly installs signal handlers: " +"see :c:member:`PyConfig.install_signal_handlers`. (Contributed by Victor " +"Stinner in :issue:`41713`.)" msgstr "" "Se eliminó la función ``PyOS_InitInterrupts()`` indocumentada. La " "inicialización de Python ya instala implícitamente controladores de señales: " @@ -4661,8 +4939,8 @@ msgstr "" "Elimine :c:func:`PyOS_ReadlineFunctionPointer` de los encabezados limitados " "de la API C y de ``python3.dll``, la biblioteca que proporciona la ABI " "estable en Windows. Dado que la función toma un argumento ``FILE*``, no se " -"puede garantizar su estabilidad ABI. (Contribuido por Petr Viktorin en :" -"issue:`43868`.)" +"puede garantizar su estabilidad ABI. (Contribuido por Petr Viktorin " +"en :issue:`43868`.)" #: ../Doc/whatsnew/3.10.rst:2288 msgid "" @@ -4762,8 +5040,8 @@ msgstr "``PyArena_AddPyObject()``" #: ../Doc/whatsnew/3.10.rst:2320 msgid "" "These functions were undocumented, excluded from the limited C API, and were " -"only used internally by the compiler. (Contributed by Victor Stinner in :" -"issue:`43244`.)" +"only used internally by the compiler. (Contributed by Victor Stinner " +"in :issue:`43244`.)" msgstr "" "Estas funciones no estaban documentadas, estaban excluidas de la API C " "limitada y el compilador solo las usaba internamente. (Contribuido por " @@ -4779,7 +5057,7 @@ msgstr "" #: ../Doc/whatsnew/3.10.rst:2329 msgid "Notable security feature in 3.10.7" -msgstr "" +msgstr "Característica de seguridad notable en 3.10.7" #: ../Doc/whatsnew/3.10.rst:2331 msgid "" @@ -4793,27 +5071,42 @@ msgid "" "limitation ` documentation. The default limit is 4300 " "digits in string form." msgstr "" +"La conversión entre :class:`int` y :class:`str` en bases distintas de 2 " +"(binario), 4, 8 (octal), 16 (hexadecimal) o 32, como la base 10 (decimal), " +"ahora genera un :exc:`ValueError` si el número de dígitos en forma de cadena " +"está por encima de un límite para evitar posibles ataques de denegación de " +"servicio debido a la complejidad algorítmica. Esta es una mitigación " +"para :cve:`2020-10735`. Este límite se puede configurar o deshabilitar " +"mediante una variable de entorno, un indicador de línea de comando o las " +"API :mod:`sys`. Consulte la documentación de :ref:`integer string conversion " +"length limitation `. El límite predeterminado es 4300 " +"dígitos en forma de cadena." #: ../Doc/whatsnew/3.10.rst:2342 msgid "Notable security feature in 3.10.8" -msgstr "" +msgstr "Característica de seguridad notable en 3.10.8" #: ../Doc/whatsnew/3.10.rst:2344 msgid "" "The deprecated :mod:`!mailcap` module now refuses to inject unsafe text " "(filenames, MIME types, parameters) into shell commands. Instead of using " "such text, it will warn and act as if a match was not found (or for test " -"commands, as if the test failed). (Contributed by Petr Viktorin in :gh:" -"`98966`.)" +"commands, as if the test failed). (Contributed by Petr Viktorin " +"in :gh:`98966`.)" msgstr "" +"El módulo :mod:`!mailcap` en desuso ahora se niega a inyectar texto no " +"seguro (nombres de archivos, tipos MIME, parámetros) en los comandos del " +"shell. En lugar de utilizar dicho texto, advertirá y actuará como si no se " +"encontrara una coincidencia (o para comandos de prueba, como si la prueba " +"fallara). (Aportado por Petr Viktorin en :gh:`98966`.)" #: ../Doc/whatsnew/3.10.rst:2351 msgid "Notable changes in 3.10.12" -msgstr "" +msgstr "Cambios notables en 3.10.12" #: ../Doc/whatsnew/3.10.rst:2354 msgid "tarfile" -msgstr "" +msgstr "archivo tar" #: ../Doc/whatsnew/3.10.rst:2356 msgid "" @@ -4825,3 +5118,11 @@ msgid "" "Python 3.14, the default will switch to ``'data'``. (Contributed by Petr " "Viktorin in :pep:`706`.)" msgstr "" +"Los métodos de extracción en :mod:`tarfile` y :func:`shutil.unpack_archive` " +"tienen un nuevo argumento, *filter*, que permite limitar funciones tar que " +"puedan resultar sorprendentes o peligrosas, como la creación de archivos " +"fuera del directorio de destino. Consulte :ref:`tarfile-extraction-filter` " +"para obtener más detalles. En Python 3.12, el uso sin el argumento *filter* " +"mostrará un :exc:`DeprecationWarning`. En Python 3.14, el valor " +"predeterminado cambiará a ``'data'``. (Aportado por Petr Viktorin " +"en :pep:`706`.)"