[pygtk] cleaner module reload?

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Fri Aug 13 04:01:20 WST 2004


A Qui, 2004-08-12 às 19:17, Skip Montanaro escreveu:
> I use
> 
>     gobject.type_register(foo)
> 
> at the module level to register gobject.GObject subclasses.  To support
> module reloading I wrap it:

  No needed for any of these hacks.  Since pygtk 2.3.92, pygtk allows
registering the same python class with the type system as many times as
you like, so module reloading should Just Work™.

  Regards.

-- 
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic



More information about the pygtk mailing list