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 christian.heimes
Recipients christian.heimes
Date 2007-11-11.19:49:57
SpamBayes Score 0.020334417
Marked as misclassified No
Message-id <1194810598.65.0.0259751927953.issue1422@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.5 and probably 2.6 suffer from the same problem although it's
harder to trigger it.

Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> f = open("/tmp/test", 'w')
>>> f.fileno()
3
>>> os.close(f.fileno())
>>> f.write("test")
>>> f.write("test")
>>>
close failed: [Errno 9] Bad file descriptor
$ ls -la /tmp/test
-rw-r----- 1 heimes heimes 0 2007-11-11 20:46 /tmp/test
History
Date User Action Args
2007-11-11 19:49:58christian.heimessetspambayes_score: 0.0203344 -> 0.020334417
recipients: + christian.heimes
2007-11-11 19:49:58christian.heimessetspambayes_score: 0.0203344 -> 0.0203344
messageid: <1194810598.65.0.0259751927953.issue1422@psf.upfronthosting.co.za>
2007-11-11 19:49:58christian.heimeslinkissue1422 messages
2007-11-11 19:49:58christian.heimescreate