While debugging I want to know if, at some point, I am holding an instance of a particular class. I want to iterate over all the variables that I currently have any reference to, filter them with isinstance
, and then, if I find an instance of that class, then I will decide if it's good practice or not to use it there.
It's basically just a quick and dirty way to explore my options and discover things about code I'm only getting into.