-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Define __all__ in gcloud/monitoring/__init__.py. #1747
Conversation
This is so that "from gcloud.monitoring import *" doesn't import the package's module names.
-0, mostly because |
Looking at the module: there are no names present which are not listed in |
This is a package, so it brings in all the module names: |
|
|
I'm fine with defining
For an example from the stdlib. >>> import subprocess
>>> subprocess.sys
<module 'sys' (built-in)> |
I'm OK with this change -- though I'm -1 to using the If people want to use that interactively that's fine with me, but it's certainly not recommended. |
Shall we merge then? @tseaver any objections? Ditto on that. Namespaces are one of Python's strengths (both in language design and community / "idiomatic" behavior). From the Zen of Python:
|
Defining |
LGTM |
This is so that "from gcloud.monitoring import *" doesn't import
the package's module names.