Jun-19-2024, 07:55 PM
(This post was last modified: Jun-19-2024, 07:55 PM by rodiongork.)
Perhaps I misunderstand the question / idea - or my knowledge of the language fails me, but let's try this:
alpha.py
alpha.py
x=5 from beta import * print(x)beta.py
x=7 del xyou see, it is not the same as copy-pasting beta.py contents instead of insert. the variable is as if shadowed rather than overrwritten. disclaimer: I don't understand the mechanics, just was amused by the question and tried few statements in two files