[Bug 32524] Python version of text handler example

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jan 28 11:58:14 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=32524

--- Comment #5 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2011-01-28 02:58:10 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > Oh, Tomeu, I'm not really happy with this:
> > >    channel.ack_messages_async(messages, lambda a, b, c: 0, None)
> > > 
> > > Is there a better way to pass no callback? Shouldn't pygi always allow None as
> > > a GAsyncReadyCallback ?
> > 
> > We surely could special-case it in pygobject or even in g-i-scanner, so all
> > bindings benefit from it. But I wonder if in some cases API authors would like
> > to make sure it's not None.
> 
> I think in this case it should be telepathy-glib to add (allow-none)
> annotations to those arguments, as nobody else can now if that code is ready to
> handle NULL callbacks. If that doesn't work for some reason, please file a bug
> for pygobject.

It doesn't work. I opened https://bugzilla.gnome.org/show_bug.cgi?id=640812

I added 2 small commits to the branch.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list