Possibility to implement multiple repr strategies?
In Python, is there a way to implement multiple representation strategies on custom classes, to provide different styles how they are shown, and the whole thing recursively on arbitrary data structures, so that nested objects would be represented using the parent call’s strategy, if available? Like this…
Possibility to implement multiple repr strategies?
In Python, is there a way to implement multiple representation strategies on custom classes, to provide different styles how they are shown, and the whole thing recursively on arbitrary data structures, so that nested objects would be represented using the parent call’s strategy, if available? Like this…