Use repr
for __repr__
and str
for __str__
Implementations
#229
Labels
Priority/1-Medium
To do after P0
Status/ReadyForDev
The issue is ready to be developed or to be investigated deeply
Type/DevChore
Repository maintainance, CI/CD or non user-facing refactorings
Description
Currently,
str
is used in the__repr__
implementations of some custom objects, such asDataset
and some concrete implementations of theDatasetTable
abstract base class.However,
repr
andstr
do not have the same semantics and are thus not interchangeable by default:repr
is low-level and unambiguous, whereasstr
is readable but potentially ambiguous.Questions/Ideas
__repr__
and__str__
implementations in the code base and make sure the proper semantics are preserved when using the Pythonrepr
andstr
builtins therein.The text was updated successfully, but these errors were encountered: