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

scaven scaven at bk.ru
Mon Feb 14 15:31:20 CET 2011


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
thx


More information about the docs mailing list