[Python-ideas] CLI option for isolated mode

random832 at fastmail.us random832 at fastmail.us
Thu Nov 15 22:43:08 CET 2012


On Wed, Nov 14, 2012, at 19:25, Steven D'Aprano wrote:
> Shebang lines aren't interpreted by Python, but by the shell.
> 
> To be precise, it isn't the shell either, but the program loader, I
> think.
> But whatever it is, it isn't Python.

That's obviously untrue - the shell or the kernel or whatever piece it
is doesn't know what an -E or a -s does, it simply passes them to
python. Now, as the error messages show, it passes them as a single
string rather than (as you would ordinarily expect) as two strings, but
it's all _there_ for python to see, even without trying to read it from
the file (which it also could do).



More information about the Python-ideas mailing list