[New-bugs-announce] [issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop
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)
title: Hitting EOF gets cmd.py into a infinite EOF on return loop
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>
More information about the New-bugs-announce