Is it possible to track attributes not during assignment? #459
Replies: 3 comments 10 replies
-
So a debugger is entirely different than a function-level tracer. Basically what you meant is to log when an attribute is read instead of write. The read operation is normally much more frequent and less interesting to log. People often care more about when the variable is changed. In what scenario do you want to log when an attribute is read? |
Beta Was this translation helpful? Give feedback.
-
Well, the way I can think of is to use |
Beta Was this translation helpful? Give feedback.
-
Ah right I was thinking about nested Only include attributes in repr is not the ideal solution - what if your attributes have attributes? This is what I mentioned above - we can use |
Beta Was this translation helpful? Give feedback.
-
Is it possible to track the attributes of objects not during assignment, but, for example, when an object is passed as an argument to a function? It would be handy to see something like in pycharm:
Beta Was this translation helpful? Give feedback.
All reactions