Skip to content

Traducido archivo c-api/iter #3382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Build and test pass in local
  • Loading branch information
davidspindola committed Apr 10, 2025
commit e411ee29a62aec635b685a2ce70ddd412f51037d
27 changes: 11 additions & 16 deletions c-api/iter.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-21 16:38-0300\n"
"PO-Revision-Date: 2025-04-10 22:58+0200\n"
"PO-Revision-Date: 2025-04-10 23:48+0200\n"
"Last-Translator: David Spindola\n"
"Language-Team: python-doc-es\n"
"Language: es\n"
Expand Down Expand Up @@ -96,32 +96,27 @@ msgid ""
" /* continue doing useful work */\n"
"}"
msgstr ""
"``PyObject`` ``*iterator`` = ``PyObject_GetIter(obj)``;\n"
"``PyObject`` ``*item``;\n"
"PyObject *iterator = PyObject_GetIter(obj);\n"
"PyObject *item;\n"
"\n"
"if (iterator == NULL) {\n"
" ``/*`` propaga el error ``*/``\n"
"\n"
" /* propagate error */\n"
"}\n"
"\n"
"while ((item = PyIter_Next(iterator))) {\n"
" ``/*`` hace algo con *item* ``*/``\n"
" /* do something with item */\n"
" ...\n"
" ``/*`` libera la referencia cuando termina ``*/``\n"
" ``Py_DECREF(item)``;\n"
"\n"
" /* release reference when done */\n"
" Py_DECREF(item);\n"
"}\n"
"\n"
"``Py_DECREF(iterator)``;\n"
"\n"
"if (``PyErr_Occurred()``) {\n"
" ``/*`` propaga el error ``*/``\n"
"Py_DECREF(iterator);\n"
"\n"
"if (PyErr_Occurred()) {\n"
" /* propagate error */\n"
"}\n"
"\n"
"else {\n"
" ``/*`` continua haciendo trabajo útil ``*/``\n"
"\n"
" /* continue doing useful work */\n"
"}"

#: ../Doc/c-api/iter.rst:59
Expand Down