Yeah, I didn't see either, and I guessed PyGObject wouldn't require
something so unpythonic.

However, it is a fact that I can call those methods without errors
(provided I call them in moments that make sense)

So I wondered if there were some hidden benefits, like freeing
memory faster than waiting for the GC would, or something
like that. (ignore the last sentence if it sounded stupid, I'm
just thinking of random examples)


On Tue, Jan 29, 2013 at 9:10 AM, Adam Tauno Williams <awill...@whitemice.org
> wrote:

> On Tue, 2013-01-29 at 07:03 -0200, Conscious User wrote:
> > I've noticed that PyGObject exposes unref methods
> > (for example, GResource) and free methods (for
> > example GdkRGBA and GtkIconInfo).
> > Are those supposed to be used? Doesn't sound like
> > they should, but I'm asking in case there is a
> > situation where they are recommended.
>
> I, personally, in my limited experience, have never seen them used.  Or
> seen documentation indicating they should be used.
>
> <https://live.gnome.org/GObjectIntrospection> doesn't mention those
> methods [ that page lined to from the handy reference/intro page @
> <http://worldofgnome.org/get-it-started-with-gnome-development/> ]
> --
> Adam Tauno Williams
> System Administrator, OpenGroupware Developer, LPI / CNA
> Fingerprint 8C08 209A FBE3 C41A DD2F A270 2D17 8FA4 D95E D383
>
> _______________________________________________
> python-hackers-list mailing list
> python-hackers-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/python-hackers-list
>
_______________________________________________
python-hackers-list mailing list
python-hackers-list@gnome.org
https://mail.gnome.org/mailman/listinfo/python-hackers-list

Reply via email to