Object Serialization

Motivation

  • Sometimes you need to save an object to disk and restore it later.
  • Or maybe you need to ship it across the network.

Problem

  • Manual implementation requires a lot of work.
  • Must come up with some kind of encoding scheme.
  • Must write code to marshal objects to and from the encoding.

Fortunately...

  • Python provides several modules to do all of this for you
<<< O'Reilly OSCON 2000, Advanced Python Programming, Slide 45
July 17, 2000, beazley@cs.uchicago.edu
>>>