Message220130
The following important information from PEP 3156 does not appear in the asyncio library documentation:
"""Datagram protocols have connection_made() and connection_lost() methods with the same signatures as stream protocols."""
Indeed, reading the docs it looks like only ``Protocol`` and ``SubprocessProtocol`` have these methods. (See https://docs.python.org/3.4/library/asyncio-protocol.html#connection-callbacks)
The quick fix is to change the lines 275-276 in ``Doc/library/asyncio-protocol.rst`` from:
These callbacks may be called on Protocol and SubprocessProtocol instances:
to
These callbacks may be called on Protocol, DatagramProtocol, and SubprocessProtocol instances: |
|
Date |
User |
Action |
Args |
2014-06-10 00:19:35 | ariddell | set | recipients:
+ ariddell, gvanrossum, vstinner, docs@python, yselivanov |
2014-06-10 00:19:34 | ariddell | set | messageid: <1402359574.1.0.968660255801.issue21700@psf.upfronthosting.co.za> |
2014-06-10 00:19:33 | ariddell | link | issue21700 messages |
2014-06-10 00:19:32 | ariddell | create | |
|