This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ariddell
Recipients ariddell, docs@python, gvanrossum, vstinner, yselivanov
Date 2014-06-10.00:19:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402359574.1.0.968660255801.issue21700@psf.upfronthosting.co.za>
In-reply-to
Content
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:
History
Date User Action Args
2014-06-10 00:19:35ariddellsetrecipients: + ariddell, gvanrossum, vstinner, docs@python, yselivanov
2014-06-10 00:19:34ariddellsetmessageid: <1402359574.1.0.968660255801.issue21700@psf.upfronthosting.co.za>
2014-06-10 00:19:33ariddelllinkissue21700 messages
2014-06-10 00:19:32ariddellcreate