environment/lib/python2.7/site-packages/IPython/zmq/serialize.py
def unserialize_object(bufs):
    """reconstruct an object serialized by serialize_object from data buffers."""
    bufs = list(bufs)
    sobj = pickle.loads(bufs.pop(0))
    if isinstance(sobj, (list, tuple)):
        for s in sobj:
            if s.data is None:
                s.data = bufs.pop(0)
        return uncanSequence(map(unserialize, sobj)), bufs
    elif isinstance(sobj, dict):
        newobj = {}
        for k in sorted(sobj.iterkeys()):
            s = sobj[k]
            if s.data is None:
                s.data = bufs.pop(0)
            newobj[k] = uncan(unserialize(s))
        return newobj, bufs
    else:
        if sobj.data is None:
            sobj.data = bufs.pop(0)
        return uncan(unserialize(sobj)), bufs
def unserialize_object(bufs):
    """reconstruct an object serialized by serialize_object from data buffers."""
    bufs = list(bufs)
    sobj = pickle.loads(bufs.pop(0))
    if isinstance(sobj, (list, tuple)):
        for s in sobj:
            if s.data is None:
                s.data = bufs.pop(0)
        return uncanSequence(map(unserialize, sobj)), bufs
    elif isinstance(sobj, dict):
        newobj = {}
        for k in sorted(sobj.iterkeys()):
            s = sobj[k]
            if s.data is None:
                s.data = bufs.pop(0)
            newobj[k] = uncan(unserialize(s))
        return newobj, bufs
    else:
        if sobj.data is None:
            sobj.data = bufs.pop(0)
        return uncan(unserialize(sobj)), bufs
def unserialize_object ( bufs ) : bufs = list ( bufs ) sobj = pickle . loads ( bufs . pop ( 0 ) ) if isinstance ( sobj , ( list , tuple ) ) : for s in sobj : if s . data is None : s . data = bufs . pop ( 0 ) return uncanSequence ( map ( unserialize , sobj ) ) , bufs elif isinstance ( sobj , dict ) : newobj = { } for k in sorted ( sobj . iterkeys ( ) ) : s = sobj [ k ] if s . data is None : s . data = bufs . pop ( 0 ) newobj [ k ] = uncan ( unserialize ( s ) ) return newobj , bufs else : if sobj . data is None : sobj . data = bufs . pop ( 0 ) return uncan ( unserialize ( sobj ) ) , bufs
reconstruct an object serialized by serialize_object from data buffers.
reconstruct an object serialized by serialize_object from data buffers .