[IPython-user] pysh variable substituion and scope
vivainio at gmail.com
Wed Jun 7 06:53:03 CDT 2006
On 6/5/06, Krishna Mohan Gundu <gkmohan at gmail.com> wrote:
> All I want really is the ability to run shell commands with variable
> substituion from anywhere in the python code. I am not thinking big
> x = 1
> y = 2
> z = 3
> w = 4
> def foo(x):
> def bar(y):
> def foobar(z):
> echo "$x $y $z $w"
> prints "3 2 1 4"
> I dont have any examples right now with more complex expressions
> involving classes, lambdas and the like.
This is a worthy improvement, and I will commit it. We'll have lots of
time to iron out the possible flaws.
Ville Vainio - vivainio.googlepages.com
vainio.blogspot.com - g[mail | talk]='vivainio'
More information about the IPython-user