[IPython-dev] automatic quoting in interactive shell

Thomas Kluyver takowl at gmail.com
Tue Jul 22 18:34:56 EDT 2014

On 22 July 2014 15:30, Brian Wylie <briford.wylie at gmail.com> wrote:

> Okay, the transformer approach worked amazingly well. It's a bit of a hack
> the transformer simply adds a ',' to the beginning of lines where I'm
> calling commands that need to be 'auto-quoted'.. but certainly speaks well
> of the IPython design that my hack worked so quickly. :)

Well, I'm glad it worked. How are you deciding which lines need that

There are two bits of machinery transforming input in IPython. Input
transformers handle things where you can tell just from looking at the
line, like %magic and !shell commands. Then the prefilter machinery changes
things that depend on what's in the current namespace, like autocall.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140722/86408710/attachment.html>

More information about the IPython-dev mailing list