[Python-checkins] cpython (3.4): Issue #23504: Added an __all__ to the types module.
serhiy.storchaka
python-checkins at python.org
Wed Mar 4 08:45:21 CET 2015
https://hg.python.org/cpython/rev/4888f9498db6
changeset: 94844:4888f9498db6
branch: 3.4
parent: 94833:880906bbf792
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Mar 04 09:43:27 2015 +0200
summary:
Issue #23504: Added an __all__ to the types module.
files:
Lib/types.py | 3 +++
Misc/NEWS | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/types.py b/Lib/types.py
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -156,3 +156,6 @@
result = type(self)(self.fget, self.fset, fdel, self.__doc__)
result.overwrite_doc = self.overwrite_doc
return result
+
+
+__all__ = [n for n in globals() if n[:1] != '_']
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,8 @@
Library
-------
+- Issue #23504: Added an __all__ to the types module.
+
- Issue #20204: Added the __module__ attribute to _tkinter classes.
- Issue #23521: Corrected pure python implementation of timedelta division.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list