[Maintenance] Avoid from module import * #20
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Importing everything from a module is a major antipattern, and can lead to many, hard to trace, bugs. Instead the import statement should explicitly contain all the imported names
I think in this particular instance it makes sense though since we want the entire contents of the
corenamespace to be available both inmainand ininit(import) mode because we essentially want to pretendcoreis both__init__and__main__.Although i could probably choose to just import
appand it would be fine while also exposing less internals. Will try that sometime.