Thoughts on imports
dukedougal opened this issue · 3 comments
dukedougal commented
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.....
mattupstate commented
@dukedougal in your own work or with this project?
dukedougal commented
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.
mattupstate commented
Nothing wrong with using absolute imports. It's the default import behavior in Python3.