From: Serhiy Storchaka Date: Wed, 4 Mar 2015 07:43:27 +0000 (+0200) Subject: Issue #23504: Added an __all__ to the types module. X-Git-Tag: v3.5.0a2~35^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7beb4f96dc9ac3facd2a31912730b128426892b5;p=thirdparty%2FPython%2Fcpython.git Issue #23504: Added an __all__ to the types module. --- diff --git a/Lib/types.py b/Lib/types.py index 7e4fec2d25d4..4fb2defb8cab 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] != '_'] diff --git a/Misc/NEWS b/Misc/NEWS index f71bd506c07b..75e1cc1c2d92 100644 --- 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.