Re:Things to use in Python 3
by j88439h84 on Tuesday May 14, 2019 @11:55PM
(#19916276)
The "Implicit namespace packages" item is not correct. Those are for a a specific packaging scenario which doesn't come up in normal usage. Packages should have an __init__.py file in general.
[ Parent
| on HN ]
Re:Things to use in Python 3
by giancarlostoro on Wednesday May 15, 2019 @12:06AM
(#19916323)
If the file is going to be empty I fail to justify the effort. It is implicitly a package. Is there a case where an empty init file makes sense in Python 3?
Its absence distinguishes a non-package from a package.
Mypy uses the init files to resolve absolute imports.