views:

72

answers:

1

What's the easiest way to write a daytime client in Python?

And if there's more data of unknown size but still plain text - how do I read until the server closes the connection?

A: 

Use Twisted - it will take some time to get the concept, but it rocks!

Start with tutorials http://twistedmatrix.com/documents/current/core/howto/index.html - first two should be enough.

techtonik
Thanks, but a little much overhead don't you think?
speakman
It will pay off in the long run if you intend to stuff your client with features.
techtonik