from module import *
VS import module
What I know
I know the difference between the 2, the difference is when you are using from module import *
, you can just refer the classes, functions etc. in the module just like they are defined in the file they are imported in itself.
But when you are just usingimport module
, you have to use module.
before the name of the object to refer it.
The problem
So what I don’t know is why is it sometimes considered bad practice to use from module import *
instead of import module
?