picop.cyiterator#

Iterator protocol helpers.

picop.cyiterator.iter_check(o)#

Return True if o supports the iterator protocol (PyIter_Check).

Parameters:

o (object)

Return type:

bool

picop.cyiterator.iter_eq(a, b)#

Return True if a is b (iterator identity; typical CPython object.__eq__).

Parameters:
Return type:

bool

picop.cyiterator.iter_next(o)#

Return the next item of iterator o (PyIter_Next); None when exhausted.

Parameters:

o (object)

Return type:

object