How to serialize and deserialize the objects into memory?

H

hardemr

Hello Everyone,

I want to serialize and deserialize the objects into Memory not into
file. How can i do that?

Best Regards,
 
D

Diez B. Roggisch

hardemr said:
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
 
G

Gerhard Häring

hardemr said:
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 you want to communicate (via network) with other
processes.

-- Gerhard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top