def packb(o, *, use_bin_type=False, encoding=None, unicode_errors=None, **kwargs): assert use_bin_type is False assert encoding is None assert unicode_errors is None try: return mp_packb(o, use_bin_type=use_bin_type, encoding=encoding, unicode_errors=unicode_errors, **kwargs) except Exception as e: raise PackException(e)