def _get_mod_ns(name, fullname, includeprivate):
    """Return the template context of module identified by `fullname` as a
    dict"""
    ns = {  # template variables
        'name': name, 'fullname': fullname, 'members': [], 'functions': [],
        'classes': [], 'exceptions': [], 'subpackages': [], 'submodules': [],
        'doc': None}
    p = 0
    if includeprivate:
        p = 1
    mod = importlib.import_module(fullname)
    ns['members'] = _get_members(mod)[p]
    ns['functions'] = _get_members(mod, typ='function')[p]
    ns['classes'] = _get_members(mod, typ='class')[p]
    ns['exceptions'] = _get_members(mod, typ='exception')[p]
    ns['data'] = _get_members(mod, typ='data')[p]
    ns['doc'] = mod.__doc__
    return ns
def _get_mod_ns ( name , fullname , includeprivate ) : ns = { 'name' : name , 'fullname' : fullname , 'members' : [ ] , 'functions' : [ ] , 'classes' : [ ] , 'exceptions' : [ ] , 'subpackages' : [ ] , 'submodules' : [ ] , 'doc' : None } p = 0 if includeprivate : p = 1 mod = importlib . import_module ( fullname ) ns [ 'members' ] = _get_members ( mod ) [ p ] ns [ 'functions' ] = _get_members ( mod , typ = 'function' ) [ p ] ns [ 'classes' ] = _get_members ( mod , typ = 'class' ) [ p ] ns [ 'exceptions' ] = _get_members ( mod , typ = 'exception' ) [ p ] ns [ 'data' ] = _get_members ( mod , typ = 'data' ) [ p ] ns [ 'doc' ] = mod . __doc__ return ns
Return the template context of module identified by `fullname` as a
    dict