New submission from wyz23x2 <[email protected]>:
When you run this code:
import time
for i in range(10):
print(f"\r{i}", end='', flush=True)
time.sleep(1)
print('\n')
On CMD it prints 0 at the first time, then it will erase it and print the
increased i. But on IDLE it just prints "0123456789" -- that isn't right.
----------
assignee: terry.reedy
components: IDLE
messages: 368616
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: \r broken in IDLE
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com