Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing schedula imports every module there is #11

Closed
ankostis opened this issue May 20, 2018 · 1 comment
Closed

importing schedula imports every module there is #11

ankostis opened this issue May 20, 2018 · 1 comment

Comments

@ankostis
Copy link
Contributor

The way it is structure this project, when importing schedula.__init__.py, it imports recursively all modules beneath them. In modern computers this is fast, but in general it should be possible to selectively import what is needed.

@vinci1it2000
Copy link
Owner

For python 3.7 schedula uses __getattr__ to import module attributes.
While for older python versions it imports all attributes but it takes max 12 ms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants