News for hackers. Stuff that matters.
Re:Ask YC: Best practice for Python module imports? by javert on Sunday June 14, 2009 @05:01PM (#657542)
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.

There are no comments on this comment yet.