We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b36472 commit 5a3fc5fCopy full SHA for 5a3fc5f
source-code/object-orientation/README.md
@@ -20,3 +20,7 @@ Some examples of object-oriented programming in Python.
20
of multiple inheritance in Python.
21
* `mix-ins`: illustration of mix-ins.
22
* `attr_intro.ipynb`: illustration of how to use the `attrs` package.
23
+ * `f_string_user_defined_formats.ipynb`: illustration of how to use
24
+ f-strings with user-defined classes by overriding the `__format__`
25
+ method. It also illustrates the use of `__new__` to create
26
+ instances of a class while checking for validity of the arguments.
0 commit comments