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 748852 - Override changes Gst.ElementFactory.make arguments
Override changes Gst.ElementFactory.make arguments
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-python
unspecified
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-05-03 20:18 UTC by Osmo Salomaa
Modified: 2018-11-03 15:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Osmo Salomaa 2015-05-03 20:18:51 UTC
I have gotten bug reports in Gaupol that the following code doesn't work if the user has gst-python installed (see #748813).

    Gst.ElementFactory.make("textoverlay", name=None)

Your override changes both argument names, thus breaking keyword argument use, which I tend to often prefer since it makes the code self-documenting. To my knowledge, keyword argument use should be fine with PyGObject, i.e. they're part of the API, see e.g. gtk-demo.py [1].

Gaupol doesn't depend on gst-python and I was surprised to find out such a thing still exists, but there was no information at the web site [2]. So, if I may ask, what is this gst-python?, why is it needed?  and is it intended that you override function signatures or just an accident? Can I as an application developer expect that things should work the same for users with and without gst-python?

[1] https://git.gnome.org/browse/pygobject/tree/demos/gtk-demo/gtk-demo.py
[2] http://gstreamer.freedesktop.org/modules/gst-python.html
Comment 1 GStreamer system administrator 2018-11-03 15:36:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-python/issues/5.