Tom Brown <[EMAIL PROTECTED]> writes: > However, in my actual program I will not know the length of testmessage in > advance. So how do I convert msglen into a suitable format for the send > method?
>>> str(123) '123' You might also look at http://cr.yp.to/proto/netstrings.txt which describes some issues you should pay attention to, and suggests a standardized format. -- http://mail.python.org/mailman/listinfo/python-list