Author pitrou
Recipients pitrou
Date 2009-04-27.21:36:53
SpamBayes Score 6.74324e-10
Marked as misclassified No
Message-id <1240868216.12.0.495676026515.issue5860@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-04-27 21:36:56pitrousetrecipients: + pitrou
2009-04-27 21:36:56pitrousetmessageid: <1240868216.12.0.495676026515.issue5860@psf.upfronthosting.co.za>
2009-04-27 21:36:54pitroulinkissue5860 messages
2009-04-27 21:36:54pitroucreate