I think it's fine as it is. I don't think making it walk the inheritance tree is helpful; the output would be too large. Also, an instance doesn't have any code and that's fine too. (Didn't you mean "dis.dis(D) doesn't touch C"?) --Guido On 4/6/06, Georg Brandl <g.brandl at gmx.net> wrote: > Hi, >> dis.dis currently handles new-style classes stepmotherly: given >> class C(object): > def Cm(): pass > class D(object): > def Dm(): pass >> dis.dis(C) doesn't touch D, and > dis.dis(C()) doesn't touch anything. >> Should it be fixed? It may need some reworking in dis.dis. >> Georg >> _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org > -- --Guido van Rossum (home page: http://www.python.org/~guido/)