On Thu, Mar 4, 2021 at 7:57 AM George Harding <george.winton.hard...@gmail.com> wrote: > I think it might be cleaner to also allow an __exclude_all__ variable which > will exclude some members from being imported. > > If both were defined I would imagine __exclude_all__ being applied second.
You could implement that yourself: __all__ = {n for n in globals() if not n.startswith("_")} - __exclude_all__ ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/X7RXTNNK37RVRKYB4QIGWVK2F7LHL4VY/ Code of Conduct: http://python.org/psf/codeofconduct/