Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32188>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to