best(fastest) way to send and get lists from files

Paddy paddy3118 at googlemail.com
Fri Feb 1 00:27:46 EST 2008


On Jan 31, 7:34 pm, "Abrahams, Max" <Max_Abrah... at brown.edu> wrote:
> I've looked into pickle, dump, load, save, readlines(), etc
I've used the following sometimes:

from pprint import pprint as pp
print "data = \\"
pp(data)

That created a python file that could be read as a module, but there
are limitations on the __repr__ of the data.

- Paddy.
P.S. I never timed it - it was fast enough, and the data was readable.




More information about the Python-list mailing list