]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23504: Added an __all__ to the types module.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 4 Mar 2015 07:42:59 +0000 (09:42 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 4 Mar 2015 07:42:59 +0000 (09:42 +0200)
Lib/types.py
Misc/NEWS

index ff90e049730d637e12d01269acfedf7182e32b44..d414f5493107d28542680cee0050e2f59b5ca735 100644 (file)
@@ -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] != '_')
index 288a48433b58c384363151db5739151f099e68ad..a211e5d7af5819a38d4ea24214315c86c591cbc1 100644 (file)
--- 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