specify end of line character for readline

Serhiy Storchaka storchaka at gmail.com
Tue May 15 03:20:55 EDT 2012


On 15.05.12 09:29, Ian Kelly wrote:
> In Python 3 you can pass the argument newline='\r\n' to the open
> function when you open the file.  I don't know of anything comparable
> in Python 2.

io.open supports "newline" argument.




More information about the Python-list mailing list