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 draghuram
Recipients draghuram, gvanrossum, stephbul
Date 2007-10-19.19:43:56
SpamBayes Score 0.07930813
Marked as misclassified No
Message-id <1192823037.94.0.722989568365.issue1294@psf.upfronthosting.co.za>
In-reply-to
Content
I tested cmd.py on Linux and two things (including the one reported by
OP) looked odd to me.

1) CTRL-D produces a message "*** Unknown syntax: EOF". 
2) CTRL-C produces a KeyboardInterrupt exception and the session terminates.

I am attaching a patch that changes the behaviour to a more typical one
(at least, in IMHO). It terminates the session on CTRL-D and it just
ignores CTRL-C. Both of these can be overridden, if required. If the
patch is accepted, a doc change would be required in addition to the
change in doc string. I tested the patch on Linux and Windows.
Files
File name Uploaded
cmd.diff draghuram, 2007-10-19.19:43:57
History
Date User Action Args
2007-10-19 19:43:58draghuramsetspambayes_score: 0.0793081 -> 0.07930813
recipients: + draghuram, gvanrossum, stephbul
2007-10-19 19:43:57draghuramsetspambayes_score: 0.0793081 -> 0.0793081
messageid: <1192823037.94.0.722989568365.issue1294@psf.upfronthosting.co.za>
2007-10-19 19:43:57draghuramlinkissue1294 messages
2007-10-19 19:43:57draghuramcreate