Linux distributions and Python 2
Linux distributions and Python 2
Posted Jun 12, 2018 1:10 UTC (Tue) by Kamilion (guest, #42576)Parent article: Linux distributions and Python 2
Shouldn't /usr/bin/python simply be treated the same way, and converted into a tool that will select python2 or python3 as appropriate? Seems a lot simpler to get people to *just fix that* in a well-distributed python script *now* rather than going as far as forcing them to convert to python3 right away.
Posted Jun 12, 2018 5:58 UTC (Tue)
by k8to (guest, #15413)
[Link] (4 responses)
Posted Jun 12, 2018 14:53 UTC (Tue)
by rbanffy (guest, #103898)
[Link] (1 responses)
Posted Jun 12, 2018 15:24 UTC (Tue)
by k8to (guest, #15413)
[Link]
Posted Jun 14, 2018 5:19 UTC (Thu)
by kenshoen (guest, #121595)
[Link] (1 responses)
Posted Jun 15, 2018 6:47 UTC (Fri)
by nirbheek (subscriber, #54111)
[Link]
py.exe on Windows solves a completely different issue: where is Python installed and how do I invoke it? All pythons (2, 3.4, 3.5, etc) are called python.exe, so putting it in PATH is not an option.
Posted Jun 14, 2018 6:18 UTC (Thu)
by lambda (subscriber, #40735)
[Link] (1 responses)
Which interpreter is the right one to use for the following code in an executable file named Will the output remain the same if one system decides to run it with a Python 2 interpreter and another runs it with a Python 3 interpreter?
Posted Oct 2, 2018 9:09 UTC (Tue)
by cclauss (guest, #127609)
[Link]
Linux distributions and Python 2
Linux distributions and Python 2
Linux distributions and Python 2
I don't believe it's very decidable.
Linux distributions and Python 2
https://docs.python.org/3/using/windows.html#customizing-...
Linux distributions and Python 2
Linux distributions and Python 2
polyglot
:
#!/usr/bin/python
print("2/3 = {}".format(2/3))
Adding from __future__ import division will print a fractional result in both Python 2 and Python 3.Linux distributions and Python 2