forked from python/python-docs-fr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiterator.po
More file actions
87 lines (79 loc) · 3.4 KB
/
iterator.po
File metadata and controls
87 lines (79 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright (C) 2001-2018, Python Software Foundation
# For licence information, see README file.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2019-03-26 17:16+0100\n"
"Last-Translator: ANTOINE FOURES <afoures@student.42.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: c-api/iterator.rst:6
msgid "Iterator Objects"
msgstr "Itérateurs"
#: 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 d'usage générique. Le premier est un "
"itérateur de séquence, il fonctionne avec n'importe quelle séquence "
"implémentant la méthode :meth:`__getitem__`. Le second fonctionne avec un "
"objet appelable et une valeur sentinelle, l'appelable permet d'obtenir "
"chaque élément de la séquence, et l'itération se termine lorsque la "
"sentinelle est atteinte."
#: 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 ""
"Type des itérateurs renvoyés par les fonctions :c:func:`PySeqIter_New` et la "
"forme à un argument de la fonction native :func:`iter` pour les séquences "
"natives."
#: c-api/iterator.rst:24
#, fuzzy
msgid ""
"Return true if the type of *op* is :c:data:`PySeqIter_Type`. This function "
"always succeeds."
msgstr "Renvoie vrai si *op* est de type :c:data:`PySeqIter_Type`."
#: c-api/iterator.rst:30
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 ""
"Renvoie un itérateur sur la séquence *seq*. L'itération prend fin lorsque la "
"séquence lève :exc:`IndexError` lors d'une tentative d'accès."
#: c-api/iterator.rst:37
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 ""
"Type de l'itérateur renvoyé par les fonctions :c:func:`PyCallIter_New` et :"
"func:`iter` à deux arguments."
#: c-api/iterator.rst:43
#, fuzzy
msgid ""
"Return true if the type of *op* is :c:data:`PyCallIter_Type`. This function "
"always succeeds."
msgstr "Renvoie vrai si *op* est de type :c:data:`PyCallIter_Type`."
#: c-api/iterator.rst:49
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 ""
"Renvoie un nouvel itérateur. Le premier paramètre, *callable*, peut être "
"n'importe quel objet Python appelable sans aucun paramètre ; chaque appel "
"doit renvoyer l'élément suivant de l'itération. Lorsque *callable* renvoie "
"une valeur égale à *sentinel*, l'itération prend fin."