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 | amaury.forgeotdarc |
|---|---|
| Recipients | amaury.forgeotdarc, georg.brandl, peterdemin |
| Date | 2008年06月26日.11:48:35 |
| SpamBayes Score | 5.3175252e-05 |
| Marked as misclassified | No |
| Message-id | <1214480918.19.0.593696904751.issue3207@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I tried this on windows 2000:
>>> # create a file with some text
>>> open("delete.me","w").write("some text\n")
>>>
>>> fp = open("delete.me", "r+t")
>>> fp.readline()
'some text\n'
>>> fp.write("New line \n")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 0] Error
On all 2.x versions of python I tried (2.4, 2.5.1, 2.5.2, 2.6b1, some
compiled with VS7.1, some with VS8.0)
With python3.0, there is no error, and the "New line" is appended at the
end of the file.
issue1636874 may be related to this one. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月26日 11:48:38 | amaury.forgeotdarc | set | spambayes_score: 5.31753e-05 -> 5.3175252e-05 recipients: + amaury.forgeotdarc, georg.brandl, peterdemin |
| 2008年06月26日 11:48:38 | amaury.forgeotdarc | set | spambayes_score: 5.31753e-05 -> 5.31753e-05 messageid: <1214480918.19.0.593696904751.issue3207@psf.upfronthosting.co.za> |
| 2008年06月26日 11:48:36 | amaury.forgeotdarc | link | issue3207 messages |
| 2008年06月26日 11:48:35 | amaury.forgeotdarc | create | |