I see that
from x import *
from . import x
It has practically no impact:
>>> import timeit >>> timeit.timeit('math.pow(1, 1)', 'import math') 0.20310196322982677 >>> timeit.timeit('pow(1, 1)', 'from math import pow') 0.19039931574786806
Note I picked a function that would have very little run time so that any difference would be magnified.