Asking for input without stopping the script in python.

Posted by ImTooStupidForThis on Stack Overflow See other posts from Stack Overflow or by ImTooStupidForThis
Published on 2010-03-09T11:17:05Z Indexed on 2010/03/09 11:21 UTC
Read the original article Hit count: 221

Filed under:
|

I am (trying) to make a simple IRC client in python (as kind of a project while I learn the language).
I have a loop that I use to receive and parse what the IRC server sends me,
but if I use raw_input to input stuff, it stops the loop dead in its tracks until I input something (obviously).

How can I input something without the loop stopping?

Thanks in advance.

(I don´t think I need to post the code, I just want to input something without the while 1 loop stopping.)

© Stack Overflow or respective owner

Related posts about python

Related posts about input