mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #8973: Add __all__ to struct module, so that help(struct) correctly
displays information for the struct.Struct class.
This commit is contained in:
parent
3a810e6825
commit
4b80ef5432
3 changed files with 42 additions and 21 deletions
|
@ -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__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue