co9olguy / qdata

1 stars 3 forks source link

Update representations #25

Closed thisac closed 3 years ago

thisac commented 3 years ago

Context: As stated in #20 the __repr__() methods are currently used for serialization. This is not ideal, since we don't really want serialization to happen each time __repr__() is called. Instead that method should return a brief representation of the object.

Description of the Change:

Benefits: __repr__() works as expected.

Possible Drawbacks: Whether the __str__() solution is the best solution is still up for discussion. Another suggestion would be to create a serialize() method (see #20 for further details)

Related GitHub Issues:

20