Am 29.12.2010 16:13, schrieb Michael Foord:
I'd suggest allowing multiple -c and -e options, interspersed as needed, with each being treated as a separate line, so you could do $ python -c "import os" -e "os.__file__[:-1]" (Actually, I'd find "python -c stmt1 -c stmt2" mildly more readable than "python -c "stmt1; stmt2"" so that's another (equally small) benefit to me...)
Well, I'd like both. :-)
That's another incompatible change though: currently, sys.argv is filled with everything after the argument of -c.