Re: [Python-Dev] Pickling problems are hard to debug

2006-03-26 Thread Martin v. Löwis
Greg Ewing wrote: > Anyone have any ideas how the situation could > be improved? As always: on a case-by-case basis. If you find a specific case where you think the diagnosis should be better, make it better for this case. Perhaps some generalization arises while doing so, but if not, atleast this

Re: [Python-Dev] Pickling problems are hard to debug

2006-03-25 Thread Gary Poster
On Mar 25, 2006, at 8:13 PM, Greg Ewing wrote: > There seems to be a need for better diagnostics > when pickle encounters something that can't be > pickled. > > Recently when attempting to pickle a rather > large and complicated data structure, I got > the following incomprehensible message: > >

[Python-Dev] Pickling problems are hard to debug

2006-03-25 Thread Greg Ewing
There seems to be a need for better diagnostics when pickle encounters something that can't be pickled. Recently when attempting to pickle a rather large and complicated data structure, I got the following incomprehensible message: cPickle.PicklingError: args[0] from __newobj__ args has t