diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-04 09:42:59 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-04 09:42:59 +0200 |
commit | c620c11e629fb26fa8b554f5c11c66da6f3c2b26 (patch) | |
tree | 1bb5ab0737c098aeb1e72937e287bd49cc9601ff /Lib/types.py | |
parent | b027c6cae0bf591d62348f555116f28e0c081880 (diff) | |
download | cpython-git-c620c11e629fb26fa8b554f5c11c66da6f3c2b26.tar.gz |
Issue #23504: Added an __all__ to the types module.
Diffstat (limited to 'Lib/types.py')
-rw-r--r-- | Lib/types.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py index ff90e04973..d414f54931 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] != '_') |