[Twisted-Python] twisted-compliant interactive interpreter

Antony Kummel antonykummel at yahoo.com
Wed Aug 10 13:32:24 EDT 2005

Using twisted.manhole sounds like a good idea, but
twisted.internet.stdio doesn't support Windows, which
I am using. My version with deferToThread(raw_input)
works fine in windows. Could it be that there are no
problems doing it under windows?

Anyway, to be compatible I tried a variety of methods
to implement twisted.internet.stdio for windows
(attached is a msvcrt version which is probably
worthless). I wonder, if raw_inputting in a non-main
thread works for windows, if it can be used to do the
windows version of twisted.internet.stdio.

If it works, how difficult would it be to make a
worthwhile manhole client for windows?


Antony Kummel

--- Jp Calderone <exarkun at divmod.com> wrote:

> 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.
> Jp
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: winstdio.py
Url: http://twistedmatrix.com/pipermail/twisted-python/attachments/20050810/a82865ef/attachment.txt 

More information about the Twisted-Python mailing list