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.pyt...@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
>
>
>
> --
> Steven
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to