Terry J. Reedy <tjre...@udel.edu> added the comment:

This is known, has been discussed on previous issues (can't find numbers now), 
and is not a bug. Your code outputs a stream of 21 characters to 'file' 
sys.stdout, which for code executed by IDLE is, by default, directed to Shell. 
The effect of outputting Ascii control characters to a display device depends 
on the device.  On a hard-copy printing terminal, the source from which \r in 
particular was taken, the effect of your code would be the 10 digits printed on 
top of each other.  In an edit box on a screen, such as this Comment box on 
Firefox, characters are normally just inserted as received.  If I type 0, Left, 
1, Left, ...., 9, the result is '9876543210'.

The current intended Shell behavior is what you see -- display (or not)  chars 
as received.  Changes have been rejected in the past but I am considering 
adding a 'terminal' mode.

----------
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to