Skip to content

Commit 1ebe525

Browse files
authored
Use interpreter output, not comments, like with Dog example
1 parent 05fbb29 commit 1ebe525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,9 @@ is to use :mod:`dataclasses` for this purpose::
752752
john = Employee("john", "computer lab", 1000)
753753

754754
>>> john.dept
755-
# "computer lab"
755+
"computer lab"
756756
>>> john.salary
757-
# '1000'
757+
1000
758758

759759
A piece of Python code that expects a particular abstract data type can often be
760760
passed a class that emulates the methods of that data type instead. For

0 commit comments

Comments
 (0)