Iterator¶
No import is needed.
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
Iterator¶
Pull one element at a time. Concrete iterators (ListIterator, …) implement this. @next lives on the implementing class (attributes are not required on the interface).
next¶
Returns the next value, or None when the sequence has ended.
close¶
Ends iteration and releases resources held by the cursor.