changeset: 94843:cb5fe8cc60eb branch: 2.7 parent: 94830:3019effc44f2 user: Serhiy Storchaka date: Wed Mar 04 09:42:59 2015 +0200 files: Lib/types.py Misc/NEWS description: Issue #23504: Added an __all__ to the types module. diff -r 3019effc44f2 -r cb5fe8cc60eb Lib/types.py --- a/Lib/types.py Mon Mar 02 11:17:05 2015 -0500 +++ b/Lib/types.py Wed Mar 04 09:42:59 2015 +0200 @@ -82,3 +82,5 @@ 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 -r 3019effc44f2 -r cb5fe8cc60eb Misc/NEWS --- a/Misc/NEWS Mon Mar 02 11:17:05 2015 -0500 +++ b/Misc/NEWS Wed Mar 04 09:42:59 2015 +0200 @@ -18,6 +18,8 @@ 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