Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #69114 > unrolled thread

Fwd: Basic asyncio usage

Started byPiotr Husiatyński <piotrhusiatynski@gmail.com>
First post2014-03-26 12:35 +0100
Last post2014-03-26 12:35 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Fwd: Basic asyncio usage Piotr Husiatyński <piotrhusiatynski@gmail.com> - 2014-03-26 12:35 +0100

#69114 — Fwd: Basic asyncio usage

FromPiotr Husiatyński <piotrhusiatynski@gmail.com>
Date2014-03-26 12:35 +0100
SubjectFwd: Basic asyncio usage
Message-ID<mailman.8569.1395833733.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi,
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web