[Twisted-Python] twisted-compliant interactive interpreter
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?
--- 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
> >> I felt a need for an interactive interpreter that
> >> continued to be interactive when the reactor ran.
> >> is my adaptation of the console class in
> >> 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.
> 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...
More information about the Twisted-Python