3 ms·
makes references ambiguous to anyone but the interpreter let's say you have from a import foo from b import * what does 'foo' refer to? 'b' could contain 'f
by andylei 15y ago
makes references ambiguous to anyone but the interpreter
let's say you have
from a import foo
from b import *
what does 'foo' refer to? 'b' could contain 'foo', which would overwrite your previous reference to 'a.foo'. its hard to figure out what 'foo' now refers to from inspecting the code. its better to be explicit:
from a import foo
from b import bar, baz