Connection problems with irclib
Hi. I've written a bot in python, using the irclib by Joel Rosdahl. Works fine from my linux box at home, but when I upload it to my shell at veritynet.net, can't seem to get it to connect to an irc server. It doesn't report any errors. Anyone have any idea how I might go about at least diagnosing the problem? Any suggestions might help. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list
Re: Connection problems with irclib
On Wed, 11 Apr 2007 06:46:14 +, Paul Boddie wrote: > On 11 Apr, 15:31, "Dropkick Punt" <[EMAIL PROTECTED]> wrote: >> Hi. I've written a bot in python, using the irclib by Joel Rosdahl. >> >> Works fine from my linux box at home, but when I upload it to my shell at >> veritynet.net, can't seem to get it to connect to an irc server. > > It may well be the case that your hosting provider has blocked various > IRC ports and/or traffic. Thanks but no. The shell is generally used for eggdrops, and port 6667 is open. They even installed python specifically so I could run this bot. > >> It doesn't report any errors. >> >> Anyone have any idea how I might go about at least diagnosing the problem? >> Any suggestions might help. > > Check your provider's usage policy and documentation. -- http://mail.python.org/mailman/listinfo/python-list
list comparison help?
Hi. I have a list of common prefixes: >>> prefixes = [ "the", "this", "that", "da", "d", "is", "are", "r", "you", "u"] And I have a string, that I split() into a list. >>> sentence = "what the blazes is this" >>> sentence = sentence.split() Now I want to strip the sentence of all words in the prefix list. I tried this method: >>> for x in prefixes: ... if sentence.index(x): ... del sentence[sentence.index(x)] This raises, the error: Traceback (most recent call last): File "", line 3, in ? ValueError: list.index(x): x not in list This puzzles me, because if x isn't in the list, the subroutine shouldn't attempt to delete it from the list, so I'm not sure why it's complaining. Can anybody explain this to me, &/or show me a better way to do it? -- http://mail.python.org/mailman/listinfo/python-list