Re: [Twisted-Python] integrating a python REPL into my existing twisted application

2011-05-29 Thread Andrew Bennetts
Benjamin Rutt wrote: […] >Thanks.� I'm having trouble integrating this or Andrew's idea into my >example.� The simplest case doesn't quite work right for me (I see '>>>' >prompts, and can interact with the python interpreter but the banner >appears at the end of the REPL after I pre

Re: [Twisted-Python] integrating a python REPL into my existing twisted application

2011-05-27 Thread Benjamin Rutt
On Thu, May 26, 2011 at 9:38 AM, wrote: > > In addition to what Andrew said, I'll also point out that rather than > making code that expects blocking writes to stdout work by putting > stdout back into blocking mode, you can make it work by instead > providing a stdout which will buffer anything

Re: [Twisted-Python] integrating a python REPL into my existing twisted application

2011-05-26 Thread exarkun
On 02:27 am, rut...@osu.edu wrote: >Dear twisted-python, > >I 19m trying to integrate a python REPL into my existing twisted 8.2.0 >client-side program (which talks to another twisted server running a >custom >protocol). This client side program uses >twisted.internet.stdio.StandardIO >already t

Re: [Twisted-Python] integrating a python REPL into my existing twisted application

2011-05-25 Thread Andrew Bennetts
Benjamin Rutt wrote: >Dear twisted-python, >� >I�m trying to integrate a python REPL into my existing twisted 8.2.0 >client-side program (which talks to another twisted server running a >custom protocol).� This client side program uses >twisted.internet.stdio.StandardIO alre

[Twisted-Python] integrating a python REPL into my existing twisted application

2011-05-25 Thread Benjamin Rutt
Dear twisted-python, I’m trying to integrate a python REPL into my existing twisted 8.2.0 client-side program (which talks to another twisted server running a custom protocol). This client side program uses twisted.internet.stdio.StandardIO already to interact with the user, to read commands from