g_thread_pool_new() is not introspectable
@guidog
Submitted by Guido Günther Link to original bug (#683941)
Description
The constructor doesn't take any arguments and accessing func directly aborts:
py> from gi.repository import GLib
py> a = GLib.ThreadPool(func=callable)
Traceback (most recent call last):
File "`<stdin>`", line 1, in `<module>`
TypeError: function takes at most 0 arguments (1 given)
py> a = GLib.ThreadPool()
py> a.func = (lambda *args: None)
**
ERROR:/home/martin/debian/pkg-gnome/build-area/pygobject-3.3.91/gi/pygi-argument.c:1202:_pygi_argument_from_object: code should not be reached
Aborted
Version: 2.33.x
Edited by Philip Withnall