How to serialize and deserialize the objects into memory?

2008-07-11 Thread hardemr
Hello Everyone, I want to serialize and deserialize the objects into Memory not into file. How can i do that? Best Regards, -- http://mail.python.org/mailman/listinfo/python-list

Re: How to serialize and deserialize the objects into memory?

2008-07-11 Thread Diez B. Roggisch
hardemr schrieb: Hello Everyone, I want to serialize and deserialize the objects into Memory not into file. How can i do that? Use pickle module StringIO/cStringIO as file-to-memory-object. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: How to serialize and deserialize the objects into memory?

2008-07-11 Thread Gerhard Häring
hardemr wrote: Hello Everyone, I want to serialize and deserialize the objects into Memory not into file. How can i do that? You want to serialize the objects, but only keep them in memory? That hardly makes any sense. Serialization is need if you want to store your objects in a file or if

Re: How to serialize and deserialize the objects into memory?

2008-07-11 Thread Inyeol . Lee
On Jul 11, 12:58 pm, hardemr [EMAIL PROTECTED] wrote: Hello Everyone, I want to serialize and deserialize the objects into Memory not into file. How can i do that? pickle.dumps and pickle.loads. --Inyeol -- http://mail.python.org/mailman/listinfo/python-list

Re: How to serialize and deserialize the objects into memory?

2008-07-11 Thread Ben Finney
Gerhard Häring [EMAIL PROTECTED] writes: You want to serialize the objects, but only keep them in memory? That hardly makes any sense. Serialization is need if you want to store your objects in a file or if you want to communicate (via network) with other processes. If one needs to do