Is Python a safe language? It doesn’t seem to have the sorts of problems other languages do. Why is that?
Absolutely not, unfortunately. One of the architectural issues plaguing even comparatively memory-safe languages is the fact that there is a global scope that's accessible from anywhere. In some Python versions even numbers or truth values could be redefined. [0] This makes it impossible to sandbox functions or imported modules, because they can communicate arbitrarily. But communication/access security is not the on…
This is a very interesting comment, and I’m going to study it and the links you gave. Thank you!