[New-bugs-announce] [issue40591] \r broken in IDLE

wyz23x2 report at bugs.python.org
Mon May 11 03:43:55 EDT 2020


New submission from wyz23x2 <wyz23x2 at 163.com>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue40591>
_______________________________________


More information about the New-bugs-announce mailing list