[EMAIL PROTECTED] wrote:

> ...
> 0D0A  to the file.
> 
> Is this a bug or expected behavior?
> It sure took me by surprise.

You're running Windows, right? Then, this is expected behaviour, as Windows
treats text and binary files different, extending \n to \r\n (as that is
the Windows end of line marker).

If you want to only write \n to the file, use:

f = file("t.txt","wb")

...

windows-line-feeds-are-from-hell'ly yours,
--- Heiko.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to