A far simpler testcase: >>> import gtk >>> gtk.ListStore(long).append([2**31-1]) <GtkTreeIter at 0x80a1010> >>> gtk.ListStore(long).append([2**31]) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: value is of wrong type for this column
This is expected behaviour on x86-32, where long is 4 bytes wide. Are you on x86-64? pyg_value_from_pyobject (in pygtype.c) looks slightly wrong on integral types, though. Ed _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
