3 ms·
My preference is to use from x import y inside any function that needs y. OTOH I think there are good reasons to go with the official Python recommendation,
by javert 17y ago
My preference is to use
from x import y
inside any function that needs y.
OTOH I think there are good reasons to go with the official Python recommendation, which another poster says states that all imports should be at the top on separate lines.