Python logo

Table of Contents

  • pickle — Python object serialization
    • Relationship to other Python modules
      • Comparison with marshal
      • Comparison with json
    • Data stream format
    • Module Interface
    • What can be pickled and unpickled?
    • Pickling Class Instances
      • Persistence of External Objects
      • Dispatch Tables
      • Handling Stateful Objects
    • Custom Reduction for Types, Functions, and Other Objects
    • Out-of-band Buffers
      • Provider API
      • Consumer API
      • Example
    • Restricting Globals
    • Performance
    • Examples
    • Command-line interface

Previous topic

Data Persistence

Next topic

copyreg — Register pickle support functions