[docs] Library Reference, asyncore module, basic echo server

Sandro Tosi sandro.tosi at gmail.com
Thu Feb 17 00:36:31 CET 2011


Hi scaven,

On Mon, Feb 14, 2011 at 15:31, scaven <scaven at bk.ru> wrote:
> Hello
> Could you please make a little change in Library Reference, asyncore module
> http://docs.python.org/library/asyncore.html#asyncore-example-basic-echo-server
>
> change
>        self.send(data)
>
> to
>        if data!='': self.send(data)
>
> this will prevent error messages about sending to a closed client socket

I'm a bit unsure about this change: what's the exact problem you're
trying to fix?

That is an example, and one of the virtue an example has to have is
the simplicity and compactness while showing the concept if wants to
explain, so you have to convince us this change is worth.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list