This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: KeyboardInterrupt prevents return to Windows console
Type: behavior Stage: test needed
Components: Interpreter Core, Windows Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, kf7xm
Priority: normal Keywords:

Created on 2006-01-03 20:04 by kf7xm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
threadingSample.py kf7xm, 2006-01-03 20:04 sample code which shows the problem
Messages (3)
msg27225 - (view) Author: Vernon Cole (kf7xm) Date: 2006-01-03 20:04
Environment: Python 2.4, Windows 2000 Professional,
windows command prompt.

Python is using a join(), waiting for threads to
finish, when a KeyboardInterrupt occurs.  (A
KeyboardInterrupt handler is defined for the main thread.) 

The handler appears to work as expected, but control is
never returned to Windows, leaving the console window
unusable.

Directions to reproduce bug:
1) run the attached program from a console prompt like:
c:\mydir> threadingSample.py
2) when the program suggests, hit <Ctrl-C>
msg84059 - (view) Author: Vernon Cole (kf7xm) Date: 2009-03-24 05:30
A quick test on Vista shows that this problem is not present in Python
2.6 nor 3.0.
msg85495 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-05 13:50
Closing then.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42756
2009-04-05 13:50:58georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg85495

resolution: out of date
2009-03-24 05:30:17kf7xmsetmessages: + msg84059
2009-03-20 23:51:36ajaksu2setstage: test needed
type: behavior
components: + Windows
versions: + Python 2.6, - Python 2.4
2006-01-03 20:04:59kf7xmcreate