reading a list from a file
David Bear
david.bear at asu.edu
Mon Jun 20 17:20:21 EDT 2005
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..
--
David Bear
-- let me buy your intellectual property, I want to own your thoughts --
More information about the Python-list
mailing list