Davide Mancusi added the comment:
For completeness, here is some versioning information:
$ python
Python 2.7 (r27:82500, Mar 23 2015, 16:46:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more inf
New submission from Davide Mancusi:
I have a text file with Windows-style line terminators (\r\n) which I open in
universal newlines mode. I would expect the newlines attribute to be set after
the first call to the readline() method, but apparently this is not the case:
>>> f=open(&