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 hniksic
Recipients asvetlov, docs@python, hniksic, yselivanov
Date 2019-09-15.15:17:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568560654.11.0.446224617149.issue38178@roundup.psfhosted.org>
In-reply-to
Content
The EchoClientProtocol example receives a "loop" argument, which is not used at all in the TCP example, and is used to create a future in the UDP example. In modern asyncio code the explicit loop arguments are no longer used since the loop can always be obtained with get_running_loop().

The proposed patch makes the UDP example consistent with the TCP one (by having the constructor accept the on_con_lost future) and removes the loop argument from both.
History
Date User Action Args
2019-09-15 15:17:34hniksicsetrecipients: + hniksic, asvetlov, docs@python, yselivanov
2019-09-15 15:17:34hniksicsetmessageid: <1568560654.11.0.446224617149.issue38178@roundup.psfhosted.org>
2019-09-15 15:17:34hniksiclinkissue38178 messages
2019-09-15 15:17:33hniksiccreate