D
David Bear
I have a file that contains lists -- python lists. sadly, these are not
pickled. These are lists that were made using a simple print list
statement.
Is there an easy way to read this file into a list again? I'm thinking I
would have to
read until char = '['
read until char = " ' "
Well, reading character by char until I have the list and then parse it all
myself.
I was hoping there was a pythonic way of doing this..
pickled. These are lists that were made using a simple print list
statement.
Is there an easy way to read this file into a list again? I'm thinking I
would have to
read until char = '['
read until char = " ' "
Well, reading character by char until I have the list and then parse it all
myself.
I was hoping there was a pythonic way of doing this..