From 88f2965a4fc545c81021a1acaca22a2406fe9327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 20 May 2022 10:12:24 +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 b4796ad..5a90356 100644 --- a/README.md +++ b/README.md @@ -1278,7 +1278,7 @@ class MySequence: #### Discrepancies between glossary definitions and abstract base classes: * **Glossary defines iterable as any object with iter() or getitem() and sequence as any object with len() and getitem(). It does not define collection.** -* **Passing ABC Iterable to isinstance() or issubclass() checks whether object/class has iter(), while ABC Collection checks for iter(), contains() and len().** +* **Passing ABC Iterable to isinstance() or issubclass() checks whether object/class has method iter(), while ABC Collection checks for iter(), contains() and len().** ### ABC Sequence * **It's a richer interface than the basic sequence.** diff --git a/index.html b/index.html index 2883488..6247cf3 100644 --- a/index.html +++ b/index.html @@ -1098,7 +1098,7 @@ Hello World!

Discrepancies between glossary definitions and abstract base classes: