how do I "peek" into the next line?

Fredrik Lundh fredrik at pythonware.com
Mon Dec 13 16:44:58 EST 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
doing?

</F> 






More information about the Python-list mailing list