Re: [Tutor] put data from text file into list

2007-07-02 Thread Kent Johnson
Mike Hoy wrote: > is it possible to take information contained inside a text file and put > it into a list? My text file contains info derived from a list so it > looks like this: ['foo','bar']. If the file is Python syntax (including an assignment) you can import it directly. Or try one of the

[Tutor] put data from text file into list

2007-07-01 Thread Mike Hoy
is it possible to take information contained inside a text file and put it into a list? My text file contains info derived from a list so it looks like this: ['foo','bar']. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo