Aug-05-2017, 09:41 PM
here is a real world example of using dunder init file in a complex project
the import
https://github.com/metulburr/pyroller/bl...ain.py#L14
craps directory content of __init__.py
https://github.com/metulburr/pyroller/bl..._init__.py
It only imports the Craps class in /craps/craps.py but you can add any number of imports to the __init__.py file.
the import
https://github.com/metulburr/pyroller/bl...ain.py#L14
craps directory content of __init__.py
https://github.com/metulburr/pyroller/bl..._init__.py
It only imports the Craps class in /craps/craps.py but you can add any number of imports to the __init__.py file.
Recommended Tutorials: