[issue43610] Ctrl C makes interpreter exit

2021-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that sndhdr.what(0) calls "with open(0, rb)" so that Eryk's comment applies. (On Windows, handle 0 is invalid, so the call errors immediately instead of hanging.) -- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved

[issue43610] Ctrl C makes interpreter exit

2021-03-23 Thread Eryk Sun
Eryk Sun added the comment: > Python interpreter will exit when using Ctrl C to interrupt > some Python module functions with read operations. The REPL exits when stdin is closed. open() allows the filename to be an existing file descriptor without requiring a parameter such as

[issue43610] Ctrl C makes interpreter exit

2021-03-23 Thread Xinmeng Xia
New submission from Xinmeng Xia : Python interpreter will exit when using Ctrl C to interrupt some Python module functions with read operations. e.g. sndhdr.what(0), pdb.find_function('abs/'*10,False), mimetypes.read_mime_types(0). This is not the expected behavior. Ctrl C is to raise