how do I "peek" into the next line?
fredrik at pythonware.com
Mon Dec 13 22:44:58 CET 2004
<les_ander at yahoo.com> wrote:
> now suppose I have read the first line already.
> then I read the second line and notice
> that there is a ">" in front (my special character)
> then I want the put back the second line into the
> file or the stdin.
the line doesn't disappear from the file just because you
read it. so who do you want to pass it to? someone else?
some other part of your program? what exactly are you
More information about the Python-list