From db8b8185cf4a0abd9bf4051b8b27b7c246401a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 5 Jul 2019 14:17:24 +0200 Subject: [PATCH] Format --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e4c0c22..74a3092 100644 --- a/README.md +++ b/README.md @@ -408,7 +408,7 @@ Format ``` ### Strings -**`'!r'` calls object's repr() method, instead of format(), to get a string.** +**`'!r'` calls object's repr() method, instead of str(), to get a string.** ```python {'abcde'!r:<10} # "'abcde' " {'abcde':.3} # 'abc' diff --git a/index.html b/index.html index 7bc3837..0932106 100644 --- a/index.html +++ b/index.html @@ -489,7 +489,7 @@ to_exclusive = <range>.stop {<el>:>0} # '<el>'

Strings

-

'!r' calls object's repr() method, instead of format(), to get a string.

+

'!r' calls object's repr() method, instead of str(), to get a string.

{'abcde'!r:<10}  # "'abcde'   "
 {'abcde':.3}     # 'abc'
 {'abcde':10.3}   # 'abc       '