New submission from Stanislaw Pitucha:
The docstring on for fileno() method says:
"An IOError is raised if the IO object does not use a file descriptor."
In reality, UnsupportedOperation is raised instead:
```
: io.StringIO().fileno()
UnsupportedOperation: fileno
```
--
Stanislaw Pitucha added the comment:
Just in case: yes, UnsupportedOperation is an IOError - but shouldn't docstring
here be more specific?
--
___
Python tracker
<http://bugs.python.org/is
Stanislaw Pitucha added the comment:
Confirming this on python 2.7.12 on DragonflyBSD
--
nosy: +viraptor
___
Python tracker
<http://bugs.python.org/issue9