[Python-porting] Shebang lines for Python 3

Barry Warsaw barry at python.org
Tue Sep 6 19:41:39 CEST 2011


On Sep 04, 2011, at 01:07 PM, Aaron Meurer wrote:

>Is it proper to use "python3" in the shebang line of a script that should be
>run in Python 3?

Yes.

See PEP 394:

http://www.python.org/dev/peps/pep-0394/

While not yet approved, I think there's general consensus on the
recommendations in the PEP.

Cheers,
-Barry


More information about the Python-porting mailing list