[issue2199] cPickle error with gtk GEnum classes

2008-02-29 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue2199] cPickle error with gtk GEnum classes

2008-02-29 Thread Paul Pogonyshev
Paul Pogonyshev added the comment: Please close this issue. It is a PyGObject bug, nothing to do with Python: http://bugzilla.gnome.org/show_bug.cgi?id=519645 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2199] cPickle error with gtk GEnum classes

2008-02-28 Thread Martin v. Löwis
Martin v. Löwis added the comment: This all look like a bug in pygtk to me, not like a bug in pickle/cPickle. __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue2199] cPickle error with gtk GEnum classes

2008-02-28 Thread Paul Pogonyshev
Paul Pogonyshev added the comment: It doesn't seem 'pickle' itself works: >>> import pickle >>> import gtk >>> s = pickle.dumps (gtk.RC_TOKEN_LOWEST, pickle.HIGHEST_PROTOCOL) >>> pickle.loads (s) __main__:1: Warning: cannot retrieve class for invalid (unclassed) type `' ** ERROR **: file pygenu

[issue2199] cPickle error with gtk GEnum classes

2008-02-28 Thread Paul Pogonyshev
Paul Pogonyshev added the comment: Using slightly modified PyGObject (so that it gives more useful error message in pyg_enum_new) and adding 'raise' in the end of attached example, I got this: Traceback (most recent call last): File "", line 5, in ValueError: value out of range (294 not in

[issue2199] cPickle error with gtk GEnum classes

2008-02-28 Thread Martin v. Löwis
Martin v. Löwis added the comment: Can you please investigate the details and report the cause of the problem? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ __

[issue2199] cPickle error with gtk GEnum classes

2008-02-28 Thread PyScripter
New submission from PyScripter: cPickle has problems loading instances of gtk gobject.GEnum classes. gobject.GEnum is a subclass of int. On the other hand pickle handles those classes correctly. Since cPickle is meant to be a faster version of pickle this needs to be consider a bug. To test