Skip to content

Commit b758cfa

Browse files
committed
Iterator
1 parent 6000650 commit b758cfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Point(x=1, y=2)
179179
Iterator
180180
--------
181181
```python
182-
<iter> = iter(<collection>)
182+
<iter> = iter(<collection>) # Calling `iter(<iter>)` returns unmodified iterator.
183183
<iter> = iter(<function>, to_exclusive) # Sequence of return values until 'to_exclusive'.
184184
<el> = next(<iter> [, default]) # Raises StopIteration or returns 'default' on end.
185185
```

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ <h2 id="namedtuple"><a href="#namedtuple" name="namedtuple">#</a>Named Tuple</h2
320320
(<span class="hljs-string">'x'</span>, <span class="hljs-string">'y'</span>)
321321
</code></pre>
322322
<h2 id="iterator"><a href="#iterator" name="iterator">#</a>Iterator</h2>
323-
<pre><code class="python language-python hljs">&lt;iter&gt; = iter(&lt;collection&gt;)
323+
<pre><code class="python language-python hljs">&lt;iter&gt; = iter(&lt;collection&gt;) <span class="hljs-comment"># Calling `iter(&lt;iter&gt;)` returns unmodified iterator.</span>
324324
&lt;iter&gt; = iter(&lt;function&gt;, to_exclusive) <span class="hljs-comment"># Sequence of return values until 'to_exclusive'.</span>
325325
&lt;el&gt; = next(&lt;iter&gt; [, default]) <span class="hljs-comment"># Raises StopIteration or returns 'default' on end.</span>
326326
</code></pre>

0 commit comments

Comments
 (0)