And 'safe programming in python'? I'm amused.
I have considered doing a general peekable 'thing' implementation which would
be passed a 'thing' source and would allow 'thing' lookahead. I'm not sure
it would be worth the trouble, since it really needs to be in C. Also, there
is the question of passing it a method when creating the peekable object.
Steven Majewski has some good ideas along these lines.
But you realize that there is an advantage in being able to peek
the input of all kinds of code out there that people have already
written? What if I could peek a stream to decide whether I was
going to treat it as text or pass it to the existing rfc822
I think (it's a bit hard to tell) that John Redford and I have a different
idea of what a file object should be. For the record, "The map is not the