Teks sumber — English
Terjemahan — Bahasa Indonesia
Return non-zero if the object *o* can be safely passed to :c:func:`PyIter_NextItem` and ``0`` otherwise. This function always succeeds.
Kembalikan nilai bukan nol jika objek *o* dapat diteruskan dengan aman ke :c:func:`PyIter_NextItem`, dan ``0`` jika tidak. Fungsi ini selalu berhasil.
Return non-zero if the object *o* provides the :class:`AsyncIterator` protocol, and ``0`` otherwise. This function always succeeds.
Kembalikan nilai bukan nol jika objek *o* menyediakan protokol :class:`AsyncIterator`, dan ``0`` jika tidak. Fungsi ini selalu berhasil.
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.