how do I "peek" into the next line?

Adam DePrince adam at cognitcorp.com
Mon Dec 13 17:15:04 EST 2004


On Mon, 2004-12-13 at 16:44, fuzzylollipop wrote:
> reads are not destructive there is nothing to "put back" becuase it is
> never removed to begin with.
> just change your logic and thing of about what you really need to do

Not true.  

Character special devices in Unix
Named pipes in Windows NT
Pipes in Unix
Comx: where x is your com port in DOS
Sockets
gzip and zlib file objects; this file was described as being *so* large
that it should not be read into memory.  IIRC seek operations are
linear; while it is correct you can seek backwards, I don't think you
would really want to.


Adam DePrince 





More information about the Python-list mailing list