Issue #8973: Add __all__ to struct module, so that help(struct) correctly

displays information for the struct.Struct class.
This commit is contained in:
Mark Dickinson 2010-06-12 15:17:02 +00:00
parent 3a810e6825
commit 4b80ef5432
3 changed files with 42 additions and 21 deletions

View file

@ -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__