[IPython-user] Inconsistency in "!!" ?
Krishna Mohan Gundu
gkmohan at gmail.com
Fri Jun 23 12:22:00 CDT 2006
Hi Walter,
> Actually it isn't, it's a (deprecated) way of writing repr():
>
> In [1]: `"foo"`
> Out[1]: "'foo'"
mmm...
> Why not use plain Python syntax?
>
> foo = `"string" ls`
>
> isn't that much shorter than
>
> foo = ipstring("ls")
we could do that too and I agree it reads well
> Of course `ls` (without keyword) is hard to beat, but typing ` on a
> german keyboard is cumbersome.
then what is used in shell scripting, for example,
for file in `ls`
...
> 2/3rds of what you want is rather simple (albeit a bit longer) with ipipe:
>
> In [2]: foo = list(ix("ls"))
does ix support variable substitution?
cheers,
Krishna.
More information about the IPython-user
mailing list