[Python-ideas] external editor commands in python REPL

Guido van Rossum guido at python.org
Mon May 13 18:39:24 CEST 2013


Have you seen IPython?

On Mon, May 13, 2013 at 9:32 AM, Yury Selivanov <yselivanov.ml at gmail.com>wrote:

> Hi all,
>
> While working on a repl-like shell for one of our applications,
> I implemented a buffer-editing mechanism similar to PostgreSQL
> shell.  The idea is that you have special shell commands, starting
> with '\':
>
> - '\e' opens an external editor
> - '\r' clears the buffer
> - etc
>
> Playing with it for couple of days proved that it makes working with
> the REPL much more convenient.  Here's a quick screencast:
> https://dl.dropboxusercontent.com/u/21052/repl.mov
>
> And if anyone wants to try it, here is the hack:
> https://gist.github.com/1st1/5569467
> Run it under python 3: '$ python3 shell.py'
>
> I think it would be nice if we can include similar feature to the
> standard python REPL, as it makes it more convenient and OTOH
> starting python line with '\' is almost always illegal.
>
> -
> Yury
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130513/ecd69194/attachment-0001.html>


More information about the Python-ideas mailing list