From 4095057831d0b54186cc42c7ade20547606e1089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 12 Apr 2019 20:16:01 +0200 Subject: [PATCH] Comparable --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3cddf94..592e337 100644 --- a/README.md +++ b/README.md @@ -874,7 +874,7 @@ Duck Types ### Comparable * **If eq() method is not overridden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`.** * **That means all objects compare not equal by default.** -* **Only object on the left side of a comparison has eq() called, unless it returns 'NotImplemented', in which case the right object is consulted.** +* **Only left side object has eq() method called, unless it returns 'NotImplemented', in which case the right object is consulted.** ```python class MyComparable: diff --git a/index.html b/index.html index 8824449..f1a8b9a 100644 --- a/index.html +++ b/index.html @@ -779,7 +779,7 @@ creature = Creature()
class MyComparable:
     def __init__(self, a):