I am working on a python project that doesn't have too much cross use of functions in different files. I also don't have cases where a file is needing to use something in a different folder than the one it is in.
Is it bad practise for me not to have any __init__.py
files in the project at the moment. I don't fully understand the benefit of adding them in?
An __init__.py
file makes Python treat a folder as a module, so you can import foldername
. It is commonly used for large modules.
If you're not doing that, you don't need an __init__.py
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With