2016-11-13 | Paul Boddie | file changeset files shortlog | Added some tests of "from" importing. |
paul@179 | 1 | from another import f, c, C |
paul@179 | 2 | |
paul@179 | 3 | def function(): |
paul@179 | 4 | return c |
paul@179 | 5 | |
paul@179 | 6 | def fn(): |
paul@179 | 7 | return f() |
paul@179 | 8 | |
paul@179 | 9 | d = c.d |
paul@179 | 10 | c = C() # would replace c from another |
paul@179 | 11 | e = function().d |
paul@179 | 12 | f = function # would replace f from another |
paul@179 | 13 | g = f().d |
paul@179 | 14 | h = fn().d |