[New-bugs-announce] [issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

Garrett Cooper report at bugs.python.org
Tue Nov 29 15:56:41 CET 2011


New submission from Garrett Cooper <yanegomi at gmail.com>:

Pressing <enter> produces no output with cmd.py whenever ^D has been entered in; after I enter in ^D it gets into an infinite loop spewing out messages via cmd.Cmd.default() about EOF because self.lastcmd isn't being reset properly.

The attached patch fixes that usability nit to be more intuitive (I debated about changing 'EOF' to 0x10, but that's probably less intuitive..).

----------
components: Library (Lib)
files: python-cmd-reset-lastcmd-on-EOF.patch
keywords: patch
messages: 148575
nosy: yaneurabeya
priority: normal
severity: normal
status: open
title: Hitting EOF gets cmd.py into a infinite EOF on return loop
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file23805/python-cmd-reset-lastcmd-on-EOF.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13500>
_______________________________________


More information about the New-bugs-announce mailing list