Message294638
| 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:59 | pitrou | set | recipients: + pitrou, barry, vstinner, giampaolo.rodola, njs, yselivanov |
| 2017-05-28 11:07:59 | pitrou | set | messageid: <1495969679.76.0.382260072605.issue30300@psf.upfronthosting.co.za> |
| 2017-05-28 11:07:59 | pitrou | link | issue30300 messages |
| 2017-05-28 11:07:59 | pitrou | create | |