From 1faec76fe98450ecabdfac2f9880a37365e155c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 29 Jan 2019 18:48:04 +0100 Subject: [PATCH] Format, Decorator, Class --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0adb966..948677e 100644 --- a/README.md +++ b/README.md @@ -338,10 +338,10 @@ Format ``` ### String Options +**`'!r'` calls object's repr() method, instead of format(), to get a string.** ```python {'abcde'!r:<10} # "'abcde' " ``` -* **`'!r'` calls object's repr() method, instead of format(), to get a string.** ```python {'abcde':.3} # 'abc' @@ -703,7 +703,8 @@ class Employee(Person): ``` ### Comparable -**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.** +* **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 class MyComparable: