I have a file called "const_a.py" it has this in it
ONE = 1
TWO = 2
Then I have another const file called "const_b.py" it has this
from const_a import *
THREE = 3
FOUR = 4
Finally I am printing out some values in test.py
from const_b import *
print(ONE)
print(THREE)
That prints out 1 and 3. I would have expected it to error out trying to print ONE
. Apparently const_b
now has const_a
in it.
What is this behavior called? Is it intentional?