From 4b80ef5432abe2cd72cf898e92927bb2273d179b Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sat, 12 Jun 2010 15:17:02 +0000 Subject: Issue #8973: Add __all__ to struct module, so that help(struct) correctly displays information for the struct.Struct class. --- Lib/struct.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Lib/struct.py') 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__ -- cgit v1.2.1