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 petr.viktorin
Recipients petr.viktorin, vkbo, zach.ware
Date 2022-01-07.14:39:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641566369.07.0.0837208340963.issue42032@roundup.psfhosted.org>
In-reply-to
Content
> It would perhaps be useful if the os.path.expanduser call was added in the cache_from_source() function in importlib?

No: that would mean Python would be doing work that the shell should do. Possibly it would be duplicating the work. Possibly it would be doing it wrong. What if your shell uses ⌂ rather than ~? What if the shell has a different idea of what the home directory is? Remember, you can use Python with any shell, not just Unix/POSIX command-line ones (which is what os.path.expanduser emulates).

Thanks for reporting the issue, though! The separation of concerns definitely isn't obvious at first.
History
Date User Action Args
2022-01-07 14:39:29petr.viktorinsetrecipients: + petr.viktorin, zach.ware, vkbo
2022-01-07 14:39:29petr.viktorinsetmessageid: <1641566369.07.0.0837208340963.issue42032@roundup.psfhosted.org>
2022-01-07 14:39:29petr.viktorinlinkissue42032 messages
2022-01-07 14:39:28petr.viktorincreate