Thu Feb 13 15:14:23 CET 2014


Is it necessary to keep a reference?

Something the code below doesn't work if the object 'h' isn't saved
somewhere.  Does a bound method not keep a GC reference to its object?

  btn = QtGui.QPushButton('button')
  h = myHandler()   # instance
  self.hs.append(h) # need to keep a reference!