Fedora mulls its "python" version
Fedora mulls its "python" version
Posted Jul 5, 2019 12:13 UTC (Fri) by Kamilion (subscriber, #42576)In reply to: Fedora mulls its "python" version by rsidd
Parent article: Fedora mulls its "python" version
Ideally, with the launcher present, modern scripts would be advised to depend on that, instead of the legacy 'python' becoming a symlink to python3/4. Seeing 'python' at all in a shebang line would be an immediate 'red flag' that the following script was likely a legacy one written before 2020.
Python4's not exactly all that far away, and like linux 4.x -> linux 5.x there should be no breaking changes like the 2 -> 3 unicode situation.
Moving over to the launcher now "as the modern choice" seems like a better move than sticking with the python/python2/python3/python4/python5 problems if the executable name keeps getting bumped with the major.
(for those wondering; yes, the launcher does split the shebang arguments line itself, as well as handling what I called 'legacy' shebangs using env, python, or python3, ostensibly to make unix shebangs work 'as expected' without modification on windows without the benefit of execute permissions / chmod +x)