For example:
class A:
pass
a = A()
b = A()
c = A()
if there are class A and A's instance a, b and c.
what I want to do is get a list of [a, b, c] which are instances of A.
Thank you.
For example:
class A:
pass
a = A()
b = A()
c = A()
if there are class A and A's instance a, b and c.
what I want to do is get a list of [a, b, c] which are instances of A.
Thank you.