Message143796
To be a little clearer, this is about dotted import names, not regular dotted names.
pydoc.locate(path, forceload=0):
"""Locate an object by name or dotted path, importing as necessary"""
pydoc.resolve(thing, forceload=0):
"""Given an object or a path to an object, get the object and its name."""
It is not completely clear to me how this is different from using __import__ but I will believe it is. It something like this is in at least 3 places, +1 on factoring it out to one place. |
|
Date |
User |
Action |
Args |
2011-09-09 19:41:58 | terry.reedy | set | recipients:
+ terry.reedy, ezio.melotti, eric.araujo, Trundle, daniel.urban |
2011-09-09 19:41:58 | terry.reedy | set | messageid: <1315597318.29.0.562599151261.issue12915@psf.upfronthosting.co.za> |
2011-09-09 19:41:57 | terry.reedy | link | issue12915 messages |
2011-09-09 19:41:57 | terry.reedy | create | |
|