Why not just import the module they're defined in and then just do attribute 
access syntax?

from mod.modb.dtx import somemod
somemod.SomeError
_______________________________________________
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/2ANGDC6RQ25YT3CAFZVE7XFO3MQSLS7D/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to