gjc
public text v1 · immutableimport gobject class A(gobject.GObject): __gtype_name__ = 'AType' class B(A): __gtype_name__ = 'BType' def __init__(self): A.__init__(self) print "__init__:", repr(self), self.__gtype__ def test(): entry = gobject.new(B) print "outside :", repr(entry), entry.__gtype__ test()