Files
2020-03-09 16:31:45 +00:00

21 lines
343 B
Python

# Emulates how symbols are exported from submodules in numpy.core.numeric
from . import submod
__all__ = ['foo']
foo = 'foo'
def extend_all(module):
existing = set(__all__)
mall = getattr(module, '__all__')
for a in mall:
if a not in existing:
__all__.append(a)
from .submod import *
extend_all(submod)