pygsti.tools.listtools.lists_to_tuples#
- lists_to_tuples(obj)#
Recursively replaces lists with tuples.
Can be useful for fixing tuples that were serialized to json or mongodb. Recurses on lists, tuples, and dicts within obj.
- Parameters:
obj (object) – Object to convert.
- Return type:
object