Message56561
| 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:58 | draghuram | set | spambayes_score: 0.0793081 -> 0.07930813 recipients:
+ draghuram, gvanrossum, stephbul |
| 2007年10月19日 19:43:57 | draghuram | set | spambayes_score: 0.0793081 -> 0.0793081 messageid: <1192823037.94.0.722989568365.issue1294@psf.upfronthosting.co.za> |
| 2007年10月19日 19:43:57 | draghuram | link | issue1294 messages |
| 2007年10月19日 19:43:57 | draghuram | create |
|