RE: [Twisted-Python] Manhole and StandardIO

2009-01-13 Thread Jean-Paul Calderone
On Tue, 13 Jan 2009 10:08:06 +0100, Zoran Bosnjak wrote: StandardIO accepts an IProtocol provider as an argument. Manhole does not implement IProtocol, it implements ITerminalProtocol. So you cannot use these two classes together like this. See twisted/conch/stdio.py for examples of how to us

RE: [Twisted-Python] Manhole and StandardIO

2009-01-13 Thread Zoran Bosnjak
> StandardIO accepts an IProtocol provider as an argument. > Manhole does not implement IProtocol, it implements > ITerminalProtocol. So you cannot use these two classes > together like this. > > See twisted/conch/stdio.py for examples of how to use manhole > on stdio. Thanks for your sugge

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

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 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

[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.