Can i use this script as a python evaluator?

Nathan Seese uninverted at lavabit.com
Tue Oct 21 03:28:31 CEST 2008


> #! /bin/sh
> python -c "import sys;exec(sys.stdin)"

I know this isn't your question, but I think you could write that more 
cleanly with:

#!/usr/bin/python
import sys
exec(sys.stdin)



More information about the Python-list mailing list