python-docs-fr/c-api/iter.po

86 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
2022-05-22 21:15:02 +00:00
"POT-Creation-Date: 2022-05-22 23:13+0200\n"
"PO-Revision-Date: 2018-02-15 00:33+0100\n"
2017-11-22 07:49:31 +00:00
"Last-Translator: Julien Palard <julien@palard.fr>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: c-api/iter.rst:6
2016-10-30 09:46:26 +00:00
msgid "Iterator Protocol"
msgstr "Protocole d'itération"
2016-10-30 09:46:26 +00:00
#: c-api/iter.rst:8
2016-10-30 09:46:26 +00:00
msgid "There are two functions specifically for working with iterators."
2017-11-22 07:49:31 +00:00
msgstr "Il existe deux fonctions dédiées à l'interaction avec les itérateurs."
2016-10-30 09:46:26 +00:00
#: c-api/iter.rst:12
2021-01-27 19:42:04 +00:00
#, fuzzy
msgid ""
"Return non-zero if the object *o* can be safely passed to :c:func:"
"`PyIter_Next`, and ``0`` otherwise. This function always succeeds."
2017-11-22 07:49:31 +00:00
msgstr "Renvoie vrai si l'objet *o* supporte le protocole d'itération."
2016-10-30 09:46:26 +00:00
#: c-api/iter.rst:17
#, fuzzy
msgid ""
2022-05-22 21:15:02 +00:00
"Return non-zero if the object *o* provides the :class:`AsyncIterator` "
"protocol, and ``0`` otherwise. This function always succeeds."
msgstr "Renvoie vrai si l'objet *o* supporte le protocole d'itération."
#: c-api/iter.rst:24
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"Return the next value from the iterator *o*. The object must be an iterator "
"according to :c:func:`PyIter_Check` (it is up to the caller to check this). "
"If there are no remaining values, returns ``NULL`` with no exception set. If "
"an error occurs while retrieving the item, returns ``NULL`` and passes along "
"the exception."
2016-10-30 09:46:26 +00:00
msgstr ""
2017-11-22 07:49:31 +00:00
"Renvoie la valeur suivante d'une itération de *o*. L'objet doit être un "
"itérateur (c'est à l'appelant de faire cette vérification). Renvoie *NULL* "
"s'il n'y a plus de valeurs, sans déclarer d'exception. Renvoie *NULL* en "
"déclarant une exception si une erreur survient lors de la récupération d'un "
"élément."
2016-10-30 09:46:26 +00:00
#: c-api/iter.rst:30
2016-10-30 09:46:26 +00:00
msgid ""
"To write a loop which iterates over an iterator, the C code should look "
"something like this::"
msgstr ""
2017-11-22 07:49:31 +00:00
"Pour écrire une boucle itérant un itérateur, le code C devrait ressembler "
"à ::"
#: c-api/iter.rst:59
msgid ""
"The enum value used to represent different results of :c:func:`PyIter_Send`."
msgstr ""
#: c-api/iter.rst:66
msgid "Sends the *arg* value into the iterator *iter*. Returns:"
msgstr ""
#: c-api/iter.rst:68
msgid ""
"``PYGEN_RETURN`` if iterator returns. Return value is returned via *presult*."
msgstr ""
#: c-api/iter.rst:69
msgid ""
"``PYGEN_NEXT`` if iterator yields. Yielded value is returned via *presult*."
msgstr ""
#: c-api/iter.rst:70
msgid ""
"``PYGEN_ERROR`` if iterator has raised and exception. *presult* is set to "
"``NULL``."
msgstr ""