summaryrefslogtreecommitdiffstats
path: root/Lib/struct.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-12 15:17:02 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-12 15:17:02 (GMT)
commit4b80ef5432abe2cd72cf898e92927bb2273d179b (patch)
treeae562bddd9e88e191cb7d1b0c068b6e345034ba8 /Lib/struct.py
parent3a810e6825a6fddbbfae35073af53299b745dfa7 (diff)
downloadcpython-4b80ef5432abe2cd72cf898e92927bb2273d179b.zip
cpython-4b80ef5432abe2cd72cf898e92927bb2273d179b.tar.gz
cpython-4b80ef5432abe2cd72cf898e92927bb2273d179b.tar.bz2
Issue #8973: Add __all__ to struct module, so that help(struct) correctly
displays information for the struct.Struct class.
Diffstat (limited to 'Lib/struct.py')
-rw-r--r--Lib/struct.py11
1 files changed, 11 insertions, 0 deletions
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__