(self, package)
recreate a local object representation of the remote object: if the
        object is passed by value, just return it; if the object is passed by
        reference, create a netref to it
recreate a local object representation of the remote object: if the
        object is passed by value, just return it; if the object is passed by
        reference, create a netref to it
recreate a local object representation of the remote object : if the object is passed by value just return it ; if the object is passed by reference create a netref to it
def _unbox(self, package):
        """recreate a local object representation of the remote object: if the
        object is passed by value, just return it; if the object is passed by
        reference, create a netref to it"""
        label, value = package
        if label == consts.LABEL_VALUE:
            return value
        if label == consts.LABEL_TUPLE:
            return tuple(self._unbox(item) for item in value)
        if label == consts.LABEL_LOCAL_REF:
            return self._local_objects[value]
        if label == consts.LABEL_REMOTE_REF:
            oid, clsname, modname = value
            if oid in self._proxy_cache:
                return self._proxy_cache[oid]
            proxy = self._netref_factory(oid, clsname, modname)
            self._proxy_cache[oid] = proxy
            return proxy
        raise ValueError("invalid label %r" % (label,))
def _unbox ( self , package ) : label , value = package if label == consts . LABEL_VALUE : return value if label == consts . LABEL_TUPLE : return tuple ( self . _unbox ( item ) for item in value ) if label == consts . LABEL_LOCAL_REF : return self . _local_objects [ value ] if label == consts . LABEL_REMOTE_REF : oid , clsname , modname = value if oid in self . _proxy_cache : return self . _proxy_cache [ oid ] proxy = self . _netref_factory ( oid , clsname , modname ) self . _proxy_cache [ oid ] = proxy return proxy raise ValueError ( "invalid label %r" % ( label , ) )