summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-04 07:44:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-04 07:44:24 (GMT)
commit35e5b72740893d84295282eef5681e13036ebb0b (patch)
tree6c667e92bc404b820dea2f66e1ad927fcd539784 /Lib
parent44eceb6e2aca4e6d12ce64fa0f90279ffff19c25 (diff)
parent7beb4f96dc9ac3facd2a31912730b128426892b5 (diff)
downloadcpython-35e5b72740893d84295282eef5681e13036ebb0b.zip
cpython-35e5b72740893d84295282eef5681e13036ebb0b.tar.gz
cpython-35e5b72740893d84295282eef5681e13036ebb0b.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] != '_']