Cython utils: functions convert to bytes or str and to remove all empty
objects from a complex object
This commit is contained in:
@ -8,6 +8,10 @@ cdef bytes str2bytes(str string)
|
||||
cdef str bytes2str(bytes string)
|
||||
cdef bytes tobytes(object string)
|
||||
cdef str tostr(object string)
|
||||
cdef object bytes2str_object(object value)
|
||||
cdef object str2bytes_object(object value)
|
||||
|
||||
cdef object clean_empty_values_from_object(object value, exclude=*)
|
||||
|
||||
cdef obitype_t get_obitype_single_value(object value)
|
||||
cdef obitype_t update_obitype(obitype_t obitype, object new_value)
|
||||
|
Reference in New Issue
Block a user