def __init__(self, io, opts={}): self.io = io self.packer = msgpack.Packer(autoreset=False) nopts = MsgPackMarshaler.default_opts.copy() nopts.update(opts) Marshaler.__init__(self, nopts)