[docs] [issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

Caelyn McAulay report at bugs.python.org
Mon Apr 14 21:11:42 CEST 2014


Caelyn McAulay added the comment:

Changed documentation to state that ValueError should be raised if any operation (excluding close()) is called on a closed stream.

This appears to be what is done in iobase.c; and some investigation of inheriting types (rawiobase, fileio, bufferedio, etc.) indicates that there is nowhere where an IOError is being raised instead.

Sphinx documentation appears to already be update to date.

Is there any known place where operations on a closed stream raise IOError? I am currently assuming no.

----------
keywords: +patch
nosy: +math_foo
Added file: http://bugs.python.org/file34843/comment15840.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15840>
_______________________________________


More information about the docs mailing list