Hi,
I have a requirement to findout all the classes that are derived from a
single base class.

This is how I do it currently.

class Test:
    case = []

class Test1(Test):
    Test.case.append("Test1")

class Test2(Test):
    Test.case.append("Test2")

1. Is there a better way of doing this.
2. Is there a way to generalize the Test.case.append("TestN")
statements to something like
Test.case.append(__myclass__)

--
Warm Regards,
Vijairaj

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to