diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-06-12 15:17:02 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-06-12 15:17:02 +0000 |
commit | c9293768e32c292e8c8c704b0f3c785ea36fee52 (patch) | |
tree | c96d33f719c17c946b2962a68d923715e08c69e5 /Lib/struct.py | |
parent | 08f9f4c2e58322ad7c1b7757c14e6c3035bd891a (diff) | |
download | cpython-c9293768e32c292e8c8c704b0f3c785ea36fee52.tar.gz |
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.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/struct.py b/Lib/struct.py index b022355c18..dca15e2ad3 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__ |