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@python
components: Documentation
messages: 217390
nosy: docs@python, qmega
priority: normal
severity: normal
status: open
title: asyncio docs refer to wrong TimeoutError
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to