forked from AFPy/python-docs-fr
73 lines
2.6 KiB
Plaintext
73 lines
2.6 KiB
Plaintext
# SOME DESCRIPTIVE TITLE.
|
|
# Copyright (C) 2001-2016, Python Software Foundation
|
|
# This file is distributed under the same license as the Python package.
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
#
|
|
#, fuzzy
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: Python 3.6\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
|
|
"PO-Revision-Date: 2017-12-13 08:47+0100\n"
|
|
"Last-Translator: Julien Palard <julien@palard.fr>\n"
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
"Language: fr\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#: ../Doc/c-api/iterator.rst:6
|
|
msgid "Iterator Objects"
|
|
msgstr "Itérateurs"
|
|
|
|
#: ../Doc/c-api/iterator.rst:8
|
|
msgid ""
|
|
"Python provides two general-purpose iterator objects. The first, a sequence "
|
|
"iterator, works with an arbitrary sequence supporting the :meth:"
|
|
"`__getitem__` method. The second works with a callable object and a "
|
|
"sentinel value, calling the callable for each item in the sequence, and "
|
|
"ending the iteration when the sentinel value is returned."
|
|
msgstr ""
|
|
"Python fournit deux itérateurs génériques. Le premier est un itérateur de "
|
|
"séquence, il fonctionne avec n'importe quelle séquence gérant la méthode :"
|
|
"meth:`__getitem__`. Le second fonctionne avec un objet appelable et une "
|
|
"valeur sentinelle, il appelle l'appelable pour obtenir chaque élément de la "
|
|
"séquence, et l'itération se termine lorsque la sentinelle est reçue."
|
|
|
|
#: ../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 ""
|
|
|
|
#: ../Doc/c-api/iterator.rst:24
|
|
msgid "Return true if the type of *op* is :c:data:`PySeqIter_Type`."
|
|
msgstr ""
|
|
|
|
#: ../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 ""
|
|
|
|
#: ../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 ""
|
|
|
|
#: ../Doc/c-api/iterator.rst:42
|
|
msgid "Return true if the type of *op* is :c:data:`PyCallIter_Type`."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/iterator.rst:47
|
|
msgid ""
|
|
"Return a new iterator. The first parameter, *callable*, can be any Python "
|
|
"callable object that can be called with no parameters; each call to it "
|
|
"should return the next item in the iteration. When *callable* returns a "
|
|
"value equal to *sentinel*, the iteration will be terminated."
|
|
msgstr ""
|