[IPython-user] %ed returns "\n"

Ryan Krauss ryanlists at gmail.com
Fri Jan 27 18:32:10 CST 2006

I do a fair amount of text processing, and use ipython to debug my
stuff.  I would need to know that the hiding of things like newlines
was going on and I would need to be able to turn that feature off.

On 1/27/06, Ville Vainio <vivainio at gmail.com> wrote:
> On 1/28/06, Matt Wilkie <maphew at gmail.com> wrote:
> > As of ipy .7 and .7.1 whenever I use %ed the output has embedded
> > newlines. Is this the intended behaviour?
> Yes. It's the "return value" of %ed, and hence rendered in a repr format.
> I've been thinking of a fun hack; perhaps we should derive a
> "hiddenstr" from str and return strings we don't want to display (or
> display in a heavily abbreviated form) as that type. Then nobody apart
> from ipython display hook will know better, thinking it's a plain old
> string.
> --
> Ville Vainio - http://tinyurl.com/2prnb
> http://vainio.blogspot.com
> _______________________________________________
> IPython-user mailing list
> IPython-user at scipy.net
> http://scipy.net/mailman/listinfo/ipython-user

More information about the IPython-user mailing list