|
Hi, Liam Clarke-Hutchinson wrote: Ok. Thanks for the heads up.Hi Joseph, Oh, sorry. I'm refering to the print msg[print_msg]As to your printing problem, I'm not sure if you're referring to - Well every word is on it's own new line (I get a huge message from the IRC server) and I'd like a word wrap or something to fix that.And I'm not sure if you want it to print without an additional newline, or with a newline.
Ah. ThanksThanks again. This is proving very usefull.If you're wanting to print without the newline that print adds, why not do a join like this one? message = ' '.join(msg[3:]) print ' '.join(msg) ? I'm expecting a large amount of text without new lines for each word, and possible word wrapping.What output you're expecting Example:What output you're getting this is the type of message I'm getting and as you can see , it's really annoying! I edited the code from a Python Cookbook recipe.PS Your code is interesting, I've never dealt with the IRC protocol before,so it's good to see a demonstration of it. Yes. Some people on a forum that I hang oput with suggested a chat room. A freind of mine suggested IRC and python. He's doing the server and I'm doing the client. I'm testing the client on freenode.. only thing I could think of at the time.I may toddle off and check out that RFC. |
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
