summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-04 09:42:59 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-04 09:42:59 +0200
commitc620c11e629fb26fa8b554f5c11c66da6f3c2b26 (patch)
tree1bb5ab0737c098aeb1e72937e287bd49cc9601ff /Lib/types.py
parentb027c6cae0bf591d62348f555116f28e0c081880 (diff)
downloadcpython-git-c620c11e629fb26fa8b554f5c11c66da6f3c2b26.tar.gz
Issue #23504: Added an __all__ to the types module.
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index ff90e04973..d414f54931 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -82,3 +82,5 @@ GetSetDescriptorType = type(FunctionType.func_code)
MemberDescriptorType = type(FunctionType.func_globals)
del sys, _f, _g, _C, _x # Not for export
+
+__all__ = list(n for n in globals() if n[:1] != '_')