I've always used from a import b
but recently a team at work decided to move a module into a new namespace, and issued a warning notice telling people to replace import b
with import a.b as b
.
I've never used import as
and the only documentation I can find seems to suggest it doesn't support import a.b as b
, though clearly it does.
but is there actually a difference, and if so what?