[issue21191] os.fdopen() may eat file descriptor and still raise exception
Dima Tisnek
report at bugs.python.org
Wed Apr 9 21:22:54 CEST 2014
Dima Tisnek added the comment:
Benjamin, I think you missed the key point:
file + matching mode -> fd eaten, object created
file + mode mismatch -> fd remains, exception raised
dir + matching mode -> fd eaten, exception raised
The issue is about resouce (fd) management
Thus, how can user code handle the error without either leaking file descriptor or possibly closing someone else's file descriptor?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21191>
_______________________________________
More information about the Python-bugs-list
mailing list