From ebecd5f7c7974d3f883b421d9e55418d7132b6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Sun, 24 Nov 2024 00:58:23 +0100 Subject: [PATCH] Adapt some snippets --- whatsnew/2.2.po | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/whatsnew/2.2.po b/whatsnew/2.2.po index b2a69166f9..52b25502c8 100644 --- a/whatsnew/2.2.po +++ b/whatsnew/2.2.po @@ -1158,22 +1158,22 @@ msgid "" "Dec 12\n" "Oct 10" msgstr "" -">>> m = {'Ene': 1, 'Feb': 2, 'Mar': 3, 'Abr': 4, 'May': 5, 'Jun': 6,\n" -"... 'Jul': 7, 'Ago': 8, 'Sep': ​​9, 'Oct': 10, 'Nov': 11, 'Dic': 12}\n" -">>> para clave en m: print clave, m[clave]\n" +">>> m = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6,\n" +"... 'Jul': 7, 'Aug': 8, 'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12}\n" +">>> for key in m: print key, m[key]\n" "...\n" -"3 Mar\n" -"2 Feb\n" -"8 Ago\n" -"9 Sep\n" -"5 May\n" -"6 Jun\n" -"7 Jul\n" -"1 Ene\n" -"4 Abr\n" -"11 Nov\n" -"12 Dic\n" -"10 Oct" +"Mar 3\n" +"Feb 2\n" +"Aug 8\n" +"Sep 9\n" +"May 5\n" +"Jun 6\n" +"Jul 7\n" +"Jan 1\n" +"Apr 4\n" +"Nov 11\n" +"Dec 12\n" +"Oct 10" #: ../Doc/whatsnew/2.2.rst:513 msgid "" @@ -1206,9 +1206,9 @@ msgid "" " # do something for each line\n" " ..." msgstr "" -"para línea en archivo:\n" -"# hacer algo para cada línea\n" -"..." +"for line in file:\n" +" # do something for each line\n" +" ..." #: ../Doc/whatsnew/2.2.rst:527 msgid "" @@ -1280,8 +1280,8 @@ msgid "" " yield i" msgstr "" "def generate_ints(N):\n" -"para i en rango(N):\n" -"rendimiento i" +" for i in range(N):\n" +" yield i" #: ../Doc/whatsnew/2.2.rst:563 msgid "" @@ -1471,8 +1471,8 @@ msgid "" "sentence := \"Store it in the neighboring harbor\"\n" "if (i := find(\"or\", sentence)) > 5 then write(i)" msgstr "" -"oración := \"Guardarlo en el puerto vecino\"\n" -"si (i := find(\"o\", oración)) > 5 entonces write(i)" +"sentence := \"Store it in the neighboring harbor\"\n" +"if (i := find(\"or\", sentence)) > 5 then write(i)" #: ../Doc/whatsnew/2.2.rst:645 msgid ""