1 #!/usr/bin/env python 2 3 class C: 4 p = 123 5 6 class D: 7 p = 456 8 9 def f(): 10 import changed.modifier 11 12 def getx(): 13 return x.p # ambiguous 14 15 x = C 16 f() # import modifier which changes x in this module 17 18 # vim: tabstop=4 expandtab shiftwidth=4