Pelokalan
Python ID
id en
Masuk
Proyek
c-api__iter.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
Return ``1`` and set *item* to a :term:`strong reference` of the next value of the iterator *iter* on success. Return ``0`` and set *item* to ``NULL`` if there are no remaining values. Return ``-1``, set *item* to ``NULL`` and set an exception on error.
Kembalikan ``1`` dan atur *item* ke sebuah :term:`strong reference` dari nilai berikutnya dari iterator *iter* jika berhasil. Kembalikan ``0`` dan atur *item* ke ``NULL`` jika tidak ada lagi nilai yang tersisa. Kembalikan ``-1``, atur *item* ke ``NULL``, dan atur sebuah eksepsi jika terjadi kesalahan.
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.
Kembalikan nilai berikutnya dari iterator *o*. Objek tersebut harus berupa iterator menurut :c:func:`PyIter_Check` (pemanggil yang bertanggung jawab memeriksanya). Jika tidak ada lagi nilai yang tersisa, kembalikan ``NULL`` tanpa ada eksepsi yang diatur. Jika terjadi kesalahan saat mengambil item, kembalikan ``NULL`` dan teruskan eksepsi tersebut.
``PYGEN_ERROR`` if iterator has raised an exception. *presult* is set to ``NULL``.
``PYGEN_ERROR`` jika iterator telah memunculkan sebuah eksepsi. *presult* diatur ke ``NULL``.