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 pitrou
Recipients barry, giampaolo.rodola, njs, pitrou, vstinner, yselivanov
Date 2017-05-28.11:07:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495969679.76.0.382260072605.issue30300@psf.upfronthosting.co.za>
In-reply-to
Content
I think the API is too specific.  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()
History
Date User Action Args
2017-05-28 11:07:59pitrousetrecipients: + pitrou, barry, vstinner, giampaolo.rodola, njs, yselivanov
2017-05-28 11:07:59pitrousetmessageid: <1495969679.76.0.382260072605.issue30300@psf.upfronthosting.co.za>
2017-05-28 11:07:59pitroulinkissue30300 messages
2017-05-28 11:07:59pitroucreate