Friday, February 27, 2009

Jah! Das ist gut!

Pyshell? no Pyshell!


pyshell> z = 5 # regular python statements
pyshell> print 'z = %s' % z
z = 5

pyshell> echo "the value of z is: %z" # pyshell statements
the value of z is: 5
pyshell> po.sym_expansion = '$'
pyshell> echo "the value of z is: %z" # no worky
the value of z is: %z
pyshell> echo "the value of z is: $z" # Jah! Das ist gut!
the value of z is: 5
pyshell> echo %{SHELL} # Expanding an environment var
/bin/bash # Doh!

Just like C Shell is a shell with C like grammar, Pyshell is a shell with Python grammer.
Looks good but I just found it on the net, I don't know if it's matured.

No comments: