[IPython-dev] cell magics
Thomas Kluyver
takowl at gmail.com
Sat Feb 16 20:35:01 EST 2013
On 17 February 2013 01:26, Jason Grout <jason-sage at creativetrax.com> wrote:
> If you were going to use the name and the value, it would make sense to do:
>
> %R(input=['myvar'])
>
Yep, that's functionally equivalent to what we do at present.
> or even
>
> %R(input='myvar')
>
The list was to allow for multiple variables. You could have a special
cased isinstance(input, str), but it's a bit unpythonic.
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130217/3e28594f/attachment.html>
More information about the IPython-dev
mailing list