By putting them into another file you can just use .readline iterator on file object to solve your problem. I would personally find it hard to work on a program that had 400,000 lines of data hard coded into a structure like this, but that's me.
-Larry Jeremy Sanders wrote: > On Fri, 25 Feb 2005 10:57:59 -0600, Larry Bates wrote: > > >>How did you get the string in memory in the first place? > > > They're actually from a generated python script, acting as a saved file > format, something like: > > interpret(""" > lots of lines > """) > another_command() > > Obviously this isn't the most efficient format, but it's nice to > encapsulate the data and the script into one file. > > Jeremy > -- http://mail.python.org/mailman/listinfo/python-list