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 barry
Recipients barry, giampaolo.rodola, njs, pitrou, vstinner, yselivanov
Date 2017-05-29.00:47:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20170528174713.2ca85b63@presto>
In-reply-to <1495969679.76.0.382260072605.issue30300@psf.upfronthosting.co.za>
Content
Hi Antoine,

On May 28, 2017, at 11:07 AM, Antoine Pitrou wrote:

>I think the API is too specific.

Can you elaborate?  What's too specific about it?  Do you have in mind a use
case where you wouldn't need to provide hostname and port?

>Instead of requiring hostname and port, why not let the user override setup
>and teardown coroutines?
>
>In your case, this could be:
>
>async def setup(self):
>    self.server = await self.loop.create_server(...)
>
>async def teardown(self):
>    await self.server.wait_closed()

It's certainly possible to factor those out so they could be overridden, I'm
just not sure why that's needed.
History
Date User Action Args
2017-05-29 00:47:21barrysetrecipients: + barry, pitrou, vstinner, giampaolo.rodola, njs, yselivanov
2017-05-29 00:47:21barrylinkissue30300 messages
2017-05-29 00:47:20barrycreate