ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
13. Data Persistence
13.1 pickle -- Python object serialization
13.1.1 Relationship to other Python modules
13.1.2 Data stream format
13.1.3 Usage
13.1.4 What can be pickled and unpickled?
13.1.5 The pickle protocol
13.1.6 Subclassing Unpicklers
13.1.7 Example
13.2 cPickle -- A faster pickle
13.3 copy reg -- Register pickle support functions
13.4 shelve -- Python object persistence
13.5 marshal -- Internal Python object serialization
13.6 anydbm -- Generic access to DBM-style databases
13.7 whichdb -- Guess which DBM module created a database
13.8 dbm -- Simple ``database'' interface
13.9 gdbm -- GNU's reinterpretation of dbm
13.10 dbhash -- DBM-style interface to the BSD database library
13.11 bsddb -- Interface to Berkeley DB library
13.12 dumbdbm -- Portable DBM implementation
13.13 sqlite3 -- DB-API 2.0 interface for SQLite databases

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference >> 13. Data Persistence
ActivePython 2.5 documentation

13.1 pickle -- Python object serialization

The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure. ``Pickling'' is the process whereby a Python object hierarchy is converted into a byte stream, and ``unpickling'' is the inverse operation, whereby a byte stream is converted back into an object hierarchy. Pickling (and unpickling) is alternatively known as ``serialization'', ``marshalling,''13.1 or ``flattening'', however, to avoid confusion, the terms used here are ``pickling'' and ``unpickling''.

This documentation describes both the pickle module and the cPickle module.



Footnotes

... ``marshalling,''13.1
Don't confuse this with the marshal module



See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved