Answers for "python can a imported module get variables from main module"

0

python can a imported module get variables from main module

import shared_stuff
import module1
shared_stuff.a = 3
module1.f()
Posted by: Guest on October-19-2021
0

python can a imported module get variables from main module

import shared_stuff
def f():
    print shared_stuff.a
Posted by: Guest on October-19-2021

Code answers related to "python can a imported module get variables from main module"

Python Answers by Framework

Browse Popular Code Answers by Language