Y
Hacker News
new
|
ask
|
show
|
jobs
by
spicybright
312 days ago
For personal one file utility scripts, I'll sometimes only import a module on a code path that needs it. And make it global if the scope gets in the way.
It's dirty, but speeds things up vs putting all imports at the top.