mattupstate/overholt

Thoughts on imports

dukedougal opened this issue · 3 comments

It's likely my lack of experience as a Python developer but I really got caught out by the relative imports and spent days trying to diagnose issues that were cleaned up immediately by using explicit absolute imports everywhere and by removing the cases of "import *".

Just some feedback.....

@dukedougal in your own work or with this project?

I've removed all the relative import from my overholt based application. I was getting constant problems that I think were related to relative imports. Or maybe it just made it more explicit to me exactly what was being imported from where.

Nothing wrong with using absolute imports. It's the default import behavior in Python3.