Skip to content

Commit 058d8ff

Browse files
committed
Making it more obvious that __str__ needs to be implemented by the student
1 parent 9ae9cc7 commit 058d8ff

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

python2/koans/about_classes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def get_self(self):
125125
return self
126126

127127
def __str__(self):
128+
#
129+
# Implement this!
130+
#
128131
return __
129132

130133
def __repr__(self):

python3/koans/about_classes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ def get_self(self):
131131
return self
132132

133133
def __str__(self):
134+
#
135+
# Implement this!
136+
#
134137
return __
135138

136139
def __repr__(self):

0 commit comments

Comments
 (0)