Dec-01-2019, 10:29 PM
i need to get the type of an object as a string, as in
[] -> 'list'
. does anything already exist for this or do i need to use my own function?def typestr(obj): return str(type(obj)).split("'")[1]