All pastes #420959 Raw Edit

gjc

public text v1 · immutable
·published 2007-04-02 14:47 UTC
rendered paste body
import 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()