#NEWLINE# def Deserialize( s , parse_float = float ) : #NEWLINE# #INDENT# 'Return an object for a binary serialized version.\n\n  Depending on the target platform, precision of float values may be lowered\n  on deserialization.  Use parse_float to provide an alternative\n  floating point translation function, e.g. decimal.Decimal, if retaining\n  high levels of float precision (> ~10 places) is important.\n\n\n  Args:\n    s: str\n    parse_float: callable, optional, to translate floating point values\n  Returns:\n    any object that was serialized\n  Raises:\n    DeserializeError: if an error occured during deserialization\n  ' #NEWLINE# try : #NEWLINE# #INDENT# if ( s is None ) : #NEWLINE# #INDENT# raise DeserializeError ( ( 'Nothing to deserialize: %s' % type ( s ) ) ) #NEWLINE# #UNINDENT# return json . loads ( s , parse_float = parse_float ) #NEWLINE# #UNINDENT# except ValueError as e : #NEWLINE# #INDENT# raise DeserializeError ( s )