KeyboardInterrupt being lost?

2005-10-14 Thread Operation Latte Thunder
I have a simple test proggie that isn't behaving like I expect ( found below ). The script will infinitely run ( as expected ), but seems to completely ignore control-C's. Shouldn't the interpreter pass along KeyboardInterrupts and break out of the while loop, or am I missing something? Using py

Re: twisted jabber and xmlstream

2005-05-04 Thread Operation Latte Thunder
Sylvain Thenault <[EMAIL PROTECTED]> wrote: > you can find some examples in our fatima project, a jabber bot testing > client, available at http://www.logilab.org/projects/fatima/0.1 > You'll find a jabber.py module in the distribution containing jabber > related code. > > hope that helps thanks,

twisted jabber and xmlstream

2005-05-03 Thread Operation Latte Thunder
I am playing around with Jabber with Twisted. I can receive messages just fine, and thats great, however, I am a bit confused about how to actually _send_ messages. From what I've seen, I need to call send() on the xmlstream I get when I am auth'd... and thats where I get stuck. Do I need to cre

Re: Shutting down twisted reacotr

2005-04-28 Thread Operation Latte Thunder
Jason Mobarak <[EMAIL PROTECTED]> wrote: > Why do you want to do this in a thread? What's wrong with > reactor.callLater? > > import time > from twisted.internet import reactor > > def shutdown(): > >time.sleep(3) >print "stopping" >reactor.callFromThread(reactor.stop) > > reactor.

Shutting down twisted reacotr

2005-04-27 Thread Operation Latte Thunder
I have a simple ( I hope ) problem that I have been baning my head against all day. I have isolated it down to a very small demo script, which I will include below. Basically, I want to have twisted run until an event makes it stop. My problem is that my reactor.stop() doesn't seem to do anything

freeze and expat

2005-04-21 Thread Operation Latte Thunder
I am playing around with jabberpy, and on a lark decided to try to freeze one of the included samples, test_client.py The freeze/build worked fine, but when I attempted to run the resulting binary, I got an error hinting that it couldn't find parsers.expat: canal:/home/chris/build% ./test_client