Problem!!

Dan Stromberg drsalists at gmail.com
Mon Jul 4 20:09:44 EDT 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
>
>
>
> --
> Steven
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110704/fa4f9353/attachment.html>


More information about the Python-list mailing list