drsalists at gmail.com
Tue Jul 5 02:09:44 CEST 2011
It turned out that switching to binary I/O made seek do what he was
expecting. I'm guessing the transparent crlf to lf conversions in windows
text I/O get seek() a bit perplexed, because it transparently changes the
number of bytes.
On Mon, Jul 4, 2011 at 4:30 PM, Steven D'Aprano <
steve+comp.lang.python at pearwood.info> wrote:
> amir chaouki wrote:
> > the problem is when i use the seek function on windows it gives me
> > false results
> What do you mean "false results"? What does this even mean?
> Please show us:
> * what you do
> * what result you expect
> * what result you actually get
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list