You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/faq.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@
25
25
<detailsopen><summary><strong>What exactly is <code><collection></code>?</strong></summary><br>
26
26
Collection is my name for an iterable object. An iterable object in Python is any object that has at least one of iter() and getitem() special methods defined. <code><object>.__iter__()</code> returns an iterator of object's items and <code><object>.__getitem__(<index>)</code> returns an item at that index. I chose not to use the name iterable because it sounds scarier and more vague than collection, even though it has a precise definition.<br><br>
27
27
28
-
<code><iterable></code> should not be confused with abstract base class collections.abc.Iterable. Expression <code>instanceof(<object>, collections.abc.Iterable)</code> only checks if object has iter() special method. <code>instanceof(<object>, collections.abc.Collection)</code> checks for len(), iter() and contains().
28
+
<code><iterable></code> should not be confused with abstract base class <code>collections.abc.Iterable</code>. Expression <code>instanceof(<object>, collections.abc.Iterable)</code> only checks if object has iter() special method. <code>instanceof(<object>, collections.abc.Collection)</code> checks for len(), iter() and contains().
29
29
</details><br>
30
30
31
31
<detailsopen><summary><strong>What about PEP 8?</strong></summary><br>
0 commit comments