Pack object `o` and return packed bytes See :class:`Packer` for options.
(o, **kwargs)
| 28 | |
| 29 | |
| 30 | def packb(o, **kwargs): |
| 31 | """ |
| 32 | Pack object `o` and return packed bytes |
| 33 | |
| 34 | See :class:`Packer` for options. |
| 35 | """ |
| 36 | return Packer(**kwargs).pack(o) |
| 37 | |
| 38 | |
| 39 | def unpack(stream, **kwargs): |