From 589c7aead8db6016b014c546b780669d05479291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 8 Jul 2019 16:19:51 +0200 Subject: [PATCH] MySequence --- README.md | 3 ++- index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c27ca96..4c9d279 100644 --- a/README.md +++ b/README.md @@ -1206,7 +1206,8 @@ class MyCollection: ### Sequence * **Only required methods are len() and getitem().** -* **Iter(), contains() and reversed() automatically work on any object that has getitem() defined.** +* **Iter() and contains() automatically work on any object that has getitem() defined.** +* **Reversed() automatically works on any object that has getitem() and len() defined.** ```python class MySequence: def __init__(self, a): diff --git a/index.html b/index.html index 3a1e3b3..0bce2f6 100644 --- a/index.html +++ b/index.html @@ -1121,7 +1121,8 @@ lock = threading.RLock(); with lock: ...

Sequence

class MySequence:
     def __init__(self, a):