[issue42828] Python readline module

2021-01-05 Thread Marco Franzo


New submission from Marco Franzo :

It would be better to write at the end of the program this:

os.system('stty sane')

because when you import readline, at the end of program, the console remains 
unusable

--
assignee: docs@python
components: Documentation
messages: 384379
nosy: docs@python, frenzisys
priority: normal
severity: normal
status: open
title: Python readline module
type: enhancement
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue42828>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42828] Python readline module

2021-01-05 Thread Marco Franzo


Marco Franzo  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 
<https://bugs.python.org/issue42828>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com