On 29 December 2010 14:46, Michael Foord <
fuzzyman@voidspace.org.uk> wrote:
> That would be great. I did worry that changing the output would be backwards
> incompatible with code that shells out to Python using "-c", so a different
> command line option would be great. So long as it works with multiple
> statements (semi-colon separated) like the current "-c" behaviour.
>
> I use this trick for finding the source code of Python modules:
>
> $ python -c "import os;print os.__file__[:-1]"
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py
I'd suggest allowing multiple -c and -e options, interspersed as