[Python-ideas] Migration of /usr/bin/python to python3

Skip Montanaro skip.montanaro at gmail.com
Wed Mar 11 21:26:07 CET 2015


On Wed, Mar 11, 2015 at 3:22 PM, Oleg Broytman <phd at phdru.name> wrote:

>    That wouldn't work. Shebang line accepts one and only one parameter.
> There are operating systems that allow more but they are exceptions.
>

I think Neal was suggesting that you rely on that property (in which case
the exceptions might be the problem). If I understood correctly,
/usr/bin/python would be started by the kernel, and it would be passed the
-x flag. It would then inspect the #! line again, paying attention to the
second (and following) arguments. Seeing the -3, it would continue
executing. If it saw nothing (or saw -2?) it would exec /usr/bin/python2
(or similar).

I hope I'm not putting words in Neal's mouth.

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150311/6c1d1c79/attachment.html>


More information about the Python-ideas mailing list