summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-04 09:43:27 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-04 09:43:27 +0200
commit7beb4f96dc9ac3facd2a31912730b128426892b5 (patch)
tree5bae51697d67c625a120f2036a52fdd8e55e0db6 /Lib/types.py
parent92ce1b4392a533a14bbebb8e60bf79bf4bf4c6c7 (diff)
downloadcpython-git-7beb4f96dc9ac3facd2a31912730b128426892b5.tar.gz
Issue #23504: Added an __all__ to the types module.
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 7e4fec2d25..4fb2defb8c 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -156,3 +156,6 @@ class DynamicClassAttribute:
result = type(self)(self.fget, self.fset, fdel, self.__doc__)
result.overwrite_doc = self.overwrite_doc
return result
+
+
+__all__ = [n for n in globals() if n[:1] != '_']