(o, stream, **kwargs)
Pack an object and write it to a stream.
Pack an object and write it to a stream.
Pack an object and write it to a stream .
def pack(o, stream, **kwargs):
    """
    Pack an object and write it to a stream.
    """
    packer = Packer(**kwargs)
    stream.write(packer.pack(o))
def pack ( o , stream , * * kwargs ) : packer = Packer ( * * kwargs ) stream . write ( packer . pack ( o ) )