[issue22854] Documentation/implementation out of sync for IO

2014-11-12 Thread Stanislaw Pitucha

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 
<http://bugs.python.org/issue22854>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22854] Documentation/implementation out of sync for IO

2014-11-12 Thread Stanislaw Pitucha

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/issue22854>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-09-06 Thread Stanislaw Pitucha

Stanislaw Pitucha added the comment:

Confirming this on python 2.7.12 on DragonflyBSD

--
nosy: +viraptor

___
Python tracker 
<http://bugs.python.org/issue9400>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com