From 8bfddc4aa4a51411eb997363699dfa2cc7c12120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 7 Jul 2019 17:39:10 +0200 Subject: [PATCH] Iterable duck types --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 46a02b1..a5fc558 100644 --- a/README.md +++ b/README.md @@ -1194,7 +1194,7 @@ True ### Collection * **Only required methods are iter() and len().** * **This cheatsheet actually means `''` when it uses `''`.** -* **I chose not to use the name iterable because it sounds scarier and more vague than collection.** +* **I chose not to use the name 'iterable' because it sounds scarier and more vague than 'collection'.** ```python class MyCollection: def __init__(self, a): diff --git a/index.html b/index.html index bd4bb26..3546e72 100644 --- a/index.html +++ b/index.html @@ -1107,7 +1107,7 @@ con = sqlite3.connect('<path>');
  • Only required methods are iter() and len().
  • This cheatsheet actually means '<iterable>' when it uses '<collection>'.
  • -
  • I chose not to use the name iterable because it sounds scarier and more vague than collection.
  • +
  • I chose not to use the name 'iterable' because it sounds scarier and more vague than 'collection'.
  • class MyCollection:
         def __init__(self, a):