[pygtk] [PATCH] delete user data on "None" (pygtk 2.8.6)

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Mon May 1 22:02:13 WST 2006


  Please use bugzilla for bugs and patches.  Thanks.

On Seg, 2006-05-01 at 13:08 +0200, Danny Milosavljevic wrote:
> Hi,
> 
> Attached you find a patch that deletes user data when passing None to
> GObject.set_data.
> 
> Usually, set_data has the semantics of deleting the user data with a given
> key on passing NULL. 
> 
> pygtk did not do this, and my C part got very confused when it got a Py_None
> object ;)
> 
> cheers,
>   Danny
> 
> 
> -- 
> GMX Produkte empfehlen und ganz einfach Geld verdienen!
> Satte Provisionen fr GMX Partner: http://www.gmx.net/de/go/partner
> _______________________________________________ pygtk mailing list pygtk at daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
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