Alexandre Vassalotti added the comment:

First, I would like to say thank you both for spending your time trying
to do a contribution to Python.

However, I believe the current behavior of cmd.py is correct. The module
documentation states clearly that "End of file on input is processed as
the command 'EOF'." For the KeyboardInterrupt issue, it thinks the
exception should be handled by the application with a try-statement. For
example,

   >>> import sys, cmd
   >>> c = cmd.Cmd()
   >>> try:
   ...     c.cmdloop()
   ... except KeyboardInterrupt:
   ...     print "\nGot keyboard interrupt. Exiting..."
   ...     sys.exit(0)
   ...
   (Cmd) ^C
   Got keyboard interrupt. Exiting...

I am closing and marking this bug as rejected. If you feel this is
inappropriate, please request with an appropriate explanation to reopen it.

----------
components: +Library (Lib) -None
nosy: +alexandre.vassalotti
priority:  -> low
resolution:  -> rejected
status: open -> closed
type: behavior -> rfe

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1294>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to