Re: Can a print overwrite a previous print ?

2020-05-08 Thread Cameron Simpson
On 08May2020 09:36, Sir Real wrote: On Fri, 8 May 2020 16:25:52 +0200, ast wrote: Suppose we want that: print("abcdef"); print("ghi") produces: ghidef The 2nd print overwrites the first one. Is it feasible ? On a terminal, yes. This is a display issue. It should since the progress bar

Can a print overwrite a previous print ?

2020-05-08 Thread ast
Hello Suppose we want that: print("abcdef"); print("ghi") produces: ghidef The 2nd print overwrites the first one. Is it feasible ? It should since the progress bar tdqh seems to do that try: from tkdm import tkdm for i in tqdm(range(100_000_000)): pass It produces a progress bar li

Re: Can a print overwrite a previous print ?

2020-05-08 Thread Sir Real via Python-list
On Fri, 8 May 2020 16:25:52 +0200, ast wrote: >Hello > > >Suppose we want that: > >print("abcdef"); print("ghi") > >produces: > >ghidef > >The 2nd print overwrites the first one. >Is it feasible ? > >It should since the progress bar tdqh seems to do that > >try: > >from tkdm import tkdm > >for i