Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
DandyDev
· 4y ago · 0 comments
Directories with an __init__.py are not modules, they are packages. Modules are .py files
Comments
[–]
morelisp
4y ago
The __init__.py is also itself a module, which you import by importing the package. That's confusing, and not easily avoided!
[–]
LtWorf
4y ago
Make it an empty file?
[–]
morelisp
4y ago
"Just make an empty file there" is the opposite of a solution to it being confusing!