You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to be able to print the differences between objects without calling __eq__ and we probably do not want __eq__ to print out things by default (it's super useful in test debugging but probably not very useful for users).
Proposal is to move all the code to a helper function that returns a message containing information about the differences.
Then add a method to just print that info, and update the __eq__ function to call it without the printing but add it to logging with a level of "info".
The text was updated successfully, but these errors were encountered:
It would be useful to be able to print the differences between objects without calling
__eq__
and we probably do not want__eq__
to print out things by default (it's super useful in test debugging but probably not very useful for users).Proposal is to move all the code to a helper function that returns a message containing information about the differences.
Then add a method to just print that info, and update the
__eq__
function to call it without the printing but add it to logging with a level of "info".The text was updated successfully, but these errors were encountered: