Skip to content

Commit 4cfea43

Browse files
committed
Iterator
1 parent 25b59f9 commit 4cfea43

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
@@ -1152,7 +1152,7 @@ class Counter:
11521152
* **Iterators returned by the [iter()](#iterator) function, such as list\_iterator and set\_iterator.**
11531153
* **Objects returned by the [itertools](#itertools) module, such as count, repeat and cycle.**
11541154
* **Generators returned by the [generator functions](#generator) and [generator expressions](#comprehension).**
1155-
* **All [file objects](#file), etc.**
1155+
* **File objects returned by the [open()](#open) function, etc.**
11561156

11571157
### Callable
11581158
* **All functions and classes have a call() method, hence are callable.**

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@
10941094
<li><strong>Iterators returned by the <a href="#iterator">iter()</a> function, such as list_iterator and set_iterator.</strong></li>
10951095
<li><strong>Objects returned by the <a href="#itertools">itertools</a> module, such as count, repeat and cycle.</strong></li>
10961096
<li><strong>Generators returned by the <a href="#generator">generator functions</a> and <a href="#comprehension">generator expressions</a>.</strong></li>
1097-
<li><strong>All <a href="#file">file objects</a>, etc.</strong></li>
1097+
<li><strong>File objects returned by the <a href="#open">open()</a> function, etc.</strong></li>
10981098
</ul><div><h3 id="callable">Callable</h3><ul>
10991099
<li><strong>All functions and classes have a call() method, hence are callable.</strong></li>
11001100
<li><strong>When this cheatsheet uses <code class="python hljs"><span class="hljs-string">'&lt;function&gt;'</span></code> for an argument, it actually means <code class="python hljs"><span class="hljs-string">'&lt;callable&gt;'</span></code>.</strong></li>

0 commit comments

Comments
 (0)