On Fri, 05 Oct 2012 11:27:28 +0200 Andy Buckley <andy@insectnation.org> wrote:
A couple of weeks ago I posted a question on superuser.com about whether there is a way to get the same *very* convenient stepping-through-command-history behaviour in an interactive Python interpreter session as is possible in (at least) the bash shell with the Ctrl-o keybinding:
The interactive interpreter (and I mean the default one, not third-party choices like IPython) uses libreadline for its editing and history functionality, so it's really a question about libreadline you're asking. I don't know if it allows such customization, but perhaps the Web site has the answer you're looking for: http://www.gnu.org/software/readline/ http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html Regards Antoine. -- Software development and contracting: http://pro.pitrou.net