Apologies for my numerous offenses to protocol, and gratitude for the suggestions all around.And yet... as to the notion of a tuple existing in some non-Platonic sense, I suspect I will have carry my confusion away in order to dispel it by further reading. "Wrong on both counts?" Hey, you win! I WAS wrong. But if it is not a tuple that is in the file, it would be helpful to know what it is. Presumably, a string representing a tuple. And as to the matter of representation, I cant immediately see how anything in a script is anything other than a representation of some kind, hence the distinction between representamen and object does no work for me.
Yes, I should have been clearer as to what I was trying to achieve, but I underestimated the good will of this community(in most cases)and their willingness to help. For which, as I said, much thanks. On Tue, Nov 29, 2011 at 8:02 AM, Steven D'Aprano <st...@pearwood.info> wrote: > Peter Otten wrote: > >> And here's the lazy-bastard version: > > [...] >> >> ... print ast.literal_eval(line.strip()) > > Nice! > > > -- > Steven > > > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > -- Mayo Adams 287 Erwin Rd. Chapel Hill, NC 27514 (919)-968-7889 mayoad...@gmail.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor