[IPython-dev] Magics that have return values, $$var=cmd simplification
Ville Vainio
vivainio at gmail.com
Tue Jan 24 13:47:03 EST 2006
I figured we could implement a handy and intuitive way to grab
both magic return values and system command output:
var = %mymagic args a plenty
var = !command args a plenty
The regexp to catch these reliably is trivial (provided that var name
is (\w+) and both are illegal python. Anyone have any
doubt/objections? $$var = cmd syntax is there but it's not as easy to
remember or obvious.
--
Ville Vainio - http://tinyurl.com/2prnb
http://vainio.blogspot.com
More information about the IPython-dev
mailing list