pickle.Unpickler

Module pickle :: Class Unpickler |
[show private | hide private]
[frames | no frames]

## Class Unpickler

Known Subclasses:
  `Unserializer`

Method Summary
| ``__init__`(self, file)` This takes a file-like object for reading a pickle data stream.
| `find_class(self, module, name)`
| `get_extension(self, code)`
| ``load`(self)` Read a pickled object representation from the open file.
| `load_append(self)`
| `load_appends(self)`
| `load_binfloat(self, unpack)`
| `load_binget(self)`
| `load_binint(self)`
| `load_binint1(self)`
| `load_binint2(self)`
| `load_binpersid(self)`
| `load_binput(self)`
| `load_binstring(self)`
| `load_binunicode(self)`
| `load_build(self)`
| `load_dict(self)`
| `load_dup(self)`
| `load_empty_dictionary(self)`
| `load_empty_list(self)`
| `load_empty_tuple(self)`
| `load_eof(self)`
| `load_ext1(self)`
| `load_ext2(self)`
| `load_ext4(self)`
| `load_false(self)`
| `load_float(self)`
| `load_get(self)`
| `load_global(self)`
| `load_inst(self)`
| `load_int(self)`
| `load_list(self)`
| `load_long(self)`
| `load_long1(self)`
| `load_long4(self)`
| `load_long_binget(self)`
| `load_long_binput(self)`
| `load_mark(self)`
| `load_newobj(self)`
| `load_none(self)`
| `load_obj(self)`
| `load_persid(self)`
| `load_pop(self)`
| `load_pop_mark(self)`
| `load_proto(self)`
| `load_put(self)`
| `load_reduce(self)`
| `load_setitem(self)`
| `load_setitems(self)`
| `load_short_binstring(self)`
| `load_stop(self)`
| `load_string(self)`
| `load_true(self)`
| `load_tuple(self)`
| `load_tuple1(self)`
| `load_tuple2(self)`
| `load_tuple3(self)`
| `load_unicode(self)`
| `marker(self)`
| `_instantiate(self, klass, k)`

Class Variable Summary
`dict` | `dispatch` = `{'': <function load_eof at 0x4049c72c>, '\x80...`

Method Details

### __init__(self, file) (Constructor) This takes a file-like object for reading a pickle data stream. The protocol version of the pickle is detected automatically, so no proto argument is needed. The file-like object must have two methods, a read() method that takes an integer argument, and a readline() method that requires no arguments. Both methods should return a string. Thus file-like object can be a file object opened for reading, a StringIO object, or any other custom object that meets this interface.

### load(self) Read a pickled object representation from the open file. Return the reconstituted object hierarchy specified in the file.

Class Variable Details

    ### dispatch Type: `dict` Value:
        {'': <function load_eof at 0x4049c72c>,
         '(': <function load_mark at 0x4049e374>,
         ')': <function load_empty_tuple at 0x4049cbfc>,
         '.': <function load_stop at 0x4049e3ac>,
         '0': <function load_pop at 0x4049e064>,
         '1': <function load_pop_mark at 0x4049e09c>,
         '2': <function load_dup at 0x4049e0d4>,
         'F': <function load_float at 0x4049ca3c>,
        ...

Generated by Epydoc 2.1 on Thu Nov 23 23:40:43 2006 | http://epydoc.sf.net