Cython utils: functions convert to bytes or str and to remove all empty

objects from a complex object
This commit is contained in:
Celine Mercier
2018-10-07 19:03:38 +02:00
parent 704d9b0474
commit ffd5bc76bf
2 changed files with 68 additions and 0 deletions

View File

@ -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)