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 ncoghlan
Recipients brett.cannon, chris.jerdonek, eric.araujo, eric.snow, jaraco, jayyin11043, ncoghlan, ncohen, python-dev, serhiy.storchaka
Date 2022-03-26.07:59:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648281579.87.0.803346112327.issue32642@roundup.psfhosted.org>
In-reply-to
Content
The import system is already complex, so I think the hesitation about allowing arbitrary Path-like objects is warranted. (For example: are importlib's caching semantics really valid for *arbitrary* path-like objects? An object can be path-like without being immutable)

Coercion on input (as Noam suggests) would have a much lower risk of unwanted side effects, as any dynamic behaviour would be resolved at insertion time.
History
Date User Action Args
2022-03-26 07:59:39ncoghlansetrecipients: + ncoghlan, brett.cannon, jaraco, eric.araujo, chris.jerdonek, python-dev, eric.snow, serhiy.storchaka, jayyin11043, ncohen
2022-03-26 07:59:39ncoghlansetmessageid: <1648281579.87.0.803346112327.issue32642@roundup.psfhosted.org>
2022-03-26 07:59:39ncoghlanlinkissue32642 messages
2022-03-26 07:59:39ncoghlancreate