Is there a point to import as both wildcard and non-wildcard manner like:
import spam as sp
from spam import *
in the very same file?<
The only reason that I could think is that you want to change from from spam import *
to import spam as sp
. If you would just replace those lines, it would instantly break the code, you would have to prefix everything with sp.
. If you want to do this change at a slower pace, you can do this. Then you can slowely add the sp.
where needed and eventually remove the from spam import *
.