Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-12 Thread Alessio Pace
On Sat, Jan 10, 2009 at 10:24 AM, Alessio Pace wrote: > > > On Fri, Jan 9, 2009 at 3:29 PM, Jean-Paul Calderone wrote: > >> On Fri, 9 Jan 2009 15:13:10 +0100, Alessio Pace >> wrote: >> >>> On Fri, Jan 9, 2009 at 3:01 PM, Alvin Delagon >>> wrote: >>> >>> You shouldn't bind your client on a port

Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-12 Thread Jean-Paul Calderone
On Mon, 12 Jan 2009 10:23:00 +0100, Alessio Pace wrote: On Sat, Jan 10, 2009 at 10:24 AM, Alessio Pace wrote: On Fri, Jan 9, 2009 at 3:29 PM, Jean-Paul Calderone wrote: On Fri, 9 Jan 2009 15:13:10 +0100, Alessio Pace wrote: On Fri, Jan 9, 2009 at 3:01 PM, Alvin Delagon wrote: You sho

[Twisted-Python] Manhole and StandardIO

2009-01-12 Thread Zoran Bosnjak
Hello all, I would like to have a simple console python interactive shell, powered by twisted. I am looking for something like this... --- from twisted.internet import reactor, stdio from twisted.conch.manhole import Manhole stdio.StandardIO(Manhole()) reactor.run() --- ... but it does not work.

Re: [Twisted-Python] Manhole and StandardIO

2009-01-12 Thread Jean-Paul Calderone
On Mon, 12 Jan 2009 23:09:40 +0100, Zoran Bosnjak wrote: Hello all, I would like to have a simple console python interactive shell, powered by twisted. I am looking for something like this... --- from twisted.internet import reactor, stdio from twisted.conch.manhole import Manhole stdio.Stand

Re: [Twisted-Python] Manhole and StandardIO

2009-01-12 Thread glyph
On 10:21 pm, exar...@divmod.com wrote: On Mon, 12 Jan 2009 23:09:40 +0100, Zoran Bosnjak wrote: Hello all, I would like to have a simple console python interactive shell, powered by twisted. See twisted/conch/stdio.py for examples of how to use manhole on stdio. It doesn't sound like you

Re: [Twisted-Python] Manhole and StandardIO

2009-01-12 Thread Jean-Paul Calderone
On Mon, 12 Jan 2009 22:53:29 -, gl...@divmod.com wrote: On 10:21 pm, exar...@divmod.com wrote: On Mon, 12 Jan 2009 23:09:40 +0100, Zoran Bosnjak wrote: Hello all, I would like to have a simple console python interactive shell, powered by twisted. See twisted/conch/stdio.py for examples

[Twisted-Python] Tracebacks being dropped from exceptions when using inlineCallbacks

2009-01-12 Thread Terry Jones
I think I've finally gotten to the bottom of why exceptions sometimes lose their tracebacks when using inlineCallbacks. I've spent many hours trying to track down problems that result from this. I find the code handling failures, deferreds, and inlineCallbacks non-trivial even in isolation, let al

Re: [Twisted-Python] Tracebacks being dropped from exceptions when using inlineCallbacks

2009-01-12 Thread Phil Christensen
On Jan 12, 2009, at 8:36 PM, Terry Jones wrote: I think I've finally gotten to the bottom of why exceptions sometimes lose their tracebacks when using inlineCallbacks. [snip snip] I'll stop for now. I have some suggestions for fixes, but I'm already in over my head. BTW, I get the impressi