[IPython-dev] %r vs %rep
Fernando Perez
fperez.net@gmail....
Fri Sep 7 13:51:40 CDT 2007
On 9/7/07, Ville M. Vainio <vivainio@gmail.com> wrote:
> On 9/7/07, Fernando Perez <fperez.net@gmail.com> wrote:
>
> > I'd still like to know what's going on with the above, since the docstring says
> >
> > Place a string version of last input to the next input prompt. Allows you
> > to create elaborate command lines without using copy-paste::
> >
> > but it seems to put the output instead. Am I confused?
>
> No, the documentation is buggy. It places the string version of _,
> i.e. last *result* on the line. I'll fix the doc.
OK. All the more reason to keep %r, since it is 'optimal' for certain
uses for which %rep is 'wrong' :)
Cheers,
f
More information about the IPython-dev
mailing list