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.

Author roger.serwy
Recipients r.david.murray, roger.serwy, terry.reedy
Date 2012-05-08.01:07:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Ctrl+Z followed by Return still exits the Python shell on the command prompt under Vista.

The simplest way to get this behavior working in IDLE would be modifying the end-of-file definition in config-keys.def, but only for the Windows keymap:

    [IDLE Classic Windows]
    # truncated
    end-of-file=<Control-Key-d> <Control-Key-D> <Control-Key-z><Return>
    # truncated

I left the Ctrl+D bindings in place, as these are IDLE's "norm". In a strict sense they should be removed for a Windows key map. (I am basing my cross-platform understanding of Ctrl+Z from here: )

The undo functionality already binds to Ctrl+Z. By using the Ctrl+Z and Return sequence to signal IDLE's shell to exit, I can foresee users accidentally closing their shells. Consider this scenario: a user types a long command and the prompt and then presses Ctrl+Z to undo the last few key strokes. The user then presses enter to run the command but the shell closes instead. The regular python shell from a command prompt displays a "^Z" as a visual indicator. If IDLE's shell did the same then I would not have hesitations about changing the key bindings.

For now, I'm in favor of changing the documentation in help.txt to omit "(this is Control-z on Windows)."
Date User Action Args
2012-05-08 01:07:36roger.serwysetrecipients: + roger.serwy, terry.reedy, r.david.murray
2012-05-08 01:07:36roger.serwysetmessageid: <>
2012-05-08 01:07:36roger.serwylinkissue14735 messages
2012-05-08 01:07:35roger.serwycreate