commit | 4b80ef5432abe2cd72cf898e92927bb2273d179b | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Sat Jun 12 15:17:02 2010 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Sat Jun 12 15:17:02 2010 +0000 |
tree | ae562bddd9e88e191cb7d1b0c068b6e345034ba8 | |
parent | 3a810e6825a6fddbbfae35073af53299b745dfa7 [diff] [blame] |
Issue #8973: Add __all__ to struct module, so that help(struct) correctly displays information for the struct.Struct class.
diff --git a/Lib/struct.py b/Lib/struct.py index b022355..dca15e2 100644 --- a/Lib/struct.py +++ b/Lib/struct.py
@@ -1,3 +1,14 @@ +__all__ = [ + # Functions + 'calcsize', 'pack', 'unpack', 'unpack', 'unpack_from', + + # Classes + 'Struct', + + # Exceptions + 'error' + ] + from _struct import * from _struct import _clearcache from _struct import __doc__