Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def __init__(self, title, pages):

def is_short(self):
if self.pages < 100:
return true
return True

#What happens when you pass object to print?
def __str__(self):
Expand All @@ -18,7 +18,7 @@ def __eq__(self, other):
if(self.title == other.title and self.pages == other.pages):
return True

#It's approriate to give something for __hash__ when you override __eq__
#It's appropriate to give something for __hash__ when you override __eq__
# #This is the recommended way if mutable (like it is here):
__hash__ = None

Expand Down