Issue #23504: Added an __all__ to the types module.

This commit is contained in:
Serhiy Storchaka 2015-03-04 09:42:59 +02:00
parent b027c6cae0
commit c620c11e62
2 changed files with 4 additions and 0 deletions

View 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] != '_')

View File

@ -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