is there in python something like a decorator for IDE's or debuggers like IDLE or Visual Studio where I can configure which variable should be written in the variable view for a class?
Example code:
idList = []
idList.append("X342")
idList.append(Token("X9999"))
and the variable view in Visual Studio:
https://i.sstatic.net/q9Q0I.png
Instead of the "Tokens.Token object at (...)" i want to specify in the Token class what the debugger should write. In this case the str "X9999".
Can someone help me?