Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How the Python import system works. Parent comment
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.
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.