Re: Pickling a dictionary

2012-11-07 Thread Devashish Tyagi
On Wednesday, 7 November 2012 21:57:05 UTC+5:30, Peter Otten wrote: > Devashish Tyagi wrote: > > > > > So I want to store the current state of a InteractiveInterpreter Object in > > > database. In order to achieve this I tried this > > > > > >

Pickling a dictionary

2012-11-07 Thread Devashish Tyagi
So I want to store the current state of a InteractiveInterpreter Object in database. In order to achieve this I tried this obj = InteractiveInterpreter() local = obj.locals() pickle.dump(local, open('obj.dump','rw')) But I received an error say TypeError: can't pickle ellipsis objects >From wh