[Tutor] associating two objects without ORM and processing a text file

Prasad, Ramit ramit.prasad at jpmorgan.com
Thu Feb 14 18:35:40 CET 2013


neubyr wrote:
> I am not sure how to save an object in memory to a file before exiting the program. Any examples or
> related documentation links would be really helpful. I am guessing it would be using some kind of
> before teardown method, but not sure about it. Any help?

Look at the pickle or shelve modules.
http://www.doughellmann.com/PyMOTW/pickle/index.html
http://www.doughellmann.com/PyMOTW/shelve/index.html

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list