@@ -181,26 +181,26 @@ msgid ""
181181"):\n"
182182" ..."
183183msgstr ""
184- "con (CtxManager() como ejemplo):\n"
184+ "with (CtxManager() as ejemplo):\n"
185185" ...\n"
186186"\n"
187- "con (\n"
187+ "with (\n"
188188" CtxManager1(),\n"
189189" CtxManager2()\n"
190190"):\n"
191191" ...\n"
192192"\n"
193- "con (CtxManager1() como ejemplo,\n"
193+ "with (CtxManager1() as ejemplo,\n"
194194" CtxManager2()):\n"
195195" ...\n"
196196"\n"
197- "con (CtxManager1(),\n"
198- " CtxManager2() como ejemplo):\n"
197+ "with (CtxManager1(),\n"
198+ " CtxManager2() as ejemplo):\n"
199199" ...\n"
200200"\n"
201- "con (\n"
202- " CtxManager1() como ejemplo1,\n"
203- " CtxManager2() como ejemplo2\n"
201+ "with (\n"
202+ " CtxManager1() as ejemplo1,\n"
203+ " CtxManager2() as ejemplo2\n"
204204"):\n"
205205" ..."
206206
@@ -218,10 +218,10 @@ msgid ""
218218"):\n"
219219" ..."
220220msgstr ""
221- "con (\n"
222- " CtxManager1() como ejemplo1,\n"
223- " CtxManager2() como ejemplo2,\n"
224- " CtxManager3() como ejemplo3,\n"
221+ "with (\n"
222+ " CtxManager1() as ejemplo1,\n"
223+ " CtxManager2() as ejemplo2,\n"
224+ " CtxManager3() as ejemplo3,\n"
225225"):\n"
226226" ..."
227227
@@ -269,9 +269,9 @@ msgid ""
269269" 38: 4, 39: 4, 45: 5, 46: 5, 47: 5, 48: 5, 49: 5, 54: 6,\n"
270270"some_other_code = foo()"
271271msgstr ""
272- "esperado = {9:1, 18:2, 19:2, 27:3, 28:3, 29:3, 36:4, 37:4,\n"
273- " 38:4, 39:4, 45:5, 46:5, 47:5, 48:5, 49:5, 54:6,\n"
274- "algún_otro_código = foo()"
272+ "expected = {9: 1, 18: 2, 19: 2, 27: 3, 28: 3, 29: 3, 36: 4, 37: 4,\n"
273+ " 38: 4, 39: 4, 45: 5, 46: 5, 47: 5, 48: 5, 49: 5, 54: 6,\n"
274+ "some_other_code = foo()"
275275
276276#: ../Doc/whatsnew/3.10.rst:166
277277msgid ""
@@ -288,10 +288,10 @@ msgid ""
288288" ^\n"
289289"SyntaxError: invalid syntax"
290290msgstr ""
291- "Archivo \" ejemplo .py\" , línea 3\n"
292- " algún_otro_código = foo()\n"
291+ "File \" example .py\" , line 3\n"
292+ " some_other_code = foo()\n"
293293" ^\n"
294- "SyntaxError: sintaxis no válida "
294+ "SyntaxError: invalid syntax "
295295
296296#: ../Doc/whatsnew/3.10.rst:176
297297msgid "but in Python 3.10 a more informative error is emitted:"
@@ -304,10 +304,10 @@ msgid ""
304304" ^\n"
305305"SyntaxError: '{' was never closed"
306306msgstr ""
307- "Archivo \" ejemplo .py\" , línea 1\n"
308- " esperado = {9:1, 18:2, 19:2, 27:3, 28:3, 29:3, 36:4, 37:4,\n"
307+ "File \" example .py\" , line 1\n"
308+ " expected = {9: 1, 18: 2, 19: 2, 27: 3, 28: 3, 29: 3, 36: 4, 37: 4,\n"
309309" ^\n"
310- "SyntaxError: '{' nunca se cerró "
310+ "SyntaxError: '{' was never closed "
311311
312312#: ../Doc/whatsnew/3.10.rst:186
313313msgid ""
@@ -354,11 +354,11 @@ msgid ""
354354" ^\n"
355355"SyntaxError: Generator expression must be parenthesized"
356356msgstr ""
357- ">>> foo(x, z para z en el rango (10), t, w)\n"
358- " Archivo \" <stdin>\" , línea 1\n"
359- " foo(x, z para z en el rango (10), t, w)\n"
357+ ">>> foo(x, z for z in range (10), t, w)\n"
358+ " File \" <stdin>\" , line 1\n"
359+ " foo(x, z for z in range (10), t, w)\n"
360360" ^\n"
361- "SyntaxError: la expresión del generador debe estar entre paréntesis "
361+ "SyntaxError: Generator expression must be parenthesized "
362362
363363#: ../Doc/whatsnew/3.10.rst:207
364364msgid "now Python 3.10 will display the exception as:"
@@ -372,11 +372,11 @@ msgid ""
372372" ^^^^^^^^^^^^^^^^^^^^\n"
373373"SyntaxError: Generator expression must be parenthesized"
374374msgstr ""
375- ">>> foo(x, z para z en el rango (10), t, w)\n"
376- " Archivo \" <stdin>\" , línea 1\n"
377- " foo(x, z para z en el rango (10), t, w)\n"
375+ ">>> foo(x, z for z in range (10), t, w)\n"
376+ " File \" <stdin>\" , line 1\n"
377+ " foo(x, z for z in range (10), t, w)\n"
378378" ^^^^^^^^^^^^^^^^^^^^\n"
379- "SyntaxError: la expresión del generador debe estar entre paréntesis "
379+ "SyntaxError: Generator expression must be parenthesized "
380380
381381#: ../Doc/whatsnew/3.10.rst:217
382382msgid "This improvement was contributed by Pablo Galindo in :issue:`43914`."
@@ -404,11 +404,10 @@ msgid ""
404404" ^\n"
405405"SyntaxError: expected ':'"
406406msgstr ""
407- ">>> si cohete.posición > evento_horizonte \n"
408- " Archivo \" <stdin>\" , línea 1\n"
409- " si cohete.posición > event_horizon\n"
407+ ">>> if rocket.position > event_horizon \n"
408+ " File \" <stdin>\" , line 1\n"
409+ " if rocket.position > event_horizon\n"
410410" ^\n"
411- "Error de sintaxis: esperado ':'"
412411
413412#: ../Doc/whatsnew/3.10.rst:232
414413msgid "(Contributed by Pablo Galindo in :issue:`42997`.)"
@@ -427,12 +426,11 @@ msgid ""
427426" ^\n"
428427"SyntaxError: did you forget parentheses around the comprehension target?"
429428msgstr ""
430- ">>> {x,y para x,y en zip('abcd', '1234')}\n"
431- " Archivo \" <stdin>\" , línea 1\n"
432- " {x,y para x,y en zip('abcd', '1234')}\n"
429+ ">>> {x,y for x,y in zip('abcd', '1234')}\n"
430+ " File \" <stdin>\" , line 1\n"
431+ " {x,y for x,y in zip('abcd', '1234')}\n"
433432" ^\n"
434- "Error de sintaxis: ¿olvidó los paréntesis alrededor del objetivo de "
435- "comprensión?"
433+ "SyntaxError: did you forget parentheses around the comprehension target?"
436434
437435#: ../Doc/whatsnew/3.10.rst:244
438436msgid "(Contributed by Pablo Galindo in :issue:`43017`.)"
@@ -453,14 +451,14 @@ msgid ""
453451" ^\n"
454452"SyntaxError: invalid syntax. Perhaps you forgot a comma?"
455453msgstr ""
456- ">>> elementos = {\n"
454+ ">>> items = {\n"
457455"... x: 1,\n"
458- "... años : 2\n"
456+ "... y : 2\n"
459457"... z: 3,\n"
460- " Archivo \" <stdin>\" , línea 3\n"
458+ " File \" <stdin>\" , line 3\n"
461459" y: 2\n"
462460" ^\n"
463- "SyntaxError: sintaxis no válida. ¿Quizás olvidaste una coma ?"
461+ "SyntaxError: invalid syntax. Perhaps you forgot a comma ?"
464462
465463#: ../Doc/whatsnew/3.10.rst:259
466464msgid "(Contributed by Pablo Galindo in :issue:`43822`.)"
0 commit comments