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 700094 - regression: Gtk.TreeIter().user_data cannot store 0
regression: Gtk.TreeIter().user_data cannot store 0
Status: RESOLVED DUPLICATE of bug 698366
Product: pygobject
Classification: Bindings
Component: introspection
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-10 16:19 UTC by Benny Malengier
Modified: 2013-05-12 00:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Benny Malengier 2013-05-10 16:19:18 UTC
Our application breaks when moving from 3.4 to 3.8

old: Ubuntu 12.10
 gtk++     : 3.6.0
 pygobject : 3.4.0

new: stock Ubuntu 13.04
 gtk++     : 3.6.4
 pygobject : 3.8.0

We store in Gtk.TreeIter index into a list. One of these is the start, so index=0. 
With 3.8.0 however, doing 
         iter.user_data = 0 
gives a value of None when doing 
         print (iter.user_data) 

Workaround: As we never store None in user_data, we convert a value of None to the real value of 0
Comment 1 Simon Feltman 2013-05-12 00:08:53 UTC
Thanks for the report. This has already been fixed (bug 698366) and was cherry-picked for PyGObject 3.8.2.

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