New to python and this might be a silly question, but how does one properly implement the repr method?
I wrote a quick little program to simulate a game of card
__repr__
ideally could return the representation of the object that you would use to create this instance.
From repr():
For many types, this function makes an attempt to return a string that would yield an object with the same value when passed to eval(), otherwise the representation is a string enclosed in angle brackets that contains the name of the type of the object together with additional information often including the name and address of the object.