picop.cyiterobject#

Iterator object constructors.

picop.cyiterobject.calliter_check(op)#

Return True if op is a callable iterator (PyCallIter_Check).

Parameters:

op (object)

Return type:

bool

picop.cyiterobject.calliter_new(callable, sentinel)#

Return a call iterator for callable_ stopping at sentinel (PyCallIter_New).

Parameters:

sentinel (object)

Return type:

object

picop.cyiterobject.seqiter_check(op)#

Return True if op is a sequence iterator (PySeqIter_Check).

Parameters:

op (object)

Return type:

bool

picop.cyiterobject.seqiter_new(seq)#

Return a sequence iterator for seq (PySequence_GetIterator).

Notes

Slower than the plain-Python equivalent iter(x) (Tier A 1.25x); the typed Cython call site.

Parameters:

seq (object)

Return type:

object