4 ms·
I totally agree with nixing *-imports and attribute imports. Not only do they hide where something came from but they also tend to actively hinder refactoring b
by aiiane 11y ago
I totally agree with nixing *-imports and attribute imports. Not only do they hide where something came from but they also tend to actively hinder refactoring by making it harder to tell how packages are being used.
- tgb 11y agoNice for REPL work though.
- jzwinck 11y agoYou can use "import longmodulename as mn"--many people do this today, and it isn't nearly as harmful as "*".
- zo1 11y agoOverall, I think many would agree that "import " and "from x import " are more harmful than any of the alternatives. It's a laziness code-smell and will come back to bite you.