Skip to content

Commit 1faec76

Browse files
committed
Format, Decorator, Class
1 parent d237d07 commit 1faec76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ Format
338338
```
339339

340340
### String Options
341+
**`'!r'` calls object's repr() method, instead of format(), to get a string.**
341342
```python
342343
{'abcde'!r:<10} # "'abcde' "
343344
```
344-
* **`'!r'` calls object's repr() method, instead of format(), to get a string.**
345345

346346
```python
347347
{'abcde':.3} # 'abc'
@@ -703,7 +703,8 @@ class Employee(Person):
703703
```
704704

705705
### Comparable
706-
**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.**
706+
* **If eq() method is not overridden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`,**
707+
* **meaning all objects compare not equal by default.**
707708

708709
```python
709710
class MyComparable:

0 commit comments

Comments
 (0)