]> granicus.if.org Git - python/commitdiff
Issue #23504: Added an __all__ to the types module.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 4 Mar 2015 07:43:27 +0000 (09:43 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 4 Mar 2015 07:43:27 +0000 (09:43 +0200)
Lib/types.py
Misc/NEWS

index 7e4fec2d25d4a02b8a442a669088745c7e4c7728..4fb2defb8cab9b38135a745fc8551c541e03cc6d 100644 (file)
@@ -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] != '_']
index f71bd506c07bfa549524b191fe8bbb244a971b85..75e1cc1c2d928bf73143498f2deeeb58781513eb 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #23504: Added an __all__ to the types module.
+
 - Issue #20204: Added the __module__ attribute to _tkinter classes.
 
 - Issue #23521: Corrected pure python implementation of timedelta division.