sciris.sc_fileio.loadstr

loadstr(string, verbose=False, die=None, remapping=None)[source]

Like loadobj(), but for a bytes-like string (rarely used).

Example:

obj = sc.objdict(a=1, b=2)
string1 = sc.dumpstr(obj)
string2 = sc.loadstr(string1)
assert string1 == string2