Skip to content

Commit 8bfddc4

Browse files
committed
Iterable duck types
1 parent 3b2e6da commit 8bfddc4

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
@@ -1194,7 +1194,7 @@ True
11941194
### Collection
11951195
* **Only required methods are iter() and len().**
11961196
* **This cheatsheet actually means `'<iterable>'` when it uses `'<collection>'`.**
1197-
* **I chose not to use the name iterable because it sounds scarier and more vague than collection.**
1197+
* **I chose not to use the name 'iterable' because it sounds scarier and more vague than 'collection'.**
11981198
```python
11991199
class MyCollection:
12001200
def __init__(self, a):

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ <h3 id="collection">Collection</h3>
11071107
<ul>
11081108
<li><strong>Only required methods are iter() and len().</strong></li>
11091109
<li><strong>This cheatsheet actually means <code class="python hljs"><span class="hljs-string">'&lt;iterable&gt;'</span></code> when it uses <code class="python hljs"><span class="hljs-string">'&lt;collection&gt;'</span></code>.</strong></li>
1110-
<li><strong>I chose not to use the name iterable because it sounds scarier and more vague than collection.</strong></li>
1110+
<li><strong>I chose not to use the name 'iterable' because it sounds scarier and more vague than 'collection'.</strong></li>
11111111
</ul>
11121112
<pre><code class="python language-python hljs"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyCollection</span>:</span>
11131113
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">__init__</span><span class="hljs-params">(self, a)</span>:</span>

0 commit comments

Comments
 (0)