GNOME Bugzilla – Bug 707904
Can't change signature of __init__ in subclass of GLib.Source
Last modified: 2013-09-11 12:11:27 UTC
$ cat test.py from gi.repository import GLib class MySource(GLib.Source): def __init__(self, arg): super(MySource, self).__init__() source = MySource(5) $ python test.py Traceback (most recent call last):
+ Trace 232469
source = MySource(5)
The following fix has been pushed: 59a2964 Fix GLib.Source sub-classing with initializer args
Created attachment 254670 [details] [review] Fix GLib.Source sub-classing with initializer args Add variable args and keyword args to the GLib.Source.__new__ method to support sub-classes which want to implement __init__.