1 #!/usr/bin/env python 2 3 def f(): 4 import changed2.modifier 5 6 def getx(): 7 return x 8 9 x = 123 10 f() # import modifier which changes x in this module 11 12 # vim: tabstop=4 expandtab shiftwidth=4