Skip to content

Commit

Permalink
Adapt some snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaureir committed Nov 23, 2024
1 parent ffcbbce commit ebecd5f
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions whatsnew/2.2.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""
Expand Down

0 comments on commit ebecd5f

Please sign in to comment.