On 3/3/21 2:18 PM, George Harding wrote:
__all__ does not stop anyone from importing anything in the module using `from foo import bar`.
That is true, but that is also Python. If you import something not included in `__all__` then you do so at your own risk as it could change or vanish in the next release. -- ~Ethan~ _______________________________________________ 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/GCGPJLJ63NTJB43XLEG66XVPP3TPSBEW/ Code of Conduct: http://python.org/psf/codeofconduct/