I'm new to Python, and I need to compare two responses to type(a_subclass) for equality (i.e., I need to be sure the two subclasses of a parent class are exactly the same.) Can I safely assume that type returns singletons and use the is operator? Or is == necessary? Is there something else I should be worried about, like comparing package and module names?
Note the similar question here, to which the answers are confusing at best. I'm kinda looking for a 'yes' or a 'no.'