Browse Source

Format, Decorator, Class

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

4
README.md

@ -703,8 +703,8 @@ class Employee(Person):
``` ```
### Comparable ### Comparable
* **If eq() method is not overridden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`,** * **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.** * **That means all objects compare not equal by default.**
```python ```python
class MyComparable: class MyComparable:

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