Hi, Im working on the TomeRater project for the Programming with Pyton class - you can find my entire code here:
I don’t understand
- why the self.users.get() call comes up empty and
- why the
__eq__method is called. Any clues?
- adding the book and the user works, the user ends up in the
tomerater.userslist, and the .get() method invoked in
add_book_to_userworks as well.
- However, the check: line 126, in
if self.users.get(email) == None:seems to come up emtpy!
- Inexplicably, User’s
__eq__method is called, and doesn’t like the fact that it’s being passed
But… there’s no call to
add_book_to_user! And the User object isn’t