[Maintenance] Avoid from module import * #20
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
core
namespace to be available both inmain
and ininit
(import) mode because we essentially want to pretendcore
is both__init__
and__main__
.Although i could probably choose to just import
app
and it would be fine while also exposing less internals. Will try that sometime.