Browse Source

Hashable

pull/10/head
Jure Šorn 6 years ago
parent
commit
2b9488d75b
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -636,7 +636,7 @@ class Employee(Person):
``` ```
### Comparable ### Comparable
**If eq() method is not overriden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`, meaning all objects compare not equal by default.** **If eq() method is not overridden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`, meaning all objects compare not equal by default.**
```python ```python
class MyComparable: class MyComparable:

|||||||
100:0
Loading…
Cancel
Save