diff --git a/README.md b/README.md index baecd83..6ac46da 100644 --- a/README.md +++ b/README.md @@ -1255,7 +1255,7 @@ class MySequence: ### Collections.abc.Sequence * **It's a richer interface than the basic sequence.** -* **Extending it generates iter(), contains(), reversed(), index(), and count().** +* **Extending it generates iter(), contains(), reversed(), index() and count().** * **Unlike `'abc.Iterable'` and `'abc.Collection'`, it is not a duck type. That is why `'issubclass(MySequence, abc.Sequence)'` would return False even if MySequence had all the methods defined.** ```python from collections import abc diff --git a/index.html b/index.html index f4bac7b..b21b9e8 100644 --- a/index.html +++ b/index.html @@ -1192,7 +1192,7 @@ Hello World!
'abc.Iterable'
and 'abc.Collection'
, it is not a duck type. That is why 'issubclass(MySequence, abc.Sequence)'
would return False even if MySequence had all the methods defined.from collections import abc