Hi again, Jim is correct in saying most objects. I did not think of sockets and such. I was thinking more of user defined code objects.
Richard----- Original Message ----- From: "rrdinger" <rrdinger@xxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Wednesday, February 06, 2008 8:06 AM Subject: Re: Python - Pickling And Shelving
Hi JamesYes, you can shelve any object. But if you fetch it back in another module, the module doing the fetching must "know" what the object looks like. I am using the term object here to denote a class instance. Thus you must import the class first.Richard----- Original Message ----- From: <james.homme@xxxxxxxxxxxx>To: <programmingblind@xxxxxxxxxxxxx> Sent: Wednesday, February 06, 2008 6:36 AM Subject: Python - Pickling And ShelvingHi,The book I am reading talks about pickling and shelving dictionary objects. It says that other languages call this something else. It's a way to create a dictionary, write it to a file and get it back. Can you do the same thingwith any object? Thanks. Jim James D Homme, , Usability Engineering, Highmark Inc., james.homme@xxxxxxxxxxxx, 412-544-1810"it is only possible to live happily ever after on a day-to-day basis." --Margaret Bonnano __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind