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
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
>
>
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()