This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author santhu_reddy12
Recipients santhu_reddy12
Date 2021-08-19.16:24:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629390245.98.0.668607848819.issue41322@roundup.psfhosted.org>
In-reply-to
Content
def split_module_names(module):
    unnamed, named = set(), set()
    for name in dir(module):
        if not name.startswith('_'):
            attr = getattr(module, name)
            try:
                if hasattr(attr, '__name__'):
                    named.add(name)
                else:
                    unnamed.add(name)
            except TypeError:
                pass
    return named, unnamed
History
Date User Action Args
2021-08-19 16:24:06santhu_reddy12setrecipients: + santhu_reddy12
2021-08-19 16:24:05santhu_reddy12setmessageid: <1629390245.98.0.668607848819.issue41322@roundup.psfhosted.org>
2021-08-19 16:24:05santhu_reddy12linkissue41322 messages
2021-08-19 16:24:05santhu_reddy12create