This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients benjamin.peterson, facundobatista, georg.brandl, ncoghlan, nessus42, pitrou, r.david.murray, rhettinger
Date 2009-05-15.09:18:36
SpamBayes Score 3.16787e-07
Marked as misclassified No
Message-id <1242379118.3.0.966878193932.issue1152248@psf.upfronthosting.co.za>
In-reply-to
Content
> cat temp
this is$#a weird$#file$#
> ./python
Python 3.1b1+ (py3k:72632:72633M, May 15 2009, 05:11:27)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open('temp', newline='$#')
[50354 refs]
>>> f.readlines()
['this is$#', 'a weird$#', 'file$#', '\n']

All I did was comment out the 'newline' argument validity check in textio.c.
History
Date User Action Args
2009-05-15 09:18:38r.david.murraysetrecipients: + r.david.murray, georg.brandl, rhettinger, facundobatista, ncoghlan, pitrou, benjamin.peterson, nessus42
2009-05-15 09:18:38r.david.murraysetmessageid: <1242379118.3.0.966878193932.issue1152248@psf.upfronthosting.co.za>
2009-05-15 09:18:37r.david.murraylinkissue1152248 messages
2009-05-15 09:18:36r.david.murraycreate