Suppose I have an output file that I want to read and each line was created by joining several types together, prepending and appending the list braces,
[('tupleValueA','tupleValueB'), 'someString', ('anotherTupleA','anotherTupleB')]
I want to read the lines in. Now I can read them in, and operate on the string to assign values and types but I was wondering if Python had a higher level method for this.
After building a function to do this I tried to find a higher level approach but didn't find one.