[issue42828] Python readline module

Marco Franzo report at bugs.python.org
Tue Jan 5 15:03:09 EST 2021


Marco Franzo <frenzisys at gmail.com> added the comment:

So, I use Ubuntu 20.10 and the terminal
is the one distributed with the system.

I think this problem born in my code here:

def generate_input():
    while True:
        str = input().strip()
        yield helloworld_pb2.Operazione(operazione = str)


I think the string

os.system('stty sane')

it can be very useful for those who have the shell unusable at the end of the program.

If i remove import readline, I no longer have any problems, but i need 
the features of readline

----------
Added file: https://bugs.python.org/file49722/io_console.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42828>
_______________________________________


More information about the Python-bugs-list mailing list