[Twisted-Python] twisted-compliant interactive interpreter

Jp Calderone exarkun at divmod.com
Wed Aug 10 01:58:57 EDT 2005

On Tue, 09 Aug 2005 11:07:37 -0400, Itamar Shtull-Trauring <itamar at itamarst.org> wrote:
>On Tue, 2005-08-09 at 06:08 -0700, Antony Kummel wrote:
>> I felt a need for an interactive interpreter that
>> continued to be interactive when the reactor ran. Here
>> is my adaptation of the console class in codes.py.
>> Please comment.
>twisted.manhole provides one, and there's probably some way to hook it
>up to the console using twisted.internet.stdio.

Except it's twisted.conch.manhole.  twisted.conch.stdio demonstrates how one much hook it up to stdio.

Note in particular the absence of raw_input(), which will segfault as often as not, when invoked in a non-main thread.


More information about the Twisted-Python mailing list