News for hackers. Stuff that matters.
Re:How the Python import system works by masklinn on Sunday July 25, 2021 @07:54AM (#27948482)
> IIRC, Python 3 simplified things a good deal by removing "implicit" relative imports, but I'm a little foggy on exactly what that means.

Exactly that: in Python 3, if an import doesn’t start with a . it will always be absolute aka looked up from sys.path.

In python 2, it would try performing a relative import (so importing a sibling module) first.

There are no comments on this comment yet.