[issue21191] os.fdopen() may eat file descriptor and still raise exception
Benjamin Peterson
report at bugs.python.org
Wed Apr 9 23:50:02 CEST 2014
Benjamin Peterson added the comment:
On Wed, Apr 9, 2014, at 13:18, Dima Tisnek wrote:
>
> Dima Tisnek added the comment:
>
> Good point.
>
> Personally I think it's more pythonic to consume fd only on success. I
> accept that's just an opinion.
>
> In any case, let's keep error semantics in py2.7 and py3.3 same.
Unfortunately, it's not easy to implement with the 2.7 implementation of
the file type.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21191>
_______________________________________
More information about the Python-bugs-list
mailing list