def _pack_changed(self, name, old, new):
        if not isinstance(new, collections.Callable):
            raise TypeError("packer must be callable, not %s"%type(new))
dataset/ETHPy150Open ipython/ipython-py3k/IPython/zmq/session.py/Session._pack_changed/original