Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eloff
· 4y ago · 0 comments
So put the check at the top of the top level __init__.py. Move any invalid syntax in that file to an import. Is there any reason that would be a worse idea?
Comments
[–]
Iv
4y ago
Maybe half of the python code I use comes from single files. Your approach works for a module.