Message87801
| 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. |
|