Shebang line on Windows?

Dave Angel davea at davea.name
Fri Feb 22 13:40:32 EST 2013


On 02/22/2013 01:16 PM, Walter Hurry wrote:
> I use FreeBSD or Linux, but my son is learning Python and is using
> Windows.
>
> My question is this: Would it be good practice for him to put #!/usr/bin/
> env python at the top of his scripts, so that if made executable on *nix
> they will be OK? As I understand it this will have no effect on Windows
> itself.
>

In Python 3.3 under Windows, the shebang line is useful.  You run a 
program called py, which  examines the shebang, then loads the 
appropriate version.  I don't know much more, as I don't run Windows.

-- 
DaveA



More information about the Python-list mailing list