[Python-Dev] dis module and new-style classes

Georg Brandl g.brandl at gmx.net
Thu Apr 6 18:44:25 CEST 2006


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


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /