[gstreamer-bugs] [Bug 393458] pygobject.gobject_set_property does not handle enum values (well)

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Jan 6 11:19:07 PST 2007


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=393458

  GStreamer | gst-python | Ver: 0.10.6





------- Comment #3 from Mark Nauwelaerts  2007-01-06 19:17 UTC -------
On the one hand, it seems e.g. that both some_object.props.some_property =
some_value and the old some_object.set_property ("some-property",
some_value) fail when passing e.g. '4' (as a string) to an int-property.
That is, a TypeError is raised, rather than the expected automagical conversion
happening.  Of course, knowing that it is an int-property makes for a trivial
conversion, and that seems to be what this helper function is doing.

On the other hand, this could of course be done or coded in many possible ways.
As such, this particular function is not necessarily being "crucially relied
upon", but it seems a matter of "clean housekeeping" to either remove this
function (or disable or comment out etc) or have it at least functioning
properly (and safely) all the way.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list