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 f97869a commit 3021b7cCopy full SHA for 3021b7c
Doc/tutorial/classes.rst
@@ -752,9 +752,9 @@ is to use :mod:`dataclasses` for this purpose::
752
john = Employee("john", "computer lab", 1000)
753
754
>>> john.dept
755
- # "computer lab"
+ "computer lab"
756
>>> john.salary
757
- # '1000'
+ 1000
758
759
A piece of Python code that expects a particular abstract data type can often be
760
passed a class that emulates the methods of that data type instead. For
0 commit comments