Suppose I read code written by someone else where "from import *" is used, how can I determine what module a function is from? Is this the reason why some people frown upon "from import *"?
Yes, this is why from <module> import *
is considered bad style. What you can do is remove these *
imports one by one, then check which NameError
s you get and solve them one by one by explicit imports.