Puzzling input problem

Stephen R. Figgins fig at monitor.net
Wed Mar 21 23:23:52 EST 2001


> Actually, raw_input isn't the culprit, exactly.  The print 
> statement's format handler doesn't know that raw_input() has 
> modified the screen contents, so it still behaves like the cursor is 
> just after the "prompt string: " on the screen, inserting a space 
> as the ref guide says it will.

Hmmm... very interesting.  The first print doesn't put the space in
right away, but waits for the next call to the print statement to add
the space.  That is not what I would have expected.  Interesting!

Stephen



More information about the Python-list mailing list