GNOME Bugzilla – Bug 566744
_wrap_g_input_stream_read_async() argument parsing has incorrect keyword args
Last modified: 2009-01-07 15:04:10 UTC
The positional and keyword argument lists for this wrapper don't seem to match: static char *kwlist[] = { "callback", "count", "io_priority", "cancellable", "user_data", NULL }; and: if (!PyArg_ParseTupleAndKeywords(args, kwargs, "lO|iOO:InputStream.read_async", kwlist, &count, ¬ify->callback, &io_priority, &pycancellable, ¬ify->data)) That is, the count and callback arguments are around the wrong way in either the kwlist or PyArg_ParseTupleAndKeywords() arguments.
I fixed it by swapping keywords. First, positional arguments seem to be in similar order as in gio.OutputStream.write_async (i.e. 'callback' after the essential I/O argument), second it will not break already working code because currently you cannot use these keywords at all, but can use positional arguments. Sending ChangeLog Sending gio/ginputstream.override Transmitting file data .. Committed revision 994. 2009-01-07 Paul Pogonyshev <pogonyshev@gmx.net> Bug 566744 – _wrap_g_input_stream_read_async() argument parsing has incorrect keyword args * gio/ginputstream.override (_wrap_g_input_stream_read_async): Fix keyword list to be in sync with positional arguments.