Re: [Tutor] File Input of "Objects"

2005-06-01 Thread Wolfram Kraus
Chuck Allison wrote: > Hello tutor, > > I notice that with 'print >> f' one can print the string > representation of objects to a file. Is there a corresponding input > facility that parses through a file creating objects? I can't find > one. In the meantime, I did this: > > f = open

[Tutor] File Input of "Objects"

2005-06-01 Thread Chuck Allison
Hello tutor, I notice that with 'print >> f' one can print the string representation of objects to a file. Is there a corresponding input facility that parses through a file creating objects? I can't find one. In the meantime, I did this: >>> f = open('out.dat','w') >>> print >> f, 1, 2 >