diff --git a/README.md b/README.md index 742c152..4e1cf43 100644 --- a/README.md +++ b/README.md @@ -412,6 +412,7 @@ Format {:.<10} # '......' {:0} # '' ``` +* **Objects are rendered using `'format(, )'`.** * **Options can be generated dynamically: `f'{:{}[…]}'`.** * **Adding `'='` to the expression prepends it to the output: `f'{1+1=}'` returns `'1+1=2'`.** * **Adding `'!r'` to the expression converts object to string by calling its [repr()](#class) method.** diff --git a/index.html b/index.html index a3ddbf3..e2b746a 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -379,6 +379,7 @@ Point(x=1, y=2
    +
  • Objects are rendered using 'format(<el>, <options>)'.
  • Options can be generated dynamically: f'{<el>:{<str/int>}[…]}'.
  • Adding '=' to the expression prepends it to the output: f'{1+1=}' returns '1+1=2'.
  • Adding '!r' to the expression converts object to string by calling its repr() method.
  • @@ -2932,7 +2933,7 @@ $ deactivate # Deactivates the activ diff --git a/pdf/remove_links.py b/pdf/remove_links.py index 17a4d80..95fd913 100755 --- a/pdf/remove_links.py +++ b/pdf/remove_links.py @@ -9,7 +9,7 @@ from pathlib import Path MATCHES = { 'For details about sorted(), min() and max() see sortable.': 'For details about sorted(), min() and max() see sortable (p. 16).', 'Module operator provides functions itemgetter() and mul() that offer the same functionality as lambda expressions above.': 'Module \'operator\' (p. 31) provides functions itemgetter() and mul() that offer the same functionality as lambda expressions (p. 11) above.', - 'Adding \'!r\' to the expression converts object to string by calling its repr() method.': 'Adding \'!r\' to the expression converts object to string by calling its repr() method (p. 14).', + 'Adding \'!r\' to the expression converts object to string by calling its repr() method.': 'Adding \'!r\' to the expression converts object to string by calling its repr() method.', 'It can be any callable, but is usually implemented as a function that returns a closure.': 'It can be any callable, but is usually implemented as a function that returns a closure.', 'Objects can be made sortable with \'order=True\' and immutable with \'frozen=True\'.': 'Objects can be made sortable with \'order=True\' and immutable with \'frozen=True\'.', 'For object to be hashable, all attributes must be hashable and \'frozen\' must be True.': 'For object to be hashable, all attributes must be hashable and \'frozen\' must be True.',