Message143796
| Author |
terry.reedy |
| Recipients |
Trundle, daniel.urban, eric.araujo, ezio.melotti, terry.reedy |
| Date |
2011年09月09日.19:41:57 |
| SpamBayes Score |
3.0716543e-05 |
| Marked as misclassified |
No |
| Message-id |
<1315597318.29.0.562599151261.issue12915@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|