Skip to main content

All Questions

7 votes
2 answers
3k views

Why should imports be made at the beginning

Why is it considered good style to do all imports in a python application at the beginning, even if what is imported is used only once? I have been programming only shorter pieces of software for a ...
l7ll7's user avatar
  • 263
3 votes
1 answer
1k views

Strictly only importing modules in subdirectories: is this a good rule?

I'm making my 1st official project. It's written in Python, is open-sources, and I'd like people to be able to freely and easily fork and modify the code. The project name is "shelf" and the ...
ChocolateOverflow's user avatar