Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Thoughts on imports #29

Open
dukedougal opened this issue Jul 30, 2014 · 3 comments
Open

Thoughts on imports #29

dukedougal opened this issue Jul 30, 2014 · 3 comments

Comments

@dukedougal
Copy link

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
Copy link
Owner

@dukedougal in your own work or with this project?

@dukedougal
Copy link
Author

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants