As a 'habit', almost everyone in stackoverflow and example pages use import numpy as np
and then type
t = numpy.arange(0,40000,4000)
Why don't we/Why is it bad practice to use from numpy import *
and then type
t = arange(0,40000,4000)
Please give me reasons. (My guess: 1. In case we need to import more than one module, some functions in different modules share the same name. 2. At import module == from module import *?, I can see that this 'habit' results in faster processing time.) What are some other reasons?
This is what the Python style guide says about it: