<dd><p>Return true if the type of <em>op</em> is <aclass="reference internal" href="#c.PySeqIter_Type" title="PySeqIter_Type"><codeclass="xref c c-data docutils literal notranslate"><spanclass="pre">PySeqIter_Type</span></code></a>. This function
<dd><emclass="refcount return_new_ref">回傳值:新的參照。</em><emclass="stableabi"> 為 <aclass="reference internal" href="stable.html#stable"><spanclass="std std-ref">穩定 ABI 的一部分</span></a>.</em><p>Return an iterator that works with a general sequence object, <em>seq</em>. The
iteration ends when the sequence raises <aclass="reference internal" href="../builtins/exceptions.html#IndexError" title="IndexError"><codeclass="xref py py-exc docutils literal notranslate"><spanclass="pre">IndexError</span></code></a> for the subscripting
<dd><emclass="stableabi"> 為 <aclass="reference internal" href="stable.html#stable"><spanclass="std std-ref">穩定 ABI 的一部分</span></a>.</em><p>Type object for iterator objects returned by <aclass="reference internal" href="#c.PyCallIter_New" title="PyCallIter_New"><codeclass="xref c c-func docutils literal notranslate"><spanclass="pre">PyCallIter_New()</span></code></a> and the
two-argument form of the <aclass="reference internal" href="../builtins/functions.html#iter" title="iter"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">iter()</span></code></a> built-in function.</p>
<dd><p>Return true if the type of <em>op</em> is <aclass="reference internal" href="#c.PyCallIter_Type" title="PyCallIter_Type"><codeclass="xref c c-data docutils literal notranslate"><spanclass="pre">PyCallIter_Type</span></code></a>. This
<dd><emclass="refcount return_new_ref">回傳值:新的參照。</em><emclass="stableabi"> 為 <aclass="reference internal" href="stable.html#stable"><spanclass="std std-ref">穩定 ABI 的一部分</span></a>.</em><p>Return a new iterator. The first parameter, <em>callable</em>, can be any Python
callable object that can be called with no parameters; each call to it should
return the next item in the iteration. When <em>callable</em> returns a value equal to
<em>sentinel</em>, the iteration will be terminated.</p>
<dd><p>Return true if the object <em>o</em> is an instance of a <aclass="reference internal" href="../builtins/stdtypes.html#range" title="range"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">range</span></code></a> object.
<p>Do not create instances of these directly; prefer calling
<aclass="reference internal" href="object.html#c.PyObject_GetIter" title="PyObject_GetIter"><codeclass="xref c c-func docutils literal notranslate"><spanclass="pre">PyObject_GetIter()</span></code></a> instead.</p>
<p>Note that there is no guarantee that a given built-in type uses a given iterator
type. For example, iterating over <aclass="reference internal" href="../builtins/stdtypes.html#range" title="range"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">range</span></code></a> will use one of two iterator
types depending on the size of the range. Other types may start using a
similar scheme in the future, without warning.</p>