Author Kimball Leavitt
Recipients Catherine.Devlin, Kimball Leavitt, aldwinaldwin, boompig, ngie, rhettinger
Date 2019-09-27.15:48:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I know that many people do something like:

def do_EOF(self, arg):
    return True

to exit the program when you press Ctrl+d. Others might prefer something like ngie

def do_EOF(self, arg):
    raise EOFError

The issue that I have is if the command you enter is 'EOF' (or 'EOF --some --arg'), you end up calling your do_EOF function. I think this unintended side effect could be avoided if the check for EOFError was removed and the exception was just raised. (see
Date User Action Args
2019-09-27 15:48:43Kimball Leavittsetrecipients: + Kimball Leavitt, rhettinger, ngie, Catherine.Devlin, boompig, aldwinaldwin
2019-09-27 15:48:43Kimball Leavittsetmessageid: <>
2019-09-27 15:48:43Kimball Leavittlinkissue13214 messages
2019-09-27 15:48:43Kimball Leavittcreate