Let's say I have a superclass Spam
, and from it there's a lot of subclasses. How do I look through all instances in the entire runtime of one of these and reference them for data manipulation or comparisons? Doesn't have to be about superclasses and subclasses specifically, but I wanted to mention those in case there's different approaches between those and independent classes.
It seems like a pretty core question in Python programming, but I couldn't find any information that answers what I look for specifically, oddly enough, unless I am using the wrong terms.