I want to print objects, so that the result is a valid python expression and can be used to reconstruct equivalent value.
Let's call this function printexp
For example,
printexp(['a', 1+2, (True, {'f': [0]}, 1/2)])
would return
"['a', 3, (True, {'f': [0]}, 0.5)]"