[issue12915] Add inspect.locate and inspect.resolve
Berker Peksag
report at bugs.python.org
Sat Jan 25 15:48:50 EST 2020
Berker Peksag <berker.peksag at gmail.com> added the comment:
FTR, Django has a similar helper:
from django.utils.module_loading import import_string
ValidationError = import_string('django.core.exceptions.ValidationError')
https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.module_loading.import_string
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue12915>
_______________________________________
More information about the Python-bugs-list
mailing list