(o, stream, **kwargs)
Pack object `o` and write it to `stream`

    See :class:`Packer` for options.
Pack object `o` and write it to `stream`
Pack object o and write it to stream
def pack(o, stream, **kwargs):
    """
    Pack object `o` and write it to `stream`

    See :class:`Packer` for options.
    """
    packer = Packer(**kwargs)
    stream.write(packer.pack(o))
def pack ( o , stream , * * kwargs ) : packer = Packer ( * * kwargs ) stream . write ( packer . pack ( o ) )