[Twisted-Python] how to get the user's input
Maarten ter Huurne
maarten at treewalker.org
Tue Dec 2 06:47:58 MST 2008
On Tuesday 02 December 2008, lei ren wrote:
> if i want to get the
> user's input with raw_input() in a while loop,but it will block to wait
> the user' input
> what can i do for this .use thread? of twisted have some more power
> feature for the problem,,thank you every body
Maybe you can put sys.stdin in non-blocking mode? I never tried it though.
Bye,
Maarten
More information about the Twisted-Python
mailing list