How to write fast into a file in python?
Tim Roberts
timr at probo.com
Sun May 19 22:04:17 EDT 2013
Carlos Nepomuceno <carlosnepomuceno at outlook.com> wrote:
>Python really writes '\n\r' on Windows. Just check the files.
It actually writes \r\n, but it's not Python that's doing it. It's the C
runtime library.
And, of course, you can eliminate all of that by opening the file in binary
mode open(name,'wb').
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list