This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cryvate
Recipients cryvate
Date 2017-12-01.12:45:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512132307.76.0.213398074469.issue32188@psf.upfronthosting.co.za>
In-reply-to
Content
Ignoring testing code, there is minimal use of os.path.realpath in the stdlib (https://github.com/python/cpython/search?utf8=%E2%9C%93&q=%22os.path.realpath%22&type=):

- Lib/platform.py: used before opening a file (works around a cygwin bug)
- Lib/unittest/loader.py: used to compare two paths for equality
- Lib/pkgutil.py: as outlined in this issue
- Lib/pydoc.py: used to determine the directory
- Lib/inspect.py: path and realpath added to caching dictionary

So the question that remains is whether __import__ does this on the hood? I get not due to the difference noted in the OP betweein importing and using pkgutil.
History
Date User Action Args
2017-12-01 12:45:07cryvatesetrecipients: + cryvate
2017-12-01 12:45:07cryvatesetmessageid: <1512132307.76.0.213398074469.issue32188@psf.upfronthosting.co.za>
2017-12-01 12:45:07cryvatelinkissue32188 messages
2017-12-01 12:45:07cryvatecreate