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 nobody
Recipients
Date 2001-04-18.01:10:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Version 2.1 final release for Windows (using Idle)
Windows 98 2nd edition

f=open('c:\\My Documents\\textfile.txt', 'a')
f.write('hello file\n')
f.readlines()

raises the following error - it probably should.

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in ?
    f.readlines()
IOError: [Errno 9] Bad file descriptor

However, the file gets a bunch of garbage appended to 
it.  In some cases, the entire contents of the GUI 
window gets appended.   

In Redhat 6.2 (also with Version 2.1 Final)the same 
code just erases the file.
History
Date User Action Args
2007-08-23 13:53:55adminlinkissue416906 messages
2007-08-23 13:53:55admincreate