Re: Pickle Encoding Errors

2009-09-20 Thread Dan
On 20 Sep, 13:29, Christian Heimes wrote: > Dan wrote: > > Error unpickling > > Pickling from destructor... > > Exception exceptions.LookupError: 'unknown encoding: raw-unicode- > > escape' in > instance at 0xb7d3decc>> ignored > > > If I now change destruct to 0 the output is: > > > Error unpick

Re: Pickle Encoding Errors

2009-09-20 Thread Christian Heimes
Dan wrote: > Error unpickling > Pickling from destructor... > Exception exceptions.LookupError: 'unknown encoding: raw-unicode- > escape' in instance at 0xb7d3decc>> ignored > > If I now change destruct to 0 the output is: > > Error unpickling > Pickling from __main__... > Pickled just fine > >

Re: Pickle Encoding Errors

2009-09-20 Thread Laszlo Nagy
I'm running Python 2.5.4 on Debian Sid. If anybody understands the error please enlighten me. Very interesting! Here is a minimalist version: import pickle class PickleTest: def __init__(self): self.library={u"A": 1,u"B": 2,u"C": 3} def __del__(self): self.pickle()