After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621915 - Add a way to bind g_input_stream_read
Add a way to bind g_input_stream_read
Status: RESOLVED DUPLICATE of bug 671139
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks: 658269
 
 
Reported: 2010-06-17 17:54 UTC by Ignacio Casal Quinteiro (nacho)
Modified: 2012-06-25 08:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add test for Gio.Stream.read_async (1.35 KB, text/plain)
2011-04-12 08:16 UTC, Tomeu Vizoso
Details

Description Ignacio Casal Quinteiro (nacho) 2010-06-17 17:54:01 UTC
We need a way to say the number of bytes to allocate. i.e: array-length=count.
Also probably would be needed to say the type of the buffer as it is void *. Probably it should be uint8
Comment 1 Tomeu Vizoso 2011-04-12 08:15:25 UTC
I think that API should be considered as a convenience API for C callers.

The attached test assumes that alternative API will be added.
Comment 2 Tomeu Vizoso 2011-04-12 08:16:13 UTC
Created attachment 185778 [details]
Add test for Gio.Stream.read_async
Comment 3 Ignacio Casal Quinteiro (nacho) 2011-09-02 21:17:39 UTC
IRC comments:

<nacho> walters, around?
* jrb has quit (Ping timeout: 600 seconds)
<walters> yep
<nacho> walters, https://bugzilla.gnome.org/show_bug.cgi?id=621915 <- you think it would be possible with introspection?
<nacho> or the only way is to have a data handling method
<walters> yeah, that one i just don't have a good answer for
<walters> well
<walters> it should be possible to pass a native language byte array as regular input
<walters> however the language would have to know/handle the underlying memory being modified
<nacho> yeah
<walters> which might be a problem for anything with a JIT
Comment 4 Bastien Nocera 2011-09-05 15:11:54 UTC
I would have needed this to use in Totem's opensubtitles.org plugin. In the meanwhile, it'll stay broken.
Comment 5 Martin Pitt 2012-04-24 14:00:45 UTC
With today's versions, GI still does not allow introspecting this, so confirming for 3.2.0. If this API is really needed in Python still, it's probably better to add a binding friendly API to GLib.
Comment 6 Jose Rostagno 2012-06-06 15:46:29 UTC
the new GIO API from http://git.gnome.org/browse/glib/commit/?id=800d6ff1115b27bf0e9cce818a0511048e2f1cc5
should solve this or I'm wrong?
Also bug #669306 it's the other way "output" and should be solved to by the same commit.
Comment 7 Martin Pitt 2012-06-25 08:41:47 UTC
I agree, duplicating.

*** This bug has been marked as a duplicate of bug 671139 ***