How to enable bash mode at the interative mode?

Carl Friedrich Bolz cfbolz at gmx.de
Sun Nov 27 18:10:38 EST 2005


Anthony Liu wrote:
> That is, at the Python interactive mode, if I hit the
> upper arrow key, it'll bring up the last line of code.
> 
> At
> http://groups.google.com/group/comp.lang.python/browse_thread/thread/fb8c2fd9eed0d/736fac8c33e84d0c?lnk=st&q=python+%22upper+arrow%22&rnum=2&hl=en#736fac8c33e84d0c
> , it seems that Michael Spalinski suggests of
> reinstalling Python.
> 
> Any easier way to achieve this feature?
> 
> Thanks.

You are probably missing the readline module. What operating 
system/python version are you using?

Cheers,

Carl Friedrich Bolz




More information about the Python-list mailing list