summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-04 07:43:27 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-04 07:43:27 (GMT)
commit7beb4f96dc9ac3facd2a31912730b128426892b5 (patch)
tree5bae51697d67c625a120f2036a52fdd8e55e0db6 /Lib
parent92ce1b4392a533a14bbebb8e60bf79bf4bf4c6c7 (diff)
downloadcpython-7beb4f96dc9ac3facd2a31912730b128426892b5.zip
cpython-7beb4f96dc9ac3facd2a31912730b128426892b5.tar.gz
cpython-7beb4f96dc9ac3facd2a31912730b128426892b5.tar.bz2
Issue #23504: Added an __all__ to the types module.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/types.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 7e4fec2..4fb2def 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] != '_']