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 pitrou
Recipients pitrou
Date 2009-04-27.21:36:53
SpamBayes Score 6.7432415e-10
Marked as misclassified No
Message-id <[email protected]>
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: <[email protected]>
2009-04-27 21:36:54pitroulinkissue5860 messages
2009-04-27 21:36:54pitroucreate