Basic asyncio usage
brisher777 at gmail.com
Mon Nov 24 16:18:49 CET 2014
On Wednesday, March 26, 2014 6:35:31 AM UTC-5, Piotr Husiatyński wrote:
> I have posted the same question to python-tutor list *, but I'm trying
> my luck here as advised.
> I'm trying to get more familiar with asyncio library. Using python
> 3.4, I wrote simple echo server (see attachement for the code). I know
> that instead of using bare bone send/recv I could use some of the
> helper functions, but I want to start with the basics.
> Using attached code, I can connect from multiple sources, but echo
> won't work for all clients. Also, please look at the `sendall` mehtod
> - I have to manually remove write callback, otherwise it will be
> called all the time. Any tips on solving this problem?
> * https://mail.python.org/pipermail/tutor/2014-March/100679.html
I was wondering if you ever made progress with your asyncio project. I'm currently digging around for examples and reference material and came across your post.
I'd be interested in any tips/gotchas/examples you'd be willing to provide as far as asyncio.
More information about the Python-list