[Python-ideas] CLI option for isolated mode

Oleg Broytman phd at phdru.name
Thu Nov 15 01:57:27 CET 2012


On Thu, Nov 15, 2012 at 11:25:09AM +1100, Steven D'Aprano <steve at pearwood.info> 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.

   By the OS kernel -- it looks into the header to find out if the file
to be exec'd is ELF or DWARF or a script -- and then it invokes an
appropriate loader.

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.



More information about the Python-ideas mailing list