KhiopsML / khiops-python

The Python library of the Khiops AutoML suite
https://khiops.org
BSD 3-Clause Clear License
8 stars 1 forks source link

Implement __repr__ properly in dictionary classes #54

Open popescu-v opened 1 year ago

popescu-v commented 1 year ago

Currently the __repr__ and __str__ are equal. __repr__ however should be a succint unambiguous representation of the object.

We should discuss first what should be this representation.

popescu-v commented 1 year ago

__repr__ needs indeed to be unambiguous, but it doesn't need to be succinct.

On the other hand, __str__ needs to be readable; it doesn't need to be unambiguous. But it'd rather be succinct, for better readability.