[New-bugs-announce] [issue22854] Documentation/implementation out of sync for IO

Stanislaw Pitucha report at bugs.python.org
Wed Nov 12 16:06:27 CET 2014


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
```

----------
components: IO
messages: 231079
nosy: viraptor
priority: normal
severity: normal
status: open
title: Documentation/implementation out of sync for IO
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list