An editable buffer for the Python shell (similar to '\e' on sql prompts)

Robert Kern rkern at ucsd.edu
Fri Aug 5 10:22:27 EDT 2005


Steve wrote:
> Hi,
> When working in the python command shell, I often end up writing more
> than 10+ lines of indented code before making a stupid typo. This got
> irritating enough for me to do something about it. So, here's an
> 'InteractiveConsole with an editable buffer'.
> 
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/438813
> 
> Just thought  some one else also would find this useful.

See also ipython and pyrepl.

   http://ipython.scipy.org
   http://codespeak.net/pyrepl/

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list