get a line of text from a socket...

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Aug 25 12:54:15 EDT 2006


In <1156523827.971633.321830 at m79g2000cwm.googlegroups.com>, KraftDiner
wrote:

> If you don't know how long your input data is going to be how can you
> at least treat it a text line at a time... like looking for new line in
> the data... Right now recv blocks.   Yes I could do a select, but the
> examples seem a bit complicated for a simple line oriented input...

This is already done in the `asyncore` and `asynchat` modules of the
standard library.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list