Emad Nawfal (عماد نوفل) wrote:
Hi Tutors,
I've never had a situation in which this was useful for me, but I'm just curious. If there is a text file that has a list or number of lists in it, is there is a way to read the lists in the file as lists, and not as a string. Sample file attached.


I suppose you could read it as a string and then 'eval' it. That'd be risky though.


--
~noufal
http://nibrahim.net.in/
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to