[New-bugs-announce] [issue21376] asyncio docs refer to wrong TimeoutError

Philip Sequeira report at bugs.python.org
Mon Apr 28 20:05:57 CEST 2014


New submission from Philip Sequeira:

Example: https://docs.python.org/3.4/library/asyncio-task.html
TimeoutError is mentioned several times, and links to the OSError subclass. However, the actual TimeoutError raised by asyncio stuff is the one from concurrent.futures, which is not compatible. The docs as they are seem to suggest that something like "except TimeoutError" would be appropriate, when in fact that would not produce the expected behavior; "except asyncio.TimeoutError" is what you'd want.

----------
assignee: docs at python
components: Documentation
messages: 217390
nosy: docs at python, qmega
priority: normal
severity: normal
status: open
title: asyncio docs refer to wrong TimeoutError
versions: Python 3.4, Python 3.5

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


More information about the New-bugs-announce mailing list