>as this is likely to happen again with Python 4
Apparently there will be no Python 4 [1].
>The idea of having to test a language seems weird, either the interpreter runs, or it doesn't. Why should the Linux Distribution have their fingers in it?
Sorry if this was not clear - not testing the language (although you'd need to make sure the standard library works properly for anything with C bindings), but that the interpreter runs properly under each new version of the Debian operating system.
Debian would have to build and package the Python2 binary and related stuff from upstream. There are no Python2 vendor-supplied Linux binaries or deb packages. Officially continuing support would also include having to provide patches in case of security issues etc., fixing any breakage (I'm not sure what Python depends on but I have had friends suffer breakage between versions of Debian with newer versions of glibc and so on), etc.
>Also, why does an interpreter need security updates?
Things like this issue in Python's sockets library[2]:
"Buffer overflow in the socket.recvfrom_into function in Modules/socketmodule.c in Python 2.5 before 2.7.7, 3.x before 3.3.4, and 3.4.x before 3.4rc1 allows remote attackers to execute arbitrary code via a crafted string. "
There have been a number of vulns for Python itself over the years [3]. Not aware of any for the last version of Python2 but that may be simply for lack of attention given it's EOL and in theory everyone should have migrated to Python3 by now.
>You should be able to run any random program in a safe and secure manner, no matter how evil it is.
>It's the lack of capability based security that is the real problem with Linux.
Perhaps, and things like SELinux help, but it does not change the reality that someone has to maintain the software when these issues do show up.
[1] https://www.techrepublic.com/article/programming-languages-w...
[2] https://www.cvedetails.com/cve/CVE-2014-1912/
[3] https://www.cvedetails.com/version-search.php?vendor=Python&...