Closed TensorDuck closed 8 years ago
Yeah, I agree that init.py should be bare except for some import statements. I think the current implementation was more a matter of convenience.
I agree that the code in init.py files can be moved into separate file(s) (but something more informative than classes.py
: p ).
This is done.
So, I have always believed init files should be relatively bare, and primarily for directing Python to know what files and methods exist. I think we should reorganize the init files so that we put the classes we want to make in a separate file, and import the classes we need. For example:
classes.py
__init__.py
, same levelAdvantages:
from model_builder.models.classes import Model
.