Message9540
Logged In: YES
user_id=126343
The reason why they don't use raw_input in non-human interactive programs
is because it doesn't work like they expect. They usually end up doing
something like this:
print "Your next command > ",
sys.stdout.flush()
command = sys.stdin.readline() (or something)
Take a look at http://www.freenetpages.co.uk/hp/alan.gauld/tutinput.htm (in
the yellow box in the middle of the page) for a common idiom with a good
explanation of why. He is reading interactive input from a non-human user.
PS. I apologize for playing with the priority. I was under the impression that
bugs/patches just weren't watched. It was more an experiment to see if there
really was anyone out there paying attention.
|
|
Date |
User |
Action |
Args |
2007-08-23 13:59:36 | admin | link | issue526382 messages |
2007-08-23 13:59:36 | admin | create | |
|