Skip to content

Traducido c-api/iterator #175

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 2 commits into from
May 9, 2020
Merged
Changes from all commits
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
34 changes: 27 additions & 7 deletions c-api/iterator.po
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
# Copyright (C) 2001-2020, Python Software Foundation
# This file is distributed under the same license as the Python package.
# Maintained by the python-doc-es workteam.
# Maintained by the python-doc-es workteam.
# docs-es@python.org / https://mail.python.org/mailman3/lists/docs-es.python.org/
# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to get the list of volunteers
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-06 11:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2020-05-09 15:46+0200\n"
"Language-Team: python-doc-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"
"Last-Translator: \n"
"Language: es\n"
"X-Generator: Poedit 2.3\n"

#: ../Doc/c-api/iterator.rst:6
msgid "Iterator Objects"
msgstr ""
msgstr "Objetos iteradores"

#: ../Doc/c-api/iterator.rst:8
msgid ""
Expand All @@ -29,34 +31,48 @@ msgid ""
"sentinel value, calling the callable for each item in the sequence, and "
"ending the iteration when the sentinel value is returned."
msgstr ""
"Python proporciona dos objetos iteradores de propósito general. El primero, "
"un iterador de secuencia, funciona con una secuencia arbitraria que admite "
"el método :meth:`__getitem__`. El segundo funciona con un objeto invocable y "
"un valor centinela, llamando al invocable para cada elemento de la secuencia "
"y finalizando la iteración cuando se devuelve el valor centinela."

#: ../Doc/c-api/iterator.rst:17
msgid ""
"Type object for iterator objects returned by :c:func:`PySeqIter_New` and the "
"one-argument form of the :func:`iter` built-in function for built-in "
"sequence types."
msgstr ""
"Objeto tipo para objetos iteradores devueltos por :c:func:`PySeqIter_New` y "
"la forma de un argumento de la función incorporada :func:`iter` para los "
"tipos de secuencia incorporados."

#: ../Doc/c-api/iterator.rst:24
msgid "Return true if the type of *op* is :c:data:`PySeqIter_Type`."
msgstr ""
msgstr "Retorna verdadero si el tipo de *op* es :c:data:`PySeqIter_Type`."

#: ../Doc/c-api/iterator.rst:29
msgid ""
"Return an iterator that works with a general sequence object, *seq*. The "
"iteration ends when the sequence raises :exc:`IndexError` for the "
"subscripting operation."
msgstr ""
"Retorna un iterador que funciona con un objeto de secuencia general, *seq*. "
"La iteración termina cuando la secuencia lanza :exc:`IndexError` para la "
"operación de suscripción."

#: ../Doc/c-api/iterator.rst:36
msgid ""
"Type object for iterator objects returned by :c:func:`PyCallIter_New` and "
"the two-argument form of the :func:`iter` built-in function."
msgstr ""
"Objeto tipo para los objetos iteradores devueltos por :c:func:"
"`PyCallIter_New` y la forma de dos argumentos de la función incorporada :"
"func:`iter`."

#: ../Doc/c-api/iterator.rst:42
msgid "Return true if the type of *op* is :c:data:`PyCallIter_Type`."
msgstr ""
msgstr "Retorna verdadero si el tipo de *op* es :c:data:`PyCallIter_Type`."

#: ../Doc/c-api/iterator.rst:47
msgid ""
Expand All @@ -65,3 +81,7 @@ msgid ""
"should return the next item in the iteration. When *callable* returns a "
"value equal to *sentinel*, the iteration will be terminated."
msgstr ""
"Retorna un nuevo iterador. El primer parámetro, *callable*, puede ser "
"cualquier objeto invocable de Python que se pueda invocar sin parámetros; "
"cada llamada debe retornar el siguiente elemento en la iteración. Cuando "
"*callable* retorna un valor igual a *sentinel*, la iteración finalizará."