Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
63b0a2eb
Kaydet (Commit)
63b0a2eb
authored
Nis 30, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#2727: clarify tp_iternext docs.
üst
28e0873f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
typeobj.rst
Doc/c-api/typeobj.rst
+6
-5
No files found.
Doc/c-api/typeobj.rst
Dosyayı görüntüle @
63b0a2eb
...
@@ -753,11 +753,12 @@ set.
...
@@ -753,11 +753,12 @@ set.
.. cmember:: iternextfunc PyTypeObject.tp_iternext
.. cmember:: iternextfunc PyTypeObject.tp_iternext
An optional pointer to a function that returns the next item in an iterator, or
An optional pointer to a function that returns the next item in an iterator.
raises :exc:`StopIteration` when the iterator is exhausted. Its presence
When the iterator is exhausted, it must return *NULL*; a :exc:`StopIteration`
normally signals that the instances of this type are iterators (although classic
exception may or may not be set. When another error occurs, it must return
instances always have this function, even if they don't define a :meth:`next`
*NULL* too. Its presence normally signals that the instances of this type
method).
are iterators (although classic instances always have this function, even if
they don't define a :meth:`next` method).
Iterator types should also define the :attr:`tp_iter` function, and that
Iterator types should also define the :attr:`tp_iter` function, and that
function should return the iterator instance itself (not a new iterator
function should return the iterator instance itself (not a new iterator
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment