From: Serhiy Storchaka Date: Wed, 4 Mar 2015 07:42:59 +0000 (+0200) Subject: Issue #23504: Added an __all__ to the types module. X-Git-Tag: v2.7.10rc1~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c620c11e629fb26fa8b554f5c11c66da6f3c2b26;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 ff90e049730d..d414f5493107 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -82,3 +82,5 @@ GetSetDescriptorType = type(FunctionType.func_code) MemberDescriptorType = type(FunctionType.func_globals) del sys, _f, _g, _C, _x # Not for export + +__all__ = list(n for n in globals() if n[:1] != '_') diff --git a/Misc/NEWS b/Misc/NEWS index 288a48433b58..a211e5d7af58 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -18,6 +18,8 @@ Core and Builtins Library ------- +- Issue #23504: Added an __all__ to the types module. + - Issue #23458: On POSIX, the file descriptor kept open by os.urandom() is now set to non inheritable