[Bug 32524] Python version of text handler example

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 27 17:10:54 CET 2011


Tomeu Vizoso <tomeu at tomeuvizoso.net> changed:

           What    |Removed                     |Added
  Status Whiteboard|                            |review+

--- Comment #4 from Tomeu Vizoso <tomeu at tomeuvizoso.net> 2011-01-27 08:10:54 PST ---
(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.

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