Message87801
> 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. |
|
Date |
User |
Action |
Args |
2009-05-15 09:18:38 | r.david.murray | set | recipients:
+ r.david.murray, georg.brandl, rhettinger, facundobatista, ncoghlan, pitrou, benjamin.peterson, nessus42 |
2009-05-15 09:18:38 | r.david.murray | set | messageid: <1242379118.3.0.966878193932.issue1152248@psf.upfronthosting.co.za> |
2009-05-15 09:18:37 | r.david.murray | link | issue1152248 messages |
2009-05-15 09:18:36 | r.david.murray | create | |
|