Pelokalan
Python ID
id en
Masuk
Proyek
c-api__iterator.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
Iterator Objects
Objek Iterator
Python provides two general-purpose iterator objects. The first, a sequence iterator, works with an arbitrary sequence supporting the :meth:`~object.__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.
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.
Tipe objek untuk objek iterator yang dikembalikan oleh :c:func:`PySeqIter_New` dan bentuk satu argumen dari fungsi bawaan :func:`iter` untuk tipe urutan bawaan.
Type object for iterator objects returned by :c:func:`PyCallIter_New` and the two-argument form of the :func:`iter` built-in function.
Tipe objek untuk objek iterator yang dikembalikan oleh :c:func:`PyCallIter_New` dan bentuk dua argumen dari fungsi bawaan :func:`iter` .
Other Iterator Objects