GNOME Bugzilla – Bug 733893
Differences in GObject.get_property vs. GObject.props accessor
Last modified: 2014-08-18 08:34:27 UTC
While working through bug 726999 I noticed a few property types which differ in return values between GObject.get_property() and the GObject.props accessor. These should be fixed to be made consistent, the problem is some of the changes might be considered an API break. GIMarshallingTests.PropertiesObject.some-boxed-glist: get_property() returns None with an empty list and a GIMarshallingTestsBoxedGList object when it has contents. props returns a Python list in both cases. I think we can get away with updating get_property() to also return a Python list as this seems like a bug. GIMarshallingTests.PropertiesObject.some-char/uchar: get_property() returns a single character string whereas the props accessor returns an integer. get_property() seems somewhat broken because it cannot represent the full range of values that we test with the props accessor. We should attempt changing get_property() to always return integers for G_TYPE_CHAR and G_TYPE_UCHAR properties.