summaryrefslogtreecommitdiffstats
path: root/Lib/struct.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-12 19:18:51 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-12 19:18:51 (GMT)
commitf9e091ae2d40ab78d7b077b11cd7789d679c23d2 (patch)
tree2bb2628e58300b499598dff64f12a40fd8468336 /Lib/struct.py
parent80971d4d1c63cd17fd24f01acd19f1f1ee3bf18a (diff)
downloadcpython-f9e091ae2d40ab78d7b077b11cd7789d679c23d2.zip
cpython-f9e091ae2d40ab78d7b077b11cd7789d679c23d2.tar.gz
cpython-f9e091ae2d40ab78d7b077b11cd7789d679c23d2.tar.bz2
Merged revisions 81947-81950,81955-81956 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81947 | mark.dickinson | 2010-06-12 16:17:02 +0100 (Sat, 12 Jun 2010) | 3 lines Issue #8973: Add __all__ to struct module, so that help(struct) correctly displays information for the struct.Struct class. ........ r81948 | mark.dickinson | 2010-06-12 16:19:23 +0100 (Sat, 12 Jun 2010) | 1 line Remove accidental (yet-to-be-reviewed) docstring changes included in r81947. ........ r81949 | mark.dickinson | 2010-06-12 16:43:45 +0100 (Sat, 12 Jun 2010) | 1 line Issue #8973: Improve struct module docstrings. ........ r81950 | mark.dickinson | 2010-06-12 17:30:53 +0100 (Sat, 12 Jun 2010) | 1 line More struct module docs and docstring tweaks. ........ r81955 | mark.dickinson | 2010-06-12 19:20:47 +0100 (Sat, 12 Jun 2010) | 1 line Issue #8469: add standard sizes to struct docs table. ........ r81956 | mark.dickinson | 2010-06-12 19:37:54 +0100 (Sat, 12 Jun 2010) | 2 lines Issue #8469: Reorder struct module sections for clarity; other minor tweaks. ........
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__