Ole Streicher wrote: > It is very usual to use "#!/usr/bin/env python" as shebang, exactly for > the case that python is not installed in /usr/bin.
Sure, but then all bets are off. The script so shebanged can't assume anything about $PATH so it gets whatever it gets. Using /usr/bin/env in system provided scripts has been known to break stuff, so it's a very bad idea. Plus, if that's what you use for your own scripts, then in the future you'll be in luck because all you'd have to do is change your $PATH to point to wherever your custom built and installed Python 2 lives first, and then you'll get exactly the version you want. > That is -- at least in my environmet -- "ipython", or (for Python 3) > "ipython3". > > IMO it would be better to communicate that the best way for an > interactive session is "ipython3" (or "python3", if you insist). I would > wonder when todays tutorials (that cover Python 3) recommend to use > plain "python". But ipython doesn't come with upstream Python so that would require that Something Extra be installed. That's generally why Getting Started guides and tutorials usually recommend the built-in interactive prompt. >> * Port as much as possible to Python 3 (eventually, everything >> maintained in Debian) and /usr/bin/python3 in their shebang. > I disagree here, and I don't see an advantage over letting > /usr/bin/python just die with Python 2. /usr/bin/python didn't die with Python 2 (who else remembers 1.5.2 as an effectively LTS release? :) and I don't believe it should with Python 3. Maybe go on vacation, but eventually return home. > I would also like to point PEP 394, which has a number of arguments why > /usr/bin/python should remain as Python 2. > > https://www.python.org/dev/peps/pep-0394/ Right, but the ecosystem has evolved since then, so the discussions going on in linux-sig and the *draft* PR at https://github.com/python/peps/pull/315 are about updating the recommendations now that we're somewhere less than three years away from Python 2 EOL. Fedora is moving forward with or without us. I bet that other Linux distros will too. We can certainly do our own thing, but I think that'll make Debian the odd distro out eventually. Cheers, -Barry