Message86700
Opening an existing file in read-only text mode and trying to write to it:
>>> f = open("LICENSE")
>>> f.write("")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: null argument to internal routine
Binary files get it right though:
>>> f = open("LICENSE", "rb")
>>> f.write("")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
io.UnsupportedOperation: write |
|
Date |
User |
Action |
Args |
2009-04-27 21:36:56 | pitrou | set | recipients:
+ pitrou |
2009-04-27 21:36:56 | pitrou | set | messageid: <1240868216.12.0.495676026515.issue5860@psf.upfronthosting.co.za> |
2009-04-27 21:36:54 | pitrou | link | issue5860 messages |
2009-04-27 21:36:54 | pitrou | create | |
|